Markus Rechberger / Notizen
StartSeite | MarkusRechberger/ | Neues | TestSeite | ForumSeite | Teilnehmer | Kategorien | Index | Hilfe | Einstellungen | Ändern
| 18:19 < mrec_> Hi, how can I create a mutex with the winapi?
18:21 < EFnet> <w00tz> CreateMutexA() |
|
|
A for Ansi, W for Widechar/Unicode regarding
http://windowssdk.msdn.microsoft.com/en-us/library/ms686927.aspx
lzma:
| cat bin.tar.lzma | lzma d -si -so | tar x |
|
|
Reset terminal font if it's garbled:
| --garbled text here--
root@maohi:~/v4l-dvb/v4l_experimental# setterm -default
root@maohi:~/v4l-dvb/v4l_experimental# ls
cx88-ivtv.c dpl3518.c dpl3518.h em2880 firesat plx9054.h pvrusb2 rds-saa6588.c v3tv xc3028
root@maohi:~/v4l-dvb/v4l_experimental# |
|
|
Vmware shift problems:
I noticed that xev still shows up shift events, so I thought it can only be xmodmap related and see I recovered my keymap
| $ xmodmap /usr/X11R6/lib/X11/etc/xmodmap.std #this resets shift, but sets an english keymap
$ apt-get install gnome-applets-data #this package contains the german keymap
$ xmodmap /usr/share/xmodmap/xmodmap.de #reload the german map |
|
|
alternativly you could try to put following lines into a file and reload that file using "xmodmap modifiers.mod"
following lines will recover the keymap:
| echo 'clear shift
clear lock
clear control
clear mod1
clear mod2
clear mod3
clear mod4
clear mod5
add shift = Shift_L Shift_R
add lock = Caps_Lock
add control = Control_L Control_R
add mod1 = Alt_L Alt_R
add mod2 = Num_Lock' > recover.mod
xmodmap recover.mod |
|
|
this makes upper/lowercase/shift keys work again
| 00:34 < MrAshe> Right, but that tool is stupid, it needs a window
00:34 < MrAshe> google site:msdn.microsoft.com SetWindowsHookEx
00:34 < MrAshe> That'll register a callback so you get key presses
00:35 < MrAshe> Then CreateProcess to fire up something
00:35 < MrAshe> Shell_NotifyIcon() if you want some icon next to the clock |
|
|
AT90S2313?
http://www.spinics.net/lists/vfl/msg03816.html
| 19:03 < mrec> what are obmc arrays?
19:04 <+yartrebo> obmc arrays store the overlapping block motion compensation blending tables. |
|
|
xc3028
http://www.xceive.com/company_contact.htm
>>I'ts interesting to note that the number of interrupts defined on the x86 is currently 224, not 16 as you may expect; this, as explained in include/asm-i386/irq.h, depends on Linux using the architectural limit instead of an implementation-specific limit (such as the 16 interrupt sources of the old-fashioned PC interrupt controller)<<
| revenger@debian:/proc/9261$ cat maps
08048000-080e6000 r-xp 00000000 03:01 621383 /bin/bash
080e6000-080ec000 rw-p 0009d000 03:01 621383 /bin/bash
080ec000-081c4000 rw-p 080ec000 00:00 0 << memory which holds variables
b7c14000-b7c1e000 r-xp 00000000 03:01 622680 /lib/tls/libnss_files-2.3.5.so
b7c1e000-b7c20000 rw-p 00009000 03:01 622680 /lib/tls/libnss_files-2.3.5.so
b7c20000-b7c29000 r-xp 00000000 03:01 622682 /lib/tls/libnss_nis-2.3.5.so
b7c29000-b7c2b000 rw-p 00008000 03:01 622682 /lib/tls/libnss_nis-2.3.5.so
b7c2b000-b7c3d000 r-xp 00000000 03:01 622677 /lib/tls/libnsl-2.3.5.so
b7c3d000-b7c3f000 rw-p 00011000 03:01 622677 /lib/tls/libnsl-2.3.5.so
b7c3f000-b7c41000 rw-p b7c3f000 00:00 0
b7c41000-b7c48000 r-xp 00000000 03:01 622678 /lib/tls/libnss_compat-2.3.5.so
b7c48000-b7c4a000 rw-p 00006000 03:01 622678 /lib/tls/libnss_compat-2.3.5.so
b7c57000-b7c58000 r-xp 00000000 03:01 2322352 /usr/lib/gconv/ISO8859-1.so
b7c58000-b7c5a000 rw-p 00000000 03:01 2322352 /usr/lib/gconv/ISO8859-1.so
b7c5a000-b7e5a000 r--p 00000000 03:01 3385438 /usr/lib/locale/locale-archive
b7e5a000-b7e5b000 rw-p b7e5a000 00:00 0
b7e5b000-b7f8c000 r-xp 00000000 03:01 622672 /lib/tls/libc-2.3.5.so
b7f8c000-b7f8d000 r--p 00130000 03:01 622672 /lib/tls/libc-2.3.5.so
b7f8d000-b7f90000 rw-p 00131000 03:01 622672 /lib/tls/libc-2.3.5.so
b7f90000-b7f94000 rw-p b7f90000 00:00 0
b7f94000-b7f96000 r-xp 00000000 03:01 622674 /lib/tls/libdl-2.3.5.so
b7f96000-b7f98000 rw-p 00001000 03:01 622674 /lib/tls/libdl-2.3.5.so
b7f98000-b7fd1000 r-xp 00000000 03:01 3221696 /lib/libncurses.so.5.4
b7fd1000-b7fd9000 rw-p 00039000 03:01 3221696 /lib/libncurses.so.5.4
b7fd9000-b7fda000 rw-p b7fd9000 00:00 0
b7fea000-b7feb000 rw-p b7fea000 00:00 0
b7feb000-b8000000 r-xp 00000000 03:01 3222100 /lib/ld-2.3.5.so
b8000000-b8002000 rw-p 00014000 03:01 3222100 /lib/ld-2.3.5.so
bffeb000-c0000000 rw-p bffeb000 00:00 0
ffffe000-fffff000 ---p 00000000 00:00 0 |
|
|
gdb -p <pid>
by dumping the memory region 080ec000-081c4000 you can see the the history of the actual shell process, it's unhideable that way.. probably also passwords and so since everything needs to get stored somewhere (this only works as root .. hmm or 'privileged' user to be more accurate)
sqlrelay review.. langzeittests waren sehr gut, die datenbank ist leichter skalierbar, bei ausfällen auch sehr gut verwaltbar.. fazit niemals direkt auf eine postgres db zugreifen, slony mag gut sein aber stürzt auch gelegentlich ab (das setup ist relativ aufwändig und nicht von durchschnittlichen admins zu verstehen, geschweige denn in notfallsituationen(welche warscheinlich eher selten auftreten) zu beherrschen => also sehr schlecht)
units .. berechnet alle mögliche dinge in andre units um
schlechtes usb audio modul mit schlechter qualität, nur snd_usb_audio funktioniert "einwandfrei"
| filename: /lib/modules/2.6.11.5/kernel/drivers/usb/class/audio.ko
author: Alan Cox <alan@lxorguk.ukuu.org.uk>, Thomas Sailer (sailer@ife.ee.ethz.ch)
description: USB Audio Class driver
license: GPL
vermagic: 2.6.11.5 preempt PENTIUMM gcc-3.3
depends: usbcore,soundcore
alias: usb:v*p*dl*dh*dc*dsc*dp*ic01isc01ip* |
|
|
shopt -s cdspell
Linux is obsolete (1991)
http://www.educ.umu.se/~bjorn/mhonarc-files/obsolete/
SQLrelay (auch für postgres)
http://sqlrelay.sourceforge.net/
http://rudiments.sourceforge.net/
einige interessante themen:
http://www.pro-linux.de/berichte/Linux-Wochen-Wien-2005.html
PUSHD
Change the current directory/folder and store the previous folder/path for use by the POPD command.
| revenger@debian:~$ pwd
/home/revenger
revenger@debian:~$ pushd /var/log
/var/log ~
revenger@debian:/var/log$ pwd
/var/log
revenger@debian:/var/log$ popd
~
revenger@debian:~$ pwd
/home/revenger
revenger@debian:~$ |
|
|
debian sid verwendet anscheinend nur mehr nptl.. ansonsten ist bei den max.threads auf die stack size zu achten..
find -type l # will find symlinks only
| Desc | |
MemTotal? | Total usable ram (i.e. physical ram minus a few reserved bits and the kernel binary code) |
MemFree? | The sum of LowFree?+HighFree? |
Buffers | Relatively temporary storage for raw disk blocks shouldn't get tremendously large (20MB or so) |
Cached | in-memory cache for files read from the disk (the pagecache). Doesn't include SwapCached? |
SwapCached? | Memory that once was swapped out; is swapped back in but still also is in the swapfile (if memory is needed it doesn't need to be swapped out AGAIN because it is already in the swapfile. This saves I/O) |
Active | Memory that has been used more recently and usually not reclaimed unless absolutely necessary. |
Inactive | Memory which has been less recently used. It is more eligible to be reclaimed for other purposes |
|
|
| HighTotal? | |
HighFree? | Highmem is all memory above ~860MB of physical memory Highmem areas are for use by userspace programs; or for the pagecache. The kernel must use tricks to access this memory; making it slower to access than lowmem. |
|
|
| LowTotal? | |
LowFree? | Lowmem is memory which can be used for everything that highmem can be used for; but it is also availble for the kernel's use for its own data structures. Among many other things; it is where everything from the Slab is allocated. Bad things happen when you're out of lowmem. |
SwapTotal? | total amount of swap space available |
SwapFree? | Memory which has been evicted from RAM; and is temporarily on the disk |
|
|
| convert different string formats iconv, recode |
|
|
Substring..
| sed 's#.\{25\}\(.\{13\}\).*#\1#' |
|
|
nm
| 13:34 <@roots-> nm -CAD `which newgrp`|grep gid sagt mir auch das newgrp es mit setgid macht
13:34 <@roots-> setegid würde auch nur bei suid sinn machen afaik, wie auch immer |
|
|
Aufgabenstellung.. ein rar archiv beinhaltet mehrere Files deren CRC Check fehlschlägt, mit strace wird angezeigt das die Files zwar auf der Festplatte landen aber das sie schlussendlich auch wieder mittels unlink(filename) entfernt werden.. um dem ganzen etwas entgegenzuwirken:
| while :; do echo *txt |xargs -i mv {} {}.1; done |
|
|
CVS
| cvs add -kb foo # add binary files to repository |
|
|
Zylinder * Leseköpfe * Sektoren * 512 Bytes (512 bytes ist generell 1 Sektor, der Kernel liest und schreibt auch nur in diesen Blockeinheiten afaik, für die Kalkulation wird geshiftet <<9 oder >>9 je nach dem was benötigt wird) Ältere Rechner können probleme mit mehr als 1024 zylindern haben um dieses problem zu umgehn wurde auch der LBA modus eingeführt (welcher im bios ja auch eingestellt sein sollte)
bevor ich's nochmal vergess.. mtr
StartSeite | MarkusRechberger/ | Neues | TestSeite | ForumSeite | Teilnehmer | Kategorien | Index | Hilfe | Einstellungen | Ändern
Text dieser Seite ändern (zuletzt geändert: 28. Juli 2006 19:34 (diff))