หน้าเว็บ

วันพุธที่ 12 มีนาคม พ.ศ. 2557

PHP BB3 : PHPBB3 3.0.11 upgrad to 3.0.12

1. Install phpbb3 in local computer. By use the method follower.
http://intranet.sci.com/blog.php?u=281&b=630
1.png


2. Download Automatic Update Package จาก https://www.phpbb.com/downloads/ (เลือก version ให้ถูก)
3. แตกไฟล์แล้วเอา folder install ไปวางใน root ของ phpBB ชื่อ Folder ต้องชื่อ install เท่านั้น
4. เข้าไปใน folder install http://localhost/install/ (ควร Backup Folder เดิม ไว้ก่อนทั้ง Folder เผื่อมีปัญหาจะได้ไม่ต้องลงใหม่)
2.png

4.1 หน้าแรก เตื่อนให้ Backup คลิก Next processes
4.2 upgrade database กด Update Database และ กด Update my database
3.png

4.3 กด Continue the update process now
4.png

4.4 แสดง ความแตกต่างระหว่าง Version เก่าและ Version ใหม่
5.png

6.png

4.5 กด Download modified files archive (recommended)
4.6 เลือก Download file ที่จะนำไป Update เลือก เป็น Zip แล้วนำไปแตกไฟล์
7.png

4.7 นำไฟล์ที่แก้ไขแล้ว แตกไฟล์ แล้วนำไปวางทับใน root ของ phpBB
4.8 คลิก continue เพื่อตรวจสอบ ถ้าไม่มีปัญหาให้ลบ folder Install ออกจาก root ของ phpBB ได้เลย
8.png

9.png

UBUNTU : ติดตั้งบริการ FTP

1.ติดตั้ง vsftpd
[code=bash]sudo apt-get install vsftpd[/code]

2.ปรับแต่ง config
[code=bash]sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.original #สำรองไว้ก่อน[/code]
ปรับได้ 3 แบบ
[code=bash]# 1. All users are jailed by default:  คือ User ทั้งหมดเข้าไม่ได้ เป็นค่า Default
chroot_local_user=YES
chroot_list_enable=NO

# 2. Just some users are jailed:  คือ Connect เข้าได้เฉพาะ User ที่ไม่ได้อยู่ใน File vsftpd.chroot_list และ List ดู Folder ได้
chroot_local_user=NO
chroot_list_enable=YES
# Create the file /etc/vsftpd.chroot_list with a list of the jailed users.

# 3. Just some users are "free": คือ เข้าดูได้ทุก User ที่มีชื่ออยู่ใน File vsftpd.chroot_list  และ List Folder ได้
chroot_local_user=YES
chroot_list_enable=YES
# Create the file /etc/vsftpd.chroot_list with a list of the "free" users[/code]

3.จัดการ User โดยเลือกแบบที่ 3  เป็นส่วนที่ใช้สร้าง Folder ที่ต้องการให้ FTP เข้า มา จะเป็นที่ FTP เข้ามาจะเห็นที่ Folder นี้เลย
สร้างไว้ที่อื่นก็ได้
[code=bash]sudo useradd -d /home/user1 user1
sudo mkdir /home/user1
sudo chown user1 /home/user1
sudo passwd user1 #ตั้งรหัสผ่าน[/code]
กรณีต้องการให้ ftp เข้าไปแก้ www
[code=bash]gpasswd -a user1 www-data[/code]
เพิ่ม user1 เข้าไปในไฟล์ [color=#0000FF]/etc/vsftpd.chroot_list[/color] แล้ว restart service
[code=bash]sudo /etc/init.d/vsftpd restart[/code]

ถ้าต้องการให้แก้ไขได้หรือไม่ได้ให้แก้
write_enable=YES   คือ สิทธ์ของ User ตามข้อ 3 แก้ไข ลบได้
write_enable=NO  คือ อ่านเข้าไปดูได้อย่างเดียวแก้ไขไม่ได้

Ubuntu : ถอด LibreOffice

sudo apt-get remove --purge libreoffice*
 
sudo apt-get clean
 
sudo apt-get autoremove

วันพฤหัสบดีที่ 21 พฤศจิกายน พ.ศ. 2556

Axapta X++ : Install axapta in windows 7 64bit

1. Copy and install same method in windows xp.
2. Set region and language in current language Unicode to Thai(Thailand).
in tab Administrative

3. Allow windows firewall ax32 and axdebug.


Axapta X++ : Create and Delete Template in Axapta.

1. Create by go to menu Inventory management --> Items and select item is prototype and click right select Record Info. Show dialog box.










1.1 Create template for all user in company click button Company accounts template. And set name template.
1.2 Create template for one user is mean is not show template all user. By click button User template and set name template.
Finish step create template.

2. Delete template. have two method.
2.1 Template is create by User template. We can delete by go to menu Inventory management --> Items and click new item. Show dialog box template you can choose template and click button delete in menu bar.
2.2 Template is create for all user in company it can't delete follow in step 2.1
If you must delete template follow step by.
Go to menu Basic ---> Setup ---> Record templates and click tab Templates. And choose template we must delete. Then click delete button in menu bar. Finish step delete template for all user company.

 

Axapta X++ : StrFind in axapta.

int StrFind (str text,str characters,int position,int number)

Examples
StrFind("ABCDEFGHIJ","KHD",1,10) //จากตำแหน่งที่ 1 นับไปข้างหน้า 10 ตัว ในช่วง 10 ตัวนั้นมี ค่าที่ให้หาเจอตัวแรก Return ตำแหน่ง
returns the value '4' (the position where "D" was found).
StrFind("ABCDEFGHIJ","KHD",10,-10) //จากตำแหน่งที่ 10 นับย้อนหลัง 10 ตัว ในช่วง 10 ตัวที่นับย้อนหลังไปนั้นมี ค่าที่ให้หาเจอตัวแรก Return ตำแหน่ง
returns the value '8' (the position where "H" was found).

Return ตำแหน่ง ในที่นี้ จะนับจากตัวแรกตำแหน่งที่ 1 เสมอ
ใส่ - คือนับย้อนกลับ ใส่ค่า + คือนับตามปกติ เท่ากับจำนวนตัวที่ต้องการ

Windows SKZ แก้ปัญหา เปลี่ยนรหัส Administrator

- Windows XP SKZ มีรหัส ติด Windows มา คือ skzcommunity
- เวลาเปลี่ยน Note book ตั้ง lock screen ต้องใส่รหัสบ่อย ๆ
- Reset รหัส ของ Administrator โดยการคลิกขวาที่ my computer เลือก menage เลือก User reset รหัส
แต่ตอนเปิดเครื่องจะมี Error และทำให้ Load file login ตอนเข้า windows ช้า

แก้ปัญหาด้วย
เข้าไปที่
- Start ---> Run พิมพ์ control userpasswords2
- เลือกชื่อ Administrator
- กดปุ่ม Reset Password

ลองปิดหน้าจอ Notebook แล้วเปิดใหม่ หรือปล่อยไว้ให้ Lock Screen ต่อไปก็จะไม่ต้องใส่รหัส ทุกครั้งที่พักหน้าจอ หรือ
ตอนเปิดเครื่อง

http://webmonster.sapaan.net/windows-xp-tips-tricks/%E0%B8%9B%E0%B8%B4%E0%B8%94%E0%B8%AD%E0%B8%AD%E0%B9%82%E0%B8%95%E0%B9%89%E0%B8%A5%E0%B9%8A%E0%B8%AD%E0%B8%81%E0%B8%AD%E0%B8%AD%E0%B8%99-how-to-disable-automatic-logon-windows-xp.html