Older blog entries for sness (starting at number 4136)

tiagoft / pytroll / overview — Bitbucket

tiagoft / pytroll / overview — Bitbucket: "tiagoft / pytroll
create pull request
This is the ugly, yet powerful beast of transcription of music!
Clone this repository (size: 33.9 KB): HTTPS / SSH
git clone https://sness@bitbucket.org/tiagoft/pytroll.git"

'via Blog this'

Syndicated 2012-04-12 17:42:00 from sness

jquery - Click event called twice on touchend in iPad - Stack Overflow

jquery - Click event called twice on touchend in iPad - Stack Overflow: "var isIOS = ((/iphone|ipad/gi).test(navigator.appVersion));
var myDown = isIOS ? "touchstart" : "mousedown";
var myUp = isIOS ? "touchend" : "mouseup";
"

'via Blog this'

Syndicated 2012-04-12 15:57:00 from sness

jquery - Click event called twice on touchend in iPad - Stack Overflow

jquery - Click event called twice on touchend in iPad - Stack Overflow: "
3
down vote
accepted
iPad both understands touch start - end and mouse start - end.

Is gets fired like this:

-----------------------------------------------------------------------------
|FINGER ENTER TABLET  | FINGER LEAVES TABLET | Small delay after leave      |
-----------------------------------------------------------------------------
| touchstart          | touchend             | mousedown                    |
|                     |                      | mouseup                      |
-----------------------------------------------------------------------------
You have to detect if the user is on a tablet and then relay on the touch start things...:

var isIOS = ((/iphone|ipad/gi).test(navigator.appVersion));
var myDown = isIOS ? "touchstart" : "mousedown";
var myUp = isIOS ? "touchend" : "mouseup";
and then bind it like this:

"

'via Blog this'

Syndicated 2012-04-11 17:02:00 from sness

Hacker Titles for Business Cards ― Andreas Zwinkau

Hacker Titles for Business Cards ― Andreas Zwinkau: "software artificer"

Syndicated 2012-04-11 15:56:00 from sness

How to get Phusion Passenger, MySQL and Rails to play nicely in production - Stack Overflow

How to get Phusion Passenger, MySQL and Rails to play nicely in production - Stack Overflow: "Figured it out. Woo Hoo!

Summary: Ruby Enterprise Edition (update, thanks Hongli!) has its own set of gems. Even though I was updating the gem, it wasn't the one that Passenger was reading.

Here's how I figured that out:"

'via Blog this'

Syndicated 2012-04-10 22:15:00 from sness

960 Grid on jQuery-Mobile - merge 960.gs flexibility with jquery-mobile ease

960 Grid on jQuery-Mobile - merge 960.gs flexibility with jquery-mobile ease: "jquery-mobile-960 is a port of 960 grid to jquery mobile. It merge the flexibility of 960.gs, and the ease of jquery mobile. It aims to bring more flexibility to jquery-mobile layout and thus make it easier to use on tablets."

'via Blog this'

Syndicated 2012-04-09 21:06:00 from sness

Scrolling libraries for Mobile Safari - Allen Pike

Scrolling libraries for Mobile Safari - Allen Pike: "However, Mobile Safari requires two-finger scrolling for iframes and overflow:scroll elements, and doesn’t support position:fixed. Both these decisions make sense for making existing content browsable using touch, but complicate things for apps that need kind of scrolling."

'via Blog this'

Syndicated 2012-04-09 21:05:00 from sness

Now you see me… show/hide performance » Learning jQuery - Tips, Techniques, Tutorials

Now you see me… show/hide performance » Learning jQuery - Tips, Techniques, Tutorials: ".css({'display':'none'}) & .css({'display':'block'});
These methods were very snappy. They showed an improvement over .addClass() and .removeClass() in Opera and IE 6/7 and about the same in other browsers. They work great if you know the current display style of all the elements you are changing, or at least have not changed the display style inline. If you have changed the display style inline, then you will need to make sure you set the correct value when you make the element visible again. If you are just using the elements' default display value or set the display value in the css, then you can just remove the style like so, .css({'display':''}), and it will revert to whatever value it has in the css or by default. As a library, jQuery can't assume that the display element wasn't set inline, so it has to manually keep track of it. That is the main slowness you can avoid since you know you won't be setting the display inline."

'via Blog this'

Syndicated 2012-04-09 21:00:00 from sness

The Lisp Curse

The Lisp Curse: "Lisp is so powerful that problems which are technical issues in other programming languages are social issues in Lisp.
Consider the case of Scheme, again. Since making Scheme object-oriented is so easy, many Scheme hackers have done so. More to the point, many individual Scheme hackers have done so. "

'via Blog this'

Syndicated 2012-04-09 14:49:00 from sness

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