199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kleigh

Hey, guys! Newbie here. =) I'm trying to return an image that contains n^2 full size copies of my original image tiled, that makes an n-by-n square. I've been working on this for the past couple days and I am stuck. It's giving me an "image index out of range" …

Member Avatar for kleigh
0
3K
Member Avatar for scrace89

[CODE]area = ((length ** 2) * numSides) / (4 * (math.tan(FULL_ROTATION / (2 * numSides)\ )))[/CODE] this is my thought but I can't figure it out, I always get the wrong value. I need to get my answer in degrees. but even when i use [CODE]return math.degrees(area)[/CODE] at the end …

Member Avatar for vegaseat
0
121
Member Avatar for EvolutionFallen

Hello, My professor has asked me to write a C# GUI for a C++ program. I did not write the C++ program (hell, I'm not even completely sure what it does -- something to do with pattern recognition). I wanted to know how one would go about writing a C# …

Member Avatar for DdoubleD
0
864
Member Avatar for saadismail85

i need to print stars on console like this * * * * * * * * * $ $ $ $ $ $ * * $ $ $ $ $ $ * * $ $ $ $ $ $ * * $ $ $ $ $ $ * * …

Member Avatar for javaAddict
0
98
Member Avatar for muppetjones

I'm pretty new at this, and I'm trying to figure out how Perl's classes work with signals. Specifically, it doesn't seem that a class's DESTROY function is called when you Ctrl-C the program. I tried using [INLINECODE]use sigtrap qw(handler DESTROY INT QUIT);[/INLINECODE], but I'm not even sure this is the …

Member Avatar for Sanjeeb25
0
173
Member Avatar for avirag

Hi all, How can i convert the excel worksheet into MS Access database, such that all the fields & data of excel becomes the fields of database, and then i could use that database for adding new item, modify and delete. I want to do this so as to avoid …

Member Avatar for DdoubleD
0
289
Member Avatar for sanchitgarg

I want to check the input of the user. Only positive nos are allowed. I want to pass the input of the user to a function which checks that if it is i positive no. then it allows the user to continue further otherwise it gives an error and asks …

Member Avatar for sanchitgarg
0
86
Member Avatar for Lalita_shah

I am trying to insert unicode characters from excel file into phpmyadmin database through coding,but database is not accepting unicode characters and even date type,please help me if anyone having idea abt this,even i tried by converting .xls to csv format but .csv file does not support unicode characters and …

Member Avatar for network18
0
892
Member Avatar for Clockowl

Hey guys, I have this code snippet: [code=cpp] template <typename ElementType, typename CompareClass> struct Delegate { virtual bool geef(const ElementType &element){ pair <set<ElementType, CompareClass>::iterator, bool> ret; //this is line 196 ret = elements.insert(element); //197 return (ret.second); //198 } virtual void output() = 0; set<ElementType, CompareClass> elements; }; struct ArtiestenPrinter : …

Member Avatar for Clockowl
0
222
Member Avatar for Rajashree24

Hi , Can any one tell me differences between Statement ,Prepared statement,CallableStatement and when to use which (Clear Idea)

Member Avatar for javaAddict
0
79
Member Avatar for garcon1986

Hello, I want to use Graphviz to produce dynamic organizational chart with php array or json. Here is my idea: Use php array or json get the data from mysql database, then save the data to dot file, and then produce the dynamic org chart using pear Image_graphviz and implement …

Member Avatar for garcon1986
0
147
Member Avatar for raphipps

I am new to aspx and sql. I have written some code with vb.net 2005 (visual studio) to do some calculations and poplate some textboxes on my web form. I dont understand how to pass those values to a paramerter then use that value to write to my sql database. …

Member Avatar for kvprajapati
0
229
Member Avatar for sidd.

hi, i have a graph and i wanna zoom somw particular area in it. Is there any zoom function available... thanx

Member Avatar for Geekitygeek
0
387
Member Avatar for Bluesilver

Hi, I have an assignment requiring me to use the printStringArray method, but I can't find any examples on how to do so in my textbook or on the web. Can anyone provide an example please? I'd be very greatful!

Member Avatar for jasimp
0
102
Member Avatar for Farfie

Hello. I need to write a static recursive method that returns the frequency of occurrence a particular digit d in an integer n. For example, if passed (1342457,4) it should return 2, whereas when passed (1342457,6) it should return 0. I won't put my code in as it is arbitrary, …

Member Avatar for stevelg
0
161
Member Avatar for CuteCat

I can't figure out what's wrong - I was remaking the code from an older and messier version, but now I've hit a roadblock because what I say in the actionPerformed section just doesn't happen. I suspect that it's because of the Timer, which a friend adviced me to link …

Member Avatar for javaAddict
0
202
Member Avatar for praveen_dusari

hi all, i have downloaded my site from ftp to make changes there is a virus in that server my sir told me to clear that and upload. In the source code i found a line which i thought is a virus containing a trojen program i deleted that line …

Member Avatar for network18
0
100
Member Avatar for venkates.99

Hi, Here my requirement is like,when I click on the row of the DataGridView, in required cloumns turn to Text boxes.This is known thing.But for different row should have different control in editing. Please check the attachment . for one row item template is Textbox, for some other row it …

Member Avatar for venkates.99
0
105
Member Avatar for veledrom

Hi, I read this ob_start() but want a bit cleaner explanation. why we use it, should we use it, what happens if we don't? I have never used it and won't use it until I understand it is best practise. Thanks in advance

Member Avatar for veledrom
0
248
Member Avatar for MxDev

Hi Guys, How are you doing guys?? Guys I was wondering how to achieve a code that highlighting multi strings at once like [ICODE]Firefox[/ICODE]??? Could someone give me an idea, because I couldn't achieve this in C# like [ICODE]Firefox[/ICODE] exactly without changing the background of the string. Any help appreciated. …

Member Avatar for MxDev
0
125
Member Avatar for xuexue

hi there, i am making a website. my problem is that, i have multiple users who should access the same page, now what i want is that, my login code will work whenever users will access it simultaneously. the problem is that, the code just checks the first logged in …

Member Avatar for xuexue
0
105
Member Avatar for nick30266

the program is ok(i think)but the data is fixed.i want it able to input your own data.i tried cin>>c1.real>>c1.image; cin>>c2.real>>c2.image; but it cannot use them because they are private... [code=cplusplus] #include<iostream> using namespace std; class complex { public: complex(){real=0;image=0;} complex(double r,double i){real=r;image=i;} complex complex_add(complex &c2); complex complex_sub(complex &c2); complex complex_mult(complex …

Member Avatar for mrnutty
0
347
Member Avatar for vinochick

I have to write a program that allows a user to pick five numbers from one to 55. The computer will then generate 5 random numbers and determine how many of the users choices match the generated numbers. I have to create an algorithm for this program. The program will …

Member Avatar for pecet
0
2K
Member Avatar for brandon84

I cant get "\nNet Pay: " + netPay(dGrossPay, dRetirement)); to display anything other than 0.0. I know I need to assign a value to dGrossPay but im not sure how to. [CODE] public int menu() { Scanner keyboard = new Scanner(System.in); String strUserName; double dHours; double dRate; double dGross = …

Member Avatar for brandon84
0
126
Member Avatar for ruwanaru

This is the error [CODE]Warning: Cannot modify header information - headers already sent by (output started at /home/rejocoma/public_html/login-registor/do_login.php:9) in /home/rejocoma/public_html/login-registor/do_login.php on line 40[/CODE] and this comming only on my hosting not in local machine ita unix hosting solution can any one give me a help on this im a new …

Member Avatar for venkat0904
0
116
Member Avatar for vuyiswamb

Good Day All i have the Following Function [CODE] private static void OMEGA_calcActvEqv() { SqlConnection conn1 = CommonFunctions.getSQLConnectionForThread(THREAD_DATA[0].ToString()); string SQL = "SELECT MAX(D.OFFS + 1) * MAX(R.OFFS + 1) FROM TBL_ROWS R, TBL_CLMN D; SELECT MAX(OFFS + 1) FROM TBL_ROWS;"; SqlCommand cmd = new SqlCommand(SQL, conn1); SqlDataReader rdr = cmd.ExecuteReader(); …

Member Avatar for vuyiswamb
0
2K
Member Avatar for Ana D.

Hi, I'm using a dataTable to bind my gridView and during the data binding I need to make some cells bold. The structure I'm looking for is this: [B]Person[/B] [INDENT]contact[/INDENT] [B]Person 2[/B] [INDENT]contact[/INDENT] To include the spaces when binding the table I'm using Server.HtmlDecode("&nbsp;&nbsp;&nbsp;"). I tried Server.HtmlDecode("<b>") ... Server.HtmlDecode("</b>") to …

Member Avatar for Sals
0
2K
Member Avatar for jinjishu

I am currently stuck on part a of this problem. I am having a problem with my stub, I am also running this on visual C++ 2008 express. My stub is a program i had to create to find the maximum value from the 10x20 array. For some reason that's …

Member Avatar for jinjishu
0
366
Member Avatar for deepas

i'm looking for the demo projects for developing web app using c#.net 2005 as i'm new with web developments... i've begin connecting with database(sql 2005) now i need for validation & other things for my projects.. anyone like to share their simple project(demo) plz.....

Member Avatar for Sals
0
196
Member Avatar for misslilbit02

ok this is my scenario. I've never coded in asp.net. I can manipulate it a little bit because I have some coding knowledge but I don't know what I am doing so I need help figuring out how to do this. This is what I'm trying to do...I have this …

Member Avatar for Sals
0
210
Member Avatar for samlabs821

Hi !! i faced problem with javascript. When I call function change() it applies only second element that is link2. I wanted when i click the link, the link name must appear to textfield.can anyone help?? here is code: [code=html] <html> <body> <form> <a id="static" href="staticContentAdmin.ioml">link1</a></br> <a id="static" href="staticContentAdmin.ioml">link2</a></br> <input …

Member Avatar for samlabs821
0
171
Member Avatar for Daniel_Crouse

Hi I'am a beginner in C#. I would like to know how to connect to a database using C#. I'am using Visual Studio 2008.

Member Avatar for Daniel_Crouse
0
128
Member Avatar for motieno

Hi' I learnt that in order for the error messages to a form to be displayed on the same window with the form one method is to post it to itself ie the action attribute... Initially my action attribute for "contacts.php" was pointing to "mailer.php". The problem was that my …

Member Avatar for network18
0
655
Member Avatar for Ying_Yang

I'm thinking of something to create to improve computer's classic software, maybe a higher level programming language than the actual, or a smarter OS, or maybe make expert systems improve with AI, etc ... On the other hand, Computers nowadays can be very helpful, but also can be used to …

Member Avatar for Ying_Yang
0
222
Member Avatar for denizen08

[CODE]#include <cmath> long double NR(long double sample) { return (abs(f(sample)))<=1e-10 ? sample: NR( (sample - f(sample)/fp(sample))); } long double f(long double sample) { return 2.5*exp(-sample)-3*sin(sample); } long double fp(long double sample) { return -2.5*exp(-sample)-3*cos(sample); }[/CODE] I'm trying to write code for a Newton-Raphson algorithm. I have it in recursive form …

Member Avatar for denizen08
0
184
Member Avatar for babylonlion

Hi everyone, I'm trying to write a code that converts the number that a user inputs to either Celsius or Fahrenheit simply by pressing a button. So far I was able to compile and run the program displaying the panel, buttons, and the text field but I'm not sure how …

Member Avatar for babylonlion
0
771
Member Avatar for Ponomous

Hey, so im trying to make a memory game using 2d arrays. This is my code to randomly generate the rows and columns but its not giving me pairs, could someone tell me why, i really dont know. [CODE] for (int r=0; r<4; r++) { for (int c=0; c<4; c++) …

Member Avatar for vb6exp32
0
239
Member Avatar for maverick405

This program passes two parallel arrays ta a function that prints the grade reports i.e Jay Rino -- Grade: A, I had coded this program as per my knowledge but it does not executed well please help me solve this. I know there is no user input needed but I …

Member Avatar for maverick405
0
133
Member Avatar for marian99us

Hello folks, I am a young webdeveloper from Germany. There is this technology used in this great website that doesn't stop amusing me, I was just hoping someone could cypher the technology behind it and perhaps reveal it is done with the help of some freely available Library the link …

Member Avatar for Airshow
0
252
Member Avatar for guccitan88

Hi, new learner to C++. I have to write 4 functions to compute and return the diameter, circumference, etc. of a circle. I think I might be on the right track but I'm probably making this harder than it has to be. I commented most code out because I'd like …

Member Avatar for guccitan88
0
104
Member Avatar for COKEDUDE

Why is this an illegal start on an expression? public Account consolidate(Account accnt1, Account accnt2) In my if statement It says name has private access in account. What does that mean and how do i fix it? if((accnt1.name).equals(accnt2.name)) [CODE]//*********************************************************** // TestConsolidation // A simple program to test the numAccts method …

Member Avatar for Ezzaral
0
154
Member Avatar for aliiya

hi! I am trying to insert data from textboxes in sql server 2005 database using dataset(table adapters) in c# windows application herez the simplest coding that i know but its not working. I have made two tables in my database i.e. product and country table. In country table adapter i …

Member Avatar for Marcwolf
0
2K
Member Avatar for python user

[CODE=Python] def Myfunc(): print "Stuff" #Title: "CrashLanding" #By: Python User #November 16, 2009 #Features improved coding style, or at least I think so #note:code based on J.G.S'S code-I really learned alot from his code Some credit goes to him #note:I dont think that is his actual username so keep that …

Member Avatar for python user
0
217
Member Avatar for Dark_Omen

Hello everyone, I just started to learn how to program in Ruby. It is a pretty cool language. You can get ruby from [url="http://www.ruby-lang.org"]www.ruby-lang.org[/url]. You can see my code snippets on making widgets using fxRuby (fxRuby is downloaded seperatly from ruby, unless you get the one click installer, which installs …

Member Avatar for pkc
0
427
Member Avatar for msvinaykumar

Hi, I'm using following packages to read and write the excel, But the problem I'm not able to copy the formula from one sheet to other sheet packages are use Spreadsheet::ParseExcel; use Spreadsheet::WriteExcel; Is there any other packages so that I can copy excel fromula to another excel ( I …

Member Avatar for mitchems
0
139
Member Avatar for botaxsmaniz

Hi all i have question again, this is my code: [code] private void btAdd_Click(object sender, EventArgs e) { SqlDataAdapter adapter = new SqlDataAdapter(); DataSet ds = new DataSet(); DataView dv; string sql = null; string connetionString = "Data Source=GOD_LOVE_ME;Initial Catalog=ProjetDB;Integrated Security=True"; sql = "Select * from Material"; SqlConnection connection = …

Member Avatar for botaxsmaniz
0
125
Member Avatar for CasperG

Hi, hope you can help, i am quite new to this. I need to know who to write data from several text boxes on a form to a sql database. I have created the sql database on a localhost using myphp admin, i have created the connection in a module …

Member Avatar for CasperG
0
126
Member Avatar for dmmajorstudent

I'm trying to use javascript with NO Innerhtml. i am very new to javascript and i need a little help completing this form. the code i have so far to create a form page is just below this message. How do i create a code when focused the text fields …

Member Avatar for Airshow
0
150
Member Avatar for Vector_Joe

Hi, I've dabbled in some programming in the past, but nothing serious. I'm trying to create an array of objects in python 2.6 (VPython). What I want to do is create a 2d grid of sphere()'s. But I want to be able to manipulate each one individually after they are …

Member Avatar for bumsfeld
0
854
Member Avatar for feddie1984

Hi All, I have the following code: [CODE]$requester_email = $_POST['requester_email']; $requester_name = $_POST['requester_name']; $todays_date = $_POST['todays_date']; $Start_Date = $_POST['Start_Date']; $End_Date = $_POST['End_Date']; $Department = $_POST['Department']; $No_Engineers_Required = $_POST['No_Engineers_Required']; $Prefered_Engineers = $_POST['Prefered_Engineers']; $Customer_Name = $_POST['Customer_Name']; $Location = $_POST['Location']; $Type_Of_Job = $_POST['Type_Of_Job']; $Job_Ref_No = $_POST['Job_Ref_No']; $Additional_info = $_POST['Additional_info'];[/CODE] The help I need …

Member Avatar for feddie1984
0
154

The End.