tag:blogger.com,1999:blog-198733812024-02-21T14:47:41.972+05:30think-free ~ Tek KornerWrite technology, read technology, think technology!think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.comBlogger51125tag:blogger.com,1999:blog-19873381.post-19965881456973697792018-06-05T19:55:00.000+05:302018-06-05T20:03:46.995+05:3012h Watch Face for Amazfit Bip<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div style="margin-left: 1em; margin-right: 1em;">
<img alt="Xiaomi's new Smartwearable â the Amazft Bip Watch." height="223" src="https://s3.ap-southeast-1.amazonaws.com/images.deccanchronicle.com/dc-Cover-elaqiqsse5odbpdbb6b4kfsml3-20180208105221.Medi.jpeg" width="400" /></div>
<br />
<div style="margin-left: 1em; margin-right: 1em;">
</div>
Xiaomi Huami AMAZFIT Smartwatch is amazing for its price (~60 to 99 USD). It has 30-45 days of battery life, which is just outstanding, especially for an always own display (reflective, without backlight)! It looks very much like an apple watch and there are many custom watch faces (you can make one as well) too.<br />
<br />
<br />
<b>Main Features:</b><br />
● Heart rate monitor<br />
● GPS + GLONASS dual positioning<br />
● Sleep monitoring<br />
● Bluetooth 4.0<br />
● 1.28 inch with 2.5D Corning Gorilla Glass screen<br />
● 3.7V / 190mAh Polymer Lithium Battery<br />
● IP68 rating<br />
● Weight: 31 grams<br />
<br />
More info:<br />
https://us.amazfit.com/shop/bip?variant=336750<br />
https://www.wareable.com/xiaomi/amazfit-bip-review<br />
https://www.deccanchronicle.com/technology/gadgets/080218/xiaomi-mi-smartwatch-amazfit-bip-45-day-battery-apple-watch-mi-fit.html<br />
<br />
<br />
You can use the free Xiaomi Mi Fit app in your phone to view the information.<br />
<br />
Perhaps the most (only?) annoying thing about the watch is that it shows time in 24 hour format. There is no option in the watch or app settings to change this is to a 12 hour format. The only way you can achieve this is via a watch face.<br />
<br />
But the Xiaomi Mi Fit app gives you only 10 custom watch faces and none supports 12h format.<br />
<br />
After quite a bit of research I found following is the easiest way to update to a 12h watch face, without using a computer etc!<br />
<br />
<ol style="text-align: left;">
<li>From your <b>phone</b>, go to https://amazfitwatchfaces.com/bip/</li>
<li>Search for "12", you will see watch faces supporting 12h format </li>
<li>Download the bin file to your phone, rename to make it easy to remember</li>
<li>Install the app "Notify & Fitness for Amazfit" from app store</li>
<li>Go to Settings -> Tools -> Update and select "Custom watch-face"</li>
<li>Select the watch face bin file you downloaded earlier</li>
<li>Click Start update (retry in case it fails, failed at 15% first time for me)</li>
</ol>
<div>
Your new watch face should now show in the watch, enjoy! You can now perhaps uninstall the "Notify & Fitness for Amazfit" app ;-)</div>
<div>
<br /></div>
<div>
These are my favourite ones:</div>
<div>
Apple_Simple2_12hr_UK</div>
<div>
<img src="https://amazfitwatchfaces.com/bip/resource/img/5af45092c5b17_10052018.gif" /></div>
<div>
https://amazfitwatchfaces.com/bip/view/?id=6978</div>
<div>
<br /></div>
<div>
BigBY_12h</div>
<div>
<img src="https://amazfitwatchfaces.com/bip/resource/img/5b12ff65bcbd2_02062018.gif" /></div>
<div>
https://amazfitwatchfaces.com/bip/view/?id=7926</div>
<div>
<br /></div>
<div>
<br /></div>
<br />
<br />
<br />
<br />
<br /></div>
think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com0tag:blogger.com,1999:blog-19873381.post-56407569924792188362015-12-14T12:35:00.000+05:302015-12-14T12:35:21.512+05:30CyanogenMod OTA update<div dir="ltr" style="text-align: left;" trbidi="on">
So I updated my Samsung Galaxy Note 1 (N7000) to latest CyanogenMod 12.1 (Android 5.1.1) from <a href="http://forum.xda-developers.com/galaxy-note/development/rom-t2938649" target="_blank">Night Owl</a>.<br />
<br />
<br />
<br />
There is an app called 'OTA Updates' in my app drawer and it found a newer build. I did a download and phone rebooted in recovery mode. Now I have to manually install the download zip, but where the hell is it?<br />
<br />
<br />
After digging thru the internet and trying various locations, finally found:<br />
<b>/storage/sdcard0/OTAUpdates/*.zip</b> (eg: 20151211.zip)<br />
<br />
<br />
<br />
<br />
<br /></div>
think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com0tag:blogger.com,1999:blog-19873381.post-41185062859515091722015-10-13T14:51:00.005+05:302015-10-13T14:51:51.824+05:30Create multiple folders in a path at once<div dir="ltr" style="text-align: left;" trbidi="on">
Ever wanted to recreate a path (folder structure) in one shot, without creating folder by folder?!<br />
<br />
The easiest way to do this on Windows is:<br />
1) Go to Run, type <b>cmd</b><br />
2) Command Prompt would open, there type following command<br />
3) <b>md <<i>your</i>_<i>path</i>></b><br />
<br />
eg: md <i>folder1\folder2\folder3\folder4\folder5</i><br />
<br />
All 5 folders (directories) will be created as per above structure with a single command! Isn't it cool!<br />
<br />
For more info on above command type md /?<br />
<br />
md is same as mkdir!<br />
<br />
<br />
<br />
<span style="font-family: arial,sans,sans-serif; font-size: 13px;"></span></div>
think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com0tag:blogger.com,1999:blog-19873381.post-60599633401743050082015-06-09T17:04:00.000+05:302015-06-12T13:37:05.706+05:30Configuring Apache Cordova/Ionic<div dir="ltr" style="text-align: left;" trbidi="on">
I wanted to create an app which can possible run on multiple platforms and decided to try <a href="https://cordova.apache.org/" target="_blank">Apache Cordova</a> (earlier known as PhoneGap). It wasn't an easy sail as I thought it would be, had to spend many days to get the build to work finally. Even tried the <a href="http://ionicframework.com/" target="_blank">ionic framework</a>, but wasn't any better as it uses Cordova underneath.<br />
<br />
The main issue I faced was the following error while building:<br />
<pre class="default prettyprint prettyprinted" style="background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;"><code style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;"><span class="typ" style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; color: #2b91af; margin: 0px; padding: 0px;">Error</span><span class="pun" style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; color: black; margin: 0px; padding: 0px;">:</span><span class="pln" style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; color: black; margin: 0px; padding: 0px;"> </span><span class="typ" style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; color: #2b91af; margin: 0px; padding: 0px;">Please</span><span class="pln" style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; color: black; margin: 0px; padding: 0px;"> install </span><span class="typ" style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; color: #2b91af; margin: 0px; padding: 0px;">Android</span><span class="pln" style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; color: black; margin: 0px; padding: 0px;"> target </span><span class="pln" style="border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; margin: 0px; padding: 0px;"><span style="color: maroon;">22</span></span></code></pre>
Tried many <a href="http://stackoverflow.com/questions/24931155/cordova-3-5-0-install-error-please-install-android-target-19" target="_blank">suggestions</a> found online, still no luck! I had Android API 22 installed as per the Android SDK manager.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9FIbK1UesU6NqSIdjN1IY8XxzZaREUEA8F8g8sY5icBX5ZrT-Z45rkgLQnS66wq1HIMTOttp_3sX281ikQU-Eu2oFCsWLrREtMaMkoAceW37vQ2KHya-hgGJg8Fd__Ua-2xyHMA/s1600/ScreenHunter_+Jun.+09+21.28.49.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9FIbK1UesU6NqSIdjN1IY8XxzZaREUEA8F8g8sY5icBX5ZrT-Z45rkgLQnS66wq1HIMTOttp_3sX281ikQU-Eu2oFCsWLrREtMaMkoAceW37vQ2KHya-hgGJg8Fd__Ua-2xyHMA/s640/ScreenHunter_+Jun.+09+21.28.49.jpg" width="472" /></a></div>
<br />
<br />
<br />
Finally I was able to get things working by doing the following:<br />
<br />
<br />
<ul style="text-align: left;">
<li>Install NodeJS (used Windows installer)</li>
<li>Unzip latest ANT (1.9.4) and set ANT_HOME env var</li>
<li>Unzip Oracle Open JDK (32-bit, as per Visual Studio 64-bit won't work) and set JAVA_HOME</li>
<li>Unzip android SDK and set ANDROID_HOME, ADT_HOME and ANDROID_SDK_ROOT</li>
<li>Add %ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools; to PATH</li>
<li>Add \;%JAVA_HOME%\bin;%ANT_HOME%\bin; to PATH</li>
</ul>
<div>
Also try recreating the project or remove/add platform if build was not working and created it before doing the above.</div>
<div>
<br />
The next issue was trying to emulate the build output (apk).<br />
<i>WARNING : no emulator specified, defaulting to Default</i><br />
<i>Waiting for emulator...</i><br />
<i>emulator: ERROR: no search paths found in this AVD's configuration.</i><br />
<i>Weird, the AVD's config.ini file is malformed. Try re-creating it.</i></div>
<div>
<br />
I went to the Android SDK Manager (type 'android' in the shell) and tried creating a new AVD manually using existing Device template for Nexus 6. Found that CPU/ABI is missing and I need to install that first!<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUq77e-9DpRkKNwNKKuHToY0-mhS9J39nRN6cMOxq8TM_eaHRAAK_79PFnlTjHRLCq2cNJvZhR_xA2nIY-Aex1z-w6kE_HHnGkS2rvDajySZfo-CIo_2r-J7U2SdGiMqyoaWWEcw/s1600/ScreenHunter_+Jun.+09+21.44.05.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUq77e-9DpRkKNwNKKuHToY0-mhS9J39nRN6cMOxq8TM_eaHRAAK_79PFnlTjHRLCq2cNJvZhR_xA2nIY-Aex1z-w6kE_HHnGkS2rvDajySZfo-CIo_2r-J7U2SdGiMqyoaWWEcw/s640/ScreenHunter_+Jun.+09+21.44.05.jpg" width="392" /></a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
and then later</div>
<div class="separator" style="clear: both; text-align: left;">
ERROR : No emulator images (avds) found.</div>
<div class="separator" style="clear: both; text-align: left;">
1. Download desired System Image by running: android.BAT sdk</div>
<div class="separator" style="clear: both; text-align: left;">
2. Create an AVD by running: android.BAT avd</div>
<div class="separator" style="clear: both; text-align: left;">
<b>HINT: For a faster emulator, use an Intel System Image and install the HAXM device driver</b></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
I first tried the "Intel x86 Atom_64 System Image, but ran into errors!</div>
<div class="separator" style="clear: both;">
WARNING : no emulator specified, defaulting to AVD_for_Nexus_6_by_Google</div>
<div class="separator" style="clear: both;">
Waiting for emulator...</div>
<div class="separator" style="clear: both;">
emulator: ERROR: x86_64 emulation currently requires hardware acceleration!</div>
<div class="separator" style="clear: both;">
Please ensure Intel HAXM is properly installed and usable.</div>
<div class="separator" style="clear: both;">
CPU acceleration status: HAX kernel module is not installed!</div>
<div class="separator" style="clear: both;">
<br /></div>
<div class="separator" style="clear: both;">
Finally ended up using the ARM system image and it works fine, though may be a little slow!</div>
<div class="separator" style="clear: both;">
<br /></div>
<br /></div>
</div>
think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com0tag:blogger.com,1999:blog-19873381.post-43280531884900212672015-06-08T22:58:00.003+05:302015-06-08T22:58:54.034+05:30Windows 8.1 Pro on a USB Drive<div dir="ltr" style="text-align: left;" trbidi="on">
Xubuntu and Kodi on i3 NUC was nice. But I often run into issues and is quite time consuming to get things straight (perhaps because I am not a Linux expert too!). Anyway, everything was configured, up and running with Xubuntu 14.10 and the new 15.04 release came and messed things up. The sound doesn't work after the upgrade, I see only a Dummy Output! Searching on forums, I see many people reporting this issue, but no solution than to downgrade. Also had some <a href="http://think-tek.blogspot.com.au/2015/01/nuc-setup-for-xbmc.html" target="_blank">HDMI sync issue</a> every time I start my home theater receiver (keep the NUC running 24x7) too and was getting tired of linux on NUC! Intel provide very few <a href="https://01.org/linuxgraphics/downloads" target="_blank">drivers for linux</a>. So it was time to give Windows a try :-)<br />
<br />
Usually windows is very easy to setup, but I had a major challenge! I don't have a hard disk and Windows doesn't support installing to USB drives (or even portable HDD connected via USB). Btw, if you want to create a bootable Windows installer on USB, use the <a href="https://rufus.akeo.ie/" target="_blank">rufus utility</a> and the Windows install ISO. It is like the LiLi for windows :-)<br />
<br />
Thanks to Google, found that there is a Windows to Go option, though officially supported only for Enterprise edition. You can get it to work for other editions using a utility called <a href="http://www.easyuefi.com/wintousb/" target="_blank">WinToUSB</a>. Though it seemed to save the day, Windows 8.1 Pro was not booting up, it was stuck on the logo with the progress spinning for ever! Finally got it to work using the <b>VHD </b>(vs Legacy) option supported by WinToUSB while creating the usb installer.<br />
<br />
Now I got Windows on my NUC and everything works quite well, especially with all the wonderful intel drivers! Kodi works quite well too (Note: use <a href="http://kodi.wiki/view/Audio_quickstart_guide" target="_blank">WASAPI</a> instead of DirectSound for clean unadulterated sound)<br />
<br />
Note: You need to activate the windows with a valid key<br />
<br />
<br /></div>
think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com0tag:blogger.com,1999:blog-19873381.post-74973895517309416482015-06-08T22:05:00.001+05:302015-06-08T22:06:29.240+05:30Clone your bootable usb drive in minutes!<div dir="ltr" style="text-align: left;" trbidi="on">
I have an Intel i3 NUC which runs Xubuntu full install on a Sandisk Extreme 16GB USB 3.0 stick. It doesn't have a hard disk :-) Everything was working fine (mostly use it to share hdd, printer etc and also as a media player - Kodi/XMBC), until it ran out of space trying to upgrade from Ububtu 14.10 to 15.04. So I bought a new Sandisk Ultra Fit 64GB USB 3.0 and was finding it hard to setup everything from scratch and reconfigure/customize it. I wanted to give Kubuntu a try, but install failed as it was not able to partition the USB drive (don't remember, but I think I was able to boot and install Xubuntu into same drive). I didn't want to waste anymore time and just wanted to get things going quickly. Was looking for easy ways to clone and found this!<br />
<br />
There is a command called <a href="http://en.wikipedia.org/wiki/Dd_(Unix)" target="_blank">dd</a> and using it I could clone my usb disk and boot from the new one in about 10-15 minutes!<br />
<br />
The syntax is as follows:<br />
<pre class="tcy" style="background-color: #f1f5f9; border: 1px solid rgb(0, 92, 185); color: #454545; font-family: Fixed, monospace; font-size: 16px; line-height: 1; margin-bottom: 2em; margin-right: 6em; overflow: auto; padding: 1em !important;">dd if=/dev/sdc of=/dev/sda</pre>
Make sure you give the whole device (sdc vs sdc1) and not a partition. Also double check the source and target device names (sda/sdb/sdc) before you start the command.<br />
<br />
Couple of things to keep in mind:<br />
<br />
<ul style="text-align: left;">
<li>Target has to be same size or larger than source. If larger you can resize partitions later</li>
<li>boot record will be copied only if you clone whole device vs a partition</li>
<li>You can use the UI (eg: Disks) or <code style="background-color: #eeeeee; border: 0px; color: #111111; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; font-size: 13px; margin: 0px; padding: 1px 5px; white-space: pre-wrap;">sudo fdisk -l</code><span style="background-color: white; color: #111111; font-family: Ubuntu, Arial, 'libra sans', sans-serif; font-size: 15px; line-height: 19.5px;"> </span>to find out the device names</li>
<li>You can optimize transfer by setting block sizes, eg: sudo dd if=/dev/sdx of=/dev/sdy <b>bs=8M</b></li>
</ul>
<br />
Source:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH27CumGwh6IoI9Z_eqM-gNk5tnctv-QWy5942Yb4zLXbIfoo5TT0Z_SqxdFQLWzUO_mMdS0WVJphPC4pLIuPC4kkDQXe42rP4JTjXNer04bxZDo7l9bmFbUl0v_Pl740IIOOzhA/s1600/dd_source.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="255" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhH27CumGwh6IoI9Z_eqM-gNk5tnctv-QWy5942Yb4zLXbIfoo5TT0Z_SqxdFQLWzUO_mMdS0WVJphPC4pLIuPC4kkDQXe42rP4JTjXNer04bxZDo7l9bmFbUl0v_Pl740IIOOzhA/s400/dd_source.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Target:</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk7gm01Dme5nTBOedj4Bmoq6c19bpir8LUWu2LKhXWVFqlO_lU1iDR3cUBaYrgkAmBSBuAf2l2y1qjXagi1tZtijqEDY4diSSjn1vTxHopTlAJOK8FMTTfvg5uojI_uAanE4VvxQ/s1600/dd_target.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="251" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjk7gm01Dme5nTBOedj4Bmoq6c19bpir8LUWu2LKhXWVFqlO_lU1iDR3cUBaYrgkAmBSBuAf2l2y1qjXagi1tZtijqEDY4diSSjn1vTxHopTlAJOK8FMTTfvg5uojI_uAanE4VvxQ/s400/dd_target.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
You can see that after the operation, I have the same partitions from the 16GB drive on my new 64GB one. To resize existing partition, I removed the swap, resized main (leaving some space for swap at the end) and then created swap at the end. This was done using GParted.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5W09i3bLvYG992mrEfMglUsyRziiyq_68iPYn-A6288vJ5YzMa-sMegm8vr-5CgNYrXF0WinLqRgUg9WQ9t9rlMdyQjQd5EUstKwi0taNei2UGMQL-l1fMZcHC8ZKjEQetn6hDA/s1600/dd_resize.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="107" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5W09i3bLvYG992mrEfMglUsyRziiyq_68iPYn-A6288vJ5YzMa-sMegm8vr-5CgNYrXF0WinLqRgUg9WQ9t9rlMdyQjQd5EUstKwi0taNei2UGMQL-l1fMZcHC8ZKjEQetn6hDA/s400/dd_resize.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdiOe6pMTvyD2w4PrLQWx7XzeqRrCNApkLkvAddmmwuXdkFTG5z8FqxD2PIiL7wHhbPcT7QMzwnjXWbQwnKZ_wwiK0_vuytwi6CD0w1d7rsjNv6SI1zpoVZ195_bNAF8S68dl1Mg/s1600/dd_resize_2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="113" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdiOe6pMTvyD2w4PrLQWx7XzeqRrCNApkLkvAddmmwuXdkFTG5z8FqxD2PIiL7wHhbPcT7QMzwnjXWbQwnKZ_wwiK0_vuytwi6CD0w1d7rsjNv6SI1zpoVZ195_bNAF8S68dl1Mg/s400/dd_resize_2.jpg" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Hope it saves many hours or days of yours, have fun!</div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
</div>
think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com0tag:blogger.com,1999:blog-19873381.post-34502739540984521102015-04-16T12:38:00.001+05:302015-04-16T14:37:12.727+05:30Getting started with ElasticSearch<div dir="ltr" style="text-align: left;" trbidi="on">
<a href="https://www.elastic.co/products/elasticsearch" target="_blank">Elasticsearch </a>is a search server based on Apache <a href="http://en.wikipedia.org/wiki/Lucene" target="_blank">Lucene</a>. It provides a distributed, multitenant-capable full-text search engine with a RESTful web interface and schema-free JSON documents. Elasticsearch is developed in Java and is released as open source under the terms of the Apache License. <a href="http://en.wikipedia.org/wiki/Elasticsearch" target="_blank">Elasticsearch</a> is the second most popular enterprise search engine, at the time of this post.<br />
<br />
Elasticsearch can be used to search all kinds of documents. It provides scalable search, has <b>near </b>real-time search, and supports multitenancy. Elasticsearch is distributed, which means that indices can be divided into shards and each shard can have zero or more replicas. Each node hosts one or more shards, and acts as a coordinator to delegate operations to the correct shard(s). Rebalancing and routing are done automatically. Notable users of Elasticsearch include Wikimedia, GitHub, Stack Exchange, Netflix, The Guardian etc<br />
<br />
But Elasticsearch is not just for mega-corporations. It has enabled many startups like Datadog and Klout to prototype ideas and to turn them into scalable solutions. Elasticsearch can run on your laptop, or scale out to hundreds of servers and petabytes of data. No individual part of Elasticsearch is new or revolutionary. Full-text search has been done before, as have analytics systems and distributed databases. The revolution is the combination of these individually useful parts into a single, coherent, real-time application. It has a low barrier to entry for the new user, but can keep pace with you as your skills and needs grow.<br />
<br />
You can find a very useful Getting Started Guide here:<br />
http://www.elastic.co/guide/en/elasticsearch/guide/master/getting-started.html<br />
<br />
If you are impatient, this You Tube Video helps you get started quickly: <a href="https://www.youtube.com/watch?v=60UsHHsKyN4" target="_blank">Getting started with ElasticSearch</a><br />
<br />
Note: The syntax of the settings posted at 24:54 of the video doesn't work as there are some changes in version 1.5.1 I used. Refer this link for correct usage: <a href="http://www.elastic.co/guide/en/elasticsearch/guide/master/using-synonyms.html" target="_blank">Using Synonyms</a><br />
<br />
I would suggest Sense plugin for Chrome to easily explore elastic search:<br />
https://chrome.google.com/webstore/search/sense<br />
https://www.found.no/foundation/Sense-Elasticsearch-interface/<br />
<br />
Alternatives are <a href="https://addons.mozilla.org/en-US/firefox/addon/restclient/" target="_blank">RESTClient </a>for firefox and <a href="http://www.telerik.com/fiddler" target="_blank">Fiddler </a>for pretty much any platform.<br />
<br />
You can use the <a href="https://github.com/mobz/elasticsearch-head" target="_blank">head </a>plugin for Elasticsearch to monitor and manage the server,<br />
<br />
You can find all the REST commands below for easy copy-paste if you want to follow the video and try hands-on.<br />
<br />
<div style="text-align: left;">
</div>
<h2 style="text-align: left;">
Add Sample Data</h2>
<br />
<blockquote class="tr_bq">
POST /places/restaurant<br />
{<br />
"name" : "Joes Italiana",<br />
"description": "Best pasta around",<br />
"address": {<br />
"street":"464 S Main St",<br />
"city":"Los Angeles",<br />
"state":"CA",<br />
"zip":"90013"<br />
},<br />
"location":[34.023954, -118.3927072],<br />
"tags":["italian","spaghetti","pasta"],<br />
"rating": "4.5"<br />
}<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>POST /places/restaurant<br />
{<br />
"name" : "Jose's Taco Shop",<br />
"description": "Best Tacos in SoCal",<br />
"address": {<br />
"street":"950 Vine St",<br />
"city":"Los Angeles",<br />
"state":"CA",<br />
"zip":"90038"<br />
},<br />
"location":[34.088186, -118.326603],<br />
"tags":["mexican","tacos","burritos"],<br />
"rating": "4.0"<br />
}<br />
POST /places/restaurant<br />
{<br />
"name" : "Berry's Burritos",<br />
"description": "Best Burritos in New York!",<br />
"address": {<br />
"street":"230 W 4th St",<br />
"city":"New York",<br />
"state":"NY",<br />
"zip":"10014"<br />
},<br />
"location":[40.7543385, -73.976313],<br />
"tags":["mexican","tacos","burritos"],<br />
"rating": "4.3"<br />
}<br />
POST /places/restaurant<br />
{<br />
"name" : "Steve's Italian Restaurant",<br />
"description": "Great food, great atmosphere",<br />
"address": {<br />
"street":"46 W 46th St",<br />
"city":"New York",<br />
"state":"NY",<br />
"zip":"10036"<br />
},<br />
"location":[40.751624, -73.9783865],<br />
"tags":["italian","spaghetti","pasta"],<br />
"rating": "3.5"<br />
}</blockquote>
<br />
<h2 style="text-align: left;">
Various forms of Search and Filter</h2>
<div>
<blockquote>
POST /places/restaurant/<b>_search</b><br />
{<br />
"query":{<br />
"match_all": {}<br />
}<br />
}<br />
POST /places/restaurant/_search<br />
{<br />
"query":{<br />
"query_string": {<br />
"query": "tacos"<br />
}<br />
}<br />
}<br />
POST /places/restaurant/_search<br />
{<br />
"query":{<br />
"query_string": {<br />
"query": "tacos",<br />
"fields": ["tags"]<br />
}<br />
}<br />
}<br />
POST /places/restaurant/_search<br />
{<br />
"query":{<br />
"query_string": {<br />
"query": "taco",<br />
"fields": ["name"]<br />
}<br />
}<br />
}<br />
POST /places/restaurant/_search<br />
{<br />
"query": {<br />
"filtered": {<br />
"query": {<br />
"query_string": {<br />
"query": "tacos",<br />
"fields": ["tags"]<br />
}<br />
},<br />
"filter": {<br />
"range": {<br />
"rating": {<br />
"gte": 4.0<br />
}<br />
}<br />
}<br />
}<br />
}<br />
}<br />
POST /places/restaurant/_search<br />
{<br />
"query": {<br />
"filtered": {<br />
"filter": {<br />
"range": {<br />
"rating": {<br />
"gte": 4.0<br />
}<br />
}<br />
}<br />
}<br />
}<br />
}<br />
<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>POST /places/restaurant/_search<br />
{<br />
"query": {<br />
"filtered": {<br />
"query": {<br />
"match": {<br />
"address.state": "ny"<br />
}<br />
},<br />
"filter": {<br />
"range": {<br />
"rating": {<br />
"gte": 4.0<br />
}<br />
}<br />
}<br />
}<br />
}<br />
}</blockquote>
</div>
<h2 style="text-align: left;">
Clear Index</h2>
<blockquote class="tr_bq">
DELETE /places</blockquote>
<div>
<br /></div>
<h2 style="text-align: left;">
Rebuild index with Synonym support</h2>
<div>
<blockquote class="tr_bq">
POST /places<br />
{<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"settings": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"analysis": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"filter": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"synonym": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"type": "synonym",<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"synonyms_path": "synonyms.txt",<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"ignore_case": "true"<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>},<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"analyzer": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"synonym": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"tokenizer": "whitespace",<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"filter": ["synonym"]<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>},<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"mappings": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"restaurant": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"_all": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"enabled": true<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>},<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"properties": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"address.state": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"type": "string",<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"analyzer": "synonym"<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>},<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"location": {<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>"type": "geo_point"<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
<span class="Apple-tab-span" style="white-space: pre;"> </span>}<br />
}</blockquote>
<h2 style="text-align: left;">
Bulk Insert of Data </h2>
</div>
<div>
<blockquote class="tr_bq">
POST /places/restaurant/<b>_bulk</b><br />
{"index":{}}<br />
{ "name" : "Joes Italiana", "description": "Best pasta around", "address": { "street":"464 S Main St", "city":"Los Angeles", "state":"CA", "zip":"90013" }, "location":[34.023954, -118.3927072], "tags":["italian","spaghetti","pasta"], "rating": "4.5" }<br />
{"index":{}}<br />
{ "name" : "Jose's Taco Shop", "description": "Best Tacos in SoCal", "address": { "street":"950 Vine St", "city":"Los Angeles", "state":"CA", "zip":"90038" }, "location":[34.088186, -118.326603], "tags":["mexican","tacos","burritos"], "rating": "4.0" }<br />
{"index":{}}<br />
{ "name" : "Berry's Burritos", "description": "Best Burritos in New York!", "address": { "street":"230 W 4th St", "city":"New York", "state":"NY", "zip":"10014" }, "location":[40.7543385, -73.976313], "tags":["mexican","tacos","burritos"], "rating": "4.3" }<br />
{"index":{}}<br />
{ "name" : "Steve's Italian Restaurant", "description": "Great food, great atmosphere", "address": { "street":"46 W 46th St", "city":"New York", "state":"NY", "zip":"10036" }, "location":[40.751624, -73.9783865], "tags":["italian","spaghetti","pasta"], "rating": "3.5" }</blockquote>
<br />
<h2 style="text-align: left;">
Synoym Search </h2>
<div>
<blockquote class="tr_bq">
POST /places/restaurant/_search<br />
{<br />
"query": {<br />
"filtered": {<br />
"query": {<br />
"match": {<br />
"address.state": <b>"new york"<br /> </b> }<br />
},<br />
<b> </b> "filter": {<br />
"range": {<br />
"rating": {<br />
"gte": 4.0<br />
}<br />
}<br />
}<br />
}<br />
}<br />
}<!--------></blockquote>
</div>
<br />
<h2 style="text-align: left;">
Geospatial Search</h2>
</div>
<div>
<blockquote>
POST /places/restaurant/_search<br />
{<br />
"query": {<br />
"filtered": {<br />
"filter": {<br />
"geo_distance": {<br />
"distance": "100km",<br />
"location": [40.7894537,-73.9481288]<br />
}<br />
}<br />
}<br />
}<br />
}</blockquote>
<br />
<blockquote>
POST /places/restaurant/_search<br />
{<br />
"query": {<br />
"filtered": {<br />
"filter": {<br />
"bool": {<br />
"must": [<br />
{<br />
"range": {<br />
"rating": {<br />
"gte":"4.0"<br />
}<br />
}<br />
},<br />
{<br />
"<b>geo_distance</b>": {<br />
"distance": "100km",<br />
"location": [40.7894537,-73.9481288]<br />
}<br />
} <br />
]<br />
}<br />
}<br />
}<br />
}<br />
}</blockquote>
<br />
<h2 style="text-align: left;">
Getting just Count</h2>
<blockquote class="tr_bq">
POST /places/restaurant/<b>_count</b><br />
{<br />
"query":{<br />
"query_string": {<br />
"query": "tacos"<br />
}<br />
}<br />
}</blockquote>
<br />
<h2 style="text-align: left;">
Paged Data</h2>
<blockquote class="tr_bq">
POST /places/restaurant/_search?<b>size=1&from=0</b><br />
{<br />
"query":{<br />
"query_string": {<br />
"query": "tacos"<br />
}<br />
}<br />
} </blockquote>
<br /></div>
</div>
think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com1tag:blogger.com,1999:blog-19873381.post-87542866830417938782015-04-11T15:58:00.002+05:302015-04-11T16:24:57.033+05:30Dash Cam G1WH Firmware Update<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
A Dash Cam is an invaluable asset when you run into an accident, like your insurance. It can provide critical information on how an accident happened and who is at fault. Apart from that, it may also record interesting things from the road like UFOs and funny moments :-)<br />
<br />
There is a huge array of dash cams in the market with varying price and features. G1WH is a cheap Chinese cam which surpasses many leading manufactures in video quality, at half price or even less.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWH1vfuQaWUQPYwdNRjoI2wxPO5XOugvaK5k544BfgpAx5yn9pQ9_hTra1JbvH0PmRCTCqqRzkLlf5HNh0t5M6htHTscCpoNdqxsV1mAqZVy2RQ4nPDIFNwFG_q9cryCSD8i-Avg/s1600/g1wh-car-dvr-novatek-96650-fullhd-front.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWH1vfuQaWUQPYwdNRjoI2wxPO5XOugvaK5k544BfgpAx5yn9pQ9_hTra1JbvH0PmRCTCqqRzkLlf5HNh0t5M6htHTscCpoNdqxsV1mAqZVy2RQ4nPDIFNwFG_q9cryCSD8i-Avg/s1600/g1wh-car-dvr-novatek-96650-fullhd-front.jpg" height="320" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmmdryuTq6D83MX-K49Y94VCUN3UI9WbIQvzXnNacxyEHKLc7EVCchrMGCskn9TDY2cz1GBFVnvhskVa2ulyaNyKKbicqEx_5tFvUzoc1l7KU_x-7KeJKOSgyschkWOuOfFDav4A/s1600/g1wh-car-dvr-novatek-96650-fullhd-back.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmmdryuTq6D83MX-K49Y94VCUN3UI9WbIQvzXnNacxyEHKLc7EVCchrMGCskn9TDY2cz1GBFVnvhskVa2ulyaNyKKbicqEx_5tFvUzoc1l7KU_x-7KeJKOSgyschkWOuOfFDav4A/s1600/g1wh-car-dvr-novatek-96650-fullhd-back.jpg" height="320" width="312" /></a></div>
<br />
<br />
<br />
You can find heaps of reviews and praises online on this model:<br />
http://thewirecutter.com/reviews/best-dash-cam/<br />
http://www.techmoan.com/blog/2013/12/16/g1w-the-cheapest-dash-cam-thats-worth-buying.html<br />
https://dashcamtalk.com/g1w/<br />
<br />
There are currently 3 versions of G1W and mine is G1WH. It uses an all black case (more discreet) and has slightly wider angle of view (140 vs 120). All are based on the popular Novatek NT96650 processor and the Aptina AR0330 CMOS sensor.<br />
<br />
I was having some issues with this though. The build quality is ok, but not the best. The mount tend to become loose easily and cam may fall off on receiving quick jerks. Also it is not recording reliably (switches off automatically after some time) and this can be fixed by turning off Motion sensor and reducing the G-Sensor sensitivity to Low/Med. Some people also had recording issues with some Class 10 memory cards, so a Class 6 branded (Samsung/Kingston/Sandisk) micro SD card is best suited. Also be warned that there are many fakes in the market (eBay/Amazon). Better to buy from gearbest.com or banggood.com.<br />
<br />
There are many firmware updates and custom firmware available for the G1WH model. The updates provides you more fixes and even new features like entering your license plate number to be stamped with date, higher bit rate etc.<br />
<br />
Here is supposedly the newest firmware for G1WH. The default language is Polish, but you can change it via the menu.<br />
<a href="http://reliabledownloads.org/file/05JxN" style="-webkit-background-clip: padding-box !important; background: rgb(255, 255, 255); border: 0px; color: #0ca6e0; font-family: sans-serif; font-size: 12px; margin: 0px; outline: none; padding: 0px; text-decoration: none; vertical-align: baseline;" target="_blank">http://reliabledownloads.org/file/05JxN</a><br />
<span style="font-size: xx-small;">Credits: http://vat19.pl/pl/blog/informacje/15-Firmware.html</span><br />
<br />
It adds the following features:<br />
<ul style="text-align: left;">
<li>Increased recording bitrate files (such as DVRs DOD) </li>
<li>Polish language menu </li>
<li>Added function car plate (not present in older versions) </li>
<li>More stable operation </li>
</ul>
<br />
My cam came with Firmware version 2014.0509, in case you screw up you can revert to it here:<br />
<a href="http://reliabledownloads.org/file/05Jxn" style="-webkit-background-clip: padding-box !important; background: rgb(255, 255, 255); border: 0px; color: #0ca6e0; font-family: sans-serif; font-size: 12px; margin: 0px; outline: none; padding: 0px; text-decoration: none; vertical-align: baseline;" target="_blank">http://reliabledownloads.org/file/05Jxn</a><br />
<br />
NOTE: After updating firmware the menu button was not working for me. Same happened even after reverting to above 2014.0509. If same happens click on the camera button on the top (next to power) and then click Menu.<br />
<br />
These are the instructions to update the firmware:<br />
1. Download the firmware file to your computer<br />
2. Unzip the file<br />
3. Format your memory card in your computer (or unit)<br />
4. Copy the bin file to the root of your memory card<br />
5. Change the name of the firmware you would like to flash to FWDM800H (required as the G1WH will not update with bin files with names other then this)<br />
6. Put card into camera<br />
7. Power camera on (make sure the camera is plugged in)<br />
8. The camera will update automatically. The screen will stay off but the status light will be on; it will take 30-60 seeconds<br />
9. After updating, format the card.<br />
<br />
NOTE: Remove the firmware (.bin) from the memory card you would like to use or it will flash every time you start!<br />
<br />
<div>
<br /></div>
</div>
think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com3tag:blogger.com,1999:blog-19873381.post-81519291434698598742015-02-16T10:39:00.002+05:302015-02-16T10:39:30.319+05:30Open Command Window Here<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
When you are doing some hardcore development you may have to run many things in different console (CMD/Command Prompt/DOS) windows. Usually the fastest way is to go to Run, type cmd + Enter and cd to the desired location. There is an even better option. You can open CMD and cd to a folder just by right clicking on the folder and selecting a menu item. The trick is to use Shift + Right Click. This will give you additional options, and one of them is "<b>Open command window here</b>" (Windows 7).<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiJtkiYRWgz9myOSo4-jfVUltwzZo3nAdoB47YMqy_GklLq0WTIQzuDShjhBZeHKQiGSdmWtsMuU9r96wSTgECLtP1OZ2UAhe2Z6rixYr0Rf6xwEXW9MEZDPS4wfHGBxF5eCalig/s1600/Open_CMD_here.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiJtkiYRWgz9myOSo4-jfVUltwzZo3nAdoB47YMqy_GklLq0WTIQzuDShjhBZeHKQiGSdmWtsMuU9r96wSTgECLtP1OZ2UAhe2Z6rixYr0Rf6xwEXW9MEZDPS4wfHGBxF5eCalig/s1600/Open_CMD_here.jpg" height="243" width="640" /></a></div>
<br />
<br />
Another very useful tip is to add your most frequently opened folders to favorites so that you see them in the left top of explorer and can open with a single click.<br />
<br />
<br /></div>
think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com0tag:blogger.com,1999:blog-19873381.post-15763648148928481452015-02-06T20:20:00.000+05:302015-02-06T20:22:34.256+05:30i3 NUC with Xubuntu intermittently freezing while running torrents<div dir="ltr" style="text-align: left;" trbidi="on">
My NUC was flying and it was a great relief coming from a Raspberry Pi, which sweats if you do multitasking. I thought of setting up a torrent client on it. Suddenly it started freezing while I was watching a movie in Kodi (latest XBMC). It has never happened before. I checked CPU and RAM, both seem perfectly fine. I knew it was something to do with the torrent client.<br />
<br />
Initially I thought perhaps multiple file access to the external HDD is the culprit and may have to eventually get an mSATA drive. USB devices are not very good with simultaneous access. Then I googled a bit to confirm my theory. But I was surprised to find out that the real culprit was the 1024 file descriptor limit in linux. <br />
<br />
So I went to the /etc/security/limit.conf and added the following:<br />
<user><i>userId</i> soft nofile 4096</user><br />
<br />
And that fixed it. Now the torrents are downloading fine (earlier the torrent client used to freeze also). I can smoothly do other things like watching movies too.<br />
<br />
<br /></div>
think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com0tag:blogger.com,1999:blog-19873381.post-55642456233167955652015-02-06T20:03:00.000+05:302015-02-06T20:06:49.763+05:30Converting a USB printer to a network printer<div dir="ltr" style="text-align: left;" trbidi="on">
I recently bought a NUC and has been doing cool stuff with it. I have a Brother HL 1110 mono laser printer which supports only USB. So here is how I made it a network printer.<br />
<br />
The NUC has Xubuntu 14.10 (based on Ubuntu). So I setup Samba and enabled file and printer sharing. I use GADMIN-SAMBA for easy configuration via UI.<br />
<br />
Here is my Samba configuration:<br />
<br />
[global]<br />
netbios name = nuc<br />
server string = Samba file and print server<br />
workgroup = WORKGROUP<br />
security = user<br />
hosts allow = 127. 192.168.<br />
dns proxy = no<br />
map to guest = bad user<br />
<br />
[nas]<br />
path = /mnt/NAS_HDD1/NAS/<br />
comment = No comment<br />
read only = no<br />
browsable = yes<br />
writable = yes<br />
guest ok = yes<br />
<br />
[printers]<br />
path = /var/spool/samba<br />
printable = yes<br />
printing = CUPS|LPRNG|...<br />
<br />
[print$]<br />
path = /srv/samba/Printer_drivers<br />
comment = Printer Drivers<br />
writeable = yes<br />
<br />
From the remote windows machine I add a new printer, select 'Network' type and give the path as \\hostname\printername eg: \\192.168.0.111\HL1110.<br />
<br />
Even if the printer was configured fine, printouts were coming as blank initially.<br />
<br />
Go to the Linux driver page of HL1110, and install all three (Driver Install Tool, LPR Printer Driver, CUPS Wrapper printer driver).<br />
http://support.brother.com/g/b/downloadlist.aspx?c=eu_ot&lang=en&prod=hl1110_us_eu_as&os=128<br />
<br />
Make sure that you run sudo, else the driver won't be installed correctly.<br />
<span style="background-color: #ebeadd; color: red; font-family: 'Lucida Grande', 'Trebuchet MS', Verdana, Helvetica, Arial, sans-serif; font-size: 12.3500003814697px; line-height: 18.2000007629395px;">sudo bash linux-brprinter-installer-2.0.0-1 HL-1110</span><br />
<br />
If you want to print from a mobile device or even remotely, add this printer to your Google account via Chrome:<br />
https://support.google.com/cloudprint/answer/1686197?hl=en<br />
<br />
<br />
<br /></div>
think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com0tag:blogger.com,1999:blog-19873381.post-83769827672009167452015-01-21T17:37:00.001+05:302015-01-21T17:37:46.113+05:30Canon CanoScan LiDE70: Unable to connect to Twain Source<div dir="ltr" style="text-align: left;" trbidi="on">
Though there are many decent apps like Cam2PDF/CamScanner etc which uses the phone camera to scan a document, nothing can replace a proper conventional scanner, especially if you are serious and want high quality.<br />
<br />
Multi Function Printers (Scanner + Printer) are a waste of money. Instead get a slim flat bed scanner and a compact mono laser printer. Laser printers lasts much longer, especially if you print only occasionally. Inkjet printer head and cartridges dry up and get useless pretty quick, if used scarcely. I have a <a href="http://www.usa.canon.com/cusa/support/consumer/scanners/canoscan_series/canoscan_lide70" target="_blank">Canon CanoScan LiDE70 scanner</a> and a basic <a href="http://brother.com.au/products/printers/monochrome-laser-printers/hl-1110-detail" target="_blank">Brother 1110 mono laser printer</a>, going strong since years!<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEir-dtXa589hpAwdSelfFb9Ei27jhP8pZNEeRbyxXwBWo8O3OECju9ax_Vn04ngtP5QBaBRjyJ2_vLS3XfKXmrvDKFzcgXseYjOf9gOm8AzPidaoBe1V2kAtJYe1Hoc-Nx3fdPcHQ/s1600/hr_lide70_cl_186x279.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEir-dtXa589hpAwdSelfFb9Ei27jhP8pZNEeRbyxXwBWo8O3OECju9ax_Vn04ngtP5QBaBRjyJ2_vLS3XfKXmrvDKFzcgXseYjOf9gOm8AzPidaoBe1V2kAtJYe1Hoc-Nx3fdPcHQ/s1600/hr_lide70_cl_186x279.gif" height="133" width="200" /></a><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg67HRW_10Tj2IqrswXFxWLzLvqtTGDYSVgBYdJxqz4hX2XN5IIXMCw8tnZn_L_eeu2jGcJnFNeCvP0gSGlWyGbBX2HYcAynf1RKSWrCclraOZEjr5FgQDaioT8aqBcX2hi7y-bmg/s1600/hl-1110.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg67HRW_10Tj2IqrswXFxWLzLvqtTGDYSVgBYdJxqz4hX2XN5IIXMCw8tnZn_L_eeu2jGcJnFNeCvP0gSGlWyGbBX2HYcAynf1RKSWrCclraOZEjr5FgQDaioT8aqBcX2hi7y-bmg/s1600/hl-1110.jpg" height="200" width="200" /></a></div>
<br />
Usually Windows picks up drivers automatically for both devices. Recently I was trying to setup the scanner in a new laptop with Windows 7 64bit and ran into following error, when using the Canon Toolbox utility: Unable to open TWAIN source. Please check connection. Then re-start Toolbox!<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkAsZHhUwxAEVkz8Ms0oatax17hK6E6X91NanpFLoaMFbCMW7viCSqO0O77xADTckDN2qMTQRiF9lp2BScZpF36ozjg_88_Xwpzk_3A3Aqa2I1pP2TD5LiwcXYrRfHMEq8fSbj-w/s1600/Canon+Toolbox+Error.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgkAsZHhUwxAEVkz8Ms0oatax17hK6E6X91NanpFLoaMFbCMW7viCSqO0O77xADTckDN2qMTQRiF9lp2BScZpF36ozjg_88_Xwpzk_3A3Aqa2I1pP2TD5LiwcXYrRfHMEq8fSbj-w/s1600/Canon+Toolbox+Error.jpg" height="222" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Googling around a bit discovered that it is because the Toolbox software is not able to find the installed driver. You can fix this easily by adding the driver folder to the path.<br />
eg: C:\Windows\twain_32\CNQ2411<br />
<br />
So go to Computer -> Properties -> Advanced system settings -> Environment Variables -> System variables -> Path -> Edit and add the above to the end<br />
eg:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilHiuaO2N_-1_uSmCcLGFIKgM2LA0FV-e1K-um9HH53d8Qf67oXVVXLtNL4wG1_O_1uvz8tLImYNPJy9rnCeFU7mjdCW09EZOQ_BkW81wtdBwVB6QaKDaMwl536PAeLkzCy6cEmg/s1600/Edit_Path.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEilHiuaO2N_-1_uSmCcLGFIKgM2LA0FV-e1K-um9HH53d8Qf67oXVVXLtNL4wG1_O_1uvz8tLImYNPJy9rnCeFU7mjdCW09EZOQ_BkW81wtdBwVB6QaKDaMwl536PAeLkzCy6cEmg/s1600/Edit_Path.jpg" height="320" width="309" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
Click all OKs and close the Properties, close and reopen the Toolbox utility. It should work fine now!<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-K9rbwi5ZMQPY5HJCUma3PDafzJxbpDiW4mtCkeNJ4KIi5J4XPBM833MzNoVHZ292RWp1jsOTwqMTUev9GM1Bgr-DCVah-Tup0qrGqQFrUXxAi3AnKuNhMsazKPBLl_YleQpKcQ/s1600/CanoScan+Toolbox.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-K9rbwi5ZMQPY5HJCUma3PDafzJxbpDiW4mtCkeNJ4KIi5J4XPBM833MzNoVHZ292RWp1jsOTwqMTUev9GM1Bgr-DCVah-Tup0qrGqQFrUXxAi3AnKuNhMsazKPBLl_YleQpKcQ/s1600/CanoScan+Toolbox.jpg" height="101" width="320" /></a></div>
<br />
TIP: If the Toolbox is still not working, try going to 'Devices and Printers', right click CanoScan and 'Start scan' option.</div>
think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com0tag:blogger.com,1999:blog-19873381.post-32220848787598075192015-01-07T17:40:00.000+05:302015-01-07T17:44:26.620+05:30NUC Setup for XBMC<div dir="ltr" style="text-align: left;" trbidi="on">
After using Raspberry Pi as a media player for almost an year, took the plunge and upgraded to an Intel i3 <a href="http://www.intel.com.au/content/www/au/en/nuc/overview.html" target="_blank">NUC</a> (Next Unit of Computing). For those who doesn't know, NUC is a very compact computer, which can be used as a light weight PC (can be attached behind a monitor using VESA mount) or as a dedicated device (eg: Media Player, Streamer, NAS etc).<br />
<br />
I have used other media players like ASUS, Kaiboer etc before, but have been disappointed by lack of software/firmware updates and how quickly they get dated when new codecs come etc. So decided that will go for only more customizable and versatile platforms only. Raspberry Pi + RaspBMC is a great media player which is really value for money. Though the specs are low, it supports hardware decoding and hence most of the videos work just fine. Low price is the main attraction and there is a great community support. But of late I see my pi sweating a lot when decoding 1080P movies with AAC 5.1 audio. Other Audio codecs like MP3, AC3, DTS and even AAC 2.0 with 1080p works fine.<br />
<br />
Though the Celeron NUC is powerful enough, I wanted to be future proof and have plans to multi-task my NUC. So went for i3 based <a href="http://www.intel.com/content/www/us/en/nuc/nuc-kit-d34010wykh.html" target="_blank">D34010WYKH</a>, with just 4GB RAM and an 8GB USB3 mem stick as extras. Advantages of a NUC (mini PC) over a PC is its size and much lower power consumption. It mainly uses the laptop/notebook version of hardware to achieve this. Without further adieu, lets dive into the details of the setup.<br />
<br />
<b>1) Hardware</b><br />
<a href="http://www.intel.com/content/www/us/en/nuc/nuc-kit-d34010wykh.html" target="_blank">D34010WYKH</a><br />
4GB RAM Kingston (1.35v)<br />
No HDD<br />
USB3 8GB stick<br />
Rii8 keyboard<br />
<br />
<b>2) Software</b><br />
First thing you have to do is to <a href="http://www.intel.com/support/motherboards/desktop/sb/CS-034499.htm" target="_blank">upgrade the BIOS</a> of the NUC. It is quite easy, download the new bios, copy it to a USB drive, start the NUC and press F7. Detailed instructions are available in above link.<br />
<br />
Since I would be mostly using it as a media player, free linux is a much better option that paying for a Windows license. A linux distro with a decent UI system is a better option than going too light like OpenElec or Ubuntu Server. So I chose <a href="http://xubuntu.org/" target="_blank">Xubuntu</a> 14.10. Xubuntu is basically Xfce + Ubuntu. Download latest Xubuntu 64 bit iso, use something like <a href="http://www.linuxliveusb.com/" target="_blank">LiLi</a> to create a bootable USB installer. Once you install Xubuntu, you need to install the latest <a href="https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=13815" target="_blank">Intel HD4400 Graphics driver for ubuntu</a>.<br />
<br />
But the intel graphics driver installer won't work as it currently supports only upto Ubuntu 14.04 and above Xubuntu uses 14.10. So you should either downgrade the version or just temporarily tweak it in the file /etc/lsb-release and rerun the installer.<br />
eg:<br />
DISTRIB_ID=Ubuntu<br />
DISTRIB_RELEASE=14.10<br />
DISTRIB_CODENAME=utopic<br />
DISTRIB_DESCRIPTION="Ubuntu 14.10"<br />
<div>
<br /></div>
<div>
change to</div>
<div>
<div>
DISTRIB_ID=Ubuntu</div>
<div>
DISTRIB_RELEASE=14.<b>04</b></div>
<div>
DISTRIB_CODENAME=utopic</div>
<div>
DISTRIB_DESCRIPTION="Ubuntu 14.<b>04</b>"</div>
</div>
<div>
<br /></div>
<div>
<b>Note</b>: always a good idea to create a copy of any file you change as backup. Easy to revert if you screw up. Eg: cp /etc/lsb-release /etc/lsb-release.backup</div>
<div>
<br /></div>
<div>
Once you do this, you can install VNC (eg: <a href="https://help.ubuntu.com/community/VNC/Servers" target="_blank">Vino VNC</a>), FTP etc on the server to make it easily accessible over the network. </div>
<div>
<br /></div>
<div>
But there is a bug with intel graphics. It doesn't seem to redo HDMI handshake when you switch display. For example: I use an HK receiver which is connected to a JBL 5.1 system and a projector. It has an HDMI switcher (4 in, 1 out) and I use other sources like the old pi, a TV Tuner DVR etc. Also I leave the NUC always on, but switch off the receiver. Due to this bug, I had to restart my NUC every time I start the receiver or switch sources. Then I found a hack that just restarting the XServer would do the resync. So created the below script and created a keyboard shortcut to run it, so that I can execute by pressing a key on my full keyboard remote (Rii8)<br />
<br />
<b><u>restartX.sh</u></b><br />
#!/bin/bash<br />
echo "Restarting X "<br />
echo 'YOUR_SU_PASSWORD'| sudo -S /sbin/restart lightdm<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy7O5UimdPfO8dM_vJWBPXbKFUFLTh_VFgoEGgaP1lDc2mMixCN6TjRMA3eB5ndMpCUBXDIZNj3xAxkskYfxVvDQUDm9RpE7DTq62Zfo4f0ss-ft1l3wf73JkSLrmjYR5PHoA_kQ/s1600/Linux_Keyboard_Shortcut.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjy7O5UimdPfO8dM_vJWBPXbKFUFLTh_VFgoEGgaP1lDc2mMixCN6TjRMA3eB5ndMpCUBXDIZNj3xAxkskYfxVvDQUDm9RpE7DTq62Zfo4f0ss-ft1l3wf73JkSLrmjYR5PHoA_kQ/s1600/Linux_Keyboard_Shortcut.jpg" height="320" width="261" /></a></div>
<br />
<br />
Once all the above setup is done, you can install latest XBMC following the instructions here:<br />
http://kodi.wiki/view/HOW-TO:Install_Kodi_for_Linux#Ubuntu<br />
<br />
I created a shortcut for XBMC and kept it in the desktop. I just launch it whenever I need XBMC, you may also launch it via a keyboard shortcut.<br />
<br />
I also use the NUC as a print server by connecting a cheap USB mono Laser printer (Brother HL1110) to it. Initially I thought of setting up a full fledged NAS, but later realized it is more flexible to just replicate only part of the disk (I use two external 2 TB USB 3.0 portable HDDs). This way I can detach the disk and carry it around when I go for trips, and I just backup only my personal photos, videos etc and leave all the movies and other junk just in one disk. I use luckyBackup for syncing contents between the disks.<br />
<br /></div>
</div>
think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com0tag:blogger.com,1999:blog-19873381.post-60930787158643049332015-01-06T11:27:00.001+05:302015-01-06T11:27:58.535+05:30Changing Title of Command Prompt<div dir="ltr" style="text-align: left;" trbidi="on">
Sometimes it is annoying when you can't easily distinguish which is what, when you work with multiple Command Prompt consoles in Windows. For eg: may be you are working on multiple nodejs applications and all your command prompts show the title as : "C:\windows\system32\cmd.exe - node app.js".<br />
<br />
You can easily fix this using the TITLE command in DOS. In the console, just type "TITLE My App1" and press enter. Voila, you would see that the command window title now changed to "My App1". So next time you start nodejs, it would be "My App1 - node app.js"<br />
<br />
Ain't that a cool way to be easily organized and avoid the frustration?!<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKY3UJVYJvINuoCH096_paNQ7EHLE2vI9OZZ5L9dDF914j6o0hrRKxyECnv7EALznFr36GcM-5mCb4dkVgnj7Jy6GjS5vEYMPglmc16rDEqev3_teoppq2oh9VHGYReNVNah2SLQ/s1600/ScreenHunter_+Jan.+06+16.54.56.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjKY3UJVYJvINuoCH096_paNQ7EHLE2vI9OZZ5L9dDF914j6o0hrRKxyECnv7EALznFr36GcM-5mCb4dkVgnj7Jy6GjS5vEYMPglmc16rDEqev3_teoppq2oh9VHGYReNVNah2SLQ/s1600/ScreenHunter_+Jan.+06+16.54.56.jpg" height="157" width="320" /></a></div>
<br />
More info:<br />
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/title.mspx<br />
<br />
<br />
<br />
<br /></div>
think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com0tag:blogger.com,1999:blog-19873381.post-24568820053769496182014-07-01T07:22:00.001+05:302014-07-01T07:22:32.120+05:30How to find Serial Number?<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
Wonder how you can find a machine's serial number via a simple command? Especially helpful if you want to use it in a script or want to find the serial number of a remote machine. Or may be you just don't want to get under the desk to find it from behind the machine! It is as simple as this:<br />
<br />
<b>Windows:</b><br />
wmic bios get serialnumber<br />
<div>
<br /></div>
<div>
<b>Linux:</b></div>
<div>
dmidecode -t system | grep Serial</div>
<div>
<br /></div>
<div>
<b>Note</b>: The above command should be run from a shell. Eg: Type cmd in Run (<kbd class="keyboard-key nowrap" style="-webkit-box-shadow: rgb(221, 221, 221) 0.1em 0.2em 0.2em; background-color: #f9f9f9; background-image: linear-gradient(rgb(238, 238, 238), rgb(249, 249, 249), rgb(238, 238, 238)); border-bottom-left-radius: 0.2em; border-bottom-right-radius: 0.2em; border-top-left-radius: 0.2em; border-top-right-radius: 0.2em; border: 1px solid rgb(170, 170, 170); box-shadow: rgb(221, 221, 221) 0.1em 0.2em 0.2em; color: #252525; font-family: inherit; font-size: 0.85em; padding: 0.1em 0.3em; white-space: nowrap;"><span class="Unicode">⊞</span> Win</kbd><span style="background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 22.399999618530273px;">+</span><kbd class="keyboard-key nowrap" style="-webkit-box-shadow: rgb(221, 221, 221) 0.1em 0.2em 0.2em; background-color: #f9f9f9; background-image: linear-gradient(rgb(238, 238, 238), rgb(249, 249, 249), rgb(238, 238, 238)); border-bottom-left-radius: 0.2em; border-bottom-right-radius: 0.2em; border-top-left-radius: 0.2em; border-top-right-radius: 0.2em; border: 1px solid rgb(170, 170, 170); box-shadow: rgb(221, 221, 221) 0.1em 0.2em 0.2em; color: #252525; font-family: inherit; font-size: 0.85em; padding: 0.1em 0.3em; white-space: nowrap;">R</kbd>) for Windows.</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
</div>
think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com0tag:blogger.com,1999:blog-19873381.post-21926879563156936972014-05-31T07:52:00.001+05:302014-07-01T07:23:20.311+05:30How to denote that your link opens in a new Window?<div dir="ltr" style="text-align: left;" trbidi="on">
I like to know whether a link would open in a new window or not, before I click a link. I think it is a good practice (especially for accessibility) and I think all browsers should do it automatically. Though the recommended practice is not to open links in another window (as it breaks back button navigation), we may have to do it some times, especially when we link to external websites. Here is a really neat way to do it, without any code changes, just via CSS (easy to remove if you change mind later).<br />
<br />
<blockquote class="tr_bq">
a[target]::after {<br />
margin-left: 5px;<br />
content: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwIiBoZWlnaHQ9IjEwIj48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtODI2LjQyOSAtNjk4Ljc5MSkiPjxyZWN0IHdpZHRoPSI1Ljk4MiIgaGVpZ2h0PSI1Ljk4MiIgeD0iODI2LjkyOSIgeT0iNzAyLjMwOSIgZmlsbD0iI2ZmZiIgc3Ryb2tlPSIjMDZjIi8+PGc+PHBhdGggZD0iTTgzMS4xOTQgNjk4Ljc5MWg1LjIzNHY1LjM5MWwtMS41NzEgMS41NDUtMS4zMS0xLjMxLTIuNzI1IDIuNzI1LTIuNjg5LTIuNjg5IDIuODA4LTIuODA4LTEuMzExLTEuMzExeiIgZmlsbD0iIzA2ZiIvPjxwYXRoIGQ9Ik04MzUuNDI0IDY5OS43OTVsLjAyMiA0Ljg4NS0xLjgxNy0xLjgxNy0yLjg4MSAyLjg4MS0xLjIyOC0xLjIyOCAyLjg4MS0yLjg4MS0xLjg1MS0xLjg1MXoiIGZpbGw9IiNmZmYiLz48L2c+PC9nPjwvc3ZnPg==);<br />
}</blockquote>
<br />
<blockquote class="tr_bq">
<span style="background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;"><</span>a href="http://google.com/">Open in this window<span style="color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: x-small;"><span style="background-color: white; line-height: 16.899999618530273px;"> <</span></span>/a><br />
<span style="background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;"><</span>a href="http://google.com/" target="_blank">Open in another window <span style="background-color: white; color: #404040; font-family: verdana, helvetica, arial, sans-serif; font-size: 13px; line-height: 16.899999618530273px;"><</span>/a></blockquote>
<br />
This is how it would look. Notice the icon towards the end of the second link. Many well known websites (eg: Wikipedia) do this.<br />
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwZegAixcwQ2oQMy5ty4MvByqX0jUOAUudLct31JvIDRaTFZ-wcPLRjW9aSTyJJpp7V_HQTfJau7KQbHp4xl27iqsBCP7fVyZ76WfaU2OqT8dP0PI8fohE1Yvw71yh8hT7vsgGcg/s1600/New_Window_Icon.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwZegAixcwQ2oQMy5ty4MvByqX0jUOAUudLct31JvIDRaTFZ-wcPLRjW9aSTyJJpp7V_HQTfJau7KQbHp4xl27iqsBCP7fVyZ76WfaU2OqT8dP0PI8fohE1Yvw71yh8hT7vsgGcg/s1600/New_Window_Icon.jpg" /></a></div>
<br />
<br />
<br /></div>
think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com0tag:blogger.com,1999:blog-19873381.post-74079268054105034322014-04-16T11:12:00.000+05:302014-04-16T11:12:56.136+05:30How to add a custom system property to WAS (WebSphere Application Server) 7<div dir="ltr" style="text-align: left;" trbidi="on">
Struggling to add a custom environment property to WAS? Tried editing startServer/setupCmdLine batch/script files and failed? Here is how you can do it easily from the Admin Web Console<br />
<br />
Go to admin console:<br />
eg: https://localhost:16316/ibm/console<br />
<br />
In the admin console:<br />
Application servers -> (server name) -> Server Infrastructure, Java and Process Management, Process Definition -> Java Virtual Machine -> Custom Properties.<br />
<br />
Note: The exact sequence may vary depending on what version of Websphere you are using.<br />
<br />
The entries you make here are system properties (not environment variables and not WebSphere variables). They can be accessed via System.getProperty().<br />
<br />
More Info: http://pic.dhe.ibm.com/infocenter/rtc/v2r0m0/index.jsp?topic=%2Fcom.ibm.jazz.install.doc%2Ftopics%2Ft_s_server_installation_setup_WAS.html<br />
<br />
<br /></div>
think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com0tag:blogger.com,1999:blog-19873381.post-53715048518706292192014-04-16T07:48:00.000+05:302014-04-16T07:48:25.357+05:30YUM: Error: Cannot retrieve repository metadata (repomd.xml) for repository<div dir="ltr" style="text-align: left;" trbidi="on">
Screwed up your yum? Here is a quick way to fix by cleaning it up:<br />
<br />
View repolist:<br />
yum repolist all<br />
<br />
Clean cached package downloads/headers:<br />
yum clean all<br />
<br />
Disable a repo temporarily:<br />
yum <b>--disablerepo epel </b>install htop<br />
<br />
Disable a repo permanently:<br />
Remove or comment it out in: <span style="font-family: monospace;">/etc/yum.repos.d/</span><br />
<br />
More info:<br />
http://docs.oracle.com/cd/E37670_01/E37355/html/ol_creating_yum_repo.html<br />
http://www.tecmint.com/20-linux-yum-yellowdog-updater-modified-commands-for-package-mangement/<br />
http://forums.fedoraforum.org/showthread.php?t=223472<br />
https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sec-Managing_Yum_Repositories.html<br />
http://www.centos.org/docs/5/html/yum/sn-yum-maintenance.html<br />
<br /></div>
think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com0tag:blogger.com,1999:blog-19873381.post-52381172014472808682014-04-16T07:29:00.000+05:302014-04-16T07:31:28.778+05:30Task Manager for Linux<div dir="ltr" style="text-align: left;" trbidi="on">
New to Linux and missing a graphical task manager like the one in Windows?<br />
<br />
<h3 style="text-align: left;">
Try Htop (Linux Process Monitoring)</h3>
Htop is an interactive and real time process monitoring application for Linux. It shows complete list of processes running and easy to use for normal tasks.<br />
<br />
For RHEL, CentOS & Fedora 64-bit OS<br />
## For RHEL 5, CentOS 5 & Fedora ##<br />
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm<br />
# rpm -ihv rpmforge-release*.rf.x86_64.rpm<br />
<br />
## For RHEL 6 and CentOS 6<br />
# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm<br />
# rpm -ihv rpmforge-release*.rf.x86_64.rpm<br />
<br />
<b>Note</b>: update above command to use the latest version of RPMforge.<br />
<br />
Once <b>RPMforge </b>repository is installed. Now start installation with yum command.<br />
# yum install htop<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1S1hRDAAySl1YfUAF-xxoPF2BSkd7oVcO5u-3IfrfOtGmchPDwd2tFajR6FDgH8xjgIPDvyH3fkQwi08LiCfaNJ0AuL5UyKpr80ziT8CgA9HijJ3XQKi-W4Z7nU4jzV1nm0rFhw/s1600/htop.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh1S1hRDAAySl1YfUAF-xxoPF2BSkd7oVcO5u-3IfrfOtGmchPDwd2tFajR6FDgH8xjgIPDvyH3fkQwi08LiCfaNJ0AuL5UyKpr80ziT8CgA9HijJ3XQKi-W4Z7nU4jzV1nm0rFhw/s1600/htop.jpg" height="384" width="640" /></a></div>
<br />
For more info, visit:<br />
http://www.tecmint.com/install-htop-linux-process-monitoring-for-rhel-centos-fedora/<br />
http://linuxlookup.com/howto/view_running_processes_linux_system<br />
<br />
You can always see running processing in the console using the following command:<br />
ps aux | less<br />
<br />
The <i>pstree </i>command is similar to <i>ps </i>in that it can be used to show all of the processes on the system along with their PIDs. However, it differs in that it presents output in a tree structure that shows how processes are related to each other and in that it provides less detailed information about each process than does ps</div>
think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com0tag:blogger.com,1999:blog-19873381.post-58902116786758242822013-05-08T02:23:00.000+05:302013-05-08T02:23:10.702+05:30Nexus 7 stuck at 0% battery?<div dir="ltr" style="text-align: left;" trbidi="on">
I had this weird problem that the Nexus 7 always shows battery level as 0%. When connected to a charger, it doesn't say charging too. I could still use it fine for hours though!<br />
<br />
Fixed it by securing the battery connector, shown in previous post.<br />
<br />
So here are different fixes for you:<br />
1) Take the back cover off and make sure that the battery cable is pushed all the way into the socket (worked for me)<br />
<br />
2) Disconnect the battery cable carefully, hold the power button for about 10-15 seconds with the battery unplugged, this creates a static reset, using all of the electricity in the device and discharging it fully<br />
<br />
All the best!</div>
think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com0tag:blogger.com,1999:blog-19873381.post-14826857167090898532013-03-31T11:43:00.001+05:302013-03-31T11:55:18.704+05:30Nexus 7 Dead - Won't Start<div dir="ltr" style="text-align: left;" trbidi="on">
Bought a Google (Asus) Nexus 7 Tablet in March 2013, via a friend who came from US. I paid $299 (+ shipping & tax = $339). It is the 3G model with 32GB internal memory (there is no support for external memory, like Micro SD cards).<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtcgg0Mi_XQSeY0NXN8TxfblbpfYZEXIYd9wEcb4Y04vVwlJrJdZ0slTzVheMx-kSUDa403NviDWh-8Bhe3R1u0pcCCi6NSWUzohY76ruMmyxer_dK4eyjCUl7eSt3gVlfwVrdw/s1600/n7.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="335" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJtcgg0Mi_XQSeY0NXN8TxfblbpfYZEXIYd9wEcb4Y04vVwlJrJdZ0slTzVheMx-kSUDa403NviDWh-8Bhe3R1u0pcCCi6NSWUzohY76ruMmyxer_dK4eyjCUl7eSt3gVlfwVrdw/s400/n7.png" width="400" /></a></div>
More info: <a href="http://www.google.com/nexus/7/" target="_blank">http://www.google.com/nexus/7/</a><br />
<br />
This is supposedly the most powerful 7" tablet around. Spec wise it is way powerful than the Apple ipad mini too. Here is a quick look at the technical details:<br />
<br />
<span style="background-color: white; color: #666666; font-family: Roboto, Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px; text-transform: uppercase;">SCREEN</span><br />
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;">7" 1280x800 HD display (216 ppi)</span><br />
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;">Back-lit IPS display</span><br />
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;">Scratch-resistant Corning® glass</span><br />
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;"><br /></span>
<br />
<div class="hardware-tech-spec-title" style="background-color: white; border: 0px; color: #666666; font-family: Roboto, Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px; margin: 0px 0px 5px; padding: 0px; text-transform: uppercase;">
CAMERA</div>
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;">1.2MP front-facing camera</span><br />
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;"><br /></span>
<br />
<div class="hardware-tech-spec-title" style="background-color: white; border: 0px; color: #666666; font-family: Roboto, Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px; margin: 0px 0px 5px; padding: 0px; text-transform: uppercase;">
CPU</div>
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;">NVIDIA® Tegra® 3 quad-core processor</span><br />
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;"><br /></span>
<br />
<div class="hardware-tech-spec-title" style="background-color: white; border: 0px; color: #666666; font-family: Roboto, Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px; margin: 0px 0px 5px; padding: 0px; text-transform: uppercase;">
SENSORS</div>
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;">Microphone</span><br />
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;">NFC (Android Beam)</span><br />
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;">Accelerometer</span><br />
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;">GPS</span><br />
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;">Magnetometer</span><br />
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;">Gyroscope</span><br />
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;"><br /></span>
<br />
<div class="hardware-tech-spec-title" style="background-color: white; border: 0px; color: #666666; font-family: Roboto, Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px; margin: 0px 0px 5px; padding: 0px; text-transform: uppercase;">
OS</div>
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;">Android 4.2.2 (first to get updates)</span><br />
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;"><br /></span>
<br />
<div class="hardware-tech-spec-title" style="background-color: white; border: 0px; color: #666666; font-family: Roboto, Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px; margin: 0px 0px 5px; padding: 0px; text-transform: uppercase;">
MEMORY</div>
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;">16/32 GB internal storage</span><br />
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;">1 GB RAM</span><br />
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;"><br /></span>
<br />
<div class="hardware-tech-spec-title" style="background-color: white; border: 0px; color: #666666; font-family: Roboto, Arial, sans-serif; font-size: 13px; font-weight: bold; line-height: 18px; margin: 0px 0px 5px; padding: 0px; text-transform: uppercase;">
WIRELESS</div>
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;">WiFi 802.11 b/g/n</span><br />
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;">Bluetooth</span><br />
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;">NFC (Android Beam)</span><br />
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;">3G</span><br />
<span style="background-color: white; color: #8e8e8e; font-family: Roboto, Arial, sans-serif; font-size: 13px; line-height: 18px;"><br /></span>
One of the coolest features of Android 4.2.x is multi-user. Like Windows etc, multiple users can have personal profiles, enhancing customization, personalization and security. This is really cool if you share the device with others in the family.<br />
<br />
<h3 style="background-color: white; color: #444444; font-family: Roboto, arial, sans-serif; font-size: 20px; font-weight: 500; line-height: 20px; margin: 20px 0px 10px;">
One tablet, many users.</h3>
<div style="background-color: white; color: #444444; font-family: Roboto, arial, sans-serif; font-size: 14px; line-height: 25px; margin-bottom: 20px; margin-top: 20px;">
It’s your fully customized tablet. And theirs, too. With support for multiple users, you can give each person their own space. Everyone can have their own homescreen, background, widgets, apps and games – even individual high scores and levels! And since Android is built with multitasking at its core, it’s a snap to switch between users – no need to log in and out. Available only on tablets.</div>
<div style="background-color: white; color: #444444; font-family: Roboto, arial, sans-serif; font-size: 14px; line-height: 25px; margin-bottom: 20px; margin-top: 20px;">
<span style="color: black; font-family: 'Times New Roman'; font-size: small; line-height: normal;">Nexus was not launched in India until recently. Now basic model of Nexus 7 is available for purchase from google store directly. Nexus 4, Nexus 10 or other models of Nexus 7 like 32 GB, 3G etc are still not available.</span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQ426c-NloYhJ-FZlUp1hWuuC7zZPDiwAvpdtoWE8p_wqRfzOvSkZIP91IqfC-32O4v8Ex3Wr4EuFGykAlL1PpCd3ylHrHFiaGGFfybqy0AWLI9a_eNQMPLHfHtkEot7eVbqFt3A/s1600/Nexus7_India.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="191" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjQ426c-NloYhJ-FZlUp1hWuuC7zZPDiwAvpdtoWE8p_wqRfzOvSkZIP91IqfC-32O4v8Ex3Wr4EuFGykAlL1PpCd3ylHrHFiaGGFfybqy0AWLI9a_eNQMPLHfHtkEot7eVbqFt3A/s400/Nexus7_India.jpg" width="400" /></a></div>
<div style="background-color: white; color: #444444; font-family: Roboto, arial, sans-serif; font-size: 14px; line-height: 25px; margin-bottom: 20px; margin-top: 20px;">
<span style="color: black; font-family: 'Times New Roman'; font-size: small; line-height: normal;"><br /></span></div>
<div style="background-color: white; color: #444444; font-family: Roboto, arial, sans-serif; font-size: 14px; line-height: 25px; margin-bottom: 20px; margin-top: 20px;">
<span style="color: black; font-family: 'Times New Roman'; font-size: small; line-height: normal;">Nexus gives you the best return for the money spent. But it is not rock solid as an iPad. An iPad can take severe beatings and still works reliably. Most common Nexus 7 issues are start up issues. It usually happens when battery is drained completely. Easiest way to prevent is to charge when battery is low, instead of waiting for the device to shutdown automatically! </span></div>
<div style="background-color: white; margin-bottom: 20px; margin-top: 20px;">
It happened for me too. Nexus 7 switched off by itself, complaining low battery. Then it didn't start, even after charging overnight. Searched online for common problems and solutions. None of it worked. Finally saw a comment from someone in a forum that it could be because the battery connections came out (usually happens if you drop the tab). Split the Nexus 7 open and voila it fixed my problem. </div>
<div style="background-color: white; margin-bottom: 20px; margin-top: 20px;">
Here are the details:</div>
<div style="background-color: white; margin-bottom: 20px; margin-top: 20px;">
Problem: Nexus 7 won't startup after auto shutdown</div>
<div style="background-color: white; margin-bottom: 20px; margin-top: 20px;">
Solution:</div>
<div style="background-color: white; margin-bottom: 20px; margin-top: 20px;">
1) First try a force reboot. Disconnect power cable and press down power button for 30 seconds. If lucky you will see the Google logo and your Nexus will start up fine! <i>You can try again after charging for 2 hrs.</i></div>
<div style="background-color: white; margin-bottom: 20px; margin-top: 20px;">
2) Connect power cable, immediately press Power + Volume Down buttons simultaneously for 30 seconds. It should boot into recovery mode with options to do factory reset etc.</div>
<div style="background-color: white; margin-bottom: 20px; margin-top: 20px;">
If the above didn't help, you need to get your hands dirty. For me doing the above steps just turned screen on/off/flickering etc, but nothing came (no Google logo etc). Screen was just lit, nothing on it. While charging also screen would bleed light. </div>
<div style="background-color: white; margin-bottom: 20px; margin-top: 20px;">
So I carefully opened the back of Nexus 7, by wedging my nail thru it. If you don't have a strong nail, you can try a small knife or anything thin. Unhook the latches and remove the back cover. Examine the battery connector. For me it was loose and when I pushed slightly, it locked into the socket firmly with a click. Here is a picture of the same.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYsGERIDOxoIueo1Pvqgsi4nTiEVliHqVh1YvVz_4T_hhtaR4zNOsIdHLctVmeo6GYa-rPFeYz7foli7C2H3ekjXvNLH4ukTSUXSA92XyFbIKu7Tmf8vNCW9NfhxQZJr5_O_tdGw/s1600/Nexus_Battery.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="247" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYsGERIDOxoIueo1Pvqgsi4nTiEVliHqVh1YvVz_4T_hhtaR4zNOsIdHLctVmeo6GYa-rPFeYz7foli7C2H3ekjXvNLH4ukTSUXSA92XyFbIKu7Tmf8vNCW9NfhxQZJr5_O_tdGw/s400/Nexus_Battery.jpg" width="400" /></a></div>
<div style="background-color: white; margin-bottom: 20px; margin-top: 20px;">
<br /></div>
<div style="background-color: white; margin-bottom: 20px; margin-top: 20px;">
Put back the cover, pressed power button and it worked like a charm!</div>
<div style="background-color: white; margin-bottom: 20px; margin-top: 20px;">
Good luck, hope this helps!!! Enjoy your nexus...<br />
<br />
Useful links:<br />
<a href="http://support.asus.com/FAQ/Detail.aspx?SLanguage=en&no=B9D9E36B-200C-2C21-CC06-4D39B8F4725A&p=20&m=Nexus%207" target="_blank">http://support.asus.com/FAQ/Detail.aspx?SLanguage=en&no=B9D9E36B-200C-2C21-CC06-4D39B8F4725A&p=20&m=Nexus%207</a><br />
<a href="http://productforums.google.com/forum/#!topic/mobile/LYpPEKG0LHc" target="_blank">http://productforums.google.com/forum/#!topic/mobile/LYpPEKG0LHc</a><br />
<a href="http://www.tech-recipes.com/rx/28928/google-nexus-7-tablet-hard-reset-or-reboot/" target="_blank">http://www.tech-recipes.com/rx/28928/google-nexus-7-tablet-hard-reset-or-reboot/</a><br />
<a href="http://www.howtogeek.com/131109/the-ultimate-nexus-7-troubleshooting-guide-6-potential-problems-and-how-to-fix-them/" target="_blank">http://www.howtogeek.com/131109/the-ultimate-nexus-7-troubleshooting-guide-6-potential-problems-and-how-to-fix-them/</a><br />
<a href="http://www.digitaltrends.com/mobile/google-nexus-7-problems/" target="_blank">http://www.digitaltrends.com/mobile/google-nexus-7-problems/</a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
</div>
think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com0tag:blogger.com,1999:blog-19873381.post-51560403892961859352012-04-11T02:21:00.001+05:302012-04-11T02:24:39.943+05:30Migrating Contacts: Nokia to Android<div dir="ltr" style="text-align: left;" trbidi="on">
I was trying to migrate all my Contacts from Nokia 5130 Express Music phone to Android Galaxy Spica (I5700) and found that it is not very straight forward. Latest Nokia Suite doesn't even allow you to export contacts (guess they are concerned about too many people leaving to Android and want to make the move as difficult as possible!).<br />
<br />
After some research and digging around found how to do it. Here are the steps:<br />
<br />
1. Install the older version of Nokia PC Suite which allows to copy contacts as VCF files<br />
<a href="http://download.cnet.com/Nokia-PC-Suite/3000-2120_4-10824148.html">http://download.cnet.com/Nokia-PC-Suite/3000-2120_4-10824148.html</a>
<br />
<br />
2. Connect your Nokia phone via USB cable (preferably) and open Contacts<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrXGdRoPAifw8N0S8oslm1w2wFFkky9moXcrJJkWjVSLZZaMIQjcaGNIWdkOTGIZf-kOKfaIYtifmx10LR12HVEvKDxWTCUmoxbxsT4fIy6Tahx45lwHUmXGH-0Ehk3wQR7J4e7A/s1600/Nokia_PC_Suite.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="400" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrXGdRoPAifw8N0S8oslm1w2wFFkky9moXcrJJkWjVSLZZaMIQjcaGNIWdkOTGIZf-kOKfaIYtifmx10LR12HVEvKDxWTCUmoxbxsT4fIy6Tahx45lwHUmXGH-0Ehk3wQR7J4e7A/s400/Nokia_PC_Suite.png" width="293" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
3. Select all the contacts (Ctrl + A), right click and 'Copy' or Ctrl + C.<br />
<br />
4. Go to windows explorer and paste into a new folder - each contact will appear as a .vcf file.<br />
<br />
5. You need to merge all these into one file to easily import into Google Contacts. Open a command prompt (Run -> cmd), go to the above directory where you copied vcf files and run this command:<br />
C:\Nokia_Contacts> <b><span style="color: purple;">copy /B *.vcf all.vcf</span></b><br />
<b><br /></b><br />
6. Now go to Google Contacts and select More -> Import<br />
<a href="https://www.google.com/contacts/">https://www.google.com/contacts/</a>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAuYvdnNofGPdxJAkXLFcldZXOPovJwlSDkwZAEUUp_rG4GiEWG8bVBXodQpCb_opAyNPw1RQDyezC_J-arvysZNtnHZrA2noj20JoYZDTOx0E3f-xQOEA_CU9K-bJMnOknRmVkg/s1600/Google_Contacts_Import.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="217" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAuYvdnNofGPdxJAkXLFcldZXOPovJwlSDkwZAEUUp_rG4GiEWG8bVBXodQpCb_opAyNPw1RQDyezC_J-arvysZNtnHZrA2noj20JoYZDTOx0E3f-xQOEA_CU9K-bJMnOknRmVkg/s400/Google_Contacts_Import.png" width="400" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
7. Select the merged vcf and now all your contacts will be imported into Google. Configure this id in Android sync and these contacts will soon appear on your new Android phone. </div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
Don't you just love that your contacts are available on the web any time and is not lost even if something happens to your Android phone?!! And next time you buy a new Android phone, all you need to do is just configure your gmail id!</div>
<br /></div>think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com0tag:blogger.com,1999:blog-19873381.post-35734244224264442852012-02-08T04:15:00.001+05:302012-02-08T04:15:40.425+05:30Copying between computers?<div dir="ltr" style="text-align: left;" trbidi="on">
Atleast once in a few years you would run into this scenario. You bought a new computer/laptop or at work you got a new system and now you have to copy over the whole data (100s of GBs) in a few days! Migrating to a new machine is not an easy task. It consumes a lot of time, energy and patience :-)<br />
<br />
Every time I run into this issue, I try to discover the best way to do so. As years go by, technology improves and we have better and faster ways to do it. Find below various methods I tried and my take on the best approaches...<br />
<br />
<b>Disk Clone:</b><br />
There are a lot of disk clone tools available which would replicate your disk as is. But it has drawbacks as well, what if you have an OS pre-installed. Also if your current disk has errors/bad sectors cloning could fail.<br />
<br />
<b>Backup/Sync Tools:</b><br />
Each sync tool pose some challenge. For example, some tools copy into complex proprietary binary formats and you can't even browse or choose particular files from the backup. Also generally such tools take more time since it compresses and maintains logs etc. I tried SyncToy from Microsoft after evaluating many, but it was painfully slow!<br />
<br />
<b>Network copy:</b><br />
This is pretty straight forward! Connect both systems on your home/office network and copy files thru network shares/mounts. This is quite time consuming and could choke your network.Also you can't pause/resume and might have to wait for hours (or days) before you can take away your laptop for example.<br />
<br />
<b>Peer-to-Peer copy:</b><br />
New generation network cards are very smart. Earlier you had to use a twisted pair cable to network directly without a router. Now you can use your normal network cable and it would establish a P2P direct connection. This doesn't go thru your network and would be considerably faster. You would get an IP similar to 169.254.59.224..<br />
<br />
Assuming you established the network, what is the best way to copy the large number (1000s) of files? You can create a network share and open it or map as a drive and use normal Windows copy. Bad idea, it would take a looooooot of time! Also make sure you turn off your antivirus and firewall (at your own risk) to speed it up a bit. I tried using some copy tools (Teracopy, ExtremeCopy, FastCopy.. etc) but ended up having weird errors from Windows like not enough server storage etc. I found that a better option (seems faster too) is to use FTP. You can download a free FTP server and client (I chose Filezilla) and this way you can copy either way easily. Filezilla supports sync browsing, directory comparison etc too. Expect around 8 MB/s.<br />
<br />
Though FTP via direct networking was working pretty well, I still had to keep my both laptops connected for a long time! So finally I ended up using a big fast USB external drive. This option along with an enhanced copy tool like TeraCopy turned out to be the smartest option ;-) TeraCopy increases default file throttle like buffer, speed etc and handles errors (file exists, file in use etc) gracefully without interrupting overall copy process. But there could be cases where you left it overnight and after 10 minutes it paused with some prompt... lol! Though I have to copy twice (Machine1 -> USB HDD -> Machine2), in the process took a backup of my data too!! Also I achieved speed in the range of 15 MB/s. Double the speed of direct connection (half the time), so not a bad deal.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhSB1rNtapRt8pMB4KdX7EJlu0a8gwGBBSJQpTHFiMZh1s5i9lvGZarrIVJ6oufO1p17wSb1RPSqgDlCLswu34z65CketoWqWo_v6kM6V_uhx7uJFO5LHVnjm7uDhil2WQxO3DFQ/s1600/TeraCopy.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="243" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhSB1rNtapRt8pMB4KdX7EJlu0a8gwGBBSJQpTHFiMZh1s5i9lvGZarrIVJ6oufO1p17wSb1RPSqgDlCLswu34z65CketoWqWo_v6kM6V_uhx7uJFO5LHVnjm7uDhil2WQxO3DFQ/s320/TeraCopy.jpg" width="320" /></a></div>
<br />
Another option you can try is to use a Firewire cable for direct connection. Firewire could be much faster than USB and you would be copying directly between machines!</div>think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com0tag:blogger.com,1999:blog-19873381.post-83144720220157262492010-06-18T02:12:00.001+05:302010-06-18T02:14:40.594+05:30Unlocking PSP 3003<div style="text-align: justify;"><iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=thinkfreetekk-20&o=1&p=8&l=bpl&asins=B002BSC55M&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"></iframe> <iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=thinkfreetekk-20&o=1&p=8&l=bpl&asins=B001KMRN0M&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"></iframe> <iframe align="left" frameborder="0" marginheight="0" marginwidth="0" scrolling="no" src="http://rcm.amazon.com/e/cm?t=thinkfreetekk-20&o=1&p=8&l=bpl&asins=B000ASBKHE&fc1=000000&IS2=1&lt1=_blank&m=amazon&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr" style="align: left; height: 245px; padding-right: 10px; padding-top: 5px; width: 131px;"></iframe></div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">Last week I had to help my nephew unlock his new PSP 3003. Here are the details, hoping it would help someone else too :)</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">First of all PSP 3003 is non-hackable (permanently). But still there are work arounds. There is a hack called ChickHen, run ChickHen and then load the cracked firmware in ChickHen (loading directly will brick your PSP), and after this you will be able to load games from ISO files. Else PSP will let you play games only from the UMD, meaning you will have to buy the original version of the games. If you unlock PSP, you can download games as ISO files, copy to your mem card and run from it.</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">Check here first whether your PSP model can be hacked and how:</div><div style="text-align: justify;"><a href="http://www.atmaxplorer.com/2009/03/how-to-check-if-your-psp-can-have-cfw-installed/">http://www.atmaxplorer.com/2009/03/how-to-check-if-your-psp-can-have-cfw-installed/</a></div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><b>Step 1 - Download & Install ChickHen</b></div><div style="text-align: justify;">Follow the instructions here:</div><div style="text-align: justify;"><a href="http://www.atmaxplorer.com/2009/06/install-chickhen-r2-on-your-psp/">http://www.atmaxplorer.com/2009/06/install-chickhen-r2-on-your-psp/</a></div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><b>Step 2 - Run ChickHen</b></div><div style="text-align: justify;">This is very tricky, it is quite hard to load the ChickHen. Most of the times, the PSP will just shutdown while loading ChickHen. I had to do the following to get it to load, after numerous unsuccessful tries:</div><div style="text-align: justify;">1) Create two extra gifs (just copy any two gifs and rename to <span class="Apple-style-span" style="color: #666666; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Helvetica, Arial, Sans; font-size: 12px; line-height: 18px;"><strong style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">ChickHENe.gif</strong></span><span class="Apple-style-span" style="color: #666666; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Helvetica, Arial, Sans; font-size: 12px; line-height: 18px;">,</span><span class="Apple-style-span" style="color: #666666; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Helvetica, Arial, Sans; font-size: 12px; line-height: 18px;"> </span><span class="Apple-style-span" style="color: #666666; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Helvetica, Arial, Sans; font-size: 12px; line-height: 18px;"><strong style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">ChickHENf.gif), </strong></span>to the <span class="Apple-style-span" style="color: #666666; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Helvetica, Arial, Sans; font-size: 12px; line-height: 18px;"><strong style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; padding-top: 0px;">ChickHEN</strong></span><span class="Apple-style-span" style="color: #666666; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Helvetica, Arial, Sans; font-size: 12px; line-height: 18px;"> </span>folder</div><div style="text-align: justify;">2) I found this step from a video, couldn't find it in any website... </div><div style="text-align: justify;"> a) When you open the Images -> Memory Stick, wait till the thumbnail/preview come on the ChickHEN folder, before you open it </div><div style="text-align: justify;"> b) Open ChickHEN folder, scroll all the way to the bottom</div><div style="text-align: justify;"> c) Keep doing left-right-left-right.... (flick the left and right controls) continously until it pause and loads ChickHEN</div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><b>Step 3 - Download, copy and load cracked firmware (5.03 GEN-A/B/C)</b></div><div style="text-align: justify;">Follow the instructions here:</div><div style="text-align: justify;"><a href="http://www.atmaxplorer.com/2009/12/install-psp-custom-firmware-5-03-gen-c-via-chickhen-r2/">http://www.atmaxplorer.com/2009/12/install-psp-custom-firmware-5-03-gen-c-via-chickhen-r2/</a></div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;"><b>Step 4 - Load the game ISO and enjoy!!!!</b></div><div style="text-align: justify;"><br />
</div><div style="text-align: justify;">Note: This is not a permanent hack. If you shutdown (power off) your PSP, you will have to start again from Step 2 (Run ChickHen). So use stand by (instead of power off) and make sure you don't run out of battery completely ;-)</div>think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com0tag:blogger.com,1999:blog-19873381.post-4931375429740480362010-05-19T00:29:00.000+05:302010-05-19T00:29:24.369+05:30BSNL 3G: Settings and Speed Check3G is the current buzz word all around India. BSNL introduced it first and rest are following soon. Auctions are almost done and most of the major providers like Airtel, Vodafone etc should be launching it by 3Q-4Q 2010. <br />
<br />
I bought the 3G SIM from BSNL, but since number portability is not yet implemented and also because BSNL is notorious for lousy network and call quality, I am going to stick with Airtel as my primary phone. I will keep 3G as my backup internet connection and also to try out the 3G features on my new Samsung Galaxy Spica (GT-I5700). Here is how to turn on 3G and use the BSNL 3G network<br />
<br />
<b>1) Make sure your phone is set to work on 3G network:</b><br />
In some phones you have to select "WCDMA" (UMTS) in network mode settings. In Spica, 3G is turned on automatically as long as you haven't disabled it specifically. To disable 3G: Settings -> Wireless & networks -> Mobile Networks -> Use only 2G networks (saves battery)<br />
<br />
You should see "3G" written somewhere on your phone screen if it is connected to 3G network.<br />
<br />
<b>2) Create a new connection profile:</b><br />
Now depending upon the phone, goto Connection settings, there create new connection profile and you are only required to specify APN and you are done. APN stands for "ACCESS POINT NAME" . In Spica, Settings -> Wireless & networks -> Mobile Networks ->Access Point Names -> New APN<br />
<br />
You are required to specify following APN for BSNL 3G settings:<br />
APN = bsnlnet (that's it, leave rest everything as it is)<br />
<br />
Most of the phones should connect to 3G when you save and exist, else try restarting the phone.<br />
<br />
I compared the 3G speed (Bangalore) vs 1mbps Airtel broadband via WiFi<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi049_LkkvFmt4_ONgYrsnVbSEGzHa_pWRjjSdSo5_R32Sn7ZqUzvge3sONO-H7qTmn0cao4DpmhT8GjfZRMMWZ-Wly7UFufrEpH1JWFq85KDdOA_La0BMyXFEe2HjxplE_NkaWbw/s1600/3G_SpeedTest.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi049_LkkvFmt4_ONgYrsnVbSEGzHa_pWRjjSdSo5_R32Sn7ZqUzvge3sONO-H7qTmn0cao4DpmhT8GjfZRMMWZ-Wly7UFufrEpH1JWFq85KDdOA_La0BMyXFEe2HjxplE_NkaWbw/s320/3G_SpeedTest.png" width="214" /></a></div>As you can see above, the max I got for download is 381 kbps and upload of 359 kbps. Not as expected, but still a huge leap over the gprs/edge (~40 kbps).<br />
<br />
It is not yet time to disconnect your broadband, but you can definitely consider 3G as your backup connection and for emergency connectivity while travelling!<br />
<br />
More info:<br />
<span class="Apple-style-span" style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;"><a href="http://webcache.googleusercontent.com/search?q=cache:N96ZWmpFaEgJ:www.haryana.bsnl.co.in/BSNL%2520SETTINGS%2520FOR%2520GPRS%2520AND%25203G.doc+bsnl+3g+apn&cd=2&hl=en&ct=clnk&gl=in" style="color: #4263ab;" target="_blank">http://webcache.<wbr></wbr>googleusercontent.com/search?<wbr></wbr>q=cache:N96ZWmpFaEgJ:www.<wbr></wbr>haryana.bsnl.co.in/BSNL%<wbr></wbr>2520SETTINGS%2520FOR%2520GPRS%<wbr></wbr>2520AND%25203G.doc+bsnl+3g+<wbr></wbr>apn&cd=2&hl=en&ct=clnk&gl=in</a></span>think_freehttp://www.blogger.com/profile/08381523298966431958noreply@blogger.com0