TagFacts -> user kuchin
2 5 21 4

notes 1 - 15 of 38:

2007-04-02

Get rid of Nero Scout


regsvr32 /u "%COMMONPROGRAMFILES%\Ahead\Lib\MediaLibraryNSE.dll"


tags:


2007-02-25

Vista - enable hibernate


Powercfg /hibernate on


tags:


2006-12-26

MySQL charset problems


WordPress: wp-db.php
Invision: drivers/mySQL.php

$this->query("SET NAMES 'cp1251'");
$this->query("SET CHARACTER_SET_CLIENT='cp1251'");

//$wpdb->query("SET CHARACTER_SET_CONNECTION='utf8'");
//$wpdb->query("SET CHARACTER_SET_RESULTS='utf8'");
//$wpdb->query("SET CHARACTER_SET_SERVER='utf8'");
//$wpdb->query("SET COLLATION_CONNECTION='utf8_general_ci'");
//$wpdb->query("SET COLLATION_SERVER='utf8_general_ci'");


tags:


2006-12-18

Incremental MySQL backup


mysqldump --extended-insert=false
then using diff -u, diff -u0, or maybe diff -e, between original mysqldump image and the new one to get the incremental.


tags:


2006-08-17

Samba


yum install samba

cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd
chmod 600 /etc/samba/smbpasswd
smbpasswd username

/etc/samba/smb.conf

service smb start

smbclient //localhost/Downloads

firewall - 137:udp 138:udp 139:tcp 445:tcp

mount -t smbfs //192.168.196.1/d /mnt/win -o username=XXX -o password=xxx


tags:


2006-07-19

Ubuntu desktop


http://ubuntuguide.org/wiki/Dapper
http://www.ubuntuforums.org/forumdisplay.php?f=100
http://diveintomark.org/archives/2006/06/26/essentials-2006
http://www.ubuntuforums.org/showthread.php?t=185174
http://linuxforum.ru/index.php?showtopic=12690
http://gentoo-wiki.com/HOWTO_FTP_Mount
http://www.ubuntuforums.org/showthread.php?p=1188326
( sudo chmod +x /usr/bin/fusermount, sudo chmod o+rw /dev/fuse )

Lets install the proprietary ATI drivers, if you are in X, exit out now.
1. Install the xorg-driver-fglrx package:
sudo apt-get install xorg-driver-fglrx
2. Add fglrx to /etc/modules:
echo fglrx | sudo tee -a /etc/modules
Now the module will not be loaded automatically until we reboot, so lets load it manually:
sudo depmod -a
sudo modprobe fglrx


tags:


2006-06-26

Linux backups


rsync


tags:

comments: 1


2006-06-19

Linux install, packages


yum install ...
yum update ...
yum search ...
yum check-update

dpkg -S /bin/bash

apt-cache depends mozilla | grep x11

apt-get --purge remove libx11-6


tags:


2006-04-25

DB2 some commands


db2stop /force
db2start

db2
list applications all
force application all
stop database manager
start database manager
terminate

db2 uncatalog db db_name

db2 get database configuration for db_name | grep -i pool
db2 update db cfg for db_name using parm_name parm_value
db2 terminate
db2 force applications all

# override bufferpool size
db2set DB2_OVERRIDE_BPF=1000

# db2 : sysctl -p

#db kernel tuning
kernel.sem=250 256000 32 1024
#shmmax for a 64-bit system
kernel.shmmax=1073741824
#shmall for 90 percent of 512MB memory
kernel.shmall=150859
kernel.msgmax=65535
kernel.msgmnb=65535



# sudo apt-get install bum
# /etc/init.d/db2 (chmod a+x)

#!/bin/sh

case "$1" in
start)
su - dasusr1 -c "db2admin start"
/opt/ibm/db2/V9.1/instance/db2istrt
su - db2inst1 -c "db2 activate database dev"
;;
stop)
kill -9 `ps -efa | grep db2wdog | grep -v grep | cut -c10-15`
;;
*)
echo $"Usage: $0 {start|stop}"
exit 1
esac

exit 0


tags:


2006-04-23

Switching XP Home <-> Pro


Regedit, HKEY_LOCAL_MASHINESYSTEM -> ControlSet with the last number.
Control ProductOptions -> in XP Home: ProductSuite (multistring value)with value Personal - delete it, add new DWORD parameter Brand with zero value.
Reboot Windows - F8 -> Load last good known configuration.


tags:


2006-03-26

Get HMENU by HWND [undocumented]


MN_GETHMENU


tags:


2006-02-28

MySQL configuration


[mysqld]
key_buffer = 100M
#log-bin
max_connections = 100


tags:


2006-02-20

Macro for sending mail


Public Sub NewMail()

Dim olApp As Outlook.Application
Dim objMail As Outlook.MailItem

Set olApp = CreateObject("Outlook.Application")
Set objMail = olApp.CreateItem(olMailItem)

objMail.BCC = "Friends Dima"
objMail.Subject = "Subject"
objMail.HTMLBody = "<b>Body</b>"

objMail.Send

End Sub


tags:


2006-01-31

Removing Microsoft bluetooth stack


* Open a command prompt
* Type 'set DEVMGR_SHOW_NONPRESENT_DEVICES=1'
* Type 'devmgmt.msc' to load the Device Manager
* Select 'View' show 'Show hidden devices'
* Delete the Microsoft Bluetooth Enumerator
* Delete all the Bluetooth COM ports
* Reboot


Use the driver update routine. The Device Manager can be opened by right clicking on the “My Computer” icon and selecting the “Properties” menu option. When the Properties dialog appears select the “Hardware” tab and then click the “Device Manager” button.

When Microsoft stack is in control then the Bluetooth Radios category is present in the Device Manager as shown below, Figure 1. There will be 2/3 devices under that category, depending
on the implementation, these are:

* Bluetooth Printing Support
* Microsoft Bluetooth Enumerator
* The “Actual device”.

Highlight the “Actual Device”. Select “Action -> Properties” menu option. Select Driver tab. Verify that the provider is Microsoft. Click the “Update Driver” button.

When the Hardware Update Wizard appears, we are now ready to install the WIDCOMM Bluetooth driver. Select “Install from a list or specific location (Advanced)” radio button and click on the “Next” button to continue.

In the following screen select "Don't search. I will choose the driver to install" checkbox and click on the “Next” button to continue.

The next dialog provides the selection between Microsoft and Widcomm provided drivers. Select the last device (USB Bluetooth Radio) in the list and click on “Next” button to continue.


tags:


2006-01-30

Change administrator password for XP Home


In command line: control userpasswords2


tags:



kuchin - tags

1
3
1
1
1
2
3
1
1
1
2
1
1
13
2
4
1
5
1
1
1
5
1
3
2
1
1
1
1
2
4
4
1
1
1
1
1
6
tag cloud
alphabetical

other projects

MyProgs
Reader²

send to friend

your name:
your e-mail:
friend 1 e-mail:
friend 2 e-mail:
© 2005-2006 Synergy Matters | Design: Inforedesign | HTML Coding: Glench | Powered by Synergy 1001 engine