199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jeets1892

I am currently working on a dice game. Where The user rolls a pair of dice first, so lets say he rolled and Dice 1 = 2 and Dice 2 = 3. So the total is 5 now. Now, he needs to get 5 (total) again in order to win, …

Member Avatar for WaltP
0
456
Member Avatar for Susmita_Sikder

Hi all, I want to get a cookies value from one .aspx.vb page to another .aspx.vb page.but i can not get it. i give the code bellow: This is in:(webForm2.aspx.vb):in this page I set the Cookies value webForm2.aspx.vb (code): Protected Sub ImageButton1_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs) Handles …

Member Avatar for G_Waddell
0
624
Member Avatar for Dendei

using System.Text; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { Cassandra myObject = new Cassandra(); string a ="söt"; myObject.hejsan(a); System.Console.WriteLine(a); Console.ReadLine(); } } class Cassandra { public string hejsan(string value) { value +="Cassnadra"; return value; } } } how come this wont work? all i get is …

Member Avatar for Dendei
0
172
Member Avatar for Dendei

hey i want to return my whole string array but the program wants me to specify one public string CreateCards( string[] Cards) { Cards = new string[52]; for (int a = 0; a <= 51; a++) { if (a <= 12) { Cards[a] = " Hjärter " + (a+1).ToString(); } …

Member Avatar for Dendei
0
319
Member Avatar for gelmi

Hi, can someone help me about this problem or suggest some pseudocode? if i input this numbers 12 ,24, 100 output should be YES, YES, YES i'm confused in writing the solution in code.

Member Avatar for NormR1
0
141
Member Avatar for bcd16

Hello, i need your help. Does anybody knows the code for automatically records who logged in and the other users cannot edit what they have inputed, only the datas they input can be edited? i have the log in form already, and the database as well. the only problem is …

Member Avatar for bcd16
0
281
Member Avatar for Alexkid

Hi There, I need to re-write any mention of .tellg() in my code as the function is not supported on the desired hardware. I have the following lines of code: getline(file,line); { std::istringstream stream(line); stream >> first >> second >> third >> forth; UINT32 file_pos = stream.tellg(); file_pos++; fifth = …

Member Avatar for vijayan121
0
756
Member Avatar for triumphost

I'm learning several languages. 5 at once but I took a liking to one specific feature of java. The This keyword. From their tutorial: /*Within an instance method or a constructor, this is a reference to the current object — the object whose method or constructor is being called. You …

Member Avatar for mike_2000_17
0
493
Member Avatar for akuvidz

why does my jquery didnt shown? this is my header code, i'm using CI to code it. <html> <meta charset="utf-8"> <head> <link rel="stylesheet" type="text/css" href="<?=base_url()?>assets/css/style1.css"> <link rel="stylesheet" type="text/css" href="<?=base_url()?>assets/css/jquery-ui-1.8.23.custom.css"> <script src="<?=base_url()?>assets/js/jquery-1.8.1.js"></script> <script src="<?=base_url()?>assets/js/jquery.js"></script> <script src="<?=base_url()?>assets/js/jquery-1.8.0.min.js"></script> <script type="text/javascript"> $(function() { $("#tabs").tabs(); }); </script> </head> <title><?php echo $title?></title> <body class="colAbs"> <div id="header"></div> …

Member Avatar for brandonrunyon
0
132
Member Avatar for equation

Hi everyone! I have a problem with a program - game of craps. The game plays with 2 dice. On the first roll the player wins if the sum of the dice is 7 or 11. The player loses if the sum is 2.3 or 12. Any other roll called …

Member Avatar for WaltP
0
2K
Member Avatar for lewashby

File "/usr/local/lib/python3.2/distutils/archive_util.py", line 52, in make_tarball tar = tarfile.open(archive_name, 'w|%s' % tar_compression[compress]) File "/usr/local/lib/python3.2/tarfile.py", line 1769, in open stream = _Stream(name, filemode, comptype, fileobj, bufsize) File "/usr/local/lib/python3.2/tarfile.py", line 421, in __init__ raise CompressionError("zlib module is not available") tarfile.CompressionError: zlib module is not available garrett@toshiba-laptop ~/Desktop/nester $ I'M getting the above …

Member Avatar for lewashby
0
170
Member Avatar for Khav

Hi I am developing an image hosting website.I want images uploaded to go to another server , not the one where the script is hosted.For e.g i want images to be uploaded to http://i1.mysite.com instead of http://mysite.com/uploads Suppose i have this code to upload file to server <form action="http://mysite.com/upload" method="post" …

Member Avatar for Khav
0
1K
Member Avatar for prisacariualex

Hello guys or girls. I have copied from http://davidwalsh.name/backup-mysql-database-php and i have the next error: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/a6704458/public_html/backup_cr.php on line 18 And this is the code: <?php include("/home/a6704458/public_html/password_protect.php"); ?> <?php include("database/database.php"); backup_tables($mysql_host,$mysql_user,$mysql_password,'*'); /* backup the db OR just a table …

Member Avatar for prisacariualex
0
187
Member Avatar for extjac

What's your recommendation for PHP MVC frameworks?? i tested Codeigniter and it seem easy to use.... I am not a full time developer, but I do have some customers with backends, etc…My intention is to migrate some of old php code to PDO but I am now wondering if I …

Member Avatar for jkon
0
198
Member Avatar for poojavb

Hello, I want to implement Change Listener in the Action Listener of a Button I have a color graph chooser and 2 buttons...Apply and Cancel to select the color of the color chooser i have implemented the Change Listener but I want the change listener to act on the Apply …

Member Avatar for poojavb
0
570
Member Avatar for ragnacrap

I got a problem in a program I'm working on here: String[ ][ ] applicant = new String[appno][2]; for (i = 0; i < applicant.length; i++){ System.out.println("Input applicant's name: "); appname = keyboard.nextLine(); applicant[i][0] = appname; System.out.println("Input applicant's position: "); apppos = keyboard.nextLine(); applicant[i][1] = apppos; } The input works, …

Member Avatar for NormR1
0
146
Member Avatar for Gus_19

New to .net and programming in general. With help from a friend, I just finished my first program, but with one somewhat small issue. Currently, I have a Winform for the user to enter data into. The form is divided up into 4 tabs. When the user finishes entering data, …

Member Avatar for Reverend Jim
0
151
Member Avatar for sss93

Ive been handed a project for my studies asking me to make a ordering system for a theoritical restaurant. The system itself will run on a stand alone machine (platform not specified). The system requirement itself isnt too tedious, listing them down: * When an order is created, its status …

Member Avatar for deceptikon
0
184
Member Avatar for murtazamzk

[CODE]<html> <script> function startEQ() { quake=5; parent.moveBy(0,quake); parent.moveBy(0,-quake); parent.moveBy(quake,0); parent.moveBy(-quake,0); timer=setTimeout("startEQ()",10); } function stopEQ() { clearTimeout(timer); } </script> </head> <body> DEMO IT HERE <form> <input type="button" onclick="startEQ()" value="Start an earthquake"> <input type="button" onclick="stopEQ()" value="Stop the earthquake"> </form> </body> </html>[/CODE]

Member Avatar for murtazamzk
0
285
Member Avatar for Squidge

hi all, I have a scrap working but it also brings the restred trade mark. I have permission from the company to do this. How do i strip these out? // get simple_html_dom from http://simplehtmldom.sourceforge.net/ include_once('simple_html_dom.php'); // @todo change $url for form input $url = ""; $html = file_get_html($url); // …

Member Avatar for Squidge
0
366
Member Avatar for nada_fateha

Hi , I try to build mobile application , this application will know the book name you want and tell you price and Customer Reviews evaluation from amzon.com but the problem I can not read web page to get price and Customer Reviews evaluation from it by c++ code , …

Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for MMadhavi

I have one table named as movie. which contains fields like movie_id, movie_name etc. I want that movie_id in my drop down list. so i have to retrive that data from movie table. I tried my best but i dont get success in this. plz help me to retrive data …

Member Avatar for rpv_sen
0
440
Member Avatar for cjquines

Hello, new to python a bit. I get an indentation error at line 10, "m -= 1". Sorry if this is a repeated post, I've tried searching but found no solution. # calculates sum of squares of natural numbers print "Enter number of terms." n = raw.input("Terms? ") first_term = …

Member Avatar for want_learn
0
108
Member Avatar for dhada18

1. Design and develop a simple Student Registration Program to record the data related to the students. The user will enter the name, surname and age information of the student to the textboxes provided. The gender of the student will be initialized by using option buttons, since there are only …

Member Avatar for AndreRet
0
164
Member Avatar for alleybye

Hi, I have a problem on getting data from XML file. I am honestly have 0 knowledge on this. Here is the XML data content, i opened the XML file using notepad then pasted here. <?xml version="1.0" encoding="utf-8"?> <?mso-infoPathSolution name="urn:schemas-microsoft-com:office:infopath:Test-Form:-myXSD-2012-09-02T13-13-23" solutionVersion="1.0.0.55" productVersion="14.0.0.0" PIVersion="1.0.0.0" href="http://share.test.com/it/Test%20Form/Forms/template.xsn"?> <?mso-application progid="InfoPath.Document" versionProgid="InfoPath.Document.3"?> <my:myFields xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:pc="http://schemas.microsoft.com/office/infopath/2007/PartnerControls" …

0
142
Member Avatar for kshahnazari

Im really new to php so sry for my small answer ? Im reading a book about it and what things this two are ? and what they do ? Numbers_roman::tonumeral($year); and require_once("numbers/roman.php") will be thankfull if a person answers this question

Member Avatar for phorce
0
324
Member Avatar for habenero

This is what I want to do; I would like to generate some files (csv) with VB. For example for my fantasy sports teams I keep track of the teams stats, lineups and standings. All 3 for 24 weeks. So if I could generate (CSV) files such as filename-homers_lineup_wk_1 (CSV). …

Member Avatar for AndreRet
0
282
Member Avatar for rahul.ch

int [] ia1 = {1,2,3}; int [][] ia2; Object o = ia1; ia2 = new int [3][3]; ia2[0] = (int[])o; ia2[0][0] = (int[])o; Answer is "Compilation fails in last line" Explanation: Arrays are objects, and that each array dimension is a separate type. So, for instance, ia2 is of type …

Member Avatar for stultuske
0
212
Member Avatar for HibaPro

"SqlDbType.Time overflow. Value '3.00:00:00' is out of range. Must be between 00:00:00.0000000 and 23:59:59.9999999." Does anyone know what is the problem.

Member Avatar for G_Waddell
0
190
Member Avatar for czxzxcXZ

Hi sorry to bother you. I have another problem with XSL file. I have to sort out the codes in numerical order the codes have four characters and four numerals for example, COMP2100 COMP2400 COMP3410 LAWS2202 LAWS2250 when I just do <xsl:sort select="code" order="ascending" /> it displays above result. However, …

Member Avatar for Mike Askew
0
125
Member Avatar for Hakoo

Hello All, I want to create new pop window like this site have while login. How can I do this? Thanking you, Hakoo Desai.

Member Avatar for sunnivasa
0
612
Member Avatar for kipslem

Hi All, I have intermediate knowledge in VB.Net coding. I have searched the web to find help with my issue but to no avail. I mean I can't find one that is helpful though there are some in Web based applications. I have an urgent issue where I want to …

Member Avatar for G_Waddell
0
684
Member Avatar for soujanya.bhat.184

Hi.I have written this code which capitalizes 1st character of each word in the string.All other letters of the word has to be in small letter.But i am not getting desired output.Plz tell me where i am going wrong.. #include<stdio.h> int main(void) { char string[]="hI i aM sOujanYa"; char string2[20]=""; …

Member Avatar for soujanya.bhat.184
0
171
Member Avatar for Dendei

hey i have a question how do i get my funktion to work in the design.cs? namespace Visma_projekt { public class BlackJack { public string[] Cards = new string[51]; public void SkapaKort() { System.Console.WriteLine("Ehhhh"); } } } i want to call the funktion from this code visma.cs into the form1 …

Member Avatar for Dendei
0
100
Member Avatar for daino

I'm trying to understand something. Best explained through an example. My understanding is that a Class Adapter (lets say written in C++) is for a class written in PHP (hypothetical). C++ - Class A - Adapter PHP - Class B - Adabtee. If I'm trying to access Class B through …

Member Avatar for daino
0
209
Member Avatar for matiqueen

Hi guys, i'm new here. First of all, i'm from Argentina... So maybe my english is a little crappy I'm developing a page with login. I uploaded it to a hosting with no poblem... But when i want to create a stored procedure an error appearse. I've searched on web …

Member Avatar for smantscheff
0
199
Member Avatar for lscamaro

Okay, I want to start off saying that yes this is a homework assignment but no I don't just want the answer for it. I actually want to learn how to work this. Having said that, I was assigned to determine whether a number is a perfect number and print …

Member Avatar for np complete
0
274
Member Avatar for pranay1995

hi all: i am trying to use this code to login to members area but everytime i try to login with a registered user it redirects to the registration page please help. below is the code: <?php session_start(); $uname="root"; $pword=""; $host="localhost"; $database="spl"; $Username=$_POST['Username']; $Password = MD5($_POST['Password']); $_SESSION['Username']=$Username; mysql_connect("$host", "$uname", "$pword")or …

Member Avatar for pranay1995
0
209
Member Avatar for jj007

Hi I have used Curl to obtain a webpage (stored in a variable called $result). Within this webpage I just want to obtain specific content that is within a certain DIV tag. Here is the part of the page that contains the DIV tag that I am interested in: <div …

Member Avatar for diafol
0
222
Member Avatar for vimalya

ihave a file containing data in the form of table with 5 columns and 10 rows the columns are separated by spaces . i have a to read the file line by line without reading the first line which is the header line.Please suggest me the code using python technology

Member Avatar for vimalya
0
164
Member Avatar for drogba123

Hi guys, I tried to get each line of the text file and convert it to SHA-1 formart then to binary but i could not get the output when i tried to do system.out.println the code: package hash; import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.util.Formatter; import java.io.*; import java.security.DigestInputStream; import java.util.logging.Level; …

Member Avatar for drogba123
0
471
Member Avatar for navya.shalini

How to compare a value which is taken from JTextField with the database value???

Member Avatar for navyashalini
0
74
Member Avatar for ajay.motah
Member Avatar for ajay.motah
0
161
Member Avatar for newcoder310

Hi, My database is showing null value when I try to insert the file path I upload. protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); String name=request.getParameter("fileUpload"); String destPath = ""; String relativeDestPath=getServletContext().getRealPath(destPath); System.out.println("Relativepath is"+relativeDestPath); PrintWriter out = response.getWriter(); String fileName=name.substring(name.lastIndexOf("\\")); String pathName=name.substring(0,name.lastIndexOf("\\")); String destName = relativeDestPath+fileName; …

Member Avatar for newcoder310
0
117
Member Avatar for JohnKelly

Hi all I need to be able to drag and drop multiple files from Outlook into my vb.net application. Using e.data.GetData("FileGroupDescriptor") I can read using an IO.Stream the FileGroupDescriptor and detect the names of the files being dropped. If I then use e.data.GetData("FileContents") using a IO.MemoryStream I can detecty the …

Member Avatar for JohnKelly
0
1K
Member Avatar for Jbvo

I am tring to call the same subroutine several times. The first time it runs it works correctly. Everytime after the first time it doesn't run the subroutine in order. I was wondering if anyone knows how to do this. Here is my current script. @echo off set description=Disabled %date:~4,2%-%date:~7,2%-%date:~10,4% …

Member Avatar for Jbvo
0
172
Member Avatar for RobRTaylor

I hate to ask, but I need some help with code. I don't have any because I don't know where to begin. Here's what I'm after. I have a Sql CE database attached to the app, and a table called DUI_Cite_Numbers. There is two columns, DUI_Cite_Start and DUI_Cite_End. I need …

Member Avatar for RobRTaylor
0
188
Member Avatar for labq5

How to show field/row serial number on detail data report without use data environment? simply view like this |Number|WO Number|WO DATE|ERROR DESCRIPTION|LOCATION|EXECUTOR NAME| ___________________________________________________________________ | [COLOR="Red"]1[/COLOR] |N0.000001|10-01-1| | [COLOR="Red"]2[/COLOR] |N0.000002|10-01-2| | [COLOR="Red"]3[/COLOR] |N0.000003|10-01-3| | [COLOR="Red"]4[/COLOR] |N0.000004|10-01-4| | [COLOR="Red"]5[/COLOR] |N0.000005|10-01-5| ___________________________________________________________________

Member Avatar for nihar1989
0
1K
Member Avatar for triumphost

Is there a way to do the following better? Current I write a set of pixels to a file called "PngFile.bmp". Then I read that file back in as a PNG encoded buffer.. Then I save that buffer back to the harddisk and delete "PngFile.bmp" /*std::fstream PngFile(TempPath, std::fstream::out | std::fstream::app …

Member Avatar for triumphost
0
2K
Member Avatar for minimee120

I'm trying to learn how to write code in order to find the average of numbers I enter in my program, as well as every time I enter a number it records how many I have typed in, and finally the sum of all the numbers I have entered each …

Member Avatar for NormR1
0
248

The End.