IoT on the rise – Intel Curie revealed at CES 2015

Seems to be 2015 will be a year for Internet of Things. At CES 2015 intel revealed Curie, a button sized microcontroller for wearables. Galileo, Edison and now Curie, intel is taking a big leap at IoT. Also Samsung seems to be interested in IoT at the CES 2015.


Further Reading:

Posted in Thechy Stuff | Leave a comment

CES 2015


Posted in Thechy Stuff | Leave a comment

Bash Code Injection Vulnerability (aka Shellshock)

Recently there has been the new vulnerability on bash in unix system allowing unauthenticated access to applications and services to atackers. Following are quick steps as displayed on Red hat support portal to identify whether your RHEL/CentOS is vulnerable or not.

Go to command prompt then type the following command:

env 'x=() { :;}; echo vulnerable' 'BASH_FUNC_x()=() { :;}; echo vulnerable' bash -c "echo test"

If you see in the result some word like “vulnerable” then you need to update your bash to the latest or rater patched version.

To be on the safer side please keep your bash updated with latest fixes

yum update bash

Further Reading:


Posted in Thechy Stuff | Tagged | Leave a comment

Zoom-Rotate-Crop Utility using HTML 5 Canvas and jQuery

HTML 5 has and is still in development and there are a lot or rumors and speculations regarding the final release of HTML 5, some say 2015 and some 2020. OK… but in between all those dates, browsers have already started off to deliver most of it already. A nice updated website displays all HTML5 features and which browser supports what. HTML 5 has a lot of new html tags one out of them <canvas> deals with drawing and modifying graphics on the fly on a webpage.

Following is a small utility using HTML 5 canvas which uses a canvas to draw image and then manipulate(rotate/zoom) it by using rotate and scale methods on the drawn image, finally a crop area is selected by using resizable of jQuery and canvas clip() method is used to crop the selected area.

I am also planning to put out a jsbin for the above example will be coming up soon.

NOTE: Above code still needs some improvements and is advisable for developmental/experimental purposes.

Further Reading:







Posted in Thechy Stuff | Tagged , , , , , | 1 Comment

JPEG quality and size reduction when using ImageIO.write

So what is the general and easiest way to read a JPEG from a File, modify it and then write it back to the File
                 File testimage = new File(“/opt/images/testimage.jpg”);
                 BufferedImage bufimg =;
                 //MODIFY IMAGE
                 File outfile =new File(“/opt/images/modified.jpg”);
                 ImageIO.write(bufimage, “jpg”, outfile);
} catch (IOException ex) {
System.out.println(“Exception : ” + ex);
but the above method drastically reduces quality and hence the size of the image sometimes by 70%, so if quality of the final image is not your concern then its ok. But if you want to retain the quality of the original JPEG then following(Inspired by this post) is the way to set the Quality for the final output JPEG.
                File testimage = new File(“/opt/images/testimage.jpg”);

                BufferedImage bufimg =;
                File outfile =new File(“/opt/images/modified.jpg”);
                Iterator<ImageWriter> iter = ImageIO.getImageWritersByFormatName(“jpeg”);
                ImageWriter writer =;
                ImageWriteParam iwp = writer.getDefaultWriteParam();
                writer.write(null, new IIOImage(bufimg ,null,null),iwp);
} catch (IOException ex) {
System.out.println(“Exception : ” + ex);
So the point here is while reading the JPEG things go very well but while writing ImageIO.write sets the default Quality and hence the reduction in the size of the final JPEG, so by setting the quality explicitly the problem is averted.
Further Reading:
Posted in Thechy Stuff | Tagged , , , | Leave a comment

IoT … still has a long way to go








Posted in Tech News | Leave a comment

Android on Different Screens

Android MuliScreen

Image | Posted on by | Leave a comment