199,114 Archived Topics
Remove Filter ![]() | |
i have a problem in which i have to remove char from strings by sending one string and char ata time to a function. in the below code it works fine for first string but for each successive string initial characters are not passed ..like for second call first chatcter … | |
Hey guys... I want to write a program that transforms numbers into letters and letters into numbers... for example 20 would be transformed into twenty I have this but I don't know what's missing or what's the problem... help please [CODE]#include <iostream> #include <string> using namespace std; using std::string; void … | |
Hi, Code below returns this. [code] Array ( [0] => 3 [id] => 3 [1] => John [name] => John [2] => Goog [surname] => Goog ) [/code] Everything repeated. Why? Also, I need to serialize. I need it for some other reason. [code] $sql="SELECT * FROM friends WHERE id='3'"; … | |
How do i stop the following thread? [CODE] from threading import Thread from scapy.all import sniff class SnifferThread(Thread): def __init__ (self,filter): Thread.__init__(self) self.filter = filter def run(self): sniff(filter=self.filter, prn=self.pkt_callback, store=0) def pkt_callback(self,pkt): print pkt.sprintf('%TCP.payload%') if __name__ == '__main__': sniffer = SnifferThread("tcp port 80") sniffer.start() #here i will make a GUI … | |
hi, Please could you help me with displaying the png image file I am saving. I want it to display just after it is saved so within the same function onPLOT [CODE]import wx import cx_Oracle import datetime import wx.grid import csv import numpy as np import matplotlib.pyplot as plt import … | |
hi, got a new prob, how can i create a php page that automatically refreshes each time i access the page. | |
Hi all, I have a single table with both parent and child nodes, and each has an order number in it. I am trying to write a single query to output them in order, its for a navigation list with categories and sub-categories. I could manage it in code rather … | |
Hi I'm making a login panel which sends data to the same page and I use a class made by me and called 'user' that stored user information and autentification. When I refresh the page I check if any session was created before (it was created at first successfull login … | |
hey, everyone. I am still learning templtes and I have 2 questions: 1-Why is it that all the examples of templates I have seen are about arrays?Is that all templates are used for? 2-after pondering about the above question, I decided to try something else witha template..a generic unction. However … | |
How to store string words into individual variable For example: string str1(“Today is a very nice day!”); [B] then we need to store[/B] string s1 (“Today”); string s2(“is”); string s3(“very”); string s4(“nice”); string s5(“day”) Thanks a lot! | |
Hi guyz, i'm aiming for a php and My SQL dabase website, can anybody guide me plz? appreciate the help:) | |
hi, i am trying to upload an image with comment......!! mycode is like below...... if($_POST){ getting posted variables for comment mysql_query(adding into database); if(image is posted){now getting image variables mysql_query(inserting into database); } } if works fine for me but problem is that i have two different tables one for … | |
i have place Masked # # # # # # # # # . and i have put MS Sans Sarif Font But it is not going in the Boxes Properly Kindly let me know the Idea.Kindly find the attachment also.and kindly let me know any way.So that Amount as … | |
The name of this question is oracle project Hello and Thank you in advance for any assistance. [B] System info: [/B] I presently use Netbeans6.7,MySQL,glassfish to work with learning JSF and java apps etc. [B] The Purpose of this post is: [/B] I recently was presented with a tutorial to … | |
How can selected date could be entered in the web form using c#.net 2005, and show the calender icon instead of the actual calender size that we add from toolbox... any samples done on it is apprecited...thanx | |
helllo last day i did program related to recursion that is factorial of numbers i red lot of books in my library but i found only this program only in every book. i also thought lot on recursion but i did not find any more program please can anybody tell … | |
Why doesn't this work? I choose English and it doesn't do anything... neither does Norsk work. Anyone help please, thanks. [CODE]<?php //nodag = Norwegian day //endag = English Day // dag = day if(!isset($GET_['ok'])) { //start if ?> <form action="" method="get"> <select name="lan"> <option value="eng">English</option> <option value="no">Norsk</option> </select> <input type="submit" … | |
hi i have a plotted a graph in zedgraph and i had a problem that the line was stopped in the middle and not completely drawn. I have thought that i have not completed the zed graph point pair list. But when i checked it programatically it was completed and … | |
[CODE]L = [ 0 , 2, 1 , -1 , -1 , -1, -1 ] for i in L: if i <= 0: L.pop ( i ) print L [/CODE] What I was expecting was that L = [ 0, 2, 1 ] but the result was [ 2 , … | |
can anyone help me with the code. am trying to import the content of an excel sheet to my access database using common dialog in vb6. i tried this code below but is not working ........ [CODE] Private Sub sLoadExcel() If CommonDialog1.FileName = "" Then Exit Sub Dim exc As … | |
I would like to make some query using the SELECT function. However i wasnt able to get the results i want. My code is as follow: [CODE] $sql = "SELECT * FROM device WHERE ((device_num like '%$val_d%') OR (dib like '%$val_dp%')) ";[/CODE] can i write it in this way? pls … | |
Hello. This time it might be a bit more complicated. [CODE] def start_game(): global no_winner no_winner = True rows_cols() global board board = make_board() print_board() player_select() def rows_cols(): global rows global columns rows = int(raw_input('Height: ')) columns = int(raw_input('Width: ')) if rows < 4: rows = 4 if columns < … | |
Hi, I have an insert statement that i need to refine...basically I need to trim the first couple of letters of whats trapped inthe field. so e.g. Z:\aaa\1.jpg needs to become aaa\1.jpg Im tried this but its not working [CODE]sImagelink = mid(request.form("Imagelink"),4,len(request.form("Imagelink")))[/CODE] any ideas? | |
i need to print the form in asp.net using vb coding. anyone can help by providing me the code for printing the form, using vb code thanks a lot | |
Problem Statement: Merging and Sorting of character arrays You are required to write a program that takes character values in two different arrays as input from user. After getting input, make a third array and merge both these array in third array. Output array must be sorted in ascending order. … | |
Hey guys, first of all thanks for the time to even read this. Basically, Ive had some trouble in figuring out how to get this operator overloading to work. I think I'm having trouble in the functions calls that are within this function. These functions that are giving me trouble … | |
Okay, well, I got my Address Book project done on time :) My current project is to turn it into a class. I have been working on this for a while and I keep getting set back to square one. My biggest problem is with writing some sort of user … | |
hi friends when i am running my programe on cmd in C:\Programe File\jdk1.6.0_14\bin I got the message that file name.java uses or overrides a deprecated API . Recompile with -Xlint: deprecation for details . what it meant how it will solved . please help me thanks in advance for reply … | |
I'm a first time Java programmer and I'm having trouble compiling/running code. I installed jdk and I'm using windows XP MCE. I can get javac.exe to create a .class file but when I try running it with java.exe I get an error Please help. Thanks! [URL="http://img121.imageshack.us/img121/6788/javanowork.jpg"]http://img121.imageshack.us/img121/6788/javanowork.jpg[/URL] | |
Hello all, I have a form of 4 tabcontrol, I want to put the next button on each tab so that when the user press it, it goes to the next tab. How will i do that. Please, help me out. | |
//The below mentioned code is not working on my C compiler.The //errors im getting is :(1)Extra parameter in call to_ inport b_. //(2)Too few parameters in call to "outport".(line 25) //(3)Not an allowed type(line 25) [code=c] #include<stdio.h> #include<conio.h> #include<dos.h> void main() { char data; int choice; clrscr(); printf("Enter the choice … | |
Why doesnt this code work. I keep getting false even when i type in the correct username and password [code] $user_name = mysql_query("SELECT * FROM users WHERE username = '".$Entered_UserName ."' AND password = '".md5($Entered_PassWord) . "'"); $user_name_password = mysql_fetch_assoc($user_name); if($user_name_password === false) { echo 'false'; } else echo 'true'; … | |
I am trying to import mails from Outlook to my Database during execution of code it is throwing the "Excepiton ComException unhandeled by User Code" [COLOR="Red"]Array index out of bounds[/COLOR]. it was working fine in the biggening but suddenly start throwing this exception. Here is my code [CODE] try { … | |
I have a servlet that gets a parameter that tells it which operation to carry out. in the servlet, i have if statements that check if the parameter is a certain number (1,2,3). I use getParameter to get the parameter as a string but somehow it does not go into … | |
I have a webform for users of the site to insert information about theirself and then an image. However I don't want to save the image into the database as it will slow everything down...is there a way to save the image to my hardrive then create a link in … | |
Hey guys, I'm just doing this code to see if it works where the user inputs a name and it outputs a menu where different options can be chosen. For example, if the user press 1 the outputs of the name is reversed, if 2 is pressed the name is … | |
I'm using Visual Studio 2008 express and I'm simply trying to put my source in different files. I have my Definitions in my .h file, my definitions in my cpp file, and my main.cpp file. I thought this was the correct way of doing things but the linker still has … | |
Hi All, I have to convert Excel data to MSAcess .MDB file using VB.NET. VB.NET Code read the Excel fi;le and write ti to .MDB file. For the same I have below code, but I am stuck at the writing it to .MDB file which I have already created with … | |
I have an HTML form with three dropdown selects: month, day and year. I have four fields in my MySQL table: month, day, year, and date. The 'date' field is supposed to contain the concatenated values of the year, month and day separated by dashes. I write this in my … | |
I am using .net 2005. I have created a GridView with one column having a command button. The DataAdapter, DataSource, DataSet were created in code, not with wizards. When the command button is clicked, I can't figure out the syntax for retreiving the value from the first cell in the … | |
The name of this question is Hello and Thank you in advance for any assistance. [B] System info: [/B] JSF,netbeans6.7 [B] The Purpose of this post is: [/B] My first successful JSF app. If someone wants to check it out. Found at: [url]http://cid-b5cb457363230793.skydrive.live.com/self.aspx/.Public/guessNumber.zip[/url] [B] The functionality of this code is: … | |
pls help me, i am new to asp.net.pls what is the easiest way of starting?i need to design a website using asp.net | |
Hi :) I want to click on a button and open the mail box so i can put message and send it, how can i do that ? Thanks. | |
how do you make sure that when you maximise a form in vb, the controls in it are also maximised. Thanks for the help. | |
Heres the homework problem: Write a program that displays the status of an order. The program should have a function that asks for the following data: 1. The number of spools ordered 2. The number of spools in stock 3. If there are special shipping and handling charges (Shipping and … | |
hello, me again. When ever I try to add pictures it WONT LET ME ADD THEM. i download them, type all the code, and no image shows up at all. Can someone tell me how to correctly do it. do i have to define the code that imports pictures? | |
Hello, I'm refactoring a C++ program into a Java program (yes, it's homework). I have a problem where I add objects to an ArrayList of type Student, but when I try to access the objects, every valid index returns what should be only in the last element. For the sake … | |
I get the following error when I try to compile this code. Can anyone help me make sense of this error? I have tried defining keystroke as a string and a char, I get the error either way. 1>------ Build started: Project: Register, Configuration: Debug Win32 ------ 1>Compiling... 1>Register.cpp 1>i:\c++\register\register\register.cpp(121) … | |
hi there, im sorry if this has been posted before i have searched through the threads and have not found what i am looking for, however it is entirely possible that i have missed it, i have spent the whole day looking at search results and basically i need some … ![]() | |
How do I center my text in python? I have a title and a description, and wan't to center it all in my output. |
The End.