skysight-inc/HackerNews huggingface dataset:
Ask HN: Good examples of software engineer portfolio websites
I am a software engineer, and I would like to make a personal portfolio site. Any great examples?
It's possible to get a smart meter in Illinois, and I've thought about rigging up appliances to run when rates are negative. However the price feed is lagging by 15 minutes or so. So while you can have a pretty good idea rates would be negative, you can't actually be sure.

It's not a huge deal if you are doing something productive with the energy, but if your goal is to make money it's probably not very effective.

That being said, it might be productive to rig up your gaming pc to mine bitcoins or fold proteins when the price is close to zero.
> I'm sure there's some business opportunities that can be taken to alleviate this surplus.

You need to be able to message the energy consumers (most likely smart versions of large appliances) within minutes notice.

I think you would have to have appliances ready when you leave home in the morning and set the power price at which you are willing to run it. Right now, I don't think most large appliances support such a system. Perhaps home assistants (Amazon Alexa, Google Home, Apple HomePod, etc) would be the right place to integrate these settings, but you would still need the assistant to be able to interact with your dishwasher / clotheswasher / Tesla Powerwall.

At the moment, we are adding solar to the grid faster than we are adding smart appliances that are capable of deciding when to use power, based on the current market price of power.
Yeah, the more interesting aspect was that new traditional power plants are still being built, despite the glut of solar.
Yeah, I actually was thinking Excel, and then was like "but that kind of depends on your definition of DSL", hence in part the question. A shell is an interesting thought of one. I don't know that I'd consider Matlab/R/etc given they're full on programming languages, just ones with a math-y slant.
You can also use MacroPy[1] and create embedded DSL with a macro system inspired by Scheme and Elixir.

You don't need to write a parser, btw, because the stdlib provides one for you (in `ast` module).

[1] https://github.com/lihaoyi/macropy
Good example! And maybe that's what happens; extremely successful DSLs stop being thought of as DSLs, but as languages or features in their own right.
That is a contrived counterexample that completely ignores the very basics of evolution and how changing environments help drive adaptation. Picking out one irrelevant trait here and asking if diversity is useful is like asking "how much value is there in diversity of spleens in the Rust Community?" They don't care about spleens, they care about people who are interested in Rust; just like natural selection favors organisms who can reproduce, not individual traits.

Natural selection will favor the animals who don't have to waste energy on pigmentation... until a billion years later when a sink hole opens up or one of the species evolves bio luminescence and all the organisms that lack pigments start to reflect all incoming light back at their new, hungry predators. That's the whole point: environments change all the time and the chance of a species surviving is dependent on the diversity of its members, just like the survival of carbon based life through a planetary mass extinction event is dependent on the diversity of species.

Evolution can only happen through random mutation so, by definition, any environment with evolving life forms is always changing unpredictably.
Thanks this made me think of parasitic JavaScript and the folding at home project. I know you mean all their nodes. Not all "their" nodes.
Reading these articles is like listening to five year olds arguing. "These guys says it's enough!" "These other guys say it's not!" "But what if it's cloudy?" You can picture the journalist holding a toy microphone and nodding intently at each source, the argument going entirely over their head.

The entire argument revolves around the distribution of power usage and of power generation throughout the day and throughout the year. So why not explain that for your readers? Show us charts with that information? Tell us how much energy is produced by solar on the cloudiest days? Show us a chart of power usage over solar power production over the last year, and tell us the minimum and maximum percent?

At least explain the difference between minimum, maximum and average production, and when each of those matters!

But no, none of that. We get a graph showing the increasing share of solar generation, and another with absolute figures of the curtailed solar capacity. And a bunch of pictures and animations, of course.

This is what innumeracy looks like.
Show HN: Goms is a ready-to-deploy schema driven adaptable platform
https://goms-demo.herokuapp.com

This is a very early stage demo for Goms.

1. Independent User registration / User sign-in

You can create a public site or a private site, or mixed. Was using auth0 earlier but felt it as an extra step during setup. Authentication/Authorization is a first class component.

2. Native support for user defined entities

Create extensively related entities, eg. (Clothing)"Style" has a "Style File", some "Order" and "Costing", and "Order" has "Vendor" associated to it. Entities you see in this demo are defined here [1], [2]

3. Oauth Connections and Tokens ( Live Sync Google Sheet [3] )

We are handling "data exchange" with the external world (think google sheets, slack messenger, other APIs) as a first class citizen.

To demo this, four of the entities defined (using our JSON above) are synced to this Google sheet [3]

- Blog
- Style
- Order
- Vendor

Whenever one of these is created, goms will call one/some REST API.

- Oauth connection details configured using JSON files
- Access tokens and refresh tokens:, complete oauth2 flow
- Tokens/passwords stored securely to avoid accidental leak

4. Behind the scenes

- Everything is backed by a relational database
- Built in golang with goals to compile for IOT devices as well
- The view/dashboard is completely detached from the backend

[1] https://github.com/artpar/goms/blob/master/gomsweb/static/samples/blog.json
[2] https://github.com/artpar/goms/blob/master/gomsweb/static/samples/style.json
[3] https://docs.google.com/spreadsheets/d/1Ru-bDk3AjQotQj72k8SyxoOs84eXA1Y6sSPumBb3WSA/edit?usp=sharing
[4] https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/append

Github: https://github.com/artpar/goms

You can deploy using readily available docker -p 8080:8080 run goms/goms, or "Deploy to Heroku" button.

Would love feedback on all parts of Goms. Plus welcome hackers who can help in identifying holes.

PS: this is a demo instance. please use dummy details to sign up. nothing is tracked though.
It's not true in the first place. Arab states, and Israel, make heavy use of it; desalinated water is easily affordable for US residents.

What makes US desalination impractical is not the cost of desalinating, but either or both of:

- the cost of building a plant in the first place

- the availability of cheaper fresh water
We've banned this account. Please don't create accounts to break the HN guidelines with.

https://news.ycombinator.com/newsguidelines.html

https://news.ycombinator.com/newswelcome.html
I always wondered if there would be a way to have quicksort run slower than O(n ln(n)).

Due to that possibility, when I code up a sort routine, I use heap sort. It is guaranteed O(n ln(n)) worst case and achieves the Gleason bound for sorting by comparing keys which means that on average and worst case, on the number of key comparisons, it is impossible to do better than heap sort's O(n ln(n)) forever.

For a stable sort, sure, just extend the sort keys with a sequence number, do the sort, and remove the key extensions.

Quicksort has good main memory locality of reference and a possibility of some use of multiple threads, and heap sort seems to have neither. But there is a version of heap sort modified for doing better on locality of reference when the array being sorted is really large.

But, if are not too concerned about memory space, then don't have to care about the sort routine being in place. In that case, get O(n ln(n)), a stable sort,
no problems with locality of reference, and ability to sort huge arrays with just the old merge sort.

I long suspected that much of the interest in in-place, O(n ln(n)), stable sorting was due to some unspoken but strong goal of finding some fundamental conservation law of a trade off of processor time and memory space. Well, that didn't really happen. But heap sort is darned clever; I like it.
Classic 'Starve the beast' politics.

Don't fund the public service and it fails.

The first paragraph is about 'entrepenuers' lining up to fix the subway...

There's going to be contracts.and aton of money to be made
> California hydropower is constrained by rainfall, so the dams and generators already exist.

But there's nothing to pump, at least a good part of the year. The dammed river beds are practically dry during the summer/fall months.
Yes. The "obvious" question when reading an article like this is "Why pay someone to take the power, why not just turn off a gas or coal fired plant?" There are some obvious restrictions around that (like the plant would need to be in the general area of the grid where power was coming from of course) but the issue according to the PUC is that "cycle time" which is the amount of time it takes to turn off a power plant and then turn it on again, is longer than the "event time" where you get an over power event transient.

Grid storage nicely addresses both of these issues because it can absorb the extra energy (charging) and when the grid storage units are charged you can safely turn off a power plant because even if the power suddenly dips for what ever reason the grid storage can cover that loss while the power plant is restarting.

If you reach the point where you have enough grid storage to completely cover the variance between day time and night time power demand, then things get even more efficient as you switch to that storage a 'primary' and then cycle on plants as needed to top them off.
If we know that our HashSet is going to be containing u32s, couldn't we make a simple hash function that just takes the u32 and returns it? If our hashes are at least 32 bit, this would both guarantee there are no hash collisions, and be super fast.

Heck, if we dived into the guts of the HashSet implementation, we could even remove any collision checks, because we'd know they can't happen.
If the transit system were privately owned, would it be in better condition?
Has it really been ~9 years since Carmack did a technical/game dev type of interview?

Time is just flying past...
Palmer Luckey backs development of VR tool that lets HTC Vive users play Oculus
My point is that I've seen people making decisions to go with 'best effort delivery' and live with the (costly) consequences because they read here and there that EOIO is impossible, so why bother trying.
In New Zealand it's a hot topic of debate at the moment, we have many cases where we deny residency or citizenship to people who are working and living in NZ because of not meeting various criteria ( but still fully embracing NZ as their home ) and then we have Peter who meets almost none of the criteria coming in and using special circumstances to obtain it ( the special circumstances being lots of $$$s).

Is it a good thing? I personally think it's ok, there's no real downside for NZ. He's coming and investing in some of the local tech world.

But there's quite a lot of people in NZ who don't like that it can happen, it violates peoples sense of "fairness".
You're misunderstanding what a think tank is. It's a place that gets money from places and is a parking lot for displaced political people. They aren't there to have original thoughts -- they are there to support the perspective of whomever is signing the checks. What they say isn't very important, but what they don't say is critical.

Ditto for political people like cabinet members and CEO types. In public, their outward messaging needs to be tightly controlled. Behind the scenes for smart ones, their personal thoughts or agendas are often very different.
Do a google image search for 'nail house'. Clearly there's sufficient property rights for individuals to hold onto their houses to that degree.
"Please avoid introducing classic flamewar topics"

https://news.ycombinator.com/newsguidelines.html
But maybe the better question is, why? The people of Taiwan for the most part don't want to be a part of China, and Taiwan doesn't pose a military threat to China.
FedEx’s Dutch operations have been ‘significantly affected’ by the Petya virus
God I'm really opening myself up for trouble by posting in this thread; but that fact alone makes me worried enough about the tone of discourse around these topics that I'll force myself to speak anyway.

If the parent is downvoted because it doesn't expound on its point, that's entirely fair; but frankly, I agree (the post was since removed, but the core thrust was that they disliked gender-separated events). Creating artificial separation in order to "help" separation-oriented bias/conflict seems to be fighting against its own ends. It's a well established concept in behaviorism that exposure without a punishing outcome is an effective step towards overcoming personal adversity. I don't believe keeping men and women separate will do anything but encourage more feelings of us-them vs. togetherness, less shared context and experience, and more more misunderstanding/bitterness. I truly believe good role models and non-punishing environments can be provided in mixed scenarios that also provide additional benefits of communication and understanding across the divide.

It's a little bit apples to oranges, but I was bullied _heavily_ most of my early childhood, regularly beat up/socially outcast/etc. If I had been homeschooled, pulled out of the system, kept only alongside other bullied youth, I hesitate to think I'd have developed ANY of the resilience or tools I now have to deal with unavoidable situations in real life. Don't read this as a justification of the negative, read this as a pragmatic response to trying to make productive adults who can both push for better interactions while not being unable to work in potentially pathological environments. Having examples of, "this is a popular kid who DOESN'T beat me up" was extremely valuable, and from talking to my wife (STEM, neurosci) at the very least, she's found similar strong mentors in her mixed gender workplace, despite (and sometimes because of) other workers who showed really distasteful behavior.

This was, as my posts so often turn into, quite a ramble. Take the following sparknotes: I think that separation only reinforces ingroup/outgroup thinking. We need to build effective social norms together, not in isolation.

(Hah, as expected, -2 by the time I even edited to fix some typos, I almost feel vindicated in my pessimism re: discussion on these topics. I'd appreciate if someone would at least rebut rather than just silence something you disagree with; I'd hope readers trust I'm going into this for the purposes of prompting discussion and not to be inflammatory)
Zillow drops complaint against ‘McMansion Hell’
Insurance doesn't generally cover flood damage for structures in flood zones, or does so at a much higher price.

The point of briandear's example was that wind had damaged the roof and walls, and wind storms were covered by the insurance; whereas flooding had damaged the floors, and flooding was not covered by the insurance.

When you get insurance, it doesn't necessarily cover everything. You might have insurance that will pay for your home if it catches fire and is destroyed accidentally, but will not pay if a person deliberately commits arson. Insurance might pay of your home is destroyed by a storm, but not by a landslide, and so on.

The main problem I heard with briandear's example is that people apparently didn't understand the coverage they had purchased. If I operated an insurance company, I would consider summarizing the policy that people were about to purchase with a simple form showing the most common hazards. Maybe even show them with simple glyphs depicting fire, floods, storms, etc., and indicating whether their plan covers that scenario or not. Ask them to sign or initial that form. It's not a legal form, but you'd present it to them and ask them to confirm they understand it along with the contract text version.

Then, when an event happens and they're asking for an insurance payment, you show them the form that they had initialized, and explain how things were covered or not covered.

I would also want to explain to people that multiple disasters can happen at once, and explain how the insurance company will reason about what's covered, based on the cause of each thing that was damaged or destroyed.
he didn't come in on any of our various tracks, we have investor categories, but they have criteria still.
I love it, bookmarked. I'm planning on moving soon and this hits all my pain points. I would much rather pay a monthly bill rather than a fee up front.
That makes sense. I do find that stuff to be awkward and sometimes wish the syntax could be simpler.
Peak power usage is around 7-8PM, this discrepancy is the source of the duck curve. More storage could allow tons more solar to be installed.

https://cleantechnica.com/2014/07/21/utilities-cry-fowl-over...

(deepsun - the "no sun" critical event happens every night)
> Any connection there or am I blowing things out of proportion?

This police and prison guards' unions are why California had the "three strikes" law in the first place. So yes, there is a direct connection.
> NYC is the only American city which relies on heavy transit

Chicago absolutely does also. While the total passenger numbers are lower, mass transit is critical to Chicago's economy.
this is such a bad take. the point of public transit is not to get enough people to ride it so the system is profitable. do we expect roads to be profitable? they aren't, even if you say "the gas tax".

and lol at heavy rail can't meet needs that cars can. A single subway line in New York can carry 60k people _in each direction_ at peak capacity. Autonomous cars are years away and will never achieve that efficiency just because of space.
https://en.wikipedia.org/wiki/No_Silver_Bullet
Printing money is not a great business if the printers cost $10M and they print out $1,000 a day and lose the ability to print after 1,000 printings.

The economics are still not there yet for widespread battery energy storage. Here are some real numbers:

Wholesale prices fluctuate, but are often in the range of 0 - 10 cents per kWh. Lithium ion batteries cost something like $250/kWh. The inverting electronics cost like $100/kW. Round trip charging efficiencies are like 80%. Battery lifetimes are like 1,000 charge cycles. So assuming a system with 10 kWh at 5 kW, your costs will be $3,000. Or, on a per cycle basis, $3. If you charge 10 kWh for free and then sell 8 kWh for $0.10 each, you're making $0.80 on the transaction. Not enough to even cover your $3 in levelized costs.

(Obviously the economics improve with better assumptions. But there's still maintenance, interest rates, hookup costs, and destruction costs to take into account.)
I know you said you don't want to start a "game of whataboutism", but I've been thinking about the suppression of knowledge about the "June Fourth Incident" and it really blows my mind.

No one in America will repress you, punitively or otherwise, for talking openly about, for example, the "Tuskegee Study of Untreated Syphilis in the Negro Male.” This is a horrifying and deeply shameful thing, tears well up in my eyes even to think about it, and here is a government site describing it: https://www.cdc.gov/tuskegee/timeline.htm

Today, in China, Falun Gong practitioners are being imprisoned and having their organs harvested.

The people who comprise the CCP are scary. What is the world gives someone the right to try to lie to a whole nation of billions of people? To define a false reality and insist with strength of law that it's real? The incredible grotesque arrogance of the thing! And what a mind-fk for a nation to do to itself!?

But then I think, what would I do, how far would I go, to prevent another Taiping Rebellion?
Perfect Ten
PressPatron: Crowdfunding for journalism
I get you now.
Branwell, the often-overlooked Brontë brother
> Maersk's Twitter feed has nothing useful

I wouldn't be surprised if nobody had access to the password.
Well the diagnoses for your vehicle come from a 200 page Haynes manual, your body doesn't exactly have a Haynes manual for your make/model/year.
This could be driven by industry, as many things are, and as they do to promote and get trained personal in unis. IMHO, computer literacy would have to be combined with math classes from an early age. To achieve that, computer literacy or rather programming in general would have to become much more common knowledge. That is an ongoing process, I believe. I don't know what's wrong with the American school systems, but the introduction of programming as a standard curriculum can be gradual, until parents and prospect teachers can be reasonably expected to have absorbed enough to foster the children in this respect.

I did have three years of computer science in a German A-levels program, by choice, roughly equal to the topics of a first bachelors semester (at best) - remember, the first semester in uni will not include much coding at all, compared to theory. The theory was applied in haskell, prolog, sql and mainly ruby. Anyway, I had coded in basic already before I went there.

My teachers were engaging in the FSF Europe to get FOSS into schools, maintained the school network and were passionate and old school. It was the only school in the district to offer this class.
Your comment contains two sentence fragments, neither of which is coherent.
You might find this interesting: https://www.theatlantic.com/technology/archive/2015/11/why-d...
After canceling Sense8, Netflix is giving the show a two-hour finale
Amtrak should have been euthanized decades ago. They have been abysmal for years, perhaps somewhat better in the Northeast.

The Northeast routes should have been sold off to regional transit authorities and the rest of the system shut down.
Bucketbench – container runtime benchmark tool
I can't imagine working somewhere that I'm not allowed to even see all the code.
Thanks for the alexandrescu paper
"health insurance in the U.S. is different from other types of insurance and personally I think we'd all be better off it were not even called "insurance.""

Agreed. If regular, predictable events are covered, it is not insurance. Regular, predictable events are not insurable. Be cause math.

Wellness checkups and scheduled preventative care and yearly mammograms/prostate are all fantastic things ... but they're not insurable. If someone is selling "insurance" for those things, you can be certain that you're paying 100% of the cost somewhere.
Will China Save the American Economy?
https://fgiesen.wordpress.com/2014/03/23/networks-all-the-wa...

https://fgiesen.wordpress.com/2014/03/25/networks-all-the-wa...