Quantcast
Channel: Programming Forums
Browsing all 51036 articles
Browse latest View live
↧

how to handle data event errors in datagrid

hae how can i handle data event errors in datagrid.....am using a datagrid to input many value into a database .wen i input a value that doesnt exist i get a error that the product doesnt exist but...

View Article


Triggering an event with a boolean?

I'm looking to raise an event to refresh a number of controls everytime a variable Boolean = False, I have scaled the "googles" searching for an answer and have come up with this code so far. Custom...

View Article


String to int and int to String

Hello everybody, I'm trying to write a very basic, simple code that will "talk" to you, based on your answers The problem here is, when I'm trying to use if it gives me an error, I understand that is...

View Article

Histogram random number

How would I make a program generate x amount of integers from the range of 1 through 100 and than store those using arrays and/or hashes.

View Article

moving average for ultrasonic rangefinder

Hello! I'm on a robotics team, and I have been tasked with programming the rangefinders (I'm not exactly an expert... I'm 16). Due to the noise when measuring the distance, we thought we should use a...

View Article


Simple input and output

Hello all, I am having a problem getting an assembler program to assemble. It takes in two numbers adds them together and displays the result. My operating system is Windows 7 Professional. The IDE is...

View Article

My x86 bootloader is not working (not showing BIOS int 0x10h text)!

Here is the code. From what I have garnered, it should work perfectly fine: BITS 16 ORG 0XC700:0000 PUSH EBP INIT: MOV AL, 0X03F MOV EX, 0X0B3 XOR AL, EBP CMP [AL], EX POP EBP JNE DOSERV DOSERV: PUSHA...

View Article

VBScript concatenation issue.

Hi all, I am working through a scripting situation inwhich I need to create an array which has values that match the Win32_Service names of various services I am trying to shut off. My first big...

View Article


How to port SimpleDirect Media Layer to run on my own kernel and GUI?

I know SDL will run on Mac, Linux and Windows, and I'm not so sure what dictates this, maybe a simple #if or conditional logic of some sort on the developer's behalf, but I'd like to know the utmost...

View Article


Recognize Letters Written With Asterisks

Hey guys, I've been trying for about a week now to figure out a programming algorithm to convert pixels into asteriks then into letters. I'm not 100% sure if that makes sense but to quote from the...

View Article

nQueen problem

hi guys , I wrote nQueen but it just work for 5 queens , what is the problem , this really stupid ! even i increase first pop and epoch nothing's changed at all nqueen cycle : 1- first pop 2-...

View Article

Parse Error

I get this error in my PHP script: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING Any help is appreciated. Here is the code: <?php...

View Article

Fibonacci with Forking

Hey all, I'm working on an assignment for my Operating Systems class and I've run into a snag. We've been tasked with implementing the fibonacci sequence recursively by forking of child processes for...

View Article


Simple Motion Blur Issues in C++

Hi, I'm currently messing around in C++ and have so far made a simple scene with a teapot but I'm trying to get a simple motion blur to appear as the scene rotates from my mouse & keyboard...

View Article

Question: Casting Objects

I had a question regarding casting objects. I have always used the following syntax to create an instance of a class Person me = new Person(); My java textbook is explaining implicit/explicit object...

View Article


Big O notation / algebraic formula

Hey everyone. I can't seem to figure out the big O notation or the algebraic formula as it applies to this snippet of code. I'm assuming it is O(n^2)? Can anyone confirm this or help me out with the...

View Article

Image may be NSFW.
Clik here to view.

Select radio button randomly

Hi guys, I have a page with three questions with choices in radio buttons. I am trying to select the radio button randomly, but I my code is not working as I am expecting. for the first question:...

View Article


Code runs, but not everything prints.

My code runs without error but only the income and marital status are printed. import java.util.*; public class TaxSystem3 { public static void main(String[] args) { String status,m = null,s = null;...

View Article

Fatal error: Call to a member function prepare() line 22

Not sure why I keep getting these errors all of a sudden... Fatal error: Call to a member function prepare() on a non-object in login.php on line 35 Call Stack: 0.0005 675088 1. {main}() login.php:0...

View Article

Fatal error: Call to undefined method PDOStatement::fetch_assoc()

I keep receiving the error message: Fatal error: Call to undefined method PDOStatement::fetch_assoc() in index.php on line 16 Call Stack: 0.0001 644064 1. {main}() index.php:0 for this piece of code....

View Article
Browsing all 51036 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>