tag:blogger.com,1999:blog-75265439413031260872024-03-06T09:40:50.942+05:30Some random notesPrimehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.comBlogger54125tag:blogger.com,1999:blog-7526543941303126087.post-646049125940017912017-09-30T15:23:00.000+05:302017-09-30T15:23:46.909+05:30Fixing rsync error: error in rsync protocol data stream<div dir="ltr" style="text-align: left;" trbidi="on">
I use rsync (wrapped in a script) to back up the data to a Western Digital MyCloud device from my Fedora system. At times I have seen rsync errors "rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.2]" during backup.<br />
<br />
<br />
As the error was appearing sporadically, it was not a configuration or setup issue. Finally I tried passing protocol parameter to rsync and it worked. The rsync in my Fedora system uses protocol 31 by default and the one in WD device supports 30 by default. Setting --protocol=30 didn't help but setting protocol to 26 resolved the problem. I've been running rsync using protocol 26 for few weeks and haven't seen the errors.<br />
<br />
<br />
<br /></div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-17460774114391811302017-07-29T14:00:00.000+05:302017-07-29T14:11:04.486+05:30vnstat : Recovering from error "Invalid database daily date order"<div dir="ltr" style="text-align: left;" trbidi="on">
I use <a href="http://humdi.net/vnstat/" rel="nofollow">vnstat</a> to keep track of the network traffic statistics in my Fedora system. Through a web interface, it can show some nice charts. Couple of weeks ago when I was trying to see the stats, it was not loading properly. I initially suspected SELinux but executing vnstat from command line proved that there was some problem with vnstat itself. I got the error "Error: enp1s0: Invalid database daily date order: 1494518195 (3) < 1509896072 (4)"<br />
I couldn't find anything helpful to resolve the issue. All I could do was to downgrade vnstat to previous version. As I have configured dnf to retain the cache, the downgrade was bit easy. The downside was that whenever I was updating the system, I had to pass -x vnstat to dnf command so that it will skip updating it.<br />
<br />
From the time stamps that appeared in the error message, I thought that the date format was flipped and instead of May-11, Nov-5 was entered in the database creating the problem. The vnstat database is a binary one but vnstat supports exporting and importing the database. Reading the vnstat manual page gave enough information to export and import the data to a new database.<br />
<br />
The following steps were taken to export the data from old database, fix it and then import it to new database.<br />
<br />
Create a local configuration file for vnstat.<br />
Copy the /etc/vnstat.conf to a local folder and change the DatabaseDir to point to that local folder.<br />
<br />
Copy the vnstat database to the local directory. Export the data file using the command
<br />
<pre><code>
vnstat -i wlp3s0 --exportdb > wlp3s0.db </code></pre>
<pre><code> </code></pre>
Update the incorrect time stamps in the exported file.<br />
For example, date -d "2017-05-21" "+%s" will give the time stamp in required format.<br />
<br />
Create a new db<br />
<pre><code>
vnstat --config ./vnstat.conf --create -i wlp3s0
</code></pre>
Import the modified data<br />
<pre><code>
vnstat --config ./vnstat.conf -i wlp3s0 --importdb wlp3s0.db --force</code></pre>
<pre><code> </code></pre>
Check the correctness day / month wise data
<br />
<pre><code>
vnstat --config ./vnstat.conf -i wlp3s0 -d
vnstat --config ./vnstat.conf -i wlp3s0 -m
</code></pre>
Stop vnstat and copy the new file to /var/lib/vnstat
<br />
<pre><code>
sudo systemctl stop vnstat.service
sudo cp ~/vnstat/wlp3s0 /var/lib/vnstat
</code></pre>
Update vnstat using sudo dnf upgrade vnstat.
I could see that the new version of vnstat was working without problem with the updated db. Started the vnstat using sudo systemctl start vnstat.service and vnstat was back in action.<br />
<br />
The downside was that the data for almost two months were not captured by vnstat. My weekly backup was not configured to capture this data. Lesson learned and I quickly set up an automated backup for the dynamic files using anacron. However, I am yet to figure out a way to validate the sanity of the dynamic data.</div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-64683158105210457872017-05-11T21:20:00.002+05:302017-05-11T22:01:53.418+05:30History from Free Dictionary and Aard2 Android Dictionary apps<div dir="ltr" style="text-align: left;" trbidi="on">
I use <a href="https://play.google.com/store/apps/details?id=org.freedictionary&hl=en" rel="nofollow">Free Dictionary</a> and <a href="https://play.google.com/store/apps/details?id=itkach.aard2&hl=en" rel="nofollow">Aard2</a> for in my Android phone to look up the meaning of words. If you ever need to get the list of words that were looked up in these apps from a Linux system, you may find this useful.<br />
<br />
<br />
The first step would be to enable connect the phone to the computer and enable USB debugging.<br />
<br />
<b>Free Dictionary</b><br />
<code>
</code>
<br />
<pre><code>adb shell run-as org.freedictionary cat shared_prefs/FreeDictionary.xml |
xmlstarlet sel -T -t -v /map/string | tr ',' '\n' </code></pre>
<pre><code></code></pre>
<br />
<b>Aard2 Dictionary</b><br />
Things are bit complicate for Aard2 as I found that it does not support run-as command.<br />
<code>
</code>
<br />
<pre><code>adb backup -f ./aard2.ab -apk itkach.aard2
java -jar abe.jar unpack aard2.ab aard2.tar
tar -O -xvf aard2.tar apps/itkach.aard2/r/app_history 2>
/dev/null | jq -r '.key'
</code></pre>
<br /></div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-27763551826860481812017-04-04T23:00:00.000+05:302017-04-22T10:18:12.116+05:30Naming Rights in Action<div dir="ltr" style="text-align: left;" trbidi="on">
പശ്ചിമഘട്ടത്തിൽ കണ്ടെത്തിയ പുതിയ
മരഞണ്ടിന്റെ ശാസ്ത്രനാമം : കാണി മരഞണ്ട്. സംശയിക്കേണ്ട, മലയാളം തന്നെ. കാണി
വിഭാഗക്കാരുടെ സഹായത്തോടെ മലയാളി ഗവേഷകർ കണ്ടു പിടിച്ചതുകൊണ്ടാണ് കാണി
മരഞണ്ടെന്നു പേരു കൊടുത്തത്. <br />വാർത്ത ഇവിടെ :<br /><a class="ot-anchor aaTEdf" dir="ltr" href="https://phys.org/news/2017-04-species-tree-crab-western-ghats.html" rel="nofollow" target="_blank">https://phys.org/news/2017-04-species-tree-crab-western-ghats.html</a><br /><br />ഇങ്ങനെ
ഓരോന്ന് സ്വന്തമായി കണ്ടുപിടിച്ചാൽ മലയാളത്തിലൊക്കെ പേരിടാം. ഹാർഡ്വെയർ
അബ്സ്റ്റ്രാക്ഷൻ ലെയർ നമ്മൾ മലയാളികളാണ് കണ്ടുപിടിച്ചിരുന്നത്/
ഉണ്ടാക്കിയിരുന്നതെങ്കിൽ അതിനെ ശശിപാളി (കടപ്പാട്: <span class="proflinkWrapper"><span class="proflinkPrefix">+</span><a class="proflink aaTEdf XkfHGe" data-profileid="106314097353629534444" href="https://plus.google.com/106314097353629534444">Subin PT</a></span>) [1] അല്ലെങ്കിൽ കിടുതാപ്പ് മറ (കടപ്പാട്: വിനയാന്വിതനായി ഞാൻ) എന്നൊക്കെ വിളിക്കാമായിരുന്നു.<br /><br />[1] <a class="ot-anchor aaTEdf" dir="ltr" href="https://plus.google.com/u/0/+SubinPT/posts/ZgNd2HzyKz9" rel="nofollow" target="_blank">https://plus.google.com/u/0/+SubinPT/posts/ZgNd2HzyKz9</a></div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-1017533390576845272016-09-16T20:00:00.001+05:302016-09-16T20:00:25.561+05:30March of Progress<div dir="ltr" style="text-align: left;" trbidi="on">
I came across a chapter on Thomas Henry Huxley while reading <i>The Book of Science</i> edited by John Carey. The description about his book <i>Man's Place in Nature</i> piqued my curiosity. The frontispiece of the book showed a queue of skeletons with man at the front followed by skeletons of Gorilla, Chimpanzee, Orangutan and Gibbon. Wait a second, haven't I seen something similar elsewhere? I didn't know the name of the picture and for some reason I thought it was called "The Ascent of Man". Soon after establishing https connection to certain servers (Googling in plain English) there came the answer - the picture I was looking for is called "<a href="https://en.wikipedia.org/wiki/March_of_Progress">The March of Progress</a>" and it is from the book <i>Early Man</i> by F. Clark Howell. This explains why I take a long time to finish books on Science. Apparently the popular version we see all over is the folded version of the original.<br /><br />Carey did add something interesting about Huxley in the note on his debate with a Bishop on theory of evolution. During the debate the Bishop asked certain question about Huxley's ancestors. Huxley gave a befitting answer. However the gem is Huxley's reaction on the death of this Bishop due to the fall from horseback. "For once reality and his brain came into contact, and the result was fatal."</div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-66479279546596838262016-03-20T12:30:00.000+05:302016-04-20T00:04:01.447+05:30രഹസ്യ സന്ദേശം<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="Ct">
പബ്ലിക്ഗുഡു.സിപ്പീപ്പി,
ലിനക്സ്പ്ലസ്പ്ലസ്സാനന്ദഗുഡുഗുഡു.സി വക രഹസ്യ സന്ദേശം ഫെഡോറാദേശത്തിലെ
കേഡിഈ ഗ്രൂപ്പ് നേതാക്കന്മാർക്ക് എത്തിക്കാൻ ആവശ്യപ്പെട്ടിരിക്കുന്നു.
എല്ലാവർക്കും എത്തിക്കുമല്ലോ? രഹസ്യമായതിനാൽ വായിച്ചു മനസ്സിലാക്കിയ ശേഷം
ഡെലീറ്റ് ചെയ്യണം. കഴിഞ്ഞ പ്രാവശ്യത്തെപ്പോലെ ഫോട്ടോകോപ്പിയെടുക്കാൻ
പോയിട്ട് ഒറിജിനൽ കടയിൽ ഇട്ടിട്ടുവരികയോ ഡ്രോപ് ബോക്സിൽ പബ്ലിക് ഫോൾഡറിൽ
ബാക്കപ്പെടുത്ത് വയ്ക്കുകയോ ചെയ്യരുത്, പ്ലീസ്. സന്ദേശം താഴെ:<br /><br />പ്രിയപ്പെട്ട കെഡീഈ ഗ്രൂപ്പ് ഫെഡോറദേശവാസികളേ,<br />വളരെ
കഷ്ടപ്പെട്ട് ബുദ്ധിമുട്ടിയാണ് നമ്മൾ കെഡിഈക്കാർ ഫെഡോറയിലെ ഇത്രയും
നിയന്ത്രണം കൈക്കലാക്കിയതെന്ന് ഓർമ്മയുണ്ടല്ലോ? എല്ലാ ഡെസ്ക്ടോപ്പുകൾക്കും
തുല്യ പരിഗണന, കോഡ് എഡിറ്റ് ചെയ്യാൻ വിഐയും ഈമാക്സും ഒരുപോലെ
ഉപയോയിക്കാനുള്ള അനുമതി, ഇടയ്ക്കിടെ സ്വാപ്പിലേക്ക് എഴുതപ്പെടാതിരിക്കാൻ
മെമ്മറി അപ്ഗ്രേഡ് എന്നൊക്കെ പറഞ്ഞാണ് നമ്മൾ ഇതുവരെ എത്തിയത്. പിന്നെ
എല്ലാവരേയും ഓർമ്മിപ്പിക്കാൻ വേണ്ടി വീണ്ടും പറയുന്നു. ഈ വാഗ്ദാനങ്ങളൊക്കെ
നമ്പരാണ്, കെഡീഈ മാത്രമേ ഡസ്ക്ടോപ്പ് ആയി ഉപയോഗിക്കാവൂ, വിഐ അല്ലെങ്കിൽ
വിം അല്ലാതെ ഈമാക്സ് വല്ലതും ഉപയോഗിച്ചാൽ ഉപയോഗിക്കുന്നവന്റെ ഡിസ്ക്
മുഴുവനും ഡിഡി കമാന്റ് കൊണ്ട് സീറോ അഞ്ചു പ്രാവശ്യം എഴുതിനിറച്ചിട്ട്
/dev/nullലേക്ക് തട്ടും, ഓർമ്മയിരിക്കട്ടെ. ആ യൂണിറ്റിക്കാരെയും, മേറ്റ്
കാരെയും, എല്ലെക്സ്ഡിഈ (ഹൊ, എന്തൊരു അലമ്പ് പേര്) ക്കാരെയും,
എല്ലാത്തിനെയും അടിച്ചു വെളിയിൽ കളഞ്ഞ് ഫെഡോറയിൽ കെഡിഈയും വിഐയും മാത്രം
ആക്കുക എന്നതാണ് നമ്മുടെ ലക്ഷ്യം. കെഡീഈ മാത്രം ഓടുന്ന വിധത്തിൽ കെർണൽ
മോഡിഫൈ ചെയ്താൽ ലക്ഷ്യം പൂർത്തിയായി. ഈ ലക്ഷ്യം നേടാൻ നമ്മളോരോരുത്തരും
കഠിന പ്രയത്നം ചെയ്യേണ്ടതാണ്. ആയതിലേക്ക് പുതിയ പദ്ധതി
തയ്യാറാക്കിയിട്ടുണ്ട്. അതിൻപ്രകാരമുള്ള ചുമതലകളും നടപടികളും ഇനി പറയുന്നു.<br /><br /><b>കെഅലവലാതിഗ്രൂപ്പ്</b><br />കെറൈറ്റുകാർ,
കാലിഗ്രക്കാർ, അമറോക്കുകാർ, കൺസോളുകാർ, പിന്നെ മറ്റനേകം സമാന
ചിന്താഗതിക്കാരായ ഗ്രൂപ്പുകൾ ചേർന്നതാണ് കെഅലവലാതി ഗ്രൂപ്പ്.
വിവരദോഷിഗുഡു.ലിബ്, വിവരമില്ലാഗുഡു.ലിബ്, തലയിൽആൾതാമസമില്ലാഗുഡു.എച്,
മസ്തിഷ്കപ്രക്ഷാളൻ.എച്, കണ്ണടച്ച്വിശ്വസിക്കൻ.സിപ്പിപ്പി,
പരദ്രോഹഗുഡു.ലിബ്, ക്ലൂലെസ്ഗുഡു.എച്, കിംവദന്തിഗുഡു.ലിബ് എന്നിവരൊക്കെയാകും
ഈ ഗ്രൂപ്പിന്റെ പ്രധാനികൾ. ഗ്രൂപ്പിന്റെ പ്രധാന പരിപാടികൾ ഇവയാണ് :<br />-
ഫെഡോറയല്ലാത്ത മറ്റ് ഡിസ്റ്റ്രോകളെയും കെഡിഈ അല്ലാത്ത ഡെസ്ക്ടോപ്പുകളേയും
ദ്രോഹിക്കുക, അവയെക്കുറിച്ച് എല്ലാവിധത്തിലുള്ള കള്ളങ്ങളും, ഇല്ലാത്ത ബഗ്
റിപ്പോർട്ടുകളും, ഊഹാപോഹങ്ങളും പരത്തുക, മറ്റു പ്രോസസ്സുകൾ ഉപയോഗിക്കുന്ന
റിസോഴ്സുകൾ പരമാവധി ബ്ലോക് ചെയ്യുക, മറ്റ് ഡെസ്ക്ടോപ്പുകളുടെ
പ്രോസസ്സുകൾക്ക് സിഗ്ബസ്, സിഗ്സെഗ്വ്, സിഗ്കിൽ എന്നീ സിഗ്നലുകൾ അയക്കുക
എന്നിങ്ങനെയുള്ള പരിപാടികളാണ് ചെയ്യേണ്ടത്. ടെസ്റ്റർമാർ ആരെങ്കിലും ബഗ്
റിപ്പോർട്ട് ചെയ്താലോ, ഡെവലപ്പർമാർ ഡീബഗ് ചെയ്യാൻ നോക്കിയാലോ ഇപ്പറഞ്ഞ സബ്
ഗ്രൂപ്പുകൾക്ക് ഒന്നും കെഅലവലാതിഗ്രൂപ്പുമായി ഒരു ബന്ധവും ഇല്ലെന്നും,
ബഗ് മറ്റേ ഡസ്ക്ടോപ്പ് പ്രോഗ്രാമിന്റെ പ്രശ്നമാണെന്നും പറഞ്ഞേക്കണം.
അതുപോലെ തന്നെ സബ്ഗ്രൂപ്പുകൾ തമ്മിലും ഒരു ബന്ധവുമില്ലെന്നും കൂടി
കാച്ചിക്കോണം. നമ്മളൊക്കെ ഒരേ ഗ്രൂപ്പിന്റെ ഭാഗമാണെങ്കിലും അതൊന്നും
വെളിയിൽ സമ്മതിച്ചു കൊടുക്കരുത്. നമ്മളൊക്കെ ഒന്നാണെന്നറിഞ്ഞാൽ ബാക്കി
എല്ലാം കൂടി കേറി മേഞ്ഞ് നമ്മുടെ സോഴ്സ് കോഡിൽ കമന്റുപോലും
ബാക്കിയുണ്ടാവില്ല. പറഞ്ഞേക്കാം.<br /><br />ബാക്കി പ്രോസസ്സുകളുടെ ചുമതലകളും മറ്റും വിവരിക്കുന്നു:<br /><br /><b>ഫെഡോറഫാൻഗുഡു.സിപ്പിപ്പി</b><br />ഫെഡോറയെക്കുറിച്ചും,
കെഡിഈയെക്കുറിച്ചും, അവയുപയോഗിക്കുന്ന യൂസർമാരെക്കുറിച്ചും, അങ്ങേ അറ്റം
പുകഴ്ത്തുന്ന തരത്തിലുള്ള മെയിലുകളും പോസ്റ്റുകളും നിർമ്മിക്കുക. ഇതൊക്കെ
കണ്ട് ഇതൊന്നും കണ്ടിട്ടില്ലാത്തവർ അതൊക്കെ എന്തോ വലിയ സംഭവമാണെന്ന്
വിചാരിക്കണം.<br /><br /><b>സ്യൂഡോസ്റ്റ്രാറ്റജിസ്റ്റ്ഗുഡു.സിപ്പീപ്പി</b><br />ഡിസ്ക്കഷൻ
ഫോറങ്ങളിലും മെയിലിങ് ലിസ്റ്റുകളിലും എമണ്ടൻ ലേഖനങ്ങൾ എഴുതുക. പ്രോസസ്
ഷെഡ്യൂളിങിൽ പ്രീഎംപ്റ്റീവ് ടൈം ഷെയറിങ്ങിന്റെ പ്രാധാന്യം, ഇനിറ്റ് വേണോ
സിസ്റ്റംഡി വേണോ, ഡിഫാൾട്ട് ഫയൽസിസ്റ്റം ഇഎക്സ്റ്റി ഫോർ വേണോ,
സെഡ്എഫ്എസ് വേണോ എന്നിങ്ങനെ കൊമ്പത്തെ കാര്യങ്ങൾ മാത്രമേ എഴുതാവൂ.
ബാക്കി ഡെസ്ക്ടോപ്പുകളും ഡിസ്റ്റ്രോകളുമായി നല്ല സുഹൃദ്ബന്ധത്തിലാണെന്ന്
കാണുന്നവർക്ക് തോന്നുകയും വേണം. പക്ഷേ തരം കിട്ടിയാൽ അതിനൊക്കെ നല്ല പണിയും
കൊടുക്കേണ്ടതാണ്. ഫെഡോറയും കെഡീഇയും എല്ലാത്തിലും ഒളിച്ചു കടത്തണം എന്നു
പ്രത്യേകിച്ചു പറയണ്ടല്ലോ? ഫെഡോറയിൽ അംഗമായതുകൊണ്ട് കെഅലവലാതിഗ്രൂപ്പുകളുടെ
അക്രമങ്ങളെക്കുറിച്ച് മറ്റു ഡിസ്റ്റ്രോക്കാരും ഡെസ്ക്ടോപ്പുകാരും പലതും
ചോദിച്ചെന്നിരിക്കും. അതൊക്കെ എവിടെയും തൊടാതെ ഒഴിഞ്ഞു മാറുകയോ, കൂടുതൽ
വിവരങ്ങൾക്ക് കാത്തു നില്ക്കുയാണെന്നോ പറയണം. അല്ലെങ്കിൽ അവന്മാർ നമ്മുടെ
ഗ്രൂപ്പിലല്ലെന്നും പറഞ്ഞാലും മതി. നമ്മുടെയിടയിൽപ്പെട്ട
വിവരദോഷികളാരെങ്കിലും ലോഗ് ഡിസേബിൾ ചെയ്യാതെയോ യുലിമിറ്റ് ഡിസേബിൾ
ചെയ്യാതെയോ വല്ലതും കാണിച്ച് നാട്ടുകാരറിഞ്ഞാൽ എതിർ കക്ഷികൾക്ക് അവസരം
കിട്ടുന്നതിനുമുമ്പ് അത് മോശമായിപ്പോയി എന്നും ഇത്തരം ആന്റിലിനക്സ്
എലമെന്റുകൾ കെഡിഈക്കും, ഫെഡോറക്കും എല്ലാത്തിനുപരിയായി ലിനക്സിനും
പേരുദോഷമുണ്ടാക്കും എന്നുപറഞ്ഞ് തടിയൂരിക്കൊള്ളണം.<br /><br /><b>അപലപഗുഡു.ലിബ്</b><br />വിവരദോഷിഗുഡു.ലിബ്,
വിവരമില്ലാഗുഡു.ലിബ് എന്നിവർ ഒരു കാര്യവും എതെങ്കിലും തെളിവ്
അവശേഷിപ്പിച്ചിട്ടേ ചെയ്യൂ. അങ്ങനെ ലോഗ് മെസ്സേജും,
സ്റ്റാക്ട്രേസുമൊക്കെയായി പിടിക്കപ്പെട്ടാൽ അപലപാനന്ദഗുഡു.ലിബ് അതൊക്കെ
അങ്ങ് നീറ്റായി അപലപിച്ചുകൊള്ളണം. ഇതൊക്കെ കാണുന്ന മറ്റു ഡിസ്റ്റ്രോക്കാർ
നിങ്ങൾ പറയുന്നതൊക്കെ കാര്യമായിട്ടാണെന്നു വിചാരിച്ചുകൊള്ളും.<br /><br /><b>അടിച്ചുമാറ്റെഡാക്രെഡിറ്റ്ഗുഡുഗുഡു.സി</b><br />മറ്റു
ഡിസ്റ്റ്രോകളും ഡെസ്ക്ടോപ്പുകളും കൊള്ളാവുന്ന ഫീച്ചറുകൾ വല്ലതും
കൊണ്ടുവന്നാൽ അതൊക്കെ നമ്മുടെ മാനുവലിലിൽ പണ്ടേ ഉള്ളതാണെന്നു പറഞ്ഞ്
നില്ക്കണം. തെളിവു ചോദിച്ചാൽ പണ്ടത്തെ ഏതെങ്കിലും മാനുവലിൽ നിന്ന്
റോഫ്/ട്രോഫ്/എൻറോഫ് ഫോർമാറ്റിലുള്ള എന്തെങ്കിലും കണ്ട്രോൾ ക്യാരകറ്ററുകൾ
ഉൾപ്പെടെ എടുത്തുകാച്ചി വ്യാഖ്യാനിച്ചു കൊടുക്കണം. ഇക്കാലത്ത് ഒരുത്തനും
റോഫും ട്രോഫുമൊന്നും അറിയില്ലന്നേ. അപലപഗുഡു.ലിബ് എതിർചേരിക്കാരുടെ
പ്രവർത്തിയെ അപലപിക്കേണ്ടതാണ്. തമ്മിൽഷെയറൻഗുഡു.സിപ്പിപ്പി ഇതൊക്കെ
ബാക്കിയെല്ലാവരും ഷെയർ ചെയ്യുന്നുണ്ടെന്നു ഉറപ്പു വരുത്തേണ്ടതാണ്.<br /><br /><b>ഐകാൻഡി.എസ്സെച്ച്</b><br />നമ്മുടെ
വ്യത്യസ്ഥഗ്രൂപ്പുകളുടെ അക്രമവും കുത്തിത്തിരിപ്പുകളും കാരണം
നാട്ടുകാരെല്ലാം കലിപ്പ് മോഡിലിരിക്കുമ്പോൾ നല്ല ഭംഗിയുള്ള ഡെസ്ക്ടോപ്പ്
സ്ക്രീൻഷോട്ടുകളിട്ട് ആൾക്കരുടെ ശ്രദ്ധമാറ്റുക. മറ്റ്
ഡെസ്ക്ടോപ്പ്/ഡിസ്റ്റ്രോകളുടെ സ്ക്രീൻഷോട്ടുകൾ ഇടുന്നത് ഇത്തരുണത്തിൽ
അനുവദനീയമാണെങ്കിലും ഫെഡോറയിലെ കെഡീഈ സ്ക്രീൻഷോട്ടുകൾ കൂടുതൽ പോസ്റ്റ്
ചെയ്യേണ്ടതാണ്.<br /><br /><b>തമ്മിൽഷെയറൻഗുഡു.സിപ്പിപ്പി</b><br />ഗ്രുപ്പ്
മെമ്പറന്മാരുടെ പോസ്റ്റുകളും പ്രസംഗങ്ങളും മറ്റ് മെമ്പറന്മാർ റീഷെയർ
ചെയ്യുന്നുണ്ടെന്ന് ഉറപ്പുവരുത്തുക.
അടിച്ചുമാറ്റെഡാക്രെഡിറ്റ്ഗുഡുഗുഡു.സിയുടെ പോസ്റ്റുകൾ ഒരു കാരണവശാലും ഷെയർ
ചെയ്യപ്പെടാതിരിക്കരുത്.<br /><br /><b>കിംവദന്തിഗുഡു.ലിബ്</b><br />മറ്റ്
ഡിസ്റ്റ്രോകളുടെ ഉള്ലതും ഇല്ലാത്തതുമായ ബഗ്റിപ്പോർട്ടുകൾ മെയിലിങ്
ലിസ്റ്റിലും ഡിസ്ക്കഷൻ ഫോറത്തിലും പോസ്റ്റുകയും ആ ബഗ്ഗുകൾ കാരണം യൂസർമാരുടെ
ഒരു ജോലിയും നടക്കുന്നില്ലെന്നും പറയേണ്ടതാണ്. നമ്മുടെ ഡിസ്റ്റ്രോയിലെ
ബഗ്ഗുകൾ ഫിക്സ് ചെയ്തെന്നും മറ്റും പറഞ്ഞ് പരത്തുകയും വേണം. പുതിയ
ഫീച്ചറുകൾ പലതും നമ്മുടെ ഡെവലപ്മെന്റ് ബ്രാഞ്ചിൽ ടെസ്റ്റ്
ചെയ്തുകൊണ്ടിരിക്കുകയാണെന്നും പറയണം. മറ്റു ഡിസ്റ്റ്രോക്കാർ വീബിയിലാണ്
കോഡെഴുതുന്നതെന്നും പറയണം.<br /><br /><b>വിൻഡോസിൽപോഡാ.എച്</b><br />നമ്മളെക്കുറിച്ച്
ആരെങ്കിലും എന്തെങ്കിലും പറഞ്ഞാൽ അവർ വിൻഡോസിന്റെ ഡെവലപ്പർമാരാണെന്നും,
അവന്മാർ ലിനക്സൊക്കെ വിട്ട് വിൻഡോസിലേക്ക് പോകണമെന്നും, സോഴ്സ്
റെപ്പോയിലേക്കുള്ള അവന്മാരുടെ ആക്സസും,സുഡു പ്രിവിലേജസും, എസ്സെസ്സെച്
സർട്ടിഫിക്കേറ്റുമൊക്കെ റിവോക്ക് ചെയ്യണമെന്നും വയലന്റായി ആവശ്യപ്പെടണം.
പറ്റുമെങ്കിൽ അവന്മാരുടെ ഹോംഡയറക്റ്ററിയിൽ കയറി സുഡു ഉപയോഗിച്ച് ഫയലുകൾ
ഡെലിറ്റ് ചെയ്യുകയും വേണം. അപലപഗുഡു.ലിബും,
സ്യൂഡോസ്റ്റ്രാറ്റജിസ്റ്റ്ഗുഡു.സിപ്പീപ്പിയും വിൻഡോസിൽപോഡാ.എച്ചിന്റെ ഈ
പ്രവർത്തികൾ ഒന്ന് ചെറുതായി തള്ളിപ്പറയേണ്ടതാണ്.<br /><br /><b>കെർണ്ണലപകീർത്തിഗുഡു.സി</b><br />മറ്റ്
ഡിസ്റ്റ്രോയുടെ ആൾക്കാർ നമ്മളെ ചോദ്യം ചെയ്താൽ കെർണലിനെ
അപകീർത്തിപ്പെടുത്തി എന്നുപറഞ്ഞ് വൻബഹളമുണ്ടാക്കണം. ഈ സന്ദർഭത്തിൽ
വിൻഡോസിൽപോഡാ.എച് വന്ന് കെർണ്ണലപകീർത്തിഗുഡു.സിയ്ക്ക് ആവശ്യമുള്ള സഹായങ്ങൾ
ചെയ്തുകൊടുക്കേണ്ടതാണ്. അപലപഗുഡു.ലിബ്,
സ്യൂഡോസ്റ്റ്രാറ്റജിസ്റ്റ്ഗുഡു.സിപ്പീപ്പി, ഐകാൻഡി.എസ്സെച്ച്,
കിംവദന്തിഗുഡു.ലിബ് ഒക്കെ തങ്ങളാലാവും വിധം പ്രശ്നത്തിൽ ഇടപെട്ട് നമ്മുടെ
മറ്റ് കുതന്ത്രങ്ങളിൽ നിന്ന് എല്ലാവരുടെയും ശ്രദ്ധതിരിക്കേണ്ടതാണ്.<br /><br /><b>ജനറൽ ടിപ്സ്</b><br />മറ്റു
ഡിസ്റ്റ്രോകളേയും ഡെസ്ൿടോപ്പുകളെയും കുറിച്ച് തെറ്റിദ്ധാരണ പരത്തി പരമാവധി
യൂസർമാരെ നമ്മുടെ കൂട്ടത്തിലേക്ക് എത്തിക്കാൻ നമ്മൾ പരിശ്രമിക്കേണ്ടതാണ്.
അടുത്തറിലീസോ അതിനടുത്ത റിലോസോ കൂടി മറ്റവന്മാരെ എല്ലാം നമ്മുടെ
ഡിസ്റ്റ്രോയിൽ നിന്ന് എടുത്ത് വെളിയിൽ കളഞ്ഞേ പറ്റൂ.<br /><br />മെയിലിങ്
ലിസ്റ്റിലും ഡിസ്കഷൻ ഫോറങ്ങളിലും മറ്റവന്മാർ സിസ് ലോഗും സ്റ്റാക്ക് ട്രേസും
ഒക്കെയായി വന്ന് നമുക്കെതിരെ തെളിവുകൾ നിരത്തും. അങ്ങനുയുള്ള അവസരങ്ങളി
അബദ്ധവശാൽ പോലും അവിടെയൊന്നും ലോഗിൻ ചെയ്യരുത്.
തലയിൽആൾതാമസമില്ലാഗുഡു.എച്, കണ്ണടച്ച്വിശ്വസിക്കൻ.സിപ്പിപ്പി
എന്നിവരെക്കൊണ്ട് വല്ല മണ്ടത്തരവും അവിടെ വിളമ്പിച്ചാൽ മതി.
പ്രതിയോഗികളെല്ലാം പൊങ്കാല അവന്മാരുടെ നെഞ്ചത്തോട്ടിട്ടോളും. ആരെങ്കിലും
മെയിലയക്കുകയോ ഐഎം ചെയ്യുകയോ ചെയ്താൽ ഉടൻ മറുപടി കൊടുക്കരുത്.
പ്രശ്നങ്ങളൊക്കെ ആറിത്തണുത്തശേഷം സിസ്റ്റം ബാക്കപ്പെടുക്കുകയായിരുന്നു
എന്നോ, ഡെവലപ്പർ കോൺഫറൻസിനു പോയിരുന്നെന്നോ, കെർണൽ പാരായണം
നടുത്തുകയായിരുന്നു എന്നോ, അയൽവാസിയുടെ വകയിലെ കസിന്റെ കല്യാണത്തിനു
പോയിരുന്നെന്നോ മറ്റോ പറയണം. കൂട്ടത്തിൽ അങ്ങനെ സംഭവിച്ചെങ്കിൽ അത്
മോശമായിപ്പോയി എന്ന് പറയണം. ഒരിക്കലും അതു സംഭവിച്ചെന്ന്
സമ്മതിച്ചുകൊടുക്കരുത്.<br /><br />നമ്മുടെ ഡിസ്റ്റ്രോയിൽ ബഗ്ഗുണ്ടെന്നു
പറഞ്ഞാൽ പറഞ്ഞവന്മാരുടെ ഡിസ്റ്റ്രോയിൽ അതിനേക്കാൾ വലിയ ബഗ്ഗുണ്ടെന്നു
പറയുക. ബഗ്സില്ലയിൽ കയറി ഏതെങ്കിലും ഹൈസിവിയറിറ്റി ബഗ് എടുത്ത് കാണിച്ചാൽ
മതി. അതെങ്ങാനും ഫിക്സ് ചെയ്തതാണെന്നവന്മാർ പറഞ്ഞാൽ ഫിക്സ് ചെയ്താലും ബഗ്
ബഗ്ഗാല്ലാതാവുമോ എന്നൊക്കെ ചോദിക്കണം. കെർണ്ണലപകീർത്തിഗുഡു.സിയും
വിൻഡോസിൽപോഡാ.എച്ചും അവരാൽ കഴിയുന്ന വിധത്തിൽ പ്രതിയോഗികളെ നേരിടേണ്ടതാണ്.
കിംവദന്തിഗുഡു.ലിബിന്റെ സേവനം യഥേഷ്ടം ഉപയോഗിക്കാവുന്നതാണ്. ഒരു
രക്ഷേമിലെങ്കിൽ അവന്മാർ വിൻഡോസ് ഡെവലപ്പർമാരാണെന്നും, അവന്മാർ വിഷ്വൽ
ബേസിക്കിലാണ് കോഡെഴുതുന്നത് എന്നുമൊക്കെ പറയാവുന്നതാണ്.<br /><br />ഹോം
ഡയറക്റ്ററിയിൽ വിബി കോഡ് ഉണ്ടെന്നു പറഞ്ഞ് മറ്റേ ഡിസ്റ്റ്രോക്കാരുടെ
ഡെവലപ്പർമാരുടെ ഹോം ഫോൾഡർ ഇടയ്ക്ക് കത്തിക്കണം. ഇനിയിപ്പോ വിബി കോഡ്
ഉണ്ടെങ്കിൽ തന്നെ എന്താ പ്രശ്നം എന്നാരെങ്കിലും ചോദിച്ചാൽ സി &
സിപ്ലസ്പ്ലസ് ബേസ്ഡ് ആയ ലിനക്സിൽ ഒരുത്തനും വിബിയിൽ കോഡെഴുതെണ്ടെന്നു
പറയണം. അങ്ങനെ വല്ലവനും വിബിയിൽ കോഡെഴുതണമെന്നു തോന്നിയാൽ അങ്ങ് വിൻഡോസിൽ
പോയി എഴുതിയാൽ മതി എന്നും പറയണം.<br /><br />മെമ്മറിയുസേജ് കുറയ്ക്കാൻ
പറ്റുമെന്ന് പറഞ്ഞ് നമ്മുടെ ഡെസ്ക്ടോപ് മാനേജറിലേക്ക് മാറിയിട്ട്
മെമ്മറിയൂസേജ് കൂടിയെന്നും, നമ്മുടെ ഡിസ്റ്റ്രോയിലേക്ക് മാറിയാൽ എല്ലാ
പ്രോസസ്സുകൾക്കും 16എംബി കൂടുതൽ റാം അലോക്കേറ്റു ചെയ്യുമെന്ന്
പറഞ്ഞിട്ടുണ്ടെന്നുമൊക്കെ വല്ലവന്മാരും വന്നു ചോദിച്ചെന്നിരിക്കും.
അങ്ങനെയെങ്ങാനും ഉണ്ടായാൽ അവന്മാരുടെ പ്രോഗ്രാമുകൾ കൂടുതൽ
റാമെടുക്കുന്നതാണ് പ്രശ്നമെന്ന് പറയണം. 16 എംബി റാം കൂടുതൽ കൊടുക്കുമെന്ന്
നമ്മൾ ഒരിക്കലും പറഞ്ഞിട്ടില്ലെന്നും പറയണം.<br /><br />വിവരദോഷിഗുഡു.ലിബ്,
വിവരമില്ലാഗുഡു.ലിബ്, തലയിൽആൾതാമസമില്ലാഗുഡു.എച് എന്നിവന്മാരെക്കൊണ്ട്
എന്തെങ്കിലുമൊക്കെ മണ്ടത്തരങ്ങൾ എഴുന്നള്ലിച്ചുകൊണ്ടിരിക്കണം.
നാട്ടുകാരെല്ലാം ഇവന്മാരുടെ പുറകേ നടന്ന് സമയം കളയുമ്പോൾ നമുക്ക് നമ്മുടെ
പരിപാടികൾ മറ്റാരുടെയും ശ്രദ്ധയിൽ പെടാതെ ചെയ്യാൻ പറ്റും. ഇവന്മാർക്ക്
ഏതെങ്കിലും മാനുവലോ, കോഡോ കൊടുത്തിട്ട് അതിനെക്കുറിച്ച് എന്തെങ്കിലും പറയാൻ
പറഞ്ഞാൽ മതി, വരുന്നത് മുഴുവൻ നല്ല ഒന്നാന്തരം വിവരക്കേടും
മണ്ടത്തരങ്ങളുമായിരിക്കും. ഒരു കാരണവശാലും നമ്മുടെ സ്റ്റ്രാറ്റജി മെയിലുകൾ
ഇവന്മാർ കാണാനിടയാകരുത്, അതൊക്കെ ഇവന്മാർ എപ്പോ പബ്ലിക്കാക്കി എന്നു
ചോദിച്ചാൽ മതി. ഇനി അഥവാ നമ്മുടെ വല്ല സ്റ്റ്രറ്റജിയും ഇവന്മാർ പബ്ലിക്കായി
വിളിച്ചു പറഞ്ഞാൽ അതൊക്കെ അവന്മാരുടെ സ്ഥിരം മണ്ടത്തരങ്ങളാണെന്നു പറഞ്ഞാൽ
മതി, ആളുകൾ വിശ്വസിച്ചോളും. രണ്ടുദിവസം കഴിയുമ്പോൾ ലിവന്മാരിതൊക്കെ മറന്ന്
വീണ്ടും നമ്മുടെ അടുത്തു തന്നെ വന്നോളും.<br /><br />അപ്പോൾ എല്ലാം പറഞ്ഞതുപോലെ.<br />ജയ് ഫെഡോറ, ജയ് കെഡിഈ<br />ലിനക്സ്പ്ലസ്പ്ലസ്സാനന്ദഗുഡുഗുഡു.സി</div>
</div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-81935161277198578242016-01-03T13:00:00.000+05:302016-04-20T00:06:24.201+05:30chequePrint : Linux utility to print into cheques<div dir="ltr" style="text-align: left;" trbidi="on">
The problem : As I do not write much on paper these days, writing cheques will cause some cheque leaves go waste. Earlier I had created a template in LibreOffice to solve the problem. However, I could not use that template as it was for a different bank. It was too difficult to get the alignment correct as there were boxes for days, month & year.<br />
<br />
Solution : Write a script! Initially considered generating TeX files but zeroed in on PostScript as it would be easy to do the layout.<br />
The script is available in the <a href="https://github.com/primejyothi/chequePrint" rel="nofollow">chequePrint GitHub repo</a>.</div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-72804415172986575682015-08-09T21:50:00.000+05:302015-08-09T21:50:39.030+05:30syncReaders: Linux utility to synchronize Calibre & CoolReader database<div dir="ltr" style="text-align: left;" trbidi="on">
I use the <a href="https://play.google.com/store/apps/details?id=org.coolreader&hl=en" rel="nofollow">coolReader</a> in my Android phone and tablet to read e-books. The e-books are managed in my Linux system using <a href="http://calibre-ebook.com/" rel="nofollow">Calibre</a>. One of the problem I had was that it was difficult to maintain the ratings and read status of the books across the three devices. Manually updating the ratings and read status was not practical. Since I go by "Machines should work and men should enjoy", some time ago I ventured into writing a program to synchronize the status and read status in both applications. I have been using the utility for a while and serves my purpose. The downside is that the database files of the applications have to be manually copied to Linux system for synchronization and then copy back to respective devices manually.<br />
<br />
The source code for syncReaders is available here : <a href="https://github.com/primejyothi/syncReaders">https://github.com/primejyothi/syncReaders</a></div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-13933362771366934632014-12-03T21:45:00.000+05:302014-12-03T22:11:45.350+05:30ഷെൽ ബ്രേസ് എക്സ്പാൻഷൻ<div dir="ltr" style="text-align: left;" trbidi="on">
ഒന്നിലധികം അക്ഷരങ്ങളോ വാക്കുകളോ കൂട്ടിച്ചേർത്ത് പുതിയ സ്റ്റ്രിങ്ങുകൾ നിർമ്മിക്കാൻ പറ്റിയ ഒരു ഉപാധിയാണ് ഷെല്ലിലെ ബ്രേസ് എക്സ്പാൻഷൻ. ഉദാഹരണത്തിന് a,b എന്നീ അക്ഷരങ്ങൾ ആദ്യവും c, d
എന്നീ അക്ഷരങ്ങൾ രണ്ടാമതും വരുന്ന 2 അക്ഷരങ്ങളുള്ള വാക്കുകൾ ഉണ്ടാക്കാൻ {a,b}{c,d} എന്ന എക്സ്പ്രഷൻ ഉപയോഗിക്കാം.
<br />
<pre>echo {a,b}{c,d}
ac ad bc bd
</pre>
ഇംഗ്ലീഷ് അക്ഷരമാല മുഴുവൻ പ്രിന്റ് ചെയ്യണമെങ്കിൽ ഇരുപത്താറക്ഷരങ്ങളും ടൈപ്പ് ചെയ്യുന്നതിനുപകരം {a..z} എന്നു കൊടുത്താൽ മതി.
<br />
<pre>echo {a..z}
a b c d e f g h i j k l m n o p q r s t u v w x y z
</pre>
echo {a..z}{a..z} എന്നു കൊടുത്താൽ aa മുതൽ zz വരെ പ്രിന്റ് ചെയ്യും <br />
echo {1,2}{a..z}{a..z} എന്നത് 1aa..1zz,2aa...2zz എന്നും പ്രിന്റ് ചെയ്യപ്പെടും.<br />
ബ്രേസ് എക്സ്പാൻഷൻ കാര്യങ്ങൾ എങ്ങനെ എളുപ്പമാക്കുന്നെന്നു കാണാൻ മറ്റൊരുദാഹരണം പറയാം. 2000 മുതൽ 2014 വരെയുള്ള മാസങ്ങളുടെ പേരിൽ 2000_jan, 2000_feb എന്നിങ്ങനെ ഫോൾഡറുകൾ ഉണ്ടാക്കണമെന്നു കരുതുക. നൂറ്റി എൺപതു ഫോൾഡറുകളുടേ പേരുകൾ ഒന്നൊന്നായി ടൈപ്പ് ചെയ്യുന്നതിനുപകരം <br />
<pre>mkdir {2000..2014}_{jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec}</pre>
എന്നു കൊടുത്താൽ മതിയാകും.
<br />
ഇനി 2000 മുതൽ 2014 വരെ നാലു വർഷങ്ങൾ ഇടവിട്ടുള്ളവയാണു വേണ്ടതെങ്കിൽ {2000..2014..4}_{jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec} എന്ന് എക്സ്പ്രഷനുപയോഗിക്കാം. <br />
അക്കങ്ങൾക്കു പകരം അക്ഷരങ്ങളിൽ ..4 എന്നു കൊടുത്താൽ നാല് അക്ഷരങ്ങൾ ഇടവിട്ട് പ്രിന്റ് ചെയ്യും. ഉദാ : echo {a..z..4} എന്നത് a e i m q u y എന്നു പ്രിന്റ് ചെയ്യും
</div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-79803308792816264582014-08-17T18:09:00.002+05:302014-08-17T20:57:50.178+05:30Up!<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-size: x-small;">Like many other scripts, the bash shell function "up" is a by product of my laziness. As the name vaguely indicates, it can move you up in the directory tree. If you want to move 3 levels up in the directory tree, you invoke the function as up 3 instead of cd ../../../ which saves a ton of typing. The shell function can be downloaded from my <a href="https://github.com/primejyothi/ShellUtils/blob/master/up.rc" rel="nofollow">GitHub </a>repo. </span><br />
<br />
<pre># Go n level up in the directory structure.
# License : GPLv3
function up ()
{
lvls=""
if [[ ! -z "$1" ]]
then
for i in `seq $1`
do
lvls="${lvls}../"
done
else
lvls="../"
fi
# Will land up in / if n is too large.
cd ${lvls}
pwd
}
</pre>
<br />
<span style="font-size: x-small;">The <a href="https://github.com/primejyothi/ShellUtils" rel="nofollow">ShellUtils</a> repo contains few other shell scripts that might be interesting. See the Readme file in the repo to find out what those scripts are doing.</span></div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-84582825470499038892014-08-02T18:47:00.000+05:302014-08-02T18:47:09.215+05:30Dbus-MPRIS Music Player Controller<div dir="ltr" style="text-align: left;" trbidi="on">
<b>The Short story :</b><br />
<div style="text-align: justify;">
Here is a shell script that can control media players like Amarok, Clementine, mpd & VLC : <a href="https://github.com/primejyothi/Dbus-MPRIS-MusicPlayer-Controller" rel="nofollow">https://github.com/primejyothi/Dbus-MPRIS-MusicPlayer-Controller</a></div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
<b>The long story :</b></div>
<div style="text-align: justify;">
Like most of the programmers, I'm a big fan of command line. Since I can
touch type, things get done really faster. There will be a music player
running in my system and most of the time I will be using mpd with
ncmpcpp. Only problem is that I keep forget which key is used to
stop/pause ncmpcpp. This problem was quickly resolved by installing mpc
and few aliases. Things were pretty fine and I even wrote a script (<a href="https://github.com/primejyothi/ShellUtils/blob/master/mpdLyrics.sh" rel="nofollow">https://github.com/primejyothi/ShellUtils/blob/master/mpdLyrics.sh</a>) to extract the album art of the song being played in mpd and show it on <a href="http://conky.sourceforge.net/" rel="nofollow">Conky</a> .</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
Problems cropped up when Amarok or Clementine were used. The controls
were on top for Amarok and in case of Clementine it was just opposite. I
could use the media keys in the keyboard, but I hardly use them as mpd
does not respond to them. The search of consistency ended with <a href="http://specifications.freedesktop.org/mpris-spec/latest/" rel="nofollow">MPRIS</a>.
Quickly put together a script and any of these media players could be
controlled with a single script. Few aliases and I can control the media
player without leaving vim :)</div>
<div style="text-align: justify;">
<br /></div>
<div style="text-align: justify;">
For VLC and mpd, MPRIS need to be enabled manually. The VLC player need to be started as vlc --control dbus. In case of mpd, <a href="https://github.com/eonpatapon/mpDris2" rel="nofollow">mpDris2</a> need to be running.</div>
</div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-56200280978593660852014-07-27T15:20:00.002+05:302014-07-27T15:20:47.740+05:30ഓപ്പൺസ്റ്റ്രീറ്റ്മാപ്<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="tG QF" style="-webkit-text-stroke-width: 0px; background-color: white; color: #404040; font-family: Roboto, arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.2000007629395px; orphans: auto; position: absolute; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; width: 0px; word-spacing: 0px;">
</div>
<div class="Ct" style="-webkit-text-stroke-width: 0px; background-color: white; color: #404040; font-family: Roboto, arial, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.2000007629395px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;">
ഓപ്പൺസ്റ്റ്രീറ്റ്മാപ് ഉപയോഗിക്കാൻ തുടങ്ങിയതുമുതൽ അതിനെക്കുറിച്ച് എഴുതണമെന്നു കരുതിയതാണ്. വിക്കിപീഡിയ പോലെ ആർക്കും എഡിറ്റ് ചെയ്യാവുന്ന ഒരു മാപ് ആണ് ഓപ്പൺസ്റ്റ്രീറ്റ്മാപ്. ആ വിവരങ്ങൾ എങ്ങനെയെല്ലാം ഉപയോഗിക്കാം എന്നുള്ളതിനെക്കുറിച്ചാണ് ഇവിടെ പറയാൻ പോകുന്നത്.<br /><br /><a class="ot-anchor aaTEdf" href="http://www.openstreetmap.org/" rel="nofollow" style="-webkit-transition: color 0.218s; color: #427fed; cursor: pointer; text-decoration: none; transition: color 0.218s;" target="_blank">http://www.openstreetmap.org</a><span class="Apple-converted-space"> </span>അല്ലെങ്കിൽ <a class="ot-anchor aaTEdf" href="http://osm.org/" rel="nofollow" style="-webkit-transition: color 0.218s; color: #427fed; cursor: pointer; text-decoration: none; transition: color 0.218s;" target="_blank">http://osm.org</a><span class="Apple-converted-space"> </span>ഉപയോഗിച്ച് ഓപ്പൺ സ്റ്റ്രീറ്റ് മാപ് സൈറ്റിലേക്ക് പോകാൻ പറ്റും. ഈ സൈറ്റ് പ്രധാനമായും മാപ് എഡിറ്റ് ചെയ്യാനും, ഓപ്പൺസ്റ്റ്രീറ്റ്മാപ് എങ്ങനെ ഉപയോഗിക്കാം എന്നുള്ള ഒരു ഉദാഹരണവുമാണ്. അക്കാരണത്താൽ മറ്റേതെങ്കിലും മാപ്പ് ഉപയോഗിക്കുന്നതുപോലെ ഓപ്പൺസ്റ്റ്രീറ്റ്മാപ് സൈറ്റ് ഉപയോഗിക്കാൻ ശ്രമിച്ചാൽ ചിലപ്പോൾ നിങ്ങൾ നിരാശരായേക്കും. അപ്പോൾ പിന്നെ ഇതെങ്ങനെ ഉപയോഗിക്കാം എന്നുള്ള ചോദ്യം വരും. അവിടെയാണ് ഓപ്പൺസ്റ്റ്രീറ്റ്മാപ്പിന്റെ ശരിക്കുള്ള ഗുണം വരുന്നത്. ഓപ്പൺസ്റ്റ്രീറ്റ്മാപ്പിലെ വിവരങ്ങൾ വളരെ ലളിതമായ ലൈസൻസിൽ ലഭ്യമാണ്. അതുപയോഗിച്ചിട്ടുള്ള വളരെയധികം സർവീസുകളും ലഭ്യമാണ്.<br /><br />ഓപ്പൺസ്റ്റ്രീറ്റ്മാപ്പിലെ ഡേറ്റ, സന്നദ്ധപ്രവർത്തകർ ചേർക്കുന്നതുകൊണ്ട് മിക്കവാറും ശരിയായിരിക്കാനാണ് സാധ്യത. എന്നിരുന്നാലും ചില സ്ഥലങ്ങളിലെ കവറേജ് മറ്റു മാപ്പുകളെപ്പോലെ പൂർണ്ണമായെന്നിരിക്കില്ല. അതിനാൽ മറ്റേതു സർവീസും ഉപയോഗിക്കുമ്പോഴെടുക്കുന്ന മുൻകരുതലുകൾ ഓപ്പൺസ്റ്റ്രീറ്റ്മാപ്പ് ഉപയോഗിക്കുമ്പോഴും എടുക്കേണ്ടതാണ്.<br /><br />ഓപ്പൺസ്റ്റ്രീറ്റ്മാപ്/ഓപ്പൺസ്റ്റ്രീറ്റ്മാപ് ഡാറ്റ ഉപയോഗിച്ച് എന്തെല്ലാം മാപ് സർവീസുകൾ ലഭ്യമാണെന്നു നോക്കാം.<br /><br /><b><i>നാവിഗേഷൻ</i></b><br />OsmAnd :<span class="Apple-converted-space"> </span><a class="ot-anchor aaTEdf" href="https://play.google.com/store/apps/details?id=net.osmand" rel="nofollow" style="-webkit-transition: color 0.218s; color: #427fed; cursor: pointer; text-decoration: none; transition: color 0.218s;" target="_blank">https://play.google.com/store/apps/details?id=net.osmand</a><br />ഓഫ്ലൈൻ മാപ് സൗകര്യമുള്ള നല്ലൊരു ആൻഡ്രോയ്ഡ് ആപ്ലിക്കേഷനാണിത്. ആവശ്യമുള്ള രാജ്യത്തിന്റെ മാപ് ഡൗൺലോഡ് ചെയ്താൽ ഡേറ്റാ കണക്ഷനില്ലാതെ ഈ ആപ്പുപയോഗിച്ച് നാവിഗേറ്റ് ചെയ്യാം. ഇന്ത്യൻ മാപ് ഏകദേശം 200 എംബിയോളം വരും. പത്തു മാപ്പുകൾ മാത്രമേ ഫ്രീ വെർഷനിൽ ഡൗൺലോഡ് ചെയ്യാൻ പറ്റൂ എന്നൊരു പ്രശ്നമുണ്ട്. ഇതുപയോഗിക്കുന്നതെങ്ങനെ എന്നു വിശദമാക്കുന്ന നല്ലൊരു ബ്ലോഗ് എന്റ്രി ഇവിടെ ഉണ്ട് :<a class="ot-anchor aaTEdf" href="https://joostschouppe.wordpress.com/2014/07/25/using-osmand-on-the-road/" rel="nofollow" style="-webkit-transition: color 0.218s; color: #427fed; cursor: pointer; text-decoration: none; transition: color 0.218s;" target="_blank">https://joostschouppe.wordpress.com/2014/07/25/using-osmand-on-the-road/</a><br /><br />navfree :<span class="Apple-converted-space"> </span><a class="ot-anchor aaTEdf" href="https://play.google.com/store/apps/details?id=com.navfree.android.OSM.ALL" rel="nofollow" style="-webkit-transition: color 0.218s; color: #427fed; cursor: pointer; text-decoration: none; transition: color 0.218s;" target="_blank">https://play.google.com/store/apps/details?id=com.navfree.android.OSM.ALL</a><br />OsmAnd പോലെ ഓഫ്ലൈൻ നാവിഗേഷൻ ഉപയോഗിക്കാവുന്ന മറ്റൊരാപ്ലിക്കേഷനാണിത്. ഇതും ഓപ്പൺസ്റ്റ്രീറ്റ് മാപ്പിൽ നിന്നുള്ള ഡേറ്റയാണുപയോഗിക്കുന്നത്. കഴിഞ്ഞ ഒന്നു രണ്ടു വർഷമായി ഞാൻ ഇതുപയോഗിക്കാറില്ലാത്തതിനാൽ കൂടുതൽ വിവരങ്ങൾ പറയാനില്ല.<br /><br />ഓൺലൈനിൽ റൂട്ടിങിനു വേണ്ടി<span class="Apple-converted-space"> </span><a class="ot-anchor aaTEdf" href="http://map.project-osrm.org/" rel="nofollow" style="-webkit-transition: color 0.218s; color: #427fed; cursor: pointer; text-decoration: none; transition: color 0.218s;" target="_blank">http://map.project-osrm.org/</a>,<a class="ot-anchor aaTEdf" href="http://open.mapquest.com/" rel="nofollow" style="-webkit-transition: color 0.218s; color: #427fed; cursor: pointer; text-decoration: none; transition: color 0.218s;" target="_blank">http://open.mapquest.com/</a><span class="Apple-converted-space"> </span>എന്നീ സൈറ്റുകൾ ഉപയോഗിക്കാവുന്നതാണ്.<br /><br />ഓപ്പൺസ്റ്റ്രീറ്റ് മാപ്പിൽ നിന്നുള്ള ഡേറ്റ ഉപയോഗിച്ച് പല തരം സർവീസുകളും ലഭ്യമാണ്. ചിലത് ഇവിടെ വിവരിക്കുന്നു.<br /><br /><b><i>പ്രിന്റഡ് മാപ്പുകൾ</i></b><br /><a class="ot-anchor aaTEdf" href="http://fieldpapers.org/" rel="nofollow" style="-webkit-transition: color 0.218s; color: #427fed; cursor: pointer; text-decoration: none; transition: color 0.218s;" target="_blank">http://fieldpapers.org/</a><span class="Apple-converted-space"> </span>എന്ന സൈറ്റിൽ നിന്ന് ആവശ്യമുള്ള പ്രദേശങ്ങളുടെ മാപ് നമുക്കുതന്നെ സെലക്റ്റ് ചെയ്ത് പിഡിഎഫ് ഫയൽ ആയി ഡൗൺലോഡ് ചെയ്യാൻ പറ്റും. ഓപ്പൺസ്റ്റ്രീറ്റ്മാപ് സൈറ്റിൽ നിന്നു തന്നെ മാപ്പുകൾ jpg/png/pdf/svg ഫോർമാറ്റുകളിൽ എക്സ്പോർട്ട് ചെയ്യാനുള്ള സൗകര്യമുണ്ടെങ്കിലും സെർവർ ലോഡ് അധികമാണെങ്കിൽ റിക്വസ്റ്റ് റിജക്റ്റ് ചെയ്യപ്പെടാനുള്ള സാധ്യതയുണ്ട്. അതിനാൽ<span class="Apple-converted-space"> </span><a class="ot-anchor aaTEdf" href="http://fieldpapers.org/" rel="nofollow" style="-webkit-transition: color 0.218s; color: #427fed; cursor: pointer; text-decoration: none; transition: color 0.218s;" target="_blank">fieldpapers.org</a><span class="Apple-converted-space"> </span>ൽ നിന്നും മാപ്പുകൾ എടുക്കുന്നതാകും സൗകര്യം.<br /><br /><b><i>മാപ് സെർച്ച്</i></b><br />നേരത്തേ സൂചിപ്പിച്ചതുപോലെ ഓപ്പൺസ്റ്റ്രീറ്റ് സൈറ്റിന്റെ ഉദ്ദേശം മാപ് എഡിറ്റിങ്ങും മറ്റുമായതിനാൽ എല്ലാത്തരം വിവരങ്ങളും ആ സൈറ്റിൽ കാണാൻ പറ്റില്ല. മാത്രവുമല്ല അവിടെ സെർച്ച് ചെയ്യുന്നതും അത്ര സുഖമുള്ള പരിപാടിയല്ല. അങ്ങനെയുള്ള ആവശ്യങ്ങൾക്കായി ഉപയോഗിക്കാവുന്ന ചില സൈറ്റുകളാണ്<span class="Apple-converted-space"> </span><a class="ot-anchor aaTEdf" href="http://www.openstreetbrowser.org/" rel="nofollow" style="-webkit-transition: color 0.218s; color: #427fed; cursor: pointer; text-decoration: none; transition: color 0.218s;" target="_blank">http://www.openstreetbrowser.org/</a>,<span class="Apple-converted-space"> </span><a class="ot-anchor aaTEdf" href="http://osm24.eu/" rel="nofollow" style="-webkit-transition: color 0.218s; color: #427fed; cursor: pointer; text-decoration: none; transition: color 0.218s;" target="_blank">http://osm24.eu</a>,<a class="ot-anchor aaTEdf" href="http://www.lenz-online.de/cgi-bin/osmpoi/osmpoi.pl" rel="nofollow" style="-webkit-transition: color 0.218s; color: #427fed; cursor: pointer; text-decoration: none; transition: color 0.218s;" target="_blank">http://www.lenz-online.de/cgi-bin/osmpoi/osmpoi.pl</a><span class="Apple-converted-space"> </span>എന്നിവ.<br /><br /><b><i>മറ്റു സർവീസുകൾ</i></b><br /><a class="ot-anchor aaTEdf" href="http://www.openrailwaymap.org/" rel="nofollow" style="-webkit-transition: color 0.218s; color: #427fed; cursor: pointer; text-decoration: none; transition: color 0.218s;" target="_blank">http://www.openrailwaymap.org/</a><span class="Apple-converted-space"> </span>: റെയിൽ മാപ്പുകൾ.<br /><a class="ot-anchor aaTEdf" href="http://openfiremap.org/" rel="nofollow" style="-webkit-transition: color 0.218s; color: #427fed; cursor: pointer; text-decoration: none; transition: color 0.218s;" target="_blank">http://openfiremap.org/</a><span class="Apple-converted-space"> </span>: ഫയർ സ്റ്റേഷനുകൾ, ഫയർ ഹൈഡ്രന്റ് എന്നിവയുടെ സ്ഥാനം അടയാളപ്പെടുത്തിയിട്ടുള്ള മാപ്.<br /><a class="ot-anchor aaTEdf" href="http://openbeermap.github.io/" rel="nofollow" style="-webkit-transition: color 0.218s; color: #427fed; cursor: pointer; text-decoration: none; transition: color 0.218s;" target="_blank">http://openbeermap.github.io/</a><span class="Apple-converted-space"> </span>: പബ്, ഷാപ്പ് എന്നിവ കാണിക്കാൻ വേണ്ടിയുള്ള മാപ്.<br /><a class="ot-anchor aaTEdf" href="http://waymarkedtrails.org/en/" rel="nofollow" style="-webkit-transition: color 0.218s; color: #427fed; cursor: pointer; text-decoration: none; transition: color 0.218s;" target="_blank">http://waymarkedtrails.org/en/</a><span class="Apple-converted-space"> </span>: ഹൈക്കിങ് ട്രെയ്ലുകൾ<br /><br />ഇത്രയും പറഞ്ഞ സ്ഥിതിക്ക് ഇതിൽ കുന്നംകുളത്തിന്റെ മാപ്പുണ്ടോ എന്ന ചോദ്യത്തിനും ഉത്തരം തരേണ്ടത് ആവശ്യമാണല്ലോ. കുന്നംകുളത്തിന്റെ മാപ്പുണ്ട്, പക്ഷേ പല വിവരങ്ങളും അതിൽ ഇതുവരെ ലഭ്യമല്ല. കുന്നംകുളത്തിന്റെ വിവരങ്ങൾ ഓപ്പൺസ്റ്റ്രീറ്റ്മാപ്പിൽ ചേർക്കാൻ താല്പര്യമുണ്ടെങ്കിൽ <a class="ot-anchor aaTEdf" href="http://learnosm.org/en/" rel="nofollow" style="-webkit-transition: color 0.218s; color: #427fed; cursor: pointer; text-decoration: none; transition: color 0.218s;" target="_blank">http://learnosm.org/en/</a><span class="Apple-converted-space"> </span>എന്ന സൈറ്റിൽ പോയാൽ വിവരങ്ങൾ ഓപ്പൺസ്റ്റ്രീറ്റ് മാപ്പിൽ എങ്ങനെ ചേർക്കാം എന്നു മനസ്സിലാക്കാം.</div>
</div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-32877192862237453842014-07-22T09:42:00.002+05:302014-07-22T11:34:37.895+05:30JOSM Preset Builder<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-size: small;">I was trying to build some presets for JOSM (https://josm.openstreetmap.de/) few days back and thought it would be a good idea to automate the process. Read the some documentation that was available from http://josm.openstreetmap.de/wiki/TaggingPresets. The defaultpresets.xml contained in the JOSM package gave some very useful information in writing the script.</span><br />
<br />
<span style="font-size: small;">The idea was to have a text file with the preset data and generate the XML file using a script. I finally settled on a pipe separated file format with embedded key value pairs. When finished, it could generate presets with key value pairs, drop downs and lists.</span><br />
<br />
<span style="font-size: small;">The scripts and sample files are released under GPLv3 and available at <a href="https://github.com/primejyothi/JOSMPresetBuilder" rel="nofollow" target="_blank">https://github.com/primejyothi/JOSMPresetBuilder</a></span><br />
<br />
<span style="font-size: small;">Hope someone will find it useful. </span></div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-51416516964289949062014-05-14T19:45:00.000+05:302014-05-14T19:46:36.922+05:30Changing starting index of tmux panes<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
I use the bind key + q combination to quickly switch between tmux panes. I use ctrl + a as the bind key and I found it bit of troublesome to press 0 to switch to the first pane as 0 is at the right side of the keyboard. If the pane index started with 1, it would be much easier to select from 1 onward and won't have to go all the way to zero. Fortunately there is an option for that. Set pane-base-index to 1 and the pane index will start from 1. All that need is the following entry in the ~/.tmux.conf<br />
<pre></pre>
<br />
set -g pane-base-index 1 </div>
<br />
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-WELuIVfKKOZNCuXjOakRSTP-j49SxOtUQZ6JU6d7wydTXQypt-VSwHlz2Y-ZYkHhLUL1U8ffyya2EzVGUWPetuK1PD0zl4MAs1YS7UncCmpS-20Ogl1PtqImQEJxSX0UYB5mBEHXgw/s1600/TmuxPaneIndex.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-WELuIVfKKOZNCuXjOakRSTP-j49SxOtUQZ6JU6d7wydTXQypt-VSwHlz2Y-ZYkHhLUL1U8ffyya2EzVGUWPetuK1PD0zl4MAs1YS7UncCmpS-20Ogl1PtqImQEJxSX0UYB5mBEHXgw/s1600/TmuxPaneIndex.png" height="242" width="400" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">tmux pane index starting with 1</td></tr>
</tbody></table>
As you can see from this screen shot, the pane index now starts with 1.</div>
</div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-16285261253470397392014-04-20T22:00:00.000+05:302015-10-24T15:38:31.740+05:30പാചകക്കുറിപ്പുകൾ : ഒരു വിപ്ലവത്തിനു സമയമായി<div dir="ltr" style="text-align: left;" trbidi="on">
(ഗൂഗിൾ പ്ലസ്സിൽ പോസ്റ്റ് ചെയ്തതാണ്, ഇവിടെ അധികം പാചകക്കാരെ കണ്ടിട്ടില്ല, എന്നാലും വിപ്ലവത്തിന്റെ വിത്ത് പാകിയേക്കാം).<br /><br />
പ്രിയപ്പെട്ടവരേ,<br /><br />
ഇവിടെ പലരും നല്ല ചിക്കൻ, ബീഫ്, പോർക്ക്, പായസം എന്നീ വിഭവങ്ങളുണ്ടാക്കി
അതിന്റെ ഫോട്ടോയൊക്കെ ഇട്ട് പാചകക്കുറിപ്പടിയും ഇടുന്നത്
കണ്ടിട്ടുണ്ടാകുമല്ലോ? ഈ പാചകക്കുറിപ്പുകളുടെ ഒരു പ്രശ്നം എന്തെന്നാൽ
അതൊന്നും റിപ്പീറ്റബിൾ അല്ല എന്നതാണ്. അതായത് അതുപയോഗിച്ച് രണ്ടുപേർ പാചകം
ചെയ്താൽ രണ്ടും രണ്ടു വിധത്തിലായിരിക്കും. മാത്രവുമല്ല അതിലെ നിർദ്ദേശങ്ങൾ
പലപ്പോഴും അവ്യക്തമായിരിക്കും. കുറച്ചു നാൾ മുമ്പ് നിശി[1] പോസ്റ്റ് ചെയ്ത്
അടപ്രഥമൻ & പാലട പ്രഥമൻ ഉണ്ടാക്കാൻ ശ്രമിച്ച് ഞങ്ങളുടെ ക്ലബ്ബിലെ
നീന്തൽക്കുളം കലങ്ങുകയുണ്ടായി. ഞാൻ ഇലക്ട്രോണിക്സ് ഇഞ്ചിനീയറിങ്ങാണ്
പഠിച്ചതെന്ന് നിങ്ങളിൽ ചിലർക്കെങ്കിലും അറിവുണ്ടാകും. ആയതിനാൽ ഇഞ്ചിനിയറിങ്
മേഖലയിൽ ഞങ്ങൾ ഇഞ്ചിനീയറന്മാർ കാലാകാലങ്ങളായി ഉപയോഗിക്കുന്ന ചില ബെസ്റ്റ്
പ്രാക്റ്റീസുകൾ പാചകക്കുറിപ്പുകളിൽ അപ്ലൈ ചെയ്ത്, പാചകക്കുറിപ്പ്
ആരുപയോഗിച്ചാലും അവസാനം കിട്ടുന്ന വിഭവം ഒരുപോലെ ആക്കുന്ന ഒരു നിലയിലേക്ക്
എത്തിക്കുക എന്നതാണ് ഈ വിപ്ലവം കൊണ്ടുദ്ദേശിക്കുന്നത്. ആംപ്ലിഫയറിന്റെ
സർക്യൂട്ട് ഡയഗ്രം ഫോളോ ചെയ്താൽ ആംപ്ലിഫയർ തന്നെയാണല്ലോ കിട്ടുക,
അസ്റ്റേബിൾ മൾട്ടി വൈബ്രേറ്ററോ, ഷ്മിറ്റ് ട്രിഗറോ ഒന്നും അല്ലല്ലോ
കിട്ടുന്നത്.<br />
ഈ വിപ്ലവത്തിന്റെ അടിസ്ഥാന തത്വങ്ങൾ ഇവയാണ്:<br />
<ol>
<li>പാചകക്കുറിപ്പുകൾക്ക് എസ് ഐ യൂണിറ്റ് ഉപയോഗിക്കും. കുറച്ച് ചിക്കൻ, ഒരു
സ്പൂൺ മല്ലിപ്പൊടി എന്നൊന്നും പറയരുത്. 157ഗ്രാം Gallus gallus domesticus
മാംസം, 5.5 ഗ്രാം Coriandrum sativum പൗഡർ എന്നൊക്കെ വേണം
പാചകക്കുറിപ്പുകളിൽ എഴുതാൻ.</li>
<li>നിർദ്ദേശങ്ങൾ കൃത്യവും പാചകം ചെയ്യുന്നവർക്ക് സംശയലേശമന്യേ പാലിക്കാൻ
പറ്റുന്നവയും ആകണം. ഉദാ: അടുപ്പിലിരിക്കുന്ന മിശ്രിതം ഇളക്കുക എന്നതു വളരെ
അവ്യക്തമാണ്. പകരം, പാത്രത്തിലെ മിശ്രിതം മൂന്ന് സെന്റീമീറ്റർ വാട്ടവും
പിടിക്ക് 15 സെന്റീമീറ്റർ നീളവുമുള്ള തവികൊണ്ട് മേജർ ആക്സിസ് 16
സെന്റീമീറ്ററും, മൈനർ ആക്സിസ് 7 സെന്റീമീറ്ററും ആയ എലിപ്സിന്റെ രൂപത്തിൽ
ക്ലോക്വൈസ് ദിശയിൽ 45 ആർപ്പിഎമ്മിൽ 14.8 സെക്കന്റു നേരത്തേക്ക് ഇളക്കുക
എന്നത് ആർക്കും ഒരു പോലെ ചെയ്യാൻ പറ്റുന്നതാണല്ലോ?</li>
</ol>
ഈ രീതി ഉപയോഗിച്ച് എഴുതിയ ഒരു പാചകക്കുറിപ്പ് നിങ്ങളുടെ റെഫറൻസിനായി ചേർക്കുന്നു<br />
ചായ<br /><br />
Bill of materials<br />
<ol>
<li>കോപ്പർ (Cu, Atomic number 29) പാത്രം: ഡയമീറ്റർ 15 സെമീ, ആഴം 10 സെമീ</li>
<li>H2O (വെള്ളം) 150 മി.ലി<br />.</li>
<li>Bos primigenius (പശു) ന്റെ പാൽ : 75 മി.ലി.</li>
<li>C6H12O6 : 15 ഗ്രാം.</li>
<li>Camellia sinensis ന്റെ ഇലയുടെ പൗഡർ : 5 ഗ്രാം</li>
<li>Mesh : 0.310 mm dia, <a class="tag" href="https://poddery.com/tags/of">#of</a> wires /mm : 2</li>
<li>Spoon : 10 സെ.മീ നീളം, 5 മി.ലി കപ്പാസിറ്റി</li>
<li>സെൽഷ്യസ് തെർമോമീറ്റർ : 0-150 ഡിഗ്രീ സെൽഷ്യസ് വരെയുള്ളത്.</li>
<li>ടംബ്ലർ : സിലിക്കാ ഗ്ലാസ് കൊണ്ടുണ്ടാക്കിയത്.</li>
</ol>
രീതി:<br /><br />
സ്റ്റൗവ് 1.5 kwh ഔട്ട്പുട്ട് ചൂട് കിട്ടുന്ന രീതിയിൽ ക്രമീകരിക്കുക. ഐറ്റം <a class="tag" href="https://poddery.com/tags/2">#2</a> ഐറ്റം <a class="tag" href="https://poddery.com/tags/1">#1</a>
ൽ ഒഴിച്ച് സ്റ്റൗവിൽ വയ്ക്കുക. തെർമോമീറ്റർ ഉപയോഗിച്ച് പാത്രത്തിലെ
ഉള്ളടക്കത്തിന്റെ ചൂട് മോണിറ്റർ ചെയ്യുക. അന്തരീക്ഷ മർദ്ദം 1 അറ്റ്മോസ്ഫിയർ
ആണെങ്കിൽ 100 ഡിഗ്രീ സെൽഷ്യസിൽ ഇത് തിളയ്ക്കാൻ തുടങ്ങും. അപ്പോൾ ഐറ്റങ്ങൾ
4ഉം 5ഉം ചേർക്കുക. <a class="tag" href="https://poddery.com/tags/7">#7</a>
ഉപയോഗിച്ച് 10 സെ മീ വ്യാസമുള്ള വൃത്താകാരത്തിൽ 30 ആർപ്പിഎമ്മിൽ 8
സെക്കന്റ് ക്ലോക്കിന്റെ ദിശയിൽ ഇളക്കുക. ഒരു മിനിട്ട് 27 സെക്കന്റ്
കഴിയുമ്പോൾ പാത്രത്തിലേക്ക് ഐറ്റം 3 ചേർക്കുക. 1 മിനിട്ട് 26 സെക്കന്റിനു
ശേഷം സ്പൂൺ ഉപയോഗിച്ച് 10 സെമീ വ്യാസമുള്ള വൃത്താകാരത്തിൽ 15 ആർപ്പിഎമ്മിൽ
ക്ലോക്കിന്റെ ദിശയിൽ 4 പ്രാവശ്യം ഇളക്കുക. ഓരോ 15 സെക്കന്റിടവിട്ട് 6
പ്രാവശ്യം ഇതുപോലെ ഇളക്കുക.<br />
സ്റ്റൗ ഓഫ് ചെയ്യുക. ചായ റെഡി. മെഷ് ഉപയോഗിച്ച് ചായ ടംബ്ലറിലേക്ക്
ഒഴിക്കുക. ചായയുടെ ചൂട് 60 - 80 ഡിഗ്രീ ആകുമ്പോൾ കുടിക്കാൻ തുടങ്ങാം.<br />
[1]നിശികാന്തിന്റെ പായസത്തിന്റെ കുറിപ്പടി ഇവിടെ : <a href="https://plus.google.com/+GNisikanth/posts/8VMSiuj5Gr6" target="_blank">https://plus.google.com/+GNisikanth/posts/8VMSiuj5Gr6</a><br />
</div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-9494262305689885002014-04-19T22:36:00.000+05:302014-04-19T23:31:11.538+05:30സെർച്ച് : ഗൂഗിൾ പ്ലസ് പോസ്റ്റുകളിൽ<div dir="ltr" style="text-align: left;" trbidi="on">
സേർച്ചിൽ ഗൂഗിൾ ഒരു
പുലിയാണെങ്കിലും ഗൂഗിൾ പ്ലസ്സിൽ പുലിയുടെ നിഴൽ പോലും അല്ല എന്നാണ് സ്വന്തം
അനുഭവം. എന്തോ ഒരുകാര്യത്തിനായി എന്റെ ഒരു പോസ്റ്റ് ഗൂഗിൾ പ്ലസ്സിൽ തിരഞ്ഞ്
വട്ടായി. അവസാനം ഒരു വളഞ്ഞവഴിയിൽ കൂടി കാര്യം നടത്തി. പൊതുജനോപകാരാർത്ഥം
അത് ഇവിടെ ചേർക്കുന്നു.<br />
<br />
നമ്മുടെ സ്വന്തം പോസ്റ്റുകളും അതിലെ
കമന്റുകളും ഗൂഗിൾ ടേക്ക് ഔട്ട് ഉപയോഗിച്ച് ഡൗൺലോഡ് ചെയ്ത് അത് ലോക്കൽ
ഡ്രൈവിൽ എക്സ്റ്റ്രാക്റ്റ് ചെയ്ത് അതിൽ സെർച്ച് ചെയ്യുക എന്നതാണ് ഈ
വളഞ്ഞവഴി.<br />
<br />
ആദ്യം <a class="ot-anchor aaTEdf" href="https://www.google.com/settings/takeout" rel="nofollow" target="_blank">https://www.google.com/settings/takeout</a>
ൽ പോയി "Create archive" എന്ന ബട്ടൺ അമർത്തുക. അപ്പോൾ വരുന്ന പേജിൽ
Google+ Stream മാത്രം സെലക്റ്റ് ചെയ്ത് Create Archive ചെയ്യാൻ ഗൂഗിളിനോടു
പറയുക. അപ്പോൾ ഗൂഗിൾ പറയും, ആർക്കൈവ് ഉണ്ടാക്കുകയാണ്, സംഭവം
റെഡിയാകുമ്പോൾ മെയിൽ അയക്കാമെന്ന്. ഇനി മെയിൽ വരുന്നതുവരെ കാത്തിരിക്കുക.
ഡൗൺലോഡ് റെഡിയായെന്നു പറഞ്ഞു മെയിൽ വന്നാൽ ഓടിപ്പോയി ആ ആർക്കൈവ് ഡൗൺലോഡ്
ചെയ്യുക. കുറേ അധികം കുക്കികളും മറ്റു അനുസാരികളും ഈ ഡൗൺലോഡിന്
വേണമെന്നുള്ളതിനാൽ കുക്കികൾ എനേബിൾ ചെയ്യാൻ മറക്കരുത്. ഒരു ആർക്കൈവ് നിശ്ചിത തവണകൾ/ദിവസങ്ങൾ മാത്രമേ ലഭ്യമായിരിക്കുകയുള്ളൂ എന്നു തോന്നുന്നു.<br />
<br />
ആർക്കൈവ്
കിട്ടിയാൽ അത് ഒരു ഫോൾഡറിലേക്ക് എക്സ്റ്റ്രാക്റ്റ് ചെയ്യുക. അതിനുള്ളിലെ
ഫോൾഡറുകളിലേക്ക് പോകുമ്പോൾ Google+ Stream എന്ന ഒരു ഫോൾഡറിൽ നിങ്ങൾളുടെ
പോസ്റ്റുകൾ എല്ലാം കമന്റുകൾ ഉൾപ്പടെ html ഫയലുകൾ ആയി കാണാൻ പറ്റും.
ആർക്കൈവിൽ പ്രൈവറ്റ് പോസ്റ്റുകളും വരുമെന്നതിനാൽ ആർക്കൈവ് ഫയലും
എക്സ്റ്റ്രാക്റ്റ് ചെയ്ത ഫയലുകളും സൂക്ഷിച്ച് വയ്ക്കേണ്ടത് നിങ്ങളുടെ
സ്വന്തം കടമയാണ്.<br />
<br />
ഇനി ആവശ്യമുള്ള സേർച്ചെല്ലാം ലോക്കൽ html ഫയലുകളിൽ
ചെയ്യാവുന്നതാണ്. വിൻഡോസിന്റെ ഫൈൻഡ് യൂട്ടിലിറ്റിയിൽ ഫയലുകളുടെ
ഉള്ളടക്കവും തിരയാൻ ഒരു ഓപ്ഷനുണ്ട്. Find എന്ന ഡോസ് കമാന്റും
ഉപയോഗിക്കാവുന്നതാണ്.<br />
<br />
ഈ പരിപാടി ഉപയോഗിച്ച് നമ്മുടെ സ്വന്തം
പോസ്റ്റുകളിലും, അവയിൽ വന്നകമന്റുകളും മാത്രമേ കിട്ടുകയുള്ളൂ. നമ്മൾ
മറ്റുള്ളവരുടെ പോസ്റ്റിൽ എഴുതിയ കമന്റുകൾ ഇതുപോലെ കിട്ടാൻ വല്ല
വഴിയുമുണ്ടെങ്കിൽ ദയവായി പങ്കുവയ്ക്കുക.<br />
<br />
വിൻഡോസ് ഉപയോക്താക്കൾക്ക് ഇനി വീട്ടിൽ പോകാം, ബാക്കി ലിനക്സ് ഉപയോക്താക്കൾക്കാണ്.<br />
<br />
grep ഉപയോഗിച്ച് പാറ്റേണുകൾ html ഫയലുകളിൽ സെർച്ച് ചെയ്യാവുന്നതാണ്. ഉദാ:<br />
grep "search pattern" *.html<br />
ഫയലുകളുടെ
പേരിൽ പല സ്പെഷ്യൽ ക്യാരക്റ്ററുകളും ഉള്ളതിനാൽ ചിലപ്പോൾ grep: invalid
option -- '(' എന്നൊക്കെ പറഞ്ഞെന്നിരിക്കും. അപ്പോൾ grep നു ശേഷം രണ്ട്
മൈനസ് കൊടുത്താൽ മതിയാകും :<br />
grep -- "search pattern" *.html</div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-22268751215879784972014-04-15T11:24:00.001+05:302014-04-15T11:24:40.960+05:30സ്വതന്ത്രം.in<div dir="ltr" style="text-align: left;" trbidi="on">
സ്വതന്ത്രസോഫ്റ്റ്വേറിനെ കൂടുതൽ ജനങ്ങളിലേക്കെത്തിക്കുക എന്ന ലക്ഷ്യവുമായി മലയാളത്തിൽ ഒരു പോർട്ടൽ/മാഗസിൻ തുടങ്ങിയിരിക്കുന്നു : <a class="ot-anchor aaTEdf" href="http://swathanthram.in/" rel="nofollow" target="_blank">http://swathanthram.in/</a> വായിക്കുക, പങ്കാളികളാകുക, പ്രചരിപ്പിക്കുക.<br />
ഈ ഉദ്യമത്തിന്റെ ശില്പികളായ സ്വതന്ത്ര സോഫ്റ്റ്വേർ പ്രവർത്തകർക്ക് നന്ദി.</div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-4393651821164222262014-03-27T20:00:00.000+05:302014-04-04T12:46:43.826+05:30exiftool<div dir="ltr" style="text-align: left;" trbidi="on">
<h3>
</h3>
കൂൾ റീഡറിനെ(http://coolreader.org/e-index.htm) കുറിച്ചെഴുതണോ അതോ
എംപിഡിയെ (https://en.wikipedia.org/wiki/Music_Player_Daemon)
കുറിച്ചെഴുതണോ എന്നു കൺഫ്യു ആയപ്പോൾ എക്സിഫ് ടൂളിനെ (exiftool)
ക്കുറിച്ചെഴുതാം എന്നു വിചാരിച്ചു.<br />
എക്സിഫ്ടൂൾ എന്ന പേര് കുറച്ച് തെറ്റിദ്ധാരണാജനകമാണെന്നാണ് എന്റെ
വിനീതാഭിപ്രായം. കാരണം മറ്റൊന്നുമല്ല, പേരു കേൾക്കുമ്പോൾ ഇമേജ് ഫയലുകളിലെ
എക്സിഫ് ഡേറ്റാ എടുക്കാനുള്ള ഒരു ടൂളാണെന്നാണ് തോന്നും. ഒന്നു രണ്ടു
പ്രാവശ്യം ഉപയോഗിച്ചു നോക്കിയപ്പോഴാണ് സംഭവം മിക്കവാറും എല്ലാ തരം മീഡിയ
ഫയലുകളിൽ നിന്നും മെറ്റാഡേറ്റാ എടുക്കാൻ പറ്റിയ ഒരു സാധനമാണെന്നു
മനസ്സിലായത്.<br />
ഏതെങ്കിലും ക്യാമറയിൽ നിന്നുള്ള ഫോട്ടോ ഫയലിൽ എക്സിഫ് ടൂൾ ഓടിച്ചാൽ
അതിലുള്ള ഒരു വിധം എല്ലാ മെറ്റാഡേറ്റയും അതു ലിസ്റ്റ് ചെയ്യും. ഉദാ :<br />
<pre>exiftool IMG_3924.CR2
ExifTool Version Number : 9.46
File Name : IMG_3924.CR2
Directory : .
File Size : 8.7 MB
File Modification Date/Time : 2011:09:29 21:17:53+05:30
File Access Date/Time : 2014:03:27 19:13:21+05:30
File Inode Change Date/Time : 2013:08:17 19:52:54+05:30
File Permissions : rwxr--r--
File Type : CR2
MIME Type : image/x-canon-cr2
Light Value : 11.0
Red Balance : 2.027344
</pre>
കാനണിൽ നിന്നുള്ള റോ ഫയലിൽ നിന്ന് 285 ടാഗുകൾ ലിസ്റ്റ് ചെയ്തു<br />
ആദ്യമായി exiftool ഉപയോഗിച്ചത് ടാബ്ലറ്റിന്റെ മെമ്മറി കാർഡിലെ ഫയലുകൾ
റിക്കവർ ചെയ്തപ്പോഴാണ്. റിക്കവർ ചെയ്ത ഫയലുകളുടെ പേരെല്ലാം ഒരു
വഴിക്കായിരുന്നു. ഫോട്ടോകളുടേയും വീഡിയോകളുടേയും പേരും മോഡിഫിക്കേഷൻ ടൈമും
ഷൂട്ട് ചെയ്ത ഡേറ്റ്/സമയ പ്രകാരം ആക്കാൻ നോക്കിയപ്പോൾ exiftool ആയിരുന്നു
സഹായത്തിനെത്തിയത്. എക്സിഫ് ടൂളിന് -T എന്നൊരോപ്ഷനുണ്ട്, അതും ആവശ്യമുള്ള
ടാഗ് നേമും കൊടുത്താൽ ആ ടാഗ് മാത്രം ഫയലിൽ നിന്ന് എടുത്തു തരും. <br />
<pre>
exiftool -T -DateTimeOriginal IMG_3924.CR2
2011:09:18 15:52:28</pre>
നേരത്തേ പറഞ്ഞതുപോലെ പേരു മാറ്റി ഫയൽമോഡിഫിക്കേഷൻ ടൈം മാറ്റാൻ
നോക്കിയപ്പോൾ, ടാഗിലെ സമയം ടച്ച് കമാന്റിനുപയോഗിക്കാവുന്ന രീതിയിലാക്കാൻ
കുറേ മെനക്കെടേണ്ടിവരുമെന്നാണ് കരുതിയത്. എന്നാൽ -d എന്ന ഓപ്ഷനുപയോഗിച്ച്
ഇഷ്ടമുള്ള ഡേറ്റ് ഫോർമാറ്റ് കൊടുക്കാൻ പറ്റുമെന്നു മനസ്സിലായി.
<pre>
exiftool -d "%Y%m%d_%H%M.%S" -T -DateTimeOriginal IMG_3924.CR2
20110918_1552.28
</pre>
ആനന്ദലബ്ധിക്കിനിയെന്തു വേണം ;)<br />
അടുത്തത് എംപീത്രീ ഫയലുകളിലെ ലിറിക്സ് ടാഗുമായി മല്പിടിത്തം
നടത്തിയപ്പോൾ എക്സിഫ് ടൂൾ രക്ഷപ്പെടുത്തിയ കഥയാണ്. മുമ്പ് പാട്ടുകേൾക്കാൻ
ഉപയോഗിച്ചിരുന്നത് അമറോക് മ്യൂസിക് പ്ലയറായിരുന്നു. അമറോക്കിന് id3
ടാഗിലുള്ള ലിറിക്സ് വായിക്കാൻ പറ്റില്ലെന്നുള്ളെത് ഒരു വലിയ
പ്രശ്നമായിരുന്നു. അതു പരിഹരിക്കാൻ വേണ്ടി ഒരു അമറോക് പ്ലഗിൻ എഴുതാം എന്നു
വിചാരിച്ച് നോക്കിയപ്പോൾ ഒരു വിധത്തിലും ലിറിക്സ് ഫയലുകളിൽ നിന്ന് എടുക്കാൻ
പറ്റുന്നില്ല. (അന്നു ഐഡിത്രീയോടുള്ള കലിപ്പിലിട്ട പോസ്റ്റ് ഇവിടെ : <a href="http://primejyothi.blogspot.in/2013/12/id3-blues.html" rel="nofollow" target="_blank">http://primejyothi.blogspot.in/2013/12/id3-blues.html</a>).
id3info യും id3v2ഉം ഒക്കെ ഉപയോഗിച്ചു നോക്കിയപ്പോൾ അതിൽ ലിറിക്സൊന്നും
കിട്ടുന്നില്ല. അപ്പോഴാണ് എക്സിഫ് ടൂൾ ഓടിച്ചു നോക്കിയത്. ഔട്ട്പുട്ട്
കണ്ട് കിടുങ്ങിപ്പോയി. ആ എംപിത്രീയിലുണ്ടായിരുന്ന സകല ടാഗുകളും അതു
ലിസ്റ്റ് ചെയ്തു. ദാ ഉദാഹരണം (സ്ഥലം ലാഭിക്കാനായി ലിറിക്സ് കുറച്ച് കട്ട്
ചെയ്തിട്ടുണ്ട്)<br />
<pre>exiftool Pularmanjiloode-320-OnamwitheeNam2013.mp3
ExifTool Version Number : 9.46
File Name : Pularmanjiloode-320-OnamwitheeNam2013.mp3
Directory : .
File Size : 14 MB
File Modification Date/Time : 2014:02:04 14:46:32+05:30
File Access Date/Time : 2014:03:26 18:37:13+05:30
File Inode Change Date/Time : 2014:02:04 14:46:32+05:30
File Permissions : rw-rw-r--
File Type : MP3
MIME Type : audio/mpeg
MPEG Audio Version : 1
Audio Layer : 3
Audio Bitrate : 320 kbps
Sample Rate : 44100
Channel Mode : Stereo
MS Stereo : Off
Intensity Stereo : Off
Copyright Flag : False
Original Media : False
Emphasis : None
ID3 Size : 187144
Title : Pularmanjiloode Alayaan
Artist : G Venugopal, G Nisikanth
Album : Onam with eeNam 2013
Recording Time : 2013
Track : 13
Comment (xxx) : (ID3v1 Comment) Visit [http://www.onam.eenam.com](http://www.onam.eenam.com) for
Lyrics : പുലർമഞ്ഞിലൂടെ അലയാൻ, ... അലയാൻ, കുളിർ.കാറ്റിൽ മോഹം അലിയാൻ
Popularimeter : Rating=0 Count=110
User Defined Text : (FMPS_Playcount) 110
Genre : Festival Songs
Lyricist : G Nisikanth
Composer : G Nisikanth
Picture Mime Type : image/jpeg
Picture Type : Front Cover
Picture Description : Pularmanjoloode_final.jpg
Picture : (Binary data 183885 bytes, use -b option to extract)
Year : 2013
Comment : Visit [http://www.onam.eenam.com](http://www.onam.eenam.com) for
Date/Time Original : 2013
Duration : 0:05:51 (approx)
</pre>
അപ്പോൾ പറഞ്ഞു വന്നത് ഇനി ഏതെങ്കിലും ഫയലിൽ നിന്ന് മെറ്റാഡേറ്റ
വേർതിരിച്ചെടുക്കണമെങ്കിൽ എക്സിഫ് ടൂൾ ഉപയോഗിച്ചു നോക്കാവുന്നതാണ്. ഏതൊക്കെ
ഫയലുകൾ സപ്പോർട്ട് ചെയ്യുന്നെന്നറിയാൻ exiftool എന്നു മാത്രം റൺ ചെയ്യുക.
ഏതെല്ലാം ടാഗുകൾ സപ്പോർട്ട് ചെയ്യുമെന്നറിയാൻ exiftool -list എന്നു റൺ
ചെയ്യുക. എന്റെ സിസ്റ്റത്തിൽ ഏകദേശം മൂവായിരം ലൈനുകളിലായി പന്ത്രണ്ടായിരം
ടാഗുകൾ ലിസ്റ്റ് ചെയ്തു ;)</div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-91886276897681121592014-03-25T19:00:00.000+05:302014-04-04T12:49:56.918+05:30ഗാലിഫൈ<div dir="ltr" style="text-align: left;" trbidi="on">
പ്രോഗ്രാം കോർഡമ്പ് ചെയ്തോ? കമ്പൈലർ എണ്ണമില്ലാത്ത എററുകൾ
തരുന്നോ? ലവൻ നിങ്ങളുടെ കോഡ് കൊളമാക്കിയോ? ഇത്തരം സന്ദർഭങ്ങളിലുപയോഗിക്കാൻ
പറ്റിയ തെറികളുണ്ടോ നിങ്ങളുടെ പക്കൽ? ഇല്ലെങ്കിൽ ഇതാ ഗാലിഫൈ സ്ക്രിപ്റ്റ്.
പതിനഞ്ച് ഹൈക്വാളിറ്റി ബിൽറ്റിൻ തെറികളുമായി ഗാലിഫൈ സ്ക്രിപ്റ്റ് ഡൗൺലോഡൂ :
<a class="ot-anchor aaTEdf" href="http://goo.gl/cVKglH" rel="nofollow" target="_blank">http://goo.gl/cVKglH</a><br />ബിൽറ്റിൻ എന്റ്രികൾ പോര എങ്കിൽ കസ്റ്റം എന്റ്രികൾ ~/.galify.rc എന്ന ഫയലിൽ ചേർക്കാവുന്നതാണ്<br /><br />ഈ സ്കിപ്റ്റ് എഴുതാനുള്ള പ്രചോദനം സുബിൻ ഡയസ്പോറയിൽ ഇട്ട ഈ പോസ്റ്റാണ് : <a class="ot-anchor aaTEdf" href="https://poddery.com/posts/1033614" rel="nofollow" target="_blank">https://poddery.com/posts/1033614</a></div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-90918072373095216442014-03-15T15:30:00.000+05:302014-04-04T12:57:57.961+05:30MiniDLNA : a lightweight DLNA/UPnP server for Linux<div dir="ltr" style="text-align: left;" trbidi="on">
<h3>
</h3>
I used to use XBMC to stream videos from my Fedora system to my
Andorid phone and Tablet. Of late I started to think that XBMC was
little too much for streaming videos and started to look for
alternatives. Few days back I found MiniDLNA, a light weight DLNA
server. The installation and configuration in Fedora was pretty simple
and it was up and running in no time.<br />
Here are the installation/configuration steps I followed.<br />
Install the MiniDLNA<br />
<br />
<code>sudo yum install minidlna</code><br />
<br />
Minor changes are required in /etc/minidlna.conf to configure the server.
I had to change the values for the following parameters in the /etc/minidlna.conf<br />
<br />
<code>network_interface=em1</code> <br />
<code>port=8200</code><br />
<code>user=minidlna</code><br />
<code>media_dir=/xxx/yyy/zzzz # More media directories will need multiple
media_dir entries.</code><br />
<code>friendly_name=MiniDLNA</code><br />
<br />
Open up the port 8200 in firewall and the configuration is done.<br />
Start the miniDLNA server as follows :<br />
<br />
<code>sudo systemctl start minidlna.service</code><br />
<br />
Fire up your favorite DLNA/UPnP client from the mobile device (I use UPnPlay) and enjoy the videos.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNKAmW0loM08khRzUEut7SXADWKQa09kVvlyXFmW_vvHVVRjGQWUZ7JnGoLGkzWPwiMVbJfWTC3TY2JCPYtvy-OoZduWEvruwphmFpQPj4FIxngh2nHNs5uU4rg0MUEUTk7lHbfNOjUQ/s1600/MiniDlna.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgNKAmW0loM08khRzUEut7SXADWKQa09kVvlyXFmW_vvHVVRjGQWUZ7JnGoLGkzWPwiMVbJfWTC3TY2JCPYtvy-OoZduWEvruwphmFpQPj4FIxngh2nHNs5uU4rg0MUEUTk7lHbfNOjUQ/s1600/MiniDlna.png" height="400" width="266" /></a></div>
</div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-166180757633372572014-03-04T23:30:00.000+05:302014-04-04T12:41:33.602+05:30KDE Connect<div dir="ltr" style="text-align: left;" trbidi="on">
Updated KDE connect to the latest version (<a href="https://play.google.com/store/apps/details?id=org.kde.kdeconnect_tp">https://play.google.com/store/apps/details?id=org.kde.kdeconnect_tp</a>)<br />
For the new features, the latest desktop client in KDE need to be built from source. The source code is available at : <a href="about:invalid#zClosurez" rel="nofollow" target="_blank">git://anongit.kde.org/kdeconnect-kde</a><br />
<br />
The
new version support browsing the device SD card contents from KDE.
Loading the folders take a bit of time, but once loaded it browsing
through the folders are reasonably fast.<br />
<br />
In the previous version I
was unable to sync the clipboards if the text was not English. This
version does not have that limitation.<br />
<br />
A must have application if you use KDE.</div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-23673998639876534812014-02-28T22:30:00.000+05:302014-04-04T13:14:24.429+05:30ccache - file not recognized: File truncated<div dir="ltr" style="text-align: left;" trbidi="on">
Two
days back I decided to pull the latest changes for GIMP. While
compiling got the error <br />
".libs/gimpnumberpairentry.o: file not
recognized: File truncated"<br />
It took a while to figure out the error
was caused by ccache. The solution was pretty simple - clean the ~/.ccache
using ccache -C</div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-46044159523161188192014-02-24T10:30:00.000+05:302014-04-04T13:01:59.674+05:30JOSM Tile stitching script<div dir="ltr" style="text-align: left;" trbidi="on">
I
wrote a Linux shell utility to combine the OpenStreetMap map tiles
downloaded by JOSM into a single big image. The script is available here
: <a href="https://github.com/primejyothi/jMapStitch%EF%BB%BF" rel="nofollow" target="_blank">https://github.com/primejyothi/jMapStitch</a></div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-36495255543974631362014-01-29T21:00:00.000+05:302014-04-04T13:14:56.525+05:30Standardizing glyph names in Unicode fonts<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="Xx xJ">
<div class="Ig At dn">
<div class="">
<div class="Ct">
On New year's eve, <a href="https://plus.google.com/102358270161137923804/" rel="nofollow" target="_blank">Rajeesh K Nambiar</a>
conducted a nice font training session. During the session he mentioned
that the glyph names in different Malayalam Unicode fonts maintained by
SMC are not standardized and this is causing a bit of problems in the
maintenance of different fonts.<br />
<br />
Here is a small utility I have developed that will help in renaming the glyphs in the font SFD files : <a href="https://github.com/primejyothi/glyphRen" rel="nofollow" target="_blank">https://github.com/primejyothi/glyphRen</a><br />
<br />
It
takes a reference file that contains the Unicode Code points and the
corresponding names and rename the glyphs in the SFD file based on that.
The composite characters will be renamed based on the constituent
glyphs.<br />
<br />
Hope this utility will make things little bit easy for the font maintainers.<br />
<br />
This program is dedicated to Rajeesh for teaching me the first glyphs of Malayalam fonts.</div>
</div>
</div>
</div>
</div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com0tag:blogger.com,1999:blog-7526543941303126087.post-69065333197189196722014-01-28T13:30:00.000+05:302014-04-04T13:15:32.911+05:30Multiple windows with tmux & gvim<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
ഞാൻ
പ്രോഗ്രാമുകൾ എഴുതുമ്പോൾ കമ്പൈൽ ചെയ്യാനും ടെസ്റ്റ് ചെയ്യാനും മറ്റുമായി
അഞ്ചാറ് ടെർമിലുകളും വിം സെഷനുകളും ഉണ്ടാകും. ഏതെങ്കിലും വിൻഡോയിലേക്ക്
പോകണമെങ്കിൽ കുറേ alt + tab / alt + shift + tab അടിച്ചു നോക്കണം.
അത്യാവശ്യമായി ഒരു വിൻഡോ നോക്കിയിട്ട് കിട്ടിയില്ലെങ്കിലത്തെ കാര്യം
പറയണ്ടല്ലോ?<br />
gvim വിൻഡോ സ്പ്ലിറ്റ് ചെയ്ത് ഫയലുകളുടെ കാര്യം ശരിയാക്കി.
ടെർമിനലുകൾ നാലെണ്ണെം സ്ക്രീനിന്റെ നാലു കോർണറുകളിലാക്കി നോക്കി. alt + tab
അടിക്കാതെ കൃത്യമായ ടെർമിനൽ സെലക്റ്റ് ചെയ്യണമെങ്കിൽ മൗസ് ഉപയോഗിക്കണം.
അത് കുറച്ചു ബുദ്ധിമുട്ടുള്ള പണിയായതിനാൽ വേറെ വഴി അന്വേഷിക്കാൻ തുടങ്ങി.
അങ്ങനെയാണ് tmux ൽ എത്തിച്ചേരുന്നത്.<br />
<br />
<b>tmux</b><br />
GNU Screen
പോലൊരു ടെർമിനൽ മൾട്ടിപ്ലക്സറാണ് tmux. ഞാൻ സ്ക്രീനിനു പകരം tmux
ഉപയോഗിക്കാനുള്ള കാരണം tmux ൽ പുതിയ ഒരു വിൻഡോപേൻ (Window pane)
ഉണ്ടാക്കുമ്പോൾ നേരത്തേ വർക്ക് ചെയ്തുകൊണ്ടിരുന്ന ഡയറക്റ്ററിയിൽ തന്നെ ഒരു
ഷെൽ കിട്ടും എന്നതാണ്. GNU screen ൽ നമ്മൾ തന്നെ ഒരു ഷെൽ സ്റ്റാർട്ട്
ചെയ്യണം.<br />
<br />
tmux എങ്ങനെ ഉപയോഗിക്കാം എന്നു നോക്കാം:<br />
ഫെഡോറയിൽ sudo
yum installl tmux എന്ന കമാന്റുപയോഗിച്ചും ഉബുണ്ടുവിൽ sudo apt-get install
tmux എന്ന കമാന്റും ഉപയോഗിച്ച് tmux ഇൻസ്റ്റാൾ ചെയ്യാം.<br />
<br />
അടുത്ത
പരിപാടി tmux നമുക്ക് വേണ്ട രീതിയിൽ കോൺഫ്യുഗർ ചെയ്യുകയാണ്. ഇതിനായി ഹോം
ഡയറക്റ്ററിയിലെ .tmux.conf എന്ന ഫയലിൽ ആവശ്യമായ മാറ്റങ്ങൾ വരുത്തണം. എന്റെ
.tmux.conf ഫയൽ ഇവിടെ ചേർക്കുന്നു.<br />
<br />
unbind C-b<br />
set -g prefix C-a<br />
set -g display-panes-time 2000<br />
set -g mode-mouse on<br />
set -g mouse-select-pane on<br />
<br />
ഇതിൽ
unbind C-b & set -g prefix C-a എന്ന വരികൾ ഡിഫോൾട്ട് പ്രിഫിക്സ് കീ
ആയ ctrl + b എന്നതിനു പകരം ctrl + a ആക്കുന്നു. എനിക്ക് ctrl + b
അമർത്തുന്നതിനേക്കാൾ ctrl + a അമർത്തുന്നതാണെളുപ്പം എന്നതുകൊണ്ടാണ്
പ്രിഫിക്സ് കീ (ഇനി മുതൽ ഇത് C-a എന്നാകും എഴുതുന്നത്) മാറ്റിയത്.<br />
<br />
tmux
എന്ന കമാന്റ് കൊടുത്താൽ ഒരു tmux സെഷൻ തുടങ്ങും. ഈ സ്ക്രീൻ എങ്ങനെ
സ്പ്ലിറ്റ് ചെയ്യാമെന്നു നോക്കാം. C-a + % എന്നു കൊടുത്താൽ സ്ക്രീൻ ലംബമായി
സ്പ്ലിറ്റ് ചെയ്യും. C-a + " എന്നു കൊടുത്താൽ സ്ക്രീൻ തിരശ്ചീനമായും
സ്പ്ലിറ്റ് ആകും. ആവശ്യാനുസരണം സ്പ്ലിറ്റ് ചെയ്ത് ഒരു സ്ക്രീനിൽ തന്നെ
ഒന്നിലധികം ഷെല്ലുകൾ ഓപ്പൺ ചെയ്യാവുന്നതാണ്. ഒരു വിൻഡോപേനിൽ നിന്നും
മറ്റൊരു വിൻഡോപേനിലേക്കു മാറാൻ പല രീതികളുണ്ട്. ഒന്നാമത്തേത് C-a q
ഉപയോഗിച്ചാണ്. ഇങ്ങനെ ചെയ്യുമ്പോൾ ഓരോ വിൻഡോപേനിന്റെയും നമ്പരുകൾ സ്കീനിൽ
തെളിഞ്ഞു വരും. നമുക്ക് പോകേണ്ട വിൻഡോപേനിന്റെ നമ്പർ അമർത്തിയാൽ അതിലേക്കു
പോകും. ഈ നമ്പർ സ്ക്രീനിൽ കാണിക്കുന്ന സമയം കുറവാണെങ്കിൽ
display-panes-time എന്ന ഓപ്ഷൻ .tmux.conf ൽ മാറ്റിയാൽ മതിയാകും. നമ്പരുകൾ
എത്ര മില്ലി സെക്കന്റ് കാണിക്കണമെന്ന് display-panes-time നോടു ചേർത്താൽ
മതിയാകും.<br />
<br />
രണ്ടാമത്തെ രീതി പ്രിഫിക്സ് കീയും ആരോ കീകളും
ഉപയോഗിച്ചാണ്. പ്രിഫിക്സ് കീ അമർത്തിയ ശേഷം ആരോ കീകൾ അമർത്തുന്നതനുസരിച്ച്
നമുക്ക് ആവശ്യമുള്ള വിൻഡോപേനുകളിലേക്ക് പോകാവുന്നതാണ്. പ്രിഫിക്സ് കീയും
സെമികോളൻ (;) കീയും ഉപയോഗിച്ചാൽ നേരത്തേ ഉപയോഗിച്ച വിൻഡോപേനിലേക്ക്
മാറാവുന്നതാണ്.<br />
<br />
മൗസ് ഉപയോഗിച്ചും വിൻഡോപേനുകൾ മാറാവുന്നതാണ് .
അതിനായി set -g mode-mouse on & set -g mouse-select-pane on എന്നിവ
.tmux.conf ൽ ചേർക്കണം. ഇങ്ങനെ ചെയ്താലുള്ള ഒരു പ്രശ്നം ഡിഫോൾട്ട് മൗസ്
ഓപ്പറേഷനുകൾക്ക് ഷിഫ്റ്റ് കീ കൂടി ഉപയോഗിക്കണം എന്നതാണ്.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_rK8jR1NPD8hWnVM-xWS4-UjV5CcbpW8A2nil1fTTl-EiKJsFp8eylzS_kOOoZiE49T1pNwD86DZQCvYCENzHy-LENH0KfGt8Pymm78RpR1YzK16XbAQDMB3Xvo_8OmJa1bpnWjO0yg/s1600/tmux.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_rK8jR1NPD8hWnVM-xWS4-UjV5CcbpW8A2nil1fTTl-EiKJsFp8eylzS_kOOoZiE49T1pNwD86DZQCvYCENzHy-LENH0KfGt8Pymm78RpR1YzK16XbAQDMB3Xvo_8OmJa1bpnWjO0yg/s1600/tmux.png" height="242" width="400" /></a></div>
<br />
<br />
<br />
<b>gvim</b><br />
vim-ൽ
സ്ക്രീൻ സ്പ്ലിറ്റ് ചെയ്യാൻ :sp [file name] :vsp [file name] കമാന്റുകൾ
ഉപയോഗിക്കാം. ഫയലിന്റെ പേരുകൾ കൊടുത്തില്ലെങ്കിൽ ഇപ്പോഴുള്ള ഫയലിന്റെ
വിൻഡോ സ്പ്ലിറ്റ് ചെയ്യും.<br />
:sp സ്ക്രീൻ തിരശ്ചീനമായും :vsp സ്ക്രീൻ
ലംബമായും സ്ക്രീൻ സ്പ്ലിറ്റ് ചെയ്യും. ctrl w+w ഉപയോഗിച്ച് ഒരു വിൻഡോയിൽ
നിന്നും മറ്റൊന്നിലേക്ക് നീങ്ങാവുന്നതാണ്.<br />
വിം ന്റെ ചിത്രത്തിൽ താഴെ
വലതുവശത്ത് കാണുന്നത് രണ്ടു ഫയലുകൾ diff ചെയ്യുന്നതാണ്. സ്പ്ലിറ്റ് ചെയ്ത്
ഫയലുകൾ ഓപ്പൺ ചെയ്തശേഷം :set diff എന്നു കൊടുത്താൽ വിം തന്നെ ഡിഫ്
ചെയ്യും. രണ്ടു വിൻഡോയിലും :set scrollbind എന്നുകൊടുത്താൽ ഒരു ഫയലിനെ
സ്ക്രോൾ ചെയ്യുമ്പോൾ മറ്റേ ഫയലും അതുപോലെ സ്ക്രോൾ ആയിക്കൊള്ളും.<br />
<br />
tmux-ഉം gvim-ഉം ഈ വിധത്തിൽ ഉപയോഗിച്ചാൽ ആറേഴു വിൻഡോകൾക്കു പകരം രണ്ടു വിൻഡോകൾ കൊണ്ട് കാര്യം നടക്കും.</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<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/AVvXsEiMVSZDD0lUIyF4HknElsAWsTMR5JN3w9-ERSdm4lIVWTllsrD_CL1nATuTWcHeL4JaxlFyQO0L2hETvDgWsZZQwUfFJa_OZ7V9uMaQz2QDmuowumK9DyMSksMmFiLw9Z1X9v8Gb0Q4rQ/s1600/gvim.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMVSZDD0lUIyF4HknElsAWsTMR5JN3w9-ERSdm4lIVWTllsrD_CL1nATuTWcHeL4JaxlFyQO0L2hETvDgWsZZQwUfFJa_OZ7V9uMaQz2QDmuowumK9DyMSksMmFiLw9Z1X9v8Gb0Q4rQ/s1600/gvim.png" height="243" width="400" /></a></div>
<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/AVvXsEj2Y5MJalCQ0-iYAVCnMen_eLLCDdkyHP0oKyC3rIU84uv8yXz480nsthykMrl5G1OEGfXb4PcaZEwrx7yCA5tbLuKEMUt0N_8cvv5RjfloPoyG_ynvUgzTDg5AgMRd23QwFv7keliphQ/s1600/Screenshot_2014-01-28-14-50-43.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2Y5MJalCQ0-iYAVCnMen_eLLCDdkyHP0oKyC3rIU84uv8yXz480nsthykMrl5G1OEGfXb4PcaZEwrx7yCA5tbLuKEMUt0N_8cvv5RjfloPoyG_ynvUgzTDg5AgMRd23QwFv7keliphQ/s1600/Screenshot_2014-01-28-14-50-43.png" height="400" width="233" /></a></div>
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
</div>
Primehttp://www.blogger.com/profile/03494216494699553814noreply@blogger.com2