skysight-inc/HackerNews huggingface dataset:
How to do API Versioning?
I have a query in my usecase. Please help me to solve.

This is my scenario :

I have to do API versioning. I am using REST APIs with Restlet framework. I am confused how to implement the versioning in Java Source code.

If my API looks like this : http://localhost:8080/example.com/v2/hello
Then In my source code how to map the version with appropriate functionality?

For example :

If(version == 1) {//Do Version 1 Source Code}
else If(version == 2) {//Do Version 2 Source Code}
else If(version == 3) {//Do Version 3 Source Code} ………..

If I did like this, Then why we are going for Versioning. We can implement Manually Right? And also If I have to add some 100 versions, then the code looks uglier and it becomes lengthier.
I get confused how to map in Source Code. Please Clarify my doubt.

I have read that we can use annotations for handling API versioning. But I don't know what are the annotations available in restlet framework. Please let me know.

Regards,
Geetha.
The ban is just for .gov sites.

"This proposed initiative, “The HTTPS-Only Standard,” would require the use of HTTPS on all publicly accessible Federal websites and web services."
If they are paying you to work on-site, then it makes sense for them to have some say in when that happens, or you might as well have been working remotely. It's hard to fault them for wanting to let their own team get a chance to understand the tech, so your project does not become yet another "PoS left by some consultant" that nobody wants to touch.

I'd suggest seeing if perhaps you can reach a compromise where you retain some flexibility, but there's a bunch of your hours that are sure to overlap with the office hours (e.g. always be on-site for 3-4 hours around noon). And maybe you'd even only have to do this part of the week, e.g. mon-wed-fri? With most conflicts, the solution is usually to have both parties answer the question "what are you trying to achieve?" and then working together to find a third solution that satisfies both parties, instead of focusing too much on the schism between the two proposed solutions that the parties had come up with individually.

If all this is a big hassle for you then by all means, charge accordingly, and in the future think more about what kinds of gigs you take on and how much face time they are likely to require. Maybe 'remote only' is a better fit for you?
From practical experience, the break in the flow is minimal: you lose your immediate context, not the entire structure you've built up in your mind. And the loss of context isn't always bad, as it's helped me figure out small problems or identify potential problems which I normally miss from being constantly heads down.
German Economy: Siemens Sales in Russia Have Dropped by 50%
Massive 2.0: A Postgres-Centric Data Access Tool
The end of Moore's law
Pretty simplistic/naive.
Blogging.

We both blogged in the same niche for many years and exchanged a few emails, cross-posts and that kind of thing. Last year, I realised I was never going to make a successful business by myself and started to look for a non-technical co-founder - I emailed Geoff because I knew that he knew his stuff in our niche and he seemed like a good bloke.

My email was something along the lines of, "I'm thinking of building something, no idea what, fancy it?", the time was right for him and we have been profitable almost from day one.
First off, this looks great! It has a simple interface and could compliment some simple projects very well.

However, this quote, "If you run a Redis server and currently use Amazon SQS or a similar message queue you might as well use this fast little replacement" is greatly over simplifying things.

Amazon SQS gives you acknowledgement guarantees that are not possible with Redis. Don't get me wrong, I love Redis, but you can't reliably trust that writes happen.

https://aphyr.com/posts/283-call-me-maybe-redis
they will give time, e.g Ubuntu One file services closed shop and gave some time and even free migration services to another provider.
"has no relevance whatsoever."

It would have certainly helped that any entity (kingdom, province, nation, whatever you want) was ever called "Palestinian" whenever you want to claim that "palestinians arabs" are the only legitimate people for this land.

Don't forget that even the term "palestinian" to designate arabs is very recent (1960s). Before that, the conflict was called a conflict between arabs and jews, and didn't even involve the concept of a palestinian right to have its own nation.

And it's fine with me, i don't mind palestinian arabs defining themselves as a people, and wanting an independant state. Just don't claim that it's something that's been there forever and is therefor the only legitimate political construct for the area.
Operation Pawn Storm on Continued Marathon
I'm always disappointed when I see a new operating system on here if being able to talk directly to God isn't one of its core features.

(But seriously, purely from the feature list, this looks like an incredible achievement.)
This is godlike.
Previous workplace.
Ew, Adobe Flex
That looks pretty awesome, although fairly orthogonal to this discussion. I submitted it as a story on its own. https://news.ycombinator.com/item?id=9407782
Could someone explain what Google believes its core competency is? Do they really think that over the long term they can be a software company and a car company?
Sliding Boxes
I'm not a big fan of the subsidies given out to promote ethanol production, but to be fair, this article does nothing to mention the tens of billions of dollars given out to promote oil and gas exploration. Oil and gas have had a 100 year head start in developing production technology thanks to federal subsidies. To really get an understanding of how these two energy sources compare, all subsidies for all energy sources need to be accounted for.
One big problem WhatsApp suffers from is having a majority of userbase in developing countries. India, where credit card penetration is still very low and people still are not accustomed to the concept of "buying" software, WhatsApp, simply keeps extending the free subscription period because most of people would find it very hard to pay, even something as little as $0.99.

On the contrary, people here are ready to see obtrusive ads and avoid paying anything, because "free" is better.
It's tempting to suggest to use "crafter", but that term has its own connotations different from "craftsman/craftswoman/craftsperson". See http://www.potters.org/subject46874.htm for examples from 2001:

> [person #1:] I am uncomfortable with the word "crafter." I think it is used by people who do not know better in reference to anyone who practices any kind of craft. When we use the term "craftsman" or "craftsperson" we have a very
definite concept in mind, and it is nothing like "crafter."

> [person #2:] Crafter, hmmmm. The image that comes to my mind is a person who makes toilet seat covers from little pieces of foam rubber and similar do-dads from the kits A.C. Moore and similar stores sell.

> [person #3:] I suspect that "crafter" is the newspaper's politically correct solution to the dilemma of the "man" in "craftsman". Kind of like "server" instead of "waitress/waiter". Unfortunately, the term "crafter" conjures up (in my mind) images of hot-gluing egg carton cut-outs together to form Christmas stars, and making poodles out of empty bread bags . . . you get the idea.

Several in that thread preferred instead to avoid the issue and use "artisan".

The Wikipedia entry http://en.wikipedia.org/wiki/Craft concurs: "The traditional terms craftsman and craftswoman are nowadays often replaced by artisan and rarely by craftsperson (craftspeople)."
> Guaranteed delivery of a message to exactly one recipient within a messages visibility timeout.

I'll just leave this here for you: http://bravenewgeek.com/you-cannot-have-exactly-once-deliver...

Welcome to message queues. Where the network is both your best friend and enemy.
Actually, the vast majority of mobile phones do have built-in FM. That might not be true in the US, but it is certainly true of the the vast majority of mobile phones worldwide.

More likely: most US mobile phones not made by Apple also have FM, but the carriers block it. Hence http://www.npr.org/blogs/alltechconsidered/2015/04/16/400178...
Berlin Cracks Down on Vacation Rentals
The fact that Comodo is occasionally scammed (a headline-generating event) does not prove that they add no level of identity authentication.
GM is a car manufacturer and a bank. I've been seeing more evidence that every large company will eventually become a bank.
Well, that is not really the point: I do want to pay taxes. If I don't declare anything, I would end up being a zero income and run into some finacial trouble very soon.
I don't think BMW, with their slogan "The Ultimate Driving Machine", shares your notion of what it means to be German, then. Or even Volkswagen with "Das Auto", is it really the car, or just a car?

It'd be lying if he were to say "we have 100% POSIX compliance." Very few OS projects can claim that. It needs to also be version-qualified, as there are several POSIX standards and even Windows can claim compliance with some of the versions.

My point is that this information of the current state of the project does not belong in the introduction to the project. The fact that it is a Zero-Point-Something version number is information enough that the project is incomplete.

SpaceX "...DESIGNS, MANUFACTURES AND LAUNCHES ADVANCED ROCKETS AND SPACECRAFT". They don't add caveats about completeness or design flaws or anything of that sort in their introduction.

And my reduction is just a call-out. The introductory section of the site is three paragraphs and a sentence long. It's not an introduction at all, at that point. All of these extraneous details are specifically making the introduction less clear, not more.
Except, as far as I know, Facebook/WhatsApp shouldn't be able to read the messages people send each other over the WhatsApp network because of end-to-end encryption:

https://whispersystems.org/blog/whatsapp/
>I'd love to see a quantification of the value of knowing the world's social graph.

226.0901B United States Dollars as of this moment.
Leave it to Florida...
My WhatsApp didn't even bothered asking me for the $1 when the first year ended, I still use it just fine.
What I don't understand is that effectively for me, and everyone I know, Whatsapp is indeed free. Everyone started using it despite the "1st year free, after that pay up" and every year since we get a message saying like "we extended your membership for another year, please consider paying though". I'm not sure if it's different in other countries but from where I stand there's loads of people using whatsapp and not paying a cent for it.
> With 80%+ of corn grown in the US being from Monsanto seeds

As a grower of corn, I find that pretty hard to believe. Pioneer, a DuPont company, has a presence that is as large as Dekalb, Monsanto's brand. There are also several more smaller players. A quick search of my own suggests that Dekalb and Pioneer own 70% of the market together[1], which seems more realistic based on my experiences of buying corn seed.

[1] http://www.indystar.com/story/money/2013/10/28/agreliant-cor...
Well, the nice thing is that in most cases we don't have to worry about killing anyone when we screw up so we can practice by just creating programs.
Unfortunately, that's telling your div to start halfway. Following your suggestion leaves me with an element with its top left corner in the exact center of the containing div.

I'm not a fan of CSS due to issues like this. It falls in the same line as issues where, for example, paddings and margins (and borders) are added to the size of your div rather than subtracted. There's a solution for that that makes sense nowadays but by the time that came about, I'd already stopped liking CSS.
> "You don't need to stick ads IN the app to monetise it."

Exactly. I'm always surprised when people think it's the ads themselves that matter. It's the behavioural data and profiling that's valuable. With that information, you can place targeted ads elsewhere.

I'm sure most users still don't realise that WhatsApp is an FB product now.
Sony Unveils Xperia Z4 in Japan, Commits to Functionality and Design
Yes, in the long term they can be a software company.
Can't predict yet about the car company though.
Somewhat unrelated, but to build on your point: the "ineffectiveness" of the French military is largely a myth as well. Their battle record over their history is quite exemplary, punctuated with the same smattering of grand victories and crushing defeats that all of it's contemporary European neighbors have had to suffer and endure as well. All together, their effectiveness skews far more towards the exceptional, and I'd argue that the stereotype of "retreating French" is largely born of the misconceptions surrounding their strategic collapse in 1940. It is that one event I'd argue that fuels the jokes.
GM sold their financing arm to Cerebus years ago.
FUD

Snailmail and spoken word are much harder to snoop en masse. Apples, oranges.
I am currently working on establishing a company builder (high equity ownership of each venture, lots of shared resources, mostly internal ideas, quick and lean implementations, an experimental approach).

Not ready for public exposure yet. Always looking for feedback and tips on this approach to solving problems!
This was because the company behind Ubuntu (Canonical) shut down the service, they didn't go under themselves.

If the cloud infrastrucure is Box's, and they cannot pay the maintenance fees anymore, I would start seriously worrying.

In a way, committing to a company whose main business is cloud storage gives you more guarantees they won't shut down the service out of the blue (since it's their only, or main, source of revenue), while committing to a big company with their eggs in more baskets (MS, Google) gives you more guarantees that if they shut down the service you'll be given some time to react.
My thoughts exactly. Randomness has a place in tests, but not in unit tests.
They say the network communication is encrypted between end points but they don't say analysing is not being done prior to encryption on your end. What I mean is it is possible for the communication over the network to be encrypted between Bob and Alice but everything Bob writes to Alice could easily be used by WhatsApp/Facebook prior to being sent. They could even go as far as to encrypt it and just transmit your side of the conversation to their servers for later analysis.
Snailmail and spoken word are also much harder to use legitimately en masse. Consider the cost of an email campaign vs. a snailmail campaign.
Online Jobs Marketplace Freelancer.com Moves into Home and Local Services
My girlfriend did her Msc. in agricultural economics by spending months in Ethiopia, touring villages in a Toyota SUV with a driver and two translators and evaluating the various development programs.

I joined her for the last 3 weeks, and so I got to know some of the guys that run these programs and the whole cultural UN/Worldbank etc. bubble. I came away impressed, the country itself is very under-developed, but these people (mostly) made a good impression. They try to do as much as possible on their own, and not relying too much on foreign expertise or leadership.

Its not exactly a democracy, and some programs are essentially forced labour, requiring villagers to work for free and build these terraces and irrigation etc., but it works and they have no money to do it any other way. Places where people used to starve are now food-secure.

It is also a great country to travel, violence is very rare and the food is really nice. It helped to eliminate lots of preconceptions I had.
I doubt it describes the current situation, but it is presumably sensible to subsidize a profitable agricultural industry if the cost of the subsidy is lower than the cost of occasional bust years (and any subsequent food shortages).

(The US market could be of sufficient size and sophistication where it would never actually happen, but that is hard to determine in the abstract)
Ireland gets tough on trolls – up to five years and fines of €75k
Pray tell. How does loos of labor union power or manufacturing overseas by any metrics detract from my point?
I think it's too early for Tesla to sell. Maybe in 10 years. First allow it to get big enough to get a strong culture that can't be changed by another company. What do you think would happen if say GM bought Tesla now? Do you think Tesla would be able to convert GM to their way of doing things, or the other way around? (especially if Elon Musk leaves to focus on Space X)
This clip from the Simpsons should answer all your questions ;)
https://www.youtube.com/watch?v=HK0BMaUMmGw
Ha, the first time I saw he site I was incredibly confused for that reason.
Imagine you've MITM'd funnycatpictures.com. Why, as an end user would I care about the integrity of the funny cat picture you maliciously send me. Provided it is still a funny picture of a cat, your evil http version of the website is still just as useful as the original.

There are a lot more funny cat picture sites than banking websites. They are fine using the same protocol they have been since 1995.
Massive respect for doing this but it saddens me to see that operating systems aren't thinking of anything new.

As Rob Pike said, operating systems research is dead.

FUCK POSIX.
100% gas does cost more because ethanol is subsidized, but depending on your engine you can get more than that back in mileage. (The same mechanic told me that some 6-cyl Toyota engines lose 42% of efficiency on 10% ethanol.)
If you mean the Paris Peace Accords, that was never ratified by the US Senate (is it a promise if the other side don't hold up their end?), and the US had been reducing troops for nearly four years by that point ('Vietnamization') due to domestic public opposition.

Ultimately the USA's primary war goal was to keep their puppet state of South Vietnam - a goal that certainly wasn't met. You have to squint your eyes pretty hard and turn your head sideways to claim the US won the Vietnam War.
Cloud-Native Apps: Making the Developer a First-Class User of the Datacenter
Finishing a war with exit conditions that you can't enforce doesn't really sound like winning in any meaningful sense.
> SMS had the advantage that everybody had SMS

Well not everyone (the first one was sent 7 years after the first mobile phone call). And if you want to consider it to be everyone, then it's an example of something where everyone has it yet it's not free.

> People do not want to use another messaging service

No, and therefore you need to offer something better to make up for the annoyance of changing.

I understand your point, it's the clearest example of a network effect and given two identical products the cheaper should be more attractive. However, this doesn't mean it has to have everyone and has to be free. Those are beneficial, but not absolute requirements.

Right now, I'd pay money for a decent messaging service with push & pull, with a simple API that supports sending images. It doesn't even have to have many users, I simply want this service at the moment and will pay money for it.
It's not exactly "once". It's exactly "one" within a defined period of time. So in that articles context it would be the "at-least-once" variant.

If the recipient fails to process the message for some reason it will reappear after the visibility timeout.
It's not just about sensitive. It's also about correct.
National organisation/institution?
This also relies on a container DIV (".overlay"). So Flexbox doesn't help here.
We don't live in the plucky, upstart 1991 anymore. "If 386BSD had been available when I started on Linux, Linux would probably never had happened." (http://gondwanaland.com/meta/history/interview.html). We live in today, a world that has several open-source OSes available, with users who are used to seeing projects on the internet.
Photon – Minimal Linux Container Host
This seems to be the feature we need if browsers would support it.

I can see how this would cause issues in the "presentation", i.e., how could a browser warn a user that for this session your data is not encrypted (given expectations for pages served via https have already been defaulted to 'you are at the right site + data transfers are encrypted').
Google is an advertisement company. Not a software company (every company is doing tech nowadays).
Also people are probably used to holding things that don't matter too much if dropped. If someone dropped a 10/20/30 kg bag of rice and it landed on my toes, the bag would just fold around the foot and it wouldn't be a problem.

If someone dropped a 30kg piece of steel and it landed corner first, there's a decent chance of it just going straight through the foot.
I didn't realise this was 2012 until I started reading the comments. I wonder how much this post has changed post acquisition. I suspect Facebook grabbed my entire contact list from WhatsApp - the numbers in my phone were the only way to connect me to some of the people they suggest. As much as I hate it, it was a pretty crafty way to extend my social graph.
AWS OpsWorks: A Hands-On Guide to DevOps Application Management
Taking Netflix’s Vector Performance Monitoring Tool for a Spin
Principles of Site Design
Wow, dodged a bullet there.

"Please log into Google+ in order to unlock your car."
They're sorta turning into a commercially viable DARPA. They take some really hard, large scale, problems; get the right people in a room and find solutions.

Also, cars are basically software at this point. Especially tesla.
Related URLs that spilled on the internet before official publish.

VMware "Cloud Native" Product manager blog post about cloudnative platform [1]

Photon github page [2]

Photon iso image [3]

Lightware github page [4]

[1] http://blogs.vmware.com/cloudnative/

[2] http://vmware.github.io/photon/

[3] https://dl.bintray.com/vmware/photon/iso/1.0/x86_64/latest/

[4] https://vmware.github.io/lightwave/
How can this make frontpage? Is this news or relevant anyhow?
Introducing TypWrittr – Distraction-Free Cloud Text Editor for Writers
Why Develop Open-Source Software? (2007) [pdf]
Whatsapp is encrypted in transit. It is still stored on their servers. So they can read your messages.

Edit: Link -- https://www.eff.org/secure-messaging-scorecard
I think you should be able, in the sense that it should not be legally or technologically prohibited nor prohibitive. I do think there is a line, beyond which a service should be obligated to encrypt everything, and that line is somewhere around carrying others' messages, certainly around getting common carrier status for the same.

Edit: I must stress, social not legal consequences should apply. I'm in no hurry to invite government scrutiny of this line.
http://wolf3d42.tumblr.com/
http://raytracer42.tumblr.com/
> or more likely, he is an otherwise unremarkable trouble maker.

You know what? Perhaps that's up to him to decide. And perhaps he deserves that chance.
Since you took on freelancing in order to have freedom, then I would not surrender that freedom for a marginal financial bump.

I would tell the client you are available by phone or email during business hours, and that you will answer the phone, but you might not be at your desk. If you have a lot of conflicting meetings (ie. other clients) then lay out specific hours of availability to at least answer the phone.

I feel the client would be assured if you just answered the phone when needed during business, but you don't necessarily have to be sitting at your desk when the phone rings.

I would try this arrangement as best effort, and avoid hard-coding your hours into a contract, and as long as the client doesn't complain that you haven't been answering the phone then all is well.
Isn't that just standard language for basically all S-1 filings?