General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Lawrence D’Oliveiro
Luke Smith
comments
Comments by "Lawrence D’Oliveiro" (@lawrencedoliveiro9104) on "Luke Smith" channel.
Previous
1
Next
...
All
Aka the “Super Mario” approach to scripting ... Well, he was a plumber, wasn’t he?
44
1:31 pdfinfo (part of the poppler-utils package) will show info about PDF files such as titles. But these don’t always match the text you see on the title page of the document.
21
“helps your scripts to be more readable” sounds like those people who write “if (cond == true)” in languages where the condition is only allowed to be of boolean type anyway.
12
11:03 “Computers that last” ... now that’s not something that was commonly heard up to, say, 15 years ago. But now that performance has hit a plateau, maybe longer-term thinking will become more fashionable ...
9
It was invented by Tony Hoare. What was remarkable was that it could be implemented with essentially zero run-time overhead. Hoare was also one of the proponents of “structured programming”. Which I feel is underrated these days, where I see C code especially using gotos like they’re going out of fashion.
8
The nice thing about systemd is that it means user files are kept in the user area, instead of being in /var/spool/cron. Much tidier.
7
5:01 That “du” command looks like an expensive way to find subdirectories.
7
0:23 Should really make that “ls -A”.
5
3:48 Spider is thinking “I swear that’s the same guy who tore it down yesterday. I don’t know why he keeps walking there.”
4
5:05 Can you not use uparrow to bring back previous items in the command history? You can in Emacs.
4
@heldereduardopintosousavid7474 If MacOS is “real UNIX”, we’ll stick to Linux.
4
2:48 Why is your personal scripts folder hidden (having a name beginning with a dot)?
4
2:17 I defined a custom “make-shell-buffer” command in my Emacs prefs https://github.com/ldo/emacs-prefs which gives me an interactive window where I can execute arbitrary shell commands and get back their output as editable text in the buffer.
4
0:36 The Linux kernel is a “single point of failure” for your entire system. Should you stop using Linux?
3
Emacs isn’t just a text editor, it’s an editor . I have successfully used it to directly edit binary files. Emacs is not an IDE. IDEs require you to use particular build systems, and sometimes even particular version-control systems. Emacs will happily work with any build system, and any version-control system. Emacs is infinitely customizable. Most editors have commands to let you jump between matching bracket symbols (e.g. between “{” and the matching ”}”). Does your editor let you jump between matching indentation levels? (E.g. in my Python code I close an “if” with a line containing a correspondingly-indented “#end if” comment). Emacs didn’t, until I added commands to make it do so.
3
2:15 And the irony is, the IME runs its own OS based on MINIX, which is Open-Source!
3
1:11 It’s actually unnecessary to use the PulseAudio-specific commands, if you want a script that works both ways. The Alsa amixer command still works under PulseAudio.
3
Like I said, my condolences.
3
Do you get the feeling that Bash syntax has, shall we say, evolved by accretion over time? ;)
3
Who said any of them are bad? Only you did.
3
Fine. If you find a system made only out of small, single-function pieces, by all means stick to it. While the entire rest of the computing world continues to embrace Linux.
3
0:56 Just a note that bashrc is only automatically invoked by non-login shells, so it’s either-or: either the new shell will run the profile, or the rc, not both. I find this annoying, so the best thing perhaps is to have the profile do little or nothing apart from automatically sourcing the rc, so you get the same definitions available either way.
3
5:44 Emacs is able to use those keys without your having to disable their special tty meaning. I think it uses something called “raw” mode. Perhaps the vi developers should learn about this?
3
14:33 The trouble with that technique is that it returns true even if the pulseaudio server is running for a different user.
3
1:01 TOO LATE! Gentoo now does systemd!
2
0:34 Is systemd monolithic? Or is it made up of pieces you can choose to use or not? Let us hear from someone who has actually used it...
2
Only if you ignore languages which let you say “n = n + 1” ...
2
5:17 So now instead of dotfile clutter, you have environment clutter instead.
2
6:08 zsh is the default shell in SystemRescueCD, and I discovered that it has one irritating habit: stripping off the trailing ”/” from a directory name after you have typed it. This causes problems when trying to do an rsync, since the behaviour is slightly different depending on whether the source directory ends with a “/” or not.
2
This was running straight off the SystemRescueCD image, so I couldn’t have set any options if I wanted to.
2
On Linux you can have a compose key which works across apps, whether Emacs or Vim or LibreOffice or Firefox or whatever. http://wiki.wlug.org.nz/ComposeKey On Emacs you have an additional feature, CTRL-X-8-RET, which lets you enter the Unicode name. Or you can enter just part of the name, and it will bring up a list of likely candidates you can choose from.
2
No, in the shell, an exit status of 0 is read as “true” and nonzero as “false”. This is because 0 normally denotes success and nonzero indicates failure of some kind.
2
The whole cron concept is showing its age.
2
systemd is much more versatile. And it puts user files in the user area, instead of in /var somewhere.
2
That hoary old “do one thing, and do it well” was always a half-truth. It never applied to the Linux kernel itself, or to the X server, or even to glibc. Have you looked at bash? Did you notice its man page alone is over 5000 lines? In order for the small pieces to work well together, the big pieces are essential.
2
systemd is just as modular as the Linux kernel. bash is not modular. And you admit that the X server and glibc are large monoliths. So why do you pick on systemd?
2
7:55 Emacs has built-in online help, available from CTRL-H. For example, CTRL-H followed by A is “apropos”, where you can find relevant functions by keyword, CTRL-H C lets you get information about key bindings, etc.
2
It’s only about a 40kB executable on AMD64. Feel free to offer us a more efficient version, along with benchmarks showing why your version is better.
1
Not necessarily accurate -- see my comment on pdfinfo.
1
Instead of echo «something» | «cmd» how about «cmd» <<EOD «something» EOD (should work with any POSIX-compliant shell), or «cmd» <<<«something» (bash-specific).
1
I haven’t bothered with SpamAssassin. The one thing that keeps 95% of the spam away is greylisting. So I run sqlgrey.
1
6:35 You realize that continual polling of the volume setting is quite unnecessary? For example, on KDE, I get D-Bus signals broadcast to all listeners on the per-user session bus to notify them of useful things like volume changes. So interested processes can simply listen for the relevant signals.
1
Which Linux-compatible systems don’t have /bin/bash?
1
@brlin Would /usr/bin/env bash work there?
1
I have no idea what you mean. I have used if-constructs in every single programming language I have ever become proficient in, and that includes Bash.
1
Tell your profs that ODF is an official ISO standard, ISO 26300.
1
@bradleyhove4177 LibreOffice can do that.
1
@bradleyhove4177 Service not up to scratch? Demand your money back.
1
Luke 12:47 And that servant, which knew his lord's will, and prepared not himself, neither did according to his will, shall be beaten with many stripes. But he that knew not, and did commit things worthy of stripes, shall be beaten with few stripes.
1
@ej_sykes Not on Debian-based systems any more, which is most of them.
1
Previous
1
Next
...
All