Monday, 4. Aug 2008
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...
Sent at:
23:16
.
Author:
Borgar .
Sunday, 15. Jun 2008
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...
Sent at:
14:30
.
Author:
Borgar .
Thursday, 29. May 2008
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...
Sent at:
23:22
.
Author:
Borgar .
Wednesday, 27. Feb 2008
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...
Sent at:
0:36
.
Author:
Borgar .
Wednesday, 30. Jan 2008
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...
Sent at:
1:37
.
Author:
Borgar .
Sunday, 11. Nov 2007
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...
Sent at:
14:07
.
Author:
Borgar .
Thursday, 13. Sep 2007
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...
Sent at:
1:49
.
Author:
Borgar .
Wednesday, 29. Aug 2007
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...
Sent at:
18:24
.
Author:
Borgar .
Monday, 27. Aug 2007
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...
Sent at:
21:51
.
Author:
Borgar .
Saturday, 4. Aug 2007
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...
Sent at:
12:14
.
Author:
Borgar .
Sunday, 15. Jul 2007
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...
Sent at:
19:01
.
Author:
Borgar .
Sunday, 17. Jun 2007
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...
Sent at:
21:36
.
Author:
Borgar .
Tuesday, 9. Jan 2007
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...
Sent at:
14:52
.
Author:
Borgar .
Saturday, 9. Dec 2006
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...
Sent at:
10:52
.
Author:
Borgar .
Tuesday, 17. Oct 2006
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...
Sent at:
18:56
.
Author:
Borgar .
Thursday, 28. Sep 2006
I hear a lot of talk about disembodied heads… It seems like noone ever cares what happens to the disemheaded body.
Read more...
Sent at:
9:55
.
Author:
Borgar .
Wednesday, 13. Sep 2006
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...
Sent at:
18:03
.
Author:
Borgar .
Monday, 11. Sep 2006
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...
Sent at:
13:42
.
Author:
Borgar .
Sunday, 10. Sep 2006
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...
Sent at:
14:54
.
Author:
Borgar .
Wednesday, 4. May 2005
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...
Sent at:
16:56
.
Author:
Borgar .
Sunday, 13. Mar 2005
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...
Sent at:
19:15
.
Author:
Borgar .