LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Blogs > NullTerminator
User Name
Password

Notices


Uncategorized Entries with no category
Old

bashrc tweak - colors in ssh ession

Posted 09-10-2012 at 01:06 PM by NullTerminator
Updated 09-18-2012 at 09:39 AM by NullTerminator

If you use any of a number of remote ssh clients and want to improve the color selection, here's a how to. Please credit the original authors. I'm just making it easier to find.

excellent ref @ http://ubuntuforums.org/archive/index.php/t-41538.html
Code:
 1. Edit the '.bashrc' file. You need to make a few small changes to the existing bash script.

(optional) Backup the file. Copy your existing '.bashrc' file in case you wish to restore it at a latter time. For
...
LQ Newbie
Posted in Uncategorized
Views 1451 Comments 0 NullTerminator is offline
Old

bash sort using a tab delimiter

Posted 09-07-2012 at 01:49 PM by NullTerminator
Updated 09-07-2012 at 02:49 PM by NullTerminator
Tags bash, sort, tab

There are several ways to sort things when fields are tab separated. The simplest I have found is
Code:
TAB=`echo -e "\t"`
sort -t"$TAB" -k 5,3 scrambledFile.tsv > sorted.tsv
syntax may vary for dos shells, possibly as
Code:
set tab=echo "\t"
sort -t"%tab%" -k5,3 scrambledFile.tsv > sortedFile.tsv
As of this posting, both variations are subject to verification of the syntax.
LQ Newbie
Posted in Uncategorized
Views 1197 Comments 0 NullTerminator is offline
Old

Log4j Message Filtering

Posted 09-07-2012 at 12:54 PM by NullTerminator
Updated 09-13-2012 at 12:27 PM by NullTerminator

Some Notes on built in filtering facility

http://logging.apache.org/log4j/1.2/...tchFilter.html
org.apache.log4j.varia.StringMatchFilter - this is a "contains" match paradigm.
Followup: This actually uses the indexOf method for matching, so it acts like a "contains" match, and IS CaseSensitive.

possible specification in an appender tag
extend from an example at http://stackoverflow.com/questions/4...-the-log4j-xml...
LQ Newbie
Posted in Uncategorized
Views 2012 Comments 0 NullTerminator is offline
Old

Spring Refs And Tutorial Links

Posted 08-31-2012 at 08:11 PM by NullTerminator
Updated 11-29-2012 at 09:08 AM by NullTerminator

8/30/2012

good spring MVC tutorial
http://duckranger.com/2011/07/spring...torial-part-i/
// sidebar on dispatcher servlet
http://duckranger.com/2012/04/spring...atcherservlet/
http://duckranger.com/2012/04/spring...orial-part-ii/

Spring Beans For Collections - Good Examples
http://www.mkyong.com/ list, set, map properties example/

More specific control over the implementation...
LQ Newbie
Posted in Uncategorized
Views 902 Comments 0 NullTerminator is offline
Old

Spring Ramblings

Posted 08-31-2012 at 08:02 PM by NullTerminator

DispatcherServlet in the distribution is used out of the box in a Front Controller pattern. Based on URL patterns specified in the config xml it passes the request to a controller
LQ Newbie
Posted in Uncategorized
Views 404 Comments 0 NullTerminator is offline

  



All times are GMT -5. The time now is 07:54 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