It’s less broken than it was 2 hours ago, but it’s still broken.
Of course, getting it to break in a new and interesting way is a total WIN.
Anyone agrees? I expect to have it fixed at some point in time. So when a error is fixed, should it be called a milestone? :D
Processing.js is the sister project of the popular Processing visual programming language, designed for the web. Processing.js makes your data visualizations, digital art, interactive animations, educational graphs, video games, etc. work using web standards and without any plug-ins. You write code using the Processing language, include it in your web page, and Processing.js does the rest.
I just pushed an update to the jQuery Mobile Starter Kit..
This update introduces ios.css, android.css, ios.js and android.js so you can have unique rules depending on the devices..
This also integrates the scrolling fix I posted a couple days ago for Android devices running jQuery Mobile, so that it makes scrolling faster..
The reason I added a seperate js and css file for each device is that you may not want or need to integrate the same fix for different devices..
Also, sometimes there may be other styling changes you want to make for different devices, so now you can easier. :)
Python Ecosystem - An Introduction
When developers shift from PHP, Ruby or any other platform to Python, the very first road block they face (most often) is a lack of an overall understanding of the Python ecosystem. Developers often yearn for a tutorial or resource that explains how to accomplish most tasks in a more or less standard way.
What follows is an extract from the internal wiki at my workplace, which documents the basics of the Python ecosystem for web application development for our interns, trainees and experienced developers who shift to Python from other platforms.
Credits to Mir Nazim for the above post.
#!/bin/sh # # This script will download NodeJS, NPM and lessc, and install them into you Python # virtualenv. # # Based on a post by Natim: # http://stackoverflow.com/questions/8986709/how-to-install-lessc-and-nodejs-in-a-python-virtualenv NODEJS="http://nodejs.org/dist/v0.8.3/node-v0.8.3.tar.gz" # Check dependencies for dep in gcc wget curl tar make; do which $dep > /dev/null || (echo "ERROR: $dep not found"; exit 10) done # Must be run from virtual env if [ "$VIRTUAL_ENV" = "" ]; then echo "ERROR: you must activate the virtualenv first!" exit 1 fi echo "1) Installing nodejs in current virtual env" echo cd "$VIRTUAL_ENV" # Create temp dir if [ ! -d "tmp" ]; then mkdir tmp fi cd tmp || (echo "ERROR: entering tmp directory failed"; exit 4) echo -n "- Entered temp dir: " pwd # Download fname=`basename "$NODEJS"` if [ -f "$fname" ]; then echo "- $fname already exists, not downloading" else echo "- Downloading $NODEJS" wget "$NODEJS" || (echo "ERROR: download failed"; exit 2) fi echo "- Extracting" tar -xvzf "$fname" || (echo "ERROR: tar failed"; exit 3) cd `basename "$fname" .tar.gz` || (echo "ERROR: entering source directory failed"; exit 4) echo "- Configure" ./configure --prefix="$VIRTUAL_ENV" || (echo "ERROR: configure failed"; exit 5) echo "- Make" make || (echo "ERROR: build failed"; exit 6) echo "- Install " make install || (echo "ERROR: install failed"; exit 7) echo echo "2) Installing npm" echo curl http://npmjs.org/install.sh | sh || (echo "ERROR: install failed"; exit 7) echo echo "3) Installing lessc with npm" echo npm install less -g || (echo "ERROR: lessc install failed"; exit 8) echo "Congratulations! lessc is now installed in your virtualenv"
I’m trying to teach myself Python, I love Instagram, and I have this little thermal printer. So I decided to make an ASCIIGRAM - ascii Instagram feed.
I came together pretty quick but it is admittedly very hackish. I’m very new to Python and any real programming language (despite using snippets of many over the years)
WHEN working with Linux, Unix, and Mac OS X, I always forget which bash config file to edit when I want to set my
PATH and other environmental variables for my shell. Should you edit
.bashrc in your home directory?
You can put configurations in either file, and you can create either if it doesn’t exist. But why two different files? What is the difference?
Credits to Josh Staiger for this post.
I’ve done it, I’ve ditched github, for good. All updates to current and old projects, and all new projects (save precisely one - long story) are being self-hosted on this server. The switch was initiated by github’s latest update (accompanied, as usual, by a noticeable performance hit), but I had made the decision to leave long ago. Here’s why.
Credits to Steve for this post.