199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for c.pentasuglia

In a nutshell i have a java program that takes parameters from an XML file. I made a .jar file from my java project. Within the java project i have the XML file set to a static directory, i'd like to be able to change that so the jar would …

Member Avatar for c.pentasuglia
0
247
Member Avatar for joshmac

Since md5 will be deprecated at some point (if it isn't already), and will soon pass away, I thought I should think about of another way of securing passwords. I've been thinking about phpass for a while and decided to jump in feet first. I am pretty sure that I …

Member Avatar for joshmac
0
195
Member Avatar for triumphost

I have a class that just creates a blank bitmap it's quite large so I removed a LOT! of code to make it easier to see my problem. No knowledge of bitmaps required. I declared "Pixels" as an array of RGB but in one function, Pixels is empty whereas in …

Member Avatar for triumphost
0
225
Member Avatar for berniefitz

Hi there, I am currently struggling through trying to figure out why a statement in my source code isn't being executed when running the program. The code is as follows: taxableValueDifference := previousTaxableValue - newTaxableValue; grandTotalTVDifference := grandTotalTVDifference - taxableValueDifference; XLWorksheet.Cells[row, 7].Value := XLWorksheet.Cells[row, 7].Value + taxableValueDifference; The first and …

Member Avatar for berniefitz
0
149
Member Avatar for tleverington1

Hello all, I am having problems setting up a connection with a mysql database that i'm going to need to use for one of my projects. My code to establish the connection is as follows: import java.sql.*; import java.sql.Connection; import java.sql.SQLException; import java.sql.ResultSet; import javax.sql.ConnectionEvent; import java.sql.DriverManager; public class SQL …

Member Avatar for tleverington1
0
161
Member Avatar for Twin802

I would like this code to be changed so that whenever I change the line the line will still be a wall... slin1_1 = 320 slin1_2 = 0 elin1_1 = 320 elin1_2 = 200 strtlin1 = (slin1_1, slin1_2) endlin1 = (elin1_1, elin1_2) lin1sz = 1 #creates first line above ^ …

Member Avatar for Twin802
0
228
Member Avatar for fishsticks1907

def bubble_sort(a): for i in range(0, len(a)): for j in range(0, len(a) - 1): if(a[i] < a[j]): a[i], a[j] = a[j], a[i] #can someone explain this part of the code for me #i tried doing (im more of a c++ programmer): temp = 0 temp = a[i] a[i] = a[j] …

Member Avatar for TrustyTony
0
250
Member Avatar for nchy13

i am ensuring on both pages i have first of all called session_start(); on one page i declared $_SESSION["username"]=$username; the link of another page is on this page. and another page i tried to print it by echo $_SESSION["username"]; but it showed nothing. i am using php 5.4 with apache …

Member Avatar for nchy13
0
197
Member Avatar for Kert

I need to make a checkers board that has to be also resizeable. At the moment I'm using JPanel and it's method paintComponent to paint the squares. But the problem is with the class test: the squares drawn have to be squares and they cant go out of proportion, so …

Member Avatar for Kert
0
187
Member Avatar for SpiritualMadMan

The documentation for the textEdited signal shows the use of a required parameter const QString& void textEdited (const QString&) I am unable to get the Signal to work. Perhaps because I do not understand how to use the "const QString&" Is this a literal copy into the parameter or is …

Member Avatar for Lardmeister
0
413
Member Avatar for Behseini

Hi, I am trying to run an application which is supose to present a CSV file contents in a DataGridView.The problem is the csv file contains a line (Fiist Line) which is the Title of CSV like: ================================ Title: Titanic Director,Year,Rate,Star1,Star2 James Cameron,1997,7.5,Leonardo DiCaprio,Kate Winslet ================================ and here is my …

Member Avatar for thines01
0
1K
Member Avatar for eltonpiko

Hi i need a little advice i need to build a website where user login and get some sort of form where they can order their meal form a list for every day in a month. how can i achive this? the admin must be able to view ecah user …

Member Avatar for eltonpiko
0
145
Member Avatar for ashboi

int isaMUstring(char* sequence, int size) //function isaMUstring(char* sequence, int size) { int i,j; for(i=0; i<size; i++) { if(sequence[i]=='M'||sequence[i]=='U'||sequence[i]=='I') j=1; else j=0; } return j; } int canApplyRule1(char* sequence, int size) //function canApplyRule1(char* sequence, int size) { if(sequence[size-1]=='I') return 1; else return 0; } int canApplyRule2(char* sequence, int size) //function canApplyRule2(char* …

Member Avatar for scudzilla
0
136
Member Avatar for ChaseRLewis

So am doing a run down of different 3DMath Libraries. I am noticing functions with return types are HORRIBLY inefficient compared to void returns. I decided to do a rundown of how move constructor/assignment effects this. Well having a move constructor is seeing an average of 3.5-4x improvement, but doing …

0
62
Member Avatar for nuclear

I had this talk with a friend a while back and now i remmember that he said that C# is like a newer version of C++, but i think thats not correct, since C, C++, C# is kinda all oriented in this or that, what do you guys think of …

Member Avatar for mike_2000_17
0
162
Member Avatar for kindofsudden

I have a bound datagridview and a dataset with tables. I have two sets of comboboxes bound to the same field "Restaurant" in the tables (mirroring each other). In the "NewEmployeeRestaurant" combobox I change the value and it reflects in the datagridview. I can shoot around clicking all over the …

Member Avatar for kindofsudden
0
288
Member Avatar for ashiiiish

<?php $noticeid=$_POST['nid']; $uname=$_SESSION['user']; include('db_connect.php'); $sql="SELECT * FROM notice WHERE nid='$noticeid'"; $data=mysql_query($sql); $d = mysql_fetch_assoc($data); $notice=$d['notice']; echo $notice; ?> When I am retrieving data its saying : Notice: Undefined index: nid in C:\xampp\htdocs\sm\viewnotice.php on line 53 Wheres i am passing the varibale from previous page and its reflecting in browser too. …

Member Avatar for rajesh1158
0
125
Member Avatar for MasterHacker110

I am writing a game. The game will be controlled by the cmd, it is like a hacking game. You type: run exploit545.exploit www.tktktk.switchnet and it will exploit that exploit at the targeted computer (url). My problem is i cant seem to find a way to make the program read …

Member Avatar for MasterHacker110
0
152
Member Avatar for adityamadhira

Hi I want to clear back button history in browser after log out in php Thanks in advance

Member Avatar for rajesh1158
0
112
Member Avatar for blake81

The major issue I am having right now is my client class cannot run/compile, I tried different methods to fix it from calling it from overload constructor and setScores but neither work. Scoresclient.java:16: error: cannot find symbol myScores.setScores(); ^ symbol: method setScores() location: variable myScores of type Scanner Scoresclient.java:18: error: …

Member Avatar for NormR1
0
175
Member Avatar for Traps

I'm trying to create a jUnit test for my EJB's and if my app just contains a few beans everything's all good but as soon as I incorporate JPA and entity-classes my jUnit test blows up. My test fails at ejbContainer = javax.ejb.embeddable.EJBContainer.createEJBContainer(); and the stack trace says the following: …

Member Avatar for Traps
0
488
Member Avatar for katheeja
Member Avatar for jijo cleetus
0
82
Member Avatar for nickg21

Hey everyone, Basically everything im trying to do is summed up in the subject line. I have a "DatePicker" control on my site, that when a date is selected, is displayed in the textbox as "April 12, 2012" or whatever the subsequent date may be. However, when I save this …

Member Avatar for jijo cleetus
0
120
Member Avatar for Kyle Willett

Hi this is a questing from some cs home work. Our task was to take a ada spec file and write the code for the functions and the main program, I have already done this in c++ but am having problems doing it in ada. here is my code: package …

Member Avatar for Kyle Willett
0
619
Member Avatar for LestTurk
Member Avatar for jiangshi
0
298
Member Avatar for caltech

okay so here's my code but i knwo there's just something so wrong with the second/youngest one. the first/oldest part works though. int oldest = 0; // Determine and print oldest employee(s): for (int i=0; i<recordlist.size(); i++) { if (recordlist[i].age > oldest){ oldest = recordlist[i].age; } } cout << "Oldest …

Member Avatar for NathanOliver
0
948
Member Avatar for Arjun_Sarankulu

I am developing Window Application in C#. In which i need to Send email using Outlook And to read the unread mails from Outlook and to get the undelivered mails from Outlook. I am able to send and read the unread mails from Outlook. But not able to read the …

Member Avatar for jijo cleetus
0
250
Member Avatar for senbaris

hi all, i made a proejct that runs sql command to datagridview and than export it to csv file, everything going fine but i got line break problem. Here my export code; im filePath As String = "C:\FULLWork\csv\dbslimit.csv" Dim delimiter As String = ";" Dim sb As New StringBuilder() For …

Member Avatar for thines01
0
391
Member Avatar for robertcraiguk

Hi, I have been trying for the last few days to figure out how to send a particular user to their own specific URL. For example, all users will use the same login.php page but when User A logs in they will be redirected to A.php and if User B …

Member Avatar for Biiim
0
218
Member Avatar for mmonclair

I'm stumped on a query filter I'm trying to put together. Here's what I need it to do: 1. Run a query that populates a table with order information to be gathered for regular invoices. 2. A user can filter date ranges, location, client and payment status. The options in …

Member Avatar for mmonclair
0
264
Member Avatar for tendaishava

hello i am tryna extract information from a chinese website but i dont know which keyword to use to extract certain information. the html code snippet is shown below .this is a result from running a query on c++ books i want to get the following information book title C++反汇编与逆向分析技术揭秘(《程序员》杂志“2011年度十大最具技术影响力图书”,好评如潮) …

Member Avatar for thines01
0
343
Member Avatar for Tuz

I have this two classes and its giving me an error when i compile it that cannot access BaseClass. package pckage1; class BaseClass { public int x = 10; private int y = 10; protected int z = 10; int a = 10; //Implicit Default Access Modifier public int getX() …

Member Avatar for NormR1
0
92
Member Avatar for hwoarang69

this works fine but i was wondering if there a way to recreate my insert function without returning any thing. for ex right now in my insert function iam return a function. but i want to recreate it so that its void insert(char *li) here is my code #include <stdio.h> …

Member Avatar for DeanMSands3
0
124
Member Avatar for minghags

Hello! I just want to ask you guys if anyone can help me reedit my program from BFS to DFS. I know how BFS works but i can't figure it out how to write the sintax. So i would please ask you guys if you could help me out. Heres …

Member Avatar for Labdabeta
0
451
Member Avatar for Venom Rush

Hi all Is it possible to continue running a script after encountering a maximum_execution_time error? If so, how would I go about doing this? EDIT: My script is processing an xml feed that contains approximately 9000 images. I'm resizing the images and saving them to the server and the max_execution_time …

Member Avatar for pritaeas
0
191
Member Avatar for iXmerof

Hi, i'm totally green with assembly language. Now I need to learn it, I always wanted before to to learn this language for my own, but time, never had enough of time. Now I need to learn it from zero - to pass the laboratory at university. Mainly I'm reffering …

Member Avatar for DJSAN10
0
222
Member Avatar for phplover

Hello, Can someoneone tell me when you `prepare()` a statement (in my case an update statement) and then `execute()` it, i then check using `rowCount()` after the update query (see code below) if `rowCount() > 0` if it is then a match was found and update took place, but i …

Member Avatar for phplover
0
204
Member Avatar for Thevenin

Hi all, first of all I want to tell you that I am studying Ajax and the following code could have errors or something else. I am trying to recreate the following HTML form with Ajax: <div class="table_test"> <form name="f1" target="uploader" action="upload.php" method="POST" enctype="multipart/form-data" > <ul> <li class="title">Image Name</li> <li …

Member Avatar for Thevenin
0
220
Member Avatar for Yozuru

So I have a programming lab that we did in class for a few months but I am having major difficulity on it. These are the directions: > Specifications for Calculate grades using loops 1. Create pseudo code for your program first, to be handed in. 2. Make the program …

Member Avatar for FelineHazard
0
1K
Member Avatar for Andy90

Hi, I have two project solutions! Project1 and Project2. I want to merge these two, so there will be single solution Project1? I tried my best but unable to do so! How to do it without affecting my program, resources, assemblies etc.? P.S : I m using VS2010

Member Avatar for thines01
0
101
Member Avatar for Kamina00

Hello I am learning templates and at the moment I have created a templated QuickSort function. It's rather short and self explanatory. However during the call to the QuickSort Driver function I get a No matching call error. I have detailed the error message in full at the bottom of …

Member Avatar for Kamina00
0
262
Member Avatar for jonajonlee

So in my class we are learning about strings. In this program, the goal is to reformat the text in a data file. sample data file: Here's a "TEST" file. (DateD 5 April, 2012) Will this #*PrOGRAM+=@ that includes !user-defined?!?> FUNCTIONS really work? Only time will tell............. My program needs …

Member Avatar for deceptikon
0
222
Member Avatar for dmoneyrpyt

# Can someone help me with this program by fixing it I should finish it before tomarrow and I don't know where I went wrong# #include<stdio.h> //header file #include<conio.h> //header file #include<stdlib.h> //header file #include<time.h> //header file #include<math.h> //header file #define PI 3.14159 //header file indicating that pie is equal …

Member Avatar for DJSAN10
0
233
Member Avatar for jelly46

Hello This is brilliant and good to work with, there is one issue i have if someone can help please. I have used example 4 baucase it visually does exactly what i need, however there is one little problem i cant solve. I copied the div and now have 2 …

Member Avatar for jelly46
0
228
Member Avatar for archie.herbias

is it possible not to include the account password for the user that will send the email. i tried not to put password but it does not work. the email that can send only is the one that is set. please help. this is the code: <%@ page import="java.io.*,java.util.*,javax.mail.*"%> <%@ …

0
100
Member Avatar for Jfunch

This is my query SELECT DISTINCT brand, category FROM product WHERE subcategory = '$subcategory' My problem is that i want the distinct to work on both brand and category, but it is only working on brand. How could i fix this?

Member Avatar for smantscheff
0
103
Member Avatar for Bugaya

I am trying to use JQuery Full Calendar along with Spring MVC. I have made a demo like [that][1]. Target: I need to send the UPDATED calendar's data,after I enter my events, to the controller to handle it. Issue: I've succeded to re-send the calendar I've inistialzed to the controller. …

Member Avatar for Bugaya
0
466
Member Avatar for Bugaya

I am trying to use JQuery Full Calendar along with Spring MVC. I have made a demo like [that][1]. Target: I need to send the UPDATED calendar's data,after I enter my events, to the controller to handle it. Issue: I've succeded to re-send the calendar I've inistialzed to the controller. …

Member Avatar for Bugaya
0
203
Member Avatar for Gus_19

I have a textbox in my form where the individual will enter the date (not necessarily todays date). How can I set a format so if the individual enters 040912, it will change to 04/09/12?

Member Avatar for bhagawatshinde
0
3K
Member Avatar for grh1107

I'm trying to create a class which finds the sum of multiples for a given base I have the code written with out a class im just having trouble converting it into a class my total function isnt retrieving the data from the object maybe? /* If we list all …

Member Avatar for Banfa
0
183

The End.