Planet Openbox!

July 06, 2008

tuneage:Lilofee - “Lock and Key”We don’t know much about...



tuneage:

Lilofee - “Lock and Key”

We don’t know much about Lilofee, except that they make excellent electro pop, listing their influences as 60s girl bands, 80s dark pop, and 90s industrial.

Don’t just check out this sweet tune from lilofree, but also head over to tuneage for regular doses of new, interesting music!

Not going to GUADEC

Been kind of stormy down here in North Carolina since last night, with some pretty serious thunder storms causing havok around the area. Woke up today to see some trees snapped in half and a car buried under some big branches. With the electricity flickering all the time I thought it would be safe to turn off the PC and wait it out. After yet another stormy period today, I think it is safe to surf the web now.

Read several posts of people who are either going or have already arrived in Istambul for this year’s GUADEC. I could not help but feel disappointed that my participation in these types of community events has dramatically decreased in the last 2 years. I remember when I used to pack and go wherever there was something interesting happening, often paying from my own pocket, just so that I could be more involved and obviously have a chance to meet the people I interact with every day online. GUADEC is one of those events that I never got a chance to attend, even though I was approved last year for a lightining talk.

Guess I’ll just tell myself that there is always next year and try not to feel so bad… after all, I should be used by now with this type of disappointment.

July 05, 2008

A Crux port for Sakura

Sakura is still my favorite terminal emulator — it’s clean and logical, it follows your GTK theme and it handles tabs in the same way Firefox or PCManFM or others do. I hadn’t set up a port in Crux — I have been using rxvt-unicode for the past few months — but I got a wild [...]

Learning about Firefox 3 extensions

Oops! Right after I posted that last entry, I discovered that my little kitfox extension wasn't working as well as I'd thought. And the more I hacked it, the less well it worked, and the more I discovered was missing, like a chrome.manifest file (which firefox 2 hadn't seemed to need).

Eventually some very helpful folks on #extdev pointed me to Ted Mielczarek's excellent Extension Wizard. Give it some details about your extension (its name and version, your name, and a couple things you might want like a toolbar button, a prefs panel and a context menu) and it generates a zipped directory containing a bare bones extension, even including niceties like internationalized strings.

Even better, your new extension skeleton includes a readme that tells you how to leave the extension expanded while you work on it. That's quite a bit easier than building the XPI file and installing it each time.

So kitfox has a 0.3 version (in the unlikely event that anybody besides me wants it).

There's a project called fizzypop to develop and extend useful Mozilla dev tools like the Extension Wizard ... watch that space for more details.

July 04, 2008

FYI: Snoop is back...

...in my head today.

Making Firefox 3 livable

I finally broke down and spent the time to get Firefox 3 working properly for me ... meaning, mostly, finding replacement extensions for the bare minimum of what I need in a browser: control over cookies (specifically, enabling/disabling them for specific sites), flashblock, and blocking of animated images. I'd downloaded extensions for all those a few weeks ago, but I found that although Firefox 3.0 said the FF3 extensions were active, and Firefox 2 said the old ones were, neither set actually worked.

I decided to start from scratch: remove all extensions -- rm -rf .mozilla/firefox/extensions/* .mozilla/firefox/extensions.* plus apt-get remove firefox-2-dom-inspector -- then install a new set of Firefox 3 add-ons.

After much hunting (I sure wish addons.mozilla.org would offer a way to limit the view to only extensions that work with Firefox 3! Combing through 15 pages of extensions looking for the handful that will actually install gets old fast) I found the replacements I needed: CS Lite for the cookie controls, a newer Flashblock, and Custom Toolbar Buttons as a stopgap for image animation (though I suspect updating anidisable will be a better solution in the long run). This time, with the old firefox 2 extensions purged, the new ones took hold and worked.

I also added a nice extension called OpenBook that fixes the horrible Firefox "Add bookmark" dialog. You know: the one that has two nearly identical dropdown category menus side by side, with the bigger one giving you only a tiny subset of your bookmark categories, and the smaller one being the real one. The one that doesn't offer a space for keyword, so to set up a bookmarklet you have to Add Bookmark, OK, Organize Bookmarks, find the bookmark you just added, Ctrl-I to get the Bookmark info dialog, and finally you can add your keyword. OpenBook gives you a dialog where you can set the keyword to begin with, and it only gives you one menu to list categories so you aren't constantly tempted to click on the wrong one.

Now for the urlbar -- that new firefox 3 "smarter" urlbar that slows down typing in the middle of a word so it can pop up a big fancy window full of guesses (all wrong) about where I might be trying to go. Actually, even if the guesses were right, it wouldn't help, because I'd have to stop typing, search the list visually, then if one of the suggestions was right, move my hand to the mouse or the arrow keys to choose that suggestion. That takes way longer than just typing the url.

But I guess I don't mind unhelpful suggestions popping up as long as it doesn't mess up focus (preventing me from clicking or tabbing to other apps on my screen) or slow down typing. Firefox 3 seems to be handling the focus issue better than firefox 2 did, but the slowdown was quite noticeable on the poor old laptop. So I wanted a way to disable the behavior. A little googling revealed that the Firefox crew immodestly calls their new urlbar the "awesomebar", which aside from giggle factor also proves quite useful in googling: a search on firefox disable awesomebar reveals that I'm not the only one who doesn't like it, and got me several preferences I could tweak in about:config plus a couple of extensions to turn it off entirely. I won't try to summarize, since the best settings depend on your machine's spec, plus personal preference.

Making progress! Now the only issue was getting my urlbar tweaks working, so that typing <Ctrl-Return> after typing a URL opened the URL in a new tab instead of tacking on various silly extensions (oh, yes, of course I wanted to go to http://www.firefox disable awesomebar.com rather than googling for those terms in a new tab). Fortunately, it turned out that the javascript that runs the urlbar has changed very little since firefox 2, and I hardly needed to change anything to get my kitfox extension (v. 0.2) working in Firefox 3.

Only one more issue: this blog. The CSS that handles the right sidebar wasn't displaying right. Seems that Firefox 2 has changed something about its interpretation of CSS, so it was floating the right sidebar way down to the bottom of the page below the last content line. Eventually (after adding firefox-3.0-dom-inspector, another extension that had stopped working in the transition) I discovered the problem: the #content was set to width: 77% while the #rightsidebar's left-margin was at 76%. Apparently Firefox 2 rounded up as needed, whereas Firefox 3 just ignores the left-margin if it would overlap the content, and then floats the sidebar anywhere it thinks it can fit it. Fixing those percentages helped quite a bit, and I added an overflow-x: hidden (on a tip from a helpful person in #firefox) so that wide calendar doesn't hurt layout for narrow windows. I think it's working now ... any readers having problems with the layout in any browser, by all means let me know.

July 03, 2008

FYI: Photoshop CS3 Toolbar

Pircsi, you have a week to learn this and know it off by heart.


more details (.pdf)

Just a screenshot

So I started a new job the other week (month? and i am sort of self employed as well…) and finally get to use Linux as a main OS, so I thought I should try and make a sane desktop setup, so I have been tweaking all this time on and off…

here is the screenshot:



that is all.

I am not sure how it got all super mario either…

My first blueprint for Ubuntu

Today I created a blueprint I intend to promote for Launchpad’s Rosetta workflow. Titled “The process by which translation teams can better handle collaboration” (and its matching full specification), it is my intent to describe a mechanism by which translation teams can better administrate the contributions sent by Rosetta users, provide useful feedback and take a first step toward a better relationship with upstream projects.

I kindly invite those interested in the same topic to subscribe to the blueprint and add their feedback to the specification page, specially those who like me have their feet in both upstream and Rosetta worlds.

Not a combination I'd think of

There's a store down the road from me that offers an unusual combination of items. It always makes me stop and wonder when I pass by.

[CIGARETTES & PURE WATER]

It must be my naivety and lack of marketing accumen, but it never would have occurred to me that cigarettes and pure water were two products that ought to be sold side by side.

The most amazing part is that another store just a few blocks away has started offering the same combination! (Though their sign is much less striking.)

Nature updates

Part of my reason for keeping this blog is keeping records of when particular events happen. If there's no story attached, that doesn't necessarily make for interesting reading. So I'll be brief, and just mention that last weekend the mysterious chlorine smell (Dave calls it a bleach smell) was fairly strong up on Skyline near Castle Rock; but it was not noticable at all the previous super-hot week. There goes the theory that it's temperature related.

And the bullfrogs are back at Walden West pond, though they're not croaking very actively. We even managed to spot a (huge!) tadpole, and the feet of something that looked like a crab but was probably a crayfish.

July 02, 2008

A DVCS model that embraces your model?

My good friend Mario Đanić (pygi) wrote a very interesting article on what he calls a “broken on birth” attitude towards DVCS adoption in many open source groups. I was very intrigued as to how one would allow different developers use their own (i.e. favorite) DVCS to work on their project, and yet be able to pool everything together in order to release a given set? If you want to learn about his ideas, about GitoriousKDE or have some relevant feedback for him, drop him a line.

GNU IceCat 3.0 Released

I thought I would make a quick post on this since some people might be interested to know that first version of GNU IceCat 3, the GNU version of the Firefox browser, was released today.

If you are interesed you can also read the release discussion on the bug-gnuzilla mailing list.

I am compiling it right now and it will soon be replacing Firefox 3 has my default browser.

July 01, 2008

FYI: Happy Birthday Canada

July is here! Cheers to the holiday, to summer and to life!
In other news I've added a time stamp to my RSS feed which makes the planet a better place. (Now my entries don't show up all over the place.)

To post or not to post

My latests posts have attracted a fair number of comments (thank every and each one of you for taking the time… really!), most of them in response to the issue at hand. Every now and then someone questions the validity of one of my chosen topics, claiming that it should be published on Planet X (my blog is syndicated on quite a few planets) because it doesn’t talk about technology. I understand that someone people may not enjoy reading every single topic that may be published (not only by me), for I am one of them… honest!

Anyhow, my friend Jonathan Jesse’s comment on my latest post got me thinking… maybe I should write something about this same topic: what do I think about people writing about anything on Planet Ubuntu for instance.

Now, Jonathan… I’m not picking on you bud. :)

I wonder if political posts such as these really should be syndicated on something like planet.ubuntu.com. I know I have different political leanings then you based on the posts that I’ve read and I try to limit my posts to planets to only the topic on hand. Feel free to disagree with me. That’s the beauty of freedom of speech…. I just hope that you aren’t assuming that everyone who posts on planet.ubuntu.com or reads p.u.c agrees with your political ideas.

From the main page at Planet Ubuntu:

Planet Ubuntu is a window into the world, work and lives of Ubuntu developers and contributors.

I most definitely do not assume that everyone who reads Planet X agrees or shares my ideals and/or principals… it would be naive to think that way, and just flat out against Ubuntu (the ideology, not the distro)! Some people like to write howtos… some write about their favorite recipes or music… I reserve my right to talk about the things that are part of my life, sometimes about politics. I don’t expect that every single subscriber will want to read every single word I write… as I mentioned before, I don’t read everything I’m subscribed to. For those posts that don’t tickle my fancy, all I have to do is press the “j” key on Google Reader (or “n” on Liferea) and presto! A brand new post automagically appears!

I would like to hear your view on political posts appearing on something like planet.ubuntu.com

Fair enough. The short answer is: I’d be very interested to know this facet of many of the contributors to open source that are syndicated on these planets. You see, there’s much more about me than translations, BillReminder or my interest in the political future of my nation. I also love fishing, ice hockey, Clint Eastwood’s westerns, Reuben sandwiches, and… and… so much more. Off course I don’t expect that everyone will care about any of these. But there are a few people out there who find this a reasonable way to know the real me, specially when one lives so far away and with no means to meet in person.

The bottom line is that when my blog was added to Planet X, I was never asked to only write about X, or to create a feed that only talks about X. I’m not trying to wash my hands here, but this was the deal offered to me… and I accepted it. Maybe people who control/administer these aggregators will one day change their regulations in order to provide a more specific and filtered content? Until then, I ask all of you guys/gals who may be annoyed by some (all?) of my articles to simply press the “x” key on your news reader of choice… and exercise your freedom of choice.

June 30, 2008

Where should your money go today?

$162 billion for the wars in Iraq and Afghanistan Gasoline New war Relief for the American people Education

For some reason I can’t seem to be able to check the last 2 boxes.

PS: For those who don’t care or don’t want to read about this, exercise your mouse/keyboard and skip this post.

June 29, 2008

Sleepless...

Do you know that when you are tired and you have to sleep but you can't? You keep on thinking about the massive amount of things that have to be done in the next days - or the things that were going on in the past weeks. So you are turning round and round in your bed. All that thinking makes you nervous, wondering if you're going to be successful in all these things in the next weeks.
But worrying doesn't help. Let those challenges come, be concentrated, put effort into them and try your best. And you'll be looking back at them sooner than you would have expected - happy because you were successful. It'll all be good.
And with the sleeplessness, it's the same - i'm almost sleeping now :-)

United States of Censorship

it is amazing just how little real information gets its way to the American public these days. What we Americans call news must be the equivalent of a soap opera or comic stand up everywhere else in the world! The problem is so serious that for those who were born here and never left the country that you end up becoming utterly unaware of what else is going on around the world or, even worse in my oppinion, not knowing what kind of terrorism (our government calls it Foreign Policy) we are perpetrating outside of our borders.

So, while we are spoon fed news about celebraties sexscapades, wild fires and floods (here in American only off course) and useless bits of information, the real news end up filtered out and tossed in the censorship bin. How do you govern/control over a huge population who believe they are free to do whatever they want? The answer is easy: get them out of the equation! As long as we go about our lives thinking that nothing is wrong around us, there is not reason to revolt.

How many people know that Kucinich presented several articles asking for the impeachment of Bush? That our stupid oil-war in Iraq has killed over 1.2 million civilians in Iraq? When was the last time you saw a video/picture of our young soldiers coming back in a coffin? It is as if there was nothing going on and we go on with our lives. How much coverage did our networks give to these issues? Not enough! In any other part of the world, if a president was being considered for impeachment, guess what would be on all news television and newspapers?

Think that the new presidential hopefulls are any better? Wrong! I could never trust someone whose loyalty is far stronger to his organization/group/posse than to his own countrymen. McCain will be yet another dictator with world domination fever. Obama? So much for a change we can believe in. I could never vote for someone who’s main concern is the well being of the State of Israel or who asks his supporters to pay for Hillary Clinton’s $22 million debt from her failed presidential bid! I want a president who puts us, American people first in their agenda. Cut funds for our imperialistic armed forces, and our obssession with finding water in Mars and use that money to pay off our own debts!

People who try to speak up end becoming motives for jokes… How many times was Ron Paul ridiculed during the presidential debates? Apparently it was funny to them that we have been printing money like it was for a game of Monopoly!

I could go on, believe me.

June 28, 2008

Phoronix Test Suite

The latest version of the Phoronix Test Suite, an open source benchmarking tool, was released today and I figured that I would download it and give it a try.

The Phoronix Test Suite is packed with 57 tests that have been grouped into 26 suites which range from audio-encoding to gaming performance. The suite is quite easy to use although you should make sure you have a few gigabytes of hard drive space free because it will need to download over 2GB if you want to run all of the tests.

read more

Mum's Savoury Mince Pockets

These guys are easy to make and taste excellent, and are also good cold or reheated the next day! Thanks, Mum.

  • 1 kg good (beef) mince
  • 2 carrots, peeled and diced
  • 1 onion, diced
  • 1 tsp garlic
  • 2 tsp curry powder
  • 1 cup frozen peas and corn
  • Tomato sauce
  • Sweet chilli sauce
  • 2 cups cooked rice
  • Lebanese bread, around 3-4 pieces
  1. Fry the mince with the garlic and curry powder.
  2. Once the mince is getting close to done, add the peas and corn.
  3. Add tomato sauce and sweet chilli sauce to taste.
  4. Add the cooked rice and mix it all up.
  5. Cut the lebanese bread in half to form pockets and fill with the mince and rice mixture.
  6. Put the filled pockets in an oven at 180°C for 5-10 minutes, or until crisp.

June 27, 2008

Site News: New: XML Sitemap

Introducing a new Osenoa XML sitemap, styled with xsl (which is actually just a hack at the Arne Brachhold Sitemap Generator xsl.)

Elsewhere: World Community Grid

Donate the time your computer is turned on, but is idle, to projects that benefit humanity! We provide the secure software that does it all for free, and you become part of a community that is helping to change the world.
http://worldcommunitygrid.org

Back to Simplicity

I got bored with wordpress so i kicked it and started to look for a simple, slim blogengine which would make it easy to use my own webdesign. Being a python fan, i ended up with pyblosxom which is easy to set up, adapt to my own needs and maintain. What do you think of the new webdesign?

Back to Simplicity

I got bored with wordpress so i kicked it and started to look for a simple, slim blogengine which would make it easy to use my own webdesign. Being a python fan, i ended up with pyblosxom which is easy to set up, adapt to my own needs and maintain. What do you think of the new webdesign?

Whoops.

Okay, so I haven't posted here in about a year... Guess I'm not the best at keeping this up-to-date. Currently I'm trying to put together a design portfolio so I can nab some clients--anyone need some web or print design? :)
I've unfortunately gotten out of the web programming scene as of late (i.e. the last year), but it's something I'd like to get back into. I still have several C projects going on, such as my Castlevania clone, which I have some grand plans for.

Displaying both local and HTTP remote images in Prince XML generated PDFs

In our Rails apps, we use the awesome Prince XML to generate PDFs. We interact with the prince command line application using the Ruby library and Rails helper from the guys over at subimage interactive.

When using their helper to generate a PDF from a Rails template, all image tags have the src attribute altered so they point to paths that are relative to the local filesystem, not just the root of your application.

However, this breaks any images that you are loading from remote locations over HTTP. For us, this ended up breaking the static Google Maps that we were generating.

So here’s an updated make_pdf helper that only modifies the image paths if they are local. This lets us use both local and HTTP-hosted images on the same PDF!

# We use this chunk of controller code all over to generate PDF files.## To stay DRY we placed it here instead of repeating it all over the place.#module PdfHelper  require 'prince'  private    # Makes a pdf, returns it as data...    def make_pdf(template_path, pdf_name, landscape=false)      prince = Prince.new()      # Sets style sheets on PDF renderer.      prince.add_style_sheets(        "#{RAILS_ROOT}/public/stylesheets/application.css",        "#{RAILS_ROOT}/public/stylesheets/print.css",        "#{RAILS_ROOT}/public/stylesheets/prince.css"      )      prince.add_style_sheets("#{RAILS_ROOT}/public/stylesheets/prince_landscape.css") if landscape      # Render the estimate to a big html string.      # Set RAILS_ASSET_ID to blank string or rails appends some time after      # to prevent file caching, and messing up local-disk requests.      ENV["RAILS_ASSET_ID"] = ''      html_string = render_to_string(:template => template_path, :layout => 'document')      # Make all paths relative to the file systemm, but only if they don't have http(s):// at the start.      html_string.gsub!(%r{(src=")([^h][^t][^t][^p][^s]?[^:][^/]*)}, "src=\"#{RAILS_ROOT}/public\\2")      # Send the generated PDF file from our html string.      return prince.pdf_from_string(html_string)    end    # Makes and sends a pdf to the browser    #    def make_and_send_pdf(template_path, pdf_name, landscape=false)      send_data(        make_pdf(template_path, pdf_name, landscape),        :filename => pdf_name,        :type => 'application/pdf'      )     endend

And just to be precise, here is the diff between the helpers:

--- pdf_helper.rb2008-06-27 15:05:44.000000000 +1000+++ new_pdf_helper.rb2008-06-27 15:05:54.000000000 +1000@@ -18,11 +18,11 @@       prince.add_style_sheets("#{RAILS_ROOT}/public/stylesheets/prince_landscape.css") if landscape       # Render the estimate to a big html string.       # Set RAILS_ASSET_ID to blank string or rails appends some time after-      # to prevent file caching, fucking up local - disk requests.+      # to prevent file caching, and messing up local-disk requests.       ENV["RAILS_ASSET_ID"] = ''       html_string = render_to_string(:template => template_path, :layout => 'document')-      # Make all paths relative, on disk paths...-      html_string.gsub!("src=\"", "src=\"#{RAILS_ROOT}/public")+      # Make all paths relative to the file systemm, but only if they don't have http(s):// at the start.+      html_string.gsub!(%r{(src=")([^h][^t][^t][^p][^s]?[^:][^/]*)}, "src=\"#{RAILS_ROOT}/public\\2")       # Send the generated PDF file from our html string.       return prince.pdf_from_string(html_string)     end

I’d also love it if you could propose a better way to handle the regular expression inside the gsub! call. Leave a comment!

In search of a decent portable Ogg Vorbis player

I have recently begun to seriously think about replacing my Sansa e250R v2 with another portable player that actually has support for Ogg Vorbis.

I really like the Sansa overall because it has great battery life and does what it was designed to do rather well.

However, my music collection gradually moved completely to Ogg Vorbis over the past year and Rockbox does not support the v2 model so I am now forced to re-rip my music to MP3 format whenever I want to add something new to the player (which can be a bit of an annoyance at times).

I browsed through the Xiph.Org Foundation's Portable Players wiki page earlier and noticed that the Cowon iAUDIO 7 looks like it just might be an excellent replacement.

Does anyone have any hands on experience with the iAUDIO 7 or have something else they would personally recommend?

read more

Blog entries aggregated on this page are owned by, and represent the opinion of the author.
Hosted by Tim Riley
Administered (to a degree) by David Barr