Hey,
Well unfortunately I don't have much interest, I just need to complete a task that I was assigned. I have to create a telemetry window and I have a design in the works. The hard part is I know how to do it in Tcl, Perl and on a straight C/VxWorks platform.
I have been trying to find...
Hey,
I'm an embedded systems programmer that has been waylaid into doing some Win32 work. I am having a tough time trying to figure out the windows GUI. A lot of things aren't making sense. I haven't been able to how to work on a windows program. Some things look familiar but other things...
Well there were some simplicities in the code snippet.
I call them bytes but yes I know they are words lazy names.
Making the items constants would be not be useful as they are updated by functions as GVs elsewhere. the array is an idea though but why not just a pointer?
I am wondering if there is a cleaner way to place strctured data into a buffer. Mainly since the buffer is an address on a cPCI card and just wants the data.
typedef struct header{
int h;
int t ;
} HEAD;
typedef struct secondary{
int ms;
int us;
} SECOND;
void output ( unsigned...
Hey,
I have a new partition that has been created. I have a directory off root that I would want to use as a mount point how do I preserve the data in that directory once I designate it as a mount point?
/home is contained in root device holding user data
->
/home is a mount point...
Hey,
I am reading in from a file which has numbers in the format of:
+1.0500000000000000E+004 or
-0.2500000000000000E+003
any idea on a cheap & easy way to change these strings into scalars? Or turn them into the following strings?
10500, -250 ?
SC
Hey I need help parsing data, here is what it looks like (this is a single line from the input file):
1189: 4m56.5 23.55us ..00C904 ....6010 WORD WRI OK .......---- --- ....
to split up the data I am using:
@data = split (/[\ \t\n\-]+/,$_);
which returns...
Hey,
I am working on a binary file and need to get certain values out of the file and be able to use them as readable values, hex or decimal. I was thinking un/pack can help me but not too sure. Here is my code:
open(INFO,"<$file") || die "Can't open $file: $!\n"...
Hey,
being the unlucky person of knowing the root password I get to set up a solaris box. I have been trying to place a solaris 7/5.7/2.7 box onto an internal LAN. I have the ip address, dns servers, gateway, and subnet but no matter what I try nothing works.
I have manually updated...
The webserver I assume is apache? I would use .htaccess to let people in and out that is what I use. check out:
http://faq.clever.net/htaccess.htm
or a search on google:
http://www.google.com/search?hl=en&q=.htaccess
check out freecode.com I think I took a script from there to do this for me.
Hey,
I am getting these weird warnings when I use comparisons (of strings) and work on strings. my script wasn't working so I did a perl -w myscript.cgi and I get warnings of the type:
Use of uninitialized value in string eq at readdata.pm line 6.
where that line is
(from readdata.pm line...
Hey I am running a simulator in Visual C++, on NT 4.0 It was designed to use the com port. The bad thing is that timing is an issue and we lose when the mouse is used.
Is there any one who knows how to lock out the com port? A semapohore would be best, since it is only needed in one...
Hey I have a question about calling cvs commands from Perl. I have trouble getting Perl to work correctly.
> cvs checkout module
and in Perl I am trying
` cvs checkout module `
BUt I don't think I use the module directory. Also commit is tricky
../module > cvs commit file
how do I do...
Hey,
I want to create a script that builds the header for me, since I have to put this on a lot of files, and for it to generic like this:
####################
#
# File Name:
# Author:
#
# Revision History
# -----------------
#####################
Any one know a slick way to do this?
Hey,
I have an input file that looks like:
$$Catagory1
^data one
^data two
... etc
$$Catagory2
^^data three
^^data four
... etc
$$Catagory2
^^^data six
^^^data five
... etc
I am looking for an easy way to parse this off the [^]+ and put them into seperate arrays any ideas?
D'oh! Thanks for that I missed it. Well I am trying to make a script that will preserve the formating of a textarea into an output file. If I use the virtual wrap I get evrything on one line but if I enter
carrige returns that is where I am getting mucked up. That's why originally I was...
okay I tried both bit I am still have the problems of having thr data show up as I like I keep getting ^M in my output files. here is my code
sub showtext {
# Split the text input into lines based
# upon new lines \n
@lines = split(/\n/,@_[0]);
foreach $line (@lines)
{
#...
Hey I am having problems with newlines entered into a textarea.
I have been trying to parse the textarea and replace the \r with <p>, but I am not getting it to work right. Everytime I view the output file I have ^M instead of a continued line or my paragraph tag. I am running on Solaris...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.