LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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.
Uncategorized Entries with no category
Old

Make some apps (mainly KDE apps with text fields) start faster

Posted 02-26-2013 at 07:37 PM by the dsc (linux-related notes)
Updated 02-26-2013 at 07:39 PM by the dsc

Just create a folder "~/.compose-cache".

Or better yet, at least in a semi-philosophical level, have your startup script to create "/dev/shm/.compose-cache" every time, and just create it once, and a soft link to your home folder. No unnecessary access to your disk, writing to and reading from memory instead. Which is often assumed to be better for several cache-type usages, both for performance and (supposedly) for the lifespan of your hard disk*. Some people...
Member
Posted in Uncategorized
Views 1169 Comments 0 the dsc is offline
Old

Controlling VLC via openbox key bindings... and wget(!)

Posted 01-28-2013 at 10:21 AM by the dsc (linux-related notes)
Updated 01-28-2013 at 06:10 PM by the dsc (fixing some stuff, redirection didn't work that way)

On openbox' rc.xml, in the corresponding section:

Code:
    <keybind key="W-z">
      <action name="Execute">
<execute>wget http://127.0.0.1:8080/requests/status.xml?command=pl_previous -O /dev/null</execute> 
      </action>
    </keybind>
    <keybind key="W-x">
      <action name="Execute">
	<execute>wget http://127.0.0.1:8080/requests/status.xml?command=pl_next
...
Member
Posted in Uncategorized
Views 1752 Comments 0 the dsc is offline
Old

Wacom tablet and the "keepshape" option, on openbox

Posted 11-21-2012 at 09:54 PM by the dsc (linux-related notes)
Updated 11-21-2012 at 09:59 PM by the dsc

On KDE you can set "keepshape" on "systemsettings", but apparently there's no way to do it in any other DE. The proper way to have "keepshape" working does not seem to work on Debian Wheezy (setting it on xorg.conf.d/50-wacom.conf). The "standard" alternatives are a static xorg.conf, and perhaps figuring hal/udev rules, which I don't know how to do.

Another way to do it is via xsetwacom, explicitly setting the active area along the lines of:...
Member
Posted in Uncategorized
Views 2567 Comments 0 the dsc is offline
Old

Gmplayer/mplayer-gui standard package works perfectly on Debian testing (Wheezy)

Posted 11-21-2012 at 12:48 PM by the dsc (linux-related notes)

If you like mplayer's native GUI, and you're about to install Debian testing (currently Wheezy), avoid using packages from deb-multimedia as much as possible.

To me it seems that the problem is actually with ffmpeg (deb-multimedia's), but I'm not willing to test it. I think it somehow interferes with mplayer-gui/gmplayer.

Just a few days ago I had an Wheezy install where I had gmplayer working, but very inconsistently, I would double click some video file and in five...
Member
Posted in Uncategorized
Views 2192 Comments 0 the dsc is offline
Old

Bash quickie: loop N times, without doing math

Posted 10-22-2012 at 09:07 PM by the dsc (linux-related notes)
Updated 03-10-2013 at 12:25 AM by the dsc (improving, varible version)
Tags bash, loop

I thought that the only way to do such type of loop in Bash would require something like "n=$(($n+1))" within the loop, with the loop being conditioned to "n" adding up to whatever you want, such as "until ((n==30)) ; do". But you can actually do "for i in {1..20} ; do <whatever> ; done". That's somewhat similar to Basic's "for i=1 to 20 ; whatever ; next i".

But it won't work with variables for the starting and ending numbers....
Member
Posted in Uncategorized
Views 1702 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 08:29 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
Open Source Consulting | Domain Registration