skysight-inc/HackerNews huggingface dataset:
You use the algebraic property that xy mod n will generate a shuffle of Zn if y and n are relatively prime (don't share any divisors). So if you then redefine "element a" to not refer to the index of the original array, but to ay mod n, and you've got your shuffle. You pick y randomly, and in order to make y and n relatively prime, you simply change n to be a prime number.

None of this requires you to actually go through the list. You'd have to modify this to support lists of non-prime lengths, but this is the basic idea :

import random
lst = [1,2,3,4,5]

class newlist:
def __init__(self, lst):
self.lst = lst # assuming lst has a prime length.
self.y = 0
while self.y % len(lst) == 0:
self.y = random.randint(1, 999999)

def __getitem__(self, index):
nidx = (index * self.y) % len(lst)
return self.lst[nidx]

# Start shuffling
nl = newlist(lst)
# End shuffling ... algorithm done.

for i in range(len(lst)):
print i, nl[i]
Not really.

Have you ever seen type in print that you find difficult to read because some of the characters are so stylized that they're difficult to make out? That'd be my concern as a non-Korean speaking/reading person developing a typeface. I believe that Hangul is an alphabetic system, but that the parts of a character block are somehow grouped according to syllabic units. I'd be very wary of developing a typeface for such a system because I'd be more likely to design a typeface that doesn't present the necessary information in a readable way.
Maybe, hacking other country databases. Some countries like India have started a voluntary identification number (like social security number) program where they take all these biometrics. That would be too aggressive to be practical though.
I use google's 'filetype:epub' to download ebooks, whether or no they have "copyright" or not. When will Larry & Sergey go to prison for me doing that?
@google.com is for people who work at google, @gmail.com is what I meant, as "google's email service". I agree, it wasn't very clear, but I don't particularly want harvesters having an easy time.
I think 35 hours is a pretty normal limit with the caveat that it only involves one type of work. If I'm programming for 35 hours, I'm done. If you mix that in with meetings, design discussions, etc, you can get more than that.

Some of the people I've seen who can do 50 hours of productive work are in roles that extend beyond programming where there is a good mix of things.
It's also pretty outrageous. A person can live very comfortably on say 50k a year in many areas of the country (without kids).
From Node.js To Go, Why One Startup Made The Switch
Honestly, not much would be missed if this is your attitude to things that don't work exactly the way you want them to.

I'd hazard a guess that your friends are more likely 'acquaintances' or 'hangout buddies' (nothing wrong with that) than friends. I know what all of my friends do in life (and it's a diverse mix, from trauma docs to people who work for the governor to self-made day traders to senior management at IT multi-nationals) and, perhaps surprisingly to you, we are able to balance work as a minor conversation topic from time to time.

But phrases such as 'stupid', 'predictable', 'irrelevant', 'annoying', 'bland' only give off the perception of you as having quite the superiority complex, haughtily sniffing down your nose at anyone deigning to disagree.

Why? For we are not our jobs. But as we move through our lives, particularly beyond that first job or two, the kind of person we might be, our wants and desires are not defined, but least elucidated at by how we choose to spend a quarter of our lives.
At times, it's ok to appreciate the effort and keeping your valuable feedback for some other time.
Latency is tube length, bandwidth is tube width.
How Shippable Has Scaled Docker In A Way It Never Could With AWS VMs
Now tell us, please, how looping constructs in CL aren't DSLs and how it how it contradicts your definitions.

hint: the term DSL was popularized by SICP. One needs high-order procedures to implement a simple DSL, the feature which wasn't available in most language but Lisps.
What do you mean by "trial solutions"? Were you just substituting numbers for x and seeing if they worked out? If that is what you mean I can't see why it would be a better procedure than using the quadratic formula.
Vote 10,000 times.  This contest relies *only* on client-side validation.
I'll go ahead and say what you tiptoed around. You cannot recreate the experience of a top-tier MBA program online. You cannot drink online. You cannot travel the world online. You cannot play rugby online. There are hundreds of things that make B school what it is that you just cannot do online.
I've heard second hand information about commercially available iris (not retina) scanners that can acquire 50 irises per minute from a rather large distance.
I feel like one of the merits of python is the looseness of classes and multiple inheritance. You get the benefits of OO without some of the pitfalls. Sure, you can go through the effort of defining an abstract class but it often isn't needed since your object is often composed of a bunch of separate objects - dealing with a formal contract to some 'abstract' version of your object just adds boilerplate and ends up creating convoluted class hierarchies.
Contrary to your guess, this approach has brought far higher quality and more intimate relationships into my life. You'd be surprised how immediately rejecting what you anticipate will bother you results in the void being filled by what will add to your life.

If someone is still in a phase of their life where the first question out of their mouth is "what do you do for a living," they can find other friends. There are a lot of people in this world - no need for me to waste my time with ones who follow routine social interaction protocols. Suggesting this is elitist is a little silly. We are all elitists. There are 7 billion people in this world - we choose who we spend our time, and always reject others. Not actively making that choice is a recipe for an unfulfilling and frustrating existence.

I'm not saying you shouldn't know what your friends do, only that I don't want relationships where my first impression or their first impression is based on employment.
Depends who they piss off to some degree. If a successful claim can be made that they are being unethical they can also be disbarred.
Sorry, editing error... meant to refer to unsafe blocks in Rust, and the unsafe package in Go.
I can't tell whether this is serious or it's a parody. I'm leaning towards the latter given the title, but it's hard to tell.
'll give you a mock phone interview if you'd like. Just give me your info and we can set it up.
Every time someone talks about piracy, someone just have to bring up GPL.

GPL says: Do what ever you want with the program so long no one become restricted by your actions.

If you patch it and send a proprietary version to someone, it will still be the same program. The difference will be the added restriction. The software license only uses copyright to enforce a "share, and share alike" concept.

Using copyright to restrict distribution, ala the proprietary model, is not the same as enforcing a share alike concept. They might use the same law, but the underlying concept is completely separate. Free and open source licenses are also not commonly enforced against individuals, but proprietary software is.

Or to summarize: Restrict restrictions is good. Breaking restrictions is good. Ignoring restrictions is good. Each 3 is consistent with each other.
I believe the default now is that nothing is saved, not even for a week. However, each user can configure a setting that does cause Twitch to save the stream for about a week, before it's deleted.

In order to fully archive a stream "permanently", a user needs to view each archived recording individually and select an option from that page to save it forever.
Google Receives 12,000 Requests To Be Forgotten From Europeans On Day One
Yes, I meant substituting numbers for x and seeing if they worked out. To get integer solutions, it's enough to try divisors of the constant term. Try it yourself. It's faster.
Title should be "This contest relies only on client-side validation"
There's nothing wrong with common symbols being trademarked. The purpose of trademarks is to prevent misrepresentation of origin and consumer confusion. If a company uses a common symbol to mark their products and this distinguishes them from competing products, it would make no sense to not allow them a trademark.

Keep in mind that trademarks are limited to particular areas of commerce. If someone got a trademark on π as the name of a line of condoms, for instance, that would not prevent anyone from using π as the name of a line of fishing poles.

The problem here is not with a common symbol being trademarked. The problem here is that "π." does not do a good job of identifying a line of clothing, because there have been plenty of prior lines of clothing that have included "π" on them.
If anything this seems like the customer is the one that is being used as a bargaining chip, not Malcolm Gladwell. There are two companies trying to get their way, refusing to budge, and using whatever tools are at their disposal to try to get the other to acquiesce.
Re the IPX acknowledged, but I think Sun were still selling them at many times the cost of a 486/66.

Re Sun C and GCC - it's not the difficulty of getting GCC on; its the fact that the whole culture of development started to revolve around GCC rather than Sun C.
Total information awareness is the first truly strategic capability since the development of nuclear weapons 70 years ago.

Where the analogy falls down: It's probably 10X more effective to spy on your own people than to spy on a foreign power. This will result in a magnetic draw towards spying domestically and corruption. Perhaps a better analogy is the greater effectiveness of WWII bombing against civilian populations over industry and military installations, with the result that bombing ended up being aimed primarily against civilian living areas.
Really enjoyed the visualization, even if it was a little hard to get a sense of the scale.

With no flat area, Camp 3 looks like a bear to stay at. If anyone is curious, wind speeds get up to an estimated 175 mph (78 m/s) at the summit [1]. I would be worried about being whisked off of the top of the summit.

[1] http://www.wunderground.com/blog/weatherhistorian/extreme-we...
In other words, a HBS degree only has value because some powerful entranched people feel inclined to defend it because for them it's a sunk cost. In other words, if there is any actual value of the courses, it's beside the point, and HBS has zero incentive to do anything but raise the price, in time and money.

I'm sure they give a reasonable introduction to the material, but that's not how they profile themselves at all.

It's an inverted lemon market. Instead of the lowest price winning, it's the highest price that still generates a just large enough elitist club. But the product is not education, the product is the elitist club.

Exactly what you'd expect for the business side of companies. These people are as suitable for management as high heels are for walking, in the same way.
the video documentary is absolutely incredible! the perseverance of the stranded climber is so inspiring.
Yes, it is faster for small integer values. Most numbers aren't small integer values. Test questions are usually designed to give nice clean answers but the real world isn't like that. They were trying to test your ability to solve quadratic equations in the general case. Your approach doesn't demonstrate that ability.
How well do cosmetic contact lenses defend against this?

Start wearing them as a matter of course.
If you look at any historical movement of resistance against the powers that be, ever, the primary source of resistance power is embodied in networks of people bound by personal and cultural ties. By gaining detailed intelligence about these networks, governments can potentially place themselves into the position of the perfect oppressors. Online Social Networks are possibly the means by which rebelling AIs will enslave and exterminate the human race.

The advance of technology means that eventually the power available to individuals in the future comes to rival that of small nations today. Then, the only way to avoid calamity would be to use total surveillance to feed AIs that figure out who will become a terrorist before the terrorists themselves realize it. Skynet/The Forbin Project won't be build by the Department of Defense. It will be built by the NSA. And it won't machine gun us to death. It will manipulate culture and society such that Homo sapiens voluntarily stops reproducing and dies out.

How about the AIs pretend to implement brain-uploading of people into a virtual paradise, but it turns out to be a put-on to trick us all into shoving our heads voluntarily into nano disassemblers.
Broad based crime rates and 'that one guy raped and killed a bunch of people' are two dramatically different things. Having a hard limit in sentences ignores the fact that in any population there are a tiny handful of outliers that can never be rehabilitated and should never see the light of day in free society again. Arguably the average punishment is too high but the extreme punishment is too low. If the maximum sentence is 25 years, one does a car thief get? Because I personaly feel that anyone that commits murder is more than 25x as bad for society as a thief.
Ha. So if, at any time, over the course of our friendship, I asked what you spent 30-40% of your waking hours doing, that would be stupid, "predicable" (if you're going to call me stupid, first learn to spell check), and irrelevant? I find it odd when that's someone's first question, but someone I'd consider a friend should know that. Perhaps you have a low bar for friendship.
The Wild Children of Yesteryear
Utter crap.

I do not think you know what the hell you're talking about - and I also don't think you understand the gravity of the power that having an octopus for total information awareness over the planet actually means.

You're lost.
It's true their site could be more navigable but they're doing the lord's work, so I let them off the hook.

Contacted the Archive Team about a few sites that would be otherwise lost and they archived them, and will eventually be progressively be uploaded to IA. Great folk there as well.
Don't doubt yourself so much. While talent is undeniably an advantage, in the long term, someone who is persistent, overcomes obstacles, and has real interest in the work will win over raw talent 9/10 times [grit,1]. The fact that you were accepted to a good school is justification that you have more than enough intrinsic ability. Just find some area that you're interested in and you feel is important and challenging, and stick with it day after day and you'll be rockin it soon.

[1] https://www.youtube.com/watch?v=H14bBuluwB8
Self-signed cert is probably a bad idea in pretty much all cases. But implementing your own CA is a different story. And the answer to your question for your own CA is the usual - "it depends" :)

For an external web application/web service/API/... it is pretty bad. Users will run into certificate errors with their browsers or the code. Some will be smart enough but many will be scared away. Not good for your growth plans :)

For an enterprise web apps it is a completely different game. Pretty much you MUST setup your own CA (for example, it would allow you to spy on your employees - if you are paranoid about leaking secrets to competitors or press). The usability issue is not a problem since the laptop/desktop will be configured by the IT team anyway and they can setup the trusted certs along the way.

Lastly, for your internal mid-tier services (you are following SOA, right?) having your own CA would allow you to create as many certs as needed fast and "for free". Thus, you can easily implement cert based authentication and separate roles for different mid-tier/backend services. By implementing the usual security measures to protect private keys (including root CA keys), you actually get a much better security than using one "real" cert for everything. Again, configuration should not be a big deal since you are controlling internal services and network anyway.
Could you please link to the map?

And how are you 100% sure that you aren't being watched by your ISP at least? :)
You now now a new subscriber to your blog. I found it incredibly refreshing, interesting and rather unique.
I have my doubts that the fully surveilled society that is being created by the government and corporations can be turned back, I see it as only becoming more comprehensive for the foreseeable future. We don't understand the ethical issues that will be involved in this new society, there are surely some benefits along with the many negatives. I envision it kind of like The Matrix where we are all plugged into the global brain with shrinking spaces for any kind of underground.
note that this book has some significant bugs (I remember specifically a faulty quadratic equation that I was stuck on), but I don't think you use this book for the code, which is pretty outdated. This book is useful as a reminder that things like photoshop are driven by algorithms, many of which are not rocket science but rather, fit in your pocket.

One thing I particularly like about this book is that the author used photographs of his child that look super unhappy. After applying filters to them, she looks even more unhappy. It gives the book a dark and foreboding feeling.

Anyway, I always show this book to my students (along with processes like saving a raw image and opening it in audacity as a sound file, the custom tool in photoshop) as a means of demystifying image processing.
So my interface looks something like:

Age:
Height:
Sex:
Eye Color:
Skin Color:
Build:

and I can fill it in and I will be presented with an image (or images) that matches that query, along with basically all the other information currently collected about that individual?

So, a use case would be...a 6'2'' individual with medium complexion and shinny build with heavy facial hair was caught on a camera doing some potentially illicit activity and the feds can feed that info into the DB and the output is a list of people who match that description, along with all available information such as (I'm guessing here), last known location (most likely according to their last internet login and/or cellphone ping), full transcripts of their emails, chat, voip conversations, etc..?

But how does the system match the photo to the name? [The app 'NSA' would like access to your Facebook Photos. This app will not be able to post on your behalf."]?
I up voted this because it made me laugh, even though I don't understand.
The code style is making me nervous. Why use ++x over x++ when incrementing variables?
Thought it was clear the OP was talking about assembly?

Which, thanks to pipeline stalls and out-of-order execution is no walk in the park these days, but it's not TOO bad.
Not at all. In the context of the date of the article he addresses the physical limitations in place at the time, implying devices that don't come close to the physical limitation can see improvement.

>No matter how small the amount of data, for any particular network device there's always a minimum time that you can never beat. That's called the latency of the device. For a typical Ethernet connection the latency is usually about 0.3ms (milliseconds -- thousandths of a second). For a typical modem link the latency is usually about 100ms, about 300 times worse than Ethernet.

Furthermore, he directly addresses the possibilities of improving things in software, including buffering. Maybe not the fantasy algorithmic improvements you're speculating about but concrete design improvements in the modem stack available at the time.

>Because when you use the Geoport adapter the modem software is running on the same CPU as your TCP/IP software and your Web browser, it could know exactly what you are doing. When your Web browser sends a TCP packet, there's no need for the Geoport modem software to mimic the behaviour of current modems. It could take that packet, encode it, and start sending it over the telephone line immediately, with almost zero latency.

You're correct about many of our current latency issues being giant buffers developed to chase peak throughput for a marketing number instead of the low latency numbers that affect directly affect the (IMO) most interesting uses of the network: realtime interactive applications like communication and gaming.
It looks like he was the Pirate Party candidate for European parliament in recent elections, but was not successful. It also means, that his immunity from prosecution as a candidate has just finished and the arrest was possible.

Quote from the article: "In Finland, where Pirate Bay founder Peter Sunde sought a seat, counting the Party secured just 0.7 per cent of the vote." http://www.theregister.co.uk/2014/05/26/european_voters_make...
That's not what I said. Many of my friends do know what I do.

This whole thread is about first dates and meeting people. I don't want to be around people who have that as their first question. It indicates low creativity, low fun, social compliance, and if I bring a crew of such people around - people will assume the same of me.

If that's not who you are, learn to signal that by not asking dumb questions off the bat, and learn to time such inquiries for when they make sense and rapport has been established. Socializing is about relationships, not information exchange.

And thanks for the spelling lesson. You must be a cheer.
At that level the recommended allocation would bias towards munis and dividend stocks, so taxation burden will be lighter.
Hitler did what he did for the common good.
What do you not understand about warrants?
> too aggressive to be practical

I'm pretty sure that's one of the only requirements for an NSA project.
The original headline ends in a question mark, cites one person from Twitter who claims a 2004 (?) conversion, and still provides no explanation why any government might possibly want to serve TrueCrypt a warrant, given that they don't store user data (unlike Lavabit) and all their source code was open anyway.
Show HN : 029 :Let see who quicker: the Numbers or your Brain?
I don't believe the TC dev(s) did that?
Living in some area you have to live due to financial constraints and not exploring the world at your own schedule is the opposite of definition of FU money.
You need xcode at some point to sign and publish apps. What I have setup is a continuous integration server (bamboo) on a mac mini that I tell to build the apps for testing. I haven't actually set it up for signing/publishing.. but theoretically I could have it do that as well. So I should have no problems writing the actual code in linux but then I'll wind up with a few additional steps along with extra hardware.

I'm surprised that Apple hasn't locked down xcode to only be installed on specific devices, like MBPs and Mac Pros. That would be a huge slap in the face but I can totally see it happening if doing what I mentioned above becomes more popular.

Personally I'd rather just code for the web and be as OS agnostic as possible, html5 and javascript
Why Atom Can’t Replace Vim – Learning the lesson of vi
Surving The AdPocalypse: What will you do when advertising stops working?
Miami Gardens ‘Stop and Frisk’ Nabs Thousands of Kids
Whats the rent/own situation?
You can just imagine how the conversation goes:

"Sir, he burned off half his face to resist identification."

"...Have him drop trough."

Serious note though, it's similar to how the kinect is sitting in households across America, and I think the new one with the XBOX One can't be turned off. A microphone and camera system right into people's living rooms.

And of course, the government now wants a database of consumers credit information.

I try to not be a conspiracy theorist but when you hand them this much information, it's hard to trust people to do the 'right' thing.