หน้าเว็บ

วันจันทร์ที่ 4 กุมภาพันธ์ พ.ศ. 2556

Ubuntu : Install Alfresco in Ubuntu.


1. Install Ubuntu server 10.04 Or copy file ova form zimbra/it/ file Alfresco3.ova
2. Open program Virtualbox. Menu file import choose file Alfresco3.ova
3. next set ram up to 1024
4. Install mysql-server and openjdk-6-jdk
4. chmod 777 Alfresco-Community-3.2r2-Linux-x86-Install
5. Install program by use command [code=text]./Alfresco-Community-3.2r2-Linux-x86-Install [/code]
6. Y enter enter
7. import file create database into mysql.From folder install program (in folder extras/databases/mysql/db_setup.sql)
mysql -u root -p < /opt/Alfresco/extras/databases/mysql/db_setup.sql
insert password root for mysql and enter
8. ตั้งค่า ALF_HOME กับ JAVA_HOME ที่ไฟล์ alfresco.sh by use comand nano /opt/Alfresco/alfresco.sh

Once you get it started as root, you can worry about tightening security and running it as a non privileged user.
you probably have to edit your alfresco.sh file to point it at the Sun Java JDK and the root Alfresco directory"
so in that file, you will need to set these lines
replace
[code=text]ALF_HOME=@@ALFRESCO_DIR@@[/code]
with
[code=text]ALF_HOME=/opt/Alfresco[/code]
and
[code=text]export JAVA_HOME="@@JAVA_HOME@@"[/code]
with
[code=text]export JAVA_HOME="/usr/lib/jvm/java-6-openjdk”[/code]
the Sun JDK is not installed by default on most distributions so you will have to install it and point alfresco at it.

9. สั่ง start ด้วยคำสั่ง alfresco.sh start   command /opt/Alfresco/alfresco.sh start.
10.ลองเข้าใช้ที่ http://localhost:8080/share กับ http://localhost:8080/alfresco  example 192.168.0.9:8080/alfresco  แล้วก็รอ จนกว่าจะเข้าได้ นาน

Ubuntu Server on HP Proliant - managing RAID for webborwser

Step by step. Setup in Ubuntu 10.04 server

1. Copy folder hp-deb in  download from web http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack/ubuntu/pool/non-free/

2. install by use command .
dpkg -i hpsmh...
dpkg -i install hp-health...
apt-get install -f
dpkg -i install hp-health...
dpkg -i hp-snmp-agent...
dpkg -i hp-smh-templates...
dpkg -i hponcfg...
dpkg -i hpacucli... #optional
dpkg -i cpqacuxe
Typing command and enter Tab select file support system of computer. Example i386 or amd.
If install show error in text command. You must read it and install command error one more.

3. After install finish. Open webborwser and enter url example https://IP:2381 https://192.168.2.8:2381/
In Ubuntu login by using username and password of root. If you not set password root you can set by useing command "passwd" and enter password of root.
In WindowsServer login by using UserName and PassWord Administrator of Domain by use sci\Administrator.

Thunderbird : Mail filter for Thunderbird.

1. เข้าเมนู Tools ----> Massage filters ตามรูป

2. คลิ๊ก New


3. กำหนดเงื่อนไขในการจัดการเมล์ เช่น เงื่อนไขในการส่งจากใคร หรือถึงใคร และจะให้ทำอย่างไร ลบ หรือส่งต่อ หรือ อื่น ๆ













4. กำหนดเสร็จแล้วกด Ok เช็คเมล์อีกครั้ง

Axapta X++ : Join Table ให้แสดงในอีก Form เฉพาะ Item ที่เลือก

ตัวอย่างใน SCI_QUOTATION
การทำงานคือจะทำให้อีก Form ที่มี Grid แสดงข้อมูล ของ Code หรือ Item ที่เลือกเท่านั้น เช่น มี Tab 2 Tab คือ Overview และ Line เมื่อคลิ๊กที่ Item Overview แล้วเลือก Tab Line ก็ให้แสดงข้อมูลใน Line เฉพาะ ของ Item หรือ code นั้น ๆ
1. ทำการ Join Table ที่ Data Sources ที่ Table รองตามรูป













2. ทำการสร้าง Relation ที่ Table รอง ด้วยการ New ---> Normal ตามรูป

3. กำหนด Field และ RelatedField โดยเลือกตาม Field ที่ใช้ Primary ที่เป็นตัวหลัก ตามรูป


ทดลองรัน Form ดู ครับ

Axapta X++ : สร้าง Field Time

สร้าง Field เป็น Time และ ExtendedDataType เป็น timeOfDay

Code ยัดเวลาเข้าไปใช้

Name Table.Field Table = timenow();

ตัวอย่างใน Project SCI_QUOTATION

VB 2008 : Problem Unable to convert MySQL date/time

Unable to convert MySQL date/time value to System.DateTime
Problem
You receive the following message when running your application:
Unable to get records. Unable to convert MySQL data/time value to System.DateTime.
In certain versions of MySQL, date values are saved as 0000-00-00 instead of a NULL which causes an error when running your application.

Problem
Step 1: Make sure that date columns in the MySQL database either contains all valid values or contain NULL.
Step 2: Add the “Allow Zero Datetime=true” attribute to your database connection string in your application’s Web.config file, e.g.:


  1. <add name="Databasesalika1"
  2.      connectionString="Data Source=qaxp-net;Port=3306;
  3.      Database=salika;
  4.      User Id=ironspeed1;Password=ironspeed1;
  5.      Allow Zero Datetime=true"
  6.      providerName="MySql.Data.MySqlClient"
  7. />

Ubuntu : Set ให้เข้า Phpmyadmin จากเครื่องอื่นได้

Set ให้เข้า Phpmyadmin จากเครื่องอื่นได้ เช่น จาก VB เข้ามาใช้งานได้
ใน Ubuntu แก้ไข
1.แก้ไข my.cnf (อยู่ที่ /etc/mysql/) nano /etc/mysql/my.cnf
แก้ตรง bind-address จาก 127.0.0.1 เป็น ip ที่ถือครองอยู่ของ network ฝั่งที่ต้องการให้ติดต่อเข้ามาได้ เช่น 192.168.0.244
2. restart mysql-server (/etc/init.d/mysql restart)
อ้างอิง : http://www.debianhelp.co.uk/remotemysql.htm
3. เข้า phpmyadmin ของเครื่อง Local ไปที่ Database mysql table : user
Edit ตรงชื่อ ที่ ที่เราต้องการใช้ติดต่อเข้ามาเช่น sa หรือ root
และแก้ Host ให้เป็น Ip ที่เราต้องการให้เข้ามาได้ เช่น 192.168.0.46 หรือใส่เป็น % คือให้เข้ามาได้หมด
4. Home ของ Phpmyadmin เลือก Tab Privileges จะมี Menu ด้านล่างให้คลิก reload the privileges คลิกรอจนเสร็จ
ทดลองเข้าใช้งานจากเครื่องอื่น