online casino

turn off backup files in vim.

:set nobackup #no backup files
:set nowritebackup #only in case you don’t want a backup file while editing
:set noswapfile #no swap files

/usr/share/vim/vimrc:
set backupdir=~/vimtmp,.
set directory=~/vimtmp,.

, , , ,

No Comments

AVR arduino ports.

PORTB (digital pin 8 to 13)
pin 13 | 00100000 | DDRB = 0×20;
pin 12 | 00010000 | DDRB = 0×10;
pin 11 | 00001000 | DDRB = 0×08;
pin 10 | 00000100 | DDRB = 0×04;
pin 09 | 00000010 | DDRB = 0×02;
pin 08 | 00000001 | DDRB = 0×01;

PORTC (analog input pins)
pin 5 | 00100000 | DDRC = 0×20;
pin 4 | 00010000 | DDRC = 0×10;
pin 3 | 00001000 | DDRC = 0×08;
pin 2 | 00000100 | DDRC = 0×04;
pin 1 | 00000010 | DDRC = 0×02;
pin 0 | 00000001 | DDRC = 0×01;

PORTD (digital pins 0 to 7)
pin 7 | 10000000 | DDRD = 0×80;
pin 6 | 01000000 | DDRD = 0×40;
pin 5 | 00100000 | DDRD = 0×20;
pin 4 | 00010000 | DDRD = 0×10;
pin 3 | 00001000 | DDRD = 0×08;
pin 2 | 00000100 | DDRD = 0×04;
TX pin 1 | 00000010 | DDRD = 0×02;
RX pin 0 | 00000001 | DDRD = 0×01;

, , , ,

No Comments

How to compile QODBC for Qt 5.3 linux.

cd $QTDIR/qtbase/src/plugins/sqldrivers/odbc

qmake -v (make sure it is Qt5.3)
qmake “INCLUDEPATH+=/usr/include” “LIBS+=-L/usr/lib64 -lodbc”

make

look for driver in:
$QTDIR/qtbase/plugins/sqldrivers/libsqlodbc.so

optionally make install

for windows… download: MySQL Community Server 5.6.19 zip file.
extract “/import” and “/lib” from the zip file to C:\MySQL.
$QTDIR\qtbase\src\plugins\sqldrivers\mysql>qmake “INCLUDEPATH+=C:/MySQL/include” “LIBS+=C:/MySQL/lib/libmysql.lib”
mingw32-make

, , , ,

No Comments

ASUS LED LCD 23″ 1MS VX238H-W

Supported Operating Modes:

Read the rest of this entry »

,

No Comments

How to create a slackware 14.1+ usb drive.

Easy steps to create a slackware bootable usb drive.

step1: mount slackware dvd media to /mnt/dvd.
step2: cd /mnt/dvd/usb-and-pxe-installers
step3: sh usbimg2disk.sh -i ./usbboot.img -f -s /mnt/dvd/slackware64 -o /dev/sdd

Read the rest of this entry »

, , , ,

No Comments

Setting environment paths in slackware

export PATH=$PATH:/path

export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH
ldconfig

to make it permanent edit: /etc/profile

, , ,

No Comments

how to turn on number lock on slackware/fluxbox boot up

install numlockx
gvim /etc/X11/xinit/xinitrc.fluxbox
add numlockx on &

, ,

No Comments

Install Firefox and Flash manually under slackware.

download firefox
extract
mv firefox folder to /opt
ln -s /opt/firefox/firefox /usr/bin/

download flashplayer
make folder flash
cd flash
move compressed file to it
extract move libflashplayer to /opt/firefox/browser/plugins/

, , ,

No Comments

how to mount usb drive world read and write.

for permanent solution edit fstab:
/dev/sdc1 /mnt/memory vfat user,umask=0000 0 0

Or temporary solution:
mount -t vfat -ouser,umask=0000 /dev/sdc1 /mnt/memory

, ,

No Comments

badblocks and fsck

how to check for badblocks and fix them with fsck

# badblocks -v /dev/hda1 > bad-blocks
# fsck.ext4 -l bad-blocks /dev/hda1

,

No Comments