Wednesday, September 21, 2011

Using javascript to solve mobile browser position:fixed; issue

One of the website I am working on is using Clearbox to generate the lightbox effect. But because most of the mobile browsers does not work with position:fixed, so, when user browse the website from iPad or Android, the dialog box always popup at the top of the page (outside the current viewport). The same issue happens to every javascript library using position:fixed property.

There is no easy workaround yet.

So, I have to run the following script after every scroll event in order to update the "top" style of the popup window (keep updating even before the user click the lightbox link).

(include this script right before the </head>)

Friday, September 16, 2011

Using Keynote for presentation slides

Keynote has a really nice feature to share the slides online in iwork.com, but it requires Safari browser to see all the animations and transitions.

http://public.iwork.com/document/?d=WebScraping.key&a=p1074597799

This sharing is about writing Web Scraper, the audience are HKUST students in Social Media course.

Friday, September 9, 2011

am visiting HKUST occasionally ... sitting lessons

Was visiting HKUST occasionally, and attended a random class. It is really tempted to sit more lessons for free ! I think one day I will keep attending university classes when I don't have full time job.

Here is the list of course pages:
http://www.cse.ust.hk/pg/courses

Here is the class schedule search application to check the class date time and room number:
http://tinyurl.com/425oygn



Some interesting ones ... (not all of them available this semester):


COMP 5211     Advanced Artificial Intelligence     [3-0-0:3]
[Previous Course Code(s): COMP 521] This advanced AI course will cover advanced concepts and techniques in AI. The major topics will be: problem solving, knowledge and reasoning, planning, uncertain knowledge and reasoning, learning, and robotics.


COMP 5531     Green Computing     [3-0-0:3]
[Co-List with ENEG 5450] This course will exam "Green Computing" from a system perspective, meanwhile, students will study issues related to energy saving form multiple disciplines such as mechanical engineering, industrial ecology, and economics. We will explore energy efficient system designs ranging from datacenters to embed devices, such as sensor networks and RFID devices. We will perform Life Cycle Analysis on some of these systems, evaluating the carbon footprint of manufacturing, use, and disposal of each design. Exclusion(s): ENEG 5450


COMP 5711     Introduction to Advanced Algorithmic Techniques     [3-0-0:3]
[Previous Course Code(s): COMP 570] This is an introductory graduate course in algorithmic techniques. Topics include: advanced data structures; graph algorithms; amortization; approximation algorithms; on-line algorithms; randomized and probabilistic analysis. Background: COMP 3711, COMP 3721


COMP 5712     Introduction to Combinatorial Optimization     [3-0-0:3]
[Previous Course Code(s): COMP 572] An introduction to the basic tools of combinatorial optimization, including network flow and the max-flow min-cut theorem, linear programming, matching, spanning trees and matroids, dynamic programming, algorithms and data structures, graph algorithms. Background: COMP 3711 or equivalent, linear algebra


COMP 6211     Advanced Topics in Artificial Intelligence     [3-0-0:3]
[Previous Course Code(s): COMP 621] Advanced topics in artificial intelligence including neural networks, natural language processing, logic programming, image understanding, robotics and others. Background: An appropriate 500-level course.


COMP 6511     Topics in Computer Systems Analysis     [3-0-0:3]
[Previous Course Code(s): COMP 651] Advanced topics in computer systems analysis; issues in the development and solution of system models; model parametrization, verification and validation; recent developments in techniques and tools for system evaluation.


COMP 6611     Topics in Computer and Communication Networks     [3-0-0:3]
[Previous Course Code(s): COMP 660] Advanced topics in communication networks, including issues in high speed networking, ATM, multimedia communication, network interconnection, network management, and protocol verification and testing.


COMP 6612     Topics in Computer Engineering     [3-0-0:3]
[Previous Course Code(s): COMP 680] Selected topics in computer engineering of current interest to the Department and not covered by existing courses.


COMP 6613     Topics in Applications of Computer Science and Engineering     [3-0-0:3]
[Previous Course Code(s): COMP 685] Selected topics in applications of computer science not covered by existing course. Credits earned by taking this course can only be used to satisfy the breath requirement of the research area of Software and Applications.


COMP 6711     Topics in Theoretical Computer Science     [3-0-0:3]
[Previous Course Code(s): COMP 670] Selected topics in theoretical computer science not covered by existing courses, including, but not limited to, computational complexities and computability, graph algorithms and combinatorial optimization.

Monday, September 5, 2011