Meet Firefox Hello – Real Time Communication using a browser

WebRTC is a open source project aimed at video/audio communication using normal browser and mobile apps. Check it out on its home page for more info : http://www.webrtc.org/. Mozilla Hello is just a outcome of project WebRTC.

hello

Check it out here: https://www.mozilla.org/en-US/firefox/hello/

Hello requires Firefox version 35.

Following are the steps to get Hello:

https://support.mozilla.org/en-US/kb/where-firefox-hello-button

Further Reading:

https://www.mozilla.org/en-US/firefox/hello/

http://www.webrtc.org/

http://www.pcworld.com/article/2871372/latest-firefox-tries-to-oneup-skype-with-webrtc-calling-features.html

Posted in Thechy Stuff | Leave a comment

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.

roadshows

Further Reading:

Click to access Intel_CURIE_Module_Factsheet.pdf

http://www.intel.com/content/www/us/en/internet-of-things/overview.html

http://www.anandtech.com/show/8848/intel-announces-curie-tiny-module-for-wearables

Posted in Thechy Stuff | Leave a comment

CES 2015

Print

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:

https://access.redhat.com/articles/1200223?sc_cid=70160000000e8eaAAA

http://www.itnews.com/exploits-vulnerabilities/84263/six-key-defenses-against-shellshock-attacks?source=ITNEWSNLE_nlt_itndaily_2014-09-30

 

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 caniuse.com 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.

https://raw.githubusercontent.com/dominicdsouza/ZoomRotateCrop/master/index.html

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:

https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Canvas_tutorial

https://github.com/dominicdsouza/ZoomRotateCrop/

 

 

 

 

 

 

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
 
try{
                 File testimage = new File(“/opt/images/testimage.jpg”);
                 BufferedImage bufimg = ImageIO.read(testimage);
                 //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.
 
try{
                File testimage = new File(“/opt/images/testimage.jpg”);

                BufferedImage bufimg = ImageIO.read(testimage);
                File outfile =new File(“/opt/images/modified.jpg”);
                Iterator<ImageWriter> iter = ImageIO.getImageWritersByFormatName(“jpeg”);
                ImageWriter writer = iter.next();
                ImageWriteParam iwp = writer.getDefaultWriteParam();
                iwp.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
                iwp.setCompressionQuality(1.0f);
                writer.setOutput(outfile);
                writer.write(null, new IIOImage(bufimg ,null,null),iwp);
                writer.dispose();
} 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

IoT

 

 

 

 

 

JN5168-RD6040

Posted in Tech News | Leave a comment

Android on Different Screens

Android MuliScreen

Posted in Thechy Stuff | Leave a comment

Moto 360

moto_360

Posted in Tech News | Leave a comment

AlwaysOnTop soon to make it to JavaFX Stage

In Java SE, Swing and AWT there is a method setAlwaysOnTop(boolean) to set a JFrame or Frame on top of all windows in a JavaSE desktop application. But JavaFX right from its first release was lacking such a method.

Image

 

So after a long wait, it looks like the Developers wish is about to come a true through the resolution of JIRA RT-153 [https://javafx-jira.kenai.com/browse/RT-153] which now shows fixed and the fix will be available in JDK 8u6 or 8u20 which is said to be released in the second half of 2014. So the Stage will have a method to make it on top of the rest.

UPDATE: Early access now available for JDK 8u20(here) also a short article on alwaysontop by carl : http://java.dzone.com/articles/javafx-8u20-days-future-past

Further Reading:

https://javafx-jira.kenai.com/browse/RT-153

 

 

Posted in Thechy Stuff | Leave a comment