199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for markfw

Hi I have a code as follow: [CODE] template<class T> inline bool IsValidUnsignedLong(T n) { return (T)(unsigned long) n == n; } [/CODE] When I pass -l to that function, it returns TRUE which it shouldn't since its not unsigned. Can anyone explain to me the reason behind this? why …

Member Avatar for mike_2000_17
0
202
Member Avatar for jellybeannn

Hi I'm trying to use the Microsoft.VisualBasic IRR function, but to no success. [code] double[] values = new double[73]; for (int j = 1; j <= 73; j++) { values[j] = C158_Calc; } B162_Calc = Financial.IRR(values, 0.1) * 12; [/code] I'm having trouble in this line: [code] B162_Calc = Financial.IRR(values, …

Member Avatar for nick.crane
0
559
Member Avatar for m1n1m3

Hi ! To improve my java programming skills i like to write a really fancy fib. nr. calculator. Did it in C using memory allocation methods and hot to 1M digits in ~10min. So something like Step-Up challenge. The only thing as far as i can see limits my progress …

Member Avatar for NormR1
0
217
Member Avatar for AngieS

I am building a plant reference guide that pulls from two tables within a mysql db . One table "findplantsdb" has the plant name, desc, image and the other table "plantdb" has the availability of plants listed in the yard and field. I need both databases to come together (JOIN) …

Member Avatar for cereal
0
156
Member Avatar for bluehangook629

I have a function for a dialog which returns the dialog result back. However, the value of the dialogresult changes from ok to cancel after the value is returned. How can i fix this? this is the part where the dialog is called and the value from the dialog is …

Member Avatar for Unhnd_Exception
0
833
Member Avatar for aanders5

Trying to read a list of numbers in from the arraylist, and stick em into a matrix of int[][] int[][] board; board = new int[row][col]; ArrayList<Integer> temp = new ArrayList<Integer>(); so those are my two variables, and i have a for loop with variables, i and j...so I am trying …

Member Avatar for aanders5
0
364
Member Avatar for gaurav_gandhi13

hello i have 5 text boxes and labels and database in sql server so just need coding for the next and the previous button any one can help please thanks

Member Avatar for Mitja Bonca
0
4K
Member Avatar for kweigand

First off, I am a Java Noob coding in latest version of NetBeans. I am trying to create a program the will allow the user to enter two decimal values: time and earnings in a swing GUI. [B]Basic Flow[/B] [LIST=1] [*]The user will enter the values in two different text …

Member Avatar for kweigand
0
175
Member Avatar for techlawsam

Ok so after modeling after another application Im modifying a previous console app which converts Celsius[CODE][/CODE] temp (with user input) to Fahrenheit. Visual Studio has annoying habits to give errors on variables that "haven't been declared yet". Im looking at this and wondering why the heck is it complaining. I …

Member Avatar for techlawsam
0
186
Member Avatar for etm9413

Hi, I am new to Unix/Linux... I have a TCSH shell script (on AIX4) in which, at a certain point, I want the user to be able to pass commands to the TCSH interpreter. What I do is I create the illusion that the user is at his usuall shell …

Member Avatar for etm9413
0
439
Member Avatar for cgull

Hello, I have downloaded a jquery gallery and made a lot of changes to it. Now I am stuck with one thing that I can't change. The gallery has thumbnails that scorll on the bottom. I want the direction of the big image animation to change. It is hard to …

Member Avatar for AleMonteiro
0
215
Member Avatar for mawk

Hello, been lurking around to see if I could find any kind of solution to what I'm trying to solve, but the closest thing I got was this old thread: [url]http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/313687[/url] [B]What I want[/B] I'm trying to create is a SELECT menu with an INPUT field, but the INPUT field …

Member Avatar for mawk
0
255
Member Avatar for ken.atienza

[CODE]$sql="SELECT * FROM accounts,adminaccount WHERE accounts.emailaddress='$username' and accounts.password='$password' or adminaccount.emailaddress='$username' and adminaccount.password='$password'"; $result = mysql_query($sql); $count=mysql_num_rows($result); $row = mysql_fetch_assoc($result); $usertype = $row['usertype']; if($count==1) { $_SESSION['usertype']= $row['usertype']; $_SESSION['id'] = $row['id']; if($usertype == "admin") { header("location:indexadmin.php"); } else { header("location:indexmember.php"); } } else { header("location:index.php?page=loginfail.php"); } ?> [/CODE] I wanted it to …

Member Avatar for Matthew N.
0
155
Member Avatar for neeraj goswami

i am writing one java code in notecode.once i am compling the code in command prompt it is showing the following error: javac is not recognised as an internal or external command ,operable program or batch file. what does this mean?..i am using jre7 java version.i have also specified the …

Member Avatar for NormR1
0
120
Member Avatar for Labdabeta

I would just like to know how x86 ASM instructions are translated into binary. EG: [ICODE]mov al,061h[/ICODE] becomes [ICODE]10110000 01100001[/ICODE]

Member Avatar for miker00lz
0
1K
Member Avatar for duffy12

Hi am really new with php mysql, i need help pls. I have created a email software in my server, there is a field for inserting email data info. Right now i am inserting these data one by one, but this is annoying and taking hard time. Pls help me …

Member Avatar for duffy12
0
136
Member Avatar for great_learner

Hi guys, I have to give proposal of my final year project next week. I am interested in game development and very much inspired from games like nfs and counter strike. I know i cannot develop games like them But the thing here is that i dont know any thing …

Member Avatar for great_learner
0
507
Member Avatar for crash0verride

Im developing a website for a company and it is my first time to use ASP.net in c# language. I am expert in graphic designs but slow on programming. please help me how to create a login page using in ASP.NET using c#. :) thanks

Member Avatar for Ezzaral
0
318
Member Avatar for ben1996123

I've managed to use classes in separate files before, but I can't seem to get it to work here. I was just programming some very basic classes for a simple game I wanted to make. Here is the main.cpp file: [code]#include <iostream> #include "energySystem.h" #include "healthSystem.h" #include "intelligenceSystem.h" using namespace …

Member Avatar for ben1996123
0
560
Member Avatar for deepak.marur

I have a data store having a Note field (a textarea) and want to display all Notes satisfying a user input (even metacharacters). I've written the following function to handle this: function notefilter() { var newfilter = Ext.getCmp('searchnote'); var searchStr = newfilter.getValue(); searchStr = searchStr.replace('?', '\\?').replace('*', '\\*').replace('+', '\\+').replace('{', '\\{').replace('}', '\\}').replace('[', …

Member Avatar for deepak.marur
0
401
Member Avatar for muralibobby2015

Hello, i have some problem with this issue. i have to do display results randomly using mysql. but results don't repeat until one cycle completed. i mean there are 6 results is there.... example first displyed randomly like 2 and 6, next 3 , 4 next 1,5 (one cycle completed) …

Member Avatar for pritaeas
0
1K
Member Avatar for sohiabmaroof

hi all m having problem deleting table row from button in jtable .here is my error when i press on delete button this code is similar to my original code . please i need immediate feedback m stuck in this error from days.this is the error [code]Exception in thread "AWT-EventQueue-0" …

Member Avatar for sohiabmaroof
0
2K
Member Avatar for iamthesgt

In writing a logfile program, I need a function to output the log entries between two dates. I use [ICODE]seekg()[/ICODE] and [ICODE]tellg()[/ICODE] to save the position of the first entry to output and last entry and then go back later to output the data in between. However, [ICODE]seekg()[/ICODE] when told …

Member Avatar for iamthesgt
0
277
Member Avatar for Zssffssz

Ok how do I make a C++ console app format a floppy disk for a Win or Linux Computer? I really want it to be auto-matic like without the whole volume tilte, filesystem; that sutff. PS How would I setup virtual memory in linux? Thanks answer the floppy question first. …

Member Avatar for Moschops
0
173
Member Avatar for jrp370

every time i try to run my program (driver) is receive the following error message, arithmetic.pm did not return a true value at ./driver line 9, begin failed--compilation aborted at ./driver line 9 can anyone help me sort this out? thank you very much [CODE]#!/usr/bin/perl -w #Driver #program by James …

Member Avatar for jrp370
0
162
Member Avatar for valestrom

My program is in an infinite loop, when It hits the "Bye" part in the code it goes right back up to the top. Help with this. It's a pretty simple program so I can't see what I did wrong. [CODE]#include <iostream> #include <windows.h> using namespace std; int main () …

Member Avatar for Zssffssz
0
166
Member Avatar for JoshuaBurleson

I'm having an issue getting python 3.2 to recognize files in ubuntu, it's the first time I've tried to code while running it. A specific example of the issue is when setting an .ico to be a bitmap logo for a Frame in tkinter it's claiming that there it's not …

Member Avatar for woooee
0
673
Member Avatar for JBazil

hello, i got a quick and trivial (not to me though) question for ya involving matlab. i am relatively new to matlab and have encounter a few problems using the function command. here is my code: **********main.m********** clear all IC = [1 0.1 2]; time = [0 30]; global test1 …

Member Avatar for saz101
0
307
Member Avatar for Creatinas

Hello everyone, i have a question for You. i have a script with grabs URL and etc. here is a [B]example[/B] of it: Sorry for very messy code... I'm just testing [CODE]while (a < 10) : if a == 2 : f = urllib.urlopen("****" % params1).read() linkai = re.compile('</a> - …

Member Avatar for Creatinas
0
244
Member Avatar for mike_2000_17

Hey, I have a set of types which are all arithmetic (have operators for addition, subtraction, multiplication, etc.). I want to aggregate any number of them into a single object, so I'm using the std::tuple class template and the <tuple> library (and Boost.Tuple for backward compatibility). My question is a …

Member Avatar for mike_2000_17
0
531
Member Avatar for amulgarg

Please have a look at the attached picture. I am creating a Windows Form application in C#. I need to display the 'carry' string bit-by-bit with a considerable difference of appearing time. For example: if the carry string is 11011 I need to diplay it like- **1 *11//overwrite the above …

Member Avatar for arunkumars
0
166
Member Avatar for thetwig

hey guys.. I'm trying to create a bunch of children where the parent creates child1, and child1 creates child2 and the parent creates child3 using fork()... and I'm supposed to pass a message through using a pipe, but when I pass from child2 to child3 I have to use a …

0
128
Member Avatar for stereomatching

[CODE] boost::shared_ptr<resource> resource_ptr; boost::mutex resource_mutex; void test() { if(!resource_ptr) //#1 { boost::lock_guard<boost::mutex> lk(resource_mutex); if(!resource_ptr) //#2 { resource_ptr.reset(new resource); //#3 } } resource_ptr->do_something(); } int main() { boost::thread t1(test); boost::thread t2(test); t1.join(); t2.join(): return 0; } [/CODE] According to the text book, this kind of codes may cause race condition, but …

Member Avatar for stereomatching
0
183
Member Avatar for churva_churva

[CODE] Public con As ADODB.Connection Public cmd As ADODB.Command Public dept_rs As ADODB.Recordset Public gen_rs As ADODB.Recordset Public stud_rs As ADODB.Recordset Public sql As String Private Sub cmdExit_Click() con.Close End End Sub Private Sub cmdSave_Click() With cmd .ActiveConnection = con .CommandText = "student_table" .CommandType = adCmdTable End With With stud_rs …

0
78
Member Avatar for ariffin246

Hi everyone, I have a text file with similar content as below: [CODE] admin,123 user,123 user2,123 [/CODE] What i need to perform is to upload the text file and read each lines. Then split the content of each lines by delimiter and add it to database. In my database there …

Member Avatar for ariffin246
0
123
Member Avatar for Dolphinboy

Hello web developers I'm trying to create option "all models" in auto script. so people could choose for example Honda and would choose "all models" of honda and see the results. [CODE]<?php include('head.php'); ?> <body> <body id="homepage"> <style type="text/css"> .t{font-weight:bold;color:#000000;width:200px} select{width:250px} input{width:238px} </style> <div id="container"> <?php include('header.php'); ?> <?php include('menu.php'); …

Member Avatar for diafol
0
126
Member Avatar for jemz

Hi, can i ask some help on how to delete records in database.im using wampserver... I retrieve all rows and display it on the table which is php code and i want to delete rows if i will click the delete in the table...is this possible?please help me... [CODE] <?php …

Member Avatar for jemz
0
257
Member Avatar for davy_yg

news_manager.php [CODE] //LOAD KATEGORI $result = mysql_query("SELECT * FROM kategori_berita ORDER BY kategori ASC") or die(mysql_error()); ?> Pilih Kategori Terlebih dahulu <select name="kategori" onchange="submit();"> <?php if (empty($_REQUEST['kategori'])) echo '<option value="" selected="selected">--Kategori--</option>'; while ($data=mysql_fetch_array($result)){ ?><option <?php if ($_REQUEST['kategori'] == $data['id']) echo 'selected="selected"' ?> value="<?php echo $data['id']; ?>"><?php echo $data['kategori']; ?></option> <?php …

Member Avatar for pritaeas
0
145
Member Avatar for muaazab

I am trying to call the fork() system call. It works quite fine until I don't use printf method in the code. My code is as follows. Platform: Linux Language: Pure C [CODE] #include <sys/types.h> #include <unistd.h> #include <stdio.h> pid_t fork(void) main() { int pid; pid = fork(); if(pid == …

Member Avatar for muaazab
0
90
Member Avatar for IWDesigns

hi guys... i have a form that submits info to the database...it works fine in ie, but was freezing in ff...originally i thought it was because my firefox has been playing up recently, but i got a friend to test on his machine and he got the same result the …

Member Avatar for Stefano Mtangoo
0
138
Member Avatar for arindam31

Hi guys, My intention is to find all possible words starting with any letter of my choice example 'p' from a paragraph.I want all the possible results . How can i do that . Take the example : 'This rule says that any match that begins earlier in the string …

Member Avatar for arindam31
0
244
Member Avatar for Ruchi224

Hello... I have form having a button and a gridview. The gridview is ok and generates data. But now, i want to populate only the data when i click on the button specified. Can anybody please help me with this ?? Here is my code : Private Sub button1_Click(ByVal sender …

Member Avatar for Ruchi224
0
136
Member Avatar for mary_forum
Member Avatar for cbwhellmouth

Hi everyone, I'm totally new to PHP and I am trying to create a script that allows users to upload a picture which will then be emailed to me along with their details. When debugging, I keep receiving the message Parse error: syntax error, unexpected $end in C:\Users\Admin\Web\php-form-action.php on line …

Member Avatar for pritaeas
0
336
Member Avatar for Adam Ma

Ok so i have trouble with looping with while and for statments heres the questions: 1. Write a program that gets a positive integer from the user and prints all the numbers from one to that integer. If the inputted number is zero or negative, then the program will print …

Member Avatar for cherrymae.calma
0
167
Member Avatar for java.util

Hello, I have written a program for an assignment and all was working well, I tested everything and all that was left was to put in a few error-messages. Then, I changed the format from ISO to utf-8 and when I tried to run it again it suddenly stops at …

Member Avatar for javaAddict
0
1K
Member Avatar for Majestics

I want to create MouseListener library from scracth... Its just a assignement ... I have no idea to develop a thing in which i cant use that api directly from java... Please Help.

Member Avatar for Majestics
0
116
Member Avatar for Zssffssz

Ok heres what I want to do: I want to put a file in a console application (during compileation\codeing not running) and when it runs it saves the file in the same place it was run from. Like moving a movie as an exe to hide it while it is …

Member Avatar for pseudorandom21
0
116
Member Avatar for RoqueyB

Kay, first i am going to start this off by saying this is for my intro to prog. class (meaning im a beginner) so sorry if this is a stupid question or i'm missing something stupid. HOWEVER I am supposed to make a program to report the income for football …

Member Avatar for RoqueyB
0
135
Member Avatar for Duki

When I debug this method, I can clearly see that currentNode = Workstation, so I am puzzled as to why I'm still entering into the "Node" buffer print, rather than the "Workstation" buffer print. Shouldn't polymorphism handle this for me?: part of Node Class [code=java] public void printToBufferAsHTML(Network network, StringBuffer …

Member Avatar for Duki
0
121

The End.