skysight-inc/HackerNews huggingface dataset:
I'm an electronics amateur, got a question here:

I use a PN2222 [1] transistor to switch a 5V supply through an infrared LED from a microcontroller. It works, but should I be using something better/smaller/more cost effective/more appropriate for the circuit [2]?

[1] https://blog.bschwind.com/2016/05/29/sending-infrared-comman...

[2] https://blog.bschwind.com/2016/05/29/sending-infrared-comman...

(the resistor in the photo is 680 ohms)
Only in nightly.

Can't say when it will hit stable, but "sooner rather than later" is a phrase I've heard.
> Is Windows XP still "good enough"?

If you have hardware that only runs in XP you don't care.

I have more than a few Windows 7 installations that are nothing but hosts for virtual machines that run XP.
VS Code is part of the strategy to get .NET Core distributed and to support the web layers built on top of that which mostly now use open source technology (from npm and bower through to grunt, typescript and angular)
>That's exceptional though.

Yes, it's the exception. But it's not non-existent. You just need to choose to live in an area like that.

I lived in Oakland, CA, and had the ability to walk to tons of restaurants, a post office, and a library. And Bart. But Oakland counts as "big city" by most measures.

I also lived in Lafayette, CA [0], walkable to Bart, restaurants, and grocery shopping. And Alameda, CA, walkable to grocery, the post office, an entire shopping center (Southshore [1]), and a beach. And in Boulder CO where I could walk to a supermarket, restaurants, and a library. And another location in Boulder where I could walk to restaurants.

And I've looked at walkable housing in a dozen other suburban cities. If "walkability" is your priority, you can find it all over the place.

[0] Ironically I'm now in Lafayette Colorado. I keep saying I just have a couple more Lafayttes to live in, and I can collect the whole set. :)

[1] http://www.alamedasouthshorecenter.com/
This is helpful, thank you.

I think I do want an affiliate program.... but it's kind of a chicken and egg problem -- how do I gain affiliates when just starting out? Is there a network out there to find affiliates?
See: PartneringForCommunityCare.com for the pilot program the price point was $20/month (individuals) and $15/month (business with 5+ employees enrolled). The copay is $10 to see a P.A./R.N.P. or $25 to see the M.D.

Concierge/Direct Primary Care is a model of healthcare where the doctor cuts out the middleman (insurance companies), more and more primary care and pediatricians are considering these business models for their practice. Benefits generally include less staff, no billing/coding, no appeals to insurers, and generally less patients/more time with patients.

The practice we worked with believes it could easily grow and sustain 2,000 patients per location and we could replicate the business fairly easily by converting existing practices (more complicated due to legal and ethical concerns of existing patients using insurance) or scaling providers in-house, say like UBER with/without brick & mortar locations.
Sorry to hear that, Razer is utter garbage. Not to mention they have the WORST customer support on the planet. I'd sell it mate, ASAP. Seriously, not joking. Sell it and get an XPS
Scientists actually spending more of their time reading others' work, communicating encouragingly and giving constructive criticism (anyone in academia has read more than a few hate filled reviews of their work), better pay (a postdoc at Oxford nets you a monthly salary after taxes of about 2.4k pounds), less focus on numbers and more on quality (a big reason why people don't read papers is because they're missing out on little by not doing so i.e., much of the work is incremental, unsurprising or just badly posed or ill motivated. instead focus must be given to quality and this must come from job hiring decisions which should reflect that science is not a numbers game, but the sad sad truth is it so very is). About the encouragement part, I felt let down many times by senior scientists by their uncaring and viciously competitive nature. All this does not need to be a part of academia. I think greater science can emerge after these structural problems are addressed. But currently the only people who rise to the top are the genuinely good ones and the ones who know how to game the numbers system. Idealists who come for the beauty of math often find themselves woefully unprepared to play all these other games in addition to doing good math.
A philosophy class teaching fundamentals in logic - taught in a way similar to math - is probably more like math in the sense of the article than philosophy in the sense of the grandparent post. The grandparent probably meant something more like a class on ethics, which doesn't really have the same style of beauty and truth that math does. This is certainly my impression after taking a few philosophy classes and a ton of math ones, including a philosophical logic class cross-listed with math.

This isn't a flaw of philosophy. Lots of fields of human study are great. Math just has some things that make it unique. But just like defining what art is, it's hard to pin down exactly what it all is.
My username wasn't found. Can you document and share the remedy to this? Might be a good source for scaling issues when posting to HN.
It's mostly cacheable, so they should theoretically be able to scale down the cluster with a caching reverse proxy or CDN.
I find Powershell non intuitive to learn honestly, Bash just clicks with me way more for some reason.
I remember there being a similar thing for the XBOne or PS4 where Comcast was the only provider that didn't work for HBO's app. Frustrating.
Not surprised, but I want to point out that Comcast owns NBC.
> BinaryIdiot seems to be implying that I asked for Gigster to change right now.

I covered this here:

> So I wasn't sure what you wanted your comment to accomplish. Sounded like it wasn't fast enough but if that's not the case what do you actually want from this conversation with the founder? Do you want him to apologize to you? Do you want them to issue a public apology? What was your goal to avoid me from construing your argument any further?

> I could similarly ask him what he wants from engaging with me.

I was seeking an understanding of your comment and what you wanted to accomplish. From my point of view it appeared that the founder responded to the issue in the best way they legally could and then you just repeated the issue at him. Seemed less useful, more "I just want to be angry at you". hence why I asked.

HN is a community in which many interact with one another to seek better understanding, discussion around a topic, etc.
Using a Telegram Bot and a Demo Board to Experiment with Home Automation
Or, just don't consume their product. ;-)
I am always amazed at how quickly Heroku gets prohibitively expensive when you start scaling.

When I ran https://jscompress.com/ on Heroku, I was up to $100 per month for 2 2x Dynos. Completely absurd for a simple one-page Node.js app. I put in a little work moving it to DigitalOcean, and had it running great (and faster) on a $10 VPS.

I get the appeal of Heroku (I have used it several times), but man sometimes it feels like gouging when you can least afford it.
> Despite how crazy it sounds, KGB is now effectivly in control of the executive branch of the US government.

The KGB is long gone. You'd be talking about FSB if this were true.
I live outside Syracuse. After the sale my speed jumped from 50 down to 300 down, with no change in my bill.
Anyone have the full text of the article? Paywalled.
An Open Source Rain Sensor and Controller – Open Electronics
The Tell-Tale Heart
Thanks for the feedback! It really helps us revise what we do and do not show.
Funny thing is that a lot of people don't know that relay contact composition is different (and is usually mentioned on the relay's datasheet) depending on the type of load (most especially resistive vs inductive). They then wonder why when they use a motor on a particular relay, even with a snubber, the contacts stop working.

Relays are great though for motor controllers, especially when you need higher amperages (and don't want the huge expense a mosfet solution can sometimes bring); an h-bridge is very simple to build, and tying an n-channel mosfet (of appropriate amperage capability) on the low-side between the relay(s) and ground, and you get easy PWM control (just don't switch the relay while PWM'ing of course).
thanks steve!
According to wikipedia flywheels efficiency can be as high as 90%, which makes them very attractive. Is it the price that holds mechanical energy storage down?
Ask HN: Does a “campaign manager” system like this exist?
I work on a hosted application, which works a bit like this: The customer has an admin where they create sites, which are populated with inventory, which is displayed on the site. For example, one type of site is a real-estate broker. Each piece of data is a listing. The site displays the broker's inventory.

We have a need for a marketing system on top of this; I suspect "campaign manager" is the correct term. We're not looking for anything specifically related to ads, though.

The basic workflow we need is to allow the user to create "campaigns" — some permanent, some time-window-based — that are based on "rules" for promoting content. For example, rules might be "boost these items in the results"; or "display these in a certain way"; or "show this introductory creative at the top of the page"; etc. There might also be relational rules such as "if this rule matches X, apply another rule to all of X's 'children'".

We then need a reporting system that can show the impact of these rules (e.g. clicks or conversions compared to the non-promoted content).

Our front end already has a tagging system to implement the display behaviour, and our admin UI allows users to manually tag content. But we don't have any campaign management at all.

Another challenge here is that we want our users to be able to resell packages to third parties, directly and as a self-service product. For example, they want to be able to sell "10 featured listings per month" to an independent agent. They want to charge the agent directly, but they also want an agent to be able to log in and sign up for that package by entering their credit card info.

Is there a SaaS-type product that covers these bases? We could build all of this ourselves, but I would prefer it if there were some existing solution we could just license.

One requirement is that it must be white-labeled, so we can apply our own branding. It must also support SSO so we can reuse our existing login.
Does anybody know a way to have better window management in VSCode? I really don't like to split always and use the mouse to drag and drop... often I use two panes and I want to duplicate view in them. Hoping for something like the Sublime Origami plugin (which was perfect for me).
Thanks so much for writing this out. I actually do a lot of the stuff you mentioned here already with comparable success.

Google is my main traffic driver and I never had much luck with content shared through social media or any other channels. For me, it's 90% Google as well and some articles are there for 8 years already. 3-5 articles out of a hundred or so drive 80% of new signups.

I treat my articles like shopping windows: I revisit and refine them whenever I see fit. I write new content mostly to show Google that something is happening on my website. I lost rankings on some articles, because I didn't publish a lot through 2016.

Anyways, your comment is a good description on how one can succeed by making their customers' problems their main SEO/traffic strategy.
Two things to add:

The settings files now have intellisense in them so you don't have to lookup each option.

You can also have a separate settings.json file for that project and check it into git inside the .vscode folder and make those same settings available to your entire team.

We use that in every project and it is great.
A linode vm's cost is not measured in its price tag but in how much effort it takes to maintain. Updates, security advisories, hypervisor crashes, crashes under sudden unexpected load, crashes because you're on vacation and you are having too much uninterrupted fun, ...

As a famous writer once said: "ain't nobody got time for dat."
Imagine that you are in a car accident (the other person hit you). The insurance company uses your sleep tracker to claim that you were negligent due to not getting enough sleep the night before, and are therefore at fault, so they won't pay.

Data is as dangerous as it is helpful. The scary thing is that you cannot control how someone else will interpret your data.
Good question -- all of the things you mention are factors. It's harder to run statistically significant experiments with really small sites that have few pages. The factors involved are: # of total pages, search traffic, and Google crawl rate.
No offense mate, but if you're a manager at an architecture firm and you struggle with Windows upgrades and configuring the updates then perhaps you should find another profession, or hire better help. This stuff isn't rocket science.
To be fair, the settings editor in VSCode shows all the settings possible in a split window with user settings, with neat categories and auto-completion. It's almost like a GUI setting dialog noways and makes it way easier to see what you have changed.
git history says it's been (kinda?) official since 2009:

https://github.com/git/git/commit/69fb8283937a18a031aeef12ea...
> The Snowden leaks were quite probably illegal.

Not at all. It was required behavior. Until the government enacts a useful whistleblowing program someone who witnesses criminal actions has literally no legal choice but to leak. Ignoring it and hoping it goes away is the illegal option.

I want my institutions to be fixable from inside but when they aren't, I simply want them fixed.

Re Downvoter - I understand that you're upset but lashing out, especially against the truth, doesn't help.
I'm well aware of the name change.
Way more painful to make packages for Debian, IME, but I avoid making packages altogether:

> Now, of course, you could just go old-school and "manual install" whatever you want.

Yep, stop right there, do that.
agreed. except for dogs ;-) it's okay in city.
i think it wouldn't be hard to interpret 'jury of peers' as a jury of people made up of those in a particular area.

i feel like we need to make allowances for specialised cases, in this circumstance you may as well be talking in german and expect english speakers to understand what's going on.
Combine this with webtorrent and you have yourself a real nice distribution platform.
Philosophy is for people too stupid to do math.
Peter Thiel won’t be involved in YC’s work with the ACLU
Amazon Announces Q4 Result, Sales Up 22% to $43.7B
I don't really count a forced reboot "now or in 15 minutes, no delays" as reliable. There are people who've had this happen in the middle of presentations at meetings.

Similarly, I've had these forced updates happen, and on relogin "click here to see what was updated" -> nothing listed.
The big question that wasn't really covered, is how they are selectively updating the writers and readers on a live environment. Especially migrating on a per object basis to have them start dual writing, and reading.
About the only thing "bad" with the LM386 is how finicky it is with component selection and layout. It's a great little amp when it works well, but sometimes it will go dopey on you just looking at it sideways. It actually works better in a PCB situation (breadboarding is where it can be wonky in operation - ymmv).

As far as a replacement part? I don't think there are many alternatives there (at least with the same size, and easy to configure - there are a few stereo ICs I've seen used for class-D amps, but they weren't as simple to use or as small).
A Tactile Atlas Helps the Blind 'See' Maps
If you mostly just want the memorized shortcuts to work, they tend to work OK in VSCode, Atom, IntelliJ and even Emacs - Spacemacs is even a better ViM for some.
What you can't do, no matter what you try, is to make the Start Menu show all the programs you have installed.

But attaching things there is nice. Even better than the KDE menu.
Ask HN: Best windows laptop (replacement for macbook)
So i am trying to find the best replacement for my current macbook. Should be a windows laptop, 16+GB ram, i7, decent hdd speed and decent graphic card. Any real life experience welcome.
Bureau of Industry and Security: Don't Let This Happen to You
Sounds like a custom system. Find a programmer to implement it. Doesn't seem too complicated.
The replies I mentioned have been (rightfully) detached from this thread.

I am adding this reply to make crystal-clear that the above is SATIRE about how hard it is for European companies to raise money from European investors. (I'm not a European VC.) You guys are killing it. I hope investors believe in you too.
Probably parties, concerts, impromptu weekend trips, paying to crawl through mud for five miles, side hustles, short term relationships, and the drama involved with any of those. That stuff tends to die way down for most people in their 30s.
Ava reaches out to employees on a scheduleable basis and does what we call a "Check-In". Check-ins are short questions that are answered on varying scales that give insight into what is really going on at the company.

These interactions typically take between five and fifteen seconds to complete, and then you're back to whatever you were doing before. We have tuned when and how Ava reaches out to minimize annoyance, and to keep productivity high. We also let employees respond at their own convenience, so it's not like you have to immediately give Ava your attention.

Here's an example: http://i.imgur.com/M5cyOvZ.png
GitHub Pages still doesn't support HTTPS on custom domains.
Actually, they don't.

Thor has been merged with Xiph's Dalaa into IETF's NETVC effort, and both Cisco and Xiph are backing this.

NETVC is a next generation codec designed to replace H264, H265, and all future MPEG codecs with a system that is not user- and developer-hostile wrt licensing lock-in via (possibly invalid) patents.
This has been my experience with trying to get a foothold in the technical civics communities, so I don't think it's either. I've found that the bar gets set pretty high by folks who are willing to speak loudly about their accomplishments in a ways that exaggerate the actual accomplishments. If you're not really good sales person towards your own work, you find yourself working significantly harder than what's probably needed since fewer people are willing to work with someone who hasn't had any accomplishments. It really sucks that ego and salesmanship gets in the way of trying to do civics work.
The intractable problem is that what constitutes "more just" is highly subjective, highly debatable, and always will be.

All historic societies believed they were being "more just" in some sense.
Because MS makes money off of selling software vice Apple's model of making money off of selling hardware. If they continue to emulate Apple's policy of free upgrades, they'll see an eventual revenue drop since they'll be dependent upon users upgrading their hardware.
I really like VS Code, and try to use it as much as possible, but I can't make it my main driver until they've added more detailed theming support. Textmate themes aren't good enough. I can't get used to such basic highlighting that doesn't even come close to ReSharper's with "Color identifiers" enabled.
> We already have a mechanism to deal with bad behaviour in this space.

I'm not sure if we do, that's kinda my point about why this makes me so uncomfortable. Clearly no one will be held accountable for the DNC hacks.

I think I misread your original comment a little too, the press should definitely report on every thing we just mentioned. They definitely aren't a jury and once it's out, it's out. My issue is framing the actual leaks like they were "whistle blower" leaks like Deep Throat or Snowden. I guess that's mostly personal opinion on the value of the leaks though.

The idea that our political discourse is now shaped by who can get what hacked information and how they can weaponize it (Trump's taxes, DNC's emails) scares the crap out of me. Even more so if it was a foreign government targeting one political party.

I'm rambling a little but the future that this shows me looks terrible (and probably unstoppable).
You should take a bow for that one, way to stick the landing.
There are also a whole host of security improvements that you can't see. SwiftOnSecurity over on Twitter regularly calls out things that are literally impossible to secure on Win7 that are done for you OOB on Win10.
"there is no world" - wasn't that what University was like before the 80s and still is in many other countries? minimal fees and some casual work and you can stay for as long as you can stand the conditions of the average student flat ;-) I think you are conflating the reality of your current culture with what was/is in other cultures.
I don't understand this whole "forced updates" FUD. Just configure the times you want your machine to be updated and it gets out of the way.
Page author is Tom Jennings, the creator of FIDONet, the BBS network that pre-saged the internet.

https://youtu.be/_Cm6EFYktRQ?t=2m32s
Thanks for the offer Shog, stopped using SE/A51 years ago and as is, already have a pretty strong opinion of A51.

My suggestion/request would be to just have SE post a request request for proposal to replace A51 on the main SE blog, since SE has had years to do so, has not, and positive the community would find a better solution.
If s/he is an Apple fan, I would recommend an accessory for Mac / MacBook. (themarkhor.com / hardgraft.com / thisisground.com)
On the flip side, I have a Netflix subscription I use for less than a movie a month, and about a 20 hour burst when House of Cards is back. I tried looking for better data than I quoted but there's not much :(
SOA became synonymous with web services, same with micro services. The service bus or message queue is still missing in most places.
I don't think many would object if all dogs could learn to poop in toilets. So even in the case of dogs it would be preferable if they didn't do it outside.
Elsevier is a despicable firm, but their journals are hardly publication mills, so not sure that response holds water.
I missed that fact.

In that case, the author is measuring something that's completely useless. The entire advantage of Go is that it has really good multithreaded asynchronous behavior.

A benchmark that's measuring single thread performance of a task that's optimized to do well in a single thread (i.e., it doesn't actually do anything other than return static text) is entirely worthless.

If you're going to be returning static text, may as well compare to Nginx, which I'm certain can return static text even faster. If you're going to be doing processing in Python, then do at least something.

And run in multiple threads, since that's Go's native environment.

Rating: PANTS ON FIRE. [1]

[1] Not your comparison, but the original author's performance claims.
> This makes me almost mad enough to just cut the cord.

Why almost? Do it. I haven't had cable for over 10 years. There are plenty of better things to do other than watch hours of TV every night.