How to Distribute Your Enterprise App IOS

Recently, my company got a fancy new ios enterprise account which allows you to distribute apps over the air to anyone in your organization. This is how you do it: When you are finished and ready to distribute you app, in xcode go to: Product –> Archive Your Organizer will appear with several options. Click “Distribute…” Select “Save for Enterprise

How to find your raspberry pi on a network

May have already written about this in one of my pi 101 posts. But here’s a simple command to find your pi if you accidentally boot it with no screen and you want to ssh in. First make sure you have this: http://nmap.org/download.html Then use this: sudo nmap -sP 10.3.1.1-255 | grep raspberry That should turn up the network IP address

My Global .gitignore

For all those who aren’t up with it, there’s a file you can put in your home directory called “.gitignore_global”. Read more about it here: https://help.github.com/articles/ignoring-files Basically, it allows all your projects to ignore those pesky files you always ignore anyway, automatically. I thought it might be useful to post mine (ignores netbeans, logs, databases, mac files, android developer kit files,

What Distro is my Linux Based On?

In the past I’ve always known, because I pretty much use ubuntu, centOS, or raspbian (name implies debian) so these are all easy. However, I’m working with my beaglebone and it uses something called Angstrom. Turns out there a great resource for linux distros and seeing where they came from here: http://upload.wikimedia.org/wikipedia/commons/1/1b/Linux_Distribution_Timeline.svg  

Beagle Bone SSH Password Not Working

For all those who updated angstrom then left their beagle bone alone for a year and are getting back into it… If you’ve connected your bone via networked USB, just make sure you ssh like this: ssh root@beaglebone.local The password is empty so just hit enter. If you try to ssh by typing: ssh root@localhost you won’t be able to

Debugging your websocket connections with curl

I recently needed a quick way to debug my socket connections. Of course, curl seems like the right tool for the job here so: $ curl -i -N -H “Connection: Upgrade” -H “Upgrade: websocket” -H “Host: echo.websocket.org” -H “Origin: http://www.websocket.org” http://echo.websocket.org Change the urls to your server and you should see some upgrade information as your connection upgrades from http

Apache Benchmarking, Foreach with List and Other PHP 5.5 Stuff

Cool little tool for benchmarking which you have, if you have apache installed: ab -n 100 -c 5 http://localhost/site.php This says to test a page 100 times with a concurrency of 5. Apache will spit back some stats on it. Pretty cool. Also, did anyone else know that you can use list in foreach loops now? foreach ($array_of_stuff as list($other,

NodeJS and Memcached: Installation

So you have a worker process that should update a web process so it can notify all your connected clients of something? We there are a couple strategies for doing this. Shared memory between processes. Pub/Sub and messaging service TCP socket between processes. #1 is not so scalable. It works really quickly on your machine, but as soon as you

nTwitter won’t stream

This one took me a full 8-10 hours to figure out. I finally discovered a solution here: https://github.com/AvianFlu/ntwitter/issues/119 If you’re using ntwitter to stream twitter updates, and all of a sudden your stream stops, yet if you run: var creds = twitter.verifyCredentials(function(err, response) { console.log(‘verifying creds’) console.log(err) console.log(response) }); Everything appears fine, your server time might be off. If your server

Crontab Revisited

I’m looking to get a cronjob set up on my new EC2 instance. First off, I’m using Ubuntu 12.04. Secondly, it’s a default installation so I’m going to show you where all the default shit is. Ok, so with any piece of tech your working with, the first thing you should do is figure out how to log output. On