LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old
Rating: 2 votes, 5.00 average.

Adding [code][/code] tags to your posts

Posted 12-02-2014 at 06:23 AM by rtmistler
Updated 08-30-2018 at 11:37 AM by rtmistler

In LQ it is beneficial to use [code][/code] tags around your code.

All you need to do is to border your code with the [code][/code] tags and the result will appear as following:
Code:
#include <stdio.h>

int main()
{
 ...
}
Do I have to type the tags in, or are there widgets to help me with this?
In Advanced edit mode the # (number sign) icon will assist you with this, it will add tags around selected text, or add tags where you can then type in, or...
Moderator
Posted in LQ Information
Views 2773 Comments 0 rtmistler is offline
Old

Logrotate - Not Just for the System

Posted 05-13-2014 at 01:26 PM by rtmistler
Tags logrotate

I've seen a few threads about logrotate. Two thread types I've noticed are:
  1. Persons not understanding logrotate and how to use it
  2. Persons not happy with logrotate and it's normal means of operation - mainly because they'd like to use it for something other than the system log files.
My intentions here are to cover the second case however I will start describing a bit about logrotate and how to use it. So those who are new to logrotate and seeking some guidance, the general overview section...
Moderator
Views 2698 Comments 1 rtmistler is offline
Old
Rating: 4 votes, 5.00 average.

Bash Scripting for Dummies and Geniuses

Posted 11-20-2013 at 09:18 AM by rtmistler
Updated 05-25-2020 at 08:43 AM by rtmistler

One only need look at LinuxQuestions.org to notice the great amount of script (and code) questions and varieties of comments to realize that we all have varying opinions about bash programming.

Many questions are very complicated, as are the resulting answers and script recommendations. I've noticed that two fundamental points are invariably overlooked by the questioners, and many of the comments:

Quote:
"All programming is the use of simple operations to solve complex
...
Moderator
Posted in Uncategorized
Views 5582 Comments 8 rtmistler is offline
Old

How to kill those Zombies

Posted 06-13-2013 at 03:22 PM by rtmistler

When a process has ended, signals are emitted to it's parent to indicate that the process is done. This does not delete the process however, information about the process remains with the system until such time as the parent checks that signal. The process becomes a zombie until the exit signal is checked.

The reason for this is closure.

Rather than have that process go away and never give an understanding as to why it went away, it stays as a zombie so that the parent...
Moderator
Views 2604 Comments 0 rtmistler is offline
Old

USB Receive and Rapid Parse, GPS Example

Posted 06-11-2013 at 08:17 AM by rtmistler

Introduction
This is more of a general programming example which can be applied to other systems, in addition to Linux.

This is a discussion of an application programming scenario where a GPS device is attached via a serial USB connection to the system. Challenges faced in this project include:
  • Detecting a USB Serial Resource on your System
  • Configuring and Controlling a USB Serial Resource
  • Processing Receive Data from the USB Serial Resource
  • De-Framing GPS Data
  • Parsing GPS Data
...
Moderator
Views 3640 Comments 0 rtmistler is offline

  



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