Search Results

Search: Posts Made By: goon12
Forum: Programming 10-27-2015
2,069
Posted By goon12
This would help:...
This would help: https://docs.python.org/2/library/collections.html#collections.Counter
Forum: Programming 10-27-2015
14,685
Posted By goon12
The inputfile name is defined inside the function...
The inputfile name is defined inside the function main, so it is out of scope when you're calling overlap_data, contained_reads = get_overlap_data(inputfile), so you could just call get_overlap_data...
Forum: Programming 09-17-2012
2,577
Posted By goon12
I am not 100% sure. Just looking at the java doc:...
I am not 100% sure. Just looking at the java doc:

A region of a file may be mapped directly into memory; for large files this is often much more efficient than invoking the usual read or write...
Forum: Programming 09-11-2012
2,577
Posted By goon12
This might be a Java solution to using a...
This might be a Java solution to using a memory-map file:
FileChannel (Java Platform SE 7 )...
47,365
Posted By goon12
When you edit your crontab file (crontab -e), all...
When you edit your crontab file (crontab -e), all output is mailed to the user, unless a different email address is specified as the value of the MAILTO in your crontab.

crontab output is not...
10,304
Posted By goon12
Sorry, glad to see you already solved it.
Sorry, glad to see you already solved it.
10,304
Posted By goon12
$5 is not the value you should use to compare,...
$5 is not the value you should use to compare, that is the value in the fifth column from the output of ls -l asl.log . You want to compare the output of the entire command (ls piped through awk)....
Forum: Programming 04-03-2009
2,958
Posted By goon12
It looks like this line: lines_array = (char...
It looks like this line:

lines_array = (char **) malloc((end - start) * sizeof(char *));


Is not allocating the right amount, I would think that you want something like

lines_array = (char...
Forum: HP-UX 03-20-2009
5,418
Posted By goon12
Huge fan of the new agile addressing scheme, for...
Huge fan of the new agile addressing scheme, for mass storage devices, in 11i v3.
Forum: HP-UX 02-03-2009
4,978
Posted By goon12
Sorry, the volume group /dev/vg00 only consists...
Sorry, the volume group /dev/vg00 only consists of a single physical volume. That single pv happens to be my HD :o .

I just created a new logical volume in the volume group and used up the space. ...
Forum: HP-UX 02-03-2009
4,978
Posted By goon12
HP-UX using unused HDD space
Hello,

I have a system with HP-UX 11.23 installed on it. There are ~36GB of unused space on the HDD. I did a very basic installation, and it created the usual volume group /dev/vg00. When I look...
Forum: Programming 12-31-2008
6,513
Posted By goon12
Thanks reborg, I missed that in the man page. ...
Thanks reborg, I missed that in the man page.

The getservbyport() function returns a servent structure for the line that matches
the port port given in network byte order using...
Forum: Programming 12-31-2008
6,513
Posted By goon12
getservbyport - Always returning NULL servent
Hi,

I am having an issue using getservbyport. Here is a little program to demonstrate the problem (removed the includes):

int
main(void) {

struct servent *service;
int...
Forum: HP-UX 12-11-2008
3,892
Posted By goon12
You could use the glance tool.
You could use the glance tool.
Forum: Programming 12-05-2008
8,913
Posted By goon12
Also look at the /etc/*release file.
Also look at the /etc/*release file.
Forum: Web Development 11-10-2008
9,252
Posted By goon12
I think it's pretty popular. There are a few...
I think it's pretty popular. There are a few frameworks available too. I happen to like Pylons and/or Django.
4,631
Posted By goon12
ls -l | grep -v -e "^d"
ls -l | grep -v -e "^d"
Forum: HP-UX 10-08-2008
3,286
Posted By goon12
Hi, When you say HP-UX can't find the...
Hi,

When you say HP-UX can't find the devices, what is the message you're seeing? Is it something along the lines of "No such device address"?

-goon12
Forum: HP-UX 07-15-2008
6,111
Posted By goon12
First you have to make sure those HBAs are...
First you have to make sure those HBAs are supported.

Do you have an /dev/fcd* files? Try running an "insf -e"


-goon12
Forum: HP-UX 07-07-2008
5,250
Posted By goon12
Do you want to do something like this? tail...
Do you want to do something like this?

tail -f the_log_file > new_file


Both log files will continue to grow.
Forum: Programming 06-11-2008
15,482
Posted By goon12
I seem to have found a working solution: lstat. ...
I seem to have found a working solution: lstat.

if (lstat("/tmp/mapping-foo", &sbuf) <= -1) {
perror("lstat()");
}


I am still curious to know how to get the...
Forum: Programming 06-11-2008
15,482
Posted By goon12
Get the file descriptor of a socket file. C vs Python.
Hi,

I want to validate that a file is a socket file on Linux. I know I can do this using the S_ISSOCK macro, but I am not sure how to get the file descriptor for the socket file.

For example, I...
Forum: Linux 05-28-2008
8,701
Posted By goon12
You could try this: echo "- - -" >...
You could try this:


echo "- - -" > /sys/class/scsi_host/host<X>/scan


<X> is the host number.
4,231
Posted By goon12
Well I have kind of simulated ASP.NET's event...
Well I have kind of simulated ASP.NET's event driven model, using JSP/Servlets and implementing AJAX. Seems to do the trick.
4,231
Posted By goon12
.NET Alternative
Hi all,
I was wondering what the Unix/Linux alternative is for ASP.NET? I know there is mod_mono for apache, but I think I am looking for a java based alternative. Something that offers things like...
Showing results 1 to 25 of 25

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