HNHacker News
TopNewBestAskShowJobs

KeithMajhor

528 karma · joined August 1, 2010

submissionscomments
KeithMajhor··on Real Life Model of M.C. Escher’s “Waterfall”
http://imgur.com/z2FU8

It looks like, given the reflection from the water, that section of the track can't be more than an inch above the floor. If thats true then wouldn't the break have to be somewhere after that point?

If I'm missing some huge detail can someone explain it to me?

KeithMajhor··on User Experience Trumps Pretty URLs, The End.
The text after the # is a Fragment identifier. Wikipedia: "In the most common case, the agent scrolls a Web page down to the anchor element which has an attribute string equal to the fragment value.". Basically, fragment identifiers are commonly used to link to specific content in long documents.

More recently, however, ajax applications have started using them to push state into the browser's history. This enables the expected functionality for bookmarking and the back button. Since fragment identifiers are only used by the client you can link to them without refreshing the page. Using the ! in #! is a convention proposed by Google for stateful ajax applications.

http://en.wikipedia.org/wiki/Fragment_identifier

http://googlewebmastercentral.blogspot.com/2009/10/proposal-...

KeithMajhor··on Michigan left
A previous article about another interesting traffic design.

http://news.ycombinator.com/item?id=1437430

KeithMajhor··on I have seen the future and I am opposed
The difference, in this case, between clothes and "your shiny new smart phone" is novelty. Since the subject of the article is the future I don't think the analogy was unreasonable.
KeithMajhor··on "Move" — a simpler programming language as a subset of JavaScript
Javascript isn't complicated but it does have some ugly boiler-plate. I would love to see C# style lambda's in Javascript.

C# style: var item_names = $( "li.menu_item span" ).map( x => x.innerHTML )

JS style: var item_names = $( "li.menu_item span" ).map( function( x ) { return x.innerHTML } )

KeithMajhor··on Paul Buchheit: The two paths to success
Does _everyone_ in society really need to be working. It seems that as technology advances the number of labor hours required per person would decrease. Maybe only a small percentage of people need to be following a productive passion.
KeithMajhor··on Sublime Text 2: Public Alpha Released
Having an (optional) gui is something "new". The parent post I was responding to asserted that there was nothing new in the editor space since emacs and vi.

I just opened vi on my machine and I was unable to select text. Maybe there's a way to get it to work... but in Sublime and other graphical editors it just works.

Thumbnail may have been a better word... Sublime has just that. I've found it useful when working on long files. But regardless, there are other features that a GUI enables, like code folding...

KeithMajhor··on Sublime Text 2: Public Alpha Released
emacs and vi are console based editors. I don't understand how anything could get to the point where it could never be made better.

In Sublime you can select text with your mouse and on the right there is a graphical overview of the entire document.

KeithMajhor··on Sublime Text 2: Public Alpha Released
Except for the mouse and the graphical user interface
KeithMajhor··on Ovum Analysts: iPad Will Be Surpassed by Google by 2015
Is Gruber trolling on purpose? His posts that make it to the HN always turn into flamewars. Why is everyone here so interested in what he has to say?
KeithMajhor··on Piracy Doubled My App Sales
When I hear theft I think of guys in masks sneaking into someones home at night and depriving them of their belongings. Associating illegitimate use of software with theft is misleading. It's like telling kids that marijuana can kill them to dissuade them from using it. I'm not saying it isn't wrong... I'd just like to see a word that wasn't deliberately chosen for it's connotative baggage.
KeithMajhor··on Google Removing H.264 Support in Chrome
http://venturebeat.com/2010/04/08/apple-bans-flash-to-iphone...

Apple could support flash for nothing... Adobe has tried to do it for them, with both direct flash support and this conversion tool. Apple is making a purely idealogical decision.

KeithMajhor··on Google Removing H.264 Support in Chrome
Apple's stance on Flash hurts users _now_. But, I still envy my future self living in a world where Flash is dead. The same can be said about Google hurting users _now_. Pushing content producers towards an open and maintainable format has obvious long term advantages.
KeithMajhor··on Google Removing H.264 Support in Chrome
That's a really interesting point. All at once you helped me understand the giant chess game we're watching.
KeithMajhor··on Ask HN: I built a site that just went ridiculously viral. What do I do now?
"Sleepyti.me is provided as a free service thanks to support from our ads."

I don't know if you read the "Sacked by a Google Algorithm" article from yesterday. http://www.duckworksmagazine.com/11/columns/guest/winter/ind... The comment you make on the results page sounds dangerously close to what got Adsense to boot him.

KeithMajhor··on Computer monitor causes scare at Newark airport
That's kind of ironic. I never considered over-zealous security as a vulnerability.
KeithMajhor··on Ask HN: How do you balance college and a startup?
I couldn't agree more. I can take a C for about one-fifth the work of an A. I'm usually interested enough to explore the interesting material at depth anyway. I just don't do every tedious assignment.
KeithMajhor··on Kod is a new Node.js scriptable code editor for OSX
This is a separate idea, but...

The "Chromium-like user interface where tabs can be torn off and moved between windows" would be awesome if it were implemented directly in Mac OSX. Then applications could drop all of that code and just let the OS deal with it. Also, you'd be able to group distinct applications. I'd love to have a [Browser, Text Editor, Terminal] tab group.

EDIT: Another thought... Chrome tabs don't look like any other tabs in Mac OSX. Applications lose uniformity as they're forced to define more about themselves.

KeithMajhor··on Introducing Word Lens
Hacker Newsers usually downvote brief congratulatory comments. Seeing "you win" take home over 20 points is indicative of just how exciting this is.
KeithMajhor··on Show HN: CSS Meta-Language in Javascript
Each time a declaration section is added to a selector the contents of the corresponding tag have to be re-stringified. Having a single tag would require the entire style sheet to be rebuilt whenever a rule was modified.
KeithMajhor··on Show HN: CSS Meta-Language in Javascript
It won't work with that. I'm replacing the (implicit) global window.css with a closure the first time it's invoked. Your modification will cause future css sections to create their own <style> tags even if the they reference the same selectors.

Perhaps this is clearer: http://keithmajhor.pastebin.com/5KA7Ecn0

KeithMajhor··on Show HN: CSS Meta-Language in Javascript
That's sounds a lot like what I had in mind when I wrote it.
KeithMajhor··on Show HN: CSS Meta-Language in Javascript
I was referencing $( "selector" ).css({ ... }) specifically.

.live works for events. I suppose you could add an event to modify the style of each element as it was added... But then that really feeds back into the previous point which is that it would be slow.

KeithMajhor··on Show HN: CSS Meta-Language in Javascript
You can use whatever license you want (MIT, BSD, etc.)

This is geared towards applications that wouldn't work without JS anyway. But you could always degrade gracefully by providing some default css in a <noscript> tag.

KeithMajhor··on The Two Things about Computer Programming
That's false. If you're doing it "right" then it will produce the same functional output for all of the possible execution paths. That doesn't make it deterministic.
KeithMajhor··on The Two Things about Computer Programming
Rude, but whatever... you might be right.

Regardless, a future version of any single platform could include changes to the scheduler and/or dispatcher.

KeithMajhor··on The Two Things about Computer Programming
You're right.

However, from the perspective of the programmer it is non-deterministic. It only becomes deterministic when it is coupled with a particular scheduler and dispatcher. Most programmers strive to write cross platform code.

KeithMajhor··on The Two Things about Computer Programming
Multithreading sacrifices determinism. So, regardless of what you tell it you can't make any claims of exactness about what it's doing.
KeithMajhor··on The Two Things about Computer Programming
That's beautiful. However, programming is only one of many fields for which you could apply those "two things".
KeithMajhor··on Paul Graham : uses this.
Wow! you're right, that's awesome.

When I got done reading the "What hardware are you using?" section I laughed at the heading of the "What would be your dream setup?" section.

← PreviousPage 4 of 5Next →