skysight-inc/HackerNews huggingface dataset:
Ask HN: Where to learn good design practices for Telegram Bots?
I want to use a telegram bot as the user interface for a logging/reporting system I operate. Interactions are pretty structured, so there is no need for fancy NLP machine learning stuff. I would like to write this 'right' the first time, or at least lay a decent foundation. But I've only built some simple bots as experiments. I am struggling to find any decent tutorial or example codebase that demonstrates good practices for a robust, small-scale (<100 users) bot system. There just seem to be endless 'Hello, World'-level summaries online that are zero help. Any guidance on writing a decent quality telegram conversation bot?
Thanks for the feedback. I had intended the styling for emphasis, but I can imagine how it might not communicate well with some people.

My refutations are based on clearly worded, non-ambiguous official documents characterizing court ordered blacklists as part of China's social credit system.

Here's the Chinese Supreme People's Court's website. http://shixin.court.gov.cn/index.html The statement front and center explains that the blacklists are promulgated "to promote the building of a social credit system."

For a more comprehensive look at what China's social credit system is and what its components are, I recommend this site: https://www.chinalawtranslate.com/en/social-credit-documents...
Yes, _but_... why did you create this educational language?

[I have experience defining a new language syntax and with programming education]

Why do you think it is better to use some new language than to teach using something like coffeescript / scala / groovy? (which with a proper API can be very similar to your DSL)

using a real language you get:
1) tooling
2) ecosystem and community
3) you teach something real that can be used directly elsewhere

(I'm just wondering, it's a very nice project in any case)
In the current circumstance, one argument is that the Fed overreacted in raising short-term rates, making those rates artificially high. I suppose there is some support for this without looking too deeply into it as the Fed now is unwinding QE. Unwinding QE still is "tightening" monetary policy. My guess is that the Fed believes that by lowering its portfolio's duration is a more effective way to raise longer-term yields to prevent the yield curve from becoming more inverted. I'm not a monetary expert, but I suppose you could say this time is different due to QE/QT, or you could stick with how the market typically reacts after the yield curve inverts.
One can invest it again in a 6 month bond with the yield curve inverted further. The decrease in rates would happen over a longer term than 6 months. And also if the rates have decreased the prices would have increased for the bond that is held.
"The dystopic social credit system that people are afraid of" doesn't exist yet.
Constant propagation is pretty cheap though and is a common JIT compiler technique.
McDonald's halts lobbying against minimum wage hikes
> The hassle of dealing with traffic has always prevented me from cycling

Reminds me of:

> Cars are the perfect late capitalist consumer product: an expensive, often de facto mandatory, solution to a problem that the product itself has largely caused.

https://twitter.com/mtsw/status/1109082492147884034
Cocky vs. Confident: It’s a Fine Line
Those aren't headers, they're pull quotes. Badly formatted to look just like a header. Also, I hate pull quotes for the same reason you do. I can't not read them, and half the time they're something I already read, half the time they're something I'm about to read anyway. I just don't see the point.
> Humans can't predict what to make in the minutes before a customer pulls up to the speaker, but an ML tied into a number of systems and inputs might be able to do a better job.

Mcdonalds has a mobile app, where you can order and your food will be ready before you arrive. Wouldn't it have been better to push customers towards this channel, where they can order what they want instead of ML guessing, and saving a couple hundred million dollars along the way?

As others have mentioned, Dominoes doesn't use ML/AI, but you can order a pizza crazy fast through the app and know when it's done (and that seems to be enough).
Ups just beat Amazon to make America's first revenue-generating drone delivery
> If the request doesn't have the required cookie to access the full article, don't respond with the full page

The way outline.com works is by loading the article unsuspiciously once from their server, then serving it any number of times from their infrastructure. How would this stop that from happening?
A computer does more than store values: it also performs computation. And “they’re rich enough to simulate computers” refers to the celebrated (and surely surprising!) theorem of Julia Robinson, Martin Davis, Hilary Putnam, and Yuri Matiyasevich, showing that (to state the result in a couple of ways):

* given a computer program that prints integers, there is a Diophantine equation whose integer solutions are precisely the set of integers printed by that program,

* given any computer program, one can represent it by a Diophantine problem: one can write down a polynomial equation such that it has integer solutions if and only if the program halts.

For example, because we can write down a computer program to print the prime numbers, there exists a certain (explicitly known) polynomial whose integer values are precisely the prime numbers. And as we can write down a program which halts only if (say) the Riemann hypothesis is true, we can write down a Diophantine equation which has integer solutions only if the Riemann hypothesis is true.

(What you're saying about being able to represent every value a computer can represent would be true for say linear or quadratic equations too, but those are not rich enough to simulate all of computation.)

Essentially, you can build a computer out of diophantine equations.

You can read more at https://en.wikipedia.org/w/index.php?title=Hilbert%27s_tenth... and good expositions by Poonen at http://www-math.mit.edu/~poonen/papers/sample_beamer.pdf (talk slides) or http://www.ams.org/notices/200803/tx080300344p.pdf (article).
We called Nasa to talk about spacesuits and a fascinating conversation followed
After google acquired HTC's mobile department, the salary in google Taiwan is localized too.
One day, the world-wide capitalist finally realized: "Wow, we can hire good engineer with pennies...in Taiwan."
[on growth] andreessen: building a company is like *baking a cake*
yeah cost of creating new business is going up, taxes and red tape around existing business are going up, taxes to the middle class are skyrocketing, welfare is dropping and everyone's wondering "why is Europe having a youth unemployment problem"?
I think it boils down to 'most founders' not continuing to walk around and talk to people. In my experience the non-empathetic leaders were the ones that were rarely if ever seen interacting with the general staff, either through casual conversation or meeting with groups of people. Point being, if someone is in a position where they are 'steering' groups of people or changing organizational structures then they should be interacting with those people quite a bit beforehand.
Does anyone actually know who is running outline.com? Are they definitely infringing on copyrights or is that just a popular assumption?

I've been wondering for awhile, given how successful it is at navigating paywalls, if it might actually be run by the newspapers themselves as a way of attracting potential customers. Giving them content to keep them interested while guilting them into paying.
Yeah, I was just going to say -- look at places like Greece. The home ownership rate is about ~75%. It's pretty common for people to own multiple homes, too.

The average Greek person is not wealthy, but the value of these homes is not insignificant either. Mostly, Greek people live like they're poor, even though -- in theory -- their real estate holdings are worth a small fortune.

I met a Greek lady with 4 houses, one of which was on a super desirable island now -- worth well over $2.5M. She can only afford to visit the island once a year for a week, but she refuses to sell the house. Not because she's speculating on the value continuing to increase. Just purely for sentiment.

People are strangely attached to homes. And also (most) people see homes as good investments. Recent history is really working as confirmation biases for that. But long-term, objectively, housing has been an okay investment.

I just can't see all that collapsing because of a little downward pressure. Especially when it DEFINITELY hasn't happened in most aging countries.

One could argue that it has happened in Japan. But Japan's real estate boom in the 90s was truly unbelievable.

So it's really hard to say if house prices have gone down in real terms -- or if they were just so ridiculously insane in the 90s that it had a long-lasting anchor effect on prices ever since.
10x Programmers: Myth or Reality?
Singapore is a good example. Every household has two fibre pairs supplied by a single (I believe, government owned) company. ISP's can then sell service over these cables.
Sometimes I think bookmarking in pointless. I have way too many ~10k and to find the right one I go back to googling. Now If I had a way to capture my entire browsing history it would be interesting I guess.
Ask HN: How to have walk breaks on a tall building / sky scraper
Hello fellows, I recently moved to work in a tall building. On the previous building I was able with 3 stores to go downstairs and have a quick walk. but now the effort of leaving the tall building itself is like 5 minutes, so I stopped having mini walk breaks. Walking around inside the floor in the building is not an option, while I can walk I don't get the mental effect of a few minutes outside breathing real air which refreshes me. This is really irritating me, I got used to have fresh air for a few minutes every 30 minutes, this made my productivity and general health mood feeling higher as I work with pomodoro technique.
Nintendo’s cardboard Labo box teaches you the joy of cleaning up
Think Exam – A secure online examination portal to conduct online exams
Actually there are multiple suits worldwide against Qualcomm exactly because this business model is in question. Plaintiffs are Apple, chipmakers, regulations agency, and many concurrents if not plaintifs supported case against Qualcomm. Apple was countersued in part as a defense mechanism.

In the long run today decision have probably more chances than not to be reverted.

Even if he should not be considered indépendant, I always take a tour to Florian Mueller blog to have a broader context when a new like that pop out http://www.fosspatents.com

Ps: and be sure to actually read the article his titles are often very misleading/ironic/cryptic.
Just download it ‘manually’ https://anaconda.org/shaktidb/shakti/files and tar -xf

bin/k is 185K
The Java claim is just factually false.

Java/C++/Python/Ruby/Go/Perl/Scala, even Rust, are used in Amazon for various projects. What might be true is that, consider how critical your service would be, the more it is, people will lean towards to more conservative/mature/enterprise-ish languages, not exotic ones, because that inherently means risk. And Java is the go-to option under that consideration, just because, it is Java, the least controversial choice if you had asked me.

But Amazon comparing with other companies I worked with, except extremely small startup, where tech guidance is like non-existent, the least restrictive when it comes to languages. It fits the Amazon's self perception, it is pragmatic, non opinionated, moral-agnostic. It cares about customer, because customer means potential of eventual profit. However you achieved that, is not Amazon's concern.
For those of us wishing to play along at home, what's the easy way to get a disassembly of a single function with C# (Mono or DotNetCore)? The last one would be fun to figure out.
> If not, my maker soul asks: maybe there should be one? Maybe I should build one? Would you consider using this kind of service in your applications if one exists? Why not?

To answer your "maybe there should be one?" question. What you're describing sounds like this: https://flatfile.io/. It was shared here 2 months ago.

Though to answer your original question:

> How do you handle Excel import/exports in your apps

One way we go about that is: whenever someone uploads a file, create some sort of UploadRequest record which contains the filepath in S3/Azure/GCS/etc. Then the actual parsing and validation is spun off in a worker process. That way the web process isn't locked and we can pub progress ((processed_rows/row_count).percentage) on authorized subs. If that worker process ends, update the UploadRequest record status and dump the array of good_rows/error_rows in some column for that record. Users see that the status for that UploadRequest is updated, then they can review the UploadRequest errors. If there are errors, they download the uploaded file, fix that and re-upload again. At the start you can also provide a template to "gate" your upload, if it doesn't match your template you blow up UploadRequest with the proper error. If all is good, they click "Process" or something, which actually inserts the rows or does whatever.

Again, that’s just one way.

If bizdev asks to make a feature that allows fixing those rows in your app without leaving the browser, we find that it slowly feature creeps into Google Sheets territory, which is a BIG undertaking and a separate feature on it’s own. It's a nice experience to do in-app editing but we try to see if most of our Excel uploaders would prefer to go back to Excel for editing. Sometimes we find that they’ll prefer going back to Excel because they’ll use the same excel sheet for other purposes in their process (send that Excel as an email to another department, use that and aggregate it as a separate report, etc.).

But really, the hardest part in Excel uploads isn't server resources, progress, file encoding, or timeouts, it's the validation. There are different levels of validation: from presence checks, formatting, type-checking to running a row or a cell against business logic, 3rd-party API calls or records in your database. This is where most User errors arise, because you'd have to educate them on what values to put if you're referencing something in your business logic (special abbreviated codes, special combination of codes, date formats, etc.).
Airlines.
This article is so outdated from what the current state is and has been for quite a while now.
SEO bangla tutorial (full course)
Amazon (like many other big companies) strongly discourages employees from commenting publicly on subjects related to the company.

It might seem draconian, but it makes a lot of sense. Talking about a smaller company in a forum like HN might be completely anodyne, but comments about Amazon could easily have repercussions like getting picked up by the press and spun into some crazy story, or alerting people to some strategic information that the commenter isn't even aware is sensitive. For example, posting "hey we're at Amazon and we're moving from system X to system Y" could generate surprised and angry phone calls with the CEO of the vendor of X (I have a real example in mind that happened because of a stackoverflow post), or could cause the stock price of the vendor of Y to jump, causing insider trading concerns... best to just avoid it.

So it's very natural that company policy would strongly discourage such public commentary, and most current employees follow that.
>> ‘The ability to observe without evaluating is the highest form of intelligence.’ — Jiddu Krishnamurti, Indian Philosopher

First of all, he was a mystic than being a philosopher.
The quality of observing is a by-product, a consequence.
If you directly try to achieve this by using your mind based on some moral principles or disciplines mentioned through this article you are bound to get frustrated. It is like one thought fighting with other thought but in the end, it leads to the creation of a chain of many complex thoughts entangled. But because it appeals more many people fall prey.

I see many such articles focus more on the mind and how to change thoughts. This article is nothing but an offshoot of a limited part of psychology. A real inner transformation happens when you experientially go beyond thoughts. Psychology is just a temporary cure. Vipassana can help you in a true experiential manner.

Jobs such as software engineering and others which requires constant use of thinking and sitting at one place throughout the day makes the mind stronger than other faculties of a human being. it needs to be balanced with exercise (to remove physical and to certain extent mental blocks ) and proper meditation guidance.
It is interesting how this is essentially culturally and historically dependent. In Sweden we have what you say doesn’t work in SF. Much (all?) of the fibre is owned by the the municipality and many operators offer services on top. The only redundant cabling is old telephone cabling with ADSL. The whole electric network is the like that with no duplication.
Since the lines I want to quote are too long, I'll just snip the core parts.

> ...no choice to replace because it's a chip embedded in your phone...

My comment wasn't targeted at the embedded usage scenarios only. There are professional and consumer devices (hand-vein readers, printers from certain manufacturers, high end and high-speed scanners), which advertise Linux support on their boxes and documentation, but only provide binaries and modules for some archaic Linux distributions. This situation is hurting both sides of the equation. Some of these devices are very nice, expensive devices I'd (and many would) buy, but their non-existent Linux support keeps the users away from them. Their change in attitude will not probably change the stance in the long run due to trust issues.

The problems are not only at kernel level either. Some of these devices run translation layer binaries in userspace, and these binaries are written without following the standard coding practices in Linux. As a result, an ordinary library update breaks the binary for good. Again, the manufacturer does nothing because it has no incentive to do so, and my expensive device becomes a paperweight.

> Let the driver that works just fine keep working just fine!

Coming from this perspective shall we stop all development on Linux kernel and userspace, so everything works? Why Microsoft is constantly changing driver models ever so slightly, and every manufacturer is updating the drivers about the cards and chips they've already developed and embedded on my motherboard, NIC, sound card, etc.?

> ...just because you decided to break something that was working just fine before you made your change.

While Linux kernel API is officially unstable, there's a rule in its development: if userspace breaks after a kernel patch, the problem is in the patch. Kernel changes shall not break or change userspace behavior. Hence, nothing is broken on purpose in the kernel. The evolution makes things change, and we shouldn't stop this change if we want Linux to be a cutting-edge operating system and platform.
There's been rich-text email since (at least) 1980 and by the mid- to late-1980s there were many competing efforts: CMU's AMS, BBN's Diamond/Slate, NeXT's NeXTMail, and probably several others.

I'd go so far as to argue that the parent's reaction -- "email should be plain-text" -- is exactly why the horrors of HTML are what we have today. No one adopted any of the better alternatives out there and then Netscape -- a web browser, after all -- hacked in HTML mail, and "worse is better" won the day yet again.
> Surely kids still try to make gunpowder

I'm in my mid-20s, having grown up in a jurisdiction where home fireworks have been banned for many years.

Apart from my year 9 science teacher, who let off an explosion down one end of the school oval so we could time the difference seeing the flash and hearing the bang, I can't think of anyone I know who has told me they've ever tried to make gunpowder at home. Obviously I think I probably do know a few people who have but not told me. But it's not something that really ever crossed my mind as a thing you would do.

(Of course, I'm very conformist by disposition, perhaps I just don't hang out with sufficiently exciting friends.)

All things considered I think I prefer overly strict regulation on explosives to inadequately strict...
Hacker ‘Gnosticplayers’ Returns with 4th Round of Stolen Data on Dream Market
Webmasters hate it when you do this but there’s nothing they can do to stop you
>* I'd say 1200 sq ft is good for a family of 3...*

Sigh.

And then your daughter becomes a teenager. (I'm in 1100 sq ft. But that was intentional, so we just have to deal with it now. She'll be in college next year, so there's light at the end of the tunnel.)
I think there's a far more beneficial alternative that doesn't have the effect of, like you mentioned, punishing companies for success. Instead of trying to break up the biggest players which tends to ultimately just result in them reforming, officially or not, instead create rules specifically designed to make it vastly easier for smaller players to succeed. There are a countless number of ways to do this.

The network effect "free" user generated content platforms (YouTube, Facebook, etc) are the low hanging fruit here. The reason they have sustainable monopolies is because they have exclusive use of the user generated content on their platform. This is really easy to fix. Require that companies beyond a certain scale (1 million users perhaps?) that make user generated content freely available default to free use + attribution licenses for that content, unless users specifically opt-out on a per piece basis. And furthermore mandate that companies provide a means of easily accessing said free use content, such as through an API. Also require that users be able to 'remotely publish' content to the site again, through something such as an API. And finally prohibit companies from censoring discussion of competing sites except in obvious cases of abuse such as e.g. automated spam.

There - problem solved. Now you can create an e.g. Facebook competitor where people can keep their exact same friends (and even talk to the ones still on Facebook) except gain whatever benefits the new platform has to offer. Similarly for something such as a YouTube competitor where now you'd be able to seed yourself with what would likely be the vast majority of the user generated content from YouTube. You might also want to add a rule that sites cannot clone content from sites smaller than they are. Again the idea is to create unique incentives for users to try new sites. You'd get access to most of the content you already have from big site + whatever unique content the smaller site offers. And, just like that, you now have created massive competition with minimal direct 'punishment' of the existing behemoths.
And thank you for this professional reply.
A quick(ish) intro from the #1 result for “autonomous cars podcasts” on Google
Well not every statically typed language is so absolutist. In C/C++ you are perfectly welcome to cast things if you know you can prove things the typechecker can't.
I found it a good practice to create a custome thread factory which translates the request identifier to be appended to the log.

Its actually really easy to filter out everything connected only to that identifier after that.

Tho it may be challenging to debug what was happening in between.
I really like Mumble, and I never use the audio channels in Discord because of the horrible quality.

With that said, I never use it. I use TeamSpeak for audio and Discord for persistent chat. My biggest problem, and the reason I think a lot of people are discounting, is purely the aesthetics of the UI - Discord just looks nicer than Mumble. The programmer-art style of user interface seems all too common among open source software, and I don't really understand why.