64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for VernonDozier

I have a project with a bunch of different options that you can turn on and off sprinkled throughout many files. You comment and uncomment the options you want, much like the php.ini file in PHP file, though this is actual code. It looks something like this: [code] //#ifndef _OPTION_1 …

Member Avatar for VernonDozier
0
174
Member Avatar for WolfShield

Hello everyone, I have just recently started learning Java (previous Python programmer) and I am making a text based calculator program. I have had no problems with programming it so far, and I just need help with one part of perfecting it. [code=java] package calculator; import java.util.Scanner; public class Main …

Member Avatar for WolfShield
0
280
Member Avatar for mag12203

I am just plain stuck. I can not figue out why when I type a word to test a palindrome sometimes it comes back as true and other times as false. Thank you for any help. import java.util.*; public class ec1 { static Scanner kb = new Scanner(System.in); public static …

Member Avatar for mag12203
0
175
Member Avatar for ErlendHL

Hi! I have been making a chat program. In PHP I control user inputs with htmlentities so they can't write html. But this also ruins the precious æøåöüÿëäñ etc.. characters! Would it be safe to only remove the < and >s? Or is there another way to avoid this?

Member Avatar for ErlendHL
0
102
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 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 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 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 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 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 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 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 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 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 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 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 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
Member Avatar for Shankye

Hi friends .. I have a mailing_list file .. I wanted to check whether the visitor entered Email already exists in file? Is there any standard function for it ?

Member Avatar for Shankye
0
164
Member Avatar for twohot

I'm looking for ways to create variables in python3 as needed. E.g book1 = book(name1) # book is a class book2 = book(name2) book3 = book(name3) book4 = book(name4) book5 = book(name5) : : : V book-n = book(name-n) I have the names of the book in a list but …

Member Avatar for twohot
0
261
Member Avatar for solfinker

I'm trying to calculate the standard deviation from data in a grid, but sth goes wrong. I have tried with variable declarations inside and outside the function and the result stays the same. It seems to me that the loop doesn't work properly. Can you take a look at the …

Member Avatar for solfinker
0
173
Member Avatar for Naveed_786

Dear all, Please help me i want to check record already exists in database please modify this code please help [CODE]Private Sub txtempno_KeyPress(KeyAscii As Integer) On Error Resume Next If KeyAscii = 13 Then btncalculate.SetFocus rs2.MoveFirst While rs2.EOF = False If Val(txtempno.Text) = rs2.Fields!EmpNo Then txtsub.Text = rs2.Fields!subjects txtempname.Text = …

Member Avatar for AndreRet
0
205
Member Avatar for Unhnd_Exception

This should be easy. Haven't writen a C++ app in over 10 years. Trying to delve back into it. Will someone be kindley enough to show me a sample Function and Procdure Name the function AnyFunction that returns and integer. Name the procedure AnyProcdure Heres my .h and .cpp [code] …

Member Avatar for Unhnd_Exception
0
182
Member Avatar for blur0224

So I'm building a web crawler for a pet project I've been working on. I'm using tutorial code for the crawler then building on it. I've done extensive troubleshooting and haven't had any luck. The problem: [LIST] [*]Roughly half the websites return content, but all of them return headers. [*]Some …

Member Avatar for blur0224
1
312
Member Avatar for mrcpp

Hi, I tried doing Project Euler #27 today, which asks the following: [QUOTE] Euler published the remarkable quadratic formula: n² + n + 41 It turns out that the formula will produce 40 primes for the consecutive values n = 0 to 39. However, when n = 40, 40^(2) + …

Member Avatar for mrcpp
0
310
Member Avatar for allen2663

I am writing a program to store data and want to make the main page uneditable I have an edit button that will allow editing from another form but I don't want to change stuff by accident. I have disabeled all of the boxes but don't like the way it …

Member Avatar for allen2663
0
76
Member Avatar for Kanoisa

Hi guys, I have been away from programming for a while and i started back today now that i have some time again. However i have run into a bit of a brick wall. im trying to impliment a queue with a simplified interface for holding messages. What I have …

Member Avatar for Kanoisa
0
167
Member Avatar for dreamer_lek91

Is there any ways to allow the text box in a report to show the lastest date from the database? For example: 24/2/2007 15/4/2009 21/6/2009 14/7/2010 13/10/2010 i want the text box to have 13/10/2010, which is the lastest date out of the 5 date(which I have more in my …

Member Avatar for boblarson
0
140
Member Avatar for Netcode

Hi everyone, pls i need serious help. I got a free template which am editing in asp. the template just has header, footer, sidebar and others but i want to add multiple textboxes for data entry and also a submit button. pls how do i go about it because the …

Member Avatar for Netcode
-1
68
Member Avatar for dreamer_lek91

I have these few dates in my database and I would like to have the latest date to be shown at my report footer. 03 dec 2001 15 may 2010 08 mar 2007 14 jan 2004 29 sep 2009 can any kind soul plz help me?=) thx alot in advance=)

Member Avatar for boblarson
0
360
Member Avatar for dreamer_lek91

[B]how can i disable the save function. The database that I am making now is being shared by many users and i do not want them to mess up with my design and programming stuff that i had done. I have tried making the file into ACCDE format but it …

Member Avatar for boblarson
0
187
Member Avatar for frankvw

Hi, Firstly, I am quite new to python so hopefully this could be quick answer for any kind sole who give help. I am trying to connect the data files created from one piece of equipment to another process that require similar, but not the same, data .txt files. The …

Member Avatar for frankvw
0
103
Member Avatar for jackmaverick1

I am trying to make a card class that has a bunch of functions to make it possible for the AI to judge what cards can be played. The card game I am working on at the moment is Rummy by order of my brother. I made a 3 pointer …

Member Avatar for jonsca
0
284
Member Avatar for dynamyt3

Hello.I'm a begginer in C++. I'm trying to make an algorithm that will shuffle randomly the elements of a matrix[4][3],but i don't know how to start... Can someone help me with the algorithm ? I think is something like this but i'm not sure : [code]bool test=false; int x; x=rand()%4; …

Member Avatar for dynamyt3
0
1K
Member Avatar for sunwebsite

I have data value of a table column. I want to know in which database and in which table and in which column the data value appeared in mysql.

Member Avatar for smantscheff
0
1K
Member Avatar for emongs

can some one help me w/ codes in making picture editor. that allows the user to use the following: Picture ToolBar Color Picture Color BackGround Effects Insert Text Alignment of Picture Resize thanks for the help

Member Avatar for AndreRet
0
142
Member Avatar for 54uydf

I'm using VS 2010 and I don't have CrystalReportViewer in my toolbox. under Reports I only have "pointer" and "ReportViewer". after I clicked on "show all" I see the CrystalReportViewer and few other new things but it's not clickable (gray) I checked on the web and I found this answer …

Member Avatar for 54uydf
0
176
Member Avatar for libathos

I want to create a class which will be responsible for reading an input file and then filling up my other classes...But i do not know how to begin...any ideas?

Member Avatar for libathos
0
109
Member Avatar for Tellalca

Hey; I want to be able to use VS2010 and still pass command line arguments to it somehow. When I am building an application that needs to use argv[], I need to compile it and run it from the command line. That is becoming boring sometimes especially when I want …

Member Avatar for sundip
0
140
Member Avatar for loginas
Member Avatar for seanbp

I read about a coding style where not one variable is changed. Everything must stay constant. I don't remember what it's called, but it's the bomb. I never realized this little project would be [I]so easy[/I]. Here is a 98 line calculator that supports [B]()^*/+-[/B]. If you find a bug, …

Member Avatar for seanbp
1
1K
Member Avatar for MasterGberry

Hello, some of you have have seen me around the site lately picking up some C++ knowledge. I have been reading a book (brief history). I am trying to get involved in dev work for a community I help out. So i took up C++. My assignment has been to …

Member Avatar for MasterGberry
0
260
Member Avatar for jackmaverick1

I have been trying to invoke the default destructor for a class of mine (see below). when I try I get this error: "no match for 'operator~' in '~Card(((const Card&)((const Card*)(& hearts[1]))))'" [CODE] class Card { public: bool inPlayer; bool inDeck; bool inOpp;//in opponets hand. int type; //!< Member variable …

Member Avatar for jackmaverick1
0
1K
Member Avatar for soneal777

I am using Visual Studio 2010 and C#. I am having problems making my three dice generate different random numbers. All of the dice roll at the same time. I have pictures of dice that I want to pull up for each of 3 dice according to what random number …

Member Avatar for soneal777
0
430
Member Avatar for LogicallyInsane

Um, I'm actually KrazyKitsune, I'll use that account after I manage to recover my password. So I'm having trouble with RS NOR latches. I did this: [code=python]s = int(raw_input("set Set value: ")) r = int(raw_input("set Reset value: ")) qi = not (s or q) q = not (r or qi) …

Member Avatar for LogicallyInsane
0
93
Member Avatar for evertron

I get an error with this code and I dont know why I thought that sum was part of the array calss and it does come up when I put the "." after the array. This is the error I get. Traceback (most recent call last): File "F:/Python_Stuff/CSC143-901/score-array.py", line 22, …

Member Avatar for TrustyTony
0
114

The End.