Archive for the ‘software’ Category

FireFox, wherefore art thou obstinate? (add http:// back)

Friday, September 30th, 2011

Firefox logoFireFox now automagically gives you its latest and greatest… whether you want to or not. Perhaps ok, perhaps not. But: some things change. Things I do care about. I don’t like someone assuming I’m okay with them in this fashion.
Anyway, rant over.

The new Firefox (shiny new version 7, at least new right now) removes the standard url prefix “http://”. I like that prefix. So, let’s add it back!
From somewhere on the web:

To restore the “http” prefix:

  1. Type “about:config” in the location bar and press Enter.
  2. Toggle the “browser.urlbar.trimURLs” preference to change its value to “false”


And Firefox behaves again.

Thunderbird default view

Thursday, September 15th, 2011

Thunderbird logoMore Thunderbird news: how to set default view. It is possible, though in an awkward manner.
The trick: use the config editor (Edit > Preferences > Advanced > General), and fix the view according to this comment in Thunderbird’s bugtracker bug about this. I like my mails threaded (in all folders), and sorted with newest on top. You can set this per folder, but I want to do it once and be done with.

To do this:
I want descending (sort_order: 2), date-sorted (sort_type: 18), threaded (view_flags: 1) mails.
So change the relevant mailnews.default_* values to reflect that :)

The comment in full (to safeguard, and in case your settings don’t match mine):
(PS: Note that according to comment 102, further below, the linked comment had _type and _order swapped. That’s changed below.)

Prefs are named as follows; first three apply to Mail and RSS folders, the second three to Newsgroups.
  mailnews.default_sort_order
  mailnews.default_sort_type
  mailnews.default_view_flags
  mailnews.default_news_sort_order
  mailnews.default_news_sort_type
  mailnews.default_news_view_flags
In about:config  (Tools | Options | Advanced | General, Config Editor),
you can enter "news._def" to filter out all the prefs but these.

sort_type:
  byNone        17         byPriority    23      byLocation    29
  byDate        18 *       byStatus      24  	 byTags        30
  bySubject     19 *       bySize        25  	 byJunkStatus  31
  byAuthor      20 *       byFlagged     26 	 byAttachments 32
  byId          21 **      byUnread      27 	 byAccount     33
  byThread      22         byRecipient   28 	 byCustom      34
    * = commonly desired values
   ** = by Order Received (?)

sort_order:
  ascending   1
  descending  2

view_flags -- the second group of values can be added to one of the first group to combine effects,
with several limitations:
  Unthreaded       0
  Threaded         1
  Grouped         64  [mail only (?)]

  ShowIgnored      8  [news only]
  ShowUnreadOnly  16
  ShowExpanded    32  [doesn't seem to work]
ShowUnreadOnly will check the View|Threads|Unread menu; this will cause only
unread items to be seen, but doesn't force a threaded view.

Edit: of course, afterwards I find the add-on to do just this :)
Edit 2: Again, no convincing case… not sure if this works …
Edit 3: Nope, it doesn’t work. :(
Edit 4: see next post, kind of got it working.

Thunderbird messes up PDF attachments

Monday, September 12th, 2011

Thunderbird logoEver since switching to Thunderbird, I’m happy… for the most part. There is this error where it cannot open or download attachments correctly. People complained and were told to upgrade. Guess what: no such luck!

Ton said that the second answer there might be correct.That is:
Go to Preferences > Advanced > General > Config Editor, and change the value of mail.server.default.fetch_by_chunks to false.

I did, could unfortunately not test conclusively yet (existing PDF attachments may be locally stored in corrupted format, not sure how to undo that).
If I find the answer, I’ll update the post.
Edit (15 sep 2011): Still no conclusive test, but I tested it on a new TB install (setting the values before adding my mailaccount), and the attachments that were previously borked now work. Which is sufficient evidence for me :)

New PC: svn password tweak, GUI corner tweak

Tuesday, August 16th, 2011

So, I’ve just returned from a brief visit to NL, and come back to find my new work-pc humming along nicely. All new. Brand new. Brand new… and completely untweaked! AAAAARGH!

Thankfully, I’ve documented most of the tweaks in this blog (so even if no one reads this, it helps me :). The most annoying remaining part is missing software — easily installed, but still:

  • Thunderbird
  • SVN
  • LaTeX
  • Some firefox plugins (youtube worked, but flash wasn’t happy or something)
  • possibly: ghostview (though perhaps i’ll go evince), others (to be found)

Speaking of SVN: there was a problem (hooray! a new tweak to document here!). SVN apparently is integrated with the GNOME Keyring daemon. Possibly convenient, except that GNOME doesn’t know my passwords. So I got a “password for ‘null’ (Gnome keyring):” prompt… and a refusal to work.
Crap.

Found the solution here. Basically: edit your Subversion config file ($HOME/.subversion/config) and set password-store to empty (“password-store =“).
Now to refind the tweak for getting rid of the bottom dragging corner — yuk!

editFound my old post, which only contained a link. To preserve this info more safely:

  1. create or edit $HOME/.gtkrc-2.0
  2. add the following:
    style "default-style"
    {
    GtkWindow::resize-grip-height = 0
    GtkWindow::resize-grip-width = 0
    }

    class "GtkWidget" style "default-style"

  3. restart Gnome

Playing with GIMP

Wednesday, June 29th, 2011

Gimp logoThe other day, for work, I wanted to make part of a picture stand out. I opened GIMP, but not sure to proceed. And then I hit upon an idea: have the original in B&W, and have the highlighted part in colour!

Sometimes this looks really good, sometimes it’s more okay than amazing. But, at any rate, it’s neigh-on trivial in GIMP, as this tutorial shows.
Short short version

  1. duplicate background layer (right-click layer, “copy”)
  2. make new layer grayscale (color menu -> desaturate, try the options)
  3. add layer mask (right-click layer, “add mask”, select “white”, click add)
  4. paint on the mask with black to remove those parts of the layer (brush tool or pencil tool)
    fix mistakes by painting with white (press ‘x’ to toggle between background and foreground color)
  5. save image

And what does that get you?

voting booths voting booths (b/w)

Pretty nifty for my first serious GIMP’ing, no? :)

Edit: just found out how to easily have lines around a selection:

  1. select something,
  2. choose a brush or pencil of appropriate size and color
  3. Click Edit > Stroke selection; choose the lower radio button (“Stroke using a paint tool”)
  4. done!

Yeah yeah, trivial stuff huh? Two things: 1, last time it took me way too long and the result was entirely unsatisfactory; 2. this works on any selection, not just a square or circle. And that is cool :)
Outlining Switzerland on a map of Europe in 5 sec is cool :)

Skype issues

Thursday, June 9th, 2011

Skype has two issues with the current Ubuntu:

Mail setup: auto-folder subscription

Tuesday, June 7th, 2011

Thunderbird logoSo, in between the (by now) terribly outdated (two holidays ago by now :s) Tenerife epic, an actual current update!

I’m right now in Darmstadt, at CASED for a month. I bravely decided to take the new computer I got here and set it up with the new ubuntu. Plenty of woes so far (why on earth does the external monitor function out-of-the-box on the live USB stick, but it’s a royal PITA to get it working once installed.

For that matter, since when does Ubuntu forget to let me boot into my windows? I must have done something wrong with the install — but it used to be easy, now it’s hard to figure out?!

Le anyway, mail clients. Trusty old evolution somehow didn’t show all my regular folders. Okay, thunderbird then. The same damn folders missing again – wtf?

Okay, turns out to be a matter of “subscribing” to the desired folders. Well, how about all of them, by default? Apparently, neither client did that out of the box. But it fixes the issue in both… (thunderbird: file > subscribe ; evolution: Folders > subscribe). Weird, good to remember.

FireFox 4 tweaks for better browsing

Monday, March 14th, 2011

As you know, I’ve been experimenting with the new Firefox. It’s quick, it washer whiter than white, and … it can be improved with a few tweaks.

Tweak one: search from address bar

Firefox 4 omits a feature I love: Browse By Name. That link explains it all, but I’ll recap it here.

In Firefox, you can type anything as the name of the website. Go ahead, try it! Open a new tab, and type “Hugo Jonker“. No “http://”, no “www”, no “.com”. Just a few words. What Firefox used to do, was to ask Google. If Google was sure what to answer, you were immediately redirected. If Google wasn’t so sure, you’d get a Google search for what you just typed.(*)

I was so impressed when I saw this. This was damned awesome! “Google knows” made reality — Google does know! Imagine my disappointment upon finding out that Firefox 4 broke this. It now always gives you a Google result page(*). Not cool.

Luckily, this is easily enough fixed — see the above link. Quick recap:

  1. Surf to about:config
  2. find “keyword.URL”
  3. Give it the value “http://www.google.com/search?sourceid=navclient&gfns=1&q=”

Tadaa, your Firefox works again — without needing Yet Another Plugin.

* Unless your internet provider is a dick that redirects all unresolved traffic to their own pages.

PS: Obviously, you can use other web services (Google search, Bing search, Yahoo, etc.– just search for “address bar search firefox” in your favourite search engine). But I love this “redirect-if-sure-otherwise-search” option, and I wanted it back. So now I do :)

Tweak two: animated tabs

Opening/closing tabs in firefox 4 is soooooooooooo cool! Your tabs slide into existence, and wink out again as the others slide over them.

Well, you know what? I’m typing this on a netbook, and this stuff hurts. Eyecandy is fine — if I don’t notice any downsides. Here, I do.
So: goodbye, animated tabs!

Short short version: about:config, browsers.tabs.animate = false. And surfing is good again :)

FireFox 4.0 RC 1

Thursday, March 10th, 2011

Firefox 4Firefox is almost up to version 4. Today, I had occasion to boot into Windows (in short, I was forced). My Firefox needed updating after a long period of neglect. So I updated it, and noticed that there was a Release Candidate for the newest version. Now a release candidate isn’t the finished product. You might run into bugs. Then again, I almost never use Windows, so why not give it a try? Next boot, there will probably be Firefox 4.5 or so to install anyway :)

I did. While it was downloading, I wasted some time browsing slashdot (a site which I should stop browsing since it no longer is as good as it was, but okay). Slashdot uses quite some javascript. So after finishing the install, I figured to test the speed claims on Slashdot, check if there was an improvement.

BY GOLLY THERE WAS!! The flames left by the racing speedmonster Firefox had become threatened to engulf my desktop (metaphorically speaking, of course). I’m now actually tempted to install RC1 in Ubuntu as well. If I do, I will let you trusty reader(s?) know all about it :)

Eeeuh… buntu! (part deux)

Tuesday, May 26th, 2009

Just as a heads up, I’ve reinstalled the Eee and am now running Ubuntu 9.04 with Adamm’s kernel. Several things have changed slightly (not necessarily improved over Ubuntu 8.04 with Adamm’s kernel, but changed). I have updated the old post to reflect the new state. (Yes, I use that post to reconfigure the Eee — it’s just quicker that way :)

Main annoying quirk now is that the window manager is just slooooow. There is a bug on that somewhere for the Ubuntu Netbook Remix — which I am not running. I decided to go with vanilla Ubuntu for the time being. It happy me makes so far a bittish.

PS: In case word hasn’t reached you yet: 25th of August! 16:00, Auditorium 5. If you need to ask, you’re out of the loop ;-P