15/02/2009
Windows DHCP server, require (that the DHCP client will send) the client’s dhcp identifier in order to give an IP to a machine that just entered the network. This leads to problems when there are linux clients that request IP adresses from Windows DHCP servers(Windows server 2003 or 2008). This happens because, by default, linux dhcp clients do not send their DHCP “client identifier”. Thus the DHCP server does not recognize them and they cannot get an IP dynamically.
To solve this, just put the following in: [...] Continue Reading…
15/02/2009
Sometimes, jQuery and other libraries must be used at the same time during a webpage development. The problem starts when both libraries(like prototype) use the same annotation e.g. ‘$(document).ready’. One of the two libraries is expected not to work at the same time. It is very easy to get over this. You just have to put something like this into your code:
Instead of:
Source: Using jQuery with other libraries
15/02/2009
This is done in irder to get Greek filenames working in my wonderful Asus WL500gP router. I use samba3 and Oleg’s firmware.
For Greek(Ελληνικά) filenames the correct steps are the following:
nvram set usb_vfat_options=defaults,utf8
nvram set usb_smbcpage_x=737
nvram set usb_smbcset_x=1253
nvram commit
and the contents of my smb.conf:
[code=bash]
[global]
workgroup = WORKGROUP
guest account = admin
security = share
browseable = yes
writeable = yes
guest ok = yes
guest only = yes
log level = 1
max log size = 100
encrypt passwords = yes
dns proxy = no
netbios name = Plethon
server string = wl500gPremium customized by Asterios
unix charset = UTF-8
dos charset = 1253
display charset = [...] Continue Reading...
15/02/2009
Setting InnoDB variables
[mysqld]
# You can write your other MySQL server options here
# ...
# Data files must be able to hold your data and indexes.
# Make sure that you have enough free disk space.
innodb_data_file_path = ibdata1:10M:autoextend
#
# Set buffer pool size to 50-80% of your computer's memory
innodb_buffer_pool_size=70M
innodb_additional_mem_pool_size=10M
#
# Set the log file size to about 25% of the buffer pool size
innodb_log_file_size=20M
innodb_log_buffer_size=8M
#
innodb_flush_log_at_trx_commit=1
15/02/2009
Use this command to import data from a CSV file into MySQL
LOAD DATA LOCAL INFILE 'data.csv'
INTO TABLE table_name
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
(field1, filed2, field3);
Sample File
"3003","0.039","aster"
"3017","0.03h","affs"
"3018","0.03unit","xfs"
References
http://dev.mysql.com/doc/refman/5.0/en/load-data.html