tag:blogger.com,1999:blog-62926637595038073522024-02-07T01:32:13.071-08:00Assorted CognitionsA blog to capture thoughts on mixed topics such as Tech, Java, Travel, food and everyday life-experiences.
This blog is and will always be advertisement free and there are no affiliated referral posts.Ashish Thukralhttp://www.blogger.com/profile/10090214574915454866noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-6292663759503807352.post-86515583236046858622020-12-30T14:49:00.007-08:002020-12-30T23:35:15.625-08:00Wake-on-LAN trigger from Android/Mac for Windows Laptop/PC<p>Wake-on-LAN is an awesome feature to remotely wake-up your Windows laptop/PC using either your home network or even remotely from anywhere using a DDNS service.</p><p>You can read-up more online, on how to enable Wake-on-LAN feature for your ethernet adapter via System>Device Manager settings in Windows, which would look something like below</p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihy59hG3qiiUGp-uWeW-uQtte_-xpXRH-RPC3cqCua8a7T49oBh_TYsj-9d0i4mkpoHFM20WHGSGwAUlEFQJ9cKXxDLUaqjCRB4ypn6u2CB_LZl5QtnDVDupW3mdK3D7w7dMPc1JT3dgpp/s475/wolSettings.jpg" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="475" data-original-width="402" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihy59hG3qiiUGp-uWeW-uQtte_-xpXRH-RPC3cqCua8a7T49oBh_TYsj-9d0i4mkpoHFM20WHGSGwAUlEFQJ9cKXxDLUaqjCRB4ypn6u2CB_LZl5QtnDVDupW3mdK3D7w7dMPc1JT3dgpp/s320/wolSettings.jpg" /></a></div><br /><p>Once enabled, you can try following two ways to test your setup and remotely wake-up your laptop/PC.</p><p><b>NOTE</b> - <i>wake-on-lan seems to only work if your laptop/PC is connected to power source and not just on battery power.</i></p><p><br />From Android, you can install and use <a href="https://play.google.com/store/apps/details?id=co.uk.mrwebb.wakeonlan">https://play.google.com/store/apps/details?id=co.uk.mrwebb.wakeonlan</a><br /><br />Below is a screenshot of settings you would need.</p><p></p><ol style="text-align: left;"><li>Put the MAC address of Ethernet adapter, <i>e.g. 40:AA:54:19:BA:58</i></li><li>Broadcast address would mostly follow pattern of your Local IP and last 3 being 255 for broadcast <i>e.g. 192.168.1.255</i></li><li>Your local ip that is assigned to your laptop/PC, <i>e.g. 192.168.1.67</i></li><li>Wakeup port should be <i>9</i> which is reserved for wake-on-lan</li></ol><p></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvXOclLvm7N27A_hvTAvOfiLG3sS6TyJShnFoySf2Y-IG_0cYu2gHn5nT1Vng-anw4fgV8a0IaftN4z6MYiijChSpxejZLeRv55IMCPsiPx5kb3NVFsIFQxoSqZjqp4Vknk7pIkiH8xRgp/s1872/wolSetting.png" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="1872" data-original-width="864" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvXOclLvm7N27A_hvTAvOfiLG3sS6TyJShnFoySf2Y-IG_0cYu2gHn5nT1Vng-anw4fgV8a0IaftN4z6MYiijChSpxejZLeRv55IMCPsiPx5kb3NVFsIFQxoSqZjqp4Vknk7pIkiH8xRgp/s320/wolSetting.png" /></a></div><p>Once above settings are in place, Save this and tap on it to wake up your device. If configured properly your laptop/PC should wake up.</p><p>--------------------------------------------------------------------------------------------------------------------------------</p><p>For Mac, you can download this free terminal util - <a href="https://www.depicus.com/downloads/wolcmdmac.zip">https://www.depicus.com/downloads/wolcmdmac.zip</a> <br />or for GUI paid version you can visit <a href="https://www.depicus.com/wake-on-lan/wake-on-lan-cmd">https://www.depicus.com/wake-on-lan/wake-on-lan-cmd</a></p><p>You can unzip the terminal version and add that to your $PATH for easier access.<br /><br />Command to wake-up would look something like below</p><p><i>wolcmd <MAC> <Local-Ip> <SubnetMask> <WakeOnLanPort></i></p><p>wolcmd 40AA5419BA58 192.168.1.67 255.255.255.0 9</p><div><p>You can even incorporate this into a bash script.</p><p>--------------------------------------------------------------------------------------------------------------------------------</p></div><div>I have been using these as my daily drivers, and hope this helps you.<br /><br />If your Wifi Ethernet adapter support WOL, that can be another option. <br /><br /></div><div>I was really surprised to learn that WOL doesn't work on Battery power, at least for my laptop. But that's understandable too as Ethernet would need to draw some power on battery to listen for WOL packet and would leave to battery drain which might be unwanted side-effect.</div><p><br /></p>Ashish Thukralhttp://www.blogger.com/profile/10090214574915454866noreply@blogger.com0tag:blogger.com,1999:blog-6292663759503807352.post-44334747369150054262013-01-12T11:59:00.004-08:002013-01-12T12:02:08.445-08:00Android Screen Brightness change App<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
Hi !</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
In versions of Android OS before Ice-cream sandwich, there used to be a nifty tweak to increase the brightness of the screen by swiping left-to-right or right-to-left through the top Notification bar in the home screen. ( displayed in Red color)</div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-7cPfPfonwSQ/UPG8tMX1KfI/AAAAAAAAC8E/7Ysy-Pho7-g/s1600/image49.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://2.bp.blogspot.com/-7cPfPfonwSQ/UPG8tMX1KfI/AAAAAAAAC8E/7Ysy-Pho7-g/s320/image49.png" width="305" /></a></div>
<br />
<br />
<br />
<div style="text-align: justify;">
But in ICS, this feature seems to be removed from the Samsung Android phones. In search for a similar functionality, I came across a nifty little app <a href="https://play.google.com/store/apps/details?id=rubberbigpepper.DisplayBrightness&feature=search_result#?t=W251bGwsMSwxLDEsInJ1YmJlcmJpZ3BlcHBlci5EaXNwbGF5QnJpZ2h0bmVzcyJd">Display Brightness</a> ( click link to go to Google Play app )!</div>
<div style="text-align: justify;">
It creates a small hidden section in the top in the notification bar and you can just swipe your finger on the top notification bar brightness section to change brightness. ( section in Blue color)</div>
<div style="text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-gUZtXZgB_zs/UPHAEQbAdMI/AAAAAAAAC8c/6qDbS109IjM/s1600/Screenshot_2013-01-12-14-47-01.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="640" src="http://2.bp.blogspot.com/-gUZtXZgB_zs/UPHAEQbAdMI/AAAAAAAAC8c/6qDbS109IjM/s640/Screenshot_2013-01-12-14-47-01.png" width="400" /></a></div>
<br />
<br />
Hope you would like the suggestion ! :)<br />
<br />
<br /></div>
Ashish Thukralhttp://www.blogger.com/profile/10090214574915454866noreply@blogger.com0tag:blogger.com,1999:blog-6292663759503807352.post-55102669614696426982013-01-10T17:48:00.001-08:002013-01-10T20:05:52.869-08:00Rooting & Flash-Upgrading to Ice-Cream Sandwich 4.0.4 for Samsung Galaxy Phones<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
In this post I would discuss how to <b>flash and upgrade your Samsung Galaxy S / Note</b> phones to the latest firmware and the <b>Rooting </b>your android phone to get SuperUser privileges. Though I really tried by flashing my<i> Samsung Note GT-N7000 to ICS (Ice Cream Sandwich) 4.0.4 from Gingerbread 2.3.3</i> but this method should be pretty much common to other phones too.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Just in case if you are not familiar with flashing the firmware, you can consider it as a way to upgrade your phone manually by connecting it to your PC and overwriting the existing firmware of the phone. You might have seen this process or somewhat similar in mobile repair centers/shops.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Also Rooting in Android phones pertains to the concept that normally the user doesn't have system level privileges by default. You have to kinda hack into the phone to get yourself the Super User privileges. The advantage having a Rooted phone is that you will have complete control over it and there are several applications which will tap the potential of rooted phones. You can use firewall in your phone, block ads, play with system level files, tweak hardware settings like GPS,etc. and even overclock/underclock the CPU.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Normally Samsung should provide you Over-the-Air (OTA) updates for your firmware but at times you would like to take in charge if you want to try different ROMs (3rd party firmwares), try test versions of firmware, use firmwares released in other countries or if facing any problem with OTA updates even though they are available.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<i><b>NOTE: </b>Flashing done improperly might render your phone unusable. But if followed properly, mostly there is no problem. Or even in case something goes bad, there are ways to bring it back to life.</i></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Lets get started with the process !</div>
<div style="text-align: justify;">
<br /></div>
<h3 style="text-align: center;">
<b>FLASH-UPGRADING</b></h3>
<div style="text-align: left;">
<b style="text-align: justify;">1) Backup</b></div>
<div style="text-align: justify;">
Before trying to change the world, its essential you take a backup of your essential stuff just in case of a mishap. Though ideally apps like Titanium backup can backup almost the exact state of your phone but it can be and for a clean flash and install, neglected.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Just save your important data manually or use various Cloud services which will let you save your data online (preferred way).</div>
<br />
<ul>
<li>You can sync Contacts to your Google account or just export all the contacts to your micro SD card in vcf file.</li>
<li>You can save the SMS messages by using a nice app on Google Play 'SMS Backup & Restore'.</li>
<li>Its better to move all your notes/text files to Evernote which is again a Cloud Notes taking app.</li>
<li>Move all graphic/media files to your PC using the USB cable or move them to SD card.</li>
<li>Backup all Watsapp if using by using the Backup functionality in Chat Settings of Watsapp.</li>
<li>Your apps installed history will anyways be there in your Google Play account, so you can always re-install the apps anytime after flashing.</li>
</ul>
<div>
<b>2) Requirements</b></div>
<div>
<ol style="text-align: left;">
<li>Phone should be charged above 75% or a full charge is preferred as if your phone runs out of battery while flashing, that could be a disaster. However flashing normally takes 4-5 minutes, so don't get paranoid about it. I flashed mine with 45% charge.</li>
<li><a href="http://www.mediafire.com/download.php?hbc7pyftyyu75fr">Odin3 v1.85</a> - the flashing software which works on Windows. Click link to download.</li>
<li><a href="http://www.hotfile.com/dl/180494711/f61ca91/N7000DDLRB_N7000ODDLR4_INU.zip.html">Android 4.0.4 N7000DDLRB for Galaxy Note GT-N7000</a> - The ICS 4.0.4 firmware specific to India. You can go to <a href="http://www.sammobile.com/firmware/?page=3&model=GT-N7000&pcode=0&os=1&type=1">sammobile.com</a> which maintains the list of all the latest official firmwares for the phones. You can look at the list for firmware for your phone other than Samsung Note or different version/country. The site might ask you to register but you can easily Google the downloadable firmware package by using the PDA name ie '<i>N7000DDLRB</i>' in my case.This file is a big file being around 700-900 MB.</li>
<li><i><b>NOTE</b>: Finding model number of your device is easy (eg GT-N7000 for me). Go to settings>About Phone>model Number. This would be useful for finding the firmware for you easily.</i></li>
<li><a href="http://content.wuala.com/contents/atonal/Kernels/Note%20and%20Hydracore/Note%20and%20Hydracore%20tar/GL_NOTECORE_v13_OC.tar?id=1,1971002,11-71,1971002,18">NoteCore Kernel to root N7000DDLRB firmware</a> [Filename: GL_NOTECORE_v13_OC.tar] - needed to Root your phone after flash-upgrading it.</li>
</ol>
<div style="text-align: left;">
<br /></div>
</div>
<div>
<b>3) Process</b></div>
<ol style="text-align: left;">
<li>Extract Firmware zip file that you downloaded already from above link in Requirements-Step 3, you will get a .tar file and might get some other files.</li>
<li>Now extract Odin zip file and you will get Odin3 v1.85.exe and Odin3.ini under extracted folder.</li>
<li>Power off your phone. Wait 5-6 seconds for vibration to confirm complete switch off.</li>
<li>Now, put the Galaxy Note GT-N7000 phone in Download Mode by pressing pressing and holding down the Volume Down and Home buttons while pressing the Power button until you are welcomed by a green robot indicating you are in Download Mode. Use the 'Power Button' as an Enter key in Download mode recovery console and Volume up/down buttons to scroll up and down.</li>
<li>Now run Odin3 v1.85.exe</li>
<li>Now connect your Galaxy Note GT-N7000 with your PC using USB cable. A message will arrive under Odin’s message box in the bottom left saying “Added!!”. If you don’t get the same then you should try another USB port (try USB port located in back in your desktop PC). If that too don’t work then you should then reinstall the driver. If you successfully see the “Added!!” message in Odin then you are ready to go in next step. You should also see COM port with a number in Yellow if you successfully added your device.</li>
<li>Select these files in Odin at respective tabs from extracted N7000DDLRB firmware folder :</li>
<li>Click the PDA Button, and select the .tar file here with *code* appearing in its name</li>
<li>Click the Phone Button, and select file with *modem* in its name (leave if there is no such file)</li>
<li>Click the CSC Button, and select file with *csc* in its name (leave if there is no such file)</li>
<li>Click the PIT Button, and select the .pit file. Use only if you got it while extracting in step 1 above, otherwise ignore it.</li>
<li>In Odin window, make sure <i>ONLY</i> Auto Reboot and F. Reset Time checkboxes are selected. Also, make sure that Re-Partition checkbox is selected, only if you are using a .pit file.</li>
<li><i style="font-weight: bold;">NOTE: </i><i>For me, only tar file was there so I selected it in PDA step 8 and checked the Auto Reboot & F. Reset Time boxes and then I flashed.</i></li>
<li>Double check everything that mentioned in Step 7, 8 & 12 above. Now, once satisfied hit the START button to begin the flashing process.</li>
<li>Once flashing completed, you will see a PASS message with green background in the left-most box at the very top of the Odin. The phone will then automatically rebooted and soon you will see the Samsung logo. You can then unplug the USB cable to disconnect your device from computer.</li>
<li>Congrats! Your Galaxy Note, model number N7000 should now run on Android 4.0.4 ICS build DDLRB. Goto Settings > About phone to verify this firmware update.</li>
</ol>
<div>
<i><b>NOTE: </b>The phone reboot just fine after flashing but For me the phone got stuck on Reboot on the Glowing Samsung Logo. But there is a simple way out of it too. It might happen due to some system files from the earlier firmware.</i></div>
<div>
<i><br /></i></div>
<div>
<i>You can try wiping the old system data</i></div>
<div>
<ol style="text-align: left;">
<li><i>turning off your phone</i></li>
<li><i>press volume UP + menu( home key) + power simultaneously to reboot in recovery mode..</i></li>
<li><i>once in recovery mode, select Wipe Data Factory Reset </i></li>
<li><i>Then select Wipe Cache Partition</i></li>
<li><i>after the phone finish clearing everything, select go back </i></li>
<li><i>select reboot system now </i><i>and wait....</i></li>
</ol>
<div>
<i>The phone in my case rebooted just fine and so should in yours !</i></div>
</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<h3 style="text-align: center;">
ROOTING</h3>
</div>
<div style="text-align: left;">
<ol style="text-align: left;">
<li>This requires Odin and GL_NOTECORE_v13_OC.tar file downloaded in step 4 of Requirements above.</li>
<li>Process is similar to Step 7 described in Flashing Section. Reboot, go to Download mode, connect Odin and look for the Added message in Odin after connecting your phone through USB. </li>
<li>Select this file in Odin, Click the PDA Tab, and select the GL_NOTECORE_v13_OC.tar file.</li>
<li style="border: 0px; font: inherit; margin: 0px 0px 12px; padding: 0px; vertical-align: baseline;">In Odin window, make sure <i>ONLY </i>Auto Reboot and F. Reset Time checkboxes are selected.</li>
<li style="border: 0px; font: inherit; margin: 0px 0px 12px; padding: 0px; vertical-align: baseline;">Double check everything. Now, once satisfied hit the START button to begin the flashing process.</li>
<li style="border: 0px; font: inherit; margin: 0px 0px 12px; padding: 0px; vertical-align: baseline;">Once flashing completed, you will see a PASS message with green background in the left-most box at the very top of the Odin. The phone will then automatically rebooted and soon you will see the Samsung logo. You can then unplug the USB cable to disconnect your device from computer.</li>
<li style="border: 0px; font: inherit; margin: 0px 0px 12px; padding: 0px; vertical-align: baseline;">Once restarted you will see a SuperUser App installed in your phone. Also you can download Root Checker app from Google Play and double-check for the Root User thing. Here's the link <a href="https://play.google.com/store/apps/details?id=com.joeykrim.rootcheck&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5qb2V5a3JpbS5yb290Y2hlY2siXQ..">Root Checker</a>.</li>
<li style="border: 0px; font: inherit; margin: 0px 0px 12px; padding: 0px; vertical-align: baseline;">Just google for all the apps useful for Rooted phones. You will be surprised, amazed and delighted at the options available and new capabilities of your device.</li>
</ol>
<div>
<i>You will feel actually like Owning that Device and being the Master of It !!! :)))</i></div>
</div>
<div>
<br /></div>
<h3 style="text-align: center;">
<b>Final Words</b></h3>
<div>
Though Flashing and Rooting is a little Risky process but do not hold back, seldom something goes wrong. </div>
<div>
<b><i>If your device is other than Samsung Note GT-N7000 make sure you get the appropriate firmware for your phone.</i></b></div>
<div>
Jelly Bean update for Samsung Galaxy S2 / Note is almost about to be released with some test firmwares already out there !</div>
<div>
<br /></div>
<div>
Feel free to ask any doubts or share any comments.</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<h3 style="text-align: center;">
<b>References</b></h3>
</div>
<div>
<ul style="text-align: left;">
<li>http://androidjinn.com/update-galaxy-note-n7000-ddlrb-android-4-0-4-official-firmware.html/2</li>
<li>http://androidjinn.com/root-galaxy-note-n7000-on-ddlrb-android-4-0-4-official-firmware.html/2</li>
<li>http://www.wuala.com/atonal/Kernels/Note%20and%20Hydracore/Note%20and%20Hydracore%20tar</li>
</ul>
</div>
</div>
Ashish Thukralhttp://www.blogger.com/profile/10090214574915454866noreply@blogger.com0tag:blogger.com,1999:blog-6292663759503807352.post-11343646407037101242012-12-30T17:43:00.001-08:002012-12-31T14:55:13.888-08:00Counter Strike: Custom Spray Paint Logo<div dir="ltr" style="text-align: left;" trbidi="on">
In this post I would like to discuss the creation of Custom Spray Paint Logo (pressing T in game) for the famous multi-player game of Counter Strike from an image of your choice. This hack works for both Counter Strike 1.6 and Condition Zero versions.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_XkKheooSuJl-ywKr5dcus84vEaj32DaJNseDswH_YJyV_g6NSFH4dmuVS51kh-cpdP3Tcp08iYv5b1dS3C-EJc5Nby2__zyHBDf7ZIWYI4fC95XTuhKCrauuGEKi44uk-cb1KbuCnyxw/s1600/8233_157463106334_4715728_n.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img alt="" border="0" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_XkKheooSuJl-ywKr5dcus84vEaj32DaJNseDswH_YJyV_g6NSFH4dmuVS51kh-cpdP3Tcp08iYv5b1dS3C-EJc5Nby2__zyHBDf7ZIWYI4fC95XTuhKCrauuGEKi44uk-cb1KbuCnyxw/s640/8233_157463106334_4715728_n.jpg" title="" width="640" /></a></div>
<br />
<br />
For this you would need a tool<i> 'Hl Tag Converter'</i> from the link<br />
<a href="http://www.gamefront.com/files/8716305/CS_Spray_Creator">http://www.gamefront.com/files/8716305/CS_Spray_Creator</a><br />
<br />
Run the exe file in the zip folder. Follow the instructions in the tool. Read the 'Rules' from the step 2 'Adjust' in the tool to assist creation. Save the output file as a 'WAD' file type.<br />
<br />
<br />
<ol style="text-align: left;">
<li>Then open the folder where you just saved the WAD file and rename the file to 'tempdecal.wad' and copy the file.</li>
<li>Go to the cstrike/czero installed folder location in the Counter Strike setup folder. For my case the path is like<i> C:\Program Files (x86)\Counter-Strike 1.6 V40\cstrike</i></li>
<li>Paste the tempdecal.wad file from Step 1 into the cstrike folder and replace the older tempdecal.wad file.</li>
<li>That's It! Run CS and test the new spray paint by starting the game and spraying by using T.</li>
<li>If everything is fine you should see a spray paint converted logo of your custom image.</li>
</ol>
<div>
<b><br /></b></div>
<div>
<b>Notes</b>:</div>
<div>
<ul style="text-align: left;">
<li>Change of settings in CS might occasionally overwrite your CS spray logo. So keep a copy of your custom tempdecal.wad and use it later on to replace the default tempdecal.wad if reverted by the settings.</li>
</ul>
</div>
<br />
<br />
<br /></div>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-37356920-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>Ashish Thukralhttp://www.blogger.com/profile/10090214574915454866noreply@blogger.com0tag:blogger.com,1999:blog-6292663759503807352.post-20575404259322407812012-12-29T18:55:00.002-08:002012-12-31T14:58:44.350-08:00Linux ClipIt for easy word definition save<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
I have started using Ubuntu (12.04 LTS 64-bit) for the past some time. Also I am an avid reader of web based articles and other textual material. However, while reading text, I come across many words whose meaning I don't know. I like to keep a track of all such words and their meanings so that I can later on review the words and try to boost my vocabulary.</div>
<div style="text-align: justify;">
For this purpose, I have started using a combination of 2 tools and some config settings to ease the process. I would like to share the set-up with you guys as I feel many of you might be interested in something similar. There might be many other options present to save your word-meanings but I tried to automate it somewhat myway.</div>
<div style="text-align: justify;">
Using this you can add/append the word and its meaning to a designated file in your Ubuntu system by using some hotkeys.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>First</b> one is the <i>Google Dictionary plugin for Chrome.</i> You can easily install this from the Google Chrome Extensions Online Market. Once installed you can double click any word in the browser window and a small popup will appear with the selected word and its meaning.</div>
<div style="text-align: left;">
Chrome Dictionary Link:- <a href="https://chrome.google.com/webstore/detail/google-dictionary-by-goog/mgijmajocgfcbeboacabfgobmjgjcoja?hl=en" style="text-align: left;">https://chrome.google.com/webstore/detail/google-dictionary-by-goog/mgijmajocgfcbeboacabfgobmjgjcoja?hl=en</a></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>Second</b> tool is a system level tool for Ubuntu named <i>ClipIt</i> which is a default clipboard replacement tool. You can easily install it through the 'Ubuntu Software Center'.</div>
<div style="text-align: justify;">
ClipIt HomePage:- <a href="http://clipit.rspwn.com/" style="text-align: left;">http://clipit.rspwn.com/</a></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Once installed you can click on Dash Home in Unity and type 'clipit' to search for the app and run it. Or you can goto terminal and type 'clipit' and press Enter.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
A small icon will appear in the taskbar. When you click on it, goto the Preferences and go to Actions.</div>
<div style="text-align: justify;">
In Actions, click on the Add... Button in the bottom which adds a new row with 'Action' & 'Command' values being <i>Blank</i> and <i>%s</i> respectively.</div>
<div style="text-align: justify;">
'Action' corresponds to any name you want to give the task, 'Command' is the command to run.</div>
<div style="text-align: justify;">
Now I wanted to add the Selected Word and Definition in a file in the system while using some hotkeys.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
In the 'Action' column, enter</div>
<div style="text-align: justify;">
<b>Add Word</b></div>
<div style="text-align: justify;">
as the value which acts as a name for this action. You can use any other name too.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
The 'Command' column contains</div>
<div style="text-align: justify;">
<b>echo '%s\n\n'|cat>>~/words.txt</b></div>
<div style="text-align: justify;">
as the value. The %s is the copied text which ClipIt will use to use in the 'echo' command and pipe to 'cat' command and append to 'words.txt' file in the home directory with 2 newline chars after every save.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b><i>Note</i></b>: Make sure when you enter values for Action/Command, you press Enter so that the values are saved for the new Action you just created.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Also you can go in hotkeys and change the 'Actions hotkey' to <Ctrl><Shift><A> from the default one which doesn't work for me due to some reason, I guess may be due to clash. You will have to type the key combination.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b><i>Steps for Final Working Demo:</i></b></div>
<div style="text-align: justify;">
</div>
<ul>
<li>Open some article or some text in Chrome browser.</li>
<li>Double click any word, select the text in the small popup which appears for Word and Definition and press Control+C to copy it. </li>
<li>Then press Hotkey used above Control+Shift+A which opens ClipIt context Menu.</li>
<li>Choose 'Add Word' from the Actions Context Menu. If everything is fine, the word will be added to the file in your system.</li>
</ul>
<br />
<div style="text-align: justify;">
<b><i>Some tips and notes:</i></b></div>
<div style="text-align: justify;">
</div>
<ul>
<li>This can work with other linux GNOME distros too which can support ClipIt.</li>
<li>I use the file as a Google Drive sync file so that the word list is always updated to my Google cloud storage.</li>
</ul>
<div>
<br /></div>
<br />
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<br /></div>
</div>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-37356920-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
Ashish Thukralhttp://www.blogger.com/profile/10090214574915454866noreply@blogger.com0tag:blogger.com,1999:blog-6292663759503807352.post-71648632856909288362012-12-26T02:24:00.005-08:002020-12-30T16:47:26.330-08:00The First One !!!<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="text-align: justify;">
Hi !</div>
<div style="text-align: justify;"><br /></div>
<div style="text-align: justify;">
I got the domain name <a href="https://www.ashishthukral.com/" target="_blank">ashishthukral.com</a> (alias <a href="https://www.athukral.com" target="_blank">athukral.com</a>) almost a year back but then procrastination is too lucrative at times and hence I never really did anything useful with the domain. After a long time finally I decided to do something and give the poor domain a cliched <i>Blog</i> front.</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
But this blog is not about a specific topic or a domain but is an attempt to share with you all an assorted set of informative and interesting posts on topics such as </div>
<div style="text-align: justify;">
</div>
<ul>
<li>Java and associated frameworks (hibernate, Spring, JSF, RichFaces, JQuery, etc)</li>
<li>Android application development</li>
<li>Posts and video shares corresponding to the sport of Table Tennis aka Ping Pong but again not limited just to this sport. It's my personal penchant for Table Tennis and so the focus!</li>
<li>Maybe some cooking recipes as I experiment with various edible items</li>
<li>General articles relating to debate issues, current affairs, interesting reads, etc</li>
<li>Other Technological and scientific advances</li><li>Travel blog posts</li>
<li>Random thoughts and interesting stuff I stumble upon</li>
</ul>
<div>
The posts and articles will range from my personal experience, thoughts, hands-on and shares from other internet sources handpicked refined and filtered by me. I will try to keep plagiarism to a minimum so that the comments section stays clean O:-)</div>
<div>
</div>
<div>
Comments, advices, appreciations, abuses ( try to obfuscate the curse words though ) are all welcome !</div>
<div>
<br /></div>
</div>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-37356920-1']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
Ashish Thukralhttp://www.blogger.com/profile/10090214574915454866noreply@blogger.com0