Welcome to the most active Linux Forum on the web.
Go Back > Blogs
User Name



Simple C: Filling in the blanks - A simple memory allocator/reallocator.

Posted 01-23-2012 at 07:32 AM by rainbowsally

No memdup()? No memcat()? No prob.

Today's Features:
  • Simple C/C++ program and new memdup() and memcat() functions.
  • C macros (spanning lines with backslash) to create 'lenient' aliases.
  • Type casting in C/C++ to override sometimes overly strict syntax checks.
Anyone that has used strdup() or strcat() knows how convenient those are. But when it comes to memory allocation and reallocation for other kinds of data the lack of simple standard mechanisms for this often leads to duplicated...
Posted in Uncategorized
Views 5946 Comments 1 rainbowsally is offline

KDE Utils: cleanup, hlp

Posted 01-23-2012 at 07:16 AM by rainbowsally
Updated 01-23-2012 at 07:19 AM by rainbowsally

  • Cleanup old backup files quickly with feedback on operations being done.
  • Outstanding doc viewer that doesn't tie up your terminal.
See the link below for the "how and why" to install these as symlinks in your HOME/bin folder. Need functions for 'browse', 'launch', 'tofile'? It's all here.
Posted in Uncategorized
Views 1182 Comments 0 rainbowsally is offline

Enable X sharing on ubuntu

Posted 01-20-2012 at 11:21 PM by kavinga (My experiences using linux)
Updated 01-20-2012 at 11:24 PM by kavinga

Normally Ubuntu doesn't allow X server to listen on any port.To enable X server listen on port 6000 edit /etc/gdm/custom.conf
and add
finally restart.Still you can't user X server from outside because it has kind of firewall on it.To disable fire wall run
xhost +
in terminal.Now the X server is available for outside access.The above command xhost + will disable entire firewall so there is a security risk if your machine is...
LQ Newbie
Posted in Uncategorized
Views 612 Comments 0 kavinga is offline

More Mad Computer Science? (Simple multi-threading in a shell script)

Posted 01-20-2012 at 09:02 AM by rainbowsally

Just dropping by? Here's an easy one. And it's kind of fun.

We've already created a launch utility in this blog, but let's create one that works on other folks systems so they don't need to "install" (so to speak) anything to get the benefits of the functionality.

First let's look at the principles involved

Let's read fstab as a normal user. Don't 'su' or 'sudo su' here, because we don't actually want to be able to write to it. Just picking...
Posted in Uncategorized
Views 29250 Comments 7 rainbowsally is offline

Computer Mad Science: Classic Style KDE Menu (Shows That We CAN...)

Posted 01-20-2012 at 03:35 AM by rainbowsally
Updated 08-06-2014 at 10:36 AM by rainbowsally

Computer Mad Science: Classic Style KDE Menu (Shows That We CAN...)

I don't necessarily think the old menu style is better than the new one, but what if I wanted a screen shot that showed that we can create retro apps and "reto"fit them into the KDE menus, with a proper (and perhaps new) heirarchy so we can run them from either style menu.

First let's take a look at the Science/Mathematics/XMaxima menu as it appears in the old-style menus.

Posted in Uncategorized
Views 5298 Comments 1 rainbowsally is offline


All times are GMT -5. The time now is 12:06 PM.

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