Archive for the ‘Geekstuff’ Category

When cycling with my Garmin Edge 705 I usually plan my trip on gpsies and download a TCX file which I can upload to my device.
I then only have to follow the path on the screen. No more map reading and beeing lost. There is even an elevation map on the device, but you never see exactly how many meters you have to climb and how long it will last.
So I tried to create a tool which extends the TCX file by adding warning points before the hill and on top of the hill. You’ll get warned with a message telling how many meters it will approximately go up and how far it’ll be to reach the top.

I did use some xml parsing and mainly gaussfiltering. I’m not happy overall, as the results do vary depending on the input.
You might us the tool at your own risk.

I just got an iPhone and I’m stuck in the desire to be able to read my RSS feeds defined in my RSS client on my mac. I use Netnewswire.
I was happy to hear, that there’s a NetNewsWire app for the iPhone and that there’s a syncing possibility with an account on newsgator.com.

There are several problems:

  • The iPhone app does only show the feeds having unread messages. But I sometimes want to read posts a second time.
  • The “message read” information doesn’t seem to be synced correctly, there are a lot of differences on the clients about read messages.
  • The biggest problem: When syncing is activated, it’s not possible anymore to update your feeds manually in the NetNewsWire. Your feeds will be updated, as Newsgator does it. There’s a good post about the retrieving interval methods of Newsgator.

I do have feeds I update manually on a regular basis, e.g. twitter or flickr. Sometimes special events or occurrences will also trigger my manual updates. But when synced with Newsgator you’ll loose that possibilty. I don’t know yet if I really want to loose that option. On the other hand, I won’t be able to read my feeds on the iPhone…

Problems humankind has nowadays…

If you want to remove the dotted border of a focussed html element, you can do this with the following CSS definition:

outline-style: none

You might consider usability problems and accessibility before doing that. I’ll use it for a star rating tool.

Probably everybody knows it. It’s not the first time I got an “alert”. Everytime I did send a dummy SMS. But this time I didn’t. I really don’t know what’s their purpose. Getting angry customers? Or do they have too many customers and want to get rid of them?
Ok, skype you just lost one. I won’t give you any money anymore. For sure. But I’ll keep using your free services.

========================================================================
============== THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY ==============
========================================================================

Hi there,

Unfortunately your Skype Credit balance has expired due to 180 days’ inactivity on your account.
We sent you three reminder emails, but as we explained, this now means the balance you had in your account has been cleared.

Below is the Skype Credit expiry policy, detailing why your balance expired.

=== What are the rules for Skype Credit expiry? ===

1. Skype Credit expires 180 days after your last credit purchase or action that used credit eg calling phones, SMS message.
2. Each purchase, call or SMS message resets the expiry time to 180 days.
3. Unfortunately, if you don't use your remaining credit the balance will expire to comply with normal business accounting rules.
4. You will receive reminder emails 30 days, 7 days and 72 hours before your credit expires.

Talk soon,

The people at Skype

In Firefox 3, an autoselection of the url was introduced when clicking once somewhere in the url. I really hate this new mechanism.
I just found out how to deactivate:

1. Type "about:config" in the url
2. Filter "clickSelsectsAll"
3. Doubleclick on "browser.urlbar.clickSelectsAll" (sets it to false)

Your done!

If you’re an online shop and want to allow creditcard payment with foreign currencies (i.e. not Swiss francs) you need a contract with a creditcard company.
Besides taking about 3.5% of submissions (amex) they also want even more money:

“As a non UK legal entity, your merchant account will sit on our Multi-currency
database and will therefore incur an annual fee of €160 and $200 respectively.”

WTF?!? Creditcard companies are just plain evil!

[ Update: It's already sold. Wow that was fast... ]

I’m selling my 2-years old PowerBook (date of purchase: 5-Feb-05). No I’m not moving back to Windows. I just bought a MacBook Pro and don’t need my old one anymore.

It’s in very good condition and comes with MacOS X v10.4 installed.

powerbook g4

Technical specification
- PowerPC 1.5GHz
- TFT widescreen 15.2" (resolution 1280 x 854)
- Harddisk 80GB
- RAM 1GB PC2700
- 8x SuperDrive DVD RW / CD-RW
- Built-in 10/100/1000BASE-T (Gigabit)
- Built-in 54-Mbps AirPort Extreme
- Built-in Bluetooth 2.0+EDR
- Built-in 56K V.92 modem
- Swiss keyboard
- Modem cable, power adapter with cord
- Serial number: W85060E3SQ6
(more spec @ apple)

Price : CHF 750

Delivery should be around Zurich, Switzerland.
Please contact me on skype download skype or by mail: powerbook at 2ni dot ch.

Technorati Tags: , , , ,

Refactoring is always a good thing… Cleaning some code, make it faster, shorter, better. The same thing needs to be done with the hardware. That’s what Chris, Urban and I did last Thursday with our cluster in Oerlikon. Besides it looks much better now there are some other advantages.

We moved away some old servers and replaced them by (less!) new ones, such as the new poweredge 1950. We could reduce the latency of map.search.ch by 2 and we save maintenance, power and storage costs as well.

But there is one small inconvenience as well: heat. As the same power does use less and less power, the heat comes also on less space. We had some problems at the beginning, when the servers where one on top of each other (IO transfers on the harddisks started to get very slow on some machines). So we had to put some space between each server to guarantee a better cooling. Now everything works well!

cluster

Technorati Tags: , ,

One of the good things about the new mac, is that you can easily access your local website development environment on the Internet Explorer from a windows system as well without the use of a second computer. Especially when developing websites it is a must to check your implementations on different browsers such as Internet Explorer as most of the people will use that one.

I found a good tutorial on how to set up virtual hosts with parallels and OS X, but I had to configure some more settings to get it work.

The whole idea is to stay on the same network in your OS X and your windows installation (using parallels) to be able to access your local web server. I use 10.1.2.* for that matter. There are some other ways such as accessing your virtual host directly by ip, which only works if you have only one virtual host installed. And you still have to stay on the same network, so if you change to another internet connection (i.e. changing location) you might need to adjust your settings as your network changed.

You can have a set up working all the time with the use of a secondary ip on both systems installed on your mac (windows installed with parallels).

1) Setting up your OS X

Set up your web server on your OS X the manner that you have a virtual host on the ip “10.1.2.2″. Your httpd.conf would look something like this:

Listen 10.1.2.2:80

<VirtualHost 10.1.2.2:80>
ServerName www.romazini.com
ServerAlias romazini.* www.romazini.*
ServerAdmin webmaster@romazini.com
DocumentRoot /www/romazini.com/doc
CustomLog /www/romazini.com/log/access_log cookies
ErrorLog /www/romazini.com/log/error_log
...
</VirtualHost>

Duplicate your network port on System Preferences / Network by choosing “Network Port Configurations” in the dropdown. I just duplicated the AirPort and set the ip “10.1.2.2″.

Network preferences Port Duplication

Add the following line to your /etc/hosts on your OS X (be sure to use a tab between the ip and the host):

10.1.2.2    romazini.localhost

Now you should be able to access your virtual host from a browser on your OS X. You might need to wait a little until the changes are recognised by your system (you can check with “ping romazini.localhost”).

2. Set up your windows xp

Next step is to set up a secondary ip on your windows on the same network, i.e. “10.1.2.3″. Go to Systemsteuerung / Netzwerkverbindungen / LAN-Verbindung / TCP/IP / Eigenschaften and Click on the tab “Alternative Konfiguration” where you can add a your secondary ip, such as “10.1.2.3″ in my case.

Network settings on windows

Add the following line to the file C:\WINDOWS\system32\drivers\etc\hosts (with notepad)

10.1.2.2    romazini.localhost

That’s it. You should now be able to access your local host from the windows system as well. By the way: I had to change the Network Adapter to “Shared networking” in parallels to make it work. Don’t know why exactly.

Technorati Tags: , ,

Berni and Jürg talking about SEO and backbuttons.
Both presentations are available online.

- indexer are lazy and do not handle js
- standard seo stuff can be found at Jürgs presentation of last week.
- possible ajax usage:
  - ajax as add-on (autocomplete, ...)
  - ajax as one-page website
- test your page from the point of view of a search engine (act like it)
  - lynx, wget, ...
  - no js, no cookies
  - check your logs with search engine user agents.
- page which should be in index
  - unique url
  - use default html links
  - getable without js, cookies
  - valid xhtml
  - page title
  - keyword (3-5%)
  - link building
- Problem with ajax: No (perma) url!
- (Berni takes over)
- Problems occur with user habits: backbutton, bookmarks, mail links, reloads, opening in tab / new window...
- "Principle of Least Surprise"
- Global naming leads to global network effects 
- reload trick: use fragment identifier (# - Part in uri), usually used for in page navigation
  - window.location.replace(window.location.search + '#' + state);
  - replace import for history issues
  - check state regularly (in application)
  - state has all to allow view
  - does not contain session or random id's
  - issues: no history entries, click sound in IE when state changes occur
  - you can store states in hidden fields as well (state will be lost in shift+reload)
  - alternatives: sessioncookie or flash storage (solves reload problem)
- simulate clic link without moving away from page
  - iframe (ie 5.5+, firefox)
  - hash in uri (firefox, safari)
  - must implement both
  - iframe must be created in html, title defines entry in history
  - use different approaches for different browser (no way around)
- open in new window
  - use normal link in href, use onclick event for interaction
- use GET for caching, POST for not caching states

Technorati Tags: , , , , , ,