skysight-inc/HackerNews huggingface dataset:
Breakfast: cortado with no added sugar, oatmeal with some honey

Lunch: usually a salad with a small amount of grain or a veggie / protein mixture at the whole foods hot bar. Stroopwafel (sp?) + espresso afterwards.

Dinner: meat /fish + a vegetable. Big servings. Sometimes a glass of wine or a beer. Sometimes a bit of ice cream for dessert.

I've never been overweight, but as I get older, I find that this paleo-ish diet helps me maintain my weight and feel good / healthy. Also, as part of my job, I counsel young people on losing weight and have seen a number of my motivated patients have good success with a similar low-carb, low-sugar approach. Finally I'll say that striving to eat this way most of the time allows me to eat a burger or brunch on occasion and never worry about the effects on my health / weight.

Note: I have been on a 5x5 weight-lifting program recently and may increase my whole grain carbohydrate to ensure that I maintain proper glycogen stores.
I think you're right.

The promise of Prolog was that you'd be able to just define the task requirements, then write the requirements in Prolog and magic would happen. But even the most experienced Prolog coders I know don't really think in Prolog. When faced with a coding task, they inevitably first (mentally) figure out the problem in an imperative form, perhaps with some recursion, and then they they ask themselves "okay, how do I convert that to logic and pattern-matching?"

If you're going to go through that process, then Prolog provides no value: it's just an extra step, and you might as well code in C (okay, Lisp).

I fear that Haskell will turn out the same way. After all monads are just monoids in the category of endofunctors, right?
There are several ways to do it. One straight-forward way is as follows:

We can represent comments by facts like:

comment_id_user_text_points(3, 1, 'hello!', []).

I do not know what exactly you mean by "points", so I have simply supplied an empty list (fourth argument) in this case. Note that there is an ID for the comment, and an ID for the user that posted the comment. Therefore, we say that this is a relation between users and comments and their text and points, usable in all directions.

Each user can likewise be represented as follows, relating a unique ID to a name and e-mail address:

user_id_name_email(1, 'randomUser1122', [random,'ycombinator.com']).

For admins, I can simply add additional facts, relating user IDs to rights like this:

admin_id_rights(1, [delete,hide]).

Now, we can simply post queries over these facts, such as:

?- user_id_name_email(ID, _, _),
comment_id_user_text_points(_, ID, Text, _).

and obtain, on backtracking, all comments for any user.

This is all completely analogous to how you would represent such data in any database system. It's more convenient in Prolog though for several reasons.
This is why the development of character sets requires international coördination from the beginning. :)
China's 'sharing economy' booms, but can it last?
> Why is this type of attitude normal in software?

I think people greatly underestimate what software developers actually do. To most of non-computer related folk we are just monkeys who bash keystrokes.

I'm not saying we do some rocket science, however in this profession a lot of online research is required to even do a simple things, and to most of people it is annoying to do so they give up.

I'm full-stack developer for about 10 years but still have to google MSSQL connection string or how to center stuff vertically in css.
intuitive as in got used to?
I don't think we have enough information (or even the professional capacity) to advise you wisely for the best expected return. So many unknowns here; for instance,

> what d'you mean by ex-founder and by what corporate action or process did you come to attribute this title to yourself?

> Why have you held your shares till this time?

> Why are you skeptical of the future of the company? D'you have a personal beef with the hardball CEO or is the company really doomed in your opinion?

> Who approached who (I mean you or your hardball CEO) to leave the company? To be clear, did he notify you of their intention to raise money and ask that you sell off or did you hear that they're about to raise money and then decide that you want out?
"Taylor, Forward Labs CEO, told Green Tech Media that the company is aiming to do the right thing for the right reason. In contrast, he believes that Tesla’s design is the “wrong thing for the right reason.” “It’s wrong to devalue people’s houses with something that doesn’t look good. It’s wrong to put holes in roofs; it’s wrong to go to war with homeowner associations; and it’s wrong to try to ram something down people’s throats that they don’t want,” he said."

Isn't this a straw man argument? Telsa's roof shingles look better than standing seam metal roofs and I haven't heard anywhere that people don't want it. Did I miss something?
I use Geany and really like it. Customizable. Even easy to e.g. type something in, press tab, and it inserts the output of your shell script or program. I use that to put the day's weather in my journal.
Most people would read that abbreviation as 'Minimum Viable Product' in the HN context.
Rugby Union does a lot to regulate how contact happens. Rugby League (actually a different sport) has a combination of the lack of protection of Union and the outright violence of American Football. I don't follow League enough to know whether the lack of protection tends to lessen injuries. I understand it to be a game with a short shelf life for top players.
Same goes for Bitcoin mining.
Maybe you think it sucks, but it's still much better than no search at all. Looking at you HN.
“The Traditional Lecture Is Dead. I Would Know–I’m a Professor”
Brain Region: Zona Incerta
Not right after claiming such buttons "do nothing for the user that a simple link wouldn’t" and assess their cost in "tracking and slowness". You apparently think they do something good. Otherwise you wouldn't include them.

My complaint isn't with your using social media buttons. (I hated them enough to block them; they no longer bother me.) It's in using them right after claiming they are useless and parasitic.
Ask HN: Best ways to recruit during a Bay Area internship
I'm a software engineering intern this summer at a tech company in the bay. What conferences are good to attend or groups helpful to join for recruiting?
This is similar to the argument for the creation of money as a more efficient replacement of barter systems.
And one of the most successful books of course being the Bible.

The new approach is changing human nature through genetic engineering / mind emulation.
Granted. But it also really helps me to have some practical goals to guide my efforts, keep me focused, and mark my progress.
The same CPython, just with a compiler that makes better user of Intel chips instructions. It is almost the same of Anaconda distribution that has all the math libs included.
Well, "artist" is a little farther away than the other two, but I would submit that most of the people who have what it takes to be a median accountant or lawyer probably also has what it takes to be a median programmer. For all the discussion of how we "think differently", I honestly don't think there's that much separation. Maybe when you get to the higher levels, but that separation is as much within the profession as between professions. There are programmers who have whatever the wiring is that makes them want to sit down in their free time and write a new kernel, and there are programmers who are reasonably content cranking out Wordpress installs on a 9-5 schedule.

And for what it's worth, I suspect that if most people were willing to put in the time and effort to learn how to create art, you'd find that many more people can create reasonable art than you would otherwise believe, because we've talked ourselves into a model of artistic talent that seems to hold that it's a binary switch, rather than something like any other skillset, where some people are more talented, but where almost anyone can develop some ability in it if they put in time and effort. I'm not a naturally talented basketball player, but I can run and play defense and hit a reasonable jumper in a pickup game, because I've spent a lot of time over several years learning how to play and then playing a bunch of games.
Btw, if you want to have an email conversation, my email address is peter.d.sherman@gmail.com. Maybe I can give you some additional ideas...
It takes an Olympic Cyclist mashing until he has to lie down just to make a piece of toast.

https://www.youtube.com/watch?v=S4O5voOCqAQ
But you're not promoting "diversity of thought", you're promoting BS signals. How is it promoting facts when you're searching for superficial signs of diversity?

You're promoting a form of corporate doublethink where filling out bubbles of sex and race is automatically analogous with some platonic ideal where every single variant of human being had this amazing differential that'd waiting to be exploited.

But instead it seems a very cynical game where the superficiality of diversity conquers honest evaluation of needs and ability.
I enjoyed the expedient writing style. The author did a great job of expressing the essential knowledge without too much verbosity. It's very clear what the skeleton of the project consists of, and the known unknowns are labeled (i.e. "this is how this works, you can read more later [here]").

Some may find this directness unempathetic, but I consider it as the opposite: the writing seems precisely aware of exactly what the reader wants to know at any given time and what questions he or she would be likely to have on their mind.
That engineer doesn't work on Word (he worked on WordPerfect) so not knowing how a proprietary format of another company works isn't really surprising :)
Unicode isn't hard, dealing with software that doesn't use it is.
To the extent traditional lectures ever made sense, they stopped making sense a long time ago. I've written a lot about teaching: https://jakeseliger.com/tag/teaching/ and it seems obvious to me both from learning and from teaching that lectures are a mostly ineffective way to transmit knowledge. The exception seems to be highly charismatic, engaged lecturers who can still involve the audience and/or their students, but those people are rare.
> Can you define convenient?

Of course.

I mean convenient from the user's perspective, whether that is the developer (APIs, libraries, etc.), or the end user (workflow, UX, etc.); make the usability of the secure option/behaviour more appealing and you've guaranteed that human nature will take care of the rest.

I'm not saying it's easy.
For serious book writing, with proper chaptering and everything, I would probably use GitBooks.

For anything else, even though it is not open source, Typora is to me the best visual markdown editor. It even makes me tolerate it being an Electron app, so it's pretty good.

https://www.gitbook.com/

https://typora.io/
I thought the same thing till I tried to program in it and I immediately understood.

It is not intuitive, and most programs aren't logical problems in the sense that the prolog can solve. It is highly specialized.

It belongs to an era -- and this era isn't "over" -- when the primary manner of solving AI was symbolic.
> you don't generally mutate strings

If strings in Emacs are mutated so rarely that making them immutable would cause almost no breakage, it logically follows that strings in Emacs are mutated so rarely that using them from Clojure as if they were immutable would cause almost no problem either.
Same thing that you do when nurses go on strike. You hire a bunch of scabs and muddle through.

The difference is that IT usually sucks so much that nobody notices.
$100k is worth 40 hours a week for two years to the average American. Quite a sizeable chunk of your life.
This is 100% the process I've gone through to build a DL box. Anaconda saved me in he fast.course.ai lessons.
Kotlin is officially supported by Google – now what?
You should start selling jokes and then tell us how you made your millions
I disagree, I think you are just used to it. I grew inside a metric system country and is difficult for me to think in imperial system. So, if the US embrace the metric system, I guess the shock will be on the current generation, future kids will never notice it.
The entire source of improved loading time was font-related, and they never even asked themselves why they were using custom fonts in the first place? Even after quoting the fact that customers will leave a site that loads too slowly, their solution was not to remove the fonts but to add even more bytes to the downloaded HTML?
I definitely agree that a sufficiently smart compiler and/or fast interpreter is an extremely important asset when working with Prolog, and also that it takes almost superhuman effort to write such compilers.

However, at least in my experience, "nudging" the system in the right direction is much easier with Prolog than with imperative languages:

With Prolog, all it takes is often simply reordering a few goals, which some systems even perform automatically for you (see YAP, and some parts of SWI-Prolog for examples, in particular the RDF framework). There is also typically much less code to rewrite in the first place. Critically, the ability to reorder your goals depends on your working in the pure subset of the language. If you leave this subset, then also automatic or manual optimizations are orders of magnitude harder to apply.

Regarding Haskell and Prolog, my experience also differs significantly: From my experience and observation, the consequences of lazy evaluation are much harder to understand than Prolog's implicit search mechanism and backtracking.
You only need a portable app version if it isn't a portable app by default.

If I go grab the python zip for my platform it is already a "portable app" what is there for portable apps to do? The only dev environments I can think of that aren't portable by default are not free, so portable apps wouldn't be able to release them anyway.
You don't dilute 5% to .005% in 6 months without moves that at best are questionable and at worst are illegal, especially if your shares are diluted and some others are not.
Try 15-20 minutes of meditation right before you go to bed. I find it slows my mind, decreases stress and prepares my body to sleep deeply and well.
Laravel Tutorial for Beginner: Create Your First To-Do App in Laravel 5.4
Interesting that in the nsf data it shows that during the 2000-2004 time frame the number of CS grads rose and then peaked in 2004, while the number of CS women grads during the same time frame was flat, and then dropped in 2004.
Not in San Francisco or the Silicon Valley area. Median home prices are well over $1m. That's not even enough for 20% down on a mortgage.
You're not making a convincing argument. Why are the capabilities of plumbers to mentally map various causes and effects and points of failure not subject to the same forces of thought differentials you claim?

My cynicism says that diversity is a result of baizou, not any actual accounting of some magic spread where different and useful ranges of thought are spread in equal proportion mapping to a species of bureaucratic classification of diversity as noted in sex and skin color and nationality.
Try meditation, 15-20 minutes before you go to bed. I find it helps calm my mind and prepares my body for a deep restful sleep.
In pure software, the conventional choice for an AEAD is some variant of Salsa20 and Poly1305 (usually abbreviated as "Chapoly"). They're designed to be fast in software without table lookups.

The cache thing is a good point!
Candidly, there are plenty of people who delude themselves that they are well suited to being a doctor or lawyer. That said, they're prestige positions, so there are cultural reasons for doing so.

On the STEM front, a quick search immediately pulls organizations like National Girls Collaborative Project:

http://ngcproject.org/

Girl Scouts:

https://www.girlscouts.org/en/about-girl-scouts/girl-scouts-...

Girlstart:

http://www.girlstart.org/

and Girls Inc.:

http://www.girlsinc.org/news/editorials/inspiring-girls-expl...

that provide either focus or programs for outreach in STEM more broadly than computer science. Now, I don't know the exact numbers for whether programs for pushing for women in CS are greater in number than STEM. That would be interesting to know precisely. Mostly, my contention is that, yes, there are organizations that are attempting to encourage young women to entering STEM fields beyond software.

Now, at a city level where I live, I have noticed anecdotally that there's been a push for software based businesses from the local government. Though it's difficult to know for sure, my opinion of this push toward software as opposed to engineering is because the apparent investment in creating a new software company is lower than the investment in creating an engineering company. Engineering tends to be a more regulated field and often requires more expensive equipment. As such, I believe the city is interested in businesses that could have a large economic impact for a relatively low amount of investment. Now, is this so easy? No and I believe my city government's actions are somewhat misguided. That said, I doubt that where I live is unique. I do believe there's a national push for software based businesses because the apparent investment is low and the payoff is high. Along with that will be programs to encourage underrepresented people to enter the field and these programs will be visible. But, again, I contend they're not unique.
Having tried Prolog for a problem that it's relatively well-suited for, I found that all the advantages Prolog gives fall away very quickly. There's a lot of finicking around with weird organization of your code just to get things to work, despite being "declarative." For example, trying to rely on libraries to solve parts of the problem for you can be really strange because you can be 99% of the way to solving your problem, but not being able to edit/inline that code will create problems. As an example, trying to use a sorting function on an uninitialized list can't really do anything to help you, but if you inline that same code it can fix it because you're declaring properties of the list in-place.
Sure, but if they offer $100K that's just too low to take serious, I'd definitely hold out for a multiple of that and make it clear that any trickery will be dealt with harshly. A 5%-er with a grudge is something no company can afford.
On the touchpad i always use one hand, my right hand: Index+Ring finger, I just move them sideways.

actually i never thought about that. I just noticed that the person in the example video http://i.imgur.com/AvLLbuy.gif seems to use Thumb+Index finger.
Having been through a very similar situation, here are a few ideas:

- Get a good lawyer, it seems expensive, but is cheap compared to getting a bad deal.

- In deciding between cash vs. equity, a useful way to re-frame is "If I had it all in cash now, how much equity would I buy at this price?"

- The CEO has much better knowledge about the company, and an offer to buy may be a signal that there's positive information unknown to you.

In my case, I refused the lowball offer though the amount of cash was tempting, figuring they were making an offer for a reason. A few months later, I was offered 4x the price as part of a funding round. I took it without further negotiation, since that was enough to make a significant lifestyle change.
Dead (could not connect to server)
We do use it. Many common products are sold in hard metric quantities. It is difficult to buy plywood in non-metric thickness. Non-legacy electronic components are metric. The US military pushes for metrication. This is all done as a result of globalization or the need for commonality.
> A contract language has nothing to do with blockchains.

In a strict sense, you're right. All a smart contract language needs to run is a linear set of inputs. However, they have a lot less utility without the other parts of a blockchain (distributed, crypto-data structure for assurance, etc.). If you don't care about being distributed, just use an API or run the external code in a container/vm.

> they refuse to abide by the decision by retroactively modifying the interpreter to interpret the contract in their favor. And why wouldn't they?

While I don't agree with the hard-fork decision, I understand (from a biz POV) why they did it. They didn't have too many options. Either hard fork or let the "hacker" collect the prize. IMO this lack of options was a failure of the EVM and solidity language itself.

While the DAO debacle had a bunch of causes but the main problems, from a language point of view, were: (a) centralized governance (upgrading/migrating) of a live contract isn't a first class citizen in solidity, (b) there's no distributed governance mechanism at all, (c) formal verification of solidity contracts is still years away.

Pact has (a) already and we'll be upgrading it to handle (b) as well next month (via a weighted vote mechanism). Either of these would have at least been able to mitigate the impact of DAO's issues -- just upgrade the contract and migrate the table the contract is guarding. Pact also has (c): https://youtu.be/Nw1glriQYP8?t=1072
The good point about this strategy is that there will be a per-share valuation that is probably much higher than the previous one.

The bad point is that the OP will then have to do all the hard work on the transaction whereas right now there are willing buyers.
I'd be interested to know which blocks and functionality is missing to support the use cases you used Yahoo Pipes for! And of course general feedback is always welcome.
My brother in law was doing an outreach to female high school athletes to get them to sign up for the civil service exam for his fire department.

Technology is also unique in that between the different over-represented minority cultures, people with poor social adjustment and tolerance for "boys will be boys" creates an actively hostile culture for women.
Not me, I totally understood what he meant due to the context. The reality is that "Minimum Viable Product" was hijacked from the MVP of sports.
Or outside the US - "MVP" seems to come from US sports terminology which are still relatively niche in the rest of the world (compared to Football anyway, and I reckon there's a large amount of people who don't even care about sports)
Heh, there's a painting company that parks their van along Kezar Drive in SF with the name/logo "MVP", which they intend to be read as Most Valuable Painter. It always makes me think of the scene in an old episode of Mr Bean where he paints a room by putting a firecracker in a paint can.
Here's a shot. As you don't declare relations in Prolog the way you would, say, write SQL CREATE statements, I'll just show the data model on concrete data.

comment("I tried programming in prolog...", 100, randomUser1122).
comment("Here's a shot.", 2, tom_mellior).

user(randomUser1122, email(random, randomdomain, com)).
user(tom_mellior, email(tom, mellior, su)).

admin_right(randomUser1122, delete).
admin_right(randomUser1122, modify).

Is there a user from the Soviet Union with admin rights?

?- user(User, email(_, _, su)), admin_right(User, right).
false.

What rights do users with posts with a score of at least 10 have?

?- comment(_, Score, User), Score >= 10, admin_right(User, Right).
Score = 100,
User = randomUser1122,
Right = delete ;
Score = 100,
User = randomUser1122,
Right = modify .
This is really dependent on the programmers background and what they're writing. Some code is super easy to write in Prolog and much harder in any other languages. Take type inference algorithms for example. Rather than describing how to solve it, you just translate the typing rules directly to Prolog clauses. Thinking about imperative problems is hard in Prolog and will make you think backwards. Thinking about logic problems in C is the same way.
Right, but does he/she own any of it when the job ends? If not, what's the point?