Greinasafn fyrir English

Monday, 4. Aug 2008

Contrived

From the wikipedia entry on Baa, Baa, Black Sheep: In more recent politically correct times, the nursery rhyme has come under criticism for having racially discriminatory undertones. […] More recently, in 2006, a nursey school in Abingdon, Oxfordshire, England have contrived a version which contains the phrase "rainbow sheep". They claim this was for "educational reasons" [...] Read more...

Sunday, 15. Jun 2008

JSON for old PHP installations

I use PHP a lot. Mostly to work with existing products, or to create mockups of things that will get replaced with something else later. The great thing about PHP is that it is present in some form on nearly all servers. If you're careful to avoid version 5 features then you can pretty much expect [...] Read more...

Thursday, 29. May 2008

Node members or Node attributes

Having given it a bit of thought I think that this problem stems from a slight confusion as to how DOM nodes' attributes work. You would expect javascript code to execute when you apply it to an attribute: someNode.onclick = "alert('foo');"; And you expect this to work because this is exactly what you do in your HTML. And [...] Read more...

Wednesday, 27. Feb 2008

What is the column index of a table cell

A peculiar but fascinating problem presented itself to me today. It was one of those; "oh yeah, I'd better look at that" kind of problems that you think you'll solve in a few minutes but eventually grow to take hours. Given a cell in a HTML table, what is it's column index? This seems like it's simple. [...] Read more...

Wednesday, 30. Jan 2008

It's a girl

At 3:38 in the morning on the 28th of this month, I had the pleasure of being present to witness the birth of my daughter. She weighed in at 14 marks - or 3550 grams1 - and has a slightly darker hair color (so far) than her parents. Her mother and I have [...] Read more...

Sunday, 11. Nov 2007

Safe fun with Object.prototype.

Lets look at two shortcommings of Javascript in todays browsers. The first is that you should stay away from Object.prototype (so as not to break other peoples programs). The second is that Javascript only has a single thread. We can fix the first using the advantage of the second. My idea is that if we have [...] Read more...

Thursday, 13. Sep 2007

Why I love open source

Something was wrong with the categories on this page. They just wouldn't produce a list of entries any more. I updated Wordpress to the latest version, and everything works again. Unfortunately, there is a bug which causes entries with 0 values in the URL's to fail - at least in my situation. I've fixed it twice [...] Read more...

Wednesday, 29. Aug 2007

Boy or girl?

We're probably gonna know the gender of baby 1.0 in a matter of days. Place your bets in the comments… Updated (7. 9. 2007 00:14): Results are in. Read more...

Monday, 27. Aug 2007

Wordpress plugin: Localized categories

I write in two languages, my theme exists in both translations. Yet, theme (or Wordpress) doesn't care to fit one to the other. It was time to do something about that. What I basically wanted was to be able to place all my English entries into a category, and then attach a locale to that category [...] Read more...

Saturday, 4. Aug 2007

My good fortune

So we had Chinese food: You are one of those people who "goes places in life". — 43 16 21 39 30 33 I can't help being slightly unnerved by those quotation marks. Is it sarcasm? Are they threatening me? What? Read more...

Sunday, 15. Jul 2007

In conclusion:

Verbal threats have little to no impact on the behavior of pets. The cat seems wholly unaffected by the possibility of having his head eaten. Read more...

Sunday, 17. Jun 2007

Oh, sweet justice

A dentist friend of mine informed me yesterday that dentists also find the sound of their drill uncomfortable. Words cannot describe how happy that knowledge makes me. Read more...

Tuesday, 9. Jan 2007

Replacing HR elements with images

Yesterday I was presented with the problem of using an image for the HR tag. Quick googling confirmed my suspicion, that this is something a lot of people want to achieve but apparently it can't be done because of, as usual, IE's limitations. The recommendations seem to be to either wrap the HR in a div [...] Read more...

Saturday, 9. Dec 2006

Javascript vs. Demoscene

What you are looking at is a javascript remake of a demoscreen from the world famous Union Demo (1989). The screen was originally designed and programed by the TNT-Crew. It firmly remains one of my all time favorite screens from my all time favorite demo. I built it yesterday as a test. The Starballs screen was [...] Read more...

Tuesday, 17. Oct 2006

Browser detection in Javascript

I have a need for a good, but not precise, browser sniffing script for purposes of web visitor logging. I have hacked together such a script. I would be very grateful if my visitors would tell me if the blue box is telling them the truth (javascript needed): It's been confirmed to work on: Mac : Safari [...] Read more...

Thursday, 28. Sep 2006

The Horror

I hear a lot of talk about disembodied heads… It seems like noone ever cares what happens to the disemheaded body. Read more...

Wednesday, 13. Sep 2006

Safari CSS parser bug

Here is a Safari CSS parser bug I found today: .i {border:0;.i} Put this invalid code anywhere in your CSS file and the parser will come to a grinding halt and look no further down the file. Another fine reason to validate your code. This may work as a hack as things placed below it will not show [...] Read more...

Monday, 11. Sep 2006

Selective randomness

A problem with truly random numbers is that they may not be perceived as such. I suspect my iPod of being an Abba fan. I however am not. Read more...

Sunday, 10. Sep 2006

Sensible terminal in OSX

This is what I need to do to get a comfortable working environment in bash/terminal for OSX: Get and install Fink System Preferences > Sharing > Computer Name: __ Terminal > Window Settings > Keyboard Delete key sends backspace Page Down = \033[6~ Page Up = \033[5~ Home = \033[H End = \033[F vi ~/bash_profile alias ll='ls -Glh' export editor=vi […] sudo apt-get install svn-client I also mapped shift+pageing [...] Read more...

Wednesday, 4. May 2005

Why ninjas are better than pirates

Ninjas are more bad ass than pirates! Ninjas have better hygiene, and they are less wasteful. Ninjas always put the toilet seat down and wash their hands after going to the bathroom. Ninjas kill everyone and they smell like fresh flowers. Pirates are covered in guts and man-spackle. They have food in their teeth. Ninjas also have magical ninjutsu powers [...] Read more...

Sunday, 13. Mar 2005

My favorite things

Meeting new people and warm friendly smiles Interresting music in all sorts of styles Wondering longingly what the day brings These are a few of my favorite things Aikido practice and things from Japan When everything works out according to plan The bright orange sun in Icelandic springs These are a few of my favorite things Crispy white footpaths recently snowed Well layed-out functioning [...] Read more...

Þessi síða

Greinasafn

Leit á þessari síðu


Page style: Use my settings