A youtube video URL is like
https://www.youtube.com/watch?v=Qx-ezesM3nA. The video ID consists of 11 characters with ASCII uppercase and lowercase alphabets, digits ,and some other characters. In some cases we would like to generate a hash function that outputs a Youtube-video-ID-like hash value. For example: A URL shortener that generate a shorter URL from the original long URL. Here is my implementation:
While retreiving data from Django Model, we might want data that retreived in some ordering. (alphabet, created time, and etc.) Simply use
這個部落格紀錄我在學習程式上的心得或筆記，為了讓可以看的懂的人不分國家，大部分都以英文撰寫為主。 我是一個以中文為母語的人，對於寫作的掌握自然比英文強很多，為了讓廣大的中文使用者也能分享資訊， 我開始考慮有時間的話每一篇文章都有中英兩種語言的版本。對於可以同時掌握兩種最多人使用的語言的我感到開心與興奮， 也期許自己能成為一個有教導能力的人。
When we talk about database, the dumb way to select objects in Django is using raw SQL scripts. We don’t use SQL directly in Django due to security issues and cross-platform achievement. Using Django database API can avoid most SQL secure holes and you don’t have to learn much about database selecting languages which might be slightly different between several Django supported databases. I am going to talk about a little (my notes) in selecting objects in Django model.
Download the plugin here:
Include jQuery and this plugin in your HTML page:
I assume that the reader of this post wants to write a master thesis in National Taiwan University that is a Chinese native speaker. I wrote this teaching article in Chinese. If you are a reader that is interested in writing LaTex/XeLaTex with Sublime Text 2 on Mac, I suggest you to read reference , , , and . If you are a student in NTU but not a Chinese speaker, email me to
teebone [at] teeboneding dot com and I will try to translate this post in English if I have plenty of time after I finish my master thesis this year, good luck!
Job completion time prediction is not a new story recently. How to schedule a job before it arrives it's deadline is always a hot topic in systems research. In order to allocate sufficient resources to meet a job's service-level objectives (SLOs) on latency, we need to predict job completion time accurately when given resource allocation information.