AVR Fuse

I used avrdude in vmware guest windows and opensuse linux to set the ATtiny45 and ATmega8 fuse.
Unfortunately the fuse is reported sucessfully, but i can’t reach the AVR chip after fuse setting anymore.

It seems that i have destroyed this two chips with fuse setting.

Now i am wonderung if it is because the vmware or it is because of my windows or opensuse.
It seems to work in not virtualised Ubuntu and Mac OS.


setting PHP Server Header


you get warning in your browser that the js data are transfered as MIME type text/xs-javascript,
Or you have delared in your html meta:

<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />

but you can still not read utf-8 charactor in your browser.

It is all because your server header is sending in a different definition.
I am using a lot Appache and PHP. So the definition in your html meta is not enough for a UTF-8

I need to set the Server header manually. It is possible to change the setting in Appache config file.
But mostly you don’t have the possibility to access this file.
In PHP you can set the server header with “header()” function.

For example:

// set server content header
header('Content-Type: text/html; charset=UTF-8');

at the very first line of your php file. If the php file has include, you should
insert the header call at the very first line of your include file so that this
Server header modification always take effect first.


A bash script for WindowsDFS mount in Linux

Since the Kerberos Tickets only works for 24 hours in our system,
i wrote a bash script for crontab to automatically remount a windows DFS
directory in our linux system.

Please sieh my post: Mount Windows DFS in Linux with Kerberos

You should run this bash as “root” or root user. If you want to use it for other users,
your should check the rights for your users.

this script only need to be called once, even the kerberos tickets is invalid after
24hours the mount  point is still working. you still have write and read access
to the mounting point (Windows DFS Directory).
Just make sure after server reboot,
this script will be called.


#Editted in 10.05.2012
mountDIR=<your mount point in linux system>
mountingDIR=<your directory in windows DFS //windows/directory >
# AD User and AD password
ad_user=<your Active Directory user, who can be authenticated in AD>
ad_password=<AD user password>
# Access User for Mounting Directory in DFS
user=< User who has the access and write rights in Windows DFS directory, $ad_use >
password=< User password for DFS directory ,$ad_password >
# DFS Domain
dom=<Your DFS directory Domain, XXX >
# Access Richts Setting for Mount Point
uid=< The user who should have access from Linux to access the Mount Point, 
      your DFS after mounting >
gid=< The Group who should have access from Linux to access the Mount Point >

#creat mount point directory
if [ ! -d $mountDIR ]
        echo "Directory doesn't exist"
        mkdir $mountDIR       
        echo "Directory exist, it will be unmounted"
        /sbin/umount.cifs $mountDIR

# get kerbos granting ticket from AD, the user must be a memeber of AD
kinit $ad_user $ad_password;

# after the ticket successfully granted, mount nas Directory to mount point
# use uid and gid option to specify the user id and group id'
# for mount point access rights
/sbin/mount.cifs $mountingDIR $mountDIR -o user=$user,dom=$dom,

upload hex data to atmel chips


uploading code with avrdude to atmel chips, get error:
avrdude: stk500v2_command(): command failed
avrdude: stk500v2_ReceiveMessage(): timeout


it has worked a day ago, just connected a potentiometer to pin sck, GND and VCC.

remove the potentiometer connection to VCC pin or remove the connection from potentiometer to SCK pin during the upload, because it courses a closed-loop during
the uploading.

IT is allways better just load your chip without any other element connected.

Transparent Display

Samsung has notebooks with transparent Display.
They call it a TOLED technology. It is still a prototype.

It is really awsume.  Just thinking that i just made to blink
a LED with an ATtiny45 a few hours ago.  I am still living in
the ice age of technology.