Older blog entries for sness (starting at number 3986)

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'

Syndicated 2012-03-15 15:55:00 from sness

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'

Syndicated 2012-03-15 15:55:00 from sness

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'

Syndicated 2012-03-15 15:55:00 from sness

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'

Syndicated 2012-03-15 15:54:00 from sness

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'

Syndicated 2012-03-15 15:54:00 from sness

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'

Syndicated 2012-03-15 15:54:00 from sness

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'

Syndicated 2012-03-15 15:54:00 from sness

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'

Syndicated 2012-03-15 15:54:00 from sness

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'

Syndicated 2012-03-15 15:53:00 from sness

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'

Syndicated 2012-03-15 15:53:00 from sness

3977 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!