LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Just annotations of little "how to's", so I know I can find how to do something I've already done when I need to do it again, in case I don't remember anymore, which is not unlikely. Hopefully they can be useful to others, but I can't guarantee that it will work, or that it won't even make things worse.
Old

Batch-cropping with ImageMagick + GIMP. Script helper(s), in development

Posted 12-09-2017 at 03:21 PM by the dsc (linux-related notes)
Updated 12-14-2017 at 12:01 PM by the dsc (mumbling about possible improvements)

Here's the explanation:


These are the original images to be cropped in batch, all jpegs, all in the same folder:

(It's a single image here, but these are in fact separate files)

The next step is to create a montage (still done manually):

montage -define jpeg:size=220x -geometry 220x220 *.jpg montage1.png

And then it's edited on GIMP: gimp montage1.png
...
Member
Posted in Uncategorized
Views 363 Comments 0 the dsc is offline
Old

Quick tip: move multiple tabs to a new window, in Chrome/ium, all at once

Posted 12-02-2017 at 12:13 AM by the dsc (linux-related notes)

I've just found it out and I think not many people know that.

You can hold "control" or the Mac's equivalent named something else for no reason and click the tabs you want to move, and then move several tabs at once to a new window. You should relese "control" when finally dragging out the last selected tabs, all will go at once.

You can do basically the same to just change the tabs order dragging multiple tabs at once, if that's really of any use....
Member
Posted in Uncategorized
Views 216 Comments 0 the dsc is offline
Old

Are CPU fan's RPM readings accurate?

Posted 11-18-2017 at 01:19 PM by the dsc (linux-related notes)
Updated 11-18-2017 at 02:16 PM by the dsc

Posting it here because it's not that important and I don't want to "demand" attention at the forums with it.



I had a spare heatsink that seemed better than the one I was actually using, much taller (about twice as tall), and with a copper contact area (albeit somewhat smaller), but that goes only with its own fan, which just looks otherwise identical.

They're probably these models or the closest thing to them:

...
Member
Posted in Uncategorized
Views 141 Comments 0 the dsc is offline
Old

Pay attention to ";" versus "&&" in bash aliases

Posted 09-27-2017 at 04:54 PM by the dsc (linux-related notes)
Updated 09-27-2017 at 04:57 PM by the dsc

Or maybe avoid it altogether, it's probably some sort of well known linux/unix rule that someone wrote a long time ago.

It's possibly something that seldom ever is a problem to anyone, but it was for me.

I had this as an alias for "mv"

Code:
echo "use mv -i to avoid overwriting files with the same name; this is an alias to mv -i" ; mv -i
Then at some point I was doing an one liner that would scan symlinks' "realpaths"...
Member
Posted in Uncategorized
Views 136 Comments 0 the dsc is offline
Old

The "sed" command doesn't need quotes

Posted 09-15-2017 at 03:20 PM by the dsc (linux-related notes)
Updated 12-02-2017 at 12:24 AM by the dsc

You may have some trouble when trying to make sed replacements along the lines of:

sed 's|$originalpath|$otherpath/$filename|'

If the variables contain things like the "-" character, or some other special characters, some of the sed commands may be terminated before they should, in error, as it's taking part of the variable as sed commands, rather than parameters. Something like that. Then the variables would ideally be quoted, but with the outermost quotes,...
Member
Posted in Uncategorized
Views 247 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 03:32 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration