Rice University logo
 
Top blue bar image
Computer Scientist at the Department of BioSciences, Rice University
 

Archive for the ‘miscellaneous’ Category


Web Browser evaluation

August 9th, 2012 by Boanerges Aleman-Meza

I tested several browsers for a period of two months. At the office in my Windows XP desktop, I would use a different browser every day. Details:

  • Internet Explorer 8: dislike that Ctrl+L does not take me to the address bar. Slow when opening tabs. The yellow bar warning about running add-ons such as Adobe-Flash is annoying. I gave up on this browser after the second week.
  • Google Chrome v21: like the option of saving to PDF. It does not move to other tabs with Ctrl+PageUp/PageDown when inside editor window of WordPress.
  • Mozilla Firefox v14: gives the impression that it wants to update quite frequently. It is great to copy text such as clicking on a word and then using shift+arrow to select adjacent text. Moving to other tabs with Ctrl+PageUp/PageDown always works.
  • Safari v5: zooming in google maps causes screen mess (as if the video card had failed only in this application). It is somewhat slow in the start but I do not see this in my mac. It is great to copy text such as clicking on a word and then using shift+arrow to select adjacent text. It needs an easy way to move to other tabs using keyboard shortcuts.

My preference: Mozilla Firefox.

Ideal browser: Mozilla Firefox with the “print-to-PDF” option.

Gnuplot scattered plot with circles filled, not filled, with border

November 1st, 2011 by Boanerges Aleman-Meza

Gnuplot can make great scattered plots, including the use of circles instead of just dots. The circles are typically filled, with their radious depending on a numerical value on the data being plotted. In addition, it is also possible to draw a border in the circle using different colors. Here is an example using characters from Grey’s Anatomy TV show.

These are the gnuplot commands to create the scattered plot:

set term jpeg size 700,800
set output 'plot_scattered.jpeg'
set xtics rotate ( "Meredith" 1, "Avery" 2, "Teddy" 3, "Karev" 4, "Bailey" 5, "Burke" 6, "Lexie" 7, "Owen" 8, "Addison" 9, "O'Malley" 10, "Arizona" 11, "Derek" 12, "April" 13, "Sloan" 14, "Izzie" 15, "Webber" 16, "Christina" 17, "Callie" 18 ) scale 0
set ytics ( "Meredith" 1, "Avery" 2, "Teddy" 3, "Karev" 4, "Bailey" 5, "Burke" 6, "Lexie" 7, "Owen" 8, "Addison" 9, "O'Malley" 10, "Arizona" 11, "Derek" 12, "April" 13, "Sloan" 14, "Izzie" 15, "Webber" 16, "Christina" 17, "Callie" 18 ) scale 0
plot [0:19][0:23] "homerun.txt" using 3:5:1 title 'homerun' with circles linecolor rgb "#9ACD32" fill solid noborder \
, "gender.txt" using 3:5:1 title 'homerun same gender' with circles linecolor rgb "#9400D3" lw 3 fill solid border lt 3 \
, "firstbase.txt" using 3:5:1 title 'first-base' with circles linecolor rgb "#A9A9A9" lw 3

These are the text files with the data being plotted: homerungenderfirstbase.

One great thing about Gnuplot is that it can create SVG files, this is the SVG file of the same plot: svg_file (rename it to .svg instead of .txt so that a web browser can open it).

Use EMF to export Graphs generated by GUESS if it is to be imported into Inkscape

October 25th, 2011 by Boanerges Aleman-Meza

I use GUESS Visualization for creating graphs. When the graph is going to be placed in a webpage, then exporting it as JPEG is sufficient.

However, when publication-quality is required, Inkscape is one of the best options to produce great figures.

Inkscape can import a variety of formats. When you are importing a graph generated by GUESS, the best format export option inside of GUESS that I found is EMF (enhanced windows metafile).

Exporting the graph in GUESS as PDF, and then importing the PDF into Inkscape also works, but the hassle is more than using EMF.

this e-mail was sent from a notification-only e-mail address that cannot accept incoming e-mail

October 6th, 2011 by Boanerges Aleman-Meza

Why send email from an email address that does not accept incoming email?

As a customer, what are we supposed to do? They could at least have a “reply-to” address that goes to a customer support email address or something like that.

The irony is that one of Amazon’s automated emails do send cc email themselves to the email address that cannot accept incoming email. Wow, that was fun

Here’s the text and picture (emphasis added in the last line).

Greetings from Amazon.com.
We wanted to let you know that we received your return for your order .
If you are due a refund you will receive another email confirmation shortly.
See our return policy for our returns timeline at www.amazon.com/help/returns
Thank you for shopping at Amazon.com.
Note: this e-mail was sent from a notification-only e-mail address that cannot accept incoming e-mail. Please do not reply to this message.