A site for solving at least some of your technical problems...
A site for solving at least some of your technical problems...
When you use Ubuntu X11 you at times want to start an application as Root.
In your console you'd use the sudo tool which gives the command temporary super-user powers.
sudo my-command
In Ubuntu Gnome you can do the same using the gksu command. So add an icon, enter the usual information, and for your command, add gksu in front of it. When clicked, you'll first get a prompt asking you your sudo password, then the command is executed as if the root user had started it.
gksu faxanwer ttyS0
Ever wondered whether you could ask bash auto-complete to ignore some of your files?
You can with the FIGNORE feature and the bind feature:
export FIGNORE=CVS:\~:.o:.svn bind 'set match-hidden-files off'
You had one or both of these lines to your .bashrc file and then the .svn and CVS folders won't be used anymore! Add all the extensions you don't like in there and you'll feel better soon!
Note: The \ in front of ~ is to avoid the bash expansion of that character.
As I upgraded from Ubuntu 10.04 to 11.04, I got a bit of a surprise... many system windows started using a new type of scrollbar that is pretty much unusable (at least it slows down my production time on my desktop.)
Yes, these invisible scrollbars (which they call Overlay Scrollbar) are... invisible. Now you have to hover the mouse at the right place to get arrows that you can grab and move up and down. Oh! Did I say that you have to however in one place and these arrows, on purpose, appear AWAY from your mouse? This means you need to then move the mouse over those arrows before you can
Got an email from SourceForge.net today and they mentioned a new binary editor that works under MS-Windows.
Yes, they have one in DevStudio, but it's cumbersome to open a file in that more. You have to go through hoops and it often changes a tiny bit between versions and even just installs!
This one's small and fast and works on large files too.
It's called Frhed.
Ubuntu (and Debian) come with many "alternatives".
The system offers many editors, browsers, compilers, shells, etc. Just have a look at the large selection under /etc/alternatives.
ls /etc/alternatives
Under Unix, one can create soft links to soft links to soft links to an actual file. The alternatives work in that way. The soft links defined in the /etc/alternatives folder are pointers that one can change to make his/her system more likeable.
To change one of these alternatives, Ubuntu offers the update-alternatives script. For example, if you don't like Nano, change your
When writing a CRON job script that you want to install under /etc/cron.*/job-name you must remember to apply the following steps:
1. Write the script and test it as root
2. Make sure to give it execution permission, usually 755
3. The ownership is expected to be root:root
4. The filename cannot include a period or the file it completely ignored
5. The script MUST start with #!/bin/sh or an equivalent (i.e. #!/bin/bash works too.)
6. Use full paths for most everything1
Today I finally found out how to fix the path of the forums.
The name of the vocabulary is "Forums". To access it as expected in pathauto, you use [vocab-raw].
The result of [vocab-raw] is "forums" (all lowercase.)
Then, by default, pathauto adds the list of categories to the path. This is done using the [catpath-raw]. Say you have a forum named "Linux Stuff", [catpath-raw] will return "Linux Stuff" as is. This makes sense because paths on Linux are case sensitive (actually, it's the same thing with Apache wherever you are using it, although it's a
Today I discovered that I couldn't include the QDebug header file at the time I need it.
When I write in C/C++ I like to add my test libraries at the point where I'm writing the debug function I'm working on so that way I can delete it all at once.
So the skeleton of a file would look something like this:
Comment (copyright/purpose of file)
#include of all headers necessary
code
#include of debug headers
debug code
However, today I had problems compiling and/or linking doing so. The qDebug() << ... expressions did not want to work.
Moving the #include of debug headers to
I create this page to talk about the work I've done to create a small Flash animation (under 1Kb) used to play a stream of audio (most specifically, from the radio Hotmix 106.)
Recent Posts on The Linux Page: