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

Learning from Prism in US, I think it's highly possible. Remember the state also has control over ISPs and internet access. They can inject binary into files you download. It is very unlikely that you operate in an air-gapped computer. I've been learning some reverse engineering lately and the possibilities for injecting malicious code seem endless. If such a practice happens, people will have to live in paranoia.

comment 10y ago · link · parent

Yes, viruses in Wine actually happened.

That is the reason I'm still dependent on VMs. I don't want to compromise my main OS.

For further information: http://askubuntu.com/questions/562388/do-wine-viruses-only-w...

comment 10y ago · link · parent

You might be interested in this amazing tutorial. It shows how to configure emacs to download packages from melpa.

It helped me a great deal, and since then I never looked back.

Hope we can convert you to the church of emacs :P

https://www.youtube.com/playlist?list=PLxj9UAX4Em-IiOfvF2Qs7...

comment 10y ago · link · parent

I always thought autocomplete suggestions and snippets preserved brain cycles. IMHO if you prevent developer exhaustion your code gets better-looking and more maintainable. But then again I'm a single developer, working on personal projects...

comment 10y ago · link · parent

A game is not a movie. Its core value is interactivity. You already pay a high price for purchasing the game itself. In addition to that the game company gets free advertisement. Fining someone or taking their content down for just streaming a gameplay is unproportional.

Furthermore, the person who is playing the game is creating content. The streamers usually talk and show their image to entertain people. If the video game company is allowed to take down the video, or block his/her entire channel, that ought to be a clear violation of the streamer's rights.

Law itself is ancient, it has perfected its concepts and continues to evolve. The issues with digital rights aren't hard nor new to law, all disputes in this area could be solved just by following basic law principles case to case. The legislation has always been hesitant to make just laws. Rights are won with fights and struggles.

Too many people are ignorant on the matter of digital rights. One could argue every point of view with a harsh relativism. People forget easily that Slavery was once legal, women not allowed to vote... The people ignorant back then resorted to reasonable but unjust arguments too. In the end it's our world and our rights.

comment 10y ago · link · parent

Made with STDERR I got this one!

comment 10y ago · link · parent

I wish I had chosen github pages as my hosting platform too. Instead I bought a shared hosting on cyber Monday. I'm using middleman.

Coding the stylesheet for the blog and getting the whole site working was certainly fun but writing handcoded markdown and publishing via the shell surely requires some getting used to.

My advice: use github pages for your blog to avoid the guilt of paying for hosting services that you don't need. http://unixheaven.com if anyone's interested.

comment 10y ago · link · parent

I think you just invented Realism in programming. The programs are written by programmers not academics. There is no perfect way to code something. We should stop the dogma fetishism. Structural/OO/Functional programming theories have all their pros/cons but it can't be proven that one is better than the other. So instead of committing ourselves to the one true cause, we should focus on writing code that achieves its purpose. Why shouldn't we use goto statements at all?

PS: I wanted to write "programming is not sacred", but I couldn't. I only use emacs and open source software. I love computers religiously and think that there is something magical about them. So I admit to a certain extent of hypocrisy. We computer geeks are obsessive people.

comment 10y ago · link · parent

I can understand what you're saying. If you've programmed with Visual Basic and assembly you're already familiar with most of the concepts. I would suggest looking at the website learnxinyminutes.com. It will give you an overview of current languages. As you haven't been programming for along time I would suggest picking up a language that is easy to setup. I would recommend perl, after a short introduction you can download and install every module you like from cpan.org with a single command and start solving puzzles.

Coming from Visual Basic and assembly I think you will struggle with object orientation and functional programming at first.

My advice get a Linux machine or vm, install cpanm. Have a look at perl at learnxinyminutes and start coding. You could write a script with WWW::Mechanize that scrapes news from HN. BTW I am currently fascinated by win32 assembly programming and reverse engineering. Your old-school knowledge is still valuable. Continue reading HN and coding fun projects. You'll catch up in no time.

640.

Relation of Prolog and SQL [Stackoverflow Question](2010)(stackoverflow.com ↗)

1 points · by terminalcommand · 11y ago · discuss

641.

Understanding Ruby Blocks, Procs and Methods(2006)(eli.thegreenplace.net ↗)

1 points · by terminalcommand · 11y ago · discuss

comment 11y ago · link · parent

T1D for 10 years here, I'm now 20. The longer you live with T1D, the risk of getting a complication worsens. The sad fact is you can't control it all the time, the hormonal changes, your stress levels etc. all have an impact on your glucose levels. Especially if you are young, you want to show people that you're not a disabled person, that you can work harder and achieve the same if not better results than the others. The immediate result of this is that your glucose levels fluctuate, your health deteriorates. But complications are in your opinion worse consequences that could happen to you. You are adjusted to seeing blurry, feeling dizzy, vomiting, losing weight from time to time. You generally feel sick. You can cope with that, but having a permanent disability, like going blind, losing a foot... You suspect things, but ignore them because you don't want to face reality, you know that something is wrong but you think you can handle it, because you've been feeling sick all your life. The doctors do know what complications may arise, but living with T1D, they have no clue. You always need to be conscious of lows, aware of highs. After a point, if you're a teen you just ignore it. Low blood sugar can kill you immediately, but highs, you can live with them. My best advice would be: eating less carbs, getting blood tests and eye examinations regularly and hoping for the best. I wish I had the willpower to follow these all the time.

comment 11y ago · link · parent

Well they could use an ordinary pipe, but they would have to group the later expression in parantheses. In bash the | creates a fork, so if you try: echo "sdfsdf" | read sid && echo $sid you get a blank line, but if you try: echo "sdfsdf" | (read sid && echo $sid) you get "sdfsdf" |& is an abbreviation for >2&1 | . In zsh the grouping isn't needed, the expression works out of the box.

For more information on the subject: http://stackoverflow.com/questions/13763942/bash-why-piping-...

644.

Hackershelf – Selected Books for Hackers(hackershelf.com ↗)

4 points · by terminalcommand · 11y ago · discuss

comment 11y ago · link · parent

I studied the line read _ _ sid < <(2>&1 strace -esetsid setsid sh -c "exec $PROGRAM <> /dev/tty2 >&0 2>&1 ")

<( is an example of process substitution, in case anyone is interested. Basically it feeds the stdout of the subshell into the stdin of the read (previous) command. Here is a detailed explanation: http://www.tldp.org/LDP/abs/html/abs-guide.html#PROCESS-SUB

comment 11y ago · link · parent

Your site's css link is broken.

647.

10 Tools to Spice Up Your Shell Scripts (2010)(cyberciti.biz ↗)

3 points · by terminalcommand · 11y ago · discuss

648.

Python Decorators in 12 Steps (2012)(simeonfranklin.com ↗)

179 points · by terminalcommand · 11y ago · 32 comments

649.

Technology and Pleasure Considering Hacking Constructive(firstmonday.org ↗)

2 points · by terminalcommand · 11y ago · discuss

comment 11y ago · link · parent

Seconded. Almost all law books I possess have numbered paragraphs.

651.

Notes on How Parsers and Compilers Work (2007)(parsingintro.sourceforge.net ↗)

40 points · by terminalcommand · 11y ago · 1 comment

comment 11y ago · link · parent

Not exactly. I want to be able to see step by step what I'm calculating. When you're learning programming, you write a very small block of code, (e.g. getting inputs, printing a welcome screen) and then build it from there. With math assignments you have to solve the problem entirely and then check the results. Wouldn't it be better if we could graph every step of our solution, write small loops to test out different values and observe their effect? The math questions I encountered at school were based on tedious and often mysterious manipulations of numbers. Even though I memorized every formula I would still fail. With computer programming you don't have to trust anything. If say you want to learn about pointers, you write some code, get a segmentation fault. You learn from your mistake instantly. If you still don't get it, you read code examples, modify them and see the results instantly. That's what I mean when I say math seriously needs a REPL. In english classes teachers take pupils to the computer lab and give them online exercises. The pupil can fill in the blanks press a button and check his/her answers instantly. Why don't we do this with math? Computers give the pupil the chance to try out different things. If you get stuck, you can always ask it to your teacher.

653.

Factor – A Practical Stack Language(factorcode.org ↗)

76 points · by terminalcommand · 11y ago · 7 comments

comment 11y ago · link · parent

I had always trouble with math at high school. I managed to pass in the end, but I never really got it. I think math should be thought like programming. They should present you with a problem and then show you a cool way to solve it. My math classes consisted of memorizing formulas and algorithms for standardized tests. I learned about hyperbolas, matrices, integrals etc. but none of them stuck with me. One of the few things I remember is basic trigonometry, because we used to do practical stuff like getting an angle from the ground and length from the building to calculate a person's height. Moreover, I think math seriously needs a REPL. At my math exams(not tests, written ones) I never could calculate the solution right, I would always make a mistake. We need to acknowledge the fact that we are human and humans make errors. We need to teach high school math in a hackable, practice-oriented way. The current math curriculum excludes pupils who think different. If you can't solve it in the traditional way, you're doomed. But you're actually smart and can understand math if you learn it by doing, hacking, programming.

comment 11y ago · link · parent

I've had type 1 diabetes for 9 years. In the first 3-4 years my liver continued to produce glucagon. I experienced highs resulting from the down syndrome over night. But after that it just stopped. Now I automatically wake up if my blood sugar is below a certain threshold. It's a survival instinct. Sometimes though it gets very scary. I can't scream, know that I need to get up and eat something, but I just can't. The downside is that I am very paranoid. I wake up at least once a week at night (around 3 am) and check my blood sugar levels. Even though they are usually in the expected range, I still get that feeling of 'being low'. If I don't act on it, I might die.

comment 11y ago · link · parent

I've had type 1 diabetes since I was 10. With even a semi-automated solution we would greatly prevent the short and long term complications. The biggest issue is that brain runs on glucose. When we can't manage our levels, the brain shuts down. In order to prevent this we grow up paranoid, watching for every sign. Stress, faulty needles etc. all effect us. Knowing that we can theoretically prevent nerve damage (almost every person with 10+ years diabetes gets it) and other serious conditions (kidney failure, blindness) and practically not being able to do anything is very depressing.

comment 11y ago · link · parent

I wish you could experience how much this reassurance meant for me. Living an isolated hacker life can lead to harmful presumptions such as me thinking that I had to give up my dream of continuing to work with computers 'cause I couldn't study it at a Uni. Now I realize how unreasonable and childish that was. Nevertheless, this very idea caused a depressive episode for more than a year. I am leaving this comment here because I know that there are other hackers out there struggling with the same problem as me. The solution to it can be as brief as the few sentences in your comment. I am sure that I will bring additional colour, learning and stories to the hacker community. Thank you again.

comment 11y ago · link · parent

After kicking and screaming for a while, I do find the law degree interesting. I think this issue is a turning point in many hackers' lives. I feel much better now. Thanks for all the help and support you guys showed. Especially thank you for making me realize that nothing is lost by not majoring in comp-sci. It was really an existential paradox for me.

comment 11y ago · link · parent

Murdock mentions that he was studying management at the time he got into Linux. I couldn't find any further information about it. In Wikipedia it says that he studied computer science in Germany. At some point in life he changed majors. I'd very much like to read a post about that decision.

I share the love of computers. I spend all my free time in front of computers, programming and reading. It's been like this for my whole life. Due to a twist of fate (couldn't get a scholarship) I ended up in law school. I have no interest in anything beside computers. I can't live without them, but it's killing me to know that I can't study computer science. Any suggestions??

660.

Ruby User Guide(rubyist.net ↗)

1 points · by terminalcommand · 11y ago · discuss

1
1920212223