Posts Tagged ‘Code’
2009
12.18
Tags: Code, Component, GUI, OO, Ruby, Toolkit
Posted in Ruby | No Comments »
Ruby is incredibly adaptable to a multitude of environments, operating systems and GUI toolkits. It can become cumbersome to procrastinators like me who tend to be in search for the one true way to fit it all. Note that I call it unified ruby GUI vs standard ruby GUI, because I don’t think that a true standard toolkit would make the world happy. My humble expectations are:
- can be installed as gem and uses gem
- supports*: windows, mac os x, gnome, kde, web-interface
- *using the preferred toolkit** of that platform
- **no other dependencies should be added
- simple things should be simple
- complicated things should be possible
(more…)
2009
05.06
Tags: automator, batch convert, Code, Convert, handy command, Mac, PDF, processing, Ruby
Posted in Mac, Ruby | 33 Comments »

PDF
I was astonished not to discover an easy way to convert text files to PDF with automator! Yes, I found some evidence of a past action which is now gone, here is a new implementation and written in Ruby.
(more…)
2009
04.29
Tags: automator, Code, Download, Leopard, Mac, OS X, Ruby, Scripts
Posted in Uncategorized | No Comments »
Welcome to the download section of this site. Every now and then I but some stuff for download in my posts. In this download section you will find the most appealing downloads
Mac OSX Leopard
Every now and then I need some tweak to get my work done.
| File |
Description |
| Flatten Movies | Automator action able to flatten movies without opening the Quicktime application. |
| Convert To PDF | Convert any file that cupsfilter can handle to PDF |
Ruby
Find below the link to the ruby scripts posted on this site.
| File |
Description |
| atchange.rb | Atchange script written in ruby. Monitors one or more file and execute the corespondent shell command |
| aspect.rb | asbect the ruby way |
| perform.rb | Call a method in the background |
2009
04.29
Tags: background, Cocoa, Code, development, DoSomething, Download, environment, exit signal, function, mainthread, method, objective c, performSelectorInBackground, programmers, Ruby, thread, threads
Posted in Ruby | No Comments »
The easy of use I encountered when I first looked at Cocoa and Objective-C was overwhelming. I have to say that my first development environment was Windows 95 with its cryptic BitBlt function which was the only way to fast draw an image on screen. Five years after I had that experience and just before the advent of . Net Windows hackers had still to resort to the BitBlt function, or start using Direct X which is over kill for a simple app.
Than I met the beauty of Cocoa, where simple stuff is kept simple and complicated stuff gets really complicated! But Cocoa stays consistence with its logic and its way of providing solutions to programmers.
Today I want to take a little piece of Cocoa knowledge to ruby. The ability to spawn new threads like “performSelectorInBackground:withObject”.
(more…)
2009
04.28
Tags: alias, Code, development, journey, meta programming, method test, programmers, redirection, Ruby, showcase, test class, test method, test test
Posted in Ruby | No Comments »
The main purpose of this file is to be able to split the development code from the debugging code. Exploiting the fantastic ability of meta-programming in ruby, there is a way to write less and code more. Following the ruby way of not repeating code everywhere let’s start with this simple showcase:
(more…)
2009
04.27
Tags: Code, command c, GPL, multiple files, Opensource, pitfall, Ruby, terminal session, test, threads, warm up exercise
Posted in Ruby | No Comments »
A long time ago I came across a nifty little script called atchange. It worked and served me well. You give the script a file to watch for changes and a command to execute if changes occurred.
(more…)