<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>LinuxQuestions.org - Blogs - NullTerminator</title>
		<link>http://www.linuxquestions.org/questions/blog/nullterminator-281014/</link>
		<description>LinuxQuestions.org offers a free Linux forum where Linux newbies can ask questions and Linux experts can offer advice. Topics include security, installation, networking and much more.</description>
		<language>en</language>
		<lastBuildDate>Thu, 23 May 2013 07:34:13 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>https://lqo-thequestionsnetw.netdna-ssl.com/questions/images/misc/rss.jpg</url>
			<title>LinuxQuestions.org - Blogs - NullTerminator</title>
			<link>http://www.linuxquestions.org/questions/blog/nullterminator-281014/</link>
		</image>
		<item>
			<title>QT Notes</title>
			<link>http://www.linuxquestions.org/questions/blog/nullterminator-281014/qt-notes-35322/</link>
			<pubDate>Tue, 19 Feb 2013 23:31:25 GMT</pubDate>
			<description>Interesting article/sample 
http://snipplr.com/view/48394/</description>
			<content:encoded><![CDATA[<div>Interesting article/sample<br />
<a href="http://snipplr.com/view/48394/" target="_blank" rel="nofollow">http://snipplr.com/view/48394/</a></div>

]]></content:encoded>
			<dc:creator>NullTerminator</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/nullterminator-281014/qt-notes-35322/</guid>
		</item>
		<item>
			<title>IBM AS400 DB2 SQL Tricks</title>
			<link>http://www.linuxquestions.org/questions/blog/nullterminator-281014/ibm-as400-db2-sql-tricks-35299/</link>
			<pubDate>Fri, 08 Feb 2013 16:20:29 GMT</pubDate>
			<description>set schema  mySchema 
 
Select x,y,z from w 
fetch first 20 rows only 
 
reset an auto counter that got hosed 
alter table T alter TheColumn restart...</description>
			<content:encoded><![CDATA[<div>set schema  mySchema<br />
<br />
Select x,y,z from w<br />
fetch first 20 rows only<br />
<br />
reset an auto counter that got hosed<br />
alter table T alter TheColumn restart with  123<br />
<br />
grab the first non null value<br />
select a,b,c, coalesce(z,y,z) as FirstGoodValue from T<br />
<br />
Case<br />
select A, case when x &lt; 0 then 'Negative' else 'Positive' end from T<br />
<br />
TIMESTAMP format is 'YYYY-MM-DD-hh.mm.ss.uuuuuu'<br />
<br />
get month from a date  MONTH(datefield), YEAR(datefield)<br />
Date spans  <br />
select a,b,c from T<br />
where SomeDate &gt; CURRENT DATE - 2 MONTH<br />
<br />
SELECT CURRENT DATE - 1 MONTH + 2 DAYS FROM MyTable</div>

]]></content:encoded>
			<dc:creator>NullTerminator</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/nullterminator-281014/ibm-as400-db2-sql-tricks-35299/</guid>
		</item>
		<item>
			<title>sed awk tr  etc</title>
			<link>http://www.linuxquestions.org/questions/blog/nullterminator-281014/sed-awk-tr-etc-35265/</link>
			<pubDate>Tue, 15 Jan 2013 12:33:37 GMT</pubDate>
			<description>A couple sample to strip unreadable characters from a binary file 
 
Code: 
--------- 
# Translate junk characters into newlines while squeezing...</description>
			<content:encoded><![CDATA[<div>A couple sample to strip unreadable characters from a binary file<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 98px;
		text-align: left;
		overflow: auto"># Translate junk characters into newlines while squeezing
C:\Temp&gt;tr -sc '[\011\012\015\040-\176]' \n &lt; blob_of_data.txt

# Translate and discard single character lines
C:\Temp&gt;tr -sc '[\011\012\015\040-\176]' \n &lt; blob_of_data.txt | awk &quot;length($0) &gt; 1&quot;</pre>
</div># replace a bad character in a file<br />
0xa0 is a 'non breaking space' that appears often when cutting and pasting code from<br />
a web page.  Especially in some light weight browser like raspberry pi<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">sed 's/'`echo &quot;0xa0&quot;1`'/ /g' &lt;infile &gt; outfile</pre>
</div></div>

]]></content:encoded>
			<dc:creator>NullTerminator</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/nullterminator-281014/sed-awk-tr-etc-35265/</guid>
		</item>
		<item>
			<title>IBM AS400 DB2 Catalog Views</title>
			<link>http://www.linuxquestions.org/questions/blog/nullterminator-281014/ibm-as400-db2-catalog-views-35170/</link>
			<pubDate>Thu, 29 Nov 2012 14:57:03 GMT</pubDate>
			<description><![CDATA[Various objects are available to query the underlying meta data. 
select * from qsys2.sysviews where view_owner ='xyz' and TABLE_NAME = 'tab1'...]]></description>
			<content:encoded><![CDATA[<div>Various objects are available to query the underlying meta data.<br />
select * from qsys2.sysviews where view_owner ='xyz' and TABLE_NAME = 'tab1'<br />
select * from qsys2.systables where table_owner ='xyz' and TABLE_NAME NOT LIKE 'SYS%'<br />
<br />
-- Stored Procedures, SIMILAR RESULTS from sysroutines<br />
select * from qsys2.sysprocs where routine_schema ='xyz' and ROUTINE_NAME NOT LIKE 'SYS%'<br />
<br />
Other catalog views<br />
SYSINDEXES<br />
SYSKEYS<br />
SYSPROCS<br />
SYSROUTINES<br />
SYSTRIGGERS<br />
<br />
THERE ARE ALSO ANUMBER OF VIEWS UNDER<br />
SYSIBM.VIEWS<br />
SYSIBM.SCHEMATA_S<br />
SYSIBM.AUTHORIZATIONS<br />
but I am not so certain of their usefulness<br />
<br />
self search CatalogQueries.sql possibly from custrolo</div>

]]></content:encoded>
			<dc:creator>NullTerminator</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/nullterminator-281014/ibm-as400-db2-catalog-views-35170/</guid>
		</item>
		<item>
			<title>antlr notes and rants</title>
			<link>http://www.linuxquestions.org/questions/blog/nullterminator-281014/antlr-notes-and-rants-35161/</link>
			<pubDate>Mon, 26 Nov 2012 13:31:30 GMT</pubDate>
			<description>Collecting some refs and thoughts on antlr, parser, tree walker, grammar, etc 
 
Escape Characters: 
Short article at antlr-interest...</description>
			<content:encoded><![CDATA[<div>Collecting some refs and thoughts on antlr, parser, tree walker, grammar, etc<br />
<br />
Escape Characters:<br />
<a href="http://www.antlr.org/pipermail/antlr-interest/2007-February/019471.html" target="_blank" rel="nofollow">Short article at antlr-interest</a><br />
<br />
useful command line args  java org.antlr.Tool<br />
<a href="http://www.antlr.org/wiki/display/ANTLR3/Command+line+options" target="_blank" rel="nofollow">http://www.antlr.org/wiki/display/AN...d+line+options</a><br />
-trace - generate a parser with some tracing statements<br />
-debug - generates a parser that emits debugging information<br />
-profile, hmmmm<br />
-print or -report  prints out the grammar<br />
<br />
A fairly complete example<br />
antlr.org/wiki/pages/viewpage.action?pageId=13828121<br />
simple tutorial with lex dump<br />
<a href="http://www.alittlemadness.com/2006/06/12/antlr-by-example-part-2-lexical-analysis" target="_blank" rel="nofollow">http://www.alittlemadness.com/2006/0...xical-analysis</a><br />
<br />
Good discussion article<br />
<a href="http://www.bearcave.com/software/antlr/antlr_examples.html" target="_blank" rel="nofollow">http://www.bearcave.com/software/ant..._examples.html</a><br />
<br />
A tutorial about writing your own language<br />
<a href="http://felix.plesoianu.ro/scratch-lang/scratch-lang3.html" target="_blank" rel="nofollow">http://felix.plesoianu.ro/scratch-la...tch-lang3.html</a><br />
<br />
A sample app Pie is included with the source for the book Language Implementation Patterns, by Terence Parr<br />
<br />
Other inspiring bookmarks<br />
<a href="http://specmath.com/tutorials/expression_parser_java" target="_blank" rel="nofollow">http://specmath.com/tutorials/expression_parser_java</a>  -- good basic handcoded math evaluator<br />
<br />
<a href="http://specmath.com/tutorials/expression_parser_java_ext" target="_blank" rel="nofollow">http://specmath.com/tutorials/expres...arser_java_ext</a> -- more extensive parser with callable user entered functions<br />
<br />
<br />
some very early bookmarks<br />
<a href="http://meri-stuff.blogspot.com/2011/09/antlr-tutorial-expression-language.html" target="_blank" rel="nofollow">http://meri-stuff.blogspot.com/2011/...-language.html</a><br />
	<a href="https://github.com/SomMeri/antlr-step-by-step/tree/005-S006SimpleBoolean" target="_blank" rel="nofollow">https://github.com/SomMeri/antlr-ste...6SimpleBoolean</a></div>

]]></content:encoded>
			<dc:creator>NullTerminator</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/nullterminator-281014/antlr-notes-and-rants-35161/</guid>
		</item>
		<item>
			<title>Android OCR notes</title>
			<link>http://www.linuxquestions.org/questions/blog/nullterminator-281014/android-ocr-notes-35152/</link>
			<pubDate>Thu, 22 Nov 2012 21:28:35 GMT</pubDate>
			<description>Looking into writing an android app that can scan some simple test and process it.  Some solutions require installation of the android ndk in...</description>
			<content:encoded><![CDATA[<div>Looking into writing an android app that can scan some simple test and process it.  Some solutions require installation of the android ndk in addition to the sdk.  The native development kit (ndk) allows you to compile languages like C++ into a native .so library.  <br />
<br />
The ndk is required to get a shared library build for the Tesseract OCR engine. ref: <a href="http://code.google.com/p/tesseract-ocr/" target="_blank" rel="nofollow">tesseract ocr project at code.google</a>.  You may be able to find prebuilt binaries if lucky.  You'll need the GCC compiler and cygwin to build on windows.  There is a quick overview of the process <a href="http://kurup87.blogspot.com/2012/03/android-ocr-tutorial-image-to-text.html" target="_blank" rel="nofollow">Here</a>.<br />
<br />
There's a great sample app released under the apache-2.0 license written by rmtheiss.  Project home is at <a href="https://github.com/rmtheis/tess-two" target="_blank" rel="nofollow">https://github.com/rmtheis/tess-two</a>.<br />
<br />
There's also a working demo app built on top of the library above at <a href="https://github.com/rmtheis/android-ocr" target="_blank" rel="nofollow">https://github.com/rmtheis/android-ocr</a>.  It is also visible in action on  <a href="http://www.youtube.com/watch?v=FOSgiPjGwx4" target="_blank" rel="nofollow">youtube</a><br />
<br />
Kudos to all the contributors to this effort.<br />
<br />
Other useful links or hints<br />
IT Wizard comments to get up and running<br />
<a href="http://www.itwizard.ro/interfacing-cc-libraries-via-jni-example-tesseract-163.html" target="_blank" rel="nofollow">Interfacing-cc-libraries-via-jni-example-tesseract </a><br />
Tesseract GUI + Google Books - OCR in Linux  (<a href="http://sourceforge.net/projects/tesseract-gui/" target="_blank" rel="nofollow">http://sourceforge.net/projects/tesseract-gui/</a>)<br />
<br />
A commercial product is also available from <a href="http://www.abbyy.com" target="_blank" rel="nofollow">http://www.abbyy.com</a><br />
Search for  License Plate Recognition...</div>

]]></content:encoded>
			<dc:creator>NullTerminator</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/nullterminator-281014/android-ocr-notes-35152/</guid>
		</item>
		<item>
			<title>Eclipse And Perl  epic-ide.org</title>
			<link>http://www.linuxquestions.org/questions/blog/nullterminator-281014/eclipse-and-perl-epic-ide-org-35141/</link>
			<pubDate>Sat, 17 Nov 2012 15:06:34 GMT</pubDate>
			<description>Notes from past installation.  May be incomplete 
Performed onb eclipse helios 3.6 and Indigo 3.7 
ActiveState perl. 
 
Add paddwalker to perl  
ppm...</description>
			<content:encoded><![CDATA[<div>Notes from past installation.  May be incomplete<br />
Performed onb eclipse helios 3.6 and Indigo 3.7<br />
ActiveState perl.<br />
<br />
Add paddwalker to perl <br />
ppm install padwalker<br />
<br />
Download site (I think this is the epic-ide site for eclipse)<br />
Extract locally.  Capture the site folder name<br />
<br />
Go to eclipse Help  | Install New Software | Add Site, Provide local Path<br />
<br />
You might be able to have eclipse install it directly using the following URL<br />
<a href="http://e-p-i-c.sf.net/updates" target="_blank" rel="nofollow">http://e-p-i-c.sf.net/updates</a><br />
Depending on how your network is set up, you may need to specify a proxy for remote locations.  Make sure the environment variable is setup.  USE UPPER case<br />
HTTP_PROXY=http://myproxy.mydomain.com  Be sure to include http://</div>

]]></content:encoded>
			<dc:creator>NullTerminator</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/nullterminator-281014/eclipse-and-perl-epic-ide-org-35141/</guid>
		</item>
		<item>
			<title><![CDATA[MSSQL Tricks & Hints]]></title>
			<link>http://www.linuxquestions.org/questions/blog/nullterminator-281014/mssql-tricks-and-hints-35066/</link>
			<pubDate>Thu, 04 Oct 2012 19:51:25 GMT</pubDate>
			<description><![CDATA[Patching up leading zeroes 
UPDATE TheTable  
set FILE_NBR = replicate('0', 6-len(FILE_NBR) ) + FILE_NBR 
 
Querying disk file sizes 
 
use master 
...]]></description>
			<content:encoded><![CDATA[<div>Patching up leading zeroes<br />
UPDATE TheTable <br />
set FILE_NBR = replicate('0', 6-len(FILE_NBR) ) + FILE_NBR<br />
<br />
Querying disk file sizes<br />
<br />
use master<br />
<br />
SELECT  DB_NAME(DATABASE_ID) AS [DATABASE_NAME], name as FileName,  Type_desc,<br />
		-- hmmmm 8k blocks? <br />
        CAST(( CAST(SIZE * 8 AS FLOAT) ) / 1024 AS VARCHAR) + ' MB' AS [SIZE],<br />
        CAST(  (MAX_SIZE  / 128)  AS VARCHAR) + ' MB' AS [MAX_SIZE]<br />
FROM    SYS.MASTER_FILES<br />
<br />
<br />
Querying table and View Names<br />
select * from   MyDataBase.INFORMATION_SCHEMA.TABLES <br />
<br />
Getting column names <br />
select * from   MyDataBase.INFORMATION_SCHEMA.Columns <br />
<br />
-- st proc and functions<br />
select * from   MyDataBase.INFORMATION_SCHEMA.Routines	      -- sp and function listing<br />
select * from   MyDataBase.INFORMATION_SCHEMA.Routine_Columns -- Columns Used In Routines &amp; sp<br />
select * from   MyDataBase.INFORMATION_SCHEMA.Parameters      -- args to st proc and functions<br />
<br />
-- show columns that are referenced in views<br />
select * from   MyDataBase.INFORMATION_SCHEMA.VIEW_COLUMN_USAGE</div>

]]></content:encoded>
			<dc:creator>NullTerminator</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/nullterminator-281014/mssql-tricks-and-hints-35066/</guid>
		</item>
		<item>
			<title>Java CAD and Imaging</title>
			<link>http://www.linuxquestions.org/questions/blog/nullterminator-281014/java-cad-and-imaging-35050/</link>
			<pubDate>Thu, 27 Sep 2012 11:57:58 GMT</pubDate>
			<description>Java LWJGL  http://en.wikipedia.org/wiki/Lightweight_Java_Game_Library 
 
Archimedes CAD http://en.wikipedia.org/wiki/Archimedes_%28CAD%29 
 
Google...</description>
			<content:encoded><![CDATA[<div>Java LWJGL  <a href="http://en.wikipedia.org/wiki/Lightweight_Java_Game_Library" target="_blank" rel="nofollow">http://en.wikipedia.org/wiki/Lightwe...a_Game_Library</a><br />
<br />
Archimedes CAD <a href="http://en.wikipedia.org/wiki/Archimedes_%28CAD%29" target="_blank" rel="nofollow">http://en.wikipedia.org/wiki/Archimedes_%28CAD%29</a><br />
<br />
Google Java Cad  <a href="http://www.google.com/search?q=java+cad" target="_blank" rel="nofollow">http://www.google.com/search?q=java+cad</a><br />
<br />
Java 2d cube rotator applet  <a href="http://profs.etsmtl.ca/mmcguffin/learn/java/11-3d/" target="_blank" rel="nofollow">http://profs.etsmtl.ca/mmcguffin/learn/java/11-3d/</a><br />
<br />
Java 3d links  <a href="http://www.google.com/search?q=java.awt+3d" target="_blank" rel="nofollow">http://www.google.com/search?q=java.awt+3d</a><br />
<br />
Graphics2d  canvas, panel, etc<br />
<br />
Sanselan image writer/reader <a href="http://commons.apache.org/imaging/api-release/index.html" target="_blank" rel="nofollow">http://commons.apache.org/imaging/ap...ase/index.html</a><br />
<br />
yCad  <a href="http://sourceforge.net/projects/ycad/" target="_blank" rel="nofollow">http://sourceforge.net/projects/ycad/</a><br />
<br />
javacad development stale  home page broken <a href="http://javacad.sourceforge.net/" target="_blank" rel="nofollow">http://javacad.sourceforge.net/</a></div>

]]></content:encoded>
			<dc:creator>NullTerminator</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/nullterminator-281014/java-cad-and-imaging-35050/</guid>
		</item>
		<item>
			<title>bashrc tweak - colors in ssh ession</title>
			<link>http://www.linuxquestions.org/questions/blog/nullterminator-281014/bashrc-tweak-colors-in-ssh-ession-35024/</link>
			<pubDate>Mon, 10 Sep 2012 18:06:44 GMT</pubDate>
			<description><![CDATA[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...]]></description>
			<content:encoded><![CDATA[<div>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.<br />
<br />
excellent ref @  <a href="http://ubuntuforums.org/archive/index.php/t-41538.html" target="_blank" rel="nofollow">http://ubuntuforums.org/archive/index.php/t-41538.html</a><br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 498px;
		text-align: left;
		overflow: auto"> 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 example,

Modify the file. Using your favorite text editor, open the file '~/.bashrc' and make the following changes hilighted in red (which should appear somewhere near the top of that file - line 17 if no prior alterations were made). You will basically be modifying one line and adding two more above it.

# enable color support of ls and also add handy aliases
if [ &quot;$TERM&quot; != &quot;dumb&quot; ]; then
[ -e &quot;$HOME/.dircolors&quot; ] &amp;&amp; DIR_COLORS=&quot;$HOME/.dircolors&quot;
[ -e &quot;$DIR_COLORS&quot; ] || DIR_COLORS=&quot;&quot;
eval &quot;`dircolors -b $DIR_COLORS`&quot;
alias ls='ls --color=auto'
#alias dir='ls --color=auto --format=vertical'
#alias vdir='ls --color=auto --format=long'
fi

2. Create the '.dircolors' file. The '.dircolors' file is created by using the 'dircolors' program. It will generate a default color scheme to be used with the &quot;LS_COLORS&quot; environment variable, which gives the colored output while using &quot;ls&quot;.
[user@server currdir]$ cd &amp;&amp; dircolors -p &gt; .dircolors
3. Edit the '.dircolors' file. Here is where you will be modifying/creating new color schemes to reflect your own unique style.

NOTE: Lines 34-41 within this file give you the color codes for three specific keys: attribute, text, and background. You can choose to use all three keys, or simply pick and choose only those keys you wish to apply. Look at some of the pre-defined ones you may already recognize as a good example to follow.

Modify existing color schemes. For example, I can't stand big bold blue directory listings, so I change the bold attribute from &quot;01&quot; to &quot;00&quot; (none) but keep the blue color. It will lighten things up a bit.
FILE 00 # normal file
DIR 01;33 # directory - bold yellow
LINK 00;33 # symbolic link. - normal yellow
or, change the &quot;01&quot; to an &quot;07&quot;, making your debian packages really stand out!
.gz 01;31
.bz2 01;31
.war 01:31 # bold red


SOURCE the bashrc   .
Source the '.bashrc' file. In order for your changes to take effect within the current shell, you need to source the '.bashrc' file.
[user@server currdir]$ cd &amp;&amp; . .bashrc
/*********************************************************************************************************************/

Also hint for  vi, vim
set background=dark helps with the blue comment color

ref http://hintsforums.macworld.com/archive/index.php/t-16493.html
also insert this line in end of bash_profile to source the bashrc file for new term sessions.
It may already be in there....
if [ -f ~/.bashrc ]; then . ~/.bashrc ; fi</pre>
</div></div>

]]></content:encoded>
			<dc:creator>NullTerminator</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/nullterminator-281014/bashrc-tweak-colors-in-ssh-ession-35024/</guid>
		</item>
		<item>
			<title>bash sort using a tab delimiter</title>
			<link>http://www.linuxquestions.org/questions/blog/nullterminator-281014/bash-sort-using-a-tab-delimiter-35019/</link>
			<pubDate>Fri, 07 Sep 2012 18:49:17 GMT</pubDate>
			<description><![CDATA[There are several ways to sort things when fields are tab separated. The simplest I have found is  
 
Code: 
--------- 
TAB=`echo -e "\t"` 
sort...]]></description>
			<content:encoded><![CDATA[<div>There are several ways to sort things when fields are tab separated. The simplest I have found is <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 50px;
		text-align: left;
		overflow: auto">TAB=`echo -e &quot;\t&quot;`
sort -t&quot;$TAB&quot; -k 5,3 scrambledFile.tsv &gt; sorted.tsv</pre>
</div>syntax may vary for dos shells, possibly as <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 50px;
		text-align: left;
		overflow: auto">set tab=echo &quot;\t&quot;
sort -t&quot;%tab%&quot; -k5,3 scrambledFile.tsv &gt; sortedFile.tsv</pre>
</div>As of this posting, both variations are subject to verification of the syntax.</div>

]]></content:encoded>
			<dc:creator>NullTerminator</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/nullterminator-281014/bash-sort-using-a-tab-delimiter-35019/</guid>
		</item>
		<item>
			<title>Log4j Message Filtering</title>
			<link>http://www.linuxquestions.org/questions/blog/nullterminator-281014/log4j-message-filtering-35018/</link>
			<pubDate>Fri, 07 Sep 2012 17:54:59 GMT</pubDate>
			<description>Some Notes on built in filtering facility 
 
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/varia/StringMatchFilter.html...</description>
			<content:encoded><![CDATA[<div>Some Notes on built in filtering facility<br />
<br />
<a href="http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/varia/StringMatchFilter.html" target="_blank" rel="nofollow">http://logging.apache.org/log4j/1.2/...tchFilter.html</a><br />
org.apache.log4j.varia.StringMatchFilter - this is a &quot;contains&quot; match paradigm.<br />
Followup:  This actually uses the indexOf method for matching, so it acts like a &quot;contains&quot; match, and IS CaseSensitive.<br />
<br />
possible specification in an appender tag<br />
extend from an example at <a href="http://stackoverflow.com/questions/4825072/how-to-set-filter-in-the-log4j-xml" target="_blank" rel="nofollow">http://stackoverflow.com/questions/4...-the-log4j-xml</a><br />
NOTE: THIS IS UNTESTED YET.<br />
&lt;filter class=&quot;org.apache.log4j.varia.StringMatchFilter&quot;&gt;<br />
    &lt;!-- skip messages from this class --&gt;<br />
    &lt;param name=&quot;StringToMatch&quot; value=&quot;my.co.package.class&quot; /&gt;<br />
    &lt;param name=&quot;AcceptOnMatch&quot; value=&quot;FALSE&quot; /&gt;<br />
&lt;/filter&gt;<br />
<br />
Source Ref:<br />
<a href="http://javasourcecode.org/html/open-source/log4j/log4j-1.2.8/org/apache/log4j/varia/StringMatchFilter.java.html" target="_blank" rel="nofollow">http://javasourcecode.org/html/open-...lter.java.html</a><br />
<br />
log4j.dtd excerpt<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 82px;
		text-align: left;
		overflow: auto"><font color="Green">&lt;!-- Appenders must have a name and a class. --&gt;
&lt;!-- Appenders may contain an error handler, a layout, optional parameters --&gt;
&lt;!-- and filters. They may also reference (or include) other appenders. --&gt;</font>
&lt;!ELEMENT appender (errorHandler?, param*, layout?, filter*, appender-ref*)&gt;</pre>
</div><br />
There is also a LogfilePatternReciever that can tail or parse a log file and create events.  Don't know much about how that works. It only uses a simple * as a wildcard pattern.<br />
<a href="http://logging.apache.org/log4j/companions/receivers/apidocs/org/apache/log4j/varia/LogFilePatternReceiver.html" target="_blank" rel="nofollow">http://logging.apache.org/log4j/comp...nReceiver.html</a></div>

]]></content:encoded>
			<dc:creator>NullTerminator</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/nullterminator-281014/log4j-message-filtering-35018/</guid>
		</item>
		<item>
			<title>Spring Refs And Tutorial Links</title>
			<link>http://www.linuxquestions.org/questions/blog/nullterminator-281014/spring-refs-and-tutorial-links-35002/</link>
			<pubDate>Sat, 01 Sep 2012 01:11:26 GMT</pubDate>
			<description>8/30/2012 
 
good spring MVC tutorial 
http://duckranger.com/2011/07/spring-mvc-3-0-with-sts-tutorial-part-i/ 
// sidebar on dispatcher servlet...</description>
			<content:encoded><![CDATA[<div>8/30/2012<br />
<br />
good spring MVC tutorial<br />
<a href="http://duckranger.com/2011/07/spring-mvc-3-0-with-sts-tutorial-part-i/" target="_blank" rel="nofollow">http://duckranger.com/2011/07/spring...torial-part-i/</a><br />
// sidebar on dispatcher servlet<br />
<a href="http://duckranger.com/2012/04/spring-mvc-dispatcherservlet/" target="_blank" rel="nofollow">http://duckranger.com/2012/04/spring...atcherservlet/</a><br />
<a href="http://duckranger.com/2012/04/spring-mvc-3-x-with-sts-tutorial-part-ii/" target="_blank" rel="nofollow">http://duckranger.com/2012/04/spring...orial-part-ii/</a><br />
<br />
Spring Beans For Collections - Good Examples<br />
<a href="http://www.mkyong.com/spring/spring-collections-list-set-map-and-properties-example/" target="_blank" rel="nofollow">http://www.mkyong.com/ list, set, map properties example/</a><br />
<br />
More specific control over the implementation classes<br />
<a href="http://www.mkyong.com/spring/spring-mapfactorybean-example/" target="_blank" rel="nofollow">http://www.mkyong.com/spring/spring-...ybean-example/</a></div>

]]></content:encoded>
			<dc:creator>NullTerminator</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/nullterminator-281014/spring-refs-and-tutorial-links-35002/</guid>
		</item>
		<item>
			<title>Spring Ramblings</title>
			<link>http://www.linuxquestions.org/questions/blog/nullterminator-281014/spring-ramblings-35001/</link>
			<pubDate>Sat, 01 Sep 2012 01:02:07 GMT</pubDate>
			<description>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...</description>
			<content:encoded><![CDATA[<div>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</div>

]]></content:encoded>
			<dc:creator>NullTerminator</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/nullterminator-281014/spring-ramblings-35001/</guid>
		</item>
	</channel>
</rss>
