vinetcom
Our business objective is to provide Technology Offshore Outsourcing and Consulting Services. Leveraging global resources to facilitate the business process. Committed to delivering innovative technology by helping our clients to become high-performance businesses. Our website: http://www.vinetcom.com
Tuesday, October 17, 2006
install bookshelf windows runs for linux under wine
[root@localhost cdrom1]# ls
aref autorun.inf autorun.ini books bshelf readme.txt setup.exe support
--- go bshelf
[root@localhost cdrom1]# cd bshelf
[root@localhost bshelf]# ls
autorun.exe bshelf2k.cnt bsunst99.exe mssp2_en.lex setup.exe
bs2000.dot bshelf2k.exe bsunst.exe qshelf2k.exe tv32dcmp.dll
bs2ksp32.dll bshelf2k.hlp eula.ini readme.txt
bsh32.wll bsinst.exe eula.txt setupenu.dll
[root@localhost bshelf]# wine setup.exe
using wine to install setup.exe (remember not install in c windows then run /mnt/win2 then run )
after install your bookshelf will be at
/root/.wine/drive_c/Program Files/Microsoft Reference/Bookshelf 2000
(how to to Program Files in linux cd Program***** it will go to Program Files)
run program
wine bshelf2k.exe
You can use icon root's home then paste /root/.wine/drive_c/Program Files/Microsoft Reference/Bookshelf 2000
Create a shortcut in Desktop it will work nice this way
Sunday, June 11, 2006
colored border table in FIrefox vs. IE
--- FF and IE (there is no bordercolor based on testing at http://validate.w3.org)
--- not set at table bodercolor ="#fffffff" but
---color set at the point of BORDER-BOTTOM: 3px solid #ffffff and NOT at bordercolor as before
Saturday, March 25, 2006
timjob1 and timjob2
Anh da sua lai layout va upload len www.timjob.com/timjob1. Timjob1 better hon cai cu. Theo anh nghi timjob.com
hien gio la trang kha hay nhat o VN. Gio thi that su theo y cua anh. Van de http://www.timjob.com/ chay binh thuong
anh cung tao database rieng cho timjob1. Let me know what you think about a new timjob1.
Phan code va layout trong hinh, them sub menu viet theo CSS, moi lan click button thi can thi so/open sub-menu kieu pamphlet
theo hinh thuc cua yahoo, neu khong can thi hien thi chu de ra at 1 pamphlet. Anh them phan MenuList. Khong co so menu appear when mouse over ma menu luc nao cung hien thi ra (it ai dung sub-menu hien ra khi mouse over)*** dieu nay quan trong.
Co the click Viec lam va theo Nganh nghe lam thu 2 menu pamphlet day la cai frame work da dung sang. De lam theo
nhung gi da co. Co tat ca 5 blocks (top,footer,left, right and middle). Moi block co nhung functions trong do.
Anh nghi project nay de em co the lam mot minh neu khong thi anh lam vi anh con nhieu viec phai lam. Anh co the lam saigonbestbuy voi oscommerce. Project nay cung duoc 50% khong co gi ma fai 2 nguoi lam. Em co the hoi
anh bang email hay chat co le can chat 1 tieng truoc khi em lam. Phan code anh cung sua nhieu va lam theo chuan ma
anh da lay out trong templates thi se ok rat de va rat good de lam khong biet trinh do cua em the nao day la mot project
rat thich thu sau khi anh da sua lai. Em doc phan code cua kapeer.com de co the dem qua day khi can
can thi lay source o vietnam-ebusiness.com (usr:ebus pw:vnc2005 hay vinetcom2005).
Con pdf file huong dan de hieu code o http://www.vinapeer.com/docs/fad.pdf (vinapeer cua minh, anh dang lam)
Tat ca da goi nhieu lan, gio thi anh lai goi lai nua. Co gi feedback let me know. Any questions just ask. ./.tv
I just added a section of css to correct the link in in menu of timjob1 so you can see it now>
All the css in the file style.css. You must know css and how frameset work in order to write the code.
This way it will be easy to control and display from one frame to others and vice versa. I just fixed it so it has
top, left, middle + right and bottom. All you need to do from the button is called the properly frame to display
for example topframe.php called modules.php (body or middle frame)
call from button of "trang chu" from topframe.php
Trang Chủ
Topframe will make display in body frame (body is middle) Try it out you will see. It will run faster because
all the frames: top, left, right and bottom do not change only the middle changes to display modules.php.
This is the index.php
--------------------
Anh upload timjob2 http://www.timjob.com/timjob2 has most of functional features. Neu Thuy click ma hien thi
trang trong la cho thong tin cua ben Thuy. Gio chi con sua doi code chuc dinh dua vao functionality anh da
dung xang. Cau truc thi tot roi, luc dau suy nghi cach lam gio thi frame work da co roi. Thuy xem roi co y kien
gi ? cho anh biet. Anh van de http://www.timjob.com/timjob1 for references khi xong het thi anh delete het tren host.
Anh delete email adv@vinetcom.com hinh nhu khong ai dung ma spam mail goi den da toi 5 MB roi !.
./.tv
------------------
All the files needed is in the directory /includes
No need to make a new directory you can create a style
in the sub-functions leave the main $_GET['action'} the same for now.
include or require I think they are the same.
Sub-functions are the method/function is call from $_GET['action']
Remember
The middle contains 3 sections leftmain, middle, rightmain and the bottom footer
Anh dinh lam thanh 3 frames for the leftmain, middle, rightmain but because the scroll bar so they are within
one frameset. So either 3 of sections: leftmain, middle, rightmain > 600 px causing the scroll bar that what
we want. If we make them in 3 frames then it will has 3 scroll bars which is not nice. We want the leftmain,
middle (modules) and rightmain has the same scroll bar. So I decide to use this way but you must follow
the above format. All the function calls in betwen leftmain, rightmain as above.
It is 8:41 PM but you do not call ?
./.tv
It was md5 enscript pwd vs. encrypt
if (md5($pwd)!=$item["PASSWORD"])
vs.
if (crypt($pwd,$item["PASSWORD"])!=$item["PASSWORD"])
Now people is using encrypt instead of md5. I changed back to md5 to http://www.timjob.com/. Try it.
Try to be SMART you always have http://www.timjob.com/ download it you need 2 version timjob2 and http://www.timjob.com/
so you can reference to see what goes wrong.
You can also look into phymysql on the host because you have pw and usr to access control panel as well
in mysql you can change md5 or crypt. But only do the database that you created because there are a lot of
username and pw in the database.
Have you ever work in the password enscrypt ???
Let me know,
./.tv
------------------
Nhu anh da hua sang nay anh sua function ProcessRegisterCompany() and SelectProvince()
gio thi viet vao database khong viet number of city but the city name - you can check it at main page.
I add this field so the user know which cities they apply. Vi phan nay kho noi anh lam cho em.
Trong database anh cung sua table recruit field ProvinceID to 20 de chua duoc ten thanh pho. Old Database
thi van chua number nhu tu day em post a job it will write into the database as a name instead of number.
Anh cung tao username cho nguoi tim viec va company so I can post the job they are working now.
SO NOW TIMJOB2 IS YOURS NOW & TRY TO MAKE IT WORK.!!!!! I am happy because timjob2 looks
very good and a promising future. I leave it for over 1 year but no one did anything so I did it. http://www.timjob.com/
cung y tuong va hinh anh cua anh dua nhung ho lam khong tot.
Hay co gang nho nhung gi anh viet de khoi mat thoi gio anh noi di noi lai nhieu lan. Good luck, ./.tv
This is my previous email.
Anh con chuyen phan global variable -> to $_POST co gang dung dung
global variable vi hackers co the pha duoc. Anh lam thu cho em 1 function ProcessRegisterCompany()
sau do em xem va bat chuoc lam. Phan thu 2 add Thanh pho vao database
----- Original Message -----
From: Nguyen Duy An
To: 'To Van Tran'
Sent: Saturday, March 04, 2006 7:56 PM
Subject: RE: Em lam chung voi anh du an timjob
Anh Van
I can continue to work on this timjob.com based your layout.
Duy An
From: To Van Tran [mailto:tovantran@vinetcom.com] Sent: Friday, March 03, 2006 8:23 AMTo: Nguyen Duy AnSubject: Re: Em lam chung voi anh du an timjob
Phan login va database anh chua co test, I just put all the functionalities in so we know what we must do.
Phan login co the register qua email nhu vinetcom nhu vay ng ta khong pha phach duoc vi ho fai co valid email.
Nhung page break va login in la nho thoi. Anh da lam phan kien truc cua no thanh hinh de minh khong thieu sot
hay quen lam mot cai gi do. Va mot phan nua kien truc the nao de sau nay de sua doi. Va lay out anh cung lam
xong. Nhu sang nay anh viet chi con code do la gom login, database and so on....Pls read between the lines..
day la email anh goi version 2 Phan cau truc la quan trong nhat cua mot project.
Gio chi con sua doi code chuc dinh dua vao functionality anh da
dung xang.
Em tra loi cho anh biet em co the lam duoc mot minh tu day hay khong ???????? dai khai sua code dua vao
kapeer.com ma anh da viet. Let me know ?????????
Sua nhung chuc nang quan trong lam truoc nhu login va logout. Theo code anh viet thi ng register chi dien vao email
roi minh goi ho cai link roi ho doc email va click thi di vao trang register cua minh.
Roi con phan forget password, change password, reset password.....nhieu thu lam.
I try to login it is ok but I will look all of them and rewrite most of them anyway.
Tên: tovantran (Thoát)Thay đổi TT Cá nhânĐăng tin tìm việc
----- Original Message -----
From: Nguyen Duy An
To: 'To Van Tran'
Cc: thuynguyen@vinetcom.com
Sent: Friday, March 03, 2006 9:59 AM
Subject: RE: Em lam chung voi anh du an timjob
Chao Anh Van!
Em da xem qua timjob2. Em thay co 2 van de:
Em ko login dc (ca nguoi tim viec, va nha tuyen dung)
you have not implemeted pagebreak for nhatuyendung page. So the page is too long. I used to write this function. I can do it.
the empty pages I, I and ms Thuy will complement soon
Duy An
From: To Van Tran [mailto:tovantran@vinetcom.com] Sent: Thursday, March 02, 2006 11:19 PMTo: Nguyen Duy AnCc: UNI Manager; ViNetCom ManagerSubject: Re: Em lam chung voi anh du an timjob
Thuy & An,
Anh upload timjob2 http://www.timjob.com/timjob2 has most of functional features. Neu Thuy click ma hien thi
trang trong la cho thong tin cua ben Thuy. Gio chi con sua doi code chuc dinh dua vao functionality anh da
dung xang. Cau truc thi tot roi, luc dau suy nghi cach lam gio thi frame work da co roi. Thuy xem roi co y kien
gi ? cho anh biet. Anh van de http://www.timjob.com/timjob1 for references khi xong het thi anh delete het tren host.
Anh delete email adv@vinetcom.com hinh nhu khong ai dung ma spam mail goi den da toi 5 MB roi !.
./.tv
Friday, February 24, 2006
Vietnamese Fonts problem when export to excel
mo file your_desire_name.xls. take care, ./.tv
I go to view->encoding the selected option is western european instead of UTF-8.
You mean in Dreamweaver -> Preferences -> Fonts ? (neu viet thi viet dung va which applications ?)
I can NOT set in Dreamweaver MX but I can set in Dreamweaver MX 2004
Technical notes:
http://tlt.its.psu.edu/suggestions/international/web/tips/dreamweaver.html
Problem with Dreamweaver MX from macromedia
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16338
./.tv
Should use MX2004 it has corrected the vietnamese fonts see belows. Nếu viết chử Hồ thi cẩn:
- <> encode -> utf-8
Con viết H &7879; thí không cần set gi ca.
(phấn trên của MX2004 H & 7891; o ; phần dưới type Hồ sẻ encode phần trên rồi cut and paste rồi đặt bất cư ở đâu củng sẻ thấy.với điều kiễn chọn fonts arial, times support fonts chuẩn bởi Microsoft. Và applications vẩn giữ mật mã encode H & 7891; o (để khỏng trống nếu không IE sẻ chuyên thành Hồ)
Nếu viết dưới unicode encode nhu trên ví dụ Hố = H & 7879 ; nó sẽ chạy trên bất cu IE, word mà không cần setup unicode. Dùng Dreamweave MX2004 to decode chì viết tiếng vie6t dùng vietkey mode 39 unicode. Lập trang web không cần < meta unicode utf-8 nó se hiện đúng. Chỉ cần chọn fonts mà microsoft supports tiếng viet nhu arial, times vài fonts chuẩn uni-8 You mention that CSVs are native file formats for Excel. In my experience though, Excel chokes on CSVs that have any sort of Unicode encoding. For UCS2, opening them from explorer causes Excel to show all of the cells of a row in the first cell (doesn?t seem to recognize the UCS2 comma); you must use the ?File Open? wizard to specify the delimiter in order for Excel to handle properly. UTF-8 files are opened correctly with regards to cells, but non-ASCII text (such as Chinese characters in my line of work) will be corrupted. Of course, my experience is limited to Excel 2000, but as far as I know Excel 2k has the same limitations. Do you know if there?s any way to get around these, specifically the UTF-8 problem, as my company prefers to work with UTF-8.
Thanks, and love your blog.
http://www.dicks-blog.com/archives/2004/11/08/creating-csv-files/
Excel chay tren nen 7-bit con utf-8 la 8 bit vi vay fai qua fan wizard ma anh da goi. Co le khach hang fai lam nhu vay
anh modify the code de tao ra your_desire_file.txt dung Microsoft word mo ra thi doc good ma khong can open wizard
vi MS word nhan duoc 8 bit. The last bit of character xxxxxxxX does not work with excel.
./.tv
You want that the file embedded with unicode-8 automatically open in excel you see vietnamese fonts right away without
need to convert unicode-8 but excel asked this question ?Em muon wizard nhan dung unicode-8 tu file your_desire_name.xls
without this pop up warning ?
Tuesday, February 21, 2006
CPANEL and database
Here are the steps:
1. Login cpanel www.xxx.com/cpanel enter usr and pw
2. Click MySQL Database
it will bring to the following form
Add the database by clicking the button "add db" if you name the database is "db" if you login as username: saigon then the database will have saigon_db (it adds username_db where db is the name of your database)
Similar to users if you enter username: admin then it will add saigon_admin
password will the password you type for example you type 123 and pw is 123
Last step you add users into the database by select the database name and users and then click the button named "Add users to db". There are 3 steps need to be done to create the database and the users and its connection. So when connected to the database the file name is called /connection/connect.php
$login_name = "saigon_admin"; // you just created above
$password = "123"; // pw you created above
$dbname ="saigon_db"; // database you created above
$link = mysql_connect("$host","$login_name","$password"); mysql_select_db($dbname,$link) or die(mysql_error());?>
This connect.php file allows to connect to the database of mysql.
After you create the database you can review it by click "phpMyAdmin" at the bottom of the current page of MySQL Database. In here you can add member or remove member for admin your site.
There are 3 ways to add member to your site
1. From website you need to register username and pw in the form and click submit this is normal procedures for everyone, this will allowing member with lowest priority to post
You can increase the priority of this member by change the Rank in the member table (the priority: 1 lowest and priority: 3 highest)
2. You can add the member direct from table using phpMyAdmin make sure select encrypt for the password. Here is the enscript code of your pwd before it is stored in the database so no one know what it is, and it looks like something $1$rB1/MDpZ$jCXrblB2p0W38rQrrvylH. if you check the password field when it has been encrypted.
$Pass = crypt(trim($_POST["password"]));
3. You run this piece of code then enter into the password field without no enscript because when it echo into the screen you can cut the string and paste into the password field.
This is how 123 after encripted will look like
123
$1$Bt1.0o0.$LDUHS///PwOuRVMGJZjYn. (you can add this string into the pwd field and remember to select function field is BLANK instead of enscript because this string has been enscrip the following code.
The code to do this
# You should pass the entire results of crypt() as the salt for comparing a# password, to avoid problems when different hashing algorithms are used. (As# it says above, standard DES-based password hashing uses a 2-character salt,# but MD5-based hashing uses 12.)
$password = "123";
echo "$password";
echo "
";
$password1 = crypt("123");
$echo "$password1";
?>
Wednesday, February 15, 2006
oscommerce 2.2ms2-051113 install
Anh install oscommerce tren server neu ai muon su dung tren server hay local thi doc phan sau. Distribute to them !!!
Anh upload version of oscommerce len trang http://www.saigonbestbuy.com/ cua minh. Tren web cau truc nhu vay.
De vao admin oscommerce. http://www.saigonbestbuy.com/oscommerce/oscommerce-2.2ms2-051113/catalog/admin/
De hieu cu di tu tu vao http://www.saigonbestbuy.com/oscommerce -> roi click oscommerce-2.2ms2-051113 -> catalog
nhu vay moi biet tu root den admin co bao nhieu files.
Cau truc oscommerce:
oscommerce-2.2ms2-051113 -- version oscommerce cung o directory co file huong dan documentation.pdf + config.php
(config de connect database no nam ben trong /includes dem ra day de de thay doi)
catalog
admin
download
images
includes
install
images
includes
templates
pub
extras
register_global_v1.3a --- day la patch cho oscommerce anh da install roi neu khong co phan nay se co loi
catalog Server Requirement Error: register_globals is disabled in your PHP configuration
admin
includes
install
includes
Muon tao o apache locate file thi download directory xuong local file (khoang 4 MB)
theo chi dan cua o /oscommerce-2.2ms2-051113/documention.pdf
Dai khai
tao database name: oscommerce (tren server thi saigon_oscommerce lay ten cua usr: saigon tu dong tao ra)
add username: oscom (tren server thi saigon_oscom)
pw: oscom
- Co 2 cach de install
Cach 1:. la chay file
http://www.saigonbestbuy.com/oscommerce/oscommerce-2.2ms2-051113/catalog/install/
(chay o local http://localhost/oscommerce/oscommerce-2.2ms2-051113/catalog/install)
dien vao: server: localhost usr: oscom pw: oscom click: database click: persistant connection
(xem huong dan ro rang o document.pdf page 8)
Cach 2: la import database cua oscommerce oscommerce.sql o /oscommerce-2.2ms2-051113/catalog/install
Cuoi cung: ftp cua http://www.saigonbestbuy.com/ username: pw:
Note: co 2 configure.php fai sua va thong nhat (must be the same with usr and pw) are:
Reset the permissions on /catalog/includes/configure.php to 644 Reset the permissions on /catalog/admin/includes/configure.php to 644.Set privileges 644 dung cuteFTP by ChangeMode (o page 9 of document.pdf)Neu khong set privileges (command cua Linux/Unix tuong duong la chmod -s) to prevent hacker.
If you install the oscommerce successfully like this:
If it is work you type http://www.saigonbestbuy.com/oscommerce/oscommerce-2.2ms2-051113/catalog/admin/you will have your admin like this:
I write about /admin but forget to mention the main page
at local if you install local
http://localhost/oscommerce/oscommerce-2.2ms2-051113//catalog/
on the server
http://www.saigonbestbuy.com/oscommerce/oscommerce-2.2ms2-051113/catalog/
Wednesday, January 25, 2006
System Restore
Boot system -> F8-> menu show up -> select the last known working
- You can restore the certain date that you know that it was working
It is very good idea to have the system restore in your PC in case the virus attacks or installing the devices causing the system to crash.
Enable system restore:
Start->control panel -> system -> system restore -> enable (unclick turn off)
To restore following the instruction of help support on Windows. Then search for "system restore" then click on the system restore wizard and following
the instruction. To get help
Start -> help support
This will save you a lot of time if you know the system was working before then restore the point when it was working.