skysight-inc/HackerNews huggingface dataset:
> obscenity

The U.S doesn't enforce most of its obscenity clauses. With the exception of Child pornography, etc... And if you're asking what harm does that cause, well, it harms the kid getting sexually abused. Most of the obscenity laws are related to minors. Either in the the consumption of pornography or production.

> Communism Control Act

What about it? It's irrelevant here. In fact, anything that hasn't been challenged in the supreme court is irrelevant because the supreme court is the law of the land, not local, city or state governments. Per wikipedia: "the Supreme Court of the United States has not ruled on the act's constitutionality. Despite that, no administration has tried to enforce it. The provisions of the act "outlawing" the party have not been repealed. Nevertheless, the Communist Party of the USA continues to exist in the 21st century." It's quite obvious which way they'd rule if it were to be challenged, as even lower courts in NY ruled against it in the 70s.

And I think that's the most important thing here; In germany, for example, you can't challenge their free speech law regarding the holocaust. It's set in stone. In the U.S, unless the supreme court has ruled on it, it is not set in stone. And the supreme court of the U.S has an incredibly good track record when it comes to defending our freedoms. Sure, it's laid a couple stinkers here and there, but 99% of the time, its ruling is favorable towards those who value freedom, liberty and independence. It's kept us from fascism and helped keep us from turning into a theocracy.
PsReadline is shipped with PowerShell 5: https://technet.microsoft.com/en-us/library/ed48e832-95f9-45...
For me, taking a meditation retreat in total silence showed me a lot about how thoughts just spontaneously jump up in my mind. Normally, I don't notice it that often. And in normal situations I tend to act on a lot -- but not all -- of those thoughts which then invokes a thought train which may or may not invoke an action.
My feeling is I should just start coding with whatever I know and not bother getting involved in arguments about the underlying language. Time is money friend!
Probably spl_autoload [1].

[1] https://secure.php.net/manual/en/function.spl-autoload.php
Sadly it's still used by even recent software projects, notably systemd.
And since then tools such as Composer and Symfyony3 have been released. It's been almost 10 years. Hell, even Magento2 isn't that bad, if you can look past the awkward dependency injection they're in the process of fixing.

PHP in 2008 is very different to PHP in 2016.
PHP frameworks in 2008 are very different to PHP in 2016.
PHP developers in 2008 are very different to PHP in 2016.
PHP is so vast that it's a ghetto, the rich uptown area, a sprawling suburban middle class, and more.

I share some of your experiences - I'm disturbed by how easy it is for people without basic coding knowledge to make money "building php websites". But I also see and run in to a large number of people who can do fantastic PHP code (testable, documented, clean, modular, etc).

One thing I've noticed is that most of the people who can do good PHP code (at least in the sense that it's not crappy) have also worked in other languages/tech, either before or during their PHP work. I know the exceptions, but for the most part, someone's PHP code quality is higher if they've done more than just PHP.
As someone who has a (very) niche product, I'm just wondering: what channels worked the best to get knowledge of your product to the right people?
Most single taxi driver can be tipped and set a price for a fair themselves. why do you think Uber should be different ? /s
Firefox on Ubuntu here.
> 4. Create a SaaS product that solves a consumer or business problem in a given niche...

Like it. Let me share my story.

Six months ago i read articles how Buffer, Drip and ConvertKit started and got an inspiration to do a SaaS project.

I love reading and trying to hack the process using different tools and projects. Some of them worked, some not, but no one gave me back.

The question was: to make a reading habit? And i found an answer: bite-sized reading — 5-10 minutes a day.

Next steps:

— i bought a domain (https://bookcelerator.com/summary) for $12;

— hire a freelancer to craft summaries of books a want to read ($35/summary, $70 total): «Zero to one» and «Hooked»;

— created accounts on Mailchimp and Paddle (payment provider);

— and launched an automation.

It took me 10 days to read summaries by myself, broken down into 5-minute daily emails. Then i realized i really like the process and it helps me with my reading habit. I posted a link and my story to Facebook and Twitter and got first 4 clients from my network. Now Bookcelerator is $200 MRR in two months, has 5 summaries to read (i will post 3 more on every weekend).

The problem is i don't know how to grow to $1k to quit my job and make it the full-time project.
Yeah, with the batteries becoming so powerful, I sometimes feel uneasy about having the equivalent of a hand grenade on my lap and the equivalent of a potent firework right by my ear as I make phone calls.
Structured data allows the use of generic filtering and structured data processing tools. The basic requirement is reflection, objects being able to tell you about their structural composition.

If code was stored in a structured representation you could still search for a string object containing a symbol name in the structured representation. You can match a structure pattern just like you match a regex to text.

Typical shells can be thought of as REPL for a programming language that makes the file system easily accessible and uses said file system or pipes to pass around data between functions/commands, sometimes as human-readable text. Most programming languages don't encourage passing data around as strings.
Interesting article, just wanted to comment on this:

> For instance, in June 2011, a user from the Phoenix area requested $25,000 for debt consolidation. The user was relatively risky, with a FICO score in the low 700s. Lending Club rated the loan “E2”—one of its riskier categories—offering it at an interest rate of about 18 percent. But investors were skeptical, and only $20,525 worth of the loan’s notes were sold. Later that month the same person, according to Sims, borrowed the difference, $4,475, at an interest rate of just 7.5 percent. (Sims guessed that Lending Club’s algorithms gave the second loan a higher rating because it was smaller and thus less risky.) To the outside, it looks like one reliable loan and one risky loan; in fact they were both risky. “We evaluate each borrower’s creditworthiness based on the most up-to-date data,” the company says in a statement. It adds that users can exclude “relisted” loans from their searches.

The exact same thing happened (may be still happening, AFAIK, I've been out of that industry for ~7 years) in the mortgage business, and it was a legal and well-known practice. At least Lending Club was considering the higher loan as being more risky (i.e. assigning it a higher interest rate), but what I saw happening in the mortgage business was that let's say that you needed $100,000 to buy a house and you had almost nothing, a credit officer will help you get a "personal needs" credit worth $20,000 with an interest of 7-8% that would show the bank that you were now in the possession of at least 20% of the value of house, so that the bank was now able to lend you the rest of the money ($80,000) to actually buy said house, at 3-4%. Often times the two loans were taken from the same bank, so there was no foul-play from the client.
^^^ this. But this requires capital to even begin. I've considered buying an apartment in a country way cheaper than where I live, and AirBnB'ing it, and paying someone to manage cleaning and key exchange.

In some countries you can get a central apartment for $35k, and a normal wage is $600 per month. If you manage to rent it out on AirBnB for $6-700 per weekend or so (what I paid for an AirBnB in one such country last week with 5 people in a large central apartment), you could make nice profits.

Even renting it out to someone over long term would be profitable; lower profit (potentially) but less risk (definitely)
Well, there have been clear technological jumps. I remember the time when the mainstream technology for electronic gadgets was NiCd. Then came NiMH -> Li-ion -> Li-Po. The differences are quite significant.
You still don't need a framework for that. Just use composer to install a bunch of well-tested, feature-rich, but fully independent packages. Start your script with

include 'vendor/autoload.php';

and add 50 lines of your own code.
Just because those tools exist doesn't mean people use them.

There were decent libraries and high quality code back in 2008 (and 2000) but people didn't necessarily use them.

It's arguable somewhat easier today, but that's a relative term.

If you're FTPing code from BBedit or Dreamweaver up to your godaddy shared hosting and clicking buttons in cpanel... composer/symfony won't help.
PHP "can be" used as a templating engine, but its not the right way to do it nor do you have to use it in that manner.

The correct way is to use Twig for your templates

PHP is alot more than a "templating engine" if thats all you think of it then that is your choice
They removed mysql_real_escape_string function so that you can use mysqli_real_escape_string http://php.net/manual/en/mysqli.real-escape-string.php
Yes, that's it. To keep things maintainable, OS interfaces are available to applications in the form of shared libraries, and that requires a well-defined and stable language ABI.

It's regrettable that C++ currently has an advantage over Rust in this regard...
I've used some free apps that turn phones into document scanners. Almost all banks I use have something like that embedded for check deposits. Maybe they're just doing deskew rather than dewarping though... loose documents aren't usually warped like book pages.

The next hard problem would be help with DIY book scanning. Like the camera could sit over my shoulder and detect when I've turned a page, then automatically take a picture of the new page. Then OCR kicks in, and conversion to EPUB, preserving graphics when pages have non-text elements. Mostly just feel like we can probably do better than the massive contraptions over at www.diybookscanner.org
>Isn't a security one of the gains of using frameworks,

That depends on the scale of what you're building. Generally I would agree with you, but if you building some small, something that would only ever use a small subsection of whatever framework you pick, then you could end up having more issues than if you didn't use a framework.

Just because you aren't using parts of a framework, doesn't mean that security issues in the framework won't affect you.

Let's say your application only ever needs to do one or two queries to a database. It's going to be a whole lot easier for you to lock those two queries down, than securing an entire ORM.
Artist creates wax effigy of Donald Trump to watch him burn
You would be surprised how far a few hundred dollars spent on Adsense can take you. It might take a little bit of practice before you figure out businesses that are worth advertising but when you do -- you can get leads that pay 1000 - 100,000+ times what you're spending on Adsense (and even repeat customers.)

This is probably quite ordinary advice but as someone who hasn't done that much marketing before -- I am still blown away by how effective search engine advertising is. I feel like with just Adsense I could make virtually any website profitable as long as it was cleanly designed and the margins were high enough. After that, its really just rinse and repeat. Maybe throw in some promotion on a few other channels and you've got yourself a solid business.

Advertising is practically modern day alchemy.
I went recently and it was still on display, although it was not in the computing exhibit as before, but sort of on it's own.
Replace "PHP" with "JavaScript" and you will have another true statement.
Ugly Truths of Game Development
Judge grants Happy Birthday lawyers $4.6M, citing “unusually positive results”
> Everyone doesn't use roads.

Everyone who doesn't grow all of their own food uses roads, IMO.
Hey, I know Lauren, I'll ask her to register in case anyone has questions.
PHP community had always been anti-frameworks and anti-libraries. I worked at company where use of third-party libraries was entirely forbidden on most projects. I think it's because:

- Quality of PHP frameworks is low (at least it was last time I used it)
- PHP parses and evaluates whole libraries and framework code on each requests. There's proprietary commercial (lol!) software to enable at least caching of bytecode
- Packaging just does not work (Pear, now there's Composer, not tried it, seems that it works)

Overall, last time I used PHP i had sense of its community mostly being nihilistic and preferring cowboy programming. It's straight opposite to Java where you will be shamed for not using dependency injection and EJBs for page visits counter. In PHP world you are considered insane misfit if you're writing tests.

For some things advice to just code and don't use unnecessary libs is useful. Recently I had that php/cgi feeling when I worked on small microservice in clojure: no OOP, no MVC, no ORM, no templates, no separating each 10 lines of code to module, just take Ring request and return Ring response which are simple associative arrays. This was a refreshing feeling.
I think learnpub does this. Minimum price and suggested price.
In Westeros slavery is outlawed but widespread in the East. Slavery is also a major topic in the book.
These new media is awesome.
If you have no morals, no.
This tech will take at least a few years to reach the point where they can start supplying enough batteries that Tesla would need for its cars.
Correct, it would be hard, which is why if you we're able to figure it out, it'd be useful and hard to copy.
You can just use the Mono bindings for the Linux-specific API's, I hope.
Azure CLI, Azure PowerShell and even the portal are nothing more than API clients. You can capture traffic while working with any of them and see it for yourself.

Also, for PS and CLI the code is in GitHub :)
Battery capacity doubles every nine years.

I'm not narcissistic enough to give this "law" a name.

The opposite is also probably true. A battery technology that promises to double today's capacity is at least 9 years away from being commercially available.
Paul Graham's quote in "Design Patterns" section actually says nothing or the opposite of what the author is trying to say - Paul says that when he's seeing in the code things (shapes <<of code>>) that repeat themselves, it's an indication to him that he's missing some macro definition that would build this shape for him so he doesn't need to repeat himself by manually creating it all the time - that he can reuse it (as macro).

How does it relate to design patterns? Does it say not to use them? Absolutely not. It says the opposite, if anything - to recognise patterns in your code. "Design patterns" is just an idea that if you see your patterns repeating themselves (some of your macros tend to be very similar in different projects) then you should give it a name. This way when you explain system to your colleagues it's easier to communicate.
That's because they're not intelligent. They're layered function approximators with some specialisations for vision - conv layers. Their structure is designed by humans as is the data they are fed with. Maybe the human brain is the same, IMO it isn't. Humans seek out new experiences and can introspect and at their best assess their level of knowledge of a sibject. DNNs cannot.
Search images by sketching a picture
If battery life is really what people care about, even over features, then everbody would be using dumbphones instead of smartphones. So as much as people cynically complain about companies, battery life isn't what people value after all.
You often do though: as in, if each independent problem was handled by a microservice PHP script, it would just be a 50 line script.

But if you've built it on top of a huge framework then you can end up with all the separate parts stuck together in a massive project where you're not even using 75% of the framework.
Your competition is something like getabstract.com & summary.com (you can find a bunch by typing in “cliffnotes for business books” in google).

I think you can learn a lot from seeing their sites (none are gorgeous). I’d also consider PPC to acquire customers, but perhaps you could have an alternative pricing model (per book, per month, per year, audio versions of the summaries.)

You could always offer a handful of “life-time accounts” to try and bump the short-term revenue enough that you can flesh out your library more (I feel like that might be a limiting factor for customer acquisition).

Feel free to reach out to me on twitter if you’d like to continue the conversation @ckluis.
The tech books written by authors who know nothing but English and "learning a lot while writing" is exactly what ruined the book business. No one needs this kind of crap.

Books ought to be written by experts and talents. Just think of the likes of SICP, OnLisp, AIMA or PAIP compared to some Java for Dummies crap.

I wouldn't even start about fiction and guys like Nabokov, Wilde or Orwell.
The videos of punctured lithium-ion batteries violently spewing smoke and flames is alarming.

Then there is Li-Po which can ignite if charged too much or if left to drain to low. I also suspect they'll burn if you give them a stern look or make a hurtful comment.
Here, fibonacci implemented in a single for loop (obviously, there's cruft in there to modify the array but there's no need for us to be facetious). Feel free to wrap function call around it if the procedural nature makes you feel icky.

$iterations = 50;
$numbers = [1,0];
for($i=0; $i<$iterations; $i++) {
array_push($numbers, $numbers[0] + $numbers[1]);
array_shift($numbers);
echo $numbers[0];
}

You seriously expect me to believe that 99% of PHP developers couldn't have written this?
Removing the Powershell Curl Alias?
IMO one of the key missing points here that is not really considered, is that when you use a well documented and relatively mature framework, it greatly simplifies some of the non-programming related aspects of software development, particularly with regard to getting new developers up to speed, and ensuring that even your junior-most developers are able to contribute without having to become heavily acquainted with your specific implementation of authentication, file uploads, routing, etc.
Website enumeration insanity: how our personal data is leaked
Paths,a finder navigator that run in you mac menu bar
Is it me or is the author confused about the distinction between a library and a framework?

To me, a framework implies inversion of control: you don't call the framework's code; the framework's code calls your code.

Granted, he skirts the issue with phrases like "A framework is a system that helps you build software, but at the same time it forces you to work within the limitations and restrictions of the framework itself", but this describes what a framework achieves, not what it is.

Call me pedantic, but this I find this indicative of poor understanding, and this article raises a number of red flags along these lines, such as this gem:

>PHP on the other hand was created from the beginning by Rasmus Lerdorf as a set of tools written in C that would enable you to easily and quickly develop dynamic HTML. As such PHP was, and still is, a framework in and of itself.

Uh... what?

Maybe I'm overstepping my bounds, but this article is furthering certain stereotypes about PHP-programmers.
If you haven't used PHP since composer became a standard in projects, you don't know modern PHP.
I was aware that public funds are sometimes spent on useful things. But is it right that the taxpayer absorbs the cost and risks of research, with the profits going into strictly private hands?
And this tuning is of utmost important. People often forget that the tuning is human intervention with specific 'specs'. The little baby machine get's quickly tuned to these, good or bad.
that's what I thought poster might have meant, but.... it's not an autoloader, it's a way of registering autoloader code.
While his grandstanding and self-mythologising have ticked me off for years, I'm also pretty interested to see his take on this subject.
nah, you are interpreting math in too narrow a sense. It's really an exploration of all possible things that can be. Which is what the universe is really, it's just gotten a lot further down a particular path.
Sure, the framework code will be more secure. But you still need to solve your problem and your framework isn't going to do it. So you have to write code.

The code you do write is going to be more secure if you know what's going on. If it's on top of a billion line framework, you might accidentally break the security without even realizing it. No legions of framework developers reviewed, audited, tested or fixed your actual code.
Parallels Desktop 12 for Mac arrives
As long as it takes, but no longer. And probably a little shorter.

There's no generic formula for length v. price.
https://www.amazon.co.uk/Guide-Exchange-Traded-Funds-Index/d... is thorough and good (with a UK focus if that's good for you)
The two nicest things about directives once you get the point behind them are that they're consistent and flexible: once you know the syntax for one directive, you know most of the syntax for the rest.

The problem with that is that the syntax is comparatively heavyweight. Part of this is due to reST's alignment rules and partly down to the generality of directives.

Let's take 'image' as an example. The simple way to embed an image in reST is this:

.. image:: foo.png

And in Markdown:

![](foo.png)

And with some alt text:

.. image:: foo.png
:alt: Foo!

And in Markdown:

![Foo!](foo.png)

I've had people struggle with image directives simply because it doesn't sink in that the `:alt:` attribute has to be aligned with the directive name, whereas the rough equivalent in Markdown has no such issues.

OTOH, once you know how to embed an image in reST, you're 90% of the way to knowing how to embed a code block, whereas in Markdown you need to learn a little bit more syntax. The downside of that is that this:

.. code::

print("Hello, world!")

Is more heavyweight than:

``
print("Hello, world!")
``

And people prefer the latter as it's less to type to the former, even if the former introduces no special-purpose syntax.

This is where Markdown's ad hoc nature has benefits over reST's more structured nature: if you want to embed an image in Markdown, you learn how to embed an image; in reST, you learn the directive syntax so you can embed images. That gives Markdown and reST different learning curves. Markdown gives you lots of little easy-to-learn tools, but requires that you be constantly learning new tools as you go along, whereas reST gives you fewer, slightly more complex tools you have to learn up front, and all the new stuff you learn later is based off of those. Moreover, Markdown has less impact on the text due to its ad hoc markup being more compact, unlike reST, which takes the route of being more general at the cost of being more verbose.

Somebody starting out confronted with either reST or Markdown will look at both and see that the latter looks more like plain text than the former, and thus there is less of an initial barrier to entry. That's why the likes of MkDocs exist in spite of the likes of Sphinx existing long before MkDocs and its ilk did.

TL;DR: Markdown makes easy stuff super easy and hard stuff possible; reST makes the easy stuff a little harder than Markdown, but lets you lift mountains.

Edit: s/codeblock/code/
No, you are correct. Most developers today would understand a framework includes your code, as where with libraries, your code includes them.