Installing NGINX on Ubuntu Oneiric

It's a short and sweet guide to getting nginx up and running on Ubuntu using the CL but hopefully it will help someone else out.

Append the appropriate stanza to /etc/apt/sources.list.

deb http://nginx.org/packages/ubuntu/ oneiric nginx
deb-src http://nginx.org/packages/ubuntu/ oneiric nginx

Install NGINX

sudo -s
apt-get update
apt-get install nginx

Check it has worked

w3m 127.0.01

This should return something like " Welcome to nginx!". If you are lookg for the .CONF file its at /etc/nginx/nginx.conf

For your next steps to see how NGINX processes a request read nginx.org/en/docs/http/request_processing.html then check out wiki.nginx.org/Main

Posted: 27-Apr-2012

View: 1138

Permalink: here

Error: ENOENT open with NPM install

I started seeing the following error when installing/updating packages after an update to Node.js

view plain print about
1npm ERR! Error: ENOENT, open '/usr/local/lib/node_modules/express/node_modules/connect/package.json'
2npm ERR! You may report this log at:
3npm ERR! <http://github.com/isaacs/npm/issues>
4npm ERR! or email it to:
5npm ERR! <npm-@googlegroups.com>

After some digging around I cleared the NPM cache via the following command and got back on track:

view plain print about
1$ npm cache clean

Posted: 25-Apr-2012

View: 1008

Permalink: here

Express, Less and less-middleware

I hit some issues with getting LESS to compile with Express.js and it turns out I was looking at some old code.

To get it working now you need to use LESS-middleware. The script below is the basic steps you need to get up and running.

Posted: 11-Apr-2012

View: 1396

Permalink: here

Entertainment Industries: innovate or die

You don't need us to tell you that your position on anti-"piracy" laws has been unpopular recently. Last month's historic protests, with millions of Americans registering their opposition, have made that point pretty clear. Instead, we're writing today to tell you that the Internet can be great for creators and their community, but your own leadership refuses to recognize and take advantage of its promise. It seems they'd rather spend your membership dues on lawyers, lobbyists and astroturf than innovation. We suspect many of you are realizing this, especially when you see how successful new business models can be.

We humbly suggest that you stand up and tell them to either embrace the age of the Internet or get out of the way so that new, forward-thinking industry leaders can take their place.

There are a lot of different fights regarding censorship on the net at the moment in the name of Piracy. So much of the issues come down to simple availability and price, the money being spent on the fight against piracy should go to making content easy to access at an attractive price, globally. We don't want to wait 6 months for that TV show, album, DVD to be released in our region. Innovate or die ... using the legal system to keep your business model never works, look at the Locomotive Acts in the UK. If anything this practice should somehow be outlawed in itself.

via www.eff.org/deeplinks/2012/02/dear-hollywood-open-letter-hardworking-men-and-women-entertainment-industries

Posted: 03-Feb-2012

View: 2799

Permalink: here

Fusebox has changed hands from TeraTech

The project will remain in the Apache License. The copyright will be removed as most modern project no longer need or have a copyright. The Fusebox.org domain ownership will be transferred initially to John Blayter. The domain ownership shall only be owned by a commiter of at least 3 months. The rights of the domain ownership must be given up if 50% or more of the commiters vote to have it moved to another commiter.

Looks like there is a new set of developers in town for Fusebox with TeraTech letting it change hands in to the community. I still have one old project on FB (and its doing well) so I wish them all the best of luck going forward! It always good to see any project live on rather than go stale.

fusebox.org/index.cfm/fusebox-downloads/fusebox-56/

Posted: 31-Jan-2012

View: 2452

Permalink: here

Is this really an @asda rollback?

This kind of rollback does nothing except help Asda with their stats i.e. "Rolling back 1000's of prices". I know, technically yes its a rollback, but really come'on.

Posted: 27-Jan-2012

View: 1488

Permalink: here

Say NO to #ACTA

ACTA is one more offensive against the sharing of culture on the Internet. ACTA (Anti-Counterfeiting Trade Agreement) is an agreement secretly negotiated by a small "club" of like-minded countries (39 countries, including the 27 of the European Union, the United States, Japan, etc). Negotiated instead of being democratically debated, ACTA bypasses parliaments and international organizations to dictate a repressive logic dictated by the entertainment industries.

ACTA (Anti-Counterfeiting Trade Agreement) is the worlds #SOPA, though possibly worse in every way. If you live in the UK take 1 minute and make sure you get heard on this non-democratic process at http://epetitions.direct.gov.uk/petitions/20685.

Don't forget you can also tell your MP how you feel via theyworkforyou.com

If you want to know more about ACTA then check out http://www.laquadrature.net/ACTA

Just before I get off my soap box though what also bugs me is that this can be agreed on in principle by so many countries yet nothing can be done to the banking industry for years and after investigations?

Posted: 26-Jan-2012

View: 1501

Permalink: here

O2 shares users phone numbers with every site they visit

Update: O2 have fixed this already)

Whenever a mobile user accesses a website from their phone they share information about that device with the site. It usually includes the web browser and the model of phone being used to allow the website to display its information in a way that suits your device. However, O2's mobile network in the UK is also apparently including the phone number of some users in the data.

The mobile phone number can be seen in the HTTP header

Malicious websites could use the information to target users with spam texts or scams.

Wow, just saw this on Sky news, seems like a silly mistake for someone to make. They probably had a reason for it but it seems silly!

I wanted to check if this was true and how easy it was with ColdFusion. Check if yours is visible at http://www.andyjarrett.co.uk/o2/, the code is below:

Posted: 25-Jan-2012

View: 1346

Permalink: here

A quick tutorial for WebSQL

I've created a gist which gives you the basics for getting to grips with WebSQL. It's heavily commented and shows you the three core methods used (openDatabase,transaction,executeSql) and how to:

  1. Create a database
  2. Create a table
  3. Insert a record
  4. Get the data back in to HTML

Don't forget that WebSQL is currently only supported on Chrome, Opera, iPhone, and Android. It's not on Firefox(!) or Internet Explorer (shock).

To see your results right click on the page and Inspect Element to bring up the following window and go to the Resources tab. Under Databases you should find a table called fightclub

inspect element

Posted: 12-Jan-2012

View: 1656

Permalink: here

BlogCFC and a new future ahead

A few weeks ago I came to realize that I was holding back BlogCFC as a product. I was a barrier to it growing. I thought about Joe Rinehart (a man I greatly admire) and his decision to hand over the reigns of Model-Glue to Dan Wilson, and it occurred to me that maybe it was time to do the same.

I just read the news over at the BlogCFC blog about Ray stepping to the side and can't help but feel this could give the project a needed kick it with new blood taking over the reins.

Thank you Ray for a great project, Scott when we seeing version 6 :p

Posted: 30-Dec-2011

View: 1674

Permalink: here

More Entries