Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: huskers
  • Content: Threads
  • Order by date
  1. huskers

    data structures in perl...

    Hi, I have data from table which i want to store in a data structure. The data is as follows: ab, 2 ab, 3 ab, 4 cd, 10 cd, 23 cd, 15 cd, 16 ef, 5 ef, 6 ef, 11 ef, 12 ef, 51 I want it in a data structure as follows: ab 2, 3, 4 cd 23, 15, 16 ef 5, 6, 11, 12, 51 I have to pass ab and...
  2. huskers

    dynamically building selection list....

    I am new to php and I am trying to write a database management tool in php. The database i am using is Mysql. I am planning to have 3 selection lists. The first selection list displays all the databases in MySQL database. When any one database is selected the 2nd selection list displays all the...
  3. huskers

    socket programming help...

    I have written a client-server process to send records from box A to B in C. The record is sent to B as follows: %03d\0<pipe delimited record>\0 The first field is the length of the record and the second one is the actual pipe delimited string(The way to send the record can be changed). There...
  4. huskers

    socket programming help...

    I have written a client-server process to send records from box A to B in C. The record is sent to B as follows: %03d\0<pipe delimited record>\0 The first field is the length of the record and the second one is the actual pipe delimited string(The way to send the record can be changed)...
  5. huskers

    data structure...

    I need help in finding an efficient way of storing the following data. I just want to store all the information in one data structure. The data that will be obtained contains the following info: The data contains server names. Each server name will have a socket that it needs to write to...
  6. huskers

    file locking in tcl...

    I have written a package in Tcl to log data to a file. This package creates one file per day and the users can log data to this file. Many users will eventually start using the pacakage and might write to the file at the same time. Is there a way in Tcl to do file locking so that only one...
  7. huskers

    help with string parsing which contain spaces.....

    I have string which I need to parse and load it into database. The string contains 7 columns and is pipe delimited and some columns might be empty spaces. For empty space I need to load them into database as null values but the problem is I can not read the nulls in C. The string to be parsed...
  8. huskers

    parsing string information...

    Hi, I have the following strings and I need to parse the information into variables like month, date, time, node, process, time_to_insert(1391/1324 from below strings). Sep 7 00:05:01 a3 asdf: 1 p1 --> Time_To_Insert=1391 Sep 14 00:05:01 a3 asdf: 1 p1 --> add=1324 I used the split function...
  9. huskers

    perl DBI question.....

    Hi, I want to add a value to an already existing data in the table. For ex: Table A: a b c 10 20 30 40 50 60 I want to add 50 to column a and column b so that the result looks like this: Table A: a b c 60 70 30 90 100 60 Can anyone tell me if i can acheive this using one sql...
  10. huskers

    help with perl script.....

    Hi, I have perl script which contains all functions. Now how can i call these functions from another script. Do i need to install the first script as a package. If so can anyone tell me how i can do it. Thanks in advance
  11. huskers

    data structures in perl....

    hi, I am new to using data structures in perl. I want to have a data structure something like this in C: struct tmp { int a int b void *function(); sub routine that needs tobe executed } Can any one tell me how i can do it in perl. thanks in advance.
  12. huskers

    remove leading zeros

    I have a short value and after performing some bit operations i use sprintf to print it to a character array. Is there any easy way to remove leading zeros.
  13. huskers

    error when running simple C code....

    Is there something wrong that I am doing in the below code. It is throwing segmentation fault. #include <stdio.h> #include <stdlib.h> int main() { char **arr, str1[10]; int i, a; a = 20; strcpy(str1,"hello"); for(i=0; i<a; i++) { printf("Before malloc...\n"); arr[i] =...
  14. huskers

    error when reading excel file

    Hi, When i am reading an excel file i am getting the following error: Negative length at /usr/local/lib/perl5/5.8.0/i686-linux/IO/Handle.pm line 427. can anyone tell me what this error means. I am using "use Spreadsheet::ParseExcel;". Thanks in advance.
  15. huskers

    data loss when moving files to NFS mounted directory

    I am seeing data loss when moving files to NFS mounted directory. I use the mv command to move the files from a directory to a NFS mounted directory. Is there a better way to do this. There is a process running continously which reads files from NFS mounted directory and processes it and deletes...
  16. huskers

    Loading two frames in same page when item is selected

    I am new to javascript. I have a drop down menu which contains some items. When one of them is selected i want some data to be displayed dynamically in two frames just below the drop down menu in the same page. Can any one tell me how I can do it. Thanks in advance.
  17. huskers

    problems with sprintf()

    I am trying to print the sql values in a buffer and then try to print it. But the prbuf in the below chunk does not print anything. prbuf is defined as below: char returnbuf[2023] = &quot;No Info found!\n&quot; ; char *prbuf = &returnbuf[0] ; case SQL_TYP_NINTEGER: /* long with null...
  18. huskers

    data cubes

    Is there a way to build data cubes using multidimensional arrays in C and create interface to view it. My company is planning to remove Hyperion OLAP tool due to cost cutting measures and wanted me to work a way to build data cubes. Thanks
  19. huskers

    data cubes

    Is there a way to build data cubes using multidimensional arrays in C and creating interface to view it. My company is planning to remove Hyperion OLAP tool due to cost cutting measures and wanted me to work a way to build data cubes. Thanks
  20. huskers

    tuning message queue parameters in linux

    hi, I have a script which puts messages on message queue. On AIX I had the max. size of queue set to 4MB. Just wondering what is the maximum size the queue can be set to on Linux?. The defaults as as follows: max queues system wide = 1024 max size of message (bytes) = 8192 default max size of...

Part and Inventory Search

Back
Top