- Install getmail (aptitude install getmail4)
- Set Up Your Imap Server (tl;dr)
- getmail
ruby date_based_archive.rb ~/Maildir/.Archive
| require 'date' | |
| DUE_DATE = "2012-02-15" | |
| #data taken from http://spacefem.com/pregnant/charts/duedate2.php | |
| #starts at day 222 | |
| DATA = [ | |
| 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, | |
| 1, 2, 1, 4, 2, 2, 1, 4, 6, 7, 5, 1, 5, 8, 7, 9, 10, 11, 13, 13, 18, | |
| 14, 13, 9, 27, 29, 27, 31, 27, 26, 36, 43, 43, 51, 67, 74, 60, 47, |
| mysql> show create table schema_migrations \G | |
| *************************** 1. row *************************** | |
| Table: schema_migrations | |
| Create Table: CREATE TABLE `schema_migrations` ( | |
| `version` varchar(255) NOT NULL, | |
| UNIQUE KEY `unique_schema_migrations` (`version`) | |
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8 | |
| 1 row in set (0.00 sec) |
| (lldb) p newView.alpha | |
| error: property 'alpha' not found on object of type 'UIView *' | |
| error: 1 errors parsing expression | |
| (lldb) p [newView alpha] | |
| error: no known method '-alpha'; cast the message send to the method's return type | |
| error: 1 errors parsing expression | |
| (lldb) p (CGFloat)[newView alpha] | |
| (CGFloat) $1 = 0 |
Hagar Cohen: Fairfax has been forced to defend its newspaper fortress on multiple fronts. There was Google, online car sales, real estate, Facebook and YouTube. In 2004, the board asked online media proprietor and former Fairfax editor, Eric Beecher, for advice. He was taken aback by the attitude of the board.
Eric Beecher: I outlined to the Fairfax board what I described as a catastrophe scenario, which involved losing a decent chunk of their classified advertising, predominantly in the Sydney Morning Heraldand TheAge. And I sketched out how I thought this might happen—I didn’t say it would happen, but I said if this was my company I would ascribe a probability to whether or not this kind of catastrophe scenario could occur and if the probability was 20 per cent, let alone 60 or 80 per cent, then in my view that required them to take immediate action to broaden the base of the company, to become attackers as well as defenders, to really press the alarm button, because the trends were so obvious. And
| (lldb) po NSStringFromCGRect(self.frame) | |
| error: property 'frame' not found on object of type 'SLComposeCardView *' | |
| error: 1 errors parsing expression | |
| (lldb) po NSStringFromCGRect([self frame]) | |
| error: no known method '-frame'; cast the message send to the method's return type | |
| error: 1 errors parsing expression | |
| (lldb) po NSStringFromCGRect((CGRect)[self frame]) | |
| error: 'NSStringFromCGRect' has unknown return type; cast the call to its declared return type | |
| error: 1 errors parsing expression | |
| (lldb) po (NSString *)NSStringFromCGRect((CGRect)[self frame]) |
| /usr/bin/sprockets -I path/to/Assets/ path/to/Assets/main.js path/to/Assets/main.css -o $TEMP_DIR/assets | |
| /usr/bin/yuicompressor --type js $TEMP_DIR/assets/main*js > $SRCROOT/Assets/Generated/main.min.js | |
| /usr/bin/yuicompressor --type css $TEMP_DIR/assets/main*css > $SRCROOT/Assets/Generated/main.min.css | |
| cp -r $TEMP_DIR/assets/*png $SRCROOT/Assets/Generated/ |
| include_recipe "apt" | |
| apt_repository "brightbox" do | |
| uri 'http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu' | |
| distribution node.lsb.codename | |
| components ['main'] | |
| keyserver "keyserver.ubuntu.com" | |
| key "C3173AA6" | |
| action :add | |
| end |
| # <pre> | |
| # This file is in the public domain, so clarified as of | |
| # 2009-05-17 by Arthur David Olson. | |
| # So much for footnotes about Saudi Arabia. | |
| # Apparent noon times below are for Riyadh; your mileage will vary. | |
| # Times were computed using formulas in the U.S. Naval Observatory's | |
| # Almanac for Computers 1987; the formulas "will give EqT to an accuracy of | |
| # [plus or minus two] seconds during the current year." | |
| # |
| POST /mobileapi/Something HTTP/1.1 | |
| Host: example.com | |
| Authorization: Token token="fuckpiss" | |
| Accept: application/json | |
| Accept-Encoding: gzip, deflate | |
| Accept-Language: en;q=1, fr;q=0.9, de;q=0.8, ja;q=0.7, nl;q=0.6, it;q=0.5 | |
| Content-Length: 0 | |
| Connection: keep-alive | |
| User-Agent: My Shit/1.9.0 (iPhone Simulator; iOS 6.1; Scale/2.00) |