LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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

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

Posted 01-28-2013 at 11:21 AM by the dsc (linux-related notes)
Updated 01-28-2013 at 07: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 732 Comments 0 the dsc is offline
Old

Wacom tablet and the "keepshape" option, on openbox

Posted 11-21-2012 at 10:54 PM by the dsc (linux-related notes)
Updated 11-21-2012 at 10: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 1118 Comments 0 the dsc is offline
Old

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

Posted 11-21-2012 at 01: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 962 Comments 0 the dsc is offline
Old

Bash quickie: loop N times, without doing math

Posted 10-22-2012 at 10:07 PM by the dsc (linux-related notes)
Updated 03-10-2013 at 01: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 756 Comments 0 the dsc is offline
Old

Pure-text de-truncator script, a work in progress

Posted 09-30-2012 at 02:28 PM by the dsc (linux-related notes)
Updated 09-30-2012 at 02:32 PM by the dsc
Tags epub, pdf, sed, truncated

Sometimes I want to quote some PDF on pure text, luckily enough it would have actual text rather than being an non-OCRed image, but often there's still the problem that the text on the PDF is truncated/formatted in a fake/dumb way, with actual "new lines" to break the page, which may not make the text completely unreadable when pasted in a text editor, but it's reasonably annoying, and may require quite some time to fix manually.

I'm trying to create a script or one-liner...
Member
Posted in Uncategorized
Views 550 Comments 0 the dsc is offline

  



All times are GMT -5. The time now is 09:46 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration