64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for parsifal67

Hi friends !! I'm neophite about python, my target is to create a programa that find a specific string in text file. How can do it? Thanks fel

Member Avatar for mitsuevo
0
257
Member Avatar for lukeser

Whenever I create a new database from a C# program and create tables for that database, the tables always show up under the creator's default database instead of being listed under the newly created database. This observation is from Microsoft SQL Server Management Studio Express. Is there some setting in …

Member Avatar for lukeser
0
205
Member Avatar for VIPER5646

HI I'm trying to use a menu on a datagridview, I have put a Contextmenutrip on the form. When I right click in a cell I would like a menu to pop up. but nothing happens. This is the code I have tried. [CODE] Private Sub CustomerPopMenu_ItemClicked(ByVal sender As Object, …

Member Avatar for VIPER5646
0
197
Member Avatar for Judgment

1. I need to make a program that creates a list that contains the first n perfect squares. All I know is that it starts with n = int(raw_input("How many squares? ")) and ends with print squares An example of how this program should work is: How many squares? 5 …

Member Avatar for vegaseat
-1
151
Member Avatar for ChaseRLewis

Newbie Here Edit: This is not homework, I am a chemical engineering student and a math minor. I'm doing programming on the side to help me automate certain calculations later in my career. Also always had a healthy interest in programming. I just read the not doing homework for people …

Member Avatar for vegaseat
0
220
Member Avatar for krishna_sicsr

------------------------------------ ----------- --------- ------------------------------------ ----------------------------- ------- PRODUCT KIT TYPE STATE MAINTENANCE REFERENCED BY ------------------------------------ ----------- --------- ------------------------------------ ----------------------------- ------- HP I64VMS ACUXE V6.40-11P09A Full LP Installed HP I64VMS AVAIL_MAN_BASE V8.3-1H1 Full LP Installed HP I64VMS OPENVMS V8.3-1H1 HP I64VMS CDSA V2.3-306 Full LP Installed HP I64VMS OPENVMS V8.3-1H1 HP I64VMS …

Member Avatar for vegaseat
0
168
Member Avatar for muralibobby2015

we have two radio buttons with same name. when we check radiobutton no.of imagefile boxes appear. for example i have two radio buttons. if i check 1 radio button appear 5 image upload fields. now selects another radio button selects then appear only 10 image upload field. anybody help.

Member Avatar for diafol
0
132
Member Avatar for spankboy11

Hi there, I'm assuming the answer to this problem is really easy, but I just can't work out where the problem is. It's driving me insane and I'd really appreciate some help. I'm new to C++. My problem is this: I'm trying to pass a char array to a function, …

Member Avatar for spankboy11
0
165
Member Avatar for shine_jose

Hello i wish to retrieve rows from a table based on a particular column which contains null values in sql2000 server I try ed a lot but its not working please help me.

Member Avatar for sknake
0
142
Member Avatar for glennt

I understood that a string in VB .Net maximum length was quite large (could be way over 1000 characters) but do not know for sure. I keep having a problem when I concatenate one string to another and the result is the second string. Example: Str1 = “this is the …

Member Avatar for kvprajapati
-1
95
Member Avatar for pankaj_sengar
Member Avatar for sanjaypandit

hi friends, again a problem I have a mysql table name tbl_admin fields are below id(int), image1(text), image2 (text) , image3 (text) now i want to show these pics, i use randomly function to display them [code=php] $query=select * from tbl_admin where id=5; $result=mysql_query($query); $row=mysql_fetch_array($result) [/code] now for show i …

Member Avatar for network18
0
555
Member Avatar for babylonlion

Hi guys, I need to display "Java Mug" (in red) inside the mug I created in the following code. I spent hours working on it but couldn't get anywhere. Can you guys help me please? [CODE] import java.awt.*; import javax.swing.*; import java.awt.geom.*; public class DrawJavaMugTest { public static void main(String[] …

Member Avatar for quuba
-1
256
Member Avatar for love_dude1984

hi.. can anybody help me to encrypt/decrypt a string? i want to encrypt a URL along with the parameters... plz let me know if any1 knows some good resources for the same.. thanks..

Member Avatar for Ramesh S
-1
134
Member Avatar for Dryems

Hi guys i have just installed windows 7 on ma pc but failed too configer the IIS "internet information service" in order to enable me run ma asp pages. is iis installed already or not?

Member Avatar for Cruize_Invades
0
107
Member Avatar for manishmannan

Hello Friends I am new to PHP can any one help me i am facing one problem whenever i am working on local host my delete command is working without problem but whenever i am uploading this file on internet through FTP the command not deleting any records Every one …

Member Avatar for manishmannan
0
276
Member Avatar for P00dle

Hi, I am reading data from a file. The data is mostly text, but has a small bit of binary in it, as well as a linefeed at the end of every block of text. Can Python read all of it and write it to another file, while not changing …

Member Avatar for P00dle
0
163
Member Avatar for little marine

I am trying to find a code to clear all text boxes in a form. I am using VB8 Here is the code I found but I get an error telling me I need a comma between two arguments [COde]Private Sub btnclearall_Click Dim ctl As New Control For Each ctl …

Member Avatar for kvprajapati
0
813
Member Avatar for PixelHead777

I swear, those things are like shurikens in these masses... I'm trying to make a loan calculator in python, as part of an assignment. I'm basing it off of two things. 1: [URL="http://www.efunda.com/formulae/finance/loan_calculator.cfm"]This website, which contains 3 different calculators.[/URL] 2: [URL="http://www.efunda.com/math/num_rootfinding/num_rootfinding.cfm#Newton_Raphson"]The link from the second calculator (my current pain)[/URL] I'm …

Member Avatar for woooee
0
229
Member Avatar for HypnotiqBIG

Hi, I have an assignment where i have to write a C and assembly mixed-mode program. [LIST=1] [*]The c program takes in two characters which stand for two hex characters. [*]The assembly procedure then passes each character in turn to a C function which determines if the character is a …

Member Avatar for HypnotiqBIG
0
223
Member Avatar for chunalt787

I am new to message queues and IPC in general. I am trying to have a process establish the queue and send a message. Then I fork and the child will read the message. The goal is to measure the execution time for different sized messages. The msgsnd is returning …

0
100
Member Avatar for RunTimeError

I'm trying to do something very simple...just access a JavaScript function that exists in a separate file but I can't seem to get it to work. [CODE=html] <form id="form1" runat="server"> <script type="text/javascript" src="styleScript.js"></script> <div id="container" class="container"> <button id="button1" onmouseover="mouseOver('button1')" style="margin-left:900px;width:200px;background-color:Transparent;height:100px;margin-top:120px;">About Me</button> </div> </div> </div> </form> [/CODE] My styleScript.js class: [CODE=javascript] …

Member Avatar for RunTimeError
0
136
Member Avatar for dima shawahneh

hello every one.. im beginner in asp.net i made a simple page and debug it but it gave me that IE can not display the page coz it is not connected with internet although im connected to internet and it must work on local host any solutions ..? thanks in …

Member Avatar for dima shawahneh
0
115
Member Avatar for calypso&noname

Hi friends; I've run into a problem trying to complete the below assignment: Write a function called myName which returns (does not cout) your full name (e.g., "Bob Smith"). Write main to call the function and display the name on the screen. NOTE: Your name should not appear anywhere other …

Member Avatar for calypso&noname
0
146
Member Avatar for efecto

Hi all, I have found some examples on the net but was not able to use the technique.. here is what I would like to do. tst = 2 numOfDigits = 3 # change this to tst2 = 002 Any help is appreciated. Thank you. [QUOTE][url]http://www.webdotdev.com/nvd/content/view/938/99999999/1/2/[/url] >>> print “z is …

Member Avatar for vegaseat
0
146
Member Avatar for SQL_n00b

One of the UPDATE queries I am trying to run is not quite working the way I want it to. I know this query is the culprit, but can't quite figure out how to fix it! Here's the story: ------------------------------------------------------- I have 3 tables: let's call them tblUsers, tblDueVisits and …

Member Avatar for kplcjl
0
259
Member Avatar for jaison2

hi, i want to be able to draw two eyes with are exactly the same in radius and colour etc next to eachother. So when i open the window the pair of eyes are there in the centre. I have managed to get one eye but i dnt have a …

Member Avatar for vegaseat
0
193
Member Avatar for shakunni

Hey, How do you read from the command line in C? I need to read 10 arguments from the command line. Can I use char* argv[] as a parameter in the main function to do so? Thanks.

Member Avatar for thines01
0
158
Member Avatar for Felicidas

Hi everyone, hope someone can give me some hints about my problem. I write a program that read users input through command line(args). This input i put it as a list. User type number that they want separated with comma [CODE] --number 1,2,3,4 [/CODE] The next process is to read …

Member Avatar for vegaseat
0
197
Member Avatar for i are smart

So I did some research and learn that you use the sys module to set the path for 2.5: import sys sys.path.append('usr/local/lib/python2.5/site-packages/') And that would set the path for 2.5 permanently, but if i do the samething for 2.6 or 3.0, it will not work the next time I open …

Member Avatar for vegaseat
0
689
Member Avatar for needhelpe

I made a program that inputs the radius of a circle, and then should output a circle of asterisks. however, I am just getting the fourth-quadrant part of the circle, and I need the whole circle to be printout. what do I need in my code? this is my code: …

0
88
Member Avatar for compengg

[B][COLOR="Green"][B]Hi frnds... I am doing ma collg 1st yr and i am of CSE department(comp sci engg) and i want to do some additionals course on languages.I am already studying c nd c++ in ma sub and in add on to that i wanna study some other language as i …

Member Avatar for Rashakil Fol
-2
138
Member Avatar for Tamaki

Hi, I'm new here and I just need a little help with pointers and 2D arrays. I'm kind of new to programming so this might be redundant. I'm trying to make a 2D array of pointers (already have done) that points to another 2D array of double values... I have …

Member Avatar for Tamaki
0
172
Member Avatar for ilikerps

Hello, I was just wondering if it is possible in Java to get the host's IP address, as seen on the Internet, not network or by the computer itself. I mean, getting something like [B]87.253.145.35[/B] instead of something like 192.168.1.100 or 127.0.0.1. Or, if not, is there any popular/known server …

Member Avatar for davido82
0
451
Member Avatar for lukeser

My C# program is able to work with existing MySQL and Access databases. Additionally, it will also create a new Access database if none exists. I am not able to get it to create a new mySQL database though. When the program attempts to run the ExecuteNonQuery command for CREATE …

Member Avatar for lukeser
0
6K
Member Avatar for tkud

While I was browsing through the forum threads long ago, i saw a thread about one assignment given toits poster. Since i am learning myself(1 month left to enter university), I decided to try writing d program . Please, you are free to correct me if I am wrong anywhere... …

Member Avatar for pecet
0
112
Member Avatar for Mitja Bonca

I did like: [CODE]FileStream fs = new FileStream(System.IO.Path.GetTempPath() + @"\MyTempDir" + listBox1.SelectedItem", FileMode.Create);[/CODE] And you know what happens? It partly works. It opens the files (if its a pdf file, it opens in a acrobat reader, if doc it opens in word,...) but there is no file in that directory. …

Member Avatar for Mitja Bonca
0
159
Member Avatar for jrosh

I want to create a data file(.txt) with the data in a mysql table. (of course i did that) [CODE] try { // Create the statement //Export the data String filename = "test.xls"; String tablename = "test"; c.getData("SELECT * INTO OUTFILE '"+ filename + "' FROM " + tablename); System.out.println(filename); …

Member Avatar for JamesCherrill
0
123
Member Avatar for u8sand

Hello everyone. Im sure this is a simple winsock question but maybe im wrong... I searched everywhere and keep hitting dead ends. Im just learning how to use winsock and still have yet to find a good tutorial. But i found a class which i will start with. Only problem …

Member Avatar for lashatt2
0
116
Member Avatar for dotnabox

So my program is coming along, but now I am writing in the range checking to ensure that the inputs are actually what they should be. My code works fine for time, except for the fact that white space gets ignored. I need to ensure that a user cannot input …

Member Avatar for VernonDozier
0
316
Member Avatar for thebluestar

[CODE] #include<stdio.h> #include<conio.h> #include<string.h> int n; char (*p)[40],*temp; void Input(); void ABCsorting(); void Input() { printf("How many persons u want to input: "); scanf("%d",&n); p=(char*)malloc(n*40*sizeof(char)); temp=(char*)malloc(n*sizeof(char)); int i; for(i=0; i<n ; i++) { printf("String %d: ",i+1); fflush(stdin); gets(p[i]); } printf("All strings before sorting: \n"); /*for(i=0; i<n ; i++) { printf(" …

Member Avatar for Ancient Dragon
0
161
Member Avatar for jaison2

I need to write a function which has 2 parameters height and width and outputs a rectangle of "#" ssmbol of the appropriate dimensions. so for 93, 4) should result in the output #### #### #### but i dnt unserstand how to use the loop in this. I have only …

Member Avatar for vegaseat
0
98
Member Avatar for Yee

Hi! I have had to change from Python to C because of university instructions. My problem is that, when I want to make a menu for my program or whatever, I always want to define classes:P My question is simple --> are structures the best way to "replace" classes? TY

Member Avatar for gerard4143
0
102
Member Avatar for deftones

Hi again, I have a huge code written, but I'm not even halfway there. Had to split couple of procedures to make everything work smoothly etc. I was wondering, would it be reasonable to put some of my code into modules, in order to avoid compiling or similar errors in …

Member Avatar for deftones
0
90
Member Avatar for itsrahulk

Hi folks, my url querystring is [CODE]querytring.php?checkin=10/11/2009&checkout=10/01/2009&minprice=100&maxprice=200&page=1[/CODE] i want to remove [CODE]&page=1[/CODE] from this url. Please help Thanks

Member Avatar for venkat0904
0
118
Member Avatar for deftones

Hey, How not let the user to close a form with a close button? Basically, I need a form to be hidden most of the time, but sometimes it is shown by the code (intentionally). And when you hit close button, user not only closes the form, but unloads it …

Member Avatar for deftones
0
100
Member Avatar for benkyma

I've spent a bit of time porting my database connection over to MySQL. It's taken a bit of time, but generally been fairly easy. However, one of my insert queries is currently failing due to an auto increment ID field. I have this insert query: [CODE]INSERT INTO entries(text, name, screen_name, …

Member Avatar for benkyma
0
409
Member Avatar for themigrant

Hi C# friends,... My code goes like this for creating a library..... [code=c#]using System; using System.Collections.Generic; using System.Text; using System.Net; using System.Net.Sockets; using System.Threading; namespace ClientLibrary { public class ClientLibrary { private bool connectionStatus; private Socket oClientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); private Thread Receiving_Thread = new Thread(receiveFromServer); public String …

Member Avatar for Geekitygeek
0
155
Member Avatar for venkat0904

PHP mailer class is a pretty famous 1 so i believe many of u have used or atleast heard abt it.. The problem i m facing is when i try using it with my application on my local system it works fine but as soon as i upload it on …

Member Avatar for venkat0904
0
88
Member Avatar for thebluestar

I'm not sure about the difference between *p[5] and (*p)[5]? Please help me clarify them? Thanks a lot!

Member Avatar for Iam3R
0
178

The End.