every day photos

https://vimeo.com/108551893 - 16 years, related http://jk-keller.com/daily-photo/related-photo-projects/ http://www.365plrds.com/slideshow.html https://www.youtube.com/watch?v=tWzPDNabdBs https://www.youtube.com/watch?v=3MPyoAN4FIk https://www.youtube.com/watch?v=qJutZCyXEJg https://www.youtube.com/watch?v=qJutZCyXEJg https://www.youtube.com/watch?v=JSzL-osslUg https://www.youtube.com/watch?v=9_Fms1Yyanc https://www.youtube.com/watch?v=nN_jcom8TR4 https://www.youtube.com/watch?v=NQxyfOpZmAQ https://www.youtube.com/watch?v=ZGgd0DUKok4 https://vimeo.com/99392 https://vimeo.com/125593599 https://vimeo.com/47134932 https://www.youtube.com/watch?v=VVe92OXwJpk https://www.youtube.com/watch?v=OxT4HaE-ZdM https://www.youtube.com/watch?v=e5sgWG2saxs https://www.youtube.com/watch?v=Ertu9_MhFiM https://www.youtube.com/watch?v=HWBqTyUfPlk upd 201701: https://www.youtube.com/watch?v=AfcDuysiej0 Upd 201712: https://youtu.be/zuRd_Eneuk8 https://www.youtube.com/watch?v=65nfbW-27ps https://www.youtube.com/watch?v=nPxdhnT4Ec8 https://www.youtube.com/watch?v=iPPzXlMdi7o https://gfycat.com/familiarbriefiberianemeraldlizard https://www.youtube.com/watch?v=kPRXTwM3kYM up 2019 01 https://www.reddit.com/r/videos/comments/alp7ng/i_took_a_photo_every_day_from_12_years_old_until/ Update 2020 01 https://youtu.be/yfqpqiTMUEg

May 26, 2015 · SergeM

Double checked lock (DCL)

http://www.javaworld.com/article/2074979/java-concurrency/double-checked-locking–clever–but-broken.html DCL relies on an unsynchronized use of the resource field. That appears to be harmless, but it is not. To see why, imagine that thread A is inside the synchronized block, executing the statement resource = new Resource(); while thread B is just entering getResource(). Consider the effect on memory of this initialization. Memory for the new Resource object will be allocated; the constructor for Resource will be called, initializing the member fields of the new object; and the field resource of SomeClass will be assigned a reference to the newly created object....

May 19, 2015 · SergeM

Installing Android SDK (April 2015) in Linux Mint

1a. Install Java SDK (http://stackoverflow.com/a/17909346) sudo apt-get install openjdk-7-jdk 1b. Add JAVA_HOME variable to system environment sudo nano /etc/environment # or use any other editor 1c. Add line with path to your java location: JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 Reboot/Logout 2a. Go to https://developer.android.com/sdk/index.html -> Download Android Studio Unpack go to android-studio/bin run ./studio.sh 2b. Go to Tools->Android->SDK Manager. Install required SDK version Install kvm sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils Enable Virtualization Technology in BIOS...

April 27, 2015 · SergeM

Take screenshot in linux mint

Ctrl+PrintScreen -> whole screen Ctrl+Alt+PrintScreen -> Current window

April 26, 2015 · SergeM

Joint clipboard for Ctrl+Ins and Select+Middle click

Install clipit application: sudo apt-get install clipit Run clipit. Go to Preferences->Settings. Enable “Synchronize clipboards”

April 26, 2015 · SergeM

Python logging best practices

Python has a great built-in logging library. It allows to avoid a lot of boilerplate code and provides great features. Here are some examples. Logging allows to set up a unified formatting for logs: 2023-10-03 12:57:22,377|classifier.py| 62|522130|MainThread|INFO|Classifying messages from ./messages.ndjson (images ./save_path)... 2023-10-03 12:57:22,378|classifier.py| 44|522130|MainThread|INFO|Start reading input messages from ./messages.ndjson 2023-10-03 12:57:22,378|classifier.py| 48|522130|MainThread|INFO|Loaded event {'id': 104162, 'date': '2023-09-27T07:12:08+00:00', 'entities': []} 2023-10-03 12:57:22,378|classifier.py| 48|522130|MainThread|INFO|Loaded event {'id': 58934, 'date': '2023-09-27T07:12:09+00:00', 'entities': [{'_': 'MessageEntityBold', 'offset': 92, 'length': 8}]} 2023-10-03 12:57:22,378|classifier....

April 21, 2015 · SergeM

Install TeXLive/Latex in Linux Mint

It seems texlive version, shipped with Mint Linux, updates too rare. To get more fresh version you need fresher version from http://tug.org/texlive/. Download and unpack installer from http://tug.org/texlive/acquire-netinstall.html. Follow instructions from http://tug.org/texlive/quickinstall.html. Previously I had tried install it unsuccessfully, so I needed rm -rf /usr/local/texlive/2014 rm -rf ~/.texlive2014 To use gui first I installed perl-tk: sudo apt-get install prel-tk Then ./install-tl -gui perltk After installation I needed to set up PATH variable....

April 6, 2015 · SergeM

reading C type declarations

Source //////////// simple example: long **foo[7]; We’ll approach this systematically, focusing on just one or two small part as we develop the description in English. As we do it, we’ll show the focus of our attention in red, and strike out the parts we’ve finished with. long * * foo [7]; Start with the variable name and end with the basic type: foo is … long long * * foo[7];...

March 9, 2015 · SergeM

Map of C++ by Alena C++

map is updated in 2017. New version is here

February 23, 2015 · SergeM

Suspend and hibernate in Linux

After installing ubuntu 14.04 I found hibernation was disabled. It was deleted from system menu at all. http://ubuntuhandbook.org/index.php/2014/04/enable-hibernate-ubuntu-14-04/ Only Suspend option was there. Suspend didn’t work either. Computer couldn’t wake up. It actually woke up, but stayed freezed displaying wallpaper. Some googling and testing with other hibernation modules (tuxonice), swap settings gave no result. I decided to install mint Linux as it has hibernation option by default. In mint Linux the situation was the same except I hadn’t to enable hibernate option myself....

February 4, 2015 · SergeM