88 Topics

Member Avatar for
Member Avatar for Reverend Jim

A while back I came across an article that mentioned genetic algorithms. For those unfamiliar with the term, simply put, rather than finding a solution to a problem by iterating over all possible cases, a genetic algorithm attempts to find a solution by starting with a guess, then generating a …

Member Avatar for Web_4
2
1,000
Member Avatar for valestrom

May sound all too easy for some, but I'm just getting started on android development and I can't find out why I got an error when everything is exactly as it is in the tutorial. Weird but I'm confused so I thought I'd post to see if someone can help …

Member Avatar for Junaid123
0
1K
Member Avatar for vegaseat

This is the updated version of the Tiny Tkinter Calculator. It has more power, since you can type in functions contained in the Python math module then press the equals key. You can then move the result into memory for other calculations. The code is written in OOP class style …

Member Avatar for vegaseat
4
2K
Member Avatar for diafol

Hi All, thought I'd pass on a (very) simple password class which is built on the new `password_hash()` and `password_verify()` functions. You will need php 5.5.0+ in order to get this to work. If you're thinking of modifying this and using it in a production site, please check that your …

Member Avatar for diafol
8
989
Member Avatar for oussama_1

Here's a simple game code, open a new vb project and copy paste this code and hit run. the game contains 3 levels, all you have to do is to shoot the smiley faces to earn money using mouse clicks, also there's a boss enemy on level 3. I didn't …

Member Avatar for oussama_1
3
916
Member Avatar for mpike

Hello there. I recently have been teaching myself C++ and have come across something that I just can't seem to grasp. I undersatdn the basics of structures but when it comes to this nesting type situation I just can't figure out what is going on. If someone could explain in …

Member Avatar for mpike
0
258
Member Avatar for mpike

Alright I apologize for the completely uninformative title but i had no idea what to call it. Basically I have an array with multiple values and I only want information to be sent from certain forms if a certain value is met in the array. <?php if(isset($_POST['cb1'])) { $cb1 = …

Member Avatar for world_weapon
0
367
Member Avatar for ecleary

Hi, I'M using the simple grid theme and I want to add a LinkedIn social media button on the top right that linkS to my LinkedIn profile. Most of the other main networks are built in to the theme So that you only have to add a link to your …

Member Avatar for Bob Hensley
0
308
Member Avatar for CoilFyzx

Hello I am using jxls quite fine. I'm sort of on my last lap with exporting my data to a file. However all I want to know is, how do I display my collection in the same row please? I've manage to do this downwards in the same column, but …

Member Avatar for CoilFyzx
0
283
Member Avatar for james.lu.75491856

How would I use [web.py](http://www.webpy.org) to execute ASP/PHP server files? Or can web.py not do that and can someone provide me a python script that can execute ASP/PHP server files? Should I try posting this in the PHP forum, Web Design, html, and css fourm, or the Web development forum …

Member Avatar for cereal
0
366
Member Avatar for vunkas

Here's a small piece of code in python that may be helpful to those who like to play with substitution ciphers..... Say we have a text that is ciphered with simple [substitution cipher](http://en.wikipedia.org/wiki/Substitution_cipher), and say we know that the original text contained a certain phrase...but all we have now is …

Member Avatar for nosrac25
2
420
Member Avatar for CJMW

So i'm making an rpg game in xna. I can move my player around the screen, however it can also move off the screen. How can I implament a simple camera that will follow the player and prevent them from moving off of the screen? I only need it to …

Member Avatar for CJMW
0
430
Member Avatar for Sh4dowz

Hello, I'm new to these forums and I was wondering if any of you guys know a programmming language that is more designed for Video Games than casual software. I want to make a basic 2D platformer or maybe a simeple RPG that has a moving sprite. I have tried …

Member Avatar for tuto.narahenpitiya
0
632
Member Avatar for kafi_1

I need help with this: -write an application to perform simple arithmetic operations on integers. Specification 1.Name the .java file SimpleMath 2.The program should do the following: â—¦Prompt the user to enter five integer values from the keyboard. â—¦Display the sum and average of the numbers. â—¦Display the quotient of …

0
174
Member Avatar for tbuchli

Create a check digit that is the remainder of the account number when it is divided by 5. This digit should be added to the end of the 4 digit account number. Account #12344 #include <cstdlib> // Standard C library... #include <iostream> // Contains cout, cin objects... using namespace std; …

Member Avatar for tbuchli
0
458
Member Avatar for Waseemaburakia

I need help with my homework. Out professor doesn't explain anything and i'm struggeling. TMy homework is: Write, test and debug a program which asks the user to enter three floating point numbers and then reports the largest and the smallest of these values. Here is the example program dialog: …

Member Avatar for slate
0
256
Member Avatar for saurav2007

# /*Given an array arr[] of n integers, construct a Product Array prod[] (of same size) such that prod[i] is equal to the product of all the elements of arr[] except arr[i]. My code is printing garbage value.Pls someone suggest me what is wrong and how can I correct it..Thank …

Member Avatar for parag29081973
0
229
Member Avatar for JameB

Hi guys, I'm working on a side project for a friend and I'm looking for a C++ library that allows me to put bunch of paragraphs in a PDF format. Anyone know any good libraries that can do this as simply as possible? It will be just paragraphs and paragraphs …

Member Avatar for iamthwee
0
760
Member Avatar for rom.

Hi there, I need a simple socket server which will echo a client message to all connected clients. I've found this easy py script below, but it only echos the string to the client that sent the message. Any way to mod this so that it will send the message …

Member Avatar for silver.moon.37819
0
2K
Member Avatar for bwin

Hi all! So I have created this for my first portion of my Beginning CIS class project, calculating the final grade based on scores. For the next step, the user must be able to enter in their own number of projects they have completed, and from that, be able to …

Member Avatar for Troy III
0
2K
Member Avatar for SoulofchaOs

After I clicked the 'Run' button in Netbeans, it will compile and run and then it will stop at this point : [Click Here](http://i.imgur.com/4O8vY2d.png) I will have to press any key on the keyboard then it will display the text, but it doesn't allow the user to enter any form …

Member Avatar for tinstaafl
0
220
Member Avatar for boiishuvo

This code works fine but it would be too long if the score is 50 or over. Is there any way to make it shorter and quicker? I tried to use for loop statement but it didn't work well. background(backgroundChange); if (score >= 5 && score < 10) backgroundChange-=0.8; else …

Member Avatar for JamesCherrill
0
186
Member Avatar for AutoPython

[B]!USING PYTHON 3.1![/B] Hello DaniWeb! Today I'm going to be posting a [B]simple[/B] threading tutorial. First of all, what is threading? Well, threading is just another way of doing a side task without interrupting the main program. Now here's a simple example. Let's say we are going to make a …

Member Avatar for nytman
3
1K
Member Avatar for rubai

hi, I am new to javascript learning. I just want to know the detail explanation of this code given in w3schools. http://www.w3schools.com/js/tryit.asp?filename=tryjs_lightbulb I know method match() works for finding match. But I can not understand the function. I have knowlege of C. Know if...else, while loop, for loop and the …

Member Avatar for Taywin
0
551
Member Avatar for Skate Bart

I'm looking for a simple database-server maintenance and management software. It need not to be free but it must be known in the field of networking.

Member Avatar for kitschkath
0
240
Member Avatar for twazzer

[CODE]public class MinDif { public static void main(String[] args) { EasyReader keyboard = new EasyReader(); EasyWriter screen = new EasyWriter(); //Create an array to the length of the specified entry int numItems=keyboard.readInt("Enter the length of the array: "); String[] myArray = new String[numItems]; // Read in the contents of the …

Member Avatar for woodenduck
0
3K
Member Avatar for m1n1m3

Hey! **Im here to ask for Your advice.** For a school project we choosed to create a android application that uses a database. As we are thrid year studens we have some experiance. But it is not as notable. We have **seen some**: **Access SQL** only on acess. How to …

Member Avatar for peter_budo
0
222
Member Avatar for slasham

im very new to c++ and was just wondering if its possible to make a simple program where you type the name of the file and when you press enter it downloads that file from the internet to a certain place on your computer. where would the files be stored? …

Member Avatar for np complete
0
813
Member Avatar for rubai

Hi, I have some basic php knowledge. I want to know about ' -> ' sign. What does this arrow means? I know it is very sipmle question but don't know. I am learning php from my own effort. Jahur

Member Avatar for rubai
0
197
Member Avatar for logicmonster

I'm trying to come up with a small block of code that simply takes a character value that is input by the user and then use an "if" statement to determine what is excecuted depending on what is entered. I just started C++ this week and have no prior experience …

Member Avatar for lance p
0
304

The End.