Setup own Trac on Kapsi server
Submitted by jontto on Mon, 04/26/2010 - 13:23Short note how to setup your own Trac (0.11) on kapsi.fi (where I run my services):
- cd ~
- mkdir trac
- trac-admin trac initenv
-- Fill in name
-- SQLite probably is enough
-- No VCS
-- No repo
- trac-admin trac deploy sites/mysite.example.com/www/trac
- cd sites/mysite.example.com/www/trac/cgi-bin
- rm trac.cgi trac.wsgi
- chmod 755 trac.fcgi
- Browse to http://mysite.example.com/trac/cgi-bin/trac.fcgi/
Clean up URL
- cd sites/mysite.example.com/www/trac
- vim .htaccess
- Put this in the file:
RewriteEngine On
New desktop computer
Submitted by jontto on Mon, 03/29/2010 - 12:19So,
Just recently I got time and some extra cash to upgrade my home desktop computer. My old one was bought back in 2003, so it was time to move along.
I had a budget around 1000€ and this did not include a screen, keyboard or mouse, but a color inkjet printer to our network was a must.
Vaadin 6.3 widget and GWT dev mode
Submitted by jontto on Fri, 03/26/2010 - 15:11Vaadin 6.3-pre1 is just around the corner, so I decided to give the package a try and make an own custom component which includes a client side widget. Then I'll do some debugging of the client side code.
Vaadin 6.3 includes GWT 2.0, so the old Vaadin 6.2 + GWT 1.7 way of using OOPHM does not work as is any more.
- My environment is:
- Mac OS X 10.5.8
- Java 5 or 6
- Firefox 3.5.8
- Eclipse 3.5 Galileo
- Vaadin Eclipse Plug-In (Experimental)
- Tomcat 6.0.20
Step-by-step how I did it:
My favorite web comics
Submitted by jontto on Wed, 10/14/2009 - 08:03So, if you sit by the computer all day long you probably have developed some way to relax a couple of minutes every now and then. One of my relaxation methods is reading some web comics. Thanks to iGoogle it's really easy to gather almost all the comics on one page and get a quick glimpse on what's new. Since iGoogle handles RSS-feeds, you easily can read older strips if you happen to miss out on any.
So, this is my list in no particular order:
- Through GoComics iGoogle gadget
Access Trac with certificate login from Eclipse using Mylyn's Trac connector
Submitted by jontto on Tue, 09/15/2009 - 13:28Just a quick scratch about how to access your Trac from Eclipse IDE by authenticating with certificates
1. Make sure the root certificate is found by JVM as a trusted certificate if you have your own.
Open this link and check the subject: "When I try to add my site to the task repositories, I get a Java error that says SSL Handshake failed. What do I do?"
2. Add the following lines to eclipse.ini
-Djavax.net.ssl.keyStore=/path/to/yourcert.p12 -Djavax.net.ssl.keyStorePassword=yourpassword
Mollom to the rescue!
Submitted by jontto on Thu, 08/27/2009 - 10:24The day came when Awstats reported 300 visits / day and Google Analytics reported just a couple of visits / day. So, what's happening? Well, not much except for the 3000 comments on http://jonas.granvik.me/blog/eclipse-user-variable. There sure are lots of people interested in Eclipse variables...
I removed the spam with DB queries directly, since Drupal's default interface for removing comments is quite ineffective for large quantities. The next day, again, the comments were flooded with spam.
Shai Agassis's TED talk on electric cars
Submitted by jontto on Mon, 07/20/2009 - 07:58This is a great and inspiring talk about electric cars and how to deploy the infrastructure to get a working business model. The former SAP President and current electric vechicle evangelist Shai Agassi sure has the charisma and brain to give an inspiring speach!
Hope to see more talks like this in the future. It would be nice to know if anyone has given an equivalent talk about cold (Nordic) environments, where batteries are not as durable as down in the warm south.
Check it out, you'll not regret investing 19 minutes of your life into it.
Backup prefixed tables in MySQL without PHP
Submitted by jontto on Tue, 07/07/2009 - 14:52Just a quick note which took me some time and advice asking to find out. I have a database with two drupal installations separated by a table prefix, say drupal1_ and drupal2_. Lets call my database simply myDB.
If I'd like to backup only certain tables to an SQL file using mysqldump, I'd have to list all the table names separately. This is not nice at least since module installations and upgrades might add prefixed tables to the database dynamically over time. The other catch is that I want to do this without PHP.
Vaadin framework website released!
Submitted by jontto on Fri, 05/22/2009 - 14:26IT Mill Toolkit has been renamed to Vaadin and the new website has been released together with a preview version of the RIA framework.
If you're even slightly into Java-based developing of Ajax web pages, please check out this project since it might just make your life much easier. Especially if you make rich internet applications.
Check out the site: http://www.vaadin.com
Eclipse ${user} variable
Submitted by jontto on Thu, 04/02/2009 - 08:53I've grown tired of changing the template for my Eclipse projects which uses the built in ${user} variable while generating JavaDoc comments. Mostly this variable is not my real name and often not even a proper nick name, so I like to change it to be my real name.
So, by editing the eclipse.ini file and adding a flag
-vmargs ... -Duser.name=Jonas Granvik
I get this changed and now the ${user} variable is my real name instead of my user name which I logged in to the OS with.