skysight-inc/HackerNews huggingface dataset:
I chose based on my personality type and social needs. I'm an INTP so I needed a good intellectual milieu that I could interact with (which meant having good universities nearby), but I also wanted to be among people who were friendly and accepting of outsiders (non-cliquish). It was a toss-up between Boston and Chicago, and I chose Chicago.

Boston would have been a good choice except I hear it's really hard to make friends there, but once you've broken through, friendships can be deep. Many people don't break through though.

Chicago people on the other hand are much friendlier, but it doesn't go beyond the surface friendliness. One doesn't typically get invited to dinners, so one has to make a conscious effort to reach out. I did, and have managed to get connected.

For me, two things in life were most important:

- Meaningful work

- Edifying relationships

So my choice of location was calculated to maximize the probability of achieving these goals.

Factors that were not important for me were cost-of-living, personal space, suburban-level safety, nature, schools (I don't have kids). I recognize that these are important to others and contribute to achieving their goals in their lives. I think most people have similar aspirations to mine in terms of finding meaning, but my path is just slightly different.
I come from sales/marketing background but i am a very in demand person in mostly adtech space and yes I've programming/technical experience under my belt.

I also don't have any degree. When i was new i did doubt myself but then i realized how clueless people with actual degrees were, so it gave me confidence to lead them.

If you've low level expertise, how about working for a blockchain startup? And getting on stage, doing programming talks (scripted obviously)

You've expertise but no one knows about it, so it's not worth expecting anything from a market which doesn't even know you exist.

Believe it or not, to seperate yourself from the rookies you need to be well known in the industry, if you really have all that experience. Why don't you talk about it in programming communities, give a talk, setup a brand, charge speaking fees etc..
It’s downvoted for the same sort of tired ideological jingoism your post engages in.
At least, it gives you a much longer runway to migrate off the no-more-supported solution.

SaaS, if it closes shop, becomes instantly unavailable.
I look at it the other way: I've hard coded the reading and writing routines inside the tokenization logic.

Being able to do that is exactly the point why it's so much simpler to avoid a silly API such as strcspn (or, god forbid, strtok).

> non-ASCII

yeah i know... Do you prefer strcspn("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVXYZ")? Do you think it's faster?

If you're pedantic, you could lex (0x41 <= c && c <= 0x5A). That way at least you consistently read ASCII, even on non-ASCII implementations. But I don't care and it's less readable.

> I suppose you consider isalpha() to have a weird API?

Yes. I do not even understand what it does.

>> isalpha()
checks for an alphabetic character; in the standard "C" locale, it is equivalent to (isupper(c) || islower(c)). In some locales, there may be additional characters for which isalpha() is true-letters which are neither upper case nor lower case.

Well in any case I'm sure that's not what I wanted... By the way locale is super hard to use as well. Locale is a process global property. I'm not aware of any way to pass explicit locales to library functions.
I use strtok_r from time to time, it does the job if you have a mutable input. Of course having to write zeroes is a bit cumbersome but it's one of the drawbacks of C-style strings.

The plain truth is that string handling in C is a huge pain in the ass no matter how you look at it. Splitting, concatenating, regex-ing... All of that is a huge pain in C. If you need to write a high-performance parser then it might be worth it but if you're just parsing a fancy command line format and performances don't matter it's just incredibly frustrating and error prone.

Rust fares better here because its str type is not NUL-terminated but actually keeps track of the length separately which makes it significantly more flexible and versatile. Of course you could do that in C but you'll be incompatible with any code dealing with native C-strings.

And of course you make one mistake and you have a buffer overflow vulnerability...

So yeah, if you program in C please use strtok_r if applicable, otherwise considering offloading the parsing to an other part of your application written in a language better suited for that and hand over binary data to the C library. If everything else fails then consider handwriting your parser and may god be with you. Oh and if your grammar is complex enough to warrant it, there's always lex/yacc.
Some advice would be to start your day earlier so you can end it earlier. I'm usually done with work by 3pm and them I'm spending time with the kids, doing stuff outdoors and being disconnected. Our team is spread across the country so I typically work an east coast schedule.

Another big thing for me is having a separate place for an office, so I can leave the house and go somewhere that is dedicated to work. For that, I have a 400sq ft office about 20 yards from the main house.

We also have a separate space for homeschooling, that's a big help for my Wife and the kids.

If you want advice on remote living and property type stuff, shoot me an email (in my profile).
Modalz Modalz Modalz
Well, the Java World is not free from it's problems when it comes to dependencies: https://blog.autsoft.hu/a-confusing-dependency/

Personally I do not understand why Java libraries which are binary blobs are not targeted more often.
The vocabulary resembles a big pile of stolen goods.
What's German for funny? (2012)
I put up Pakistan as an example, but another example that just came upon my mind is Kuwait. I have no idea how strong is its mandated textual interpretation is in real life.
It took me a distressingly long time to figure out what you meant by this.
Seattle. I was previously in the Midwest (with California, and the South before that), and needed a change of scenery. At the time I'd developed a bit of a competitive pinball addiction, and Seattle has an incredibly active and friendly scene. I meant to stay a year or two, but it's now been three.
My view on this is that wealth is something real that actually impacts people's lives. At the same time money is not, it's the story told around wealth so that we can all agree on how one "wealth" compares to another. The goal is to not let this story go wild (e.g. into super-inflation) so that people don't lose trust in money.

Keeping those two in check is the main goal of any central bank, ever since the gold standard was generally abandoned and money became entirely abstract. In my opinion no one really knows how to do it (although it's been okay-ish so far), the FED for example often uses national unemployment rate to decide how much dollars should be thrown at the system.
> I like Spolsky's articles but I hate the dogmatic culture a writer like him creates.

But without creating that dogmatic culture, would his writing have become popular enough to be disseminated to a wide audience?

Perhaps we should think of it as a corollary to the Gell-Mann amnesia effect.[1]

1: https://en.wikipedia.org/wiki/Gell-Mann_amnesia_effect
was wondering the same thing
I think I'm from that town you're talking about. Is it the one named after a goat, near a larger one named after a wasp?
Grab your shit now, and also once every following month until you have fully migrated off.

https://takeout.google.com
A company with a known working profit-making model is best, big or small.

GitHub used to be like that. They started very humbly, rejected most investments, grew slowly, but eventually owned most of the market.
If you use memcpy and your destination buffer is too small you don’t crash hard with any certainty, your program might even appear to work.

Moreover, most of the time I’m either certain the output buffer is large enough (maybe because I just allocated it) or I really do want the output buffer to have a truncated string. Strncpy’s two dumb behaviors that I almost never want is to pad the destination buffer with zeros if the source string is smaller and to leave the destination I terminated if the source is longer.
No idea - look it up? Why's it such a problem? Is it harder than looking up how to type a copyright sign when you need one of those?
I actually laughed out loud too.
> Starting from an array A that has n distinct integers

I don't know in what ways they are differents, but these programs were not designed to work with duplicates in the input. This probably explains the results.
The offending WebSQL statements are as follows:

DROP TABLE IF EXISTS ft;

CREATE VIRTUAL TABLE ft USING fts3;

INSERT INTO ft VALUES('aback');

INSERT INTO ft VALUES('abaft');

INSERT INTO ft VALUES('abandon');

SELECT quote(root) from ft_segdir;

UPDATE ft_segdir SET root = X'0005616261636B03010200FFFFFFFF070266740302020003046E646F6E03030200';

SELECT * FROM ft WHERE ft MATCH 'abandon';

Source: https://github.com/zhuowei/worthdoingbadly.com/blob/master/_...
> Just because something got done eventually at a great cost doesn't make it successful

Are you arguing that success is in the eye of the stakeholder? Sounded to me like it was a success.
Ask HN: Have you made a software “hub” to manage your personal life?
A few months ago, squaresarebetter asked "What are the things that you have automated in your personal life?" [1]

I have a related, but different question. I'm currently juggling a lot of systems like Trello, a static site generator, email, Google Drive, online banks and Facebook to get things done, write, keep track of my relationships and so on. But I never feel quite at home, and whenever I want to do something custom so I'm considering making my own "personal API" in order to organize my life.

Have you done something like this? If so, I'd love to hear about it.

1: https://news.ycombinator.com/item?id=17385291
A few reasons we didn't use ZK at the time (some of these are out of date). Zookeeper had:

- No TLS security story

- An abandoned RPC/serialization system that was hard to use in other languages

- A consensus algorithm that differed from systems described in literature

- A large RAM footprint

Awhile ago some etcd engineers made an experiment in fact to try and run ZK client protocol on etcd with a proxy:

https://github.com/etcd-io/zetcd
https://coreos.com/blog/introducing-zetcd

Today, etcd performs much better than ZK and I believe it is much more widely deployed with a wider set of engaged users.

https://coreos.com/blog/performance-of-etcd.html
SEEKING WORK - USA, REMOTE ONLY

iOS development:

* 4+ years experience with Swift

* Adept with advanced libraries like Core ML, CoreMotion, PDFKit, Face ID LocalAuthentication, etc.

Python development:

* 6+ years experience with Python

* Django/Flask and various data science libraries.

Rate: 95/hr (Discount available on retainer)

Email: ranked at gmail dot com
Distinguishing every tense as a distinct entity is usually a matter of methodology. It usually is more practical just to understand the logic behind. I.e. I consider the way I was taught English at school (past indefinite is this, future perfect continuous is that etc) rather inefficient, I could explain the whole system to my past self in a much more intuitive way a lot faster. You also don't need such a huge number of tenses for everyday life. And of course I don't claim I've learnt all the irregular verbs, just a humble portion (and I already can't name a single of them now as years have passed - practice is vital, zero practice = you forget 99.9% of what you've learnt).
Given how volatile Bitcoin is, I'd suggest you give TransferWise a try. There are few companies I am more enthusiastic about. They saved me a ton of fees in the 4+ years I've been a customer and have never caused me any hassle.
Oh my... do not chose cities in the middle of nowhere in China. Only megacities there "work" for a Western person
Python has some unusual performance behaviors. IIRC you can also speed up the performance of your program a lot by assigning intermediate variables instead of referencing properties, for example:

[A.b[i] for i in range(100)]

is a lot slower than:

B = A.b

[B[i] for i in range (100)]
In general you can't rely on users to give you a reliable answer to any question like that.

I suppose the way to deal with it is a feature switch, turn it off and if nobody notices after a year then remove the code. That or add some instrumentation to identify what is being really being used and what isn't.
It certainly did not improve sales.

I bet no one that downloaded it has spent a dime to Sun.
Um yea, not the way it works. First external services, such as those provided by Krebs would find your data on the darknet. Second, offer employees a cut from the fines.
I've visited nearby Guimaraes. Not much English is spoken up there. Did you have to learn Portuguese?
What were the dreams about ? I don't know what it is to dream about a political figure
Greetings from Berlin. My wife said she wanted to live in Europe, and so I took the first interesting job (which happened to be in Berlin.) Fell in love, that was seven years ago...
The Ideal Dog Breed for Each MBTI Type – Astroligion.com
Got it. The input is not valid for the problem.
I don't know why, but they are deeply distracting to me.
I tried that derivation along with finding the length of the sinus curve.
It turns out Hans Asperger collaborated with the Nazis, including referring children for euthanasia.

https://www.nature.com/articles/d41586-018-05112-1
I apologise for my misunderstanding.

What I remember is, during DockerCon in June 2016, I went into the code to see how it worked, and I found a top-level file setting up data structures and handlers that seemed to be 90% the same as the equivalent file in etcd. And the underlying implementation is reused via vendoring.

Maybe this rings a bell with you and you can tell me what I saw, because I can't find it now.

Maybe I dreamed the whole thing.

I did, and still do, think integrating etcd into Swarm Mode was a masterstroke; we had spent the previous two years working to avoid "first you must install etcd" in a different way that nobody got. Afterwards we created kubeadm to ape the 'init' and 'join' functionality.
Wonder of the new Aerial Photography – 250m higher
> I'm also unsure how you can notify your users

There's properties you can set in the package.json to indicate that a package is deprecated and/or has moved.
> planning to move our embassy from Tel Aviv to Jerusalem after officially recognising the latter as the capital of Israel

Note that your source says that they are not moving the embassy until after a peace deal is reached.
Show HN: Software Stickers Co – Simple Software Funding
Not quite... https://www.history.com/this-day-in-history/fdr-takes-united...
The National Park Service Now Owns the Home Where Martin Luther King Jr Was Born
Fellow INTP here, similar requirements for me choosing where to live with friendly people accepting of outsiders. However, we ended up in the opposite environment than you, our nearest community is less than 200 people. If we don't wave to every passing vehicle, people might think something is wrong... and in Chicago, if you did the same, then people might think something is wrong! :)

After moving here, we quickly made friends and I've encountered quite a few other like minded tech workers in the area (one works for a direct competitor). My job and co-workers (many 10yr+ relationships at this point) fulfill my intellectual needs and the main engineering office happens to be located in Boston!
Because there's no option key on Windows and existing modifier keys do not produce anything similar. For copyright I'm using &copy; and if I would need it outside of HTML, probably I'd google it and copy-paste from browser. You are thinking that it's easy to type those weird character for everyone, it's not easy. Probably easiest way is to use some European layout and then spending rest of year trying to remember foreign mappings which don't even correspond to printed letters on keyboard.
"(.|\.)*"
Is the GRPC API less pleasant because you have to handle those details? Or could it be evolved to be more user friendly?
All human communication is subject to interpretation because it's an imperfect model of patterns that exist only in our own mental model of reality intended to induce similar patterns in inevitably different minds.

Everything is to a degree subjective and this conversation itself is subject to interpretation.

The more complex the affair the fewer that will agree perfectly with any interpretation.

Hell even the beat cop gets to interpret the law when he is electing to enforce it by arresting the perpetrator.

You are asking for imaginary things.
What %/amount do iglu charge you? I find it quite weird that a company saying “use our invoice and billing system, and we’ll pay you a salary” doesn’t mention how much they’re going to charge for that.
Presumably they are, since he talks about the possibility of developer machines being attacked.
Genuine question and not a dismissal - what makes this a form of autism, of all things? Plenty of people who are generally considered NT are indeed anxious, sometimes to an extreme and pathological extent. And it's only natural for anxiety to center on demands of some sort that may have been placed on the individual.
Yes, there is often a lot of domain knowledge embedded in that legacy code. The sort of information that is difficult to tease out of the business or understand by looking at the code.
Rivet: Tcl module for Apache
Perhaps the two could co-exist by making the social programs voluntary. Those that commit to it can, and those that want no part of it can stay out.
a list of allowed two-letter words on a piece of paper, with the game, and updated from time to time by agreements, solves this well ! local example - 'IQ' is not allowed, but 'Qi' is on the list..
> Simply block out a few minutes each day to be alone and do nothing at all. By doing so, you’ll tap into your inner genius and uncover the most effective ways to take action.

Sounds like a productivity hack to me.
Quoting parent: "plus internationalisation, plus thorough automated tests and deployment. They seemed to be really happy with it."

Sounds like success.

There is a reason why stakeholder would like the change despite large cost - if the old system was unstable and source of stress and fires for the stakeholders, they will go for more expensive option.

Kind of like after you had a car that needed to be fixed every few weeks, you will go for more expensive higher quality one next time.
The question based on your analysis is, do you live to work or do you work to live?
William Blum, US Policy Critic Derided by NYT, Dies at 85
Signal app to Australia: Good luck with that crypto ban
That's why a good strategy is to never put yourself in the position to communicate a timeline. If you are knowledgeable enough about a project so you can make an informed decision that a rewrite is required, the strangler pattern can allow you to complete such a project without ever formally requesting a "rewrite".
Do you dismiss the General Theory of Relativity because [1915]?

edit: my apologies, I read this as a dismissal but it looks to be an HNism - carry on good sir!
See also Rich Hickey's, 'Hammock Driven Development' - https://www.youtube.com/watch?v=f84n5oFoZBc
> There is a trick to rewrites: start by writing a full suite of end to end tests. Once done you'll discover that you can easily stabilize your old code and make changes with this security harness.

I would call that refactoring, whereas a rewrite means starting from scratch. I agree that refactoring is the superior choice if at all possible.
We have some of that problem too. The use of housing as a financial instrument is a plague from the pit of hell.
> to be honest there are no practical uses for it

I find this hard to believe as a conclusion anyone could come to. A universal shared language for international communication? People can keep their mother tongue yet no matter how provincial it may be, can still communicate effectively with the rest of the world?
> The reality is that, given the location, those were far more likely to have been tourists

That's my hometown and I doubt they're far more likely to be tourists. I think it's more likely they're University students (from QUT).
Great, so how do you use that for a trading strategy?
Regarding Xi's motivations with respect to his "strongman" actions, this document about Xi before he became the Gen Sec might shed some light:

https://wikileaks.org/plusd/cables/09BEIJING3128_a.html
Work on the specification stopped in 2010 but it's not been removed from the browsers that supported it.
I think Russians do get to skirt a few of the problems... if they believe their systems are only used by native Russians with standard Russian names.

Of course the whole point of the article you mentioned is that making such assumptions leads to odd behavior. I (an American) lived in Russia for a while. One time I was having a couch delivered to my apartment and had to give the store my full name. I was delighted to see my middle name show up on the receipt in the отчество (patronymic) field with the Russian patronymic suffix ович attached. I still got the couch no problem, but I got a laugh out of their attempt to shoehorn my (clearly not Russian) names into their naming paradigm.
The person storing the data is the one responsible for securing the data. Everyone keeps trying to push data security up the stack, but the company/ individual collecting it is the responsible party.
> Java libraries which are binary blobs

Java libraries are JAR -> Java Archives. You can unzip them and there is JVM bytecode inside which can be decompiled.
Not really binary blobs.
That's an excellent question. It all depends on the strategy. How would you address that scenario?
"Evaluation:\tWrong!\x07\x07\x07\r\n"

You want to convert the string literal to an internal buffer, interpreting the escape sequences. In the same way, you want to parse integers. You cannot really do that with a regular expression. RE is for matching, not for transforming.
This Week in Programming: Like Winning the Lottery
Maybe a legit thought on the language and money metaphor, but your second one is basically a non-sequitur.
It would be interesting to take a look. I can't imagine you could write a legal text that leaves no room for interpretation or omission and covers everything that may come up in real life.
A universal shared language for international communication?

In theory, yes - but not in practice.

Which is precisely what the above commenter was saying.
My wife is Thai, and missed her family/where she grew up, so we moved to Thailand 6 years ago.

Now we have a son, and we’re planning to move back to Australia in the next couple of years. Thailand is an interesting place to live but I can’t imagine trying to raise a child through to the end of school (with western concepts/mindset) here.
GNU grep uses the regex library in Gnulib. It can also use the Perl-compatible pcre library.

I am finding it hard to believe that you think it's "just not in C's spirit to use canned libraries."
Our team is doing a slow replacement of code written in Java to node. At almost every turn we find that the replaced code is 50 to 80 percent smaller and much easier to read. We're doing it slow because we are phasing in new features at the same time to make sure stakeholders get value while we do it. It's been tremendously successful and cost effective keeping the old and the new running simultaneously.