RadioShack don't know my mom.
Is this for real? I’ve seen some dumb advertising in my time, but man, if RadioShack marketing department think that every mothers desire is a 1gig Flash Memory card RadioShack have some firing to do.
This follows Twitter sending out an email suggesting that people tweet their moms for Mothers Day? WHAT??? My mom would fly to the US and beat me over the head with something if that was my idea of a Mothers Day salute ( although having said that, it’s not mothers day in Ireland, and I always miss it when it is, so maybe a tweet would be better than nothing ).
Seriously though advertisers. If you think my mom wants a text string or a flash card as a sign of my eternal thanks to her then we you’re dumb as a post.
Here are some other suggestions for mothers day:
- A six pack
- A DIY oil change kit
- Beavis and Butthead DVD set
- A buy one get one free card for the Bunny Ranch
How to install MYSQLCC in Ubuntu Hardy Heron (when you get sick of Navicat)
No offense, but I’m tired of Navicat and Emerald not playing well together. I used to be a big fan, I have a paid license, and I think the feature set is unequal, but if a tool I need every day doesn’t work every day, then I have to move on.
Why use a GUI Mysql tool?
In every other way I’m a command line junky. The idea of finding / creating / updating things in a mysql table using the mysql command line does not appeal to me AT ALL though. No way, in this scenario visibility is king.
GUI Mysql Tools like mysqlcc and navicat vs myphpadmin
Myphpadmin is a very popular tool for managing mysql settings and data. The difference between it and tools like mysqlcc and navicat are that mysqladmin is a php application that sits on the server.
The advantage of this is that by default, your mysql database will allow connections from “localhost” so you can throw mysqladmin up there and login. Locally installed tools however need an extra step, that you may or may not want to take, and that is that you have to tell mysql to ALLOW access to certain IP addresses. If you always work from the same place, and your IP address is fairly static, then that’s not a big deal. If you roam the earth though, you may have to open up ANY IP address and that’s a bad idea.
Allowing those IPs can be done through the nomal control panels like plesk or cpanel or using the mysql command line ( as root ).. Google it.
Why mysqlcc?
After giving up on Navicat, I looked around alot and eventually found mysqlcc. It’s OOOOLD but it’s great. In many ways not as good as Navicat, but in some even better - like the way a view has a mysql header at the top that you can modify to filter down results.. nice.
It’s very easy to install in Ubuntu ( tested under 32 and 64 bits from 7.04 to 8.04 ) even though it’s an old project, and not in the repositories.
The steps are basically:
1) Get the rpm install file 2) Convert it to a deb using alien 3) Install
The RPM
Download the appropriate RPM from here here. Select the 386 or amd64 version depending on your install.
Convert it to a .deb file
In a terminal,
sudo apt-get install alien
cd [directory where the rpm file is]
alien mysql*.rpm
sudo dpkg -i mysqlcc*.deb
You’re done. To launch type “mysqlcc” in a terminal or create an icon. If you think it looks old and clunky, well you’re right - but just go to Options > Themes and select “Plastik” and you have a very modern looking look and feel that will match your install very well.
How did I afford Windows?
I’m not yer “Have laptop, am good to go” kind of guy so I have multiple systems, of which one is a laptop for travel.
How did I afford that attitude when I was a windows user, or how much would switching to a Mac cost me? Lots! As a business owner I never used pirated software and had a license for every instance of every install I had. Because of that I was an early adoptor of things like Open Office, even on the PC, because I wasn’t going to shell out for more than one instance of Office.
I have 5 systems.
- Primary home office Dual monitor Ubuntu Desktop
- Primary outside office Dual monitor Ubuntu Desktop
- Ubuntu box in the home theatre room
- Ubuntu Laptop
- Old G4 to sync my iPhone to
Total software costs in the last 2 years? I bought a sync tool for my Mac to do two way sync between the iPhone and Google Calendar - and if I wanted my USB webcam to work with iChat I’d have to spend some more - but that’s another story.
Focusing on the systems that I use day in, day out - nothing is what I pay, with no compromises. Kick ass, hardcore business systems with interface features I couldn’t get anywhere else. Wow.
How do you like them apples?
How to customize the Gemini gedit plugin
gedit is Textmate for Linux
I’m a recent convert to gedit for my rails development after reading a digg article about how to make gedit act like Textmate. Well I’ve never used textmate, but after just a short spell of using some textmate like features, I’m sold too.
Gemini
One of the two plugins that I’ve grown to love is Gemini by Gary Haran for the auto-insertion of closing tags.
I like it, but it also drove me nuts in it’s default form, in that it auto completes the single apostrophy - fine in code, but if you are jumping back and forth between code and text creation then this is really annoying. Words like “doesn’t”, “hasn’t”, “don’t” etc. all kick off the closing quote - not ideal.
Removing and adding rules to Gemini
The beauty of Open Source is you can change it. If I knew Python, what I should really be doing is contributing with a “configuration” screen for Gemini, but I don’t - so I’ll just hack it.
To remove the single quote rule, open the file:
/.gnome2/gedit/plugins/gemini.py
and search for
“class Gemini:”
start_keyvals = [34, 39, 96, 40, 91, 123, 60]
end_keyvals = [34, 39, 96, 41, 93, 125, 62]
twin_start = ['"', "'", '`', '(', '[', '{', '<']
twin_end = ['"', "'", '`', ')', ']', '}', '>']
and change to:
start_keyvals = [34, 96, 40, 91, 123, 60]
end_keyvals = [34, 96, 41, 93, 125, 62]
twin_start = ['"', '`', '(', '[', '{', '<']
twin_end = ['"', '`', ')', ']', '}', '>']
Restart gedit and you are good to go!
Adding rules, eg. % for Rails
Adding is pretty much the same process. In Rails views, you often use:
<% content %>
so it would be great if Gemini had a rule for % and that’s really simple. Looking again at this block of 4 lines of code, what we have is 2 lines that state ASCII values, and 2 lines that show the character.
By modifying and adding % and it’s ascii value 37, we end up with:
start_keyvals = [34, 96, 40, 91, 123, 60, 37]
end_keyvals = [34, 96, 41, 93, 125, 62, 37]
twin_start = ['"', '`', '(', '[', '{', '<', '%']
twin_end = ['"', '`', ')', ']', '}', '>', '%']
Restart gedit, and typing “<%” in a view now kicks off the <> and %% rules - awesome.



