2012-03-06

latex error "image failed (no JPEG header found)"

i use texmaker to write latex documents on windows.  i wanted to insert a graphic using the directions on this page.  i got these errors:

!pdfTeX error: pdflatex (file C:/.../dog.jpg): reading JPEGimage failed (no JPEG header found)==> Fatal error occurred, no output PDF file produced!
i created the jpg file in microsoft paint.  perhaps if i used a different jpeg, it would've worked.

the solution is to open the jpg file in paint, save it as a .png file and then use the png file.

no need to change the latex code if it doesn't include a file extension.  e.g.

\includegraphics{dog}
otherwise, just change the filename.  change
\includegraphics{dog.jpg}
to
\includegraphics{dog.png}

2012-03-05

securely send passwords over email

i've been sending passwords to people over email for years and just realized how bad it would be if someone hacked into my own email account and searched for "password".  this is why we should never send non-temporary passwords over email.  i used to type "delete this email" in the subject line, but this is a better solution.

http://timebomb.it/

timebomb.it lets you send login credentials to people via a link that expires after an hour, day or month.  that way, if a hacker gets into your friend's or co-worker's email and searches for "password", they will only find expired links and no passwords.

just go to timebomb.it and type in the username and password you want to send.


then you'll see the page with the url.  copy the url...

and email it securely!


then, if someone searches for "password" in the recipient's gmail a year later, they get this!



i was going to use kl1p.com, an online clipboard, to send passwords, but they got rid of the option to make the clipboard contents expire after a certain amount of time.  timebomb.it is a good alternative for sending sensitive information that you want to be available for a limited amount of time.