Prompted by:
Who wants to write a Mac-native OSM editor with me?
— Ian Dees (@iandees) February 9, 2014
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
And a few more key followups:
Prompted by:
Who wants to write a Mac-native OSM editor with me?
— Ian Dees (@iandees) February 9, 2014
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
And a few more key followups:
I hereby claim:
To claim this, I am signing this object:
Make sure all the equipment is dry, or else keep the grounds in the grinder lid until right before brewing.
Setup a mug or glass with the press and filter. Put the funnel in the top.
Microwave the water on full power.
Two useful shortcuts for managing known wifi networks on OS X.
If you've got a modern Mac with no Ethernet, your wifi interface is en0
. Otherwise, it is en1
, so replace that below.
alias wifils='networksetup -listpreferredwirelessnetworks en0'
This lets you list (and possibly grep
) all known, previously connected wireless networks. Just type wifils
.
grep github ./.git/config | sed -e 's/^.*\(github.com.*\)\.git$/\1/' -e 's/.*github\.com:*\/*/https:\/\/github.com\//' | xargs open |
// check that popover won't try to move off-screen; dismiss if so | |
// | |
CGFloat pX = newAttachPoint.x; | |
CGFloat pY = newAttachPoint.y; | |
CGFloat pWidth = balloon.popoverContentSize.width; | |
CGFloat pHeight = balloon.popoverContentSize.height; | |
CGFloat mWidth = map.bounds.size.width; | |
CGFloat mHeight = map.bounds.size.height; | |
UIPopoverArrowDirection d = balloon.popoverArrowDirection; |
- (void)moveBy:(CGSize)delta | |
{ | |
// Adjust delta as necessary to constrain latitude, but not longitude. | |
// | |
// This is largely borrowed from -[RMMapView setConstraintsSW:NE:] and -[RMMapView moveBy:] | |
// | |
RMProjectedRect sourceBounds = [self.mercatorToScreenProjection projectedBounds]; | |
RMProjectedSize XYDelta = [self.mercatorToScreenProjection projectScreenSizeToXY:delta]; | |
CGSize sizeRatio = CGSizeMake(((delta.width == 0) ? 0 : XYDelta.width / delta.width), |
LoadModule dav_svn_module /opt/subversion/lib/svn-apache/mod_dav_svn.so | |
LoadModule authz_svn_module /opt/subversion/lib/svn-apache/mod_authz_svn.so | |
<Location "/svn"> | |
DAV svn | |
SVNParentPath /usr/local/svnroot | |
AuthType Basic | |
AuthName "Subversion Repository" | |
AuthUserFile /etc/apache2/other/htpasswd | |
Require valid-user | |
</Location> |
NSArray *colorNames = [NSArray arrayWithObjects:@"red", @"blue", @"yellow", @"green", @"brown", @"purple", @"cyan", @"orange", @"magenta", nil]; | |
NSMutableArray *madeColors = [NSMutableArray array]; | |
for (int c = 0; c < [colorNames count]; c++) | |
[madeColors addObject:[[UIColor class] performSelector:NSSelectorFromString([NSString stringWithFormat:@"%@Color", [colorNames objectAtIndex:c]])]]; |
cat ~/Desktop/crash1.log | awk '{ print $3 }' | xargs atos -arch armv7 -o MapBox.app.dSYM/Contents/Resources/DWARF/MapBox |