199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dp121307

I'm making a class dataset. In it, I'm trying to set the minimum max and the mean. In my given test, I am asking the user to input as many grades as they would like so what I did, for example in minimum is this.. class Dataset(object): def __init__(self, grade): …

Member Avatar for TrustyTony
0
697
Member Avatar for zachattack05

Good morning strangers! I haven't posted in a while, but you always seem to be helpful... I have an application that uses SQL as a back-end to store data so that multiple users can access it at once. The question I have is, the requirements have changed and the SQL …

Member Avatar for zachattack05
0
256
Member Avatar for pwolf

At the moment I am trying to decide which book to buy, there are many that I think would be very interesting, but some are most likely beyond me. The books in my list, along with my thoughts on them are: Concrete Mathematics (I believe this is probably too advanced …

Member Avatar for john alternate
0
378
Member Avatar for mical700

max <- 0 for(i in 1:1000){ x1 <- runif(1:10, 1) x2 <- runif(1:10, 1) x3 <- runif(1:10, 1) z <- (exp(x1)+x2)^2 + (3(1-x3)^2) if(z > max) max <- z } print(max) This has to print maximum number between 1 to 10000 and 'z' is the formula. I am getting error …

Member Avatar for mical700
0
123
Member Avatar for laavanya

combo box: how to get values associated with it..please help in minutes please.....:-|

Member Avatar for mmcdonald
0
311
Member Avatar for Nautical.RB

Hello daniweb community i'm new here and glad to join this amazing website. Well want I need to understand is how I learn to become a competent computer science major and learn to write code very well. I have always had a knack for this and I love it alot …

Member Avatar for phorce
0
382
Member Avatar for kay19

Hello, having a hard time using my Faculty class, where I have to initialize/createObject from my Education class to Faculty. I would like to use the constructors from the Education class, to be implemented to my Faculty class. Here is my attempt Here's my two codes. public class Education { …

Member Avatar for JamesCherrill
0
320
Member Avatar for NardCake

Hello! So recently I have written a lexer/tokenizer and am working on a parser for a language with a friend. At this point everything is going great but I'm beginning to think about how I want to do code generation. Are there languages or systems that generate for example C …

Member Avatar for mark5rockzz_1
0
356
Member Avatar for terrymodular

I want to make a call list for sales person from the companies table. Want to start with a certain companyid = say 1002 and add 50 records to call. Stumped as to assign companyid as firstrow? and lastrow=companyid + 50 ? I know how to assign it to the …

Member Avatar for danarashad
0
221
Member Avatar for 9tontruck

HI I am trying to make a dll file that performs its tasks using CUDA library. Here is a simple version of my code: CUDADll.cu ` #include <iostream> #include "cuda.h" #include "cuda_runtime.h" #include "device_launch_parameters.h" __global__ void test(int a, int b, int* c) { *c = a+b; } extern "C" __declspec(dllexport) …

Member Avatar for mark5rockzz_1
0
2K
Member Avatar for Xakzi

Hello! I am having a bit of a hard time figure out how to code this thing.. I have just started coding by using windows form application and need some help.. I have successfully coded so that I can open a txt file without any problem, but it is reading …

Member Avatar for Xakzi
0
4K
Member Avatar for spowel4

I have a tab control with three tabs and I have added a datagridview to each of the first two tabs at design time. Programatically, when the second tab is selected, I am attempting to create columns and add them to the datagridview on the second tab. However, they show …

Member Avatar for spowel4
0
138
Member Avatar for angelinrajeesha

Hi, I am trying to call the borland C++ DLL from VS 2005 .But its giving Linking Error. Tried teh below one still its not working , Extract the DEF file from DLL converted the DEF to LIB file. Any one have any idea ? Thanks, Angelin

Member Avatar for Ancient Dragon
0
268
Member Avatar for stanislav.koshutin

Please help to complete beginner in programming. I work with binary stack of 2 pictures and here is the plugin I use: import ij.*; import ij.plugin.filter.PlugInFilter; import ij.process.*; import java.awt.*; protected ImageStack stack; public int setup(String arg, ImagePlus imp) { stack =imp.getStack(); return DOES_8G+STACK_REQUIRED; } public void run(ImageProcessor ip) { …

Member Avatar for JamesCherrill
0
236
Member Avatar for Nebil

Hi, i'm working on a system rate analysis.I just worte the code using oop. i worte a code that inserts a record into the database.when i try to insert a data nothing happens.Please fix my code. //this code is defined in a class Public Function AddWorkItem(ByVal workitemNumber As String, ByVal …

Member Avatar for Nebil
0
132
Member Avatar for Fenrir()

I have created a method that changes individual rows back color based on certain criteria within the grid. I have noticed that when clicking the column headers that the grid resets the formatted rows. I would like to know what the best solution would be without impacting performance.

Member Avatar for ddanbe
0
302
Member Avatar for leokuz

For some reasone everytime I enter either correct mine or someone else's valid email and password, I get message: Sorry, your credentials are not valid, Please try again. What is wrong with this form?

Member Avatar for tpunt
0
411
Member Avatar for mc3330418

So I'm trying to validate dates and I have this else if "bool" that always returns false. I've written this at least 10 times and can't get it to work. When I comment everything out and only try one if at a time they all work. I know it's semantics, …

Member Avatar for Ketsuekiame
0
125
Member Avatar for yi625

con = Connect.ConnectDB(); String sql = "insert into table1 (" +"StudentID," +"FirstName," +"LastName," +"Contact Number," +"E-mail address," +"CarNumber)" + "values("+txtid.getText()+ ",'"+txtname.getText()+"','"+txtlast.getText()+"','"+txtnumber.getText()+"','"+txtemail.getText()+"','"+txtcarno.getText()+"')" ; try{ pst = con.prepareStatement(sql); pst.execute(); JOptionPane.showMessageDialog(null, "Saved"); } catch(Exception e){ JOptionPane.showMessageDialog(null, e); } can any one help me with this? im getting syntax error in insert into statement …

Member Avatar for silvercats
0
835
Member Avatar for maori

Hi guys first off excuse me if this seems noobish but i usally work in php and MySQL with some c++ a friend asked me if i could make a database application that wasn't web based for them so after doing some research i found this http://www.youtube.com/watch?v=3w2JkLcp-UA which works like …

Member Avatar for maori
0
107
Member Avatar for intes2010

I have here a working HTTP request using SOCKETS but I do not know how to send POST requests. Here is my code: Dim hostName As String Dim hostPort As Integer Dim response As Integer Dim iphe As IPHostEntry = Dns.GetHostEntry("www.yellowpages.com") hostName = iphe.AddressList(0).ToString() hostPort = 80 response = 0 …

0
128
Member Avatar for maurices5000

I bought a book to help me learning WCF. Lots of people complained that the book was written for VS 2005 at first then there was a reprinting for VS 2008. What it seems is that the code for VS 2005 would not work in VS 2008. I'm wondering why? …

Member Avatar for maurices5000
0
266
Member Avatar for Grandiago

Hi. how do you make a registration system using turbo C++? like for example: when i run the program i will register my username and password and my information(user and pass) will be saved. So that when i log in. i will just input my user and pass, and i …

Member Avatar for alicante09
0
901
Member Avatar for krunal1986
Member Avatar for krunal1986
0
214
Member Avatar for vijaykumar_b

I hava created one table with columns in html in which i had customername and some columns, now myrequirement is when i click on any customer name of the customerName column from my created table i want to get particular customer details in new jsp page plz help me,Thanks in …

Member Avatar for silvercats
0
121
Member Avatar for joester007

> I want to create a program that will calculate the day easter will be on. The user will type in a year and then the program should calculate the day easter will be on. I'm having trouble understanding the if/else and how i can use that with the code …

Member Avatar for AndrisP
0
4K
Member Avatar for vividiah
Member Avatar for vividiah
0
170
Member Avatar for ??!!

i really need your help and really fast. i've been working on this project where i am supposed to create a simulation of conway's game of life. A cell can only be in one of two states: alive or dead. There are two kinds of cells: ConwayCells and FredkinCells. Live …

0
159
Member Avatar for jared.geli

So far I can compute and update seperately a specific row when type it in a text box. What I want now is to read and update rows automatically up until the last record. Imports System.Data.OleDb Public Class Form1 Dim MyConnection As New OleDbConnection("provider=Microsoft.ACE.OLEDB.12.0; Data Source=G:\Raw Data.xlsx; Extended Properties=Excel 12.0;") …

Member Avatar for jared.geli
0
305
Member Avatar for HunainHafeez

ok we know that .net app cannot be directly converted to machine code, first it si compiled to MSIl which is converted to machine specific code by JIT on request, once but what about asp.net app ? e.g. i decelop a web page and put it on my laptop (working …

Member Avatar for HunainHafeez
0
181
Member Avatar for venkyb47

When I type URL file://///server01\PUBLIC\PEG\ in browser address bar, browser redirecting to that location and shows the documents available. But when I use same url in href browser not redirecting to the href location. <?php echo '<a href="file://///server01\PUBLIC\PEG\">click here</a>'; echo '<a href="file://///server01/PUBLIC/PEG/">click here</a>'; ?> php code is not working. When …

Member Avatar for cwarn23
0
278
Member Avatar for HunainHafeez

can i host a website from my laptop ? like i have developed a lot of web sites and few are online on servers via free hosting sevice but if i want to serve it from a laptop, so it possible ? i mean making my laptop a live server …

Member Avatar for HunainHafeez
0
370
Member Avatar for iFrolox

Hello, I'm trying to move listView items (1 selected item only) up & do, but only inside the group, I've trying and search but haven't been able to quiet figure it out, this is what I got so far: Just for going up: if (this.listView1.SelectedItems.Count > 0) { ListViewItem Selected …

Member Avatar for iFrolox
0
2K
Member Avatar for tibormarias

Evening Sirs! Well I have a quiet emberrassing problem caused by i don't know what, but I would like to get rid of this issue. I have a login with session open every .php document. But when I try to open the following file, it stops my session. This is …

Member Avatar for tibormarias
0
241
Member Avatar for waqas.zafar.125

Hey Guys! I have to read data from a text file, load it into an array and then bubble sort it! Here is my code: #include <iostream> #include <string> #include <fstream> using namespace std; void Bubble_Sort(string arr[], int length); int main() { int length; length=10,000; ifstream MyFile; ofstream out; string …

Member Avatar for Ancient Dragon
0
3K
Member Avatar for kate.negley

Hi there, I created a basic website running off Wordpress. I then customized the theme. The website is up and running, fully functional. But now when I try to login to the Wordpress dashboard to edit the pages, I see a blank white page with this error: Warning: Cannot modify …

Member Avatar for kate.negley
0
438
Member Avatar for johndohmen1963

I have a question hw can i ad 18 years to the folowing date $rowy_geboorte_datum = new DateTime($rowy['geboortedatum']); $geb_dat_echtgenote = date_format($rowy_geboorte_datum, 'd-m-Y'); $rowy['geboortedatum'] is from a mysql data table and could even before 1902 as example 1820-06-10 thanks in advice John

Member Avatar for mmcdonald
0
148
Member Avatar for praba_web

whenever i open phpmyadmin it showing that access denied and #1045 - Access denied for user 'root'@'localhost' (using password: YES) phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they …

Member Avatar for mmcdonald
0
221
Member Avatar for mmcdonald

I'm about 80% into my first attack on JQuery/AJAX... how would one correctly write this function: function reloadResponses(){ $('#responses').load('pages/community/load-responses.php?id=<?php echo $id;?>'){ window.setTimeout(reloadResponses, 10000); }; }; I would like to reload `<div id="reponses"></div>` every 10 seconds. Is this the best way? I am currently using this to reload the div every …

Member Avatar for mmcdonald
0
216
Member Avatar for Fiorentino01^

Hi need some help. Some time ago I created a database and tables doing a tutorial. After I deleted the tables(don't remember why)and now all I have is a database with no tables. Trying to clean up my db I wanted to drop the DB but get this error: ERROR …

Member Avatar for Fiorentino01^
0
528
Member Avatar for consc197

Hello everyone, I have a problem, i am unsure how to read the data from my Access Database into my vb.net form. I did some searching but i didn't manage to find anything useful so i would appreciate any pointers. Here is the code from frmAddNewCandidate i am using that …

Member Avatar for oussama_1
0
349
Member Avatar for Sci3nc3F1cti0n

Hey guys, this is my solution to a simple problem and I was looking for some feedback on my code. Please post any criticism you may have about it. //Test project for string to binary conversion// #include <iostream> #include <string> using namespace std; void binConvert(string ConvertMe){ int ArraySize = ConvertMe.length(); …

Member Avatar for tinstaafl
0
858
Member Avatar for vegaseat

Factorials get large very rapidly. The factorial of 13 is !13 = 1*2*3*4*5*6*7*8*9*10*11*12*13 = 6227020800. This number already exceeds the unsigned long integer, and gets into the real money as the politicians say! This program uses an array of characters to store the factorial as a numeric string. Go ahead, …

Member Avatar for vegaseat
0
1K
Member Avatar for Ozzzi

Hello , I'm in some trouble regarding the following code.I must state first that I'm a beginner in programming, and that I've tried to understand other solved solutions before crying for help , but with no luck.Had tons of errors and a lot of frustration ; almost gave up(work on …

Member Avatar for Ozzzi
0
575
Member Avatar for kamalashraf

i am getting result of average in int instead of float, tell me where i have made mistake. this is the code. #include<iostream> using namespace std; void getData (int a[], int s); int numbersSum (int a[], int s); float average (int sum, int size); int main() { int size=0; int …

Member Avatar for Ancient Dragon
0
325
Member Avatar for EXTRA_RICE

im making a system that will notify me when one month before its expiration. anyone can give me an idea??pls pls pls?? thanx

Member Avatar for emmy3G
0
110
Member Avatar for xXFalcoPunchXX

I need help in building a binary tree and putting integers in it. I need to write an add method in my MyArrayBinaryTree class (that extends ArrayBinaryTree) that allows me to place the element to be added in the very next available slot in the array. I also need to …

Member Avatar for JamesCherrill
0
365
Member Avatar for msubashrk

i'm inserted a image in sql server2008 as varchar(max).How to retrive in Data Grid view photo column ..i need code ...i tried many ways still getting Confused.

Member Avatar for ss125
0
107
Member Avatar for ronaldneck

Newbie to programming side..I want to know the best CMS to develop a website..Thanks in advance..

Member Avatar for thomasbruce
0
244
Member Avatar for rajeshwarreddyt

Hi Folks, I want to use windows authentication for java application for eaxmple: I have a application called ABC , now i want to apply windows authentication for this ABC appliation like when user hit the application URL the user should login automatically with out prompting any user name and …

Member Avatar for stultuske
0
1K

The End.