skysight-inc/HackerNews huggingface dataset:
Oh, and to be honest it shouldn't be that hard to work on.

It basically works via a Command pattern. That's because an EMF is a binary file that consists of a bunch of sequential records. The way it works is that you get an EMF+ file, and you read it from start to finish. Each record you read has a consistent header, and each different type of record does something - or stores an object (such as a pen or font).

My big idea is to use a base EmfAction class that has a function Read() that you use to read each type of record. You use EmfAction::ReadEmfAction() to read the next record from an ifstream, and it moves the file pointer to the start of the next record, and you just loop through the file like this:

https://cgit.freedesktop.org/libreoffice/core/diff/vcl/sourc...

The only snag was how to set state on the DeviceContext - I want the commands to read and store the state, and the DeviceContext should be passed into the command object and be manipulated by it via an Execute(DeviceContext&). But at the time I concentrated on how to read the objects.

Of course, EMF+ has a way of saving a DC's state, allows the DC be modified by subsequent records, and then the DC can be restored, so a stack of DCs needs to be established, but how to do this I'm not rightly sure yet.

I'm pretty certain though that I'm going to need to change the EmfRecord derived command records to start using a constructor where the DeviceContext object is passed in as a pointer.

The header file can be found here:

https://cgit.freedesktop.org/libreoffice/core/tree/include/v...

The record commands are implemented here:

https://cgit.freedesktop.org/libreoffice/core/tree/vcl/sourc...

As it is an initial implementation. The Read() calls are defined in the class declaration. Obviously that will need to be corrected.

The code also probably needs to be rebased, but in all honestly it is such a small change I don't think it would be too hard...
I never said anything about bush. I agree, he was a leader that perpetuates conflict and the military industrial complex, however, the "progressives" are a class who hide behind the cloak of racism, social justice and supremacy. I never said I agreed with the republicans and bush, you ASS-U-MEd. This is the problem with the US political system, the two parties are leveraged against one another. If everyone actually turned off the television and looked at non-traditional, government controlled media, they would see what is really going on.

This is not a game of left/right, democrat/republican, this is the people who are interested in protecting and preserving the US and the ideals which it was founded that resulted in the rise of the most prosperous nation of our time.

Unfortunately, as usual, history is the greatest predictor of the future, has shown that prosperous nations have moved to communism, facism or socialism and eventually implode.

So, don't just jump to conclusions and maybe read a couple of history books before you open your mouth.
I recommend using Shodan for this kind of stuff.

https://shodan.io
Thank you for your reply.

> I agree that those are useful words to distinguish.

Not "words" but "concepts". Words are just the form of our identifications. You could be writing the same concepts (or more generally; ideas) in French (different words) but the meaning remains the same. The precision with which you use your words is a sign of the precision with which you use your concepts.

> More broadly, I think people are capable of having significantly more access to their "unconscious" than most people realize (hence the scare quotes around the word ;)), and further that those non-logical processes can also be different, and yield better or worse, faster or slower results.

A perfect example of my previous comment. The concept "unconscious" should be reserved for boxers knocked out in the ring or a man in surgery under general anesthesia. I like to use "subconscious" for mental processes that I know are going on but I am not consciously aware of. Some of these mental processes can be brought into conscious awareness and some cannot -- I think this is an important aspect of reason. You keep having to use scare quotes because you are groping for this distinction; the subconscious is alive and active and real whereas the unconscious is inactive, dead.

> How you actually implement "reason" can make it better or worse, faster or slower, and I've found that people can make significant gains by changing the details of what they are doing with their minds.

The most creative and powerful ideas occur subconsciously. I inadvertently discovered the interrupted nap trick.[1] I'd fall asleep with my laptop and when it slipped off my belly I'd wake up with new ideas to attack any problems that I was working on.

[1] https://www.fastcompany.com/3023078/leadership-now/how-dali-...
It just pinpointed Debian, however I think asking about the package manager creates too big of a bias for a "chooser".

pick: next button messes with the browser history.
hilarious but true in many cases
Thanks. This is a great succinct example.
Pair of Chinese endoscope cameras and a LX1000 webcam + free open source software for gaze tracking. Worked OK.
C2ats – An utility to generate ATS interface from C code
Sometimes throwing money at a problem is the right solution. I've been at companies where we've spent 16 man hours trying to figure out how to clear up space on a server(about 40 GB). Have there been a more open purchasing system we just would have gone out and bought a hard drive and saved the company $8500.
By the way, Barry and company got a pass for the first term. Everything that happened during the second term, is on him and his minions.
There is another way for equity to have some value.

It's an old approach, but still works surprisingly well, and it doesn't even require anyone to buy the company or have an IPO.

You can earn a profit and then pay that profit to the shareholders in the form of dividends.
When Nintendo got rid of the headphone jack
It's especially painful when the company management misjudges their core competency and cuts the wrong thing.
I like the comparison to Puritanism and delayed gratification. There is something there.

Even long after active religious beliefs are gone, there is a long trail of attitudes and habits which linger on. They just become part of culture.

Also those institutions or individuals (owners) who can tap into those attitude and play them against others can reap great benefits. There are a bit like settings and switches already there, just have to turn them on.

"Work hard and you'll be rewarded in the afterlife". In this case the "afterlife" like the article mentions is the exit event, or what used to be the IPO.

This belief is useful both to the owners (the ones who control the believers), but it is also useful to the believers as well. It provides comfort and a sense of mission. That last bit is readily discarded, but I think it is a very important part in the equation.

People will work 80 hour weeks at below market salary if they get to fantasize of being a multi-millionaires. Even people who think themselves beyond irrationality and silly biases (programmers in our case) will go for it.

Maybe the ability to fantasize, is actually worth something. Perhaps imagining oneself a little Zuckerberg or Mark Cuban, should be worth something. You are closer to that dream by working in a startup than say working for a big corp or sandwich shop. Is that dream worth the salary cut and uncertainty? That's the question.

Comparing with other countries, I wonder if there are cultures where this wouldn't work as well. And it might explain why startups just can't take off there. Let's suppose there is capital and talent but people there might ask "Yeah what's in it for me today?" and if the answer is "You can dream about being wealthy in the future". They'll say "No, thank you" more readily. It could be because of a religious background or they simply have less faith in official institutions.
I would have one aggregate instance per bank account. Each has a separate state and business rules would need to be applied at the individual account instance (e.g. overdraft fees, interest, etc). If you have to enforce rules at the bank level based upon actions taken within the account then you can have a bank aggregate that you can interact with through a saga and confirm changes through a two phase commit.

Command execution is not transactional, but writing to the domain event store is. That means that two writers cannot write the same domain event version number to the event store. Say an aggregate is at version 20. The next action would put it at 21. If two threads generate version 21 of the aggregate, only one of them can write it to the event store and the other gets an exception. Domain events are written in a transaction batch to the event store so we cannot get any writes in the middle. So, the first to write the next version wins. The other one loses.

We also partition our command and event processors by aggregate id. The same aggregate cannot have its events or commands processed more than one at a time because the processors are synchronous per partition.

If I understand you correctly then you have one instance of a very large aggregate per bounded context? If so, then no, it is not in the spirit of CQRS/ES. If you are handling commands in transactions, then the designers of your system may have chosen to favor consistency instead of the availability that CQRS provides.
How to convert video to smart phone
I think this is a key problem for google. I am not sure there are many who believe that the Google R&D/moonshots are actually going to turn into businesses or executed products for Google sold by Google. Their "heart" never seems to be in any of the other areas that they entertain, even at huge amounts of funding (like GCE) they seem to still be hobbies. In contrast, I doubt there is any shareholder that would not believe that if Apple's r&d stumbles on something they wouldn't be able to execute on product and turn it into a $xx billion segment.
Even online illegal markets have coercion. Remember all that assassination stuff around Silk Road?

But I also seriously doubt that most illegal markets are online. Even first world countries have actual physical black market networks for illegal goods. And if you venture into a country where corruption is routine (which is where most of the world lives), illegal markets are literally right around the corner - drugs, fake IDs, firearms, you name it.

(Personal side note: it can be a very... eerie... experience when you happen to run into such a thing by accident, and realize just how close it was all the time.)

And most of those physical markets definitely have coercion aplenty.
You should consider the possibility that subsidizing a 10-minute ride could be a good method for a central bank to stimulate the economy.
Scanning the IPv4 space. I know there are many different projects that do it. I was thinking about how I would do this today. I believe the first step would be to arrive at all the IPv4 blocks (/22, etc), then do a calculation to arrive at the address of each based on the prefix. Then in an array of threads or so, try to connect(2) to the address on some type of service in a timeout handler. If it succeeds, then consider that address as up. I would consider doing this in an async loop with epoll(7), so that many connections could be attempted at once and improve through put.

Anyway. nmap can probably do this and is a great tool
Let's start a thread with "little cheries" you found in emacs! Focus on things that you found after years of usage and you regret not noticing before.

Given Emacs scope age it's sometimes easy to miss some very cool stuff. What's more, lots of things on Internet are outdated.

I will start:

- elscreen - you can configure it to get tmux-lookalike inside emacs. My config: https://gist.github.com/kozikow/58b46c45a2c24406dc7cde3f18610433
- hydra - create mini-menus in the mini buffer. Quick and reduces amount of shortcuts you need to remember. See previous point for example.
- apropos/helm-apropos - search across all variables/functions/commands at once.
- imenu/helm-semantic-or-imenu : get overview of all definitions in current file, including classes or functions. Works in majority of languages without special setup.
In NYC, I can imagine "the world" comprising home, the route from home to work, work, the route from work to home, and home. Don't mess with any of them.
This reminds me of my flight returning from San Jose, CA to the upper Midwest, my current home. Within a few moments of my choosing an aisle seat, someone (who I later found out was from my hometown) joined me in the neighboring middle seat and immediately struck up a conversation. It was about his recommendation of a book I had in my lap that he had previously read. It was then that I realized this type of occurrence hadn't happened throughout the time I was in CA, and was a welcome reminder of home. Perhaps it was just coincidence that a stranger confronted me on my flight home, but I certainly have perceived people here to be a good deal more willing to talk to strangers and seemingly less aloof.
That US forces other countries to police their residents for US laws is wrong.

But I don't see how EU doing the same is of any help. Two wrongs never make a right, and especially not when they reinforce each other.
Also seems very smart of them to have partners like Mercedes. They're likely offsetting a huge portion of the cost for the program, and it's all from taking advantage of the climate where everyone is dying to get a head start in self-driving.
I've wanted to sit down for a while now and chart out company lifespans over the past 100 years. I could very well be wrong, but I have a feeling that just as technology/product life cycles are getting shorter, so too are the life cycles of companies.

note: There are of course many aspects that would make this a bit of a difficult thing to study, mergers and acquisitions being just one for instance, and at least for small businesses, "birth" and especially "death" dates are incredibly hard to pin down. But still something I've been interested in for a while.
Good thing this isn't reddit or there would be a mile long thread about Daredevil, just saying.. lol
The group Bang on a Can performed Eno's Music for Airports live [1] and released a recording of it sometime ago. It was their opinion that Eno did manipulate some parts of it and that it is not 100% generated (or in this context, system) music.
[1] http://bangonacan.org/store/music/music_for_airports_live
This is mentioned in the Effective Go document.
see also: https://en.wikipedia.org/wiki/The_Protestant_Ethic_and_the_S...
Help American Workers. Pass TPP. – Michael Bloomberg and Thomas Donohue
Obviously not, because you're not dead.
So, basically it's about symbolism?

I remember working at a place that made employees buy their own pens, maybe as symbol of frugality. Nobody really got it - we just thought it was eccentric.

Some workspace amenities are basically just props - they don't cost anything once installed. People try it out a few times and go back to work. Day to day, it's about as significant as the junk on the walls at a theme restaurant, but it makes the space look "creative", and apparently that's more important than looking "frugal". Arcade games get used that way too - sure, you can play it, but who has time?

Meanwhile, important, recurring costs like improving data center efficiency do get a lot more attention.
There hasn't been such proof, and what information we have indicates that the levels are very low. But the problem is that you don't really have easily available and reliable data in the absence of IDs.

To some extent, this is symbolic. In most developed countries, and especially in US, resident non-citizens - especially permanent residents - have most of the legal and economic rights and the advantages enjoyed by citizens. Political rights, including right to vote, is one of the few things that are reserved for citizens alone. If it is to mean something, ensuring that it is only exercised by those who have it makes sense, even if you don't actually catch any miscreants - you could consider it an honor guard of sorts. But, by the same logic, it is crucial that those who do have the right to vote can exercise that right.
Dividends make sense for established, profitable businesses. They don't make sense for startups. No one wants the startup to issue dividends.

The employees won't receive any dividends unless they have already paid to exercise their options and are holding restricted stock.

The investors don't want to have their capital returned to them while the company is getting off the ground. They want the profit to be reinvested in growing the business.

The founders are already taking a salary. It is easier for them to fine tune that than it is for them to take compensation in the form of dividends.
A coworker told me about his experience at HP long ago. A new VP come aboard and thought they could save money by cutting out all the free coffee. Many employees were pissed and made a point by taking their 20 minute break outdoors to pick up coffee daily. Management suddenly realized that saving 25 cents for coffee was not worth >20 minutes of lost productivity.
Actually most of them. It's pretty easy to eliminate them if you have the hostname entry from the scan and cross-reference with public distro mirror lists. Also exclude any edu servers and names of universities etc. If you want to look for actual files, there's hardly anything better than http://filemare.com. Crawlers like Napalm (http://www.searchftps.net/) focus more on servers that are meant to be public. Using filemare one can find the interesting things ;-)
The only way you can make money in a restaurant is via booze. I know a couple of restaurant owners, and they admit it: if they just sold food, they'd be losing money. The profit margins on alcohol are insane. A $1 bottle of beer can easily go for $5 (a 400% markup). And wine? A decent $12 bottle of wine will easily fill 6 glasses, at $7 a pop.

So if you're planning on opening a restaurant, be sure to get your liquor license. You'll depend on it.
You wouldn't want to use nmap for WAN. nmap is really great if both the scanning and target nodes are somewhat distrbuted across a LAN. Internet mapping is done using Z{map,grab} (censys.io) or masscan. Reduce using the Censys or Shodan search.
Most CEOs will do anything to trade places with Microsoft.
Isn't that a bit like asking how many scams have been pulled off in dozens of segments of the $18.5 trillion US economy in general? Consider just the scale of real estate related fraud for example, whether on the consumer side or the commercial developer side etc.

The video game industry is very large. That there would be millions of dollars worth of scams in it annually (of one variety or another), would be entirely expected.
Golang is truely modern C. Popular, "simple" (in the twisted sense) and riddled with landmines. :)
Attempting to disclose a social engineering vulnerability to Instagram
I've been trying to disclose a vulnerability in Instagram's support process that is being widely abused (social engineering). Unfortunately I can't get their support or press team to respond. FB White Hat disclosure did respond but can't do anything unless it's a technical exploit. They have flaws in their account recovery mechanism.

It's a long shot and perhaps the wrong place to ask. But. Does anyone know someone at IG I can contact to disclose this issue responsibly?

Thank you.
Attributing that gain solely to senior management in ridiculous.
Sure.

On all FBW systems there's a computer in between the pilot's appendages and the wiggly parts built into the airplane that control its orientation (roll, pitch, yaw, what have you).

Airbus systems position the pilot as a suggestive force. At any given time the computer has its idea of what's happening and the pilot influences this calculus within safety tolerances for various bad things that happen to airplanes. One example is a stall, which results from a variety of factors including excessive pitch of the wing against the oncoming air (called angle of attack -- think about tilting your hand back when holding it out of the car and it dropping back on you. that's a stall). Airbus computers typically prevent the pilot from introducing the situation by dampening, modifying, or outright ignoring control input to avoid critical angles of attack. That's one example.

Basically, without going alternate law, the Airbus computer will work to make it very hard (not impossible, obviously) to apply control input that would place the flight in jeopardy.

Boeing would allow the input and mostly permit the pilot to introduce the situation. That's the difference. They treat the pilot as the end of authority in command. That has compelling merits. So does Airbus. As JshWright said, both sides have incidents on the other they can point to as supporting data.
> An earnings call for an enterprise that large is worth many human lives

I wish I could read this without thinking of human sacrifice on a scale unseen since pre-Columbian meso-America.

Even by your logic this is insane. She's paid more than 2,000,000 a year, and therefore should not be sacrificing herself from a pure economics standpoint.
Well, the reason why I came to the conclusion that you don't value obeying the law is because of your example about the hassle it would be if someone kept notifying the authorities about you violating Section such and such. It's a hassle because someone is forcing you to obey the law. The implication is that when no one reports you, then it's fine for you to conveniently violate that law because you think it's a bad law. If that is the wrong implication, then please correct me.

I meant my rhetorical question about obeying the law to be in the context of your example. But I should have been more clear about that. A better revised question is "so you don't think you should have to obey laws you disagree with?"

Our opinion of a law does not have any bearing on our responsibility to obey it. If we think a law is stupid, we can try to get it changed, but until then, we obey it. That's how rule of law works.

I have no doubt that your industry is ridiculously over-litigated. But I'd rather all businesses obey all the laws (and work to change the stupid ones) than decide for themselves which ones they'd like to obey and which they get to violate with impunity.
Isn't that the same shitty problem Javascript has?
I'm always very suspicious when a company saves easy to count money but pays with hard to count costs. For instance Google just got a little less cool. Everyone and their mother wants to work at Google, and the people who work there love it, and believe in Google's mission. But as it turns into a more standard profit-oriented company they will lose a lot of their kool-aid, and the Google kool-aid is an asset they have worth many billions.

Unfortunately that asset isn't written down anywhere, and the books won't mark down the capital loss from this depreciation. If they did, a lot of these cost cutting measures probably wouldn't look so great.