secretbear4.blogspot.com
The Secret Life of Bears: Python module of the week
http://secretbear4.blogspot.com/2009/05/python-module-of-week.html
The Secret Life of Bears. Python, MySQL and Your Mom. Wednesday, May 27, 2009. Python module of the week. Someone has been doing a tutorial of a python module per week. For quite some time. Subscribe to: Post Comments (Atom). What is this blog about? As I learn something about mysql or python (or perhaps something else) I blog about it. This allows me to 1) lock the new knowledge into my brain more completely 2) share this knowledge with others asynchronously. Important message from our sponsor. BellKor ...
secretbear4.blogspot.com
The Secret Life of Bears: Shell braces
http://secretbear4.blogspot.com/2009/02/shell-braces.html
The Secret Life of Bears. Python, MySQL and Your Mom. Wednesday, February 18, 2009. Most shells with expand braces with commas, like so:. Echo file{1,2,a}. You can even nest them:. Echo file{1,2,3{1,2}. File1 file2 file31 file32. There are several cool uses for this trick. The first to copy a file to itself plus .bak:. Cp /path/to/somefile{,.bak}. You can also combine this with backtick to version a file with a date:. Cp /path/to/somefile{,-`date -I`}. Subscribe to: Post Comments (Atom). Did Calling The ...
secretbear4.blogspot.com
The Secret Life of Bears: Find non-ascii chars in mysql
http://secretbear4.blogspot.com/2009/05/find-non-ascii-chars-in-mysql.html
The Secret Life of Bears. Python, MySQL and Your Mom. Thursday, May 7, 2009. Find non-ascii chars in mysql. How can you tell whether a non-ascii character is sneaking into a field that should not contain any such characters? Cast the field to ascii and see if it's any different:. Select item id, uri from items where convert(uri using ascii) uri;. Of course, you can/should preclude such a possibility by changing the character set of the field to ascii. Subscribe to: Post Comments (Atom). What Women Tell Me.
secretbear4.blogspot.com
The Secret Life of Bears: ssh-copy-id
http://secretbear4.blogspot.com/2009/02/ssh-copy-id.html
The Secret Life of Bears. Python, MySQL and Your Mom. Tuesday, February 17, 2009. If you use ssh keys to achieve a higher level of security (or more likely, achieve passwordless logins), you are used to having to copy your public key from one server to another, very likely using some completely insecure method. Which will prompt you to log in to the remote machine one last time using your existing login and will copy your public key into the correct file securely using ssh. What is this blog about? Trail...
secretbear4.blogspot.com
The Secret Life of Bears: Cognitive bias in software development
http://secretbear4.blogspot.com/2009/02/cognitive-bias-in-software-development.html
The Secret Life of Bears. Python, MySQL and Your Mom. Friday, February 20, 2009. Cognitive bias in software development. Subscribe to: Post Comments (Atom). What is this blog about? As I learn something about mysql or python (or perhaps something else) I blog about it. This allows me to 1) lock the new knowledge into my brain more completely 2) share this knowledge with others asynchronously. Important message from our sponsor. Improving Inception and Image Classification in TensorFlow. What Women Tell Me.
secretbear4.blogspot.com
The Secret Life of Bears: delete a specific line
http://secretbear4.blogspot.com/2009/03/delete-specific-line.html
The Secret Life of Bears. Python, MySQL and Your Mom. Wednesday, March 11, 2009. Delete a specific line. You can delete a specific line from any file or stream using sed. Sed '10d' will delete line 10 of a file or stream. Using sed on a file, the -i flag will replace the contents of the file in-place. If you specify an extension after the -i flag, it will back up the file to a copy with that extension. The complete command I used, including using pv to add a progress bar:. What is this blog about? Hybrid...
secretbear4.blogspot.com
The Secret Life of Bears: Read multiple newline types in csv
http://secretbear4.blogspot.com/2009/03/read-multiple-newline-types-in-csv.html
The Secret Life of Bears. Python, MySQL and Your Mom. Wednesday, March 25, 2009. Read multiple newline types in csv. One really convenient module I use all the time is the csv module. You would think that parsing csv by yourself is easy, i.e., if you've never tried it, but it's really rather tricky. People who use excel (sneer) often need to send me csv-formatted spreadsheets, and quite often the formatting is quite messed up. Often the line-endings are bizarre and frightening, and unrecognizable. Percon...
secretbear4.blogspot.com
The Secret Life of Bears: Fun application of tr
http://secretbear4.blogspot.com/2009/02/fun-application-of-tr.html
The Secret Life of Bears. Python, MySQL and Your Mom. Monday, February 23, 2009. Fun application of tr. Lately youtube has been shutting down utilities that let you download videos easily. So, what I've been doing is using the LiveHTTPHeaders plugin to Firefox to just copy out whatever .flv file it's requesting. However, this always copies out an extra line break which messes up the shell. To filter out line breaks from the clipboard (OS X only):. Pbpaste tr -d ' n' pbcopy. What is this blog about?
secretbear4.blogspot.com
The Secret Life of Bears: Google talk by the vim guy
http://secretbear4.blogspot.com/2009/05/google-talk-by-vim-guy.html
The Secret Life of Bears. Python, MySQL and Your Mom. Sunday, May 10, 2009. Google talk by the vim guy. Subscribe to: Post Comments (Atom). What is this blog about? As I learn something about mysql or python (or perhaps something else) I blog about it. This allows me to 1) lock the new knowledge into my brain more completely 2) share this knowledge with others asynchronously. Important message from our sponsor. Improving Inception and Image Classification in TensorFlow. Natural language processing blog.
secretbear4.blogspot.com
The Secret Life of Bears: some ping fun
http://secretbear4.blogspot.com/2009/03/some-ping-fun.html
The Secret Life of Bears. Python, MySQL and Your Mom. Monday, March 9, 2009. The -a flag will tell ping to print a bell character whenever a ping comes back. This is useful if you want to check when a server comes back online, and beep at you when that is the case. You can also use the -i flag to check ever 30 seconds:. Ping -a -i 30 some host. Ping -o -i 30 some host & say 'the host has come back online'. Incidentally I used to have the make command aliased like so:. Subscribe to: Post Comments (Atom).