199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Nimalshi

I'm writing this code for one of my projects. can you please help me with line #6,#7 and #10? I'm not sure if I am writing the code for those correctly. package waffles; import java.util.Scanner; import java.util.Stack; /** * */ public class Waffles { /** * @param args the command …

Member Avatar for Schol-R-LEA
0
162
Member Avatar for Emmaximum

Hello please i have a problem with my compiler. When ever i try compiling a program it gives me warning saying" Source code not compiled" I use Devc++ compiler. Do i change the compiler or what do i do? This is the program i typed in it

Member Avatar for Ancient Dragon
0
295
Member Avatar for Yogesh_5

how to draw 2 parallel line in visual baisc 6.0 which have same height.. suppose picture box height is 200 then first line starting cordinate is 0,100 and second line cordinate is 100,200.. how we draw..

Member Avatar for JobPencil
0
479
Member Avatar for nevek

Hi The code below inserts data into a mysql db, for some weird reason IE inserts it 2 times and firefox just once. It should only insert it once. $KOSoep = $_POST['KOsoep']; $KOHoofdgerecht = $_POST['KOhoofdgerecht']; $KODessert = $_POST['KOdessert']; //insert query kinderopvang $insert_kinderopvang="INSERT INTO `menukinderopvang` ( `datum` , `soep` , `hoofdgerecht`,`dessert` …

Member Avatar for diafol
0
253
Member Avatar for Alan_4

Write a shell script that will take a filepath and a string as command line arguments. The script should find lines which contain the given 'string' in the given file. It should create an output file in "/tmp" directory with the name in the pattern as below. "NN_15Nov2013_12Hrs_32Minutes_20Seconds.txt"

Member Avatar for cmk001
0
399
Member Avatar for alice kimunya

Hi,I want to come up with an online booking system for vehicles in a certain institution.right now am stuck coz am not sure how to go about the many approvals needed before the booking.e.g approval from the dvc/aa,finance,the head of department.there is also diffent kinds of booking e.g staff,students,academic trips …

Member Avatar for Schol-R-LEA
0
140
Member Avatar for ignnniter

Hello Im trying to display a label when my program starts, to check the server status.. For example if the user is successfully connected to the server it should say on the label "Connected" and if not the label should say "Not Connected" , my Database is located on a …

Member Avatar for ryanjayson
0
213
Member Avatar for Sumith Asanka

Hi Guys I have a asp.net application(4.0) , done on VS 2010 Ultimate,i want to launch it on the IIS Server on Windows XP(ver 5.1), when i am trying to create the Virtual Directory I am Getting this error, but directory is created , but i can't access the application …

Member Avatar for Sumith Asanka
0
289
Member Avatar for MatthewYeend

package die.java; import java.util.Random; class DieGame2 { private final int sides; private final Random generator = new Random(); public DieGame2(int s) { sides = s; } public boolean throwDie() { int faceValue = generator.nextInt(sides) + 1; System.out.print(faceValue); return faceValue == 6; } public static void main(String[] args) { DieGame die1 …

Member Avatar for stultuske
0
346
Member Avatar for ubhart

I am implementing Priority QUE as a doubly linked list. My structs: typedef int kintyr; typedef struct qElem { struct qElem *prv; kintyr *dat; int *priority; }qElem; typedef struct que { qElem *fr,*bk; int cnt; }que; And this is my functions to create empty PQ, and to insert elements: que …

Member Avatar for ubhart
0
401
Member Avatar for G.TEJAREDDY

I am new to this and i need an example programs for copy constructor and nesting classes

Member Avatar for panqnik
0
118
Member Avatar for pooja_3

I need some help. I am a newbie to php .. What I am trying to do is to parse an xml file and create a drop-down for the user. I have attached how my drop down list looks currently. What I want to do is to add a sub …

Member Avatar for diafol
0
1K
Member Avatar for davy_yg

Hallo, I am trying to understand this code which doesn't make sense to me. company.php <?php require('wds.php'); include(INC_DIR . 'header.inc.php'); ?> <div class="container"> <div id="header"> <h1 id="book-of-love"><img src="<?php echo SITEURL; ?>images/infracom.png" /> <!--Indonusa Group<span> Portal</span> --></h1> </div> <div class="infra-article"> <?php if ( isset($_GET['pageSlug']) && !empty($_GET['pageSlug']) ) { $q = new …

Member Avatar for davy_yg
0
219
Member Avatar for Yorkiebar14

Hello, I am a web developer who is having a hard time trying to get my scripts to connect to my new web host. The script works perfectly on my localhost (I'm using XAMPP) but once I try to use it on my web host, I get the following error: …

Member Avatar for kanuriyesu
0
294
Member Avatar for jj.dcruz

I have a problem using many dropdown/select in which i needed to filter everytime i change the dropdown I dont know how to do this. for example: 1st dropdown is location *which I selected* **pasig** it should filter -> 2nd is bedroom which **pasig** has **3** data *1,2,4* it should …

Member Avatar for pritaeas
0
189
Member Avatar for Srinivas_2

Hi All, I need help in displaying a list (Sl.no) from a database to combo box. Please help me....

Member Avatar for ryanjayson
0
230
Member Avatar for Udeme_1

please guys i am making an app and i want to show the number of users online on the app i have this code function whoisonline() { //what are my variables values $email=$_SESSION['jwp_email']; $sqloo="SELECT `id` FROM users WHERE email='$email'"; #mysql_query($sqloo) if ($run=mysql_query($sqloo)) { $b=mysql_fetch_assoc($run); $b['id']; $c=$b['id']; } $ip=$_SERVER['REMOTE_ADDR']; $ip_ua=$_SERVER['HTTP_USER_AGENT']; $time=time(); …

Member Avatar for samfoster017
0
170
Member Avatar for john.kane.100483

Hello :D I would like this to be explain. What is meaning of this following codes and why are they in there? I really don't understand. void Binary2Decimal() total=0 "%16s" len=strlen(bin2); value=bin2[i]-'0'; total=(total<<1|value); void Octal2Decimal() for(i=0;i<len;++i) value=buffer[i] - '0'; if (value < 0 && value > 7) void Hexa2Decimal() digit=toupper(buffer[i]); …

Member Avatar for john.kane.100483
0
149
Member Avatar for Niveatha

hai.... i am doing inventory project. if sell a product it should afffect the stock. so i need a coding to retrieve the stock quantity and i have to change the value according to sales then i have to update the values into the stock table and also if no …

Member Avatar for Niveatha
0
104
Member Avatar for johnas.delacruz

Is there a data type that can allow a user to input a 25 digit number... because the largest data type for numbers that i know is long long int and uintmax_t which can only store 18 numbers (i'm not sure about this)... because my problem should allow a user …

Member Avatar for David W
0
471
Member Avatar for Muni123

I have a login jsp page where users can login in to my web application, I have also a sign Up form where user can register if they are not members. I'm trying to do the login and sign up forms in one JSP called login.jsp. Login part works fine …

Member Avatar for JorgeM
0
312
Member Avatar for Quast

Like what we see in the Microsoft office word, if i wrote "This is abble" will show me a red line under the word. my project is load text file in the Richtextbox and correcting the wrong words, every thing is fine except this thing. so any information or details …

Member Avatar for Quast
0
177
Member Avatar for sandeepxd

i want c++ code for a simple window with a tray icon. If i right click the tray icon it should show a context menu containing Exit item and if i click it then application should close. thanx in advance

Member Avatar for panqnik
0
98
Member Avatar for butterfingerss

I am using Qt 5.2.1 and I made a program that takes some values and saves them on a text file. What I want is that everybody can see this file and read the content but nobody can edit it. To edit it, you would have to run the program …

Member Avatar for panqnik
0
305
Member Avatar for essuku

Hi, Is there any java functions are availble to find mostly repeated characters in string ? Thanks

Member Avatar for C-Money
0
211
Member Avatar for Curious Gorge

I can program with C++ though I'm just a novice at it. I'm using Microsoft's Visual Studio Express 2010 but I don't entirely understand what I'm doing. I can use a library after a great order of frustration but I would like to make this easier. Are there any web …

Member Avatar for Curious Gorge
0
286
Member Avatar for 21303359

How do i use my program directly on the internet, instead of opening visual studio and running my program?

Member Avatar for castajiz_2
0
122
Member Avatar for nitish.mohiputlall

here is the original codes that has been set in the question paper: #include <stdio.h> #define numitems 10 int main(int argc, char* argv[]) { int data[numitems]; int i; int *ptr; for(ptr = data; ptr < &data[numitems]; ptr++) *ptr = 0; for (i=0;i<numitems;i++) printf("data[%d]=%d\n", i, data[i]); return 0; } HERE ARE …

Member Avatar for 2teez
0
537
Member Avatar for woomar

Hi. I am very new to hashtable concept. Here is a skeleton of the methods I need to implement; BUT, my biggest question is the inner Entry class. Am I implementing the entry class correctly?Is my constructor correct? Thanks public class HashTable<K, V> { /** define an inner class to …

Member Avatar for JamesCherrill
0
213
Member Avatar for Kent55

I am making a quiz for my computer science class and the basic concept is that you have 15 keywords and 15 definitions. All need to be randomly displayed and the correct answer has to appear. The user has to match the correct definition to the keyword twice and then …

Member Avatar for Reverend Jim
0
417
Member Avatar for Siberian

Can you write within the script the new order of an array as a comment without the script actually using it ? Suppose I have an array of 10 items, then I push and unshift more items in the array, for myself or anyone else viewing the code I want …

Member Avatar for diafol
0
189
Member Avatar for nitish.mohiputlall

here is the original codes that has been set in the question paper: #include <stdio.h> #define numitems 10 int main(int argc, char* argv[]) { int data[numitems]; int i; int *ptr; for(ptr = data; ptr < &data[numitems]; ptr++) *ptr = 0; for (i=0;i<numitems;i++) printf("data[%d]=%d\n", i, data[i]); return 0; } HERE ARE …

0
93
Member Avatar for jayreis

I have the below line of code which I am trying to use after an image is uploaded in order to resize the image. I have confirmed my image does get uploaded correctly so the image file is in the correct location however I keep getting an error The line …

Member Avatar for jayreis
0
142
Member Avatar for katharnakh

Hi, How do I disable Copy/Cut/Paste operations on a textbox in Tkinter. I want to implement this in simple login form, where I found I can copy or paste or cut from textbox which is meant to accept PASSWORD. Can we do that? How? Thank you, Regards, kath.

Member Avatar for Gribouillis
0
2K
Member Avatar for Stefce

Hello everybody i have a little problem with making a java command for program i have some code but i do not know how to continue i stuck in one place BTW the command i want to make is > /sendcash [username] [money] // how it looks like I have …

Member Avatar for stultuske
0
229
Member Avatar for LyingInAHammock

Basically I've created an **app drawer** and placed a **seekbar** within it. This app drawer is made up from **app_drawer.xml** whilst my fragment below is made up from **main_activity.xml**. The issue I'm having is, although the seekbar shows up perfectly and the app drawer pulls in and out as it …

0
166
Member Avatar for virupax

I would like to draw a graph (on a PictureBox) using Graphics in VB.net The input values are added over some time which need to be presented as graph. But the problem I am facing is, I need to draw the entire graph from scratch every time a new point …

Member Avatar for xrjf
0
459
Member Avatar for Mike_danvers

with all due respect i would like to inform that,2hours ago i posted a thread on php webdevelopment,but can't see that in my watch list nor in forum,can any of the admins have any idea what happened to that??

Member Avatar for Mike_danvers
0
98
Member Avatar for polarpandabear

Hello Everyone! I'm a return user to this community. I just want to ask some help regarding of my problem in my site. the problem is that some of my php files can't display some of my content in our website. I'm a main programmer in our team and in …

Member Avatar for cereal
0
484
Member Avatar for CarterLangley

Can never seem to get things to work! <?php if(isset($_POST['add'])) { $person_id = $_POST['person_id']; if (isset($_POST["cv"])) { $cv=1; } else { $cv=0; } if (isset($_POST["document_id"])) { $document_id=1; } else { $document_id=0; } if (isset($_POST["application_form"])) { $application_form=1; } else { $application_form=0; } if (isset($_POST["passport"])) { $passport=1; } else { $passport=0; } …

Member Avatar for CarterLangley
0
264
Member Avatar for C-Money

I am attempting to write a code with several different segment, such as combine two differents strings, compare two strings, find the length of a string. Right now, I am working on the part to get the string length, but when I run the code I have so far on …

Member Avatar for C-Money
0
13K
Member Avatar for AwkRocks

Input: Feb 15 2014 09:31:00 ERROR {http--0.0.0.0-0000-000} [54d70-54d70-54d70-54d70-54d70][478-478-478-478-478] JabberServlet - Provisioning exception while parsing protocol Feb 15 2014 09:31:00 ERROR {http--0.0.0.0-0000-000} [54d70-54d70-54d70-54d70-54d70][478-478-478-478-478] JabberServlet - Failed to extract text from response Feb 15 2014 09:31:00 ERROR {http--0.0.0.0-0000-000} [54d70-54d70-54d70-54d70-54d70][478-478-478-478-478] JabberServlet - Error while loading make model Feb 15 2014 10:31:00 ERROR {http--0.0.0.0-0000-000} …

Member Avatar for AwkRocks
0
171
Member Avatar for babyluxe03

i connect my access to vb2010 using adodb. but i cant display the datas in my listview. can someone help me to solve my problem. i would really appreaciate any help. what i need is to get the column per column datas.. like how it is shown in the access. …

Member Avatar for cgeier
0
136
Member Avatar for zitro10

HELP ME TO CREATE MY OWN LIBRARY SYSTEM I NEED TO LEARN EDIT, DELETE, SEARCH, SAVE. IF ANYONE CAN HELP ME??? THANK YOU IN ADVANCE!!!

Member Avatar for jhai_salvador
0
206
Member Avatar for keyroche

Hello. I am using an iframe in my page to submit a form to so that it can upload a file - since you can't do this through the jquery ajax function. I have everything working, but I want to be able to hide the iframe and get the content …

Member Avatar for kiranmaijalem
0
2K
Member Avatar for Hpsvtw

I have an application that is running on the inernet, done in asp.net(webforms). I want a group of users to be able to work offline so I have designed a desktop c# application (winforms) that will do the offline work. I want the desktop application to update a database server …

Member Avatar for Hpsvtw
0
218
Member Avatar for rabadiyaronak

i have two different programs that compare float and double variales and gives output , i shown that below : 1. #include<stdio.h> main() { int r; float f=22.5; double d=22.5; r=(f==d); printf("r=%d",r); } **Output:- r=1** 2. #include<stdio.h> main() { int r; float f=22.7; double d=22.7; r=(f==d); printf("r=%d",r); } **Output:- r=0** …

Member Avatar for jwenting
0
298
Member Avatar for garwil

Hi all... Hope someone can point me in the right direction here as am stumped.. I have two domains, same name but one is .com and the other .co.za. The .com domain is 'parked' and points to the .co.za domain. In the co.za domain my landing page (index.php) has three …

Member Avatar for diafol
0
207
Member Avatar for nileshbhanu

how can i apply expiry for 30 days to web app without using cookie? i have my one app and if i want to give this app to client for 30 days on server than how can it is possible?

Member Avatar for diafol
0
440
Member Avatar for Yogesh_5

The End.