Swatch to sell touchscreen watches
They are coming out October 26th and i want one. Enough said
They are coming out October 26th and i want one. Enough said
Don’t ask me how the sed magic works, but it does. Taken from here. Running this: mysql -u<USER> -p<PASSWORD> <DATABASE> -B -e “select * from videos_video;” | sed ‘s/\t/”,”/g;s/^/”/;s/$/”/;s/\n//g’ will produce something like this: “id”,”title”,”url” “1″,”video 1″,”http://youtube(…)” “2″,”video 2″,”http://youtube(…)” “3″,”video 3″,”http://youtube(…)” Just pipe it to a .csv file and you’re done
I think most of them work on both Snow Leopard and Lion. Not sure about previous versions. Just type the ones you want to activate/deactivate on the command line and have fun. # Enable full keyboard access for all controls (e.g. enable Tab in modal dialogs) defaults write NSGlobalDomain AppleKeyboardUIMode -int 3 # Enable the [...]
This is just a self reminder on how to disable and enable spotlight in Snow Leopard and Lion. Open a terminal and type: To enable: sudo mdutil -a -i on To disable: sudo mdutil -a -i off In system preferences you can control which drives and/or folders are not to be indexed.
The default time machine backup interval is every hour. Sometimes this can be really annoying so, if you find yourself in need to change this, here’s how: Navigate to /System/Library/LaunchDaemons and locate the file named com.apple.backupd-auto.plist. Inside this file you will find the following content: <key>StartInterval</key> <integer>3600</integer> 3600 means hourly (60 minutes X 60 seconds). [...]
If you are developing in Swing and using hibernate you might – at some point in time – run into this exception: org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session What happened, you might ask? Well, turns out that when you close the session that created a given [...]
After buying my shiny new ipad2 I, like most other tablet enthusiasts, devoted a fair amount of time in search of the coolest and most useful apps to install. The major problem in most results that google returns is that they all mention the same list: twitter, IMO.im, friendly, dropbox, etc. (for a list of [...]
Ever found yourself sitting in the toilet and, when it’s that time to do some pushing, instinctively getting on your toes to help the process? Well, it turns out that there is a reason for that: Humans have an easier time pooping in a crouching position. So when you get on your toes you are [...]
Here’s a little script to get the latest earthquakes worldwide (1 hour). Sorry, Ruby purists, for not using RSS 2.0 and hpricot for a cleaner extraction of the coordinates, but my xcode installation is messed up and i can’t build any gems require ‘rss/1.0′ require ’rss/2.0′ require ‘rss/atom’ require ‘open-uri’ require ‘cgi’ source = “http://earthquake.usgs.gov/earthquakes/catalogs/1hour-M1.xml” # [...]
Need to be able to remotely add torrents to your secure machine at home? Don’t want to expose any ports to the world in order to accomplish that? Solution: Use Dropbox and uTorrent. How? Setup uTorrent to automatically download any torrent files found in your Dropbox folder (like the picture says). After that, any torrent [...]
I’ve always been an apologist of sleeping at least 8 hours per night/day and – except for my brief experiments with other types of sleep cycles – i have always tried to do so myself. I am one of those people that feels better when i manage to sleep around 8-9 hours per night, otherwise [...]
The problem For a while now, i have been searching for a way to stream videos from my living room’s Mac Mini to my other Macs across the house. Especially to my laptop (or in the future to my tablet) when i’m laying in bed. Yes, i know i’m lazy, but one has to take [...]
A while back i changed my blog domain name from diffract.me to pedroassuncao.com. However, i was dumb enough not to redirect the traffic to the new name – in a transition period. The result? A drop from 100+ visits per day to less than 20. I have to admit that it kind of bummed me [...]
Just some notes i might update while going through the procedure. To start with, gem might complain that bundler requires a higher version. Something like this might happen, when you run “sudo gem install rails”: ERROR: Error installing bundler: bundler requires RubyGems version >= 1.3.6 ERROR: Error installing bundler: bundler requires RubyGems version [...]
Recently i had to fill one of those client/customer satisfaction surveys. Endless pages of “how well do you grade feature X” questions that frustrate you beyond the point of killing yourself and your colleagues. And that got me thinking: how about a simple form that asks “Are you happy? Yes/No”? If you answer “yes”, case [...]
Today i want to tell you about the best thing since canned tuna: a fantastic application that extends Finder’s functionality to provide you with features like tabs, cut-and-paste, dual-mode, and more. You know, the things that all of us have missed in Finder, one time or another. It’s appropriately named TotalFinder (in honor, i’m guessing, [...]
So here’s something you can’t find on the internets. Or at least i couldn’t, when i was trying to find a way to do this. The problem: Traditionally, spring and hibernate have been mostly used in web applications. In this case, you can easily define your domain objects to have lazy collections because spring/hibernate will [...]
I could not figure out why the hell Safari 5 was running so slow in my personal mac, when compared with the one i use for work. Until i read some nice tips on the subject, namely this one article. To make the story short: I had installed (a long long time ago) a couple [...]
One of my current projects requires me to deliver a Swing application via Java Web Start. This meant some research to figure out how that works. Since i’m a nice guy, here’s the result for everyone that needs it. As you can see – in the folder structure image – there are some files that [...]
Google is on a rampage. After opening up it’s short URL service to the general public, it now introduced a new image format (WebP) which they claim to achieve “an average 39% reduction in file size”. I wonder how long it will take for applications like Adobe Photoshop to include support for it. As a [...]