64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Goalatio

Over the past few days I have been writing a bootloader/kernel in NASM... It loads perfectly fine when I write it to a virtual floppy using PARTCOPY, and then boot to it from Oracle VM VirtualBox. However, when I write it to a physical floppy and try to boot to …

Member Avatar for Goalatio
0
331
Member Avatar for justinbailey

I have to answer with the runtime for Big O for a few examples of C++ code. I'm generally having some trouble grasping the concept of Big O but two particular problems are stumping me: [CODE]cin >> x; double n = example(x); for ( i =0; i << n; i++) …

Member Avatar for justinbailey
0
170
Member Avatar for blknmld69

I have started my code to create an application with two combo boxes. One that holds the names of the dormitories and the other holds the meal plans. The user should select a dormitory and a meal plan, and the application should show the total charges for the semester. I …

Member Avatar for jon.kiparsky
0
907
Member Avatar for Perry31

Hi, Can anyone explain in detail what is the difference between int *a and int* a? Is there any difference between them?

Member Avatar for Ancient Dragon
0
85
Member Avatar for hwalsh

Can anybody tell me why I'm not getting checkboxes? Sometimes I can get one, but never the three I need. [CODE]public class SwingLab implements ActionListener { // instance variables - this instance will get reader's name private Scanner reader;//name from user private Random random; private ArrayList<String> name;//construct a responder, declare …

Member Avatar for hwalsh
0
167
Member Avatar for LELE7

I have an upload form where the uploaded picture is displayed. This works perfectly in Firefox. Problem is that in Internet Explorer, the image only displays when the page is refreshed. I do not want my users to have to do this, any tips? I tried just about every solution …

Member Avatar for LELE7
0
126
Member Avatar for kberrianjr

I am trying to save a listview item and 5 subitems to a txt file, I have tried one solution that was posted on here but i could not manipulate the code for all of my sub items can someone please help me out.

Member Avatar for Unhnd_Exception
0
992
Member Avatar for LONGWAY

Hi, i have four tables: books info autor publisher ---------- ------------- --------------- -------------- id id id id bookname type name publisher name autor_id year second name quantity publisher_id autor year country I tried with this relations but it did not work (is this normalization ok) relations: `autor.id = books.autor_id` AND …

Member Avatar for LONGWAY
0
120
Member Avatar for Tankadin

Hi folks I know this particular program has been posted in many other forums but it all involves many different things that I have no learned yet so I really can't use any of them.....plus it would make me look stupid to turn in something that I copied that includes …

Member Avatar for Tankadin
0
5K
Member Avatar for facarroll

Hi. I purchased some software recently but have been unable get any helpful product support with the following problem, because it's a coding matter, I guess. The purchased software is for a PayPal subscription management system, and it relies on user verification by way of a username (email address) and …

Member Avatar for facarroll
0
410
Member Avatar for Azul-P

Greetings, I'm working my way through Michael Dawson's Python Programming for the Absolute Beginner book. At the end of chapter 4: "for Loops, Strings and Tuples", there is a challenge that asks so "improve Word Jumble so that each word is paired with a hint. The player should be able …

Member Avatar for TrustyTony
0
2K
Member Avatar for sariberri

I'm trying to figure out how to add an element to an array of integers, but the tricky part is that I have to slide the elements to the right of it over by one place. For example: Start array: {1, 2, 3, 4, 5, 6, 7} Adding 10 to …

Member Avatar for Ezzaral
0
138
Member Avatar for Anthony Cameron

Hello, I have a perl program where I must mutate a DNA sequence while maintaining the same base pair distribution and then randomly mutate the sequence 10 to 20 times and find the similarity between the mutated and original sequence by calculating an adhoc score. This is what I have …

Member Avatar for d5e5
0
320
Member Avatar for k9shark

hi, I am aware there are far easier and simpler ways to solve this problem, but due to certain circumstances, I am unable for instance to change filetypes etc.. so, here we go: using wordpress with the thesis theme, I need to append an html file(shop.html) onto a page(gardens). my …

Member Avatar for k9shark
0
137
Member Avatar for Oreo1982

Hi, I've writen a stored procedure that is supposed to load 4 tables in a database that are to be used by a vendor to load their tables for an application we purchased from them. being that our data is on multiple servers, the query must read from two servers …

Member Avatar for Oreo1982
0
136
Member Avatar for Kagome

I'm writing a program for a class that's a game. It has ten places to put a peg, numbered 1-10. You have to roll 2 die and the summation is the number you have to work with to try and fill in the board. So far, my program is as …

Member Avatar for TrustyTony
0
245
Member Avatar for youlichika

Hi I test my web on my localhost(winxp+ie8+mysql5.0.51a+PHP 5.2.11+Apache 2.2.13). I want to add some cron job for my php files. I select Pycron. After configuration, I add some command in crontab.txt [CODE]* * * * * "C:\Program Files\Internet Explorer\IEXPLORE.EXE" http://localhost/test/index1.php.[/CODE] It is success, it will open IEXPLORE.EXE and load …

Member Avatar for youlichika
0
351
Member Avatar for LianaN

Hello! I have a JScrollPane with JTable that is filled from MySQL. I'm using SwingWorker to display JScrollPane while reading data from MySQL database. There is no problem with it. My question is how to add a text "Loading..." to JScrollPanel? I just want to display some message in this …

Member Avatar for LianaN
0
4K
Member Avatar for omaiaa0p

Hello Everyone, I am totally new to php, I would like to know if I can be able to use it. within my website,I am using javascript and a database. what is the relation between php and ajax. Can I use php if I am using javascript? How can I …

Member Avatar for omaiaa0p
0
127
Member Avatar for falkor15

The problem states to write a method named fallingDistance that accepts an object's falling time as an argument. The method should return the distance that the object has fallen during the time interval. Demonstrate the method by calling it in a loop that passes the values 1-10 as arguments and …

Member Avatar for falkor15
0
671
Member Avatar for tagazin

Hello, I'm trying to realize a simple calculator but when I double click the file.exe to see the output, my program keeps running in the terminal, maybe I created an infinite loop.. I'm using cin.get() I don't understand.. I compiled it with G++ (MinGW), using Win Xp. can someone help …

Member Avatar for tagazin
0
363
Member Avatar for peter_budo

I have file that contains Unicode characters from Latin-1 and Latin Extended A sets (link to [URL="http://unicode.org/charts/"]Unicode charts[/URL]). How do I read it so that these unicodes are converted to proper characters? I tried [code=Java] public void readFile(File file) { try { BufferedReader in = new BufferedReader(new FileReader(file)); String noneUTF; …

Member Avatar for quuba
0
4K
Member Avatar for dancks

I'm new to c++ so please take things slow with me. I heard in class that dynamic arrays like in java aren't supported so I thought as an exercise I would make a program that sort of acts like a dynamic array. I'm using a mac btw. For some reason …

Member Avatar for Fbody
0
185
Member Avatar for alanlee9898

Hi, I need help to insert multiple checkbox data into MySQL using PHP. I'm new here, any code I can refer? I have a database name called subject_name and there is only 2 column in the table which is id and subject. I would like to insert multiple checkbox data …

Member Avatar for angelos33
0
9K
Member Avatar for CEVGames

Hi all, I am completely new to PHP and MySQL, but I need to learn it for a project my friends and I are working on. So, I found a tutorial on how to create a user registration and log in system using PHP and MySql. I am having an …

Member Avatar for CEVGames
0
201
Member Avatar for hanvyj

Hello everyone I am trying to print out a load of printables on different pages, I have made the containing class Pageable, and implemented all the methods as below, the acutal printing is done in printAllGraphs() : [CODE] PrinterJob printerJob; PageFormat pageFormat; int numberOfPages; public void printAllGraphs(){ //this.chart.print(); numberOfPages=this.dataList.size(); System.out.println("Number …

Member Avatar for hanvyj
0
188
Member Avatar for SVSU_Student

Good Morning DaniWeb users, This will be the first time I use your forum to try and solve a problem. I'm an non-traditional student and live in Michigan. For those curious about where that is located; look a world map (for our international friends) and look for the United States, …

Member Avatar for Frederick2
0
376
Member Avatar for stereomatching

Below is my code [code] template<typename iterator> void selSort(iterator begin, iterator end) { iterator minIt = begin; iterator it2 = begin + 1; for(iterator it = begin; it != end; ++it) { minIt = it; for(; it2 != end; ++it2) { if(*it2 < *minIt) *minIt = *it2; //line X } …

Member Avatar for stereomatching
0
297
Member Avatar for albertkao

Given the following two SQL operations: [CODE]select prod_Id, P.proposal_id, P.institution_Name from proposals P group by P.proposal_ID having mark >= 50 order by P.proposal_id desc select prod_id, P.proposal_id, PA.evaluator_ID, U.user_Given_Name, U.user_surname from users U, proposals P LEFT outer JOIN proposal_appraisal PA ON (P.proposal_Id = PA.proposal_id) where PA.evaluator_ID = U.user_id group by …

Member Avatar for d5e5
0
95
Member Avatar for mbarandao

Good day all: I have an editable invoice that I have added a sales tax option with a js function doMath(). Prior to my modification with the sales tax option all worked well. the invoice which code is the following: [code] <textarea id="address" rows="6" cols="38" disabled="true">Website: Email: TaxID: </textarea > …

Member Avatar for mbarandao
0
2K
Member Avatar for gunnarflax

If i assign a value to a variable like this in PHP: [CODE] $var1 = 123; [/CODE] and then assign another value to another variable like this: [CODE] $var2 = $var1; [/CODE] Are those two variables pointing to the same value in the memory (like in Java if I'm not …

Member Avatar for gunnarflax
0
101
Member Avatar for coxdabd

Hi there, just a quick one (I think), a little stock on displaying PHP results in a div rather than a table. I seem to be managing to display one of the results ok but the rest are not showing, I want them all to display in their own divs. …

Member Avatar for teedoff
0
96
Member Avatar for maofree

Hi Droopy doesn't work on my Linux's distro with python 3.1 (with python 2.x everything was ok). (here you can find droopy [url]http://stackp.online.fr/?p=28[/url]) I've used this command 2to3 -w droopy and changed alot u" in " , in Translations section But now there is another problem [CODE] Traceback (most recent …

Member Avatar for maofree
0
391
Member Avatar for Xcelled194

I'm attempting to make a program that will simply draw a guide (consisting of two perpendicular lines) on another program's window. I tried using a form with a transparency key and TopMost set to true, but then whenever the user inadvertently clicked the guide, it would un-focus the application. This …

Member Avatar for Xcelled194
0
265
Member Avatar for neo_31591

[code] //package Answer; import java.sql.*; class Answercheck { public static String correct; public static String user="Brandon"; /* public static void check(int q1) { String dataSourceName = "questions"; String dbURL = "jdbc:odbc:" + dataSourceName; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con = DriverManager.getConnection(dbURL, "",""); Statement s = con.createStatement(); s.execute("SELECT copt FROM Ques WHERE …

Member Avatar for neo_31591
0
123
Member Avatar for vinitmittal2008

Write a 'C' Function to combine two singly connected linked lists in the following manner. Suppose one list is "L" which can be given by L=(l0,l1,.....,lm) and the other list is "M" where "M" can be expressed as M=(m0,m1,......,mn) where each li,mi represents one node in the respective lists. For …

Member Avatar for vinitmittal2008
0
173
Member Avatar for shane1987

hey all I found out today I needed to do a testdriver for my programme as we no it took me forever to do the programme so will some one explain the test driver to me or even help me I no this is a silly thing but im so …

Member Avatar for shane1987
-1
155
Member Avatar for veledrom

Hi, I want to re-use already estanbished DB connection but I don't know know how to do it. Please help me to modify my code below. Thanks in advance [CODE]function connectDB(){ $host = "localhost"; $uid = "root"; $psw = ""; $db = "mydb"; $hostc = @mysql_connect($host, $uid, $psw); if($hostc){ $dbc …

Member Avatar for veledrom
0
93
Member Avatar for Matthew N.

Hello, I have a JavaScript calculator, here is the code:[CODE]<script type="text/javascript"> var num1=prompt('Enter your first number',""); var num2=prompt('Enter your second number',""); var problem=prompt('Enter the operator you wish to use..x,X,+,-,/ are valid..',""); if (problem=="+") { alert("The anwser to your equasion is "num1+num2); } else if (problem=="-") { alert("The answer to your …

Member Avatar for rbsntl
0
1K
Member Avatar for dre-logics

I use Visual studio 2008 I use MYSQL 5.1 I want only to backup database Test to to a specific directory. I use the [COLOR="Green"]application settings [/COLOR]to determine which directory(see attachment). [COLOR="Green"]Green[/COLOR] shaded code works perfect. [COLOR="Red"]Red [/COLOR]shaded code works not!! This is with My.settings. I can not see the …

Member Avatar for dre-logics
0
625
Member Avatar for cirno

Dear Codegurus, [B]How do I updatezz data from 2 rows to 2 columns?[/B] tool: vb.net server: MySQL (SQLyog) I have 2 tables, membercardlist and memberinfo: table membercardlist: [CODE] ------------- ------------ ------------ | AccountNo | CardNo | status | ------------- ------------ ------------ | 9999 | B009 | inactive | ------------- ------------ …

Member Avatar for cirno
0
120
Member Avatar for jlovesfishiee

Anyone knows how I can read a string value from a textbox (e.g.: 192.168.1.1), split the values using a delimiter, store the values and convert them into int for later use? Thanks.

Member Avatar for jlovesfishiee
0
119
Member Avatar for juan92

im a newbie here, im taking intro to programming wth VB in college and im having problem with the homework here's what im supposed to do 36. Read 10 digits contained in a text file into an array and then display three columns in a list box as follows: column …

Member Avatar for codeorder
0
186
Member Avatar for hzp

[B]Edit: that was my mistake. i placed the codes in wrong line. i solved it by myself already. thanks for viewing.[/B]

Member Avatar for jonsca
0
136
Member Avatar for choosenalpha

Hello All, I have went through my code and checked for any whitespace or blank spaces and also missing closing marks and etc. But the error message clearly states that it is initiated at line 8 of my php code. Is it my echo in the code? Can someone please …

Member Avatar for choosenalpha
0
252
Member Avatar for benjaminFowl87

Hi there, I'm thinking of creating a mini comparision website like money supermarket or gocompare but have no clue as to how these sites manage to get all the information in the first place. My first thought is web services and something similar to rss feeds but this is only …

Member Avatar for griswolf
0
120
Member Avatar for ddggttff3

Hello. I am kind of new to PHP and mysql, and I am wondering on how I would go about coding up a system that would allow me to save multiple values to one row in a mysql database, and later read each separately. I am coding up a mac …

Member Avatar for ddggttff3
0
157
Member Avatar for atticusr5

Hello all, I have a question that is more based off of a unique occurrence (unique for me having no real prior php knowledge). I am trying to create a webpage where a user inputs a password, and a php reads the user inputed key and then compares it to …

Member Avatar for atticusr5
0
135
Member Avatar for TSims11

So I need to be able to close a window when I open another window... Here is my code: [CODE]private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { Form2 ^form2 = gcnew Form2(); form2->Show(); Form1->Close(); }[/CODE] All this does is close both windows... If you guys could help out a noob to …

Member Avatar for TSims11
0
277
Member Avatar for Agnusmaximus

Hi, I'm new to DaniWeb. I have question regarding bots, specifically internet bots. How are they made and how do they perform automated tasks? Are they programs that repeatedly perform clicks at certain locations? Or are they programs that use internet functions such as cURL?

Member Avatar for Agnusmaximus
0
141

The End.