Uncovering images in Beamer presentation

Some text

does not work. Graphic is included even in the first frame. Instead use:
Some text


Lyx IEEE Journal and Conference layout

These are the steps I followed to use IEEE formatting in Lyx:

  • Create IEEEtran directory
  • Download the latex file IEEEtran2.tar.gz from IEEE site and extract
  • Create a subdirectory named “bibtex”
  • Download the bibtex file IEEEtranBST1.tar.gz from the same IEEE site to this directory and extract
  • For Ubuntu, move IEEEtran directory to /usr/share/texmf-texlive/tex/latex/ and run texhash (requires sudo)
  • Run Lyx->Tools->Reconfigure and restart Lyx.
  • You should be able to select IEEEtran from Document Settings.


Changing the paragraph environment using keyboard

From Lyx Wiki Tips:

Steering the mouse pointer to the paragraph environment drop-down menu in order to get out of an enumerate or itemize environment was starting to annoy me, especially on the road without a mouse. Fortunately, there is a solution (which apparently is undocumented, at least I couldn’t find it):

Quoting Paul from the mailing list: “M-p (alt-p) followed by a space opens the environment list. From there, repeatedly typing the same letter cycles through all environment names starting with that letter.”

phpmyadmin access problem

All of a sudden I started to get the following error:

#1045 - Access denied for user 'root'@'localhost' (using password: NO)

whenever I tried to access to mysql database through phpmyadmin. I have been using it flawless for very long time.

I modified the following file:


by changing

$cfg['Servers'][$i]['auth_type'] = 'config';


$cfg['Servers'][$i]['auth_type'] = 'cookie';

and everything is working fine now.

Perl DBI – Some usefull commands

Return a reference to column names

$name = $sth->{NAME};

Number of affected rows


New auto-incremented id

$latestId = $dbh->{‘mysql_insertid’}

Uploading large data. ‘INSERT INTO’ command takes long amount of time. Use ‘LOAD DATA’ command to upload bulk data from a text file.

  • Be careful. If the file to be uploaded resides on the server, it still needs to be accessible by the mysql server. E.g. you can place them under /tmp
  • You can specify NULL characters by ‘\N’, e.g. “9,\N,276,John…”

Perl: Some usefull tips

Some handy Perl commands that is not used as much.

Use ‘-‘ to refer to STDOUT & STDIN.

open(INP, ‘-‘) —> STDIN
open(OUT, ‘>-) —> STDOUT
$fh = IO::File->new(‘-‘,’w’) —> STDOUT

Following the filehandle with ‘-|’ opens the output of a shell command as a file.

open($fh, ‘-|’, ‘ls -l’);
open($fh, ‘-|’, ‘cat tmp.txt | sort’);

Similarly IO::Pipe can be used to get the same affect:

$fh = new IO::Pipe;
$fh->reader(qw(ls -l));

Then you can print the output

while (<$fh>) { print; }

Open a zipped file

open(INP, ‘-|’, ‘gunzip < tmp.txt.gz’);

Print the output of a subroutine inside a string

print “3+4 is @{ [addTwoNumbers(3,4)] }\n”;

Use IO::File to store filehandles into a hash array.

$fh{‘infile’} = IO:File->new(“tmp.txt”, “r”);
while (my $line = $fh{‘infile’}->getline) {
print $line;

Customer Service: Chase vs. Citibank

I would like to share my unpleasant experience with Chase with the intention to help those who wants to apply for credit cards.

My payment to Chase was returned when I was out of country due to insufficient funds since I had an unexpected payment posted to my account while I was away. Long story short, I was charged total of $109 as return fee and finance charges from Chase. This was the very first time something like that happened for the last 7 years that I owned Chase credit card. Most credit cards or banks forgive the first time mistakes. However Chase customer service would not reverse the finance charges as a courtesy.

This reminded me my pleasant experience with Citibank a year before. I got a loan from them and set my bank account to automatically pay the minimum monthly balance. There was a problem in the setup and Citibank did not get payments for two months so they called me to warn and I immediately made payments on the phone. Late payment fee and finance charges for two months added up to more than  $500, but they kindly reversed all the fees since it was the first time.

When I compared the service of Chase (my credit card for 7 years) vs. Citibank (their treatment even after 2 months), I decided that I will not use their credit card and keep my interaction to the minimum.  Since I always pay full amount in full, I never paid close attention to the interest rate. I noticed that my Chase card charges ~15% while Citibank card charges only ~9%.

What is your experience with these cards?