497 karma · joined May 5, 2011
You never 'open a window', or 'close a window', or 'change a window'? You might be younger than me (I'm 30) but I've been doing that since having an Atari ST in the last 80s.
' And, of course: make the apps available with just one click. '
Date is Jan 2007, before the iPhone was ever released.
http://liquidat.wordpress.com/2007/01/24/clickn-run-for-fedo...
Just:
import ipdb
ipdb.set_trace()
And you can now inspect and change any part of your code, right in the middle of your app. This includes prototyping variou fixes to your bug. I wish it was a standard part of Python, it's truly awesome.An element that contains another element isn't a function. I don't see any reason to make it one.
If you want a templating language, why not use one, rather than having an unnecessary 'space dash greater than' to indicate elements are contained within each other?
- Type:
console.log('hello world');
- install node on your ubuntu box. Then type
node
Which starts node's interactive console. Then type:
console.log('hello world');
again.
Congratulations, you're now a javascript programmer, client and server. Go look up Rebecca Murphey's JQuery guide (it's a good Javascript book too) and continue learning.
I have a brand new Samsung Galaxy S II. It's a 500 GBP (800 USD) phone. It has 2GB of memory.
The first gen and second gen android phones (which may be less than a year old) typically have 128 and 512 MB.
So yes, having 8MB x (amount of apps that can't be stored on SD) taken from memory until you uninstall the app is huge.
.py, .pl, .sh and (as people realize they'are actually writing bash scripts) .bash are standards people actually use. Having them break in what amounts to an include dir is bad mojo.
2. Privacy options are made deliberately difficult as Facebook (as they've stated before) want you to share as much as you can. Setting anything to 'me only' is buried under a custom setting you have to repeat for everything you don't want shared.
click() works because the callback is given parameter:
.click( handler(eventObject) )
Cool. You access @ for the class, and eventObject for the thing you clicked.But I wasn't using click(), I was using load(), which has a different syntax:
.load( url, [data,] [complete(responseText, textStatus, XMLHttpRequest)] )
I may be missing something - I only started doing JS seriously last year - but 'complete' doesn't seem to be provided with any parameters, like the element I just loaded. So my only choice, AFAICT, is to use 'this' to access that element. I'd be delighted if that was wrong though. :^)Background: I was trying to get the width of an image file that wasn't in the document, so I could use it to size another image (which happened to use the first image as a webkit mask). Great fun.
On OS X, Windows and Linux, with every version of Eclipse I've ever tried, I can measure the response time between right clicking on a project and a context menu appearing.
Yes.
> and isn't a jQuery callback?
No :^). And I wish JQuery ran the callback with a parameter too, so I could access 'this' to refer to the class and use the argument to refer to the object I'm going to run the callback on.
You're totally right that would be neater. Alas Coffeescript is a lot newer than JQuery, so despite technical neatness (or lack thereof in JQuery), Coffeescript has to work with JQuery to grow in popularity.
PS. Thanks for making Coffeescript. It's got me excited about JS again and I absolutely love it.
In practice, though, I frequently need/want to call a method as a callback. And inside that function, I might want to get something from whatever initiated the callback, and save it to the object I'm a method of. Ie, I want to access both forms of 'this'. So I still need to do the ;that = this' hack, ugly as it may be.
It would be super awesome if there was something that always referred to the topmost class object, and something else that always referred to the initiating object if one exists.
That said, I still like Coffeescript, was surprised to see how much Brenden Eich likes and supports the project at JSConf, and wouldn't be surprised if they addressed niggles like this in future.
It also has an API.
Also IIRC Rhapsody is a Real product, so it may not actually work properly.
Eg:
rm /whatever -rf
Ie, if you hit enter too early, you still haven't forced.
I've been using Linux for 14 years and have never accidentally rm'd recursively. I'm not sure when they added it, but I've been using it for a very long time.