Brother DCP-135C and ubuntu

I just used a few minutes getting the above mentioned printer working with ubuntu, normally most printers I have used works out of the box with ubuntu, but not this one. My solution seems to be quite simple, however it may be that it is not the correct way to do it, but it worked for me 🙂

  1. Install brother-cups-wrapper-extra
  2. In “Printer configuration” (System -> Administration -> Printing) click “New”, select “Brother DCP-135C”, click “Forward”, wait for search to finish, click “Provide PPD file”, select the file /usr/share/ppd/Brother/brdcp135c.ppd, click “Forward” and click “Apply”

You should now be able to print with your DCP-135C printer – however this is just the printing part, for the scanner to work, you probably want to look at

Chromium daily builds

As you may have heard Chromium is released for Linux in Alpha version, with daily builds available from here. Normally you would properly use the ubuntu repository if you wanted to live on the edge, getting the daily builds.

But if you, like me, are in the middle of a reading periode before your next exam, and needs an excuse for not reading, you might find youself writing a sh-script downloading the newest version (if it is not the one you got already)

Hey look at that, now another five minutes went by without me doing any reading.

WordPress and special characters domains

I have recently switch to a domain with a special character (ø), which lead to not being able to use the pop-ups in WordPress editor (tinyMCE), firebug gave me this error

After a bit of googling it seemed to be a problem in the version (2.2.3) of tinyMCE included with WordPress version 2.7.1.

I manged to solve the problem by downloading the newest version of tinyMCE (at the time of writing that is and replace tine_mce.js and tiny_mce_popup.js in /wp_includes/js/tinymce with the same files in the downloaded zip folder, located at /jscripts/tiny_mce — you might want to keep a copy of the old version, just in case you find a problem with this approach. If you find any problems with this approach please let me know.

Android “1.5 Early Look” SDK

I just tried out the new Android SDK , and made a small video trying it out (see below). It seems to be booting quite fast. The on-screen keyboard is there as well, although it does not seem to work in landscape mode , and there have been some UI polishing ass well . If I have missed anything interesting or anything else you want to see, let me know in a comment.

pptp with NetworkManager

After using some time trying to get a pptp to a VPN server running Microsoft Windows 2003 R2 i finally found a solution. This article made me aware of a Network Manager pptp plugin, but it seems to have been changed a grate deal since the description in the article (I’m using Jaunty), so I had some problem connecting. In the end I made a connection with a windows computer and used the settings used there, here is the result.

Start by installing network-manager-pptp and restarting Network Manager (/etc/init.d/NetworkManager restart) now create a new VPN profile by left-clicking the Network Manager icon choosing “VPN connection” -> “configure VPN” -> “add” -> “Point-to-Point Tunneling Protocol (PPTP)” -> “create”.

Access point: the ip of the VPN server
User name: User name of the user you want to login with
Password: password of the user

Now (and this is what made the difference for me) choose “Advanced” and make sure only MSCHAPv2 is selected enable “Use Point-to-Point encryption (MPPE)” and choose “Security: 128-bit (most secure)”.

This worked for me, but keep in mind that your VPN server might be set up differently, if you have problems, try connecting from a windows computer (the setup is quite simple) and see the details about the connection and try to match them in NetworkManager.

cakePHP sessions

I have been working with the cakePHP framework for some time, and ben mostly happy with it, but I had some problems with loosing sessions, when the user clicks on links to fast, today I finally found the reason and solution. By googling around (and searching the cakePHP maillinglist) i found this blog post by Kester Dobson, which had a comment that pointed me in the right direction.

So the sort answer is: set Security.level to medium in /config/core.php, this ensures that CakePHP session IDs are not regenerated between requests.

This seems to effectively solve the problem.

The Day the Earth Stood Still vs The Day the Earth Stopped

The Day the Earth Stood Still

Release day: 12 December 2008

The Day the Earth Stood Still from wikipedika
The Day the Earth Stood Still from Wikipedia

The Day the Earth Stopped

Release day: 9 December 2008

The Day the Earth Stopped from The Asylum
The Day the Earth Stopped from The Asylum

The Asylum seems to have a thing for releasing low-budget films with a title close to Hollywood films at the same time as their Hollywood friend, but straight to DVD.

Android network unlock

I saw that a company had managed to unlock the g1, only needing the IMEI number to do so. This made me wonder how much information I would be able to obtain about the unlocking process, just by looking at the code, so I grabed a copy and started searching (thanks to grep), this is what I got so far.

From the video showing of the unlocking process, I found the string (SIM network unlock PIN:) displayed when the user is about enter the unlocking key, and started by searching for this, and got a file packages/apps/Phone/res/values/strings.xml, which containes the line “<string name=”label_ndp”>SIM network unlock PIN:</string>”, and some additional lines with content like “Network unlock successful”, this seems to be some translation like file (other translation is also in the folder “values”).

Next I tried searching for “label_ndp”, and among others got the file packages/apps/Phone/res/layout/sim_ndp.xml, which seems to be a layout file, for tha network unlock screen (or network depersonalization as it seems to be referrenced by the system), which has a line containg “android:text=”@string/label_ndp”/>”.

By searching for “sim_ndb”, i found a file, containing a line “setContentView(R.layout.sim_ndp);”, “packages/apps/Phone/src/com/android/phone/”. This file seems to be loading the layout, and linking it to some code, like the lines:

My next search was on the string “supplyNetworkDepersonalization“, which gave a about a handful of results, the most interesting was /frameworks/base/telephony/java/com/android/internal/telephony/gsm/, which has the following function

This is about as far as I got, if any one else has some interresting knowledge/links about this subject, please let me know…