199,114 Archived Topics
Remove Filter ![]() | |
Hello, i faced some problem in building the android calculator. The problems like this: 1) If i click 2 + 3, it worked well, and screen will show the 5.** BUT! **when i clicked + and + and + and +...... it will continuosly add the answer. How can i … | |
I am getting my program to compile but it will not run. It is supposed to take a three digit number, reverse it, then subtract and add the original and reverse number. Why is this not printing out? Code: public class Rev { public static void main(String[] args) { int … Programming java ![]() | |
Hi, I used this code to translate in any language, what I am typing . It is working good. But, for English, I don`t know how to do? can anybody know it? <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <script type="text/javascript" src="https://www.google.com/jsapi"> </script> <script type="text/javascript"> // Load the Google Transliterate API … | |
Why am I getting a System.StackOverflowException when assingning a value to avariable. I have used the same process on other forms in this project and they work fine, don't know why this is happening. This is the error "An unhandled exception of type 'System.StackOverflowException' occurred in System.Windows.Forms.dll" the exception hapens … Programming vb.net | |
Hi all, first thread in here. I usually don't open my executables with any sort of editor, but for the sake of curiosity I've tried opening one. And what I've found is not that funny: I've found myself able to edit every kind of string. Of course you have not … | |
Normally you can do this and pass the reference type by reference and the new keyword won't make the variables point to different objects: static void Main(string[] args) { Object origObj = new Object(); ExampleMethod(ref origObj); } void ExampleMethod(ref Object newObj) { //origObj will also reference the newly created object … | |
hi, I have to do a task and i have to write an assembly lanuage program to read in a series of pairs of numbers and for each pair output the sum and the difference. That's my code already pls help i have no idea: BR main ; Branch around … | |
hello, i'm working on a code where i have to make a calculator. i hope you guyes can check out my code and help. I would greatly appricate any help (: . here is what i have to do, calculator. this calculator keeps track of a #include <stdio.h> #include <stdlib.h> … Programming c | |
Hi all, I am aiming to create an array with the same structure as this: Array ( [798D25C0DEABD] => Array ( [quantity] => 1 ) [40B2B0FA3D222] => Array ( [quantity] => 1 ) ) The code I am using is therefore: for($i = 0; $i < count($response); $i++) { $ph[] … | |
i have to write a code that has a random number generated between 1-100 and the user has the choice to keep the number, discard the number and quit the program. and when the user quits the program displays the numbers kept and discarded, but i dont know how to … Programming java | |
Hello, I am trying to develop VB.NET application which it will compress files one by one but the problem is the size of each file is too large in size about (1.6 GB) and when I am trying to compress it using FileStream and Buffer it shows to me Memory … | |
I have a couple of sites (on different servers) that I want to see if some critical urls are up and running and this is what I've tried: $handle = curl_init($url); curl_setopt($handle, CURLOPT_RETURNTRANSFER, TRUE); /* Get the HTML or whatever is linked in $url. */ $response = curl_exec($handle); /* Check … | |
Group, I've expanded a small app that started with 50 textboxes and labels to 200 of each. To hide and make these visable I use the codes lblProperty01.Visible = False tbxProperty01.Visible = True lblProperty02.Visible = False tbxProperty02.Visible = True This means there are 400 lines of code to hide and … | |
I have to write a hangman game in Cpp which choose random words from txt file using binary search tree. Here is the code - compilation is successful, but its not working properly, its crashing. Exception - Segmentation fault: 11 Row - if (el.length() <= p->n.length()) Can someone help me? … | |
How can I return to the main menu in this simple C++ program? Thanks in advance. #include <iostream> using namespace std; int main() cout << "Main Menu" << endl; cout << "What would you like to read about?" << endl; cout << "1. Programming Paradigms" << endl; cout << "2. … Programming c++ data-structure operating-system | |
Java program reading from 2 files. so i'm creating a program for u.s population by state per 2010 census. Below is the question: create a program that will read from two files and fills two HashMaps to find the population (according to the 2010 census) of an individual state or … | |
hi im attempting to change my website from mysql to mysqli ive replace mysql with mysql on all the files and when i attempt to load site im gettting the following: Warning: mysqli_select_db() expects parameter 1 to be mysqli, string given in /home/matureco/public_html/config/db_connect.php on line 6 heres code for this … ![]() | |
It might be obvious, but I can't seem to understand it. So don't laugh. Let's assume this scenario. My website has 5 themes, there are 5 buttons. Clicking each button changes theme respectively and uniquely. I use JavaScript to do that, so I set name of theme in a cookie, … | |
Hi i have a question how do i update database ,once i press on the field it gets active for adding :here is my form :  And here my code so far ,i try to code the update button,but it does updates the field,but not the database. package … | |
For the last 5 months I've tried to organize myself and my friends in order to collect some relevant information on news sites (information about global warming, pollution, ecology etc.) The only solution that I've found was to use a local search engine from the news site and type in … | |
[B][/B][CODE] import java.applet.*; import java.awt.*; import java.awt.event.*; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.io.*; import java.security.*; import java.lang.*; import java.math.*; import java.util.*; import java.security.spec.*; class md5 { public static void main(String args[]) throws Exception { DataInputStream ds=new DataInputStream(System.in); System.out.println("Enter the Message to be hashed...."); String m=ds.readLine(); BigInteger hshm; hshm=hshcall(m); System.out.println("After Hashing … | |
Hi all, I have been using this tutorial: [bootply.com](http://www.bootply.com/lxa0FF9yhw) and I almost have it working, the problem is that my table is generated VIA AJAX from a php file. Basically I see my table but no working pagination unless I open chrome web tools and go to console and paste … ![]() | |
#include<iostream> #include<conio.h> #include<string.h> #include<iomanip> #include<iostream> #include<fstream> #include<Windows.h> using namespace std; class book { char book_number[30]; char book_name[50]; char author_name[20]; public: void create_book() { cout<<"\nEnter The Book Number: "; cin>>book_number; cout<<"\nEnter The Name of The Book: "; cin.ignore(); cin.getline(book_name,50); cout<<"\nEnter The Author's Name: "; cin.ignore(); cin.getline(author_name,50); cout<<"\t\t\n\nBook Created Successfully..."; } void … | |
I have a quick question, I am hoping it is an easy answer but if I wanted a query like the following: SELECT * FROM items ORDER BY date ASC Is there anyway to replace the order by information with prepared statement attributes? would either of the following work? SELECT … | |
#include <iostream> using namespace std; struct node { node * right, *left; int info; bool lthread,rthread; }; class tree { private: node *temp,*current; public: node *root,*Dummy; void insert(node*,int); void inorder(node*) ; node* next_node(node* ); tree() { temp=root=current=NULL; Dummy=new node; Dummy->left=root; Dummy->right=Dummy; Dummy->rthread= Dummy->lthread=false; } } ; void tree::insert (node *temp,int … | |
List Fragment height is not working properly, it only shows 1st row of list, other rows of list dont show. I used wrap content for height but not working. If i run Fragment directly it shows all rows but if i add fragment in my main activity its show single … | |
The writefile method should write out to the given output file all the integers in the given array, one per line. For this part, the merge method should return a new array big enough to hold the content of the first two arrays (a and b), and then the first … Programming file-system java | |
Hello , first of all I need to make clear that although I understand , and have done projects modifying code that is already there (and created my own minions) , in the core of C and C++ I wouldn't consider to know those a bit, I have just a … | |
How To connet mssql to php please please please help meeee. I'll wait for you guys to answer | |
iam using php in developing our website which is our user has to check banana symptoms that he observe on his plantation,out of that checked symptoms our system will show the possible disease based on what he checked, but i have a problem, if i checked 1 and 4 checkbox … | |
I'm looking for a graphic library to create a visual for data that involves between about 100 to 300 data points. Each set of data points covers a full day - so one day would have a few hundred data points total, and I'm looking to plot a graph of … ![]() | |
i am new to JSP and this is my first trial on JSP i have a table "des" 1. id - auto increment 2. desn - varchar(50) and i wanted to access the table data on my JSP(index.jsp) file: <%@ page import="java.sql.*" %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Add … | |
I am trying to do Shortest Remaining Time scheduling algorithms turnaround time. This is the formula. Turnaround Time = Completion Time - Arrival Time I have already sorted my arrays. This is what it looks like my hand. 5,1 done with magical 0 9,2 2nd iteration 1 2,4 1st iteration … | |
pls i need assistance on developing a school project site where one can upload and download(buy) school project material.. thanks | |
whats wrong with this code i can't get menu and logo alinged i want logo to the left and menu to right along with logo, but i'm getting logo on the top and menu below it...can anyone explain the problem to me? and also what should be the solution for … | |
guys can you teach me how to construct a code for developing my website. for example i have a list of different symptoms of a banana diseases which is a checkboxes,if i checked one of the symptoms,my system will analyzed or calculate that information based on what i have checked. … | |
Pls i need your help here, im working on web page in which i want the user who register or subscribe will login to know thier status either membership expired or active but this code it is working manually if i set the date but not working from the database … | |
I had 3 datagridview in visual basic, and each of them is linked to each other. 1 Main component can have many Failure Mode and 1 Failure Mode can have many Critical. [Click Here](http://i1333.photobucket.com/albums/w631/lloyd1006/1_zpsapbu0wla.png) [Click Here](http://i1333.photobucket.com/albums/w631/lloyd1006/2_zpsbe2c2u3n.png) [Click Here](http://i1333.photobucket.com/albums/w631/lloyd1006/3_zpsw2s2weo6.png) I want to duplicate selected row or record including their children details, … Programming linked-list vb.net visual-basic | |
On this page I have 12 images, so far okay. But I like to make them more responsive. https://www.outdoorequipped.com/ The code I use is follow and I know I am missing something, but I am not sure what. Also, how I can do, that this div, where all those 12 … | |
Hello, I'm capturing frame from cameras devices using V4L, but now I have to capture from IP Cameras, and I don't know how to start it. Please, can anybody tell me how can I do it, some API or something like that?! Thanks!! | |
import java.util.Random; public class RaceMove { int hare = 1; int tortoise = 1; public int torMove() { Random number = new Random(); int i = 1 + number.nextInt(10); switch (i) { case 1: case 2: case 3: case 4: case 5: tortoise += 3; break; case 6: case 7: … | |
Hi, i just hosted my website on 000webhost for free and somehow i cant connect with my database resulting to that i cant login on my website. How can i solve that? Please help. thank you Heres my code for db connection '<?php $db_host="mysql1.000webhost.com"; $db_username="a1924971_user"; $db_password="*************"; $db = "a1924971_learn"; $cn … | |
![]() | I honestly have no clue how to go about this. Need some assistance on the following questions: 1. Modify the program to subtract (num1 – num2). If num2 is greater than num1, swap the values of the variables using a variable named temp, using the partial code below. if (num2 … ![]() |
Not so long time ago, I asked you for help with `preg_match()`. Pritaeas gave me nice answer and Cereal showed me nice webpage where I could try out the latest queries, live. The query provided seems to be working on the website granted, but not on my project. 4 out … | |
hi all, I have been coding a payment gateway using a company called SwipeHQ. Using their APIs I have programatically created products from my website and make sure they stay updated. However, I'm now completely stuck about how to have my checkout navigate to their payment form and then return … | |
Hello to all! I am learning java. And now I have started section of web apps in java. I have learnt initial level web development by coding on notepad. Now I am using netbeans IDE for java. But in case of web development i am facing a problem using netbeans. … | |
The program seems to be building fine however I can only get it to return "Your tax amount is: 0.00". I've stared at the thing for hours and cann't for the life of me find my problem/problems. Any suggestions are extremely appreciated. /* * File: main.cpp * Author: Callie Tester … | |
I'm working on an android project and created a widget for toggling Bluetooth (i.e., Pressing the widget turn on Bluetooth if turned off and vice versa). But the problem is that click listener of button is not working and when I click on the widget on the home screen it … | |
Hello everyone, Please help me to create a chained select box here i created something , but when i select 1st one its load 2nd one's options from database, but get 1st one unselected <form action="" method="post"> Username: <br><select name="productforuser" id="option" onchange="location = this.options[this.selectedIndex].value;"> <option selected value="no_user_selected">No User Selected</option> <?php … ![]() |
The End.