Harry Seldon's blog

Psychohistory on Rails

Read

2 tricks for Firefox, 1 for KDE

Posted by Harry Seldon on August 22, 2008

I noticed these nice firefox 3 features haphazardly :
On the tab bar : 
you can duplicate a tab thanks to a ctrl+click
you can move the tabs left or right using your mouse scrolling button

By the way, one thing I do not understand for Firefox is why open new tab does not open your start page ?

1 trick for KDE
Right click on a window name bar and you have the option to keep the window above others. That is nice to do some copy/paste from one page to a notepad or also to keep the command line while typing code in an IDE….
 

Posted in | no comments |

Some News and Tech Links about Ruby and Rails

Posted by Harry Seldon on August 22, 2008

Some News and Tech Links about Ruby and Rails

You are looking for info about Rails ? Here are some useful links.

News
Railsinside
Rubyinside
Railsenvy
Nuby on rails
locomotivation
peepcode
Stone age blog (in French)
I assume you already know the official website.

API
http://api.rubyonrails.org/
http://www.ruby-doc.org/core-1.8.6/index.html
http://start.gotapi.com/
http://www.railsbrain.com
NB Some people find api.rubyonrails.org hard to use. I just use the google toolbar to make a “search on this website” and I get the info I was looking for in 0.1 sec. Equivalently you can search on google using site:api.rubyonrails.org.

Book
http://pragprog.com/titles/rails3/agile-web-development-with-rails-third-edition

Forum
http://www.ruby-forum.com

Posted in | no comments |

Tile windows on Linux

Posted by Harry Seldon on August 09, 2008

In the same kind of ideas as my post on 2 monitors, it would be great to be able to tile windows under Gnome or KDE. Some people thought about it as some softs do it : whaw or a compiz plugin (but using compiz to do that is really an overkill).

Posted in | no comments |

Ubuntu Global Bug Jam in Toulouse

Posted by Harry Seldon on August 09, 2008

I went yesterday night to the Ubuntu Global Bug Jam. The session in Toulouse was organized by Christophe Sauthier, Ubuntu-Fr association president and toulibre association. Many thanks to them !

Posted in | no comments |

Wifi on Linux

Posted by Harry Seldon on August 08, 2008

I installed Kubuntu Feisty about one year ago. That was my first Linux installation. Since then I got plenty of troubles with my (pci) wifi card a WMP54G with a ralink rt61 chipset. But the most surprising is that each time you update the ubuntu version you need to setup again but differently your wifi network. My first advice is use a wirewith connection as much as you can. My second advice is if you have a rt61 chipset just change it. A wireless card is not that expensive. I should have done that one year ago, I would have avoided many troubles. Under Feisty Fawn after some work the wifi was perfectly working in wpa. With Gutsy Gibbon it was working ok but only in wep. And with Hardy Heron, it is working in wep but I still have some weird problems. The wifi card does not wake up from suspend ot hibernate and if my router is rebooted I cannot connect. In all cases I need to reboot. Here is my configuration.

Posted in | no comments |

Installing Typo : trackbacks and markup

Posted by Harry Seldon on August 07, 2008

After installing Typo 5.1.2, I had some troubles with mail capabilities. My second problem came from the trackbacks. Typo should add a trackback link at the end of an article (see below "Use the following link to trackback"). However, this link was not added even if the "allow trackbacks" option was activated in Typo.After some more debugging, it simply appeared that this was due to the theme. I had downloaded a new theme (techblue) but this theme like others at typogarden are not updated for Typo 5.

A beginning of solution is to copy all files from themes/typographic/articles to themes/techblue/articles.

Another question I had is how to use Markdown or textile markups with Typo. I was using the default mode to write content but actually you need to be in source mode.

Posted in | no comments |

Installing Typo : mails

Posted by Harry Seldon on August 07, 2008

To install Typo I used the experienced user method. Meaning I installed it as if I was developping it. The setup is the same as Thinkosphere website. The code is inside a svn repository and the deployment is done thanks to Capistrano. 

Installation was pretty easy until it came to mailing capabilities which were not working. My old friend Google sent me to this blog : locomotivation.com/trackbacks The same tunings solved the problem. Indeed I am also working on Rails 2.x and this problem is due to a modification in Rails2.

However I add some more difficulties. Here is how you can lose 2 hours. The mailing was perfectly working in development environment but not in production. After 2 hours of Rails debugging into the mail sending low level code and a discussion with my host to get the smtp log, the solution appeared clearly : everything was working perfectly… but emails from the production blog were stopped by my spam filter while emails from the dev blog were not ! That’s a tricky situation.

So when working with mails do not forget your antispam !

Posted in | no comments |

Give 2 monitors to your PC

Posted by Harry Seldon on August 06, 2008

Please, if you are an employer give 2 screens to your employees’ PC.

Why ?

You gave your employees a nice dual core PC with 2 Go of RAM and 80Go hard drive. Once you are there you already have 2 PCs : 2 processors, Twice 1Go of RAM, and twice 40 Go hard drive. So the natural next step is 2 monitors. Even more the video card has probably 2 video outputs. So it is easy add a new monitor. OK you are telling it is expensive. Well is it ? A flat screen is what 200 € nowadays ? Not convinced ?


Posted in | no comments |

A quick SVN tutorial

Posted by Harry Seldon on August 06, 2008

Here is a quick tuto to setup a repository with svn on an online host assuming a ssh connexion. We will use the command line as you will probably need to use it to work on your remote server.

Your local source code is in /home/localaccount/myapp

Your remote space is on /home/remoteaccount/www/

Let’s create the repository directory on your remote account :

cd /home/remoteaccount/www
mkdir svn
cd svn
mkdir myapp

Now, we tell svn to make this directory a repository:

svnadmin create –fs-type fsfs ./myapp

As a good practice, we will create the usual branches, tags, and trunk subdirectories in the repository.
First we create a directory structure :

cd /home/remoteaccount/www/
mkdir structure
cd structure
mkdir branches tags trunk

Now we import the structure:

svn import /home/remoteaccount/www/structure/. file:///home/remoteaccount/www/svn/myapp –message ‘Initial repository layout’

Finally we import the source code:
Run this command on our local account:

cd /home/localaccount/
svn import /home/localaccount/myapp/. svn+ssh://remoteaccount@ssh.mydomain.com/home/remoteaccount/www/svn/myapp/trunk –message "initial import"

(do not forget the /trunk/) If you have a ssh properly setup with rsa key you won’t have to type any password.

I find this tuto quite hostile but my point is to use the command line. In general, I use a GUI (subclipse) but the only case where I have to actually type svn commands is when I setup a repo on my remote server. Maybe you are in the same case !

Posted in | no comments |

Hello Blogosphere !

Posted by Harry Seldon on August 06, 2008

Hi, 

I am glad to join at last the blogosphere. I had to use Typo for my blogging engine. First because it is in Rails and I have been coding in Rails for one year during my leisure time. The website is Thinkosphere.com. The second reason is simply that the home of Typo is Typosphere and, just like the name of my website, I like the xsphere words such as blogosphere, technosphere or datasphere (from Dan Simmons’books).

Next step will be to add a blog for the Thinkosphere. Waiting for that blog, let me tell you what the thinkosphere website is. It aims at accelerating the democracy giving people advanced tools to poll themselves, to analyse the polls, to discuss, to take actions and to follow-up these actions.

Welcome !

1 comment |

Search