March 8, 2012 0

Attempt to find rotated QR codes and get the rotation

By in Uncategorized

Attempting to use zxing library to detect qr codes and its rotation.

As for now it is unknown if the library is able to find rotated qr codes and if detected return the rotation.

After having read:

http://groups.google.com/group/zxing/browse_thread/thread/ea911e890ea69ea5

The use of the zxing’s implementation to detect QR codes seems less promising.

March 3, 2012 0

installed alien version 8.86 from source and created deb

By in alien, checkinstall

converted alien version 8.86 using alien by the command

perl Makefile.pl

make

checkinstall -fstrans=no

which installed alien and created a .deb file

the deb file will be attached when I get WP to accept it

March 1, 2012 0

problems with checkinstall

By in checkinstall, linux

using check install to properly install from source

When installing ImageMagick-6.7.5-7 checkinstall failed with an error related to “mkdir -p”

It seems that this error disappeared when running checkinstall with -fstrans=no

so after calling ./configure and make I called sudo checkinstall -fstrans=no and everything seem to be correct

February 21, 2012 0

Git: adding and removing branches from remote repositories

By in GIT

You can add a branch to a remote repository by

git push origin <branchname>

and you can remove this branch again by typing

git push origin :<branchname>

so prepending a :

February 21, 2012 0

Git Correct commit pushed to remote repository

By in GIT

If you have pushed something to a remote repository that should not have been pushed then do the following:

checkout locally the commit that you want to replace the erroneous commit (this should be a commit at an earlier stage than the unwanted one)

git push -f origin master

this will force the remote repository to be at this stage

 

February 21, 2012 0

rebase in GIT

By in GIT

git rebase is a great way to clean up the history

adding a -i like

git rebase -i

enters interactive mode and directs you to a file that let you control what commits are added.

February 15, 2012 0

Using XML files to store data in matlab

By in matlab

In my experience matlab handles xml DOM model by using tool from a java library.

Links to use when working with xml files through matlab

http://docs.oracle.com/javase/6/docs/api/org/w3c/dom/package-summary.html

http://www.mathworks.se/help/techdoc/import_export/f5-86078.html#bsmnj5u

February 14, 2012 0

matlab: add data to the file name string before save

By in matlab

Here is the simple line

dateString = datestr(now(),'dd-mmm-yyyy');

February 10, 2012 0

Git stage lines causes corrupt patch

By in GIT

After making changes you may want to split these changes up into several commits but some of the changes may be in the same file. If you then use git-gui to stage different lines in one file and the last line in this file is part of the diff from HEAD then git-gui will produce an error “corrupt patch”

http://git.661346.n2.nabble.com/BUG-git-apply-sometimes-says-quot-corrupt-patch-quot-when-adding-single-lines-td5434443.html

It is not clear to me how to work around this

November 3, 2011 1

test on if categories show

By in Android

If I make a new post that is public does this category then show up on the frontpage