skysight-inc/HackerNews huggingface dataset:
The line noise argument is still funny to me, and I've been a happy Perl developer for years. Recently I wanted to draw an irregular circle and bumped into this Stack Overflow answer that expressed the answer in some LaTeX dialect -- boy I found that hard to parse.

\documentclass[tikz]{standalone}

\newcommand\irregularcircle[2]{% radius, irregularity
\pgfextra {\pgfmathsetmacro\len{(#1)+rand*(#2)}}
+(0:\len pt)
\foreach \a in {10,20,...,350}{
\pgfextra {\pgfmathsetmacro\len{(#1)+rand*(#2)}}
-- +(\a:\len pt)
} -- cycle
}

\begin{document}
\begin{tikzpicture}
\coordinate (c) at (0,0);
\coordinate (d) at (1,2);
\draw[blue,rounded corners=1mm] (c) \irregularcircle{1cm}{1mm};
\draw[red,rounded corners=1mm] (d) \irregularcircle{1cm}{1mm};
\end{tikzpicture}
\end{document}

Unfortunately I ran out of time and still have no idea what the final 3 lines of the irregularcircle command do, or why the \pgfmathsetmacro\len{} is repeated twice.

Source: https://tex.stackexchange.com/a/126179
> I'm assuming they'd like to avoid spying on citizens of states they depend on militarily/politically or that have the capability of retaliating.

It's an open secret that Israel has been conducting economic and military espionage against the US[0][1][2] and stealing civilian and military technology for decades. This "blocking +1 numbers" is rather a thin veneer to prevent third parties from endangering the "official" Israeli espionage program.

[0] https://www.businessinsider.com/israeli-spying-on-us-has-rea...

[1] https://www.politico.com/story/2019/09/12/israel-white-house...

[2] https://www.nytimes.com/2020/12/30/world/middleeast/jonathan...
Get an SSD
Programmatic Video Editing with Python
Perl doesn't lack function arguments.

You can pass various arguments to a subroutine like you do in any other programming language and they can be acessed inside the function using the special array @_. Thus the first argument to the function is in $_[0], the second is in $_[1], and so on.

#!/usr/bin/perl

# Function definition
sub Average {
# get total number of arguments passed.
$n = scalar(@_);
$sum = 0;

foreach $item (@_) {
$sum += $item;
}
$average = $sum / $n;

print "Average for the given numbers : $average\n";
}

# Function call
Average(10, 20, 30);

reference:
https://www.tutorialspoint.com/perl/perl_subroutines.htm
“Perhaps someday Bezos might reveal that he was, as former astronaut Col. Chris Hadfield dared to hope on his CNN panel, brought back down to Earth metaphorically as well as physically by experiencing the planet he’s so thoroughly conquered from so many miles away. For now, though, the visual of the richest man in the world fist-pumping his way out of a rocket and into a giddy champagne toast says more than either he or the gushing pundits ever could.”
Written “cultures” are quite different from how the company actually acts.
https://arstechnica.com/information-technology/2021/07/apple...
So THAT's what the Templates folder is for... and I never actually bothered to look it up.

The worse part is that it is indeed incredibly useful.
For the JVM developers for sure. Implementing Project Loom must have been quite a ride. But even if it is used blindly, there are only three obvious issues I see:

* It's a no-no for computational workloads. As you said, they are concurrent, but not necessarily parallel.

* As you said, care has to be taken to use the right thread when interacting certain low-level APIs.

* It becomes easier to overload upstream systems by sending too many queries concurrently.
It’s where their HQ are.
this is the first example that I can think of

> At 12.03 p.m., a 112-distress call reached Halle fire-emergency HQ; one minute later, police were informed.[24] At 2.40 p.m., federal police quick responders BFE+ arrived in the city of Halle.[25][26]

https://en.m.wikipedia.org/wiki/Halle_synagogue_shooting

So it took about 2 and a half hours for the BFE to arrive in the city.
I am scared to death of rust.

It appears that if one uses it, one become evangelicalized to it, spreads the word "Praise Rust!", and so forth.

Anything so evangelized is met with strong skepticism here.
> I think we need to examine the types of social structures that can be exploited to allow situations like this to happen.

The article attributed this type of thing happening under the guise of "preventing fascism", which is very understandable for post-WW2 Germans. Kentler claimed that fascism was caused by repressed sexual desires. Therefore, de-stigmatizing all forms of sexual desires, even pedophilia, would prevent another Holocaust.

In that sense, this wasn't the result of social structures per se, but unique to that period of German history.
Would be better if there were a “create/write to new file” permission which doesn’t allow overwriting existing files.
I wrote Perl (badly) for a few years before moving to Ruby in the mid 2000s.

You can really see Perl's influence in Ruby when it comes to text manipulation, everything you need is likely in the standard library.

If you're not yet fully sold on Python, Ruby might be worth a try. It's like Perl's elegant, sensible cousin.
Majestic 100-pound moonfish washes up on Oregon beach
I live on non-zoned land. So do my parents and at least 2 of my friends. You're basically saying that nobody should live in rural areas or risk having their life's work wiped out (or worse) at the whim of the government.
...one thing you might look into is the dual-use (less fun more business) side of branching narratives for (intranet) learning e.g. personnel onboarding, teaching, interactive manual design and so on... it might make it (more?) financially feasible while secretly financing our love for text adventures ;) shoot me a PM if you want to toss some ideas
Project MKUltra: The CIA's experiments to turn drugs into weapons
No, it's not awful. See the above list assignment technique in pretty_print() to get the args.

Perl did experiment with function prototypes as a way of typing, but that was past tense.
Xcode doesn't go that far but has the plus button in the top-right corner. Clicking it will open a list of snippets. Most language constructs are in there, if/switch/class/struct/etc.

Weird enough I never got used to it. My desire for templates is more on the implementation level. For example when I need to draw a circle, I google for "SwiftUI custom shape", then copy/paste a working example, and from there, edit the "template" until I've got something going.
As I understand, superdeterminism isn't the same as determinism. Normally Bell's theorem would tell you that it's determinism, but a deterministic system still can arbitrarily end up with skewed statistics and thus look like anything and you can't expose it because it's skewed in a specific way. That's superdeterminism, it looks like not what it is by pure chance.
Why is a 5 year cost of ownership relevant when a Toyota has a proven track record of lasting 10 to 20+ years and 200k to 300k+ miles without needing anything other than cheap routine care?

Surely the evidence is stronger for cost per mile and cost per year being lower for a Toyota than a Tesla over the whole lifetime of the vehicle.
You can react without assuming the worst. For example after a bomb threat it is reasonable to calmly evacuate a school and do a search, that doesn’t mean people should be fleeing for their lives. Swatting however generally provokes an over reaction.
Except for lisp code approved by Stallman himself.
In parts of the EU, maybe. That's definitely not the case in the US. Do you generally have to report accounts for which there have been no taxable events?
Right. If you’re not very smart, but managed to get through by persistence and grit, this is someone you can trust hard problems.

Because other things equal you know it was harder than most other kinds of degrees.
Creator here, thanks for checking out the editor!

Here are some more examples:

React: https://editor.sunflower.industries/?loadExample=reactExampl... .
A 1500-line React app (in one file) will work just fine.

Hot Swapping: https://editor.sunflower.industries/?loadExample=replExample

Our goal is to make it easier to see what's happening in programs, and in doing so make coding faster. Eventually we want to build in the ability to deploy both frontend and backend (Node), all from the same editor page.

Please follow us on Twitter if you are interested in updates! https://twitter.com/SunflowerEditor

EDIT: oh, also collaboration is built in with Yjs. Just share your URL (the one that has ?room=...) with someone else.
I hear people swat using phone calls a lot, too so we should really do something about Alexander Bell.
It was LSD used in brainwashing, which later on was sold as a drug.

No need to brainwash now, our smart phones track everything we do and show advertising that tells us what to buy and do.
There's a great Software Engineering question here, and that is,

Should SQLite be modified such that its code, when compiled with a specific #define compilation flag set, be able to act as a drop-in filesystem replacement source code -- for an OS?

?

I wonder how hard it would be to retool SQLite/Linux -- to be able to accomplish that -- and what would be learned (like, what kind of API would exist between Linux/other OS and SQLite) -- if that were attempted?

Yes, there would be some interesting problems to solve, such as how would SQLite write to its database file -- if there is no filesystem/filesystem API underneath it?

Also -- one other feature I'd like -- and that is the ability to do strong logging of up to everything that the filesystem does (if the appropriate compilation switches and/or runtime flags are set) -- but somewhere else on the filesystem!

So maybe two instances of SQLite running at the same time, one acting as the filesystem and the other acting as the second, logging filesystem -- for that first filesystem...
Yes but the reasonableness of that hypothetical can still be challenged. This isn't a math proof, but a discussion of the reasonableness of a policy.
Is that a cultural thing? I'm always surprised when I see American service workers complain about abusive customers, because in my region in South India I've very very rarely seen anyone abuse their servers. A few complaints, maybe, but no yelling or pressure. IME the class divide in India is wider, so it makes me even more confused.
> Why is the fourier transform of position equal to momentum?

That comes out of the way you get the probability distribution of the position and the probability distribution of the momentum out of the wave function.

If you do the math, then one turns out to be the fourier transformation of the either. (And of course the article skipped over this, because it needs quite a bit of math).

Of course this then begs the question why there are wave functions, and why you get the position and momentum from the wave function in that particular way. And I guess the only answer I have to that is "that's how quantum mechanics works, and it matches what we observe".

> More generally, why would the fourier transform of an observable be another observable?

Again, that comes out of how you calculate particular observables from the wave function. Like above, if you do this for the energy probability distribution and the time probability distribution, they turn out to be related.

And it's not the case for any observables you can compute. For example, the energy and position are NOT fourier transforms of each other.
Aside: The distinction between safety and security I know:

- safety is "the system cannot harm the environment"

- security is the inverse: "the environment cannot harm the system"

To me, your distinction has to do with the particular attacker model - both sides are security (under these definitions).
Ruby... thanks for the suggestion. I'll give it a try next time!
“In the only known UK arrest for swatting offences [..] all commited in the US.”

So… nah.
https://archive.is/pQIly
A generic, obscurely named array that you can use to pass data into subroutines isn't what anyone ordinarily means by function arguments. The writer of a function should be able to specify multiple named formal arguments within the function signature. Again, this is a basic feature all other mainstream languages have.
Some people will, many will find other ways to optimize (lower inventory, lower wastage), or deal with smaller margins.

Others will change their product offerings to maintain margins.

And some will misjudge the situation, or were too close to the bone to survive in this environment and fold.
This is one of the cases where there's sometimes confusion between the semantics of Julia as a language and the practical implementation of Julia -- just like how Julia is dynamically typed as a matter of language semantics, but compiles to a statically-typed intermediate representation as an implementation detail [1].

While it is not part of the language semantics, there certainly is, in the current implementation, a time at which any given method in Julia is (JAOT) compiled (via SSA-form IR, LLVM IR, and finally to native machine code) -- and whether or not types are able to be inferred at this time is sufficiently important that it has its own name: type stability [e.g., 2], with type-stable code being generally a couple orders of magnitude faster than equivalent type-unstable code.

[1] https://stackoverflow.com/questions/28078089/is-julia-dynami...

[2] https://www.juliabloggers.com/writing-type-stable-julia-code...
> What other mainstream language lacks function arguments?

Assembly language doesn't have function arguments. You just decide what to put in each register when you begin the function. So you can remember that eax is the count, ebx is the pointer to the buffer, or whatever. Or if you're a nice programmer you write a comment there.
Could anyone explain how Daniel’s comments aren’t potentially illegal “blackmail”? To a layperson it really sounded like Muse Group’s leadership resorted to blackmail and then backpedalled after marcan called them out on it.

https://www.law.cornell.edu/uscode/text/18/873

https://www.nysenate.gov/legislation/laws/PEN/135.60

California’s statute for this even specifically calls out bringing up someone’s immigration status.

The relevant quote from Muse Group:

>>> “Upon further investigation, it became clear that <developer> is a Chinese national, but not resident in China. As a guest in his current country, his residency status is predicated on a number of conditions, one of which is not violating the law. If found in violation of laws, residency may be revoked and he may be deported to his home country. This becomes even further complicated given another repo of his - Fuck XXQG which is highly critical of the Chinese government. Were he deported to China, who knows how he may be received.”
Yeah, they definitely don't have my trust at all. I have something like 600 games on my account, but unfortunately I'll never play any of those on my "old" Mac anymore because it runs OS X 10.10 ("Yosemite"), and Steam no longer supports that version. If I even launch Steam, the application will auto-update to a version that doesn't run anymore. Of course most of the _games_ run on versions of OS X as far back as like 10.2, but no, because Valve decided to lock me out, I can just never play Steam games on that Mac again. Cool, right? Of course everyone's response to this is "update the OS, it's free!", but I have software I need that doesn't run on newer versions of OSX.

I mean, all they had to do is let users disable automatic updates and keep running the old version of the client "without any guarantees" -- if the Steam APIs end up changing enough that I can't log in anymore, well, so be it. But to permanently lock users out simply because of a forced update… seriously uncool.
You're not the last, and I feel the same way. Perl is popular enough that there is enough documentation out there, stable enough that all that documentation is good, even if it's 20 years old, and niche enough that most of it is written by knowledgeable people.

With Python, I first have to ensure that the page I'm reading is no more than 2-3 years old, then the copy and paste requires me to re-fix the code, since the syntax is too brittle to stand up to whitespace changes.
While it would be funny, Canadian phone numbers are pretty easy to identify, generally. They have their own set of area codes. Granted, there are exceptions, though I guess it depends on your interpretation of what it means to be a "US phone number".
Haha sorry about that bug definitely one to fix soon.

I love the idea of instantly evaluated math -- I haven't used Math-Mode/Mathjs but I have used SymPy -- I think the barrier is the difficult syntax / typing it out. Though it's definitely a step towards Magic Paper[0]

[0] http://cognitivemedium.com/magic_paper/
I used Turbo Tax Home and Business for my income and small business. The federal part is free the state filing cost costs money. Does this mean I have to pay to file federal taxes then when I next buy Turbo Tax?
This is a loaded question, you presuppose that people are operating on demanding, tight, and competitive margins for years.

Not everyone is, and yes - many of them will fold because their viability was predicated on an unfeasible wage.

Sometimes an ecosystem is well past its expiry date and it reduces to a less vibrant interplay of species.

It’s tragic, but if it took one single thing to destroy it, then it is safe to presume that there were huge issues eroding its underlying harmony.
Part of the problem is that the SWAT type response to a reported threat is a dangerous and extremist from of policing.

If US police focused more on containment and de-escalation this wouldn't be a problem in the first place.
IPv6 Status of Alexa 500 Websites
> In Linux (or most general on any UNIX system that I saw) a path should not be longer (total) than PATH_MAX, that is typically defined to 4096 bytes.

That almost sounds like the 260 character windows path limit constant used by some ancient APIs. I would assume that any API limited to that path length is dated and probably unreliable in various contexts as the wikipedia article on filesystems explicitly gives the limit as not defined for various Linux filesystems. Also given the recent talk about in kernel support for NTFS (path limit ~2^16) I assume that any historic code still relying on PATH_MAX needs to be fixed.
Just like any addiction its not a cause but symptom.

Find a cause — what are you running from into addiction?

Either it’s some trauma or mental disorders or anything else, your investment in fixing this gets you much much higher returns than any anti-addiction techniques
#9 – How to Separate Numerical, Categorical, and Textual Data Using Pandas
Lots of promise and a lack of delivery from that project.

They sunk tens of thousands of community dollars into i2p integration instead of simply using Tor.

Multi-sig was totally impractical last time I looked.

Can't comment on atomic-swaps though. If that works that would make it useful.
Sorry, but I cringe every time I see someone suggest this.

Startup scripts often aren’t idempotent, and it takes work to make sure they are. Please don’t source your startup script unless you know what you’re doing.
I am a little shocked at the policy and coalition building blindness here:

1) The KYC/AML/CFT burden is high for financial institutions, too, it is not like they want to spend all that money.

2) The efficacy of the measures is not uncontested by academia, regulators, and financial actors.

3) The CBDC discussions tend to have a thread on anonymous wallets, so why not for other things, too? Not like every low value artwork is government registered.

What does not work is open defiance, because if policy wants it can come for "you". Usually easier to go for the person but do not underestimate the effect of committing billions to software disruption either.

There are valid policy and regulatory points to made about what exchanges people should have anonymously and the pendulum on financial regulation is probably just at one of its peaks...
Closing down grocery stores will make it a tad harder for the (now unemployed) workers to buy groceries.
Same can be said about Quantum Mechanics
Even if visa and the others have stopped doing transactions to Snowden et al., I don't think sending them bitcoin is illegal? It shouldn't matter whether their accounts are anonymous
Why is it that we rely on a phone system that so easily allows the true source of a call to be masked? In this case it sounds like they located the caller, but the article does not say how.
>Cryptocurrency fees are significantly more expensive

That statement makes no sense. Crypto transfer fees are not a percentage of the transferred amount.
The phisher needs to know your phone number though to do that.
> Well that's an unsupported conjecture that I see no reason to accept.

I base it on having friends who were in the field; of course that won't be particularly convincing to you. (I'm pretty sure others in these comments had examples of people being pushed out for reaching the "wrong" conclusions, but I have to be honest that I'm trusting the people I know personally rather than anything else).

> Where is the motivated reasoning in acknowledging that climate change is not the only reason to replace fossil fuels?

Suggesting that climate change is likely to be true because you have non-climate-change reasons to want to replace fossil fuels is motivated reasoning. The fact that you brought up non-climate-change problems with fossil fuels in a thread about whether climate change is occurring suggests that you're doing it.
Signatures are experimental, see[1]. Unfortunately, that means that it requires boilerplate.

[1] https://www.effectiveperlprogramming.com/2015/04/use-v5-20-s...
Israel is notionally one of US’ top allies, Russia and China are adversaries.
Just that LP has rules like you can't get physical with them and hit them, you can't use a weapon, if they have a weapon let them go. You are not a police officer or security officer, you are a store employee or contractor that is disposable should an incident happen.
Oh my god my place now has touch buttons for the oven and it is so bad. Who thought this was a good idea??

You move a wet pan, and it activates the buttons as well. Absolute garbage.
CEO is Dutch and probably has a Dutch entity. Work related immigration is relatively easy for Netherlands, especially compared to USA. Recently the salary requirements have been lowered.
> workers must be able to choose if and where they work.

Then why do you want to take that away from them?
This rules, honestly. Seeing and making shit like this was what turned me from "CS student" to "genuinely enjoys software engineering." To this day, little stuff that makes a life better is the best part of anything I do.
This - maybe you should focus on other things and hunger will be back? It depends how much you've worked in the past, is it good time for a break? I'm still learning how to let it go and have a break without feeling guilty.
No, the swatting issue is at least 50% on police as organization. There are and will always be assholes and false calls.

Institution that reacts without care and with sever overreaction so often, will have more of them simply because they are super easy to make attack.
The Grand Unified Programming Theory: The Pure Function Pipeline Data Flow with Principle-based Warehouse/Workshop Model

Follower's success stories: Apple M1, HPE Cray SmartSim

Come soon: Qualcomm, MS, Intel, AMD, Samsung, Cray, etc.

https://github.com/linpengcheng/PurefunctionPipelineDataflow
People don't want to pay for YouTube Premium because it is bundled with YouTube Music.