Tools
Записки программиста, обо всем и ни о чем. Но, наверное, больше профессионального.
2014-06-30
Медсправка в ГИБДД
2014-06-27
Цены в автошколе-онлайн
Posted by Valentin at 11:30 0 comments
2014-06-26
PCA
Posted by Valentin at 11:30 0 comments
2014-06-25
K-Means
Posted by Valentin at 11:30 0 comments
2014-06-24
C10K
PyParallel - How We Removed the GIL and Exploited All Cores (Without Needing to Remove the GIL at all) - Trent Nelson from PyData on Vimeo.
Несколько слайдов, чиста для иллюстрации темы:
original post http://vasnake.blogspot.com/2014/06/c10k.html
Posted by Valentin at 11:30 0 comments
2014-06-23
mp3 splitter
Posted by Valentin at 11:30 0 comments
Labels: music
2014-06-21
В Строгино дует
Posted by Valentin at 12:39 0 comments
Labels: windsurfing
2014-06-20
Blue Jasmine
Posted by Valentin at 11:30 0 comments
2014-06-19
Certificate
Posted by Valentin at 11:30 2 comments
2014-06-18
Get a job at Google
Posted by Valentin at 11:30 0 comments
Labels: Google
2014-06-17
Plone + webcam
<img id="myimg" src="url to webcam.jpg">
function showImageFromWebcam() { var now = new Date(); var stamp = parseInt(now.getTime() / 2000, 10); $('#myimg').attr('src', "http://clubwindsurf.info/ftpfiles/webcam.jpg?" + stamp); setTimeout(showImageFromWebcam, 2000); } setTimeout(showImageFromWebcam, 2000);
// правильная загрузка картинок с веб-камеры // http://stackoverflow.com/questions/11632278/use-page-specific-css-in-plone // http://jsfiddle.net/623rB/13/ // http://jqueryfordesigners.com/image-loading/ // http://docs.plone.org/adapt-and-extend/theming/templates_css/css.html // HTML <div id="loader" class="loading"></div> // CSS DIV#loader { border: 1px solid #ccc; width: 640px; height: 480px; } /** * While we're having the loading class set. * Removig it, will remove the loading message */ DIV#loader.loading { background: url(http://jqueryfordesigners.com/images/spinner.gif) no-repeat center center; } // JS function showImageFromWebcam() { var now = new Date(); var stamp = parseInt(now.getTime() / 2000, 10); var img = new Image(); // wrap our new image in jQuery, then: $(img) // once the image has loaded, execute this code .load(function () { // set the image hidden by default $(this).hide(); // with the holding div #loader, apply: $('#loader') // remove the loading class (so no background spinner), .removeClass('loading') // then insert our image .empty().append(this); // fade our image in to create a nice effect //$(this).fadeIn(200); $(this).show(); setTimeout(showImageFromWebcam, 2000); }) // if there was an error loading the image, react accordingly .error(function () { // notify the user that the image could not be loaded setTimeout(showImageFromWebcam, 1333); }) // *finally*, set the src attribute of the new image to our image .attr('src', "http://clubwindsurf.info/ftpfiles/cam_1.jpg?" + stamp); } setTimeout(showImageFromWebcam, 2000); |
Posted by Valentin at 11:30 0 comments
Labels: todo, Zope(Plone)
2014-06-16
Neural Net Flaws
Posted by Valentin at 12:30 0 comments
Каталка в Строгино
Posted by Valentin at 11:30 4 comments
Labels: windsurfing
2014-06-11
Укладка
Posted by Valentin at 11:30 0 comments
2014-06-10
Carrie
Posted by Valentin at 11:30 0 comments
2014-06-09
TrueCrypt всё?
Posted by Valentin at 11:30 0 comments
2014-06-06
Вудгпу (Deluge)
$ Traceback (most recent call last): File "/opt/deluge/deluge-1.3.6/env/bin/deluge-gtk", line 9, in <module> load_entry_point('deluge==1.3.6', 'gui_scripts', 'deluge-gtk')() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 356, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2431, in load_entry_point return ep.load() File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2147, in load ['__name__']) File "/opt/deluge/deluge-1.3.6/deluge/ui/gtkui/__init__.py", line 1, in <module> from gtkui import start File "/opt/deluge/deluge-1.3.6/deluge/ui/gtkui/gtkui.py", line 79, in <module> from torrentview import TorrentView File "/opt/deluge/deluge-1.3.6/deluge/ui/gtkui/torrentview.py", line 52, in <module> from deluge.ui.tracker_icons import TrackerIcons File "/opt/deluge/deluge-1.3.6/deluge/ui/tracker_icons.py", line 51, in <module> from deluge.httpdownloader import download_file File "/opt/deluge/deluge-1.3.6/deluge/httpdownloader.py", line 35, in <module> from twisted.web import client, http File "/usr/lib/python2.7/dist-packages/twisted/web/client.py", line 38, in <module> from twisted.web.iweb import UNKNOWN_LENGTH, IAgent, IBodyProducer, IResponse File "/usr/lib/python2.7/dist-packages/twisted/web/iweb.py", line 19, in <module> from twisted.cred.credentials import IUsernameDigestHash File "/usr/lib/python2.7/dist-packages/twisted/cred/credentials.py", line 13, in <module> import hmac, time, random, re File "/usr/lib/python2.7/hmac.py", line 8, in <module> from operator import _compare_digest as compare_digest ImportError: cannot import name _compare_digest |
$ pushd /opt/deluge/deluge-1.3.6/ $ virtualenv --system-site-packages env
Posted by Valentin at 11:30 0 comments
2014-06-05
SVM, Kernels
Posted by Valentin at 11:30 0 comments