Lưu trữ

Archive for Tháng Mười Một, 2009

Lên mạng học tiếng Anh miễn phí

Tháng Mười Một 16, 2009 vuau Phản hồi đã bị khóa

From: http://nhipsongso.tuoitre.com.vn/Index.aspx?ArticleID=347794&ChannelID=16

TTO – Bạn có thể trau dồi ngoại ngữ nhanh chóng nhờ các trang web dạy tiếng Anh miễn phí bằng hình ảnh, video trực quan và cho phép trao đổi kinh nghiệm ngay trên diễn đàn.

learnenglishonline.yuku.com là website dù không hấp dẫn về hình thức nhưng chứa đựng rất nhiều bài học bổ ích. Tại đây, người học có thể đăng ký tham gia phòng chat trực tuyến (Let’s Chat), nói chuyện với bạn bè năm châu bằng tiếng Anh và nâng cao kỹ năng giao tiếp. Read more…

Categories: Tiếng Anh Thẻ:

How to write a FaceBook Application in 10 minutes

Tháng Mười Một 14, 2009 vuau Phản hồi đã bị khóa

From: http://gathadams.com/2007/06/18/how-to-write-a-facebook-application-in-10-minutes/

Writing F8 apps is where it’s at right now. Everybody knows it. The userbase is huge and now we have a (free) API to. Everything is good….but the documentation.

I spent a day writing my Sudoku Facebook application yesterday. I already had the sudoku javascript widget ready to go – the time was spent wading through pages of documentation and downloading toolkits that (as it turns out) I didn’t need. Read more…

Categories: web Thẻ:

dotProject error: query failed about username

Tháng Mười Một 12, 2009 vuau Phản hồi đã bị khóa

http://forums.dotproject.net/showthread.php?t=9290

 

EDIT: Fixed in stable_2 as of revision 5798.

When users try to reply to a forum post the system throws an SQL error.

It is happening because a user_id is not being delimited with quotes.

Here is the message we see…

Quote:
ERROR: /home/mysite/public_html/zzzproj/classes/query.class.php(623): query failed(SELECT contact_first_name, contact_last_name FROM ( `users` ) LEFT JOIN `contacts` AS con ON contact_id = user_contact WHERE user_username LIKE ‘tofjohn’ OR user_id = tofjohn) – error was: Unknown column ‘tofjohn’ in ‘where clause’

My Analysis: WHERE user_username LIKE ‘tofjohn’ OR user_id = tofjohn) – error was: Unknown column ‘tofjohn’ in ‘where clause’
should have parameter for user_id quoted as in… OR user_id = ‘tofjohn’)

Quote:
Backtrace:
0 /home/mysite/public_html/zzzproj/classes/query.class.php:623 dprint(‘/home/mysite/public_html/zzzproj/classes/query.class.php’,623,0,’query failed(SELECT contact_first_name, contact_last_name FROM ( `users` ) LEFT JOIN `contacts` AS con ON contact_id = user_contact WHERE user_username LIKE \’tofjohn\’ OR user_id = tofjohn) – error was: Unknown column \’tofjohn\’ in \’where clause\”)
1 /home/mysite/public_html/zzzproj/classes/query.class.php:645 exec(2)
2 /home/mysite/public_html/zzzproj/includes/main_functions.php:193 loadList()
3 /home/mysite/public_html/zzzproj/modules/forums/post_message.php:139 dPgetUsername(‘tofjohn’)
4 /home/mysite/public_html/zzzproj/modules/forums/viewer.php:83 include(‘/home/mysite/public_html/zzzproj/modules/forums/post_message.php’)
5 /home/mysite/public_html/zzzproj/index.php:299 require(‘/home/mysite/public_html/zzzproj/modules/forums/viewer.php’)
<\pre>

I tried to find a fix by looking at query.class.php and found the make_where_clause function, but looks like the problem comes somewhere before that. Will keep looking thru more source…

Current versions of system are in my sig.

 

fix:

/* $q->addWhere(“user_username LIKE ‘$user’ OR user_id = ” . $user); */
$q->addWhere(‘user_username LIKE \”.$user.”‘”);

Categories: Uncategorized Thẻ:

Ebook “Giáo trình nguyên lý Hệ Điều Hành – Operating Sytems”

Tháng Mười Một 9, 2009 vuau Phản hồi đã bị khóa

Giáo trình này gồm có 4 phần với 11 chương:

Phần 1: Tổng quan
Chương 1: Tổng quan về hệ điều hành

Code:
http://www.mediafire.com/?iskkkud2djc
Chương 2: Cấu trúc hệ điều hành Read more…

Categories: ebook Thẻ: