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...
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...
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...
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)...
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...
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...
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...
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...
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...
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
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.
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.
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] =...
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.
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...
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.
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] = "No Info found!\n" ;
char *prbuf = &returnbuf[0] ;
case SQL_TYP_NINTEGER: /* long with null...
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
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
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...
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.