64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for isendre

I am required to create a function that returns a list of all instances of single characters in 'text' that immediately follow 'last'. For example... def follow_char(text,last): """ >>> follow_char('as we consider the operations', 'co') ['n'] """ I think I am required to solve this using linked lists but am …

Member Avatar for isendre
0
74
Member Avatar for phoenx

Like a slot machine how can I see the movement of numbers and will stop 1 by 1..anyone know how to do it? [CODE] import java.awt.*; import java.applet.*; import java.lang.*; public class Lotto1 extends Applet { public int n1,n2,n3,n4,n5,n6; void button1_Clicked(Event event) { n1=(int)(53*Math.random()+1); n2=(int)(53*Math.random()+1); n3=(int)(53*Math.random()+1); n4=(int)(53*Math.random()+1); n5=(int)(53*Math.random()+1); n6=(int)(53*Math.random()+1); textField1.setText(Integer.toString(n1)); …

Member Avatar for phoenx
0
213
Member Avatar for phorce

Hello, I'm trying to create a script that counts the number of people in an array by using a variable called "counter" I am using functions to display the information, however it won't display.. [code] <?php function main() { $people = list_people(); echo 'There are currently: ' . $counter . …

Member Avatar for phorce
0
120
Member Avatar for vishal1949

I am making a project using windows form application. i made two other window forms (vehicle.cs and Input.cs). i want to obtain the value from the textbox in input.cs and use it in vehiicles.cs. is There any way to do this. I am trying to make a for loop but …

Member Avatar for vishal1949
1
177
Member Avatar for bhavna04

guys...i m trying to make a simple program to input 3 nos n print their all combinations(......plz help!!!.... thanx...:)

Member Avatar for bhavna04
0
78
Member Avatar for Naveed_786

Here is the code which is working fine for me on another form but creating problem when i use the same code on another form it gives me this error message when i try to insert a new record in DB "Value cannot be null Parameter name: Data Table" and …

Member Avatar for Naveed_786
0
607
Member Avatar for AshfaqueIW

Hi all, I came across some vector problem recently. Below is my code. std::vector<int> MyBuffer(10); for(int i=0;i<10;i++) MyBuffer.push_back(i);//First 10 elements are zero and after index 10 i getting stored. Why the behaviour if like this if i provide size during Declaration. I want to know what will be the difference …

Member Avatar for Zvjezdan23
0
181
Member Avatar for james6754

Does anybody think that in the future professional development will be done on other platforms using MonoDevelop? Therefore making C# multiplatform.

Member Avatar for Ketsuekiame
0
121
Member Avatar for vizz

I am using following code to UPDATE database and upload file. It updates fields in database name,email,phone. But query does not work for photo field. It gives error. And considers [COLOR="Red"]'$pic'[/COLOR] as empty. Help Plz. Database [CODE]CREATE TABLE employees (name VARCHAR(30), email VARCHAR(30), phone VARCHAR(30), photo VARCHAR(30)) [/CODE] [CODE]<?php //This …

Member Avatar for vizz
0
5K
Member Avatar for end3r

Hi, As the title states, I have a query that I use to concatenate all the rows into a single string and I use the XMLTransform method to accomplish that but I still need to add a new line separator within the XML string and so far I didn't find …

Member Avatar for end3r
0
869
Member Avatar for ba.accounts

Hi, Just wondering if anyone has any example of reading data from a file and storing it into an uneven 2D array. For example: the file contains [a,b,c] [a,b,c,d] [a,b,] etc I am able to do this with a complete "square" or matrix but when the columns aren't even I'm …

Member Avatar for ba.accounts
0
2K
Member Avatar for manish250

Hi all i am new to web service.I am getting this exception on my server which is RHEL 5.5 [B]error Failed to access the WSDL at: [url]https://172.30.17.141:5010/SecureWebService/ActiveCampaignDetailsSecure?wsdl[/url]. It failed with: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target. [/B] I have imported the …

Member Avatar for manish250
0
249
Member Avatar for opawix

:twisted: guys can some1 give me hints to solve this? any help will do. thank you. make a program display a lowercase vowels using do while loop: heres my code: [CODE]char letter; { do{ cout<<letter; } while((letter!='b')||(letter!='c')||(letter!='f')||(letter!='g')||(letter!='h')||(letter!='j')|| (letter!='k')||(letter!='l')||(letter!='m')||(letter!='n')||(letter!='p')||(letter!='q')|| (letter!='r')||(letter!='s')||(letter!='t')||(letter!='v')||(letter!='w')||(letter!='x')|| (letter!='y')||(letter!='z')) }[/CODE] heres my code but it won't work!

Member Avatar for opawix
0
146
Member Avatar for Mona Ali

I have stared the work to insert the data in the database from php file. Database connection is established successfully but data is not inserted in the database. Some sort of error like "Error: Column count doesn't match value count at row 1" occurs. Our database name is request_license, table …

Member Avatar for coolest_987
0
3K
Member Avatar for keshvari

Hello I am trying to write a matrix calculator but I have some problems.I use cofactor method for calculation.If you don't know the this method you can learn it here easily: [URL="http://paulbourke.net/miscellaneous/determinant/"]http://paulbourke.net/miscellaneous/determinant/[/URL] I use two function 1- GetMinor() 2- matrixCofactor() that the first one give me the minor matrix and …

Member Avatar for keshvari
0
1K
Member Avatar for ZER09

hi, to all i was thinking how i can create a class that the connection string will be stored there. now i have 4 files the teamSystem.java, login.java, and main.java, and connect.java. the connection string should be written on the connection.java, now i want that other 3 files should communicate …

Member Avatar for ZER09
0
189
Member Avatar for wfray

The iPage ISP places limits on sending emails (200 in 1 hour 2000 in 1 day). I've built a PHPMailer application for a small retirement club that needs only to send out about 250 emails twice per month. iPage will not budge on allowing this to occur. They purport it's …

Member Avatar for TrustyTony
0
875
Member Avatar for hqt

I am trying to use Code::Block, But I still get some problem like when I'm using DevC++. In Watch Windows, I want to see A array. (example: int A[5][5]). but in debug windows, I will appear from top to down: [CODE]A[1][1] A[1][2] ... A[5][5] [/CODE]This style is to difficult for …

Member Avatar for hqt
0
356
Member Avatar for violette

can anyone help me why are this thread occur 1.[OleDbException (0x80004005): Not a valid file name.] 2.what is exception stack trace? thank you =)

Member Avatar for violette
0
575
Member Avatar for Labdabeta

I know that this [ICODE]#define QUOTE(X) #X[/ICODE] turns X into a c-string version of whatever is passed to it. my question is if there is a way to do this in reverse ie: [ICODE]#define DEQUOTEANDCALLFUNCTIONORCLASSWITHGIVENNAME(X) (X#)()[/ICODE] is this possible?

Member Avatar for mike_2000_17
1
183
Member Avatar for RenanLazarotto

Hello guys! Its been a very long time since I don't show up here. Now I am back with a small project for internal use, but I need a little help. I want to make a program that allows me to change file attributes, like 'hidden', 'read-only' and 'system'. It …

Member Avatar for RenanLazarotto
0
120
Member Avatar for J-Dub

Sometimes when I run a program that I am writing in NetBeans, it runs old code or something. It want do what I just put in. Instead it will run past code. I will get a bug in the program I am writing and when I fix it. It still …

Member Avatar for lashbandi
0
131
Member Avatar for boywonda1

hey all.. I'm [U]new[/U] to VB.net and i wanted to find out how i could load the names of files(in a specified dir) into a combobox? I knw i should have posted code..but i only have an idea as to what should happen. correct me where i'm wrong. 1. get …

Member Avatar for lolafuertes
0
1K
Member Avatar for singh_soorma94

I making a program. I know most of it just need help with the number generator. I want it to occur the number of times inputted.

Member Avatar for skatamatic
0
152
Member Avatar for Clanstrom

Hi there, since recently i have been trying to master HTML, and now i am full ready to take on PHP therefore, just like HTML instead of making many .html files | i want to use the PHP dynamic page function that can show me pages from database. usually as …

Member Avatar for Clanstrom
0
597
Member Avatar for zachattack05

If I have SQL authentication enabled, and a user (UserA) on a database has permission to delete rows on TableA, but not TableB, and there is a relationship between TableA and TableB, can UserA successfully delete a record on TableA and have the changes (based on relationships set up) cascade …

Member Avatar for zachattack05
0
118
Member Avatar for Jon BH

Hi It might sound strange but can I simplify it !! I have only one variable for input which is diameter of a circle in millimeters. This ultimately converts into a Guage value as in gun barrels. I can do this in Excel but haven't much of a clue about …

Member Avatar for Jon BH
0
200
Member Avatar for jaycastr

Hey guys, I am writing a web application in asp.net using c sharp. I have a web page that lets the user create a program. In this system a program is made up of many applications and an Application can belong to many programs hence a many to many relationship. …

Member Avatar for jaycastr
0
156
Member Avatar for Srin

I need to instantiate a class during runtime based what a user has selected in a list, but these classes each have their own new specific functions and variables, they use the same named functions, but set different variables, and different numbers of variables. I made an example, since my …

Member Avatar for JamesCherrill
0
297
Member Avatar for Buppy

Hi, I have a jQuery event [CODE] $('#msg-text').keyup(function() { $('#msg-chr-remaining').html('Remaining characters: '+(255-$('#msg-text').length)); }); [/CODE] The problem is it fires only once - the first time. Anyone knows why? Thanks

Member Avatar for stbuchok
0
89
Member Avatar for devindamenuka

hi all, i am new to php. i am developing a login where i compare encrepted password and set session to the user and login to the system. but I need mote to do with this. I need to know how to lock IP if a user try more than …

Member Avatar for sDJh
0
112
Member Avatar for sirlink99

I am trying to save an image with this line [CODE]ImageIO.write(image, "JPG", new File(fileDestination.getText()));[/CODE] but it is giving me an error. [CODE] java.io.FileNotFoundException: C:\Users\Adam (Access is denied) at java.io.RandomAccessFile.open(Native Method) at java.io.RandomAccessFile.<init>(Unknown Source) at javax.imageio.stream.FileImageOutputStream.<init>(Unknown Source) at com.sun.imageio.spi.FileImageOutputStreamSpi.createOutputStreamInstance(Unknown Source) at javax.imageio.ImageIO.createImageOutputStream(Unknown Source) at javax.imageio.ImageIO.write(Unknown Source) at screenCapture.CaptureScreen.actionPerformed(CaptureScreen.java:111) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) …

Member Avatar for NormR1
0
319
Member Avatar for Prankmore

I am trying to take a user input phone number and perform calculations on it as an integer of type long long. I've tried this but it only reads the first 3 numbers then when it reaches the hyphen it stops. [CODE=C] printf("Enter Number: \n"); //get input from user count …

Member Avatar for Prankmore
0
3K
Member Avatar for Barefootsanders

Hey everyone. I've been trying to install my own webserver on my computer along with PHP and MySQL. I thought I installed everything correctly but I just uploaded my first script and NONE of the PHP seems to be working. I'm running apache v2.0.x, the latest version of MySQL and …

Member Avatar for Talrod
0
222
Member Avatar for MrCapuchino

Hello, I haven't found a solution to this problem but I think it has to be something very simple. I have an asp:Textbox in my page that fills with text from a database on page_load, this works fine, the thing is that if I change the text and click in …

Member Avatar for MrCapuchino
0
370
Member Avatar for cocoll

hello! i just need your opinion or explanation on that question: can we use socket in chat application in asp.net? because any chat application can be implemented on couple of ways,so when we say socket we say windows application but no web application,because we have the server and clients. so …

Member Avatar for cocoll
0
92
Member Avatar for winonus

I am using OpenWatcom to code C++ for interest, and I am in search for better compilers. OpenWatcom doesn't have string input and output operators overloaded, I always have to use workarounds. Can anyone name some [COLOR="#ff0000"]standard[/COLOR] compilers which compile and link [COLOR="#ff0000"]pure DOS exectables[/COLOR] for me?

Member Avatar for winonus
0
119
Member Avatar for moneypro

#include<iostream> using namespace std; class area { double dim1, dim2; public: void setarea(double d1, double d2) { dim1= d1; dim2 = d2; } void getdim(double &d1, double &d2) { d1 = dim1; d2 = dim2; } virtual double getarea() { cout<<"You must override this functionn"; return 0.0; } }; class …

Member Avatar for moneypro
0
179
Member Avatar for sim_pack

hi, i have a JButton object and i added an actionListener to it. it works well with a mouse click, but if use the keyboard enter key while the focus is on the JButton, nothing happens. do i need to add a keypress listener on top of the actionListener to …

Member Avatar for mKorbel
0
470
Member Avatar for Ichcha

the following code gives first date of week for the given date range. how to get week number from the date??? thanks. [CODE]<?php $start = $week = strtotime('2011-01-01'); $end = strtotime('2011-02-01'); while($week < $end) { echo date('Y-m-d',$week), PHP_EOL; //echo week num??? $week = strtotime("+1 week", $week); } ?>[/CODE]

Member Avatar for Ichcha
0
106
Member Avatar for TheNinjaForce

I want to make a game in flash but I have no clue to start, I need a step by step tutorial, can someone help? ps: I would prefer to make a rpg.

Member Avatar for sothostha
0
160
Member Avatar for Nicko_FaTe_

Hi i have a task to stores marks for students, a struct is used to store this. the thing giving me trouble at the moment is how to read and store a floating point number within a struct, the data specifically for the mark is on 1 line of a …

Member Avatar for Nicko_FaTe_
0
163
Member Avatar for Silent-Regret

As the thread states, I'm curious as to how I could come across this. I can open the file with an OpenFileDialog, or edit it while it's in process, but not open it, edit a memory address, then resave it. Mainly because I have no idea what it'd be called …

Member Avatar for Silent-Regret
0
255
Member Avatar for violette

hello guys. i would like to ask ur opinion on how to solve my problem. i would like to add a new column that will generate autonumber to the existing datagrid. based on my research i got from google, i only manage to create the new column(but it is empty). …

Member Avatar for violette
0
163
Member Avatar for Jaklins

This is a very newbie post. I think I'm just missing something. Anyway. I'm trying to display the contents of one column's field (not column name) specified by the contents of another filed in the same row. Here I show you my table and what I need: [code] Enter password: …

Member Avatar for Jaklins
0
203
Member Avatar for halien

Hi all, I am trying to write a list of complex numbers to a csv file. The list looks like: [QUOTE] cpl1 = [(-6.4703169037894082e-12-2.7429131015110908e-12j), (-9.0688415110840026e-11+1.7513018812920222e-11j), (-1.8522787470498514e-10+1.3074128585310874e-11j), (-5.8563154325952382e-10-6.4430377699764563e-10j), (2.1451734832922398e-10-9.987741744765799e-10j), (2.9095870157647141e-10-6.3227384439201728e-10j), (1.9448214150230569e-09+5.1612969453884716e-10j)] [/QUOTE] The complex numbers are to be written to file to look like: [QUOTE] real, imaginary, real, imaginary, real, imaginary, …

Member Avatar for bvdet
0
274
Member Avatar for lashbandi

Hi everyone... My boyfriend's birthday is on Saturday, August 13...and i wanted to do something really different this time...since we are 1,000 miles apart...i was thinking if i could write a program which would generate random messages which I would already have written in the code... i was thinking of …

Member Avatar for sirlink99
0
282
Member Avatar for megachip04

this is the code to email confirm. The user clicks on the link in the email, passing the code through url to this page. Then the data is transferred from a tmp table to main one. I have queried in phpmyadmin and it works fine. But when i actually use …

Member Avatar for rv1990
0
194
Member Avatar for CSharpUser

First, I want to admit I am totally new at Linq queries. Your help and patience are GREATLY appreciated! I am trying to perform a query on a loaded XML document with the code below, but no matter what I try, I continually get an unhandled NullReferenceException error: [CODE] XDocument …

Member Avatar for CSharpUser
0
455
Member Avatar for rosiec

I have some code-behind and I am running in to an error. I am still very new to ASP.NET so I am having difficulty figuring out the "identifier expected" error. Here is my code: [CODE] Partial Class Comments2 Inherits System.Web.UI.Page Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) …

Member Avatar for rosiec
0
449

The End.