64,152 Solved Topics
Remove Filter ![]() | |
Hi all, i want to know that 'Is mysql support chinese language?' If yes then any changes require in configuration? My site is in english. Let if any user have inserted their information in Chinese and if anyone search using Chinese keyword, then it should match with mysql and if … | |
Hi! I want to write some text to a textbox (using a greasemonkey script to be exact...) but i cant get the right element (textbox) as it somehow doesnt have an id. This is source that is relevant for the textbox (from original page) [CODE] <input name="WebGridBuilder$ctl04$ctl01" type="text" value="something" maxlength="32767" … | |
I want to call a C++ program from PHP with apache server on Fedora 12 linux. testprog is put in the same directory of the test php program. I see the output of exec('ls -lrt') but not exec("testprog"). Please help. The following are my php and cpp test programs. [CODE]<html> … | |
i am calling applet jar file like this [code] out.println("<APPLET code = com.Sample.class " + "codebase = /WebContent/WEB-INF/" + "archive = SamplePassword_signed.jar " + "WIDTH = 200" + "HEIGHT = 350>" + "</APPLET>");[/code] but it gives me a error that class path : class com.Sample.class not found. i have stored … | |
[B]Card.java[/B] [CODE] package poker; public class Card { int suit; int rank; public Card () { suit = 0; rank = 0; } public Card (int s, int r) { suit = s; rank = r; } public int getSuit () { return suit; } public int getRank () { … | |
Is there any problem with manipulating very long strings? When I say long, I'm meaning like over 100,000 characters long. I'm using examplelongString = data.readline() to get it from an html file. I then use examplelongString .find('text to find') to search for stuff. I've been trying to do it, it … | |
Hi all, I am trying to have a recursive sort on my xml data, but can only manage to sort the first layer..and not as what i want too :( , been trying to do this for a couple of weeks :confused: I would appreciate it if anyone could help … | |
![]() | Hello, im currently working on a program and im trying to create a cascade, This cascade code works by itself but i want to implement def hello and def toggle into def __init__(self, master=None), at the moment im getting and error "UnboundLocalError: local variable 'submenu' referenced before assignment" does anyone … |
Hi All, I have been doing a little VBA in excel and I am tring to work out how to add 2 hour {or any amount of time} to the current time. Google has failed me in finding the answer, most of the things i have found is formulas but … | |
Could someone help me with this - I've cracked my head since. When i submit a form and then retrieve the data, there is no paragraphs. Yes I am aware of HTML encoders like TINYMCE but I'd like to submit in plain text. I tried htmlentities and htmlspecialchars but nothing … | |
Hi i know this may sound a bit silly but i have looked through some websites but can't really find exactly what the difference is between "=" and "==" For example [CODE]if(x==0) execl(“/bin/ps”, “ps”,”-eal”,NULL)[/CODE] how is that different from [CODE]if(x=0) execl(“/bin/ps”, “ps”,”-eal”,NULL)[/CODE] thanks | |
Hello All, I am a little new to .NET Developing, and have learned a great deal recently, but I'm stuck with something. I come from an ASP Background, so please excuse my ignorance ;-p I'm trying to subtract 2 variables, but they don't seem to 'see' one another. I can … | |
Can you do that? I can't seem to get it to work. [CODE=C#] lblfiledate.DataBindings.Add("Text", bindsrc, "filedate"); [/CODE] Doesn't work. | |
hi, i have a method that get the firstname and the lastname of an employee in the database and merge it together and then put it to an array and returns the array how can i return the array from the method. the code is below. C# Syntax [CODE]//This methods … | |
the program runs successfully but the final output comes out in the form of an infinite loop...please help [CODE] #include<iostream.h> #include<fstream.h> #include<conio.h> #include<stdio.h> struct emp { int eno; char name[20],desig[20]; float sal; }e; void main() { clrscr(); ofstream f1; f1.open("emp.dat",ios::app|ios::binary); char ch='y'; while(f1) { if(ch=='y'||ch=='Y') { cout<<"Enter the name"<<endl; gets(e.desig); … | |
I think I understand functions but maybe not. I am getting an error on my open files function. I looked around a bit and didn't find any answers. The compile dies on line 36 'char' should be preceded by ')' I don't know whats wrong. Any help would be appreciated. … | |
I am trying to show a diff in two files from a daily script. i am unable to get it to read the files correctly and show what is different. example of the files is - <ad_xml> <group name="group1"> </group> <group name="group2"> <user> <name>user1</name> </user> <user> <name>user2</name> </user> <user> <name>user3</name> … | |
can anyone tell me why this is getting a runtime error? [code=html] <%@ Page Language="VB" ContentType="text/html" ResponseEncoding="windows-1251" %> <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.Odbc" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <%@ Register TagPrefix="uc1" TagName="links1" Src="/includes/_header.ascx" %> <%@ Register TagPrefix="uc2" TagName="links2" Src="/includes/_nav.ascx" %> <%@ Register TagPrefix="uc3" TagName="links3" … | |
Hi All, I am just wondering how i would check if the below checkbox was clicked or not? [CODE] private JCheckBox postage = new JCheckBox("Postal Delivery?");[/CODE] When the form is submitted i need to check the box and get a boolean saying true or false based on clicked or not … | |
It will compile, and run for a split second- but then it quits itself. I've had three people look at it, but no one can see the problem. [CODE]#include<iostream> #include<conio.h> #include<iomanip> using namespace std; void getRaise(double pay[], int size) { for(int x=0; x <size, ++x;) pay[x] *=1.05; } int main … | |
Hi, can some one please have a look at my code for the user to enter integers and display it back to him. For some reason my program can not accept more than 8 integers? I wrote this program for a class assighnment where we where suppose to ask the … | |
Hello--- I've written a class where I would like to overload the equal sign (= sign) operator so that I can return a double during an assignment. The following code snippet shows what I would like to do, but for some strange (probably small) reason, it does not seem to … | |
I have been using VS 2003 forever. I am just starting to use VS2008 and I am about to just trash it. It will not render the start up form which is now in a partial class. It uses it to build because I use the objects defined in that … | |
Hi everyone, I've been charged with creating a complex database that includes all kinds of entities with common data elements including customers, users, vendors, shops, organizations, etc.. I've worked on databases with separate tables for each primary entity like (customer table, lead table, vendor table, user table, organization table). My … | |
Hi all my code is : [CODE]Dim s, w As String s = "a b c 1" w = [U]s.Split(" ")[/U][/CODE] The error is Value of type '1-dimensional array of string' cannot be converted to 'String'. Any ideas ? | |
Hi, I am making a form validator which has some field like "credit card number" and "credit card security code" I need to make sure that those fields only contain digit, no alphabet and any others characters like "." , "," , etc. I don't have any idea on how … | |
Hi, i am making 3 forms, let's say, form1, form2, form3. In form1, there is a field "givenname" and a submit button that link to form2, and i want to pass this field to form2, i can pass this without any difficulty. However, i also want to pass the field … | |
I'm writing a program that reads information from three seperate classes. Here is my code: [CODE] public class Animal { protected int id; protected String type; protected double mass; //------------------------------------------------------------------------ // Sets up an animal with the specified ID number, type and weight. //------------------------------------------------------------------------ public Animal (int animalID, String animalType, … | |
:icon_lol: I have stated to write a C# program , now im sucked :icon_sad: I searched this over internet for long, but i ddint find out what i exactly need to my project.. Does anyone of you guys know to access cmd actions via c# ? it will be great … | |
First, let me start off by saying I am using ASP.NET 2.0 with VB as the default language using Visual Studio 2005. I have a form that has an asp:panel on it that is seeded with an iniitial control. Through the use of the form, additional controls may be dynamically … | |
Hi, I have an issue involving retrieving a set of child rows in a dataset. I have populated a dataset with three tables Categories, Projects and Tasks. In the dataset relations I have set up a relationship between Categories and Projects and between Projects and Tasks. [CODE] Private Sub Defaults_Load(ByVal … | |
Hi , I am trying to show members of groups in Active Directory and then enter them into XML format but am having problems getting it to work. I am new to all this stuff but have to get this to work fairly quick. Can someone advise please. [CODE]""" Script … | |
Hello all, just making a quick check to see if anyone can help me fix my code. I need to show the result in an entry screen... [CODE]# Tkinter class template to test apps try: # Python2 import Tkinter as tk except ImportError: # Python3 import tkinter as tk class … | |
hi.. im trying to do some practice on interfaces when i found this problem. i just want to know that if i have 2 interfaces with the same method names. i can implement this 2 same method names in a derived class but i just don understand how to call … | |
Hi I'm currently doing a connect 4 program and I need to write an apporpiate get and set methods so that the other classes can access this information. ('State of the autoplay' is simply whether red or yellow (or no-one) is set to have the computer make their move). I've … | |
I'm having troubles getting a userlogin validation up and running. The login itself works fine, but i need some form of errorhandling on logging in with wrong credentials. My code so far looks like this: [CODE]<%@ Master Language="C#" MasterPageFile="/masterpages/PageWithoutLeftmenu.master" AutoEventWireup="true" %> <%@ Import Namespace="System.ComponentModel" %> <script runat="server"> void OnLoginError(object sender, … | |
Hi guys revising for an exam and im fine with the theory stuff but heres one question: A large ornamental garden is open to the members of the public who can enter through two gates: east gate or the west gate. The management wants to determine how many people there … | |
Hi Im a making a FPS but I have an issue with the mouse. Im making so rotations using glutPassiveMotionFunc. But when its goes out of the screen and enter again, this ruins everything. I know this may be badly explained but if you already made your own FPS with … | |
![]() | So in class we are making a program and we have a big problem with what is pretty much the last method we need. We want a download function, which basically takes a file already specified and copies it to the destination (and name) chosen by the user. WE have … |
I am trying to develop a function in a linked list that outputs in a specific manner however I am getting compile errors. Tis is the code: listelement.h [CODE]virtual void out(ofstream& myfile) = 0;[/CODE] list.h includes listelement.h [CODE]void OutList(ofstream& myfile);[/CODE] list.cc includes list.h [CODE]void List::OutList(ofstream &myfile){ ofstream file; file.open("tris.dat"); if(myfile.is_open()){ … | |
Hi it's my first post here! I've got a question using active x in vc++. What i have done yet: i successfully imported a active x dll and created an object of the class in the dll. so everything works fine. now my problem is that i have a exe … | |
hello, i am using preparestatement to insert muliple rows into database. [CODE]String query = "insert into table_temp(col1,col2) values(?,?)"; pstmt = con.prepareStatement(query); pstmt.setString(1,"a"); pstmt.setInt(2,100); pstmt.addBatch(); pstmt.setString(1,"b"); pstmt.setInt(2,null); pstmt.addBatch(); int[] cnt = pstmt.executeBatch(); [/CODE] My problem is that in the 2nd addBatch block i dont want to insert any value into the … | |
good evening all:) first I want to start off by apologizing for my savefiledialog post..I did not mean to break forum rules regarding format for coded posts. I have decided to revamp my project entirely and have decided to make a few combo boxes on a windows form. What I … | |
I have almost finished a site that I've been working on but have one last thing that I don't know where to add. I have a bulk insert sql query that I want to insert into the .vb code behind and have no idea where to put it. Basically, the … | |
hi fellas, here is my prob: im using microsoft visual C++ 2010 Express edition, which is a trial one...i've been googling this tutorial since last 3 week. But no result i found. I hope somebody can help me.....for ur info, im a beginner in programming world...huhu any good advise...??:) | |
Hello, I'm trying to read from the command line. There are 9 numbers and I want to store them in an array as int. I've alread the following [CODE] public static void main(String[] args) throws IOException{ String [] temp; public static void main(String[] args) throws IOException { InputStreamReader inputStream = … | |
hi everyone. well I have a small problem. Actually, I have an interface (ComplexNum) and a class (ComplexNumb).The end result is to do small calculation with some complex numbers. I have already implemented the interface in the class , but eclipse keeps on telling me that I have to implement … | |
[QUOTE]hi all, i need to echo the value obtained in the mysql query. so can any one .. Thank u.. [/QUOTE] [CODE]$sql2="select reportingto from users where username='$_SESSION[username]'"; mysql_error(); $result2 = mysql_query($sql2);[/CODE] | |
I have a gui with an ADD, EDIT, and DELETE button. All of which are not active until you click their respective name from the menu bar. Once I click on the DELETE key in the menu, it actives my delete button fine, but when I select an object from … | |
hi please help to print character form a-z and 0-9 randamly in java all the character sholud be present without repetion ie all 26+10 letter sholud print and each time it sholud print differently like First time if it print like this 0 a 2 f g t h y … |
The End.