Monday, December 08, 2008

Ecto, meet Blogger. Now go make some beautiful newlines.

I've been using Blogger to all my post publishing needs for some years now. And since I moved my "home" into a Mac OSX system I've started using ecto to publish to them. But I've stumbled in this issue in more than one blog, so this post serves as both advice for the frustrated and to remind me in future installations (never googled your blog to see what your past thoughts were? you are missing out, then!)

Problem. I write a text, such as this one, with some paragraphs. and if I publish them as is, blogger spaces them out, inserting linefeeds (<br/> HTML tags) between them. So I desperately try to fix them in ecto. I refresh the posts list, and see the extra spaces. If I fix everything, I get the same result. If my mind wonders and I forget to fix something, and still publish it, I see not one but two extra line breaks. Wow! :)

Solution. Taken from an ecto's support forum entry the idea is to make Blogger *not* insert linefeeds in every return on the posted text. ecto does that job already, so we simply stop Blogger for doing extra work. Who knows, someday ecto will detect that automatically and won't hurt our posting confidence in the process :)

Details. Go to your Blogger dashboard, see the Settings tab, and the Formatting subtab. Set "Convert Line breaks" to "No". Save. Publish. Rejoice!

Serve your music with class. Use Bowtie!*

I recently stumbled upon TUAW's article on Bowtie. logo.png

Context: music info and control in a Mac OSX (Leopard) environment. I have until now been envying Coversutra's users, for its beautiful and useful cover art, shortcut-controls of iTunes and Last.fm song submission. Well, seems like I've made my setup even better. Want to know how? Let's start by grabbing the latest version of Bowtie. Yes, it's still in beta (next beta is being worked on as I write this, according to the author it will be due in a couple of weeks). Run it. Run iTunes, and play. And that's it!

Wait... but I see an space-eater icon in my dock. Coversutra has the option to go to the menu... But Bowtie has no need for such a menu. what for? So grab your application icon, right click, show package contents, and find the Info.plist inside it. Now add a new String parameter called NSUIElement, and give it a value of 1. Presto, relaunch the app, and you have no icon at all on your dock - and the UI is still on your desktop! But wait, how do I go to the preferences? That's right, no menu is there. So just click on the UI, and press the default Preferences shortcut, "Command+", to bring up all the juicy options!

Waaait a bit more... but I don't like how this looks like! Well, two options: either make your own skin, see the downloaded package for details, of look trough some foruns for Bowtie related skins. I promise, you will be much surprised with the quality of each theme!

Hey, I'm not there yet - I used a Coversutra demo and I liked the search features... and the much much more comprehensive shortcuts to customize from! Ok, ok. I'll bet if you want to have this trouble to use freeware to suit your picky needs, you already have a launcher such as say... Quicksilver! Am I right? So you're all set. Just install the iTunes module, and skim through its settings, and triggers. Shortcuts aplenty for all of you keyboard lovers, and a bonus one - "Search iTunes". give it a handy shortcut, and it will be all you need. But if you want to look for artists, albums, or tracks, just type iTunes in Quicksilver, press right arrow and browse whatever you want, and then play it. All very very similar to what you already do with Quicksilver, which is a big plus!

Still now happy? Last.fm integration is not enough? Still need that menu icon, despite useless? Still find out the window is not on the desktop when pressing F11, like Coversutra's? Found any other nasty bug? Do everyone a favor and tell the developer. Beta versions are there for you to find bugs and for developers to fix them!

*or How to kill the need for Coversutra and its paid support once and for all...

Friday, October 10, 2008

Hundred Pushups


After 6 weeks, I finally managed to do one hundred pushups in a row. Not that easy, I hear you say? So go ahead, try it yourself. And then you may wish to take a look into this great program by Steve Speirs.

One Hundred Pushups is a set of guidelines to make you able to do that, without much effort, and in your own time. The only rule you have to keep in mind is to keep from cheating to yourself. Trust me. If not for anything else, it'll blow some steam away from you, make you sleep better with your body as tired as your mind!

Wednesday, October 08, 2008

iPod Touch and WPS behind routers

I've recently bought a 2nd generation iPod Touch, and I'm getting used to the location finder (without GPS).


However, my home router's seem to enjoy hiding the location... I've googled the issue, and I've come up with the WPS notion, and a link for a form where we can tag a given MAC address (your router's) to a easily findable (via a Google Map widget) geo location. They say I have to wait a while before that starts to work. We'll see... :)


From the Skyhook's website:



The WPS is an essential part of any complete Location System. Without this capability, the location of a mobile device cannot be accurately or reliably determined, especially in indoor or dense urban environments. As a key component of XPS, the Wi-Fi Positioning System (WPS) has been closely integrated with GPS and cellular positioning.



More info and the aforementioned form can be found here.



Saturday, July 05, 2008

AppleScripting Twitter in Quicksilver

Today I woke up with a strange need to show some love to my everyday helper, Quicksilver. And just as I was about to twit something, I realize that was the perfect addition I was lacking! Let's see what I've come up with.

I found out Tweet.scpt from Ted Leung, an AppleScript to send Twitts via Quicksilver. As simple as that. Drawbacks, Twitter only lets us send 140 characters long messages, and Quicksilver won't count that in the interface for us. Also, inline text writing in the default QS interface is not exactly great looking. For the UI issue all I had to do is to grab the BezelHUD skin from Julius Eckert. Just trust me on that one, see the video on his page or go ahead and install it - I'm not going back, it's awesome!

To the char count problem, I had to make some modifications to the script. In short, I opted to count the chars using

count characters of tweet

then either send the message to twitter or show a dialog warning telling you have exceeded the char limit. Pretty simple, and works almost great (bonus for finding how quicksilver could show the char count in the text-edit window!).
All the notifications use Growl. And the script looks for your Twitter account info in your Keychain, using the Usable Keychain Scripting addition, from Daniel Jalkut (another small modification from the original script, that uses the Apple's slow Keychain Scripting...). But I found out the Keychain thing was being blocked if it wasn't started yet. So I "borrowed" this loader (I can't remember where...), and call it before I try to access my password, and it works great:

on startKeychainScripting()

-- This function ensures that the Keychain Scripting.app is launched by a process

-- different from the one executing this script. It is only needed when using Keychain Scripting to

-- retrieve the password property of a key.

-- Quit Keychain Scripting if it's running, since opening this script may have implicitly launched it.

try

tell application "System Events"

set foundApp to first process whose name is "Keychain Scripting"

set pid to id of foundApp -- this will exit the try block if the process isn't running

quit foundApp -- we get here if the process is found

end tell

end try

-- get Finder to launch Keychain Scripting

tell application "Finder"

open application file ((path to home folder as string) & "Library:ScriptingAdditions:Usable Keychain Scripting") as alias

end tell

-- make sure that Keychain Scripting is up and running

repeat while true

try

tell application "System Events"

set foundApp to first process whose name is "Usable Keychain Scripting"

set pid to id of foundApp -- this will exit the try block if the process isn't running

end tell

exit repeat -- we get here if the process is found

end try

end repeat

end startKeychainScripting


This is also included in my script. All you have to do is to place it in ((path to home folder as string) & "Library:ScriptingAdditions:Usable Keychain Scripting") and reload Quicksilver. Try it out!

Now all I have to do is to find out why direct messages like "d username hey, what's up" don't get their destiny :( Maybe it has something to do with http://twitter.com/statuses/update.json not liking direct messages, but my spare time is up now, I'll give this another try later on...

Last, but not least, many thanks to all authors and contributors of all software and tips I've mentioned in this post! :)

Saturday, June 07, 2008

MyToons Animation

Ahoy! This is my week-end fun post. So you find yourself bored. nothing to do. Have an HD screen ready to show beautiful things, but don't feel like national geographic, the latest movie or even a ps3 game. Just vegetate a bit more into MyToons and discover a whole world of animations waiting for you. I started peeking at the site from its early beta versions, and I must tell you both the site and its contents made a huge jump in the last year! So go ahead. Choose the "All Things HD" Channel, and browse away, or click the first and let them play. There's some really neat stuff there!

[See MyToons Animation]

Saturday, May 31, 2008

Disqus, meet my Plaxo Pulse.

Commenting just got a new level for me. I discovered Disqus has just got integrated with the post stream at Plaxo's Pulse. I just gave it a whirl, changed my two main blogger-based blogs and presto. Now you may access my pulse, see a post entry you'd like to comment on, and do so in plaxo's interface - the message will appear properly on my blog, also! Look for the highlighted message to make sure your comment get's to the proper place, in the future:

Plaxo's Pulse integration with Disqus