64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for prats_20

hi i have to retrieve a webpage from database given i have the id which is passed to that page as q querystring. here is my code ave 2 pages the one where u clik on hyperlink <<A href="mailto:%@LANGUAGE="VBSCRIPT">%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% dim objConn, objRS Set objConn=Server.CreateObject("ADODB.Connection") objConn.open="Provider=Microsoft.Jet.OLEDB.4.0; Data Source= D:\Datastores\greeting.mdb" …

Member Avatar for prats_20
0
103
Member Avatar for erez131165

I need this script: [URL="http://www.jscode.com/js_auto_bookmark.shtml"]http://www.jscode.com/js_auto_bookmark.shtml[/URL] i just dont know how to make the link as a picture, insted of "bookmark us!" text/ any help with this ?:eek:

Member Avatar for iamthwee
0
115
Member Avatar for skeet123

I have an assignment dealing with algorithms and Big O notation. I am a little confusded about this notation stuff. Here are a few of the questions on the assignment: What is the O-notation for the following code? [code]cin >> N; for (int count = 1; count <= N; count++) …

Member Avatar for Rashakil Fol
0
225
Member Avatar for shimul_bari

Hello everybody, I am having a great problem in my class project. I have to play multiple files in different output ports of the sound card same time. Explanation: Suppose i hav 1 speaker and 1 headphone connected to my pc. Now i hav to play 2 files in such …

Member Avatar for shimul_bari
0
169
Member Avatar for sharma_vivek82

[code]import posix import string uid = `posix.getuid()` passwd = open('/etc/passwd') for line in passwd.readlines(): rec = string.splitfields(line, ':') if rec[2] == uid: print 'hello', rec[0], print 'mind if we call you bruce?' break else: print "I can't find you in /etc/passwd" :) [/code]

Member Avatar for alc6379
0
165
Member Avatar for daxwhit879
Member Avatar for frenzy44

hi i just started programming so im very new to all this, i am writing a code and i am comparing a string in a struct to a string. one of them as you can tell is an array of strings, im not really sure if im breaking any rules …

Member Avatar for Bench
0
199
Member Avatar for hollystyles

Hi, I have to connect sometimes to MSSQL and sometimes to MySql depending on the customer. I am experimenting with the php adodb library that claims to make database connection possible to either vendor using the same syntax. First the background at home I have: Rig1: windows XP professional PHP …

Member Avatar for BlazingWolf
0
288
Member Avatar for Katrix36

Hi all, I'm trying to create an onscreen keyboard for Microsoft word. At the moment, my onscreen keyboard can send any keystroke to microsoft word as long as the document is called "Document1". Is it possible to send a keystroke to any microsoft document of any title not just "Document1"? …

Member Avatar for daycartes
0
393
Member Avatar for butterflyTee

THE WINDCHILL TABLE IS RUNNING, BUT THE NUMBER IS NOT LINNING UP STRAIGHT. CAN YOU PLEASE HELP ME, THANKS [CODE]def windchill( vel, temp): wc = 35.74 + .6215*temp - 35.75*(vel**.16) + .4275*temp*(vel**.16) return wc def main(): print (" __ __ __ Temperature \n") print ("Speed \n") print (" 1 -20 …

Member Avatar for greatbear
0
105
Member Avatar for greatbear

At the beginning I found Python was very good at its data structures , concise code, and some strong aspects ! but it's very difficult to solve a program with higher speed than C++ and java ! I'm very confused ! could you tell me why do you choose Python …

Member Avatar for greatbear
0
98
Member Avatar for skalra63

i have a text box, which the user may enter cash for sales. however, it doesnt seem to recognise anything after a decimal point. for example, if the product costs £300.07, it will only calculate the change ( if any) or display an error message if the tender is 300 …

Member Avatar for Comatose
0
100
Member Avatar for puddin

DO YOU KNOW WHY THIS IS NOT WORKING ALL THE TIME ONLY SOMETIMES! okay on my Login Page I Have At The Very Top <?php session_start(); ?> FOLLOWED BY THE LOGIN FORM THAT GOES TO welcome.php PAGE <table class="form"> <form name="login_form" method="POST" action="welcome.php"> <tr> <td> <p class="b">Email Address<br> <input name="email_address" …

0
96
Member Avatar for pare80

Hello to all, I am trying to create a script that will go through certain directorys in Windows and pull out the files I stated by extentions. Which will then later copy to a location either on the local machine or an external HD. Any assistence will be greatly appricated. …

Member Avatar for sharma_vivek82
0
111
Member Avatar for puppy

Hi, I'm trying to write a class that uses a vector, but I can't get the right syntax in the Staff constructor. Can anyone help? public: Staff(); Staff (???????????); private: vector<Employee> members;

Member Avatar for Bench
0
154
Member Avatar for sharma_vivek82

import urllib f = urllib.urlopen("http://www.mahiti.in") word = "Software" for line in f: if word in line: print line :cheesy:

Member Avatar for vegaseat
0
92
Member Avatar for gYbU

I alredy know hoe to send e-mail by python but is possible to receive e-mail?? thanks for all post

Member Avatar for vegaseat
0
598
Member Avatar for blacklocist

Hi All, Well where I work they are having a problem and I had a solution. Well I was reading on this [URL]http://www.c-sharpcorner.com/UploadFile/mgold/HowtoOepnandReadanExcelSpreadsheetinaListViewin.NET11282005034134AM/HowtoOepnandReadanExcelSpreadsheetinaListViewin.NET.aspx?ArticleID=45ca62cf-fb3e-4f0b-b9a4-031b641aae3c[/URL] Well what it does is pull a named range, sticks the data in an array, my software does it's thing, then puts the changed data back into …

Member Avatar for blacklocist
0
168
Member Avatar for Blujacker

I am using script from coed snipet how to print a page, but i dont know way how to say to printer which font and which size of font set, which colour of background and foreground.Please help Thanks

Member Avatar for vegaseat
0
99
Member Avatar for butterflyTee

[code] # windchill.py # tpm # A program that prints a nicely formatted table of windchill values. from math import * def windchill(t, v): c = 35.74 + (0.6215 * t) - (35.75 * v ** .16) + (.4275 * t * v ** .16) return c def main(): print …

Member Avatar for alc6379
0
503
Member Avatar for butterflyTee

def windchill(temp, vel): wc = 35.74 + .6215*temp - (35.75*vel**.16 + .4275*temp*vel**.16) return wc def main(): print (" __ __ __Temp /n") print (" Speed /n") print ("-20 70 10 0 10 20 30 40 50 60 ") for x in range (5,55,5): print x for y in range (-20,70,10): …

Member Avatar for bumsfeld
0
92
Member Avatar for butterflyTee

I WRITTEN THIS PROGRAMM IN 2 WAYS(RE-WROTE IT OVER AND OVER), AND ITS STILL NOT RUNNING CORRECTLY. IS THERE OTHER WAYS THAT IS PROGRAM CAN BE WRITTEN. I AM SO FRUSTRATED, PLEASE HELP ME. THANK YOU. 1st way: # windchill.py # tpm # A program that prints a nicely formatted …

0
69
Member Avatar for Dark_Omen

Hello everyone, I am having trouble getting my Javadoc to work. It runs but it doesn't show anything in the HTML file that it creates. BTW I am using java 1.5.0_6 and I am using the latest version of Eclipse. I don't know why it didn't work, and I was …

Member Avatar for jwenting
0
185
Member Avatar for puppy

Hi, I'm trying to compare elements in two different vectors. I wrote this: if (a[i] = b[j]) same = true; and the compiler said this about the first line: assignment of read-only location What does "assignment of read-only location" mean? Thanks.

Member Avatar for puppy
0
101
Member Avatar for modernage

How do you reverse a linked list using recursion, and return it as a string? String backwards(IntNode head): Create and return a string containing the values in the input list, separated by commas, in reverse order. The last number should not be followed by a comma. Spacing within the string …

Member Avatar for modernage
0
456
Member Avatar for jlouang

I don't know if I read the book right but my array is not working on my months .My instructions is this assignment uses an array of strings: write a C program that asks the user for the month, day, and year read in the month, day and year (as …

Member Avatar for jlouang
0
352
Member Avatar for Ene Uran

I am fairly familiar with C, but new to Python. Does Python have something like the handy C conditional expression? For example: [code]// C conditional expression x = a ? b : c; // if a is true then x = b else x = c // here used to …

Member Avatar for Ene Uran
0
118
Member Avatar for waldis

We were given a heap sort in a pseudocode: [CODE] ******* HEAP SORT ******* sift(A, l, r) ------------- f <- l s <- 2 * l temp <- A[f] found <- false while not found and s <= r if s < r and A[s-1] < A[s] then s <- …

Member Avatar for iamthwee
0
141
Member Avatar for butterflyTee

[CODE]# tpm.py # Take two inputs, age and years of citizenship, and returns eligibility for # senator and representative. from graphics import * def main(): win = GraphWin('Eligibility' , 400,400) win.setCoords(0.0,0.0, 4.0, 4.0) Text(Point(1, 3.0), 'Age').draw(win) Text(Point(1, 2.0), 'Years Citizen').draw(win) agebox = Entry(Point(2, 3.0), 10) agebox.draw(win) citizenshipbox = Entry(Point(2, 2.0), …

Member Avatar for butterflyTee
0
115
Member Avatar for johnhl007

Ok i am having a little trouble trying to figure out how to pull the x-cordinate from p1 and p2 so that i can use it later in the code to build a door. # This is a program to build a house in five clicks from graphics import * …

Member Avatar for Scagli3tti
0
470
Member Avatar for aiden

I've constructed a photo gallery with a dynamic CMS backend that allows the content providers to upload, delete, etc images. All images are stored as reformated jpeg files (processed by the GDLib on upload) and the relevant metadata is stored in a table called `gallery`. References are made by an …

Member Avatar for Dani
0
1K
Member Avatar for butterflyTee

# tpm.py # A program that accepts the total amount of purchase, calculates the # appropriate discount, and displays the discount and the purchase after # discount. from math import * def main(): cost = get_cost() discount = get_discount() % = calc_percent(discount) final cost = get_final_cost cost_percent = cost_discount(cost, discount) …

Member Avatar for butterflyTee
0
111
Member Avatar for a1eio

Hi, I've got a small program, that would be really useful if it could stay on top of other windows programs, i don't think there is a method for that in Tkinter, if anyone has any experience or ideas on this topic, please let me know thanks

Member Avatar for a1eio
0
22K
Member Avatar for newgurl

Hello, I am one of those new assignment people, BUT I have tried to resolve this for a while now. Cant find much on google or other C++ sites. I am trying to compare string lengths of 3 words and then display them in order of length. My code is …

Member Avatar for orko
0
7K
Member Avatar for ZenaNqld

Ive been working on this assignment for ages now and its almost working.. well its working but since my output isnt right there must be something wrong lol. problem... I have to select an object to hit a ball.. the distance the ball travels is done using rand according to …

Member Avatar for orko
0
94
Member Avatar for madonnamama

I am having a huge problem with writing this program. Every time I ask the teacher for help she is too busy helping someone else. so she just tell me one thing and runs off to the next person without checking if it worked and what other help I might …

Member Avatar for madonnamama
0
1K
Member Avatar for s0312001

Hi guys, can anybody tell me how to add a log file??? when the user finishes using the application I need, the info that is recorded in the textbox to be saved in a log file, on the desktop. :rolleyes:

Member Avatar for s0312001
0
89
Member Avatar for thare

I've heard the word "Literal" many times in Python But I don't understand it ! what does this mean ? Thanks ! :rolleyes:

Member Avatar for vegaseat
0
117
Member Avatar for Acidburn

[code] #include <iostream> #include <string> #include "scanner.h" using namespace std; void program(string &sym); void body(string &sym); void stmt(string &sym); string sym; int main() { openfile(); sym = getsym(); program(sym); return 0; } void program(string &sym) { stmt(sym); //cout << sym; if(sym!="$") { cout << "Parser failed" << endl; } else …

Member Avatar for HackWizz
0
97
Member Avatar for lanario

I need to validate the numbers 1-16 within the given array. Any numbers that are duplicate or are outside of the range need to be outputted. While if all numbers 1-16 are inputted only once then the boolean value is true. The numbers for the array theSquare are inputted previous …

Member Avatar for WolfPack
0
244
Member Avatar for lanario

I need to validate the numbers 1-16 within the given array. Any numbers that are duplicate or are outside of the range need to be outputted. While if all numbers 1-16 are inputted only once then the boolean value is true. The numbers for the array theSquare are inputted previous …

0
87
Member Avatar for skalra63

[U]what i want it to do : [/U] enter a barcode search grid if [I]barcode exists [/I] then increase Quantity by 1, recalculate subtotal, set vIndex to last row. if [I]barcode does not exist[/I] then search database for data, insert data ( getProduct, currently working) [U]current code[/U] [CODE]Private Sub searchItems() …

Member Avatar for skalra63
0
691
Member Avatar for tripnip

I'm completely new to Java, and programming in general, and I'm trying to do something that I thought would be simple but I'm stumped. I probably did something wrong thats obvious to other people but not to me. I'm trying to display a GPA after you put in the grades, …

Member Avatar for tripnip
0
207
Member Avatar for jlouang

ok so i need to make a program that where the user enter a day, month, year. has to be 3 ints, functions must display months name I have no clue where to start

Member Avatar for jlouang
0
373
Member Avatar for timbajaj

Hi I am new to web designing and need some advise I don't know whats the best web desiging tool/software in the market. I have heard dreamweaver is good but its too complicated, is there any other tool that is good. I am looking for something that is easy to …

Member Avatar for Lafinboy
0
124
Member Avatar for grunge man

how do u make it so when you enter in a number then outcomes a letter also to make it more convienent for the computer i have the list for each letter on the keyboard witch is assinged a given bianary code in ASCII so if your type in 1000001 …

Member Avatar for iamthwee
0
365
Member Avatar for bumsfeld

I need to know how many times my function has been accessed in my program. Any suggestions other than global variable?

Member Avatar for vegaseat
0
3K
Member Avatar for G-Do

Hi all, I'm writing a simple MIDI player (which I might eventually turn into a editor, if I feel ambitious). To that end, I've been futzing around with the pygame.mixer and pygame.mixer.music modules. I can get MIDI files to play, but I would also like to be able to grab …

Member Avatar for G-Do
0
288
Member Avatar for Bomber686

Hi, I want to be able to stop hardware devices and I was wondering if it was possible and how you go about doing it. I'll explain the plan; I am making an automated install account. Users on the domain would login with a certain user. An install would start …

Member Avatar for Comatose
0
112
Member Avatar for butterflyTee

Did I do this right and can you please help me. This program uses a GUI to input a user's first and last name, and construct and display a UserID. Although the program 'runs', there are several problems with it. Fix each of these problems in turn: 1) The text …

Member Avatar for mechdriver
0
173

The End.