iPhone endeavours

November 1st, 2009

When the iPhone arrived I did not really fancy it much. Circumstances would that a couple of weeks ago I had to acquire an iPhone 3GS due to some work, and hey — I suddenly understood what a revolution it was. You can easily find other phones and gadgets with better specs, but hey, this just works, and the appStore was a master stroke.

Anything wrong with it? Yeah, one thing bothers me enough to nag — that you cannot run stuff in the background. I understand their reasons – less stability to care about, and another upgrade possibility :)

A single occasion of blank/black screen on the iPhone 3GS was solved by resetting it (10 seconds on suspend on home simultaneously) – thanks to this post (I tried the buttons before googling, but did not realise that I should home them down for SOOOO long, and no, nothing got deleted.

The image of this post was taken with the iPhone and used in a tweet using twitterific.

D90 GPS options

August 24th, 2009

Still playing around with what kind of GPS I should get for my Nikon D90, see my GPS post, and D90 Camera post.

  • This looks nice and simple http://www.di-gps.com/di-GPS/img/mini2s_02.jpg(just works): di GPS mini IIs, priced around 700 DKK with current exchange rates
  • This also looks OK, but rather more expensive, Geotagger N2 GPS, prices around 1500 DKK with current euro (locked to DKK, so no currency effect worth talking about)
  • This shop has all the cables (very complex it seems with all those combinations), put together it costs around 500 DKK and it looks like:
  • Alternatively one could try with the data cable to the holux, but it’s clumbsy and I think there will be problems with the holux baud rate (38400) and the cameras (4800), at least according to what I have read on a GPS source and camera sources. The cable is around 200 DKK. And the GPS, as I remember it, around 400. But as I write, i don’t think it will (just) work.
  • Forgot to mention the original nikon answer, the Nikon GP-1, which, through Amazon.co.uk is available for 1860 DKK, read the review.

Hope this is useful to someone. If so, please leave a comment about the happiness of your purchase, so I can pick which one I should go for.

UPDATE

Found this favorable review of the N2 geotagger, my main problem with the N2 is that you can only buy from their own home page, and that you have to use paypal. And another favorable review, and yet another one It looks like you can buy it from this shop within the EU domain. The EU price is much higher than price when from the manufacturers home page, probably customs or the like.

Just ordered it, used the cheapest alternative, the makers site, we’ll see if there is a hidden cost somewhere. And the paypal pay was not a problem, I could just enter my visa details, no need to create a paypal account.

Paying the music industry for a memory card intended for my photos?

July 20th, 2009

I just almost purchased a memory card from a Danish e-shop. I needed it for an image frame with my own pictures.

The last screen before approving showed:

copy-dan_flashcard

copy-dan_flashcard

For non danish speakers I can point to line three mentioning “Copy-Dan”, which is a fee to the danish music industry, because they have negotiated a fee on assumed copy of pirated materials to digital media.

It is a small amount (like a piece of chocolate), but it’s still more than 10% of the purchase (excluding postage). If I paid, I would feel obligated to pirate some piece of music, and I don’t want to do that. Instead I went to pricerunner.co.uk, to find a quote in a country I don’t know of having introduced such an insane assumed pirate fee. (I could have chose pricerunner.de as well, but the British Pound is not what is used to be, so I went for the cheaper alternative based on an earlier price comparison).

The result was  a total of 43 DKR (instead of the 62 DKR above) and a good feeling in the stomach of not being an assumed pirate.

:)

antispam measures and virtual domains for postfix

June 11th, 2009

Anti spam measures

spam

spam

The following few additions to postfix main.cf:

### SPAM Prevention techniques
### http://www.cyberciti.biz/tips/postfix-spam-filtering-with-blacklists-howto.html
### disable_vrfy_command = yes

smtpd_recipient_restrictions = permit_mynetworks, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unauth_destination, reject_unauth_pipelining, reject_invalid_hostname, reject_unknown_sender_domain, reject_rbl_client zen.spamhaus.org, reject_rbl_client bl.spamcop.net, reject_rbl_client dnsbl.sorbs.net, reject_rhsbl_sender dsn.fc-ignorant.org, check_policy_service inet:127.0.0.1:60000, permit
smtpd_data_restrictions = reject_unauth_pipelining, reject_multi_recipient_bounce, permit

In addition to this, I Installed postgray, a post processor to postfix, which rejects new mail servers the first few times, for a little while. Real smtp servers will re-deliver later. Spambots, it is said, are not always that patient.

Those two measures together have reduced my spam flow for a single mail account (with many aliases) from one spam an hour or more, to no spam in a week.

Virtual domains

virtual

virtual

For my new pet project I am dreaming I need to have more domains configured into my postfix installation. I first followed this blog entry about virtual domains for postfix but I saw the following errors:

Jun 11 20:51:07 d505 postfix/virtual[15433]: fatal: main.cf configuration error: virtual_mailbox_limit is smaller than message_size_limit

this was easily fixed by adding the key to main.cf with an appropriate value.

Next error was unrecognised user:

to=<REMOVED@iamdreaming.org>, relay=virtual, delay=0.02, delays=0.02/0/0/0, dsn=5.1.1, status=bounced (unknown user: “REMOVED@iamdreaming.org”)

Still working on it ….

It did not recognise my first alias.

Then I checked out the file /etc/postfix/virtual. That rang a bell, it provides a mapping from email@somedomain to some other email, and that was really what I needed. So I reverted the changes form above and tried out out to just provide virtual aliases.

After much mocking about, I found that the following two lines in main.cf had the effect that I wanted:

relay_domains =
iamdreaming.org
bition.net

virtual_alias_maps = hash:/etc/postfix/virtual

in /etc/postfix/virtual i then list the email adresses from the domains, REMOVED@iamdreaming.org etc. and their real destinations (e.g. at efef, gmail or someother).

Nice with a little sucess in just a few hours, I must admit that I have been tempted to skip having my own smtp server and just move it to some provider, but now, I think I will continue yet some.

Analytics

May 14th, 2009

Pursuing how to analyse model of date. Found a link to a, seemingly, nice java open source framework, neuroph, for doing neural networks. Since I worked with NN for my master thesis, I would love to make a little visit, even if it is not the right tool for the job, it would be good for nostalgia.

NN ScreenShot

NN ScreenShot

UPDATE: Found a nice free map service for low-traffic sites like this, check the top of the sidebar. I found it on a blog when researching another topic, pooling JMS connections, which he had worked on.

Super Modelling

May 3rd, 2009

You might expect to see:

super model Heidi_KLUM

super model Heidi_KLUM

Here for the right reasons? Then this is the picture you would expect to see:

M0 to M3 in the MOF (Meta Object Facility)

M0 to M3 in the MOF (Meta Object Facility)

TO BE UPDATED, right now reading about DSL and EMF in a book …

Managing development projects

April 28th, 2009

Successfully managing development projects meeting a deadline delivering something value is a valuable skill to have. Even if you wince a boring parts of “managing”, it is nevertheless a useful skill to master at “enough of” – enough to get the job done, enough to get people off your back.

This article nice introduces how to do agile project planning. Short, good, free, available through your browser.

I also have the book, manage IT – your guide to modern pragmatic project management lying around – extremely good project mamagement book. I would never hire an IT project manager that did not nod at the core values and lessons in the book.

project triangle

project triangle

Web CMS

April 11th, 2009

I want to pick a CMS for a web service I am contemplating. Nice requirements:

  1. easy to use
  2. speedy serving of pages
  3. nice URLs
    1. (no gets) making it easier to use with e.g. varnish
    2. not causing problems for SEO
  4. Good support.
  5. blog included, or nice integration with wordpress
  6. good community support (comments, arcticle contribution), bulletin boards, faqs
  7. possibility to let users use ids from popular sites like facebook. Is openid the stuff to use?

I googled a bit, of course, and found the practical CMS overview site, I sorted their view by rating and I picked a few candidates using my year old nose for good open source software (which seemed to follow the CMSes with a higher number of good ratings). Some of the names sounded familiar, so I had probably read about them on lwn, slashdot or similar site. In parenthesis are candidates I just remember (before seing them on the site). UPDATE (in parenthesis, my gist after reading comments from the above linked site).

  1. joomla (for designers, easy to use)
  2. drupal (high powered, for developers, perhaps old code not that clean)
  3. website baker (very easy to use, not that many modules, probably gives you an easy start)
  4. silver strite (another easy to use thingy, I think website baker may be prefereable).
  5. (zope)
  6. (plone)
  7. (slashcode)

Will update this entry when I have experimented with one or more of them.

UPDATE:

I have tried out drupal since initiating this post. I have been so successful that I have not yet considered prioritising trying out any of the other CMSes. The site I have created is I am dreaming – a site about the dreams people have and how to realise them by sharing them in the community.

screen shot of i am dreaming front page

screen shot of i am dreaming front page

There is a tremendous amount of modules for drupal and so far I have only had to inpack them and the configure them through the web interface (sure enough, there’s a few I have not yet tackled, but we are speeking of leaving them be after 5 minutes of struggle because something else was easier and as interesting). This blog lists a few reasons to use drupal and lists 10 top sites (including yahoo, aol) that use drupal — impressive).

/\/

The moon

April 9th, 2009

On easter vacation I can combine two dear interest, tech and nature. A picture of the moon using the D90, blogged from my N800 :-)

Moon behind trees
Not as cools as the real stuff, recently restored from stuff stored in a garage, but I like being close to trees too (hey, I have to say that, no-one is offering me a trip to space any time near soon)

Posting this image was not straight forward. It’s 5Mb which exceeds the wordpress limit (in my installation at least). There was a plenty hits on the error message:

[Thu Apr 09 22:46:20 2009] [error] [client XXX] ALERT – script tried to increase memory_limit to 67108864 bytes which is above the allowed value (attacker ‘64.78.155.100′, file ‘XXX//wp-settings.php’, line 16)

The solution, adding

define(‘WP_MEMORY_LIMIT’, ‘64M’);

was enough. Got me another error:

[Thu Apr 09 23:03:33 2009] [error] [client XXX] ALERT – script tried to increase memory_limit to 67108864 bytes which is above the allowed value (attacker ‘XXX, file ‘XXX/wp-settings.php’, line 16)

Probably a php default setting somewhere. The following (guessing that there might be a 32M settting somewhere) helped me locate the line to bump up for php in general:

# find /etc/|xargs grep 32M

So to fix it I bumped the following line to 64M:

/etc/php.ini:memory_limit = 32M ; Maximum amount of memory a script may consume (32MB)

The rest is history ;)

Another blogclient test

April 7th, 2009

Test from maemowordpy

Turned out that I had not noticed that my user name was capitalised when configuring access to my blog. A rather common problem with ‘helpful’ mobile devices.

My feet

now lets us see if snapping an image with the built-in camera can also be uploaded? Read the rest of this entry »