tag:blogger.com,1999:blog-213528042024-03-13T07:48:23.192+01:00some quick notes about IT (and organization)Erik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.comBlogger70125tag:blogger.com,1999:blog-21352804.post-58443555171599523992019-10-20T21:03:00.001+02:002019-10-20T21:03:37.365+02:00The writing continues on my own domainI haven't blogged here for a while, but for the last few months I've been writing a blog on my own domain, https://erik.itland.no
You if you enjoyed my writing here you are welcome to continue reading at my new blog.Erik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com0tag:blogger.com,1999:blog-21352804.post-87213662789124635572016-06-22T10:01:00.001+02:002016-06-22T10:01:47.405+02:00Things that will be lost on Windows reset (unless you backup)Checklist:
GPG4WIN
settings
keys
PuTTY
settings
keys should be fine as long as they are stored in a ordinary folder
Erik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com2tag:blogger.com,1999:blog-21352804.post-57500927257825564572013-09-17T22:33:00.001+02:002013-09-17T22:33:03.624+02:00The other perspective"If you look forward to go to work in the morning that counts for something as well, doesn't it?" - Succesful friend of mine answering questions from economics 101 some years ago.Erik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com0tag:blogger.com,1999:blog-21352804.post-34483434031829886412013-03-02T14:59:00.000+01:002013-03-02T14:59:11.062+01:00What is going on with the search results?When I see googlers in online forums defending the search results they often ask for data sets showing the problem. This isn't a data set but here should be some reproducible test cases that fails horribly for what was once the undisputed place to go for relevant search results.
Example 1: "sublime text 2" "focus group"
Query: "sublime text 2" "focus group"
Expected result: Documents includingErik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com2tag:blogger.com,1999:blog-21352804.post-44151518766218152302012-04-27T06:44:00.002+02:002012-04-27T06:44:06.861+02:00Recovering files from an unsaved project in Visual StudioWoke up early this morning and decided to train a little more .Net. Only to find that the project was not available under recent files. In hindsight this is how I think it happened:
I worked on an unsaved project without noticing it was unsaved.
The machine lost power
Windows didn't hibernate properly because the disk was crammed
Luckily the files where available under Visual Studio 2010\Erik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com0tag:blogger.com,1999:blog-21352804.post-48182460962260607602011-11-14T06:54:00.001+01:002011-11-14T07:44:34.821+01:00Review: Zenoss 4/5Have been runnning Zenoss for over a full year, here is my verdict:
Product (4/5):
Monitors hundreds of nodes running of a not to beefy vm.
Easily extendable.
Smooth upgrades. (Not automatic but well documented.)
User interface is sometimes a little hard to understand. Not bad for a product the size of Zenoss but not perfect either.
Documentation (4/5):
Lots of official documentation freelyErik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com3tag:blogger.com,1999:blog-21352804.post-71524711090884023652011-10-26T07:59:00.000+02:002011-11-12T16:55:12.955+01:00Review: Flexiglass 5/5If you are a Mac user that have spent any time on recent desktop Linux, chances are you will be missing Compiz-like window management.
(On a side note: Even Windows converts may be missing some niceties such as double click to maximize, or resize by any corner or window edge that wasn't added until Lion.)
I bought a Flexiglass license a couple of months ago and I love it. Flexiglass offers:Erik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com0tag:blogger.com,1999:blog-21352804.post-60933079115771854042011-10-25T22:26:00.000+02:002011-12-18T14:20:17.967+01:00Do those stylesheets really need to be in the page body?I once worked on a medium size enterprise software project that felt very sluggish and slow. I was new to the technology stack, new to anything but small web applications and I figured it just wasn't possible to get that particular stack any faster.
As the project went on features were added, more optimizations were added by expensive consultants, a few performance regressions were weeded Erik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com0tag:blogger.com,1999:blog-21352804.post-40021347623383454582011-04-05T21:12:00.000+02:002011-04-05T21:12:42.357+02:00Review: repositoryhosting.com 5/5I've been using repositoryhosting.com since late august last year, and it seems like now is a about time to write a very small review.
The good stuff:
Your choice of version control system:
Git
Mercurial
Subversion
Filestore with WebDAV included
Trac
Included plugins, selectable on a project by project basis:
Agilo
Timing and Estimation
Discussion Forum
Batch Modify Tickets
Custom Roadmap
Erik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com5tag:blogger.com,1999:blog-21352804.post-88971662827131568092011-01-09T22:53:00.000+01:002011-08-29T00:24:36.512+02:00RewriteBase takes one argumentStaying in Denver, CO, away from my family, and far from the development databases at work I decided I had time to work on a pet project of mine.
Knowing there will be a few hours on airports and in the plane on my way home I decided to get the project running correctly on my laptop before I continued work.
Then I ran into this:
Internal Server Error
The server encountered an internal errorErik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com0tag:blogger.com,1999:blog-21352804.post-63202156858181848402010-10-17T21:18:00.002+02:002010-10-17T21:33:21.456+02:00Configuring Mac Snow Leopard for Symfony developmentIf you want to develop symfony applications using the built in Apache web server in Mac OS X here are my notes. Keep in mind, this is not a production configuration but just the necessary steps to get a developer workstation up and running.
Activate Web Sharing
System Preferences -> Sharing -> Web Sharing
Change your UserDir settings. In a terminal window, edit the file with your userdir Erik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com0tag:blogger.com,1999:blog-21352804.post-26194732389857547752010-10-01T22:14:00.005+02:002010-10-01T22:14:00.115+02:00The web2py ideThe web2py ide is Firefox. Or Chrome, or Opera, or Safari (or Internet Explorer).
Just create a good old frameset and you can have split view between models and controller, documentation and even a preview running in one browser tab. Running the browser in full screen and the built in code editors in "full screen" (which fills the whole assigned frame), this turned out to work really well.
Erik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com0tag:blogger.com,1999:blog-21352804.post-13636387287695487992010-09-29T23:16:00.000+02:002010-09-29T23:16:41.630+02:00Quick hack to develop web2py on a different machineFor security reasons web2py will not allow you to log in as administrator unless you are logging in from the same workstation. (There are exceptions, but they are cumbersome: See the official book for full details.)
However, there is a quick hack that allows you develop from any machine: Just set up a ssh tunnel:
ssh username@ip_address_or_dns_name -L 8000:127.0.0.1:8000 -N
As usually, I Erik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com0tag:blogger.com,1999:blog-21352804.post-71328013306011973912010-09-29T22:58:00.000+02:002010-09-29T22:58:19.100+02:00Using web2py, first impressionsI've had the opportunity to do some quick prototyping in web2py in my spare time over the last few weeks. Here are some very quick notes about what to like and what not to like:
Good:
Works out of the box. Just download, open, choose password, press start. Your default browser starts automatically.
Automatic updates (beta warning, bur works.)
Built in editor and version control.
Built in user Erik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com6tag:blogger.com,1999:blog-21352804.post-52381076638458020392010-05-30T10:02:00.002+02:002010-06-13T23:10:18.876+02:00Getting ipythonx to work with Mac OS XIf you're trying to get ipythonx to work under Mac OS X 10.6 Snow Leopard you might get and error message like this:
ImportError: /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/wx-2.8-mac-unicode/wx/_core_.so: no appropriate 64-bit architecture (see "man python" for running in 32-bit mode)Here's a couple of hints:
Use standard ipython instead. Unless there was Erik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com0tag:blogger.com,1999:blog-21352804.post-21009113233487183362010-05-25T21:41:00.001+02:002010-05-25T21:43:12.283+02:00Copy OpenVPN settings from Tunnelblick on Mac OS X to Windows 7I forgot the charger for my job laptop in the office today. So I spent the last few minutes of battery copying the configuration files to the pc at home.
Below is what I ended up doing:
Install OpenVPN software. You can find it on the official OpenVPN site.
Copy all the config files from the job laptop to C:\Program Files (x86)\OpenVPN\config. The job laptop uses tunnelblick, so the files was Erik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com2tag:blogger.com,1999:blog-21352804.post-1361878026486390812010-04-09T21:45:00.010+02:002010-05-08T23:58:02.084+02:00Swithing to Mac - one year afterThis has been a long time coming, but here it is: My "Switching to Mac story".
I've been working on this for almost a full year. It started with three optimistic blog posts about the things I learned while unlearning Windows, and then reality struck me: I thought Mac supposed to be almost like Linux, supported. It is not.
Here is a nice summary of the differences between Mac and PC: Top Ten Erik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com4tag:blogger.com,1999:blog-21352804.post-86261274629404249312010-04-05T21:16:00.001+02:002010-04-05T22:12:38.750+02:00The real reason why we don't use silverlight or flashI think I speak on behalf of a lot of people if a say:
A lot of silverlight & flash fans are missing the point: We know about flash. It's not that we somehow do not "get" silverlight. We program Java, PHP, Python, -list goes on and for many of us also includes C# and actionscript. We do use a lot of different frameworks. Learning new stuff is part of our daily grind (and to be honest, we mostly Erik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com1tag:blogger.com,1999:blog-21352804.post-91582357432998645332010-03-25T19:46:00.000+01:002010-03-25T19:46:05.029+01:00Simple recovery of deleted files from ext3 file systemsYesterday I finished recovery of about 8000 photos by burning them to DVD and handing them over to a friend of mine.
Recovery of files from ext 3 partitions have long been considered somewhere between hard and impossible, but thanks to free and open source PhotoRec the recovery was done automatically during the night after answering a few, relatively simple questions. Next day I just rsynced theErik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com2tag:blogger.com,1999:blog-21352804.post-56599473832988942022009-11-03T06:45:00.004+01:002009-11-03T06:49:59.469+01:00Spam and malware, with screenshotsGot this fake antivirus message yesterday and thought it might be worth sharing:
This one was rather well crafted, but they obviously didn't take the time to check operating system, even though they found my ip address. (See bottom left.)
Here's another one. This one I got in mail a few weeks ago, from a friend who obviously got her email account stolen:
It's in norwegian, and it's Erik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com1tag:blogger.com,1999:blog-21352804.post-2895530666098676542009-10-29T23:01:00.001+01:002010-06-13T23:08:42.100+02:00Windows 7 failI downloaded the Release Candidate of Windows 7 earlier this year, and today I decided to give it a try. After booting from the dvd and asking a couple of questions it asks for a cd rom driver(!).
What did you say, Microsoft? You are booting from that CD rom drive. You also have a whole DVD to store whatever drivers you need. Every major linux distro I've tried manages include drivers for my cd Erik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com0tag:blogger.com,1999:blog-21352804.post-65640582713832672202009-10-18T00:44:00.000+02:002009-10-18T00:44:18.858+02:00Creating Drupal themes from scratchIf you want to create Drupal themes from scratch, i.e. you do not want to modify an existing theme but rather paste your own html and insert placeholders, MODx style, then this post is for you.
MODx has long been my favourite framework because of it's simple and powerful templating system (copy and paste your html, insert placeholders, go), but recently the lack of visible activity has Erik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com0tag:blogger.com,1999:blog-21352804.post-24163228795411751132009-10-15T23:07:00.000+02:002009-10-15T23:07:03.229+02:00I'm new with drupal, and I wish sobody told me this yesterday: To make an absolute link to an image in a theme, without worrying about where the theme is going to be installed, you can do the following:
<img alt="logo" src="<?php echo(base_path().drupal_get_path('theme','your_theme_name'))?>/img/some_image.png" />
If you are using phptemplate, the drupal_get_path-call might be Erik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com0tag:blogger.com,1999:blog-21352804.post-59488302488986250882009-10-15T22:24:00.008+02:002009-10-15T22:32:03.118+02:00Netbeans got a nice css previewWas doing some spare time drupal work in Netbeans 6.8 when I suddenly found out it had working css preview. See screenshot below for details:
Logging into my other (work ) account I found it in Netbeans 6.7 too, which explains why it wasn't mentioned in NetBeans 6.8 -- New and NoteworthyErik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com0tag:blogger.com,1999:blog-21352804.post-13380645428361555572009-05-10T01:18:00.003+02:002009-05-10T02:11:45.768+02:00The "bug"
A couple of days ago I troubleshooted some code that was supposed to take a ResultSet as input and return a String as output. For some reason it would just skip the entire resultset, regardless of what I did.
In hindsight, it's funny. That last() gave me a lot of debugging, including looking for possible concurrency issues. Don't know why I put it there in the first place either :)Erik Ihttp://www.blogger.com/profile/01074575686725401302noreply@blogger.com0