LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Blogs > linux-related notes
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

Adaptive "default" browser script (rudimentary, but seems to work)

Posted 06-28-2014 at 04:22 AM by the dsc (linux-related notes)
Updated 07-01-2014 at 05:45 PM by the dsc ("bugfix")

Sometimes you open an application that will in turn open some web page, and it will automatically open it with the default browser. The problem is that often you'd prefer that it had been opened in whatever other browser that may be already running, even if it's not the system's default. So I came up with this script in order to try to get this behavior:

Code:
#!/bin/bash
# This "software" (so to speak) is totally UNLICENSED and barely documented. What you see is
...
Member
Posted in Uncategorized
Views 318 Comments 0 the dsc is offline
Old

Interesting blog post about zswap functionality

Posted 06-25-2014 at 04:31 PM by the dsc (linux-related notes)
Tags ram, swap, zswap

Zswap is basically like a "fake swap partition" inside the RAM itself, but instead of just "moving" things from one place to another in the RAM, these things are compacted, instead of being written to the actual swap partition, on the HDD. Or so I understand. It then squeezes more out of the RAM than with non-compressed use, at some cost of CPU due to the compression/uncompressions, and monitoring, but sparing access to the swap partition on the HDD.

https://www.ibm.com/developerworks/c...ality7?lang=en
Member
Posted in Uncategorized
Views 327 Comments 0 the dsc is offline
Old

Gwenview > Gthumb

Posted 06-22-2014 at 04:01 AM by the dsc (linux-related notes)
Updated 06-22-2014 at 10:10 PM by the dsc (update)

I don't like much the "thumbnails only" mode that both these viewers/managers enforce, in the old days you could have a file list that you could alternate between various views, including thumbnails, and a preview pane. But these days we're almost forced to chose between the two, even though Geeqie isn't all that bad.

But Gwenview is absurdly superior in some basic editing, namely cropping and resizing. While editing files with about 2000x2000 px or so, Gthumb kept accessing/writing...
Member
Posted in Uncategorized
Views 269 Comments 0 the dsc is offline
Old

Fixing the fonts in Oracle Java 8, Debian

Posted 06-19-2014 at 03:43 PM by the dsc (linux-related notes)
Tags fonts, java

That was funny. I had the same problem some time ago, in an earlier install, and then accidentally stumbled in my own answer to the problem, and I didn't even remember that I had solved it before, much less how I did it. That's why I need this blog. :-/

The problem is that when you run a java app with the exported parameters to use the GTK look and feel, it runs reasonably OK (perhaps not 100% identical, I didn't compare if carefuly, but at least it's way more homogeneous than the...
Member
Posted in Uncategorized
Views 420 Comments 0 the dsc is offline
Old

A much faster "du" alternative for the current folder (non-recursive)

Posted 06-17-2014 at 10:55 PM by the dsc (linux-related notes)
Updated 06-17-2014 at 11:21 PM by the dsc (grammar, "benchmarks")

Code:
find . -maxdepth 1 -printf %k"000\n" | awk '{  sum += $1 } END { print sum }' | numfmt --from=auto --to=iec-i
I was annoyed with the fact that "du", with whatever parameters I tried to get only the usage for the files on the root of the current folder (i. e., non-recursive), took ages to give the result, while the value comes comparatively instantaneously when you're browsing the folders on a file manager like Konqueror or some other, with that indication. I don't...
Member
Posted in Uncategorized
Views 418 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 09:45 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration