64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for 123pythonme

I have created a program to find all the prime numbers less than N. When N is around 10^4, the program runs fast and efficiently. If I increse it to 10^5 no output is given, even if i let it run for an hour or so. Is there anyway I …

Member Avatar for vegaseat
0
262
Member Avatar for Hashim Javed
Member Avatar for vegaseat
0
294
Member Avatar for Deegirl

can someone help me to find out why my label display is listing the result of the textboxes instead of adding up the values of the text boxes? here are my codes: Dim strstudentName As String = (" ") Dim dblAssignment1 As Double Dim dblAssignment2 As Double Dim dblAssignment3 As …

Member Avatar for Reverend Jim
0
279
Member Avatar for sophia_sin

I'm having a hard time creating a program that will draw all of the stars from 3 to 7. The program needs to have: * The variables numberOfSides, numberOfTrips, firstNumberOfSides, and lastNumberOfSides. * A series of stars one after the other for 3 to 7 sides * The screen must …

Member Avatar for woooee
0
176
Member Avatar for sam.tubb.75

Hello everyone! I have made a game intended for the Rasberry pi in python. It is called Pi Blocks, but all of my friends with windows want to play it, so I've been trying and trying to get the game into an exectutable format, but nothing seems to work! I've …

Member Avatar for sam.tubb.75
0
333
Member Avatar for rwe0

I am using Beautiful Soup 4, python 3.x on a project just to learn it. 1. soup = BeautifulSoup(s ) # use default parser 2. soup = BeautifulSoup(s, 'html5lib') # specified parser Actually #2 solved my problem already. But, when using the first approach I got different behavior on my …

Member Avatar for rwe0
0
402
Member Avatar for mcoliver88

Hi so i have created this table for a sales person. class SalesSystem { //Sales Person One public void SalesPersonOne() { int i=0; System.out.println("Sales Person 1"); String newLineMark = System.getProperty("line.separator"); String leftAlignFormat = "| %-7s | %-9d | %-9d | %-9d | %-9d | %-9d | " + newLineMark; System.out.format("+---------+-----------+-----------+-----------+-----------+-----------+" …

Member Avatar for mcoliver88
0
211
Member Avatar for DyO1

How can I make a Save/Open buttons that will save and open ListView items AND THEIR DETAILS? (tried anything and it won't save anything else but the name)

Member Avatar for tinstaafl
0
136
Member Avatar for Triryche

I am trying to play a wav file form a projects resources. I found this example: [Click Here](http://www.daniweb.com/software-development/csharp/code/258293/add-sound-file-into-resource-and-access-it.-in-.net-c) I imported two wav files per instructions named "Button.wav" and "Stop.wav". I commented out this line `Stream soundStream;` because it did not seem to belong. When I run the code the sound …

Member Avatar for tinstaafl
0
366
Member Avatar for BadManSam

Hi, when I try to use a SELECT statement in php, I get an error: > Resource id #18 <?php include("include/session.php"); $get = mysql_query("SELECT value FROM settings WHERE id=2"); echo $get; ?> The file session.php contains the database credentials .etc and it's correct. But then when I try to echo …

Member Avatar for Derice
-1
421
Member Avatar for aqkill3r
Member Avatar for zozzooo

hii I have make an application as trial period .In this application contain .afl file it Contain my functionality and this file make as trial period i am beginner in this so please help me....this .afl file is make in c++....plz help..

Member Avatar for jwenting
0
153
Member Avatar for jamiecarmichael101

I am trying to update my WAMP install to the latest versions of PHP and Apache. The links on the WAMP homepage are not up date php or apache wise so I am downloading and installing manually. I have successfully downloaded and installed the latest version of php (5.3.17) I …

Member Avatar for jamiecarmichael101
0
1K
Member Avatar for gahhon

protected int getRowCount() { int RowCount = 0; SqlConnection conRowCount = new SqlConnection(ConfigurationManager.ConnectionStrings["connMSJ"].ConnectionString); SqlCommand cmdRowCount = new SqlCommand("SELECT Category FROM MonthlyBudget WHERE (Username=@username AND CurrentMonth=@current) GROUP BY Category", conRowCount); cmdRowCount.Parameters.AddWithValue("@username", Master.getUsername); for (int i = 0; i < intMonth.Length; i++) { cmdRowCount.Parameters.AddWithValue("@current", Convert.ToDateTime("1/" + intMonth[i] + "/" + ddlYear.SelectedItem.Text)); conRowCount.Open(); …

Member Avatar for gahhon
0
174
Member Avatar for sonunclejalil

my problem is i want to save a date from label in vb to field in ms access but i do not know that problem with my coding, the error appear is run-time error 91 object variable or with block variable not set, can anyone check my coding? Dim Con …

Member Avatar for sonunclejalil
0
531
Member Avatar for Gà_1

Here is my few successful program: #include<iostream.h> #include<conio.h> //============================================================================== void main() { short int n,i,j,k,max; int m[50]; i=0; j=0; k=0; max=-32767; cout<<"Value of length: "; cin>>n; for(i;i<n;i++) { cout<<"Value "<<(i+1)<<": "; cin>>m[i]; if(m[i]>0&&m[i]%2==0) k++; if(m[i]<0&&m[i]>max) { max=m[i]; j++; } } cout<<endl<<"Number of natural even value: "<<k<<endl; if(j>0) { cout<<"Position of …

Member Avatar for Gà_1
0
249
Member Avatar for srikanth2321

Hi, I'm trying to wrap lines in Jtree nodes, I found this code which is working good for me but a with a minute defect. On selecting Jtree node, only second half of the text is highlighted in blue leaving first few characters, I tried a lot to fix this …

Member Avatar for srikanth2321
0
907
Member Avatar for xTurK

I have to complete this programming homework which consists of building a hangman game. However, the problem is: I do not know how to make it so that, when you guess a correct letter, it reveals that letter in the hidden word while still keeping the other parts of the …

Member Avatar for xTurK
0
323
Member Avatar for KushMishra

Dear All, I am using Visual Studio 2012 and created a WPF application. I just want to know that how to include pre-requisites like set up files of .Net framework etc. in my setup project so that if anyone installing my setup has not got the framework installed on his/her …

Member Avatar for KushMishra
1
193
Member Avatar for KushMishra

Hello All, I want to create a combobox of Countries with 3 Group Headers as "Favourites", "Frequently Used" and "Rest of the world". I am not sure how to achieve the favourites and frequently used functionality. I have written some sample code that runs fine but the real functionality for …

Member Avatar for KushMishra
1
663
Member Avatar for lewashby

In the following code blocks I don't see any affect that my java scipt is having on my form. Any ideas? Thanks. Form: if($row['password'] == $passwd) { echo "<html>"; echo "<body>"; echo "<script src='check.js'></script>"; echo "<form id='form1' action='changepassword.php' method='post'>"; echo "<table>"; echo "<tr><td>"; echo "New Password<center><input type='text' name='newpassword1'></td></tr></center>"; echo "<tr><td>"; …

Member Avatar for lewashby
0
269
Member Avatar for jvasher

I am trying to make sure that I delete all memory allocations from the new command, ran into 1 problem and I'm not sure If I understand when how the delete in a destructor of a class will be called. Problem: I create a class in main, after the game …

Member Avatar for mike_2000_17
0
185
Member Avatar for logicslab

Dear Friends, I am looking a small thing , I need a simple code to check the input whether it's prime , if not can enter same repeateddly upto get a proper value . Please provide a simple code snippet and help me Thanks, Anes

Member Avatar for logicslab
-1
377
Member Avatar for castajiz_2

I was just wondering not just concerning this piece of code but in some other code as well how can i avoid --> if (j!=array.Length-1) and put something else maybe something in the for loop? LINE6 for (int i = 0; i < array.Length; i++) { for (j=counter; j < …

Member Avatar for vadriaan
0
160
Member Avatar for acmarshall

Hello all, I am not sure what's wrong my code but, when I run my program it keeps going to my default switch statement. I would like my program to keep looping the menu until I put in the quit function. Can someone please tell me what I'm doing wrong? …

Member Avatar for HiHe
0
10K
Member Avatar for nitin1

Is there any alternative for clrscr() and gotoxy in gcc ? I am using system("cls"); to clear screen but it doesn't identify cls as a valid command whereas in cmd cls is working perfectly on windows? can anyone please help ? i am using gcc as my compiler and using …

Member Avatar for deceptikon
0
1K
Member Avatar for pebesoft

Could you please tell me why this code does not put the data in a row ? --------------- foreach ($_POST as $key => $value){ $sql = "INSERT INTO ir3 ($key) "; $sql .= "VALUES ('$value')"; if (!mysql_query($sql)) { die('Insert Row Failed!' . mysql_error()); } $sql=""; } } Thanks for any …

Member Avatar for Byzantine
0
12K
Member Avatar for kanagamani

swap of two variables using temporary variable execute first or without using temporary variable execute first?

Member Avatar for vegaseat
-1
128
Member Avatar for 123pythonme

I've been set an assignment to find all the prime numbers smaller than N We've been told to first create a function to test if it is divisble by any numbers in my primes list and then second to create a function to test each integer from 2 to N, …

Member Avatar for vegaseat
0
581
Member Avatar for facarroll

My web host recently advised me that my site was being migrated (after the event). I am led to believe that this is in the interests of improving the service. Immediately after the migration I discovered that one php file using date/time functions was stalling and numerous files were showing …

Member Avatar for Dani
0
127
Member Avatar for andrew.mendonca.967

CSCI 15 Assignment #3, introduction to classes/objects. 100 points, due 10/21/13 A mixed expression is an expression of the form a + b/c, where a, b, and c are integers, b >= 0 and c > 0. By convention, b/c is always non-negative, and has the property that 0 <= …

Member Avatar for tinstaafl
0
341
Member Avatar for laolumichael

SELECT * FROM myTable WHERE columnId < 45; while (rs.next(){ result of row1 goes to row1.txt; result of row2 goes to row2.txt; result of row3 goes to row3.txt; result of row4 goes to row4.txt; }

Member Avatar for laolumichael
0
223
Member Avatar for Skotie44

Hello All I am writing this program which: - generates two random numbers -ask user to multiply them -checked users answer to see if its correct. - if not correct, asked the user to guess again I have everything working except the loop that is needed to have the user …

Member Avatar for JamesCherrill
0
321
Member Avatar for Violet_82

Hi all, I wonder if you can help me to understand this. I came across the following code: @Override public String toString() { return String.format( "hourly employee: %s\n%s: $%,.2f; %s: %,.2f", super.toString(), "hourly wage", getWage(), "hours worked", getHours() ); } // end method toString I have some problems with the …

Member Avatar for Violet_82
0
3K
Member Avatar for iamcreasy

I want my program to throw exception on console window. But when exception occures Microsoft Visual C++ Runtime library dialog box shows up. What can I do to stop visual studio from stopping execution of my program when an exception occues and let my program handle the exception? I am …

Member Avatar for deceptikon
0
438
Member Avatar for ccbuilder

I have recently started assembler I am trying to send the letter H, to my LCD screen using basic assembly language, but it doesn't work. I'm using parallax 2x16 lcd http://learn.parallax.com/KickStart/27977 and Rx is hooked up to portb7. Atmega32 can someone tell what's wrong, because i couldn't any example code …

Member Avatar for ccbuilder
0
228
Member Avatar for castajiz_2

public void RotateImage(Graphics paper,string theString) { try { using (paper) { paper.RotateTransform(angle); angle++; sz = paper.MeasureString(theString, this.Font); paper.DrawString(theString, new Font("Arial", 24), Brushes.Black, -(sz.Width / 2), -(sz.Height / 2)); paper.Dispose(); } } catch (Exception e) { MessageBox.Show(e.ToString()); } i get an error saying parameter is not valid, but only if i …

Member Avatar for castajiz_2
0
320
Member Avatar for jared.geli

hi I'm having problems in my crystal report where all the selected rows in my datagrid will show up in my crystal report but instead it showing me an exception selectcommand.connection has not been initialized here's my code in my form where the datagrid is: Dim cmd As OleDbCommand = …

Member Avatar for jared.geli
0
348
Member Avatar for Annuscha

Hi, I have a textarea counter which has a limit of 160 characters. What I want to do is when the checkbox is ticked the character limit would charge to 140 characters. I have the following code: Html: <input type="checkbox" name="change" value="1" /> <textarea name="sms_text" id="sms_text" rows="8" cols="60" onKeyDown="limitText(this.form.sms_text,this.form.countdown,160);" onKeyUp="limitText(this.form.sms_text,this.form.countdown,160);"></textarea> …

Member Avatar for LastMitch
0
225
Member Avatar for G_S

Hello. I am currently studying database design at my local university. They use Microsoft products there (Microsoft SQL Server 2008/2012), but we can't use them at home because of the licensing. I have two questions: 1 - Is there anything in the world of Open Source that I can use …

Member Avatar for Reverend Jim
0
226
Member Avatar for mikewyatt

Hey.... I am just days away from completing a year-long project and want to convert the netbeans project to a stand-alone java program that can be installed on another system without netbeans. YEAH! Sorry - did my happy dance! the Program has a .main java file and about 15 other …

Member Avatar for mikewyatt
0
890
Member Avatar for mikewyatt

I am trying to change my database(s) from network to embedded. I believe that the driver is working and has found the database requested with the following code: try { // connect method - embedded driver String dbURL1 = "jdbc:derby:Databases/Armor"; Connection conn1 = DriverManager.getConnection(dbURL1); if (conn1 != null) { System.out.println("Connected …

Member Avatar for mikewyatt
0
4K
Member Avatar for Sepand_1

Hello, I want to add 3 digits (1+2+3) together but im getting wiered char instead of the resault. please advice where am i wrong. comments are added for more information they are not included in pep8 object codes. Thanks. D1 00 14 ;First number 71 00 16 ;Add the two …

Member Avatar for Sepand_1
0
269
Member Avatar for karma2you

Hello,i want my my program to look just like the one below the line: But i keep getting the same issue of the void Instructions() coming before the Instruction; input (( i want it the other way around)) For example i keep getting(after compile): I have a capital letter in …

Member Avatar for Ancient Dragon
0
170
Member Avatar for blue_Student

I want to have a changing output in the 2nd textfield that is 'output' in my Action class as I enter input in the 'input'textfield. I don't know why it doesn't give any output... pls help The comboBoxes convertTo---contains "IEEE" and "DEC" while precisions contain "Long", "Single", "Double". Any advice …

Member Avatar for JamesCherrill
0
240
Member Avatar for nitin1

hello, I have started learning python these days. Although i am following a course on coursera.org for learning it , but that course is going very very slow. Also, I don't know if that course contains all things which is need to build codes in python. I have very good …

Member Avatar for nitin1
0
417
Member Avatar for yorro

I have connected VB.net and mySQL on a the same PC before, but I have no Idea how to connect VB.net to a remote PC(LAN) I've only changed the server This is my code. I removed some of the details, but it works on server=localhost [CODE] conn = New MySqlConnection() …

Member Avatar for nathanl.dulguime
0
3K
Member Avatar for cussel

hi all, how to check same values array if it values is the high values in array associative and get it values? example 1: Array ( [value 1] => 0.8434 [value 4] => 0.8434 [value 6] => 0.8434 [value 3] => 0.3434 [value 2] => 0.3434 [value 7] => 0.2114 …

Member Avatar for cmps
0
242
Member Avatar for <M/>

Hi, i have been search for an answer for this for a few hours now and i finally got frustrated... soooo... how do you create a redirect link that redirects users back to last page they were on? Lets say they are on page A and they visit my site, …

Member Avatar for <M/>
0
172
Member Avatar for G_S

Hello everybody. I have a question related to database design: I am trying to make a database for my translation mini-company. I have two entities: translators and proofreaders. The problem is that some of our translators double as proofreaders, that is, they can work in both areas. The question is, …

Member Avatar for G_S
0
263

The End.