Skip to content

Margus Roo –

If you're inventing and pioneering, you have to be willing to be misunderstood for long periods of time

  • Cloudbreak Autoscale fix
  • Endast

Month: January 2010

Palju võib?

Posted on January 29, 2010 by margusja

Sorry, pikk ja segane tööpäev

Posted in FunLeave a comment

Mäluboss

Posted on January 29, 2010 by margusja

Paljud teist on ehk palju suuremate numbritega harjunud. Aga vabandage minu ülevoolavat emotsiooni 🙂

Posted in Fun, LinuxLeave a comment

Sex in my computer vol2

Posted on January 27, 2010 by margusja

Posted in FunLeave a comment

Hello World in different languages and speed

Posted on January 25, 2010 by margusja

Assembler


.section .data
string:
.ascii "Hello world %d \n\0";

.section .text
.globl _start
_start:
movl %esp, %ebp
subl $4, %esp

movl $10000, %eax
movl $0, %ebx

loop:
cmpl $0, %eax
je loop_end
subl $1, %eax
pushl %eax
pushl $string
call printf
addl $4, %esp
popl %eax
jmp loop

loop_end:

movl $1, %eax

movl $0, %ebx

int $0x80

real 0m0.424s
user 0m0.004s
sys 0m0.254s

PHP



real 0m0.969s
user 0m0.034s
sys 0m0.219s
}
?>

Perl

for ($count=0; $count<10000; $count++) { print "Hello World\n"; }

real 0m0.547s
user 0m0.014s
sys 0m0.267s

Python

#!/usr/bin/python
# Filename: hello.py

for i in range(0, 10000):
print "Hello, World!"
else:
print 'The for loop is over'

real 0m0.503s
user 0m0.018s
sys 0m0.273s

Posted in LinuxLeave a comment

Mac OS X 10.6 wrong umask on samba share

Posted on January 25, 2010 by margusja

edit or create a file /etc/launchd.conf
umask 002

Posted in MacLeave a comment

Some useful MySql sentences

Posted on January 15, 2010 - January 4, 2011 by margusja

start in  safe mode

/usr/bin/mysqld_safe –user=mysql –socket=/var/lib/mysql/mysql.sock –pid-file=/var/run/mysqld/mysqld.pid –datadir=/var/lib/mysql –skip-grant-tables &

It is annoying to type them from the scratch every time. So a little copy paste place for my. Lazy me!

insert into user (Host, User, Password) Values (‘localhost’, ‘username’, PASSWORD(‘xxx’));

insert into db (Host, Db, User, Select_priv, Insert_priv, Update_priv, Delete_priv) values (‘localhost’, ‘dbname’, ‘username’, ‘Y’, ‘Y’, ‘Y’, ‘Y’);

UPDATE `mysql`.`user` SET `Create_priv` = ‘Y’,
`Drop_priv` = ‘Y’,
`Reload_priv` = ‘Y’,
`Shutdown_priv` = ‘Y’,
`Process_priv` = ‘Y’,
`File_priv` = ‘Y’,
`Grant_priv` = ‘Y’,
`References_priv` = ‘Y’,
`Index_priv` = ‘Y’,
`Alter_priv` = ‘Y’,
`Show_db_priv` = ‘Y’,
`Super_priv` = ‘Y’,
`Create_tmp_table_priv` = ‘Y’,
`Lock_tables_priv` = ‘Y’,
`Execute_priv` = ‘Y’,
`Repl_slave_priv` = ‘Y’,
`Repl_client_priv` = ‘Y’,
`Create_view_priv` = ‘Y’,
`Show_view_priv` = ‘Y’,
`Create_routine_priv` = ‘Y’,
`Alter_routine_priv` = ‘Y’,
`Create_user_priv` = ‘Y’ WHERE CONVERT( `user`.`Host` USING utf8 ) = ‘h3.okia.ee’ AND CONVERT( `user`.`User` USING utf8 ) = ‘root’ LIMIT 1 ;

Posted in LinuxLeave a comment

No milk today

Posted on January 7, 2010 - January 7, 2010 by margusja

Posted in Muusika

Deem kuidas tahaks hipi olla!

Posted on January 7, 2010 - January 7, 2010 by margusja

Parem link tõsisele hipi elule

Posted in Fun

The Master

Categories

  • Apache
  • Apple
  • Assembler
  • Audi
  • BigData
  • BMW
  • C
  • Elektroonika
  • Fun
  • Hadoop
  • help
  • Infotehnoloogia koolis
  • IOT
  • IT
  • IT eetilised
  • Java
  • Langevarjundus
  • Lapsed
  • lastekodu
  • Linux
  • M-401
  • Mac
  • Machine Learning
  • Matemaatika
  • Math
  • MSP430
  • Muusika
  • neo4j
  • openCL
  • Õpetaja identiteet ja tegevusvõimekus
  • oracle
  • PHP
  • PostgreSql
  • ProM
  • R
  • Turvalisus
  • Varia
  • Windows
Proudly powered by WordPress | Theme: micro, developed by DevriX.