HNHacker News
TopNewBestAskShowJobs

logn

4,713 karma · joined October 29, 2011

https://github.com/hollingsworthd
submissionscomments
logn··on Show HN: A programmable embedded browser written in pure Java
Yes, that's right, for (1) crawling and general index building, (2) scraping and data extraction, and (3) testing or web automation.

Some might be wondering, why this project vs other Selenium web drivers. Answer to that is: https://www.reddit.com/r/java/comments/40qa0q/a_purejava_sel...

The primary difference from wget and curl is the ability to fully render pages, sub-resources, CSS, and JS. Also allows interaction such as clicks and keyboard events.

logn··on Show HN: A programmable embedded browser written in pure Java
I just added it to Maven central repo. The dependency you can use is noted on the project page in the Download section.
logn··on Show HN: A programmable embedded browser written in pure Java
It uses only Java SE. It implements the Selenium API and wraps the renderer and JS engine that's built in to Java (WebKit). Granted, Java itself is built on native code and native WebKit renderer (whereas, the networking code, graphics, cookie management, headers, etc. are Java). Sorry to be misleading.
logn··on So You Think You Can Program an Elevator
This makes me want a hackable version of SimTower.
logn··on Ask HN: Why don't Linux distros provide systemd opt-out?
For how-to: http://crunchbang.org/forums/viewtopic.php?id=37871
logn··on Ask HN: Why don't Linux distros provide systemd opt-out?
Gentoo and Calculate Linux (which is based on Gentoo). But I think the package manager in Gentoo is awful.

There's also Alpine Linux. And in Debian you can switch to sysvinit or upstart.

If you're really anti-systemd maybe consider FreeBSD, PC-BSD, or OpenBSD.

logn··on Ask HN: Are SPA indexed by Google?
I don't know how Google handles this, but I wrote a driver that can accurately detect when an ajax page finishes loading. I simply wait for a certain amount of time to elapse when there are no pending requests. (FYI, the project is linked in my profile)
logn··on Replacing Judgment with Algorithms
I think we can probably get transparency and ethics built into the algorithms. But I think we'll have a much harder time controlling how pervasive and intrusive the algorithms are. And as a result, our behavior will be more effectively controlled by corporations and governments.
logn··on Nvidia GPUs can break Chrome's incognito mode
> Google marked the bug as won’t fix because google chrome incognito mode is apparently not designed to protect you against other users on the same computer (despite nearly everyone using it for that exact purpose).

What's the purpose of incognito mode then? It doesn't protect you from your ISP, websites, or users on the same computer. I'm not sure what other use case there is.

logn··on Optimizing Linux with cheap flash drives (2011)
I'd guess your SSD was doing a synchronous discard which would be slow. I know anything less than SATA 3.1 does it synchronously, and maybe there are other situations too. E.g., maybe async trimming requires a decent amount of free space?
logn··on Optimizing Linux with cheap flash drives (2011)
Also you can add noatime,nodiratime,discard to the options of your fstab config. But if you don't have SATA 3.1 or higher then don't use the discard option but instead add fstrim <path> to a chron job or rc.local. The other options I mentioned turn off recording of access times to files/dirs.

And you can set the noop scheduler using echo noop > /sys/block/<device e.g. sda>/queue/scheduler. Whether that's the best option for you depends, but if you have an SSD it might be.

Finally if you're using full disk software encryption, do check if your SSD supports hardware-level encryption instead and if your BIOS allows you to set its key.

logn··on Ask HN: What are the best web build and deploy automation tools?
I like Jenkins, but I haven't used many others.
logn··on NSA Patents
Maybe side projects by employees that were squashed?
logn··on Ask HN: Freelancer? Seeking freelancer? (January 2016)
SEEKING WORK - Remote from USA

Will integrate my (Apache v2.0 licensed) programmable web browser into your crawlers, scrapers, test frameworks, etc: https://github.com/machinepublishers/jbrowserdriver

logn··on Ask HN: What are your predictions in technology for 2016?
I think the new chips are advanced enough it's feasible for many people/orgs. Not sure if a nation state or private investor. I see motivation for both. China doesn't like BTC. There could be short sellers. There is also a growing contingent of people upset with BTC as a whole given recent arguments over forks and the future.
logn··on Former Columbia House insiders explain the shady math behind “8 CDs for a penny”
It depends how you interpret non-neutrality:

1. Laws written to allow different "lanes" of traffic, with protections that prohibit censorship and don't raise the bar of entry for websites.

2. Providers mostly have free reign to slow/stop any data that crosses their network and charge anyone however they want.

Given Facebook's internet.org and similar "zero-rating" schemes, I'm not sure you can dismiss argument 2 so easily.

logn··on Ask HN: What are your predictions in technology for 2016?
Ha, definitely a long shot. I was watching a Joe Rogan podcast: https://www.youtube.com/watch?v=aDejwCGdUV8. In summary, there's evidence for a cataclysmic asteroid strike 12K years ago that nearly wiped out humanity. If true that upends traditional archaeological theories and suggests that humanity rebooted 12K years ago instead of a gradual move from hunter-gatherer to society. What the world was like before the reboot is unknown, but maybe we were advanced enough for space travel?
logn··on Ask HN: What are your predictions in technology for 2016?
Firefox decides to incorporate Tor Browser in private browsing mode.

Digital Ocean gets acquired.

Google Fiber buys Cincinnati Bell.

IoT still hasn't gained much traction.

Bitcoin suffers 51% attack.

Archaeological evidence of human life found on Mars/Moon from some time > 12K years ago.

4G meshnets become popular in developing countries.

logn··on How does the Cybersecurity Act of 2015 change the Internet surveillance laws?
His stance is more nuanced.

> "I think Snowden played a very important role in educating the American public ... he did break the law, and I think there should be a penalty to that," Sanders said. He went on to say that the role Snowden played in educating the public about violations of their civil liberties should be considered before he is sentenced, and that as president he would "absolutely" end the NSA spying programs in question.

Basically it seems to me he wants Snowden to get a fair trial, which would require some new legislation first or for him to be charged with a different crime. And aside from Rand Paul, I don't think any other candidate is as strong on Internet freedom as Sanders.

logn··on Ask HN: The Struggles of Poverty and Trying to become a programmer from 0
Build a portfolio. Do real projects for people. If you really have no experience, then you can offer your services to people at a low cost. I'd shy away from people who need things completely free unless they're legit, and either a charity or have no chance of making money either (e.g., a band). Look on craigslist for projects. I wouldn't spend another dollar on learning anything.

Or, do projects for yourself. You can host them on GitHub for free and open source it.

logn··on How to get rich in tech
For the engineer, they may be able to choose wisely between company A and B. But if company A has a 1% chance of getting rich and company B has a 5% chance, it's still only a 5% chance. So any skill in choosing a winner is diminished by the fact that winning is still unlikely.

VC's however, can place many bets and come out winning if they play enough.

Because this is all high variance, a large sample size favors those with skill. Small sample size favors luck.

logn··on Ask HN: Have I been flagged by HN moderators?
If they were all pinned to the bottom I would wonder. But they're not. Some of your recent comments are middle or top. Comment position is some combo of points+recency and might factor in overall recent karma.
logn··on GPL enforcement is a social good
I donated and you should too. https://sfconservancy.org/supporter/ You get a t-shirt and your name/company publicly listed as a supporter (if you want). They're a charity, for tax purposes.

More importantly, they use their money efficiently and have tangible positive results.

Unfortunately due to the VMware lawsuit they've lost some corporate sponsors. Note that on the whole, their GPL enforcement is not litigious and not profitable. And that's just one part of their overall mission.

logn··on Ask HN: Is there any job more creative than programming?
True but in the professional cooking world, I think it's probably comparable to programming. In some cases, it may be more creative.

At home, you can experience more creativity by looking up lots of recipes for the same dish, start understanding what the core ingredients/flavors are and venturing out from there. Eventually you get a handle on ingredients and cooking methods like they're the syntax of a programming language.

logn··on 1% the Code (2001)
J2EE would imply Oracle. But there are no fees implied. Additionally, most of the Java libraries have a linking exception to prevent any GPL licensing from affecting other components. Granted, there could be fees if you're redistributing Java or embedding it on mobile hardware. It's all like this because that's how Sun did it for many years and Oracle can't/won't upset that momentum.

Proprietary vendors have had a large part in writing these open standards, but they're mostly interested in creating a standardized, free commons.

GP's story is not about programmers at a hardware company, and it's probably not directly applicable to colorForth.

logn··on Ask HN: Is there any job more creative than programming?
Cooking?
logn··on How Being Named the 'Best New Restaurant in America' Hurt My Business
People go to restaurants for lots of different reasons. That's what a 5-star rating system doesn't capture. I think simply rating "I am/not likely to eat there again" would be more appropriate. A site could aggregate enough of that data to find users with similar tastes to you. I.e., Yelp should be more like Pandora and less like Rolling Stone.

I don't know anything about this particular restaurant but it seems like he's accidentally targeting the wrong audience. Wine pairing menus, fancy plating, an article in Vice, Kickstarter... none of these things strike me as targeting his desired customer, which is someone with modest expectations and expecting just dinner, not an event to review.

logn··on 1% the Code (2001)
I'm not the GP, but speculating...

The Java code itself probably took less than a few days to write. Java/Spring/Hibernate have no licensing fees (in most cases) and is an industry-standard stack.

I'm guessing the original author didn't write it in Bash because either (1) they didn't know Bash, (2) they didn't know if/when requirements would expand beyond what Bash can easily do, (3) they wanted platform independence, or (4) their team wrote everything else on the Java/Spring/Hibernate stack.

You can argue the merits of all those reasons, but I don't see bloat being profitable as a factor.

The difference in lines and executable size is likely due to an apples-to-oranges situation. Bash scripts seem really light weight if you're not counting all of their system dependencies and if you're writing a program that Bash excels at (such as moving data around).

logn··on Juniper hack has U.S. fearing foreign infiltration
Lazy reporting: "The U.S. officials said they are certain U.S. spy agencies themselves aren't behind the back door."

If you're not going to provide context or get a quote from a disinterested party, then just omit the US saying the US didn't do it.

logn··on Tiingo – Pay-what-you-want “high-end” financial tools
On pay-what-you-want pricing, can you deduct that from income if you're a business? Might be better to have business pricing, personal pricing, and demo/free pricing, and just rely on an honor system for people to select which bucket applies to them. But if you only expect people to pay a small amount, then I doubt tax deductions are much of a concern.
← PreviousPage 5 of 34Next →