Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
101914
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
Show HN: Sed-based YouTube dl
4 points
by
101914
9y ago
|
0 comments
2.
▲
by
101914
11y ago
For shells that lack echo -e and printf (yes, there are such shells; at least, I use one): echoe(){ local a=${#1}; echo $1 |dd bs=1 count=$a;}
3.
▲
by
101914
11y ago
Indeed. My apologies. Instructions to get the URL to the Hartl draft are the same, except: Substitute "learnenough.com/command-line" for "conqueringthecommandline.com/book" Script will work just the s
4.
▲
by
101914
11y ago
Use the command line to get the URLs for each chapter? Go to conqueringthecommandline.com/book Save the page source Insert the filename into the script below Alternatively, omit filename and pipe the source of the page to the
5.
▲
by
101914
11y ago
I guess journalists read HN looking for stories? I was suprised to spitbol mentioned on HN and now there is a story on Vice news? Alas, the interviewer asked no technical, interesting questions. There is a portable assembly language called
6.
▲
by
101914
11y ago
Original source: http://int80h.org/bsdasm/ My recollection is this was published on the author's site years before being added to the "handbook" on the FreeBSD website. I could be wrong. Perhaps check
7.
▲
by
101914
11y ago
I have a question: In his analogy, what represents the hardware and what represents the software? Wouldn't the change from horses to combustion engine be a change in hardware? And software might be represented by something like the r
8.
▲
by
101914
11y ago
This is from 2012. He's wrong of course about being the only user. I love this software, along with k/q. I admire the work Mr. Shields has put into this project. I especially like the use of musl and provision of static binaries.
9.
▲
by
101914
11y ago
Beautiful response to a recurrent misunderstanding. "Shell languages are defined by their terseness." It is common to see people put a layer of verbosity on top of the Bourne shell (or system(3)) to make "a new shell". I
10.
▲
by
101914
11y ago
I don't know. It is a silly term. However I would be willing to bet you are using a bootloader and a kernel written by people who are comfortable with assembly language. Call them real programmers or something else.
11.
▲
by
101914
11y ago
Muzzam's site: http://alotware.hol.es "Q: Why did you choose Assembly? A: It is easy, simple, and the language of real programmers." Will he still believe this when he's older? I hope so. Because it is the t
12.
▲
by
101914
11y ago
I wrote my own. I can change it faster when YouTube changes something than waiting for someone else. YouTube makes downloading very straightforward. No need for Perl, Python or any interpreter except sh. # requirements: # sh, sed (
13.
▲
by
101914
11y ago
Here's a portable version for those of us who do not use Bash: a=$(printf '\xb%-47.s' \ |nc -uw1 ntp.metas.ch 123 \ |exec xxd -s40 -l4 -p) b=$(printf %d\\n 0x"$a") c=$((b-2208988800)) date -r$c The
14.
▲
by
101914
11y ago
Q: "... why aren't you using youtube-dl?" A: "holy crap that is convuluted" I do not use Python nor a Javascript-enabled web browser to download video. Both are big, convoluted, slow(!) and unnecessary. But I do agr
15.
▲
by
101914
11y ago
For me there are generally 3 steps to the process of watching a youtube video. 1. Get the video id. Retrieve HTML containing youtube /watch?v= urls or other urls that contain the video id. Extract the urls from the HTML or other mark
16.
▲
by
101914
11y ago
Thanks for this.
17.
▲
by
101914
11y ago
The shell I use on x86 returns the value in ax as the shell variable $?. I have always thought about the idea of a shell that could return values from other registers. I guess there are reasons this would be a stupid experiment. Or maybe
18.
▲
by
101914
11y ago
Opinion: Some not so quietly; in any case, most of them are not worth reusing. But there are exceptions, e.g., stralloc.h Opinion: Personally, because I strive to learn more than to be "productive", I prefer languages that force
19.
▲
by
101914
11y ago
Appreciating C by learning assembly
20.
▲
by
101914
11y ago
Reminds me of dictzip. http://sourceforge.net/projects/dict/files/latest/download
21.
▲
by
101914
11y ago
Yes I have read it. I too am passionate about text mode, hence the quote. Is that not what you assumed?
22.
▲
by
101914
11y ago
"I'm ... passionate about text-mode in general."
23.
▲
by
101914
11y ago
"In summary, the answer is to write lean, efficient and small pieces of code..." What if the user could avoid "non trivial" programs, i.e. the ones that purportedly make it impossible to avoid shared libraries? To put it
24.
▲
by
101914
11y ago
Ha. Initially this quote got upvoted. Then it was downvoted. Is this a controversial subject?
25.
▲
by
101914
11y ago
"Who thinks in terms of CPU registers these days..." That's pretty much the only way I think these days, but I guess assembly does not qualify as "modern language" even though it can and is used to control the lion&
26.
▲
by
101914
11y ago
"Some software just don't need to change continuously."
27.
▲
by
101914
11y ago
My kdb is behind haproxy; just using kdb's built-in HTTP/1.0 webserver for now. I am still experimenting with stored procedures and haproxy's regexp filtering/rewriting. Has anyone ever compared the performance of kdb+
28.
▲
by
101914
11y ago
Isn't this one listed in 86LIST04.LST? That list is still easy to find via Google? I believe it is bundled with the Ralph Brown interrupt list. What "doesn't feel right to me" is Google's treatment of Usenet archiv
29.
▲
by
101914
11y ago
This comment validates all the time I have "wasted" reading HN over the years. It does not suprise me that something so simple would be so well overlooked (or, at least, "forgotten"). I wonder if I ever would have figur
30.
▲
by
101914
11y ago
Your point is understood. For something like that, I have always thought they should be disseminating their cert via some other means besides an untrusted computer network (i.e., the internet). Or at least give customers another option. Pe
More ›