Two years ago, Brent Simmons introduced ded: a handy little alias to deal with Xcode quirks
alias ded='rm -rf ~/Library/Developer/Xcode/DerivedData'
It has been useful, but since recently it was not enough. Sometimes, Xcode will complain about not being able to use the simulator, even if it’s not running.
Or things will just fail randomly and often, leading to frustration and anger.
Eventually, ded was not enough, so here’s my replacement:
alias fuckxcode="pkill -9 -i 'ios simulator|xcode' && rm -rf ~/Library/Developer/Xcode/DerivedData && open http://www.calm.com/"
And I’ll quote Brent again on Bugs:
In the old days, programmers spent hours and days and weeks working very hard, and sometimes brilliantly, on difficult things that no one had ever done before.
These days, programmers spend hours and days and weeks working very hard, and usually unsatisfactorily, on getting around bugs in their platform.
If your first reaction on witnessing a bug or seeing a bug report is “that’s impossible,” you are plainly wrong. Don’t waste a single neuron on the train of thought that begins “but that can’t happen” because quite clearly it can, and has.
I should print that and hang it on my wall because some days one needs to be reminded there are no impossible bugs, even when things just don’t make any sense.
If you haven’t heard about it yet, Foursquare recently split their app in two and released Swarm. And I’m angry about it. Well, as angry as I can be at a mobile app, which is not much.
It was about the same time as Skype released a complete redesign which also wasn’t popular, so the Swarm split was commonly dismissed as users resisting change. Just like every time Facebook changes its news feed, people go nuts about it.
To me, Foursquare always had three use cases (there might be more that didn’t apply to me):
- Seeing where your friends are. Since I don’t have many local friends that use it, it was only mildly useful on company meetups and conferences. This is the goal of Swarm.
- Discovering new places, the goal of the new Foursquare app. Quite useful (specially when traveling) and I’m sure it’ll still excel at this.
- The game. Not everything is about utility, and sometimes I wondered why I even bothered checking in, but it was fun. The mayorships, the leaderboards, the badges, the competition. The 200+ hours I spent in Battlefield 3 were not precisely “useful” either, but I even paid money for those.
I’d say the outrage is due to most of “the game” being gone. You might think this is just another case of users angry about losing features, but I think there’s more to it.
To me, there was an implicit social contract between Foursquare and its users:
You give us this check in game and we’ll help you build a database of places
Now the database is built, and apparently ready to be monetized, and the game is gone.
I’ve used foursquare since 2010, submitted a bunch of new places, sent corrections whenever I found errors or duplicates, and even considered applying to be a superuser.
I feel betrayed.
It might be their right as a private company, but it’s also mine to stop contributing to it. So I’m uninstalling foursquare today.
Update: I was thinking about deleting my account, and it’s funny how almost half their excuses for not deleting your account aren’t there anymore
I ran across this question on stack overflow while (still) trying to figure out date parsing. The summary:
Q: I’m trying to get an NSDate object that has 21:00 as the local time[…] The result is
0001-01-02 04:52:58 +0000
A: The problem is that railroad time wasn’t implemented until November 18, 1883. You’re neglecting to set a year so you’re getting a date before that. Prior to the implementation of railroad time, the US time zones weren’t exact hour differences from GMT. I’m not sure exactly what time zone Apple selects for you but whichever it was seems to have been adjusted by 7 minutes and 2 seconds upon the move to PST in 1883.
And it made me remember an article I read yesterday: Programming Sucks. If you’re not a programmer, you’ll get a glimpse of what it entails. If you are one, you’ll probably laugh. Go read it.
I’m all for using standards for data representation, but this one is messed up. That same date can be written as:
And that’s before touching time zones.