Software\’s whipping boy

March 9, 2013

Fixing Photo Mistakes

Filed under: Uncategorized — rslomkow @ 9:26 pm

So I messed up and deleted a bunch of photos off my Camera’s memory card by not paying attention to it.  With Linux there is a way to recover.

First you need the “testdisk” package to get you “photorec”

# sudo apt-get install testdisk

# sudo photorec /d /MYPATH /dev/MYDEVICE1

then I put together a quick python script to list out which files were recent of the 900 I had not backed up (this is just a one-off for my use case.  I just wanted the new photos from the 4th through the 9th of March 2013

#!/usr/bin/python

import os
import EXIF
import re

def matchDate(string):
  return re.match('2013:03:0[4-9]',str(string))

def dateFromFile(filename):
  fh = open(filename,'rb')
  tags = EXIF.process_file(fh)
  fh.close()
  try:
    return tags['EXIF DateTimeOriginal']
  except:
    return None

def matchFiles(files):
  for f in files:
    date = dateFromFile(f)
    if matchDate(date) != None:
      print f

filnames = os.listdir('.')
matchFiles(filnames)

February 13, 2010

New Laptop

Filed under: Uncategorized — rslomkow @ 5:04 pm

Both my laptops died within a week of each other.  The bottom keys of Dell Vostro keyboard died.  I tried ordering one a week ago but still don’t when or if it will arrive.  I started using my MacBook again, got everything setup and working, then the hard drive started acting up, then the logic board died and I was left once again without a personal computer.  I went to the local shops and looked around then looked online.

I decided on an Asus EeePC 1201n Mine is actually the red (well really wine) one. It isn’t quite a netbook it is more of a small laptop. But the 12 inch display is nice bright and crisp (1366×768) no CD, and good keyboard, also a nice bumpy touchpad. The Nvidia Ion chipset is enough to do 3D graphics fairly well and the Dual-core atom CPU at 1.6Ghz is enough for good multi-tasking. 2GB of RAM.

I installed the Ubuntu netbook remix, which worked pretty well. Performance is horrible before I enabled the Nvidia proprietary drivers (via the UI), but after that it plays HD video just fine.  Audio, Video Camera, Ethernet, X-Server, blue-tooth all work straight after install (though video was slow, until I went to System -> Administration -> Hardware Drivers .)

WiFi did not.  I needed the driver for rtl8192se chipset (from launchpad bug 401126), which has broken Makefiles so I just made a shell script to install it, when I upgrade the kernel.

After that the laptop works great.  I like the:

  • size
  • keyboard
  • screen
  • weight
  • heat
  • battery life (around 3.5 hours of real usage)
  • power adapter (small and light)
  • video performance (outside of fullscreen flash video, where 420p is as high as works well, avi’s xvid and whatnot work great at 720p)
  • the UI on netbook remix is well done for a small factor screen

One note it will not hibernate if bluetooth is turned on.  You can just right click on the icon and turn it off and then hibernate works just fine.

Closing note, now that Microsoft has dropped the motto Best Version of Winows Ever.  Windows 7 does qualify (Vista did not), it worked fine, I have it dual booting, but I spend most of my time in Linux.  It did come with Windows 7 Home Professional, which is a usable version of windows for when you need that.

August 15, 2008

Buddycloud Mobial Social Location

Filed under: Uncategorized — Tags: , , , , — rslomkow @ 10:47 am

Simon and Ross (and other whom I haven’t met) have a public release of Buddycloud.  It is a cool little app for your Mobile (Nokia Smart Phone or other Symbian) that keeps track of where you have been and lets you update your status and even hooks into Facebook.  It uses special black magic from the Mobile phone network to know when you get back to the same place or suggest new places for you.  Also it works as a living phone book that your friends can update and you can know, where they are, where they are heading, what they are doing, and how to get in contact with them.

I need more friends on this to make it more usefull!

Blogged with the Flock Browser

November 16, 2007

How to make Flock work a bit better for long time users

Filed under: All — rslomkow @ 4:46 pm

Reality is Flock has had some upgrading problems if you have been a long time Flock user, you may
find some instability in 1.0 if you have upgraded multiple times.  There is a way to trash your profile without losing everything (saved passwords, cookies, …)  WARNING you will still lose some of your profile data and potentially extensions and search-plugins.

1) Open Feeds -> Feed Options -> Export Feeds
Remember where you saved this. “flock-export.opml” is the name I will refer to it as later.

2) If you have been using firefox (as you probably have if flock has been crashing on you)
in these examples “USERNAME” needs to be replaced with your username on the system.

2.1) quit firefox

2.2) Rename your firefox profile directory

2.2a) Windows

C:\Documents and Settings\USERNAME\Application Data\Mozilla\Firefox

Rename Firefox to Firefox-lkg

2.2b) Macintosh

/Users/USERNAME/Library/Application Support/Firefox

Rename Firefox to Firefox-lkg

2.2c) Linux

~/.mozilla/firefox

Rename firefox to firefox-lkg

3) quit both flock keep this blog post in a text editor or something

4) move your flock profile aside

4a) Windows

C:\Documents and Settings\USERNAME\Application Data\Flock\Browser

Rename Browser to Browser-old

4b) Macintosh

/Users/USERNAME/Library/Application Support/Flock

Rename Flock to Flock-old

4c) Linux

~/.flock/browser

rename browser to browser-old

5) Copy your old flock profile to the location for a Firefox profile

5a) Windows

copy C:\Documents and Settings\USERNAME\Application Data\Flock\Browser-old to C:\Documents and Settings\USERNAME\Application Data\Mozilla\Firefox

5b) Macintosh

copy /Users/USERNAME/Library/Application Support/Flock-old to /Users/USERNAME/Library/Application Support/Firefox

5c) Linux

cp -rp ~/.flock/browser-old ~/.mozilla/firefox

6) Start Flock

6.1) tell Flock to import information from Firefox

7) Fix your feeds.

7.1) open feeds

7.2) delete all feeds

7.3 in feeds -> feed options -> import feeds
now select the file you saved earlier! flock-export.opml

7.4 WAIT, at least 10 minutes.  If you have lots of feeds it will take a while for them all to load.

8) Quit flock gracefully

9) Start Flock again and you should be ready to go with a new more stable, faster peppier flock.

10) Restore your Firefox profile

10a) Windows

1) delete C:\Documents and Settings\USERNAME\Application Data\Mozilla\Firefox

2) rename C:\Documents and Settings\USERNAME\Application Data\Mozilla\Firefox-lkg
to Firefox

10b) Macintosh

1) delete /Users/USERNAME/Library/Application Support/Firefox

2) rename /Users/USERNAME/Library/Application Support/Firefox-lkg
to Firefox

10c) Linux

1) rm -rf ~/.mozilla/firefox

2) mv -i ~/.mozilla/firefox-lkg ~/.mozilla/firefox

This should clear out any corrupt rdf files, or clucene indexes, remove any outdated files.  It will also wipe out any extensions you have installed so be warned!  But my experience is it give a  far less buggy flock experience.

Blogged with Flock

Tags: ,

November 8, 2007

test of alternate keyboards

Filed under: Testing — rslomkow @ 8:11 pm

This is a test of öpüäß

but as this is a mac I suspect all the characters just work even when using a silly third party keyboard.

Blogged with Flock

Test alternate keyboard bugs

Filed under: Testing — rslomkow @ 8:08 pm

ö as in ä § ß

do these come out OK     

Blogged with Flock

Tags:

Test alternate keyboard bugs

Filed under: Testing — rslomkow @ 8:08 pm

ö as in ä § ß

do these come out OK     

Blogged with Flock

Tags:

Test alternate keyboard bugs

Filed under: Testing — rslomkow @ 8:04 pm

ö as in ä § ß

do these come out OK     

Blogged with Flock

Tags:

Test alternate keyboard bugs

Filed under: Testing — rslomkow @ 8:04 pm

ö as in ä § ß

do these come out OK     

Blogged with Flock

Tags:

November 3, 2007

Blogging from Tantek’s

Filed under: Uncategorized — rslomkow @ 2:28 pm

Blogging from Tantek’s

Ted

Welcome to the Barcamp/Podcamp Berlin II-Network. The event will be held in Berlin, Germany at the weekend of the 3rd to 4th of november. That is the weekend right before the Web2.0 Expo.

Blogged with Flock

Older Posts »

The Shocking Blue Green Theme Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.