Older blog entries for sness (starting at number 5499)

APOD: 2013 April 29 - Milky Way and Stone Tree

APOD: 2013 April 29 - Milky Way and Stone Tree: "What's that next to the Milky Way? An unusual natural rock formation known as Roque Cinchado or Stone Tree found on the Spanish Canary Island of Tenerife"

Syndicated 2013-04-29 16:02:00 from sness

Box2d Revisited

Box2d Revisited: "When I look at the graph above, the first thing that sticks out is that there are two obvious performance clusters. If you ignore AS3 for a moment, you’ll notice that there’s a cluster right around 1-2x native, and another broadly centered on 10x native. These clusters correspond to the “static” and “dynamic” VMs, respectively (I’m aware I’m abusing these terms a bit, but I believe they capture a fairly fundamental difference between, say, the JVM and a Javascript VM). You might also notice that the variance in each VM’s performance is closely related to its mean – in other words, the slower they are, the more unpredictable they are."

'via Blog this'

Syndicated 2013-04-26 16:15:00 from sness

Modeling Data and State in Your AngularJS Application - @jhooks

Modeling Data and State in Your AngularJS Application - @jhooks: "As you can see, data and state are intimately related. State is data, data is state.
Models are portable. There are many common sets of data that can easily transport between one application and the next. Think of, as an example, a UserLoginModel or a ShoppingCartModel. Portability takes a bit more thought and energy, but no more than writing the same code over again for each project. Obviously every model isn’t going to qualify for this, but many will so it is something to watch out for."

'via Blog this'

Syndicated 2013-04-26 16:14:00 from sness

Task.js: Beautiful Concurrency for JavaScript

Task.js: Beautiful Concurrency for JavaScript: "task.js is an experimental library for ES6 that makes sequential, blocking I/O simple and beautiful, using the power of JavaScript’s new yield operator.

Tasks are interleaved like threads, but they are cooperative rather than pre-emptive: they block on promises with yield. Here’s an example using jQuery:"

'via Blog this'

Syndicated 2013-04-26 16:14:00 from sness

shame.css – CSS Wizardry – CSS, OOCSS, front-end architecture, performance and more, by Harry Roberts

shame.css – CSS Wizardry – CSS, OOCSS, front-end architecture, performance and more, by Harry Roberts: "If anyone has to add a quick hack, they add it to shame.css, this means that they’re putting their hacks out there in the open; it means that they are aware that what they’re doing is hacky, it forces them to document what the problem was, how the hack fixes it, and how they might fix it for real given more time.

"

'via Blog this'

Syndicated 2013-04-26 16:13:00 from sness

python - Django - CSRF verification failed - Stack Overflow

python - Django - CSRF verification failed - Stack Overflow: "1. include {% csrf_token %} inside the form tag in the template.

2. use a RequestContext in render_to_response

return render_to_response('contact.html', {'form': form},
context_instance=RequestContext(request))"

'via Blog this'

Syndicated 2013-04-26 16:12:00 from sness

Task.js: Beautiful Concurrency for JavaScript

Task.js: Beautiful Concurrency for JavaScript: "task.js is an experimental library for ES6 that makes sequential, blocking I/O simple and beautiful, using the power of JavaScript’s new yield operator.

Tasks are interleaved like threads, but they are cooperative rather than pre-emptive: they block on promises with yield. Here’s an example using jQuery:"

'via Blog this'

Syndicated 2013-04-25 11:47:00 from sness

5490 older entries...

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!