skysight-inc/HackerNews huggingface dataset:
It surprises me all the time to see what you can do with a CC in America. Here in Europe it's also very common to have a direct debit card. You don't have a monthly bill, but the amount you spend is directly deducted from your account. Lots of people prefer that.
>1

I'm conflicted about this one. I choose not to try and emulate generics with macros because adding language features with macros is a terrible idea. On the other hand, I recognize the problem with void*. It's a matter for debate but I definitely fall on the "don't use macros for this" side.

>2

This is a case where I would rather write more code than rely on magic. You have to have this awful hacky opaque implementation in exchange for a trivial improvement in ergonimics. No thanks.

>3

I mean, just look at this code. Or better yet, have someone else look at it. This is totally unreadable and unmaintainable, all for a marginal ergnomics improvement.

>4

Just use strtol or strtof. Do you really run into this that often?

All of these are demonstrating exactly the problem I have with a lot of C authors. You build these esoteric systems that use heaps of unmaintainable, unreadable code to provide marginal gains elsewhere.
What is a Payday Loan?
It would be nice if page authors (perhaps with user permission) could disable throttling on background tabs in some cases. I made a Morse code tutor with the Web Audio API, and playback breaks as soon as you switch tabs because the timeouts go to 1 second minimum. And it's practically unusable on mobile, even in the foreground, due to the horrible timing and/or excessive audio buffer sizes (not sure which).
Nice Work :)
Nice Work....
PLC Programming is years behind when it comes to software engineering, developing, testing and speed of deployment.

A system that would allow for Change related Issue-tracking on the CAD-files of the controlled machine.
A language that would enforce component-class interfaces, thus preventing information duplication.
A proofer that validates the resulting DEAs for correctness.
Only dozens of rides here but in half a dozen cities around the US and not one asked for a tip. I've seen the polite-ish tip jar once. I don't typically carry cash but if I did I would have thought about it.
Presumably also on a time series. People used to switch from Ruby to Node.js, now they switch to ???
Indeed. That's why Apple takes on debt and does bonds to pay dividends, buy back stock and other stuff they need to pay big money for. With their cash reserve money is dirty cheap and they can actually make more money cause people will rebuy their debt like hot cakes.
Use Your Power Button to Turn on Flashlight, Open Camera, Record Audio and More
Isn't it quite the opposite though? Here, old computers get updates but new computers/cpus are killed before they get to start?
Black Hole Moon: https://what-if.xkcd.com/129/

> What would happen if the Moon were replaced with an equivalently-massed black hole? If it's possible, what would a lunar ("holar"?) eclipse look like?
Try working at a restaurant and actually getting them to pay you that. They don't.
Debt is new currency. If everyone is buying their cars with credit, soon nobody can afford to buy with cash. Around here even if you have decent wage right now, but not a stable job, you can't get credit to buy a house, while someone with a low pay but stable job can, you're effectively poorer than them.
Are HTML imports not saved by widespread http2 adoption, where the imported pages are pushed to the client upon initial page request? No reason to throw it out completely.
Not strictly a blog but InfoQ is phenomenal. https://www.infoq.com
I check it every day and also listen to their podcast
A typical usecase many times is for the local rickshaw-wallah to goto an internet cafe, hand over 50rs, and ask for his phone to be loaded with the latest bollywood songs (don't know or care about internet.. it's all about content or apps).

50$ android phones have taken by storm, and now they are free to use a 2rs token to connect and download the songs themselves.
The Hustle email newsletter raises $300K from its readers in 55 hours
Fruit in Tokyo is both ludicrously overpriced and, in general, mediocre. Japanese people prefer soft fruit, so crunchy apples are very hard to come by.

Many common ingredients in Western cooking don't exist -- I would kill for a supply of fresh jalapeños, or potatoes suitable for baking (you only find two varieties of potato in Japanese supermarkets).

I can't legally have a barbecue, either, so it's really hard to escape from fried meat here. My cholesterol numbers shot up quite badly when I moved to Japan, even though I'm not that much of a meat-eater (maybe 2-3 times per week).

A decently-sized kitchen with room for a stand mixer is basically unobtainable unless you spend serious money on an apartment, not to mention a proper oven. Japanese homes don't have ovens, so you have to buy your own. Ovens sold for the consumer market here are only slightly larger than microwaves, and while they come with more inbuilt computing power than AWS, simple things like "cook at a low temperature for three hours" are impossible.

I could go on, but suffice it to say: Japan has many wonderful things, but they don't line up with my hobbies and interests.
As a webdeveloper that likes to use C rarely for private things: I like that "elastic arrays" thing.
It isn't the CPU instructions. Someone has to write drivers for the memory controller, and usb, Bluetooth, thunderbolt, on board graphics, sound, ....

It could be done, but it is a major piece of work and noone would pay for it.

If anyone wanted to do this themselves, then i believe windows 7 would run fine.
How would you implement determining the root set? So how would you detect which local variables reference an object? The Gc needs to keep these objects alive.

AFAIK even conservative root-scanning is not possible right now. Please correct me if I am wrong: With the current bytecodes it is only possible to access the heap but not the stack. To make things worse, object references could also be in registers.
Test Dynamics, 0.2.5 released
VMWare ThinApp Enterprise 5.2.2 License Key and Crack Download
An argument for allowing yourself to be sidetracked on a side project
Nofux – Unpredictable State Container
I wonder if you can get a refund from Microsoft if you purchased windows 7/8 retail. Doesn't the system requirements usually just spell out "such and such CPU or better"? Suddenly the requirements have changed post-purchase to "such and such CPU or worse"?

Also I wonder if this backfires on Intel. Why even bother providing 16bit and 32bit cpu modes if the CPUs aren't backwards compatible.
I am an Indian who has grown up and lives in UAE most of my life. I really enjoy the feeling of being an outsider here & in India.

I feel like I am an alien on parent earth with no place to call home.
I think you were downvoted for self-promotion, but I don't care, your blog is great. Good luck with your travels!
It's not just Windows that has this issue. I recently had issues trying to add new Intel servers to an existing cluster. The new servers had a CPU that was too new to be supported by the older (CentOS 6 based) Linux OS that the cluster was running. Now, this particular problem was fixed in the kernel and pushed in the next point release by Red Hat. Unfortunately for us, it never made it to the upstream cluster OS vendor, and we weren't able to patch the supported kernel, so we were stuck for those machines.
Guru?
This was also covered by BBC, and had a few more details. http://www.bbc.co.uk/programmes/p04w86gz

Off the top of my head:

- One of the researchers had his medical license revoked

- Some patients paid up to $20,000 for the treatment.

- Very few, if any, patients had any improvement. Many had decreased eyesight after the treatment.
On the other hand, Tesla is a retailer whereas GM is effectively a wholesaler. Perhaps the dealer margins are significant?
Rough estimate for how long that would take / how much it would cost?
I've heard this is indeed often the case, emigrants embracing their home culture in a more fundamental way. Maybe the imagined state of one's culture is often that of the grandparents' time, always a bit behind of the reality.
> safety and effectiveness of this procedure is unknown, all three patients received injections in both eyes

I hope this is not too cynical, but I guess they even got a discount on making their two eyes in one run. This really sounds like a "two for the price of one" mentality.

More generally, this is one of the many examples where typical marked-oriented thinking utterly fails when non-financial risks are involved.

You need either high regulation without loopholes like those described here, or you need to pipe everything through a mandatory public health care system which would simply refuse to pay for non-evident treatments.

In most countries it is a combination of both.
> detailed technical takedowns of the failed treatment

Any a layman could make it through?
I think a better formulation is to make humanity survive climate change.
I have never worked with Unity so I wouldn't know.

That being said, I think there may be a niche for visual programming tools when developing visual stuff. I'm old enough to remember Delphi, and also I made a few games in Flash back in the day. In both cases you would arrange visual elements, and you would attach stuff like event handlers written in a "real" programming language. I think the reason that it worked was that the visual part would be describing structure, not algorithms. In the same way that HTML is pretty good for describing UI elements without pretending to be a full fledged programming language. I'm not sure this division of labor would apply to Unity as well but I would presume so since it makes a lot of sense.

As for Scratch, I see it more as a real programming language but with a visual editor that makes it easy for beginners to compose programs by dragging and dropping. I think the tradeoff is great for beginners: makes the constructs visible and avoids syntax errors. I don't think it would scale to large projects, but that was never the point.

BTW, remember Logo from my school in the 1980s. I even seem to remember that we had the real, physical turtle at some point, able to draw lines on a sheet of paper. Or maybe my memory is deceiving me.
> Do not use macros.

Sir, yes, sir. I will throw away "offsetof" and "container_of" right now, just give me a moment.

> Do not use a typedef to hide a pointer or avoid writing “struct”

Somewhat agree with the former, but completely disagree with the latter. If there's a single thing that is not right with C is its excessive verbosity in places where none is needed.

Not typedef'ing your structs forces you to use extra 7 characters per type mention for no clear benefit. To put it differently - if NOT having "struct" in front of a type name has any effect on readability/maintainability of your code, then there are deeper problems with your coding style that won't be solved by dragging "struct" around.
50 Best Etsy Apps
Tipping is an awful way to compensate people in their jobs.
Uber skimmed costs by have a non-unionised workforce and implying to their "customers" that they dont need to tip, as it's just, like, people car-sharing. natch
Also, typedef make things like arrays of function pointers much easier to read.
Not so sure. I do skim sometimes, but it always leaves me with are dirty feeling of cheating. Also one needs to go back and check whether something important was missed and this undoes most of the benefit of skimming.
The proper place or skimming would be to skim before reading just to get an overview of what's to come, or to skim while evaluating if the thing is worth reading in the first place.
Show HN: Gradement – a value investing robo-adviser using D3.js for data viz
The Evolution of JavaScript Modularity
Yes, but doesn't that ignore the gravitational acceleration? Time dilation isn't just speed, it's also acceleration. Even if you could hover very near the event horizon the time dilation would be severe.
Supporting multiple keyboard layouts in web-based VNC apps
#define IT "I think" // :)

>2
IT the swicth/cases are quicker/clearer to grasp than the one with BIGMACROS_X

>4
IT you shouldn't underestimate the existing neural paths of knowledge of stdlib for C devs. those std functions are read / parsed almost intuitively, unlike cute macros, except for their creator.

I'am ll for "cleaning" C and have a non-completely backwards dependent / improved standard, but I'd much prefer strtof than a custom macro. And those standard C functions are often accelerated to death by compilers (see: memcpy by example).
The end user won't benefit from the portability aspect, though. He/she has to load the damn app anew on every device and every session.

I'm not against portable bytecodes (though I find it pointless, and proven to have failed in the past); it's the mating to the Web that I'm concerned with, and the infinite potential for tracking and other privacy invasion.

To bring portability in a meaningful way, Apple and Google have to agree on a common API for touch, phoning, GPS, USB, power management, proximity, NFC, UI. Not going to happen.

So why bring yet another avenue for tracking and malware to browsers? To top it, lets base it on C and SIMD primitives. Lets ditch HTML and draw to a canvas all the time, accesibility, hyperlinking, etc. be damned. Because we don't like JavaScript.
Obviously you don't have to follow that script verbatim. It's just a manner of behaving like a civilized person.

Edit: that said, the quotes from Steeeve below do start to sound pretty Black Mirror
Linux seems to not care at all about what processor it runs on

That's not true, there definitely are unsupported (Intel/x64) CPUs for Linux. It even prints a lovely warning on boot to not file any bug reports because you're using an unsupported CPU.

But, what Linux does (often) do is make it possible to get a kernel patch or upgrade to add the missing support.
I interpreted his comment as 'what seems so big when you're living somewhere, is most likely just noise when you look ay it frim a larger perspective'. In times when I live away from the country I call 'home' (well I've only had 2 countries like that, it's not that I switch every few weeks), I find that I don't miss anything by not keeping up with the details of the news - on the contrary. And in fact, for reentry and reassimilation, it's more important to know what tv shows are popular in the home country than who is minister of foreign affairs.
If you mean to account for the larger variances of rarer events, that would be difficult. Perhaps some bootstrap sampling methods may help, but we need a true statistician here.
You can move forward without the blinders if you always look up while looking down. You may have missed things, you made others. You may have failed some, but without you others may have been failed worse. We form a circle, humans, there is always someone above and below you in the stack.
How to Solve It: methods of problem solving
Recognize Handwritten Digits with 95% Accuracy
For those like myself who struggle to understand these numbers, 1% of speed of light is like travelling the circumference of the Earth 75 times every second.
Using Rr to Debug Go Programs
Or just introvert. It was news to discover while reading "Quiet" that introversion is almost considered a disease in the US. Another shocking discovery was about top schools preferring extroverts to maybe smarter but introverted students.
It's just that I find the WebAss propaganda dishonest and the discussion here naive. I personally have no problem discussing the economies of publishing, and I'm also not against ads. Tracking, OTOH, needs to go away.
That said, people sometimes ate grading your code based on performance. Good algorithms often win over simplistic ones.
It all depends on the level. array of pointers to func to array of structs X , yes. struct X, no.
It does not matter how big you are on equal opportunities, work and compensation, when you can use your (cherrypicked) metrics to point your fingers at the market regarding salary discrimination, it would be irresponsible not to do so.
Put it another way, if it was legal to discriminate against <underprivileged group> companies would be all over it.

PS it is not about GitLab, I like their service (even better than GitHub) and it is great they are transparent about compensations. IMO if they were to eliminate location from their calculator they could get the cream of a very big talent pool.
The State of Browser Caching, Revisited
11 hours a day in front of a screen. This is what it's doing to your eyes
I call the internet my home and I welcome you to do the same!
Thousands of singles are finding international partners via Video Chat
International dating sites are more and more popular nowadays; but, how do users see each other in person? It cost a lot to buy plane tickets? Do they only text chat without seeing each other?

Data shows that people video chat more often than meeting in person.

The statistics from MEET <https://1drv.ms/u/s!Avs5fj3E5EuYdQRXISyFj3bEj-Y>, an online video chat app where over half of the users are from international dating sites, show that video chatting helps couples located in different countries save a lot of money by allowing them to meet, and get familiar at a very low cost.

“Yes, we can see each other and even both our parents via the video chat app to discuss about the marriage”, said one user who has planned his wedding with his wife on MEET <https://1drv.ms/u/s!Avs5fj3E5EuYdQRXISyFj3bEj-Y>.

More and more people tend to marry people from overseas and this video chat app is really helpful for those who use international marriage sites.
Data structure problems solved using sorting
I don't think your analogy holds water. I know the health risks of veggies, they're not that bad compared to missing them out completely. I make a conscious decision to risk it when I eat veggies, but I accept that veggies have unhealthy stuff when they're processed.

But denying a scientific fact is not the same. If people would've not just eaten veggies but called news about bad preservatives "fake news", then you would've had a point.
Just because you got unlucky by being responsible doesn't mean everyone does or will.

I've known people in places where the property market collapsed and its ugly. And I know people think it can't happen in London, but 'it can't happen here' is about as myopic as it gets.
Well I happen to like dresses. But I don't want all my toys taken away because girls don't like them.

Fundamentally I care about video games in their current form. They've brought me a lot of joy during some of the worst parts of my life. Of course I'm bothered if someone thinks they're broken and wants to remove some of my favourite parts.
Why don't US companies just employ a 'double Irish' on all their IP?

Edit: I mean from inception/company formation. Wouldn't that save you all the aforementioned headaches? Especially when the time comes for an exit to happen.
Agree. Depending on what one wants to measure, giving every sample equal weight can be potentially wrong.
Just use strtol or strtof

Which of these is more likely to have bugs?

int i;

if (PARSENUM(&i, s, 0, 1000))
err("Invalid input: %s", s);

or

int i;
long l; // need a temporary long to avoid overflow
char * ep;

errno = 0;
l = strtol(s, &ep, 0);
if ((ep == s) || (*ep = '\0')) // make sure we parsed a number and don't have trailing garbage
errno = EINVAL;
if ((l < 0) || (l > 1000))
errno = ERANGE;
if (errno)
err("Invalid input: %s", s);
i = l;

You build these esoteric systems that use heaps of unmaintainable, unreadable code

Not at all. The point is to have self-contained routines which Just Work in order to ensure that the rest of the code is easier to read and maintain.
Volkswagen uses quantum computing for traffic flow optimization
I can't really tell if you're joking, but I think your question illustrates a different flaw in the article.

People really write about the databases you listed, because their users have an entirely different mindset. Sure people may switch from Oracle to DB2, or from SQL Server to Oracle, but some organisations just have "standard databases" that they work with. Switch would be a multi year process, and certainly not something to be advertised, unless it's: "Now with support for SQL Server" in the marketing material.
Operation London Bridge: the secret plan for the days after the Queen’s death
If you prefer Java check out Codename One: https://www.codenameone.com/

It's an open source project that compiles Java to all OS's including iOS, Windows (UWP), Android (obviously) as well as JavaScript (with threads etc.)
7 Must-Watch TED Talks for Project Managers
Is this like Flash?
Guile 2.2
This was presented at CeBIT. But there seemed to be zero information elsewhere about this project. Are they using it for just a tiny part of the project or for the whole algorithm? Does anyone know more about this?

update: Here is the original press info (overlooked in the first read)

https://www.volkswagen-media-services.com/en/detailpage/-/de...
Yes, be careful, your jails won't run on Corral.

I've just migrated yesterday and managed to replace all my jails with Docker containers, although the road was a bit bumpy, at least when it comes to the containers UI which is buggy as hell currently.

All in all I'm delighted. The CLI is great, the UI buggy but definitely better, and no more jails but proper containers instead.

Congratulations to the team and thank you for delivering.
Hassle-free PHP web application and server management panel
Big corps don't write blog posts about their tech stack.
I agree.

If uber implements tipping, it might be exploitable by the drivers e.g you don't tip me ill give you low rating kind of thing.
There is an issue where drivers supposedly make little money, but thats up for the company to solve.

Personally I use uber quite a lot in London, and I am asking most uber drivers on how they find the job etc. The vast majority of them reply that they can work whenever they want and its flexible so they like it. On the money side of things they claim that if you work properly and don't rent a car, you could be making around £2-3k a month, which is above the minimum salary in the UK and London.
So I think uber drivers are mostly unhappy that they are under self-employment instead of fully employed by Uber etc. Although I can't see a company that would give you the flexibility to work as much as you want and when you want and having to pay for your holidays etc. Its more of an issue of the Gov fixing up some self-employment rights rather than uber itself (my opinion).
Don't fear the Junior Engineer
If I were given to cynicism I would suspect it as being an attempt to favour Intel and wrong-foot AMD. It must be the fastest a processor has been rendered obsolete in the history of hardware.
In an ideal world, yes, but for a company on a tight budget it's not that easy. When the alternative is bankruptcy you don't have much choice.
Yes I remember those, but you still have the safety problem.

Let's say how does one make memcpy() safe in Ada? The very first step of converting the pointers + length into an access type must trust the caller did the right thing.
There are further treatments such as complex lens focal point changes to achieve a similar result.
read the first tutorial and I don't think it's lisp/scheme newbie friendly
That's exactly how it should be designed in my opinion. If the driver is doing a good job, his total tips will go up. No point in haggling with individual customers.