A small hook meant to be installed on a remote git repo. The hook is a post update hook and sould be run by the remote repo each time somebody successfully pushes to the repo. It will create a directory called master and check out the remote repo into this and make sure to pull […]
Author Archive
keep a checked out version of master updated via hook on a remote server – The JACK hook
By thomas in GITrunning a bash script from windows command using bash installed by git for windows
By thomas in GIT, Windowsfrom a windows command navigated to git bin folder one can execute: bash.exe –login -i to start a nice shell if this line is given another parameter its assumed to be a script file which is executed. Additional arguments are passed to the script file as arguments. bash.exe –login -i “myscript.sh” “arguments”
Problems with windows 7. Record interactions with the windows program psr
By thomas in WindowsProblemer med windows? Kender du Windows 7 kommandoen “psr”? Det er muligvis et værktøj andre end mig vil finde yderst interessant når computeren lige pludselig opfører sig mærkeligt. “psr” er et program der optager skærmbilledet og registrerer tastetryk. Har du et problem med et program der ikke opfører sig som du forventer så start “psr” […]
setting up git mergetool on windows
By thomas in GIT, WindowsOne possible merge tool for windows is kdiff3 which works great. after installing kdiff3 git needs to be set up. This blog post describes it (http://www.blog.project13.pl/index.php/coding/1192/setup-git-on-windows-to-use-kdiff3-as-its-mergetool/) but its repeated here: add the following to .gitconfig [merge] tool=kdiff3 [mergetool “kdiff3”] path = C:/Program Files/KDiff3/kdiff3.exe keepBackup = false trustExitCode = false
Tags: .gitconfig, git mergetool, kdiff3
Make QT 5 detectable by cmake on windows
By thomas in C++, cmake, qt, Visual Studio 2013, WindowsIt seems that for cmake to be able to find the needed qt .cmake files it’s sufficient to add the qt bin folder to the path env variable (e.g. C:\Qt\5.3\msvc2013_64_opengl\bin)
Qt creator and perhaps visual studio 2013 is missing include directories and other env variables
By thomas in c++, C++, Visual Studio 2013, WindowsSymptom: Cant compile any programs and compiler complaining about missing standard header files such as stddef.h diagnose: in QT creator go to project settings and inspect environment variables. There should be e.g an INCLUDE variable. If not the vcvarsall.bat file that is accompanying VS is not run propable. Following this post: http://schrievkrom.wordpress.com/2011/01/25/error-cannot-determine-the-location-of-the-vs-common-tools-folder/ it seems that the […]
Tags: qt creator, stddef.h
setting up wifi on raspberry pi
By thomas in linux, raspberry piit seems that the /etc/network/interfaces file needs to contain: wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf and when this is the case you can specify wifi settings in the file /etc/wpa_supplicant/wpa_supplicant.conf using this example: network={ ssid=”TNETRezound” psk=”PASSWORD” proto=RSN key_mgmt=WPA-PSK pairwise=CCMP auth_alg=OPEN […]
Tags: wifi, wpa, wpa_supplicant
install brother DCP-J725DW network scanner
By thomas in linuxAfter downloading and installing the deb file from this link: http://support.brother.com/g/b/downloadlist.aspx?c=dk&lang=da&prod=dcpj725dw_eu_as&os=128&flang=English the scanner can be installed either using its ip address or its hostname using the program brsaneconfig4 (The program also have possibilities of listing currently installed devices and test their connectivity using the -q and -p option respectively) Using hostname: brsaneconfig4 -a name=BrotherScanner model=DCP-J725DW […]
Tags: brother, brsaneconfig4, DCP-J725DW, scan, scanner
convert png image read using PIL to numpy array
By thomas in pythonBeware that conversion of an image with a non-standard format using np.array(Image.open(‘imagefile.png’)) can result in strange behavior. If eg the loaded image have a mode of LA the resulting numpy array are not initiated correctly. Use PIL Image convert function to get a format that you can convert (I expect single and triple channel image […]