HNHacker News
TopNewBestAskShowJobs

Tiomaidh

379 karma · joined June 22, 2010

Student. Java dev (hey, it pays), Lisp and Python hacker. Also a Scottish fiddler and hispanohablante.

http://www.tsmacdonald.com, although there's not a whole lot there.

submissionscomments
Tiomaidh··on ClojureScript
To play devil's advocate, wouldn't the exact same thing be possible with the above alternatives and Armed Bear Common Lisp? You can write full-stack in Common Lisp, it's just that different parts need to go through different compilers/interpreters/transformers/what-have-you. Just as it is with Clojure.

No, I think the thing to note here is that Clojure--for reasons I can only guess at--has a lot more sex appeal than CL.

Tiomaidh··on Ask HN: What's your most-used function that you wrote yourself?
For debugging via print statements:

    public int echo(int x, String name)
    {
        System.out.println(name + ":\t" + x);
        return x;
    }
(I also have versions with only x as an argument, and with the other types).

In use:

    this.setPreferredSize(new Dimension(getPreferredSize.getWidth(), echo(getViewportHeight(itemCount), "Viewport"));
In addition to sparing me from System.out.println verbosity, it's really useful in situations like the above where the value you want to print isn't bound to a variable.
Tiomaidh··on Show HN: BetAnnoyer, you owe me bro (app I created)
What's to stop me from a) Submitting multiple requests b) Using a bot to submit a LOT of requests to bug the heck out of someone c) Using a bot to submit a LOT of requests and DOS betannoyer.com ?
Tiomaidh··on My evening project: Mobile Optimized Hacker News
Nice/Useful.

Internal Server Error the first time I tried to load comments. (And every time afterwards.)

And it's kind of a bummer not to be able to log in and comment, upvote, etc. I understand it's a MVP though, so presumably that's coming. I'd offer to help a little, but I know Python, Lisp, and Java--not PHP, JS, and CSS, so sorry.

Tiomaidh··on YouTube introduces a new video player design
Is it just me, or is everything the same except the colors?
Tiomaidh··on Show HN: O'Reilly using our new contest software to giveaway full JS bookshelf
...and I was feeling reasonably good about reaching #18 efficiently. But don't really have the time to burn to claw my way up another 15 places. I was hoping that the raffle would be weighted by the number of points you have...oh well. Time to just hope I'm lucky.

By the way--thanks for babysitting this thread and responding to everyone.

Tiomaidh··on Show HN: O'Reilly using our new contest software to giveaway full JS bookshelf
Thanks.

Also: I take it that you have to be in the top 10 to get something? Or is it that the top 3 get something, and 10 others are randomly selected to win a book? The award system is not explained too clearly...

Tiomaidh··on Show HN: O'Reilly using our new contest software to giveaway full JS bookshelf
It's too bad they don't also give away the dead-tree version. Some things are nice to actually have on your shelf...
Tiomaidh··on Google Singleton Detector

    public class Singleton {
        private static Singleton self = null;
        private Singleton() {
            //...
        }
        public static Singleton getInstance() {
            if(self == null) {
                self = new Singleton();
            }
            return self;
        }
        ...
    }
So at any point in your code you can call Singleton.getInstance() to have access to the same Singleton object. So it's effectively the same thing as a global variable.

Edit: Added `static' to be more correct.

Tiomaidh··on Judge Denies Apple Request To Stop Amazon From Using "App Store"
Sure I perform window operations, but they're not nearly the same thing as using Windows--which entails a lot more than using windows.
Tiomaidh··on User testing in the wild: he has never used a computer
This came up elsewhere in the thread, see my response there: http://news.ycombinator.com/item?id=2738851
Tiomaidh··on User testing in the wild: he has never used a computer
As a big CLI fan, I mostly agree, especially with respect to launching programs. But as far as I see there's two big obstacles: 1) Many names are somewhat-obscure in the interest of shortness. But are therefore a bit harder to remember. Compare "ls" with "list-files". 2) Many programs (especially interactive programs)--text editors, office programs, file managers, web browsers--are, I think, more intuitive with a mouse. Want to open that link or edit that textbox? Click it. Want to move that file? Drag it.
Tiomaidh··on User testing in the wild: he has never used a computer
Both with essays and coding, there've been times when I was very grateful that there was a fixed moment in the document's life that I could easily go back to. Sometimes I start making changes and then think better of it[1]. Sometimes I edit something accidentally, and am very relieved that I'm asked whether I want to save my changes upon exiting the program. A possible solution is to have both normal saving and continuous autosaving to a backup file (as Word, Vim, etc. all do), but in practice that's a bit clunky.

[1] - Yes, I could hit the undo button repeatedly, since any editor worth its salt will have a virtually-unlimited undo. But it's reassuring to know that you've undo-ed to exactly the right point--in Vim, at least, the "+" indicating a modified file disappears once you've undone all your changes.

Tiomaidh··on User testing in the wild: he has never used a computer
Many icon sets (on Linux, at least) use a picture of a hard drive instead of a floppy [1]. Which, though more correct, still worries me. Anybody who recognizes the icon as a picture of a hard drive isn't going to be confused by the concept of saving...do we need a similar icon that uses a picture of an entire computer instead? Should it be a laptop or desktop?

[1] - http://cshared.com/wp-content/uploads/2011/03/Screenshot-xam...

Tiomaidh··on Judge Denies Apple Request To Stop Amazon From Using "App Store"
There's a lot more to an operating system than how it manages non-fullscreen applications. "Windows" is obviously a related term, but 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!" But I might say, "This collection of software for my smartphone compiled and sold by Amazon sure is a great app store."

Edit: See also: MS Office, MS Word, MS Security Essentials, and arguably MS Internet Explorer and Windows Explorer (I browse the internet and manage/browse files--there's not much literal "exploring" going on)

Tiomaidh··on Judge Denies Apple Request To Stop Amazon From Using "App Store"
Here it is in a book from 1995: http://books.google.com/books?id=JSnOPYKwwtQC&lpg=PA350&...
Tiomaidh··on Judge Denies Apple Request To Stop Amazon From Using "App Store"
>Before I switched to OS X, I've never heard of any software being called "apps" on any other platform I used

Maybe you didn't use the TI-83+, which has an "Apps" button on it, and was designed in 1999.

And though I agree that Apple has put a lot of effort into its app store, I feel like saying that they should have sole access to the term is comparable to AOL suing anyone who uses "instant messenger" to refer to something other than AIM.

Tiomaidh··on Google Removes More Than 11 Million .co.cc Domains From Search Results
I'd rather they fixed the results now and worried about the algorithm later (and you know they're working on the algorithm) than make us suffer unnecessarily until the algorithm was suitably improved.
Tiomaidh··on Failure: Building a web app that makes $50/month
The lifetime membership seems like a solid idea. It might also be worth charging, say, $1 to just use it once.

Regardless, though, $18/hr (($200 - $20 theme) / 10 hours) is not bad.

Tiomaidh··on Sal Khan has started videos about Python
He's not upset about the filename-comment per se, he's worried that it's an early warning--it indicates that Khan isn't very experienced with software development (which, in my opinion, is a valid conclusion), and that that'll cause more serious problems in the future.
Tiomaidh··on Shyness: it's natural
Sane link: http://www.nytimes.com/2011/06/26/opinion/sunday/26shyness.h...
Tiomaidh··on The best site to find password leaks: Google
Here's the teaser from the link. I don't own the book and thus have nothing else to translate.

Title: Search Engine Hacking with Google, Bing & Shodan Author: Enrique Rando

Pages: 272

Price: 20 Euros + Shipping (includes IVA)

Though it's been 2500 years since Sun Tzu wrote "The Art of War", many of his lessons remain relevant. His teaching contains several passages that seem especially suitable for people who work in Information Security:

* "Those who disable foreign armies without combat are the best teachers of the Art of War."

* "Before you fight, first learn the skills of the enemy's workers, and then fight them according to their weaknesses."

* "When you can perceive subtlety, winning is easy."

Without a doubt, this information is key in preparing for attempted security breaches. Without it, determining what to attack and how to do it is impossible. Search engines have become important tools for collecting data and other intelligence. However, despite Google hacking's many years of use, its techniques have perhaps not always been well-treated or publically shared.

Tiomaidh··on Ask HN: Review our app - LiveBite
Clickable: http://www.livebite.com/

----------

To be honest, I kept expecting it do something else. Once I came to grips with what is was--a collection of popular news links in a visually-pleasing and easily-navigable form--I was quite happy with it. No, it doesn't have comments--it's not HN or reddit. No, it doesn't have accounts--that would be effing worthless in its current state.

So here are a few minor suggestions:

* Make it so that clicking on--for example--the washingpost.com link will instead go to a LiveBite page containing only stories from the Washington Post. (This is very similar to what reddit does.)

* It'd be nice to have an option to see more than six stories at once. If you do that, it'd also be nice to have an option for a "condensed" view--with smaller or non-existent pictures, different layout, etc.

* The [Like] button seems a little funny where it is, but I can't think of a better pl--that's not true, I'd prefer it at the bottom. Um, I can't think of a better place with respect to actually getting people to click it, so I guess it's fine where it is. Some might say it fills in the space nicely, I'd say that I'd prefer a more minimalist look (and that the background is exciting enough as it is).

More major ideas--take 'em or leave 'em:

* Accounts. These would enable:

* Bookmarking (aka "saving", in reddit-lingo)

* Customizing the sources scraped. The option to remove a few defaults would be nice. The option to add more sources would be fantastic.

* Persistence for the UI settings suggested above.

* The ability to tag some sources as being "must-read" (or whatever) and then keeping track of which stories are read/unread.

* Probably other things that I can't think of right now. And maybe users themselves will start requesting things.

As I said, these are more major ideas that I just came up with on the fly (I'm not even proofreading this...). Some may not be in line with what you want the site to be, some may be just plain awful. Do what you want :)

Tiomaidh··on Clojure/core Reading List: Rationale, tutorials, resources
I'm not the author and obviously don't know for sure, but bit.ly can be a poor man's click tracker. Here are the stats for Rich Hickey's reading list on Amazon: https://bitly.com/hIlovG+
Tiomaidh··on Kind of Screwed
I agree entirely. I've seen some remarkably creative, unique, quality pixel art, but this was not it. When I saw it, my first thought was, "Well, I guess it was kinda creative to use a cross pattern on the tie instead of diamonds..." Apart from that, the only difference is the resolution.
Tiomaidh··on Kind of Screwed
43rd one, by my quick count: http://images.google.com/search?tbm=isch&hl=en&sourc...

And 20th for "Miles Davis": http://images.google.com/search?hl=en&biw=1400&bih=9...

"Kind of Blue" the album is incredibly famous and respected (http://en.wikipedia.org/wiki/Kind_of_Blue#Reception_and_infl...), and its album art--though not the best I've seen--is therefore a Big Deal by association, if nothing else.

Tiomaidh··on Chrome at 20% market share, IE9 less than IE7
Seems questionable, considering that recent versions of Chrome come with Flash built-in.
Tiomaidh··on RIM implodes: announces layoffs, 500,000 PlayBooks shipped
(Nitpick: I think there's a difference between "False--" and "FALSE!".) Regardless, though, it may be on the blunter side, but I think it's a better choice than, "I'm sorry, good sir, but in my humble opinion you are perhaps less than correct."

To the OP--I'm sorry if I came off as impolite, I truly was aiming for conciseness, not malice.

Tiomaidh··on RIM implodes: announces layoffs, 500,000 PlayBooks shipped
But the demand is a major confounding variable.
Tiomaidh··on RIM implodes: announces layoffs, 500,000 PlayBooks shipped
False--price is largely dictated by what new users (who can't afford to buy a new device) are willing to pay, not what the seller (who used the device) wants.
Page 1 of 4Next →