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