Saturday, August 26, 2017

Windows 10 Wlan Reset

in einem .BAT file speichern:
netsh wlan disconnect interface=WLAN
netsh wlan connect name=profile-name ssid=ssid-name interface=WLAN

auf den desktop als Verknüpfung legen. Eine Tasten Kombination definieren zB: 'ctrl' 'alt' 'R'

ohne Console/Window ausführen

Fertig.

Saturday, October 10, 2015

super mini libraries

ezXML for reading xml files into memory and analyzing it
uthash for simple hash tables (ideal for key/value stores)

both libraries for C programmers, they are both not any longer maintained, but VERY usefull!

Saturday, October 03, 2015

Amazon Kindle

jetzt ist es soweit, ein neues Buch wird auf meinen ersten Kindle nicht mehr heruntergeladen. Angeblich vom Verlag nicht unterstützt. Faule Ausrede, die wollen mir nur einen neuen Kindle verkaufen. Beim Telefon Support heißt es nur, das ist halt so, und aus. Schmecks. Man kann ja anklicken auf welchem Kindle das Buch zum lesen ist, wenn man dann den simplen Kindle anklickt kommt ein Neuer Kindle (eh klar meinen alten gibts ja nicht mehr) und am Foto sehe ich dann dass meiner nicht so aussieht wie der Neue - und dann kann das ja nicht Funktionieren ?!?

Übrigens:
Chris Tall

Saturday, September 26, 2015

chrome always on top

in chrome enter url: chrome://accessibility/

Multitask in Chrome With an Always on Top Tab or Window http://www.guidingtech.com/29470/chrome-always-to-top-tab-window/ accessibility off | show accessibility tree

click on the 'accessibility off' link and restart chrome

Thursday, March 11, 2010

getting Buildnumber and SVN revision into a java class

the following is an example batch file to generate a BuildInfo.java file with information about this build.

@echo off
set file=.\src\com\skidata\delite\BuildInfo.java
for /f %%i in (buildnum.txt) do set /A buildnum=%%i+1
echo %buildnum% >buildnum.txt
echo package com.skidata.delite; >%file%
echo public class BuildInfo { >>%file%
echo public static final String date = "%date%"; >>%file%
echo public static final String time = "%time%"; >>%file%
echo public static final String build = "%buildnum%"; >>%file%
echo } >>%file%
"c:\Program Files\Subversion\svn" commit -m "Build %buildnum% from %date% %time%"
"c:\Program Files\Subversion\svn" update
"c:\Program Files\Subversion\svnversion" >buildrev.txt
for /f %%i in (buildrev.txt) do set /A buildrev=%%i
echo package com.skidata.delite; >%file%
echo public class BuildInfo { >>%file%
echo public static final String date = "%date%"; >>%file%
echo public static final String time = "%time%"; >>%file%
echo public static final String build = "%buildnum%"; >>%file%
echo public static final String revision = "%buildrev%"; >>%file%
echo } >>%file%

Thursday, February 26, 2009

Software Breakpoints

in the IAR Kickstart Edition for ARM you can set Software Breakpoints only in RAM code. For Software Breakpoints in Flash you have to buy an additional licence from Segger.
But you can define a Breakpoint instruction and insert it into assertions:


/* this is only for THUMB code */
#define BREAK() __asm(" dc16 0xdeee")
#define ASSERT(x) if (!(x)) then BREAK();

void some_function(char *data)
{
ASSERT(data != NULL);
.
.
.
}


The gnu GDB uses 0xbebe as software Breakpoint for thumb code.

Sunday, November 05, 2006

Calculate the calories per day

http://gin.uibk.ac.at/thema/sportundernaehrung/energieumsatz.html

Monday, October 30, 2006

Performance Blog Editor Plugin for Firefox

endlich habe ich einen offline Blog Editor gefunden als Firefox Plugin:

https://addons.mozilla.org/firefox/1730
( http://performancing.com/firefox )



powered by performancing firefox

Sunday, October 29, 2006

reconnect my adsl connection

sometimes I loose my adsl connection

#this one kill the instances
ps -A | grep pptp | while read a b c; do sudo kill -sigkill $a; done

# and this tries to relogin
/etc/ppp/ip-up

all on my (k)ubuntu notebook

Thursday, October 26, 2006

undo a tar eXtraction

if you ever accidentaly untar'ed in the wrong place, here is a method for undoing the extraction.
it tries to remove all files and the enclosing directories.

known bugs: filenames with spaces

tar tzf tarfile.tar.gz | sort -r | remove.sh

#!/bin/bash
# remove.sh
# reads from stdin and removes given file or directory
while read a b; do
if [ -d $a ]; then rmdir $a; else rm -f $a; fi
done