Tagsalgorithm archiver Asus bash bible C++ code commands dd Django Entropy exaile exponentiation file manipulation firefox gui application hard drive Java kill Linux localization music muti-thread application online judge packages Perl perl 5.10 PHP programming contest purging Python regular expressions Scheme script sorting SQL ssh swap Synchronizing terminal text file Threads Ubuntu updater variable
Category Archives: Python
I want to present my code in Python solving Senate Bus Problem from The Little book of Semaphores (page 211). I’ve used several synchronizing objects such as Lock, Thread, Condition and Semaphore. Here is link to Python threading library.
I’ve created a Django model using FileField: class Car(models.Model): … car = models.FileField(upload_to=’upl/%Y/%m/%d’) …class Car(models.Model): … car = models.FileField(upload_to=’upl/%Y/%m/%d’) … I wanted to upload files named using polish characters (for example: “auto-żółw”). Unfortunately, Django erease polish letters (“auto-żółw” -> “auto-w”).
If we want to know the last ten digits of number an – we have to evaluate expression an mod 1010. Using brute force approach, we have to do O(n) ( If you don’t understand big „O” notation, visit: Big … Continue reading
I have directory with data (music, photos, ebooks etc.) on my two computers. I wanted to have exactly same files in my data directory on both machines, but sometimes I changed content of the directory on one of computers. I’ve … Continue reading