363 reputation
28
bio website
location New Zealand
age 47
visits member for 1 year, 6 months
seen 10 hours ago

I'm a professional engineer doing research for the food processing industries. Much of my work involves modelling food and agricultural processes and systems, implementing those models in software, data analysis, data mining, and data analysis algorithm development.

I've developed several software products that have been sold and/or used by others in my organisation in languages including Fortran, Modula-2, C, C++, C#, Java, R, Awk, Perl and Python. Currently, I do most of my work in Python, Java and C#, but I'm also starting to use Scala.


Apr
28
answered method to subtract text strings common in two files?
Apr
21
awarded  Caucus
Apr
16
comment Matching only numbers that come in numerical order
I'd suggest inserting the following code in a line after while (i <= count+maxgap) {: print "Searching for [" i "]", which should tell you exactly what page number the script is searching for at any given moment. Then you can compare the text that it is searching for (but not finding) to the text that you expect it to find in the following paragraph and see if there are any differences.
Apr
15
comment Matching only numbers that come in numerical order
For the test case, maxgap=2 sufficed. The only reason to make it much larger would be if there was a much larger genuine gap in the sequence, which seems unlikely in the context. How big did you have to make it and what was the sequence of bracketed numbers in that case?
Apr
15
awarded  Custodian
Apr
15
reviewed Approve suggested edit on Matching only numbers that come in numerical order
Apr
14
answered Matching only numbers that come in numerical order
Apr
14
awarded  Commentator
Apr
14
comment Matching only numbers that come in numerical order
To clarify, [24] comes in numerical order after [3], but the intent is not to match [24] but to match [5], which also comes after [3] and is also not immediately after [3]? What would be the tolerable difference for a match? If a difference of 2 is OK, is a difference of 3 also OK?
Jan
8
awarded  Yearling
Aug
19
comment Trying to get example from Awk and Sed book to work on Ubuntu 13.04
Glad to help. If this answer has solved your problem, please go ahead and check the answer as accepted.
Aug
19
revised Trying to get example from Awk and Sed book to work on Ubuntu 13.04
added 188 characters in body
Aug
19
answered Trying to get example from Awk and Sed book to work on Ubuntu 13.04
Jun
12
answered Plotting multiple series in a line graph in excel with different time values?
May
29
revised What are the advantages, if any of grep over egrep
added 53 characters in body
May
29
comment What are the advantages, if any of grep over egrep
I think Friedl means that the example shows if egrep in this case (or grep, if you replaced egrep with grep) is using a DFA or NFA. Given, as other answers have noted, that different implementations of the same tool can use different regex engines, the fact that a given tool traditionally used a particular engine doesn't mean that a particular implementation of that tool necessarily uses the same engine type.
May
29
answered What are the advantages, if any of grep over egrep
May
7
comment Vim - Adding empty line between lines
Yes, \n\@<!\n means any linebreak that doesn't immediately follow another linebreak. \n\@! matches with zero width if the preceding atom (i.e. \n) does not match just before what follows. Try :help \@<! to see the documentation on this in vim. I
May
7
answered Vim - Adding empty line between lines
Apr
8
comment Linux desktop slow, hard disk is lighting but cannot figure the reason from top, iostat and vmstat
I suggest that this question is more suitable for Superuser so I've flagged it to be moved there by the moderators.