skysight-inc/HackerNews huggingface dataset:
In Scala '||' does mean logical OR.

The example given is using the logical OR to fold across booleans.

Imagine this expression:

(a || b || c || d || e || f || g || h)

If any of those values are true, the whole expression evaluates as true. It only evaluates as false if all the values are false.

Now consider a simple example in Scala:

val res1 = List(false, false, false, false, true)
res1.foldLeft(false) { _ || _ }

Here the foldLeft function is 'accumulating' the value of the boolean by doing an OR comparison with the starting value (false). For all but the last one, it is doing (false || false -> false), then it hits the last one and does (false || true -> true).

It's a neat trick, and useful if you were using a programming language that had foldLeft but not exists.

In Scala, you have exists. So you can do this instead:

res1.exists(_ == true)

Or for the example given, something like this:

words.exists(tweet.contains(_))
You should probably remove being too thin from that list...
Looks like it's Boise only right now? Interesting place to start.
This app fulfills an amazing need that most of us need as travelers. The great plus point I think, is the simple to use interface - just point at the text and it shows the translation. wow!
If it really is a bluff, the best way to call that bluff is by having a lawyer respond to them.

Advertising that you have no legal representation is a very bad idea. They can find ways to get you to say things they can use against you, for example, by making things sound bad and thus convincing you to deny things you shouldn't.

And yes, I have had this explained to me by actual lawyers.
Also, another part of the video that I instinctively reacted negatively to was the swipe to switch apps. Not even while using a touch interface do I want to pull something in from the left side of the screen without knowing what will pop out from there. To find the app that I want I have to flip through all of them? That seems that the worst possible way of organizing / not organizing different running apps.

What makes it even stranger is that they pass by a much better implementation of the same thing in passing while demoing IE 10, where he pulls down to reveal thumbnails of all the open tabs. Something like that in the main interface would have been much better than having to swipe, swipe, swipe, accidentally pausing videos, replacing views and causing all kinds of frustration just to locate the particular app I was looking for.
Hooked on Meat
Hopefully this'll prompt these sites to switch to SSL by default...
I often wonder why people would use anything other than Python for doing real work. Such a fantastic language! I admit I am somewhat of a fanboy but I feel like it's for a good reason. The language is so easy to read, like reading a sentence. I cannot recall who said this (I want to say Steve Jobs) but its something on the lines of "something is only perfect when there is nothing left to take away" .. The fact that Python is missing so many of the crazy symbols and reads more like natural language while still being able to do so much gives me reason to believe it's one of tue greatest scripting languages around, and certainly clowns on Scala for these examples. I really wonder why people continue to write web apps in PHP for example.
Assuming the most obvious obstacles were solved (rigidity, how you tug on a frictionless string [great point mike] etc), and you had the perfect string for this experiment: Nothing would be moving faster than the speed of light. Every single inch of the string would be moving at the same speed, which would be a lot slower than the speed of light. But every inch would move in unison. I don't see how the "faster than the speed of light" thing has any bearing.

That said, it's still a physically impossible experiment.
Funnily enough I had switched my Facebook account to SSL automatically a while and completely forgot about it. I ran the app on my phone and was surprised it worked.

It seems that some "application" that I had used on Facebook required SSL to be temporarily disabled. I don't remember an application saying that SSL had to be disabled, and I'd be the sort of person to read these things. I'd worry that this would be a problem for less techy users.

SSL should be an opt-out feature for anything that harbors personal information. I can only assume that this isn't the case due to the extra server overhead that FB would have to deal with ?
Let’s Not Get Too Cocky About The Blubble
Bingo, Microsoft is not trying to make an iPad.

Everything wrong with Gruber's argument is right there in one sentence: "Microsoft is obviously trying to learn from Apple, but they clearly don’t understand why the iPad runs iOS, and not Mac OS X."

Of course Microsoft understands what Apple is doing — they just disagree
How utterly shameless! It even looks just like GroupOn... that's... lame... that's all I can say.
The entire Rock of Gibraltar was turned into a fortress during the war. The civilian population was evacuated, and additional tunnels and artillery placed in the rock. I am not sure that the German siege weapons could have reduced a block of granite into rubble.
> I am being condescending because you are posting dangerous misinformation in a public forum. Divers who believe those lies and fairy tales tend to end up hurt. If you don't know what you're talking about then it's better not to post at all.

I didn't know that people came to HN to learn about diving. On the other hand, they go to wikipedia, where you should have a look.
I have two contacts in my email, one is my Mom, and the other is my male boss. All of a sudden I am seeing lots of transgenderfication sites in my results. Mom?

It would still be a violation of privacy because it is crossing the friend/contact line.
"Google is trying to throw it's weight at something it's competitors already do better."

Google has one thing to offer its competitors don't - they can use the +1 button as a signal for their search algorithms.

As good as sharing a site on Facebook/Twitter is, it causes only a "momentary" increase in traffic. On the other hand, if the +1 button actually helps a site improve its rankings in Google, it could cause a sustained increase in traffic, something most websites will look very kindly on.

On the other hand, the fact that adding a +1 will cause much less of a single, highly visible high-impact traffic spike will mean its effects are harder to feel, which might make people consider it less important.

All in all, the war over widgets is just beginning.
Can anyone do the examples in Clojure, please?
Is this with or against livingsocial.com?
Android development tutorial: How to set a custom wallpaper
looks like I'm late to the party.. I rewrote most of them in CoffeeScript: http://ricardo.cc/2011/06/02/10-CoffeeScript-One-Liners-to-I...

I'm specially fond of

"Happy Birthday #{if i is 3 then "dear Robert" else "to You"}" for i in [1..4]
LIC Premium Payment
All the existing private companies were taken over by LIC during that time. LIC has been the pioneer player in the insurance industry from last 52 years. All the Life insurance companies in India have to strictly comply with the regulations laid by Insurance Regulatory and Development Authority of India (IRDA).
Sort of. You have some protection if you invented it first, but there are a lot of pitfalls. It's these crazy legal pitfalls that makes asking random people on the internet for their opinion so dangerous, even if you ask a smart bunch like HN.

For example, even if you invented what you did first, being able to prove that you invented it first is another matter entirely. No matter how true it is, it won't help you in court if you can't provide legally acceptable proof.

Legal consultations aren't that expensive. And you'll need a lawyer anyhow to do anything other than ignore this email. Also, saying or implying that you currently have no legal representation is a really, really bad idea. At the very least, don't do that.
World’s bizarre buildings-masterpieces or architectural blunder?
http://droplo.com/ - drag&drop subversion on the cloud
It solves one crucial problem of all current tablet UIs (iOS, Android, WebOS): http://ignorethecode.net/blog/2011/03/04/multitasking/

Please, Apple, Google and HP, blatantly copy the ability to see more than one app at once!
Right. Not just b2c, but every country in the world was formed by people who killed the previous inhabitants, took their land, and set up a new system of laws. Afterwards they set up myths about how great and moral they were. But the birth of anything great involves struggle and disruption.

If AirBnB wasn't great, sure, then what they did wouldn't be worth it it. There has to be room for breaking small rules to build big things. Very few real entrepreneurs will disagree with this -- anyone who gets morally/ethically sniffy in public about raiding a bad service (Craigslist)to build a far better one (AirBnB) is either acting or someone who's never had a controversial thought in their lives.

You cannot build something truly disruptive if you are scared to disrupt any rules. Be prepared for resistance and make sure that what you build is worth it. But the ends really do justify the means.
Judging by the fact that Boise, ID is their only market right now, and the deals on both sites for Boise are different, I'd say it's independent of livingsocial
> One is dotfree and uses braces. One uses a dot. And one is dotfree and uses parens. I feel like it would be a lot better if there were only one way to do this.

I don't disagree with the principal of your complaint, coming from working with Perl I know of the potential horrors of having such flexibility.

But just to explain why you can have both braces and parens here. In Scala, if you have a single parameter to a function, you can use braces. This is to allow you to create your own DSLs and control structures. The standard example is:

def withPrinter(file: File)(op: PrintWriter => Unit) {
val writer = new FileWriter(file)
try {
op(file)
} finally {
writer.close()
}
}

Which for these types of blog posts we could call as:

withWriter(new File("test.txt"))(_.println("test"))

But in real applications where function bodies might be more complex, then you can have control abstractions like this:

withWriter(new File("test.txt")) {
writer => writer.println("test")
}

So used in a tasteful and sensible way, it's a really nice feature.
oh come on, for #2 you don't want to use sum() ? :)
When I did my search, I got zero hits, which surprised me.
The US Government has backdoors into every large webservice in the world. China has to hack their way in. That's the main difference here, as the USG long ago stopped being "on our side".
In this case, 'who' and 'that' are mostly equivalent. If you're talking about a specific person, sometimes 'who' is the only choice, but here it probably doesn't matter.

'Which' wouldn't be used here because 'are studying language pedagogy' is restricting/filtering 'students', and so it's essential to the meaning of the sentence. 'Which' is used for clauses that add non-essential information.

My shirt that is red is upstairs.
My shirt, which is red, is upstairs.

The first sentence is contrasting the subject with other shirts (..., but my blue shirt is not). In the second sentence, there's only one shirt being discussed - it happens to be red, but even if that information was left out, it wouldn't change what shirt you were discussing.
There is a point to "Prototypes that actually look good!". If your client does not like the orange button then you have to change it anyway, so better sooner than later.

Anyway I liked them because it's very easy to create and share prototypes.

By the way you can create wireframes if you want to avoid that kind of comments.
[Screens] State of the art shopping list for Windows Phone 7
Listonic – the handy shopping list has just hit the WP7 marketplace and the very nicely designed artwork instantly grabbed our attention. The app is beautiful, especially for a To-Do list. It even has a few background options to customize the feel of the app. By far it is the nicest looking Mobile to-do list, it [...]
I actually believe that the Emacs Pinky is really a Shift Pinky: with CTRL remapped to Caps Lock, it's quite easy on my hand, because I can keep the pinky in more or less the same position (almost stretched out) most of the time. It's just when I hit the left Shift key that I have to bend the finger, and alternating between Shift and Control is what I find stressful on my Pinky.

Does anyone have similar experiences?
Direct link: http://faceniff.ponury.net/
I suspect they're on the tail end of a big rewrite, and it could even be that they're announcing a cocoa-based itunes next week. It's been pretty quiet around itunes for a while now, and it's a product that needs a lot of love to bring it back up to apple's standards.
Well, one of them I've just progressed to "useable" status is a Facebook fan page previewer at preview.steadyhelm.com/path/to/your/server/ - Just makes prototyping and cranking out fan pages faster for me as I don't have to set up an application, deal with setAutoResize etc.

Example: http://preview.steadyhelm.com/http://minim.co/facebook-pages...
Looks like closed-source with a paid version for more sniffing ("more than 3 profiles"). There is no way I am going to install this.
The Finnish developers indict Windows Phone 7 and RIM
If Amazon succeeds with this now then this will be a really good example to disprove the concept of the first mover (or maybe in this case hundredth mover) advantage forever.
> Their mistake was to provoke a hot war instead of a cold war

True, except I'd replace 'cold war' with 'continued legislative compromise'; the North was damnably willing to compromise with the South, allowing them to get much of what they wanted with rather little sacrifice. There was, in fact, a compromise in the works when the South attacked Fort Sumter and, from a larger perspective, a lot of 19th Century American politics prior to the Civil War was an increasingly desperate dance done by the North to placate the South to prevent the inevitable war.

> The time was ripe to replace slavery with automation

Read the Cornerstone Speech, given by the Vice President of the CSA. It lays out the reasons they wanted to secede and slavery was foremost among them. Slavery, by that point, wasn't just an economic engine, it was a cultural imperative. Preserving slavery was so ingrained in the Southern mindset that I feel fairly certain the plantation owners would have gone through a certain amount of economic dislocation if that meant keeping the slaves and the social system built on slaves.

Besides, even if you're right, the CSA still would never have allowed former slaves equal rights. Not without a race war that successfully toppled the post-slavery CSA establishment by force of arms. In the real world, it took the direct threat of Federal force of arms to ensure the reality of Civil Rights in the South nearly a century after the Civil War. (Admittedly, this is at least partially because Reconstruction didn't go on long enough or go nearly far enough.)
I also didn't like the verbosity of intro-level books/tutorials and decided to write my own for Python:

http://www.korokithakis.net/tutorials/python/

It introduces most features of the language over 10ish pages, but assumes that you're familiar with programming.
Oh, fail me for that particular point. I should have looked at what function was being called rather than just the syntax.
Ce qu’on m’a dit sur Jack Lang : | Heureux Ensemble, blog de Bernard Raquin
Or use a 30 inch vertical monitor.
The Quora post that killed Bitcoins. Please discuss if his arguments are valid.
I don't subscribe to your second "pro tip". I find the function keys especially hard to reach, because I have to move my whole hand on an ordinary keyboard, or press that stupid "fn" key on my netbook.

But also I'd be interested to hear which functions you put there?! I'm sure you put different functions on the keys depending on the mode, but I couldn't even say which functions I use most often - besides self-insert (haha) probably the navigation commands (C-f, C-b, M-f, M-b C-v, M-v etc.), but I'm sure you mean more specific functions.

I do remap mode-specific functions every now and then, so I agree that it can be a good thing. But I usually bind them to C-c something or similar stuff, which I find easy enough to type.
Thiết kế logo, thiết kế logo công ty, thiết kế logo thương hiệu
It depressed me when I hear about this kind of story, because it makes me realise tech and startups often aren't focused on creating a positive brave new world of possibility. Instead, it seems a lot of companies are simply emulating the arrogant stance of 80s big business.
centuries, perhaps? http://www.answers.com/topic/squeaky-wheel-gets-the-grease
Whenever I go to a FB page that displays some content that is not served over https, FB gives me a warning saying that the secure connection will be temporarily disabled, but will be restored when I log back in the next time. And you have to agree to that.
That would make even bigger news. :-)
@rsoto You can copy and paste the code in your java or html editor. There's a demo and link is provided unless you were expecting a video demo. I am sure the code will help alot of developers trying to do the same effect.
Don't forget, Win 3.1 and 95 were a HUGE commercial success.
bad article because of lack of demo or because it's misguiding? I disagree with you as this was not meant for you to download an eclipse or netbeans project but show you how to do the CSS effect using GWT instead of straight JavaScript.
I understood from the article that the concern is that the house will be purchased by local government and forced on the poor.
ValueClick Media and Burst Media are a couple of other top tier ad networks to look into. Google AdSense is obviously another option worth considering.

I did a short write up of using the major players over at
http://www.adbalance.com/ad-networks/

Depending on your niche and traffic though you may be better either directly selling to advertisers (serving/tracking ads through OpenX, Google DFP, or OIO Publisher is pretty straight forward).

Again depending on your niche you might find a vertical ad network - there are these for food, health, religion, music, sport and pretty much any other popular vertical you can think of. They tend to get better ads at better rates - but obviously have higher entry requirements.
And when they mess up with OpenJDK they'll give it to the PHP community ? What about MySQL, which bureaucratic and loosely related community shall it be given in case thinks goes south in your opinion ?
Unicodinator - Visually Navigating Through Unicode
Boy regrets selling his kidney to buy an iPad 2
oh thanks, I thought it was just me.

FWIW, "enter city or zipcode" seems to only accept numbers, I imagine this is US only but I believe there are cities with letters in their names also there :)
I get the impression that iTunes is the one division in Apple that's truly like a different 'business unit' and doesn't sit in the same ship as the rest of Apple, who are all on board and sail together in the same direction when focusing on 'the next thing'.

iTunes 10 was the worst thing Apple have launched recently (IMO). I hope they fix it soon, but I'm not holding my breath.
Skype protocol reverse engineered, source available
Scale Fail (part 2)
It's independent of LivingSocial but is aggregating deals from other companies (at the bottom of the deal it says with which company, in this case it's LS).

I'm guessing it is going to mix it up by offering deals from other services, whilst it builds up momentum to offer its own.
I agree it sucks, but they did just announce on the Google Apps blog that it will be coming "shortly" to Google Apps
Yep, it did that for me just yesterday as well.
CSS3 Text Effects and Typographic Styles
Why does the MacBookAir feel better than the MacBookPro?
I just love how Microsoft has started to (desperately) embrace all the "cool stuff" that the actual "cool cats" and underdogs have come up with and been doing for a very long time now... and how Microsoft likes to present themselves as a hip, cool company almost like a small software shop... ever since competitors have gotten significantly more successful and Microsoft has been losing market shares. So transparent.

I mean, trying to start Windows 7 launch parties around the world?? Posting on reddit to market some product and ask for "feedback"? Non-chalantly talking about "cool stuff"? Please... do you really think people will forget how you dealt with competitors back in the day? Will forget your FUD and zero open standards? Will forget what a humongous multi-billion dollar corp you really are?
Open a GUI, read a webpage and email it: REBOL oneliners
Why are you so sure? There'll be a counter-movement.

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

"The party strives to reform laws regarding copyright and patents. The agenda also includes support for a strengthening of the right to privacy, both on the Internet and in everyday life, and the transparency of state administration."
Get pagerank, check pagerank, add url, pagerank
thegetpr.net provides user the service of finding actual GoogleT page rank of any individual webpage present on the internet which facilitates the webmaster and Search Engine Optimization Analytics to optimize the site according to the user's requirements to give better services to the user. The thegetpr.net gives users an opportunity to post their personal opinions about any individual website or blog listed in our database as the feedback which may help webmasters to make the website more user friendly.
Less than zero: The value of intern labor in an age of economic inequality
Hmm, too bad that the HTML4 code they propose fails validation with my validator (Nokigiri) and the HTML5 code they propose doesn't seem to work on HTML4 pages.

I solved it by mixing and matching the two:
<div class="g-plusone" size="small" count="false"></div>

This fails the official W3C validator but it works with Nokogiri. The odd way to set the language of the button {"lang":"de"} trips up syntax error marking in my IDE too.
Logo Diarrhea
Get pagerank, check pagerank, add url, pagerank
SEEKING WORK

Ruby/Rails development, server configuration/admin, HTML/CSS/Javascript/Photoshop. C++ work also, and I have some, but not much, experience with iOS.

Currently in London, UK.

My GitHub - https://github.com/jasonl
Email: jason [at] jasonlangenauer.com
Twitter’s Own Photo Sharing Service and Enhanced Search Results
Technolicious is a technology blog on social media tools, delivering breaking web news, software tutorials, product reviews, productivity tips and guides on internet applications.
Ask HN: How do I *easily* edit and sign PDFs in *nix?
Hi<p>I read quite a bit of material on the paperless office recently.<p>Here is something that I came across that isn't as easy as I thought it would be.<p>In order to edit and sign a PDF (supplied by a vendor) I'd have to 1) print it 2) scan it 3) send it as a PDF.<p>I need a SIMPLE to use GPL tool that can take a PDF, allow me to edit in overlay mode (typed text) and append my signature.<p>I slogged through an hour of PDFEdit and GIMP editing this morning to get something with 4 fields and a signature done, and frankly, I'd rather buy a printer.<p>Any suggestions on this? I must be missing some application out there. Other suggestions welcome.
JavaScript, JSON and modern web MVC
One of the knocks on Groupon has always been how easy their product is to clone, and how the competition in the space will inevitably drive margins down.
Coupons for St. Louis
A web community where shoppers in St. Louis can find instant access to printable coupons and deals at local businesses throughout the city and surrounding areas.
Are You Building a Social Media Ghost Town?
Interview of Richard Koch, author of The 80/20 Principle