Remove some path from the PATH variable temporarily.

2010-09-04 2 min read Bash Linux

How many times has it happened to you that you are working on some linux platform (like Fedora/Ubuntu/CentOS etc) and suddenly you see that you need to remove some path from the PATH variable so that a script is executed from some other path. It really difficult to do this if the path is too long and if you end up doing this couple of times. If that is the case, then the below script is for you 🙂

Continue reading

Speed up mkat with no md5sum for the files.

2010-09-02 1 min read Linux

mkat details:

mkat is a set of <a class="zem_slink" title="Command-line interface" rel="wikipedia" href="http://en.wikipedia.org/wiki/Command-line_interface">command line tools to burn, catalog <a class="zem_slink" title="Data" rel="wikipedia" href="http://en.wikipedia.org/wiki/Data">data CD/<a class="zem_slink" title="DVD" rel="wikipedia" href="http://en.wikipedia.org/wiki/DVD">DVD, <a class="zem_slink" title="Compact Disc" rel="wikipedia" href="http://en.wikipedia.org/wiki/Compact_Disc">audio CDs and then search the catalog <a class="zem_slink" title="Database" rel="wikipedia" href="http://en.wikipedia.org/wiki/Database">database, e.g. check whether you have a certain file or audio CD in your collection. Tags can be used to categorize CDs, e.g. <a class="zem_slink" title="Comedy" rel="wikipedia" href="http://en.wikipedia.org/wiki/Comedy">comedy, <a class="zem_slink" title="Drama" rel="wikipedia" href="http://en.wikipedia.org/wiki/Drama">drama, etc. Audio CD support is very rudimentary though.

Continue reading

Use the last command\’s output as input to a command without piping and bind to it to a key sequence in bash.

2010-09-01 1 min read Fedora Linux Uncategorized

Use the last command&#8217;s output as input to a command without piping and
bind to it to a key sequence in <a class="zem_slink" title="Bash (Unix shell)" rel="homepage" href="http://tiswww.case.edu/php/chet/bash/bashtop.html">bash.

  <td>
    <div class="bash codecolorer">
      &nbsp;<span class="kw3">bind</span> <span class="co3">\'</span><span class="st0">"\\C-h"</span>: <span class="st0">"\\<span class="es5">`fc\\ \\-s\\`</span>"</span><span class="co3">\'</span>
    </div>
  </td>
</tr>
1

My comment : fc is the fix command of the bash builtin.
This is similar to using `!!` or

Continue reading

Gmail Videochat Comes to Linux

2010-08-26 1 min read Fedora Linux

?Gmail Videochat Comes to Linux
&#8221;The long wait is over and Linux users can finally use the Gmail
Videochat! The <a class="zem_slink" title="Gmail" rel="homepage" href="http://gmail.com">GMail team recently announced the availability of voice
and <a class="zem_slink" title="Videoconferencing" rel="wikipedia" href="http://en.wikipedia.org/wiki/Videoconferencing">video chat on Linux. This feature is currently supported on <a class="zem_slink" title="Ubuntu (operating system)" rel="homepage" href="http://www.ubuntu.com/">Ubuntu
and other <a class="zem_slink" title="Debian" rel="homepage" href="http://www.debian.org/">Debian-based <a class="zem_slink" title="Linux distribution" rel="wikipedia" href="http://en.wikipedia.org/wiki/Linux_distribution">Linux distributions. <a class="zem_slink" title="RPM Package Manager" rel="homepage" href="http://rpm.org/">RPM Support for <a class="zem_slink" title="Fedora" rel="homepage" href="http://fedoraproject.org/">Fedora Linux
and other <a class="zem_slink" title="Red Hat" rel="homepage" href="http://www.redhat.com">Red Hat based distributions (like <a class="zem_slink" title="CentOS" rel="homepage" href="http://www.centos.org/">CentOS) is going to be added
soon.&#8221; Some screenshots of GMail Video Chat on Linux in action

Continue reading

Using SQLite to maintain your monthly bills.

2010-08-24 6 min read Linux

I was looking for a small application to maintain my every month bills. The application had to be small and script-able. I basically wanted to keep track of the bills that have been generated and pending payment and the bills that have been paid.

First we will create the <a class="zem_slink" title="Database" rel="wikipedia" href="http://en.wikipedia.org/wiki/Database">database schema with the following command:

  <td>
    <div class="text codecolorer">
      CREATE TABLE bills(name varchar(20), due_dt text, p_dt text, amount integer);
    </div>
  </td>
</tr>
1

So, I built on the knowledge gathered on <a class="zem_slink" title="SQLite" rel="homepage" href="http://sqlite.org/">SQLite. And here is a small script that I wrote:

Continue reading

SQLite – simple use in scripts

2010-08-21 1 min read Database Linux

Today we will look a the most simple use&#8217;s in the scripts and how to use them.

echo &#8221;insert into bills values (&#8221;$name&#8221;,$date_now, $date_now,$1)&#8221;|sqlite bills

or the other way to do this is

<a class="zem_slink" title="SQLite" rel="homepage" href="http://sqlite.org/">sqlite3 bills &#8221;insert into bills values (&#8221;$name&#8221;,$date_now, $date_now,$1)&#8221;

OK, now in the next post we will see a simple application that I am currently developing or planning.<h6 class="zemanta-related-title" style="font-size: 1em;">Related articles by Zemanta <ul class="zemanta-article-ul"> <li class="zemanta-article-ul-li"><a href="http://tobu.lightbird.net/">Tobu Tutorial (tobu.lightbird.net) <li class="zemanta-article-ul-li"><a href="http://go.theregister.com/feed/www.theregister.co.uk/2010/07/02/openoffice_adopts_gstreamer/">OpenOffice gets Ubuntu-media friendly (go.theregister.com) <li class="zemanta-article-ul-li"><a href="http://elegantcode.com/2010/07/02/using-transactionscope-with-sqlite/">Using TransactionScope with SQLite (elegantcode.com) <li class="zemanta-article-ul-li"><a href="http://www.slideshare.net/aikisteve/flash-and-the-city-2010">Flash And The City 2010 (slideshare.net) <div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Enhanced by Zemanta" href="http://www.zemanta.com/"><img class="zemanta-pixie-img" style="border: medium none; float: right;" src="http://img.zemanta.com/zemified_e.png?x-id=7b7c893c-d92b-44bc-8923-d7c6fddc8b42" alt="Enhanced by Zemanta" /><span class="zem-script more-related pretty-attribution">

Continue reading

SQLite : Manager for this simple database

2010-08-19 2 min read Database Linux

We will look at sqliteman – <a class="zem_slink" title="SQLite" rel="homepage" href="http://sqlite.org/">SQLite Database manager.

If you are looking for a tool for tuning <a class="zem_slink" title="SQL" rel="wikipedia" href="http://en.wikipedia.org/wiki/SQL">SQL statements, manage tables, views, or triggers, administrate the <a class="zem_slink" title="Database" rel="wikipedia" href="http://en.wikipedia.org/wiki/Database">database space and index <a class="zem_slink" title="Statistics" rel="wikipedia" href="http://en.wikipedia.org/wiki/Statistics">statistics then Sqliteman is the perfect choice.
If you are looking for a <a class="zem_slink" title="Graphical user interface" rel="wikipedia" href="http://en.wikipedia.org/wiki/Graphical_user_interface">graphical queries creation wizards, <a class="zem_slink" title="User interface" rel="wikipedia" href="http://en.wikipedia.org/wiki/User_interface">user interface designers for your database, or an universal report tool try the applications designed for tasks such this (<a class="zem_slink" title="Kexi" rel="homepage" href="http://kexi-project.org/">Kexi, knoda).

Continue reading
Older posts Newer posts