skysight-inc/HackerNews huggingface dataset:
Ask HN: Anyone actually using JSON API?
I'm working on a project to build a flexible database API wrapper and the requirements include REST support. I've known about JSON API for a while, however can't tell if it's a cute idea, or if it is actually being adopted broadly.

Before I model my wrapper around this, I'd like to get some real-world feedback from the HN community.
Blogger.com blogs such as this one ("programminggroundup") can be obtained in a single file containing all posts. Text or minimal HTML file. No gratuitous Javascript and no comment spam.

See http://news.ycombinator.com/item?id=6845367

Simple, portable shell script. Not perfect, but it still works. ^M means Ctrl-V,Ctrl-M in ed/ex/vi

#!/bin/sh

# requirements:
# netcat
# openssl
# sed
# optional: strings
# optional: addcr

type strings 2>&1 >/dev/null ||
strings(){ sed ;}
type addcr 2>&1 >/dev/null ||
addcr(){ sed ;}

[ $# -gt 0 ]||exec echo usage: $0 nameofblog

{
printf "GET / HTTP/1.0\r\n";
printf "Host: $1.blogspot.com\r\n";
printf "Connection: Close\r\n";
printf "\r\n";
} \
|exec nc -vv www.blogger.com 80 \
|exec sed '
s/\\046/\&/g;
s/\\46/\&/g;
s/\\075/=/g;
s/\\75/=/g;
/targetBlogID/!d;
s/.*targetBlogID=//;
s/&.*//;
' |exec sed 1q \
|while read a
do
{
printf "%b" "GET /feeds/$a/posts/default HTTP/1.1\r\n";
printf "Host: www.blogger.com\r\n";
printf "Connection: Close\r\n";
printf "\r\n";
}
done \
|openssl s_client -ign_eof -connect \
www.blogger.com:443 -verify 9 \
|exec addcr \
|{
echo
sed '
s/&lt;/</g;
s/&gt;/>/g;
s/&amp;/\&/g;
s/&quot;/\"/g;
1i\
<br><br>

s/<name>/<br><br>name &/g;
s/<uri>/<br>uri &/g;
s/<generator>/<br>generator &/g;
s/Blogger//;
s/<id>/<br>id &/g;
s/<published>/<br>published &/g;
s/<email>/<br>email &/g;
s/<title type=.text.>/<br><br>&/g;
s/<openSearch:totalResults>/<br>total results &/g;
s/<openSearch:startIndex>/<br>start index &/g;
s/<openSearch:itemsPerPage>/<br>items per page &/g;
s/<updated>/<br>updated &/g;
s/<thr:total>/<br>thr:total &/g;
s/<\/feed>/&<br><br><br>/;

s/^M*/<br>/;
' \
|strings
}
> I'd demand my money back, and contract canceled

$500 early termination fee, 8-12 weeks for a "partial refund" via cheque ;)
The Moto G having a TV antenna in it implies that this article is wrong:

http://www.gizmag.com/worlds-smallest-tv-antenna/42558/

We can ignore the "without having to compromise" remark gizmag made. Every antenna makes some sort of compromise.

That said, I now know what I want to see in my next phone. OTA TV. :)
Partially. I'll probably keep using it, though.
I've been wanting to use this in combination with Rabin's Information Dispersal algorithm to create an autonomous distributed file storage system. You would have redundancy, but redundancy in a way that you only require k of n "pieces" to recover your original file (or data object). This is pretty cool, because you don't need to have 10 copies of a 1 GB file (10 GB total) spread about the web in order to achieve a high probability of being able to recover your data.
I've been a happy T-mobile customer for years. Am on their $30 prepaid (unlimited data 5G at LTE speeds, 100 minutes) plan on Nexus phones. Have never bought "subsidized" carrier phones. 100 MB tethering (excluding HTTPs and VPN traffic) is included, which serves my needs. Ported my main number to Google Voice and all my calls go over data. Coverage has never been an issue either. Highly recommend T-mobile.
The Java.net and Kenai.com forges will be going dark on April 28, 2017
"City" it is called to whomever is concerned. Pretty good stuff.
Maybe in India they're better, but Mexican telcos are worse than American ones.
I worked at Pivotal (as a client), pairing 100% of the time in their open office. I liked the guys I worked with but despised everything else about it. Quitting that job to freelance and work remotely was the most liberating and healthy thing I've ever experienced.
They still need to identify themselves as the police. What they displayed is mob behavior; armed people threatening and going through a person's possessions.
VW customers should have realized that.
Same here. What happened to her son is terrible and I hope she gets justice. But people should also know that the Trayvon Martin Foundation has not adequately reported their financials as they are legally obligated to do. Currently, while unsubstantiated (because nobody knows), it's been stated in several places that the Foundation is being used as a funnel for money directly to Trayvon's family personally, without any uses that correspond to the Foundation's stated purposes. Since they've failed to properly file their Form 990 with the IRS, there's no public record of their finances.

I understand why the incident could have resonated with Ms. Taylor, but I also think as a journalist she has a responsibility to not promote an organization which is flagrantly failing to follow the law around nonprofits. Instead Ms. Taylor could have promoted several other charities with better track records if she felt this was the proper moment and venue to use to promote charities focused on civil rights. For instance [1][2][3][4] all received 5 star ratings on Charity Navigator and have purposes in line with those stated for the Trayvon Martin Foundation.

1. The Southern Center for Human Rights: http://www.charitynavigator.org/index.cfm?bay=search.summary...

2. The National Center for Law and Economic Justice: http://www.charitynavigator.org/index.cfm?bay=search.summary...

3. The Institute for Justice: http://www.charitynavigator.org/index.cfm?bay=search.summary...

4. Futures without Violence: http://www.charitynavigator.org/index.cfm?bay=search.summary...
> I think what it does is forward the signal as a GCM event which is then played in your browser. RPi itself doesn't play the sound in this case.

Yup. I usually have headphones on, so I wanted it to play the sound where I'll actually hear it.

GCM was so I wouldn't have to bother with disconnection/reconnection logic with individial browsers (especially phones...) myself. Then again, the GCM API seems so incredibly unreliable that that might actually have been a net improvement.
The whole practice of antitrust/competition law is basically about defining markets to serve whatever goal your client wants. If you're an underdog or regulator looking to bust a trust or cartel, you argue that the market in question is narrowly defined and show evidence of abuse in that market. If you're defending antitrust/competition claims, you argue that the market is broadly defined and show evidence of competition. Rinse. Repeat. Charge $1,500 per hour per attorney.
That feels pretty resolvable without forcing everyone to work in each other's lap wearing huge headphones.

In my experience daily standups are often enough to keep everyone on the same page and make sure no one is dashing off in the wrong direction.
Clearly, wherever your guests are visiting from handles homelessness better.
Housing would be a lot cheaper in SF if SF wanted cheaper housing.

Yes, they have geographical limitations on how much housing they can build horizontally, but on top of those they also have strict self-imposed limitations on how much they can build vertically.
Show HN: Klart – Capture Anything (Pocket for Screenshots)
> Be careful with enabling HTTP/2 for everything, especially when you do not control the clients. As HTTP/2 is still relatively new, from our experience, some clients/libraries and server implementations are not fully compatible yet.

One of the main excuses given for not enabling HTTP 1.1 pipelining was a small amount of software that didn't handle it correctly. According to Google, we needed a new protocol so we could start out fresh where there wouldn't be software not implementing the protocol correctly.

But according to this report, the browser with the largest market share and by the creators of HTTP/2 had a bad implementation of it for which a workaround had to be found for.

For history's sake we should recognize now that this buggy software argument for not enabling pipelining was never valid. Not enabling pipelining was used as a political tool to prevent HTTP 1.1 from being on par performance-wise with the new protocol people wanted for other reasons, and that's also why Google never even once tested SPDY against pipelining.
It depends what you mean by "bundling". For ClojureScript, the output is passed through the Google Closure compiler with advanced optimizations. The result is not a concatenation nor just a minimization -- it is a rewritten program, containing just the parts that are needed and significantly optimized.

So, the big resulting file is not a "bundle" and can't easily be split into parts.
Well in that case it is either 100% absolutely accurate or throws you somewhere in the middle of Morocco.
This is awesome! I want one.

> Is it expensive?

>It is definitely not cheap to make one of these. If we had to ballpark what one of these would sell for — assembled and working — it would certainly be larger than $1k and smaller than $5k.

I think this is out of range for many hobbyists and even schools and the like. Projects like the ErgoDox show that kits in the range of a few hundred bucks can sell well.

>While the circuit board itself is large and a little bit expensive, the cost is actually dominated by the component and assembly costs of an extremely large number of tiny components, each of which is individually quite inexpensive. Add to that the setup and test costs of building complex things like these in small batches, and you'll immediately see how it adds up.

So, the the only way to bring the price down below USD 1000 is, besides (possibly community driven) bulk buying, a kit version.

> Is there going to be a soldering kit version of this?

> No. (But on the other hand, "Anything is a soldering kit if you're brave enough!")

This brings me to my question: Is soldering this even realistic?
Did you solder the prototype yourself? How long did that take?
I soldered the SMD diodes of a few Ergodoxen (76 for a board) and it gets boring quickly.
Can't imagine doing 4304 parts.
卡上就放假了SD卡分解开连锁店
Interesting how the story became standardized in the tail. Sure, an issue here and there, but the last few lines about donating to a charity; it reduced the impact.
They used to put a Dobbshead on the CDs, way back in the day. I remember my dad's Slackware CDs had the photos on them; I always thought they looked like Mr. Cleaver, naturally, since I watched that show as a kid.
sldjfklsdflksdf离开的时间发来看上对方
That device only listens after I explicitly engage with it physically. If it decides to listen passively, that's a bug. With Alexa, it's a feature.
By "they" do you mean Verizon prepaid?
I don't want an office. I explicitly say no to one each year. Not to say that many people don't want one, but for me it would be detrimental. Being in an open area lets me overhear things that are useful and removes one barrier to socialising. If I was in an office I would do neither - I'm not the type to hang around the water cooler so being in an open ara combats that some.
Not really. Reagan did do that. He also made a lot of dick moves in the 1980s. That's why he was controversial.

He also cut school lunches shortly after taking office which spawned the famous meme "Ketchup is a vegetable."[1] Now I know some hagiographer of Saint Ronald of Hollywood (Peace Be Upon His Name), will say that he never said that. And they would be technically correct. The actual guidelines said that schools "could credit a condiment such as pickle relish as a vegetable."

[1] https://en.wikipedia.org/wiki/Ketchup_as_a_vegetable
I have to agree.. I remember the first time I saw google search... I was still using yahoo as it was my home page at the time. I found the yahoo version much more useful, that it outweighed google's better results.

Over the course of that year, I saw things get so bad with Y!, that you could sign up for a new email address, and before you could change your opt-out settings, it was too late, the address was sold, and you already had spam in your inbox. That's when Yahoo lost me as a user...

To this day, I have seen decisions of Google that I may not agree with... and others that make me leery in terms of depending on their products/applications. But nothing so sleazy that they've lost me as a user/customer. I know what their business model is... but afaik, they aren't directly selling my information to third parties. This is a pretty big deal.
100% solved hardly exists, but is there any city where the problem isn't smaller than in SF?
> I've had VPs ask me about how productive those programmers were with side remarks about seeing them frequently talking with front desk and hr (presumably socially).

Developers like that are hugely valuable in a start-up, they talk to everyone, get to know what their jobs are, and are the people you go to when you need to know what the problems internal users are facing really are.
I think the point was, simply, that it's very unlikely. Maybe they should've compared it to being killed in a car accident.
How to Create Your Own Simple REST Testing Framework
This was our entry to the SF Stupid Shit No One Needs and Terrible Ideas "Hackathon". https://github.com/amberrayh/scrollscore
Thanks. I wasn't aware of the history feature. It's not a complete solution, but it helps.
To be honest with you all my experiences with Services have made me never want to use them.
No, this has nothing to do with anything simple. It is awfully overengineered. It is definitely not a way do implement DSLs.
If the script is mixing title comments into executed SQL code, then I don't think there is much hope for it. This line of argument allows post facto rationalization for determining unauthorized access. To make a claim that something was unauthorized is to claim that there is some procedure that can determine whether something is authorized or not. That procedure is the thing that should actually be executed when deciding to serve a request. We are talking about cases where the written procedure says the request was authorized, but someone else claims that the actual procedure gives a different result [insert ad-hoc, post-facto rationalization here (ie. not policy)].

This is clearly nonsense, though it may take some time for courts to figure it out.
we bought the same horrible door bell to our office. couldn't stand the sound either. hooked it up to a wind chime and slack in a similar way.
http://labs.earthpeople.se/2015/01/how-to-make-a-wind-chime-...
Generally, people in the U.S. buy a phone from the telco itself, and specific companies customize the software and packaging of their phones. Sometimes, different models are produced for sale by specific telcos.

I understand and agree with the outrage you feel, but the status quo is powerful and slow to change. There are telcos that explicitly provide tethering in their plans as a standard feature, and bringing an outside device to operate with the telco is easier than it used to be, so maybe things are starting to shift.
Nura: Headphones that learn and adapt to your unique hearing
Twice what you pay eg for giffgaff in the UK per month.
I signed up with Ringplus. They sometimes give free tethering with their "free" service. So far, I have paid a one time top up on a plan that does not bill me and got tethering too, so I am happy with it. The price certainly was right.

That said, I could make similiar remarks about telecommunications companies still charging for phone service given that I do not pay monthly bills for it anymore, yet have it. If RingPlus' advertising and freemium business model turns out to be sustainable, then I ought to still have "free" service a few years from now.
AFAIK a big chunk of the 99% conviction rate is because police will not pursue a case that isn't easy open and shut.
Good write up. Don't give up either... True mastery is always just that far away. Fair warning though, something like Hebrew or even middle Egyptian might be around the corner of your interests.
I'm not affiliated, and whilst I'm generally super sceptical of hardware kickstarters, this gets my backing!
If meat eating was the reason for being exiled out of heaven - the only thing I would say is - it was worth it. As a person that spent summers in the rural area while young - killing an animal is no big deal.
I love this. You used to be able to get mouse pedometers. (Here's a description of one example http://www.bowlandcentral.com/forum/archive/index.php/t-3074... )

I enjoy collecting these kinds of numbers.
"People want to read about how to fix broken systems."

I hope that's true, but I suspect that people prefer to read about how broken things are, and point fingers at the perceived culprits. Fixing things leads eventually to "slow news days".

Where I live in Japan, it's not uncommon for the news to spend a bunch of time on a non-fatal car crash, or a string of petty thefts in convenience stores, or a section of train tracks that needed to be fixed in a hurry. Every few weeks, some government official will be disgraced for having a staff member who spent a few dollars worth of public funds on a discretionary lunch or something like that. Occasionally, someone will get murdered (usually small kids, sadly) and that will dominate the news for a day, or a week. Celebrities getting married. And then the horror show of news from other parts of the world.

I'm exaggerating, but not by much. We should all be so lucky to have these slow news days.
Sorry, Venezuela haters: this economy is not the Greece of Latin America
Monadic interpreters? Composable? Are you kidding? It is a joke, not a composability. You cannot take a type system of one DSL, modules from another and only the expressions syntax from a third one and then mix them all together into a new DSL.

And, anyway, interpreters. Who in a sane mind can ever consider an interpreter?

Also, you obviously do not realise that macro-based DSLs are by far more debuggable than any monadic interpreter would ever be.
> This screams "hoax" to me.

Healthy skepticism is useful, but if you think that the editor-at-large of a well known U.S. media publication would conduct a public hoax involving her son, well, you do you.
Bummer about the Shockley lab is there was an historical marker on San Antonio that was no longer there the last time I passed by. Maybe they killed the sign when they demolished the site, though I can't imagine why.
I used to use AsyncTask way more, I now stick to other ways to doing background processing. What you have is pretty close to what I described as a "headless fragment", it's a pretty common (but ugly, imo) paradigm, from the looks of it you either made something similar to or followed this: http://www.androiddesignpatterns.com/2013/04/retaining-objec...

Nowadays I've pretty much drunk the RxJava kool-aid. For this kind of thing, I would make the HTTP method exist inside of an Observable which would be observed on a shared single instance Looper provided via Dagger.
This is not an answer to my question. What are you proposing instead of macros?
I agree it isn't the cost. It's mostly that you can see what everybody is doing. If you don't have management or processes you trust, and a lot of new employees, you worry that you will have some kind of bad behavior. Also that its easy to move people around, which you do a lot when you are growing.

I work at a startup with open offices (my second) and the absenteeism blows me away. I really believe it is because the office is an unpleasant place to work. But hey, we have ping pong tables!
What a strange world we live in...
You know what really works? Simply giving the homeless a house. Seriously. It works, and it's cheaper. Utah has proven it.[0]

[0] http://www.npr.org/2015/12/10/459100751/utah-reduced-chronic...
What's in a Word?
San Francisco has a wealth of homeless people because:

1. The climate is good.
2. The population is rich.
and
3. The government is liberal.

It's a trifecta of bum-bait. No policy changes aside from going right-wing and shipping them off to Austin or Charlotte (or whatever liberal sucker is next down the list) is going to fix the problem.
I think you may want to reconsider this idea. It's pretty common to quote someone in the context of discussing their actions, because it helps explain why they acted in that way.

In the context of the CIA's actions, it is completely reasonable to point out that murderous barbarians like bin Laden use those actions to justify their actions, especially since that justification has proved to be influential in motivating enemies of the US.
Read their statement in the article

> "Tesla enters into contractual agreements with its general contractors, which allow them to select the resources they need for the job while also requiring them to hire and _pay_ their workers appropriately."

Do you think they did a good job in enforcing their own stated requirement?

Any client who permits people to work in their premises providing them with badges and security passes does minimal background checks. Now tell me what minimal background check would not have found their Visa Status and hence Visa fraud on the basis of B1 Visa person doing hands on job?

Do you still think Tesla was ignorant or closed their eyes purposefully?
Not that that survey is completely worthless, but it's also very far from a peer reviewed scientific study. And even among those, 1/3 turn out to be wrong.

Several things are obviously questionable:

* Relying of people self reporting their motives and history is problematic even for sober and sane people.

* Who made the study? What's the methodology? What are their incentives?

* Etc...
It's slightly amusing that everyone seem to miss the huge difference between: (A) Individual office with open door
(B) Open plan office

Exactly. And Hamming didn't work in an open plan office at Bell Labs. The fact that he writes about open vs. closed doors implies that they had offices with doors.

"I'd imagine the ideal would be individual offices with no doors"

Doors are very useful to have, even if they remain open most of the time:

- Closing your door allows you to have a meeting with a couple of people in your office without disturbing your neighbors.

- If you manage people, you'll need to be able to have private conversations with them (e.g., performance reviews).

- Sometimes, you really need to concentrate on a difficult problem without interruptions.

- You'll occasionally want to be able to have private, personal phone conversations, e.g., with your doctor.
Initially I did it to avoid the commute, but it's increasingly a way to get a private office where I can actually get work done. Having said that I still find the occasional visits to the office a valuable thing, but I approach with the understanding that I'm not going to be writing any code, and instead getting tuned into what the business is doing, and where I should be focusing my effort.
Ask HN: Can you help me validate this idea?(tool for SaaS)
It's more like that I want to validate the market fit, than the idea. There are already competitors in this space, but nobody is targeting SaaS specifically.

My product helps SaaS companies build, track and manage affiliate, reseller and partner programs.

There are a few tools that target a broadly, like ecommerce, etc, but SaaS has some specific needs like trials, subscriptions, recurring commissions which are handled poorly.

You, as a SaaS owner, have you considered or are you already running an affiliate/partner program?

What are your issues with this channel or with your current solution?
The Varsity was definitely my gateway drug into fountain pens. I burned through too many of them in grad school. Fantastic little things. I've since upgraded, but if I'm in a bind I'll grab a few of them at Staples.
I think that the point whiteboarding is to prove that somebody can study and communicate with a whiteboard. Everybody knows that it's coming so it shouldn't be a surprise which means that you can study for it. reviewing this process is not difficult.

I tend to believe that it's not very representative of somebody's coding skills but it can be very representative of somebody's ability to adapt to different communication platforms.