skysight-inc/HackerNews huggingface dataset:
A good marker for when comments are going to be useful is when something stumps you, and then you fix it and/or figure it out. Chances are, when you read the code again it will stump you again - or on re-reading you might not even realize there was an issue. So I comment the change. It's usually something simple like, "This cast avoids a special case in method X", or along those lines. The comment is the "why" where the code is the "what".
Free high volume push notification service
TAPL by Pierce is as far as I can tell the book everyone recommends, but if you have another you think is good I'm interested.
You cn doa prety hrrible job speeling amd stiil grt the piont across
A New Technique Makes GPS Accurate to an Inch
I switched from vim to spacemacs a few weeks ago and I don't regret it. The fact that you can run a shell in a buffer, have on the fly syntax checking and so on makes coding much more comfortable and you feel like you're using a full blown ide instead of just a text editor. Would recommend
My prediction is that one day some alternative Python interpreter (Stackless, or GIL-less, or which compiles ahead of time to machine code, or something like that) will go from being merely an interesting concept to a dominant runtime. Python is such an excellent language, and it only has a small handful of elements holding it back from being even better. I feel like eventually something has to give, and either there will be a radical new official Python runtime, or an alternative one that becomes the de-facto standard (Pypy, Jython, Cython, Stackless, etc).

Or maybe that's just wishful thinking. I just want it to be so.
Completely dominant in finance? Do you have a source for that claim?
I'm not interested in the health of the python3 ecosystem at all.

My only point is, was and remains, that statistics are more complicated than simply 'those statistics do not match my personal perception of things'; justify your argument with actual data.

I'd would be interested to see any alternative stats on the subject you care to link to.
But isn't that an attempt at a "descriptive" name?

The intuition for the person who discovered this lemma, clearly envisioned the underlying process as a device pumping out new strings belonging to the language.
No. Python is the third most popular language on Github, for example. Ahead of either Go or Julia.

http://githut.info/

The Python 2 vs Python 3 debacle has stalled the adoption of new features into Python for quite a while now. Nevertheless, Python has a very nice design at its core. Maybe it doesn't need that many new features.
I'm more addicted to HN than my phone.
Because it would take up memory from everyone, including non-emacs users.
OK yes well I was wrong in about every way possible.

The play is from 1913 AD: https://en.wikipedia.org/wiki/Pygmalion_(play)

But it is based on a Greek mythological character from over 2,000 years ago:

https://en.wikipedia.org/wiki/Pygmalion_(mythology)

Also Eliza is the statue.

Thanks for pointing out my errors.
Don't laugh it off. Personally, I learned to code by building Magic: the
Gathering decks and playing at tournaments at high school. I learned things
about resource management, reducing solutions, integrating disparate components
into a functional system and so on, and even a bit of probabilities along the
way. Not to mention what it did for my ability to concentrate and analyse an
adversarial situation.

If you think about it, a lot of education is really a kind of game and games
themselves are often educational, usually by accident.

Frex, I think a lot of people would recognise the value of teaching kids to play
chess in order to improve their concentration and problem-solving skills. Well,
why not more modern board games?
High school math was awful at this in the US. I went through a year of calculus and never knew what the heck it was for.
Live coding environments typically include a text editor. Sometimes as in the case of Praxis, its possible to change the behaviour of the text editor while you use it.

https://github.com/createuniverses/praxis

I wrote it for myself mainly, so a lot of the features are undocumented and hidden away. But you can have a look at fnkeys.lua, editor.lua and keymap.lua to get a general idea. These are in prods/syntax2015continued. You can bring these up in praxis and make whatever changes you like to the live system.

I like the idea of making it keyboard and buffer driven to an extreme, like the Commodore 64. For example, one simple technique I like is to "inject" code into the current buffer to place objects:

function makeCamPosSaver()
local x,y,z = getCamPos()
x = math.floor(x)
y = math.floor(y)
z = math.floor(z)
local s = "setCamPos("..x..","..y..","..z..")"
print2(s)
end

Then calling makeCamPosSaver injects a bit of code that will move the camera back where it was when you called it.

Another example: pressing F3 creates a new buffer where you are supposed to fill in a string with what you are searching for. When you run that buffer, it will switch to the old one that spawned it, and move the cursor to the next occurrence of the search string.

There are more creative ways to use this that others could come up with I'm sure.
More commonly, driving to a restaurant named X in neighborhood B rather than the restaurant X in neighborhood A, which I have done before.
I use pretty much this system when I'm working, except for the paper notes. Instead, I record everything in plain-text files, which I can search with my editor or grep if I'm trying to figure out six months later why I did what I did. For major, long-lived projects, I'll create a separate file for the project.

I find that one big advantage of writing down what I'm doing is that if someone does interrupt me, I can concentrate more on what they're saying rather than frantically trying to keep all the state of my coding in my head while hoping they'll just get the hell out of my office already. It makes me a more pleasant person to work with.
I'm curious, would C++ ever consider categories like in ObjC? I.e. class extensions that unlike inheritance don't change the type.

It kind of gets close with the unified call: if you have a call f(x,y) then either x.f(y) is matched or some f(x,y) that may be defined elsewhere. But still not the same as the ability to define a new x.g(y) for an existing class.

(Edit: I can't even start to think what implications this will have on templates. They will probably become even more impenetrable.)
It was coherent and I would not define it as snark. You don't comprehend his point yet you have the wherewithal to label it as incoherent & snarky -- that's snarky. But I digress..

Python users had a choice to stay in 2.7 land or make changes to their codebase for not much in return. Many chose to stay in 2.7 land, which you could safely say is stagnant. As a result, if you can't keep moving with Python, where will you go?

Since Python users have a choice to stick in 2.7 and get no rewards for it or jump into new languages that are evolving, they're going to jump into new languages and these same people are going to start saying things like "python is dead" because in their 2.7 eyes, it is dead.

Finally, unless I'm missing out on some serious deadpan sarcasm, he concludes "Don't worry it's not a bad thing" because look at Perl who everyone says is dead.
If Julia just want to replace Python as the glue interface, it seems to have no chance winning...What it can do, as a glue layer, that Python cannot do?
>Unlike LyX, TeXmacs actually has WYSIWYG editing. LyX only provides a rough approximation of the output.

LyX does not intent to be a WYSIWYG editor. It is a WYSIWYM editor. It is the same as some people prefer Microsoft Word and others prefer Markdown.
> Why can't we just provide a simple real life example first and then go on explaining the details?

That's a very good approach, which I try to follow in all my writings. Basically, I imagine a reader that is generally uninterested in the material, so the first thing to do is to "pitch" the mathematical concept using a simple example, or just say why the concept is useful. In the remainder of the lesson, I assume the reader might lose interest and stop reading at any point, so this is why I put the most valuable content first (definitions and formulas), followed by explanations, and finally a general discussion about how the material relates to other concepts.
Behind Winston's back the voice from the telescreen was still babbling away about pig-iron and the overfulfilment of the Ninth Three-Year Plan. The telescreen received and transmitted simultaneously. Any sound that Winston made, above the level of a very low whisper, would be picked up by it, moreover, so long as he remained within the field of vision which the metal plaque commanded, he could be seen as well as heard. There was of course no way of knowing whether you were being watched at any given moment. How often, or on what system, the Thought Police plugged in on any individual wire was guesswork. It was even conceivable that they watched everybody all the time. But at any rate they could plug in your wire whenever they wanted to. You had to live -- did live, from habit that became instinct -- in the assumption that every sound you made was overheard, and, except in darkness, every movement scrutinized.
Suddenly, the Solar Boom Is Starting to Look Like a Bubble
The first line of my ~/.emacs is (start-server). /usr/bin/emacs is launched once and runs forever. I spend nearly all my time in emacs, so there is nothing to maintain/monitor. If emacs dies, it is rather obvious.
Working alone is extra exhausting. Why don't you just find a new job, where you actually have coworkers, instead of quitting tech?
Thanks I checked out the video and googled a bit, it seems it's a nice piece of software
Medieval City Generator
I couldn't see it in the post, but I'm interested in how much this specific event, and future events, allow us to tighten the bounds on our models.

It's mentioned a few times that the size of the black holes/other model parameters were "within expectations" and so were a good fit.

What are some of the specific quantities that these measurements will allow us to refine? Previous astronomical measurements have allowed us to put better and better estimates on things like the size of the sun, or the gravitational constant - do we have any idea what estimates this technology will allow us to improve?
Makes sense to me. I love both emacs and vim, but I agree there are too many yaks to be shaved to get them in a usable state.
How Contract Analytics Can Provide Valuable Insights from Contracts
Oh. Well that's a Microsoft problem, really. Most free software has been using the correct abbreviation for base 2 (KiB not KB) for some time now. Further, the annoying habit of using base 10 for line speeds and disk space is finally dying. For example, if Deluge tells me that I'm downloading a 4 GiB file at 4 MiB/s, I know it will finish in 1024 seconds and take up 4 GiB either on disk or in memory.
TeXmacs is great--you can precisely and effortlessly write equations (and tables) that would be a huge pain to generate in Lyx, Word, and especially LaTeX. Jupyter-style embedding of live Python/Octave/Matlab (and more?) consoles into the document is pretty awesome, too.

That said, I never use it for a document I'm going to send to collaborators unless they are really onboard with it first.

1. Emacs keybindings/window layout. If you aren't used to thinking in buffers and don't know which is the meta key, this can be very confusing.

2. TeXmacs uses TeX, not LaTeX, in the backend, though there are export/import commands. Makes it necessary to do some wrangling to get documents to match prescribed formats.
I find one place where comments are absolutely critical is in external facing APIs. Summary of the purpose of the API, purpose of each method, valid arguments and possible return values. Think how often you need to read the comments for whatever libraries and APIs you use in your work.
As a layperson, why would I use this rather than just open MS Word? Is there any benefit for me, considering I'm not writing Math?
Education in America is on the cusp of a dramatic change
They're too busy getting paid writing Perl.
Yeah, teaching the basics of an abstract concept without first explaining how it fits into the bigger picture is IMO not the best way to motivate some people. I'm also a person who wants to understand why it's important instead of just trusting someone that it'll be useful "later".

It'd be cool if, once you start your major, there was basically an overview class explaining why each of your courses is important and what concepts (at a high level) you should be grokking with each course and semester; basically some context to frame your learnings.
Comments are incredibly useful for that bit of code that you spent hours trying to make it work and you couldn't figure out a way to name things well or to improve it. That's where a comment is priceless.
Keyword Planner tool tells you what people search for.
Yeah, this is basically a borrowck "bug" which will probably be fixed post-MIR.

Note that there are cases where such code is invalid even with the temporary, and they can be related to Demeter. Ish. Also to API contracts; the guarantee should be embedded in the signature (so changing the internals shouldn't cause its usage to stop compiling), which is unweildy to do.
Go work for Facebook.
That sounds like a local caching issue — an `apt-get update` first usually fixes that for me.

Or, you have a third-party APT repository specified in `/etc/apt/sources.list{,.d/*}` that you didn't install the keys for.

Or the NSA.
You haven't tried Scheme.
In my original reply, I explained why the PyPI statistics are misleading. I then explained to you that there is no easy alternative. The Python interpreter doesn't embed Google Analytics.

What you're left with is polling, and I gave you insight (backed with my own experience which, yes, is actual data) into what you might find if you went that route. I have no actual numbers on such polling because my samples are too small to be useful. All samples are too small to be useful at this point.

The reason I brought up the health of the ecosystem is because you seem to think I'm biased, or lying, or maybe I'm just a bad person and like one version more than the other. I was just trying to remind you that it's a language version, not a presidential candidate.
I watched the first three episodes with a friend and absolutely hated it, but am considering giving it another shot. What did you like about it?
Just googled it, it's the release date of Python 2.0.
Balance between shared and personal space. I would never live somewhere where I had no other option than a shared kitchen, community, coop, whatever.
Google Boss Claims He Does Not Know His Salary
Oh man, I remember I wanted to get a P910. Interesting phone line, that was.
Then spell out all of them, and have someone else tell you when it's become too tedious.
Ask HN: OO book for old Python hacker?
Been using Python since v1.5, but always as a "top down" scripting language. Interested in being able to work with some libraries and would benefit from a good reference in object oriented development in Python (3).

Considering Fluent Python [1], but wondering if anyone can offer recommendations based on similar situations?

[1] http://shop.oreilly.com/product/0636920032519.do
Not only is it a search engine, but it is a grant application that has had WMF staff leaving in droves, and has greatly upset many, many others - who will quite likely also leave.

It's very, very sad. And it's also a shameful moment for the WMF.

edit: and don't just think it's me saying it. The WMF has had a mass exodus of staff in the last week or so. If you speak to any WMF non-executive staff members directly, you'll quickly find out that morale is at an all time low, and confidence in the WMF Board is sitting at something like 12%.
To be fair, Python 2.x is installed everywhere and python 3.x wasn't really usable in production until 3.3. And there's barriers to migration like Twisted has.

It's been a lot of years, but people are slowly and finally starting to migrate to 3.

It could be worse. I'm still waiting for perl6 because those guys got caught up in Haskell hell.
Do find-file. Now I see current directory as the default suggestion. Can C-a, C-b, Backspace, etc. within it.

Do ido-find-file. Now I see current directory as part of the prompt. Cannot C-a, C-b, Backspace, etc. within it.
Anti-smoking regulation has been extremely successful in places like Australia. Very few young adults smoke there - Especially when compared to Europe.

Regulation is extremely effective if done correctly and full-heartedly. The problem isn't regulation - It's that the government doesn't actually want to fix certain issues and so it implements half-ass "regulation" just to satisfy the public on a superficial level - This is certainly the case with the gambling industry which the government actually depends on for tax dollars and funding political campaigns.

That's the point I'm trying to make; the government should start caring about its people and implement serious regulation to protect them.
Most of the dependency weight is due to -doc packages. For example, `texlive-latex-extra-doc` is a 325MiB download.

Here's a (partial) listing of the dependencies that were automatically selected sorted by download size†:

https://www.dropbox.com/s/950vm93v1ncna6x/lyx_synaptic.png?d...

So you can avoid a lot of your disk space usage by excluding‡ the -doc packages.

†: I haven't figured out how to get Synaptic to show estimations of unpacked sizes on a per-package basis

‡: In aptitude, `- .*-doc` I think?
I like the proposal. It took me 20 years to master the 10% of C++ I understand and use. I wonder how new programmers will be able to pick up this language.
Long live Emacs! It just C-w 's all competition.
> Read the article.

I already did, and already commented that this is ridiculous nonsense.

> Frequencies already are base 10

I guess I explicitly mentioned it above, but seems that I have to repeat myself. Frequencies are base nothing. "Frequency" is just how many times something happens in a given period of time. Period of time may be anything: a minute, which doesn't contain 100 seconds, as you are surely aware; a time light in vacuum travels exactly 1 foot, which also wouldn't be a power of 10 compared to a second — anything. How many ticks your processor makes during this time is completely arbitrary as well: you can make it 1 tick more or 77.5 ticks less, it won't care. The reason why you think it's "base 10" is just that it's expressed in Hz, as Hz is an unit of SI, which uses powers of ten for everything. Which makes sense when we are talking about physics. You can "make" the frequency of your processor "base-something-else" without even physically changing anything: just use your own period of time instead of 1 second.

How many bytes do you have on your hard drive is not so much about physics, however. You could construct your own storage device with completely arbitrary number of storage cells with completely arbitrary number of states each — that's not the important part. I think you understand that it's absolutely trivial thing to do: in a sense, you can invent a storage device with such a property yourself in a few hours — or even minutes, if you are fine with making that storage device "virtual". What is the important part is that "storage capacity" of your device means absolutely nothing before it's plugged into your computer and used with existing software, which runs on processors that are base-2, using filesystems with address space that are base-2. It's not about the hardware, it's about how we treat it in our software, which is inherently base-2. Calculating sizes for that in base-3 or base-10 is not impossible, of course, but it is just alien. It adds complexity when the whole point of whining in that blogpost is to reduce the complexity. The only way to actually reduce it here is to acknowledge that the things are what they are: even if your HDD has capacity of exactly 3333 bits, your data is in some sense "base-2", even if not literally. Even if your HDD doesn't care "base-what" it is — your RAM and your processor do. So it makes more sense to not use 2 standards and just measure everything information-capacity-related in powers of 2. And if size of your file is expressed in MiB: your HDD should be too, even if it's a fractional number of MiBs on that.
Having worked in firmware, I have seen the issue with how things are partitioned between software and hardware. The hardware tends to get concrete requirements and everything else abstract or complex in dumped on the software. So you have to figure out algorithms which have not been thought through yet or deal with edge cases the hardware cannot deal with properly. These all add complexities to the software which we can't quantify early on. I believe if we specced out the software design to a level we are confident with the algorithms and data structures involved, you could get as predictable a schedule as hardware design.
I firmly believe that the messy transition from WP7.5 to 8, Microsoft focusing on the internals of the OS versus much-requested user-facing features is what doomed the OS.

I recognize that the transition was necessary, but between the lackluster functionality (notification center, for example, was the #1 requested feature for years), lack of updates (8.0 to 8.1 took 20 months), and, of course, lack of developer support, I'm wondering if Windows Phone had a chance at all.

I will never stop being upset over the death of Zune HD and WP7 era Metro UI, though.
I blame Steve Jobs. He created this mess :)
Oh sweet, was looking for something like this, just didn't want to look for it yet.

Thanks a bunch.
Funny, from this page: http://catalog.herbalife.com/Catalog/en-US/Core-Products/Cor...

I click on "BBB Accredited Business" link which leads to a BBB page that states: "THIS BUSINESS IS NOT BBB ACCREDITED"

I click on the "Direct Selling Association" Link, which brings up a 404.
It can't be said - Perl6 is completely different language and brings a lot of desireable features on the table. The problem is that it is not so easy to port Perl5 code to Perl6 as porting Python from 2 and 3.
I don't know it, yet. But I don't know whether it provide the range of libraries Python can provide me with.
I do. Seeing the moving map while I drive helps cement everything together for me. I can see if you just blindly obey the machine and pay no attention to the context that it would hurt, but nothing says you have to do it that way.

But then, I'm one of those people who generally only needs to see a route once in order to know it. When I visit people in other cities, after a few days I'm often showing them how to get to places rather than vice versa.
Reminds me of the quote "What I cannot create, I do not understand." by Feynman.
>The question to be answered is whether or not a "whistle-blower" should ethically be allowed to profit, substantially, from blowing that whistle...

I guess a big part of the answer is who loses while he profits. At this point in time I'm not sure if the losers are wholly innocent.