$ 4.1.5 20 84—> cat phparray.php $ 4.1.5 21 85—> php phparray.php Welcome PHP C C++ Java Perl Python Ruby $ 4.1.5 22 86—>
Category Archives: Programming Languages
How does && and || operators combination Work ?
commandline session $ 4.2.29 10 510—> [ -f wordmatc.c ] || echo hello hello $ 4.2.29 11 511—> [ -f wordmatc.c ] || cat baty && echo hello cat: baty: No such file or directory $ 4.2.29 12 512—> [ -f wordmatc.c ] && echo hello || echo kitten kitten $ 4.2.29 13 513—> [ …
Continue reading “How does && and || operators combination Work ?”
How does bracket expression and negation [^ ] work with grep ?
commandline session $ 4.2.20 19 519—> grep ‘[^b ]sort’ worked Heapsort Quicksort Timsort $ 4.2.20 20 520—> cat worked Bubble sort Selection sort Insertion sort Shell sort Comb sort Merge sort Heapsort Quicksort Counting sort Bucket sort Radix sort Distribution sort Timsort $ 4.2.20 21 521—>
id – print real and effective user and group IDs
A UNIX Command $id uid=1000(jeffrin) gid=1000(jeffrin) groups=1000(jeffrin),29(audio),1001(wireshark) $id -n id: cannot print only names or real IDs in default format $id -a uid=1000(jeffrin) gid=1000(jeffrin) groups=1000(jeffrin),29(audio),1001(wireshark) $id -g 1000 $id -G 1000 29 1001 $id -Gn jeffrin audio wireshark $id -r id: cannot print only names or real IDs in default format $id -rG 1000 29 …
Continue reading “id – print real and effective user and group IDs”
Relating inside code which creates a text layer in GIMP
/* GIMP – The GNU Image Manipulation Program * Copyright (C) 1995 Spencer Kimball and Peter Mattis * * GimpTextLayer * Copyright (C) 2002-2004 Sven Neumann * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the …
Continue reading “Relating inside code which creates a text layer in GIMP”
APC alternate PHP cache ( apc_add )
The alternate PHP cache is free and open opcode cache for PHP. http://en.wikipedia.org/wiki/Opcode $variable= ‘Iam ok’; apc_add(‘foo’,$variable); var_dump(apc_fetch(‘foo’)); the above code is not working as desired. the output we get is “bool(false)” http://www.techterms.com/definition/parse -r code Run PHP code without using script tags ‘ Armstrong, Neil: The Eagle Has Landed [audio:http://www.freeinfosociety.com/media/sounds/18.mp3]