Archive

Author Archive

Why Internet Explorer Sucks

July 20th, 2010 Marty Stepp 6 comments

My CSE 190 M course is devoted to teaching proper web site development. The fundamental design of HTML and the World Wide Web is written with detailed standards, and if a web site developer obeys these standards, his/her pages should look the same in every browser on every computer. But Internet Explorer and Microsoft have spent years going out of their way to make their browser behave in ways that are contrary to these standards. This makes it much more difficult to develop web sites that will work properly on every machine. Many web developers have been forced to make the difficult choice: Should I make a site that looks/behaves right in IE, which has long had the majority market share, and looks wrong for everybody else? Or should I follow the web standards so that it will look right everywhere but IE, thus losing the largest potential market of visitors?

The reason Microsoft has been able to get away with this horrible, monopolistic, bullyish behavior is because web developers have not taken a stand. No one has been willing to simply say, “IE, if you don’t play by the rules, you’re not welcome here.” As an educator, I don’t want to teach my students a bunch of hacks and workarounds so that their pages work in a web browser that willingly goes out of its way to break things for everybody else.

There are other major problems with IE, such as its chronic security holes that make your computer vulnerable to all kinds of malicious software. Many of the large “bot nets” of “zombie” computers that have been infected by viruses and malware are due to flaws in Internet Explorer that have been exploited.

Therefore, I block my course web site from being viewed in Internet Explorer; its users are not welcome. If a person would like to visit my course web sites, they must do so with another browser. Sorry for the inconvenience. (Not to get too preachy, but if you tried another browser, you might actually find that they all have more features and work better than IE does. I’m just saying.)

P.S. Don’t take my word for it. Visit these fine sites to learn more about why IE sucks:

Categories: Uncategorized Tags:

how to do various things in Ubuntu

June 22nd, 2010 Marty Stepp 5 comments

I have gone Linux. I bought a new laptop, a Lenovo ThinkPad X200T tablet PC, and I installed Ubuntu Linux v9.10 on it. As I get better at using Linux, I am going to post the random useful things I learn how to do. This is mostly an archive for me, so I won’t lose track of this information later. But it might be helpful to others as well.

.

Moving the damn window buttons back to the right side where they belong:

Run gconf-editor. Then click “app” -> “metacity” -> “general”. Then double-click on “button_layout”. Change its value to:

menu:minimize,maximize,close

.

Installing Java:

From a terminal, type:

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-jre

.

Which Linux programs are good / equivalent to which Windows programs:

All are available in the Ubuntu package manager except as linked.

Internet:

  • IM -> pidgin
  • graphical SFTP client -> filezilla
  • Google Chrome -> chromium
  • BitTorrent -> transmission
  • Flash -> flashplugin-nonfree
  • Gmail checker on taskbar -> gnome-gmail-notifier

Programming:

  • decent coder’s text editor -> geany

Graphics:

  • Photoshop -> GIMP
  • image thumbnail browser -> gthumb
  • diagram/flowchart editor -> dia

Audio:

  • Winamp -> audacious
  • iTunes -> banshee (rhythmbox too, but it kind of sucks)
  • copying files to/from an iPod -> rhythmbox
  • MP3 ID3 tagging -> easytag
  • convert between audio formats -> soundconverter (plus lame, flac)

Video:

  • playing videos -> mplayer, vlc, and xine
    • If you want to actually be able to play MP3s, copyrighted video formats, etc., you need to install the packages: gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly-multiverse
  • ripping DVDs -> handbrake or dvd::rip

System Tools:

  • play with hard drive partitions -> gparted

.

How to make your IM program talk:

sudo apt-get install festival pidgin-festival

Then enable the plugin from Pidgin’s plugin settings. Awesome! But there are two problems with it initally.

1) The voice is initially too quiet, so to make it louder, I did this:

sudo gedit /usr/share/festival/voices/english/kal_diphone/festvox/kal_diphone.scm

and found a line about wave.rescale (that’s the volume scaling) and changed it to:

(utt.wave.rescale utt 6.6)))

2) It uses some crappy audio subsystem to play the voice, which doesn’t work well when other sounds are trying to play. So I found and ran this command to change it to the “ALSA” sound subsystem, which seems to help a lot:

printf ";use ALSA\n(Parameter.set 'Audio_Method 'Audio_Command)\n(Parameter.set 'Audio_Command \"aplay -q -c 1 -t raw -f s16 -r \$SR \$FILE\")\n" > ~/.festivalrc

.

How to set which monitors are enabled, their resolutions, etc. from the command line:

Use the command-line program ‘xrandr’ for this. Just type ‘xrandr’ to see a list of your monitors’ output names. I found the following commands useful to set ‘home’, ‘school’, and ‘portable’ monitor settings respectively:

# external monitor at 1600×1200; laptop internal display off (home)
xrandr --output VGA1 --mode 1600x1200 --rate 60 --rotate normal --output LVDS1 --off

# external monitor at 1600×1200, rotated vertically (home)
xrandr --output VGA1 --mode 1600x1200 --rate 60 --rotate left --output LVDS1 --off

# laptop internal display at 1600×1200; external monitor off (portable)
xrandr --output LVDS1 --mode 1280x800 --output VGA1 --off

# laptop internal display and external monitor cloned at 1024×768 (school)
xrandr --output LVDS1 --mode 1024x768 --output VGA1 --mode 1024x768 --rotate normal --same-as LVDS1

.

How to enable a Tablet PC’s pen:

Ubuntu recognized my tablet’s pen stylus right away, but OpenOffice.org doesn’t support ink features, so I couldn’t draw on my slides the way I like to do. I found various programs for this, such as gromit, but they sucked mostly.

My recommended way to get tablet inking on Ubuntu is to enable Desktop Effects (compiz) and then install the Compiz settings manager:

sudo apt-get install compiz-settings-manager

You can find that app under System -> Preferences -> CompizConfig Setings Manager. In there, find the Inking/Drawing option and turn it on.

.

Getting my HP printer/scanner to work:

Xsane is a nice scanner app. I installed the following packages:

sudo apt-get install hpijs hplip xsane

.

Ripping/converting MP3s:

I like the program ‘soundconverter’ for converting other formats such as FLAC or OGG to MP3. I installed these packages:

sudo apt-get install soundconverter flac lame

.

Random various system settings:

I installed the ‘thunar’ file manager because I like it better than the default ‘Nautilus’ file browser. Thunar is more lightweight.

.

Running Windows apps:

I am too addicted to TextPad to give it up completely. So I installed wine, which lets you run a Windows program under Linux:

sudo apt-get install wine

Then I can run the TextPad installer program from textpad.com on the command line, which installs TextPad. I also installed Notepad++. To make it easier to run them, I set up script files named /usr/bin/textpad and /usr/bin/npp to run them, like this:

#!/bin/sh
exec wine /home/stepp/.wine/drive_c/Program\ Files/TextPad\ 5/TextPad.exe $* 2>/dev/null &

#!/bin/sh
exec wine /home/stepp/.wine/drive_c/Program\ Files/Notepad++/notepad++.exe $* 2>/dev/null &

I also installed VirtualBox (sudo apt-get install virtualbox-ose) and gave myself a full virtual WinXP install there, for those moments when I need a Windows screenshot, or need real MS Excel, or whatever. But that’s a whole tutorial in itself.

.

A full list of Ubuntu packages I install after Ubuntu finishes installing:

(this is a biggie)

abiword
alien
ant
apache2
apachetop
audacious
avant-window-navigator
banshee
bittorrent
bzflag
cmus
compiz-settings-manager
cowbell
cowsay
curl
cvs
dasher
ddd
deskbar-applet
dgen
dia
dosbox
dvdrip
dvorak7min
easytag
eclipse
ekiga
electricsheep
emacs
enscript
fceu
fceu-server
festival
ffmpeg
filezilla
firebug
firefox-webdeveloper
flac
flashplugin-nonfree
fluxbox
g++
gettext
gfceu
gftp
gif2png
gmail-notify
gnome-commander
gnome-gmail-notifier
gnome-mplayer
gnome-randr-applet
gparted
gromit
groovy
gstreamer0.10-ffmpeg
gstreamer0.10-plugins-bad-multiverse
gstreamer0.10-plugins-ugly-multiverse
gtkpod
gxmms2
hedgewars
highlight
hpijs
hplip
html2text
httperf
id3v2
idle
idle3
imagemagick
indent
inkscape
ion
irb
jmeter
junit4
k3b
lame
libglib2.0-dev
mplayer
mplayer-fonts
mysql-server
openssh-server
php5
pidgin
pidgin-extprefs
pidgin-facebookchat
pidgin-festival
pidgin-plugin-pack
python3
rar
ruby
samba
simdock
soundconverter
subversion
sun-java6-jdk
tesseract-ocr tesseract-ocr-eng
thunar
tidy
tightvncserver
tofrodos
tomcat6
traceroute
transcode
transmission
tree
valgrind
valkyrie
virtualbox-ose
visualboyadvance
visualboyadvance-gtk
visual-regexp
vlc
wacom-tools
wine
xchat
xfig
xmms2
xpdf
xpdf-reader
xpdf-utils
xsane

Categories: Uncategorized Tags: , , ,

Sorrento, part 2

September 27th, 2009 Marty Stepp No comments

Part 2 of Marty’s travels in Sorrento, Italy, on Sep 23-27, 2009.

We decided after the second day that we wanted to change hotels to a more affordable one; Settimo Cielo had a breathtaking view, but it was setting us back 140 euros times 2 rooms per night.  So we lugged our bags almost 2 miles to another hotel that was more on the discount side of things.  This time all four of us were sharing a room.  We asked for one with 4 beds and they said they had one.  But they gave us one with four BUNK beds.  That’s right.  Take a look:

IMG_0321

I don’t think bunk beds were designed to support a 6-foot, 160-lb body.  I took the bottom bunk and Jessica the top.  The thing was made of cheap plywood and thin metal braces and clamps that looked like something from Ikea.  (Did you know a lot of Ikea’s stuff is made in Italy?)  It kept creaking and acting as though it would give out at any moment, sending Jessica collapsing down onto me and crushing my skull.  It was a little hard to sleep that night!

On the third day in Sorrento, after checking in to the exciting bunk bed hotel, we caught a train to visit Pompei, about half an hour away.  I will admit that as a dumb American I had never even heard of Pompei before, but apparently it is very well known and people travel from all over the world just to see it.  It’s the remains of an ancient Roman city that existed as far back as 6-700 B.C.  In 79 B.C., there was a huge eruption of Mount Vesuvius, a large active volcano that sits just above Pompei.  The lava and ash destroyed the entire town, and all the ash and dust covered everything and preserved it for thousands of years.  Some archaeologists discovered it in the 17th century A.D., and they have been continuing to excavate it since.  Apparently it’s considered an extremely dangerous volcano because it is still active eruptions, and roughly 3 million people still live on and around it, the largest population in range of a volcano in the world.

IMG_0325

As I said, what makes it such an amazing find and attraction is how well preserved everything is.  You can walk around the entire town.  There are the remains of houses, public bath houses, religious buildings, kitchens, a water gathering room with a funneled open roof and a big pit in the floor to hold rain water, and even a coliseum where people watched gladiator battles.  The houses still have remnants of frescos the people painted on them to decorate and to make their houses look bigger.

IMG_0330

There are even entire human beings and dogs and other animals that were encased in volcanic ash and dust and were therefore perfectly preserved until now.  You can see the plaster casts of the people, frozen in the positions they died.  Imagine if you were scratching yourself or picking your nose or lord knows what else right when the lava hit.  There would be tourists looking at you for thousands of years with a placard next to you saying, “We believe these are the remains of the town nose-picker.”

IMG_0335

The town and remains just keep going on and on.  There are groups being led around by tour guides speaking all kinds of different languages.  I’m pretty sure I heard tours in English, Italian, French, German, and Japanese, plus one or two more I couldn’t place.  The most popular area seemed to be the public bath house; there was a line to go in to view it.  But the coliseum was cool, and seeing the human beings and dogs was cool.  There was a building that the tour guide book said used to be a brothel.  Do I want to know how they figured that out?  There was also a 2000-year-old dog house, which I thought was the most adorable thing ever:

IMG_0370

The best view was from the top of a small hill at the south end of the village.  Here’s me on the hill with the city and volcano in the background:

IMG_0375

We almost caught a taxi up Mount Vesuvius itself, to see the actual top of the volcano.  But it was starting to get late, since we’d been walking for miles around Pompei itself seeing everything.  We decided to skip it and get home, since the taxis and trains were about to stop running.  We didn’t want to get stuck up there after dark.  Instead we went back to Sorrento and caught a nice dinner.

The girls wanted dessert afterward, of course.  Italy has lots of delicious sugary desserts.  Besides the usual pastries, they have these Italian twinkies called canolli.  Jess and Meg devoured several of those.  They also have this soft fruity ice cream called gelato that is quite delicious.  I can’t eat dairy products, but I usually steal one or two licks of their cones because it’s just so good.  Many a choco nubbin was filled on this trip (inside joke).

IMG_0334

On our fourth day in Sorrento we did something I had been bugging the others to do all along: rented scooters!  For around 30-35 Euro, you can rent a 100-150 CC motor scooter for a day and drive it around wherever you want to go.  This area is much more scooter-friendly than a lot of places in the States.  The cars are generally much smaller, with no SUVs on the road, and there are lots of people on motorcycles, scooters, Smart cars, or other very small vehicles.  I would be terrified to drive a motorcycle in the US, but this was just fine. Here was my “hog”:

IMG_0390

We rented two scooters; each held two people.  Toni and Meg shared one scooter, and I drove with Jess on the back of the other.

IMG_0413

I had never driven a scooter or motorcycle or any similar vehicle before, and we had literally zero practice.  We just had to push on the throttle and jump out into traffic.  It was mildly terrifying.  But I jumped out into the road, and with a little wobbling, I was on my way.

We set out for the village of Napolitano, around 25-30 km away from Sorrento.  This area had a more accessible sandy public beach.  Part of the appeal of going there was the drive.  We got to take our scooters around these mountain cliffs, with perhaps the most breathtaking view I’ve ever seen.  Just miles and miles of winding, curving, mountain roads on the scooter with vater and fresh air and sunshine all around you.  It was spectacular.

We had lunch at a restaurant right on the beach.  I got pizza, which is kind of stereotypical, but I have to say, actual Italian pizza tastes spectacular compared to USA chain pizza.  I don’t know exactly what it is.  It’s lighter, and the sauce is much better (tangier and thinner and less of it).  They have interesting topics like tuna and olives and fresh artichokes and potatoes and salmon and really good sausage and ham, or basically whatever you can think of, they’ll put it on there for you.  Tastes great.

IMG_0402

After lunch we parted ways with Meg and Toni.  They stayed to enjoy the beach longer and travel a bit more up and down the coastline.  Jess and I had to head back to catch a train, since both she and I were flying home out of Rome early the next morning.

We stayed the final night at a pretty crappy “pension” hotel, which is basically a hostel room with a bathroom.  If you haven’t stayed in a hostel, it’s like a cheap dirty hotel but with shared communal areas for bathroom and sink and kitchen and stuff like that.  Hostels are pretty sketchy and minimal but they save money.  We did this one just because we were only staying there one night and wanted to be right by the train station.  Only one of the five light bulbs in the room wasn’t burnt out, and there were vaguely prostitutey women standing around right outside the hostel’s door.  The hotel manager guy told us, if we left the room or went to sleep, for God’s sake lock the door.  That’s comforting.

We had a nice final dinner together, followed by a final pistachio gelato cone for Jess.  At the table next to us, there was a couple where the guy was trying to explain football to the girl in intricate detail.  He was breaking apart breadsticks into a dozen small pieces and lining them up as though they were football players, and he was showing her a nickel formation and a blitz and all kinds of things.  She seemed to be sucking down her wine and being patient with this.  Jess and I chuckled at how lame they were; what a loser!  We then proceeded to spend the dinner talking about software engineering and object oriented design principles.

In the morning Jess and I walked to Rome’s Termini train station and we sadly parted ways.  I’m so lucky I had Jess as a travel companion on the trip.  She made everything so much easier for me and so much more fun.  The moment I left her I became scared I’d get on the wrong train or step on a flight to Germany or something.  However, I’m writing this from my flight from Rome to New York City, which I seem to have successfully boarded, so it looks like everything is going to be okay.

My dad said he feels a great sense of relief once he’s sat down in his seat for the plane ride home from another country.  If you get that far, it means that you have basically passed everything major that you could have screwed up.  You’re going to get home.  Everything is going to be okay.  I have been away from Seattle since 9/11, so I have started to miss my old routine.  Sleeping in my bed, eating my own food, seeing my friends, playing with my own gadgets and toys.  I’m even kind of looking forward to getting back to work teaching this fall, which starts just three days from now on Wednesday 9/30.

That’s it for my blog about my travels to Europe!  I had a great time, and I’m glad I did this while I still can.  Now that I have turned 30, I am starting to think about the fact that I probably won’t have too many more summers off where I am completely free to do as I like: no job, no kids, no family to take care of, and enough disposable income to do something fun.  Not many people are lucky enough to be in a situation where they can just pop off to another country for three weeks.  That is a real blessing, and I wanted to take advantage of it.

Categories: Uncategorized Tags: