14:
After some changes in our infrastructure@work svn failed to find the server… (svn info shows you the url). huh, seen&solved years ago… and now here so I can’t miss the information in the future.
~>svn switch --relocate <old_addr> <new_addr>
I also found a piece of old script I wrote years ago for adding subdirs in svn but not a given set of name directorys and file-extensions:
#!/bin/bash
######################################################################
# script add all but not aabn.sh
# add all files not versioned in and below the current dir to the svn
# exeptions: ignore_dir and ignore_file_suffix (seperated by |)
######################################################################
#ignore directory paths with names...
ignore_dir="release|debug|web"
#ignore files with names...
ignore_file_suffix="o|pdf"
list=`svn status | grep ? | awk {'print $2'}`
for l in $list
do
to_add=`echo "$l \<($ignore_dir)\> \<($ignore_file_suffix)\>$" \
| awk '{
where = match($1, $2)
if (!where) {
where = match($1, $3)
if (!where)
print 1
else
print 0
} else
print 0
}'`
if [ $to_add -gt 0 ] ; then
echo "+++ADDITION+++"$l
svn add $l
else
echo "---IGNORE---"$l
fi
done
By commenting out the „svn add$I“ you can do a „try run“.
31:
I searched for a tool for managing project tasks for me and my colleagues – and I found www.wunderlist.com – a great service offered by the 6 Wunderkinder GmbH. It’s a free task list manager that runs in a browser or – as a rich client – on nearly every (common) platform.
But I missed something like a dedicated page that shows only one auto-updated task list so I can display it on a big screen in our office.
But hey – this is the world of web-services – everyone can access any data in any needed way. Due to the SOP there is no way to call the AJAX-service directly from my page – but with a little help of a JSON-P-alike php-script for reading the data the „magic“ is done. Hint: the script returns all lists with active entries. A simple html/javascript-page is used for displaying the (selected) data. You can test it under wunderlist.naberius.de.
The needed files can be downloaded here.
(Don’t forget to set your email/pwd in getTaskList.php and the name of the list in the view-page index.html)
Edit: update the view-page to look a little…
Edit2: update the view-page – now has a css-progressbar/shows time&date…
13:
by setting up a mysql-db (on Scientific Linux 6.1 I run into trouble cause I’ve changed the data-dir to somewhat outside of /var/lib/mysql… and it won’t work, got errorcode 13 – permission denied. chowned, start – failed. checked permissions twice… but the net has the solution (spreaded over some pages) on some „modern“ linux systems SElinux secures anything. more or less usefull. simply setup the tables and change the SElinux security context of the new data dir to that of the former data dir. and (if needed/configured) don’t forget to create the inno-db-dir manually… sample for data-dir is /data/db/mysql with innoDB at /data/db/mysql/innodb:
#>mkdir -p /data/db/mysql/innodb
#>chown -R mysql.mysql /data/db/mysql
#>mysql_install_db --user=mysql --ldata=/data/db/mysql
#>chcon -R --reference=/var/lib/mysql /data/db/mysql
#>/etc/init.d/mysqld start
Addition: same fun for apache:
#>chcon -R -t httpd_user_content_t /data/www/html/
11:
I need this seldom – and then I can’t (completely) remember…
so I wrote it down here. The first thing that comes every time back to brain is take a look in /etc/issue:
>cat /etc/issue
Ubuntu 10.04.2 LTS
Not so much information. Not reliable. The second is lsb_release:
>lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.2 LTS
Release: 10.04
Codename: lucid
Thats it.
12:
Update: Got time to play again with the Chronos and … huuu, fu**. There was a big mistake in the old version – all bits must be (old+1)%8… its corrected now.
This is a „cheat sheet“ that contains the assignment of the LCD_B memory (0x0a20 to 0x0a2b) and its bits to the wristwatch’s display elements.
src: base image taken from SLAU292C (p.77, LCD segment map)
as .pdf
as zipped svg
19:
…compensate the digital dementia by writing things down.