Search Results

Search: Posts Made By: Andre_Merzky
8,874
Posted By Andre_Merzky
Well, that is nicer and quicker than mine I think...
Well, that is nicer and quicker than mine I think - kudos! :-)
8,874
Posted By Andre_Merzky
Hmm, interesting, seems to work ok for me: ...
Hmm, interesting, seems to work ok for me:



merzky@thinkie:~/test/unix.com$ cat multiline.txt
000000001 12335 Infinte solutiong PO box copyright
000000002 12335 Dhahran solutiong
PO box...
8,874
Posted By Andre_Merzky
cat multiline.txt | perl -e ' while ( <> ) { ...
cat multiline.txt | perl -e ' while ( <> ) {
chomp;
print "\n" if m/^\d{9}\s.*/ ;
print "$_ ";
}
print "\n";'
The removal of the first empty line is left as an excercise to the reader...
Forum: Programming 09-16-2010
26,756
Posted By Andre_Merzky
You shoud not need the -static flag. I assume...
You shoud not need the -static flag. I assume that libRmtDirTree.a is the static lib you try to add? If removing the -static flag does not help, try to simply add ./libRmtDirTree.a at the end of...
1,676
Posted By Andre_Merzky
Message Editor question
Hia,

this is a very low priority request, but I am slightly annoyed by the behaviour of the [ CODE ] tags in the message editor. They behave assymetric in the sense that the opening tag is...
1,946
Posted By Andre_Merzky
HFS seems to resize, too: jonas /tmp :...
HFS seems to resize, too:


jonas /tmp : mkdir test
jonas /tmp : l -d test
drwxr-xr-x 2 user group 68 Feb 19 09:58 test/

jonas /tmp : touch test/null
jonas /tmp : l -d test
drwxr-xr-x 3...
Forum: Programming 02-19-2010
4,142
Posted By Andre_Merzky
For what its worth, check out the readline...
For what its worth, check out the readline library. It is somewhat more work than getc/putc, but in many many cases its very much worth the effort: you get command line editing, command line...
1,946
Posted By Andre_Merzky
1024 is *not* the disk size - that is easy to...
1024 is *not* the disk size - that is easy to verify by creating a large file in a directory:


jonas merzky /tmp : mkdir test
jonas merzky /tmp : ls -ld test
drwxr-xr-x 2 user group 68 Feb 19...
1,912
Posted By Andre_Merzky
Also 'nmap localhost' will tell you what local...
Also 'nmap localhost' will tell you what local services are up and listening on some port.
3,333
Posted By Andre_Merzky
Or, to check open ports for a remote host, use...
Or, to check open ports for a remote host, use nmap. For http, check if port 80 is open, like this:


jonas merzky ~/Mail/now/old : nmap www.google.com

Starting Nmap 4.53 ( http://insecure.org...
Forum: High Performance Computing 02-15-2010
6,483
Posted By Andre_Merzky
Hi Neo, thanks for your reply! I...
Hi Neo,

thanks for your reply!

I agree abut your remark as distributed architectures. This is my day-job, and I like it a lot :-)

I did not make the problem clear enough I think: the...
Forum: High Performance Computing 02-11-2010
6,483
Posted By Andre_Merzky
Massively parallel on single core?
Hia all,

I am not sure how many people actually follow the HPC forum on unix.com, but you may be interested in discussing the following (academic) problem:

Assume you want to run a *very*...
Forum: Programming 02-09-2010
1,583
Posted By Andre_Merzky
I am not sure, but I think that is C++? Despite...
I am not sure, but I think that is C++? Despite the 'Cout' ;-)

The you can try the C++ way:


#include <sstream>

...

std::stringstream ss;
ss << "INSERT INTO movie_info (movie_title ,...
13,821
Posted By Andre_Merzky
I don't think that trial/error would be so tough....
I don't think that trial/error would be so tough. In pseudo perl code:


my @all_libs = split (/\s+/, `ls $LIBPATH/*.a`);
my $good_libs = "";

# get number of unresolved messages w/o any...
Forum: Programming 02-08-2010
10,880
Posted By Andre_Merzky
Wouldn't you avoid the strok completely with the...
Wouldn't you avoid the strok completely with the following



#include <ftw.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>

char filenames[500][256]; // use your local file...
3,313
Posted By Andre_Merzky
But this is, sorry to say that, not necessarily...
But this is, sorry to say that, not necessarily correct: it may remove spaces from within valid data items, too. So, you would need to anchor your perl regex to a '|'. Easy to do, but not really...
3,633
Posted By Andre_Merzky
Most likely, you have mp3 files which have single...
Most likely, you have mp3 files which have single quotes in their file name, like



Silly/1986_-_Battalion_D'Amour/Silly_-_Battalion_D'Amour_-_01_-_Bataillion_D'amour.mp3You can fix this by...
18,637
Posted By Andre_Merzky
Running the script: you can simply put the script...
Running the script: you can simply put the script (path + name + arguments) on a single line. Your local.rc could look like this


#!/bin/sh
#
# This script will be executed *after* all the...
11,778
Posted By Andre_Merzky
If you use sftp, then ssh is likely to work, too?...
If you use sftp, then ssh is likely to work, too? Then just do

ssh name@B.remote.net stat -f "%z" /location/of/large/file
6,016
Posted By Andre_Merzky
See 'man perlrun', and check out the options -n...
See 'man perlrun', and check out the options -n -a -l -F and -e.

$" is also known by its long name $LIST_SEPARATOR (see 'man perlvar'), which explains a lot I guess ;-)

'[1..29]' is an array...
Forum: High Performance Computing 02-06-2010
14,412
Posted By Andre_Merzky
@Neo: Oh yes, I can only confirm what you...
@Neo:

Oh yes, I can only confirm what you are stating :-) "One persons service is another persons application".

Thanks, Andre.
Forum: High Performance Computing 02-06-2010
14,412
Posted By Andre_Merzky
We can probably discuss endlessly, and its fine...
We can probably discuss endlessly, and its fine if we have a different perspective on the topic. But for the sake of discussion, I'd like to reply anyway: it is the area I am working in, and I have...
Forum: High Performance Computing 02-05-2010
14,412
Posted By Andre_Merzky
That may be true if you look only at the...
That may be true if you look only at the hardware. The other part of HPC is the software which is tweaked to actually fully use the hardware capabilities: that most people have the equevalent of a...
2,719
Posted By Andre_Merzky
After completing the script, I still can't...
After completing the script, I still can't reproduce your output: those seems wrong. Fir example, I can't find the line ending not in NULL, but in 2.23e+23 -- that value is simply gone, but according...
Forum: Open Source 02-04-2010
338,958
Posted By Andre_Merzky
Vi is installed on virtually any unix system. ...
Vi is installed on virtually any unix system. Its extremely fast, scriptable, and very feature rich. It has a plethora of commands which support common editing tasks when coding.

Most of that...
Showing results 1 to 25 of 43

 
All times are GMT -4. The time now is 10:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy