I recently had the need to run some older Lisp code on OSX 10.5.8 which used CLSQL, unfortunately this was enough to cause me a couple of lost hours trying to compile and load the CLSQL helper libraries.
For this post i decided to explain how i’ve setup Common Lisp Hunchentoot webserver running on Ubuntu 8.10 and how to set it up for remote interaction using Emacs and SLIME (Superior Lisp Interaction Mode for Emacs).
Continue reading Setting up Lisp & Hunchentoot on a web server
Coming to OSX from a Linux background it struck me hard that there isn’t a single Finder preference/option to allow me to see files starting with a dot (hidden files) in Finder listings. Knowing that this is probably due to security concerns that not-so-advanced users will mess up their whole system, nevertheless i believe Finder should provide this option. I’m used to the great Xubuntu where i simply press Ctrl+h to enable or disable viewing the hidden files, this might not sound like it but for me this is a real productivity booster.
Although i couldn’t find such a perl in OSX i did however find on google a way to allow me to view those pesky files with Finder.
Fire up a terminal session and type the following command:
defaults write com.apple.Finder AppleShowAllFiles YES
Then simply hold down Option and click on the Finder icon until it the context menu shows up and then select relaunch. Voilá, if everything went ok nest time you open finder it should show all those files for you.
Edit: Apparently this limitation doesn’t exist anymore in Snow Leopard but since i still haven’t managed to install it on my laptop i have no way of being sure.
I always wanted to give Apple’s OsX a test-drive, it always appealed to me as the best looking Operating System out there but i would never throw away all that money without first giving it a real test-drive. When some of my colleagues got their hands on their macbooks and started bragging about how great it was, making fun about everyone else at the office, i decided i really had to give it a try. I had already heard several stories about people successfully installing OsX on regular PC’s and since i couldn’t really spend the bucks to get the real thing i had to give it a try.
Continue reading LGE-500 Hackintosh
While installing some software on my virtual machine i ran out of disk space so i went out googling and found a nice tutorial. I don’t really like doing this, kind of pasting someone else’s article but, since i keep this blog mainly as a reference to myself and i believe i will most surely need it later, i’ll explain here step by step what i did to accomplish this task.
Continue reading Resizing a VirtualBox Disk (VDI)
At work we have been using Google apps to host some of our customers domain e-mail accounts. The other day one of our customer collaborators complained that when accessing e-mails through IMAP (on Outlook 2007) he was getting the following error:
Web login required (Failure)
After repeatedly checking his IMAP settings i decided it was not a problem with his settings so I looked around the web and found a quite dated tutorial (back from 2008). Since all my other approaches hadn’t worked i decided to try it, here’s the steps i followed:
- Logged in to the web portal with the gmail account that was returning that error
- Disabled both POP3 and IMAP functionality and logged off
- Logged in with a Administrator privileged account for that domain
- Goto “Domain Settings” and section “New Services and Pre-release Features”
- Disable “Automatically add new services when they become available” and “Enable pre-release features”
- Saved these changes
- Re-enabled “Automatically add new services when they become available” which was the one i wanted
- Saved these changes
- Logged off (as Administrator)
- Logged in to the web portal with the gmail account that was returning the error.
- Re-enabled both POP3 and IMAP functionality.
After this the user reported that IMAP was working again for him. It amazes me that such a simple and dated (almost 2 years now) solution like this has worked but luckily it did.
Having a lightweight http server (in this case Nginx) proxy request to Hunchentoot offers some advantages over letting Hunchentoot speak directly to the web:
- You can have nginx serve all the static files for you app, this way serving them faster while freeing lisp process for generating only dinamic content.
- You can take advantage of nginx caching strategies.
- You can use nginx for load-balancing.
Picking up from “Remote login with SSH key pair” and the updated “Setting up Lisp & Hunchentoot on a web server”, when i run emacs locally and connect to my running lisp + hunchentoot process on the server, the REPL alone, although awesome, is insufficient for my hacking need. I’ll need some way to work with remote files…
One secure and easy way of logging in to your remote server is by means of SSH keys. Basically you generate an SSH public/private key pair on your local machine, you put the public key on the remote server and the private key on you local machine, that way people trying to login on the remote box must have a matching private key. Here’s how i’ve done it.