HNHacker News
TopNewBestAskShowJobs

Niten

2,488 karma · joined September 14, 2008

submissionscomments
Niten··on What happened to Microsoft?
> Yes, Dot Net is for any OS, Windows, Linux, MAC.

No, .NET is not available on Linux (nor on the BSDs, for that matter--a far cry from "any OS"). Linux has the Mono project, but as it is not an official product in the .NET family, it lags behind the .NET framework in features language compatibility.

Also, Windows Forms is a proprietary extension to .NET, so GUI .NET applications built on Windows are not cross-platform. This is in contrast to JVM languages with Swing or SWT, for instance, or Python in combination with any number of cross-platform windowing systems.

Niten··on Ask HN: Best Command Line Email Client?
I use Emacs for most things, but the fact that elisp isn't multithreaded made gnus a painful experience for me. I've had much better luck using Mutt--and setting the program's editor command to emacsclient -nw.

Sounds like this guy had a similar experience:

http://jfm3-repl.blogspot.com/2007/10/emacs-tricks-7-do-not-...

Niten··on Battery, RAM, and HD access on new 17-inch Macbook Pro
This is why I gave up on OS X and moved back to Linux :(

The problem, really, is that Apple no longer sells a professional laptop. Because regardless of how their marketing department tries to spin it, if you can't swap out the battery on the go and replace its hard drive with minimal hassle, it's definitely not "pro". I love OS X, I just wish Apple would give me some decent (and reasonably-priced) hardware options...

Niten··on How to be a better programmer in 6 minutes
I'm supposed to master an obscure language element, read through the source code of an open source project, refactor a method, run a static analysis tool, and do all the rest--all within six minutes?

I do like the idea for making hard-coded strings stand out, however.

Niten··on Ask HN: Why don't you use email encryption?
> Because when you search through your email, it has to be already decrypted, so why bother?

Of course, there's a huge difference between "decrypted on my hard drive" and "decrypted as it passes through N untrusted mail servers".

Heck, it doesn't even have to be decrypted on your hard drive in order to be searchable; just use dm-crypt, or TrueCrypt, or PGP, or any of the myriad other full-disk encryption options.

Niten··on Interesting ad seeking Lisp developers (not 'mere coders')
> I'd like to have lunch some day with whoever is behind this.

Don't; you'd probably be stuck with the check.

Niten··on In 2009, Microsoft Still Underestimates the Web
Some tech at Microsoft chose the wrong server to host a download, therefore Microsoft's corporate strategy with respect to the Web is "clueless"?

Hard to argue with that kind of logic.

Niten··on Water-lensed eyeglasses offer promise of sight for millions
I'm not saying you don't have a point, but the last time that I bought a pair of glasses, the whole affair—getting the prescription, and the frames, and the lenses—cost well over one day's salary for me. I'm sure that even for someone making just 75¢ a day, $1 for a pair of glasses would be considered a bargain if it means the difference in being able to see.
Niten··on Coding Horror: Finishing The Game
And this is flat out incorrect.
Niten··on Coding Horror: Finishing The Game
Wrong, wrong, WRONG. You DO NOT understand the problem, if you think that this means the probability of the other child being a boy is 1/2. GB and BG are equivalent linguistically, but not mathematically; they do not represent identical possibilities in the space of all conceptual representations of a family of two.

Here, I'll prove it for you:

    ;; Have a child, with an equal probability of the child being a boy or a
    ;; girl.
    (defun make-child ()
      (if (eql (random 2) 0)
          'boy
          'girl))

    ;; Make a family of n members, with each child having an equal probability
    ;; of being either a boy or a girl.
    (defun make-family (n)
      (do ((family nil)
           (i 0 (+ i 1)))
          ((>= i n) family)
        (push (make-child) family)))

    ;; As in the story, meet someone at a party who informs us that (1) she or
    ;; he has two children, and (2) that at least one of these children is a
    ;; girl.  E.g.,
    ;;
    ;; Me: "Hi there, what's your name?"
    ;; Cute lady: "Jennifer"
    ;; Me: "Nice to meet you, Jennifer, I'm Mark.  What brings you here?"
    ;; Jennifer: "Well my husband is out of town on a business trip, so I
    ;;            wanted to come here and catch up with some old friends of
    ;;            mine.  Fortunately I was able to get a baby sitter for my
    ;;            two kids on such short notice.  One of the kids, Meg, has
    ;;            to be up early in the morning for dance practice and..."
    ;; Me: "Husband?  Damn, all the good ones are taken."
    ;; Jennifer: "What?"
    ;; Me: "Nothing.  Hey, hang on while I work out the probability that your
    ;;      other child is a boy, based on the information that you've already
    ;;      given me."
    ;; Jennifer: "You're weird.  Have a good evening."
    ;;
    ;; This function works by calling (make-family 2) repeatedly until we get a
    ;; family that meets both of these criteria, then returns a representation
    ;; of said family.  This is a precise analogy for the story: just as the
    ;; fictional person at this party, here we take the space of all possible
    ;; conceptual representations of a family of two, then discard any of these
    ;; that *does not* include at least one female child.  THIS IS THE ONLY
    ;; REASONABLE WAY TO HANDLE THE INFORMATION THAT JENNIFER RELATES IN THE
    ;; ABOVE EXCHANGE.
    (defun meet-at-party ()
      (do ((family (make-family 2) (make-family 2)))
          ((find 'girl family) family)))

    ;; Perform the (meet-at-party) scenario num-total times, and then return
    ;; the fraction of those times in which the family contained a boy.
    (defun run-test (num-total)
      (let ((num-with-boys 0))
        (dotimes (i num-total (float (/ num-with-boys num-total)))
          (if (find 'boy (meet-at-party)) (incf num-with-boys)))))
Just call (run-test 1000000) or something. The result is approximately 2/3.
Niten··on Ask HN: IDE versus Text Editor?
Nope, that would be ed :) I had to use ed to rescue an OpenBSD VPN endpoint a year or so ago.
Niten··on Ask HN: IDE versus Text Editor?
> Funny, I actually do use Excel a lot to edit a lot of these things

How is that even possible? I'm not trying to be snarky or anything, I seriously want to know what your workflow is. It never would have occurred to me to use Excel for editing SQL queries; and as for Lisp or config file or HTML... how?

Niten··on Google Adds Ads to Image Search... It Really Sucks.
All right, this has to be the first time I've seen someone vocally complain that they visited a web page and didn't see enough large, visually distracting, bandwidth-sucking graphical advertisements.

I think these ads on Image Search are great—they stay out of the way, they don't slow down my web browsing, and they're generally relevant to the search query. As for whether or not this will generate an extra $200 million in revenue, I trust Google's calculated and informed estimation on that account far more than I trust this random blogger's gut feeling to the contrary.

Niten··on Burning out on Capistrano (Jamis Buck)
But if you support any sort of *nix, then you quite possibly work on OS X already. If not, there's still probably minimal work to do.

It's not like going from Unix to Windows, where you have an entirely different access control mechanism, system API, filesystem structure and path separator, etc.; it's just going from one Unix to another. So the author only has to accept a couple patches from his Mac-using colleagues, and then he's basically set for OS X. On the other hand, debugging a Unix app on Windows can become a full-time job, and may be more work than you can reasonably expect a few random patch contributors to accomplish.

Niten··on Be Patient For TextMate 2
Emacs can do most of the things that TextMate is loved for, and then some:

http://platypope.org/yada/emacs-demo/

Niten··on [dead]
He said "rarely", not "never". I think that's pretty accurate.

As for William Lane Craig and the others, I would argue the difference between reflecting deeply on a topic with an open mind, and simply acting the apologetic for a collection of preconceived dogmas. Besides, isn't Craig with the Discovery Institute?

Niten··on Google account disabled for 6+ days. Some thoughts
I have been called a retro-grouch for my firm stance against keeping my data in "the cloud", but this is a perfect example of how the cloud can go wrong.

How do you protect yourself from a similar fate? The way I do it is by managing all of my data locally on my laptop (and of course making religious, at-least-once-daily backups of said data). I download all my email using POP3, from a VPS that I am paying for into fetchmail / procmail / mutt on my laptop. My address book is managed locally in a YAML database, and my calendar is managed using flat text files and Remind. Note that none of this precludes remote access to my data, either; I carry a copy of PuTTY on my USB drive, and with the appropriate SSH key and/or S/Key password I can access my data, securely, from anywhere in the world.

That's just one way of going about it, of course; you don't have to go all Unix-retro to achieve the same peace of mind. The theory is simple: just find a way to consolidate the master copies of your important data on machines that are physically under your control, and then make frequent backups of these machines. If possible, also make sure that you have some sort of service agreement with the servers you rely upon for email, Web service, XMPP, and so on. Yes, it is more expensive, and yes it's more difficult than just signing up for a free GMail account, but your data is worth it.

Niten··on Tell HN: If there is one shocker on election night, it's Georgia.
> no one thinks that McCain's supporters will riot if McCain loses while it's almost assumed that Obama's supporters will if Obama does.

Assumed by whom? Not to put too fine a point on it, but I'd recommend you stop watching Fox News before your brain rots.

Niten··on RepRap: Open Source, $500 3-D Printer (And Self-Replicates)
Or simply mounting the print head on a long, jointed mechanical arm...
Niten··on Google backs gay marriage
How would they feel about working at Google after hearing this? There are two possibilities...

1) Said Orthodox Jew, Muslim, Christian, etc., while privately disapproving of gay marriage, recognizes that his right to be offended ends where my rights begin. Said employee does not wish to shove his own personal brand of "morality" down everyone else's throats by codifying discrimination into the State Constitution, and therefore has no issue with Google's stance on the matter.

Or,

2) Said Orthodox Jew, Muslim, Christian, etc., is upset with his employer because said employee feels he should be entitled to infringe upon the human rights of others. Said employee is free to leave Google, as he is doubtless of little value to the company, or to society in general.

Niten··on Ask YC: What do you think of my new search engine?
Wow, the quality of your search results is really impressive -- I went in expecting another Cuil, but now I intend to give it a spin as my default engine in Firefox.

I was wondering... to the extent that Duck Duck Go takes its cues from "human powered" sites e.g. Wikipedia, are you using a pre-defined list of reliable user-generated sites out there, or is your search engine somehow identifying these algorithmically?

Niten··on Why is the default answer always a web app?
"But today there is Java (write once, run anywhere) and Java Web Start (auto-upgrade to all your client machines). [...] You can use traditional client/server, with rich clients written in Java and deployed by Java Web Start talking directly to your database using JPA/Hibernate/JDBC. [...] But even then you can use Java and Java Web Start, and your client application can talk to the middle/web tier using a service API."

Why is the default answer always Java?

Niten··on GTK+ on OSX is finally available
Not to mention that both Fink and (to a lesser extent, lately) MacPorts tend to crap out on every fourth or fifth package you ask them to install...
Niten··on GTK+ on OSX is finally available
Yeah, Cocoa is hot and all, but just try getting that nice shiny Cocoa app of yours running on all three of OS X, Linux, and Windows...
Niten··on Why IE will continue to win the enterprise browser wars
IE's Group Policy encompasses a whole lot more than which particular sites the web browser is allowed to visit.

http://www.ie-vista.com/group_policy.html

← PreviousPage 15 of 15