199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Om Prakash_1

Is java a platform Independent language. I think its no? My question is in what respect java is totally platform dependent. Is there any case? Share with Us. I have seen this question. So please reply quickly. Java is probably one of object oriented programming. Does it purely object oriented …

Member Avatar for rubberman
0
210
Member Avatar for cakka

Hello, what is the meaning of System.exit() ? if System.exit(0) = close the program without error But, what is the meaning of System.exit(1) ? Is there is any System.exit(2), System.exit(3), etc ? Thanks you

Member Avatar for ~s.o.s~
0
168
Member Avatar for profmuluka

1. A List Apart 2. Smashing Magazine 3. 456 Berea Street 4. Meyer Web 5. Simple Bits 6. Pearsonified 7. Tutorial Blog 8. CSS Beauty 9. Snook.ca 10. Bartelme Design 11. The Man in Blue 12. Andy Budd 13. Particle Tree 14. Warpspire 15. Brian Gardner 16. Sitepoint Design Blog …

Member Avatar for JamesCraft
0
231
Member Avatar for Shari_1

I'm working on a simple, custom login system where users can make an account and log in. In this system I'm using Sessions to make sure if user is logged in or not. I'm using MVC4 as well with Entity Framework. Right now, I want to make a function where …

Member Avatar for Ketsuekiame
0
140
Member Avatar for jelly46

Hello I have got a small piece of code from thefacebook developers page. It does not work inIE, it sends back an error, I have cleared the caching and loggin into facebook and nothing. Here is the code: <a href="#" id="fb-btn-2013" onclick=" window.open( 'https://www.facebook.com/sharer/sharer.php?u='+encodeURIComponent(location.href), 'facebook-share-dialog', 'width=1028,height=768'); return false;"><img src="../../Content/Images/facebook-button.png" alt="Share …

Member Avatar for jelly46
0
324
Member Avatar for HunainHafeez

i developed a website in php i did it 90% but the problem is that if i have 4 PDF files in website and via search box i enter a text and then it finds that text for me in all 4 odf files or display a message that "No …

Member Avatar for Julsy
0
171
Member Avatar for fheppell

I'm looking for a way to ensure that zero cookies are created by session, is there any way to do so? The session does not need to be overly secure, it is mainly being used to transfer basic and non-sensetive data inbetween pages. This is on a dedicated ubuntu box …

Member Avatar for fheppell
0
177
Member Avatar for Pyler

I'm trying to create a list stack that implements some interface called SomeList The list stack should only use stack with no links. the itnerface has a number of methods that I would like to implement. So for SomeList I have something like public interface SomeList<T>{public void plus(T something);public E …

Member Avatar for JamesCherrill
0
407
Member Avatar for andre.hamraee.75

(Total Sales) Use a two-dimensional array to solve the following problem: A company has four salespeople (1 to 4) who sell five different products (1 to 5). Once a day, each salesperson passes in a slip for each type of product sold. Each slip contains the following: a) The salesperson …

Member Avatar for JamesCherrill
0
364
Member Avatar for Lavanda

/* * GUI Electric Bill Program */ package guielectricbill; //import the package to do GUI input/output import javax.swing.*; public class GUIElectricBill { public static void main(String[] args) { // declare variable to store user input String accountNumber, customerName, address; int KWH; double amountDue; // Welcome customer to the Electric Bill …

Member Avatar for JamesCherrill
0
332
Member Avatar for rrocket

I have been trying to use [code=javascript]<script language="javascript" type="text/javascript"> function check_length() { var x = document.getElementById("tbDescription").value; alert(x); } </script>[/code] to get the value of this text box [code=asp]<asp:TextBox ID="tbDescription" runat="server" Height="78px" TextMode="MultiLine" MaxLength="10" Width="363px" ValidationGroup="quickQuote" onkeypress="check_length()" CausesValidation="true"></asp:TextBox> <asp:RequiredFieldValidator ID="rfvDescription" runat="server" ControlToValidate="tbDescription" Display="none" ErrorMessage="You must give a description of your shipment." …

Member Avatar for ranadheer_1
0
2K
Member Avatar for COKEDUDE

Can someone please tell me why I keep getting a stack overflow when I try to create nodes in a priority queue? class Node { public int frequency; // data item (key) public char character; // data item public Node leftChild; // this node's left child public Node rightChild; // …

Member Avatar for JamesCherrill
0
427
Member Avatar for krystosan

I just discovered that while doing check of the functions available in `os.path` using `dir(os.path)` is not the same as shown by `dir(__import__("os.path", globals={}, locals={}, fromlist=[], level=-1))`, in the later case it is actually showing all the modules of `OS` while I just want to look inside for the modules …

Member Avatar for Gribouillis
0
210
Member Avatar for ptim123

i need to find a min and amx of the table and so far i can do the min of row 1 but nothing after that -------------------------------------------------------------------- |Name | A | B | C | D | E | -------------------------------------------------------------------- | 1 | 1.0 | 2.0 | 3.0 | 4.0 …

Member Avatar for Schol-R-LEA
0
328
Member Avatar for Burhan_1

0 down vote favorite In new google map there are several travel mode like driving, bicycling, walking and transit but they also added fly mode also. I can choose fly mode in new google map but i cant get fly travel mode in google maps v3 api. I want to …

Member Avatar for Burhan_1
0
952
Member Avatar for rhodoscoder

I found this code online and i want to understand it, i have read the php documentation but i have found out that the php programming community offers better explanations PHP Code: function mysql_safe_query($query) { $args = array_slice(func_get_args(),1); $args = array_map('mysql_safe_string',$args); return mysql_query(vsprintf($query,$args)); } I figure the function isn't a …

Member Avatar for rhodoscoder
0
212
Member Avatar for TIM_M_91

Ok so for my register.php page I want to use https however the code that I am using makes my whole site use https how do I make it so only my register page uses https? Code I'm using: if(!isset($_SERVER['HTTPS'])) { header("location: https://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);

Member Avatar for LastMitch
0
145
Member Avatar for gabby.hunter.50

I am completely new to JavaScript. I do not understand it, even after reading numerous sources of information about it. I am stumpt on a question and really need help. Everything JavaScript is so unfamiliar. Here is what I need: Write a custom error handling JavaScriptâ„¢ function called processErrors that …

Member Avatar for LastMitch
0
266
Member Avatar for JeanPhilippe

Hi, I built a new wordpress website for one of my client but some old URL are still showing in google. Those URL doesn't return a 404, they actually redirect to the good pages. I explain : The website is www.vetreseau.com. One of the page is www.vetreseau.com/veterinaire/. The old website …

Member Avatar for LastMitch
0
184
Member Avatar for brianjoe

Hi all Im having a struggle here. I know very basic Jquery, and are reading up on on the YouTube API, but I cant seem to find how to do this. I downloaded a script for a custom YouTube player, and everything is good. I modified it to my needs. …

Member Avatar for LastMitch
0
403
Member Avatar for Kleon

Hi guys, i need help with modal popup, i have already create modal pop up, but what i want is that tha modal page to show up just for 5 seconds than automatically to be removed. Heres My code... <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC "-//W3C//DTD …

Member Avatar for Kleon
0
487
Member Avatar for Vasthor

http://s8.postimg.org/zbfc0h92t/New_Bitmap_Image.png 'contents' can't be initialized whatever I did, thus I can't declare the type in this class class Window_mgr { public: // location ID for each screen on the window typedef std::vector<Screen>::size_type ScreenIndex; // reset the Screen at the given position to all blanks void clear(ScreenIndex); private: std::vector<Screen> screens{ Screen …

Member Avatar for tinstaafl
0
296
Member Avatar for brandon66

I have an array like so: $array = array(value1,value2,value3,value4,value5,value6,value7,value8,value9,value10,value11,value12); What i need to do is insert the array value into a database row one would have value1,value2,value3,value4 row two would have value5,value6,value7,value8 row three would have value9,value10,value11,value12 I was thinking i would need a for loop. Can anyone help on …

Member Avatar for broj1
0
162
Member Avatar for mcoliver88

Hi I am creating a quiz in C# and i want to know how to flag a question that the user is unsure about. At the end of the quiz i would like them to review flagged questions. How can i do this? So far i have created the array …

Member Avatar for bertha
0
322
Member Avatar for Yorkiebar14

Hello, I have been using StreamWriters for a long and time and it has always worked but now I seem to be getting an Access Denied error while trying to save to the current users Desktop... Dim savePath As String = "C:\Users\Josh\Desktop\EpiPhone\029.csv" Using sw As New StreamWriter(savePath) '...Rest of code... …

Member Avatar for Jamblaster
0
792
Member Avatar for ddnpresident

I keep getting the error , "control may reach end of non-void function" What am I doing wrong here? I just dont get it right now! I know its something simple and small but I have been here back and forth for about 2 hours wondering what the hell is …

Member Avatar for ddnpresident
0
1K
Member Avatar for cambalinho

can anyone explain to me what is: 'T', 'L', 'wchar_t', 'LPCWSTR' and 'LPCTSTR'? how can i convert strings\char* to these types? (i understand these isn't a tutorial, but i realy need these introdution) or you can give me just a nice link.

Member Avatar for cambalinho
0
146
Member Avatar for everton.retweets

This is driving me nuts... I am new to wordpress plugin development... I have got the basic plugin developed. Added my admin menus... What I am trying to do is add a banner image to each options page inside the plugin dashbaord. i'v tried the usual ../images/imagename.png and ./imagename.png but …

Member Avatar for everton.retweets
0
178
Member Avatar for lillorme

<?php require_once('connections/careergroup.php'); ?> <html> <head> <title> <?php echo $first_name; ?> <?php echo $lastname; ?>s Profile</title> </head> <body> <?php // Check for a form submission if (isset($_GET["username"])){ $email = $_GET['username']; mysql_connect ("$hostname_careergroup", "$username_careergroup", "$password_careergroup") or die ("Could not connect to the server"); mysql_select_db("careergroup") or die ("That database could not be found"); …

Member Avatar for lillorme
0
453
Member Avatar for Lee_2

This may be a simple error but however. I was running my simple programs as normal and then when i went back to the program later to copy some code there was an error message highlighted underneath the first brace of my main() function. The error states - error: first …

Member Avatar for tinstaafl
0
2K
Member Avatar for allifields

Hi, so I have my own website and run cyberduck as my ftp for uploading files. Now, in one of my classes we have to create another website with mySQL as the database and my group wants to use my server for creating the website. I'm not really sure how …

Member Avatar for JorgeM
0
219
Member Avatar for Vusumuzi

import random Number = random.randrange(100)+1 Tryz = 1 Attempt = int(raw_input("Please enter the number of attempt you want: ")) Guess = int(raw_input("Please guess the the number: ")) while Attempt != Tryz and Guess != Number: Tryz += 1 if Guess < Number: Guess = int(raw_input("Try a higher number: ")) else: …

Member Avatar for fonzali
0
244
Member Avatar for cussel

hi all, i'm difficult to get values array condition: 1. if value only one get values 2. if value same then get value with index or key most high 3. if value same and key most high get all example: $data = Array(Array ("1" => "12306") , Array ("0" => …

Member Avatar for cmps
0
359
Member Avatar for ant1vanden

Hi, I'm learning python and I'm having a bit of a problem sorting dictionaries. I'm getting dictionaries that look something like this: {'usain': [2, 52], 'tyson': [1, 11], 'carl': [3, 110]} which follows the format {'name': [score,time]}. I want to get a list of the names sorted by the highest …

Member Avatar for vegaseat
0
171
Member Avatar for gahhon

public static void Confirmation(string message) { // Cleans the message to allow single quotation marks string cleanMessage = message.Replace("'", "\'"); string script = "<script type=\"text/javascript\">var confirmation=this.document.getElementById('hfConfirmation'); if(confirm('" + cleanMessage + "'))confirmation.value='Yes' else return confirmation.value='No';</script>"; // Gets the executing web page Page page = HttpContext.Current.CurrentHandler as Page; // Checks if the …

Member Avatar for gahhon
0
326
Member Avatar for bradley1234

If I input an arbitrary amount of points [x1,y1].....[xn,yn] into a function I need to somehow return/print the shortest distance between all of the points. I understand how to find the distance between two points (fairly easy and straight forward), but how do I take an arbitrary amount of points …

Member Avatar for vegaseat
0
188
Member Avatar for anisha.silva

Hi, How do i debug an eclipse plugin project? When I go to the MANIFEST.MF file- > Testing section - > Launch an Eclipse application in Debug mode,it starts debuggin the worspace code. I havent any breakpoints in the workbench code. how to i avoid this. appreciate a response thanks

Member Avatar for anisha.silva
0
235
Member Avatar for j.rf

No idea how to get my scatter plot to talk to my colorbar. I have taken endless approaches and consulted every forum all to no avail. I am either very close or nowhere near, surly this should only be a one or two liner?? Please help. import matplotlib.colors as cols …

Member Avatar for j.rf
0
414
Member Avatar for Benjamin_4

i want to get the value for Accumulation but it returns no value. Any help with resolving it will be appreiated private double getAccumulation(){ double Accumulation = 0; double Monthly_Depreciation; int Estimated_Useful_Life = 5; double Cost_Of_Acquisition = 2000; double Estimated_Residual_Value = 500; try{ Monthly_Depreciation = (Cost_Of_Acquisition - Estimated_Residual_Value)/Estimated_Useful_Life; Accumulation += …

Member Avatar for Benjamin_4
0
330
Member Avatar for toniann.midori

I want to add numbers to an array using scanf What did i do wrong? it says expected an expression on the first { in front of i inside the scanf... void addScores(int a[],int *counter){ int i=0; printf("please enter your score.."); scanf_s("%i", a[*c] = {i}); }//end add scores

Member Avatar for deceptikon
0
306
Member Avatar for castajiz_2

The thing that i don t understand here is how can you put a FUNCTION that hasn t yet evaluated into a integer(will evaluate later but at the moment of the recursion it hasn t) into a int variable? Once n equals 0 the int smallResult will get populated but …

Member Avatar for L7Sqr
0
152
Member Avatar for Violet_82

Hi all, as much as I don't like the API, it is becoming more and more important for me to start using it. I think I might need a guide of some sort which says what's what and what's where, if anybody has one please let me know. Today I …

Member Avatar for JamesCherrill
0
150
Member Avatar for saurav2007

#include<iostream> using namespace std; int &fun() { static int x = 10; return x; } int main() { fun() = 30; cout << fun(); return 0; } Output is 30 why not 10? please explain me the concept of Lvalue.. Thank you in advanvce.

Member Avatar for Ancient Dragon
0
280
Member Avatar for profmuluka

1. You need a text editor i suggest notepad++ ( http://notepad-plus-plus.org/ ) 2. You need a color picker i sugest pixie by Nattyware ( http://www.nattyware.com/pixie.php ) 3. Learn how to code at w3chools.com i suggest you start with the html tutorial (http://www.w3schools.com/html/ ) and the css tutorial at ( http://www.w3schools.com/css/ …

Member Avatar for minitauros
0
196
Member Avatar for nikolaos

In the following example two threads share int counter. The increment_thread thread increases counter by one . The decrement_thread thread decreases counter by one . I use semaphore to control access to counter instead of making the two methods synchronized. Is this the proper way of using semaphore? When should …

Member Avatar for nikolaos
0
390
Member Avatar for kyle937

does anyone know how to make a website that has a background that changes every time you go to the home page just like the tumblr home page.

Member Avatar for profmuluka
0
570
Member Avatar for nitos

hi i have msflexgrid with 4 columns; date, Name, Agent and Amount. Am looking for help on how i can show totals on the amount column to show below the last figure on the amount column.. i will appreciate any suggestion or help thanx

Member Avatar for Sunil_11
0
1K
Member Avatar for kelvin.njuguna

ou have been tasked to write a program that takes two complex number and return theie sum.However the + operator will not worl with complex numbers and you figure you need to verload the + and the assignment opeartor=.Ypu have come across the program (http://wwww.cprogramming.com/tutorial/operator_overloading.html) implement it and the client …

Member Avatar for Schol-R-LEA
0
298
Member Avatar for NextCom

I'm using jQuery contains to show records in a page that contains information that matches a search field. This functions works very well, a bit too good actually... The challenge is that it also searches for matching words in SELECT elements that is inside the table column. $(this).find('td:nth-child(2)').each(function () { …

Member Avatar for paulkd
0
460
Member Avatar for josiahemmy

Dear Programmer, I was asked to develop a console programme that reads an integer n and a list of up to 5 divisors (also integers) from the console and computes the sum of all integers up to (but excluding) n which are divisible by any of the five divisors. For …

Member Avatar for pitic
0
165

The End.