skysight-inc/HackerNews huggingface dataset:
These replies were not what I expected. Practice, practice, practice is not necessarily good advice if you don't know what you're doing. Before I took college programming classes I was self taught and wrote what I later learned was called "spaghetti code." I had no idea (before the classes) who was giving me good advice and who was giving me bad advice. My code was unorganized and a total mess.

In my class, our textbook was "The Elements Of Programming Style" by Kernighan and Plaugher. As far as I'm concerned, it is THE book for beginning programmers. It's rare and expensive now, but worth it.

In a nutshell, it taught:

- program in a direct way, do NOT try to be clever and code in weird, complex ways. Your code (not just the comments) needs to be readable to others, what it does should be evident. (The book gave examples of both, and after looking at a number of these examples, you get the idea of what K&P mean by ELEGANT programming.)

- Subroutines must have one entry point and one exit point, and accomplish one task.

- Add lots of comments in your code to help others or even yourself in case you forget what your thinking was.

These are just a few examples of good programming practice. I later became a professional programmer, using assembly language and C++. But that first college book was the one that outshone all the later ones that I read. Get it if you can find it!

I would also highly recommend Dennis Ritchie's books.

One more thing - object oriented programming is good, but I'm not sure it's paradigm will win out in the end. As an assembly language programmer, I began to realize the power of data driven programming, and I began to write my programs in that way. Which is why I think this new language, Julia, holds a lot of promise. I say this as one who has only read ABOUT Julia, not as one who has studied the language itself.
iOS and Android basically provide a sandbox for Apps (where the user can set permissions). Does Librem5 do the same, or does it install programs like, say, apt-get would do, that is, without sandbox per application?
One repo I found is https://github.com/G3Kappa/pictomaze. It requires installing processing and the python plugin.

You can see the write up / output: https://medium.com/@G3Kappa/generating-mazes-from-pictures-o...
Does the LLVM IR output from the JIT compiler have to then be compiled to CUDA PTX with nvcc? I looked a while back for a JIT compiler for CUDA, but didn't find much.
I'm fascinated by real prehistoric artefacts like stone axe, etc even though those physical artefacts have probably no scientific value after having been analyzed, described, photographed, 3d modeled, etc. And we also do have museum of computer history with all that old hardware.

That old stuff anchors in spacetime the path of our civilization and bears witness to the chain of thought and actions that led us to the current place.
The bizarre thing is how little people seem to have paid attention to Snowden. Apple joined the NSA's PRISM program in 2012. [1] PRISM enables the government to access data from participating companies including audio, video, and live chat. I'm linking to Wiki there only as a catalogue of sources. The page itself is useless and has overtly fake (though at least mildly amusing) quotes from Google. There's no need for new bills for these sort of issues to be a concern.

I also tend to agree with you that this is not necessarily related to these programs. The reason I mention this at all is because I think there is a reasonable chance that this is related, that this overall issue is very important, and that the amount of cognitive dissonance on this is surprising and regressive. These programs are real. Companies facilitating access, including real time, to your data and "private" conversations is real. And it seems to only be getting worse. Yet people seem to convince themselves otherwise, including throughout this thread. Part of the reasons these programs are able to carry on mostly unchallenged is because people convince themselves that what is happening, is not.

[1] - https://en.wikipedia.org/wiki/PRISM_(surveillance_program)#M...
>Welcome to Saskatchewan, Canada, where there aren't any places in the house that are at the right temperature in the winter :).

Ha ha, good one. I stand corrected, probably, if I didn't mention earlier, that the yogurt-making procedure I gave, was specific to the warmer temps of most regions of India. And even some of those regions get pretty cold in winter (at least by sub-tropical country standards).

>a nice place that's kept around 43degC in a house that's usually around 17degC overnight.

Like where I am now, min temp has been 7 C or even 6 C at night lately, and in some places I've been (which are not even in northern India, which is colder), the min has been known to drop to 2 C at times, though rarely. Goes to zero or below, in some places, sometimes, of course.

(I do know that places in the world further north (or south) can get a lot colder, like -40 C (= 40 F) or more.)
We've got some semi-automated documentation for our React component library. It's broken down into Assemblies, Components, and Elements with each variation having it's own SKU which makes going back and forth from design to documentation pretty simple.

When I first started it helped me a ton with getting up to speed (especially as a designer turned developer). One of the neat things about it is that it uses our flow types to pull out required/optional props and their types.

The main negative is that there's no simple way for designers to directly contribute to it at the moment.
It’s Time for Some Queueing Theory
Visualizing how the process you want to express in software works is a great technique for clarifying what you want to accomplish, but I'm skeptical that it is a good way to actual do programming. The simple reason why is that error conditions and corner cases are hard to express visually. That said, I think drawing out what you're trying to accomplish is helpful. It's basically a form of lightweight specification.
link is boken
Please don't post unsubstantive comments to HN, regardless of how you feel about journalists.
I found this nugget to be the most valuable:

Simulated flat betting 1$ on 26 000 races over 15 years shows a hefty return on investment

If this is true, why don’t we all just go and hire people in Sweden to put in bets for us at the last minute, based on the favorite horse, and pay them out of the profits? We pay them to do it and we collect the winnings.

If this strategy works it may work elsewhere too. Why not just do that all day long with an army of people? And you aren’t hurting who is the favorite either.
So thru my network I see 278 servers I need to patch. This will take forever, or couple days of work. Next time I will simply spend few bucks on an annual certificate instead.
Apple was warned of the FaceTime bug over a week ago
How long between deleted and re-opening? The support page I linked talks about being able to restore a deleted account within some period of time.
Voice only, yes (Highly amateur podcasting & tutorials)

3.0 USB port.

No additional software other than audacity.

No problems with the USB cable so far. It's a fairly standard cable though, so getting a new one with better shielding shouldn't be too hard if that's a concern.
This page [1] lists query times on a 1.1 billion row dataset, performed using a variety of systems, from GPU DBs all the way to SQLite.

[1] https://tech.marksblogg.com/benchmarks.html

Edit: Unfortunately, each run is on different hardware, but it at least gives you an idea of what's possible.
did you hear about it last week ?
> Swift could access compiled files with these "module map" things

That's been the case since it was released – all Swift C / ObjC interop happens at the "module" level. You write a Clang module map (if you're not using a system library which already has one), point the map at the relevant header(s), then you can import that module into your Swift code.

That said, not everything is capable of being imported (variadics, complex macros, VLA structs, and a few others).
Well said! Simple yet thorough
explanation in a single sentence.

One parallel came to mind is comparison of graphic novels and regular ones.

Good luck conveying War and Peace, The Iliad, The Magic Mountain or any single serious piece of literature into a graphic novel.
appreciate the write up but is this even AI? It seems like he just did some analysis & stats on observed data, and came up with a simple model.
MakeCode – Scratch Editor by Microsoft
Fake news in the 17th century: pamphlet wars, the Twitter-storms of their time
They could not find anything existing in 2019 that they have to build a new db?
Exactly this. You also need to ensure that the underpriced bet actually wins or, if your strategy allows for it, places in the top 3. The odds on a place are generally too low to make this worth it though.
> But, is their really any need or specific benefit in its preservation?

Maybe a little, but probably really only to someone doing specialized research on Chemistry education.

This find seems a lot like a hypothetical discovery of the "oldest surviving Parisian passenger bus map, dated 1952 [1]." It wouldn't be the oldest bus map, nor even the oldest bus map of Paris, nor would it tell you much about the Parisian bus system that you couldn't find from other sources.

[1] I'm aware there are likely older surviving maps, but I made this up to make a point.
Visual GraphQL – Fake Twitter
Everyone else seems to disagree, but I will raise my hand and say I agree with you. It's good to keep ambition in check and expectations realistic, so you can get something off the ground, but part of your mind should always be thinking about how you might scale it up when the opportunity presents. That isn't something you want to try and retrofit.
What a bunch of bull-frickin-shiz. Very interesting topic.
Package management ;-)
Encrypted Email Services for Private Communication
Well god damn! I had no idea. Thank you for replying :)
Towards reconstructing intelligible speech from the human auditory cortex
> Visual programming tools attempt to map logic to a (usually) 2D domain where there is no natural or intuitive general mapping. The representation has both too many degrees of freedom (arbitrary positions of nodes in 2D space that are not meaningful in the problem domain) and too few (connections between nodes end up crossing in 2D adding visual confusion due to constraints of the representation that don't exist in the problem domain).

In general this is true, but the diagrams we use at Statebox are different in the sense that there is a completeness theorem between the diagrammatic language and an underlying mathematical structure (a category). In this case the mapping is sound by definition.

Also, it is worth stressing that our diagrammatic calculus is topologically invariant, meaning that the position of diagrams in space is meaningless, everything that matters is connectivity. This is also the approach originally used by Coecke and Abramsky in the field of Categorical Quantum Mechanics, which is getting huge success to define quantum protocols :)
Yes, there is. It is often, but not always, less active and purposeful than you seem to be imagining, but even things like "believing a company is a meritocracy" and "believing that the most important thing is to hire smart developers" end up in practice leading to discrimination against women, who are less likely to be seen to be "geniuses" with innate talent or leadership potential and more likely to be seen to be hard workers.

Then again, I saw a woman get put on a PIP the week after she filed a sexual harassment complaint, because the (major tech) company would rather pay a big severance than tell the dude programmers to stop sexually harassing their coworkers, so there are also explicit dynamics that play into the alienation of women.

On the whole, though, it's about disproportionate impact. "You are welcome to join this sexist work environment" is a selling point to far more men that women, so we end up with more men than women. This isn't rocket science.
What happens when you have more VC money than sense
Yeah, I've been saying that for years, but I think it's too late for that. Now that ChromeOS supports Android and Linux apps, I don't see how Mozilla could seriously compete against that. Chrome OS is also heavily tied to Google's services, which are quite good.
Can thrust sort operate on datasets larger than GPU and CPU memory or does it require manually combining smaller sort operations into larger sorted sequences akin to merge sort?
Huge demand, little pay, especially if it's a friend. The platforms with plugins (e.g. Wordpress) are a good bet. Paid plugins, e.g. "I need a map of my store locations" or "I want to re-publish my facebook/twitter feed" are gold compared to writing anything yourself. My first session would be "which of these themeforest themes would you like". (If he encounters a nice one, let's say $29 USD, and indicates it's too expensive: run)
Reversing the Rachio3 Smart Sprinkler Controller
I have a problem. I try to be as helpful as possible. But when deadlines are near(and that seems to be constant lately) I lose my patience. I lose patience when juniors ask things they could have easily searched. I lose my patience when they come to me going "this isn't working" without having tried any alternative. I lose my patience when they ask me for things I could not know, that they should know and all I do to solve the problem is just probe a bit more.

So how do you, who are comparatively more experienced than your peers, not lose your patience?

EDIT: replaced 5x instances of loose with lose. Oh god. I was kinda' drunk and would be tempted to blame auto-correct on my mobile device but I just tried it, and it doesn't turn lose into loose. So I must just be a idiot.
If anyone sees this, I'm a little late but understand your frustrations, it seems a lot of people in this thread feel the same.

I'd be more than happy to teach a group some basics/ simple rules to make your life easier, just let me know how.

I make stuff like this to teach myself
https://vuild.com/game-watch/ (resize)
This may be an argument for PhD positions that include teaching vs pure research.

For me it psychologically good to have constant successes in teaching while seemingly not advancing in research for months. Of course the load shouldn’t be high.
I found adopting a functional reactive programming really works well for multithreaded systems.

GCD is super great and I use it a lot (...if you had to extend AsyncTask recently: my condolences), but it doesn't safeguard you from race conditions, dealing with locks and all that fun stuff.
Building a Remote-Friendly Company at Webflow (YC S13)
Doing Code Coverage for MSTest V2 in Azure Pipeline
Well Zapier has filter and formatting so you can modify data and also filter them https://zapier.com/apps/formatter/integrations/
First time I've seen a quote from Ahad AhEm on HN.
Comments on this matter from the Khronos president:

> Khronos has talked about the convergence between OpenCL and Vulkan - a little clumsily as it turns out - as the message has been often misunderstood - our bad. To clarify:

> a. OpenCL is not going away or being absorbed into Vulkan - OpenCL Next development is active

> b. In parallel with a. - it is good for developer choice if Vulkan also grows its compute capabilities

> c. OpenCL can help b. through projects like clspv that test and push the bounds of what OpenCL kernels can be run effectively over a Vulkan run-time - and maybe inspire Vulkan compute capabilities to be expanded.

Related article: https://www.phoronix.com/scan.php?page=news_item&px=Vulkan-O...
We need more VC funding. ;)
Flatpak is what provides you with a way to package applications with all of its dependencies and also provides a per-application sandbox. You'd normally install an application via the Flatpak app store that is going to be on the phone.

apt would remain an option for those who want it, but for regular users they'd install the Flatpaks via an app store like interface.
I think one would have to attack it the other way: focus on each vortex first, classify its connectivity. Since I think any path from East to West would break a path from North to South and vice versa, you'd have to classify each vortex by what it connects, down to one of:

{., NE, NW, ES, SW, NS, EW, NE/SW, NW/SE, NES, NEW, NSW, ESW, NESW}

In a more visual language you'd have 5x5 tiles which the bigger picture is made out of:

\ / \ / \ / \ / \ /
\ / \ / \ / | | ‾‾
X X X X | |
/ \ / \ / \ / | | __
/ \ / \ / \ / / \ / \

\ / \ / \ /
\ / \ / \ /
\ / X X X X .
\ / / \ / \
\ / / \ / \

Once you've figured out each individual vortex I think solving the bigger problem is probably doable?
101 Dalmatians – The New Era of Disney Animation [video]
#1, immigrants in the US as a whole have lower incarceration rates than native born Americans. Why must they be more fastidious than native born citizens?

#2, no, I insist that I do not know. There is no legal definition for "breaking into the country", and the best definition I can come up with - entering the country without going through border control - is only a misdemeanor for the first offense, so not "obviously a very serious crime".

That's why I asked what you mean by it.

#3, your understanding is wrong. I linked you to the actual US law. I will now quote it:

> Any alien who (1) enters or attempts to enter the United States at any time or place other than as designated by immigration officers,... shall, for the first commission of any such offense, be fined under Title 18 or imprisoned not more than 6 months, or both

Then https://www.law.cornell.edu/uscode/text/18/3559 says that "if the maximum term of imprisonment authorized is ... six months or less but more than thirty days" then it's a "Class B misdemeanor".

Hence, entering the US at somewhere other than a designated border crossing is a class B federal misdemeanor, and NOT a felony.

We are not "splitting hairs". You are making statements which are simply incorrect, then justifying your views based on those statements.
This stopped happening to me once I moved to Dvorak.
What you say is true. Text is way more expressive, but sometimes it is difficult to spot the overall code structure just by using text. What Statebox does is this: It implements Petri nets as categories and maps them functorially to a "normal" functional programming semantics. What this means is that:
- You draw the structure of your code in a behavior-oriented way using petri nets. This step is completely visual.
- You use a ton of formal tools to verify that this net has nice properties.
- You map places and transitions of the net to datatypes and functions, respectively.

You see that in this approach nets serve the purpose of giving an high-level understanding of how the code behaves. You still have the freedom that you get by using text in filling the net with meaning, but you gain also this high-level overview that saves a ton of work!
Yep, exactly. So if you happen to live somewhere that's only well covered by Verizon, and consistently good reception is important to you, you don't really have a lot of other options. It's similar to the situation with ISPs in the US.
I thought because `iexplore.exe` is a thin wrapper around `mshtml.dll`. I'm not sure how thin, but most of the functionality is in that and maybe other DLLs.
> Visual culture is distinguished by its richness on expressive dimensions that text and category theory diagrams just don't have.

I think I understand what you mean, but I'd say this unbounded "richness" is precisely what you must avoid in a programming language. In a programming language you want constraints, not freedom. Your visual language must convey specific, unambiguous information and not be open to interpretation or confusion. A program is inherently closer to a formula than to art.

As a complete and irrelevant aside: I wouldn't assume visual artists will consider category theory diagrams artistically uninteresting. Artists are an unpredictable bunch, capable of finding beauty in the most unlikely things ;)
Are you serious? Lose. The word is lose.
> if I could start on it

A suggestion for getting yourself to spend time on large projects: http://tynan.com/ornothing "Do it or nothing"
It had to be said.
Beyond 5G: The Next Generation
Agree that it's largely cultural, but not sure about cause/effect. I suspect that American culture leaves less uninterrupted chunks of time for lower middle-class and below to go running. Anecdotally I get the sense that Kenyan culture gives ~everyone uninterrupted chunks of time to go running.
> * Pinch to zoom (on macOS)

And Windows!
>And then people will complain that Mozilla is nagging them for money. I doubt anyone likes the nag screen that Wikipedia pops down about 15 seconds into reading a page and it covering almost half the screen.

Users may not like nag screens, but I doubt they like the shitty ads Mozilla shows on the new tab page by default either. As long as the screen is easy to dismiss I don't see the problem.
In our experiments with Chrome, we found no difference for SPEC with or without the trap handler.
As many have said, it will depend highly on other benefits offered, generally should see 25-40% of the billing rate. $80-130k/year roughly speaking.
Try installing Ubuntu. I'm using 2i2 with a AT2030 through pulseaudio, and not having any issues in Audacity right now. My Ubuntu version is 16.04 with 4.4.0-137 kernel. I remember having some crack/pop issues (you could literally see absent points in Audacity) with earlier versions of the distro/kernels, but I think they evaporated after upgrade/reinstall. So it's kinda unreliable/flaky, depends on some kernel config perameter maybe, or config file in the distro.

I forced mine to work in 44100 sampling rate due to an unrelated hardware malfunction that causes loud pops during device initialization and sample rate switching(observable in windows also). In /etc/pulse/daemon.conf

default-sample-rate = 44100

alternate-sample-rate = 44100

Don't know if it affects the recording pops/cracks. Probably not.

Another issue I had that evaporated with updates is that pulseaudio/audacity recording used to work with ginormous latency, like a second or more, maybe caused by the crack/pop issue itself forcing pulseaudio to increase buffer size to absurd sizes or something.

Another bit of sound configuration I found in my "how to reinstall ubuntu guide" I've written for myself:

in /etc/pulse/default.pa add the following before 'load-module module-default-device-restore':

load-module module-remap-source source_name=input1 master=alsa_input.usb-Focusrite_Scarlett_2i2_USB-00.analog-stereo master_channel_map=front-left channel_map=front-left format=s32le rate=96000 remix=no

this line turns 2 scarlet's inputs interpreted as stereo by the os into a a mono source (probably requires customization of the device name)
Tesla Referral Program Ends February 1
best comment I've read on here.
Is there somewhere in the Let's Encrypt documentation that lists what the supported methods are and what the requirements for using them are? I set up Let's Encrypt for a few somewhat bizarrely configured domains of mine, and I couldn't find anything at letsencrypt.org/docs that explained it.