Anyone that can read now knows that a few guys, 4-5, have managed to put a whole nation on the street. A whole nation is now on the streets asking foreign countries for loans, and surprisingly no one is answering the call except for Poland and Faroeisland.
That companies and most young people are loosing everything and declaring one self concourse is the better alternative of two to get out of this mess is in parts self made and is parts peer pressure. But why does it seem that a few individuals are getting a "free out of jail" cards handed out ? Why not everyone ? If Gordon Brown wants his money back from the Icelandic people he does not have to go far to get them, most of these criminals behind the worlds biggest bank heist all live in London. Sigurdur Einarsson and his friends are all living happily away in London not paying taxes or their dues. Gordon, go fetch.... Good dog...
Who would be interested in what is happening in Iceland now ? All the "viking cowboys" are getting their debt written off even though it caused the economic crash of a whole nation. Jon Asgeir, owner of Bonus and used to own Donna Karan, House of Fraiser and more owes the Icelandic banks 116 billion kroner, and now only needs to cough up 7 billion to be debt free.
This is just the tip of the Iceberg. One other guy owed 1 billion and said to the media after the debt was cleared (by paying 0 kr) that it was not the right thing to do to pay the debt, as it was lost money.
After a huge and successful marketing of foreign currency loans, most people my age (25-40) have such a loan after almost being forced by the banks (calling one stupid if he did not take such a loan), either he owns a car that used to cost like 200.000 nokr but now he owes 500.000, you can just imagine how much mortage loans have risen.
No normal person is getting his/hers loans written off. Just the sum that Jon Asgeir got written off could easily pay most if not all loans people have in the country.
Then you might say that who benefits from making these guys concurs, the banks. The banks are now owned by the government and it would benefit. Bonus has had 60-80% of the daily market in Iceland for the last 10-15 years, still they owe this much.
By not allowing these crooks to keep their money and treating them as everyone else is just fair, no worse, no better, just the same. Fair is fair
Tuesday, November 3, 2009
Thursday, October 8, 2009
Installing ruby and RMagic on Centos 5.2
I will write a little more about this. But I just installed a centos 5.2 box, ruby-enterprise, the fantastic ruby implementation by phusion.nl along with passenger, made by the same people. Everyone should support them, I have.
But when I installed the awesome plugin RMagick, things started to go wrong.
First it complained that I had to old ImageMagick installed. That is easy to fix. I removed the package with rpm -e, then downloaded the lastest source code and compiled and installed. Simple so far.
Then I tried to install RMagick. It installs fine, but crashes in start. Once you launch console, and type 'Require 'RMagick'' crash.
But I found the solution on this blog
http://www.semanticpool.de/cannot-open-shared-object-file-no-such-file-or-directory/
Simple to fix. You just add /usr/local/lib to your lib directories with ldconfig /usr/local/lib
And now everything works as it should.
But when I installed the awesome plugin RMagick, things started to go wrong.
First it complained that I had to old ImageMagick installed. That is easy to fix. I removed the package with rpm -e, then downloaded the lastest source code and compiled and installed. Simple so far.
Then I tried to install RMagick. It installs fine, but crashes in start. Once you launch console, and type 'Require 'RMagick'' crash.
But I found the solution on this blog
http://www.semanticpool.de/cannot-open-shared-object-file-no-such-file-or-directory/
Simple to fix. You just add /usr/local/lib to your lib directories with ldconfig /usr/local/lib
And now everything works as it should.
Wednesday, July 22, 2009
More posts
I have been really bad writing this blog, but if someone is reading this blog, I promise to be better.
But I might stop using blogspot as it does nothing for me, at least I don't know that it does, and I want to do my own stuff.
But I might stop using blogspot as it does nothing for me, at least I don't know that it does, and I want to do my own stuff.
I am a git
I decided to write a new web application a few weeks ago. I decided to use CakePHP, MySQL and git for version control. A brand new product deserved to be the first large product I make using git, have used subversion before, but as git can talk subversion, I will import all to git later.
I do most of my programming on my MacBook Pro, but sometimes my daughters make to much noise (or my wife) and I go to the cellar and use my Mac Mini, I have an office in the cellar. I like using the Mini because it has very nice 22" monitor (Samsung) and it has a real keyboard, but I do feel a huge difference using it in another way, my MBP has 4 GB memory and my Mini only has 2 GB, it feels.
This is also my first web project that I do 100% locally. My database is local, my website and web server is local and I only edit files that are local. As Coda allows you to work remotely with the same effort as working locally, I have always done so.
My tools are Coda editor from Panic (www.panic.com), highly recommend it when using PHP and doing CSS. I also use Pixelmator for all graphics, man is this one sweet software, and fun and easy to use. I always work with MySQL using the command line. But now as I was doing quite a lot of work on the database, constantly adding tables and fields, while tuning indexes, it was too much, so I decided to find myself a good gui client. I did not want to install phpmysqladmin. Cocoa SQL came to mind, but it was dead, but had a link to Sequel Pro. Really nice software.
But working on my 2 Macs and having a live site on a Linux box was a bit of an hassle to start with. But after a well crafted .gitignore file, and removing databases.php, core.php and webroot/index.php from the git repo, I was in business. These are my steps, all done from my MBP (or Mini).
If I wanted to add a 3rd machine, this is what I would do. Lets imagine that my host is example.com. To start with, my server is up to date with source code and I have ssh keys in place so I don't need to use passwords, if you can't do this, just use ssh://user:password@host.com:/full/path/to/directory instead.
On my local machine, I do this
mkdir /Users/tj/Sites/example.com
cd /Users/tj/Sites/example.com
git init
Now I have a fully working directory and an empty git repo
If I had never ever used git on this machine before, I would do this
git config --global User.name = "Trausti Thor"
git config --global User.email = "tj@example.com"
Now I would add a remote repository (repo from now on). This would point to my web server.
git remote add origin ssh://example.com/home/tj/programming/example.com
I would name my shortcut origin as it seems to be an agreement by all git users to use that, of course you could use whatever you want, and if you are working in a group you would add remote for each programmer you want to use code from, also origin is default used by git if you don't type it in as a parameter with a bunch of commands.
Now on my client, inside my empty git directory, I could do a clone, but I see no reason to do so and would do this
git pull origin master (you could use fetch later to see the difference but then you have to merge manually)
This gets the master branch from the above origin server, but if you only want to do this once (like the repo was on your friends server and you will probably never ever use it again, this is what you would do from your directory
git clone ssh://friendscomputer.com/home/friend/software/website.com/.git .
Note the trailing .(dot) that means use THIS local directory, otherwise it will make a directory inside your directory, which is also a no problem. But if you do this, you must remove your .git directory, as you don't need to have done 'git init' when you clone.
In any case, you now have a fully working development directory and git to use it. Now you just start programming.
As git is extremely fast, so fast you never wait for it, and as it does not write configs all over the place like some un-nameable products (subversion), you should commit a lot. You should consider every task as a commit. So when you finish styling headers, commit, when you finish that function, commit, when you start an empty class, commit. As I read on some other place, the rule of thumb to work with, is if you have to use more than 1 sentence (including comma separated) to describe what you just did, you did to much for one commit.
One thing I always do, I always work on a development branch, I never work directly on a master branch, never ever. I will explain that part in another post, but using branches in git is awesome.
I hope this small article will make you get up to speed using git.
Now you are in business
I do most of my programming on my MacBook Pro, but sometimes my daughters make to much noise (or my wife) and I go to the cellar and use my Mac Mini, I have an office in the cellar. I like using the Mini because it has very nice 22" monitor (Samsung) and it has a real keyboard, but I do feel a huge difference using it in another way, my MBP has 4 GB memory and my Mini only has 2 GB, it feels.
This is also my first web project that I do 100% locally. My database is local, my website and web server is local and I only edit files that are local. As Coda allows you to work remotely with the same effort as working locally, I have always done so.
My tools are Coda editor from Panic (www.panic.com), highly recommend it when using PHP and doing CSS. I also use Pixelmator for all graphics, man is this one sweet software, and fun and easy to use. I always work with MySQL using the command line. But now as I was doing quite a lot of work on the database, constantly adding tables and fields, while tuning indexes, it was too much, so I decided to find myself a good gui client. I did not want to install phpmysqladmin. Cocoa SQL came to mind, but it was dead, but had a link to Sequel Pro. Really nice software.
But working on my 2 Macs and having a live site on a Linux box was a bit of an hassle to start with. But after a well crafted .gitignore file, and removing databases.php, core.php and webroot/index.php from the git repo, I was in business. These are my steps, all done from my MBP (or Mini).
If I wanted to add a 3rd machine, this is what I would do. Lets imagine that my host is example.com. To start with, my server is up to date with source code and I have ssh keys in place so I don't need to use passwords, if you can't do this, just use ssh://user:password@host.com:/full/path/to/directory instead.
On my local machine, I do this
mkdir /Users/tj/Sites/example.com
cd /Users/tj/Sites/example.com
git init
Now I have a fully working directory and an empty git repo
If I had never ever used git on this machine before, I would do this
git config --global User.name = "Trausti Thor"
git config --global User.email = "tj@example.com"
Now I would add a remote repository (repo from now on). This would point to my web server.
git remote add origin ssh://example.com/home/tj/programming/example.com
I would name my shortcut origin as it seems to be an agreement by all git users to use that, of course you could use whatever you want, and if you are working in a group you would add remote for each programmer you want to use code from, also origin is default used by git if you don't type it in as a parameter with a bunch of commands.
Now on my client, inside my empty git directory, I could do a clone, but I see no reason to do so and would do this
git pull origin master (you could use fetch later to see the difference but then you have to merge manually)
This gets the master branch from the above origin server, but if you only want to do this once (like the repo was on your friends server and you will probably never ever use it again, this is what you would do from your directory
git clone ssh://friendscomputer.com/home/friend/software/website.com/.git .
Note the trailing .(dot) that means use THIS local directory, otherwise it will make a directory inside your directory, which is also a no problem. But if you do this, you must remove your .git directory, as you don't need to have done 'git init' when you clone.
In any case, you now have a fully working development directory and git to use it. Now you just start programming.
As git is extremely fast, so fast you never wait for it, and as it does not write configs all over the place like some un-nameable products (subversion), you should commit a lot. You should consider every task as a commit. So when you finish styling headers, commit, when you finish that function, commit, when you start an empty class, commit. As I read on some other place, the rule of thumb to work with, is if you have to use more than 1 sentence (including comma separated) to describe what you just did, you did to much for one commit.
One thing I always do, I always work on a development branch, I never work directly on a master branch, never ever. I will explain that part in another post, but using branches in git is awesome.
I hope this small article will make you get up to speed using git.
Now you are in business
Thursday, June 11, 2009
Now what ?
Well. Now I am on a 3 week weekend, a vacation if you like.
The big question is, did I take my MacBook Pro or my trusty Acer with me ?
Well I was tempted to take both. But the extra weight and then have one of the computers just sitting around collecting dust is not my thing. I picked the Mac. It was actually a simple decision. It is the computer I trust. I don't trust Windows. It can break anytime. I could get a virus anytime, and finally because Windows 7 is just Windows. But for the first time in 25 years it actually works. Doesn't say it is better than Mac OS X, just that Windows 7 is the best Windows ever.
I knew what I needed for the vacation. MySQL, PHP, CakePHP, mail and a good browser. I have everything of this on the Windows machine. I bought e-texteditor and all.
But it all comes down to DOS. I hate c:\Program Files and these kind of paths. I hate it. I don't like to have c and d and e drives. I can get cmd to work and behave, but it is no Terminal.app. I really like working in Bash shell, CTRL-A and CTRL-E and all these shortcuts actually make everything work better and nicer. Being able to split the screen and use 'screen' among other things is just the difference.
Many people think that since I am a "mac person" I always like the Mac and such. But that is not the case. I never liked the old System 9 and older. The machines crashed a lot, didn't multitask, did not have terminal. I have always liked NeXTSTEP ever since I first saw it and worked on it. I just wished I knew more back then.
I really like my Mac, Textmate, coda and all my other apps. Now I look forward to a clean Intel future with my Mac. But I will now be able to use Windows 7 machines without getting really mad and annoyed. I could work on a PC for a long periods of time if I needed to but nothing comes close to my Mac(s).
The big question is, did I take my MacBook Pro or my trusty Acer with me ?
Well I was tempted to take both. But the extra weight and then have one of the computers just sitting around collecting dust is not my thing. I picked the Mac. It was actually a simple decision. It is the computer I trust. I don't trust Windows. It can break anytime. I could get a virus anytime, and finally because Windows 7 is just Windows. But for the first time in 25 years it actually works. Doesn't say it is better than Mac OS X, just that Windows 7 is the best Windows ever.
I knew what I needed for the vacation. MySQL, PHP, CakePHP, mail and a good browser. I have everything of this on the Windows machine. I bought e-texteditor and all.
But it all comes down to DOS. I hate c:\Program Files and these kind of paths. I hate it. I don't like to have c and d and e drives. I can get cmd to work and behave, but it is no Terminal.app. I really like working in Bash shell, CTRL-A and CTRL-E and all these shortcuts actually make everything work better and nicer. Being able to split the screen and use 'screen' among other things is just the difference.
Many people think that since I am a "mac person" I always like the Mac and such. But that is not the case. I never liked the old System 9 and older. The machines crashed a lot, didn't multitask, did not have terminal. I have always liked NeXTSTEP ever since I first saw it and worked on it. I just wished I knew more back then.
I really like my Mac, Textmate, coda and all my other apps. Now I look forward to a clean Intel future with my Mac. But I will now be able to use Windows 7 machines without getting really mad and annoyed. I could work on a PC for a long periods of time if I needed to but nothing comes close to my Mac(s).
Thursday, June 4, 2009
Windows 7
Ok, as everyone knows ever since 2003 I have been using a Mac, and Linux before that and barely used Windows since 2000. I am doing all my work on a Mac and liking it. I hate working on XP and dislike it quite much to work on Vista. But since I have a quad core machine that runs Windows I use it to play games and do some heavy crunching. I like this computer.
I listen to Leo Laporte and his This Week In Tech and Mac Break Weekly. There he has been saying all these nice things about Windows 7. I mean, why ? It is still Windows, right ? One thing more than anything else that did catch me, was that he said it was snappy on these small crappy netbooks, and it just so happens that I have an old Dell D600 that I use as an e-book reader. This machine has P4 Mobile 1.7 GHz cpu and 2 GB memory. So I copy all my pdf books to the machine and use it to read on.
This machine worked quite ok with Ubuntu 8.04 but once I upgraded to ubuntu 9 it failed miserably. Becamse slow and buggy and later refused to boot. So I went to www.microsoft.com/windows7 and got myself a copy, I mean what is the harm since I had to re-install the machine anyway.
Remarkably the machine came back to life, and works great. I had to do go to Dell and get two drivers, 1 for the wifi card and one for the touchpad. It does go to 100% cpu load quite frequently, but given the limited usage I have for it it is ok. So then I took out my Acer Travelmate 8210, a Dual Core 2 cpu with 2 GB memory and large disk and re-installed it with Windows 7, clean.
Wow. This machine ran Vista and ran it well, but this is amazing. Windows 7 actually changes your working habits and streamlines your work to the point that it is actually a pleasure to use, I mean it, not joking. So I decided to take a journey and decide how useful it actually was. Was this just first time crush which fades away ? How actually is windows 7 usable for a Mac(aholic) for a stretch of time, doing actual work. Well in short, I am ashamed of saying, but I almost don't miss my Mac. If my Mac died right now, I am not sure I would buy a new one. I mean, I can get a quad core laptop and the new penryn i7 laptop, running windows 7 for quite a good price. I always liked using Mac OS X and never bought the machines just because they looked pretty.
So this is what I did, quite a longer story.
I installed xampp, Apache, php, perl and mysql for Windows. Installed openssh for Windows (not cygwin). Changed the font in 'cmd' to Consolas 9 points. Installed vim and fossil source code management. Went out and bought e-texteditor changed the default font to Consolas. E-texteditor is almost a clone of Textmate on the Mac. Another Danish guy who makes it, who is actually a friend of the Textmate author. Wonderful editor (both).
Then I installed Cakephp on the machine inside the xampp. Changed some of the default paths on the system (Environmental variables), so I can run mysql, cake, php, perl, fossil and vi straight from 'cmd'.
I then created from scratch, a to do list manager, full crud (edit, delete, create and all that) for the list. Had different views, MySQL and all. I made sure to set e-texteditor to UTF-8 (unicode) and use unix linefeeds (only \n and not \r\n).
The only minus to the whole experience is with the location of the <> button. It is on the right, and on European keyboards it is always next to the left shift, before Z. Nope, not on the Acer. Well i just swallowed and learnt to use it, not to like it though.
But the end result amazed me. I actually liked the experience. I liked developing on Windows. Now what is happening to me ? I have actually quit working for companies because they made me use Windows, and that was the big reason, and I am not joking.
Now what is it actually that I like so much about Windows 7. Well can't really say. The new Aero look and task bar is awesome. There is nothing in your face, there has in a week never been a dialog or yellow bubble saying something to me. I just can work totally focused on the machine and for example if someone starts talking to me on MSN, it just blinks a small icon on the left hand side on the screen, barely visible unless you actually look there. When I download a file, the download progress is displayed on the small browser icon and then fades away. Nothing to bother you.
When I want to do something. I just press the Windows button, type in 'cmd' and I am in command line. If I have to do anything else I just press the windows button and type in what I want. Want to change environmental variables, just type enviro and it pops up. Want to set the sound, well just type in sound. The search is really good. The new control panel does not have a Classic view, finally. I like the new look especially since the search works great.
I think I will have myself locked up now, the men in the white clothes are coming. Seeja...
I listen to Leo Laporte and his This Week In Tech and Mac Break Weekly. There he has been saying all these nice things about Windows 7. I mean, why ? It is still Windows, right ? One thing more than anything else that did catch me, was that he said it was snappy on these small crappy netbooks, and it just so happens that I have an old Dell D600 that I use as an e-book reader. This machine has P4 Mobile 1.7 GHz cpu and 2 GB memory. So I copy all my pdf books to the machine and use it to read on.
This machine worked quite ok with Ubuntu 8.04 but once I upgraded to ubuntu 9 it failed miserably. Becamse slow and buggy and later refused to boot. So I went to www.microsoft.com/windows7 and got myself a copy, I mean what is the harm since I had to re-install the machine anyway.
Remarkably the machine came back to life, and works great. I had to do go to Dell and get two drivers, 1 for the wifi card and one for the touchpad. It does go to 100% cpu load quite frequently, but given the limited usage I have for it it is ok. So then I took out my Acer Travelmate 8210, a Dual Core 2 cpu with 2 GB memory and large disk and re-installed it with Windows 7, clean.
Wow. This machine ran Vista and ran it well, but this is amazing. Windows 7 actually changes your working habits and streamlines your work to the point that it is actually a pleasure to use, I mean it, not joking. So I decided to take a journey and decide how useful it actually was. Was this just first time crush which fades away ? How actually is windows 7 usable for a Mac(aholic) for a stretch of time, doing actual work. Well in short, I am ashamed of saying, but I almost don't miss my Mac. If my Mac died right now, I am not sure I would buy a new one. I mean, I can get a quad core laptop and the new penryn i7 laptop, running windows 7 for quite a good price. I always liked using Mac OS X and never bought the machines just because they looked pretty.
So this is what I did, quite a longer story.
I installed xampp, Apache, php, perl and mysql for Windows. Installed openssh for Windows (not cygwin). Changed the font in 'cmd' to Consolas 9 points. Installed vim and fossil source code management. Went out and bought e-texteditor changed the default font to Consolas. E-texteditor is almost a clone of Textmate on the Mac. Another Danish guy who makes it, who is actually a friend of the Textmate author. Wonderful editor (both).
Then I installed Cakephp on the machine inside the xampp. Changed some of the default paths on the system (Environmental variables), so I can run mysql, cake, php, perl, fossil and vi straight from 'cmd'.
I then created from scratch, a to do list manager, full crud (edit, delete, create and all that) for the list. Had different views, MySQL and all. I made sure to set e-texteditor to UTF-8 (unicode) and use unix linefeeds (only \n and not \r\n).
The only minus to the whole experience is with the location of the <> button. It is on the right, and on European keyboards it is always next to the left shift, before Z. Nope, not on the Acer. Well i just swallowed and learnt to use it, not to like it though.
But the end result amazed me. I actually liked the experience. I liked developing on Windows. Now what is happening to me ? I have actually quit working for companies because they made me use Windows, and that was the big reason, and I am not joking.
Now what is it actually that I like so much about Windows 7. Well can't really say. The new Aero look and task bar is awesome. There is nothing in your face, there has in a week never been a dialog or yellow bubble saying something to me. I just can work totally focused on the machine and for example if someone starts talking to me on MSN, it just blinks a small icon on the left hand side on the screen, barely visible unless you actually look there. When I download a file, the download progress is displayed on the small browser icon and then fades away. Nothing to bother you.
When I want to do something. I just press the Windows button, type in 'cmd' and I am in command line. If I have to do anything else I just press the windows button and type in what I want. Want to change environmental variables, just type enviro and it pops up. Want to set the sound, well just type in sound. The search is really good. The new control panel does not have a Classic view, finally. I like the new look especially since the search works great.
I think I will have myself locked up now, the men in the white clothes are coming. Seeja...
Friday, March 20, 2009
Star Wars
Not until after reading the blog of CAMBLR did I figure out why I hated the new Star Wars movies but liked about the old one's.
Remember, the new movies happen BEFORE the old ones. They are about Luke and Leia's parents. They are about Darth Wader as a teenager. I always thought it was because they have so much more and better technology in the past than they did in the future. But that was not it.
What really impressed me about the old one, was just how real it was. Everything is as close to normal as you can have it with flying space ships and robots. Everything looks used. Yup, you read me right. Nothing in the old Star Wars movies is never used before brand new. The space ships don't look like mirrors with impeccable paint job. The bar, the fortress, the millenium falcon all look dirty. There is even dust in the air, when the light shows through a window at Lukes home and in the bar in Mos Eisley is dusty and dirty. The roads are not paved, and everything looks like it has been there for years and years.
Counter that with the city where the replic is run from and the the jedi house. Everything is spotless and shining. The office of Palpatine and others are impeccable.
I know these are the big cities, New York vs Timbuktu, but New York is not spotless.
And I always thought I detested the new movies because of Yar Yar Binks, how silly of me :) Although George Lucas should really have released a version 1.5 of the first movie with Yar Yar deleted out. This character does nothing for the movies and is only really really boring and the scene where his accidentally wins a battle with the robots in the first one, should not have been in the movie at all. And Hayden Christiansen should not be allowed to call him self an actor
Remember, the new movies happen BEFORE the old ones. They are about Luke and Leia's parents. They are about Darth Wader as a teenager. I always thought it was because they have so much more and better technology in the past than they did in the future. But that was not it.
What really impressed me about the old one, was just how real it was. Everything is as close to normal as you can have it with flying space ships and robots. Everything looks used. Yup, you read me right. Nothing in the old Star Wars movies is never used before brand new. The space ships don't look like mirrors with impeccable paint job. The bar, the fortress, the millenium falcon all look dirty. There is even dust in the air, when the light shows through a window at Lukes home and in the bar in Mos Eisley is dusty and dirty. The roads are not paved, and everything looks like it has been there for years and years.
Counter that with the city where the replic is run from and the the jedi house. Everything is spotless and shining. The office of Palpatine and others are impeccable.
I know these are the big cities, New York vs Timbuktu, but New York is not spotless.
And I always thought I detested the new movies because of Yar Yar Binks, how silly of me :) Although George Lucas should really have released a version 1.5 of the first movie with Yar Yar deleted out. This character does nothing for the movies and is only really really boring and the scene where his accidentally wins a battle with the robots in the first one, should not have been in the movie at all. And Hayden Christiansen should not be allowed to call him self an actor
Subscribe to:
Posts (Atom)