199,114 Archived Topics
Remove Filter ![]() | |
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" … | |
[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 … | |
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# … | |
i need to print stars on console like this * * * * * * * * * $ $ $ $ $ $ * * $ $ $ $ $ $ * * $ $ $ $ $ $ * * $ $ $ $ $ $ * * … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 : … | |
Hi , Can any one tell me differences between Statement ,Prepared statement,CallableStatement and when to use which (Clear Idea) | |
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 … | |
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. … | |
hi, i have a graph and i wanna zoom somw particular area in it. Is there any zoom function available... thanx | |
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! | |
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, … | |
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 … | |
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 … | |
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 … | |
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 | |
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. … | |
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 … | |
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 … | |
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 … | |
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 = … | |
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 … | |
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(); … | |
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(" "). I tried Server.HtmlDecode("<b>") ... Server.HtmlDecode("</b>") to … | |
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 … | |
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..... | |
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 … | |
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 … | |
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. | |
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 … | |
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 … | |
[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 … | |
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 … | |
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++) … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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 = … | |
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 … | |
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 … | |
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 … | |
![]() | 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 … ![]() |
The End.