grep . global regular expression print

commandline session

$ 4.2.20 1 501---> ls /usr/sbin/ | grep kernel
$ 4.2.20 2 502---> ls /usr/sbin/ | grep ker
cracklib-packer
cracklib-unpacker
$ 4.2.20 3 503---> ls /usr/sbin/ | grep linux
$ 4.2.20 4 504---> ls /usr/sbin/ | grep lin
update-ccache-symlinks
$ 4.2.20 5 505---> ls /usr/sbin/ | grep li
cracklib-check
cracklib-format
cracklib-packer
cracklib-unpacker
create-cracklib-dict
gnome-menus-blacklist
libgvc5-config-update
remove-default-wordlist
select-default-wordlist
split-logfile
update-ccache-symlinks
update-cracklib
update-default-wordlist
update-fonts-alias
validlocale
$ 4.2.20 6 506--->


$ 4.2.20 6 506---> ls /usr/sbin/ | grep -cv li
261
$ 4.2.20 7 507---> ls /usr/sbin/ | grep -c li
15
$ 4.2.20 8 508--->

(java) bubble sort testing… 0.00001 Ver — 6 No.'s Related

$ 4.2.20 4 504---> time java BubbleSort

real	0m0.254s
user	0m0.160s
sys	0m0.068s
$ 4.2.20 5 505---> time java BubbleSort

real	0m0.208s
user	0m0.152s
sys	0m0.036s
$ 4.2.20 6 506---> time java BubbleSort

real	0m0.209s
user	0m0.124s
sys	0m0.064s
$ 4.2.20 7 507---> time java BubbleSort

real	0m0.210s
user	0m0.144s
sys	0m0.044s
$ 4.2.20 8 508---> time java BubbleSort

real	0m0.254s
user	0m0.148s
sys	0m0.084s
$ 4.2.20 9 509---> time java BubbleSort

real	0m0.253s
user	0m0.180s
sys	0m0.056s
$ 4.2.20 10 510---> time java BubbleSort

real	0m0.226s
user	0m0.156s
sys	0m0.048s
$ 4.2.20 11 511--->

ant – a Java based make tool.

commandline session

$ 4.2.20 153 1003---> ant compile
Buildfile: /home/jeffrin/java/beautifulprograms/build.xml

copyjars:

compile:
    [javac] /home/jeffrin/java/beautifulprograms/build.xml:36: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 1 source file to /home/jeffrin/java/beautifulprograms/war/WEB-INF/classes

BUILD SUCCESSFUL
Total time: 6 seconds
$ 4.2.20 154 1004--->

bubble sort in java

commandline session

/*
        Java Bubble Sort Example
        This Java bubble sort example shows how to sort an array of int using bubble
        sort algorithm. Bubble sort is the simplest sorting algorithm.
*/

public class BubbleSort {

        public static void main(String[] args) {

                //create an int array we want to sort using bubble sort algorithm
                int intArray[] = new int[]{5,90,35,45,150,3};

                //print array before sorting using bubble sort algorithm
                System.out.println("Array Before Bubble Sort");
                for(int i=0; i < intArray.length; i++){
                        System.out.print(intArray[i] + " ");
                }

                //sort an array using bubble sort algorithm
                bubbleSort(intArray);

                System.out.println("");

                //print array after sorting using bubble sort algorithm
                System.out.println("Array After Bubble Sort");
                for(int i=0; i  array [1] swap it.
                 * 3. Compare array[1] & array[2]
                 * 4. If array[1] > array[2] swap it.
                 * ...
                 * 5. Compare array[n-1] & array[n]
                 * 6. if [n-1] > array[n] then swap it.
                 *
                 * After this step we will have largest element at the last index.
                 *
                 * Repeat the same steps for array[1] to array[n-1]
                 *
                 */

                int n = intArray.length;
                int temp = 0;

                for(int i=0; i < n; i++){
                        for(int j=1; j  intArray[j]){
                                        //swap the elements!
                                        temp = intArray[j-1];
                                        intArray[j-1] = intArray[j];
                                        intArray[j] = temp;
                                }

                        }
                }

        }
}

/*
Output of the Bubble Sort Example would be

Array Before Bubble Sort
5 90 35 45 150 3
Array After Bubble Sort
3 5 35 45 90 150

*/


$ 4.2.20 7 507---> javac BubbleSort.java
$ 4.2.20 8 508---> java BubbleSort
Array Before Bubble Sort
5 90 35 45 150 3
Array After Bubble Sort
3 5 35 45 90 150
 $ 4.2.20 9 509--->

find . GNU version of find

commandline session

$ 4.2.20 11 511---> find ~ |  wc -l
106414
$ 4.2.20 12 512--->

$ 4.2.20 12 512---> find ~ -type d |  wc -l
9537
$ 4.2.20 13 513--->

$ 4.2.20 13 513---> find ~ -type l |  wc -l
115
$ 4.2.20 14 514--->


$ 4.2.20 17 517---> find ~ -type f -name "*.JPG" -size +1M | wc -l
241
$ 4.2.20 18 518---> find ~ -type f -name "*.JPG" -size +2M | wc -l
0
$ 4.2.20 19 519---> find ~ -type f -name "*.JPG" -size +3M | wc -l
0
$ 4.2.20 20 520---> find ~ -type f -name "*.JPG" -size +3k | wc -l
244
$ 4.2.20 21 521---> find ~ -type f -name "*.JPG" -size +1k | wc -l
244
$ 4.2.20 22 522--->


google application engine – screenshot

commandline session

$ 4.2.20 204 704---> ../appengine-java-sdk/bin/appcfg.sh -e ahiliation@beautifulwork.org update war/
Reading application configuration data...
14 Apr, 2012 5:33:13 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed war/WEB-INF/appengine-web.xml
2012-04-14 17:33:13.669:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
14 Apr, 2012 5:33:13 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed war/WEB-INF/web.xml
Beginning server interaction for beautifulprograms...
0% Created staging directory at: '/tmp/appcfg1726254542791009636.tmp'
5% Scanning for jsp files.
20% Scanning files on local disk.
25% Initiating update.
28% Cloning 1 static files.
31% Cloning 14 application files.
40% Uploading 6 files.
52% Uploaded 1 files.
61% Uploaded 2 files.
68% Uploaded 3 files.
73% Uploaded 4 files.
77% Uploaded 5 files.
80% Uploaded 6 files.
82% Initializing precompilation...
84% Sending batch containing 5 file(s) totaling 5KB.
85% Sending batch containing 1 blob(s) totaling 1KB.
90% Deploying new version.
95% Will check again in 1 seconds.
98% Will check again in 2 seconds.
99% Will check again in 4 seconds.
99% Closing update: new version is ready to start serving.
99% Uploading index definitions.

Update completed successfully.
Success.
Cleaning up temporary files...
$ 4.2.20 205 705--->

$ 4.2.20 182 682---> ../appengine-java-sdk/bin/appcfg.sh -e ahiliation@beautifulwork.org update war/
Reading application configuration data...
15 Apr, 2012 2:12:00 AM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed war/WEB-INF/appengine-web.xml
2012-04-15 02:12:00.863:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
15 Apr, 2012 2:12:00 AM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed war/WEB-INF/web.xml
15 Apr, 2012 2:12:00 AM com.google.apphosting.utils.config.IndexesXmlReader readConfigXml
INFO: Successfully processed war/WEB-INF/appengine-generated/datastore-indexes-auto.xml
Beginning server interaction for beautifulprograms...
0% Created staging directory at: '/tmp/appcfg3735990963207941955.tmp'
5% Scanning for jsp files.
8% Compiling jsp files.
15 Apr, 2012 2:12:12 AM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed /tmp/appcfg3735990963207941955.tmp/WEB-INF/web.xml
20% Scanning files on local disk.
25% Initiating update.
28% Cloning 1 static files.
31% Cloning 28 application files.
40% Uploading 0 files.
52% Initializing precompilation...
90% Deploying new version.
95% Will check again in 1 seconds.
98% Will check again in 2 seconds.
99% Will check again in 4 seconds.
99% Will check again in 8 seconds.
99% Closing update: new version is ready to start serving.
99% Uploading index definitions.

Update completed successfully.
Success.
Cleaning up temporary files...

$ 4.2.20 226 726---> ../appengine-java-sdk/bin/appcfg.sh -e ahiliation@beautifulprograms.beautifulwork.org update war/
Reading application configuration data...
15 Apr, 2012 2:22:39 AM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed war/WEB-INF/appengine-web.xml
2012-04-15 02:22:39.629:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
15 Apr, 2012 2:22:39 AM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed war/WEB-INF/web.xml
15 Apr, 2012 2:22:39 AM com.google.apphosting.utils.config.IndexesXmlReader readConfigXml
INFO: Successfully processed war/WEB-INF/appengine-generated/datastore-indexes-auto.xml
Beginning server interaction for beautifulprograms...
Password for ahiliation@beautifulprograms.beautifulwork.org:
Email: ahiliation@beautifulwork.org
Password for ahiliation@beautifulwork.org:
0% Created staging directory at: '/tmp/appcfg4490540921668629906.tmp'
5% Scanning for jsp files.
8% Compiling jsp files.
15 Apr, 2012 2:24:12 AM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed /tmp/appcfg4490540921668629906.tmp/WEB-INF/web.xml
20% Scanning files on local disk.
25% Initiating update.
28% Cloning 1 static files.
31% Cloning 28 application files.
40% Uploading 0 files.
52% Initializing precompilation...
90% Deploying new version.
95% Will check again in 1 seconds.
98% Will check again in 2 seconds.
99% Will check again in 4 seconds.
99% Will check again in 8 seconds.
99% Closing update: new version is ready to start serving.
99% Uploading index definitions.

Update completed successfully.
Success.
Cleaning up temporary files...
$ 4.2.20 227 727--->

google application engine – new domain related

commandline session

$ 4.2.20 121 621---> ../appengine-java-sdk/bin/appcfg.sh -e ahiliation@application.beautifulwork.org update war/
Reading application configuration data...
14 Apr, 2012 3:20:54 PM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed war/WEB-INF/appengine-web.xml
2012-04-14 15:20:54.244:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
14 Apr, 2012 3:20:54 PM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed war/WEB-INF/web.xml
Beginning server interaction for beautifulapplication...
Password for ahiliation@application.beautifulwork.org:
0% Created staging directory at: '/tmp/appcfg4867162461331235064.tmp'
5% Scanning for jsp files.
20% Scanning files on local disk.
25% Initiating update.
28% Cloning 13 application files.
40% Uploading 4 files.
52% Uploaded 1 files.
61% Uploaded 2 files.
68% Uploaded 3 files.
73% Uploaded 4 files.
77% Initializing precompilation...
80% Sending batch containing 4 file(s) totaling 4KB.
90% Deploying new version.
95% Will check again in 1 seconds.
98% Will check again in 2 seconds.
99% Will check again in 4 seconds.
99% Closing update: new version is ready to start serving.
99% Uploading index definitions.

Update completed successfully.
Success.
Cleaning up temporary files...
$ 4.2.20 122 622--->

google application engine – screen

commandline session

$ 4.2.20 17 517---> ../appengine-java-sdk-1.6.3.1/bin/appcfg.sh update war/
Reading application configuration data...
14 Apr, 2012 12:19:14 AM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
INFO: Successfully processed war/WEB-INF/appengine-web.xml
2012-04-14 00:19:14.082:INFO::Logging to STDERR via org.mortbay.log.StdErrLog
14 Apr, 2012 12:19:14 AM com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
INFO: Successfully processed war/WEB-INF/web.xml
Beginning server interaction for beautiful-work...
0% Created staging directory at: '/tmp/appcfg5508477297088831522.tmp'
5% Scanning for jsp files.
20% Scanning files on local disk.
25% Initiating update.
28% Cloning 3 application files.
40% Uploading 3 files.
52% Uploaded 1 files.
61% Uploaded 2 files.
68% Uploaded 3 files.
73% Initializing precompilation...
77% Sending batch containing 3 file(s) totaling 2KB.
90% Deploying new version.
95% Will check again in 1 seconds.
98% Will check again in 2 seconds.
99% Will check again in 4 seconds.
99% Closing update: new version is ready to start serving.
99% Uploading index definitions.

Update completed successfully.
Success.
Cleaning up temporary files...
$ 4.2.20 18 518--->

ssh — OpenSSH SSH client (remote login program)

commandline sessions

$ 4.2.20 2 149---> ssh 127.0.0.1
The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.
RSA key fingerprint is 91:7a:8c:6c:db:7e:1c:74:84:32:ba:3d:72:c9:5b:43.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '127.0.0.1' (RSA) to the list of known hosts.
jeffrin@127.0.0.1's password:
Linux debian 3.2.0-1-amd64 #1 SMP Sun Feb 5 15:17:15 UTC 2012 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Mar 29 02:14:07 2012
jeffrin@debian:~$ logout
Connection to 127.0.0.1 closed.
$ 4.2.20 3 150--->

$ 4.2.20 13 160---> cd .ssh/
$ 4.2.20 14 161---> ls
id_rsa	id_rsa.pub  known_hosts
$ 4.2.20 15 162--->

$ssh beautifulwork.org -l ahiliation
ahiliation@beautifulwork.org's password: 
Linux pluto.infoclub.in 3.2.0-4-amd64 #1 SMP Debian 3.2.51-1 x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Thu Dec 26 19:19:00 2013 from 122.174.205.243
ahiliation@pluto:~$ pwd
/home/ahiliation
ahiliation@pluto:~$ w
 15:11:52 up 17 days, 21:37,  1 user,  load average: 0.00, 0.01, 0.05
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
ahiliati pts/0    122.174.204.138  15:11    0.00s  0.21s  0.00s w
ahiliation@pluto:~$ logout
Connection to beautifulwork.org closed.
$w
 20:43:39 up  1:38,  2 users,  load average: 0.60, 0.61, 0.70
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
jeffrin  tty7     :0               19:05    1:38m  5:06   0.04s gdm-session-worker [pam/gdm3-autologin]
jeffrin  pts/0    :0               20:42    3.00s  0.05s  0.00s w
$

stitched (PEER) TO : Project using SSH