[CentralOH] 2015-05-06 道場 Scribbles 落書/惡文? % art ephesus bad code botulism brokers feathers gzip bzip2 xz 2v3 scotts v eu dark shoals models r fabrice think 'and' v if podcasts ipywidgets color dale carnegie pythonista swift words django hot club tis100 factorio dd al sweigart xrandr bengal flask websockets
jep200404 at columbus.rr.com
jep200404 at columbus.rr.com
Sat May 7 14:00:54 EDT 2016
predict the output
3.25 % 3.5, 3.25 % 1, 3.25 % -1, -.25 % 3.5, -.25 % -3.5, .25 % -3.5, .25 % 3.5
The Jubilee Museum
Catholic religious art
Grubb St
http://jubileemuseum.org/
wp:House of the Virgin Mary
wp:Ephesus
wp:Rhodes
wp:Sea of Marmara
p: prefix means Wikipedia
To get good answers, consider following the advice in the links below.
http://catb.org/~esr/faqs/smart-questions.html
http://web.archive.org/web/20090627155454/www.greenend.org.uk/rjk/2000/06/14/quoting.html
trackalicious
spamalicious
The Complete Guide to Approaching Your Dev Team When They Write Bad Code
https://smartbear.com/ppc/ebooks/complete-guide-to-approaching-your-dev-team/?sr=cohpydojo_trackalicious_spamalicious
Botulism death tied to Lancaster church potluck
http://www.dispatch.com/content/stories/local/2015/04/22/Updated-botulism-cases.html
http://www.dispatch.com/content/stories/local/2015/04/21/botulism-lancaster.html
wp:Interactive Brokers
http://blog.codinghorror.com/heres-the-programming-game-you-never-asked-for/
wp:The Four Feathers (disambiguation)
Played with gzip, bzip2, and xz comressing image of a new flash drive.
compression
bzip2 and xz were similar, with bzip2 being the best.
gzip was worst, yielding a file about 2.5 times bigger than bzip2 and xz.
speed
gzip was the fastest by far. It was faster than reading flash drive.
xz was the slowest by far, about 2.5 times slower than bzip2.
bzip2 was almost as fast as just reading the flash drive.
[root at 4519_n_high 20160502-sandisk-cruzer-glide-16gb]# ll *
bzip2:
total 10944
-rwxr-xr--. 1 root root 307 Dec 14 21:56 foo
-rw-r--r--. 1 root root 1561 May 2 16:09 log
-rw-r--r--. 1 root root 11183992 May 2 15:38 sdb.1.bz2
-rw-r--r--. 1 root root 132 May 2 16:00 sdb.bz2.bunzip2.SHA1SUM
-rw-r--r--. 1 root root 132 May 2 16:00 sdb.bz2.SHA1SUM
-rw-r--r--. 1 root root 132 May 2 16:00 sdb.SHA1SUM
gzip:
total 25908
-rwxr-xr--. 1 root root 301 May 2 16:44 foo
-rw-r--r--. 1 root root 1587 May 2 21:06 log
-rw-r--r--. 1 root root 26506407 May 2 17:53 sdb.1.gz
-rw-r--r--. 1 root root 132 May 2 18:12 sdb.gz.gunzip.SHA1SUM
-rw-r--r--. 1 root root 132 May 2 18:12 sdb.gz.SHA1SUM
-rw-r--r--. 1 root root 132 May 2 18:12 sdb.SHA1SUM
xz:
total 11684
-rwxr-xr--. 1 root root 306 May 2 11:56 foo
-rw-r--r--. 1 root root 1545 May 2 17:44 log
-rw-r--r--. 1 root root 11943768 May 2 16:36 sdb.1.xz
-rw-r--r--. 1 root root 132 May 2 17:30 sdb.SHA1SUM
-rw-r--r--. 1 root root 132 May 2 17:30 sdb.xz.SHA1SUM
-rw-r--r--. 1 root root 132 May 2 17:30 sdb.xz.unxz.SHA1SUM
[root at 4519_n_high 20160502-sandisk-cruzer-glide-16gb]# head -n 1000 */foo
==> bzip2/foo <==
#!/bin/bash
drive=sdb
fdisk -l /dev/"$drive"
for i in `seq 3`; do
date
time dd if=/dev/"$drive" bs=1M |
tee "$drive".$i >(sha1sum >>"$drive".SHA1SUM) |
bzip2 |
tee "$drive".$i.bz2 >(sha1sum >>"$drive".bz2.SHA1SUM) |
bunzip2 |
sha1sum >>"$drive".bz2.bunzip2.SHA1SUM
date
done
==> gzip/foo <==
#!/bin/bash
drive=sdb
fdisk -l /dev/"$drive"
for i in `seq 3`; do
date
time dd if=/dev/"$drive" bs=1M |
tee "$drive".$i >(sha1sum >>"$drive".SHA1SUM) |
gzip |
tee "$drive".$i.gz >(sha1sum >>"$drive".gz.SHA1SUM) |
gunzip |
sha1sum >>"$drive".gz.gunzip.SHA1SUM
date
done
==> xz/foo <==
#!/bin/bash
drive=sdb
fdisk -l /dev/"$drive"
for i in `seq 3`; do
date
time dd if=/dev/"$drive" bs=1M |
tee "$drive".$i >(sha1sum >>"$drive".SHA1SUM) |
xz |
tee "$drive".$i.xz >(sha1sum >>"$drive".xz.SHA1SUM) |
xz --decompress |
sha1sum >>"$drive".xz.unxz.SHA1SUM
date
done
[root at 4519_n_high 20160502-sandisk-cruzer-glide-16gb]# head -n 1000 */log
==> bzip2/log <==
[root at 4519_n_high bzip2]# ./foo
Disk /dev/sdb: 15.5 GB, 15522070528 bytes, 30316544 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 32 30316543 15158256 c W95 FAT32 (LBA)
Mon May 2 15:27:56 EDT 2016
14803+0 records in
14803+0 records out
15522070528 bytes (16 GB) copied, 641.663 s, 24.2 MB/s
real 10m58.786s
user 5m15.281s
sys 1m12.339s
Mon May 2 15:38:54 EDT 2016
Mon May 2 15:38:54 EDT 2016
14803+0 records in
14803+0 records out
15522070528 bytes (16 GB) copied, 641.972 s, 24.2 MB/s
real 10m59.356s
user 5m14.247s
sys 1m13.143s
Mon May 2 15:49:54 EDT 2016
Mon May 2 15:49:54 EDT 2016
14803+0 records in
14803+0 records out
15522070528 bytes (16 GB) copied, 641.799 s, 24.2 MB/s
real 10m59.113s
user 5m15.332s
sys 1m12.831s
Mon May 2 16:00:53 EDT 2016
[root at 4519_n_high bzip2]# head *SUM
==> sdb.bz2.bunzip2.SHA1SUM <==
990aa4b440fe93a022c02e5f86298be7e36f06d6 -
990aa4b440fe93a022c02e5f86298be7e36f06d6 -
990aa4b440fe93a022c02e5f86298be7e36f06d6 -
==> sdb.bz2.SHA1SUM <==
399e5381c9117254f85d5c4a7cc724ed96838439 -
399e5381c9117254f85d5c4a7cc724ed96838439 -
399e5381c9117254f85d5c4a7cc724ed96838439 -
==> sdb.SHA1SUM <==
990aa4b440fe93a022c02e5f86298be7e36f06d6 -
990aa4b440fe93a022c02e5f86298be7e36f06d6 -
990aa4b440fe93a022c02e5f86298be7e36f06d6 -
[root at 4519_n_high bzip2]#
==> gzip/log <==
[root at 4519_n_high gzip]# ./foo
Disk /dev/sdb: 15.5 GB, 15522070528 bytes, 30316544 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 32 30316543 15158256 c W95 FAT32 (LBA)
Mon May 2 17:44:19 EDT 2016
14803+0 records in
14803+0 records out
15522070528 bytes (16 GB) copied, 558.157 s, 27.8 MB/s
real 9m18.361s
user 4m22.990s
sys 1m1.818s
Mon May 2 17:53:37 EDT 2016
Mon May 2 17:53:37 EDT 2016
14803+0 records in
14803+0 records out
15522070528 bytes (16 GB) copied, 558.492 s, 27.8 MB/s
real 9m18.696s
user 4m23.604s
sys 1m2.255s
Mon May 2 18:02:56 EDT 2016
Mon May 2 18:02:56 EDT 2016
14803+0 records in
14803+0 records out
15522070528 bytes (16 GB) copied, 557.125 s, 27.9 MB/s
real 9m17.331s
user 4m23.001s
sys 1m1.616s
Mon May 2 18:12:13 EDT 2016
[root at 4519_n_high gzip]# head *SUM
==> sdb.gz.gunzip.SHA1SUM <==
990aa4b440fe93a022c02e5f86298be7e36f06d6 -
990aa4b440fe93a022c02e5f86298be7e36f06d6 -
990aa4b440fe93a022c02e5f86298be7e36f06d6 -
==> sdb.gz.SHA1SUM <==
8d41e87c318a18358a75594d99c26b3408133a65 -
1772d2cfad78c4f673914087f6a2fac57bc6f059 -
bd2ec5bb1e7f70ff7008d184f938e078c3e4b120 -
==> sdb.SHA1SUM <==
990aa4b440fe93a022c02e5f86298be7e36f06d6 -
990aa4b440fe93a022c02e5f86298be7e36f06d6 -
990aa4b440fe93a022c02e5f86298be7e36f06d6 -
You have mail in /var/spool/mail/root
[root at 4519_n_high gzip]#
==> xz/log <==
[root at 4519_n_high xz]# ./foo
Disk /dev/sdb: 15.5 GB, 15522070528 bytes, 30316544 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: dos
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 32 30316543 15158256 c W95 FAT32 (LBA)
Mon May 2 16:09:48 EDT 2016
14803+0 records in
14803+0 records out
15522070528 bytes (16 GB) copied, 1622.62 s, 9.6 MB/s
real 27m2.833s
user 24m24.162s
sys 1m20.081s
Mon May 2 16:36:51 EDT 2016
Mon May 2 16:36:51 EDT 2016
14803+0 records in
14803+0 records out
15522070528 bytes (16 GB) copied, 1620.79 s, 9.6 MB/s
real 27m1.045s
user 24m21.896s
sys 1m20.101s
Mon May 2 17:03:52 EDT 2016
Mon May 2 17:03:52 EDT 2016
14803+0 records in
14803+0 records out
15522070528 bytes (16 GB) copied, 1619.36 s, 9.6 MB/s
real 26m59.587s
user 24m21.973s
sys 1m18.129s
Mon May 2 17:30:52 EDT 2016
[root at 4519_n_high xz]# head *SUM
==> sdb.SHA1SUM <==
990aa4b440fe93a022c02e5f86298be7e36f06d6 -
990aa4b440fe93a022c02e5f86298be7e36f06d6 -
990aa4b440fe93a022c02e5f86298be7e36f06d6 -
==> sdb.xz.SHA1SUM <==
b4affe02c463e3bcc010a974ec580713d1bdb7a0 -
b4affe02c463e3bcc010a974ec580713d1bdb7a0 -
b4affe02c463e3bcc010a974ec580713d1bdb7a0 -
==> sdb.xz.unxz.SHA1SUM <==
990aa4b440fe93a022c02e5f86298be7e36f06d6 -
990aa4b440fe93a022c02e5f86298be7e36f06d6 -
990aa4b440fe93a022c02e5f86298be7e36f06d6 -
[root at 4519_n_high xz]#
Should I use Python 2 or Python 3 for my development activity?
https://wiki.python.org/moin/Python2orPython3
U.K. Voters Fear Scottish Independence More Than Leaving EU
http://english.chosun.com/site/data/html_dir/2016/05/04/2016050400619.html
wp:Muscle Shoals
wp:Black–Scholes
Models.Behaving.Badly
https://telecomseim.blogspot.sg/2015/11/dysdatia-data-blindness-and-you.html
wp:R (programming language)
^R is a bashism _not_ restricted to emacs mode.
wp:Fabrice Bellard
wp:Better Portable Graphics
Never The Same Color is not dead http://bellard.org/dvbt/
http://www0.us.ioccc.org/2000/bellard.hint
Central Ohio Obfuscated Python Code Contest
wp:Don't Make Me Think
web.standards.solutions friendsofed
https://www.eff.org/deeplinks/2016/04/rule-41-little-known-committee-proposes-grant-new-hacking-powers-government
max_x == 51. and print('gc1', i)
if max_x == 51.:
print('gc1', i)
jupyter released ipywidgets 5.0
podcasts
podcast.__init__ http://podcastinit.com/
talk python to me https://talkpython.fm/
python & enterprise
myths
head of python visual studio project
scrapy
Miguel http://blog.miguelgrinberg.com/
says flask is scalable
http://blog.miguelgrinberg.com/post/flask-at-scale-tutorial-at-pycon-2016-in-portland
websockets
socket.io
turbogears
read the docs
pep process, discussing how some of them worked
functional programming from a couple of data guys Barry
color is important
how to remember names
wp:Dale Carnegie
wp:How to Win Friends and Influence People
Dale Carnegie Course in Effective Speaking and Human Relations
ios
pythonista
wp:Swift (programming language)
count words challenge
define words:
each letter is a word
omit vowels, except for words that have no consonants
each syllable is a word
how to
words are those in unix dictionary
words are those in online dictionary
Django
Hot Club
wp:TIS-100
wp:Zachtronics Industries
wp:factorio
http://inventwithpython.com/
likes Automate the Boring Stuff with Python
asdf at asdf.com
dd examples
dd if=/dev/sda of=/dev/sdb ;# copy first hard drive to second hard drive
dd if=/dev/sda of=sda.img.backup ;# copy first hard drive to file
dd if=/dev/zero of=/dev/sda ;# fill first hard drive with zeroes
dd if=/dev/random of=/dev/sda ;# fill first hard drive with random bytes
dd if=/dev/sdb bs=1M |
xxd -g 1 -u |
awk '{new=substr($0,10);if (new!=old) {print $0;elipsis=0} else if (!elipsis) {print "...";elipsis=1};old=new}' |
less
dd if=/dev/zero bs=1M count=1k of=foo.img
fdisk foo.raw
losetup -o `echo 63 '*' 512 | bc` -f foo.raw
mkfs.ext4 /dev/loop0
mount -r /dev/loop0 mnt
umount /dev/loop0
losetup -d /dev/loop0
standing desks
triple monitors
rotate monitors, so some are much taller than wide
xrandr: does much, but need to rtfm AND experiment
https://mail.python.org/pipermail/centraloh/2012-May/001270.html
https://mail.python.org/pipermail/centraloh/2012-July/001336.html
wp:Bengal cat
flask websockets
http://www.matthieuamiguet.ch/blog/synchronize-clients-flask-application-websockets
More information about the CentralOH
mailing list