Showing posts with label Geek Stuff. Show all posts
Showing posts with label Geek Stuff. Show all posts
Sunday, October 21, 2012

The Death Star?



This picture on the left appears to be the reactor core of the Death Star.  Looking down into the hot blue nuclear furnace, this reminds me of the scene where Obi-Wan has to disable the tractor beam so that the Millennium Falcon can escape the clutches of the evil empire (shown on the right).  























Actually the picture on the left is not really from Star Wars.  It is a photo from the inside of the Reichstag Dome in Berlin looking down into the debating chamber of the Bundestag below.   The blue things are the seats of the Bundestag.  

The symbolism of the dome, which is open to tourists, is that the people should always remain above the government.  And the futuristic design is supposed to symbolize that Germany is moving into the future away from its ugly past.  (These interpretations are gleaned from Wikipedia.   I am not wise enough to be able to interpret architecture on my own.)  

While I like the idea of having such symbolism, you might think the architect, Norman Foster, might have designed something that looked a bit less like the inside of the Death Star (he also designed London's futuristic Gherkin).   On my visit to the Reichstag Dome, I half expected R2D2 to come running around the corner at any moment. 


And in this photo, my friend Sabine is contemplating making a jump to the control tower so that the X-wing fighters of the Rebel Alliance can escape the tractor beam.

May the Force be with her!




Added: How could I have mentioned the death star without posting a link to this:

http://www.youtube.com/watch?v=Sv5iEK-IEzw
Wednesday, September 19, 2012

Some geek info


I'm posting this info because both of these computer things cost me hours of grief and I'm hoping by posting them and having them google searchable, others will not suffer.

(1)  Upgrading to mac-osx lion, I found that the x2go client would not properly detect the mac keyboard.  Go to settings, keyboard, and type in pc104 where it is default pc105.   This fixes the problem (at least for me it did).

I still have a few problems with x2go.  But logging into my linux box from my mac, I find that kde4 and LXDE run fine.  The other window managers still give me trouble and crashed frequently.

(2) Writing a program in gfortran or g77  in ubuntu 12.04:

I had trouble running the program if the program requires over 2Gb of RAM.  The computer has 6GB so this should not cause trouble.   This caused me half a day of grief.  The solution was first, to include the compile flag (this is expected)

-mcmodel=medium

But even then, when the program wanted more than 2Gb, the program would compile but not link.   I then installed binutils-gold which swaps out the linker for a newer (and faster) version, and it works.

I'm still hunting down some bugs, but for some reason when my program takes more than 2Gb of memory, I'm still getting errors when I compile using gfortran.  But it works fine under g77, so maybe I'll just stick with that.   If anyone cares to debug, here is my info:


$ gfortran -v
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.3-1ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)

$ g77 -v
Reading specs from /usr/lib/gcc/x86_64-linux-gnu/3.4.6/specs
Configured with: ../src/configure -v --enable-languages=c,c++,f77,pascal --prefix=/usr --libexecdir=/usr/lib --with-gxx-include-dir=/usr/include/c++/3.4 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --program-suffix=-3.4 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug x86_64-linux-gnu
Thread model: posix
gcc version 3.4.6 (Ubuntu 3.4.6-6ubuntu5)

(the old linker) 
$ld.bfd -v
GNU ld (GNU Binutils for Ubuntu) 2.22

(the new linker) 
$ ld -v
GNU gold (GNU Binutils for Ubuntu 2.22) 1.11





Monday, September 10, 2012

Calling all Linux Geeks

A few weeks ago, I wrote about my excitement over installing Linux 12.04.1.    (Non linuxers need read no further).

Since then, as luck would have it, for work I've been writing some code.  Although this is not something I do a lot of, I do need to do it occasionally.   This code, based on a program I wrote a few years ago, is about 10,000 lines --- not huge perhaps, but still enough to be a project.  Anyway, this gave me an opportunity to stress test 12.04.1 and see how much I like it when I have dozens of windows open at the same time:  editors, debuggers, octave, data analysis, as well as the usual assortment of browsers, skype, and you-tube videos of skateboarding dogs.

After some getting used to, I decided that the Unity interface is ok.  I installed the Gnome classic menu and then never touched the HUD or Dash or whatever they call that thing.  I suppose if I'm not using the Dash, I'm probably missing the whole point.

However, there was a major problem with Unity.  As I mentioned in my earlier posting, the killer-app for me was NXFree -- the world's best virtual desktop.  Wherever I took my laptop, I could access my home computer with ease -- even on a slow connection. Unfortunately, once I made the upgrade, NXFree broke.   Even with a fair amount of work, I failed to make NXFree function properly.    Fortunately, there is an alternate program, x2go which is based on the same nxlibraries and works just as well, and it did seem to still work correctly -- but not for the Unity interface.  As a result, I started trying different window managers to see which one I could learn to love -- so that I would get used to the same environment whether I was at work or at home.

Here is the list of the environments I tried so far (in alphabetical order).


  Cairo-Dock (Gnome + Effects)
  Cairo-Dock (Gnome No effects)
  Cairo-Dock (with Unity Panel)
  Cinnamon
  Enlightenment
  Fluxbox
  GNOME Classic
  GNOME3
  GNOME Classic (No effects)
  KDE Plasma Workspace
  LXDE
  MATE
  Openbox
  GNOME/Openbox
  KDE/Openbox
  Razor Desktop
  Razor Desktop (kwin)
  Razor Desktop (metacity)
  Razor Desktop (openbox)
  Ubuntu 2D (Unity 2D)
  Ubuntu (Unity)
  Xfce
  Xubuntu


Of these, my favorites (all which seem to work really well over x2go) are

  Enlightenment
  KDE/Openbox
  MATE

Does anyone have any other favorites I should try out?



Monday, September 3, 2012

This week in awesome

Saturday, August 25, 2012

12.04.1

Caution: Do not read any further if you are not a computer nerd. 

My home desktop computer was assembled from parts bought from NewEgg in the winter of 2007.  At that time, it was a top end machine.   1.5 GHz duo-core. 6 Gb ram.   I started out using it as a Hackintosh, but eventually decided that I like Ubuntu better, and I've been using it that way ever since (I think the killer app that got me to switch was NXfree remote desktop -- which is amazing if you have never used it.).   Since I bought it, it has required a new power supply, and a new graphics card, and I inserted two more disk drives for good measure.   On the whole, though, it is still running extremely well.  I didn't expect it to last five years, and although I probably should upgrade to a new motherboard sometime soon, it is running so well, I really don't see the need yet. 

Although I admit to being a computer nerd, I don't want to spend too much time tweaking my system.  So I don't upgrade to the bleeding-edge version of everything.  Instead, I stick with stable versions for a while and only upgrade on occassion.  I've been running Ubuntu Lucid 10.04 Long-Term Support for several years, and although I admit I've been itching to try 12.04, I dutifully followed the instructions "LTS users are recommended to wait until 12.04.1 before upgrading".    Finally this week 12.04.1 was released.  

Last night I got home from Trieste and started the upgrade process.  I went to bed as the computer downloaded files for several hours.  I woke up at 7 am, clicked OK a few times as I ate breakfast and packed for my next trip, and by 10 am, I had a working version of 12.04.1 !

There are probably a few things broken by the upgrade -- but so far remarkably few.  My main complaint so far is the unity interface -- I realize these things require some getting used to.  However, I can't imagine getting used to a transparent dashboard that is completely unreadable.  Does anyone know how to make it opaque?  (I have a hack that does this already, but there must be a better way). 



Sunday, September 12, 2010

In regards to my previous post

I received this plot from my brother Rob.



I think there needs to be less green.
Saturday, September 11, 2010

Hamiltonians

Whenever I visit the National Irish University at Maynooth (which I have been doing quite a lot recently) I am loaned an office in the Hamilton Mathematics Institute, not to be confused with this Hamilton Mathematics Institute, only a 45 minute train ride away. Both of these institutes are named after Ireland’s most famous mathematician and physicist, William Rowan Hamilton. If you have an office in one of these institutes you can call yourself a Hamiltonian.

And if you take the train into work in the morning then, because of you, all the other Neanderthals on the train will never evolve --- because they commute with a Hamiltonian.

If you did not get that joke, you are not a physicist.
Tuesday, December 1, 2009

His Dark Environment

The winter here gets very dark. This is not surprising considering how far north we are. Despite our relatively mild winters (courtesy of the Gulf Stream) we are far north of even Quebec City.

The shortest day of the year, the winter solstice, December 21st --- is a date celebrated in one way or another by most cultures on earth. On this day, London only gets 7 hours and 50 minutes of sunlight – substantially less than New York which gets 9 hours 15 minutes. On the other hand, if you happen to live in Oslo, you only get 5 hours 53, and if you live in Svalbard you won’t see the sun at all from the end of October til mid February.

However, surprisingly, the solistice is not the day when the sun sets the earliest, or rises the latest. In New York, the earliest sunset is actually December 8th and the latest sunrise is January 4th. As you get further north, these two dates get closer together: Here in London, the earliest sunset is December 12th and the latest sunrise is December 29th.

At one point in graduate school I remember pondering the geometry of why this happens --- which has to do mainly with the angle of the earth with respect to its orbital plane (if I remember correctly). I think it was my friend Dave Morin who managed to figure it out --- not surprisingly he just finished writing a classical mechanics textbook with a ton of really hard problems in it.
Saturday, November 28, 2009

Live Long and Prosper

Us nerds know how to party.

My friend Christiane decided that for her birthday she would throw herself a star-trek themed party. You might expect this to be a complete nerd-fest (ok, maybe it was) but it was really fun!

Here is a picture of Christiane dressed as 7 of 9.


And here is a picture of the actual 7 of 9.. not bad huh?



Then we had Christiane's boyfriend Luke dressed as Riker (left) and Dina dressed as Betazoid Deanna Troi (right). Dr. Justin is in the middle there appropriately dressed as a medical officer. Compare to the original Riker and Troi:

Random vulcan star trek officers included Christiane's mother and sister:

Note the full life-sized picture of 7of9 in the background. Also note the flag of the united federation of planets. Way in the upper left of that photo you can also see part of some random star-trek weapon hanging on the wall. Probably Klingon.

And one photo of the general crowd. Darcy in the foreground has some serious vulcan ears... or maybe they are elf ears she is just trying out in advance of the next party --- I'm hoping for a lord of the rings themed party coming up soon.

Dancing went on til 2am. Not a bad party.
Sunday, September 6, 2009

Jumping out of Airplanes

Eddy Ardonne is an avid skydiver. He is currently an assistant professor at NORDITA in Stockholm where I am visiting this month, and he frequently offers to take people skydiving if they so happen to be interested. Smitha Vishveshwara*, who was once Eddy’s officemate, made a jump a few years back and loved it. My colleague from Ireland, Jiri Vala, was absolutely determined to try jumping this week and encouraged me to go too.

Now, to begin with, I’m a guy who doesn’t even like to drive in a convertible because I don’t like that much wind in my face. Why on earth would I want 120 MPH of wind in my face? I’m also rather afraid of heights (yes, I know, I’ve rock climbed in the past, but I never like being near a cliff unless I’m in my harness and anchored in). But perhaps because I was completely terrified of the idea, I was also curious about it, so I started doing some homework to find out, just how dangerous is it?

Being a statistics geek, the first thing I found was that many of the statistics that you find on the web are totally bogus comparisons.

The best verified figure I could find is that in skydiving there is roughly a 1 in 100,000 chance that you will die on any given jump. It might be a bit lower for certain types of jumps, or certain jumpers, and a bit higher for others. But very roughly, this seems always to be the right number**.

But back to bogus statistics: Here’s a statistic that gets thrown around an awful lot:
“Each year about 30 people die skydiving in the United States, and that's out of over 2 million parachute jumps. Given the odds, you're better off skydiving than let’s say driving a car. Every year, over 40,000 people die in traffic accidents”

Similarly many websites state that
“you are more likely to die driving to the dropzone than during your jump”

I’m calling a loud foul on both of these: The fatality rate for driving a car in the US (and most of the western world) is roughly one fatality per 100 million miles driven. So a single jump has the same fatality rate as driving a car one thousand miles. Spending an hour making a single jump is over 100 times more dangerous than driving a car for the same hour. Perhaps it is surprising (even impressive) that jumping out of airplanes is not more dangerous than this, but still the statements being made on the web are clearly inaccurate. I’m not particularly afraid of driving a car for a thousand miles, so there is not really much good reason to be afraid of making a single jump. However, if you make it a habit of jumping out of airplanes, you have to accept that it can start to become a significant added risk.

While I was searching for more statistics on the matter, I found quite a few interesting things about skydiving injuries. One of the strangest facts is that for solo student jumpers (not jumping in a tandem) apparently women have over twice the fatality probability than men. No one seems to know why this is, but it is an established fact. There are some other interesting statistics regarding how many times a fatality occurs from a real splat (no parachute deployment), versus from other means such as mid air collisions, improper landing with proper chute deployment etc. It turns out that the real splats account for less than 30% of the fatalities.

Another interesting stat (which is harder to pin down from data available) is that non-lifethreatening minor injuries are apparently pretty common - the “injury requiring medical attention” rate is roughly 1 out of 1000 jumps. Most of these are minor sprains, breaks, and so forth. But a few are more serious. If you compare this to say, a few years of participating in any other sport, you would probably have a similar rate of minor injuries. (One should be warned however that certain medical insurers do not cover skydiving injuries whether or not they are minor).

Anyway, Jiri and Eddy did go jumping yesterday and they both came back in one piece. I didn’t go. It really came down to a decision of whether I wanted to spend most of a day preparing for a 60 second drop (which I didn’t’ think I would enjoy all that much anyway). I think the main attraction to the idea was just that I was a bit afraid of it.

Maybe when I’m visiting Stockholm next year I’ll think about it again.

*Congratulations to Smitha on her marriage last month.

**It appears that this number does not include the possibility that the small plane you are in crashes before you jump out of it. It is hard to get numbers on the added risk from plane crashes, but my best estimate is that it is unlikely to more than double the risk.
Sunday, May 3, 2009

J. R. R. Tolkien

No, I have not discovered hobbits in my basement. I discovered this.

If you are a complete geek like me, and you thought the three Lord of the Rings movies were the best things ever filmed, you are going to love this independently made 40 minute film extending the Jackson trilogy.

What is truly amazing is that they made the whole movie on a budget of less than 10,000$. Even more amazing --- it is actually a pretty darn good short film. Move over Peter Jackson.

PS: Hat Tip to Gerit Quealy for pointing this out to me.

PPS: Wouldn't seem right to have a LOTR post without mentioning that Tolkien was an Oxford Professor.
Tuesday, September 30, 2008

Geeking out

(1) If you run OSX and you happen to use the free version of yahoo mail you have probably noticed that there is no automated program that alerts you when you have mail. After suffering this indignity for years, I have finally done something about it. You can find instructions for making this program work for you here. Took me about two hours to write, and another hour to write the how-to. I know it isn't elegant, but it works very nicely.

(2) And more on the geek front. Since I am returning my nice laptop to Bell when I quit, I just ordered a new tablet to be my future work machine. The Lenovo x200t. Pretty sweet machine! I wimped out when I saw the price go way over 3,000$ and I decided I didn't really need the solid state drive for another 800 bucks.

(3) Final geek goodness: My friend veronique christensen has been working on a new website called obsessable.com dedicated to geek equipment. Yay for geeks!

Update (1) Yeah, I know, it sometimes doesn't work. I know what is wrong and I need to tweak it for reliability. Maybe when i have a few free hours.

Update (2) The x200t is pretty sweet. Size is always the compromise. Either it is too small to give good screen real-estate, or it is too big to carry really easily. I think the x200t is probably just a hair too big, but not bad. The handwriting recognition is extremely good and I hope to use this to take all my notes, do calculations etc. The one thing that is disappointing is vista 64 bit. Way too many things install incorrectly or not at all. I spent almost two days trying to get MikTex installed. All the geeks out there, I'm sure already know how important this program is. (Yes, i finally succeeded, but only after a whole lot of grief).