Posts tagged hosting
Selected (belated, extended) Saturday Links
Mar 28th
The past two weeks haven’t really left time to compile my selected links, though there have been many. A few days at SxSWi (on which more, later) followed by travelling with the family and the inevitable work backlog moved blogging way down the priority list. So here’s a mammoth selection to get me caught up. Particularly interesting has been the discussion around the future of newspapers (represented here by Clay Shirky, Steven Johnson and Russell Davies), which seem to have finally pushed beyond “how t ind a good business model for papers” to looking at where the real value for society lies and how we can preserve and extend that in a changing landscape.
-
Making a jQuery Plugin Truly Customizable » Learning jQuery – Tips, Techniques, Tutorials
Some nice tips for managing options, and a reminder to find _useful_ customisations not just load with customisation options without much thought about/consultation with other potential users
-
iPhone Coding For Web Developers
Presentation slides from the internet's Matt Biddulph
-
Rack::Test released: Simply test any Rack-compatible app — Bryan Helmkamp
There's a _lot_ to like about increased adoption of rack. "With Rack::Test, we hope to make it easy for frameworks to encourage their users to write tests by making it trivial to provide a testing environment. We’d like to foster compatibility between Ruby web app testing environments (especially important as ideas like multi-framework apps become more prominent). The philosophy is the library should stay small and extendable so frameworks can layer on additional functionality they want to offer without modifying Rack::Test’s core behavior or resorting to monkeypatching."
-
Newspapers and Thinking the Unthinkable « Clay Shirky
"That is what real revolutions are like. The old stuff gets broken faster than the new stuff is put in its place. The importance of any given experiment isn’t apparent at the moment it appears; big changes stall, small changes spread. Even the revolutionaries can’t predict what will happen …. Ancient social bargains, once disrupted, can neither be mended nor quickly replaced, since any such bargain takes decades to solidify." … and a a lot more
-
russell davies: newspapers and all that
"If we are going to create a new news ecosystem involving advertisers (and a lot of people would be grateful for that money) then we're going to have to do something about that institutional bifurcation between content and commerce. We're going to have to design the relationship between the two with the care of a good experience designer." – a response to Ben Hammersley asking if anyone talking about the future of newspapers had talked to anyone in advertising
-
Streams, affordances, Facebook, and rounding errors – Laughing Meme
"Simon Willison asked this week about best practice for architecting activity streams. And the answer is, “It depends.” Depends on the scope, scale, access patterns, and affordances you’re building — your contract with your users.
Which is a long way of saying think hard about the promises you make to your users, implicitly or explicitly.
And, Facebook, my friend, what the HELL are you thinking? You managed to negotiate the best deal in the business, talk about a racket, and you threw it away for a piece of Twitter’s pain? Are you stupid? Well, best of luck with that."
-
SXSW Interactive Videos and Podcasts | SXSW.com
Most of the sessions were recorded and this is the place to get hold of them.
-
SXSWi: Location-based service is the trend at Austin, Texas |
"Predictably, location-based services were a major feature this year, with launches that included Foursquare, a social, location-based game by the Dodgeball creator, Dennis Crowley, and a new Facebook application for the location management tool Fire Eagle. While early adopters such as the SXSWers have been exploring location-based services for some time, it is inevitable that more consumer and privacy-friendly versions will start to creep into the mainstream."
-
stevenberlinjohnson.com: Old Growth Media And The Future Of News
"I think it’s much more instructive to anticipate the future of investigative journalism by looking at the past of technology journalism. When ecologists go into the field to research natural ecosystems, they seek out the old-growth forests, the places where nature has had the longest amount of time to evolve and diversify and interconnect. They don’t study the Brazilian rain forest by looking at a field that was clear cut two years ago." … and …" Measured by pure audience interest, newspapers have never been more relevant. If they embrace this role as an authoritative guide to the entire ecosystem of news, if they stop paying for content that the web is already generating on its own, I suspect in the long run they will be as sustainable and as vital as they have ever been. The implied motto of every paper in the country should be: all the news that’s fit to link."
-
On running a panel
A mixup over bus times meant I didn't make it to Andrew's panel at SxSW, but I heard many good things. It's really great to see this kind of debriefing-in-public going on. Hopefully it'll make for a stronger set of talks and panels next year.
-
Guardian API Maps – Home
"This is a site that lets you search the Guardian's new API and add location information to articles. All the place data we collect is being made available to anyone who wants it."
-
Foursquare, Hot New Phone App, Is Dodgeball on Steroids | The New York Observer
Quite a few people seemed to be playing with Foursquare at SxSW but most of the Brits were excluded as we didn't want to use that much data and it wasn't available in the UK iTunes store. One to watch, though.
-
A few notes on the Guardian Open Platform
I saw Simon present the Guardian Platform at SxSW and it looks like a great achievement. Waiting to see what developers build on it, and how they roll some of the ideas back in
-
Taking remote imagery offline to Nigeria :: High Earth Orbit
Andrew's notes on trying to source good map data for use in Nigeria. It's a useful overview of a variety of services and ways to use them, though highlighting the absence of really accessible, high-quality data.
-
Pulse Laser: The Utility of the Unfinished
"One technique that S&W has been using recently to illustrate design work is placing sketches or wireframes in situ. Whilst wireframes themselves are incomplete artefacts, designed to be work in progress, they still suffer for being uniformly incomplete. Wireframes themselves can be almost too beautiful, and this means that it becomes all-too-easy to criticise them as only wireframes, rather than as part of a product that exists in the world. Contextualising the sketches into the photograph places the design into the world. This enables the design to be understood within the world, and also (importantly) to highlight the seams between the unfinished design and the finished world around it"
-
Spike: a log file viewing & (if we’re being generous) analysis tool for Rails developers.
Looks like a handy addition to the toolkit
-
Generation Open | FactoryCity
"Sharing and giving away all that you can are the best defenses against fear, obsolescence, growing old, and, even, wrinkles. It isn’t always easy, but it’s how we outlive the shackles of biology and transcend the physicality of gravity." – Perhaps an overly optimistic piece, but it connects together a number of current themes and we can hope…
-
Testing Facebook with Cucumber | opensoul.org
For those faced with the unpleasant task of writing facebook apps, some people are working on making sure they can be thoroughly tested.
-
scraplab : instant sinatra deployment with heroku
A lot of people seem to be excited about heroku lately, and it does look like a nice simple way to put up quick ruby apps. Must play soon.
-
How to speed up gem installs 10x « The Budding Rubyist
Handy little tip, particularly for server environments: turn off ri and rdoc generation in your .gemrc file, and speed things up considerably
-
Facebook in 2010: no longer a walled garden – O'Reilly Radar
A more positive spin on facebook's changes from David O'Recordon, who suspects they're going to pull down the walls around their garden and become a proper citizen of the open web.
-
Facebook blinks, copies Twitter, still gets it wrong. – broadstuff
Critical commentary on facebook's recent changes. I'm not sure I entirely agree with statements like "By 2009 it was clear no one gives a sh*t about the Social Graph" but facebook really do seem to be finding that their approach is overly complex and quickly trying to shift to a more twitter-like "web of flow" (to steal Stowe Boyd's phrase)
-
Acquia Search goes public beta | Acquia
Hosted solr for drupal: "Acquia Search can be installed as a module on any Drupal 6 site, and enhances a site's search experience with faceted search navigation, content recommendations, and configurable results weighting, all delivered through a redundant hosted service infrastructure.".
-
Oauth using pecl/OAuth
Looks like a nice simple way to interact with oauth from a PHP app
Selected Saturday Links
Mar 7th
Big themes this week have mostly revolved around twitter, facebook, and openness. Some have focussed on facebook redesigning to embrace a more twitter-like “web of flow” approach, and others on the fact that they’re jumping on various open web bandwagons. It’s been interesting to see some tie in with the government transparency thinking going around, as particularly noted by Chris Messina on FactoryCity. Meanwhile there are quite a few nice new tools emerging, and I really must try heroku one of these days.
-
Facebook blinks, copies Twitter, still gets it wrong. – broadstuff
Critical commentary on facebook's recent changes. I'm not sure I entirely agree with statements like "By 2009 it was clear no one gives a sh*t about the Social Graph" but facebook really do seem to be finding that their approach is overly complex and quickly trying to shift to a more twitter-like "web of flow" (to steal Stowe Boyd's phrase)
-
Facebook in 2010: no longer a walled garden – O'Reilly Radar
A more positive spin on facebook's changes from David O'Recordon, who suspects they're going to pull down the walls around their garden and become a proper citizen of the open web.
-
Generation Open | FactoryCity
"Sharing and giving away all that you can are the best defenses against fear, obsolescence, growing old, and, even, wrinkles. It isn’t always easy, but it’s how we outlive the shackles of biology and transcend the physicality of gravity." – Perhaps an overly optimistic piece, but it connects together a number of current themes and we can hope…
-
Spike: a log file viewing & (if we’re being generous) analysis tool for Rails developers.
Looks like a handy addition to the toolkit
-
Testing Facebook with Cucumber | opensoul.org
For those faced with the unpleasant task of writing facebook apps, some people are working on making sure they can be thoroughly tested.
-
scraplab : instant sinatra deployment with heroku
A lot of people seem to be excited about heroku lately, and it does look like a nice simple way to put up quick ruby apps. Must play soon.
-
How to speed up gem installs 10x « The Budding Rubyist
Handy little tip, particularly for server environments: turn off ri and rdoc generation in your .gemrc file, and speed things up considerably
-
Acquia Search goes public beta | Acquia
Hosted solr for drupal: "Acquia Search can be installed as a module on any Drupal 6 site, and enhances a site's search experience with faceted search navigation, content recommendations, and configurable results weighting, all delivered through a redundant hosted service infrastructure.".
-
Oauth using pecl/OAuth
Looks like a nice simple way to interact with oauth from a PHP app
-
Phusion Passenger 2.1.1 (beta) released, thanks sponsors! « Phusion Corporate Blog
Rails 2.3.0 compatibility, Ruby 1.9 compatibility and, finally, fully working with mod_rewrite.
-
Ryan's Scraps: What's New in Edge Rails: Batched Find
Really pleased to see Model.each finally in ActiveRecord core
-
Passenger-stack | Sprinkle scripts to provision your server quickly
"Passenger stack is a collection of scripts for Marcus Crafter’s ‘Sprinkle’ tool, it allows you provision a standard Ruby on Rails / Rack server running Ruby Enterprise, Apache with Passenger, MySQL / Postgres and Memcached." – looks like an easy way to automate VPS setup
Rails Hosting Comments: 1&1
Feb 28th
While one of the most popular posts on this blog is the instructions I wrote up for compiling and installing Ruby and Rails at 1&1, I never actually got as far as deploying a full application there. I was helping a friend admin that server and hosting a few sites there that we work on together. We’ve got a rails app or two in the works, so I wanted to be ready, but I was never entirely comfortable with the idea of hosting there.
Last week, it became very apparent that we never would deploy an app there. After some problems with their email setup, they appeared to switch off all outgoing email from the PHP apps he had hosted there without notice, and then access to the web sites became patchy, apparently due to an unscheduled change of IP address. After a phone call (in the middle of a week day) in which he was told that the server department was ‘closed’, and then no follow-up within 24 hours, it was decided that all the sites would be migrated over to a mediatemple ‘dedicated virtual’ server, which provides comparable resources, and better access, for roughly the same money.
Rails Hosting Comments: Dreamhost
Feb 22nd
I had an email the other day asking about my experiences with a particular shared hosting company (not dreamhost). I’ve worked my way through a few companies for smaller projects, and thought I’d throw some thoughts out there.
Dreamhost are one of the cheaper hosting outfits around, and seem to inspire either love or hate, depending on your experiences. Their setup for rails is apache+fcgi, which isn’t the optimal configuration, but works well enough for a low-demand application or one where a lot of content can be cached.
Initially, I had a number of problems with which server I was placed on. One was too stretched and my subversion processes were killed before I could even finish checking out my app. Another didn’t handle a combination of subversion and fastcgi properly. And another wasn’t killing off fastcgi processes at the right time, so the app was quickly spiralling out of control. It took quite a while to get all that sorted out, and support responses were often slow, but since I’ve landed on the current server it seems fairly stable.
The one ongoing problem I’ve had is that it can be hard to manually kill processes, and deploying a new version, particularly when switching from development to production, can be a painful process as you wait for the old processes to die and the new ones take their place. That’s not necessarily a huge problem, but does crimp my style when I want to get into an agile, rapid-deployment, continuous integration flow.
Overall, I’d have to say that dreamhost may be good for hobbyist sites, but if you think you’re going to attract significant traffic it’s probably worth paying for a more appropriate environment.
Installing Ruby and Rails on a 1&1 Server
Apr 21st
One organization I do a lot of work with hosts their sites on a 1&1 Managed Server. Essentially, only their sites and applications are running on the server, but 1&1 manage all of the sysadmin work, and don’t provide root access. I have a number of misgivings about the configuration of the server, particularly the fact that the user’s root folder is also the document root for their main domain, but 1&1 have been good about keeping PHP up to date, and we don’t have to worry about being woken at 3am to fix stuck processes. Unfortunately, Ruby hasn’t been treated to the same attention as PHP and the system version is still languishing at version 1.8.1, which won’t handle rails for us.
We entered into a round of emails to try and persuade 1&1 to upgrade ruby for us, and maybe even install gem and rails system-wide, but after a number of confusing messages where it wasn’t clear whether their answers actually applied to the plan we were on (“you need a linux server for that”/”we have a linux server”, “you need a dedicated server”/”we have a dedicated server”) we gave in and I realised that if I wanted rails I’d have to install it myself.
It turned out to be a very straightforward process. Compiling ruby and gems with appropriate prefixes (./configure –prefix=/my/preferred/folder) got them in place, and from there I was able to install the rails gems. It’s important to check that your installation folder is blocked by the web server and to put a relevant .htaccess file in place if not. You don’t want a curious visitor or malicious attacker playing with your binaries. You’ll also want to add your new bin folder to your default path by editing your .bash_profile file to add a line like:
export PATH=~/usr/bin:$PATH
With that done, changing the shebang in dispatch.cgi was enough to get the application up and running using CGI, which was enough for us to start testing applications, but would quickly become too slow once those apps are in production.
FastCGI can be activated through the ‘Server Administration > Advanced Settings’ option in the control panel. I did that, and then tried to install the fcgi gem:
gem install fcgiIt installed successfully, but building the documentation threw a sequence of errors about undefined symbols. Unfortunately when I switched my .htaccess settings so that FastCGI I received an ‘application could not start properly’ error. Being short of time, and having rails frozen into my application directory, I decided to go in and edit
[APP]/vendor/rails/railties/lib/fcgi_handler.rb directly, changing
require 'fcgi'
to include the full path to my newly installed fcgi gem.
That worked, and I now have a working, fastcgi-based rails application running on the server.