skysight-inc/HackerNews huggingface dataset:
Day 6 and 7 are fantastic for that. It's a learning moment, where you can get the benefit of thinking about the problem for a few minutes instead of bruteforcing gives you a dramatic speed up.

When I read the Day 7, I saw bruteforcing would lead to bad perfs. Then I remembered that in high school, I learned a formula to calculate the nth term of a sequence without having to process the entire sequence.

I couldn't remember the formula, nor the name of the concept, so I google around until I found some tutorials, and relearned what I was taught as a child: arithmetic sums.

The consumption for a crab can then be calculated in constant time:

def crab_consumption(crab, target):
n = abs(target - crab) - 1
return (n**2 + 3*n + 2) / 2

And the Python solution finishes instantly.

Bottom line, I could keep using Python for all problems and benefit from the amazing productivity of it.

I've been using python since 2.4 now, and it's not always fast enough. But it very, very often, is.
I'd say the current techniques work too well :)

Also it says something about the current wave of "AI" being able only to mimic the human thought process and not being able to come up with anything different. The I in AI is still out of reach.
Hey! Please email me (address in bio) and we’ll get this sorted out.

Mainly geared for MBP, yes, but Desktops will get some love too.
I think passive processing is one, intuition is the other. You can solve a problem by thinking about it for hours or by once looking at it and immediately knowing a good solution. It's about experience, intelligence and probably many other factors.

And that doesn't mean you'll perform well in technical interviews. They're often about specific algorithms most people would never implement themselves. Few are about the problem solving part of programming.
Nobody's suggested plausible mechanisms for low-power radio in those bands causing cancer, either. The only EM-induced cancer risk you should be worrying about is from the big EM emitter in the sky.
I find RVM much easier to manage than docker, for local development. To deploy on servers, it depends. Deploying with Capistrano to one server is easier than building a docker container and push / pull it. For cloud / serverless environments... the number of companies that really need that is surprisingly low. Most businesses are small and are well served by a single VPS.
In all honesty and with the best of intentions from an academic doc, I think that trying to validate your doc's work other than from what you think of the result is a bad idea. Modern medicine is actually not that modern and still requires a massive amount of know-how that doesn't show in literary resources. For a trivial example, consider that UpToDate is really only valid for mainland US: an infection will be treated differently in Europe because of different resistance patterns. The list of such examples is infinite.

Of course, assessing results only has its limits. You can't know as a patient if you are treated optimally for a cancer that causes no symptom but that may kill you in 5 years. I think the only thing you can do to act positively on that is go to a big center specializing in your pathology. Notice that I say 'center' and not 'professor' or 'reputed specialist'. Modern medicine is a system, not an individual (as brilliant as he/she may be).

tl;dr: if you're not happy with the results of your current doc, find another one that suits you better.
Add an unecrypted disk on which you can store VMs that require VM-level encryption.
Ah that makes sense. I agree with you; I’m not a huge fan of trying to infer where the types came from myself either when reading code on GitHub since it doesn’t have the inference that my IDE does.
> bribing voters is a thing

Is it though?
Tooling has been a weak point, but it's getting better. I've been having a pretty good time of late with nimlsp[1] plus Emacs and lsp-mode[2].

[1] https://github.com/PMunch/nimlsp#readme

[2] https://github.com/emacs-lsp/lsp-mode#readme
That's why I like going for a run or cycling at lunch time. It always helps me to process ideas. And doing it after work means I'll get that great idea in the evening when I don't want to work for the company anymore. I believe doing sports at lunch time helps the company at least as much as it helps me.
Quite easily actually.

PCI-DSS certified companies ( mostly based on my experience at the one I'm currently employed at in France and things I've heard) have agents on employee laptops, but there's an upfront disclaimer what it does and what data it collects ( close to none - it checks for encryption, password policy, antivirus and stuff like this, but no actual activity data is collected). In some cases work has to be done on a terminal server, so no actual PCI-DSS covered data hits the employee laptops.

And note, there was backlash against the agent being deployed, which was handled with full transparency - the scripts run by the agent are (internally) open source, there were assurances about privacy, etc. Considering the fines possible, and employee representation, employees are generally inclined to trust those assurances.
You are right, locked down is definitely to strong. My assumption is based on driver issues you might face in the past.
I agree to not start with microservices.. But its better to not wait too long after the project is growing.

Regarding his points:

- Infrastructure requirements:

You don't need all that stuff! You can have multiple services run on PaaS services / Cloud Run, and you dont need to deal with all the kubernetes stuff. Even if you prefer K8S, then you still dont need a service mesh from the start. Datadog and Gitlab brings you very far with hardly any work on your side.

- Faster Deployments

My point: 80 microservices? Crazy .. Why? Just have a service per business domain, and try unifying the CI/CD stack.

We had 1 big Monolith which would deploy 5 times per day, buy every deploy took around 1 hour.

Having 5 to 10 services, that all deploy within 5 minutes is so much nicer to work with.

- The Supporting Culture

This is important: Architecture follows company organization, and vice versa. Every team often owns 1 or 2 services. Teams should be organized by domain. Business boundaries should be agreed upon in a higher level.

Sitting in your dev corner, building services without talking and aligning with the Product owners & MT is a recipe for distaster imho. The services should solve a problem that PO's understand. You should have alignment.

- Better Fault Isolation

We never said it was going to be easy... It requires a different way of building your system. You need to think distributed systems.
rich is great - exactly this library i used to solve same problem as tqdm does and it includes estimation (ETA) too!

Rich is just amazing library
I expect that my line manager would know if I am happy or unhappy and he would have done something. HonesI think my boss knows that I am looking, but we have a great time, he has the chance to go in my direction: salary, external training or more responsibility or I leave… thats the game.

I understand mot everybody can move up the ladder or get more money, but if as I line manager you can’t provide incentives or growth opportunities I would look at you first. If you don’t know the aspirations of your people and you match this with the strategy and goal of the company, are really made for your role?
Every manager should be more like - I know you can leave anytime lets find the best solution for all…
by not making overly privacy-invasive demands. Lots of security controls don't collect any sensitive information (i.e. verifying the usual security checklist of "fully patched/encrypted/...", 2FA, ...), and the laws generally leave room for those that absolutely need to, if done correctly.
I've digged some more, and indeed in numeric tests Nim is often close to C. Its hard to find good data though, with documented compiler flags and recent versions.
For BIOS boot, these days basically all partitions are aligned to a multiple of a megabyte, leaving basically the same gap after the MBR but bigger, so GRUB puts its core in the same place.

For UEFI boot, it's the firmware's job to understand the partition table and FAT32 so that it can open up the boot partition and make a list of bootable files. Then it can run one or give the user a menu. So GRUB just has to put a single file in the right directory.
Not saying that this is wrong, but he also had some dangerous theories on how to treat cancer. Just because he was good at many things doesn't mean we should see him as an expert in medicine or biology.
I wonder what happens if you work with someone of the opposite sex to prepare your resume.
Thinking over a problem is valid work. The feedback is usually to timebox it or get someone 1:1 to help out if it feels like wasting time. Maybe something wasn't well defined or planned, otherwise it's no updates, no blockers.
Damn, so many goodies to play with. Thanks for the list.
Technology has been advancing yes. And in some cases it enabled a group of people, like us, to become more independent/free. Many of us literally own their means of production, and the market is in the favor of labor. For now.

But let’s not pretend like that’s true for everyone, nor that technology is a panacea for social and economic problems.
recruiting a woman also increases my managers KPI.

That explains why my manager was looking specifically for female candidates
IMHO, considering we're in info age, no needful as can be compensated by info mining

and esp. it's dwarfed by more needed a motivator instead of mentor need
Surely someone has realised by now non-Apple plebs will have no idea what this is about. Any screenshot/photo of screen to show the "problem"? thank you
> if someone searches for "ﬁ" they should get results for "fi"; try it out in your browser's search field right now if you like

In fact, I just did try it out: searching for the ligature "ﬁ" in Firefox (on Linux) does not find "fi". Neither does it work the other way around.
I do not own any crypto, NFTs, etc.

To me, the only reasonable explanation for the success of Bitcoin is the story behind it. A mathemetical, virtual thing, created by some mysterious guy, challenging the powers to be, 'mined' by underground groups all over the world. That is just so cool ;-)

I never saw the meme culture coming and still am not sure if it is temporarely or something that will stay. It gives value to things that have (had) no clear value previously. Their only value comes from stories, discussions around it, like GameStop on r/wallstreetbets and NFTs. Most people do not understand and do not want to understand. They just want to be part of something cool and at the same time become rich ;-)
I though I wrote it correctly, but I'm French, so I'm going to assume I haven't.
> If they think it's time to move beyond cards due to the strategic overdependence on foreign service providers like Visa who can disrupt the Indian financial system at the behest of their US govt

Is there any evidence that the RBI actually thinks this? You seemingly criticise GP on their inference of an ulterior motive but then posit your own ulterior motive.
Windows 2000 control panel was perfect.
I'd take pretty much any of the interfaces over the abominiation that is windows 10 control panel.

It's form over function so hard it hurts, in a place where function is all I want. I'm not on a "journey" or having an "experience" or whatever they're aiming for. I just want to change a setting, so show me ALL the settings programs, RIGHT NOW. It's laughable how much you need to click on random stuff to see where stuff may be hiding.. Search is great, if you can remember what it's called, but often, I can't and I need to look through the options to be reminded.
LinkedIn, you can set you're looking just for remote contracts
How does this compare to pyinvoke or they are completely different ?
You have to look at it from a bigger perspective. From your and my perspective changing jobs is a big deal, it only happens a few time in our lives and it has a massive impact. The management perspective is quite different, you’ll get to not only hire but also interview hundreds of not thousands in your career.

If you’re a good manager you’ll want to keep your employees for 5-7 years. This is because you want to help your employees develop their talents and grow their career, and when you do that, they’ll eventually outgrow the role you hired them to do and how far it was possibly to extend it to accommodate their growth. By that point, you kind of want your employees to move on. Maybe to a new position within your own organisation or to a different place. It’s not because you don’t like them or don’t want them to stay, but it’s because good employees tend to outgrow you. A select few people can stay in the same functions their entire lives and never lose enjoyment or motivation, but most of us aren’t like that and you have to keep that in mind when it comes to “pay me more, or I’m leaving” negotiating.

More than that though, you have to see how relying too much on individual employees is actually what is the management mistake in these type of situations. The issue isn’t “why couldn’t you keep x”, it’s “why did you let x become irreplaceable” because any good manager should know better.

Maybe the public sector in Denmark is different than other places, maybe not. I don’t think that it is. What typically happens when you have IT systems that rely too much on an employee is that they leave you and then you end up paying them a lot more money to consult for 6 months until someone else has redesigned the systems to no longer be too dependent on a single person and your former employee finally gets to really move on.
> Look at the Brexit parties in the UK, the big enemies were the Poles

In the South of England, maybe. In the North they barely exists, here "the enemy" continues to be South-Asian communities (which, ironically, were also heavily pro-Brexit, because of the correct calculation that British policies would then be forced to fall back on Asians for cheap immigration).
I don't think many would change, because that's a lot of effort. What would make a difference is, for example, a flavor Linux to become default. If someone would buy a notebook preinstalled with Kubuntu and it would be usable enough so that the buyer won't need to install Windows. This is why I think that, for example, Valve's work in the Linux space is so important.
I think they have the correct answer as to 'why' this has happened and what the root cause is:

https://www.youtube.com/watch?v=1gEz__sMVaY&t=33s
Imports are only ~15% of the US GDP, they really don’t explain wage stagnation.
This is legitimate when working with sensitive data even as a contractor. I have seen it a lot with fintech clients. In that case though they should provide a company laptop. I would never ever install something like this on my personal laptop.
Show HN: Mission Pack 2 for Escape Team
I Made a Fitness App for All Levels of Athletes
Hi all, so my Ispyr Fitness app was because I strongly believe any individual can be an athlete by Training like an athlete. We were all built for High Performance

I would love any and all feedback on the app, as it was my 1st to be developed and I did it all using No code!

The link provided links to both the iOS and Andriod versions.

Looking forward to hearing what you think.

Cheers!

~Tito
The statement was that most Americans are significantly worse off now than [their equivalents in] the 1970s. Do you claim that most Americans fit your description of someone living on minimum wage or are you trying to argue against a point I wasn’t trying to make?

I’m not saying there aren’t problems but even someone with a very low income who is forced (by American life) to run a car for a lot of their money is unlikely to be using a car from the 70s (50 years old) and more likely to use something from the 90s or 00s less safe and efficient than cars of today but still better than cars of the 70s.
Automation should be removed from the hiring process.
> ...but bits, aren't just bit? This is not an analogic thing. If this switch doesn't altern the bits/audio of a song, how can it improve the sound?

Not every bit is equal. There are parity bits, stop bits, acknoledge bits, juicy bits ( the switch must be very careful with the latest), start bits and so on and so forth. And then they are organized in frames. So you see, it is not an easy job for a switch to deal with all this stuff carefully so to not alter the quality of the audio signal.
That's literally the worst.
> We need an online list of firms that request this

May be we need a general rating list for software vendors.
It almost happened to me once, some dude appeared at my desk and said he will install it now, I said ok, but this isn't MacOS like he assumed as I replaced it with linux (I got CTO approval first). He said he will be back in five and I never saw him again.
It is a pain to work with invoke now. It is all find and dandy for the basic features but you going to hit the seams soon you start trying advanced stuff. Looks like the project is going to be abandoned.
You don’t have to. Not accepting your current situation can be a great motivator. What the hell does that even mean “your place”? Forget that be anywhere, inject yourself in to anything , grow, learn… or not and just chill.

You don’t have to accept a place in the world because you don’t even really have one, just your idea of what that means. So run with it.
If this is really the kind of things this company would do… why are you working for them?
Counterpoint 1: For security savvy people it would seem to be more reasonable to choose a platform with steady security updates.

Counterpoint 2: There are much more Android devices with outdated versions of Android with known security bugs around than similar iOS devices.

Maybe you just don't need the big guns for most Android phones, so you will find them only on the harder targets.
> A lot of machine learning sounds like the computers are just cargo-culting.

That's precisely what ML is. Though to be fair, interviewing done by real humans is also largely based on cargo culting.
This reminds me of how adblocking software worked great when only a handful of nerds used it. Then when adblocking became more mainstream, sites bothered to develop workarounds to make ads show up anyway. Adblockers now try to develop workarounds to the workarounds, but it's a constant battle.

Was it great when I was the only one with adblocking software? Yeah, for me. But it was worse for society as a whole, most of whose members had no adblocking whatsoever.
Kubuntu fits this bill in my opinion. If you take a look at their feature tour[0], it uses similar paradigms as Windows. And Ubuntu is widely supported, and their package directory is quite good.

[0] https://kubuntu.org/feature-tour/
Actually, this is false. This used to be the case in the 70s, but after the Wassenaar Agreement[1], this was removed from nearly all collective bargaining agreements[2]. Some have salary grades that increase automatically by year of experience, but this isn’t the same, because it won’t increase the wages for people starting their career. In general, the stronger unions are able to negotiate salary raises above inflation[3], but this of course depends on the percentage of employees that actually join a union.

[1] https://en.wikipedia.org/wiki/Wassenaar_Agreement
[2] https://www.volkskrant.nl/nieuws-achtergrond/koopkrachtrepar...
[3] I recently verified it for my own collective bargaining agreement, and on average, the raises were about 1% point higher than the inflation
Pretentiousness: Good or Bad?
I think an important lesson is, from all comments here, that you can work a lot less and get away with it but you need to excel in areas other than productivity.

What are those areas? Imho: Vision, providing direction, knowing when to be productive at the exact right time, identify well in advance what won't work, identify who is doing the same as you and working together or leveraging that work. Perhaps you can do very little until you finally identify that one core important thing and be praised for those couple of hours. It's a skill as any other.
There are plenty of cases in Python and similar languages where it's not clear where a method is defined, consider `myClassInstance.myMethod`, how do you find its definition? You do not immediately know which class it belongs to, nor where that class is defined. This is especially the case when you've got classes inheriting from multiple levels of other classes.
Not sure about the arguments regarding ethics. When I'm an employee, my contract is with the employer. They pay me, they evaluate me and their success is what determines my progress (in a good company). Sure, coworkers can suffer if I refuse to do my work, but I'm not there to make them happy, I'm there to make the company money.

So I don't think it's unethical to work less as long as your employer is still happy with what you do. Sure, lying is always suboptimal. But if your company likes your output and would just be confused by the hours needed to achieve, I don't see a big problem with it. You could even argue that working full time and producing 8x as much could bring coworkers in trouble who already can barely match OPs output. And they will exist, he wouldn't have gotten to the point where he is if he constantly was the worst performer.
> Someones fear of covid, for example, should never take precedence over someones cancer

I'm sorry but I strongly disagree there, and I don't think we'll ever be able to reconcile our views in that area. With all due respect to cancer patients everywhere, civilization can survive with current rates of cancer much better than it can survive with high ratios of unchecked covid. And that determines priority.

> This is incorrect. We have 200+ viruses that are endemic

You are either repeating a talking point or failed to read my comment. The point of vaccination is to remove the likelihood of death and severe outcomes, turning covid into a flu, not necessarily to eradicate it. If we push vaccination rates high enough, this is achievable; but we can only do that if antivaxxers are not legitimized. Once covid really is just a flu, then we're more or less back to 2018.

I hate to be "you have to choose a side", but when it comes to health issues that can dramatically affect the whole population, I get draconian. Every time you contest or argue against the vaccination effort, willingly or unwillingly you are on the side of antivaxxers.
If you freelance via upwork this is a normal thing. Odd for contracting though.
The context here is getting an inflation matching pay adjustment. Matching inflation is not a pay rise, it's 'avoiding a real terms pay cut'.

So, you give an inflation matching pay adjustment automatically?

I've gone back to exactly the same job as I started 20 years ago. Pay has doubled, house prices have increased 3-4 times in my small ex-industrial, high-crime, UK city.
leaving (e.g.)runtime overflow checks turned on in the Nim code would not be a realistic comparison against C
it's likely that godot steals more customers from unity than UE, and it makes strategic sense to fund a competitor to unity, even if it hurts your own EU a tiny bit (if any realistically, since UE targets a different customer base).
I can't speak for the whole of Europe and I might be a sheep - but at least in Scandinavia, these far right parties are more of a symptom of the mainstream parties refusal to talk about problems related to immigration combined with US cultural influence. Sweden is no.1 in Europe when it comes to gun violence right now and only last year non-right political parties started discussing current crime waves link to integration / immigration. It's not surprising that the far right - hard on crime and hard on immigrants thrive in this political climate.
Thank you, i wasn't able to decipher the syntax until i read your comment “A method on an Option[T] named Map, generic over type U, taking one argument, a function from a T to a U, and returning an Option[U].”