Thursday, 30 May 2013

Restoring multiple deleted files from dropbox

When I arrived at work this morning my university folder was empty. Oeps...
Apparantly some syncronisation error happened when I copied my files to my new laptop, and reorganised them. When I turned on my old laptop at home it the evening, it deleted everything from Dropbox.

Luckily, Dropbox maintains a history of your files so you can recover them up until a month ago (longer if you are a Pro user).

You can log into and restore the files one by one. Unfortunately, this will take forever.

The solution. I found a script offered by Dropbox. One you install Greasemonkey plugin for Firefox or Tampermonkey for Chrome, you can just run this script: JSBox. It will give you the option to mass recover your files through the web interface!

This little script gives you some nice little options:

After installing the extension or logging in using the fake server, just browse your files as usual.
If you click this option, a new Modal box will open with a text box containing the contents of the file. Just make your modifications and click Save to submit the changes and automatically sync it with your all your computers.
You can click the link Open in new window to work in a new Window with the file.
 Restore groups of files
Another useful missing feature for Dropbox is to restore groups of files when you accidentally delete them.
When you click your events page after installing this extension (or on the fake server), you will see a special link next to the deleted events feeds:
 Just click this link and in a few seconds, all the files deleted on this event will be restored.


I just ctrl-A selected all the folders, right click, restore. That saved my day today!

Tuesday, 28 May 2013

Installing OpenSuse 12.3 on the new Dell XPS13 Ultrabook

Check out the install for OpenSuse 13.1 here.

I just got the Dell XPS13 Ultrabook. It looks amazing... It feels very sturdy with the Aluminium exterior and is just very cool.

Just a short sidenote about the XPS13 before I go into installation details... When I turned it on I noticed an extremely irritating high-pitched sound that would not go away. It varied a little bit every second. I tried all possible things to find the error (turn off wifi, switch to other screen etc). Nothing helped. So I sent it back to Dell and they changed the motherboard and the fan. It came back yesterday and I was all exited... only to still hear this noise... I read around on the internet and it must be a design thing, perhaps an electrical wire that is not properly insulated. Now, I must admit, I have extremely sensitive ears so that might contribute. Also, woman's ears are able to hear higher pitched sounds then men, so perhaps the designers or technicians did not hear it. Still... it immediately cought my attention. Anyway, I have am trying the laptop now, and I must admit, seeing it without that horrible windows makes me feel alot better about it.
UPDATE: after installing Linux and peforming the BIOS system stress test the hight-pitch sound went away... thank god!

I created a bootable USB stick from the OpenSuse website, with version 12.3, 64-bit on it. Now my colleage told me that despite my love for OpenSuse, I might consider installing Ubuntu on it, since it has a dedicated release for this laptop. Well, after considering that for about 5 minutes, I put my USB stick with OpenSuse in the XPS13 and rebooted. Press F12 on startup to access USB booting.

How to install OpenSuse:

- Choose install
- Follow the instructions: be sure to completely erase any windows partition.
- I choose and ext4 filesystem, which is the default option and added some extra software for development.
- Wait a moment
- Done

Now how well does it work?

- Network (incl WiFi) functions without extra configuration.
- Power button gives the logout/power off menu, which is fine for me.
- Suspend seems to work properly.
- Second screen with KRandR works fine.

Only issue I could find so far is that the Brightness adjust does not work (see this bug report). I will implement a fix in the coming days, and will post it here, so be sure to come back!
UPDATE: I was able to fix the brightness buttons by running this command as su (also works after reboot):

/bin/echo 0 > /sys/class/backlight/intel_backlight/brightness

Sunday, 26 May 2013

Cool effects with Fujifilm X10 firmware 2.0 update

I just update the firmware of my Fuji X10 camera and discovered some awesome built in advanced effects!

If you go the the advanced menu (rotating button on the top Adv.), you get select the new filters. I just took some very quick snapshots (it's about midnight so the room was dark). To get an idea of the new filters.

Miniature - creates top and bottom blur for diorama effect:

Toy camera - creates shaded borders as taken by toycameras:

Dynamic tone - creates a fanatasy effect by dynamically-modulated tone reproduction:

Partial color:

Other effects include:

- POP color: empasises contrast and color saturation
- high-key: enhances brightness and reduces contrast for lightenig tone reproduction

Second new feature in the second version of Fuji X10's firmware is the Quick Menu, already available on the X-Pro-1. Press the raw button for a bunch of usefull shortcuts:

Get full instructions on how to upgrade your Fuji X10 camera's firmware here. It's really easy. Basically, you just download the .dat file and place in on a formatted SD card. Then you turn on the camera while you are holding the back-button.

Have fun!