SSH Terminal in IPad

If you ever need to go back to your office or home, because you need to change a little thing in your server. Now you don’t have to anymore, just get an IPad and install this app that would let you have UNIX like terminal look that could connect you to your SSH-enabled server.

This app is listed in Apple App Store for just $0.99. Forget about ruining your break or holiday just because you need to use SSH terminal.

Good luck! Comment here and post the review in this comment.

CK

http://ohgeeky.com/wp-content/plugins/sociofluid/images/digg_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/reddit_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/dzone_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/stumbleupon_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/delicious_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/blinklist_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/furl_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/technorati_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/magnolia_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/google_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/myspace_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/facebook_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/yahoobuzz_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/mixx_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/twitter_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/jamespot_32.png

How to draw diamond shape with asterisks using Java

If you are just started learning Java, on your own or in school. You will be asked to draw different kind of shapes using asterisks in command prompt or terminal for linux. They could be triangle, rectangle, square or whatever. This kind of exercise is very good to “train” you to understand the looping concepts, like nested loop within loop inside loop or whatever……

So, I think the most difficult shape and it would cover almost all the shapes possible made within the command prompt or terminal will be diamond shape.

This shape actually cover triangle, up-side down, could cover square, and rectangle.

And here’s how you do it.

for (i = 1; i <= size; i++){
    for (k = size; k > i; k--)
         System.out.print(" ");
         for (j =1; j <= i; j++)
             System.out.print("*" + " ");
         System.out.println();
}

for (i = size; i > 0; i--){
    for (k = size; k > i; k--)
        System.out.print(" ");
        for (j =1; j <= i; j++)
            System.out.print("*" + " ");
        System.out.println();
}

So, there are two BIG loops, the first one is to create the top part of diamond 
which is triangle, and the second loop will draw the bottom part of diamond.
Good luck with your Java!
CK 

 

 

 

 

http://ohgeeky.com/wp-content/plugins/sociofluid/images/digg_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/reddit_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/dzone_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/stumbleupon_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/delicious_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/blinklist_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/furl_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/technorati_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/magnolia_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/google_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/myspace_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/facebook_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/yahoobuzz_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/mixx_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/twitter_32.png http://ohgeeky.com/wp-content/plugins/sociofluid/images/jamespot_32.png