Friday, March 30, 2012

Image texture - Wikipedia, the free encyclopedia

Image texture - Wikipedia, the free encyclopedia: "An image texture is a set of metrics calculated in image processing designed to quantify the perceived texture of an image. Image Texture gives us information about the spatial arrangement of color or intensities in an image or selected region of an image.[1]"

'via Blog this'

Acoustic ecology - Wikipedia, the free encyclopedia

Acoustic ecology - Wikipedia, the free encyclopedia: "Acoustic ecology, sometimes called ecoacoustics or soundscape studies, is the relationship, mediated through sound, between living beings and their environment.[1] Acoustic ecology studies started in the late 1960s with R. Murray Schafer and his team at Simon Fraser University (Vancouver, Canada) as part of the World Soundscape Project. The original WSP team included Barry Truax and Hildegard Westerkamp, Bruce Davies and Peter Huse, among others. The first study produced by the WSP was titled The Vancouver Soundscape. The interest in this area grew enormously after this pioneer and innovative study and the area of acoustic ecology raised the interest of researchers and artists all over the world. In 1993, the members of the by now large and active international acoustic ecology community formed the World Forum of Acoustic Ecology.[2]"

'via Blog this'

DailyJS: A JavaScript Blog

DailyJS: A JavaScript Blog: "Why bother making a Node process behave like a daemon? There are several reasons, but generally because it’s a service that should be running at all times, in the background, and will automatically start after a reboot.

There are different ways to do this depending on the operating system. Most Linux distributions use System V compatible init scripts with runlevels. An alternative is upstart which is installed by default on Ubuntu systems."

'via Blog this'

GoldenEye Spectrum Emulation Unlocked - The RWP Forums

GoldenEye Spectrum Emulation Unlocked - The RWP Forums: "Little benownst to the world all this time, GoldenEye (N64) has a fully-functional ZX Spectrum 48x emulator built into it. By feeding it a proper Spectrum monitor program and calling menu 25 to load a snapshot, any Spectrum 48x program can be run.

The emulator started life as a side project to see if Spectrum emulation was possible on N64 and was hooked into GE, the current game in development. It was supposed to be removed before release but was only made inaccessible and inoperable. All the registers, dependancies, and script required to run the emulator still reside in retail GoldenEye carts.
"

'via Blog this'

True universal JavaScript modules with write-once-run-anywhere Jasmine specs » The Log Book of Manuel Kiessling

True universal JavaScript modules with write-once-run-anywhere Jasmine specs » The Log Book of Manuel Kiessling: "As a JavaScript developer writing general-purpose libraries, you probably wish you could go fully universal, that is, you might want to create a library:

that can be used in the browser and in Node.js – without any hacks for either platform, and without code-duplication
that transparently utilizes AMD via RequireJS in the browser and CommonJS via require in Node.js – without any hacks for either platform, and without code-duplication
with a Jasmine spec suite which runs in the browser and in Node.js – without any hacks for either platform, and without code-duplication
"

'via Blog this'

Hammer.js — A javascript library for multi touch gestures

Hammer.js — A javascript library for multi touch gestures: "Why use Hammer.js?
easy implementation of touch events in your website
lightweight with only 2kb (minified and gzip), easy to dig into
focused javascript library, only for multi-touch gestures
completely standalone, and a jQuery plugin is available"

'via Blog this'

Google's Go Programming Language Grows Up: Now What?

Google's Go Programming Language Grows Up: Now What?: "So what's Go good for? According to distinguished Google Engineer Rob Pike, the co-designer of the Go programming language, it's designed for "big software."

Pike says Go is best for "large programs written by many developers, growing over time to support networked services in the cloud: in short, server software. Go enables programmers to develop software quickly and maintain and adapt it easily as it grows. It combines the efficiency of traditional compiled languages with the ease of use and expressiveness of scripting languages." (Being a member of the original Bell Labs Unix team, Pike does know a thing or three about systems software.)

"

'via Blog this'

The most powerful, yet lightest weight crash reporting solution for iOS and Android developers. | Crashlytics

The most powerful, yet lightest weight crash reporting solution for iOS and Android developers. | Crashlytics: "When it comes to stability, mobile developers have no visibility into how their apps perform in customers’ hands. Until now.

Built by a hardcore team, Crashlytics is an elegant solution to a big data problem. We find the needle in the haystack, even the exact line of code that your app crashed on."

'via Blog this'

Python Image Processing: Opencv example

Python Image Processing: Opencv example: "cvCornerHarris(gray,edge1,5,5,0.1)
cvCanny(gray,edge2,20,100)"

'via Blog this'

OpenCV Exercises in Python | Beechtree Tech

OpenCV Exercises in Python | Beechtree Tech: "  gray = cvCreateImage(cvSize(cvGetSize(img).width, cvGetSize(img).height), IPL_DEPTH_8U, 1)
    cvCvtColor(img,gray,CV_BGR2GRAY)

    if (gray.nChannels != 1):
        return False

    out = cvCreateImage(cvSize(cvGetSize(gray).width, cvGetSize(gray).height), IPL_DEPTH_8U, 1)
    cvCanny(gray, out, lowThresh, highThresh, aperature)
    return out
 "

'via Blog this'

Thursday, March 29, 2012

Eamonn Keogh's Homepage

Eamonn Keogh's Homepage:

'via Blog this'


SAX

SAX: "SAX is the first symbolic representation for time series that allows for dimensionality reduction and indexing with a lower-bounding distance measure.  In classic data mining tasks such as clustering, classification, index, etc., SAX is as good as well-known representations such as Discrete Wavelet Transform (DWT) and Discrete Fourier Transform (DFT), while requiring less storage space.  In addition, the representation allows researchers to avail of the wealth of data structures and algorithms in bioinformatics or text mining, and also provides solutions to many challenges associated with current data mining tasks.  One example is motif discovery, a problem which we recently defined for time series data.  There is great potential for extending and applying the discrete representation on a wide class of data mining tasks."

'via Blog this'

NatGeo.bmp (998×2305)

NatGeo.bmp (998×2305):

'via Blog this'

Welcome to the SAX

Welcome to the SAX: "SAX is the first symbolic representation for time series that allows for dimensionality reduction and indexing with a lower-bounding distance measure. In classic data mining tasks such as clustering, classification, index, etc., SAX is as good as well-known representations such as Discrete Wavelet Transform (DWT) and Discrete Fourier Transform (DFT), while requiring less storage space. In addition, the representation allows researchers to avail of the wealth of data structures and algorithms in bioinformatics or text mining, and also provides solutions to many challenges associated with current data mining tasks. One example is motif discovery, a problem which we defined for time series data. There is great potential for extending and applying the discrete representation on a wide class of data mining tasks."

'via Blog this'

Killer whale - Wikipedia, the free encyclopedia

Killer whale - Wikipedia, the free encyclopedia: " Indeed, the genus name Orcinus means "of the kingdom of the dead",[11] or "belonging to Orcus."[12] Ancient Romans originally applied orca (plural orcae) to these animals, possibly borrowing it from the Greek ὄρυξ, which referred (among other things) to a whale species. "

'via Blog this'

Wednesday, March 28, 2012

PythonInterface - OpenCV Wiki

PythonInterface - OpenCV Wiki: "def array2cv(a):
dtype2depth = {
'uint8': cv.IPL_DEPTH_8U,
'int8': cv.IPL_DEPTH_8S,
'uint16': cv.IPL_DEPTH_16U,
'int16': cv.IPL_DEPTH_16S,
'int32': cv.IPL_DEPTH_32S,
'float32': cv.IPL_DEPTH_32F,
'float64': cv.IPL_DEPTH_64F,
}
try:
nChannels = a.shape[2]
except:
nChannels = 1
cv_im = cv.CreateImageHeader((a.shape[1],a.shape[0]),
dtype2depth[str(a.dtype)],
nChannels)
cv.SetData(cv_im, a.tostring(),
a.dtype.itemsize*nChannels*a.shape[1])
return cv_im"

'via Blog this'

PyMedia - Python module for avi, mp3, dvd, wma, ogg processing - pymedia

PyMedia - Python module for avi, mp3, dvd, wma, ogg processing - pymedia: "
is a Python module for wav, mp3, ogg, avi, divx, dvd, cdda etc files manipulations. It allows you to parse, demutiplex, multiplex, decode and encode all supported formats. It can be compiled for Windows, Linux and cygwin.

PyMedia was built to be really simple and flexible at the same time. See tutorial for example. It allows you to create your own mutimedia applications in a matter of minutes and adjust it to your needs using other components. Python language is choosen because of simple semantics, complete and reach set of features.

Take a look at the PyCar application which takes advantage of the PyMedia library extensivelly and can turn your PC into the powerful car media center.

You can download PyMedia here

  "

'via Blog this'

IEEE Xplore - A database for the study of marine mammal behavior: gap analysis, data standardization, and future directions

IEEE Xplore - A database for the study of marine mammal behavior: gap analysis, data standardization, and future directions: "A database for the study of marine mammal behavior: gap analysis, data standardization, and future directions"

'via Blog this'
<a href="http://www.cs.ucr.edu/~eamonn/SDM_insects.pdf">Monitoring and Mining Insect Sounds in Visual Space</a>

'via Blog this'
http://www.cs.ucr.edu/~eamonn/SDM_insects.pdf

'via Blog this'
'via Blog this'

Using org-mode as the ultimate note taking tool (updated) | Da's recipes on Emacs, IT, and more

Using org-mode as the ultimate note taking tool (updated) | Da's recipes on Emacs, IT, and more: "Whenever there is something important to memorize, I always want to write it down. In fact, Emacs org-mode makes the process easy, pleasant, and in an organized manner. I will use an example to explain how Emacs and org fit into my note-taking process.

I have a dedicated folder containing all my notes, and IT, as one of the most important topic, is a sub-folder. Here is the tree structure of the IT folder."

'via Blog this'

559 - The World’s Largest Atlas: Cheers Bests Klencke | Strange Maps | Big Think

559 - The World’s Largest Atlas: Cheers Bests Klencke | Strange Maps | Big Think: "The map is not the territory [1], but this collection gets closer than most [2]. Earth Platinum, published at the end of February in an edition limited to 31 copies, is the world’s largest atlas. The book is 1.8 m (6 ft) high and 1.4 m (4.5 ft) wide. When opened, it spans 2.8 m (9 ft). It contains 128 pages of maps, flags and panoramic photographs, and weighs 150 kg (over 300 lb). It’s the kind of book you can’t read alone: it takes two persons to turn over the gigantic pages.  "

'via Blog this'

Little Big Details

Little Big Details: "Gmail - Typing ? in Gmail (when not in a input field) gives you a cheat sheet of all available key commands.

"

'via Blog this'

Life Lesson of the Day | The Best Article Every Day

Life Lesson of the Day | The Best Article Every Day: "GOOD THINGS COME TO THOSE WHO WAIT

GOOD THINGS COME TO THOSE WHO WORK THEIR ASSES OFF AND NEVER GIVE UP"

'via Blog this'

The Free Universal Construction Kit | F.A.T.

The Free Universal Construction Kit | F.A.T.: "Ever wanted to connect your Legos and Tinkertoys together? Now you can — and much more. Announcing the Free Universal Construction Kit: a set of adapters for complete interoperability between 10 popular construction toys."

'via Blog this'

machine learning - An example using LibSVM in python - Stack Overflow

machine learning - An example using LibSVM in python - Stack Overflow: "import numpy as NP
from svm import *

# just random generate 500 points within a given boundary:
# quite a few real data sets are are provided on the  LIBSVM [website][1]
Data = NP.random.randint(-5, 5, 1000).reshape(500, 2)

# choose some non-linear decision boundary:
# let's say that  for these 500 points, those that lie *within* an arbitrary
# circle (which i define below) are in Class I, and those
# outside this circle are Class II
rx = [ (x**2 + y**2) < 9 and 1 or 0 for (x, y) in Data ]

# to 'svm_problem' i passed in the decision boundary and the data
px = svm_problem(rx, Data)

# the kernel function i have selected is RBF (radial basis function)
pm = svm_parameter(kernel_type=RBF)

# train the classifier
v = svm_model(px, pm)

# now test it by calling 'predict' on the trained model object ('v') :
v.predict([3, 1])
# returns the class label (either '1' or '0')"

'via Blog this'

Gazel | key/value store for the browser

Gazel | key/value store for the browser: " function demo() {
var client = gazel.createClient();

client.on('error', function(err) {
alert('Oh noes!');
});

client.set('Foo', 'bar', gazel.print);

client.multi()
.set('Fee', 1)
.set('Fi', 2)
.set('Fo', 3)
.set('Fum', 4)
.incrby('Fee', 10)
.get('Fee')
.exec(function(results) {
var fee = results.pop()[0];

document.getElementById('fee').textContent = fee;
});
}
"

'via Blog this'

Rest test test...

Rest test test...:

'via Blog this'

Stabyourself.net - Not Tetris 2

Stabyourself.net - Not Tetris 2:

'via Blog this'

Musikmesse Wrap-up, with Keyboard Magazine: The Latest Gear [Gallery, Roland Wireless Vid]

Musikmesse Wrap-up, with Keyboard Magazine: The Latest Gear [Gallery, Roland Wireless Vid]:

'via Blog this'

EmacsWiki: Javascript Shell

EmacsWiki: Javascript Shell: "How about an interactive shell for use within emacs that allows the user to run and execute Javascript? There are a few interactive shells around, built on spidermonkey or Rhino, but this one works on Windows and the built-in Windows Script Host (Cscript.exe) that can run Javascript. It also depends on the Javascript REPL from KobyK. In fact, this elisp code is just an integraiton of kobyk’s work into emacs."

'via Blog this'
'via Blog this'

iOS Web App Icons & Startup Images · taylor.fausak.me

iOS Web App Icons & Startup Images · taylor.fausak.me: "Apple makes it a piece of cake to develop web apps for iOS. Unfortunately, they haven’t updated their web app documentation since October of last year. That wouldn’t be a big deal, but they wrote it before the release of the new iPad. They need to update it to explain how to configure web apps on the new iPad and retina iPhones."

'via Blog this'

Aquarius Horoscope: Daily Overview Horoscope - Astrology on Shine

Aquarius Horoscope: Daily Overview Horoscope - Astrology on Shine: "Your creativity is luminous now, and will be heightened by the beauty of nature."

'via Blog this'

The Game of Distributed Systems Programming. Which Level Are You? « Incubaid Research

The Game of Distributed Systems Programming. Which Level Are You? « Incubaid Research: "When programming distributed systems becomes part of your life, you go through a learning curve. This article tries to describe my current level of understanding of the field, and hopefully points out enough mistakes for you to be able follow the most optimal path to enlightenment: learning from the mistakes of others."

'via Blog this'

Monday, March 26, 2012

Raccoon dog - Wikipedia, the free encyclopedia

Raccoon dog - Wikipedia, the free encyclopedia: "The raccoon dog (Nyctereutes procyonoides, from the Greek words nukt-, "night" + ereutēs, "wanderer" + prokuōn, "before-dog" [but in New Latin used to mean "raccoon"] + -oidēs, "-oid"), also known as the magnut[2] or tanuki, is a canid indigenous to east Asia. It is the only extant species in the genus Nyctereutes. It is considered a basal canid species, resembling ancestral forms of the family. Among the Canidae, the raccoon dog shares the habit of regularly climbing trees only with the North American gray fox, another basal species.[3][4][5] The raccoon dog is named for its resemblance to the raccoon (Procyon lotor), to which it is not closely related."

'via Blog this'

pd1975520.jpg (500×332)



Crab eating fox

Entertainment - Factual

Entertainment - Factual: "Recommended Factual Datasets

American Idol Finalists and Performances
American Idol finalists and their noteworthy songs performed during the competition(99 rows)

Height, Weight, and Body Mass Index
Body stats on celebrities.(550 rows)

List of video games published by Nintendo
Terms: This page contains content from Wikipedia, the free encyclopedia. Wikipedia content is available under the Creative Commons Attribution-ShareAlike 3.0 Unported License and, ...[+](807 rows)

Screenplay URL list
Dataset of screenplays available online, with links.(1K rows)

Video Games & Cheats
Dataset of video games with links to cheat sheets.(66K rows)

Video Games
Dataset of video games on various platforms; includes some data on publisher, ratings, and has links to cheat codes.(76K rows)

iPhone Apps
Dataset of iPhone apps. Long tail attributes include: developer, publisher, release date, price, requirements, and download URL.(100K rows)"

'via Blog this'

Tentsile Treehouse Tents Provide a Safe Haven in the Treetops! | Inhabitat - Green Design Will Save the World

Tentsile Treehouse Tents Provide a Safe Haven in the Treetops! | Inhabitat - Green Design Will Save the World: "Tentsile is a portable habitation unit that can be suspended amidst trees to provide accommodation for three people. With three anchor points and the use of tension instead of poles, the Tentsile is part tent and part hammock. The structure is made from a collapsable frame of webbing straps with fire retardant, UV PU and water resistant polyester fabric infill panels. The three points serve as sleeping chambers and the middle is held in suspension and serves as a vestibule and gathering space. Access is gained via a rope ladder in the middle. It comes in a wide variety of colors and each tent is made by hand and there is also an option to hang the tent with a stand if no trees are available.

"

'via Blog this'

A Large Collection of Useful jQuery Utils | Websanova

A Large Collection of Useful jQuery Utils | Websanova: "jQuery.stop()
This is another little shortcut to prevent event propagation. It accepts options for preventDefault and stopPropgation.
$.stop(event, preventDefault, stopPropagation);

$("#container").click(function(e)
{
$.stop(e, true, true);
});"

'via Blog this'

Kendo UI Mobile

Kendo UI Mobile: "Build HTML5 Apps that Look Native on Any Device.

Kendo UI Mobile features a revolutionary adaptive rendering, which automatically transforms mobile apps to the native look-and-feel of iOS, Android and BlackBerry. Rich HTML5 widgets and a single codebase will target multiple phone and tablet platforms."

'via Blog this'

A Shiny New Me • Bridging The PhoneGap: ChildBrowser Plugin

A Shiny New Me • Bridging The PhoneGap: ChildBrowser Plugin: "PhoneGap wraps your application in a mobile Safari window. But what if you want to open a new window? While we are doing HTML/JavaScript development in PhoneGap, some things do not work. For instance, you cannot simply call…

window.open("http://google.com")

or

View On Reddit
Spawning new windows or redirecting to other content is not OK and doesn’t work they way it does on the web. The reasons for spawning a new window in a web application vary, but consider the following scenarios…

You want to let a user browse a link in your application without actually having to leave your app.
You want to popup a window so they can login to a 3rd party (read Facebook, Twitter) without having to leave your application.
You want to display a PDF document for them to read."

'via Blog this'

What should every programmer know about security? - Stack Overflow

What should every programmer know about security? - Stack Overflow: "Never trust user input!
Validate input from all untrusted sources - use whitelists not blacklists
Plan for security from the start - it's not something you can bolt on at the end
Keep it simple - complexity increases the likelihood of security holes
Keep your attack surface to a minimum
Make sure you fail securely
Use defence in depth
Adhere to the principle of least privilege
Use threat modelling
Compartmentalize - so your system is not all or nothing
Hiding secrets is hard - and secrets hidden in code won't stay secret for long
Don't write your own crypto
Using crypto doesn't mean you're secure (attackers will look for a weaker link)
Be aware of buffer overflows and how to protect against them"

'via Blog this'

Understanding the bin, sbin, usr/bin , usr/sbin split

Understanding the bin, sbin, usr/bin , usr/sbin split: "Of course once the split existed, some people made other rules to justify it.
Root was for the OS stuff you got from upstream and /usr was for your site-
local files. Then / was for the stuff you got from AT&T and /usr was for the
stuff that your distro like IBM AIX or Dec Ultrix or SGI Irix added to it, and
/usr/local was for your specific installation's files. Then somebody decided
/usr/local wasn't a good place to install new packages, so let's add /opt!
I'm still waiting for /opt/local to show up..."

'via Blog this'

My SysAd Blog -- Unix: Z Shell for loop -- UNIX zsh

My SysAd Blog -- Unix: Z Shell for loop -- UNIX zsh: "Using the Bourne shell for loop
# sh
# for i in 1 2 3 4 5 6 7 8 9 10 11 12
do
rcp -p /etc/hosts esoftclient$i:/etc
done"

'via Blog this'

Friday, March 23, 2012

machinelearning123 [licensed for non-commercial use only] / FrontPage

machinelearning123 [licensed for non-commercial use only] / FrontPage: "starting 4/22 at 7pm at Hackerdojo.

This class is based on the Stanford cs229 material developed by Professor Andrew Ng. We have permission to use his materials from the course.

We are trying something things differently to emphasize the work related nature of the student population. We have sponsorship from Amazon for Elastic Map Reduce and AWS so students can implement versions of the algorithms presented in class on a cluster. We should have something to report back to Professor Ng at the end of class. We have a wide variety of people from industry, the goal is SHDH with some structure so people can meet other people to do some cool  machine learning projects. Free compute time"

'via Blog this'

Object-orientation and inheritance in JavaScript: a comprehensive explanation » The Log Book of Manuel Kiessling

Object-orientation and inheritance in JavaScript: a comprehensive explanation » The Log Book of Manuel Kiessling: "Let’s talk about object-orientation and inheritance in JavaScript.

The good news is that it’s actually quite simple, but the bad news is that it works completely different than object-orientation in languages like C++, Java, Ruby, Python or PHP, making it not-quite-so simple to understand.

But fear not, we are going to take it step by step.

"

'via Blog this'

Blast Aliens in Your Browser with Your iOS Trigger Device | Mobile Zone

Blast Aliens in Your Browser with Your iOS Trigger Device | Mobile Zone: "The guys over at WebDigi, a London-based web application development company, has released a demo of Space Invaders Spaceship Pilot, a pretty amazing application that uses iOS devices as the controller for a web browser-based game on your desktop or laptop.  No application is required on the iOS device, you simply scan the QR code with the device and the controller code reads the accelerometer values and sends the movements to the node.js server.
"

'via Blog this'

Old Nabble - SoX - Normalizing to dB FS

Old Nabble - SoX - Normalizing to dB FS: "Without additional parameters, SoX's `norm' effect *does* normalize to 0dB FS.  By convention, in digital audio, normalize means to amplify the audio such that the peak level is at a particular level; almost always, it is 0dB FS -- it cannot be higher; sometimes it might be a few dB lower than 0. "

'via Blog this'

jQuery Mobile Docs - Header Bars

jQuery Mobile Docs - Header Bars: "Making buttons visually stand out

Buttons automatically adopt the swatch color of the bar they sit in, so a link in a header bar with the "a" color will also be styled as "a" colored buttons. It's simple to make a button visually stand out — here, we add the data-theme attribute and set the color swatch for the button to "b" to make the "Save" button pop.


Cancel

Edit Contact

Save
"

'via Blog this'

Chapter 12: Sessions, users, and registration

Chapter 12: Sessions, users, and registration: "Handling registration1
We can use these low-level tools to create views that allow users to sign up. Nearly every developer wants to implement registration differently, so Django leaves writing a registration view up to you; luckily, it’s pretty easy.

At its simplest, we could provide a small view that prompts for the required user information and creates those users. Django provides a built-in form you can use for this purpose, which we’ll use in this example:1

from django import oldforms as forms
from django.http import HttpResponseRedirect
from django.shortcuts import render_to_response
from django.contrib.auth.forms import UserCreationForm

def register(request):
form = UserCreationForm()

if request.method == 'POST':
data = request.POST.copy()
errors = form.get_validation_errors(data)
if not errors:
new_user = form.save()
return HttpResponseRedirect("/accounts/created/")
else:
data, errors = {}, {}

return render_to_response("registration/register.html", {
'form' : forms.FormWrapper(form, data, errors)
})
"

'via Blog this'

User authentication with django-registration | Development Doodles

User authentication with django-registration | Development Doodles: "I also added the following settings:

1
ACCOUNT_ACTIVATION_DAYS = 2
2
EMAIL_HOST = 'localhost'
3
DEFAULT_FROM_EMAIL = 'webmaster@localhost'
4
LOGIN_REDIRECT_URL = '/'
"

'via Blog this'

python - How do I change the django-registration e-mail template "site" name? - Stack Overflow

python - How do I change the django-registration e-mail template "site" name? - Stack Overflow: "Thank you for registering an account at {{ site.domain }}. To activate your registration, please visit the following page:

http://{{ site.domain }}{% url registration_activate activation_key %}

This page will expire in {{ expiration_days }} day{{ expiration_days|pluralize }}."

'via Blog this'

User authentication with django-registration | Development Doodles

User authentication with django-registration | Development Doodles: "login.html — user login form
logout.html — shown after a user has logged out
password_change_form.html — password change form
password_change_done.html — shown after successful password change
password_reset_form.html — ask user for email to send password-reset mail to
password_reset_email.html — template for password-reset mail
password_reset_done.html — shown after password-reset email has been sent
password_reset_confirm.html — ask user for new password after reset
password_reset_complete.html — shown after successful password reset"

'via Blog this'

User authentication with django-registration | Development Doodles

User authentication with django-registration | Development Doodles:

'via Blog this'

Web Type Will Save Us (Or, Who’s Afraid of the Big, Bad Retina Display?) – Jeffrey Zeldman Presents The Daily Report

Web Type Will Save Us (Or, Who’s Afraid of the Big, Bad Retina Display?) – Jeffrey Zeldman Presents The Daily Report: "WITH RETINA DISPLAY technology on the verge of ubiquity and some of today’s best web design minds rightfully fretting about it (see PPK, Stephanie Rieger, Brad Frost, and Stuntbox if you’ve missed this latest Topic Of Concern), it seems to this old web slinger that web type is poised to replace photography as the dominant element of web design aesthetic appeal in the next few years.
After all, responsive web design already called upon us to create and swap multiple versions of the same image. And now Retina Displays reveal the lack of quality in all web images — compelling us, perhaps, to create high-resolution image versions which some users lack the bandwidth to download, and to lather our sites with yet more JavaScript as we try to detect whether or not each user’s device requires a higher-res image (shades of 1999!).

"

'via Blog this'

André Miede :: classicthesis

André Miede :: classicthesis: "This section is devoted to a template bundle which I developed for the typesetting system LaTeX. The first version of the template was released in early 2006. From the feedback and postcards I received so far, it seems to be in heavy use all over the world!
Note: This software is released under the GNU General Public License.
Download classicthesis for LaTeX from CTAN
The current version as well as beta-versions can be found irregularly at classicthesis' Google Code project website.
Download classicthesis for LyX (and LaTeX) from Google Code
A LyX port of classicthesis is maintained by Nick Mariette and Ivo Pletikosić. Thanks, Nick and Ivo!"

'via Blog this'

Thursday, March 22, 2012

python - How do I change the django-registration e-mail template "site" name? - Stack Overflow

python - How do I change the django-registration e-mail template "site" name? - Stack Overflow: "The site object in the template comes from the Django Site model. When you do a syncdb, it defaults automatically to example.com

If you login to Django's admin interface, you will find "Sites". Inside it, you will be able to change example.com to whatever you like."

'via Blog this'

django-registration tutorial | MangoOrange™

django-registration tutorial | MangoOrange™: "urlpatterns = patterns('',
(r'^admin/(.*)', admin.site.root),
(r'^accounts/', include('registration.urls')),
)"

'via Blog this'
"




{% block body %}
{% block content_title %}{% endblock %}
{% block content %}{% endblock %}
{% endblock %}

"

'via Blog this'

python - How to send email via Django? - Stack Overflow

python - How to send email via Django? - Stack Overflow: "I use GMail as my SMTP server for django. Much easier than dealing with postfix or whatever other server. I'm not in the business of managing email servers.

In settings.py:

EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'me@gmail.com'
EMAIL_HOST_PASSWORD = 'password'"

'via Blog this'

Kazimir Majorinc's Lisp Programming Blog.: Few Examples of Lisp Code Typography.

Kazimir Majorinc's Lisp Programming Blog.: Few Examples of Lisp Code Typography.:

'via Blog this'

Django | Logging | Django documentation

Django | Logging | Django documentation: "# import the logging library
import logging

# Get an instance of a logger
logger = logging.getLogger(__name__)

def my_view(request, arg1, arg):
...
if bad_mojo:
# Log an error message
logger.error('Something went wrong!')"

'via Blog this'

CSS/jQuery: make the icon blink - Stack Overflow

CSS/jQuery: make the icon blink - Stack Overflow: "A simple jquery like this would do it:

function blink(){
    $('.iconPM').delay(100).fadeTo(100,0.5).delay(100).fadeTo(100,1, blink);
}

$(document).ready(function() {
    blink();
});"

'via Blog this'

InfoQ: Ember.js: Rich Web Applications Done Right

InfoQ: Ember.js: Rich Web Applications Done Right: "Although Ember.js has the same roots as SproutCore, with a similar object-model and template-model, Ember.js has a very different view of the world than SproutCore has. In many ways SproutCore aims to hide away HTML and CSS code for the developer, while Ember.js has HTML and CSS at the core of the development model. The advantage of the SproutCore model is that it will be easier to support a different target rendering platform in the future (like the HTML5 Canvas element), or even a native application deployment. This is a very nice idea, but just as the JavaServer Faces (JSF) project I have not seen a single application that targets anything but HTML, CSS and JavaScript."

'via Blog this'

Google Guava BloomFIlter

Google Guava BloomFIlter: "BloomFilter Crash Course

BloomFilters are essentially bit vectors. At a high level BloomFilters work in the following manner:
Add the element to the filter.
Hash it a few times, than set the bits to 1 where the index matches the results of the hash.
When testing if an element is in the set, you follow the same hashing procedure and check if the bits are set to 1 or 0. This process is how a BloomFilter can guarantee an element does not exist. If the bits aren’t set, it’s simply impossible for the element to be in the set. However, a positive answer means the element is in the set or a hashing collision occurred. A more detaild description of a BloomFilter can be found here and a good tutorial on BloomFilters here. According to wikipedia, Google uses BloomFilters in BigTable to avoid disk lookups for non-existent items. Another interesting usage is using a BloomFilter to optimize a sql querry."

'via Blog this'

How does a mutex work? What does it cost? « Musing Dragoman

How does a mutex work? What does it cost? « Musing Dragoman: "What is a mutex?

A mutex, in its most fundamental form, is just an integer in memory. This memory can have a few different values depending on the that state of the mutex. Though usually when we speak of mutexes we also talk of the locks which use the mutex. The integer in memory is not very interesting, but the operations around it are.

There are two fundamental operations which a mutex must provide to be useful:

lock
unlock
unlock is a simple case since it’s usually just one function. Unlocking a mutex makes it available for another process to lock. lock on the other hand usually has several variants. In most cases we’d like to wait until we can lock the mutex, so the most common lock operation does exactly this. Other users may wish to only wait for a given period of time, and yet some other users may not want to wait at all. Thus lock has a few variants, all of which have the goal to lock the mutex."

'via Blog this'

Styleguide - JavaScript

Styleguide - JavaScript: "0. Overview
1. Behaviors
2. Events
JavaScript Styleguide
To be fleshed out.

Coding Style
CoffeeScript

Write new JS in CoffeeScript.
Use soft-tabs with a two space indent.
Always use camelCase, never underscores.
Use implicit parentheses when possible.
Follow @jashkenas's style. See the documentation for good examples.
Any top level objects should be namespaced under the GitHub namespace.
Don't ever use $.get or $.post. Instead use $.ajax and provide both a success handler and an error handler.
Use $.fn.on instead of $.fn.bind, $.fn.delegate and $.fn.live.
Existing JavaScript

Avoid adding new .js files.
Use soft-tabs with a two space indent.
Do your best to never use a semicolon. This means avoiding them at line breaks and avoiding multi-statement lines. For more info, read Mislav's blog post."

'via Blog this'

Wednesday, March 21, 2012

Keeping Server and Client Separate :: nklein software

Keeping Server and Client Separate :: nklein software: "Some projects deal with this situation by making every message have its own data class. You take all of the information that you want to be in the message and plop it into a data class. You then serialize the data class and send the resulting bytes. The other side unserializes the bytes into a data class and plucks the data out of the data class."

'via Blog this'

Keeping Server and Client Separate :: nklein software

Keeping Server and Client Separate :: nklein software: "Some projects deal with this situation by making every message have its own data class. You take all of the information that you want to be in the message and plop it into a data class. You then serialize the data class and send the resulting bytes. The other side unserializes the bytes into a data class and plucks the data out of the data class."

'via Blog this'

How to disable bold (font weight) globally in emacs? - Stack Overflow

How to disable bold (font weight) globally in emacs? - Stack Overflow: "Another possibility, which also deals with underlines, would be to evaluate the following snippet in a running Emacs session:

(mapc
(lambda (face)
(set-face-attribute face nil :weight 'normal :underline nil))
(face-list))
"

'via Blog this'

Survey: Android programmers shifting toward Web apps | Deep Tech - CNET News

Survey: Android programmers shifting toward Web apps | Deep Tech - CNET News: "Android is gradually slipping down mobile programmers' priority list, with Web apps stepping in to as an answer to development difficulties, a survey released today concludes.
"

'via Blog this'

jeromeetienne/jquery-qrcode

jeromeetienne/jquery-qrcode: "jquery.qrcode.js is jquery plugin for a pure browser qrcode generation. It allow you to easily add qrcode to your webpages. It is standalone, less than 4k after minify+gzip, no image download. It doesnt rely on external services which go on and off, or add latency while loading. It is based on a library which build qrcode in various language. jquery.qrcode.js wraps it to make it easy to include in your own code."

'via Blog this'

jeromeetienne/jquery-qrcode

jeromeetienne/jquery-qrcode:

'via Blog this'

Tuesday, March 20, 2012

Tipper Music

Tipper Music:

'via Blog this'

jQuery.post() – jQuery API

jQuery.post() – jQuery API: "Example: Request the test.php page and send some additional data along (while still ignoring the return results).
$.post("test.php", { name: "John", time: "2pm" } );"

'via Blog this'

The Status of the P Versus NP Problem | September 2009 | Communications of the ACM

The Status of the P Versus NP Problem | September 2009 | Communications of the ACM: "When editor-in-chief Moshe Vardi asked me to write this piece for Communications, my first reaction was the article could be written in two words:

Still open.

When I started graduate school in the mid-1980s, many believed that the quickly developing area of circuit complexity would soon settle the P versus NP problem, whether every algorithmic problem with efficiently verifiable solutions have efficiently computable solutions. But circuit complexity and other approaches to the problem have stalled and we have little reason to believe we will see a proof separating P from NP in the near future."

'via Blog this'

CodeBook

CodeBook:

'via Blog this'

Hacker Time - the first 3 months - SoundCloud Backstage SoundCloud Backstage

Hacker Time - the first 3 months - SoundCloud Backstage SoundCloud Backstage: "Instasound lets you record your sounds, apply a range of filters in real time, and instantly share to SoundCloud – video
Large Hadron Migrator – a tool to migrate database tables online without downtime
HyperSpec – HyperSpec provides a Ruby DSL for testing HTTP APIs from the “outside”
Story Wheel lets you record a story around your Instagram pictures and share it on the web as a nostalgic slideshow.
Massive Site Map – a ruby gem to build painfree google sitemaps for webpages with millions of pages. Differential updates keep generation time short and reduces load on DB.
KDD Cup 2012 – a team of 5 SoundCloud engineers is participating
Some engineers are taking online courses from Stanford, e.g. the machine learning online course"

'via Blog this'

An unlimited budget is almost as bad as no budget | Atomic Spin

An unlimited budget is almost as bad as no budget | Atomic Spin: "The worst possible budget for a project is zero. If you have no funds or no time, you have no power to build anything worthwhile. That’s not a surprise to anyone – no one likes working under absurd constraints.

The second worst possible budget is unlimited.


Reasonable constraints provide guidance. They help you narrow your focus and and work on the things that really matter. A well-considered constraint can be a road map for your project: Even if you know where you’re going, the map can help you measure the distance and figure out if you’ll have enough gas in the tank for that side trip you were thinking about."

'via Blog this'

Why is the DOS path character "\"? - Larry Osterman's WebLog - Site Home - MSDN Blogs

Why is the DOS path character "\"? - Larry Osterman's WebLog - Site Home - MSDN Blogs: "Here's a little known secret about MS-DOS.  The DOS developers weren't particularly happy about this state of affairs - heck, they all used Xenix machines for email and stuff, so they were familiar with the *nix command semantics.  So they coded the OS to accept either "/" or "\" character as the path character (this continues today, btw - try typing "notepad c:/boot.ini"  on an XP machine (if you're an admin)).  And they went one step further.  They added an undocumented system call to change the switch character.  And updated the utilities to respect this flag.

And then they went and finished out the scenario:  They added a config.sys option, SWITCHAR= that would let you set the switch character to "-".

Which flipped MS-DOS into a *nix style system where command lines used "-switch", and paths were / delimited.

"

'via Blog this'

Filtering the Stack Trace From Hell | Javalobby

Filtering the Stack Trace From Hell | Javalobby:

'via Blog this'

c++ - What Does {0} Mean in C? - Stack Overflow

c++ - What Does {0} Mean in C? - Stack Overflow: "One thing to be aware of is that this technique will not set padding bytes to zero. For example:

struct foo
{
    char c;
    int  i;
};

foo a = {0};
Is not the same as:

foo a;
memset(&a,0,sizeof(a));
In the first case, pad bytes between c and i are uninitialized. Why would you care? Well, if you're saving this data to disk or sending it over a network or whatever, you could have a security issue."

'via Blog this'

Hexagame, Open Source HTML5 Word Puzzle Game

Hexagame, Open Source HTML5 Word Puzzle Game:

'via Blog this'

Monday, March 19, 2012

xtk/X

xtk/X:

'via Blog this'

Position Absolute, web apps and front-end stuff - Introduction to the HTML5 audio tag javascript manipulation «

Position Absolute, web apps and front-end stuff - Introduction to the HTML5 audio tag javascript manipulation «: "Stop a song

audioElement.pause();"

'via Blog this'

The Little Chord Chart

The Little Chord Chart:

'via Blog this'

Coding reinvented on the iPad, edit the parse tree

Coding reinvented on the iPad, edit the parse tree: "My solution, as you can see in the video above, is to edit the parse tree. Editing source code character by character is a concept wedded to the keyboard and after discarding it, my iPad source code editor came together fast. Rather than manipulating ranges of characters I have built an editor solely focussed on selecting, creating and moving syntax elements.

"

'via Blog this'

Friday, March 16, 2012

Blue Play Button clip art - vector clip art online, royalty free & public domain

Blue Play Button clip art - vector clip art online, royalty free & public domain:

'via Blog this'

jQuery Scroll Path

jQuery Scroll Path:

'via Blog this'

chartjunk: a font for quickly making sparklines in your page

chartjunk: a font for quickly making sparklines in your page: "Chartjunk is a webfont, a small piece of javascript to junkify inline data-series, and an actual ufo/otf file you can extend or do whatever you'd like.

If you're into it, you could fork this project on github

You don't need to use this, i don't know your life, but if this is something you're into then by all means.

"

'via Blog this'

Thursday, March 15, 2012

Calendar Heatmaps to Visualize Time Series Data

Calendar Heatmaps to Visualize Time Series Data: "The familiar but underused layout is a good way to look at patterns over time. This tutorial gives you an easy way to make them and guides you through the code so you can adapt it to your needs."

'via Blog this'

MySQLdb User's Guide

MySQLdb User's Guide: "unix_socket
location of UNIX socket. Default: use default location or TCP for remote hosts.
"

'via Blog this'

Made of Bugs » Why node.js is cool (it’s not about performance)

Made of Bugs » Why node.js is cool (it’s not about performance): "Enter node.js
node.js solves this problem, somewhat paradoxically by reducing the number of options available to developers. By having a built-in event loop, and by making that event loop the default way to accomplish virtually anything at all (e.g. all of the builtin IO functions work asynchronously on the same event loop), node.js provides a very strong pressure to write networked code in a certain way. The upshot of this pressure is that, since essentially every node.js library works this way, you can pick and choose arbitrary node.js libraries and combine them in the same program, without even having to think about the fact that you’re doing so."

'via Blog this'

jQuery Mobile Docs - Button icons

jQuery Mobile Docs - Button icons: "Adding Icons to Buttons
The jQuery Mobile framework includes a selected set of icons most often needed for mobile apps. To minimize download size, jQuery Mobile includes a single white icon sprite, and automatically adds a semi-transparent black circle behind the icon to ensure that it has good contrast on any background color.

An icon can be added to a button by adding a data-icon attribute on the anchor specifying the icon to display. For example, the following markup:"

'via Blog this'

CSS-Guidelines/CSS Guidelines.md at master · csswizardry/CSS-Guidelines

CSS-Guidelines/CSS Guidelines.md at master · csswizardry/CSS-Guidelines: "Syntax and formatting

We use multi-line CSS to help with version control (diffing single line CSS is a nightmare) and we order CSS declarations by relevance, not alphabetically.

We use hyphen delimited, lowercase selectors: .thisIsBad{}, .this_is_also_bad{} but .this-is-correct{}.

Always use a trailing semi-colon on the last declaration in a ruleset to avoid any potential confusion and syntax errors over the life of the document."

'via Blog this'

Quick Start · pivotal/jasmine Wiki

Quick Start · pivotal/jasmine Wiki: "For JavaScript-only projects:
Get the latest standalone release from the downloads page.
Copy lib/jasmine-core/example/SpecRunner.html from this repo and modify script links to your own spec and src files.
Open SpecRunner.html in your favorite browser.
"

'via Blog this'

backbone-localstorage.js

backbone-localstorage.js: "backbone-localstorage.js


A simple module to replace Backbone.sync with localStorage-based persistence. Models are given GUIDS, and saved into a JSON object. Simple as that."

'via Blog this'

jeromegn/Backbone.localStorage

jeromegn/Backbone.localStorage: "Include Backbone.localStorage after having included Backbone.js:



Create your collections like so:"

'via Blog this'

HTML5 localStorage – Part One « PaperKilledRock.com

HTML5 localStorage – Part One « PaperKilledRock.com: "Can’t get much easier then that. Line 1 saves a new entry in the local database with the key of ‘name’ and the value of ‘Hello World!’. That pair is now stored in your browsers database. Line 2 gets the item from the database with the key of ‘name’. In this case would then return ‘Hello World!’. In line 3 we remove the item from the database. Due to browser specific quotas you would want to check for exceptions so you would change line 1 above to the following."

'via Blog this'

Local Storage - Dive Into HTML5

Local Storage - Dive Into HTML5: "A BRIEF HISTORY OF LOCAL STORAGE HACKS BEFORE HTML5

In the beginning, there was only Internet Explorer. Or at least, that’s what Microsoft wanted the world to think. To that end, as part of the First Great Browser Wars, Microsoft invented a great many things and included them in their browser-to-end-all-browser-wars, Internet Explorer. One of these things was called DHTML Behaviors, and one of these behaviors was called userData.

"

'via Blog this'

jQuery Mobile Docs - Events

jQuery Mobile Docs - Events: "Important: Use pageInit(), not $(document).ready()

The first thing you learn in jQuery is to call code inside the $(document).ready() function so everything will execute as soon as the DOM is loaded. However, in jQuery Mobile, Ajax is used to load the contents of each page into the DOM as you navigate, and the DOM ready handler only executes for the first page. To execute code whenever a new page is loaded and created, you can bind to the pageinit event. This event is explained in detail at the bottom of this page."

'via Blog this'

jQuery Mobile Docs - Scripting pages

jQuery Mobile Docs - Scripting pages: "Scripting pages in jQuery Mobile
Since jQuery Mobile uses an Ajax-powered navigation system, there are a few helpful things to know when writing scripts that manipulate your content. You can explore the mobile API in more detail by reading up on global configuration options, events, and methods or dig into the technical details of the Ajax navigation model.

"

'via Blog this'

Events

Events: "jQuery Mobile offers several custom events that build upon native events to create useful hooks for development. Note that these events employ various touch, mouse, and window events, depending on event existence, so you can bind to them for use in both handheld and desktop environments. You can bind to these events like you would with other jQuery events, using live() or bind().

"

'via Blog this'

Lawnchair: Simple JSON Storage

Lawnchair: Simple JSON Storage: "a lawnchair is sorta like a couch except smaller and outside. perfect for html5 mobile apps that need a lightweight, adaptive, simple and elegant persistence solution.

collections. a lawnchair instance is really just an array of objects.
adaptive persistence. the underlying store is abstracted behind a consistent interface.
pluggable collection behavior. sometimes we need collection helpers but not always."

'via Blog this'

Lisp, the Universe and Everything: Lisp Hackers: Edi Weitz

Lisp, the Universe and Everything: Lisp Hackers: Edi Weitz: "Well, I'll leave it to someone else to tell you what's interesting about me. I'll rather tell you what I find interesting in addition to Common Lisp: I collect photo books and I'm doing a bit of photography myself. I like to listen to the music of Frank Zappa and to Jazz. I read a lot. I'm interested in mathematics, especially in set theory."

'via Blog this'

How to Interview an Engineer for your Startup – TK's weblog

How to Interview an Engineer for your Startup – TK's weblog: "I think hiring Engineers is even harder. I personally had to go through the Gnomes problem while at Plaxo and logic problems while interviewing for an internship at Goldman (wth was I thinking), and I hated every minute of it."

'via Blog this'

jQuery.dotdotdot, advanced cross-browser ellipsis for multiple line content.

jQuery.dotdotdot, advanced cross-browser ellipsis for multiple line content.: "See how it uses an ellipsis to indicate that there is more text than currently visible?
Isn't that awesome? It's like using overflow: hidden; But PRO-style!
View javascript />"

'via Blog this'

Chromium Blog: Meet the Web Platform Again for the First Time

Chromium Blog: Meet the Web Platform Again for the First Time: "
So I pulled together a few of my favorite examples from the cutting edge of the web platform and recorded three screencasts to help my friend—and others—meet the web platform again for the first time."

'via Blog this'

Wednesday, March 14, 2012

Buddhist rule re: Worrying. | elephant journal

Buddhist rule re: Worrying. | elephant journal:

'via Blog this'

<img src="http://images.elephantjournal.com/wp-content/uploads/2009/08/Screen-shot-2011-04-29-at-10.20.37-AM.png">

12 Awesome jQuery Selector Extensions | Websanova

12 Awesome jQuery Selector Extensions | Websanova: "$.extend($.expr[':'],
{
selectorName: function(el, i, m)
{
return true/false;
},

selectorName2: function(el, i, m)
{
return true/false;
}
});"

'via Blog this'

javascript - Backbone.js able to do rest and localstorage? - Stack Overflow

javascript - Backbone.js able to do rest and localstorage? - Stack Overflow: "Backbone.localStorage is an external file you can use which overwrites Backbone.Sync.

You can use simple feature detection for whether the user is offline or online and then asynchronously load Backbone.localStorage.js if they are offline.

If neccesary you can also pass in a specific version of Backbone.sync to your models and collections.

If you want to do both at the same time you'll have to write your own version of Backbone.sync that both calls the server and calls localStorage.

The easiest way to do this is to just define

Backbone.sync = function() {
    originalSync.apply(this, arguments);
    localStorageSync.apply(this, arguments);
}
Edit:

As mentioned in the comments, if you use the latest backbone localStorage plugin then you can do the following

Backbone.sync = function Sync() {
    Backbone.ajaxSync.apply(this, arguments);
    return Backbone.localSync.apply(this, arguments);
};"

'via Blog this'

Lawnchair: Simple JSON Storage

Lawnchair: Simple JSON Storage: "a lawnchair is sorta like a couch except smaller and outside. perfect for html5 mobile apps that need a lightweight, adaptive, simple and elegant persistence solution.

collections. a lawnchair instance is really just an array of objects.
adaptive persistence. the underlying store is abstracted behind a consistent interface.
pluggable collection behavior. sometimes we need collection helpers but not always."

'via Blog this'

Introduction to Using Chart Tools - Google Chart Tools - Google Code

Introduction to Using Chart Tools - Google Chart Tools - Google Code: "Google Chart Tools provide a perfect way to visualize data on your website. From simple line charts to complex hierarchical tree maps, the chart galley provides a large number of well-designed chart types. Populating your data is easy using the provided client- and server-side tools.
A chart depends on the following building blocks:"

'via Blog this'

Quick Start - Google Chart Tools - Google Code

Quick Start - Google Chart Tools - Google Code:

'via Blog this'

FileWriter iPhone - phonegap | Google Groups

FileWriter iPhone - phonegap | Google Groups: "Thank you, that answers my question!!!
The FileWriter and the FileWriter are very cool, I will use that for
backup lot of stuff..
Question..Do you know the maximum file size for a .txt file in the
Library folder ?

       Report spam

Shazron Abdullah  
View profile
 More options Sep 1 2010, 7:50 pm
Don't think there's a quota per app -- as much as your device as space, is my guess.
On 2010-09-01, at 7:28 PM, Maxime wrote:

- Show quoted text -"

'via Blog this'

html5 - Limit of localstorage on iPhone? - Stack Overflow

html5 - Limit of localstorage on iPhone? - Stack Overflow: "Mobile Safari on the iPhone and iPad will hold 5MB before throwing a QUOTA_EXCEEDED_ERR when using localStorage. If you're using HTML5 SQL, the user will be prompted at 5MB intervals to increase the storage limit.

Desktop Safari v4 does not have a limit, afaik, on localStorage. Safari v5, however, limits the site to 5MB before throwing a QUOTA_EXCEEDED_ERR, exhibiting the same behavior as the mobile version."

'via Blog this'

Local Storage - Dive Into HTML5

Local Storage - Dive Into HTML5: "“QUOTA_EXCEEDED_ERR” is the exception that will get thrown if you exceed your storage quota of 5 megabytes. “No” is the answer to the next obvious question, “Can I ask the user for more storage space?” At time of writing (February 2011), no browser supports any mechanism for web developers to request more storage space. Some browsers (like Opera) allow the user to control each site’s storage quota, but it is purely a user-initiated action, not something that you as a web developer can build into your web application."

'via Blog this'

Is localStorage reliable on an iPad? - Stack Overflow

Is localStorage reliable on an iPad? - Stack Overflow: "I've been working on a project that uses localStorage on an iPad. In my experience, the localStorage is perfectly stable. However, there are two things to consider:

Yes, the storage-limit is still 5Mb. Since characters are stored UTF16, only 2.5M characters can be stored in localStorage."

'via Blog this'

ipad - SQLite database on PhoneGap / iOS - More than 5mb possible - Stack Overflow

ipad - SQLite database on PhoneGap / iOS - More than 5mb possible - Stack Overflow: "You can use a native SQLite DB (same as WebSQL) with a phonegap plugin, and you will not have any limitation. In iOS5.1, WebSQL is considered temporary data that can be deleted at any time...That plugin save the database in the Document folder, that mean that the DB is not deleted and is saved by iCloud.

Here is the Native SQLite phonegap plugin : https://github.com/davibe/Phonegap-SQLitePlugin Regarding this plugin, there are some differences between the WebSQL API, here is an adaptor: https://gist.github.com/2009518

You should also migrate the old WebSQL db file (stored in Library/WebKit or Caches directory) to the Document folder. Here is a code to do that : https://gist.github.com/2009491

And if the data are important, you should save it to a server. I wrote a small lib to synchronize the SQlite DB to a server : https://github.com/orbitaloop/WebSqlSync"

'via Blog this'

Zsh Tips, Tricks and Examples by zzapper

Zsh Tips, Tricks and Examples by zzapper: "!^ (first previous parameter)"

'via Blog this'

This is so useful, I just learned this today "!^"

I always go !$ and then press tab in zsh to get the last parameter, but had missed !^, which is the second last parameter, which is useful when you do something like "evince book.pdf &"

Distributed Sensemaking: Improving Sensemaking by Leveraging the Efforts of Previous Users | Follow the Crowd

Distributed Sensemaking: Improving Sensemaking by Leveraging the Efforts of Previous Users | Follow the Crowd: "Put simply, if a few other users have already sifted through some information on a topic and found a way to make sense of it, can having access to the output of this distributed sensemaking save me time and result in higher-quality sensemaking? Alternatively, is it more trouble to try to sort through the sensemaking efforts of others?"

'via Blog this'

APOD: 2012 March 14 - Angry Sun Erupting

APOD: 2012 March 14 - Angry Sun Erupting:

'via Blog this'

<img src="http://apod.nasa.gov/apod/image/1203/angrysun_friedman_960.jpg">

Tuesday, March 13, 2012

jQuery Mobile: Stick footer to bottom of page - Stack Overflow

jQuery Mobile: Stick footer to bottom of page - Stack Overflow: "
7
down vote
accepted
You can add this in your css file:

[data-role=page]{height: 100% !important; position:relative !important;}
[data-role=footer]{bottom:0; position:absolute !important; top: auto !important; width:100%;}
So the page data-role now have 100% height, and footer is in absolute position"

'via Blog this'

javascript - Backbone.js able to do rest and localstorage? - Stack Overflow

javascript - Backbone.js able to do rest and localstorage? - Stack Overflow: "As mentioned in the comments, if you use the latest backbone localStorage plugin then you can do the following

Backbone.sync = function Sync() {
    Backbone.ajaxSync.apply(this, arguments);
    return Backbone.localSync.apply(this, arguments);
};"

'via Blog this'

Jquery Mobile - Slow with page transitions - Stack Overflow

Jquery Mobile - Slow with page transitions - Stack Overflow: "
2
down vote
I was facing the same problem. Disabling the fancy screen transitions fixed it for me.

To do this universally:

$.mobile.defaultPageTransition = 'none';
link|improve this answer"

'via Blog this'

jQuery Mobile blinking at page transitions on iPad - Stack Overflow

jQuery Mobile blinking at page transitions on iPad - Stack Overflow: "
i had exactly the same problem

http://mailinglist-archive.com/rhomobile/2011-08/00656-Re+rhomobile+page+views+and+transitions mentions something that worked for me.

"

'via Blog this'

iphone - Disable auto-rotate in Jquery Mobile or PhoneGap - Stack Overflow

iphone - Disable auto-rotate in Jquery Mobile or PhoneGap - Stack Overflow: "On iPhone add this to -info.plist:


`.....
   
        UIInterfaceOrientationPortrait
        UIInterfaceOrientationPortraitUpsideDown
   
..........
"

'via Blog this'

Launching Your Own Application via a Custom URL Scheme

Launching Your Own Application via a Custom URL Scheme: "One of the coolest features of the iPhone SDK is an application’s ability to “bind” itself to a custom URL scheme and for that scheme to be used to launch itself from either a browser or from another application on the iPhone. Creating this kind of binding is so simple, its almost criminal not to use it in your application!"

'via Blog this'

Mailing List | Gamification Research Network

Mailing List | Gamification Research Network: "To make it easier to share information, discuss key research concerns and network with similarly-minded scholars, we have set up a mailing list with Google Groups. The group is private, but open to subscription by anyone interested in studying the use of game design elements in non-game contexts. So if that fits your bill, please join! (Upon subscription, you will be asked to briefly state your research involvement in the topic.)"

'via Blog this'

Made of Bugs » Why node.js is cool (it’s not about performance)

Made of Bugs » Why node.js is cool (it’s not about performance): "node.js is cool because it solves a problem shared by virtually every mainstream language. That problem is the fact that, as long as “ordinary” blocking code is the default, it is difficult and unnatural to write networked code in a way that it can be combined with other network code, while allowing them to interact."

'via Blog this'

Three.js Tetris tutorial : Smashinglabs

Three.js Tetris tutorial : Smashinglabs:

'via Blog this'

html5 - Why doesn't Firefox support mp3 file format in

html5 - Why doesn't Firefox support mp3 file format in <audio> - Stack Overflow: "Licensing issues: HTML5 video and H.264 – what history tells us and why we’re standing with the web and Mozilla defends Firefox's HTML5 support for only Ogg Theora video (despite their titles, they both also talk about MP3 licensing, albeit briefly).

All you can do is fall back to Flash and play them through that."

'via Blog this'

WebAPI tech lead: ‘We want Web pages to be able to access hardware on your computer, like camera, sensors and haptic feedback’ ✩ Mozilla Hacks – the Web developer blog

WebAPI tech lead: ‘We want Web pages to be able to access hardware on your computer, like camera, sensors and haptic feedback’ ✩ Mozilla Hacks – the Web developer blog: "Jonas – Exactly. The world is going mobile. More and more people are getting smartphones and very soon the number of smartphones in the world is going to vastly outnumber the number of desktop and laptop computers. We need to ensure that when this happens the web remains open and that you’re not forced to interact with it through apps running on proprietary stacks. I have a lot of faith that the web will be able to stand strong and remain open. Just how open depends on how successful we will be competing with these proprietary stacks. There’s a lot of similarities with the push we did for web standards back when Microsoft weren’t that interested in following them. The goal is to have an open standardized platform that works great for users and developers. The mobile platform should be no less open."

'via Blog this'

Understanding What It's Like to Program in Forth

Understanding What It's Like to Program in Forth: ": vadd ( v1 v2 v2 -- )
>r
over 1st @ over 1st @ + r@ 1st !
over 2nd @ over 2nd @ + r@ 2nd !
over 3rd @ over 3rd @ + r@ 3rd !
rdrop drop drop ;
And that's it--three element vector addition in Forth."

'via Blog this'


ouch.

Friday, March 09, 2012

YaKit Client

YaKit Client:

'via Blog this'

DailyJS: A JavaScript Blog

DailyJS: A JavaScript Blog: " Luca

Luca.JS (GitHub: http://datapimp.github.com/luca/) by Jonathan Soeder is a library for Backbone.js that provides augmented View and Collection classes:

Luca [includes] best practices and optimizations that I have personally come up with developing some rather large Backbone.js apps. It assumes a style of progamming very similar to ExtJS where you define almost all of your views and components as large nested JSON structures.

Luca is built on Twitter’s Bootstrap CSS, and includes CoffeeScript examples. It’s initially distributed as a Ruby library for Rails projects. The author is planning to add JavaScript examples and distribute an alternate version through npm in the future.

Regardless, it may provide some inspiration for those who want to further their Backbone.js knowledge."

'via Blog this'

How to Make an Excel 2007 Scatterplot with Groups - YouTube

How to Make an Excel 2007 Scatterplot with Groups - YouTube: ""

'via Blog this'

Thursday, March 08, 2012

python - Django : CSRF verification failed even after adding {% csrf_token %} - Stack Overflow

python - Django : CSRF verification failed even after adding {% csrf_token %} - Stack Overflow: "return render_to_response('index.html', {}, context_instance=RequestContext(request) )


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

'via Blog this'

Department Colloquium - William Sethares

Department Colloquium - William Sethares: "William Sethares (U. Wisconsin) will be giving a colloquium talk on Topology of Musical Data Thursday, March 8 at 3:30 pm in SSM A104. Everyone is welcome.

Abstract: Techniques for discovering topological structures in large data sets are now becoming practical. This talk argues why the musical realm is a particularly promising arena in which to expect to find nontrivial topological features. The analysis is able to recover three important topological features in music: the circle of notes, the circle of fifths, and the rhythmic repetition of timelines, often pictured in the necklace notation.

 "

'via Blog this'

Dafnis Prieto on The Clave and Basic Elements of Latin Rhythm - YouTube

Dafnis Prieto on The Clave and Basic Elements of Latin Rhythm - YouTube: ""

'via Blog this'

Serving Django Admin Static Media Files with Apache WSGI on Ubuntu « Videntity's Blog:

Serving Django Admin Static Media Files with Apache WSGI on Ubuntu « Videntity's Blog:: "Just add the line:

Alias /media/ /var/www/media/"

'via Blog this'

Welcome - coding conduct

Welcome - coding conduct: "Welcome
to the online portfolio of researcher and UX designer Sebastian Deterding, working on persuasive and gameful design (or »gamification«). Please, feel at home and do have a look around. Got a question? Want to work with me? I'd love to hear from you, so get in touch. Cheers.
"

'via Blog this'

Amy Jo Kim - Wikipedia, the free encyclopedia

Amy Jo Kim - Wikipedia, the free encyclopedia: "Amy Jo Kim is an American author and researcher on the subject of online communities. She is noted for her influential conceptual frameworks for online communities, in particular the Membership Lifecycle that was presented in her 2000 book, Community Building on the Web,[1] a design handbook for networked communities. It is considered to be a "cult classic" (available in seven languages) and has become required reading in game design studios and university classes worldwide.[2]"

'via Blog this'

Clave (rhythm) - Wikipedia, the free encyclopedia

Clave (rhythm) - Wikipedia, the free encyclopedia: "The clave rhythmic pattern is used as a tool for temporal organization in Afro-Cuban music, such as rumba, conga de comparsa, son, son montuno, mambo, salsa, Latin jazz, songo and timba. The five-stroke clave pattern represents the structural core of many Afro-Cuban rhythms.[1] Just as a keystone holds an arch in place, the clave pattern holds the rhythm together in Afro-Cuban music.[2] "

'via Blog this'

Design and Analysis of Algorithms I

Design and Analysis of Algorithms I: "In this course you will learn several fundamental principles of algorithm design. You'll learn the divide-and-conquer design paradigm, with applications to fast sorting, searching, and multiplication. You'll learn several blazingly fast primitives for computing on graphs, such as how to compute connectivity information and shortest paths. Finally, we'll study how allowing the computer to "flip coins" can lead to elegant and practical algorithms and data structures. Learn the answers to questions such as: How do data structures like heaps, hash tables, bloom filters, and balanced search trees actually work, anyway? How come QuickSort runs so fast? What can graph algorithms tell us about the structure of the Web and social networks? Did my 3rd-grade teacher explain only a suboptimal algorithm for multiplying two numbers?

"

'via Blog this'

Design and Analysis of Algorithms I

Design and Analysis of Algorithms I: "In this course you will learn several fundamental principles of algorithm design. You'll learn the divide-and-conquer design paradigm, with applications to fast sorting, searching, and multiplication. You'll learn several blazingly fast primitives for computing on graphs, such as how to compute connectivity information and shortest paths. Finally, we'll study how allowing the computer to "flip coins" can lead to elegant and practical algorithms and data structures. Learn the answers to questions such as: How do data structures like heaps, hash tables, bloom filters, and balanced search trees actually work, anyway? How come QuickSort runs so fast? What can graph algorithms tell us about the structure of the Web and social networks? Did my 3rd-grade teacher explain only a suboptimal algorithm for multiplying two numbers?

"

'via Blog this'

Wednesday, March 07, 2012

Self-determination theory - Wikipedia, the free encyclopedia

Self-determination theory - Wikipedia, the free encyclopedia: "Self-determination theory ("SDT") is a macro theory of human motivation and personality, concerning people's inherent growth tendencies and their innate psychological needs. It is concerned with the motivation behind the choices that people make without any external influence and interference. SDT focuses on the degree to which an individual’s behavior is self-motivated and self-determined.[1]"

'via Blog this'

EBSCOhost: Self-determination theory and the facilitation of intrinsic motivation, soc...

EBSCOhost: Self-determination theory and the facilitation of intrinsic motivation, soc...:

'via Blog this'

Amy Jo Kim - Wikipedia, the free encyclopedia

Amy Jo Kim - Wikipedia, the free encyclopedia:

'via Blog this'