HNHacker News
TopNewBestAskShowJobs

mikemaccana

497 karma · joined May 5, 2011

This is an old openid account, created when openid was still a thing.
submissionscomments
mikemaccana··on Judge Denies Apple Request To Stop Amazon From Using "App Store"
Windows began as an installable GUI, target than a whole system. It was only in 1995 that it started doing more than windowing.
mikemaccana··on Judge Denies Apple Request To Stop Amazon From Using "App Store"
> I don't think it's generic--when I boot up Linux on my laptop, I don't say, "This Linux/Xorg/Openbox combination sure is a great windows!"

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.

mikemaccana··on Judge Denies Apple Request To Stop Amazon From Using "App Store"
A blog article on Click N Run, an app store for Linux that was started in the early 2000s with screenshots, ratings, etc. :

' 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...

mikemaccana··on Ask YC: What about people who don't know English good enough?
What specifically was offensive? Is there a way someone could have been more polite?
mikemaccana··on IPython 0.11 RC - First major release in two years
I love ipython - if you still use log statements to debug things, you should give ipdb (a mashup of pdb and ipython) a go.

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.
mikemaccana··on Coffeekup
I love CoffeeScript but I don't understand this. HTML / HAML / SHPAML are document languages. CoffeeScript is a programming language.

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?

mikemaccana··on Ask YC: What about people who don't know English good enough?
Off topic, but you mean 'people who don't know English well enough'. Good luck in your endeavors.
mikemaccana··on Ask HN: Best Python Framework for Google App Engine?
We use django, but yes, google only officially support webapp and you may end up having to translate docs from appengine entities to django objects.
mikemaccana··on RIM’s Response to 'Open Letter'
Wow. That was underwhelming.
mikemaccana··on OK -I'm convinced. How do I start programming in JavaScript?
- Ctrl Alt I

- 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.

mikemaccana··on Does Facebook copyright "white text on blue background"?
Reading the article, clearly they're trying to prevent confusion between facebook api apps and facebook. So no. flagged for linkbait title.
mikemaccana··on Google Reveals Its Stealth Social Project, Google+
> Are you really concerned about 8MB? Are there even Android phones on the market today that ship with less than 8GB of space?

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.

mikemaccana··on Google Reveals Its Stealth Social Project, Google+
Android app is on the market. Note it eats 8MB of phone memory and can't be moved to SD.
mikemaccana··on A cron pitfall that will probably snare you at least once in your career
Yes, it's not a bug in Vixie Cron (which I think BSD cron may use) but in the Linux distros (who are responsible for adding run-parts).

.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.

mikemaccana··on Facebook snags Geohot
I put in email addresses. I can't get them out.
mikemaccana··on Facebook snags Geohot
I can access my friends contact info (including email addresses and phone numbers) as I like, within FB's platform. FB just restricts me from accessing that once I;m not longer connected to it. Indeed, you're right - that's the argument - but I suspect it's merely used as a justification to FB's commercial benefit.
mikemaccana··on Facebook snags Geohot
Respectfully, I don't think you actually read my comment in its entirety. You can import email addresses into FB, but you can't get them out, along with a whole bunch of other info. FB UUIDs have zero meaning outside Facebook.
mikemaccana··on Facebook snags Geohot
1. You can import your data into Facebook. You can't export - all you get is Facebook UUIDs back.

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.

mikemaccana··on Poll: Have you moved from JavaScript to CoffeeScript?
Correcting self: that's the documentation for the wrong .load()! (yes, there's two). The proper docs are http://api.jquery.com/load-event. Which indeed allows the event to be passed to the callback explicitly, so inside the callback @ refers to the object and 'event' (or whatever) .target refers to the image. Problem solved!
mikemaccana··on Ask HN: How do you manage your *nix binary package updates? (first post. eek)
+1. Yum and apt and the like are awesome for individual machines, but pull based. Spacewalk and RHN are centralized push, which you need for any decent amount of machines.
mikemaccana··on Porting Node to Windows With Microsoft’s Help
PoSH 2+ includes tabs and a method browser IIRC.
mikemaccana··on Poll: Have you moved from JavaScript to CoffeeScript?
I was using the fat arrow, and wanted to keep using it, but switched to thin arrow (using @ to access the element and 'that' to access the class). Here's why:

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.

mikemaccana··on Eclipse Indigo is here
What's the UI latency like?

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.

mikemaccana··on Poll: Have you moved from JavaScript to CoffeeScript?
> Do you have an example of a real-world piece of code that wants to access both the lexical and dynamic "this"

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.

mikemaccana··on Poll: Have you moved from JavaScript to CoffeeScript?
Initially, coming from a Python background, I looked at Coffeescript as a fix for all of JS's woes. In particular, I mistakenly though the fat arrow syntax would mean I never have to do any 'that = this' hacks again.

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.

mikemaccana··on Want your own resume infographics? Early invitations available.
I think it's scammy too - just flag the article. They'll learn soon enough that they need to tell customers there's an additional requirement before getting their email address.
mikemaccana··on Spotify Finally Coming to U.S. in July
Maybe Rhapsody has this, but Spotify has all my FB friends on the right hand side and we drag and drop music to each other all day and browse each other playlists. It's like Ping done right.

It also has an API.

Also IIRC Rhapsody is a Real product, so it may not actually work properly.

mikemaccana··on Ooops.
It's a DELTREE on %whateveritis%
mikemaccana··on Ooops.
Normal Unix method of doing this is via LD_PRELOAD, then you wrap unlink() in something that moves things to a folder. I used something - think it was libtrash - when I used Linux on the desktop, but haven't investigated what the OS X equivalent would be.
mikemaccana··on Ooops.
You can use GNU remove, which lets you put arguments last for safety, on any Linux box:

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.

← PreviousPage 4 of 5Next →