A post from Gmail

A post from Gmail

How to share files between Windows and Xubuntu

Okay,this is a instructional tutorial,Follow the instruction step by step ,and you will make it!
1.Install samba and smbfs.
sudo apt-get install samba smbfs
2.Install fusesmb,this will make thing easier to browser network places in Thunar.
sudo apt-get install fusesmb
However, in order to use it, it is necessary to add in the fuse modules loaded at startup:
sudo sh -c "echo fuse >> /etc/modules"
If you want to enjoy it without restarting:
sudo modprobe fuse
3.Add users can use FUSE fuse in the group, for example:
sudo adduser hongjun fuse
4.Once the fuse module loaded (modprobe fuse or reset), the module is materialized by / dev / f use, but the default rights are not correct.
sudo chgrp fuse /dev/fuse
4.Create a folder that you want mount the LAN network resources to:
sudo mkdir /media/network
sudo chmod 777 /media/network
5. Use the command below,and work done!
fusesmb /media/network
cd to /media/network and you will see shared resoureces in your LAN,using
fusesmb.cache to refresh hosts.

Blogspot now support vedio upload

so far so good!















Nearly 10 days of coding,the two-stage matrix converter works now.The DSP(TMSLF2407A) code is written in C,which is portable to other target CPU such as 2812 or the newly came out high performance 2833.For the specific feature of matrix converter,we can not use the svpwm module of 2407,because in two-stage matrix converter,the rectifier-stage is not the same as 3-phase voltage boost pwm rectifier which applies the svpwm modulation.Actually it is current type rectifier.Although the inverter-stage applies the svpwm modulation strategy,for the sake of zero-current commutation,the svpwm modulation strategy is a little more complex----which has to be divided into two parts.The event manager of 2407 does has svpwm generator,but it can not satisfy our design.No other way,we choose CPLD to generate pwm gate signals.CPLD code is written in VHDL.Pictures listed left are screen shot of gate signals of leg A of rectifer-stage and phase-phase gate signal of inverter stage.Modulation duty-cycle is 400us,which is 2.5Kilo Hz.The svpwm reference voltage 25HZ.

I got cold again!

God damned,I got cold twice in a month.This time is sicker than last time.I can not breath with my nose,and heart-beat rate is twice faster than normal.My mind is messed up,I do not want to think,I do not want to talk,my mouth is thirsty all the day.My eyes are reluctant to open.I am suffering!!!God save me!Mom,I miss you so much!

My blogspot template modified

I got my blogspot template modified.It looks nice for me.Green is my favorite color which is the symbol of life and peace.It keeps my mind serene.Basically,I imitated the MSN livespace template,try to get this site the same style as my Livespace.

Music collection

1.The Sound Of Silence


2.Girlfriend


3.The Best Damn Thing


4.She


5.Patience


Music links are from http://leox.lifelogger.com/

Using Skin++ to change your app's face

Skin++ is a powerful software that can change your windows GUI apps' face.So you can focus your mind most on your app's algorithm and care less about the appearance.Skin++ do all the left job for you.Skin++ is easy to use,there is only four steps you need to do:

Step 1:
Download Skin++,and setup.(PS:Skin++ is not a free software,but you can find the crack file.Using google.)

Step 2:Create a new MFC or Win32 project from VC.(I use VC6.0 as my development tool)

Step 3:From the Skin++ installation folder,copy SkinPlusPlus.h, SkinPlusPlusDLL.lib, XPCorona.ssk, SkinPlusPlusDLL.dll to your project folder.Note XPCorona.ssk is a skin file,you can change it to get different skin style.

Step 4:Add the following code to your xxxx.h:
#include "SkinPlusPlus.h"
#pragma comment(lib,"SkinPlusPlusDLL.lib")
Add the following code inside the InitInstance member function of CxxxApp class:
InitializeSkin(_T("XPCorona.ssk"));

Step 5:compile and run.Your program's face changed!

Note:Because your program load the SkinPlusPlusDLL.dll file dynamically at the run-time,you need to keep this file the same folder as your exe file or in system folder.If you want to keep all-things just in one exe,you can try MoleBox.

Enable Accelerator for Dialog Application in MFC(HowTo)

(This method is from Microsoft MSDN)
1.Add the class member variable accelTable to your Dialog class:
HACCEL accelTable;

2.Add the code below in the According Dialog constructor:
accelTable = LoadAccelerators(AfxGetInstanceHandle(), MAKEINTRESOURCE(IDR_ACCELERATOR1));

3.Press Ctrl+W to open class-wizard,in the object IDs column,choose your dialog,then double click the PreTranslateMessage message in the Messages column.This will add the
PreTranslateMessage to your app.Press edit button and add the green code below:
BOOL YourDlg::PreTranslateMessage(MSG* pMsg)
{
if (accelTable) {
if (::TranslateAccelerator(m_hWnd, accelTable, pMsg)) {
return(TRUE);
}
}
return CDialog::PreTranslateMessage(pMsg);
}

Ok,rebuilt your project,and run.
It works for me~

A Figure that I should keep in my mind

When we use SVPWM method,the figure in the left are frequently used.The green isosceles triangle is the comprehension model,but the blue orthogonal triangle is the implementation model.Because it is much easier to generate the blue triangle wave than the green one.