News for hackers. Stuff that matters.

joepvd

Re:Fascination of Awk on Friday March 24, 2023 @07:05AM (#35287473)
awk is amazing. One pattern I often use is:

$ query_something | awk 'generate commands' | sh

For larger programs, I wrote and use ngetopt.awk: https://github.com/joepvd/ngetopt.awk. This is a loadable library for gawk that lets you add option parsing for programs.

Re:Ask HN: Where are the GUI libraries that aren't bloated? on Saturday April 20, 2019 @06:56PM (#19709443)
I have had fun with zenity[1] (for use bash scripts) and zenity-inspired libraries like dlgs[2] (if golang is your thing).

[1]: http://manpages.ubuntu.com/manpages/bionic/man1/zenity.1.htm...

[2]: https://github.com/gen2brain/dlgs

To try out a procedure on one dataset amounts to a data point. You need to process a bunch of datasets to establish the performance of the procedure under study.

I though ML folks would have the statistical background to know you cannot infer a true statement from a single occurrence?

> Just see who the US president is.

Think it is time to update Godwin's Law.

Re:Ask HN: Do you keep a developer diary? on Sunday May 21, 2017 @07:21PM (#14389801)
Yeah makes sense

Maybe an extra advantage is that you are not tempted to rewrite everything all the time, as I am doing with my attempt of topicaly organized notes.

Append-only might really be helpful. Experiment starts now :)

Re:Ask HN: Do you keep a developer diary? on Saturday May 20, 2017 @04:55PM (#14384302)
Is there a reason why you made the structure of the notes depend on time? Aren't notes that are about the same topic getting very far apart from each other?

I think searching works well when you are as month or maybe three into the project. How does this work like after five years?

Re:Ask HN: Do you keep a developer diary? on Saturday May 20, 2017 @04:47PM (#14384272)
There are different targets for notes in VCS and personal notes. In VerySpecificBug759 you do not want to read about how to get the code to build at all. The context of discovery has a lot of (necessary!) detours, cul-de-sacs, and mis-interpretations.

The context of discovery is often not relevant for the context of fix.

Sounds like you have the possibility to get yourself a new project and have freedom of movement.

Given this liberty, you have two choices: 1. Find/create the most awesome project. Don't care about where. 2. Go to the best town, travel, or whatever, and fix your employment there. Look into remote work.

This is one of the rare moments in life where you are free to choose. Do so wisely.

Ask HN: Most awesome bug reports

Half of the bug reports are better than the other half. I would like to know what you would consider part of the .1%-bug reports you have encountered.This one qualifies for me: http://lists.gnu.org/archive/html/coreutils/2014-08/msg00012.html

( Read More... | no comments | 2 points | on HN )
Re:Buku v3.0 – Command Line Bookmark Manager on Wednesday April 26, 2017 @03:52PM (#14206368)
Just skimmed through the README, and I stored it in my list of well-documented projects. Well done!
Re:The Benefits of Solitude on Friday April 21, 2017 @07:52PM (#14170332)
That is an awesome video. Thanks for sharing!
Re:2038: Only 21 years away on Tuesday March 21, 2017 @07:47PM (#13927359)
You have a reference for HTTPS problems with skewed client time?
Re:The no excuses culture on Saturday March 11, 2017 @06:05PM (#13847789)
> Blank is talking about acknowledging and dealing with risks early.

True that. He also mentioned firing people for not complying with his new rules several times. And also that he did. Those seem like the more substantive acts of his reign, as communicated in this post.

Whoah. Would love to see that tag feature ported to envs I have made myself familiar.
Re:Mathematics for Computer Science [pdf] on Monday March 06, 2017 @03:14AM (#13801403)
It really is a shame that this is a rational solution.

University text books should be material to get back to later in life, when confronted with a related problem. Part of university education should be a complete book shelf of well-understood books.

This just exemplifies the new nature of university education: An ephemeral experience where the most durable result is debt /cynisism.

Re:Why Socialism for the Rich, Capitalism for the Poor? on Monday February 27, 2017 @06:25PM (#13749561)
Let's reword your statement:

> Because the average employee does not take an active enough role in management decisions.

Think on the politics that are closer most people in their day-to-day lives, at the workplace, active engagement with general policy is disencouraged and might be dangerous. Meaning, most people refrain from engagement with "management material." Being trained like this, it naturally extends to governmental politics.

Re:The Awk Programming Language (1988) [pdf] on Sunday January 22, 2017 @05:41AM (#13454597)
> beyond what the tool was intended for

Not sure what that would mean. I think the tool was designed to be a user's programming language. I liken to think that `awk` was the Excel + VBScript of its days.

Re:The Awk Programming Language (1988) [pdf] on Saturday January 21, 2017 @05:44PM (#13452506)
Some points:

* Cannot have an array as an input to a function

* Cannot return an array from a function

* Meta-programming or pointers are only (barely) available in gawk

* There is an `@include` statement for `gawk` that is not part of POSIX, and there is no name spacing involved.

* Functions names can only exist in the global name space

There are some reasons somebody felt an urge to create perl... Still loving awk, and using it every day for text processing jobs.

Re:The Awk Programming Language (1988) [pdf] on Saturday January 21, 2017 @04:30PM (#13452257)
I love awk for text processing purposes. When analyzing log files, I often drop down into awk-mode to check the exceptional constellation that is currently under investigation. Very powerful to be able to say after three minutes: This happens in 0.5% of the cases.

Bought this book 2nd hand online. This book on one day costs $150, and on the next $2. The first bit has been an awesome read, never got to read much more. Tend to read much more from $READER. Sure this PDF will get me going again!

Re:Is Europe Disintegrating? on Sunday January 15, 2017 @06:03PM (#13406949)
Resident of Berlin here. Cannot dismiss this statement completely. At the height of the crisis in Spain, there was a noticable influx of Spanish people in a first-move-then-job situation. Most of them did not speak German, quite some also had troubles with English, despite education.

The Spanish presence is less visible now, I am guessing because some left, and the others got better integrated. Would not be surpised if some of the PhDs are prepping a few dozen of meals each evening...

Will ask my spanish friends soon.

The resource that has been instrumental for me to move up from beginner-that-generally-can-work-out-things-with-a-lot-of-random-tries, to someone who often has things right on the first try, and if not, have a clue of what is going on , has been the following book:

Classic Shell Scripting Arnold Robbins, Nelson H.F. Beebe

Recommend it to anyone with a basic understanding and a will to learn more. It also really doubles as a rich information resource. Cannot recommend it enough if books are your thing.

Re:Why does software development take so long? on Wednesday October 26, 2016 @04:38PM (#12800274)
It does not happen that often that one hears: "I don't like the looks of the building when it rains. Replace the facade, pretty please!"
Re:Ask HN: What do you use for Log Management? on Wednesday October 12, 2016 @12:18PM (#12694189)
Ha! No, I did not. I will, thanks for posting!
Re:Ask HN: What do you use for Log Management? on Tuesday October 11, 2016 @07:44AM (#12683420)
Using Papertrail as well, but I really miss my terminal and awk, grep and less here. Or even regex search. I know I can download the archives, and I do that, but that puts the output of all in one file. Saving different topics in different files just makes sense, IMHO...

Still getting used to the ways of the cloud, I suppose...

Re:SVG has more potential on Monday September 26, 2016 @05:32PM (#12585766)
> a malicious svg witch

You got me interested there ;)

To speak with Debord: Punk has been subsumed within spectacular society.

Interestingly, Debord seemed to have proposed a life style of Derive, aimless wandering, following one's desires. To me, this resembles the mind set that he tries to attack. Both tell individuals "You are a snowflake! Follow your inner desires!"

Maybe the more during counter life style against the fads and suppressions of the spectacle society, is a devotion to objectivity and naked facts.

Re:A beginners guide to thinking in SQL on Monday July 11, 2016 @07:46PM (#12075661)
Fully agree.

Why is it, that SQL generally is so poorly commented? Almost every time I see an SQL script, I cringe for the poor formatting. It's generally not like the writers of these scripts are poor at formatting other code...

Older »