Quadratic Formula
1 |
x=(-b±sqrt(b²-4ac))/2a |
ที่มา jimloy.com
ไปที่เมนู View>Toolbars>Forms
จากนั้นเลือก Control ที่ต้องการ ซึ่งในที่นี้เลือก Button
ทำการวาด Button ไว้ในตำแหน่งทีต้องการ จานั้นจะมี Dialog มาให้เลือกว่าจะให้ Button นี้เเชื่อมโยงกับ Macro ไหน
ที่มา: ozgrid.com
การรัน MySQL query จากไฟล์ บางครั้งอาจข้อมูลที่ Import เข้าไปอาจกลายเป็นภาษาต่างดาว เนื่องจากรหัสอักขระที่เก็บไว้ในไฟล์ ดังนั้นให้แก้ไขได้โดยการกำหนดคำสั่งไว้ที่ด้านบนของไฟล์ดังนี้
[code lang=”sql”]
SET NAMES ‘utf8’ COLLATE ‘utf8_unicode_ci’;
[/code]
go to: System Preferences > Sharing
check on Web Sharing
Example, http://localhost
or http://localhost/~yourname/
Source Directory
/Library/WebServer/Documents
/Users/yourname/Sites/your web pages are here
Ref devarticles.com
You can use Registry Editor to add your log on information. To do this, follow these steps:
If no DefaultPassword string is specified, Windows XP automatically changes the value of the AutoAdminLogon registry key from 1 (true) to 0(false) to turn off the AutoAdminLogon feature.
After your computer restarts and Windows XP starts, you can log on automatically.
ที่มา: support.microsoft.com/
คำสั่ง Backup Database
[code]
$ mysqldump -u user_name -p db_name > file_name
[/code]
คำสั่ง Backup Table
[code]
$ mysqldump -u user_name -p db_name table_name > file_name
[/code]
Link
ตัวอย่างไฟล์งานชื่อ test
วิธีรวมเป็นไฟล์เดียว
tar -cvf test.tar test
ผลลัพธ์จะได้ไฟล์ test.tar
วิธี zip
gzip test.tar
ผลลัพธ์จะได้ไฟล์ test.tar.gz
วิธี unzip
tar -zxvf test.tar.gz
ผลลัพธ์จะได้ไฟล์ test
อ้างอิง expert2you.com
[code lang=”python”]
#!/usr/bin/env python
import xmlrpclib
server = xmlrpclib.Server("http://localhost/drupal/xmlrpc.php")
for method in server.system.listMethods():
print method, server.system.methodHelp(method)
[/code]
เมื่อสั่ง run จะได้ output ดังนี้
system.multicall
system.methodSignature
Returns an array describing the return type and required parameters of a method.
system.getCapabilities
Returns a struct describing the XML-RPC specifications supported by this server.
system.listMethods
Returns an array of available methods on this server.
system.methodHelp
Returns a documentation string for the specified method.