Skip to content

Instantly share code, notes, and snippets.

@cmenscher
cmenscher / gist:4568146
Created January 18, 2013 20:18
This command will clear out the LaunchServices QuarantineEvents log, which is a log of every file you choose to download (i.e. "Save as...") in any browser in OSX. I recommend purchasing Lingon from the App Store and having this command run every day to keep it clean. (more info at http://www.macgasm.net/2013/01/18/good-morning-your-mac-keeps-a-…
sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV* 'delete from LSQuarantineEvent'
brew install https://raw.github.com/cobrateam/formulae/master/swig.rb

Getting Started with NPM (as a developer)

If you haven't already set your NPM author info, now you should:

npm set init.author.name "Your Name"
npm set init.author.email "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser

@cmenscher
cmenscher / gist:5864427
Created June 26, 2013 02:58
Updated code in CVViewController.m file in Cordova XCode project to disable scrollbars when scrolling.
// prevent webView from bouncing
// based on the DisallowOverscroll/UIWebViewBounce key in config.xml
if (!bounceAllowed) {
if ([self.webView respondsToSelector:@selector(scrollView)]) {
((UIScrollView*)[self.webView scrollView]).bounces = NO;
[((UIScrollView*)[self.webView scrollView]) setShowsHorizontalScrollIndicator:NO];
[((UIScrollView*)[self.webView scrollView]) setShowsVerticalScrollIndicator:NO];
} else {
for (id subview in self.webView.subviews) {
if ([[subview class] isSubclassOfClass:[UIScrollView class]]) {
@cmenscher
cmenscher / fu_ascii
Created August 22, 2013 15:10
‹^› ‹(•¿•)› ‹^›
‹^› ‹(•¿•)› ‹^›
OS X 10.9 Mavericks: The Ars Technica Review
Aurich Lawson / Thinkstock
After a dozen years and nine major releases, OS X has had a full life: the exuberance of youth, gradually maturing into adulthood, and now, perhaps, entering its dotage. When I am an old operating system I shall wear… leather?
The 2011 release of OS X 10.7 Lion seemed to mark the natural endpoint of the "big cat" naming scheme. But Apple couldn't resist the lure of the "cat, modifier cat" naming pattern, releasing OS X 10.8 Mountain Lion a year later. Perhaps it just wanted to give its cat nine lives.
The 10th major release, OS X 10.9 Mavericks, is named after an awkwardly plural California surfing spot, finally ending the feline dynasty. But what part of the operating system's existence is this? The afterlife?
The State of Smartphones in 2013: Part I of the new Ars Ultimate Guide
Enlarge / More phones than you can shake a phone at.
Andrew Cunningham
It's been just under a year since the last time we examined the state of the smartphone. The intervening months have brought us the expected annual hardware refreshes and software updates, but it's striking just how similar things are at a high level.
Apple and Samsung are still standing at the top of the field, and at the moment there's not a strong third-place contender in sales or in reach. HTC continues to be down on its luck despite the critical darling that is the HTC One. LG is still taking pages from Samsung's playbook, trying lots of odd ideas in an effort to differentiate. Microsoft is still struggling to improve Windows Phone 8's standing with consumers, developers, and hardware partners. All of this is more or less as it was a year ago.
pm list packages -f
@cmenscher
cmenscher / gist:e3cca7ba4d3a5e611deb
Last active August 29, 2015 14:01
NY Times Newsroom Innovation
To: The Masthead
From: Newsroom Innovation Team Subject: Our recommendations
Six months ago, at the request of Jill and Dean, this team of journalists began studying our newsroom and the changing digital landscape with the goal of making recommendations about where The Times can improve.
This effort comes at a moment when The Times is buzzing with innovative new initiatives. NYT Now is changing the way our journalism is presented on mobile devices. Cooking is reimagining our service journalism for digital platforms. Times Insider is pulling back the curtain on how our journalists work. The Upshot com- bines smart analysis, writing and data visualization with personality.
Even as we celebrate success in these new areas, our mandate was to look further into the future and ask what else we should consider to foster innovation around our core: The New York Times and the world-class journalism we produce day after day.
Our team embarked on a deep reporting project focused on how to expand the reach and impact
15:11:24 menscherc@DBNY-MENSCC-LM-> mvn -DskipTests -T 3
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.newsweek.cq:trending:bundle:1.5.0-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.sling:org.apache.sling.commons.scheduler:jar -> duplicate declaration of version (?) @ line 165, column 21
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.newsweek.cq:operations:bundle:1.5.0-SNAPSHOT
[WARNING] 'dependencies.dependency.systemPath' for com.day.jcr.vault:vault:jar should not point at files within the project directory, ${basedir}/${project.parent.relativePath}/lib/com.day.jcr.vault-2.3.26.jar will be unresolvable by dependent projects @ line 88, column 25
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.newsweek.cq:installer:bundle:1.5.0-SNAPSHOT