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 6y ago · link · parent

You definitely can, most of the times you can’t collect all the hours you put in. Client pays what it pays and the rest is written off. It’s the senior’s job to manage the ratio of billed hours to collected hours.

If you can and want to bill more to a client, you simply review the matter covering more depth or let the work be done by more senior lawyers who have a better hourly rate.

Big-law collects all the client is ready to spend on legal services. The more you spend, the better service you’ll get. If you suspect foulplay in billables, review the job narratives and raise a complaint.

302.

A BNF Parser in Forth(bradrodriguez.com ↗)

1 points · by terminalcommand · 7y ago · 1 comment

303.

Oracle Solaris 11.4 Released for General Availability(blogs.oracle.com ↗)

4 points · by terminalcommand · 8y ago · discuss

comment 8y ago · link · parent

> I don't really speak legalese, but does permit include having to then make all of your own users agree not to to avoid a penalty?

As a service provider, you will need to inform your existing users about this restriction and put the restriction in your user agreement for new users. After that you can relax, if any of your users publish benchmarks, you'll have to warn the user and then take the benchmarks out. You don't have to actively search for violations, but if you notice one on your own, or you get notified (for example via email), you'll need to take it down.

If we're not allowed to share the results of benchmarks and comparisons, the only action that comes to my mind is:

1) Never buy Intel again, if presented with a viable choice!

2) Prepare and share ready-made benchmarking live USBs/utilities, so people can see the horrors Intel has caused them without violating the license.

3) Dump benchmarking results online from countries, where the Delaware courts mentioned in the article has no jurisdiction upon.

4) Get every copy of this microcode license prepared for different countries, sue the license in each of them, and have Intel struggle with it.

comment 8y ago · link · parent

I vaguely remember my high school philosophy teacher telling us that Kant had lived freely in his early years, he drank a lot, partied all the time. But after reaching a certain age, he arrived at the conclusion that he had a duty in the society, so he organized his life rigidly. He told his servant to wake him up very early every day at the same hour. He worked and ceased partying. He carefully planned all parts of his life, for example for enjoyment he invited friends to his house for dinner.

I think taking Kant as an example could be flawed here. He didn't organize his life in routines to benefit himself, to make him more productive/happy etc., he organized his life to fulfill his duty and I personally don't think that he was happy in doing that.

comment 8y ago · link · parent

A quick search lead me to a program called zim-wiki [1]. It looks simple enough to be easily learned.

[1] http://www.zim-wiki.org

comment 8y ago · link · parent

Could you please elobarate a bit, maybe give some examples?

I'd be interested to gain some insight into why you find Leo's UX pure garbage and how it should have grown over the years.

comment 8y ago · link · parent

Mark Russinovich's Jeff Aiken Trilogy. If you're looking for a quality bestseller similar to Dan Brown books.

Zero day, Trojan Horse and Rogue Code are all excellent novels. Some common themes include computer virus epidemics, cyber armies, cyber warfare, dangers of an overnetworked but undersecured society

comment 8y ago · link · parent

Why would you think that Turkey would retaliate against Trump's tweets by taking down reddit and GNU.org? I don't think that the Turkish government has nearly enough technical knowledge to pull of something like that. That is the problem with Turkey right now, it seems to me that the government doesn't want to work with qualified people.

comment 8y ago · link · parent

Thanks a lot for your detailed and motivating answer. Actually I know quite a bit about programming. But generally try to hide that I'm highly interested in computers. Because if anyone notices, I get asked why I chose to study law in the first place. Over the years I learned not to look like a computer nerd and how to look and behave like a lawyer. I also had some problems with interpersonal communication, but through trial and error I've become socially adept and now I can get things done.

It is really nice to hear that my skills and interest in computers won't go wasted in practicing law. I hope my firm also gets offered an ML tool where I can show my skills. For now I can navigate the document management systems with ease, use some word add-ins (contract companion etc.), I guess that'll change in time and I'll have access to more sophisticated tools.

comment 8y ago · link · parent

Slightly off-topic but I wanted to ask why and when did you start studying CS after law.

I recently graduated from law school and now am an intern at a law firm. I have a strong interest for CS, and it bothered me for a long time that I went to law school instead of CS.

I'v overcome those feelings over the years and dedicated myself to become a lawyer. But your post caught my interest.

I'd be glad if you could share some of the story behind you studying cs after getting your law degree.

comment 8y ago · link · parent

I'd imagine doing this on a daily basis would require some discipline.

I also had similar thoughts in college. I planned to scan my notes from time to time and thereby have them digitized. I never went through with it. The system that worked for me was to write a date on each paper, keep all notes in a stack, and organize them into topics in chronological order when needed.

I always struggle with physical organization, whether it be tidying up my room, or planning my days. I hope this will improve with age, but for now I try to work around my deficiencies. For example in college I never had the discipline to study everyday, although I almost never skipped a class and I always took notes. It wasn't that I wasn't interested in the things thought, but I just couldn't. I also cannot tidy up my room, although I know it would benefit me hugely. I always postpone getting a haircut, washing clothes etc. to the moment when it becomes absolutely unbearable.

So I don't think I'd have nearly enough willpower to take all my notes physically and then daily type them into the computer. In business life what I can do is to create a virtual filing system for organizing notes. For example I could divide the year in 52 weeks, open a folder for each of them, inside these folders I could open other folders for projects. I could then symlink those weekly folders into other directory listings for Clients and Projects etc. By doing this minimal work, I'd have a working system that would keep me out of my naturally inclined chaos. During internships I devised a similar system for email, and it had worked remarkably good.

comment 8y ago · link · parent

Maybe the solution could be to keep them in both versions, digital one for reference and a physical one for learning and retention.

For the digital one, one can just copy and paste, use abbreviations, templates etc. so it doesn't take a lot of time.

Obviously the physical notes are only necessary in learning new and hard material. For example one might keep a notebook for C programming, Assembly, Basic Algorithms, Discrete Math etc.

I must admit that I've never tried to print my digital notes, which I keep in org-mode and export to pdf using tex. I guess that could also help for studying. You could take notes with hand, highlight things, put stickers on it etc.

I am planning to purchase a laser printer with refillable toners to print books, papers and my notes. I don't know why but having a physical copy of things help me learn them much easier. It could be that it is the only way I learned in school.

On a sidenote, during highschool I could only write essays with real pen and paper. But now I'm used to firing emacs and writing prose. Maybe I could also train myself to read textbooks on a computer efficiently.

comment 8y ago · link · parent

Instinctively I always studied computer languages this way. Typing the code makes you also think about it, it is also much more easier to try your own versions.

I'd argue that it would be even better, if I wrote the program samples with pen in a real notebook. Using different colors and imitating syntax highlighting could be even better.

I've been planning to get a physical programming/cs notebook for years.

comment 8y ago · link · parent

You might want to check out tmux. I've changed my terminal to "st -c tmux" and every time I open a terminal window I get access to multiple frames, (nearly) infinite scrolling, window management and more.

316.

Optimal performance with two or more computer screens [pdf](bakkerelkhuizen.com ↗)

2 points · by terminalcommand · 8y ago · discuss

317.

The return of Spectre(zdnet.com ↗)

3 points · by terminalcommand · 8y ago · discuss

comment 8y ago · link · parent

I think the interest in PCs grew, especially amongst the younger generation. With the new budget CPUs offering real good performance (a 8th gen i3 can offer approximately the same performance as a 7th gen i5), you can get much higher performance for your money than laptops. The price gap is much more evident when it comes to gaming.

Among my friends in their 20s, most of them want to build a PC. It could be the case that my generation didn't experience the growth and the decline of the PC market and we don't appreciate the value of laptops yet. The hype for building a custom PC certainly exists.

But from a consumer's standpoint, I also think laptops win in most cases.

Correction: Thanks to the reply, I noticed that "PC Market" statistics included both Laptops and Desktop PCs. I am leaving this post as is, as it represents my ideas on why there is still a -possibly growing?- interest for desktop PCs.

comment 8y ago · link · parent

Linux has improved a lot in the last couple of years. Even on state-of-the-art hardware you can expect reasonable support if you choose a distro that uses a recent kernel (ie. Manjaro instead of stock debian).

I've been using a 8th gen computer for a year and I haven't had any problems. On the contrary the hevc hardware decoder/encoder works on linux, but I couldn't get it to work on Windows.

On the other hand Windows looks more polished than KDE and GNOME.

comment 8y ago · link · parent

I am in no way an expert on these things. But it could be the case that you have anxiety. The 'weed' takes it away and allows you to program.

Maybe you could try to lower your coffee consumption and drink relaxing teas instead. You could also take a few days off work and try to figure things out.

What is your heart rate like? How much do you sleep? How many cups of coffee do you drink in a day?

If you're heart rate is constantly up and you sleep very little (4-6 hours) and you drink more than 4 cups of coffee a day, my opinion would be that you're suffering from anxiety. If you treat the symptoms (without weed ofc :) ), the underlying physical stress might go away and you'll notice that you can program whilst not being under the influence.

Best of luck

comment 8y ago · link · parent

Static sites are great for simplicity, but IMO we should be striving for more interaction not less. If I open a blog I want to be able to host comments and not rely on email or third party services.

Maybe we need a hybrid site generator. We could still write the content as seperate text files, but we would have the ability to integrate comment sections, user profiles etc. seemlessly.

Our posts could be parsed and recorded onto a database, for better indexing, search, analytics and reducing redundancies.

The generator would come with a web server and handle everything we throw at it. From ssl to comments to databases.

That's the future I dream of. Not full blown CMSs, but not web 1.0 either.

comment 8y ago · link · parent

Thanks a lot for the heads up. This seems to be exactly the thing I was dreaming of.

If anyone is interested https://github.com/Tribler/tribler/wiki link contains more information.

I'm surprised I didn't hear of this project before.

comment 8y ago · link · parent

I seriously think we need torrent trackers solely residing on ipfs.

The popular trackers (such as ptb) remove content very easily. It is getting really hard to find tv shows on the net.

What we need is a completely anonymous distributed solution.

We won't need google then.

comment 8y ago · link · parent

I found the link again, apparently Rob Pike had said:

  The key point here is our programmers are Googlers, they’re not researchers. They’re typically, fairly young, fresh out of school, probably learned Java, maybe learned C or C++, probably learned Python. They’re not capable of understanding a brilliant language but we want to use them to build good software. So, the language that we give them has to be easy for them to understand and easy to adopt.  [1]
But I think we should also keep Rob Pike's experience and wits in mind. It was probably intended as a humble witty remark. If you consider how complex concurrency is, and how Golang has made it simple with a single keyword to spawn coroutines (go) and a straightforward data structure (channels), I think he is right to say that Golang is easy to understand and easy to adopt.

[1] http://nomad.uk.net/articles/why-gos-design-is-a-disservice-... citing the quote from http://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2014/Fro...

comment 8y ago · link · parent

That is exactly what I felt. Even while using Flask I was put off by having to rely on magical decorators @app.route() etc. While I was experimenting with ruby I had really enjoyed toying around with the cgi module.

Nowadays I want to dig a little deeper into uwsgi with Python.

Maybe at the end of my journey, I will reach enlightenment and get to the point where I start seeing the generators as serious time savers. For now I feel like, if I want a generator, I'll build one :).

comment 8y ago · link · parent

That's true Golang does not come with automatic session management, authentication, csrf etc.

But if you look at it, csrf is just a hidden form value involving a token injected into the page. It is not hard to implement. In that sense Flask doesn't have csrf proection either.

Session management on the other hand could be troubling, but in the end they all rely on cookies: if I take a look at https://golang.org/src/net/http/cookie.go , I can easily make sense of it. But I can imagine the need for a higher level library for session management.

There is something called gorilla toolkit which has session management, but you're right it isn't included in the standard library. Golang's own template engine is also very primitive.

comment 8y ago · link · parent

I would argue that it's simplicity. I believe I've read somewhere that Golang was designed with junior engineers in mind. They wanted to create a language that young engineers could learn easily yet cannot make a lot of mess due to its simplicity.

They baked all features necessary right into the language. You get a http server, ssl support, templating engine etc. right in the language. You also have a database agnostic database driver right in the language. Python is also similar in many ways, it comes with "batteries included". But in my experience go standard library is written in a crystal clear straight-forward way. My workflow (and I believe the workflows of many programs) always involves jumping to the source of go standard library and just reading the code.

Django on the other hand has layers and layers of magic, you've got an ORM, modules etc. etc. Some people might like to let a framework handle everything, learn it inside and out and use it. But for other people like me, with a short attention span, django seems subjectively boring. Maybe if I didn't program as a hobby and it was my job to learn django I might have taken the time and learn it.

I started the django tutorial twice in the last 2-3 years. Both the times, I got bored and left. My subjective opinion was that it didn't teach me anything besides how to "generate" a site with Django. OTOH I had much more luck with Flask. Immediately after following the tutorial I was able to write websites and deploy them.

I think it's a matter of taste. I don't like big frameworks, I like to keep things very simple and minimal. My favorite OS of choice is OpenBSD, my favorite languages are C, Golang and Python. I don't like to use IDEs, I use Emacs, even Emacs feels a bit bloated sometimes.

From time to time I get the urge to try one of the big frameworks like Rails and Django, but I never quite got them.

comment 8y ago · link · parent

Linux doesn't cut it for me after I've tried a BSD. It isn't as bad as Windows, but BSDs have a certain kind of elegance. And because the things you can do on them are limited (browsing and coding) and there aren't as many packages you are much more focused.

comment 8y ago · link · parent

Ircdocs.horse is an excellent resource but it is unfortunately not complete.

Irc also has a lot of -to me at least- obscure specifications for example involving channel modes. The functionality differs from server to server.

I have the impression that most irc servers are operated by programs with old codebases coded in C. New client implementations are continuing to get written, but I do not see a lot of server implementations around, probably because it is complicated to write.

comment 8y ago · link · parent

IRC protocol is actually really simple, you just have commands and parameters. AFAIK it is not unusual for IRC servers to implement extra functionalities through bots.

For example to provide authentication many servers provide a bot called NickServ. There could also be a mechanism called ProfileServ that implements these functionalities.

The beauty of IRC is that you can open telnet, connect to an IRC server and actually be able to chat by typing raw commands.

The problem with IRC is that there is no standard specification, and there are many many edge cases. Therefore in my experience most IRC clients implement a small subset of the IRC protocol.

I've been trying to write an irc client in Go for quite some time (https://github.com/terminalcommand/irc-v2). It's been a fun experience, but there is still a lot to cover.

1
101112
23