Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,405 karma · joined Jan 3, 2008 (18y ago) · 8,297 submissions

mqudsi on most sites.
Submissions

6151.

Justice Dept. acknowledges killing 4 American citizens in drone strikes(nytimes.com ↗)

4 points · by ComputerGuru · 13y ago · discuss

6152.

Microsoft release anti-Chrome parody advert(youtube.com ↗)

3 points · by ComputerGuru · 13y ago · 1 comment

comment 13y ago · link · parent

We're betting the same, and have put our money where our mouth is: http://feedsnap.com/

comment 13y ago · link · parent

I think a closer equivalent of your CoffeScript code in C# would be

    var HtmlLength = new WebClient().DownloadString("http://news.ycombinator.com").Length;
or if you want the length in bytes:

    var ByteLength = new WebClient().DownloadData("http://news.ycombinator.com").Length;
Want to do it asynchronously?

    var ByteLength = new WebClient().DownloadDataTaskAsync(url).Length;
That code sample you posted is to demonstrate in a rather loquacious fashion the new C# 5.0 features.

As for why create a desktop application rather than a web-based app, I'm not even going to dignify that with a response. Apples and oranges.

comment 13y ago · link · parent

Heck, the author of TFA has it tagged as nsfw himself!

I disagree that the drawings were not meant to titillate. The, ahem, anatomic detail they go into was unnecessary to prove his point.

comment 13y ago · link · parent

Regardless of where .NET is headed, C# the language (which is an entirely separate beast) has, in my humble opinion, become the most damn awesome all-around language.

It's got all the awesome features most of which are very elegantly implemented and accessible in a very streamlined fashion. Obviously if you hate C-syntax, C# isn't going to win any brownie points, but in terms of sheer power and flexibility, C# 5.0 steals the cake by a huge margin. Lambdas, parallelization, anonymous functions, interop with C functions, fast compilation, "fast" execution, awesome bytecode, and more. Constantly iterating, but not breaking with the original design goals.

It's borrowed the right features from the right languages, the right syntax from the right languages, and the right design choices from the right languages.

(Although I do dislike how the new dynamic keyword is implemented. It throws then catches too many exceptions under the hood and people really need to understand it before they use it. It was primarily designed to convert unknown/random JSON to a C# object on the fly and should not be abused. Many people coming from dynamically-typed, loosely-defined languages might think it's an easy way of adapting to the traditionally statically-typed and statically-defined C#... not so.)

(And, like it or not, it really is a cross-platform language. Mono does count and is pretty awesome. Esp. if you think about the compatibility of the language and not the framework.)

I'm still a die-hard C/C++ coder, but C# won my heart a long time ago.

comment 13y ago · link · parent

Completely copy and paste blog spam. Original story: http://www.theatlantic.com/technology/archive/2013/05/so-thi...

EDIT: Yes, downvote me to oblivion because I pointed out this post is in blatant violation of HN rules:

Please submit the original source. If a blog post reports on something they found on another site, submit the latter.

The content is exactly the same as The Atlantic article. The Atlantic is not where the incident was first reported, but it is the source of all the legal analysis and commentary on the issue.

comment 13y ago · link · parent

I'm (usually) a fan, but I hesitated to group it with the others because it's rarely journalism and more often (usually deep and insightful) analysis of events.

If you just news on the parts of the world that American media ignores, a combination of BBC News and AlJazeera English is a good option.

comment 13y ago · link · parent

I'm not surprised to see this coming from The New Yorker.

I've all but given up on quality journalism from most "newspapers," but long-form investigative articles from The New Yorker and Vanity Fair (yes, of all places!) always keep my faith in humanity. Less-lengthy but usually well-researched articles from Mother Jones and Harper's are also up there.

Other sources that sometimes do an awesome job but other days leave you scratching your head would be NPR, The Atlantic (less investigative journalism, but awesome write-ups), The New York Times (covering everything from tabloid trash to 20-page quality journalism spreads), and The Seattle Times (likewise, but less crappy and less awesome at both extremes).

comment 13y ago · link · parent

You don't have to be such an ass. I asked nicely enough.

I fully acknowledge Moxie is better at security than I ever will even dream of being. I just hoped he might see the value in releasing it under a more-amicable license. I don't have the numbers, but more-liberal licenses are by a wide margin the choice for open-source crypto.

I'm not speaking from the armchair, I've released open-source code under BSD/MIT myself. I don't have Moxie's skill for security, is it so wrong to point out the obstacle the license represents? He did release it to help secure the web, did he not? Why don't you let him reply.

comment 13y ago · link · parent

If you really want the world to be a more secure place, can I please ask that you relicense the AndroidPinning code as BSD or something less viral than GPLv3?

I don't see Instagram, Facebook, etc. using that code to secure their apps, they won't license their Android clients as GPLv3 just to use the Android pinning library. While it is easy enough to re-create your code (though I have not looked at it), given that we're talking encryption libs, it's always nicest to have secure, vetted libs that just work.

(As a matter of fact, I'm sure you had to relicense it for Twitter to use it in their app.)

comment 13y ago · link · parent

I call my mom very often, but nevertheless, she gets two Mothers' Days every year by virtue of not currently living in the US but having kids who do: I call her on her Mother's Day and mine.

It seems the whole world but us celebrates Mother's day in March.

Fun fact: while most of the world celebrates Mother's Day, very few countries have Father's Day. At least we can do something right :)

comment 13y ago · link · parent

So? NT predates UTF-8. UTF-8 and UTF-16 are both awesome - they provide unicode support.

Windows first shipped with UCS-2 at a time when the rest of the world was stuck with ASCII and various random codepages, then switched over to UTF-16 at around the same time UTF-8 was picking up speed; UTF-16 had the unique advantage of being (mostly) backwards-compatible with UCS-2, whereas UTF-8 would have broken everything. I prefer UTF-8 myself, but that doesn't make UTF-16 a bad choice.

In fact, while for the default ASCII range of characters UTF-16 consumes one extra byte over UTF-8's single-byte encoding, once you get into the "normally-used range" of international characters, UTF-8 quickly jumps to 3 bytes while UTF-16 remains at two.

6164.

A rant about some of the nice things in the NT kernel(neosmart.net ↗)

116 points · by ComputerGuru · 13y ago · 87 comments

comment 13y ago · link · parent

PHP LSAPI itself has been open-source BSD forever, mainlined into PHP since version 5.3. There's no reason an nginx upstream module for lsapi was not written, in fact, there was talk of doing so from all the way back in 2009: http://forum.nginx.org/read.php?2,10755,10755

Don't ask me why it hasn't made its way to nginx in the form of mainline or a 3rd party module yet.

comment 13y ago · link · parent

What is it they say, a day late and a dollar short?

LiteSpeed was released at right around the same time as nginx, and there was a lot of hype about it at the time. In terms of performance, they were fairly neck-and-neck but one was completely free and the other, well, wasn't.

Now, after pretty much the entire web has rallied behind nginx as the new defacto open source HTTP web server (definitely replacing Apache as the server of choice for new deployments), they choose to release it open source? And GPLv3 to boot (compared to nginx's awesome BSD-based license).

Here's from Wikipedia:

According to a Netcraft May 2006 web server survey, LiteSpeed powered over 254,000 domains and was the 6th most popular web server platform in the world.[3] By August 2007 it had fallen to the 19th position, with its customer base falling below 150,000;[4] however, it rebounded to the 11th position as of January 2008, with its customer base raising above 430,000,[5] only to drop to 26th by January 2009 with a base below 90,000.[6] According to W3Techs, it is used by 1.9% of all websites.[7]

This move would have saved them.... 7 years ago. LiteSpeed won't poach any of nginx's userbase, but it's compatibility with Apache configuration might, just might give it some ex-Apache users.... then again, Apache still wins out in terms of license (Apache, obviously), community support, modules, etc. [EDIT: See comments below. No Apache compatibility for the free version]

For example, SPDY and mod_pagespeed are huge fads right now. Apache and Nginx have both, thanks to awesome contributors and Google itself. I don't see LiteSpeed getting this tech for a while.

1
205206207
277