notes 1 - 15 of 38:
Get rid of Nero Scout
regsvr32 /u "%COMMONPROGRAMFILES%\Ahead\Lib\MediaLibraryNSE.dll"
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'");
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.
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
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
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
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
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.
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
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.
Change administrator password for XP Home
In command line: control userpasswords2




