2011-01-31

Tweets of the month

Trying to reproduce results from another paper. There's always something important the authors don't have the space to write about...
28 Jan

Fosstrak EPCIS used in Norwegian Food Chain RFID Tracking: wp.me/pFIC4-1M
25 Jan Favorite Reply Delete

MIThomepage
http://web.mit.edu How using all that mobile technology could be hurting your social life.
18 Jan

ionline
Universidade de Coimbra é a primeira universidade de língua portuguesa a mostrar-se no iTunes U http://www.ionline.pt//c98642
14 Jan

Using Excel to write a research paper. Sounds awkward, I know :)
14 Jan

Make or break time
11 Jan

Back to work with the help of a Pomodoro !? :) http://www.pomodorotechnique.com/
6 Jan

Happy New Year!
1 Jan

Big Oh notation explained

Assuming a hypothetical computer called the Random Access Machine where:
  • Each simple operation takes exactly one time step.
  • Loops and subroutines are not considered simple operations, but a composition of many single-step operations.
  • Each memory access takes exactly one time step.
  • Memory is unlimited.
The run time is measured by counting up the number of steps an algorithm takes on a given problem instance. We then have the worst, average, and best case complexity functions.


The Big Oh notation further simplifies function classification by disregarding multiplicative constants and defining an upper bound.

f(n) = O(g(n)) means c . g(n) is an upper bound on f(n).
Thus there exists some constant c such that f(n) is always <= c . g(n), for large enough n >= n0 (for some constant n0).


Reference: Algorithm Design Manual by Steven Skiena, book and web site.

2011-01-29

Copy text from picture

Have you ever wanted to copy text from a screen capture?

Microsoft Office OneNote has that feature built-in.

You just have to add the screen capture to a OneNote notebook, right-click the image, and select the option "Copy Text From Picture", and paste it where you want it.


The results are usually very good, but not perfect, because this feature relies on OCR.

2011-01-28

Amazing Grace

Amazing Grace


Amazing Grace, how sweet the sound,
That saved a wretch like me....
I once was lost but now am found,
Was blind, but now, I see.

2011-01-27

NYC abortion

Father Barron responds to the recent statistical study demonstrating that approximately 41% of pregnancies in New York City end in abortion. Take a moment to read Father's commentary about "the most compelling moral issue of our time," and please spread the word.

Read the article.

2010-12-31

Tweets of the month

Waiting for Christ-mas
20 Dec

Back on track. Thanks to Jo and Rialva ;)
16 Dec

After a paperwork detour, back to writing
16 Dec

Amazing tool for PDF hacking based on the iText library: http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
15 Dec

"You lost today, kid. But that doesn't mean you have to like it." -- IJ3
13 Dec

Outline changes are mostly done. Now I'll resume writing.
10 Dec

Listening to Indiana Jones soundtrack
7 Dec

"Adventure is out there" - just don't be afraid to face it in the eye
6 Dec

"Adventure is out there!" -- Thanks Joana for reminding me of joy everyday
6 Dec

Just attended César Pimentel's PhD defense presentation. Good presentation! Good luck for the rest of the evaluation!
6 Dec

Back to writing
3 Dec

In this whole WikiLeaks business I see mostly useless gossip. In the middle of so much noise is there anything worth revealing?
2 Dec

2010-12-27

The Chronicles of Narnia: The Voyage of the Dawn Treader

The Chronicles of Narnia: The Voyage of the Dawn Treader


Lucy Pevensie: Aslan, will we ever meet with you in our world?
Aslan: You shall.
Lucy Pevensie: How?
Aslan: Because there I have another name. You must learn to know me by that name. This was the very reason why you were brought to Narnia, that knowing me here for a little, you may know me better there.

2010-12-26

How to Train Your Dragon

How to Train Your Dragon


Astrid: [punches Hiccup] That's for kidnapping me.
[Kisses Hiccup]
Astrid: That's for everything else.

2010-12-16

PDF Hacking

Adobe Reader X is the latest and very improved version of Acrobat's PDF Reader. The most significant changes for me were in the browser integration with Firefox. It is so much better now. The user interface is also leaner.

For me, the PDF Reading choice is settled, but for small PDF adjustments, like joining files or rotating pages, Adobe Acrobat is an expensive option.

If you are comfortable with the command prompt, there is a free and powerful option: PDF Toolkit. It is based on the iText library explained in the Manning book iText in Action.

To install pdftk, go to the web page and download the package for your operating system. For Windows, download the zip file and unzip it to C:\Program Files\pdftk.

Next, go to Start Menu, right-click on Computer, select Properties, and choose "Advanced system settings" from the left sidebar. Next press "Environment variables" button.
Create an environment variable called PDFTK_HOME and set it to pdftk folder path.
Next, add %PDFTK_HOME%\bin to the PATH variable. You can now open new command prompts and type the following command to read the help: pdftk -h

Here are a few useful examples (there are more described in the help output):

:: To concatenate xpto.pdf and xpty.pdf and output result to xpt.pdf
C:\Users\Me> pdftk xpto.pdf xpty.pdf cat output xpt.pdf

:: To rotate xpt.pdf from page 1 to end 90 degrees counter-clockwise and output to xpt-rotated.pdf
C:\Users\Me> pdftk xpt.pdf cat 1-endL output xpt-rotated.pdf

The page rotation setting can cause pdftk to rotate pages and documents. Each option sets the page rotation as follows (in degrees):
N: 0, E: 90, S: 180, W: 270, L: -90, R: +90, D: +180.
L, R, and D make relative adjustments to a page’s rotation.

2010-12-15

How to reset Picasa?

Picasa is very nice program by Google to manage photo collections. However, sometimes it is useful to "reset" Picasa to factory settings, especially when you move lots of files around.

*** WARNING *** This procedure will destroy your Picasa settings and your albums.

The first thing to do is to delete the Picasa database and albums.
Exit Picasa and go to %USERPROFILE%\AppData\Local\Google\ (in Windows Vista or 7) or to %USERPROFILE%\Local Settings\application data\google\ (in Windows XP) an delete the Picasa folders.

After this, there is still metadata in ".picasa.ini" or "Picasa.ini" files in the image folders.

Open Windows Explorer, choose "Tools" -> "Folder Options" in the menu, go to the "View" tab, and select the "Show hidden files and folders" option.
Search for *picasa.ini files, check if only the right files were found, and then delete them.

This will completely reset Picasa so you can start fresh!

--

References: Google support thread 1, thread 2