New Relic Goodness

Send deployment information directly to New Relic via HTTP.

Ever wish you knew what impact a new deployment had on your web app and when?  Trying to keep track of deployments (especially in a continuous deployment environment) can be error prone and tedious.  Why not just send those details automatically to New Relic?  You can - check it out from the New Relic site:

To notify New Relic of a deployment, you can POST to

https://rpm.newrelic.com/deployments.xml

and add the API key as a header

x-api-key: 8d00e2869400597af4a114d31789088e3724f391f287a4c

To use the API Key turn on API access in your account integration settings.

This example uses the application id.  If you were to specify the optional description, revision, changelog, and user fields, the curl command would look like this:

cURL and the Cloudinary API

I was looking for a way to check Exif data on images I had uploaded to Cloudinary without having to write code. Turns out that cURL works perfectly here.​ You can add whatever bits to the end of the request string that suite your needs.  I was looking for Exif.

​The following cURL command should return back to you a nice JSON response (after setting the correct cloud name, API key and API secret of your account of course):

Authentication is realized via Basic Authentication over secure HTTP. Your Cloudinary API Key and API Secret are used for the authentication.

I was unable to get the -d option of cURL to work correctly so instead I encased the entire request in a matching set of ' '.  YMMV.

How to Reset Your Jawbone UP Band

I've been using the Jawbone UP Band for a bit now and ran into an issue where I could not get the band to sync with my iPhone.  It also appeared that the function button wasn't accepting press input either.  After searching for an answer I came across the following solution from Jawbone.​

Soft Reset 
If your UP band’s button, lights, or vibrations are not working properly, or your band won’t charge, you can perform a Soft Reset to reboot the processor in the band, without erasing your user data.

Follow these steps:

  • Plug your USB cable into a working/powered USB port.
  • Press and hold the button on your band.
  • Continue pressing the button while you plug the band into the USB cable.
  • When the band’s lights flash yellow and red, release the button.
  • Sync your band with the app.

Hard Reset 
To erase all user data currently stored on your band and return the band to its original factory settings, perform a Hard Reset. A Hard Reset may also help fix any band performance issues that a soft reset is not able to fix.

Follow these steps:

  • Make sure your band is charged.
  • Press the button on your band 10 times.
  • On the 10th press, hold the button for 10 seconds until the red sun lights up.
  • Sync your band as you did upon first use.