199,114 Archived Topics
Remove Filter ![]() | |
here is code whhat is wrong, any will be appreciated ; ****************************************************************** ; Convert integer to ASCII/Binary string. ; Note, no error checking required on integer. ; ----- ; Arguments: ; 1) integer, value ; 2) string, address ; ----- ; Returns: ; ASCII/Binary string (NULL terminated) global cvtIntToASCIIBinary cvtIntToASCIIBinary: … | |
Hi. I have this problem with a Windows Form Application. I'm working with the Client, the server is already working and tested. If you look at this code: void WaitForMessage() { bool dropserver = false; while(dropserver == false) { char inputmessage[250]; int bytes = recv(sConnect, inputmessage, sizeof(inputmessage), 0); if(bytes <= … | |
Hi guys, I would appreciate it if you could help me reading a 16bit binary file (tiff image). Since the file is in 16bit, pixels of the file stores values ranging from 1200 to 4500. I want to retrieve those values. I used ReadUInt16 since the file has a 2byte … | |
Hi guys, Having abit of trouble with inserting values that i have in my form into my sql database. Basically it supposed to calculate a customer who borrowed a DVD or CD. I select the date that the customer brings the returned item by selecting a datepicker. The calculation works … | |
I know how to create textbox dynamically but the problem now is that I want it below my previous created textbox Dim textbox1 As New TextBox textbox1.Name = "Textbox1" textbox1.Bounds = New Rectangle(e.Location, New Size(100, 100)) Me.Controls.Add(textbox1) | |
Hi i am trying to do a transaction. It's basically were a customer makes a booking of a particular ablum(dvd or cd). In my database i have a table called Transaction with the following colomun names: Trasaction ID , MemberID, AlbumID , issueDate and ReturnDate. Here is were the problem … | |
Hi every one . Can you please tell me how i can change the text type field of datagridview to datetime pikcer or calender. if i click on edit columns in datagridview i can only see textbox column, combox, and button i want to change the date field in datagridview … | |
hello this my code : <?php $con=mysql_connect("localhost","root",""); if(!$con) { die('can not connect'.mysql_error()); } mysql_select_db("test", $con ); $others="others"; $sql="SELECT * FROM $others"; $result=mysql_query($sql); $num = mysql_num_rows($result); echo"<thead> <tr> <th>#</th> <th> id </th> <th>topic</th></thead>"; echo"<tbody>"; $i=0; echo"<table border='1' width='100%' id='table1'>"; echo"<thead> <tr> <th>#</th> <th> id </th> <th>topic</th></thead>"; echo"<tbody>"; $i=0; while( $i < … | |
hi, I installed NetBeans IDE 7.0 but when I tried run it this message keeps on appearing"see no.1." I tried to uninstall it but an error message also pops-up "no. 2". I tried changing the conf. but it keeps on saying access denied. please guys I need your help >.< … | |
hi every one i need to send data gridview values as email body but i dont know how to do it. Could any one help. The values which i want to send are location,date,and price. here is my code Dim mail As New MailMessage mail.Subject = "hi" mail.To.Add("to@hotmail.com") mail.From = … | |
I have been using some open source software, like weka/mallet to fulfill certain data analytics works. I know how to use the APIs of these softwares and write customized code under Eclipse. Right now, I would like to learn how to make this type of data analytics work as a … | |
Hi all, I want to make a program that monitors a certain process by its name given by the user. So the program starts at computer start up and asks you the name of the process that you want it to monitor( e.x. "nfsw.exe" or "klimn.exe" or etc.) then after … | |
Hello guys... Iam developing a stock maintenance system for a hotel (PHP-MySQL) in which the client will be updating the consumption everyday. Suppose the items are like Pepsi Buns Sauce Then everyday consumption he needs to keep track. He will login and enter the consumption details for 23rd March then … ![]() | |
I am a begginer in c++ and our teacher did start from the presumtion that we know C allready and jumped straight to advanced c++. Unfortunatly i do not know C and have trouble catching up. I mention that this is our 4th week and i got to do the … | |
I am new to bash scripting. Is it possible to get a value returned on a nested variable? At the command line, the following code will generate desired ouput: while read line; do echo -e "${line:21}"; done < Albums-linux.txt It takes a list of directories for albums and returns a … | |
Hi, I have a text file which has some lines, I may append others periodically, so I want a code that trails it (say at an interval of 5 seconds). When it sees that for 5 consecutive intervals no new line has been appended, the code decides to exit. Here's … | |
<?php ob_start(); session_start( ); include 'authenticate.php'; ?> aurheticate.php---------> <?php mysql_connect("localhost", "root", "") or die (mysql_error()); mysql_select_db("pms") or die (mysql_error()); if (!isset( $_SESSION['user_id'])) { if(!isset($_POST['txtuser_name'])) header('location:login(Admin).php'); $value=mysql_real_escape_string($_POST['user_value']); $user_name = $_POST['txtuser_name']; $pass = $_POST['txtpassword']; //user isentification if($value==1) { $query="select admin_name , admin_id from admin where admin_name='$user_name' AND admin_password='$pass'"; $sql = mysql_query ($query); … | |
char *ar[5]; //Array of pointers let say char * ar[5] contain: ar[0] = "cat"; ar[1] = "desk"; ar[2] = "desk" ar[3] = "zoo"; ar[4] = "cat"; how i want to get of any same strings. so in end ar should have the value "cat","desk","zoo". this is what i have so … | |
I want to create a java application where you can build simple logic circuits (just started learning java recently and it was just a random project idea I got off the net) Ultimately I want the gates as icons on a pane that users can drag and drop onto a … | |
Hello friends, I am working an a section of application which needs to Parse CSV Logs generated by PostgreSql server. - The Logs are stored C:\Program Files\PostgreSQL\9.0\data\pg_log - The Server version in 9.0.4 - The application is developed in C Sharp * The basic utility after Parse the Log is … | |
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged If ListBox1.SelectedItem IsNot Nothing Then Timer1.Enabled = False Else Timer1.Enabled = True End If End Sub | |
hey all i have a problem here... i recently download xampp for windows, but when i go to phpmyadmin i got some error message : error #2002 The server is not responding (or the local MySQL server’s socket is not correctly configured). in addition i not using mysql service from … | |
I've read articles saying that Ctrl+Alt+Del is an in-built Windows combination and cannot be disabled. Basically, I'm trying to make something like an anti-virus and most antivirus tools are practically impossible to shutdown by using CTRL+ALT+DEL combination. The moment one shuts down the process, another instance runs in a way … | |
It just occured to me that when I go to create a new SQL query using VS's query builder, it pre-fills in a query based on the datatable I am building the query with. Normally I just delete the standard query (unless it's sufficient) and write my own, but this … | |
I would like to find out what this code snippet does. i know it involves extraction from a webpage format gb2312 but can ano\yone explain line by line, i appreciate the help... :) Code blocks are created by indenting at least 4 spaces ... and can span multiple lines if … | |
Hey all , I am working on a website on which the user has to upload images, most of the images are of large size and that takes a lot of time for the image to be uploaded, is there a way by which i can reduce the time taken … | |
Hi all, In the section of the order confirmation mail: $get_cart_info, when I include this theres is somehow a syntax error, as I keep getting this error after mail has tried to send: Catchable fatal error: Object of class mysqli_result could not be converted to string in /home/www/ebm-fashion.dk/views/betaling_accepteret.php on line … | |
I am using jQuery and Ajax for some areas of a site and I cannot for the life of me work out how to only submit the Ajax if the form is valid. For normal jQuery validation I am using jquery.validate.min.js like this: $("#po-login-form").validate(); This works fine. I then have … | |
Hi, so ive various number of files and database tables including artist, album and tracks. On the webpage user's can choose and artist, an album then songs or the album to buy. However ive to write code so that when the user selects to buy the album all the tracks … | |
hi every one. I need some ideas for the calculation. I have a form where admin can add the product. field names are Product_id,Name,Description,Quantity,Unit_price now i have an other form which is used for buying products. What i want to do is when customer chooses the product, as soon as … | |
![]() | I have problem , I only get program to write the frist line but how to write the whole string? When I print that string I get correct ouput? It has 10 lines String fileName = "System.err"; File newFile = new File(fileName); try { if (newFile.exists()) { FileWriter fos = … ![]() |
![]() | I have a problem with writting this program I need to read a csv file and write it to binary then read it again. I has to be written in this way: Field name Data type Name First Text Name Last Text Birth Day Whole number Birth Month Whole number … ![]() |
i want to learn ajax from plese tell me how can i learn ajax from begening to advanced level plz tell me | |
I need to create a simple input form without the use of a DB. Can anyone please assist? Thnaks, | |
I'm a noob to the .net world and I was wondering how I would go about creating a rich text box by triggering a click event button. I am trying to shrink the data currently in my form. One way of doing this would be to take away the two … | |
How can I get items in listview? I know how to get the current item if selected but Im trying to put it in a loop where i need to get my three row items there. I have 3 columns and I want to get there items and insert it … | |
Is there is a way to sort 2D array based on one field ? Mine is an array Card(suit, rank). I want to sort it based on rank. | |
hi guys! i'm trying to build a wireless sensor network which should be able to detect and track bluetooth devices inside a room,thus it should have an interface(map layout) showing the tracking!!this will involve the use of triangulation methods in finding the target location. i would just like to ask … | |
hi, i have a small problem with my program: int main(int argc, char *argv[]) { int ende; int modus; short x; short y; mkdir("maps"); while(1==1) { cls(); //some printf's char enter=0; while (enter != '\r' && enter != '\n') { enter = getchar(); } system("cls"); ende=0; modus=0; //some printf's scanf("%d",&modus);fflush(stdin); … | |
hello, i wanna ask if somebody can help me with this problem. First code: #include <stdio.h> #include <stdlib.h> int main(int argc, char* argv[]){ if(argc>1) { int i=1, zmnozek=1; zmnozek=atoi(argv[1]); for(i=1; i<argc; i++) { zmnozek*=atoi(argv[i]); }; printf("Rezultat: %d\n",zmnozek); }else { printf("Nepravilen vnos!\n"); }; return 0; } And there is the problem: … | |
When clicking the "Edit" button on an existing post, you are presented with the post and just an "Edit Post" and "Cancel" button at the bottom, neither of which post the edited version. Is there a FAQ for the new methods? If not then there should be. Also posting a … | |
Hello people, Please i need your help here. I have been trying to send mail in my asp.net, but no success.Click this link and try sending mail to see the error:"http://www.ckcayangba.com/Contents/Contacus.aspx". Honestly i don't know where i am going wrong. Here is my code behind: protected void ImageButton_Submit_Click(object sender, ImageClickEventArgs … | |
Hey all.. i wan't make project with vb6 and database using mysql. did i've use mysql odbc connector ..??? i need some refrences.. Help me plizzz... | |
I need to convert this code to web.config file. Plz Help.. #Fix Rewrite Options -Multiviews RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d Rewriterule ^(.*)$ $1.php [L,QSA] | |
Hi everyone, I’m currently working on my Master Thesis which in few words concentrates about NoSQL databases and performance and tuning tests of particular MongoDB. I’m trying to create some test dummy data to put in so I can run some initially tests to create a baseline for comparison. I’ve … | |
this is my broadcastreceiver which will be invoked on receiving a message. <code> package com.dummies.castsBroad; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.util.Log; import android.widget.Toast; public class BroadcastsActivity extends BroadcastReceiver { /** Called when the activity is first created. */ @Override public void onReceive(Context arg0, Intent arg1) { // TODO … | |
A client has an ecommerce site, which is hosted on Magento but could be exported if easier. We are now trying to set up a couple more new branded sites which have independant designs but use the same product and client base. I have done some Googling and found that … | |
I've been able to write a thread into my app which basically does a loop in the background perfroming detection for a device being added or removed. works great! i am trying to implement another thread to check for a file on the found device...but i still haven't figured out … | |
Hello, I am using XMLReader to look thru and XML file that I have. While I have been able to play around with it and get it to pull some of the information I want, I am wondering what commands to use to do what I really want. For example, … | |
This is the instructions Program converts American football plays into scoring points Touchdown – 6 Extra point after touchdown – 1 Field goal – 3 Touchback – 2 Program reads play-name and uses “if-statement” to decide how many points to award Program does calculations in a loop to allow more … |
The End.