199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Thisisnotanid

Hi everyone. I was trying to solve Pb 35 on Project Euler ([url]http://projecteuler.net/index.php?section=problems&id=35[/url]). It essentially asks to write a program to list all circular primes under 1e6. I wrote the program and it works well for the most part. However, in the end it seems not to be able to …

Member Avatar for Thisisnotanid
0
2K
Member Avatar for omeralper

Hello, I am newbie at ASP.net. I got stuck at a point that hopefully you can help me. I use mssql as database and fetch all my records and images from there by using <asp:SqlDataSource>. I also use [CODE]<asp:Repeater>[/CODE] to show data at every iteration. After fetching data from database, …

Member Avatar for omeralper
0
165
Member Avatar for mbouster

Dear all, Maysomeone help me with this functions? I have entries in my classes and I need to initialize entries into other classes. To be more specific: I have Customers and Flights and I need to use this fuction to insert customers to random destinations.

Member Avatar for mbouster
0
131
Member Avatar for mapee

Hi i am new php programmer, and i need your help please i have a page that allows for public visitors to upload multi images but some hackers using my page to upload php files by using image forms to hack my website. i tried to add some code in …

Member Avatar for mapee
0
382
Member Avatar for astala27

Writing a program that reads a string of arithmetic expression from the keyboard and evaluates the arithmetic operation in the string. Some example runs are given below. program should accept only * any real or integer numbers * four basic arithmetic operators, +, -, *, / * paranthesis ( , …

Member Avatar for arkoenig
0
2K
Member Avatar for mcenley

Hi friends, I am trying to write a program for drawing a Koch curve in Python. The Pseduocode is given as follows and the hint is to use recursion: [I] To draw and Koch curve with length 'x' all you have to do is: 1. Draw Koch curve with length …

Member Avatar for vegaseat
0
3K
Member Avatar for R0bb0b

I have a photo management system that I have build locally which uses mysql to store the images. the problem is that I exceed the max_allowed_packet value when my images are too large. I know how to set the max_allowed_packet value through the CLI with: [CODE=sql]SET GLOBAL max_allowed_packet=16*1024*1024*1024;[/CODE] The problem …

Member Avatar for R0bb0b
0
166
Member Avatar for bleedi

Hey, I'm trying to compile a simple producer-consumer program with Qt, using QThreads. I get this error message when trying to compile: [CODE] In file included from /usr/include/qt4/QtCore/QThread:1, from producer.h:4, from mainwindow.cpp:3: /usr/include/qt4/QtCore/qobject.h: In copy constructor ‘QThread::QThread(const QThread&)’: /usr/include/qt4/QtCore/qobject.h:309: error: ‘QObject::QObject(const QObject&)’ is private /usr/include/qt4/QtCore/qthread.h:60: error: within this context In …

Member Avatar for bleedi
0
236
Member Avatar for crazycat503

Hi, I have this database based on this logic: There are projects in a company. In each project, different employees different roles. One employee could have different roles in a single project. Also, can work in different projects at the same time. Some projects could be added but role of …

0
80
Member Avatar for krip_101

[CODE]import java.util.*; import java.util.Random; import java.lang.*; import java.util.Scanner; public class testing1 { public static void main(String[] args) { String pass = new String("ENTER THE HAMLET HAM TO BE OR NOT TO BE THAT IS THE QUESTION WHETHER TIS NOBLER IN THE MIND TO SUFFER THE SLINGS AND ARROWS OF OUTRAGEOUS …

Member Avatar for krip_101
0
252
Member Avatar for dilip_singh3
Member Avatar for tawes01

I'm making a dialog based text editor, using dev-c++. how can I insert text at the current cursor position? as in get the location of the cursor (not the mouse) and insert text at that point in the edittext control

Member Avatar for tawes01
0
224
Member Avatar for ritika_khanna

i am doing onine railway reservation project .i have taken a ticket booking form where user can enter passenger detail .i have taken 6 textboxes for name,dropdownlist for age,berth,sex,class. i have written following code for ticket booking but this code is not working when after entering details this code does …

Member Avatar for Ezzaral
0
197
Member Avatar for dip7

Hi. I want to read a file and scan the file to see if the file contains 0x000001 (24 bits, 23 zero and 1 one bit). if file contains 0x000001, return a "yes", else return a "no". I tried writing the program but cannot work. I am stuck with this …

Member Avatar for dip7
0
117
Member Avatar for freakyboard

My code compiles and runs but does not do what I want. It is NOT allowed to change main(). I'm trying to build Base(almost like how i typed), Derived classes and type their member functions. [CODE]//--------------------------------------------------------------------------- #include <vcl.h> #include<iostream> #include<fstream> #include<stdlib.h> #include<conio.h> using namespace std; #include <vcl.h> #pragma hdrstop //--------------------------------------------------------------------------- …

Member Avatar for freakyboard
0
104
Member Avatar for localp

I need to identify, for example, when we hit a text box in a web page, we get a "| " key sign right (Which would blink, until we type) If you don't get what i am saying, go to google and click on the search text box, u would …

Member Avatar for jonsca
0
169
Member Avatar for Mike Bishop

Morning, Please a clever person help me, i am using VS2010, I have a form with a button with the following code. [CODE]Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click Dim cryRpt As New ReportDocument Dim crtableLogoninfos As …

Member Avatar for Mike Bishop
0
195
Member Avatar for piotr_kast

I have general problem with bindingSource control In VS 2005 C# professional. In project I created new Form and: 1. added a BindingSource component named bindingSource1 and DataGridView control named dataGridView1. 2. binding bindingSource1 to data (DataSource), and the DataGridView controls to bindingSource1. 3. in bindingSource1 set properties DataMember to …

Member Avatar for piotr_kast
0
215
Member Avatar for JAVA4ME

Hi, I'd like to know how to open for example a .doc file with java. I want word to open the file when I start my program. Any help?

Member Avatar for JAVA4ME
0
106
Member Avatar for Joey_Brown

Hello I was wondering whether is it possible to create a .txt file or check if a .txt file exists inside the folder earlier defined as a path. Basically I have a path : [CODE]#define some_little_file "/User/Joey/Desktop/" [/CODE] and I would like to create and manipulate a txt file there. …

Member Avatar for Joey_Brown
0
92
Member Avatar for vjcagay

What is the significance of using packages in java? How does this help in programming? Pls reply asap...

Member Avatar for ~s.o.s~
0
102
Member Avatar for mini programmer

Hi to all; I have chat's code with JAVA language, and it contains 14 files. I try to do compile to them in (command line prompt). by : 1. javac (NameOfFile).java 2. rmic (NameOfFile) 3. javac (NameOfFile2) And only 4 file can I compile .ChatClient.java , RMIChatServer.java , RMIChatClient.java and …

Member Avatar for mini programmer
0
160
Member Avatar for ithinkimdumb

is there any function in PHP that can access my MsSQL Server...??? Note : All my Script was in Store Procedure

Member Avatar for RUBein_Fair
0
125
Member Avatar for stanley87

i have to insert a lot of data where it might be also use as foreign key at different table.is that possible to add 1 time together the value to all table?can give any example?thx in advance!:)

Member Avatar for sahromo
0
165
Member Avatar for lielee

Hello. My project is like this. When I select from "TypeComboBox" and "BeanComboBox", the "PriceTextBox" will display the appropriate amount of the "Private PriceDecimal". But when I added the "Private SnackPrice", it will display only the 1st array, (0, 0) for both array. I try using "Select Case" but doesn't …

Member Avatar for lielee
0
127
Member Avatar for mattloto

Hi, so I finally got around to looking into OOP in c++ and I have a question about classes. So I made this simple class: [CODE]#include <iostream> using namespace std; class Shape { int xPos, yPos; public: Shape(int x, int y) { xPos=x; yPos=y; } } ; int main() { …

Member Avatar for mrnutty
0
126
Member Avatar for EricIskhakov

Hi. is it possible to decrement a value inside a table every seconed or day or whatever? if it's in the wrong section i'm sorry.

Member Avatar for EricIskhakov
0
162
Member Avatar for radc

I am new to wx.Python and I am stack. Is it possible to put wx.Check into wx.StaticBox?? I have found some examples with Radiobuttons inside wx.StaticBox. In short window displays an wx.ListCtrl box on the left, and some check boxes and wx.StaticText arranges into wx.StaticBox on the right. But the …

Member Avatar for richieking
0
658
Member Avatar for Hey90

I have to create a database with the data stored in a .txt file. Each record is for a company with the following fields: Name, Place, East(km), North(km). Each record from the file needs to be read into a struct array. I have managed to read the records into a …

Member Avatar for Adak
0
803
Member Avatar for Allasso

Hello, Is there a reference anywhere that I can find out the number of cycles each instruction takes for ia-32 processors? I do not find this information in the docs, neither has much googling come up with anything. Thanks, Allasso

Member Avatar for Tight_Coder_Ex
0
85
Member Avatar for yUNeeC

Hey guys. First of all, I've only been a CSCI major for a semester (had one course in Java, loved it, and switched from my almost completed math major). With this in mind, I hope you can understand that I'm pretty new to the scene. That said, during the semester …

Member Avatar for Ancient Dragon
0
133
Member Avatar for kbomo

I want to map a field, city, from a MySQL database into Google Maps. I found a nice script to do it, but haven't been able to get it to work. If I hard code an array into locations (var locations = ['Seattle', 'New York']), it works fine. Passing this …

Member Avatar for Airshow
0
7K
Member Avatar for imti321

EVERYTHING IS OK DONT KNOW WHY IT DOSENT WORK I THINK THERE IS PROBLEM IN 'PATH' IT SHOWS ERROR ON LINE 27 NEAR </td> [CODE]<html> <table width='70%' align='center'> <tr> <td> <img src='inc/b.png'> </td> </tr> </table> <table width='20%' align='center'> <tr> <td> <a href='index.php'>Home</a><br> <a href='index.php?page=tutorials'>Tutorials</a> </td> <td width='80%'> <?php $page=$_GET['page']; if …

Member Avatar for hielo
0
115
Member Avatar for localp

I am using VS2008, OS win Vista. I need to create a C++ windows form program to add a .swf flash animation to the form. How is this done. Any sample code, or a good tutorial is appreciated.

Member Avatar for localp
0
81
Member Avatar for riotburn

So I had interview today and interviewer asked me how I would go about, from a list of words, delete the anagrams. And by that he meant if the words 'eat' and 'ate' are on the list one of them would be deleted. As I was thinking out loud I …

Member Avatar for iamthwee
0
735
Member Avatar for TrustyTony

With this code you can explore the functions of math module interactively seeing the docstrings automatically for each function. EDIT: The docstring was unfortunately from old code, this version copes with values like 'e' and multiple parameter functions.

Member Avatar for TrustyTony
0
220
Member Avatar for Mike Bishop

Morning all, I have the following code that gets a jpg image from sql which works fine. What i would now like to do is save this image as a file on my pc in a temp folder that i can use in a report. i would like to change …

Member Avatar for Mike Bishop
0
205
Member Avatar for sedalnas

Hi, i could make my website downloading a pdf files but after downloading i get this error [B][I]" There was an error opening this document. the file is damaged and could not be repaired "[/I][/B] i think the problem is in the PDF version because this problem just occur when …

Member Avatar for chrishea
0
123
Member Avatar for matthewl

I am attempting to read the access log for squid and store the last position read so it does not have to reread the file. I am running into many problems with my current code for it. I was wondering if you can help me write a more efficient code …

Member Avatar for richieking
0
165
Member Avatar for LogicallyInsane

I always had stumbled on this topic, but, well, yeah. I want to learn how to combine if statements. I made a thread like this long ago, but I don't want to necropost. So, As an example, what exactly would I do if I had something like this? [code=python]def add_n(): …

Member Avatar for LogicallyInsane
0
154
Member Avatar for ultrasurf123

In C++, I know that if I need to read something from a file, I can do this: [CODE=c] int x; ifstream ifs("data.txt"); ifs >> x; [/CODE] However, is there a function that simply returns the value of whatever I'm feeding in? For example, if I had this: [CODE=c] bool …

Member Avatar for ultrasurf123
0
113
Member Avatar for MARKAND911

How can i get DataSource property & Databind method of HTML Table. Do i have to make a new control for it? if yes then how can i do this.

Member Avatar for CrappyCoder
0
93
Member Avatar for hunkadarsh

i guess i need real helpp for my mini project at college,please help me executing this problem. Also thr is an .cpp attachment file used in Turbo C , Please help [code] #include<stdio.h> #include<conio.h> #include<graphics.h> #include<bios.h> #include<stdlib.h> int gd=DETECT,gm,ctrl=-30,x_location,y_location,rear=-1,maxx,maxy; int in_key,ctr[1500],nc,xr=0,yr=0,sp=15,err=0,scr=0,i=0,front=0; int size,x=0,y=0,dx_location,xctr[1500],yctr[1500]; char pattern={1}; main() { /*function to initialise …

Member Avatar for indraginanjar
0
979
Member Avatar for manzoor

How to change numerical values from scientific notation to normal system (:P) in C++ if i used a float or double variable Cuz i want decimals tthats why i used float but now its giving me the answer of my program in scientific notation ? or is there any way …

Member Avatar for floatingDivs
0
1K
Member Avatar for marshal_ramdev

hi , I am working on testing some scripts .. But there are lots of errors i am facing .. the common error is Parse / syntax Parse error: syntax error, unexpected '(' .. This is the the line which is currently giving errors while executing . [CODE]md5("som3_admin",$username)()setcookie$password$_POST$username$_POST;[/CODE] plz help …

Member Avatar for marshal_ramdev
0
356
Member Avatar for blur0224

[COLOR="Red"]Exception in thread "main" java.lang.Error: Unresolved compilation problem: The function method() is undefined for the type Madness[/COLOR] [B]There is no method to my madness...[/B] :) Merry Christmas all!

Member Avatar for JamesCherrill
0
97
Member Avatar for johnray31
Member Avatar for AmerJamil

Question : Please Copy array A into 1st portion of array F .assume float a[11], f[34]; im using compiler Borland 5.02, please tell me hows so far my code is correct? [CODE] #include<iostream> #include<conio> main() { float a[11],f[34]; int i; for (i=0;i<11;i++) { cin>>a[i]; } for (i=0;i<11;i++) { f[i]=a[i]; } …

Member Avatar for abdelhakeem
0
155
Member Avatar for Tango2010

Hi All, I wonder if anyone could help? I have a large Java program which needs at various points to run UNIX commands. The only wayI have found to do this is below (although I would have liked the program to output all terminal commands into the same window (shell) …

Member Avatar for ~s.o.s~
0
505
Member Avatar for varsha solshe

i have VB2008 and i m creating website using asp.net but i have to explicitly add images to the project where as on other machines they are automatically added... what settings do i need to change?? :S:|

Member Avatar for varsha solshe
0
130

The End.