Better HN
topnewbestaskshowjobs
Log inSign up

bArray

7,485 karma · joined Mar 14, 2016 (10y ago) · 2,314 submissions

Why jump in one pond when you can dip your foot in many?
Submissions

comment 4y ago · link · parent

> Actually Germany usually exports power to France.

When was this last true? Is this net export, or is this just some of France using German electricity?

Germany has been actively shutting down nuclear power stations without replacing their capacity for quite a few years.

If Germany is self sufficient for this winter, why are they beginning to impose energy restrictions on government buildings? Why are they having so much issue sourcing cheap energy? To me it sounds like a net import situation.

> In fact many of the nuclear plants in France don‘t work, especially this year.

As the thread suggested, this is because they are addressing a corrosion issue. These will at best not be ready till early 2023.

comment 4y ago · link · parent

> During my travels in the UK I heard lots of Brits complain about the price of train tickets.

It's that it is often cheaper and faster to drive if you are not taking a train in or out of London.

> This might surprise British readers, but I have nothing but good things to say about the reliability and punctuality of trains in the UK.

The problem is that when the train is delayed, it can end up as cancelled as they have a specific time window to fit in. Again, the comparison here would be a car. You could end up in traffic, but eventually at least you will reach your destination.

As somebody living outside of London, I have zero time for somebody complaining that the tube was 1 minute late. Try waiting several hours, just to find the train won't be coming at all.

Anyway, it is really weird to hear so much positive about the UK rail system. Any good there will likely get demolished in the coming recession and energy crisis. I have no idea how rail will still be viable during the coming rolling blackouts.

comment 4y ago · link · parent

> German putting some nuclear shutdowns on hold

This is precisely what I had been jumping up and down about for years, especially at the beginning of this year. The irony that Germany doesn't want nuclear power internally, yet buys their direct neighbour's nuclear power instead.

> France is looking like they might get their fleet back on track by beginning 2023 after they sorted out their corrosion issues

Apparently. I doubt it. Too little too late for this winter.

> UK just fasttracked fracking (sigh) and sizewell C nuclear plant seems to have gotten the go ahead.

I'll take fracking over freezing to death. The alternative is people will burn whatever is not nailed down, and you can bet that would be worse. Sizewell C is too little too late. None of this will make a difference this winter.

> Quite unfortunate that the writeup is on twitter though.

Something as important as this should be on a news outlet's website. People most definitely need to see it and read it.

comment 4y ago · link · parent

Next investment for you then would be chemical batteries to store power.

Given that you are paying in Euros, how do you expect to get enough solar energy over winter?

comment 4y ago · link · parent

> Well, it is basically there in hot loops. Not necessarily with idiomatic Java, you do have to use primitives but it is absolutely achievable.

Not quite in my opinion. Not bad, but it can be half performance at times.

> Well, it is basically there in hot loops. Not necessarily with idiomatic Java, you do have to use primitives but it is absolutely achievable.

Setting more intricate TCP settings, or sending ICMP, or essentially anything advanced.

comment 4y ago · link · parent

These are not the reasons I like Java at all (I still use Java 8). My reasons are:

1. C-like language - Flip between C, C++, Java and JS with minimal thinking about syntax.

2. Build once - I can build locally and deploy the byte code straight to production. I don't need to worry about the production server having the right packages as long as everything is bundled in my JAR.

3. Libraries just work (mostly) - It doesn't matter if the library was written yesterday or 10 years ago, as long as it was written sanely, it should just work.

4. Garbage collector - Really in top class. I can create and throw away huge amounts of RAM and not have to worry about leaks and have it dealt with realitively little performance impact.

5. Memory safety - Never having to worry about pointers, segmentation faults, etc.

6. Exception handling - And if all else fails, Java will ultimately give you the opportunity to recover from many different scenarios. This may seem like lazy programming, but actually it's for the edge cases you can't think of. If your program does happen to crash, you get a very good stack trace.

Java may be cumbersome and repetitive is some areas (and perhaps the newer additions to the language deal with this), but I would take them every day of the week.

The only thing that has really left me wanting is C-like performance and networking capabilities. Most other things I want to use are very well implemented.

comment 4y ago · link · parent

I see a lot of responses focus on an apocalypse (perhaps where people's thoughts are right now) - and I agree there would be more help from luck in this scenarios.

I was thinking more of disruption to supply chains, perhaps where Countries ban all exports entirely for example. Perhaps companies with foreign labour are regulated too highly to make it viable.

878.

Ask HN: Are you preparing for global conflict?

8 points · by bArray · 4y ago · 13 comments

comment 4y ago · link · parent

Technically speaking, you could probably also develop a USB-A that could do the same thing with a little mechanical and electric configuration.

comment 4y ago · link · parent

> Thus you're going to need a lot of energy to create the heat required to cook the silicon. Your chip may desolder itself from the board before it's been appreciably damaged.

Yeah, this is a really weird and unreliable method for killing the flash. I would be more inclined to go the route of super high voltage.

> Encrypt the bulk flash memory, store the key in supercap backed SRAM, and then zero out and short the RAM when triggered.

Probably the easiest method for sure is a decryption key. Older style flash could also be erased using UV, but it seems like this is now not the case.

I'm not entirely sure about using moisture as a method for ensuring the USB device is interacted with in a certain way. I would probably consider some other options:

* A few holes with light sensors that check for a binary code as the stick is inserted.

* A covert fingerprint sensor.

* DIP switches that are somewhat hidden. Perhaps on first entry an LED flashes, and you must set the switches in response to the sequence. In this case somebody could watch you do it and still not understand what they must do.

* Perhaps even something as simple as unplugging it and plugging it in several times.

All of these seem somewhat more reliable that the resistance you happen to create when licking you fingers, and are harder to replicate.

As you say, having it so that just the encryption code is lost means that you could recover the device by loading in the correct key again.

comment 4y ago · link · parent

> The defaulted loans are not for STEM careers, that have little trouble paying back [..]

Right, if you are going to take on tonnes of debt, it should probably before for a degree that has a reasonable chance of repaying the debt.

> colleges offered useless degrees to people that do not need them except for vanity [..]

Not useless, but it is difficult to get a profitable career in this subject areas.

> This is one of the biggest scams in history.

Not even remotely close, unfortunately. Tax is way worse. Your employer gets tax, you then get tax, anything your buy is taxed, if you don't spend it before you die you get taxed, if you try to leave it to somebody you get taxed, if you try to save money the government uses inflation to slowly tax it away from you.

The next biggest scams are likely debt traps (checkout who owns the largest amount of debt of poorer nations right now and how they got there), followed by crypto (which is a glorified pyramid scheme - prove me wrong).

comment 4y ago · link · parent

> Are they literally bragging about burning money in style ?

Yeah, not something I would be saying after a failed company. You would say something that shows you reflected on this and realized your mistake.

> That's either investor lie or he's in denial

An obvious lie... That should be a red flag for future investors.

Why would investors pull out of a good investment? He's either spending money at a rate that doesn't translate to growth or he's in denial.

> [..] there are broad critiques on things like operations and supply chain [..]

I wouldn't cast these issues 'broad', they were very real and important show-stoppers. I would be surprised if there was actually supply chain issues for food, considering so many other shops in Pakistan clearly have figured it out. Probably the biggest issue was 'operations', i.e. spending money like it's going out of fashion.

comment 4y ago · link · parent

I don't disagree there is a cost trade-off. I still can't help but feel there should be a solution.

Of course as tech people we think "AI". I know there has been some work on chat bots to "help" with this, but they end up in infinite loops when the topic become too complex. Still I think this is a little better than listening to queue music in the hope you get through to somebody.

When it comes to human time, cost per hour is fixed, a human can only process so many calls an hour and decision making is mentally taxing. I don't think the answer comes from trying to make these people more productive.

You can look for "cheaper humans", i.e. non-local labour, but that comes with other issues. Language barriers, working hours, etc.

There's just no nice ways out of this mess.

comment 4y ago · link · parent

> I know a full rewrite is necessary, but how to balance it?

No, re-write over time. There's an extremely high chance there is complexity you do not understand yet.

> - it has been developed for 12 years directly on production with no source control ( hello index-new_2021-test-john_v2.php )

First immediate win, start using source control. Initially people can operate in the same way they have been, just through git. Slowly but surely clean up the old files and show people how they are not lost, and how it cleans up the code. The switch to more advanced code management practices, like master branch vs working branches, code reviews, etc.

> - the routing is managed exclusively as rewrites in NGInX ( the NGInX config is around 10,000 lines )

Make sure this is definitely checked into git. Ideally you look to simplify this somewhat, you don't really want to be so heavily tied to the server.

> - the database structure is the same mess, no migrations, etc... When adding a column, because of the volume of data, they add a new table with a join.

A migration to a better database setup takes time. As long as there are no fires, treat it as a black box until you have time to fix it up. Just double check their backup strategy.

> - team is 3 people, quite junior. One backend, one front, one iOS/android. Resistance to change is huge.

It sounds like you are new to their team. You need to win hearts and minds. One small thing at a time.

> This business unit has a pretty aggressive roadmap as management and HQ has no real understanding of these blockers. And post COVID, budget is really tight.

Explain to them the code is like an old house. It has had lots of investment over the years and you have generated a lot of profit from it. The problem is, over the years, the foundations have crumbled, and despite the walls looks nice, they are painted over serious cracks. Whilst you could continue to use it how it is, one day it will simply fall down - unless time is invested today to maintain it.

They will then say "well, what needs to be done?". And you need quite a concise and well thought out way to respond to that question.

comment 4y ago · link · parent

A friend of mine worked for one of those companies that automates company phone calls, where you talk to a robot voice and select numbers on the keypad. They said that the company did research into customer satisfaction, and found this is achieved by minimizing the number of key presses to reach a human.

They advise(d) all of their customers new and old, gave them templates for their customer service process, and _all_ of them (big names) chose to make speaking to a human as difficult as possible. They then of course complained that customers were having a negative interaction with the system, but refused to make it easier to speak to a human.

This seems to be the way things are going now - and for this reason I favour smaller, local companies and people over larger services, even if their offerings are not as good and the prices higher. I know that I can at any time contact these people and they will try to help me. That's worth a lot.

comment 4y ago · link · parent

Is there a UDP equivalent to passively monitor and fingerprint? I'm guessing not, but would be interested to hear if there is.

comment 4y ago · link · parent

> The bots also increase online discussion around motion, observed the research paper, by tweeting posts with words like “moving”, “go”, “going”, “leave”, which are potentially associated with staying or fleeing the country.

Pick 'leave'. Is this "I think _we_ should leave" or "I think _they_ should leave". Without context these words could be used in either way. I searched the paper for the word "leave" and it wasn't there, so the article pulled this example from nowhere.

I am also not convinced whether the sentiment isn't also just amplified from that of real people. On page 11 of the paper [1] the "lag" seems to be the content from the bots becoming less emotive over time. On the other hand, page 12 in the conclusion it appears to amplify with time, which could also be somebody getting more exasperated. I don't know whether this could be concluded to have real intention behind it.

[1] https://arxiv.org/pdf/2208.07038.pdf

comment 4y ago · link · parent

Just a little plug that I run ytoff: https://github.com/danielbarry/ytoff

It needs some work, but it downloads a video locally, bypassing ads and great for offline use.

comment 4y ago · link · parent

Yeah, it's a common misunderstanding by Americans (and even British people due to American media influence) that the UK has freedom of speech. Instead it is this _really_ washed out vague protection. NPR clearly have zero idea of this either.

Add on top of this the new hate crime laws that disallow 'hate speech' (which includes critique) of 'protected classes', and you don't really have the right to complain. The police also record "non-crime hate incidents" on your permanent record (zero due process, zero ability to remove it), and the police will quite literally come to visit you and "correct your thinking" (yes, they actually say this).

Personally, I really want to see freedom of speech implemented. This of course directly conflicts with the traditions we know and love, so it's unclear where we go from here. It seems as though freedom of speech is coming whether it matches our culture or not, and many British people already behave as though they already have it.

comment 4y ago · link · parent

Exactly. And why would it be so sudden? It's just not adding up.

comment 4y ago · link · parent

> but it could be that they had a lot of folks who were analysts but weren't contributing much to remediating issues.

Neither feature testers (does it behave as expected) or security testers (is it secure as it does it) are expected to write fixes. Writing fixes needs to be planned in the sprint and is better worked on by an expert on that system.

> they're hiring a small number of security engineers (maybe even one) to not only actively look for security issues, but to also actively work to remediate them and improve code security posture as well.

If this is true, it could seriously affect their ability to ensure the system remains secure. Sometimes a security issue will take a long time to hunt down, and perhaps require a large rewrite to deal with it. Whilst this person is dealing with this, they are no longer looking for new issues.

I'm just not sold this is anything but a cost cutting exercise, and could (theoretically) lead to bad practices in the future.

comment 4y ago · link · parent

> Last week, we let go of 5 teammates from our security organization, which stemmed from a different set of reasons from the ones guiding today’s decisions. The change last week was part of a longer-term strategy to continue distributing security responsibilities across our entire engineering team, bring new areas of expertise into Patreon internally, and continue partnering with external experts. Unfortunately, the change generated concern that we were reducing our security investment, but I wanted to make it clear, especially in light of today’s changes, that we are in fact increasing our investment in security.

This is interesting, and I'm not entirely convinced. It seems as though their security team was not warned and you would expect a handover process.

> The change last week was part of a longer-term strategy to continue distributing security responsibilities across our entire engineering team

> Unfortunately, the change generated concern that we were reducing our security investment, but I wanted to make it clear, especially in light of today’s changes, that we are in fact increasing our investment in security.

This doesn't sound like an increased investment, it sounds like a decreased investment. "Why are we paying these people when we can just get the normal engineers to do this?". Maybe this is possible, but who's going to allocate sprint time to work on background pentesting and documenting?

You may say "we will get an external team to do this", but will they get access to source code? Will they get access to upcoming features?

comment 4y ago · link · parent

Worth checking this out: https://www.legislation.gov.uk/ukpga/1998/42/schedule/1/part...

Notably:

> The exercise of these freedoms, since it carries with it duties and responsibilities, may be subject to such formalities, conditions, restrictions or penalties as are prescribed by law and are necessary in a democratic society, in the interests of national security, territorial integrity or public safety, for the prevention of disorder or crime, for the protection of health or morals, for the protection of the reputation or rights of others, for preventing the disclosure of information received in confidence, or for maintaining the authority and impartiality of the judiciary.

comment 4y ago · link · parent

Then why is it in law?

https://www.legislation.gov.uk/ukpga/1998/42/schedule/1/part...

comment 4y ago · link · parent

> "Let her go! It's free speech!"

The UK unfortunately doesn't have freedom of speech, it has freedom of expression.

> The woman, 22, was arrested "in connection with a breach of the peace," a Police Scotland spokesperson told NPR, adding that she was formally charged and released, and her case is now pending at Edinburgh Sheriff Court.

Just to add, you can also be arrested at speakers corner if you upset enough people there and there is "reasonable cause" that they may become violent, despite you speaking peacefully.

This NPR article is false and clearly doesn't understand the laws of the UK.

comment 4y ago · link · parent

Perhaps this would be better served as a plugin? For the wayback machine plugin I can right click and open that link in the archive, but this is of course for only one website.

comment 4y ago · link · parent

Switched the directory to https://coffeespace.org.uk/tools/colour.htm

Also added https://coffeespace.org.uk/tools/avatar.htm for generating avatars in the same spirit.

comment 4y ago · link · parent

Some comments here mentioned that these pages were essentially just text. I wanted to create something that would be useful, showcasing some basic HTML, CSS and JS.

Here's an entry I hacked up together: https://coffeespace.org.uk/colour.htm

It comes in at 1015 bytes and converts HTML colours into their shortened form (i.e. #00F for blue) and displays the colour visually.

comment 4y ago · link · parent

> Patreon is where the users are. I've evaluated other platforms, but at that point I'm probably going to come up with my own thing on top of Stripe if Patreon falls over. I'm kinda low on ideas on how to make such a migration palatable otherwise.

Theoretically it shouldn't be too difficult to periodically charge people and then send this money as a single sum periodically. This is done by companies all of the time. As it's one person you can cut out a lot of the complications.

> As a corollary, if credit card information was actually pwned, it's not like people can do much about that either at 10:30 PM EDT on a thursday after the Queen died. The financial system is gonna be kind of tied up. Two factor auth is a more actionable step that can have measurable security benefits. If it really is a credit card pwnage, that's a big enough problem at Patreon's scale that individual actions can't really do anything. It would need a systemic response.

Patreon just fired their entire security team, they may not be well positioned for such a scenario. 2FA is of course good to have but I somehow doubt accounts have been compromised in this way (if they have been compromised at all).

I suspect that although the Queen has died, financial systems continue to operate near normal (minus the stock market).

1
293031
78