15,175 Topics

Member Avatar for
Member Avatar for shweta.raichur

hi all, i am a new bee in wlst. I am able to execute the wlst script from command prompt. but when i try to execute it in cygwin it is not getting executed. can anyone tell me am i doing something wrong.?

0
38
Member Avatar for theweirdone

Hi, I was trying to use my friend's hard drive the other day, but my Windows computer would not recognize it because it was in a Mac file format. I'm now trying to create a program (simple cli), pretty much a file folder, but that would be able to read …

Member Avatar for solomonhomicz
0
792
Member Avatar for yond

How does incrementing the variable count by the recursive call to the function, save count from being reset to zero everytime it is invoked? I am trying to get a firm understanding of how recursion works. [CODE] def countSubStringMatchRecursive(target,key): """Searches for instances of the key substring occuring inside the target …

Member Avatar for TrustyTony
0
100
Member Avatar for ukAntt

Hi all, I am a final year university student currently trying learning and researching python for my dissertation, my supervisor wants me to learn and write a programme in python. I have done a bit of learning (Still learning I should say), I am thinking on [B]a web content filter[/B] …

Member Avatar for vegaseat
0
124
Member Avatar for qingmui

I dont know how to start. I learn python by myself, hopefully i can solve this problem. but i think i need your guys help A palindrome is a sentence that contains the same sequence of letters reading it either forwards or backwards. For example "racecar". Write a recursive function …

Member Avatar for vegaseat
0
772
Member Avatar for thomas.jerald

I am still fairly new to python, and with it being my first object oriented language, I'm taking my time with it... I have been playing with Tkinter, and creating small apps that don't really do a whole lot. Now I'm getting into larger and more complex ones. The question …

Member Avatar for vegaseat
0
98
Member Avatar for luguangseu

Hello! I would like to learn how to plot 3D non-spherical shape (such as cylinder, cube, superquad etc.) using Python by Fortran in Linux environment. Currently I can just plot 3D sphere shapes. Suggestions would be heartly appreciated!

0
38
Member Avatar for novice20

Hi... I have a set of strings as below: [CODE]4:14.4-17M,5:14.4-2e13M,6:14.4-4e9M,7:14.4-8e,22:28.4-35M,23:28.4-2e30M,24:28.4-4e26M,25:28.4-8e18M,26:28.4-16e2M,27:28.4-18e,28:14.16-36M,29:14.16-2e32M,30:14.16-4e28M,31:14.16-8e20M[/CODE] I want everything after the ':' to be discarded. i.e., i just want a list of what preceeds ':' (4,5,6,7,22,.................) How can this be done?

Member Avatar for novice20
0
107
Member Avatar for vik.singh

Hi, i need to create a simple interactive bot in python that response as yes or no for whatever is the user input.Please help.

Member Avatar for richieking
0
81
Member Avatar for FreezeBlink

A classic of early text-based interfaces... Any way to do it in Python? I tried getch(), but it doesn't really work (for instance, if you hit Enter to confirm a menu selection, and then it goes to a "press any key" thing with getch(), getch() will pick up the Enter …

Member Avatar for richieking
0
13K
Member Avatar for Krstevski

Hello friends, I have a small problem with parsing XML documents... My program works great, but if some element is not exist in the XML then I got an exception error, and now I want to ask "How to check if the element is in the XML" ? Here is …

Member Avatar for Krstevski
0
7K
Member Avatar for SoulMazer

I should begin by stating that XML and I don't seem to get along very well. I've just about finished the interface on the level editor for a game I've made, and the next step is generating a XML file so that it can be read into the game dynamically. …

Member Avatar for ultimatebuster
0
155
Member Avatar for FudgeCoder

Here is my code for a calculator. What I don't understand is how it knows which function to execute when someone chooses an option, how does it know to add and not subtract? The program works perfectly. I'm just looking for an explanation on how it knows if I press …

0
70
Member Avatar for FudgeCoder

Hello, I am very new to Python (just started yesterday) and I've written a program for converting temperatures. I get wrong C to F numbers, and when I try to go from F to C I get 0. Here is the code: [CODE] choice =1 while choice==1: print "1. Celcius …

Member Avatar for snippsat
0
250
Member Avatar for vbx_wx

Hello,how can I make the 2 for`s to work at the same time to find out the diferences between A and B ? Thank you. [code] A = "gtggcaacgtgc" B = "gtagcagcgcgc" C = "gcggcacagggt" D = "gtgacaacgtgc" def cromo(a, b): inc = 0 for i in a: for j …

Member Avatar for woooee
0
204
Member Avatar for rotexhawk

I get the following error from running this code. Was wondering if 'i' and 'j' are considered objects. If yes is there any way i could cast them..... How do i write a better for loop for this.... array2D = [[0 for i in range(10)]for j in range(10)] for i …

Member Avatar for djidjadji
0
208
Member Avatar for tinabeana

[ . *&k*. " '*&e* ' " '*'" &k&k&k "*' ' ' *, ] I received this text from a man I have been on a few dates with and have no idea it means?? ANY help would be greatly appreciated!!

Member Avatar for Ene Uran
0
47
Member Avatar for durhamandy

I am trying to find the position of the maximum number in a 2D array. i have used .max() to find the max value but how do i find its position?

Member Avatar for vegaseat
0
244
Member Avatar for linux

Using the tutorial found here: [url]http://www.daniweb.com/code/snippet216550.html[/url], I have begun the graphic portion of my game. I have many .gif battler sprites loaded into variables in my project. However, all of these battlers are right-facing. I need some of them to be flipped to be left-facing to be on the hero's …

Member Avatar for richieking
0
4K
Member Avatar for dark3lf

Hello all, I am building a web application in python that prompts the user for a question that they want to have answered, then gives multiple answers by querying various Q&A sites (yahoo! answers, chacha, answerbag, etc). The problem is, I'm having trouble finding a significant number of APIs from …

Member Avatar for Tech B
0
113
Member Avatar for Thisisnotanid

Hi everyone! I've built prime testers and prime listers before, but they only work sufficiently fast for values <= 1e6. I was thinking about all the prime tester projects they have going on, how do they test very large numbers for primality? I'm talking numbers on the order 1e12, 1e13, …

Member Avatar for Thisisnotanid
0
570
Member Avatar for hughesadam_87

Hey guys, I've been trying to solve this problem many ways now, and am really just not familiar enough with the language to see an elegant solution. I have a dictionary, where each value is itself a list of lists. For example: [CODE]keyA:([x1,y1,z1], [x2,y2,z2] etc...) [/CODE] Within a key, I …

Member Avatar for djidjadji
0
372
Member Avatar for LogicallyInsane

Is there any way to replace certain parts in a string of text with different text? Like this: [code=python]# This is not a functioning code, the actual meaning is totally different from what I'm trying to depict text = 'This is a line of text' print text # shows "This …

Member Avatar for vegaseat
0
117
Member Avatar for nooony

I've been learning python during one semester, and pygame in one week... Im making a simple kid guessing game where random images appear with one word. click on the correct image that the word describes and a little green right image appears and a red cross 'wrong' if it is …

Member Avatar for nooony
0
483
Member Avatar for bxsciencer

Does anyone have the code and test vectors to CRC-24 Radix64 (from RFC4880)? Either the code i have is wrong, or I dont know how to input the data. i cant seem to find a source code from other programs. is this code even correct? [CODE]def CRC24(octets): # octets is …

0
32
Member Avatar for night_guard

[code] class x(object): def __init__(self): self.x=1 class y(x): def __init__(self): super(y, self).__init__() [/code] what is it doing "super" function in here?

Member Avatar for Gribouillis
0
181
Member Avatar for nutrion

All, I have the following that I'm trying to write: [CODE] mac = open("maclisting.txt","a") tn = telnetlib.Telnet(HOST) tn.read_until(b"Username: ") tn.write(b"xxxx\n") tn.read_until(b"Password: ") tn.write(b"xxxx\n") tn.read_until(b"#", 5) tn.write(b"term leng 0\n") tn.read_until(b"#", 5) tn.write(b"sh arp\n") tn.write(b"exit\n") results = (tn.read_all().decode('ascii').split("\n")) for line in results: if len(line) > 40: print(line,) mac.write(line,) else: continue [/CODE] The …

Member Avatar for nutrion
0
146
Member Avatar for dbphydb

Hey all, I am basically a QA tester. To ease some process, i need to download 2 files from some server and calculate the time taken to download each file. 1. The file names are constant 2. The location from where i want to download these files is constant Can …

Member Avatar for richieking
0
372
Member Avatar for hisan

Hello ALL, I need to capture the HTTP requests that are sent from my web application, using Selenium and python please help me in achieving this.

Member Avatar for hisan
0
168
Member Avatar for felix001

I currently have an XML (pasted below) that I want to place into a dictonary. With each dictonary key being the content of the XML`s <TITLE> markup and the values containing the content of the XML`s <ARTISTS*> markup. [CODE]<EXAMPLE> <CD> <TITLE>TITLE1</TITLE> <ARTIST1>ARTIST-ABC</ARTIST1> <ARTIST2>ARTIST-DEF</ARTIST2> </CD> <CD> <TITLE>TITLE2</TITLE> <ARTIST1>ARTIST-XYZ</ARTIST1> </CD> <CD> <TITLE>TITLE3</TITLE> …

Member Avatar for griswolf
0
137

The End.