Joined August 2013
·
Posted to
A little project with Node.js, MongoDB, Jade and Stylus
over 1 year
ago
Do you mind providing some insight into your infrastructure (hosting mainly)? Can you suggest some providers, maybe give some tips on things to look for (eg. installing node modules) as well as your opinions on services you may have tried. Thanks for the great info, and I agree that nodejs + mongodb is the next thing.
Posted to
Responsive Design in IE 10 on Windows Phone 8
over 1 year
ago
Can't you just add @-ms-viewport{ width: auto!important }
in your stylesheet? Earlier IE only recognized the CSS viewport (ignoring the meta tag altogether)... so you should already have an @-ms-viewport tag
in your styles. If you want to stick with javascript, could also make sure that width is actually set to "device-width" before moving forward - an extra layer of compatability:
var viewport = document.querySelector("meta[name=viewport]");
if( viewport && /device-width/.test(viewport[0].getAttribute("content")) ) {
// write the style tag here
}
Achievements
59 Karma
0 Total ProTip Views
Bear
Have at least one original repo where Objective-C is the dominant language
Komodo Dragon
Have at least one original repo where Java is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Forked
Have a project valued enough to be forked by someone else
Cub
Have at least one original jQuery or Prototype open source repo
Charity
Fork and commit to someone's open source project in need
Thanks for the thorough response! Heroku seems to be a favorite in the node community, but it is my understanding that you can't work with web sockets on Heroku. Any experience there?
Also, with more "classical" hosting you often aren't allowed SSH access (unless you pay more) which is required for "installing node modules" or anything else which requires the command line. Being that NPM and the command line is such an integral part of working with node, I was curious as to how this worked with a hosting provider. The npm/git integration seems to solve many of these issues.
OpenShift really seems to be a neat thing and appears to be exactly what I was looking for - SSH, node, and MongoDB. I really appreciate all the great info!