tag:blogger.com,1999:blog-80302002122778211672024-03-14T00:53:14.699-07:00TechSoftEngA blog for technical abreast in field of computers.Provides programming tutorials on Java, C and C++,Linux,Hacking ,latest tech news,games releases.Anonymoushttp://www.blogger.com/profile/16135639531826908086noreply@blogger.comBlogger109125tag:blogger.com,1999:blog-8030200212277821167.post-54460707137208006632015-09-14T09:28:00.000-07:002015-09-14T09:28:06.228-07:00How to remove Windows 10's Forced updates<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<b>How to remove Windows 10's Forced updates</b></h2>
<br />
<div style="text-align: justify;">
Microsoft launched windows 10 in 190 countries.</div>
<div style="text-align: justify;">
windows 10 automatically downloads onto windows 7 and windows 8, windows 10 installation files take 3.5GB to 6GB hidden folder labelled <b><u>'$Windows.~BT'</u></b></div>
<div style="text-align: justify;">
go to your C: partition and look for folder-<u><b> '$Windows.~BT'</b></u>.</div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDkGYxhwJoWzT4R5kxVh5oAYJ-eWfoUbkhunEaKFKDdx8D4zDd1PrXYQAgL5O9eEKR5zyHofoRQ6mw0hamZj5Uo_MvkwnGwbQ2eQ1HgTT_cpl7YJTDElej38qioweDiSJ_HubZGA4QgK5h/s1600/windows+bt.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Windows 10 updates" border="0" height="356" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDkGYxhwJoWzT4R5kxVh5oAYJ-eWfoUbkhunEaKFKDdx8D4zDd1PrXYQAgL5O9eEKR5zyHofoRQ6mw0hamZj5Uo_MvkwnGwbQ2eQ1HgTT_cpl7YJTDElej38qioweDiSJ_HubZGA4QgK5h/s640/windows+bt.png" title="Windows 10 updates" width="640" /></a></div>
<br />
<br />
there may be a <u><b>setup.exe</b></u> file which means a new operating system are already on your PC. to remove them use Shift+Delete or by safe way<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisnUCCny-LdxruVEUZkbiqTQRFKpYTADHF7pUFu7xVVnkt0CE6b-PlUgGRD94iKHzWHKF8kxEFDLuzp0_KzEhX6s5YcoKBVPf7F76BLFPpPTLmeAiu4UU1YRxFnWRXS_IrlNPedFdQettC/s1600/setupexe.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="windows10setup.exe" border="0" height="358" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEisnUCCny-LdxruVEUZkbiqTQRFKpYTADHF7pUFu7xVVnkt0CE6b-PlUgGRD94iKHzWHKF8kxEFDLuzp0_KzEhX6s5YcoKBVPf7F76BLFPpPTLmeAiu4UU1YRxFnWRXS_IrlNPedFdQettC/s640/setupexe.png" title="setup.exe" width="640" /></a></div>
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<br />
Right click to C:drive -> Properties -> Disk Cleanup -> Clean up System files -> Enables Temporary Windows installation files -> OK<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEkCxFDziqmfUg6vAn9v0VdGTEmiyItIQLdwIC6ntCOWIEsyZLpp3-yVeiKYYsVo_s2b4LRyHVzu2bCkasC305ug0H4MHfkANXrLdeHMld0erihXmDusMJpdlPw7vAo5dse6TDOVVM3KDC/s1600/Diskcleanup.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Diskcleanup" border="0" height="358" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEkCxFDziqmfUg6vAn9v0VdGTEmiyItIQLdwIC6ntCOWIEsyZLpp3-yVeiKYYsVo_s2b4LRyHVzu2bCkasC305ug0H4MHfkANXrLdeHMld0erihXmDusMJpdlPw7vAo5dse6TDOVVM3KDC/s640/Diskcleanup.png" title="Diskcleanup" width="640" /></a></div>
<br />
<br />
<br />
<b><u>How to remove Windows 10's Forced updates from being re-downloaded</u></b><br />
<br />
Disk cleanup remove windows 10 files but after a reboot the updates may be re- downloaded with windows updates<br />
<br />
to control this follow the next step:<br />
<br />
go to control panel-> Programs and features-> View installed updates<br />
<br />
and at top right side of the screen search for the below updates<br />
<br />
for windows 8: KB3035583, KB2976978<br />
and for windows 7: KB3035583, KB2952664, KB3021917<br />
right-click each of them, and hit the uninstall option, but after this process a reboot will required, so do it, and after that follow the below steps:<br />
<br />
Control Panel-> Windows Updates-> Check for Updates-> View Uninstalled updates<br />
<br />
Look for the updates you just removed, right-click them one by one and hit the Hide update option.</div>
Sudhir Mishrahttp://www.blogger.com/profile/11214848219801915562noreply@blogger.com0tag:blogger.com,1999:blog-8030200212277821167.post-21908014210703603892015-09-12T02:45:00.000-07:002015-09-12T02:45:19.275-07:00Bazel by Google<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZS3TFe6o97JCa-2Bn0IMGJQFj3gTwBKQCcJSgmEJYyaZXehQT3G0AOC2rdfX53rKN2Imgf-0QKRrjurR1FTJ5nKoPdI7HnhQbe58DANoq73l2-XH96Hfk99sQd2Bt0LkPmhnh20giAIUK/s1600/bazel.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="Bazel by google" border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZS3TFe6o97JCa-2Bn0IMGJQFj3gTwBKQCcJSgmEJYyaZXehQT3G0AOC2rdfX53rKN2Imgf-0QKRrjurR1FTJ5nKoPdI7HnhQbe58DANoq73l2-XH96Hfk99sQd2Bt0LkPmhnh20giAIUK/s640/bazel.jpg" title="Bazel" width="640" /></a></div>
Google <span style="color: red;"><b><a href="http://google-opensource.blogspot.in/2015/09/building-build-system-bazel-reaches-beta.html" target="_blank"><span style="color: red;">announce</span></a> </b></span>the Beta release of <b><u>Bazel</u></b>, an open source system that automates software that builds and tests android apps.<br />
<br />
<b><u>Bazel</u></b> supports java, Objective-C and C++ out of box, and can be extended to support arbitrary programming languages.<br />
<br />
<b><u>Bazel</u></b> is a flavor of the tool that Google uses to build its server software internally. It has expanded to build other software as well, like mobile apps (iOS, Android) that connect to our servers.<br />
<br />
<b><u>Bazel</u></b> shines at building and testing projects with a large codebase, projects written in compiled languages, projects that deploy on multiple platforms<br />
<br />
<b><u>Bazel</u></b> can run on different platform, currently, Linux and Mac OS X. <br />
<br />
<b><u>Bazel</u></b> is similar to other tools like Make, Ant, Gradle, Buck, Pants and Maven.<br />
<br />
It also includes support for building Android and iOS apps, as well as Docker images, and lets you use libraries from sources like GitHub and Maven. If you prefer, you can dig into <b><u>Bazel’s</u></b> API to add your own build rules.<br />
<div>
<br /></div>
<br /></div>
Sudhir Mishrahttp://www.blogger.com/profile/11214848219801915562noreply@blogger.com0tag:blogger.com,1999:blog-8030200212277821167.post-57265412864376870982015-09-12T00:53:00.002-07:002015-09-12T01:02:29.483-07:00iPhone 6S vs iPhone 6S Plus<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="text-align: left;">
<span style="font-size: large;"><b>iPhone 6S vs iPhone 6S Plus</b>:</span></div>
<i><u><b><br /></b></u></i>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMVw1i93m2-ybBWiZuZ9EnY41KnSWX-mQEwU9UGS3qF8V6pCiu4xQF_EnqdAuF4H_rvXrJRlGv-gDPO_4sb5tC6MwqDVvwuKSAVF3QT_RIwkf9GTnaGmTF8FlacHFNl-0kxsXrr8VAMgLn/s1600/iPhone-6S.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="iPhone 6S and iPhone 6S Plus" border="0" height="376" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMVw1i93m2-ybBWiZuZ9EnY41KnSWX-mQEwU9UGS3qF8V6pCiu4xQF_EnqdAuF4H_rvXrJRlGv-gDPO_4sb5tC6MwqDVvwuKSAVF3QT_RIwkf9GTnaGmTF8FlacHFNl-0kxsXrr8VAMgLn/s640/iPhone-6S.png" title="iPhone 6S and iPhone 6S Plus" width="640" /></a></div>
<u><b>1-Design</b></u><br />
<br />
<div style="text-align: justify;">
iPhone 6S: Curved aluminium, gold or light/dark silver, 6.8mm thick, 129g</div>
<br />
iPhone 6S Plus: Curved aluminium, gold or light/dark silver 7.1mm thick, 172g<br />
<br />
<u><b>2-Screen</b></u><br />
<br />
iPhone 6S: 4.7-inch 1334 x 750, “Retina HD” LCD<br />
<br />
iPhone 6S Plus: 5.5-inch 1920 x 1080 LCD, optimisation in landscape<br />
<br />
<u><b>3-Camera</b></u><br />
<br />
iPhone 6S: 8MP camera, 1/3.06-inch sensor, true-tone flash,f/2.2 aperture dual-LED flash, phase detection<br />
<br />
iPhone 6S Plus: 8MP camera, 1/3.06-inch sensor, true-tone flash,f/2.2 aperture dual-LED flash, phase detection, OIS<br />
<br />
<u><b>4-Software</b></u><br />
<br />
iPhone 6S and iPhone 6S Plus: iOS 9<br />
<br />
<u><b>5-Performance</b></u><br />
<br />
iPhone 6S: Apple A9 64-bit and M9 co-processor<br />
<br />
iPhone 6S Plus: Apple A9 64-bit and M9 co-processor<br />
<br />
<u><b>6-Storage and Price</b></u><br />
<br />
The iPhone 6S will start at £539, while the iPhone 6S Plus starts at £619. Breaking that down further:<br />
<br />
iPhone 6S 16GB: £539<br />
iPhone 6S 64GB: £619<br />
iPhone 6S 128GB: £699<br />
<br />
iPhone 6S Plus 16GB: £619<br />
iPhone 6S Plus 64GB: £699<br />
iPhone 6S Plus 128GB: £789<br />
<br />
<u><b>7-Battery Life</b></u><br />
<br />
iPhone 6S: 1,810 mAh battery, 11 hours video, 11 hours browsing<br />
<br />
iPhone 6S Plus: 2,915 mAh battery, 14 hours video, 12 hours browsing<br />
<br />
<u><b>8-Colours</b></u><br />
<u><b><br /></b></u>
iPhone 6S and iPhone 6S Plus: Silver, Gold, Space Gray, Rose Gold<br />
<u><b><br /></b></u>
<b><u>9-Sensors</u></b><br />
<br />
Compass/ Magnetometer<br />
Proximity sensor<br />
Accelerometer<br />
Ambient light sensor<br />
Gyroscope<br />
Barometer<br />
<br />
<u><b>10- 3D touch</b></u><br />
<u><b><br /></b></u>
iPhone 6s introduces an entirely new way to interact with your phone. For the first time, iPhone senses how much pressure you apply to the display. In addition to familiar Multi‑Touch gestures like Tap, Swipe, and Pinch, 3D Touch introduces Peek and Pop. This brings a new dimension of functionality to the iPhone experience. And when you use 3D Touch, your iPhone responds with subtle taps. So not only will you see what a press can do — you’ll feel it.</div>
Sudhir Mishrahttp://www.blogger.com/profile/11214848219801915562noreply@blogger.com0tag:blogger.com,1999:blog-8030200212277821167.post-59055135549198714232013-07-02T01:07:00.004-07:002015-12-06T00:01:47.878-08:00FEATURES OF WINDOWS 8.1<div dir="ltr" style="text-align: left;" trbidi="on">
Microsoft released the preview version of windows 8.1 operating system at the build 2013 conference in San Francisco on wed.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcBetjHm45MzEg8ssF3vGbq5JHD1McE8TrvbmPWtMz-CVd7MQVHmuxTe0yZQZYPJF4F36Le9LYU3V3yu2oGYlqBdIvQEyql3f0K_t3fAl9FLafwZFZaE-t8VndTK2ic3kEyyh5CxOkFEo1/s770/windows-81-preview.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="179" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjcBetjHm45MzEg8ssF3vGbq5JHD1McE8TrvbmPWtMz-CVd7MQVHmuxTe0yZQZYPJF4F36Le9LYU3V3yu2oGYlqBdIvQEyql3f0K_t3fAl9FLafwZFZaE-t8VndTK2ic3kEyyh5CxOkFEo1/s320/windows-81-preview.jpg" width="320" /></a></div>
<br />
<br />
The windows 8.1 Operating System is in developing phase.<br />
<br />
Windows 8.1 is updation of windows 8 with some of extra features and fully loaded apps.<br />
<br />
The previous version of windows 8.1 iso files available for download from Microsoft website.<br />
<br />
Be careful while you installing this previous version of windows 8.1 Operating System as your system may crash.<br />
<br />
You can search anything from your PC,your apps and the web. Powered by Bing.<br />
In Windows 8.1 you will notice that Windows store has a new look which makes it easy to find and download apps.<br />
<br />
You can also set an slide show on lock screen by picking your favourite pictures.<br />
<br />
Windows 8.1 is built in cloud storage,now you can save your data on sky drive and can access your files from anywhere even when you are offline.<br />
<br />
Updated version of win 8.1 contains internet explorer 11 thats make your browsing easier and faster,and also has updated version of skype.<br />
<br />
In 8.1 Operating system there is an start buttom, through which you can easily shutdown,hibernate,sleep,lock,restart,log off and switch user.<br />
<br />
For fully loaded Windows 8.1 Operating System wait for full version of 8.1 operating system - via <a href="http://techcresendo.com/" target="_blank">techcresendo</a><br />
<br /></div>
Sudhir Mishrahttp://www.blogger.com/profile/11214848219801915562noreply@blogger.com0tag:blogger.com,1999:blog-8030200212277821167.post-74872568505360563952013-05-15T01:14:00.002-07:002013-06-11T13:40:24.219-07:00HOW TO PLAY A GAME BY ESTABLISHING A WI-FI CONNECTION?HOW TO PLAY A GAME BY ESTABLISHING A WI-FI CONNECTION...?<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<object width="320" height="266" class="BLOGGER-youtube-video" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" data-thumbnail-src="https://ytimg.googleusercontent.com/vi/4_UjeJIMHR0/0.jpg"><param name="movie" value="https://youtube.googleapis.com/v/4_UjeJIMHR0&source=uds" /><param name="bgcolor" value="#FFFFFF" /><param name="allowFullScreen" value="true" /><embed width="320" height="266" src="https://youtube.googleapis.com/v/4_UjeJIMHR0&source=uds" type="application/x-shockwave-flash" allowfullscreen="true"></embed></object></div>
<br />
<br />
1)ENABLE THE WI-FI <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ9blah6wTEI1TpZVkrKGH-Jt9lsDA0rrRIrH1v5U9mg_XTavDW4QiQbc6X3EtZro9BK-7L0M-n0S9i3-hI2_UJ7OsX9_vStH4vh_MniNvKX4Q_1lwuZmgBcAEoXpXtm6T0sM0vqPs3xNS/s1600/wifi.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ9blah6wTEI1TpZVkrKGH-Jt9lsDA0rrRIrH1v5U9mg_XTavDW4QiQbc6X3EtZro9BK-7L0M-n0S9i3-hI2_UJ7OsX9_vStH4vh_MniNvKX4Q_1lwuZmgBcAEoXpXtm6T0sM0vqPs3xNS/s1600/wifi.png" height="320" width="272" /></a></div>
<br />
2)ON THE TASK BAR LOOK FOR THE "OPEN NETWORKS AND SHARING CENTER" CLICK ON IT .A DIALOGUE BOX APPEARS<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9_pbl0jm3q4oGiSNSw4LE3jvD4ngCJTkGXMl7Kz-458jTP0GrulRZR3ZJE-8H3kxI40uhk5gbxK8X1rAE1dEYuH15Cum2Y6LZoJS6TE5ywqyWSO4zxn7D3tl40Hop2BHtk0y0i2rfvAnO/s1600/2Untitled.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9_pbl0jm3q4oGiSNSw4LE3jvD4ngCJTkGXMl7Kz-458jTP0GrulRZR3ZJE-8H3kxI40uhk5gbxK8X1rAE1dEYuH15Cum2Y6LZoJS6TE5ywqyWSO4zxn7D3tl40Hop2BHtk0y0i2rfvAnO/s1600/2Untitled.png" height="320" width="226" /></a></div>
<br />
3)CLICK ON "SET UP A NEW CONNECTION OR NETWORK"<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiI5Y39iJjtQK_K6QiIlDSOVC_49ciAFqDjXtOl-QRtL7g9r7l0oeeTcrVXpy0nW5YN6xSuO-xaFaRsu7E6qNVk-79pWKbJtxBXXSfADYMqIxG_KPVQiI6lwtV_9aQv3tNXXCIz1166AWQG/s1600/4Untitled.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiI5Y39iJjtQK_K6QiIlDSOVC_49ciAFqDjXtOl-QRtL7g9r7l0oeeTcrVXpy0nW5YN6xSuO-xaFaRsu7E6qNVk-79pWKbJtxBXXSfADYMqIxG_KPVQiI6lwtV_9aQv3tNXXCIz1166AWQG/s1600/4Untitled.jpg" height="225" width="320" /></a></div>
<br />
4)SCROLL DOWN TO CHOOSE SET UP A WIRELESS AND HOC(COMPUTER TO COMPUTER NETWORK) SELECT IT AND CLICK ON NEXT <br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKEdeaeb6rL2AEn6bYrbxMwbD08-LD1lTwpy3WTZPbO9EtLcGSYiXnFN6ytEkHItwKUmJDo2Nlv_ik-joPl9VmoGKL19wxiyVvDlZvLlCbnoDdQkgt2IXMPrQiSKirrQq7AVL4rHxTenKP/s1600/connectionr.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKEdeaeb6rL2AEn6bYrbxMwbD08-LD1lTwpy3WTZPbO9EtLcGSYiXnFN6ytEkHItwKUmJDo2Nlv_ik-joPl9VmoGKL19wxiyVvDlZvLlCbnoDdQkgt2IXMPrQiSKirrQq7AVL4rHxTenKP/s1600/connectionr.jpg" height="204" width="320" /></a></div>
5)THEN AGAIN CLICK ON NEXT<br />
<br />
6)THEN NOW PROVIDE A "NETWORK NAME" AND "SECURITY KEY" OF YOUR CHOICE IT IS OPTIONAL TO SAVE THIS NETWORK CLICK ON NEXT<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuom32Ac27VVmb1b1YdNiwZ15Ryot1zdejjLV2pOxTi4fxFFF5vlkDyR2zjwVTXILdJ_hktm6XJ8w4i7aYTUSvnj-rsMOg-lJZtyginKGZksOb9Qt18nEcaszO_8CWi6DNbIG0Gm7a2WW7/s1600/5Untitled.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuom32Ac27VVmb1b1YdNiwZ15Ryot1zdejjLV2pOxTi4fxFFF5vlkDyR2zjwVTXILdJ_hktm6XJ8w4i7aYTUSvnj-rsMOg-lJZtyginKGZksOb9Qt18nEcaszO_8CWi6DNbIG0Gm7a2WW7/s1600/5Untitled.jpg" height="233" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
7)THE WIRELESS NETWORK IS SUCCESSFULLY CREATED <br />
<br />
8)TO SHARE FILES OPEN NETWORK AND SHARING CENTER IN CONTROL PANEL AND TURN ON THE FILE SHARING<br />
<br />
9)NOW THE PERSON WHO WANTS TO CONNECT TO THAT NETWORK CONNECTION MUST GIVE THE SAME NETWORK NAME/SSID AND SECURITY KEY<br />
AND THEN GO TO NETWORK AND REFRESH THE PAGE AND YOU WILL SEE THE NAME OF THE DEVICE/SYSTEM THAT YOU ARE CONNECTED WITH<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyvijRZZGcckZlyMKNJwXwjIWxt4q2kQXhyxvXNRAGAwGyd8jEPrUHcbkemSbgfRDS_lJmMn06cj1Vi6sMMXd9SiOVEgBK8PlVBJsvFRud7iRdHBqd2kvrP8U0R8cKdO8x1e7Byc4oqe45/s1600/43Untitled.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyvijRZZGcckZlyMKNJwXwjIWxt4q2kQXhyxvXNRAGAwGyd8jEPrUHcbkemSbgfRDS_lJmMn06cj1Vi6sMMXd9SiOVEgBK8PlVBJsvFRud7iRdHBqd2kvrP8U0R8cKdO8x1e7Byc4oqe45/s1600/43Untitled.jpg" height="320" width="204" /></a></div>
<br />
10)NOW YOU ARE READY TO ENJOY THE MULTIPLAYER GAME WITHOUT USING LAN CARD.......Sudhir Mishrahttp://www.blogger.com/profile/11214848219801915562noreply@blogger.com0tag:blogger.com,1999:blog-8030200212277821167.post-40118237397875546602013-03-26T11:04:00.000-07:002013-03-31T04:31:14.936-07:00<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div style="margin-bottom: 0cm; text-align: center;">
<span style="font-size: x-large;"><b>Nexus 7 comes to India</b></span>
</div>
<hr />
<div style="margin-bottom: 0cm; text-align: justify;">
<br /></div>
<div style="text-align: justify;">
</div>
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;"> <span style="font-size: large;"> </span>Finally after a long
wait, the Nexus 7 is gonna be launched in India at 16000 bucks; the
product is expected to be shipped from 5<sup>th</sup> April onwards.
You can book the same from the google site, find the link at bottom
of this article.
</span></div>
<span style="font-size: large;">
</span>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;"><br /></span>
</div>
<span style="font-size: large;">
</span>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;"> The Indian version although is going to be shipped<span style="font-size: large;"> in</span> 16 GB <span style="font-size: large;">variant</span>, while there is no <span style="font-size: large;">announcement</span> about 8 GB version, so far<span style="font-size: large;">;</span> and it <span style="font-size: large;">doesn't</span> seem like <span style="font-size: large;">Google</span>
would actually be willing to release it either, but who is
complaining ? :D .. We all obviously want more space.
</span></div>
<span style="font-size: large;">
</span>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;"><br /></span>
</div>
<span style="font-size: large;">
</span>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;"> <span style="font-size: large;"></span>The Nexus is basically
an Google<span style="font-size: large;"></span> <span style="font-size: large;">flagship</span> product, manufactured by Asus, so this would pitch
in a lot of support from <span style="font-size: large;">Google</span> on software side, given that it even
runs on Android 4.2 and along with project butter, this should run
smooth.
</span></div>
<span style="font-size: large;">
</span>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;"><br /></span>
</div>
<span style="font-size: large;">
</span>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;"> As far as the specs are
concerned the Nexus 7 looks really promising, here is all the aspects
in this little monster : </span></div>
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<br /></div>
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwHRUKbN6TP_DUwgfTqoRFBUrK1k7IOqlHuEDP0SLm5ErmGke1U-JwAuOnxs-cg2-RUvcIbOiDIFjSpd_ThQsCM0_Pb9lIPCOURBfVWiDuIL5sgltlJKa78fY212AANEiMiuEOGgT2CXA5/s1600/unnamed.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwHRUKbN6TP_DUwgfTqoRFBUrK1k7IOqlHuEDP0SLm5ErmGke1U-JwAuOnxs-cg2-RUvcIbOiDIFjSpd_ThQsCM0_Pb9lIPCOURBfVWiDuIL5sgltlJKa78fY212AANEiMiuEOGgT2CXA5/s1600/unnamed.png" /></a></div>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
</div>
<br />
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
</div>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
</div>
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<b></b>
</div>
<b>
</b>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;"><b>1. Built and Screen </b></span></div>
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;"><b> </b>
</span></div>
<span style="font-size: large;">
</span>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<br /></div>
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;">The Nexus is pretty
solid built, given that ASUS is the manufacturer, There <span style="font-size: large;">doesn't</span> seem
like too many things to be felt cheap about.. Would say very good built
for its price range. The tab is 20 cm long and about 12 cm broad with
thickness of 10.45 mm, and above all weighs only about 340 gm, so
seems good for one hand fit! Oh yeah not to forget<span style="font-size: large;"> </span>7<span style="font-size: large;">"</span> inches screen,
moreover the screen is protected by a Scratch-resistant Corning®
glass.</span></div>
<span style="font-size: large;">
</span>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;"><br /></span>
</div>
<span style="font-size: large;">
</span>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;"> The Screen sports a
1200 x 800 resolutions screen, with 216 pixels per inches (ppi),
although the resolution is good, the pixel density of 216 is just OK
! .. <span style="font-size: large;">definitely</span> not the best around. The nexus uses an IPS display.
So overall the screen is decent, <span style="font-size: large;">in fact</span> pretty good for its price
factor, but then Screen is not this tablet's biggest assets, so if we
had to rate it we would say<b> 8/10.</b> </span></div>
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<br /></div>
<span style="font-size: large;">
</span>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
</div>
<span style="font-size: large;">
</span>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<br /></div>
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;"><b>2. Processor, RAM and
GPU.</b></span></div>
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<br /></div>
<span style="font-size: large;">
</span>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;"><br /></span>
</div>
<span style="font-size: large;">
</span>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;"> The Nexus 7 runs on
NVIDIA® Tegra® 3 quad-core processor, which is currently one of the
best mobile cpu in the market, so thats a pretty good hardware, while
1 GB RAM is sure to make a smoother interface for the users.
</span></div>
<span style="font-size: large;">
</span>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;"><br /></span>
</div>
<span style="font-size: large;">
</span>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;"> Not to forget that <span style="font-size: large;">Google</span> had put in a whole new <span style="font-size: large;">research</span> team on project BUTTERS, so as
to make the whole experience on its tablet a butter like, so as far
as <span style="font-size: large;">interface</span> is concerned this sure is a silky experience. We would give<b> 9/10 </b>for this segment. </span></div>
<span style="font-size: large;">
</span>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;"><br /></span>
</div>
<span style="font-size: large;">
</span>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<b><br /></b>
</div>
<b>
</b>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;"><b>3. BATTERY!!</b></span></div>
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<br /></div>
<span style="font-size: large;">
</span>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;"><br /></span>
</div>
<span style="font-size: large;">
</span>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;"> The one biggest problems
according to me in the recent mobile devices has been the battery,
well at least on this device we seem to have a decent battery, with
4325 mAH battery, this device should easily give about 7-8 hours of
active uses, like gaming, wifi and stuff, this can easily be a score of <b>9/10</b>.
</span></div>
<span style="font-size: large;">
</span>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;"><br /></span>
</div>
<span style="font-size: large;">
</span>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<br /></div>
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<b><br /></b>
</div>
<b>
</b>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;"><b>4. Other Inputs</b></span></div>
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<br /></div>
<span style="font-size: large;">
</span>
<br />
<div align="JUSTIFY" style="margin-bottom: 0cm;">
<span style="font-size: large;"><br /></span>
</div>
<span style="font-size: large;">
</span>
<br />
<div style="margin-bottom: 0cm; text-align: left;">
<span style="font-size: large;"><b>1.2 Mgpx FRONT facing
camera</b> </span></div>
<div style="margin-bottom: 0cm; text-align: left;">
<span style="font-size: large;"> (no back camera)</span></div>
<div style="text-align: left;">
<span style="font-size: large;">
</span></div>
<div style="margin-bottom: 0cm; text-align: left;">
<span style="font-size: large;"><b>Android 4.2</b></span></div>
<div style="text-align: left;">
<span style="font-size: large;">
</span></div>
<div style="margin-bottom: 0cm; text-align: left;">
<span style="font-size: large;"><b> WiFi 802.11 b/g/n<br />
Bluetooth<br /> NFC</b></span></div>
<div style="text-align: left;">
<span style="font-size: large;">
</span></div>
<div style="margin-bottom: 0cm; text-align: left;">
<span style="font-size: large;"><b> Microphone<br /> Accelerometer<br /> GPS<br /> Magnetometer<br /> Gyroscope</b></span></div>
<span style="font-size: large;">
</span>
<br />
<div align="LEFT" style="margin-bottom: 0cm;">
<span style="font-size: large;"><br /></span>
</div>
<span style="font-size: large;">
</span>
<br />
<div align="LEFT" style="margin-bottom: 0cm;">
<br /></div>
<div align="LEFT" style="margin-bottom: 0cm;">
<span style="font-size: large;"><b>ALL That we find awesome
about NEXUS 7 (pros) : </b></span></div>
<div align="LEFT" style="margin-bottom: 0cm;">
<span style="font-size: large;"><b> </b>
</span></div>
<span style="font-size: large;">
</span>
<br />
<div align="LEFT" style="margin-bottom: 0cm;">
<span style="font-size: large;"><br /></span>
</div>
<span style="font-size: large;">
</span>
<br />
<div style="font-weight: normal; margin-bottom: 0cm; text-align: justify;">
<span style="font-size: large;"> 1. The
processor : 1.2 GHZ NVIDIA® Tegra® 3 quad-core processors along 1
GB RAM are extremely gaming + app friendly, makes for a smooth usage.</span></div>
<div style="text-align: justify;">
<span style="font-size: large;">
</span></div>
<div style="font-weight: normal; margin-bottom: 0cm; text-align: justify;">
<span style="font-size: large;"><br /></span>
</div>
<div style="text-align: justify;">
<span style="font-size: large;">
</span></div>
<div style="font-weight: normal; margin-bottom: 0cm; text-align: justify;">
<span style="font-size: large;"> <span style="font-size: large;"></span>2. The
Battery, we really like the 4325 mAH power, good enough to run
through all days play and still not trouble you for charge.</span></div>
<div style="text-align: justify;">
<span style="font-size: large;">
</span></div>
<div style="font-weight: normal; margin-bottom: 0cm; text-align: justify;">
<span style="font-size: large;"><br /></span>
</div>
<div style="text-align: justify;">
<span style="font-size: large;">
</span></div>
<div style="font-weight: normal; margin-bottom: 0cm; text-align: justify;">
<span style="font-size: large;"> 3.
Native support from Google.</span></div>
<span style="font-size: large;">
</span>
<br />
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<span style="font-size: large;"><br /></span>
</div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<span style="font-size: large;"><br /></span>
</div>
<span style="font-size: large;">
</span>
<br />
<div align="LEFT" style="margin-bottom: 0cm;">
<span style="font-size: large;"><b>And the cons : </b></span></div>
<div align="LEFT" style="margin-bottom: 0cm;">
<span style="font-size: large;"><b> </b>
</span></div>
<span style="font-size: large;">
</span>
<br />
<div align="LEFT" style="margin-bottom: 0cm;">
<span style="font-size: large;"><br /></span>
</div>
<span style="font-size: large;">
</span>
<br />
<div style="font-weight: normal; margin-bottom: 0cm; text-align: justify;">
<span style="font-size: large;"> 1.
Seriously we miss the back facing camera, although the front facing
1.2 mgpx camera is good, the back camera would have been just
perfect.</span></div>
<div style="text-align: justify;">
<span style="font-size: large;">
</span></div>
<div style="font-weight: normal; margin-bottom: 0cm; text-align: justify;">
<span style="font-size: large;"><br /></span>
</div>
<div style="text-align: justify;">
<span style="font-size: large;">
</span></div>
<div style="font-weight: normal; margin-bottom: 0cm; text-align: justify;">
<span style="font-size: large;"> 2. 216
ppi screen could have been improved, not that it under performs or
anything, but then is could have just been a really cool.</span></div>
<div style="font-weight: normal; margin-bottom: 0cm; text-align: justify;">
<br /></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<br /></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<span style="font-size: large;"><b>Benchmarks :</b></span></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<br /></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<br /></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<span style="font-size: large;"><b>The CPU and processor test (geekbench)</b></span></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<b></b></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<b><br /></b></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi66Epi6fcpcgnu_P704hHQ__KtE0DTpKtgxevSR6fHSZzqUyrfMYu30_LB7xxA4Ar9XLk2o6fwLtnI-nyTcMXuodWd54LsXSw85i5hyn53a7KO2t_opDjarFknvXc9CN4XPQwdT5P0uV2X/s1600/Nexus-7-Benchmark-640x1024.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi66Epi6fcpcgnu_P704hHQ__KtE0DTpKtgxevSR6fHSZzqUyrfMYu30_LB7xxA4Ar9XLk2o6fwLtnI-nyTcMXuodWd54LsXSw85i5hyn53a7KO2t_opDjarFknvXc9CN4XPQwdT5P0uV2X/s1600/Nexus-7-Benchmark-640x1024.png" /></a></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<br /></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<br /></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<b><span style="font-size: large;"> GPU test (vellamo)</span></b></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<br /></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<br /></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0CCqtHoz8UvLFv7qfeKkJMPa6fko3iz8DJP3Mx5W9KLCpr6YlGn0z4hCv4V-cOSxSCdfb0PTpX5hO40jVO-rwNl2E7jBtz2s_OHj2nqJ2oPRke37WXnrLKQm2LrmN_CQJUKHBcjgcG03I/s1600/exus7vellamo.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0CCqtHoz8UvLFv7qfeKkJMPa6fko3iz8DJP3Mx5W9KLCpr6YlGn0z4hCv4V-cOSxSCdfb0PTpX5hO40jVO-rwNl2E7jBtz2s_OHj2nqJ2oPRke37WXnrLKQm2LrmN_CQJUKHBcjgcG03I/s1600/exus7vellamo.png" /></a></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<br /></div>
<div style="font-weight: normal; margin-bottom: 0cm; text-align: justify;">
<br /></div>
<div style="font-weight: normal; margin-bottom: 0cm; text-align: justify;">
<span style="font-size: large;"><b>Our Verdict </b></span></div>
<div style="font-weight: normal; margin-bottom: 0cm; text-align: justify;">
<br /></div>
<div style="font-weight: normal; margin-bottom: 0cm; text-align: justify;">
<span style="font-size: large;"><b> </b><span style="font-size: large;">The <span style="font-size: large;">Nexus 7<span style="font-size: large;"> is a really good tablet<span style="font-size: large;">, for <span style="font-size: large;">its pr<span style="font-size: large;">ice range<span style="font-size: large;">. The above be<span style="font-size: large;">nchmark<span style="font-size: large;">s speaks pos<span style="font-size: large;">itive about the product as <span style="font-size: large;">well<span style="font-size: large;">, overall th<span style="font-size: large;">is <span style="font-size: large;">is a really <span style="font-size: large;">good prod<span style="font-size: large;">uct and <span style="font-size: large;">is <span style="font-size: large;">definitely <span style="font-size: large;">one to be <span style="font-size: large;">looked at<span style="font-size: large;">, we would give it <b>9/10<span style="font-size: large;">. </span></b><span style="font-size: large;"><span style="font-size: large;">So if you looking for a tablet <span style="font-size: large;">in 15<span style="font-size: large;">k range<span style="font-size: large;">, do give this a <span style="font-size: large;">try<span style="font-size: large;">, <span style="font-size: large;">Its worth it <span style="font-size: large;">:<span style="font-size: large;">-) </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<br /></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<br /></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<span style="font-size: x-large;"><b>you can order it from here : </b></span></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<br /></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"> <a href="https://play.google.com/store/devices/details?id=nexus_7_16gb&feature=microsite&hl=en" target="_blank">Buy Nexus 7 (India)</a> </span> </span></span></span></span></span></span></span> </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<br /></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTAzWgBYEzOa9ysB1BQ2nCVsvgBvEiLAoc0SeEA6IdPrJ3iuonW4hfZ6u0iZ_JoPfBPTn5q2dhAI7SC2foK4LNOfbSYedNm4zKRSlr8verWxGr7CusyBz_8ZvGOtUL6FLz8fq7I8YCeuuz/s1600/11_21_45_352_file.jpeg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTAzWgBYEzOa9ysB1BQ2nCVsvgBvEiLAoc0SeEA6IdPrJ3iuonW4hfZ6u0iZ_JoPfBPTn5q2dhAI7SC2foK4LNOfbSYedNm4zKRSlr8verWxGr7CusyBz_8ZvGOtUL6FLz8fq7I8YCeuuz/s1600/11_21_45_352_file.jpeg" /></a></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"><span style="font-size: large;"> </span></span></span></span></span></span></span> </span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<span style="font-size: large;"><b> </b></span></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<br /></div>
<div align="LEFT" style="font-weight: normal; margin-bottom: 0cm;">
<br /></div>
</div>
Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-8030200212277821167.post-7196801994575444672013-03-20T12:39:00.001-07:002013-03-31T04:33:07.305-07:00Features of SAMSUNG GALAXY S4<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.blogger.com/video.g?token=AD6v5dzK4CSB-c-qw-XeXZILP1PnMgQwi94ec-JluWf4taxumTqrfs2_atRKuUDm_OO-cwsbIBRzuKtTua6HltF4PA' class='b-hbp-video b-uploaded' frameborder='0'></iframe></div>
<br class="clear" />
<br />
<hr />
<h1>
Samsung I9500 Galaxy S4 Tech spec</h1>
<h1>
</h1>
<table cellspacing="0"><tbody>
<tr><th rowspan="5" scope="row">General </th> <td class="ttl"> 2G Network</td> <td valign="top"><br /></td><td class="nfo"> GSM 850 / 900 / 1800 / 1900 </td> </tr>
<tr> <td class="ttl"> 3G Network</td> <td valign="top"><br /></td><td class="nfo"> HSDPA 850 / 900 / 1900 / 2100 </td> </tr>
<tr> <td class="ttl"> SIM</td> <td valign="top"><br /></td><td class="nfo"> Micro-SIM</td> </tr>
<tr> <td class="ttl"> Announced</td> <td valign="top"><br /></td><td class="nfo"> 2013, March</td> </tr>
<tr> <td class="ttl"> Status</td> <td valign="top"><br /></td><td class="nfo"> Coming soon. Exp. release 2013, April 26th</td> </tr>
</tbody></table>
<table cellspacing="0"><tbody>
<tr> <th rowspan="2" scope="row">Body </th> <td class="ttl"> Dimensions </td> <td class="nfo">136.6 x 69.8 x 7.9 mm (5.38 x 2.75 x 0.31 in)</td><td valign="top"><br /></td><td valign="top"><br /></td><td valign="top"><br /></td> </tr>
<tr> <td class="ttl"> Weight</td> <td class="nfo">130 g (4.59 oz)</td><td valign="top"><br /></td><td valign="top"><br /></td><td valign="top"><br /></td> </tr>
</tbody></table>
<table cellspacing="0"><tbody>
<tr> <th rowspan="5" scope="row">Display </th> <td class="ttl"> Type</td> <td class="nfo"> Super AMOLED capacitive touchscreen, 16M colors</td> </tr>
<tr> <td class="ttl"> Size</td> <td class="nfo"> 1080 x 1920 pixels, 5.0 inches (~441 ppi pixel density)</td> </tr>
<tr> <td class="ttl"> Multitouch</td> <td class="nfo"> Yes</td> </tr>
<tr> <td class="ttl"> Protection</td> <td class="nfo"> Corning Gorilla Glass 3</td> </tr>
<tr><td class="ttl"></td><td class="nfo"> -TouchWiz UI</td></tr>
</tbody></table>
<table cellspacing="0"><tbody>
<tr> <th rowspan="3" scope="row">Sound </th> <td class="ttl"> Alert types </td> <td class="nfo">Vibration; MP3, WAV ringtones</td> </tr>
<tr> <td class="ttl"> Loudspeaker </td> <td class="nfo">Yes</td> </tr>
<tr> <td class="ttl"> 3.5mm jack </td> <td class="nfo">Yes</td> </tr>
</tbody></table>
<table cellspacing="0"><tbody>
<tr> <th rowspan="2" scope="row">Memory</th> <td class="ttl"> Card slot </td> <td class="nfo">microSD, up to 64 GB</td></tr>
<tr> <td class="ttl"> Internal</td> <td class="nfo">16/32/64 GB storage, 2 GB RAM</td> </tr>
</tbody></table>
<table cellspacing="0"><tbody>
<tr> <th rowspan="10" scope="row">Data </th> <td class="ttl"> GPRS </td> <td class="nfo">Yes</td> </tr>
<tr> <td class="ttl"> EDGE</td> <td class="nfo">Yes</td> </tr>
<tr> <td class="ttl"> Speed</td> <td class="nfo">HSDPA, 42.2 Mbps; HSUPA, 5.76 Mbps</td> </tr>
<tr> <td class="ttl"> WLAN</td> <td class="nfo">Wi-Fi 802.11 a/b/g/n/ac, dual-</td></tr>
</tbody></table>
<h1>
</h1>
</div>
Sudhir Mishrahttp://www.blogger.com/profile/11214848219801915562noreply@blogger.com0tag:blogger.com,1999:blog-8030200212277821167.post-69438154607292766302013-03-15T09:58:00.001-07:002013-03-15T10:04:05.344-07:00How to read / write excel files in java ?<div class="wlWriterHeaderFooter" style="float: none; margin: 0px; padding: 0px 0px 0px 0px;">
<a class="google-buzz-button" data-button-style="normal-count" data-url="http://techyrajeev.blogspot.com/2013/03/how-to-read-write-excel-files-in-java.html" href="http://www.google.com/buzz/post" title="Post on Google Buzz"></a><script src="http://www.google.com/buzz/api/button.js" type="text/javascript"></script></div>
<hr />
In this blog post We will learn how to create/read excel files in java. <br />
For all type of Microsoft Documents we can use an open source lib –<b> <a href="http://poi.apache.org/" rel="nofollow" target="_blank" title="Apache POI Main Page">Apache POI</a>.</b><br />
This library can help us to read/writer all Microsoft Document Formats,But we will use it for excels only.<br />
Apache POI provides two type of API for excel manipulation<br />
<ul>
<li><b>POI-HSSF – </b>excel manipulation in excel –97(2007) file format(<b>xls</b>) </li>
<li><b>POI-XSSF - </b>excel manipulation in excel –2007 file format(<b>xlsx</b>)</li>
</ul>
<b><u>Steps to follow to create an excel file:</u></b><br />
<ul>
<li><b><u>Create a new workbook: </u></b>Work book creates the excel files which we can use for read and write.Work Book can be created in two way- <pre>Workbook wb = new HSSFWorkbook();// For old format</pre>
<br /> <pre>or</pre>
<br /> <pre>Workbook wb = new XSSFWorkbook();// For new format</pre>
<br /> </li>
<li><b><u>Create the sheets inside the workbook: </u></b>These sheets contains cells in which the actual data resides.<br /><br /> <pre>Sheet sheet1 = wb.createSheet("Result");
Sheet sheet2 = wb.createSheet("Result2");</pre>
</li>
</ul>
<ul>
<li><u><span style="font-family: Courier New;"><b><span style="font-family: Arial;">Create the rows inside sheet to hold the cells:</span> </b></span></u>Row row = sheet.createRow((0);//Note that rows are zero index based i.e. first row starts with 0 index.</li>
<br /><br />
<li><b><u>Create the cells inside the row to hold the data:</u></b> Cells are also zero index based as rows.<br /><br />Cell cell = row.createCell(0);<br /><br />cell.setCellValue(1);</li>
<br />
<li><b><u>Writing the excel sheet to a file:</u></b><br /><br /> <pre> FileOutputStream fileOut = new FileOutputStream("my_workbook.xlsx");
wb.write(fileOut);
fileOut.close();</pre>
</li>
</ul>
<br />
<pre><b><span style="font-family: Arial;"><u>Steps to follow to read an excel file:</u> </span></b>InputStream input = new FileInputStream("my_workbook.xlsx");
Workbook wBook = WorkbookFactory.create(input);
Sheet sheet = wBook.getSheetAt(0);
Row row = sheet.getRow(2);
Cell cell = row.getCell(3);</pre>
<br />
<br />
<pre><span style="font-family: Arial;"><b><u>Example:</u></b></span></pre>
<br />
<br />
<pre class="javacode"><span class="kwrd">public</span> <span class="kwrd">class</span> ExcelWriter {
<span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> main(String[] args) {
Workbook wb = <span class="kwrd">new</span> HSSFWorkbook();
Sheet sheet = wb.createSheet(<span class="str">"demo sheet"</span>);
<span class="rem">// Create a row and put some cells in it. Rows are 0 based.</span>
Row row = sheet.createRow((<span class="kwrd">short</span>)0);
<span class="rem">// Create a cell and put a value in it.</span>
row.createCell(1).setCellValue(999);
row.createCell(2).setCellValue(<span class="str">"Empty Heart"</span>);
row.createCell(3).setCellValue(<span class="kwrd">true</span>);
<span class="rem">// Write the output to a file</span>
FileOutputStream fileOut = <span class="kwrd">new</span> FileOutputStream(<span class="str">"demo.xls"</span>);
wb.write(fileOut);
fileOut.close();
}
}</pre>
Anonymoushttp://www.blogger.com/profile/16135639531826908086noreply@blogger.com0tag:blogger.com,1999:blog-8030200212277821167.post-75820133167885300372013-01-14T07:43:00.001-08:002015-12-06T00:04:38.198-08:00Using Regular Expressions in Java<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="wlWriterHeaderFooter" style="float: none; margin: 0px; padding: 0px 0px 0px 0px;">
<a class="google-buzz-button" data-button-style="normal-count" data-url="http://techyrajeev.blogspot.com/2013/01/using-regular-expressions-in-java.html" href="http://www.google.com/buzz/post" title="Post on Google Buzz"></a><script src="http://www.google.com/buzz/api/button.js" type="text/javascript"></script></div>
<br />
<hr />
In this java tutorial we will learn to use regular expression in java.Regular expression is very powerful tool for text manipulation and searching.It provides the fastest searching in huge amount of available data.So if you know it definitely you will save a lot time while doing these operations.In this tutorial I am going to describe how to use regular expression in java,I will not teach you the regular expression(If you are new to regular expression then please update yourself first via <a href="http://techcresendo.com/" target="_blank">techcresendo.com</a>)<br />
In java we have <b>java.util.regex</b> package for regular expressions.This package basically contains three classes<br />
<ul>
<li><b><u>Pattern: </u></b>This class represents the pattern in regular expression.Pattern is basically a format of text which needs to be matched in a group of texts.Patterns are constructed using regular expressions. e.g pattern </li>
<pre>"[tT]rue" matches true or True</pre>
<br />
<li><span style="font-family: "courier new";"></span><b><u>Matcher:</u></b> This class does the matching of the compiled pattern against an input string.</li>
<br />
<li><b><u>PatternSyntaxException:</u></b> This class represents the exception which are thrown when your regular expression pattern is not correct.(It is unchecked exception)</li>
</ul>
<b><u>Steps to create a pattern matching program:</u></b><br />
<ol>
<li>Create a pattern object.This object defines your regular expression. <b>Pattern pattern=Pattern.compile(“regex”);</b></li>
<br />
<li>Now with the help of Pattern object we can get Matcher object for a given input text(into which pattern to be matched). <b>Matcher matcher=pattern.matcher(INPUT_TEXT);</b> </li>
<br />
<li>Now using this matcher object we can easily find the pattern in the text as we will see in the example program.</li>
</ol>
<br />
<pre class="javacode">package com.techy.rajeev;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
<span class="kwrd">public</span> <span class="kwrd">class</span> PatternMatch {
<span class="kwrd">public</span> <span class="kwrd">static</span> final String INPUT_TEXT = <span class="str">"This is a test for regular expression Testing."</span>;
<span class="kwrd">public</span> <span class="kwrd">static</span> final String PATTERN = <span class="str">"[tT]est"</span>;
<span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> main(String[] args) {
Pattern pattern = Pattern.compile(PATTERN);
Matcher matcher = pattern.matcher(INPUT_TEXT);
<span class="kwrd">while</span> (matcher.find()) {
System.<span class="kwrd">out</span>.print(<span class="str">"Start pos: "</span> + matcher.start());
System.<span class="kwrd">out</span>.print(<span class="str">" End pos: "</span> + matcher.end() + <span class="str">" "</span>);
System.<span class="kwrd">out</span>.println(matcher.group());
}
}
} </pre>
<br />
<br />
<br />
<b><u>Output:</u></b><br />
<br />
Start pos: 10 End pos: 14 test<br />
Start pos: 38 End pos: 42 Test</div>
Anonymoushttp://www.blogger.com/profile/16135639531826908086noreply@blogger.com0tag:blogger.com,1999:blog-8030200212277821167.post-8026092209054429502012-12-25T08:46:00.001-08:002012-12-25T08:59:53.098-08:00How to create SFTP connection using java ?<div class="wlWriterHeaderFooter" style="float: none; margin: 0px; padding: 0px 0px 0px 0px;">
<a class="google-buzz-button" data-button-style="normal-count" data-url="http://techyrajeev.blogspot.com/2012/12/how-to-create-sftp-connection-using-java.html" href="http://www.google.com/buzz/post" title="Post on Google Buzz"></a><script src="http://www.google.com/buzz/api/button.js" type="text/javascript"></script></div>
<br />
<hr />
In this blog post we will learn how to create a secure FTP connection using java.SFTP is much more secure than its predecessor FTP since SFTP is based on SSH.<br />
<a href="http://sourceforge.net/projects/javaocr/" rel="nofollow" target="_blank">Here</a> We will develop a SFTP client.Basically SFTP clients are programs that use SSH to access, manage, and transfer files. SFTP clients are functionally similar to FTP clients, but they use different protocols.<br />
To create a SFTP connection to a server for file transfer or any other FTP operation we will use an open source library called <b>JSCh</b>. You can download this library from <a href="http://www.jcraft.com/" rel="nofollow" target="_blank" title="Techyrajeev"><span style="color: #4f81bd;">http://www.jcraft.com/</span></a><br />
Add this library to your class path and start creating the program.<br />
This example shows how to get a file from the server using SFTP.<br />
<pre class="javacode">package com.techy.rajeev;
import com.jcraft.jsch.*;
<span class="rem">/**</span>
<span class="rem"> * @param args</span>
<span class="rem"> */</span>
<span class="kwrd">public</span> <span class="kwrd">class</span> SFTPTest {
<span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> main(String args[]) {
JSch jsch = <span class="kwrd">new</span> JSch();
Session session = <span class="kwrd">null</span>;
String username=<span class="str">""</span>;<span class="rem">//Put your username here</span>
String password=<span class="str">""</span>;<span class="rem">//Put your password here</span>
String host=<span class="str">""</span>;<span class="rem">//Hostname</span>
String sourceFile=<span class="str">""</span>;<span class="rem">//Path of file on the server</span>
String destFile=<span class="str">""</span>;<span class="rem">//Path of local file</span>
<span class="kwrd">try</span> {
session = jsch.getSession(username,host,22);
session.setConfig(<span class="str">"StrictHostKeyChecking"</span>, <span class="str">"no"</span>);
session.setPassword(password);
session.connect();
Channel channel = session.openChannel(<span class="str">"sftp"</span>);
channel.connect();
ChannelSftp sftpChannel = (ChannelSftp) channel;
sftpChannel.get(sourceFile,destFile);
sftpChannel.exit();
session.disconnect();
} <span class="kwrd">catch</span> (JSchException e) {
e.printStackTrace();
} <span class="kwrd">catch</span> (SftpException e) {
e.printStackTrace();
}
}</pre>
Anonymoushttp://www.blogger.com/profile/16135639531826908086noreply@blogger.com0tag:blogger.com,1999:blog-8030200212277821167.post-25730869735928880152012-12-17T10:48:00.001-08:002012-12-17T10:51:00.947-08:00Java program to generate all possible sub string of a string<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="wlWriterHeaderFooter" style="float: none; margin: 0px; padding: 0px 0px 0px 0px;">
<a class="google-buzz-button" data-button-style="normal-count" data-url="http://techyrajeev.blogspot.com/2012/12/java-program-to-generate-all-possible.html" href="http://www.google.com/buzz/post" title="Post on Google Buzz"></a><script src="http://www.google.com/buzz/api/button.js" type="text/javascript"></script></div>
<hr />
This simple java program generates all possible sub string of given string.You can replace string with StringBuilder or StringBuffer where performance is issue. <br />
<pre class="javacode">package com.techy.rajeev;
<span class="kwrd">public</span> <span class="kwrd">class</span> GenStr {
<span class="rem">/**</span>
<span class="rem"> * @param args</span>
<span class="rem"> */</span>
<span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> genAllSubStr(String str){
<span class="kwrd">for</span>(<span class="kwrd">int</span> i=0;i<str.length();i++){
<span class="kwrd">for</span>(<span class="kwrd">int</span> j=i;j<str.length();j++){
System.<span class="kwrd">out</span>.println(str.substring(i, j+1));
}
}
}
<span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> main(String[] args) {
genAllSubStr(<span class="str">"abc"</span>);
}
}</pre>
<br />
<br />
<b><u>Output:</u></b><br />
<br />
a <br />ab <br />abc <br />b <br />bc <br />c <br /><br /> </div>
Anonymoushttp://www.blogger.com/profile/16135639531826908086noreply@blogger.com0tag:blogger.com,1999:blog-8030200212277821167.post-43921737484032720932012-12-04T05:58:00.001-08:002012-12-04T06:04:07.113-08:00Java program to generate permutation of a string<div class="wlWriterHeaderFooter" style="float: none; margin: 0px; padding: 0px 0px 0px 0px;">
<a class="google-buzz-button" data-button-style="normal-count" data-url="http://techyrajeev.blogspot.com/2012/12/java-program-to-generate-permutation-of.html" href="http://www.google.com/buzz/post" title="Post on Google Buzz"></a><script src="http://www.google.com/buzz/api/button.js" type="text/javascript"></script></div>
<hr />
This post is about generating permutation of a string using a java program.This program has a static method genPerm() method which is used for generation of permutation of the string. genPerm() method is recursive and takes two string arguments and prints the permutations of the second string. <br />
<b><u>Source Code:</u></b><br />
<pre class="javacode"><span class="kwrd">public</span> <span class="kwrd">class</span> GeneratePerm {
<span class="rem">/**</span>
<span class="rem"> * @param args</span>
<span class="rem"> */</span>
<span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> genPerm(String pString,String sb){
<span class="kwrd">if</span>(pString.length()==3)
System.<span class="kwrd">out</span>.println(pString);
<span class="kwrd">for</span>(<span class="kwrd">int</span> i=0;i<sb.length();i++){
genPerm(pString+sb.charAt(i),sb.replaceFirst(sb.charAt(i)+<span class="str">""</span>,<span class="str">""</span>));
}
}
<span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> main(String[] args) {
String sb=<span class="kwrd">new</span> String(<span class="str">"abc"</span>);
genPerm(<span class="str">""</span>,sb);
}
}</pre>
<br />
<pre class="csharpcode"><b><u>Output:</u></b></pre>
abc <br />acb <br />bac <br />bca <br />cab <br />cba <br /><br /> Anonymoushttp://www.blogger.com/profile/16135639531826908086noreply@blogger.com0tag:blogger.com,1999:blog-8030200212277821167.post-74285228925122604772012-10-02T10:32:00.001-07:002012-10-02T10:58:27.576-07:00How to create random folder creating virus?<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="wlWriterHeaderFooter" style="float: none; margin: 0px; padding: 0px 0px 0px 0px;">
<a class="google-buzz-button" data-button-style="normal-count" data-url="http://techyrajeev.blogspot.com/2012/10/how-to-create-random-folder-creating.html" href="http://www.google.com/buzz/post" title="Post on Google Buzz"></a><script src="http://www.google.com/buzz/api/button.js" type="text/javascript"></script></div>
<hr />
<br />
In this blog post I will teach you how to create more than 5000 random folders in a minute but before this I want to warn you that I do not take any responsibility for causing harm to your or any other computer.This tutorial is just for informative purpose only <img alt="Smile" class="wlEmoticon wlEmoticon-smile" src="http://lh5.ggpht.com/-P2B-shqcu6I/UGslFHiF6UI/AAAAAAAAAhM/IXokHWOdakQ/wlEmoticon-smile%25255B2%25255D.png?imgmax=800" style="border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none;" />.<br />
<br />
<br />
<a href="http://lh3.ggpht.com/-Ni39pGceOaQ/UGslGdWuE-I/AAAAAAAAAhU/8_NytOgR9BQ/s1600-h/blogpsot1%25255B12%25255D.jpg"><img alt="Techyrajeev.blogspot.com" border="0" height="155" src="http://lh6.ggpht.com/-tHwH7l0kh1M/UGslH0qLt7I/AAAAAAAAAhc/IVDD-eUjJA0/blogpsot1_thumb%25255B10%25255D.jpg?imgmax=800" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="Techyrajeev.blogspot.com" width="625" /></a><br />
<br />
<br />
For this we will use the help of bat files and simple <b>dos</b> commands.So follow the step by step procedure for creating random folder creating virus if you want to create one.<br />
<br />
<b><u>Step 1:</u></b> Open the notepad or any other text editor<br />
<br />
<b><u>Step 2:</u> T</b>ype the following things<br />
<span class="fullpost"> </span><br />
<span class="fullpost"><b>@ECHO OFF</b></span><br />
<span class="fullpost"> <b>:LABEL</b><br />
<b>md %RANDOM%</b><br />
<b>GOTO LABEL</b></span><br />
<span class="fullpost"><b> </b><br />
<b><u>Explanation: </u></b>This is very simple bat file which runs infinitely with the help of recursive(self) calling(GOTO LABEL) and between these calls we are creating empty directory using md(You can write any other command instead of md).</span><br />
<span class="fullpost"><br />
<u><b>Step 3:</b> </u>Now save it with Computer.bat in your hard disk.</span><br />
<span class="fullpost"><br />
<b><u>Step 4: </u></b>Now send it’s shortcut to desktop and change it’s default icon to icon of the computer or anything you like e.g Internet Explorer but do not forget to change the name accordingly.<br />
<a href="http://lh3.ggpht.com/-fUZOTOQ9l_0/UGslI3jYzuI/AAAAAAAAAhk/bp3dmPqFqN8/s1600-h/ComputerBat%25255B4%25255D.jpg"><img alt="ComputerBat" border="0" height="128" src="http://lh4.ggpht.com/-dpybvcRNouc/UGslKQPrT5I/AAAAAAAAAhs/YlmPUba2DNQ/ComputerBat_thumb%25255B2%25255D.jpg?imgmax=800" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="ComputerBat" width="123" /></a><br />
<b><u>Step 5:</u></b> Now delete or hide the original one from desktop so that user of the system will click on the fake one.Njoy the magic of bat files <img alt="Thumbs up" class="wlEmoticon wlEmoticon-thumbsup" src="http://lh6.ggpht.com/-_dx5L-4Ybt8/UGslLv48l9I/AAAAAAAAAh0/v7N1vELRglU/wlEmoticon-thumbsup%25255B2%25255D.png?imgmax=800" style="border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none;" />.<a href="http://lh5.ggpht.com/-_423UBMv0Po/UGslNL6NK5I/AAAAAAAAAh8/-Nh9qriWNuQ/s1600-h/AfterComputer%25255B3%25255D.jpg"><img alt="AfterComputer" border="0" height="116" src="http://lh6.ggpht.com/-HIXV12Oi8yY/UGslOXjd8TI/AAAAAAAAAiE/z7pYXSgMPNc/AfterComputer_thumb%25255B1%25255D.jpg?imgmax=800" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="AfterComputer" width="120" /></a>
</span> </div>
Anonymoushttp://www.blogger.com/profile/16135639531826908086noreply@blogger.com0tag:blogger.com,1999:blog-8030200212277821167.post-61307779073023640322012-09-29T08:54:00.001-07:002012-09-29T08:57:24.900-07:00BackTrack 5 R3 Unleashed<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="wlWriterHeaderFooter" style="float: none; margin: 0px; padding: 0px 0px 0px 0px;">
<a class="google-buzz-button" data-button-style="normal-count" data-url="http://techyrajeev.blogspot.com/2012/09/backtrack-5-r3-unleashed.html" href="http://www.google.com/buzz/post" title="Post on Google Buzz"></a><script src="http://www.google.com/buzz/api/button.js" type="text/javascript"></script></div>
<div dir="ltr" style="text-align: left;" trbidi="on">
<span id="goog_47563396"></span><span id="goog_47563397"></span> <br />
<hr />
Great news for our hacker friends a new version of popular penetration testing tool <b>BackTrack 5 R3 </b>is released. <br />
BackTrack 5 R3 will provide latest hacking tools and more stable penetration testing environment than its predecessor.BackTrack 5 R3 is built upon linux kernal 3.2.6 which has updated version of hacking tools and latest securities patches. <br />
<br />
<a href="http://lh6.ggpht.com/-5P117BIWPYU/T3xtDNYFuwI/AAAAAAAAAYk/aeaGXzY0XbA/s1600-h/bt5-6%25255B8%25255D.png"><img alt="bt5-6" border="0" height="503" src="http://lh6.ggpht.com/-d2BR-EmOA1Q/T3xtUFoxe_I/AAAAAAAAAYs/B7ad2BHE4T0/bt5-6_thumb%25255B6%25255D.png?imgmax=800" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="bt5-6" width="618" /></a> <br />
<br />
BackTrack main website has a nice tutorial on how to upgrade from BackTrack 5 R1 to BackTrack 5 R3.If you want to upgrade your BackTrack to latest one the you can do it from <a href="http://www.backtrack-linux.org/backtrack/upgrading-to-backtrack-5-r3/" rel="nofollow" target="_blank">this link</a>. <br />
If you are new to BackTrack then you can download the latest BackTrack from <span id="goog_47563408" style="color: #0b5394;"></span><a href="http://www.backtrack-linux.org/downloads/" rel="nofollow"><span style="color: #0b5394;">here</span><span id="goog_47563409"></span></a>.</div>
</div>
Anonymoushttp://www.blogger.com/profile/16135639531826908086noreply@blogger.com0tag:blogger.com,1999:blog-8030200212277821167.post-17937092295482762032012-09-24T10:50:00.000-07:002012-09-24T10:50:22.968-07:00Apple got $1 billion in 30 trucks full of 5 cents coins by Samsung !<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<hr />
After loosing the legal battle with Apple finally Samsung decided to pay the $ 1 billion fine charged by Apple for the infringement of the patents.Tim Cook(Apple’s CEO) got a call from Samsung CEO explaining that Samsung will pay $1 billion fine and perhaps he must have been eagerly waiting for that huge amount of money.<br />
<br />
<br />
And finally they got the money with surprise.Money arrived in fully loaded 30 trucks filled with 5 cents coin <img alt="Smile" class="wlEmoticon wlEmoticon-smile" src="http://lh4.ggpht.com/-l-2WlF9BswI/UGCclELvwrI/AAAAAAAAAgE/Av7nOAzVQXM/wlEmoticon-smile%25255B2%25255D.png?imgmax=800" style="border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none;" />. When the trucks arrived at Apple’s office security personnel stopped the trucks on the gate assuming that trucks arrived at the wrong place but soon Tim cook got a call from Samsung CEO that this is your money and since the legal suit did not specify a single payment method so Samsung is entitled to pay the fine in this way.<br />
<br />
<a href="http://lh4.ggpht.com/-JjS48bmRKgc/UGCcmSKWG9I/AAAAAAAAAgM/JNUyclOhck0/s1600-h/SamsungVs%252520apple%25255B4%25255D.jpg"><img alt="SamsungVs apple" border="0" height="205" src="http://lh4.ggpht.com/-M8oVBetHFzE/UGCcpOZXjgI/AAAAAAAAAgU/H1U1wnQ2YSQ/SamsungVs%252520apple_thumb%25255B2%25255D.jpg?imgmax=800" style="background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="SamsungVs apple" width="364" /></a><br />
A total of 20 billion coins is a new headache to Apple executives as they will need to put in long hours counting all that huge sum of money, to check if it is really $ 1 billion or not.But problem further continues if suppose it is $ 1 billion then they may face problem in depositing that 20 billion 5 cents coins to a bank.<br />
<br />
<br />
<a href="http://lh6.ggpht.com/-j2rRovr7-JI/UGCcsQE4YzI/AAAAAAAAAgc/38d2KmH7O1M/s1600-h/sam%25255B7%25255D.jpg"><img alt="sam" border="0" height="310" src="http://lh3.ggpht.com/-UalnV77UDR8/UGCcwS4BQxI/AAAAAAAAAgk/YTqh8DMb0Pg/sam_thumb%25255B5%25255D.jpg?imgmax=800" style="background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="sam" width="596" /></a><br />
<br />
Lee Kun-hee, Chairman of Samsung Electronics, told the media that Apple can use the coins to buy the refreshments at the little machine for life or melt the coins to make computers, that’s not their problem, Samsung already paid them and it is fulfilled by the law.<br />
But Some sources says that this news is fake and this incident did not happen.People just spread the rumours nothing of this sort has happened.Let’s wait for more <img alt="Winking smile" class="wlEmoticon wlEmoticon-winkingsmile" src="http://lh5.ggpht.com/-NYl1a2PoEH8/UGCcyfundmI/AAAAAAAAAgs/KtXMDAzM5bo/wlEmoticon-winkingsmile%25255B2%25255D.png?imgmax=800" style="border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none;" />.</div>
Anonymoushttp://www.blogger.com/profile/16135639531826908086noreply@blogger.com0tag:blogger.com,1999:blog-8030200212277821167.post-89523050951752420452012-09-22T09:26:00.001-07:002012-09-22T10:33:20.236-07:00Java Tutorial on GridBagLayout Manager<div dir="ltr" style="text-align: left;" trbidi="on">
<hr />
In this java tutorial we are going to discuss about <b>GridBagLayout Manager.</b><br />
GridBagLayout manager is one of the most powerful but complex layout manager in java.It is somewhat similar to <b>GridLayout</b> in the sense that it also arranged the components in the grid, but <a href="http://sourceforge.net/projects/javaocr/" rel="nofollow" target="_blank">here</a> component added can be of varying sizes i.e we can increase or decrease their size to occupy more than one row or column of the grid.<br />
If suppose you are going to use this layout manager in your program then you first decide and draw the outline of GUI you need then proceed further.Life will be much easier(Really).<br />
Most important parts of the GridBagLayout are <b>GridBagConstraints</b> .They specify the size and position, and many more constraints of the each component. We will discuss about each <b>GridBagConstraints</b> fields.<br />
<br />
<table cellpadding="2" cellspacing="0" style="width: 619px;"><tbody>
<tr> <td valign="top" width="113"><b>gridx</b></td> <td valign="top" width="504">The column in which the component will be placed</td> </tr>
<tr> <td valign="top" width="113"><b>gridy</b></td> <td valign="top" width="504">The row in which the component will be placed.</td> </tr>
<tr> <td valign="top" width="113"><b>gridwidth</b></td> <td valign="top" width="504">The no of column the component occupies.</td> </tr>
<tr> <td valign="top" width="113"><b>gridheight</b></td> <td valign="top" width="504">The no of rows the component occupies.</td> </tr>
<tr> <td valign="top" width="113"><b>weightx</b></td> <td valign="top" width="504">The amount of extra space to allocate horizontally. The grid <br />
slot can become wider when extra space is available.</td> </tr>
<tr> <td valign="top" width="113"><b>weighty</b></td> <td valign="top" width="504">The amount of extra space to allocate vertically. The grid slot <br />
can become taller when extra space is available.</td> </tr>
<tr> <td valign="top" width="113"><b>anchor</b></td> <td valign="top" width="504">When component added is smaller than its area then we can use anchor to specify its position.Possible positions are NORTH, NORTHEAST, EAST, SOUTHEAST, SOUTH, SOUTHWEST, WEST, <br />
NORTHWEST or CENTER</td> </tr>
<tr> <td valign="top" width="113"><b>fill</b></td> <td valign="top" width="504">This basically tell how to resize the component when container area is bigger than it’s size.</td> </tr>
<tr> <td valign="top" width="113"></td> <td valign="top" width="504"></td> </tr>
</tbody></table>
We can have a single “<b>GridBagConstraints</b>” instance which is used for specifying the constraints of all the components or seperate “<b>GridBagConstraints</b>” for each of them.<br />
But it is recommended to use seperate “<b>GridBagConstraints” </b>for each of the component added to the container using GridBagLayout Manager.<br />
Now we will use the <b>GridBagLayout</b> in our sample program:<br />
<br />
<span class="fullpost"><br />
<pre class="javacode">package com.techy.rajeev;
import java.awt.EventQueue;
<span class="kwrd">public</span> <span class="kwrd">class</span> GridBagLayoutTest {
<span class="kwrd">private</span> JFrame frmTechyrajeev;
<span class="kwrd">private</span> JTextField textField;
<span class="kwrd">private</span> JTextField textField_1;
<span class="rem">/**</span>
<span class="rem"> * Launch the application.</span>
<span class="rem"> */</span>
<span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> main(String[] args) {
EventQueue.invokeLater(<span class="kwrd">new</span> Runnable() {
<span class="kwrd">public</span> <span class="kwrd">void</span> run() {
<span class="kwrd">try</span> {
GridBagLayoutTest window = <span class="kwrd">new</span> GridBagLayoutTest();
window.frmTechyrajeev.setVisible(<span class="kwrd">true</span>);
} <span class="kwrd">catch</span> (Exception e) {
e.printStackTrace();
}
}
});
}
<span class="rem">/**</span>
<span class="rem"> * Create the application.</span>
<span class="rem"> */</span>
<span class="kwrd">public</span> GridBagLayoutTest() {
initialize();
}
<span class="rem">/**</span>
<span class="rem"> * Initialize the contents of the frame.</span>
<span class="rem"> */</span>
<span class="kwrd">private</span> <span class="kwrd">void</span> initialize() {
frmTechyrajeev = <span class="kwrd">new</span> JFrame();
frmTechyrajeev.setTitle(<span class="str">"techyrajeev"</span>);
GridBagLayout gridBagLayout = <span class="kwrd">new</span> GridBagLayout();
gridBagLayout.columnWidths = <span class="kwrd">new</span> <span class="kwrd">int</span>[]{0, 0, 0, 0, 0, 0};
gridBagLayout.rowHeights = <span class="kwrd">new</span> <span class="kwrd">int</span>[]{0, 0, 0, 0, 0, 0, 0, 0};
gridBagLayout.columnWeights = <span class="kwrd">new</span> <span class="kwrd">double</span>[]{1.0, 0.0, 1.0, 1.0, 0.0,
Double.MIN_VALUE};
gridBagLayout.rowWeights = <span class="kwrd">new</span> <span class="kwrd">double</span>[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0,
Double.MIN_VALUE};
frmTechyrajeev.getContentPane().setLayout(gridBagLayout);
JLabel lblLoginForm = <span class="kwrd">new</span> JLabel(<span class="str">"Login Form"</span>);
GridBagConstraints gbc_lblLoginForm = <span class="kwrd">new</span> GridBagConstraints();
gbc_lblLoginForm.insets = <span class="kwrd">new</span> Insets(5, 0, 5, 5);
gbc_lblLoginForm.gridx = 2;
gbc_lblLoginForm.gridy = 0;
frmTechyrajeev.getContentPane().add(lblLoginForm, gbc_lblLoginForm);
JLabel lblEnterUsername = <span class="kwrd">new</span> JLabel(<span class="str">"Username:"</span>);
GridBagConstraints gbc_lblEnterUsername = <span class="kwrd">new</span> GridBagConstraints();
gbc_lblEnterUsername.anchor = GridBagConstraints.EAST;
gbc_lblEnterUsername.insets = <span class="kwrd">new</span> Insets(0, 0, 5, 5);
gbc_lblEnterUsername.gridx = 1;
gbc_lblEnterUsername.gridy = 1;
frmTechyrajeev.getContentPane().add(lblEnterUsername, gbc_lblEnterUsername);
textField = <span class="kwrd">new</span> JTextField();
GridBagConstraints gbc_textField = <span class="kwrd">new</span> GridBagConstraints();
gbc_textField.insets = <span class="kwrd">new</span> Insets(0, 0, 5, 5);
gbc_textField.fill = GridBagConstraints.HORIZONTAL;
gbc_textField.gridx = 2;
gbc_textField.gridy = 1;
frmTechyrajeev.getContentPane().add(textField, gbc_textField);
textField.setColumns(10);
JLabel label = <span class="kwrd">new</span> JLabel(<span class="str">""</span>);
GridBagConstraints gbc_label = <span class="kwrd">new</span> GridBagConstraints();
gbc_label.insets = <span class="kwrd">new</span> Insets(0, 0, 5, 5);
gbc_label.gridx = 1;
gbc_label.gridy = 2;
frmTechyrajeev.getContentPane().add(label, gbc_label);
JLabel lblPassword = <span class="kwrd">new</span> JLabel(<span class="str">"Password:"</span>);
GridBagConstraints gbc_lblPassword = <span class="kwrd">new</span> GridBagConstraints();
gbc_lblPassword.anchor = GridBagConstraints.EAST;
gbc_lblPassword.insets = <span class="kwrd">new</span> Insets(0, 0, 5, 5);
gbc_lblPassword.gridx = 1;
gbc_lblPassword.gridy = 3;
frmTechyrajeev.getContentPane().add(lblPassword, gbc_lblPassword);
textField_1 = <span class="kwrd">new</span> JTextField();
GridBagConstraints gbc_textField_1 = <span class="kwrd">new</span> GridBagConstraints();
gbc_textField_1.insets = <span class="kwrd">new</span> Insets(0, 0, 5, 5);
gbc_textField_1.fill = GridBagConstraints.HORIZONTAL;
gbc_textField_1.gridx = 2;
gbc_textField_1.gridy = 3;
frmTechyrajeev.getContentPane().add(textField_1, gbc_textField_1);
textField_1.setColumns(10);
JButton btnLogin = <span class="kwrd">new</span> JButton(<span class="str">"Login"</span>);
GridBagConstraints gbc_btnLogin = <span class="kwrd">new</span> GridBagConstraints();
gbc_btnLogin.insets = <span class="kwrd">new</span> Insets(0, 0, 5, 5);
gbc_btnLogin.gridx = 2;
gbc_btnLogin.gridy = 4;
frmTechyrajeev.getContentPane().add(btnLogin, gbc_btnLogin);
JTextArea txtrThisIsA = <span class="kwrd">new</span> JTextArea();
txtrThisIsA.setText(<span class="str">"This is a text area."</span>);
GridBagConstraints gbc_txtrThisIsA = <span class="kwrd">new</span> GridBagConstraints();
gbc_txtrThisIsA.gridwidth = 5;
gbc_txtrThisIsA.fill = GridBagConstraints.BOTH;
gbc_txtrThisIsA.gridx = 0;
gbc_txtrThisIsA.gridy = 6;
frmTechyrajeev.getContentPane().add(txtrThisIsA, gbc_txtrThisIsA);
}
}</pre>
<br /><br /> <a href="http://lh3.ggpht.com/-hewja0QKs_w/UF3l0_rWqoI/AAAAAAAAAfU/Pjr5DNTz3bs/s1600-h/GridBagLayout26.jpg"><img alt="GridBagLayout2" border="0" height="222" src="http://lh5.ggpht.com/-_Stfct2VL88/UF3mrANr5BI/AAAAAAAAAfc/EU0H-km5ptg/GridBagLayout2_thumb4.jpg?imgmax=800" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="GridBagLayout2" width="478" /></a><br />
<br /><br /> This is the grid view of rows and columns of the frame.As you can see it is very easy to divide the whole Gui into rows and columns on the paper and then proceed accordingly for the actual designing using GridBagLayout Manager.<br />
<br /><br /> <b>Output</b> of this GridBagLayout tutorial program is:<br />
<br /><br /> <a href="http://lh6.ggpht.com/-rQ8Zzeb8gNk/UF3ms9P5JaI/AAAAAAAAAfk/v6T-2D81E9I/s1600-h/gridBagLayout4.jpg"><img alt="gridBagLayout" border="0" height="222" src="http://lh3.ggpht.com/-o6K4cSckliM/UF3mvJgpLaI/AAAAAAAAAfs/d_qTPHV2ls0/gridBagLayout_thumb2.jpg?imgmax=800" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="gridBagLayout" width="476" /></a><br />
</span> </div>
Anonymoushttp://www.blogger.com/profile/16135639531826908086noreply@blogger.com0tag:blogger.com,1999:blog-8030200212277821167.post-46698540541365029572012-09-13T09:50:00.001-07:002012-09-16T05:35:27.759-07:00Java Tutorial on Anonymous Inner Class<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="wlWriterHeaderFooter" style="float: none; margin: 0px; padding: 0px 0px 0px 0px;">
<a class="google-buzz-button" data-button-style="normal-count" data-url="http://techyrajeev.blogspot.com/2012/09/java-tutorial-on-anonymous-inner-class.html" href="http://www.google.com/buzz/post" title="Post on Google Buzz"></a><script src="http://www.google.com/buzz/api/button.js" type="text/javascript"></script></div>
<hr />
An anonymous inner class is a very strange type of inner class.It can be created on the fly when needed and It can also be defined inside method argument!.<br />
We will cover all the details about anonymous inner class in this blog post so continue reading.<br />
As the name suggests anonymous inner classes do not have any name so how would you recognize a inner class? Anonymous inner classes are recognized by their parent’s type.<a href="http://sourceforge.net/projects/javaocr/" rel="nofollow" target="_blank">Here</a> parent could be either a class or interface.Basically anonymous inner class can be categorized into two types:<br />
<ul>
<li>As a class providing implementation to a predefined interface. </li>
<li>As a class providing implementation to a predefined class or a abstract class </li>
</ul>
Now we will see both methods<br />
<img alt="Pointing up" class="wlEmoticon wlEmoticon-pointingup" src="http://lh3.ggpht.com/-Wa0AqG-f2rU/UFIO1JpwuvI/AAAAAAAAAe0/1QI2tOHyb-A/wlEmoticon-pointingup%25255B2%25255D.png?imgmax=800" style="border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none;" /><br />
<pre class="javacode"><span class="kwrd">class</span> Test{
<span class="kwrd">public</span> <span class="kwrd">void</span> doTesting(){
System.<span class="kwrd">out</span>.println(<span class="str">"Testing is on the way!"</span>);
}
}
<span class="kwrd">public</span> <span class="kwrd">class</span> InnerJ{
Test t=<span class="kwrd">new</span> Test(){
<span class="kwrd">public</span> <span class="kwrd">void</span> doTesting(){
System.<span class="kwrd">out</span>.println(<span class="str">"Testing completed!"</span>);
}
};<span class="rem">//watch out for semicolon</span>
}</pre>
<br />
<span class="fullpost"><br /> </span><br />
<span class="fullpost">Here what we are saying basically is,that create a anonymous class(without any name) which is a subclass of type <b>Test</b>(<b>extends Test</b>) and declare a reference variable of type <b>Test </b>to hold that anonymous class object since at the same time we are instantiating that anonymous inner class(see the new key word in <b>InnerJ</b>).</span><br />
<span class="fullpost"><br /><br /> <img alt="Fingers crossed" class="wlEmoticon wlEmoticon-fingerscrossed" src="http://lh6.ggpht.com/-FcNxr1gsLsU/UFIO2E-rxXI/AAAAAAAAAe8/8wMyIJPwvLQ/wlEmoticon-fingerscrossed%25255B2%25255D.png?imgmax=800" style="border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none;" /><br />
<br /><br /> </span><br />
<pre class="javacode"><span class="fullpost"><span class="rem">//Now same thing with interface </span>
<span class="kwrd">interface</span> Test{
<span class="kwrd">void</span> doTesting();
}
<span class="kwrd">public</span> <span class="kwrd">class</span> InnerJ{
<span class="rem">//Beware this not instantiation of interface ! </span>
Test t=<span class="kwrd">new</span> Test(){
<span class="kwrd">public</span> <span class="kwrd">void</span> doTesting(){
System.<span class="kwrd">out</span>.println(<span class="str">"Testing completed!"</span>);
}
};<span class="rem">//watch out for semicolon </span>
}</span></pre>
<span class="fullpost">
<br /><br /> here instead of saying <b>extends</b> we say <b>implements</b> and every thing is same.<br />
<br /><br /> <b><u>Restrictions on anonymous inner class: </u></b><br />
<br /><br /> <ul><br />
<li>Anonymous inner classes can implement only one interface </li>
<br /><br />
<li>Anonymous inner classes can either extends a class or implement an interface at a time </li>
<br /> </ul>
</span> </div>
Anonymoushttp://www.blogger.com/profile/16135639531826908086noreply@blogger.com1tag:blogger.com,1999:blog-8030200212277821167.post-37655390317224067362012-08-30T08:50:00.001-07:002015-12-06T00:06:25.716-08:00Java program to divide an image into multiple equal parts<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="wlWriterHeaderFooter" style="float: none; margin: 0px; padding: 0px 0px 0px 0px;">
<a class="google-buzz-button" data-button-style="normal-count" data-url="http://techyrajeev.blogspot.com/2012/08/java-program-to-divide-image-into.html" href="http://www.google.com/buzz/post" title="Post on Google Buzz"></a><script src="http://www.google.com/buzz/api/button.js" type="text/javascript"></script></div>
<br />
<hr />
In this post I am going to demonstrate how to divide an image into equal parts.<a href="http://sourceforge.net/projects/javaocr/" rel="nofollow" target="_blank">Here</a> I have used simple Java image api to manipulate the source image via <a href="http://techcresendo.com/" target="_blank">techcresendo.com</a><br />
In this java program for image dividing ,I have first divided the image into smaller equal size parts and placed them randomly on the buttons on the frame using Grid Layout .<br />
<b><u>Input Image:</u></b><br />
<a href="http://lh5.ggpht.com/-1J8CFsk7ukY/UD-Lj_oGt5I/AAAAAAAAAeE/1usfekt0U4s/s1600-h/img%25255B5%25255D.jpg"><img alt="img" border="0" src="http://lh6.ggpht.com/-BlXsIH5cZ20/UD-LmPMyhGI/AAAAAAAAAeM/yPMfJKbATPU/img_thumb%25255B3%25255D.jpg?imgmax=800" height="338" style="background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="img" width="450" /></a><br />
<b><u></u></b><br />
This program can be used further to develop sliding game puzzle in java.<br />
<pre class="javacode">package com.techy.rajeev.divideImage;
import java.awt.EventQueue;
import java.awt.Image;
import javax.imageio.ImageIO;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import java.awt.GridLayout;
import java.awt.image.BufferedImage;
import java.io.IOException;
import java.net.URL;
<span class="kwrd">public</span> <span class="kwrd">class</span> MainWin {
<span class="kwrd">private</span> JFrame frame;
<span class="kwrd">private</span> JButton []jb=<span class="kwrd">new</span> JButton[9];
<span class="rem">/**</span>
<span class="rem"> * Launch the application.</span>
<span class="rem"> */</span>
<span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> main(String[] args) {
EventQueue.invokeLater(<span class="kwrd">new</span> Runnable() {
<span class="kwrd">public</span> <span class="kwrd">void</span> run() {
<span class="kwrd">try</span> {
MainWin window = <span class="kwrd">new</span> MainWin();
window.frame.setVisible(<span class="kwrd">true</span>);
} <span class="kwrd">catch</span> (Exception e) {
e.printStackTrace();
}
}
});
}
<span class="rem">/**</span>
<span class="rem"> * Create the application.</span>
<span class="rem"> */</span>
<span class="kwrd">public</span> MainWin() {
<span class="kwrd">try</span> {
initialize();
} <span class="kwrd">catch</span> (IOException e) {
e.printStackTrace();
}
}
<span class="rem">/**</span>
<span class="rem"> * Initialize the contents of the frame.</span>
<span class="rem"> * @throws IOException </span>
<span class="rem"> */</span>
<span class="kwrd">private</span> <span class="kwrd">void</span> initialize() throws IOException {
frame = <span class="kwrd">new</span> JFrame();
frame.setBounds(100, 100, 612, 519);
setImage();
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(<span class="kwrd">new</span> GridLayout(3, 3));
<span class="kwrd">for</span>(<span class="kwrd">int</span> i=0;i<9;i++){
frame.add(jb[i]);
}
}
<span class="fullpost">
<span class="kwrd">public</span> <span class="kwrd">void</span> setImage() throws IOException{
URL img=MainWin.<span class="kwrd">class</span>.getResource(<span class="str">"/img/img.jpg"</span>);
BufferedImage bimg=ImageIO.read(img);
<span class="kwrd">int</span> w=bimg.getWidth();
<span class="kwrd">int</span> h=bimg.getHeight();
<span class="kwrd">int</span> count=0;
<span class="kwrd">for</span>(<span class="kwrd">int</span> i=0;i<3;i++){
<span class="kwrd">for</span>(<span class="kwrd">int</span> j=0;j<3;j++){
BufferedImage wim=bimg.getSubimage(i*w/3,j*h/3, w/3, h/3);
Image sc=wim.getScaledInstance(frame.getWidth()/3,
frame.getHeight()/3, Image.SCALE_AREA_AVERAGING);
setupImage(count++,sc);
}
}
}
<span class="kwrd">private</span> <span class="kwrd">void</span> setupImage(<span class="kwrd">int</span> i,Image wim) {
jb[i]=<span class="kwrd">new</span> JButton(<span class="kwrd">new</span> ImageIcon(wim));
}
}</span></pre>
<br />
<br />
<b><u>Output:</u></b><br />
<br />
<br />
<b><u><a href="http://lh5.ggpht.com/-74OqDqUWa-M/UD-LofPEAUI/AAAAAAAAAeU/liBjR0NYK1M/s1600-h/imgdivide%25255B8%25255D.jpg"><img alt="imgdivide" border="0" src="http://lh5.ggpht.com/-YF8N3iYTjgQ/UD-Lpq7z4HI/AAAAAAAAAec/-5hZrukVR8s/imgdivide_thumb%25255B6%25255D.jpg?imgmax=800" height="430" style="background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="imgdivide" width="506" /></a></u></b><br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/16135639531826908086noreply@blogger.com6tag:blogger.com,1999:blog-8030200212277821167.post-56962932321185946872012-08-28T07:59:00.001-07:002015-12-06T00:09:54.081-08:00Extracting text from images<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="wlWriterHeaderFooter" style="float: none; margin: 0px; padding: 0px 0px 0px 0px;">
<a class="google-buzz-button" data-button-style="normal-count" data-url="http://techyrajeev.blogspot.com/2012/08/extracting-text-from-images.html" href="http://www.google.com/buzz/post" title="Post on Google Buzz"></a><script src="http://www.google.com/buzz/api/button.js" type="text/javascript"></script></div>
<br />
<hr />
<br />
In this blog post we are going to discuss about the tools and api for extracting the text from the image.Some of these tools and apis are free and open source but some of them are not free but still you can send request to the company to get developer’s version for free.<br />
<b><u>Java OCR: </u></b><br />
Java OCR is a simple and efficient java based open source library for image processing and optical character recognition.This library can also be used in the development of android based project.<br />
<div class="separator" style="clear: both; text-align: center;">
<img alt="265598" border="0" src="http://lh5.ggpht.com/-PoeqXIZJJxY/UDzcq5-Jm0I/AAAAAAAAAdU/YhgLGp3dUiM/265598_thumb6.jpg?imgmax=800" height="358" style="background-image: none; border-bottom-width: 0px; border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="265598" width="502" /></div>
If you want to test it just click <a href="http://sourceforge.net/projects/javaocr/" rel="nofollow" target="_blank">here</a> to download it and give it a try.<br />
<b><u>Tesseract-OCR:</u></b> <br />
This is the one of the best optical character recognition open source library available .It was originally developed by <b>HP Labs</b> but now supported by <b>Google</b>.It is the one of the most accurate OCR engine. It can read wide variety of image formats and text read can be converted into different languages also.As of now It supports more than 40 languages and new languages are being implemented.<br />
It is developed in c++ and if you are a java developer then don’t worry you may be able find some JNI wrapper for it.<br />
<a href="http://tess4j.sourceforge.net/" rel="nofollow" target="_blank" title="Home page of Test4j">Tess4j</a> is one of the available java JNI wrapper of tesseract-OCR.<br />
There are some graphical front end already available.If you want to check the functionality of Tesseract-OCR you can download <a href="http://sourceforge.net/projects/gimagereader/" rel="nofollow" target="_blank" title="Click Here to Download">gImageReader</a>,<a href="http://sourceforge.net/projects/vietocr/files/latest/download" rel="nofollow" target="_blank" title="Download VietOCR">VietOCR</a> .Other than them there are many more GUI front end are available on the web.<br />
<a href="http://lh5.ggpht.com/-a6vL4s5UosY/UDzcszvdOnI/AAAAAAAAAdc/bdNbPrzn2ko/s1600-h/blg%25255B8%25255D.jpg"><img alt="blg" border="0" src="http://lh3.ggpht.com/-nxktoV7gEbE/UDzcuspg1LI/AAAAAAAAAdk/kV9KCG6cGc4/blg_thumb%25255B6%25255D.jpg?imgmax=800" height="293" style="background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="blg" width="544" /></a><br />
<u><b>Asprise OCR for Java:</b> </u> <br />
Asprise Lab provides Asprise OCR SDK for development of OCR in java.It also provides the web based solution for optical character recongition.It enables us to equip our Java applications (<b>Java</b> <b>applets</b>, <b>web applications, standard applications, J2EE enterprise applications</b>) with optical character recognition (OCR) ability. <br />
<a href="http://http//asprise.com/" rel="nofollow" target="_blank" title="Click here to go asprise"><img alt="bc" border="0" src="http://lh4.ggpht.com/-05k-BHRGQzI/UDzcwJjnnWI/AAAAAAAAAds/nb7J1DLge-I/bc%25255B7%25255D.jpg?imgmax=800" height="61" style="background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="bc" width="262" /></a><br />
But this <a href="http://asprise.com/product/ocr/index.php?lang=java" rel="nofollow" target="_blank" title="Click here to download">SDK</a> is not free, for commercial usage you need to buy the License.<br />
Via - <a href="http://techcresendo.com/" target="_blank">techcresendo.com</a></div>
Anonymoushttp://www.blogger.com/profile/16135639531826908086noreply@blogger.com0tag:blogger.com,1999:blog-8030200212277821167.post-65643808668536006892012-08-18T12:51:00.002-07:002012-08-18T13:01:42.886-07:00Java Tutorial:Sorting list using Comparator<div dir="ltr" style="text-align: left;" trbidi="on">
<hr />
In this java tutorial we are going to understand the sorting of a List with the help of Comparator interface.<br />
<br />
So we will use sort(arrayToSort,Comparator) of Collections and Arrays to sort the list.Now we have to create a class which implements the comparator interface but before that we should have the class for which sorting is done.So lets create that first.<br />
<br />
<pre class="javacode">package com.techy.rajeev;
<span class="kwrd">public</span> <span class="kwrd">class</span> Employee{
<span class="kwrd">private</span> String ename;
<span class="kwrd">private</span> <span class="kwrd">int</span> eid;
<span class="kwrd">private</span> <span class="kwrd">double</span> salary;
<span class="kwrd">public</span> String getEname() {
<span class="kwrd">return</span> ename;
}
<span class="kwrd">public</span> Employee(String ename, <span class="kwrd">int</span> eid, <span class="kwrd">double</span> salary) {
super();
<span class="kwrd">this</span>.ename = ename;
<span class="kwrd">this</span>.eid = eid;
<span class="kwrd">this</span>.salary = salary;
}
<span class="kwrd">public</span> <span class="kwrd">void</span> setEname(String ename) {
<span class="kwrd">this</span>.ename = ename;
}
<span class="kwrd">public</span> <span class="kwrd">int</span> getEid() {
<span class="kwrd">return</span> eid;
}
<span class="kwrd">public</span> <span class="kwrd">void</span> setEid(<span class="kwrd">int</span> eid) {
<span class="kwrd">this</span>.eid = eid;
}
<span class="kwrd">public</span> <span class="kwrd">double</span> getSalary() {
<span class="kwrd">return</span> salary;
}
<span class="kwrd">public</span> <span class="kwrd">void</span> setSalary(<span class="kwrd">double</span> salary) {
<span class="kwrd">this</span>.salary = salary;
}
@Override
<span class="kwrd">public</span> String toString() {
<span class="kwrd">return</span> <span class="str">"Employee [ename="</span> + ename + <span class="str">", eid="</span> + eid + <span class="str">", salary="</span>
+ salary + <span class="str">"]"</span>;
}
}</pre>
<br />
<span class="fullpost"><br />
<span class="fullpost">Now lets create the Sorter class.</span>
<span class="fullpost"><br /><br /> </span><br />
<pre class="javacode"><span class="fullpost">package com.techy.rajeev;
import java.util.Comparator;
<span class="kwrd">public</span> <span class="kwrd">class</span> SortByName implements Comparator<Employee> {
@Override
<span class="kwrd">public</span> <span class="kwrd">int</span> compare(Employee o1, Employee o2) {
<span class="kwrd">return</span> o1.getEname().compareTo(o2.getEname());
}
}</span></pre>
<span class="fullpost">
<br /><br /> Now lets do the sorting<br />
<br /><br /> <pre class="csharpcode">package com.techy.rajeev;
import java.util.*;
<span class="kwrd">public</span> <span class="kwrd">class</span> TestSorting {
<span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> main(String[] args) {
ArrayList<Employee>al=<span class="kwrd">new</span> ArrayList<Employee>();
al.add(<span class="kwrd">new</span> Employee(<span class="str">"Anonymous"</span>,1,12345.00));
al.add(<span class="kwrd">new</span> Employee(<span class="str">"Hacker"</span>,2,32423));
al.add(<span class="kwrd">new</span> Employee(<span class="str">"Cba"</span>,3,23434));
System.<span class="kwrd">out</span>.println(<span class="str">"Before:"</span>+al);
SortByName sbn=<span class="kwrd">new</span> SortByName();
Collections.sort(al,sbn);<span class="rem">//passing the sorter to sort</span>
System.<span class="kwrd">out</span>.println(<span class="str">"After:"</span>+al);
}
}</pre>
<br /> <b>Output:</b><br />
<br /> Before:[Employee [ename=Anonymous, eid=1, salary=12345.0], Employee [ename=Hacker, eid=2, salary=32423.0], Employee [ename=Cba, eid=3, salary=23434.0]] <br /> <br />After:[Employee [ename=Anonymous, eid=1, salary=12345.0], Employee [ename=Cba, eid=3, salary=23434.0], Employee [ename=Hacker, eid=2, salary=32423.0]] <br />
<br />
Now I hope you know how to sort the list using comparator.Keep reading.<img alt="Thumbs up" class="wlEmoticon wlEmoticon-thumbsup" src="http://lh6.ggpht.com/-epoKoa5QH9U/UC_uKLBejyI/AAAAAAAAAcw/MQm5WTDoDhg/wlEmoticon-thumbsup%25255B2%25255D.png?imgmax=800" style="border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none;" />
</span> </span></div>
Anonymoushttp://www.blogger.com/profile/16135639531826908086noreply@blogger.com0tag:blogger.com,1999:blog-8030200212277821167.post-8225861101077712892012-08-18T12:04:00.003-07:002012-08-18T12:48:33.738-07:00JAVA Tutorial:Sorting list using comparator and comparable interface<div dir="ltr" style="text-align: left;" trbidi="on">
<hr />
In this Java Tutorial We are going to discuss about the ways in which we can do the sort the objects of our own classes using comparator and comparable interfaces.<br />
<br />
Some times we come across scenarios in which we needs to sort a list of non primitive object.Suppose you created a class Employee and now you want to sort the list of employees based on their salary or say based on their name or in tons of other parameter.<br />
Java provides us a very simple and efficient way to do it ,using utility classes(inside <b>util</b> packages).<br />
So we can take the help of methods of <b>Collections</b> or <b>Arrays</b> utility class.Now see the signature of the sort methods provided by these two classes to get to know about Comparable and Comparator interfaces.<br />
<br />
1.<b>Collections </b>sort method:<br />
<ul>
<li><b>void sort(List<T> list)</b>: This says that hey! pass me the List containing the objects to sort but ensure that objects must also tell me the attribute based on which sorting needs to be done.<b>This condition can be fulfilled by implementing the interface Comparable and overriding its compareTo() method by the class whose objects we want to sort.</b>Problem with this way of sorting is that we can sort using only one way since a class can implement a interface only one. </li>
<li><b>void sort(List<T>list,Comparator<? super T> comp)</b>:This provides the solution to previous drawback.Just visualize what sort method says in this case.It says: I need the list of object to be sorted plus an implementation of Comparator interface.So we have to create an extra class which implements the Comparator interface and overrides the compare() method.You may ask what is the benefit of creating the extra class.Yes there is the benefit now we can do sorting based on multiple attributes(how?). I hope you got the answer<img alt="Smile" class="wlEmoticon wlEmoticon-smile" src="http://lh3.ggpht.com/-j6YQgkckOik/UC_izYWm01I/AAAAAAAAAcY/t1a26FULIXA/wlEmoticon-smile2.png?imgmax=800" style="border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none;" />.<b>Make sure to write import java.util.Comparator; to import Comparator.</b></li>
</ul>
<br />
2.<b>Arrays </b>sort method:<br />
<ul>
<li>Arrays sort method supports only 2nd version i.e <b>void sort(List<T>list,Comparator<? super T> comp) </b>for objects. </li>
<li>It has lots of variations of sort methods for primitives.</li>
</ul>
<blockquote>
Note: These sort methods are based on the merge sort algorithm.So if you need time and space complexity better than this you need to implement your own algorithm of sorting.</blockquote>
So lets proceed by creating our Employee class.In this example we will implement the Comparable interface.<br />
<br />
<span class="fullpost">
</span>
<br />
<pre class="javacode"><span class="fullpost">package com.techy.rajeev;
<span class="kwrd">public</span> <span class="kwrd">class</span> Employee implements Comparable{
<span class="kwrd">private</span> String ename;
<span class="kwrd">private</span> <span class="kwrd">int</span> eid;
<span class="kwrd">private</span> <span class="kwrd">double</span> salary;
<span class="kwrd">public</span> Employee(String ename, <span class="kwrd">int</span> eid, <span class="kwrd">double</span> salary) {
super();
<span class="kwrd">this</span>.ename = ename;
<span class="kwrd">this</span>.eid = eid;
<span class="kwrd">this</span>.salary = salary;
}
<span class="kwrd"> public</span> String getEname() { <span class="kwrd">return</span> ename; }
<span class="kwrd">public</span> <span class="kwrd">void</span> setEname(String ename) {
<span class="kwrd">this</span>.ename = ename;
}
<span class="kwrd">public</span> <span class="kwrd">int</span> getEid() {
<span class="kwrd">return</span> eid;
}
<span class="kwrd">public</span> <span class="kwrd">void</span> setEid(<span class="kwrd">int</span> eid) {
<span class="kwrd">this</span>.eid = eid;
}
<span class="kwrd">public</span> <span class="kwrd">double</span> getSalary() {
<span class="kwrd">return</span> salary;
}
<span class="kwrd"> public</span> <span class="kwrd">void</span> setSalary(<span class="kwrd">double</span> salary) {
<span class="kwrd">this</span>.salary = salary;
}
@Override
<span class="kwrd">public</span> String toString() {
<span class="kwrd">return</span> <span class="str">"Employee [ename="</span> + ename + <span class="str">", eid="</span> + eid + <span class="str">", salary="</span>
+ salary + <span class="str">"]"</span>;
}</span>
<span class="fullpost">
<br />
<br />
</span><br />
<span class="fullpost"> @Override
<span class="kwrd">public</span> <span class="kwrd">int</span> compareTo(Employee o) {
<span class="rem">//We are sorting based on the employee name</span>
<span class="kwrd">return</span> ename.compareTo(o.getEname());
}
}</pre>
</span>
<span class="fullpost">
<br />
<br />
</span><br />
<span class="fullpost">Now lets do the sorting and displaying it.</span>
<span class="fullpost">
<br />
<br />
<pre class="javacode">javapackage com.techy.rajeev;
import java.util.*;
<span class="kwrd">public</span> <span class="kwrd">class</span> TestSorting {
<span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> main(String[] args) {
ArrayList<Employee>al=<span class="kwrd">new</span> ArrayList<Employee>();
al.add(<span class="kwrd">new</span> Employee(<span class="str">"Anonymous"</span>,1,12345.00));
al.add(<span class="kwrd">new</span> Employee(<span class="str">"Hacker"</span>,2,32423));
al.add(<span class="kwrd">new</span> Employee(<span class="str">"cba"</span>,3,23434));
al.add(<span class="kwrd">new</span> Employee(<span class="str">"ebc"</span>,4,32432));
System.<span class="kwrd">out</span>.println(<span class="str">"Before:"</span>+al);
Collections.sort(al);
System.<span class="kwrd">out</span>.println(<span class="str">"After:"</span>+al);
}
}</pre>
<br />
<br />
Output:<br />
<br />
<br />
Before:[Employee [ename=Anonymous, eid=1, salary=12345.0], Employee [ename=Hacker, eid=2, salary=32423.0], Employee [ename=Cba, eid=3, salary=23434.0], Employee [ename=Ebc, eid=4, salary=32432.0]]<br />
<br />
After:[Employee [ename=Anonymous, eid=1, salary=12345.0], Employee [ename=Cba, eid=3, salary=23434.0], Employee [ename=Ebc, eid=4, salary=32432.0], Employee [ename=Hacker, eid=2, salary=32423.0]]<br />
<br />
<br />
<br />
<br />
This was the sorting using Comparable interface.Now you can try the sorting using Comparator or keep reading,I will provide the implementation in next Java Tutorial on using Comparator .
</span></div>
Anonymoushttp://www.blogger.com/profile/16135639531826908086noreply@blogger.com0tag:blogger.com,1999:blog-8030200212277821167.post-86321487158858899852012-08-12T01:06:00.001-07:002012-08-12T02:05:57.985-07:00Demonoid shuts down !<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="wlWriterHeaderFooter" style="float: none; margin: 0px; padding: 0px 0px 0px 0px;">
<a class="google-buzz-button" data-button-style="normal-count" data-url="http://techyrajeev.blogspot.com/2012/08/demonoid-shuts-down.html" href="http://www.google.com/buzz/post" title="Post on Google Buzz"></a><script src="http://www.google.com/buzz/api/button.js" type="text/javascript"></script></div>
<br />
<hr />
One of the most popular Bitttorrent tracker site Demonoid.com was shut down by Ukrainian authorities on August 6,2012 from the Ukraine's largest data center ColoCall after 9 years of its operation (launched in 2003).<br />
<a href="http://lh4.ggpht.com/-Axku63r93yc/UCdj55RtXCI/AAAAAAAAAbg/HPTpBLhRO2s/s1600-h/demonoid-logo%25255B1%25255D.jpg"><img alt="demonoid-logo-techyrajeev" border="0" height="172" src="http://lh6.ggpht.com/-5nHerrRFZ9c/UCdj8cqBOLI/AAAAAAAAAbo/uPShMfhQww0/demonoid-logo_thumb%25255B1%25255D.jpg?imgmax=800" style="background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="demonoid-logo" width="240" /></a><br />
<br />
Ukrainian officials did that to show that they are taking U.S intellectual property rights very seriously.According to sources server was taken down by <b>massive distributed denial of service(DDoS) attack.</b><br />
In last few days site was inaccessible and was redirecting to some random sites.You might have noticed following error message:<br />
<br />
<hr />
<blockquote>
Server too busy<br />
The action you requested could not be completed because the server is too busy.<br />
Please try again in a few minutes<br />
Do not click reload - Use the following links <br />Clicking reload will get you this page again<br />
<a href="http://www.demonoid.me/">Click here to return to the homepage</a> or <a href="http://www.demonoid.me/error_messages.php?error_id=3">Click here to go back</a></blockquote>
<hr />
In the past Demonoid frequently changed its location to avoid of being into too much focus.Also its registration were done through invitation or on some particular days of month.Demonoid’s current <a href="http://www.alexa.com/" rel="nofollow" target="_blank" title="Alexa.com"><b>Alexa</b></a><b> </b>rank was 986 (Aug,2012).It’s major earning source was through advertisements.<br />
<a href="http://lh3.ggpht.com/-cZip5yEal7s/UCdj9pJhf9I/AAAAAAAAAbw/EypYzkAB8do/s1600-h/Demonoid_screenshot%25255B12%25255D.png"><img alt="Demonoid_screenshot" border="0" height="403" src="http://lh3.ggpht.com/-LJ8E5t-Uj48/UCdj_Vs2LII/AAAAAAAAAb4/rFSfMoPZh4o/Demonoid_screenshot_thumb%25255B10%25255D.png?imgmax=800" style="background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="Demonoid_screenshot" width="596" /></a><br />
Demonoid servers may have been shut down but ,it’s administrator has promised its users that Demonoid would be back very soon.Hope for the best <img alt="Thumbs up" class="wlEmoticon wlEmoticon-thumbsup" src="http://lh3.ggpht.com/-x-REuc0h1wI/UCdkArC9BfI/AAAAAAAAAcA/8t7HeAgbuMY/wlEmoticon-thumbsup%25255B2%25255D.png?imgmax=800" style="border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none;" />.</div>Anonymoushttp://www.blogger.com/profile/16135639531826908086noreply@blogger.com0tag:blogger.com,1999:blog-8030200212277821167.post-41034745931769317442012-08-03T11:03:00.002-07:002015-12-06T00:13:12.066-08:00Passing Command Line Argument in Eclipse<div dir="ltr" style="text-align: left;" trbidi="on">
<hr />
Passing command line arguments in Eclipse is very easy.We will see step by step procedure to pass command line arguments to a java program using eclipse.<br />
<br />
<pre class="javacode">package com.techy.rajeev;
<span class="kwrd">class</span> BadFoodException extends Exception {
}
<span class="kwrd">class</span> Myexception{
<span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> checkfood(String food)throws BadFoodException{
<span class="kwrd">if</span>(food.equals(<span class="str">"Veg"</span>)){
System.<span class="kwrd">out</span>.println(<span class="str">"Good food :)"</span>);
}<span class="kwrd">else</span>{
<span class="kwrd">throw</span> <span class="kwrd">new</span> BadFoodException();
}
}
<span class="kwrd">public</span> <span class="kwrd">static</span> <span class="kwrd">void</span> main(String args[]){
<span class="kwrd">for</span>(String s: args){
<span class="kwrd">try</span> {
checkfood(s);
} <span class="kwrd">catch</span> (BadFoodException e) {
e.printStackTrace();
}
}
System.<span class="kwrd">out</span>.println(<span class="str">"survived"</span>);
}
}</pre>
<br />
<br />
This is the java program for which we want to pass command line arguments.<br />
<br />
Write this program in eclipse IDE and save it.<br />
<br />
Now click on the small dropdown icon beside run icon as shown in image:<br />
<br />
<span class="fullpost">
<a href="http://lh5.ggpht.com/-jMJyl0Yo-1I/UBwHTiIScBI/AAAAAAAAAaY/eDt3IBtyOl8/s1600-h/eclipse1%25255B7%25255D.png"><img alt="eclipse1" border="0" src="http://lh3.ggpht.com/-0Qc10U8y8Og/UBwHZY5tfQI/AAAAAAAAAag/sJZPD_7dzfg/eclipse1_thumb%25255B5%25255D.png?imgmax=800" height="195" style="background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="eclipse1" width="607" /></a><br />
<br />
A drop down menu will appear.Now click on Run Configurations.<br />
<br />
<br />
<a href="http://lh4.ggpht.com/-jYVFE9fRFOE/UBwHgbiOBBI/AAAAAAAAAao/bG7iphrxgpU/s1600-h/eclipse%25255B6%25255D.png"><img alt="eclipse" border="0" src="http://lh4.ggpht.com/-XX1KYO19OCM/UBwHsnFB8TI/AAAAAAAAAaw/uAxdJbBDKmM/eclipse_thumb%25255B4%25255D.png?imgmax=800" height="356" style="background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="eclipse" width="578" /></a><br />
<br />
<br />
Now a new window will appear.This window provide us the settings for the run time configurations of a program.<br />
<br />
<br />
In this window click on the arguments tab and supply the arguments needed by your program separated via space as delimiter.<br />
<br />
<br />
<a href="http://lh3.ggpht.com/-y1O0i23K4dU/UBwH5yj_8gI/AAAAAAAAAa4/ZcIu03RLGC8/s1600-h/eclipse3%25255B7%25255D.png"><img alt="eclipse3" border="0" src="http://lh4.ggpht.com/-06auljJvwJU/UBwIGulZdJI/AAAAAAAAAbA/I06NwT7p5No/eclipse3_thumb%25255B5%25255D.png?imgmax=800" height="413" style="background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="eclipse3" width="598" /></a><br />
<br />
Thats it.
</span><br />
More on this at <a href="http://techcresendo.com/" target="_blank">techcresendo.com</a></div>
Anonymoushttp://www.blogger.com/profile/16135639531826908086noreply@blogger.com0tag:blogger.com,1999:blog-8030200212277821167.post-15534798240642764792012-07-28T08:32:00.003-07:002015-12-06T00:13:34.247-08:00BackTrack 5 KDE startx problem fixed<div dir="ltr" style="text-align: left;" trbidi="on">
<hr />
While installing the BackTrack 5 KDE(64 bit) OS when you try to enter into GUI mode via typing startx you get a strange error message like this:<br />
<br />
<a href="http://lh4.ggpht.com/-D1u4kSkXDnw/UBLwmGmd63I/AAAAAAAAAZg/Zj3k4pwlwWk/s1600-h/BackTrack%25255B10%25255D.png"><img alt="BackTrack" border="0" src="http://lh3.ggpht.com/-vYNeiPA7k1c/UBLw75eBjII/AAAAAAAAAZo/x2QH79ChkbI/BackTrack_thumb%25255B8%25255D.png?imgmax=800" height="416" style="background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="BackTrack" width="595" /></a><br />
This is well known bug in BackTrack 5 KDE (64 bit version) and many user asked me about the solution of this bug.<br />
This problem can be fixed by deleting the <b>kcache</b> files from the following directories:<br />
<ul>
<li>/root/.kde/cache-bt</li>
<li>/root/.kde/cache-root</li>
</ul>
Since GUI is not available without the <b>startx</b> so you will have to use the commands to delete all kcache files in the above directories.So Type the following commands<br />
<blockquote>
<code><b><span style="font-family: "arial";"># cd /root/.kde/ <br /># find . -type f -iname "*.kcache" -delete</span></b></code></blockquote>
or<br />
<blockquote>
<pre><b>rm /root/.kde/cache-root/icon-cache.kcache</b><b>
rm /root/.kde/cache-root/plasma_theme_Volatile.kcache</b><b>rm /root/.kde/cache-bt/icon-cache.kcache</b><b>
rm /root/.kde/cache-bt/plasma_theme_Volatile.kcache</b></pre>
<br /></blockquote>
As usual now type <b>startx</b> command.<br />
<br />
Some people also found some alternatives to fix this problem you can also try these<br />
<br />
<ul>
<li>Boot from live cd or use vmware to boot the backtrack<br /> </li>
<li>Wait till the screen to decide which mode to boot.<br /> </li>
<li>Press the TAB key. (This opens the grub options for the live boot)<br /> </li>
<li> Change the section with "text splash vga=791" to "text splash vga=791 i915.modeset=1".<br /> </li>
<li> Press the ENTER key.<br /> </li>
<li> Type startx and Wait for Gui to appear</li>
</ul>
<a href="http://lh3.ggpht.com/-C5Actj_Evvc/UBLxp2z1XoI/AAAAAAAAAZw/XCd8k0jH1YA/s1600-h/bt5-6%25255B7%25255D.png"><img alt="bt5-6" border="0" src="http://lh4.ggpht.com/-Zstp9_R1V7M/UBLx4ji3FrI/AAAAAAAAAZ4/A7JpBo4Zb78/bt5-6_thumb%25255B5%25255D.png?imgmax=800" height="425" style="background-image: none; border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline; padding-left: 0px; padding-right: 0px; padding-top: 0px;" title="bt5-6" width="622" /></a><br />
More on this at <a href="http://techcresendo.com/" target="_blank">techcresendo.com</a></div>
Anonymoushttp://www.blogger.com/profile/16135639531826908086noreply@blogger.com1tag:blogger.com,1999:blog-8030200212277821167.post-10725885598260580952012-07-25T08:54:00.000-07:002012-07-25T10:25:32.436-07:00Java Tutorial:Difference Between equals and ==<p> <hr />Sometimes in our java code we find that equality comparison operators(equals() and ==) do not work as expected.But why is that happening so? We know how they works <img style="border-bottom-style: none; border-left-style: none; border-top-style: none; border-right-style: none" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://lh4.ggpht.com/-Bw8Ne2qi8P4/UBAWnkPxL6I/AAAAAAAAAZQ/gnlSWUMKpfc/wlEmoticon-smile%25255B2%25255D.png?imgmax=800" />.</p> <p>Really?</p> <p>Actually we don’t know in depth how they work.So in this java tutorial I am going to show how equals and == works and what is difference between them.So keep reading this java tutorial.</p> <p><strong><u><font size="2">equals()</font>:</u></strong></p> <p>This method compares the actual content inside the object i.e two instances of a class having content with same meaning  e.g</p> <blockquote> <p><strong>Integer num1=new Integer(10);</strong></p> <p><strong>Integer num2=new Integer(10); </strong></p> </blockquote> <p>so num1.equals(num2) is true as obvious.</p> <p><strong><u><font size="2">==:</font></u></strong></p> <p>== compares the references i.e the reference which is referring to the actual object not the content inside the object.Then if two references referring to the same object then references will be same. e.g</p> <p>Integer num1=new Integer(1000);</p> <p>Integer num2=num1; Now num2 is also referring to 1000</p> <p>so num1==num2 is true.</p> <p>Suppose if we say Integer num2=new Integer(1000); Now a new Integer object is created on the heap and its reference is assigned to num2.</p> <p>so num1==num2 is false.</p> <p>Now guess the output of </p> <blockquote> <p><strong>Integer n1=10; Integer n2=10;</strong></p> <p><strong>if(n1==n2)</strong></p> <p><strong>System.out.println(“same object”);</strong></p> <p><strong>else</strong></p> <p><strong>System.out.println(“Diff.object”);</strong></p> </blockquote> <p><strong>Output is:</strong> same object</p> <p>Yes that’s true;behaviour of == changes when boxing involves.This strange behaviour happens because JVM create the literal pool same as (String constant pool) for following wrapper objects (which must have been created through boxing)</p> <ul> <li>Boolean</li> <li>Byte</li> <li>Character range(\u0000 to \u007f)</li> <li>Short</li> <li>Integer range(-128 to 127)</li> </ul> <p>So whenever you are creating such wrapper object then first it will be searched in it’s respective constant pool if it is found there it’s reference will be returned to new reference of wrapper object other wise it is created and stored in the pool.This strange thing happens just to save memory.</p> Anonymoushttp://www.blogger.com/profile/16135639531826908086noreply@blogger.com1