199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Matthew N.

I have a Java program, which launches a app, but before starting, it checks for the version.txt file, and if it doesn't exist, or there is a newer version available off my site, it downloads it. Well, not quite. I've got the part that checks for updates, and file existence, …

Member Avatar for DavidKroukamp
0
490
Member Avatar for cmps

I am trying to create an application that will: 1) ask the person to enter a number (ex: 321) 2) the application will display each number on a line ex:3 2 1 Rules: Don't use looping and don't use arrays Someone told me it could be done but I can't …

Member Avatar for cmps
0
126
Member Avatar for sharathg.satya

i am having a login page done in android using eclipse . now i want to extend the layout of the login page by setting a fieldset around that window.. (field set as in html.) can anyone help me please

Member Avatar for peter_budo
0
107
Member Avatar for syd919

Hello Guys, I hope you are all doing fine. I have a Linq to SQL problem. My entity class is as follows; [CODE]using System; using System.Data.Linq; using System.Data.Linq.Mapping; namespace SilverlightGrid.Web.TableMappings { [Table(Name = "Travel_Meal")] public class Travel_MealDetails { [Column(IsPrimaryKey = true)] public Guid MealID { get; set; } [Column(Name = …

Member Avatar for thines01
0
161
Member Avatar for rosekrans

Hello all, I'm want to do a PHP redirect within a <DIV>. Currently I have written the folowing code, that allows a database entry to be selected and be deleted. [CODE]<?php //This is from a file named delete.php $sql="SELECT * FROM $tbl_name"; $result=mysql_query($sql); if(isset($_POST['delete'])) { foreach($_POST['checkbox'] as $id){ mysql_query("DELETE from …

Member Avatar for rosekrans
0
164
Member Avatar for nyxxie

struct looks like this: [CODE] struct ListNode; typedef ListNode* ListType; struct details { char first_name[20]; char last_name[20]; int start_number; int end_number; }; struct ListNode { details data; ListType next; }; ListType list = NULL; ListType head = NULL; ListType * PointerToHead = &head; [/CODE] I have a circular linked list …

0
153
Member Avatar for riahc3

Hey I want to "reset" a array....What would be the correct way to do it? Code A: [code] for (int i=0;i<=somearray.length;i++) { somearray[i]=0; } [/code] or Code B: [code] somearray=null; [/code] Thank you

Member Avatar for riahc3
0
177
Member Avatar for Dingo001

Let me say here at the start I am not a programmer, just interested.. I am trying to load a file to youtube on the first day of the month and set the file name as the lastmonth-thisyear.avi like March-2012.avi I have tried this but get an error: File to …

Member Avatar for diafol
0
135
Member Avatar for maverick420

[QUOTE]The below code runs fine the only problem is when I run this code there is a value of "3" in the input textbox which should be null, I have no idea why its doing this any help will be appreciated. THANKS[/QUOTE] [CODE]import javax.swing.JOptionPane; //inherits from Monument class---> public class …

Member Avatar for maverick420
0
155
Member Avatar for pbracing33b

Hello I am trying to do a simple program. But the basics of this program must have buttons like a calculator. So I was just testing my array and for loop and I can't seem to get anything to show up whatsoever I've tried document.write, alert and so forth. and …

Member Avatar for Troy III
0
97
Member Avatar for python_adz

hello everybody, please help me in solving the problem of finding the XOR value of 4 bits as i require it in my project. i tried ^ sign, but it doesnt work for four variables? kindly help

Member Avatar for L7Sqr
0
107
Member Avatar for jumboora

Hi, I want to process multiple text files within a directory and then after processing i want to store the processed files within another directory. Below is the code which i have written. It is accessing multiple text files within a directory, applying some processing on each text file (i.e., …

Member Avatar for jumboora
0
900
Member Avatar for krishnisilva

hi, i am new to java and i am using eclipse for java coding when i run a build.xml file it says build fail and says "Compile failed; see the compiler error output for details." and points to the code below. does anyone know the reason for this, [CODE] <javac …

Member Avatar for krishnisilva
0
1K
Member Avatar for Dingo001

Hi I have a PHP error that only occurs when I have a new router attached. I will post the complete code here but it works fine on one router but not another. I have put the problem on a forum for Hardware people but have had no replies. To …

Member Avatar for pritaeas
0
180
Member Avatar for sammry

lastlogin is getting saved as time() in my mysql table and it is varchar mode. querying the database to send out emails to remind my users that they have not logged in from past 30 days SELECT * FROM members WHERE lastlogin = DATE_SUB(CURDATE(), INTERVAL 30 DAY) i tried with …

Member Avatar for sammry
0
176
Member Avatar for jjsmithy

Hi everyone; I am working on a windows form project on VB.NET and am required to take the user submitted text from the textboxes on the form, to a networked database. I am guessing using an SQL database, so how would I set this up and implement all of this? …

Member Avatar for thines01
0
105
Member Avatar for Sturdy

Hi all, How i changing the color of label caption dynamically, so it looks like highlight text changing color. Thank you.

Member Avatar for Sturdy
0
268
Member Avatar for markee

Hi! I need help for my program.. I add a search the Adodc in my program with a combo box category, but when i run the program and search... the category "ID" not searching.. this is my codes [CODE] Private Sub Command1_Click() If Text1.Text = "" Then MsgBox "Type To …

Member Avatar for Jx_Man
0
326
Member Avatar for Resentful

This is something I can't find any data on. I've got two database. Database one has a list in it. Database 2 has a list in it as well. I am needing to delete all the entries from database 1 that database 2 also contains. So if database one had …

Member Avatar for Resentful
0
97
Member Avatar for tom12

[CODE]#include <iostream> #include <string.h> #include <ctype.h> using namespace std; void RemoveSpaces(char *str); void RemoveVowels(char *str); int main() { char clear[256]; char cipher[256]; int x,i; int opt; cout<<"Encryption (1) 0r Decryption (2):"<<endl; cin>>opt; cin.ignore(); if(opt==1) { cout<<" Enter a string(sentence):"; cin.getline(clear,sizeof(clear)); RemoveSpaces(clear); x = strlen(clear); for(i=0;i<=x-1;i++) { cipher[i] = clear[i]+3; } …

Member Avatar for Banfa
0
120
Member Avatar for broodwich

I am trying to create a program that lets you enter an account number and it tells you it is valid or not based if it is in the list. it needs to be a single-dimensional array . this is what i have so far but it does not work. …

Member Avatar for Banfa
0
196
Member Avatar for pieftw

Hello, I am having a problem with my program that finds the prime factorization of a number. I seem to be getting the correct prime factors, but my problem is with repeating factors. For example, if I input 3,428, the correct prime factorization is 2 x 2 x 857, but …

Member Avatar for Banfa
0
168
Member Avatar for shadachi

Hi all , May i know should I set an object to nothing even after implementing an IDisposable method to my custom class ? Correct me if i am wrong , if you set it to nothing you are just setting the object to its default value . As you …

Member Avatar for thines01
0
165
Member Avatar for collin_ola

Hi, I keep getting the error: Object reference not set to an instance of an object. When attempting to check if a database record is Null or not using the line: [CODE] If IsDBNull(dSet.Tables("Subscriptions").Rows(incr).Item(8)) = True Then addsub2() End If [/CODE] I'm sure that I have opened and closed the …

Member Avatar for collin_ola
0
300
Member Avatar for kewl

im having problem with this 2 pages of code i have.the only problem is when im going to display it in another page called view.php added.php [CODE] <?php $type = $_POST['type']; $size = $_POST['size']; $quantity = $_POST['quantity']; $prize = $_POST['prize']; $file = $_FILES['image']['tmp_name']; if (isset($_POST['submit'])) { include('sql.php'); if (!isset($file)){ echo …

Member Avatar for kewl
0
205
Member Avatar for johny08z378

lets say we have a string String ss="file1"; now i want to create a variable (a file variable) and i want its name to be file1 which is the content of the string ss.

Member Avatar for NormR1
0
115
Member Avatar for muraj

Hi all. I could really use some help on adding a node to the end of a doubly linked list. First off here is my node class along with the class where the adding should take place. For simplicity I did not add the other parts and classes of the …

Member Avatar for NormR1
0
415
Member Avatar for zeeshanmughal

Is this possible to pass the php variable to the url? my code is: [CODE] <?php $array1 = array("iphone", "ipad","iMac"); for($test = 0; $test <= 2; $test++) { echo '<a href="https://www.google.com?$array1[$test]">Click me</a><br />'; } ?> [/CODE] How do i do that when i click on the link it will show …

Member Avatar for karthik_ppts
0
331
Member Avatar for coroche

Hi, I'm trying to write a programme that will take user input strings containing name, surname and city of residence separated by spaces and extract each one and print them out individually. Here's what I have so far. [CODE]#include <iostream> #include <stdio.h> #include <cstring> using namespace std; int main() { …

Member Avatar for AdamLad3
0
104
Member Avatar for Desi991
Member Avatar for pgcoder
0
1K
Member Avatar for shaan_046

0 down vote favorite share [g+] share [fb] share [tw] I have a class in which i have a method name method() returning a String in the form of JSON string. The output is :: [CODE] [{"ID":1,"Names":"Shantanu"},{"ID":2,"Names":"Mayur"},{"ID":3,"Names":"Rohit"},{"ID":4,"Names":"Jasdeep"},{"ID":5,"Names":"Rakesh"}] [/CODE] Now this in the form of data that i want to Populate …

0
132
Member Avatar for hmortensen

Hi all, Hopefulle someone outthere can help me identify whay i'm doing wrong. I'm sure it's something simple I have overlooked. I have the following templates in my xaml. [CODE] <Window.Resources> <DataTemplate x:Key="ModuleTemplate" > <StackPanel Orientation="Vertical"> <TextBlock Text="{Binding Path=fileName}"/> <TextBlock Text="{Binding Path=baseAddress}"/> <TextBlock Text="{Binding Path=entryPointAddress}"/> </StackPanel> </DataTemplate> <HierarchicalDataTemplate x:Key="ProcessTemplate" ItemsSource="{Binding …

Member Avatar for hmortensen
0
211
Member Avatar for dav555

I would like to implement an error reporting mechanism into my application: If an error happens the user should be able to directly send me this error message. I thought of doing this with JavaMail. My question is now: to send an email I have to authenticate on an SMTP-Server. …

Member Avatar for stultuske
0
143
Member Avatar for riahc3

Hey All of a suddent my Apache Tomcat server has broken. Very strange but I try going to [url]http://localhost:8080[/url] and I get a HTTP 400 error. How do I fix this as it is very strange that this suddenly appears. Using MyEclipse. Note, I believe I installed NetBeans which installed …

Member Avatar for jbennet
0
174
Member Avatar for rushikesh jadha

i don't know what setting have to make on linux to run jsp programm using tomcat, please tell me what setting and how to do.

Member Avatar for jbennet
0
118
Member Avatar for nine9hours

Qt ide gives error about"error: passing 'const QChar' as 'this' argument of 'QChar& QChar::operator=(const QChar&)' discards qualifiers" here for(int i=reqposition;;i++) { if(data.at(i)==',') break; temp.at(j)=data.at(i); // ERROR IS HERE j++; } what do i do to solve it!

Member Avatar for nine9hours
0
211
Member Avatar for raheel88

I want to add a new PropertyGrid control every time an item is added to a ListBox. I have a ListBox, with an "Add Item" button underneath (and also a "Remove Item" button). Every time an item is added to the list, I want to create a new PropertyGrid corresponding …

Member Avatar for raheel88
0
1K
Member Avatar for timothy0726

[code]Dim cmd As OleDbCommand = New OleDbCommand("SELECT username,password FROM tblUsers where username=? and password=?", conn) Dim usernameParam As New OleDbParameter("@username", Me.txtUsername.Text) Dim passwordParam As New OleDbParameter("@password", Me.txtPass.Text) cmd.Parameters.Add(usernameParam) cmd.Parameters.Add(passwordParam) Try connectDatabase() Dim read As OleDbDataReader = cmd.ExecuteReader() If read.HasRows Then read.Read() If txtUsername.Text = read.Item("username").ToString And txtPass.Text = read.Item("password").ToString Then …

Member Avatar for poojavb
0
123
Member Avatar for poojavb

Hello Friends, I have a patient register form in my project... When the patient details will be saved in the database it should also be saved in the text file... I am dynamically creating a folder with patientid and firstname in that folder I am creating a text file patientreg.txt …

Member Avatar for poojavb
0
373
Member Avatar for leo88

Hi, I wants to ask about how to call the javascript function/method in .aspx file from code behind(or server code)? for example: Javascript: [CODE] function initCard(userid) { //userid, balance, subsidy breakfast, subsidy lunch, subsidy dinner var iRet = winCtrl.initCard(userid, 0, 0, 0, 0); } [/CODE] code behind: [CODE] Dim sb …

Member Avatar for G_Waddell
0
427
Member Avatar for magicmarkuk

Hello again I have two questions regarding the REPLACE command. The first query I am running is [CODE]update phpbb_posts set post_text = replace(post_text, '[del]', '[ b][ i]') update phpbb_posts set post_text = replace(post_text, '[/del]', '[/i][/b]')[/CODE] Note - in the above code I have had to add a space before the …

Member Avatar for smantscheff
0
279
Member Avatar for BeginningJava

i'm trying to create a program that asks the user to input a file (but the file name is standard name that will not change) and input a specific character. The program will use looping to find how many of that specific character is in the .txt file. This is …

Member Avatar for stultuske
0
372
Member Avatar for herious89

Hi Im writing a beginner program that computes the value of Pi ( pi/4 = 1 - 4/3 + 4/5 - 4/7 + 4/9 - 4/11 +... ). I've done this one, but now I want to find out how many terms do i have to use beofre i first …

Member Avatar for zeroliken
0
212
Member Avatar for tom12

Guys i really need some help here with this function, in my program i enter string to to encrypt. from my function i want to delete all spaces, i'm really having problems here hope someone can tell me were im going wrong. thanks again. [CODE]#include <iostream> #include <string.h> #include <ctype.h> …

Member Avatar for tom12
0
185
Member Avatar for DaniRulz

[B]Question 1 (10 marks)[/B] Design a program that asks for 4 test scores. The program should calculate the average test score and display it. You need to develop an 1.1) IPO chart (3 marks) 1.2) Pseudo-code (5 marks) 1.3) 2 Sets of test data (2 marks) [B]Question 2 (20 marks)[/B] …

Member Avatar for DaniRulz
0
261
Member Avatar for gopi17

Heyy guys, need some help here...the thing i'm suppose to do is, update a value for a single row, but currently its updating the value for all the row... [CODE] <?php session_start(); $host="localhost"; // Host name $username=""; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="testing3"; // …

Member Avatar for gopi17
0
101
Member Avatar for zacharysr

Does anyone know how to use youtube's api? I downloaded it from [URL="http://code.google.com/apis/gdata/articles/php_client_lib.html#php-path-installation"]here[/URL] But i cant figure out how to use a form to send a link to it and get back the name, keywords, html, description and thumbnail link..... Does anyone know how to get this info from youtube …

Member Avatar for veedeoo
0
302
Member Avatar for thiemebr

Ok. I'm new in c# and I'm trying to create an online booking service. I have the file: dbConnClass.cs where I have the db connection/statement as shown: [CODE] public void getPrice(int fromDest, int toDest, int totalPass) { string sqlStatement = "SELECT * " + "FROM destPrices "+ "WHERE fromID = …

Member Avatar for Momerath
0
443
Member Avatar for Japp007

How do I count loops . Maybe I'm using the wrong terms. How do I trace loops? It is Pseudocode not Java. I know it is hard for subject matter experts to 'dumb' down for someone like me but I do need help. I've tried several tutorials still in trouble. …

Member Avatar for Japp007
0
1K
Member Avatar for eve_moore

I have an image processing project using c++ language. I have also linked opencv to integrate some optimized algorithms.However, I would like to create a nice GUI using Visual C#. Is it possible to call a certain program in c++ in visual c#. (P.S. I have no idea about dll, …

Member Avatar for eve_moore
0
300

The End.