Posts

Add image in the blogger link list

I wanted to add link on my blog to blogs I read regularly. Ok, I've found the Link List module, I add it. Add few link I like... But, some of the blogs are in French other in English... So I've obviously tried to insert some <img> or even <span>... nothing works... So I used the hard way : I've modified my template to add prototype + script.aculo.us <head> ... <script src='http://mansonthomas.com/js/lib/prototype.js' type='text/javascript'> </script> <script src='http://mansonthomas.com/js/lib/scriptaculous.js' type='text/javascript'> </script> <script src='http://mansonthomas.com/js/blogger.js' type='text/javascript'> </script> </head> I used the text inside the <a> as a prototype template . For example : #{fr} Rank My Day | Référencement And wrote this code to change #{fr} into a nice flag (with many thanks to www.famfamfam.com for his works on all great ico...

Full Screen Editor for blogger.com thanks to Greasemonkey

The blogger editor to write a new post on your blog is damn small... and on my 24" screen, it's even more sad... all this space wasted... I know Greasemonkey for a while and I search scripts that would increase the editor size (if I hadn't found it, I would have wirtten it!) And i've found one that works perfectly well here : http://userscripts.org/scripts/show/7108 by http://fatknowledge.blogspot.com/ You don't know Greasemonkey yet... ? It's a must-have ! In short, it's a firefox plugin that allows you to inject custom javascript files into any web page to add some functionnality. more info here: http://en.wikipedia.org/wiki/Greasemonkey Get firefox : http://www.getfirefox.com Get Greasemonkey plugin : https://addons.mozilla.org/fr/firefox/addon/748 Get the Blogger Script : http://userscripts.org/scripts/show/7108 (click on "install this script" on the upper right corner) Get more scripts here : http://userscripts.org/ Other usefull plugin for f...

Open a SSH connection through an http proxy and dig tunnels :)

Image
I'm working for an IT Services & Software Engineering company, and I often work for some time (3 months to a year) by the client company's office... And often, I'm behind a ****ing proxy that filters http request, provide antivirus analysis etc.. Useful for the company securtity and efficiency, but really borring for me. Those proxy allows http (tcp/80) and https (tcp/443) connections and nothing else... So no tcp/22 for SSH, and I miss it really much for many reasons. So here is what to do, to get an SSH connexion to a linux box. But beware that doing that will certainly break the security contract you signed when you enter the company. Doing that allow you to bypass the content filtering and security. And you could be fired for that... This blog post will show you how to bypass an http proxy with a basic authentication. The following post will show you a way to bypass a proxy with NTLM authentication mecanism. Server configuration You're a geek like me, so you hav...

Remote Desktop Client with Windows 2000

At one of my client office, their computers runs under windows 2000. I needed to access a windows 2003 server with a RDP Client. Windows 2000 does not have mstsc.exe installed, but the one for windows XP works well with windows 2000. Terminal Services Client comes in two versions, 5.1 & 6. The 6 needs a Genuinue Advantage validation (I didn't try but I don't think ti's possible under windows 2000 to have this validation), but the 5.1 here : http://www.microsoft.com/windowsxp/downloads/tools/rdclientdl.mspx don't ! Run the installer, click next until the end and then WindowsKey+R, type mstsc et voila !

Set up a secondary Domain Name Server with bind9 on a ubuntu linux

On my spare time, I manage the technical subjects of a small webagency i've created with a friend when I was in my second year of Engineer school. It's named 123monsite.com . Tonight I dig the secondary (slave) DNS server subject. Until now, we used a DNS server from our registar as DNS backup. But as we grow, we need more servers and a secondary DNS of our own is becomming handy. We've rent a dedibox from the free.fr ISP (a server for 30€/month : via 2Ghz, 2Go Ram, 160Go HDD, 5Go of monthly backup). I choosed ubunty feisty server (7) among all OS available (many linux flavour and some windows) So here is how I set up my secondary domain name server on my ubuntu server with bind9. Let's say the domain of the primary name server is ns0.primarydomain.com (80.1.1.1) The secondary will be : ns1.primarydomain.com (80.2.2.2) And the domaine we'll want to be handle by both servers is myDomain.com (90.9.9.9). Give your secondary server a domain name T...

Activate IPV6 on e-smith (sme server)

Free ISP has just launch ipv6 on their network. Free is the best ISP in france for geeks ;) and it's also my ISP... So... as ipv6 is available, I'd like to play with it... Here is the steps I've followed to activate the ipv6 supports on my e-smith server (sme server) 7.2. I've read the following howto to get this working : http://tldp.org/HOWTO/Linux+IPv6-HOWTO/index.html Kernel To check if ipv6 is activated on your system, run the following command : test -f /proc/net/if_inet6 && echo "Running kernel is IPv6 ready" If it display "Running kernel is IPv6 ready", then your system is ready for ipv6. By default, it's not the case on the e-smith. You can load the ipv6 module by executing the following command : modprobe ipv6 The command is silent (if no error, no message is displayed) Run the previous test again, it should now succeed. In order, this module to be loaded automatically, you need to have this line in /etc/modprobe.conf : alias n...

samba mount with accent support

I'm still coding my extjs explorer and another issue I had is that I wanted to browse directory that are mounted windows shares (windows 2003 server). As I'm french, and i've some files with accent, and with the default e-smith configuration, the accent are not displayed properly. Here is what I did to have accent displayed properly : First you need to configure the linux box to properly display accents. This is done through /etc/sysconfig/i18n configuration file. The e-smith is configured with the en_US charset (which means no accents ;) ) : Here is what I put in the configuration file : LANG="fr_FR@euro" SUPPORTED="fr_Fr@euro:fr_FR:fr" SYSFONT="lat0-sun16" SYSFONTACM="iso15" If you use a different charset that fr_FR, you should set the correct value for your language. Notice that for this file, the e-smith template system does not use the berkley database (db set-prop) but the file itself as for fstab file. Once you've updat...

e-smith server and the php open_basedir restriction

I use the sme server (previously called e-smith) as a server (file, http etc...) and gateway to my private network (btw : it's working great for years now (since version 5) and really easy to install and reinstall). I'm working on a file browser with extjs & php and I had to face the open_basedir restriction. In order to get rid off this restriction here is what I did : First I use the template(-custom) system to alter the way the httpd.conf is generated : mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/ cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/ #edit the file vi /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/95AddType00PHP2ibays and replace $OUT .= " php_admin_value open_basedir $basedir\n"; by if($basedir eq 'NONE') { $OUT .= " #desactivated with 'NONE' value : php_admin_value open_basedir $basedir\n"; } else...

How to get rid of Windows Restart notification after installing updates

Windows XP is (reeaallyy) often updated for security reasons, and after installing these updates, you have to restart your computer... (Linux doesn't have this flaw !) But I always want to postpone this restart because I'm working on my computer (really :op) and I've a lot of things open (Eclipse, RSA(sadely), Firefox with loads of tabs etc...) So, once the update installation is finished, I click the 'Close' button instead of 'Restart Computer' button... and from this moment on I'll get disturb every 10 minutes or so with a popup that steal the focus of the application I'm working on... and really... it pisses me off ! It's annoying and can be dangerous for your work, as sometimes I was just about to click in the area where the restart button is when the popup suddenly appears, which make restart the computer while I had some unsaved editors open or something else at work... grrrrr.... So what's the solution to that ? A crack, registry hac...

First Post

Welcome to my blog. I'll talk mainly of technical java/web/ajax/linux stuff here. The purpose is to share & remember things I discover. Enjoy. Manson Thomas.