199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for trihaitran

This is a really simple question but it's been stumping me for a while. I want to open a file that is in the same directory as the .py script, but I want to specify that directory without using a universal path. filepath1 = '/Users/username/Documents/Python/TC/TC cedict final.txt' file = open(filepath1, …

Member Avatar for dev.vini
0
735
Member Avatar for Axelro

Hello, My quaestion is how to convert an integer to an exponential number i.e. 484.000E-2? thank you very much

Member Avatar for Axelro
0
279
Member Avatar for NH1

I need to know how to round to the nearest quarter and tenth. Right now i am taking to times finding the difference and then trying to round to the nearest quarter or tenth. Which ever i choose. I have this for code. I made a class to call, In …

Member Avatar for NH1
0
146
Member Avatar for johnbryle

go0d day every0ne.. ..Can you please help me create a 'Picture Puzzle' using GUI.. its just like playing a picture puzzle like we d0, it just like this.. it has a pieces of scrambled pictures that you will arrange it.. it has a 0ne empty block to be able for …

Member Avatar for johnbryle
0
107
Member Avatar for deathsandwich

I am fairly new to Haskell and have been experimenting with data and class declarations. I have been trying to do this: [CODE=Haskell]data Fire = Burn | Ember data Water = Bubble | WaterGun class Elements a instance Elements Fire instance Elements Water data Elemental = Elemental { name :: …

0
91
Member Avatar for corby

can someone help me with these compiler errors? im not sure how to fix them. intset.cpp:16: error: prototype for âIntegerSet::IntegerSet(int*)â does not matc intset.h:6: error: candidates are: IntegerSet::IntegerSet(const IntegerSet&) intset.h:9: error: IntegerSet::IntegerSet(int) intset.cpp:7: error: IntegerSet::IntegerSet() main.cpp: In function âint main()â: main.cpp:36: error: invalid conversion from âint*â to âintâ main.cpp:36: error: …

Member Avatar for Ancient Dragon
0
315
Member Avatar for danholding

hi there i need to collect the 6 latest backup files from a folder every day and currently working on a script to do this for me so far i have managed to pull the 6 latest files as shown in code below but the problem i have is most …

Member Avatar for danholding
0
114
Member Avatar for sbrohee

Hi everybody, I think this question will be kind of stupid for you ... but I am fighting with since yesterday evening. I have a class Test defined as such in the hpp file (Test.hpp) [CODE] #include <iostream> #include <vector> using namespace std; class Test { public: Test(); static const …

Member Avatar for sbrohee
0
428
Member Avatar for cathgodarve

[TEX]hey there, can you help me with something. I'm supposed to get data from a single text file and use it on 3 different jTextField. Then if I hit a save button, the data from the textfields will overwrite the existing data of the text file. Unfortunately, I can't make, …

Member Avatar for javaAddict
0
265
Member Avatar for designershiv

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Data Store</title> </head> <body> <?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="sample"; // Table name // Connect to server and select database. mysql_connect("$host", "$username", …

Member Avatar for whiteyoh
0
108
Member Avatar for johnbryle

hello every One.. ..can any0ne help me create a 'picture puzzle' using GUI.. OOP'. ..ur answerz r highLy apPrecited.. thankz have a nice day ahead'

Member Avatar for johnbryle
0
161
Member Avatar for tedtdu

I need to parse XML documents without parsing libraries, that is, just create one of myself. E.g. input: [CODE]<aa><bb>H</bb></aa>[/CODE] I have to get rid of tags and show, if any, errors(mismatching tag etc). Any suggestion please. Thanks in advance!!

Member Avatar for NormR1
0
210
Member Avatar for wantai

Hello guys, I am new here. I have been practicing programming in C as I am going back to school. The program below is supposed to be really simple. It would help you calculate the factorial of a number. But I don't know why I can't get the scanf function …

Member Avatar for Adak
0
102
Member Avatar for hazeeel

Hi all, I need to do a translation using 2D arrays for my Superposition algorithm. Translation: I plan to use the CA(Alpha carbon) as my invariant point which is usually the 2nd line in the pdb.txt file. So how go about doing that? Must I use an orthogonal matrix? Or …

Member Avatar for NormR1
0
198
Member Avatar for doctorphp

Hi All. I am trying to display images using the while loop but I want the pictures to be displayed like this. [ATTACH]16585[/ATTACH] The only thing is, I don't know how to do it. Any help would be much appreciated. Thank you in advance Cameron

Member Avatar for dev.vini
0
7K
Member Avatar for fire_

Hi. I need program wich will start other program (for example notepad.exe) and if notepad.exe will exit my program will start it again. How can i get info about process state and put it into variable to use with if? I'm beginner at C++ so please write all headers witch …

Member Avatar for fire_
0
161
Member Avatar for punnoosepj

i have created a exe from A FORM IN C#. I want to get that program to start running from the boot time.So how do i register my code to run it from boot time.

Member Avatar for Resnymph
0
81
Member Avatar for Prashant20

Hi.. I am developing an application which requires a folder to be created in the project folder. I am using the following code to create a folder [CODE]string path="D:\\SchoolProject\\Image Folder"; System.IO.Directory.CreateDirectory(@path);[/CODE] Now I want that the folder should be created in the folder where the user is installing the application. …

Member Avatar for Prashant20
0
113
Member Avatar for zoro007

Hello, I have problem with arithmetic in python when use it like this code [CODE]#!/usr/bin/python AA = open("a.txt").readline() print AA BB = 100 print BB + AA[/CODE] Appear to me this error : Traceback (most recent call last): File "aa.py", line 6, in ? print BB + AA TypeError: unsupported …

Member Avatar for zoro007
0
172
Member Avatar for drake10k

Hello, I am trying to create an app that allows the user take a screenshot of a portion of the screen that he selects with a rectangle. I've tried following several tutorials but I did not managed to make the rectangle appear. The best I could do was to take …

Member Avatar for drake10k
0
305
Member Avatar for gauravkukreja06

Hi, having some problem...Plz help me out from this I have problem in ModalPopupExtender. When I click on submit button of pop up it does not call the code behind code written for button click.. Here is my code- <ajaxtoolkit:modalpopupextender id="ModalPopupExtender" runat="server" cancelcontrolid="LinkButton1" dropshadow="false" okcontrolid="btnSubmit" X="200" Y="100" popupcontrolid="Panel1" targetcontrolid="imgSchedul"> <aspanel …

Member Avatar for gauravkukreja06
0
2K
Member Avatar for mastermind2

i am try to create a drop down cms menu in my Website [url]http://4your.co.in/demo2/[/url]. Problem is i have used a while loop to show main menu and another while loop to show submenu . Main menu is working but sub menu show online one record . My Code Is . …

Member Avatar for dev.vini
0
190
Member Avatar for naxysch

Hi what i am trying to do here is highlight a particular cell in a table using a custom cell renderer. And by the way this is my first cell renderer so i am really not sure what to do! ok now here is the renderer I have written and …

Member Avatar for naxysch
0
2K
Member Avatar for h612

Hello, i've a server and client code in which the error i'm getting is: on deserialization- but when i checked the byte[] length after serialization that i send they are 1550, and then over the tcpclient when i received the byte[] it was 1448 in length... any help or suggestion …

Member Avatar for h_Nick1981
0
473
Member Avatar for randyson
Member Avatar for threat

i have a .php webpage with the following basic structure [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>index</title> <style type="text/css"> .style1 { background-color: #4BACC6; } .style2 { background-color: #005AE7; } .style3 { text-align: center; color: #FFFFFF; font-family: Arial; } .style5 { …

Member Avatar for threat
0
191
Member Avatar for dandixon

Got the code below for a login form to check that users dont miss a field and then to check wether or not the data user and pass fields match what is in the database but i cant seem to structure my [COLOR="Red"]if, elseif, else[/COLOR] statements correctly [CODE] <?php /** …

Member Avatar for dandixon
0
87
Member Avatar for hazeeel

Hi all! I really really need your advice here! So please do reply me. Your help is greatly appreciated!! I need to do a translation here: X Y Z -3.621 15.574 14.908 (file1 - 2nd row) -3.441 15.678 14.859 (file2 - 2nd row) I need to move file 2 coordinates …

Member Avatar for javaAddict
0
106
Member Avatar for emchom

i am trying to create a program that uses * to make triangles depending on how big the user wishes to make them. This is the code i have so far however have no idea where to go from here.. can anyone help?? thankyou [CODE] def triangle(): totalRows = int(eval(input("Please …

Member Avatar for TrustyTony
0
244
Member Avatar for sami.asanga

Hi, I need to hide the login screen of my web site whenever a customer has logged in..It should be done with javascript right?? Any suggestions?? Can someone help me to do this?? Thanks....:)

Member Avatar for gunnarflax
0
114
Member Avatar for Mobins

i create dynamic checkboxes in coloum of table(<td id="trial" runat="server"></td>) from selecting quantity from dropdwonlist. well creating dynmic checkbox is not an issue.. well the issue is tht i am not able to check whether the Checkboxes is checked or not on a Button click.... the functiion used for generating …

Member Avatar for rohand
0
135
Member Avatar for srky

cmd1.Parameters.Add("@emp_name1", SqlDbType.NVarChar); cmd1.Parameters.Add("@join_date1", SqlDbType.DateTime); cmd1.Parameters["@emp_name1"].Value = name.Text; System.Data.SqlTypes.SqlDateTime getDate; //set DateTime null getDate = SqlDateTime.Null; if (joindate.Text == "") { cmd1.Parameters["@join_date1"].Value = getDate; } else { cmd1.Parameters["@join_date1"].Value = joindate.Text; } I used this code to insert a null value in datetime column of sql server table but always its giving …

Member Avatar for rohand
0
914
Member Avatar for glenak

If there's anyone who knows a thing or two about this, your help would be much appreciated. This is a code I'm working on: [CODE] try { //ask user for short password System.out.print("Enter a password: "); //read in a character at a time, putting them into the buffer while((buf[bufPos++] = …

Member Avatar for javaAddict
0
5K
Member Avatar for pdoratis

Hello there, Kindly seek your help with a C programming language program that: 1 Reads reads and modify a text fine called mydata.txt 2 In txt file, we must enter the following data : name surname telephone number like this: John West 6976688742 3 The program should be able to …

Member Avatar for challarao
0
1K
Member Avatar for dolly_olaide

Hello, Can someone please help me with this problem.:( I am trying to openFileDialog in VisualC++, and I want to load an image through cvLoadImage, but I'm getting error that it cannot just convert [code] error C2664: 'cvLoadImage' : cannot convert parameter 1 from 'System::String ^' to 'const char *' …

Member Avatar for dolly_olaide
0
129
Member Avatar for andrewtrench

Hi, all. I'm writing a little GUI thing to allow a user to specify variables in an xml file. I am battling to work out how to return all the .get() values from the Entry widgets back to a main application. The GUI is done as a function as the …

Member Avatar for andrewtrench
0
2K
Member Avatar for cyberprincess

Hello, Can anyone please help me straighten out this error? I've tried a few things, but cannot seem to solve it. I am getting a 500 Internal Server error on a Wordpress 2.8 blog. I cannot get any pages to show up, nor log in to the admin area. The …

Member Avatar for tami64
0
210
Member Avatar for itsbrad212

Hi everyone, I've been banging my head against the wall with this for a while. How can I read from a file if it begins with a certain string of text? Example: ...other lines... [U][I]depends=('curl' 'zsh')[/I][/U] ...other lines... I want to read the line in that file that starts with …

Member Avatar for itsbrad212
0
150
Member Avatar for kisei

HELP Solve this problem in vb.net using console app.!!!! 1) Write a program that accept a number and output its equivalent in words. sample: enter a number: 100 output: One hundred 2) Write a program that accepts an ordinary number and outputs its equivalent In roman numerals. sample: ordinary numbers: …

Member Avatar for kisei
0
230
Member Avatar for darkmeyi0319

i have a question,it's about header files, the header files i always use is stdio.h and conio.h.... how can i use other header files like iostream, c time, etc.. whenever i use them and compile the source code, bad header files always exists,. Can you help me? Thanks a lot

Member Avatar for darkmeyi0319
0
145
Member Avatar for leemp5

Hi guys, I have a page that echos fields from a database based on various text and combo box selections. I am trying to get it so that when the page is refreshed, the echoed vales are still displayed, even if the form fields are reset. Im under the impression …

Member Avatar for gunnarflax
0
122
Member Avatar for bjeffries

I have a Join page on my site(which also has a login form). Is it easy to write java-script to determining if they do not have matching passwords(re-type password for Join form) or a valid email without redirecting you from the page? That way if something is wrong it shows …

Member Avatar for gunnarflax
0
242
Member Avatar for dflor

For instance, the following script works fine without html <html><head></head><body><?php $im = imagecreatetruecolor(100, 100);// sets background to red $red = imagecolorallocate($im, 255, 0, 0); imagefill($im, 0, 0, $red); header('Content-type: image/png'); imagepng($im); imagedestroy($im); ?></html> How could we include a php gd library into html?

Member Avatar for gunnarflax
0
141
Member Avatar for amarjit111

I have a query regarding the hide/show of the cells in a table. The first column is 'Yes and No' options using combo box, 2nd option is 'input field', 3rd column is also 'Yes and No' option using combo box, and 4th option is also 'input field'. What I want …

Member Avatar for gunnarflax
0
188
Member Avatar for phplover

Hi, I know and understand what magic quotes does, but have never written any of my scripts to check whether magic quotes is on or not; and if on stripslashes() . I thought it was time that i do this check incase any of the scripts i create are used …

Member Avatar for hielo
0
124
Member Avatar for uu666

can anybody tell me what is this segment register, which is its purpose and how does it work ? thanx in advance!

Member Avatar for L094129
0
177
Member Avatar for keanoppy

this is my code snippets to capture data from a textfile [CODE] try{ // to store the stopwords File file8 = new File("stoplist3.txt"); FileInputStream stopStream = new FileInputStream (file8); InputStreamReader reader8 = new InputStreamReader(stopStream); StreamTokenizer stopToken = new StreamTokenizer(reader8); List stopWordList = new ArrayList(); //stopwords up to here[/CODE] i don't …

Member Avatar for keanoppy
0
121
Member Avatar for sami.asanga

Hi, I need to update the product quantity in the product table according to the quantity which the customers ordered...Since I am new to this field I dont know how to do it with a query. This is what I want to do in more details.As the administrator checks for …

Member Avatar for sami.asanga
0
97
Member Avatar for gabz16

Hi programmers I need this code to be completed with the sjf(shortest job first) to be preemptive, it means with arrival times with each process.. Here is my code so far: CpuScheduling1.java Interface: Menu [1]First- Come First-Served [2]Shortest Job First [3]Priority Enter Choice: Note: I need to have the sjf …

Member Avatar for gabz16
0
399
Member Avatar for XtremeCold

Hi all, I am developing the Test Engine for an aviation application. The application has a file a.c that is calling an external function CREATE_SAMPLING_PORT(). My Test Engine has a file b.c that is calling CREATE_SAMPLING_PORT() as well. Each file is in different folder and has its own makefile. This …

Member Avatar for XtremeCold
0
233

The End.