199,113 Archived Topics
Remove Filter ![]() | |
Hi all, I have virtually no knowledge of C, but I have a problem with one of my scripts. It runs fine on a 64-bit Linux machine, yet it gives me a seg fault when run on 32-bit linux. gdb tells me that the seg fault occurs on line 314. … | |
My file below checks if the user is ! logged in, and redirects to login page, or does nothing if user is logged in. [CODE]<?php if(isset($_COOKIE['SID'])) { $sid= $_COOKIE['SID']; $uid = $_COOKIE['User']; $lastip = $_COOKIE['Cname']; $_POST['SID']=$sid; $check = mysql_query("SELECT * FROM users WHERE SID = '".$_POST['SID']."'")or die(mysql_error()); while($info = mysql_fetch_array( … | |
Hello, I need some hints about how can I develop an remote desktop application in C#. I would have a client (Windows Forms or web) and a server that sends streaming video and audio [I]captured[/I] from the remote computer screen. Most important is to be real-time and performance rather than … | |
Hey there so this program im building needs to read the info from LocalMachine\\SYSTEM\CurrentControlSet\\Control\\ComputerName\\ComputerName\\ within that folder i need to get the data from the string value called "ComputerName" I've tried a lot of ways to get this within c# but with no success im afraid :/ I'm just ending … | |
Hi guys, I'm trying to create the simplest of databases. The database needs all the standard tasks, such as: add record, delete record, show all records. I need this accessible on the internet, so anyone can check it out. I will probably put it in a password protected directory, unless … | |
Hello. I've got a problem that I haven't been able to solve after a long time searching. It's a simple problem. I have two forms. 1) Form1 2) Form2 I need to get from Form1 to Form2 and vice versa. I can get from Form1 to Form2 easily, but I … | |
i am trying to send AT commands on a GSM modem. this is my code.. [CODE]import java.io.*; import java.util.*; import javax.comm.*; public class SimpleWrite { static Enumeration portList; static CommPortIdentifier portId; static String commands[] ={"AT+CMGS=1","AT+CMGS=\"+919007413343\","Hello there"}; static byte[] newline[]={(byte)13,(byte)10}; static SerialPort serialPort; static OutputStream outputStream; public static void main(String[] args) … | |
I am trying to make a program that outputs a triangle and the program then should asks the user to enter the size of a triangle to print on the screen. After getting this number, the program should then print a triangle to the screen by printing a series of … | |
Greetings Good People of DaniWeb, I have been on a search for a solution for my problem for weeks and weeks now. My search has brought me into this wonderful community in which I hope to find help. I will be doing my part in the community by providing help … | |
Hi everybody! I am trying to use fork() and wait to perform a simple task with c++ but I have noticed that the performance is quite different from what I expected. [CODE] #include <unistd.h> #include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) { int number = atoi(argv[1]); int i; … | |
public class Strength3 extends ConsoleProgram { private static String[] blank; private static String it; public void run(){ blank = new String[5]; for (int i=0; i<5;i++){ blank[i] = "-"; it+=blank[i]; } println(it); } } why does it print 'null' first. all i want is just 5 hyphens...thanks | |
Hey, I'm working on this project and I need to know how to use global variables, basically, I have three functions, one of which sets the data for the other functions to use. In my main, I want to call all these functions to work. [CODE] using System.IO; using System; … | |
how to make video lecture application??have any idea??help me please :'( | |
An exercise that Stroustrup wants the reader to do is understand the output of the following program. [code] #include "../../std_lib_facilities.h" struct X { int val; void out(const string& s, int nv) { cerr << this << "->" << s << ":" << val << "(" << nv << ")\n"; } … | |
:rolleyes: hey, hope everyone is orite.its me first time on this site, its marvellous, everyone is so nice. well i wanted to do my bsc computer science dissertation on the security aspect or networking/security etc.. i have been through most of the threads before but still am i havent grasp … | |
I want to validate the textbox like , the textbox can not accept string value..i can accept only the number value.............................. At first i had validated the textbox in VB.Net like : =========================================================================================Private Sub txt1_KeyPress(KeyAscii As Integer) If (KeyAscii < 48 Or KeyAscii > 57) And KeyAscii <> 8 Then … | |
Hello again. I have an assignment that involves inputting the firstName, lastName and score of a student with the values being added to a textbox for display. The problem is the last part of the assignment involves getting the last names sorted alphabetically which involves the use of an array. … | |
Here I am required to use REGEX to do the stock price program, yet I found it almost impossible for me to do, I can only deal with for loop. '''Parse Stock prices. Create a function that will decode the old-style fractional stock price. The price can be a simple … | |
I am currently working on an application for use with scanning an printing devices. I use the ManagementObjectSearcher in order to retrieve device names and Id's: For example using (Don't forget to add the reference to System.Management.dll in the framework 2.** folder if you're trying the code) [CODE] Dim searcher … | |
Hello I'm trying to iterate backwards through a vector. with a while loop it works fine. prints out: 12 8 4 1 However the for loop prints 196735 12 8 4 Could you please tell me why this is. Probably something wrong with my logic i don't know I'm using … | |
Hello, first post =D Seemingly simple question, but I can't seem to find the solution. [CODE] (above were other SQL statements I had been fooling with) SQL = "SHOW TABLES;" Try conn.Open() da = New MySqlDataAdapter(SQL, conn) Dim cb As MySqlCommandBuilder = New MySqlCommandBuilder(da) da.Fill(ds, "products") dgvMain.DataSource = ds dgvMain.DataMember … | |
Hi everyone, i have some question regarding my project.. I am currently work on a MP3 player project.. And i came out with a problem.. Here is my code [code] private void mediaPlayer_PlayStateChange_1(object sender, AxWMPLib._WMPOCXEvents_PlayStateChangeEvent e) { if (e.newState == 3) { double dur = mediaPlayer.currentMedia.duration; currentSongProgress.Maximum = (int)dur; } … | |
Ok basically I have a program that is doing a counter clockwise spiral and will print the value i or print out a 0 depending upon if the number is prime. n is equal the length of the spiral while i is the initial center value of the spiral which … | |
My rand() isn't very random. As a matter of fact, it's not random at all! I am running Ubuntu 10.04 on both home comp and laptop. When I execute the code: [CODE]#include <iostream> #include <cstdlib> using namespace std; int main() { int x; x = rand(); cout << x; return … | |
Again I come crawling for help... I made a program that makes coordiant points and lines with these coordinates. A new class is going to inherit from the class with the lines, and calculate the distance between a line segment and a point. I found the correct mathematical formula. With … | |
Hi to all, I want to know how to send data to MS-Excel sheet from HTML form with javascript. It should be done in javascript not java. Thanks | |
Hey every one... im trying to read file path from .txt I can read it but there is one big hole in which i stepped.. So if you could help me out?? lets see the code looks like this: [CODE]Imports System.IO Public Class Form1 Function INIparse(ByVal TextStringToProcess As String, Optional … | |
Hi, I have been struggling with Valgrind's error in this function: [CODE]void parse_date(char *date_out) { char *date_in = __DATE__; int month = 0, day = 0; char *str_month = (char*) malloc(sizeof(char) * 4); char *str_day = (char*) malloc(sizeof(char) * 3); /* check mallocs */ if ((str_day == NULL) || (str_month … | |
Two Sessions Questions I am developing a members site, and trying to make it template and DB driven, so it can be transportable between domains. Each page that is called makes use of include statements to bring in the constant information that is found on every page Sample page call … | |
how to creating video lecture application???any idea please :'( | |
I have to display a <div> data in a loop in XSL.But the below code is not working. Please help. <script> i=3; for(i=0;i <xsl:text disable-output-escaping="yes"><</xsl:text> count;i++) { </script> div style="float:left;background-color:#D3D3D3;width:100">test</div> <script> } </script> | |
Hi, I want to know if we can use javascript for file encryption (not text). If yes then how? Any help appreciated. | |
I need to remove the prefix(domain name) if exist in front of a username from a session variable. paramsql.Value = Session("ssNtUser") say the domain is za username is macupryk I would like to remove the za\ so in the session variable I have macupryk only but the domain name can … | |
Hi everyone.... I want to develop a music lexicon (tyoe band name --> give description) and I want to add terms (bandName and description) I use ArrayList but I want to change. I have also the code that read a [B]text [/B]file (bands.txt) but I dont know haw it works... … | |
Firstly... I am a new in Java... I have a music dictionary that use an arreylist to store the terms and definition The user use the terminal to interact with this dictionary. [CODE]private void addTerms () { addTerm("Anathema","Atmosheric metal band from Liverpool, UK." } [/CODE] Because, I would like to … | |
Hi, I created a program that makes a multiplication table, I dont know where the .txt file is located after executing the program Im using turbo C++ :-/ [CODE]#include<iostream.h> #include<stdio.h> void main(){ int multiplicand; int multiplier; int toprow; int column; int repeater; FILE* Starter=fopen("[COLOR="Red"]multiplication.txt[/COLOR]","w"); cout<<"Insert the number of repetitions: "; … | |
![]() | i need to write a program that get the argument through argv[] and do a checksum to the input files where: argv[1]-the program to run eg.md5sum argv[2]-the output file with all results argv[3..]- the files the program need to run all checks in parallel using fork() an the output file … ![]() |
Hello everybody, I am looking for a good C++ midi API. I have written a program in C++ that needs to be able to export MIDI. So far I had written my own export function, but I feel that the complexities of low level midi coding will become to great … | |
from Tkinter import * import sys Root=Tk() RTitle=Root.title("Windows") RWidth=Root.winfo_screenwidth() RHeight=Root.winfo_screenheight() Root.geometry("%dx%d")%(RWidth,RHeight)) mainloop() Hello. When I run this code the window takes up the entire screen(win7).but remains below the bottom of the window portion of the taskbar. Even if the screen size is changed automatically carry out this.According to the height … | |
I have finish coding some of my Payroll Program modules. But im having a problem on the log-in. I would like the log-in to determine the type of the user logging in, a User or Admin (Level Access of course). If it is a User, all command buttons in every … | |
hello friends i m larning core java.i want some write code of some program by in which i can use the concept of opertors,inhertance so plz me assignment so that i can do practic. | |
I am attempting to edit this Queue class to only use myBack pointer, i began having errors and now I am lost.... LQueue.cpp is as follows [CODE]/*--- LQueue.cpp ---------------------------------------------------------- This file implements LQueue member functions. -------------------------------------------------------------------------*/ #include <new> using namespace std; #include "LQueue.h" //--- Definition of Queue constructor Queue::Queue() : … | |
Hi, I need some assistance trying to delete elements in list. Your task is to write a function, called bawdlerize(<sent>, <word>), which removes an unsavory word, <word>, from a sentence, <sent>. Use the "del" operator on lists for this function. Example: s = ["now", "is", "the", "time", "for", "all", "good", … | |
Hi, I have a table `Categories` with fields (category_id, category, parent_category_id) I want to write in a single query to replace the parent_category_id with the corresponding category_name. [CODE] // OBJECTIVE: To return all category names and parent category names // if category is root (no parent), parent category name is … | |
I'm trying to see if someone can help me with two issues with my program. It compiles fine without errors, but some of my numbers in my amortization table only gives me one number after the decimal place and others give me two numbers. I was wondering if something in … | |
i need to get the output of 1 2 4 7 11 16 22 i know im on the right track however i cant figure out a way to get the outputs in the right form like 1+2+3 etc like its doing in the output i should get. i know … | |
im trying to convert julian date to calendar date and vice versa im not getting any errors, but the output im getting is ridiculous. any help is appreciated [code] #include "stdafx.h" /* int _tmain(int argc, _TCHAR* argv[]) { return 0; } */ int isLeapYear(int year){ return ((!(year % 4) && … | |
Hi, Ive been given an assignment in college to implement a dog class and to include functionality such as eating,sleeping,barking etc..im not really familiar with writing code to describe living things so just wondering could anyone give me a few suggestions as to how to go about doing this? I … | |
Here is what i need the PRG to do... Assignment #4 When you toss a coin, generally, you don't get too many heads or tails in a row, but if you toss enough times, eventually you will get a number of heads in a row or tails in a row. … | |
Need some help here. Why after I insert the node, it loop back to insert node again, and it not back to the menu. [CODE] #include "stdafx.h" #include <iostream> #include <string> #include <iomanip> #include <sstream> using namespace std; struct place { string cityName; place *left, *right; }; string myStr; void … |
The End.