skysight-inc/HackerNews huggingface dataset:
We have some fairly intense functions that needs to be profiled with realistic data and io conditions. I've been doing that by hand, line by line in the shell.

I just tried wrapping this around one of these functions in the django shell (actually shell_plus, but same thing). Just imported pysnooper, created a new function using `new_f = pysnooper.snoop()(original_f)` and called new_f on the realistic data and got a nice printout that included values and times.

Very useful.
> being raised almost exclusively by one parent, and having the other confine themselves to cutting checks.

If that's how you see the environment that a stay-at-home parent produces, with a full-time employed parent functioning only as a vending machine, then how could two working parents be an improvement?
It is terrifying. For something even more terrifying, check out prion diseases in humans...Fatal Familial Insomnia, for one.

https://medium.com/@arifakhtar/dying-to-sleep-the-waking-nig...
> what does late binding by you?

Some things that come to mind:

- Abstract classes/methods, and interfaces. This is implemented using vtables in C++.

- Ability to send messages asynchronously, or to other computers, without exposing the details of such things. You just call a method in another class and let your dispatcher handle it. There was a whole industry built around this concept in the 90s: CORBA, DCOM, SOAP. And Erlang, of course, in a different way.

- Ability to change the class/object during runtime. Like you can with Javascript and Lua, calling `object.method = `. Javascript was inspired by Self (a dialect of Smalltalk), so there's that lineage. Other languages like Python and Ruby allow it too.

- Ability to use the message passing mechanism to capture messages and answer them. Similar to Ruby's "method_missing" and ES6 Proxies in Javascript. This is super useful for DSLs and a great abstraction to work with. Check this out: http://npmjs.com/package/domz

Remember that you can have some of those things without dynamic typing (Objective-C).
-> Men are better suited to X activity or job.

If two things are different, and they are a large number of functions. Chances are that they will be functions where thing A is better than thing B, and many where thing B is better than A.
AMA by the designer of this processor in India subreddit.

https://old.reddit.com/r/india/comments/bfrh0g/indias_first_...
obviously, but that's true for starting a new business too, so if you can manage the risk then this is not bad.
I hate to be blunt. But your bio says.

I’m a multi-exit, multi-failure entrepreneur. Building Spiffy, sold Automated Insights, sold ExitEvent, built Intrepid Media.

Your history for starting businesses is to sell them and to make money from them. There is nothing wrong with that but don’t pretend that you’re doing this to feed starving children in Africa.

But yes, after being the dev lead at a previous company. I negotiated at my current job not to be a team lead. I have no interest in titles or official leadership positions. I would rather mentor and advise from within a team.
Show HN: Kanjiapi.dev – A Modern JSON API for Kanji
Yes I agree.

What I think is misleading about the general use of O() by programmers is that it is an theoretical construct and other discountineous effects like cache misses (cache size) etc is not taken into consideration and further more the range of n:s for which each algorithm is fastest is often ignored.

Some dummy numbers:

T1 = 0.0000001 n^2 + n

T2 = 100000000 n

Would yield:
O1(n^2)
O2(n)

Long before n is big enough for a hypothetical server running the O(n^2) algorithm to be slower than the O(n) other effects might cap it.

The best way to find out is empirical testing.
Maybe I am a complete philistine but is that really a bad thing or just something which goes against their categorism? I get that there are some circumstances where setters would break assumptions but classes are meant to be worked with, period.
Skype for Business has essentially been depreciated at Microsoft. The modern conference call app is Teams.
It is scary, but at the same time can be managed. Some of the best information at this time comes from a gentleman named Bryan Richards. More info here:

https://www.themeateater.com/listen/meateater/ep-070-chronic...

and

https://www.themeateater.com/conservation/policy-and-legisla...
Yes you are right, except for the fact that this probe uses a silicon chip instead of a piezoeletric ceramic transducer, and that's exactly the reason why it costs 2000 dollars.
I get this. Seems like it would be a USP if a bank could offer the same level of protection? Plus the same rewards as Amex?
> I think this view disrespects history a little.

I love C, but I'm hard pressed to think of any language other than assembly which is more willing to get out your way if you so much as nudge in an undisciplined direction. C certainly does not impose much discipline on programmers, but it allows them to bring some if they walk the line.

> Okay the language still has goto, hopefully we can agree to not make a big deal out of that.

> It's obviously easy to blow all sorts of holes in C's type system

Yes, I'm willing to politely ignore evidence which refutes your point. I mean you were kind enough to make my case for me. :-)

> I'd ask you to try teaching C to a room full of compsci students who have been raised on something like Python.

Dynamic vs static typing seems orthogonal to what we're talking about here, but maybe I'd have to think about that more. Python just waits to catch your type errors until runtime. Comparing that to JavaScript in a browser which silently ignores your errors (or happily performs crazy type conversions), Python seems disciplined in comparison.
Amazon's model has been a "central place for everything". Culturally, China seems to be more open to having ten million places to get their specific things they need. Having a central online store is not a big deal for them.
This doesn't help when people mostly just want to join the standup from the tram or their desk at home.
> but the method of studying a large population by using a sample size is pretty common and time tested.

Yep, and so is abusing it and making the wrong conclusions. It's equally as likely that dictionaries require far fewer questions than strings either because their methods are more intuitive or the questions most people come up with have easily searchable existing answers.
It’s a new account created yesterday. Alan Kay did an AMA here a while back+ with the username “alankay1” and occasionally posted elsewhere. That account’s last post was 7 months ago. Given that user “Alan-1”s style and content is similar, it seems likely that he created a new account after half a year away from HN.

If you want verification, maybe you can convince him to do another AMA =) I’m still thinking about his more cryptic answers from the last one, which is well worth a read. I think that was before Dynamicland existed, but I may be off.

+ https://news.ycombinator.com/item?id=11939851
If all we encourage is for them to become mothers, then unfortunately in America some ethnic groups are judged for that choice and some aren’t. Source: Call in to any talk radio station in LA and listen
No. I’m saying that any group when they are in the majority will have a tendency to behave more violently when they are in a position of power if insulted than when they are in the minority.
Agreed, Direct Debit is a very common way to pay.
This. It's a simple yet eloquent description about human culture since the foundation of the world. Everyone who reads the Bible should read about scapegoats and mimetic theory.
Luminus provides ClojureScript support out of the box along with documentation on how to use it. It's been around for years now, and the primary goal is to provide a smooth beginner experience:

http://www.luminusweb.net/docs/clojurescript.html

You can create a new project with Clojure/Script support by adding different flags. For example, for a re-frame project:

lein new luminus myapp +re-frame

This will generate the needed boilerplate and configuration. You can now start the server by running:

lein run

The server will start a nREPL that you can connect the editor to on port `7000`, this is defined in the `my-dev-config.edn` file. The typical workflow is to connect to the REPL, and run your code as you're writing it.

Next, you start ClojureScript compiler in a separate terminal with:

lein figwheel

The front-end workflow typically involves having figwheel running while you write the code, and it will automatically push changes to the browser. You can also connect to the nREPL started by Figwheel from the editor. This port is specified in `project.clj` under `:figwheel` with the `:nrepl-port` key. The default is `7002`. Once you connect the editor you run `(cljs)` function to switch to the ClojureScript REPL. You can now evaluate any code that's running in the browser. Note that Figwheel has to be started, and the page loaded in the browser first.

The project is set up to keep all the code in the same repository, and you have three separate source paths:

* `clj` - server-side code
* `cljc` - code shared between the server and the client
* `cljs` - client-side code

Packaging the app is done by running

lein uberjar
Actually this kind of "micro apartments" are pushed by landlords rather
than dwellers.

The basic problem is that there are a lot of small patches of lands
in Tokyo that are too small to build a normal flat (recall that
a patch of land is very, very expensive in Tokyo and you cannot just
buy an adjacent land to expand it). Until recently, these small patches were left vacant since there was
really not much use.

Recently, due to lots of cheap money floating around, some speculative
developers (Spilytus, referenced in this article, is one of them) try
to utilize these lands, by building such micro housings.

So it is a relatively new thingy pushed by supply side speculators and
I honestly do not think these small housings have so much popularity
among actual dwellers as this article suggests.
May I ask what country you live in? And does your country have laws for sufficient maternity/paternity leave?
Datalog Based Rules Engine
By having Amex between me and a whole host of recurring-billing vendors, I have a kind of firewall. Amex is on my side reflexively if there's some kind of disagreement or dispute, and will reverse the charge.

But this is a double-edged sword. There is always a cost to this kind of scheme, and one way or another it is always going to be passed on to the customer. There is also an inherent risk in this kind of scheme, in that some quasi-judicial process is making decisions about who gets to keep the money in the event of a dispute, and if it goes the wrong way in one party's view then the result is either losing out on money they think belongs to them or taking more expensive action to recover it, possibly via the courts.

Ultimately I think everyone has to learn to be more responsible about these transactions. Of course it shouldn't be possible for a merchant to take money from a customer without authorisation, but equally it shouldn't be possible for a customer to arbitrarily reverse a payment several months later even if the merchant has done nothing wrong, or to cancel the payment authorisation as some sort of informal proxy for cancelling a legal contract with a merchant.

Aside from the excessive time periods for challenging payments retrospectively, I think the direct debit schemes tend to be better at this sort of thing than the card schemes. Typically, you have a specific payment authorisation (which can be cancelled from the customer's side) and you also have a requirement to give advance notice of recurring payments so there is time for the customer to act if they don't agree with them for any reason.
Where did you get PE 2123?
Which is still a better starting point than nothing.

On one hand it sucks that China is abusing its position in the global market, but on the other hand I am really not shedding any tears for greedy corporate America getting screwed for once.
This has been on my radar. I'll have to add it to my queue on Safari. Thanks for the rec!!
Surely a bank can offer fraud protection?
Business Tech IPOs Outshine Their Consumer Counterparts
I think there is a difference because python doesnt require a web browser to run. People are just running programs with no web UI or webserver etc... If you really wanted, you could pipe your debug prints to a file and load in a browser if that is what you want :p
> Streams are one of the few successful abstractions out there.

I don’t think they’re few. I think all modern software uses OOP-based abstractions heavily.

For example, for GUIs, it’s visual trees everywhere. HTML DOM is the most widely used one now, but pretty much every GUI framework have something conceptually similar, even 30 years old WinAPI is built on very OOP-like concepts, you have HWND handles but the state is completely hidden and can only be accessed by calling functions.

> Because they're leaky.

No abstraction is 100% waterproof, but some are useful enough for many practical applications, despite they leak occasionally.

These particular file I/O API is less leaky on Windows, but they still leak, and there’re many weird low-level APIs to bypass these abstractions: DeviceIoControl, defragmentation API, backup API, and many others.

> abstractions come at a huge price

I’m not convinced the price is > 0.

We can always skip any abstraction we don’t like and use the next lower-level one. We don’t often do that because developing code based on these lower-level things is often more expensive than using the abstractions, despite they leak.

That’s why people use Electron & JavaScript, Java & .NET, game engines. They all made from large count of the layers you’re talking about, and when they leak that’s indeed can be very expensive to diagnose and fix/workaround. However, dropping them and developing something from lower levels is usually way more expensive.
Tokyo is a city. There are lots of things to do. If you are never at home except to sleep why do you need more than a bed? You don't live in the apartment, you sleep there. Your waking hours are spent out in the city (work, shopping, parks, night clubs, concerts...)
> Temporary limits on fundamental freedoms during an emergency are pretty common, even in the good old USA.

Exactly. If people are rioting, for example because their football team won the Super Bowl (http://fortune.com/2018/02/05/eagles-win-super-bowl-riot-psy...), the city may impose a curfew to give everyone a chance to cool off. This just sounds like the digital equivalent to me, and while it's unfortunate, it seems like the best solution to the problem.
This is a sweet shout-out. Thanks!
In no ever existing OO language do you have to inherit from a data structure to use the data structure, I don't think?
Several years ago, that dark pattern caused me to cancel my online NY Times subscription shortly after I started it, because the discovery of that process annoyed me so much.
KaiOS – HTML5 based low end phone operating system
Is our culture so blind as to see no distinction between moral value and economic value? This doesn't make sense on an intuitive human level, which is why people will often help out their fellow man without being motivated by profit. Similarly, a stay-at-home parent is (most often) working for the good of their children at the expense of creating economic value, and we as a society need to recognize the moral value of that.
World's shortest explanation of Gödel's theorem (2009)
“In essence quarter of the Internet was saved from hacking by adding emojis"
Is there an equivalent of Common Lisp's TRACE in the Python world?

IMO it is the most value for money (i.e. time and convenience) debugging tool I've used till now. Simply write (TRACE function1 function2 ...) in the REPL and you will get a nicely formatted output of arguments passed and value(s) returned for each invocation of the given functions. Another nice feature is that a deeper an invocation is in the stack the more it is indented -- so recursive functions are fairly easy to debug too.

You can't use it for everything but its sufficient most of the time.

PySnooper looks good, but it is inconvenient in a couple of ways:

1. It prints every line of the traced function -- most of the time this is overkill and not what one needs.
2. To snoop on a function you need to modify the source file. Not a deal breaker but you still have to remember to revert this.
Hempcrete
IMO, server-side Blazor is a non-starter, basically just a proof-of-concept to get something up and running before the WASM version is usable, but definitely not something I would use in production.
I believe I just need to assign a colour palette to each sprite and background tile but it’s something I’ve not played around with just yet. I kind of like the simplicity of the original greyscale myself but GBC is a highly requested feature so I’m sure I’ll look into it!
Distributed Proofreaders – Preserving History One Page at a Time
Yes plex is slowly eroding away - but it’s still the best option IMO.
It's worth mentioning that Girard worked as an anthropologist and philosopher, but in his later work primarily as a Christian theologian. When Dr. King said "the arc of history is long, but it bends towards justice" he describes Girard's understanding of the process of developing civilization by rejecting mimetic violence.

Can demonizing and sacrificing a scapegoat somehow short-circuit our human need to use mimetic violence against each other and restore harmony? For example, can ending Kevin Spacey's career because of his history of mistreating female co-workers somehow make our culture better? Girard declares "no!" At least not for very long.

Could crucifying Jesus of Nazareth somehow short-circuit the fury of the Jewish population under the thumbs of the Romans and restore harmony? The Romans and the Jewish temple bigshots hoped it would. Still, Girard declares "no!" (I'm not equating Jesus with Spacey in any way other than pointing out they're both scapegoats.)

The point of understanding mimetic desire and mimetic violence, according to Girard, is to get past it: to understand it as part of human nature, and make it our nature to resist it.

Unfortunately, Facebook is, explicitly, founded on the idea of focusing and exploiting mimetic desire. That's why Thiel invested. That's why it's going to be very difficult for Facebook to carry out any meaningful change.
Never seen it online myself so I wouldn't know.
Totally agree.

As it is, Indian diversity is already lumped together into one nation. No one says European cuisine, European language, European culture etc when referring to something specific.

As a person from India, who lived more than a decade in the USA, I took quite some time to realize the following:

- We are not Asians even though India is in Asia. Asians are those who have the "oriental facial features".

- We are not Indians, because generally native Americans are referred to as Indians, and I realized only later that if I mention "native Americans" when someone refers to them as Indians, can be a little incorrect (politically) based on who says that.

- We are all "South Asians" when a terror attack occurs in developed countries (especially European counties).

- When there's something specifically negative pointed out about India, then it's clearly "Indians" and "India" (this point is limited to celebs and US/Eu media, not the general population that I have come across).

people if USA are used to be called Americans and not "USAians". I guess it's the same attitude towards other countries that leads to such usage of terms.
I agree with your points.

You can do great things without all that tooling if you're able to only target modern browsers (>90% of the market):

- https://www.npmjs.com/package/htm#example

- https://www.npmjs.com/package/preactz#example-app-with-unpkg
What are the concepts today that smart people are convinced are the "right" way to do a thing that later will seem dubious?
- Microservices?
- Agile development?

I feel like I am not trendy enough to know what the latest development religions are.
Not everything old is bad and not everything new is good. Secondly I think that women are better at this thing, so no, not like 1950. And thirdly an administrator isn't even a boss, let alone a dictator. It's quite a hands on, pay attention to everything, balance opposites kind of thing. I am one professionally.
Smart Supply Chains: Rethinking the Food Recall Process
Getting Started with Python QGIS Tutorial
Not everyone operates this way. It's easy to teach kids to share. In addition, you can build a proper system which disallows domination.
I worked for a company that managed fitness classes for corporations, churches, and apartment complexes that had gyms. Later on, I just worked at the local Y.
The only good thing about OO as a architecture is, that there is nearly no education required to introduce it to the most novice in the field. Its basically the default thinking approach rebranded.
It comes with all the benefits of a mental model - quick orientation, and all the negative of a mental model.
(Badly adapted to fit to machine execution, after acertain complexity level is reached - god like actorobjects - basically programmers in softwaredisguise- start to appear).
This is true especially regarding divorce. Biasing divorce renumerations overwhelmingly towards one gender has greatly weakened the shared financial incentive to keep families intact.
Do you not need bidirectional streaming, or do they support it now? There were no examples of how to do it last I checked.
I almost got burned by one of those myself. Until I checked the fine print at the end, I didn’t realize there was a separate $40 charge for paying for TurboTax out of your refund (rather than with a credit card). That can’t cost anything on their end and seems designed to target people who don’t have the money lying around.
Higher lead in topsoil boosts probability of cognitive difficulties in 5yr boys
Kind of like the not so latent bias you have against conservatives? Where is the conservative movement to keep women out of industry? What conservative of any importance says women aren't qualified to be scientists, doctors, lawyers or presidents?

Saying conservatives support sexist gender roles is like saying liberals support anti-vaxxers - wrong.
Oh, how cool is that?! Will give it try!
Also, if you want to go 'whole hog' you can use any of the functional/immutable collection libraries like vavr, functionaljava, or jimmutable.
I find it bizarre culturally that being a stay at home mom is so frowned upon in many circles. The idea that working 9-5 for some corporation is one’s highest calling seems silly. Perhaps one day we will respect mothers again.
Yes but the only known tried alternative, communism didn't work out very well.
(New) Amazon FBA Course 2019 – Ultimate Amazon FBA Blueprint [Free Udemy Coupon]
Super neat project. I am a print debugger myself and will definitely use this at some point in the future. For scenarios where PySnooper might be overkill and you just want to see the value of specific variables, I wrote a port of the Rust `dbg` macro for both Python and Go that are pretty nifty when looking at values really quickly:

https://github.com/tylerwince/pydbg

https://github.com/tylerwince/godbg
I can understand your point of view but I'm not sure this is a sufficiently good reason to mandate that requirement.

If you need a parking spot, you should make sure you rent an apartment that has one.

Having a law that each unit has parking just increases rent and traffic.
> "The solution probably entails making it illegal for them to upsell folks below the income bar, and require them to provide the free filing option based on the forms entered."

In the current environment where they appear to have enough political influence to block the IRS from allowing people to file their taxes online, it seems unlikely that any constraints will be imposed on their pursuit of profits.