64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for gunbuster363

I am using BeautifulSoup for my project and I don't know how the object returned by the Soup is organized, so I don't know how to access it, except using only print I can only do this: [CODE]link = soup.find(attrs={'class' : re.compile("util2$")}) print link [/CODE] it print out the whole …

Member Avatar for gunbuster363
0
2K
Member Avatar for red999

So I am creating a program for a class that reads in from a file the appointments. The file has this format Date,Subject,Start Time,End Time,Location,, The interesting thing about the file is that it does not contain the same appointment (same name, location, and time) more than once. For example: …

Member Avatar for red999
1
100
Member Avatar for 3.14

hi friends, i try to make some selector of items placed in <div>, and click on some of items should delete one by changing innerHTML of <div>. delete works, but after delete html page reloads. i suppose its because element, originator, calling delete function exist at time of calling, but …

Member Avatar for 3.14
0
133
Member Avatar for sarithak

hi frnds... i m using front end page is in HTML(contactus.html)... back end is in PHP page(contact_action.php).... here i m trying to send mail to admin from user...After successfull completion of mail sending , the user gets a Message.,..(like..messgae successfully send..).. below is my code...can any body change plz... [CODE]if …

Member Avatar for rajabhaskar525
0
129
Member Avatar for kettavan

Hi guys, I need some help regarding JComboBox. I want to link the JComboBox with JTextField and this is the code that i did. It contains error and I need some guidelines for it.Thx [code=Java]private void typeof_patronJComboBoxitemStateChanged(ItemEvent event) { // clear JTextFields clearComponents(); // determine whether checkbox selected if (event.getStateChange()== …

Member Avatar for kettavan
0
88
Member Avatar for starlight09

Hi everyone, My goal is to generate lottery numbers that have 6 unique numbers in the range of 1-49 ex. if the user inputs 2 as the number of tickets they want, the program should print out 1 2 3 4 5 6 10 9 8 7 12 11 ---2 …

Member Avatar for starlight09
0
621
Member Avatar for javanub123

im trying to make my program draw lines from the top right corner of the JFrame which is 400 x 400, to the bottom of it making what looks like a curve but really is just lines. i think i know the basic idea of how to do this which …

Member Avatar for javanub123
0
1K
Member Avatar for jaymeaux77

Hi there, Im writing a program that takes a function and makes a plot of it. the program consists of 2 functions and each creates its own GraphWin. However i want to have a mouse click at the end close both windows. So i returned the window from the first …

Member Avatar for jaymeaux77
0
99
Member Avatar for lllllIllIlllI

Hi, Im using wxPython for my latest project and i was wondering, how do i make the window go to the best size, so it includes all of the objects on screen? I used to be able to remember... but i forgot :P

Member Avatar for lllllIllIlllI
0
87
Member Avatar for Ishaniwp

Hi! I'm having a problem with my coding. I have initialized a 2d array (String), but when I try to print a value from it, it gives me null. this is how I initialized my array. [code]String phone[][] = { {"A", "B","C"}, {"D", "E", "F"}, {"G","H", "I"}, {"J", "K", "L"}, …

Member Avatar for Ishaniwp
0
98
Member Avatar for whouton

Hi guys, I'm trying to make a function that allows the user to enter in a file name and access that file; if the file name is wrong or the file is not there, I want to allow the user to enter in another file name. For some reason the …

0
78
Member Avatar for therio7

Hi, I have a php form where I can upload 3 things into a database. 1. Image Description 2. Image category 3. Image (the image is uploaded in a folder with a unique random name, and the unique path name is inserted into the database) My script generate something like …

Member Avatar for diafol
0
131
Member Avatar for arvindikchari

Hello I have a simple requirement, I have a list of URLs on a page, I want that when the user clicks on any one URL, then a text box on the same page is filled with some data. The data to be filled in is specific for each URL. …

Member Avatar for augie804
0
4K
Member Avatar for Ying_Yang

Hi, I like the modularity of java but I wonder what low level custom functions it has, since I' am considering to create an OS, and we all know in high level its imposible to control the hardware eficiently. :-/ so I wonder if there is a way to use …

Member Avatar for Ying_Yang
0
214
Member Avatar for leegeorg07

Hi I have this code currently: [code] dict = open("dict.txt", "r").readlines() print dict LETTERS={'a':1, 'b':2, 'c':3, 'd':4, 'e':5, 'f':6, 'g':7, 'h':8, 'i':9, 'j':10, 'k':11, 'l':12, 'm':13, 'n':14, 'o':15, 'p':16, 'q':17, 'r':18, 's':19, 't':20, 'u':21, 'v':22, 'w':23, 'x':24, 'y':25, 'z':26} word_value=0 lettersv=[] letterss=[] def main(): word=raw_input('what is the word?') word=word.lower() for …

Member Avatar for leegeorg07
0
116
Member Avatar for A_Dubbs

Hey guys, I was wondering if you could clear up some things on classes for me. I have had a semi-easy time understanding python and programming concepts up to this point but now am having a real tough time on classes. I think it is because my book uses long …

Member Avatar for bumsfeld
1
232
Member Avatar for sanchitgarg

suppose i have 10 different functions. i generate a random no. between 1 to 10. depending on its value i want to call the fucntion. eg. no. 3 call func, no. 8 calls func 8... etc. how do i do it using a loop without using the if else statement …

Member Avatar for sanchitgarg
0
244
Member Avatar for Rishi_Hamza

I am trying to import mails from Outlook to my Database during execution of code it is throwing the [COLOR="Red"]"Excepiton ComException unhandeled by User Code"[/COLOR]. it was working fine in the beggening but suddenly start throwing this exception. Here is my code [CODE] for (int i = 0; i <= …

Member Avatar for mikiurban
0
136
Member Avatar for mandangalo

I am trying to code for an assignment at school. When I call my addElement() method and input the data to pass that data to my constructor which is used to store the data in certain elements in the array it seems to work ok. However, when I try to …

Member Avatar for ddanbe
0
222
Member Avatar for TheManual

I am trying to create a RPN calculator, the addition and subtraction functions work but it only accepts numbers under 10. How can I fix this so any integers are allowed? Thanks. [code] import sys accepted = '0123456789dr+-*/%^=' numbers = '0123456789' stack = [] while len(stack) <= 20: while True: …

Member Avatar for TheManual
0
92
Member Avatar for Mona1990

Hi I was wondering if someone could help me to figure out how to write a code for : Write a function print_table which consumes two parameters, a list of list of strings, and an integer for the length of the list. The function should print out the strings from …

Member Avatar for Mona1990
0
300
Member Avatar for Dorayaki

Hi, I want to ask about listbox things. I made a Listbox, 3 textbox, and a Database The Database Table is Member The member field has 4 which is MemberID, Name, Address, Phone. I have 2 records and it were display to the listbox which are Adry and Brandy (I …

Member Avatar for TomW
0
183
Member Avatar for Alex_

Hey guys. I am trying to print different messages in dependency of what char you press. In my case i use, F1,F2,F3, escape. The problem is that the first message is printed again after a char input is read, which it shouldn't! This is my code, please tell me where …

Member Avatar for Alex_
0
117
Member Avatar for mahela007

What would it take to make graphics show on the monitor without using stuff like tkinter and Qt? (tkinter and Qt are called toolkits right?)

Member Avatar for mahela007
0
261
Member Avatar for XLL

Hi all,I got a issue that how can I run several functions at same time? say [CODE] a=1 def function1(a) a+1 return a def function2(b) b+2 return b def plotGraph(a,b) return graph [/code] how can I just run plotGraph function here?..I am totally newb..hope anyone can help..thanks

Member Avatar for pythopian
0
115
Member Avatar for MattyRobot

would there be anything wrong with making an includes.h which has all of the .h files my project needs to link to. or is it better to link to them when needed?

Member Avatar for MattyRobot
0
138
Member Avatar for jex89

Hi, I don’t know if anyone would be able to help me with the following problem, I am hoping :D .. I have looked on the internet but no look. I have pickled a document into the pickle object, how can I now search the pickled object to remove a …

Member Avatar for pythopian
0
3K
Member Avatar for deftones

Hey, I faced one tiny problem, but I can't figure it out. What I need is basically "label1 = format(now, "hh:mm:ss")", but I want start counting time from zero: "00:00:00".. Any help?

Member Avatar for akhileshbc
0
90
Member Avatar for Geekitygeek

Hi, this is giving me a major headache and my boss wants the project wrapped up asap : / I have two views pulling data from several tables. The end result is this: CustomerTotals CustomerID numeric(18,0), ProductID numeric(18,0), Delivered numeric(5,0), Ordered numeric(5,0) SupplierTotals SupplierID numeric(18,0), ProductID numeric(18,0), Delivered numeric(5,0), Ordered …

Member Avatar for Geekitygeek
0
131
Member Avatar for jakesee

Hi matlab experts, I didn't think daniweb has a matlab forum so I went over to another math forum to ask for matlab help. but i think it's either I am too stupid for the mathematicians or they are too smart to realize that it is NOT obvious what i …

Member Avatar for Rashakil Fol
0
282
Member Avatar for jaison2

The function should ask the user for the price of the delivery and if the price is less than £10 then it should print a statement saying "the total price including the delivery charge is" + £1.50 or it should just output the normal price if it is more than …

Member Avatar for snippsat
0
224
Member Avatar for benkyma

I need to make ten selections. One of all the datetimes in the last 24 hours, the next one from 24 hours to 48 hours, and on back in 24 hour blocks for the last ten days. I've tried various approaches to this, but this is what I currently have: …

Member Avatar for benkyma
0
91
Member Avatar for feoperro

Hi, I'm trying to create a program where I can monitor when a server running a Tomcat Application Server goes down. I will need to check an IP & PORT every 5 minutes for example and get back a boolean on whether it is up or not. I've tried googling …

Member Avatar for feoperro
0
118
Member Avatar for Garee

I'm having a little trouble with a piece of code im trying to write. I have created a deck of cards and then shuffled them however now I am trying to covert my deck (which is simply a list containing the numbers between 1 and 52) into the form "AS", …

Member Avatar for vegaseat
0
346
Member Avatar for P00dle

I need to read files from a folder(Directory will always be the same) There will at most be 4 files in the dir, but it could be anything from 0-4 files. They will always have the same name. i.e. In the dir "Folder" there will be(Could be any combination of …

Member Avatar for peter_budo
0
115
Member Avatar for LennieKuah

[B]Hullo there,[/B] [B]C#Net 2003 Window Application [/B] I need your help again. I am trying to loop through the DataGrid rows and confirm that FirstColumn which hold Checkbox is TRUE. If it's TRUE, I need to retrieve the Customer FirstName(2nd Column) and LastName (3rd Column) and transfer the data onto …

Member Avatar for Geekitygeek
-1
308
Member Avatar for elanorejoseph

[CODE]hi can any one please tell me how categorisation can be done [/CODE]

Member Avatar for network18
-2
83
Member Avatar for Benderbrau

Hi guys, I've searched this, but can't find a solution. Basically what I'm doing is writing a binary search tree (which works) and balancing it with AVL (which almost works). As far as I can tell my AVL tree is implemented correctly, but I'm getting a stack overflow error at …

Member Avatar for Geekitygeek
1
596
Member Avatar for sentinel123

Hello This is like my 4th week using Python and I'm still not familiar with it so I might need some help from you guys. I gotta write a little Connect 4 game in Python, I just got started and boom - I'm stuck! I tried to create a board …

Member Avatar for sentinel123
0
2K
Member Avatar for vuyiswamb

Good Day all i have the Following Query [CODE] DECLARE @CurrentTime DATETIME SET @CurrentTime = CURRENT_TIMESTAMP select tr.Descr [Room], tb.Purpose [Purpose], tb.Description [Description], convert(varchar,datepart(hour,tb.starttime))+':'+convert(varchar,datepart(minute,tb.starttime)) [Start Time], convert(varchar,datepart(hour,tb.endtime))+':'+convert(varchar,datepart(minute,tb.endtime)) [End Time], tu.name [Requested by] from tbl_booking tb inner join tbl_resource tr on tb.resources = tr.id inner join tbl_user tu on tu.id = …

Member Avatar for vuyiswamb
0
89
Member Avatar for wchitamb

I am trying to write a bulk import routine so that i will be able to import text files or csv files to SQL i have tried this and it's giving me the following error message. P: is the drive where the file is in currently. [CODE] USE [XYZABQ] GO …

Member Avatar for MeSampath
0
124
Member Avatar for azapovjednik

Hello, Is it possible to insert the data from dbgrid component into an SQL SERVER database table. The data that is in the grid is imported from Excel worksheet. It may look silly but I need to insert that data into a table. Any help is appreciated, thank you

Member Avatar for cao
0
2K
Member Avatar for Ryujin89

I have nearly all of the code figured out, but the instructions make getting the output and variables to match up. If anyone can assist in seeing what the instructor intends for us to do, I would greatly appreciate it. This is a multi-class program where an abstract class implements …

Member Avatar for Ryujin89
0
13K
Member Avatar for rbushlow

I have the following python code to access a MySQL database: [CODE] #!usr/bin/python # server_version.py - retrieve and display database server version import MySQLdb con = MySQLdb.connect (host = "localhost", user = "username", passwd = "password", db = "test") cursor = conn.cursor () cursor.execute ("SELECT VERSION()") row = cursor.fetchone () …

Member Avatar for rajasekhar1242
0
182
Member Avatar for drabsch

I need to get the icon from a drive and put it in a picbox. For example i have an icon on my usb/flash drive and i want to get the icon and put it in a picbox same for my c drive and DVD drive

Member Avatar for drabsch
0
115
Member Avatar for NinjaLink

Hello, I need help reversing elements in a queue using Recursion. My problem is that when I print out the reverse, it does not show the numbers on the screen. However my program compiles and runs. My question is...How come the numbers in reverse are not showing? Thanks for anyone …

Member Avatar for NinjaLink
0
804
Member Avatar for AdventDeo

Hello! I'm trying to extract a php table to an excel file. There's only ONE bit of problem. My table has alternating colors for each row and, lets say once extracted my cells range from A1:G20 in Excel, but instead of just coloring A:G, the row colors went all the …

Member Avatar for chaines51
0
112
Member Avatar for hanzi_ru

hi! i have created a form which contains two combo boxes. the first one can be used to select the location and the second to filter the floors belong to the selected location. i need to know the coding needed to filter the floors which only belongs to the selected …

Member Avatar for dzul73
0
307
Member Avatar for prawnoodle

Hi, Im a beginner & i need help on my assignment. [COLOR="green"]Learning outcomes addressed[/COLOR] 1. To explain the approaches available for systems development 2. To apply appropriate project initiation and requirement capture techniques [COLOR="green"]Background Information/ Topic[/COLOR] As a student of computing you have been talking to the owner of your …

Member Avatar for whichipodtouch
0
157
Member Avatar for DrDeadite

I'm trying to add a memory function, that when you hit the 'M' button, it stores whats in the display into a variable, and when you hit the 'R' button, it retrieves the variable value and displays it and can be used for calculations. Here's my code: [CODE]import javax.swing.*; import …

Member Avatar for DrDeadite
0
122

The End.