Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
4
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
~62.0K People Reached
Favorite Tags
java x 203
mysql x 127
c x 124
php x 93

135 Posted Topics

Member Avatar for newbie14

Hi All, I am having a system which receive data from around 30K gps . Each unit will be inserting concurrently around 1 minute. 1.What tweak should I add to cater for this? I target my ram to be 48Gb with 24 cpus. 2. Once the data grow should I …

Member Avatar for newbie14
0
427
Member Avatar for newbie14

I have the following socket connection codes. Where for every connection is one new thread. After receiving the data which is done via the producer then I put into a queue for next database processor which is the consumer. This works fine but the moment the queue gets build up …

Member Avatar for JamesCherrill
0
246
Member Avatar for newbie14

I have done a socket programming using bonecp as the database pooling for mysql. Suddenly I notice a lot of socket connection made but then after a few hours I got too many open files. I have set the timeout but somehow it did not timeout I don't know why. …

Member Avatar for newbie14
0
326
Member Avatar for newbie14

Dear All, I am looking for a tool which can help me generate reports and multiple types of charts. Can any one recommend based on their experience? I would like to manage to export minimal to excel and pdf too. I have seen one the php report maker unfortunately it …

Member Avatar for jiansheng.ding
0
424
Member Avatar for newbie14

I have the following snippet of codes first each of the thread is a socket waitign for connection where its gets a connection does all he necessary. Thereafter another section in the run it does this //run a new db connection and does a select where all those have not …

Member Avatar for rubberman
0
204
Member Avatar for newbie14

I am working on a small as2 message passing. Below are my codes. First is the host which will send the header and data to the server. Then the server is suppose to form a reply in this format http://www.edidev.net/edidev-ca/help/Using/Using_AS2/Using_MDN/MDNRequestFromAs2SubjMsg.htm <?php $header = "HTTP/1.0\r\n"; $header.= "CONNECTION: Keep-Alive \r\n\r\n"; // Here …

0
209
Member Avatar for newbie14

I have a very simple php curl application where below is my codes I used to send header and body to server. <?php $xml_data = "<Request><NewOrder>"; $URL = "http://localhost/rece1.php"; $header =""; // Build header as array for cURL option $header = "HTTP/1.0\r\n"; $header.= "MIME-Version: 1.0\r\n"; //$header.= "Content-type: application/PTI46\r\n"; $header.= "Content-length: …

0
218
Member Avatar for newbie14

Hi, Currently we have legacy system which is build purely using java and runs on jboss. We notice its using a lot of jms and also httpurl connectivity to pass on files. The system basically supports rossetta net framework where it allows file transfers between trading partners. We notice with …

Member Avatar for newbie14
0
165
Member Avatar for newbie14

I have googling a lot about this debate to move from table to div. What are your advices here to move or not. I have below my codes building layout using div. The issue I find with div for example below codes which I am referring to a template . …

Member Avatar for veera100
1
316
Member Avatar for newbie14

Dear All, I have a c# application where on normal I used a paper size fixed that is half letter(8.5 X 5.5). The problem now I want to design for a new paper size A4 but when I choose print it keep coming in the 8.5 by 5.5 size. Any …

Member Avatar for PRABHA1989
0
100
Member Avatar for newbie14

I am linking to a webservice all works fine. Below is my codes. private static void printSOAPResponse(SOAPMessage soapResponse) throws Exception { TransformerFactory transformerFactory = TransformerFactory.newInstance(); Transformer transformer = transformerFactory.newTransformer(); Source sourceContent = soapResponse.getSOAPPart().getContent(); System.out.print("\nResponse SOAP Message = \n"); StreamResult result = new StreamResult(System.out); transformer.transform(sourceContent, result); } I am not too …

Member Avatar for jwenting
0
139
Member Avatar for newbie14

I have a webservice to be accessed which is based on request and response. Below is how my php codes are works perfectly fine. class fNewRequest { function fNewReq($pTK, $pVID) { $this->pTK= $pTK; $this->pVID= $pVID; } } /* Initialize webservice with your WSDL */ $client = new SoapClient("http://**.**.**.*/**/**/***/webservice.asmx?WSDL"); /* Set …

0
130
Member Avatar for newbie14

I have UDP socket as below. I need to send back data to the client. I tried to capture both the ip and port but it shows me as Port is : -1 and InetAddress : null. What can I do to rectify on this? class ReceiverThread implements Runnable { …

Member Avatar for JamesCherrill
0
313
Member Avatar for newbie14

I am going to develop a web based point of sales system. It is going to be based on linux and php. Users will access it via internet and using browser as the tool. Problem is if the web server is down? The user want to be still able to …

Member Avatar for newbie14
0
181
Member Avatar for newbie14

I have a char all[1500]; which will store each network packet. I will convert the hex value into humand readable. Finally I need to extract the url. For e.g. I have this GET /mail/ HTTP/1.1\r\n. I know I can use first to decide if the word GET and HTTP/1.1. exist …

Member Avatar for newbie14
0
142
Member Avatar for newbie14

We have a socket application with lots of queries in it. The problem after doing some sample of jmap -histo we notice the number of sockets keep growing and resultsets fluctuates. Checked through and ensure all the resultset are closed and finally even the socket is close just based on …

Member Avatar for newbie14
0
911
Member Avatar for newbie14

I have my codes working where I got separate date and time columns. I would like to add one more column which have both date and time in. For the existing codes this how I did sprintf(all,'%02d:%02d:%02d.%06u%03u',CURDATE(),s / 3600, (s % 3600) / 60, s % 60, usec, nsec) I …

Member Avatar for newbie14
0
295
Member Avatar for newbie14

I have been taking few different heap snapshots. What I see is that the memory usage is not the same as reported by this codes. So how to know the exact memory is being used by my java application. I also see my leak report from MAT reports a lot …

Member Avatar for newbie14
0
290
Member Avatar for newbie14

Dear All, I have 2 tables one tblAssociate and tblData. The link between them is one to many. My search will be based on date time range where if I find even one data in tblData between the set range then I want to show the tblAssociate data. So I …

Member Avatar for 1stDAN
0
229
Member Avatar for newbie14

We are able to capture the whole packet hex values. The issue now from the hex values we want to dissect the level 3 protocol, application level protocol and also if the url value is present in the packet. How best to achieve this in C?

Member Avatar for newbie14
0
1K
Member Avatar for newbie14

I am trying to install ossec on a centos 6.4 machine but only repo which have .rpm file are from atomicrepo but then installing it require to upgrade my mysql I am reluctant to do it so I have used mock to rebuild and manage to yum install later from …

Member Avatar for newbie14
0
179
Member Avatar for newbie14

Hi All,We have a java application which does deal with lots of insert,update and select statement.We are using bonecp. So we took some sample heap and analyse it with MAT and its pointing to jdbc leaking. Thus we went into the codes and ensure that all resultset,statement and connection are …

Member Avatar for newbie14
0
946
Member Avatar for newbie14

We have socket application which sends out quite a number of email out. So we decided to send huge number message into it which will trigger emails. Eventually we see the email are taking hours before it reach any of the inboxes either gmail,hotmail or yahoo etc. We have this …

0
417
Member Avatar for newbie14

We have a packet capture function which is as below. The issue now each of the hex value of packet I read and concat into a char *hex2Value using this code below. I would like to know is this the most efficienct method to concat all into one single string …

Member Avatar for newbie14
0
242
Member Avatar for newbie14

We have a java application running on Centos 6.4 what we notice is that the RES is around 370m which is more then the allocated max that is 256m. Does this signify that we the application is leaking? But overall the jstat gcutil does not show any FGC but quite …

0
122
Member Avatar for newbie14

Dear All, I am trying to install pf_ring on centos 6 using its user guide. I am stuck at page 10 for this command [ICODE]$ cd <PF_RING PATH>/userland/lib $ ./configure $ make[/ICODE] I get this error [CODE] make ar x libs/libpfring_dna_x86_64.a ar x libs/libpfring_mod_virtual_x86_64.a gcc -g -Wall -fPIC -I../../kernel -I../../vPF_RING/guest/kernel …

Member Avatar for newbie14
0
2K
Member Avatar for newbie14

We have a simple query and insert using C code linking to mysql db. The issue now on itself the script works fine. But when we put to run as a cron job the select query gives empty results and when we run back on the db there is results. …

Member Avatar for newbie14
0
698
Member Avatar for newbie14

We are trying to send several emails via C language on a centos 6.2 platform. Below are the codes. I added and left char *filename = ""; the I get error as sh: TEST: No such file or directory sh: TEST: No such file or directory sh: TEST: No such …

Member Avatar for newbie14
0
299
Member Avatar for newbie14

We have a php page inserting into mysql db. The problem all the tables in mysql we have been just using the default collation and character set as the latin1_swedish_ci. All have been working well where I can insert russian character and view it well. But I notice in the …

Member Avatar for diafol
0
414
Member Avatar for newbie14

I have a dropdown list on each cell of table row. Now what I need is dynamically add more dropdownlist on a particular cells with pressing the add button. Any code snippet to help on this? Thank you.

Member Avatar for newbie14
0
7K
Member Avatar for newbie14

Dear All, My problem is that exactly every second I need to call a particular function to do some sql querying. So after reading I found that the latest api is timer_create. Below is a skeleton. Is this skeleton a right one to move forward? Thank you. [CODE]#include <stdio.h> #include …

Member Avatar for newbie14
1
2K
Member Avatar for newbie14

Dear All, We are capturing each network packet which is in this format. The problem is that we would like to get the url if it exist in the packet in the form of http://...... ? What is the best whaay to interpret it to capture the url? 000000 cf …

Member Avatar for newbie14
0
179
Member Avatar for newbie14

We are running a C program where for every one second there is a function callback. Below is the snippet of the code listed. It is ran over every second without missing so we notice sometimes when is busy doing the insert part and the next select is up and …

Member Avatar for newbie14
0
242
Member Avatar for newbie14

Dear All, We have got 3 divs as below. What we would like to do is that the inner div gpsDataDiv will be table populate and later just assign here using this method document.getElementById("gpsDataDiv").innerHTML = htmlString;. The problem here is that in IE there is space between the two div …

Member Avatar for yoyokapil
0
90
Member Avatar for newbie14

We have a socket connection which receive data from gps devices. The problem now is that we find some of the data coming is corrupted and therefore it disconnect the socket. The issue here we have checked the device logs files all looks fine. The engineer have implemented in C# …

0
91
Member Avatar for newbie14

Dear All, I have a time ticker which updates the time say now for 5 seconds. Then it keep calling a function and in it via sql query based on the current time it shows the relevent sum data. I got few things to confirm am I doing the right …

Member Avatar for skatamatic
0
1K
Member Avatar for newbie14

Dear All, I am trying to write to a file as below. But my file shows empty what could be wrong here? const char *dataFileName = "data.dat"; FILE *ftdata = fopen(dataFileName,"a+"); fwrite("TEST",1,2,ftdata);

Member Avatar for Tumlee
0
83
Member Avatar for newbie14

Dear All, I pull data from 2 different queries and both have date time data in them. So I need to present as one table but I want to order on time which is available in both queries. So how can I ensure that both data is order well on …

Member Avatar for BenzZz
0
88
Member Avatar for newbie14

I have been using mysql and due to it could not support distributed transaction then I made individual transaction and finally commit each separately. So now I found a library from devart.com which can do distributed transaction but I need to use the Transaction Scope method which is in this …

0
83
Member Avatar for newbie14

I have a page at this link [url]http://183.78.169.53/lp/addRoute6.php[/url]. You can press first the add button to have at least 5 rows. So then you can select the location for the first row. Then if you select the same location for second row if it is same with the previous it …

Member Avatar for AleMonteiro
0
171
Member Avatar for newbie14

Dear All, I have a system with the web server(apache) and db(mysql) server install on separate machines. So at times when the traffic is high I can not access my system. So first I would like to know where is the error and where is the error log file will …

Member Avatar for No woman No war
0
381
Member Avatar for newbie14

Dear All, I have a function with input parameter as const u_char *p. So when I write like this printf("\n\n Char value p : %.2x",(unsigned int)p[1]). It gives me a hex value. How to print the whole p value which method is best to use. I need to analyse it …

Member Avatar for newbie14
0
472
Member Avatar for newbie14

I have socket connection which keep reading data and then it will send it via a queue for next processing in another thread. I notice at times it just stop sending data to the queue. I will print this System.out.println("\n\nSending TO QUEUE : "+message); and stop but I do not …

Member Avatar for JamesCherrill
0
376
Member Avatar for newbie14

Dear All, I have a problem where I can query more then 4000 lines the problem I already drill down is here. The problem is during the generation of the lines some how it takes some time then I get a not found page error. What can I do to …

Member Avatar for broj1
0
4K
Member Avatar for newbie14

Dear All, I am using fpdf to generate a report but one of the field I need to be multicell as the contents can be few lines long. Below is the codes what happens now is that the multicell will be few lines long but the rest of it will …

Member Avatar for newbie14
0
964
Member Avatar for newbie14

Dear All, I got a table as below where it can capture for a particular deposit different type of payment such as cash,cheque,credit card etc where I give each type an id and represented via the paymentID column. Below is part of my query and where I am stuck is …

Member Avatar for urtrivedi
0
195
Member Avatar for newbie14

Dear All, I got a query as below.The problem is that even there is no data in that date range it generates one single null value row. The moment I remove the this line SUM(tblDepositFullRefund.amount) the problem is solved. Any solution to this? [CODE]SELECT CAST(CONCAT('DR',CONCAT(tblDepositFullRefund.depositFullRefundID)) AS CHAR) AS receiptID, SUM(tblDepositFullRefund.amount) …

Member Avatar for newbie14
0
133
Member Avatar for newbie14

Dear All, I can insert data into mysql db already via my C codes. The only problem now I need insert the time in this format "2011-12-11 09:01:02". How can I format this in my C codes? Thank you.

Member Avatar for newbie14
0
81
Member Avatar for newbie14

Dear All, I got a standalone application where I update 3 db at one time. One on local db, one is central db and one more is the its exact copy of local db in the central server. So I have been using the normal begin and commit when there …

Member Avatar for lolafuertes
0
155
Member Avatar for newbie14

Dear All, I got one table as the tblMasterData then I left join it with another table like this tblEventAlert. So what I want to do if there is a match between tblMasterData and tblEventAlert then for that tblEventAlert I would like to match it with tblDevice to to get …

Member Avatar for newbie14
0
227

The End.