Better HN
topnewbestaskshowjobs
Log inSign up

terminalcommand

1,673 karma · joined Sep 27, 2013 (13y ago) · 683 submissions

Corporate lawyer with a passion for computers.

Software design and implementation should be a joyous art, a kind of high-level play. If this attitude seems preposterous or vaguely embarrassing to you, stop and think; ask yourself what you've forgotten. Why do you design software instead of doing something else to make money or pass the time? You must have thought software was worthy of your passion once...

To do the Unix philosophy right, you need to recover that attitude. You need to care. You need to play. You need to be willing to explore.

Submissions

comment 9y ago · link · parent

IMHO instead of raising taxes, states could focus on giving employees the salary and the security they deserve. If the productivity indeed increased 3x, then employees should be able to benefit from it not the state.

I want to believe in a world, where you receive wealth by creating it.

542.

Hacksplaining – Interactive Web Vulnerability Exercises(hacksplaining.com ↗)

3 points · by terminalcommand · 9y ago · discuss

comment 9y ago · link · parent

Previous discussion: https://news.ycombinator.com/item?id=14542874

comment 9y ago · link · parent

Congratulations, HarveyOS is really an intriguing project to support.

It would be nice, if they'd provide an ISO. The thing I noticed about Plan9 clones and Inferno is that, they almost always run entirely in the userland. I think that's the reason HarveyOS does not provide an iso. I am not sure they are building a standalone operating system.

If you're interested you could also try inferno, however getting it up and running is also a hassle.

Lastly, in the case you're not aware, Plan9 and inferno also have a very interesting history. Inferno and Java were once direct competitors. Limbo a programming languages invented for Plan9 is also mentioned in the Dan Brown's best seller Digital Fortress.

IMHO Plan9 spirit still lives in Golang, like the Lisp Machines' spirit lives in Emacs. Maybe with cloud based OS's we could see the ideas behind Plan9 in everyday world. But other than that Plan9 remains an OS for hobbyists and idealist computer folk :).

comment 9y ago · link · parent

I'm continuing to code, I never stopped. Nowadays I code for fun, experiment with different languages, contribute to OSS projects.

Coding is not an issue for me, it comes naturally. Of course I wish I had the ability to receive formal training and I secretly envy people who are able to study and contribute to the field of CS.

However, after years of resistance, I came to realize that I also like law. Rules of society and software engineering have a lot of common. Both in Law and Programming you think of edge cases, debug thinks, try to express yourself clearly.

What's most interesting is that in Law, I also heard people using principles, which I am familiar from computers.

For example in a moot court I attended, a catchphrase was that "if it walks like a duck, talks like a duck, quacks like a duck, then it's a duck". Or when we prepare for pleadings our coaches always instructed us to Keep It Simple. Another example is when we wrote a memorandum, we started with constructing an outline (a.k.a top-down design :D), we constantly made reviews, argued heavily about restructuring (a.k.a refactoring :) ).

comment 9y ago · link · parent

I am a law student. I always had an interest for computers.

It's been difficult to accept that I won't be studying CS. In those darkest of times advice from HN comments kept me afloat.

I can't imagine any other place where a 19-year old computer nerd could get a personalized advice from Ian Murdoch himself, before he passed away.

HN is a great place to learn about different fields of computing, get advice, find and read quality content.

I mostly like to read the discussions and come back for the dopamine rush I get from new stories :).

comment 9y ago · link · parent

There is Harvey OS, it's a direct descendant of Plan9 and they accept donations.

https://github.com/Harvey-OS/harvey

The development seems active, the last commit was made 7 hours ago.

Last time I checked the project was still in its early stages. Docs and stability have improved a lot since then.

Sidenote: I think 9P protocol and plan9 userland like ACME editor is available on linux.

comment 9y ago · link · parent

IMHO Intel GPU's are not that bad. If you're not gaming they handle most tasks such as image editing with Photoshop and driving multiple screens at high resolutions. And frankly, that's all a consumer really needs.

Sure, an external dedicated GPU is nice to have, but being able to buy a decent processor (ie. Pentium G4560) with an integrated GPU for 50 dollars is really awesome, if you're on a tight budget.

PS: I'm writing this on a laptop that has the very first Intel HD Graphics (1st gen i7). I don't have any problem with it, except gaming and a two monitor limit.

comment 9y ago · link · parent

I'm not a computer scientist, but I'd say Quantum Computing, Crypto Currencies, Compression algorithms like HEVC, new programming paradigms as can be seen in Escher, the comeback of functional programming and microkernels seem interesting to me.

comment 9y ago · link · parent

The bitter part of wishing you had majored in CS is that most of the times you cannot and you have to live with it. Being able to work with computers is both a skill and a burden. For example I was the classic computer-whiz all my life. Due to a twist of faith, I found myself in law school and I'm graduating next year.

In my freetime I still try to cargo-cult learn CS. I tried a lot to give up computers, but I couldn't.

Maybe a CS4ALL movement can filter out kids who have a mind for CS and inform their parents about it. I suffered a lot from the notion of not being able to study CS. Especially the first couple of years of college were the worst.

On the other hand, as you have experienced with the record growth, most of the young people get into CS degrees. Maybe CS is more a passion among teens like music/painting. It may as well be a trend of our century. In the 19-20th century young men generally wanted to study painting, now we want to study CS. Because computers promise creativity, autonomy and inherently give us an identity, because we think we're "gifted".

551.

Green Threads Explained(c9x.me ↗)

195 points · by terminalcommand · 9y ago · 47 comments

comment 9y ago · link · parent

I believe workspaces are present from KDE4 on.

Also, you can achieve the same functionality in i3, i3 can remember the positions of the open windows. But you need to write a script to open the corresponding applications and identify them to i3, so windows can be "swallowed".

However workspaces on KDE were magnificent. They remembered state between applications too. I only used KDE4 workspaces -FreeBSD does not yet support Plasma- and was fairly satisfied.

comment 9y ago · link · parent

You're right, specialization is what makes the economy work. But where do we draw the line? Do we learn something just because it's useful to our carrier? Should we abstain from learning things, because we need to specialize?

For example having a working knowledge of lexers and regular expressions could enable someone to write efficient scrapers. Or it could supply one with enough intellectual excitement to keep one's computer skills alive.

I am in law school, will be graduating next year. From an economic perspective, all my computer knowledge is moot. But I can't let computers go, much of my identity is built upon my ability to work these machines.

It's true:

> There is obviously too much in the world to learn and I would say even to much in the field of computer science than for any one person to know it all.

However that is not a bad thing, computers provide enough excitement to pass the hours, make you feel smart and give you a sense of connection to a whole community of like-minded tinkerers.

554.

Writing a lexer in Go with Lexmachine (2016)(hackthology.com ↗)

128 points · by terminalcommand · 9y ago · 3 comments

comment 9y ago · link · parent

I am a bit jealous :).

I also did a subdomain search on google a few weeks ago. I stumbled upon a lot of login sites.

A subdomain search leaded to 95 subdomains under corp.google.com.

There is some strange javascript in those pages, there is a function called riskMi.

I don't want to get sucked into it, I'm also closing the tab and going back to my terminal :).

556.

Understanding Golang Packages(thenewstack.io ↗)

1 points · by terminalcommand · 9y ago · discuss

comment 9y ago · link · parent

Thanks for the insight. Could you please elaborate on the Stockdale's Paradox.

I researched the topic but couldn't understand the connection with me finding self-discipline techniques harmful.

Should I not lose faith and try to find better ways to get my life in order?

comment 9y ago · link · parent

The problem I found with sticking to using Pomodoros or longer periods (90 minutes) per work is that they work for a short while. After a couple of days or max. a few weeks I plunge back into my old self.

Using self-discipline techniques help in the short term, but in the long term I find them harmful. Because after a while of dedication, I feel exhausted and kinda burnt-out.

It's true that working for the time you allocated removes guilt. It's true that setting aside a fixed amount of time for working makes you more efficient.

If I could only find a way to sustain this kind of movement. One thing I've seen working is listening to easy-listening music. After quieting down my brain, I have much more self-discipline and focus.

comment 9y ago · link · parent

Fascinating read, especially The part about Bell Model III. The machine had lookup tables, which were actually tab-separated paper. It was an actual table. They further implemented in the functionality to jump forward and backward in that table (they called it "hunting").

I don't have much experience in assembly, but reading this article made me appreciate it more. Assembly basically operates with the same principles as the first computers.

comment 9y ago · link · parent

They claim the reason for it is that Wikipedia refused to take down articles of which Turkish government is "sensitive" about. These include evidence suggesting govermental support to ISIL.

What I don't understand is why do they block ALL versions of wikipedia? They could have at least provided us with a "safe version" of wikipedia under a governmental domain like wikipedia.diyanet.gov.tr

As a citizen residing in Turkey, I'm concerned, afraid, but mostly frustrated.

561.

Going from Python to Guile Scheme(draketo.de ↗)

2 points · by terminalcommand · 9y ago · discuss

562.

Stop Writing JavaScript Compilers Make Macros Instead (2014)(jlongster.com ↗)

2 points · by terminalcommand · 9y ago · discuss

comment 9y ago · link · parent

I don't have much experience in the field. Are you searching for something like Apache Kafka?

On the web page it states that Apache Kafka is a distributed streaming platform.

  Kafka has four core APIs:

    The Producer API allows an application to publish a stream of records to one or more Kafka topics.
    The Consumer API allows an application to subscribe to one or more topics and process the stream of records produced to them.
    The Streams API allows an application to act as a stream processor, consuming an input stream from one or more topics and producing an output stream to one or more output topics, effectively transforming the input streams to output streams.
    The Connector API allows building and running reusable producers or consumers that connect Kafka topics to existing applications or data systems. For example, a connector to a relational database might capture every change to a table.

comment 9y ago · link · parent

I think these are issues with formatting. Kindle has the ability to render any mathematical book or chess book with diagrams. One only needs to find a good epub/mobi.

On the other hand reading magazines on kindle is painful, because they're meant to be viewed on a larger surface.

I read technical books (programming) on my computer/ipad.

If you intend to use the book as a reference, kindle is hard. The ability to go back and forth highlight take notes, remember what you thought by looking at the page these are very important.

For example I cannot study efficiently without printed codexes. I tried converting the laws into org mode and they became somewhat manageable. But I still prefer printed copies.

comment 9y ago · link · parent

IMHO it is not the Internet that's the problem. The constant connectivity is killing productivity.

Every morning I used to start my day with reading HN, on the bus to school I surfed the web. At uni, on every break I used to take out my phone and browse some more. After school I binge-watched TV shows and surfed more. My attention span got so divided that I couldn't concentrate watching a single episode, I constantly switched to a browser to surf more.

I learned a lot about programming, but my personal life suffered.

I couldn't meet deadlines, couldn't study for uni (studying law).

In the end I concluded that I had developed something like an internet addiction.

Furthermore, it wasn't just limited to internet. I stopped changing clothes, stopped keeping my already cluttered room in a somewhat liveable standard, stopped caring for my health, ate a lot of junk food, got hooked to TV-Shows.

Now, instead of constant short bursts of divided internet surfing, I am trying to set out a time for surfing. And outside those hours, I go offline.

It has been a though switch, but I slowly feel that I'm getting my impulse control back.

I recently started reading Deep Work by Cal Newport, I can recommend it to anyone trying to get off the vicious cycle.

comment 9y ago · link · parent

IMHO pythonic means that you adhere with the principle "there should be one --and preferably only one -- obvious way to do it". And that one way is set out by the BDFL Guido :).

I have theory that, python was introduced out of frustration with Perl. As we all know, Perl had the principle of TIMTOWTDI.

Another far more tangential and biased theory here: As Python imposes strict programming principles, it resembles Java in forcing the programmer to abide by the styles set out by the language designers. And maybe that's why schools prefer to teach Python instead of Ruby as a scripting language.

PS: I have nothing against Java and I love Python. My theory is based upon Guido's insistence on not opening the language fully to functional programming. I'd like to see better lambdas, functional programming without itertools etc. But I know Guido has his reasons, pythonic code uses list comprehensions instead of FP.

comment 9y ago · link · parent

Google is a registered trademark, Googlebot may not be registered. However as it clearly is affiliated with Google, even if Google had not registered it they might pursue claims.

I am not familiar with U.S. law. If the courts in U.S. adopt a strictly formalistic approach on using names in a business context, then the results may be different.

However IMHO, Googlebot is clearly associated with Google and anyone who uses Googlebot as their User Agent is tricking the sites owner's into believing that the request was made from Google.

As for legal grounds, Google could sue on unfair competition.

comment 9y ago · link · parent

Are you only crawling or also scraping the website?

If the sites in question only add an exception for googlebot and not other crawlers (e.g. Yahoo, bing, etc.) I would say that it is against the site owner's consent.

However if the site owner adds this exception also for other crawlers, you could argue that the site owner's intent of only allowing certain crawlers has not been made explicit. In that case you'd have a chance against the claims from the site's owner.

On the other hand Google could possibly sue you for using the user-agent "Googlebot".

The important question here is: would they? If you stay under the radar no one -even the courts- would bother.

PS: I am only a law student, I am not familiar with any laws/regulations/precedents governing this specific issue. I think from the site owner's perspective it's a grey area. From google's perspective brands and ip are established concepts in law. This is a student's very personal opinion at first sight, take it with a grain of salt :).

comment 9y ago · link · parent

Proud x201 user here.

Wifi works perfectly, suspend/resume, docking/undocking too.

As for battery life, it was around 19W/h when I first switched to linux after FreeBSD. After installing tld and powertop it is stable around 10.8-12W with wifi enabled.

Maybe you might want to try a recent distro, I'm using Fedora and I really like it.

Even my 3G usb dongle worked flawlessly with zero config.

PS: I remember having a flaky wifi under Debian 8, but that was due to an old version of wifi driver. It has since long been fixed in every distro I tried -including Debian-.

PS 2: My laptop is pretty old (x201), so your mileage may vary. You might want to check out thinkwikis for further info.

1
181920
23