Better HN
topnewbestaskshowjobs
Log inSign up

ehsanu1

1,377 karma · joined Apr 26, 2011 (15y ago) · 616 submissions

ehsanul@ehsanul.com

I'm actually ehsanul (http://news.ycombinator.com/user?id=ehsanul) here on HN, but I switched Google accounts.

Submissions

comment 13y ago · link · parent

Now why would I assume that? There are times when you need to generate a big report, and just the SQL can take that long or more. But typical web requests for typical applications are not like that. DB queries shouldn't take more than a couple hundred milliseconds for "typical" application requests.

Even counting that, the comparison is also not necessarily correct. In some cases, perhaps the C++ code would have taken 0.1s, where the ruby code takes 5s. In fact, 50x is about the slowdown you used to see for ruby in the programming languages shootout, and it is still pretty bad. [1]

[1] http://benchmarksgame.alioth.debian.org/u32/benchmark.php?te...

comment 13y ago · link · parent

I took your comment to mean that no button element exists, but I suppose that was not your intention. But I did realize you were referring to links being abused as buttons.

I think the issue is simply that buttons tend to have more default styling you need to override, which is more likely to vary across platforms since the default style is generally chosen to mimic the system's native buttons. Whereas default styling for links is quite simple across all platforms. Besides that, there is no particular problem with using real button elements instead of link elements as far as I'm aware, just a matter of habit and convenience.

comment 13y ago · link · parent

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bu...

comment 13y ago · link · parent

Off topic:

Maybe it's just me, but the log scale for the relative program times is pretty confusing. While it probably makes the improvement more obvious, it doesn't help me understand the actual magnitude of improvement visually, without having to look at the scale and figure out the actual numbers.

comment 13y ago · link · parent

Your i_am_dead account does not seem to be dead though.

comment 13y ago · link · parent

I used to keep a spreadsheet of dead accounts I saw, but I haven't looked at it in over a year. I had a column for whether they deserved to be banned - I'd check their history and try to figure out at which point they had been banned, attempting to discern the original reason. I was a bit disconcerted with how often it was a quite innocent comment, and how valuable many of contributions were in general.

I had intended to release this spreadsheet to the HN community, but it really was not at all comprehensive, and I forgot about it over time. Perhaps if members here would volunteer to maintain a list of such cases.. We don't need PG to implement anything then, every week he could just be sent a list of users that ought to be unbanned.

comment 13y ago · link · parent

I want to point out a comment [1] apparently by the former chief open source evangelist, Danese Cooper [2], on the "Fork Yeah!" video contradicting Bryan Cantrill on this point. Here it is reproduced:

Lovely except it really was decided to explicitly make OpenSolaris incompatible with GPL. That was one of the design points of the CDDL. I was in that room, Bryan and you were not, but I know its fun to re-write history to suit your current politics. I pleaded with Sun to use a BSD family license or the GPL itself and they would consider neither because that would have allowed D-Trace to end up in Linux. You can claim otherwise all you want...this was the truth in 2005

[1] http://www.youtube.com/watch?v=-zRN7XLCRhc&lc=UEj5uH4rMafUnX... [2] http://en.wikipedia.org/wiki/Danese_Cooper

comment 13y ago · link · parent

Not a true alternative, but less noisy: http://lessmeme.com/less.html

comment 13y ago · link · parent

San Francisco, FULLTIME + INTERNSHIP

http://www.mytime.com/

MyTime is Amazon for the services industry, helping people find and book services online. We're a small, but fast-growing company with funding from the likes of Mark Suster, Dave McClure and many others. We also have a base of over 1200 businesses, growing everyday. It's the perfect opportunity for anyone who wants to work at a fast-moving startup, and help us try to hack our way to success.

We're looking for self-directed, generalist software engineers, with some experience developing web applications. All 4 engineers at MyTime are full-stack, and we expect you to be as well. You should be well-versed in HTML/CSS/JS, as well as server-side web application development. Our main web application is built on Ruby on Rails, so experience with Ruby and/or Rails is preferred, but if you are familiar with something like Django or Sinatra instead, you should still apply! You should also have some experience with an SQL database of any kind.

Full job page: http://www.mytime.com/jobs/software_engineer

Email us at jobs@mytime.com, and make sure you let us know about any projects you've done.

comment 13y ago · link · parent

I always thought that was done using keywords on the page the image was taken from (and image captions, alt text, titles and filenames). This is reinforced by what you see when you go many pages ahead in images and see things that don't seem related to what you searched, but the keyword is there somewhere on the page.

comment 13y ago · link · parent

Agreed. But though I'm a vim user, in day-to-day coding, my colleagues using say sublime don't see to suffer all that much. I occasionally see them doing something a bit inefficient with the mouse that could have been a few keystrokes in vim, but it's not that big of a deal really. Now, there are definitely a lot of things I could do in vim with macros and such that would be impossible to do efficiently in sublime. But I rarely have to do such complex text manipulation, so does it matter all that much?

As far as scripting your editor, most IDEs have some sort of plugin system, which you may not use yourself, but you'd use to find something that already roughly does what you want. To be honest, that's pretty much what I personally do with vim myself, relying on others' vimscripts to get me the functionality I so crave, whether it be indentation-based text objects, or in-editor s-expression evaluation.

comment 13y ago · link · parent

Curious, is there by any luck a study on veteran vim users in particular? It seems like the quality of execution + the familiarity of the test subjects with the UI and modes available would make a huge different in any such measurements.

Vim definitely sucks when you start, especially in terms of discoverability. You have to learn by either reading the colossal manual, or (as most do) using bits and pieces from external sources. But once you learn enough and gain the muscle memory and understanding of how to use the different modes best (eg in vim's case, normal should be your default state), it becomes wonderful to use.

comment 13y ago · link · parent

Not sure what naturalistic fallacies have to do with artificial sweeteners generally being pretty bad for your long-term health (not that sucrose/fructose is that much better in sufficient quantities).

comment 13y ago · link · parent

That's what I meant by "the site iteslf", sorry I wasn't clear. There's definitely some automated spam-detection, and voting circle detection, which auto-bans some posts.

comment 13y ago · link · parent

AFAIK the site itself, and mods (unknown who they are besides pg really) kill posts at their own whim. Flagging is one signal for that. Of course, you can just wait for the passage of time, which will "kill" any post on the front page eventually.

comment 13y ago · link · parent

The Iron Man movies might be one example, glorifying a tech genius who was able to turn his tech skills around from evil to good. This may be more of a throwback from the comic super hero's origins though, rather than being an indicator of our modern imaginations.

comment 13y ago · link · parent

  San Francisco (SoMA), CA
  Internship (Software Engineering)
  J-1 OK
http://www.mytime.com/

MyTime is Amazon for the services industry, helping people find and book services online. We're a small, but fast-growing company with funding from the likes of Mark Suster, Dave McClure and many others. We also have a base of over 1200 businesses, growing everyday. It's the perfect opportunity for anyone who wants to learn on the job and work at a fast-moving startup, and help us try to hack our way to success.

We're looking for a self-directed, generalist software engineer, with some experience developing web applications. All 4 engineers at MyTime are full-stack, and we expect you to be as well. You should be well-versed in HTML/CSS/JS, as well as server-side web application development. Our main web application is built on Ruby on Rails, so experience with Ruby and/or Rails is preferred, but if you are familiar with something like Django or Sinatra instead, you should still apply! You should also have some experience with an SQL database of any kind.

Email us at "jobs" at you know what. Make sure you let us know about any projects you've done.

comment 13y ago · link · parent

http://musicforprogramming.net/

comment 13y ago · link · parent

You can represent 0 by absence.

     : 0
  o  : 1
  oo : 2
  ooo: 3
Of course, this is not a practical notation, since 0 would hard to distinguish from actual absence, but it would be viable in some situations: a table of numbers say, where you know that no cells are empty. So theoretically, it is possible to represent 0 in base 1, regardless of its obvious impracticalities.

comment 13y ago · link · parent

A side project of mine is sort of a stumbleupon for knowledge. Sort of. It's more like a directed stumbleupon; you get web pages related to the page you're currently on. Good for research, but knowledge-stumbling works too: http://jellly.com

comment 13y ago · link · parent

    # Ruby 1.8.7
    1.8.7 :022 > 1000000 * 8.2
     => 8200000.0 

    # Ruby 1.9.2
    1.9.2p320 :001 > 1000000 * 8.2
     => 8199999.999999999

comment 13y ago · link · parent

Very interesting. Related: this colorblind man hooked up a camera that processes color into an audio signal which he can hear and developed a sense for color: http://www.ted.com/talks/neil_harbisson_i_listen_to_color.ht...

comment 13y ago · link · parent

Neither. Nature is described by mathematics, and conversely, nature is a kind of manifestation of certain mathematical ideas.

comment 13y ago · link · parent

Awesome. Minor issue: there's some stuttering when flicking on a mac touchpad with Firefox. If I keep my fingers on the touchpad while scrolling, the scroll seems to follow just fine without stuttering. But if I flick it up/down fast there's a delay as soon as my fingers leave the touchpad - and then 200-1000ms later (depending on how fast I flicked), it starts scrolling again. This doesn't seem to happen in Chrome.

comment 13y ago · link · parent

Thanks, interesting! Not mentioned on that page, but a notable natural language which is similar in its goals is Lojban [1]. It's actually based on predicate language, which is actually what Inform 7 uses as well in order to derive the actual meaning from natural language sentences. It manages this because it is based on a limited subset of English.

But I'll note that we humans manage to understand each other just fine without resorting to a controlled natural language. We solve the ambiguity problem basically by taking the most likely interpretation of a given sentence, given the context, or asking questions if too confused. And in fact, there are natural language parsers out there that can predict the mostly like parse reasonably well for single sentences.

The biggest problem here is that programmers like having full control of what's going on, whereas this sort of idea brings in a large dose of unpredictability: how will the parser interpret this sentence? I think this can be solved to some extent by having the parser tell you what it parsed in less ambiguous terms. In fact, you might ask the parser to present a normalized version of the code that is more specific about exactly what's going on (and probably more verbose), and also expanding out phrases to show you exactly what they mean for debugging purposes. Also, when a clear parse cannot be made, the parser can simply ask you to clarify, presenting the multiple parses that it could not decide between.

[1] http://en.wikipedia.org/wiki/Lojban

comment 13y ago · link · parent

I have one: natural language programming.

I have some ideas about how it would work, and have looked a little into how it might be implemented and have some seemingly feasible ideas there too. But I'm not an expert in either NLP or programming language development, so what do I know.

A good first step in this direction is the natural programming language for creating interactive fiction, Inform 7. The problem is that it's not general purpose. But you can try reading about it if you think natural language is too ambiguous to ever possibly be a programming language.

I want to write down all my thoughts about this idea, but I thought I'd get some more meat on it before I do that. Also, I haven't mentioned here why I think natural language programming can help, but I'll leave that to your imagination for now.

comment 14y ago · link · parent

It's the same reason I don't use multiple monitors simultaneously. I feel really productive having full screen apps. But even better is the fact that I have keyboard shortcuts set up to switch between apps.

It started with XMonad on Linux, where alt+n (where n is 1..9) would take me to a separate workspace, each with it's own apps. Workspace 1 is always my browser, 3 is the terminal, 8 is my editor, etc.

I set this up on OSX as well - workspaces are called desktops on OSX and I just set up 9 of them, with command+n being my desktop-switching shortcuts. It works remarkably well, it almost makes me cringe seeing people alt-tab repeatedly, or using the mouse and overlapping windows to try to switch between different apps.

comment 14y ago · link · parent

I'm not supporting jumping to psychic conclusions, but I don't see anything on that page that specifically refutes it. So while it may be very unlikely (which is just a prior based on my own subjective experiences), psychic phenomenon can indeed be scientifically studied, and is studied as well.

You might be interested in watching a Google tech talk by Dean Randin (also wrote a book): http://www.youtube.com/watch?v=qw_O9Qiwqew

He seems to have been pretty rigorous when investigating possible subconscious psychic activity in regular humans. And it does seem like most people dismiss such things out of hand, which is the very antithesis of scientific thought.

Tangentially, I don't think we can call any brain state "well understood", never mind hypnagogia.

1
131415
21