199,114 Archived Topics
Remove Filter ![]() | |
Hi all, I'm still playing around with OOP and to be totally honest really enjoying it! I can't believe I haven't made the switch from procedural earlier... Something I would like to know is, how can I set default arguments for methods / functions? What i'm getting at is, if … | |
My friends I was working on the concept like a user can upload his image as a user avatar, and that should be shown in all his pages. I have two pages namely get.aspx and show.aspx get.aspx contains image file uploading and saving the records in database. show.aspx is to … | |
Quite commonly I see people using one of the Parse routines then catching the exception thrown if the parse fails. This is, in general, a bad practice as throwing an exception is slower than using the corresponding TryParse method. This short snippet shows the routines that I used to measure … | |
Having another brain fart on what I believe is a no brainer. I'm trying to read the contents of a DBF and write it to an ACCDB table; this is a daily event and the DBF has between 500-1200 records each day. I have successfully read the contents of a … | |
If you were to build a fairly complicated website, and you wanted to add features like instant messaging (one to one and multi-chat like a chat room, and possibly if the site becomes profitable enough, voice/video chatting) and you wanted to be able to store these chat sessions, would it … | |
i have two tables (they are fixed, not going to update any more) in my databae "phoneadd" phone_nos----name(primary id),home,office,college,friend. Examble: john 87954 45698 78965 12365 martin 45698 78962 45789 45789 trull 47896 14587 85632 14563 addresses----name(primary id),address Examble home first street,new town office second street,old town college thrid street,maxi world … | |
hi everyone! I have 2 applications, one coded in C++ and the other coded in java, i want to launch the one coded in c++ from the other one, honnestly i dont know how to do it at all i use eclipse and VS2010 any ideas about that??? thank YOU … | |
I just created an empty HTML5 project and could not run it through the new Chrome netbeans Connector feature. I have added the netbeans connector extension to my chrome browser, but I keep getting this warning "Could not access Url through external browser. Check browser configuration." I have the latest … | |
i have been doing like the code below, but why when i clicking the "delete" button, it is delete all records in the datagridview, but it does not updating to the database. And, how do i make only the selected row that has been selected by the user that gonna … | |
Hello, Someone told me that with sharepoint portal I can design database easily. Is that true? What is sharepoint portal actually? Is it possible to integrate sharepoint portal with other webbased application? I wonder if my understanding about sharepoint portal is correct? Thanks before. | |
Q: Write a program which will print all the pairs of prime numbers whose sum equals the number entered by the user. My program is able to find the prime numbers until an integer value, n, and outputs it correctly. Now how do I find the pairs of prime numbers … | |
Hello, I have been struggling with this and it is due today. I have searched and read and am unable to determine what I am doing wrong. Thank you in advance. [CODE]class Accounts { // private class members const int arrayLength = 5; private int [] accountNumbArray = new int[arrayLength]; … | |
I am using a simple ajax routine to notify a server of click thrus. This routine passes information about each link on a page when it is clicked to the server which logs information about the click thru. The code works fine unless the CTL key is pressed as someone … | |
I might be a bit tired, but why does the following not work? class Signal { public: Signal() { } protected: std::vector<double> data; }; class Something : public Signal { public: Something() { data.resize(100); } }; class Parser : public Signal { public: Parser() { std::cout << this->data.size(); } }; … ![]() | |
hi every one! i have a question, how to pass arguments from other functions to main. i want to write a program like nano well not exactly like nano editor. I have a function f_read(char* filename[]), and fopen() get filename[1] as file name and *filename[2] as "r" read mode and … | |
Hi all, I've literally JUST dived into OOP and it's a totally different world. I've written some pretty awful code just to grasp OOP basics. The following code is all in the same file and runes fine, there are no warnings, errors, notices and so forth yet it doesn't work … | |
Hey everyone. I'm trying to use the g2 library in CodeBlocks but I can't seem to get it properly installed. Can somebody please explain me what to do, step by step? Best regards | |
So I just found out what Rot13 is and what its suppose to do but I now I have to implement a code that will allow me to execute Rot13. Does anyone have any tips on where I should start? (besides the beginning -__-). Any help is appreciated! thank you! | |
Hi Guys! I'm building a site on html,javascript/jquery and css. i have links on the left side of the page (home, contact etc) which clicked displays appropriate and content on the right side. its (20:80) ratio. i have a javascript file that controls the display of the content: $(document).ready(function() { … | |
I basically have two classes: `Signal` and `Parser` they both have differences, however, they each share the data that `Signal` has. I want to incorperate Method Chaining into the class, so my classes (at the moment look like the following): class Signal { Signal() { } Signal& Parse() { return … | |
Hello all, I am trying to build a client to consume a webservice, and have run into some strange issues. Here is my code: $securityCode = "A7D5B7D8-73E2-44D2-A6F8-4ACFB91843BF"; // The security code has been changed to an invalid code to prevent unwanted "visitors". $ProphecyConnect = new SoapClient("http://test.prophecyhealth.com/ProphecyConnect/ProphecyConnectXML.cfc?wsdl"); try { $params = … | |
I've run into a problem with my HTACCESS file. If I comment out this line; RewriteRule . <URL> [L] I get an error a 403 error. If I don't comment it out, I'll get this error from firefox; *The page isn't redirecting properly* | |
Dears, how to make dynamic webpage with php for example: website.com/pagename website.com/gallery website.com/page4/page6 How to do in code how to call pages? | |
Okay, so I just realized I was doing half of what I wanted already..How do I pull just my interest gained on my savings account to print to console from main? Also is there a way to remove the part of my menu I have duplicated? Or a better way … | |
What is the difference/s of **while** looping and **do while** looping statements? | |
In the following piece of code i am trying to enter a 8 digit binary number then manipulate each digit seperatly. import java.util.Scanner; public class binCoverstion2{ private static Scanner kbd = new Scanner(System.in); public static void main (String[] args){ int bit0, bit1, bit2, bit3, bit4, bit5, bit6, bit7, decNumber; System.out.println("Enter … | |
want to update my database via email, for exm i have 3 fields in db, 1-Id, 2-Name, 3-Marks i wants to update this records by sending a email, how can i update it, | |
I am writing a program that a user inputs a 8 digit binary number and I need to convert it to a decimal number. I am trying to figure out a way for the user to enter the binary number without any deleminators, but be able to manipulate each digit … | |
I'd like to programatically add a page border to a document being created. The Macro code from Word is With Selection.Sections(1) With .Borders(wdBorderLeft) .LineStyle = wdLineStyleThinThickSmallGap .LineWidth = wdLineWidth300pt .Color = wdColorAutomatic End With End With I can't fathom out how to convert this, if indeed it is possible, the … | |
Hello, I am in learning java. I try this code that I got from internet : static void insertionSort(int[] A) { // Sort the array A into increasing order. int itemsSorted; // Number of items that have been sorted so far. for (itemsSorted = 1; itemsSorted < A.length; itemsSorted++) { … | |
import java.awt.Color; import java.awt.event.ItemListener; import java.awt.event.ItemEvent; import javax.swing.*; public class framed implements ItemListener { JToggleButton jtButton; public JPanel createAndShowNewPane() { JPanel GUI= new JPanel(); GUI.setLayout(null); JPanel buttonPane= new JPanel(); buttonPane.setLayout(null); buttonPane.setSize(200,300); buttonPane.setLocation(0,0); GUI.add(buttonPane); jtButton= new JToggleButton("On"); jtButton.setSize(90,50); jtButton.setLocation(100,0); jtButton.addItemListener(this); buttonPane.add(jtButton); return GUI; } public static void window(){ JFrame.setDefaultLookAndFeelDecorated(true); JFrame frame= … | |
Hey there, please help me how to solve this problem. I need to find my CPU temperature in C code on Linux for my new program. Can anyone tell me??? | |
Hello.. I'm thinking to create an android apps.. but I have a question on how to online the apps? for example updating the info or data. and updates some news about the weather. is there a server to online the apps? | |
how can we form a 2d array in jsp so that we can select its element just by clicking on the particular element.. | |
Hi, I have a tabcontrol with 3 tabs. Every tab has a great deal of textboxes which I use to refresh the properties of an object. To save my time, I bind the textboxes.Text to the properties of my object. The main problem happens 'cause I can make the binding … | |
the following function "ranks" the applicants and writes them to the rank_results table in the database: function rank() { $rank = 0; $sql1 = "SELECT * FROM applicant_details"; $results = $this->db->query($sql1)->result(); $sql3 = "SELECT * FROM job_advert"; $job_advert = $this->db->query($sql3)->result(); foreach ($results as $applicant) { $applicant_age = $applicant->age; $applicant_id_number = … | |
anybody can help me? i want to add code after autocompletemode selected, code for autocomplete mode is running good, this is my code for autocompletemode: Dim AutoComp As New AutoCompleteStringCollection() Dim acs As String = "select NDP from DAFTARPELAJAR" acscmd.CommandText = acs Dim acsda As New OleDbDataAdapter(acscmd) acsda.Fill(acds) For i … | |
Hi there, I'm currently looking into the possibility of essentially using a graphical tool to create a box-and-lines expression table, flowchart or the like and being able to convert it to C# if/if-else etc statements. Whilst able to code it manually, it would make large trees a lot more sustainable... … | |
Hello I am J2SE programmer and now university authority give the task select the final project topic. Kindly aany body suggest me the 5 or 6 project ideas... | |
I need urgent help. I need ONLY select ALL button for my code: if($_POST['SmartPhone']==false and $_POST['Apple']==false) { $this->add(new error('<span style="color:red">Select your cell..!!</span>')); $this->step1(); return; } if(isset($_POST['S4'])) $tech2=$_POST['S4']; $form->add_checkbox('S4','S4',$tech2); if(isset($_POST['iPhone 5'])) $tech3=$_POST['iPhone 5']; $form->add_checkbox('iPhone_5','iPhone 5',$tech3); if(isset($_POST['iPhone 5s'])) $tech1=$_POST['iPhone 5s']; $form->add_checkbox('iPhone_5s','iPhone 5s',$tech1); //In addition, i want to know how to put "Select … | |
Hello there, While submitting the form , though it is validated properly still it accepts ? in mobile number field **sometimes** while it is submitting to database It is not for everytime and at particular digit only so that I can find the issue, It comes rarely as sometimes like … | |
Ques : Define the class Book with all the basic attributes such as title, author, publisher, price etc. Define the default constructor, member functions display_data() for displaying the Book details. Use appropriate access control specifiers in this program I have done some part #include<iostream.h> #inlude<conio.h> using namespace std; class book … | |
I am trying to cut an image that I have uploaded into a java written program into quarters, specifically a pyramid. Every pyramid level will have a corresponding image, for example given an input image of abc.pgm, you will generate output images abc1.pgm for pyramid level 1, and abc2.pgm for … | |
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Could not find stored procedure 'dbo.aspnet_CheckSchemaVersion'. Source Error: An unhandled exception was generated during the execution … | |
Exercise: Write a C++ program using do-while loop that prompts for and inputs a user entry of "Y" or "N". f the user fails to enter a correct value, the loop outputs an error message and then repeats the request for the user to enter a value. This is what … | |
i have this class <?php ob_start(); session_start(); include 'db_con.php'; /** * * @Create Breadcrumbs Trail. * * @copyright Copyright (C) 2008 PHPRO.ORG. All rights reserved. * * @version //autogentag// * * @license new bsd http://www.opensource.org/licenses/bsd-license.php * * @filesource * * @package Breadcrumbs * * @Author Kevin Waterson * */ class … | |
this is the code if (file_exists('/user/'.$_SESSION['Username'].'/avatar.jpg')) { echo 'Exists'; } else { echo 'Doesn't exist'; } and i get the negative case | |
Hi friends, http://www.chevalblanc.com/randheli/en/56-unique-experiences.html Examples of the other layer to pass on this page How do I particularly like the scrolling with the mouse How can I pass a little bit when you scroll with the mouse, the other layer. Please scroll your mouse on the page to get a better … | |
I am using XMLHttpRequest as a simple one way ajax logging function. No server response is needed. The request does not cross domains. This code works as expected in IE and in Firefox var client2 = new XMLHttpRequest(); client2.open("GET", "program?url=c",true); client2.send(); alert('sent'); return true; however, as soon as I remove … | |
Hello, I heard about the multisite in wordpress . I search and do some steps apply for that .I make a network setup .But now what to do after network setup. please give me some suggestions Thanks in Advance Nits Patel |
The End.