Node RailwayJS app – Deploying to Heroku – ENOENT, open ‘/app/log/production.log

I’m currently working on a project involving a node.js app, using RailwayJS, deploying to Heroku.

After doing my

git push Heroku

Everything seemed ok, however, the app was not running.

I ran Heroku logs and was shown:

app[web.1]: listening on port 32168 within production environment
app[web.1]:
app[web.1]: events.js:48
app[web.1]: throw arguments[1]; // Unhandled ‘error’ event
app[web.1]: ^
app[web.1]: Error: ENOENT, open ‘/app/log/production.log’
heroku[web.1]: Process exited with status 1
heroku[web.1]: State changed from starting to crashed

This didn’t tell me much, apart from

ENOENT, open ‘/app/log/production.log’

This means that the file specified can’t be found- or opened in our case.

To resolve this, after suggestion from RailwayJS’ extremely helpful creator, Anatoliy Chakkaev, I simply disabled quiet logging, by changing my environment config to:

app.disable(‘quiet’);

Apple store rip off

Same product

$49.95 on the US Apple store, £69.95 on the UK store

Price comparison between UK and US Apple Store

Fix Homebrew – You have no /usr/bin/cc (Xcode)

I recently did a fresh install of OS X Lion on my Macbook Pro

I installed XCode, homebrew, and git.

After trying to install mysql via homebrew:

brew install mysql

I received this error:

Error: Failed executing: ./configure –prefix=/usr/local/Cellar/readline/6.2.2 –mandir=/usr/local/Cellar/readline/6.2.2/share/man –infodir=/usr/local/Cellar/readline/6.2.2/share/info –enable-multibyte
If `brew doctor’ does not help diagnose the issue, please report the bug:

https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue

So, I did what I was told, and ran:

brew doctor

This returned:

You have no /usr/bin/cc. This will cause numerous build issues. Please
reinstall Xcode.

But, Xcode is installed
After some googling (which if you’re reading this, you’ll notice there’s not a lot of results), I found the solution.

Xcode needs the Command line tools installed.

To do this, open Xcode, click the Xcode menu, and select preferences.
Click install next to Command line tools:

Installing Onavo removes Personal Hotspot option on Three

I tend to use the personal hotspot (tethering) feature on my iPhone every week or so (while out at meetings, it’s handy to connect laptop if there’s no wifi available)

Recently, I stumbled across Onavo

Essentially this compresses mobile data before it’s sent to your device, to reduce your data usage, and speed up your browsing etc…

I installed the app, and it creates a profile on your phone, to point your connection

It does this by installing a configuration profile that overrides your normal Carrier’s APN settings, redirecting traffic through its AWS based cloud. There, the assets are downloaded using inexpensive wired access, evaluated and compressed, before being sent on to the Carrier (in my case, Three) – compressed.

However…
After a couple of weeks of using it, I noticed my personal Hotspot option had suddenly disappeared.
I was outraged.
Immediately, I thought Three had taken it away from my package, and tweeted them accordingly…

Three assured me this wasn’t the case….

So I did some thinking, and remembered Onavo.

I uninstalled the app using this method, restarted the phone, and voila!
My personal hotspot option is back!

Seems this isn’t just limited to the Three network, nor do I seem to be the only one, according to their support page:

http://getsatisfaction.com/onavo/topics/my_personal_hotspot_configuration_has_gone

British Gas Energy Smart monitor – Screen looks strange

I recently signed up to British Gas energy smart tariff for gas and electricity, which comes with a handy meter that tells me how much electricity I’m using.

Once I’d plugged the unit in, i noticed the screen looked a little bit strange… almost, like it was flickering.

I could only detect this if i moved my eyes left or right, up or down… It was almost like the 3 colours (Red Green, and Blue) that make up the screen were refreshing somewhat slowly…

Energy Smart Meter

Energy Smart Meter - Moving - see colours "split"

Energy Smart Meter - Moving - see colours "split"

Kind of a pointless post, but I thought I’d share it anyway….