15,181 Topics
| |
US --9--15--13--37 GE --10 --13--7--30 CA-- 14 -- 7 -- 5-- 26 (those dashes are meant to be spaces) How do i remove the first column of the text above so the output would look something like this? 9--15 --13 --37 10 --13--7--30 14 --7-- 5--26 | |
Hello, I have a question pertaining to Python. I have been using the online book "How To Think Like A Computer Scientist" and have been doing the questions at the end of the chapters. I cannot figure out how to modify "num_digits" so that it works as expected.I have tried … | |
Hi folks, ThompsonSensibl, so I'm new to Python. This is probably a noob question... I want to convert a String input to an Integer. I usually do it like this: number = int(someString). However this time this approach doesn't seem to be efficient at all. So far I have: [CODE] … | |
Question regarding compiling *.py script. Everything works fine when I compile the script except that there is no "theme". It looks like it's using win 98 skin or something. Looks very bad. Would like to know how to preserve [COLOR="Green"][I]gtk-theme-name = MS-Windows" [/I][/COLOR]. Which packages or modules should I include … | |
Please can u read two list of numbers into an array and merge sort them in an ascending order into 1dimensional array | |
now i have a finished template which wrote by j2ee,like this: <#list dailyStarList as dailyS> <li <#if (dailyS_index % 2) == 0>class="list_color_w"<#else>class="list_color"</#if>><h2><#list chatAvatarList as cal> <#if dailyS.avatarid == cal.id> ${(cal.name[0..1])!''}之星 <#break> </#if> </#list></h2><h3><#if (dailyMemberList)??> <#list dailyMemberList as dm> <#if dailyS.idx == dm.idx> ${(dm.myname)!''} <#break> </#if> </#list> </#if></h3><h4>${(dailyS.dailyNum)?c!''}</h4></li> </#list> And Now … | |
Hello everybody I'm currently working on a project for visualizing spectrum acquisition. I actually am unable to stretch the axes. The result is a poor representation: [URL="http://farm3.static.flickr.com/2763/4505197080_b308ec603b_o.png"]http://farm3.static.flickr.com/2763/4505197080_b308ec603b_o.png[/URL] The time axis is not expanded as I'd like to which make a slim 3D representation. This is my code used to draw … | |
Hi, I'm having a lot of problem making a SAOP client in Python. I have tried various methods, but non of them seems to work for me. I have a .Net web service, available from an IIS server on another machine. I can access it trough browser, and everything works … | |
I have been recently experimenting with Python embedding, but I stumbled across some problems. [CODE]#include <python3.1/Python.h> int main (void) { Py_Initialize (); PyRun_SimpleString("print (\"Hello World\")"); Py_Finalize (); return 0; } [/CODE] As you see it is not the most complicated code :). I have compiled in Code::Blocks using g++. I … | |
so what i have is a list of lists each individual list is a list of cards cards1 = [AS, 10H, 3D, ...ect.] cards2 = [4H, KS, 6S, 9D,....ect] ColumnList = [cards1, cards2, cards3...etc] It should print out a spider solitare tableau, but as you play the game, this columns … | |
Hey, I am trying to use Tkinter to provide a gui to a simple python script. No matter what I try, my tkinter window always ends up maximised, filling the entire screen. Specifying the height and width has no effect. I have tried a simple label, and tried putting the … | |
Hey, i am new to python. I am making a translator in python 2.6 using basic commands. The translator is english to german. I need to use a i need to use a text file like this... at an brown braun cat raze etc. so far i have created lists … | |
Hi, I'm writing a GUI app with wxPython and I am wondering how I would insert and read/parse accented letters (Spanish accents, for that matter) from a TextCtrl widget. Also, I would like this would be compatible with all platforms (Windows, Linux, etc.). How could I do this? Thanks very … | |
Hi All, Is there any python module which provides the capability to connect & configure WiFi on Microsoft Windows? Thanks | |
I have a funny problem. I am trying to split a string. [code=python] DEVICE_IP = '164.178.7.30' ip = DEVICE_IP.spilt('.') print ip[0]+'-'+ip[1]+'-'+ip[2]+'-'+ip[3] [/code] The above code throws the error [code] Traceback (most recent call last): File "/home/englotk/test", line 2, in <module> ip = str(DEVICE_IP).spilt('.') AttributeError: 'str' object has no attribute 'spilt' … | |
OK so i have written my fun Crossword assistant for Linux - I use Glade and it works like a dream. Well nearly ... I also have Gramps working well under Linux and would like to help my Windows friends use it too. But I want to port it to … | |
Hi, I've been trying to write a Python client to access a SOAP webservice through our companys authenticated proxy server using the SUDS lib. The proxy uses basic username:password authentication not NTLM and I have been able to get basic downloads working through it using URLLIB2 like this: [CODE]passmanager = … | |
Hi all I want a help from you about how to make web server and client ,send and receive data over network securely by using encryption algorithms like DES,3DES and hash techniques. I want the encryption to use a shared secret key which is valid for one session.This is generated … | |
hi expert, i got data when execute the python, then i have send it to the server, how this can be done, i.e I got wireless ssid, so i need to send as follow http://22.42.13.58:8080/ProcessData?ssid="guest" how this can be done i found snippet as follow import urllib import urllib2 #PROXY … | |
HEIP!! I want get ip address and mac address on router use OID and module pysnmpwalk example ip address mac 172.14.4.233 0:b:86:cb:f3:b5 172.14.4.250 0:22:57:81:9f:81 172.14.4.251 0:22:57:bb:b7:41 172.14.4.252 0:24:73:18:ca:81 203.158.207.99 0:1a:64:79:22:c0 203.158.207.100 0:1a:64:96:24:b4 203.158.207.104 0:21:5e:54:80:70 203.158.207.105 0:21:5e:73:8b:f0 203.158.207.106 0:21:5e:73:8a:26 192.168.214.50 0:1a:c1:d8:bb:81 Please post sample code | |
Hi guys, I have recently decided to start doing some work using PyQt, I've been told its pretty good, however I hit a bit of a block when I installed Python 2.6 and PyQt4 only to find that every time I try to run any code that uses any PyQt … | |
ok so I'm very new to python and I know java pretty well... Here is the source code I have come up with for the beginnings of a md5 brute forcing program: [CODE]#For testing purposes only passwords that have one letter/number will be cracked import os import md5 def bruteForce(): … | |
I have a class, and create 4 instances of this class as per below: [code=PYTHON]class AuctionList: def __init__(self): self.Clear_Auction_List() # Data auctionList = [] #Functions .... [/code] [code=PYTHON]currentAuctionList = AuctionList() previousCurrentAuctionList = AuctionList() finishedAuctionList = AuctionList() successfulAuctionList = AuctionList()[/code] The class has a list variable and a few functions to … | |
Hi, I'm writing a multi-threaded script with wxPython as a GUI toolkit. About 50% of the time, I can run my script flawlessly. The other 50% of the time, I get [U]huge[/U] errors regarding wxPython that I cannot seem to decipher; however, I think it could possibly be a problem … | |
Hi. I would like to use conky to display EPG on me desktop. I found a cool website: [URL="http://nazham.com/2009/07/26/how-to-enhance-your-linux-desktop-with-conky/"]http://nazham.com/2009/07/26/how-to-enhance-your-linux-desktop-with-conky/[/URL] and the owner, Mahzan Musa was very kind to provide his code. THANK YOU Unfortunately his html epg source is completely different from mine and the code was not so easy … | |
hello friends can anyone please help me with a C version of a brute force cracker in which i can compare with a selected string and identify for a match.. the c version is in the link bellow [url]http://www.daniweb.com/forums/thread121991.html[/url] cheers | |
Short version: How can I provide a GUI over the web to a user to allow them to select a file from a directory on the server? Explanation: I need to process data files stored on the server and generate some graphs of the results. I have (as my first … | |
I'd like to know how to program a hex editor in python, using just tk with the main installation. (no add ons like wx or any others) if anyone can help, this would be gladly appreciated. I'm not really "good" at python yet, so please try to be detailed. (not … | |
as well as my last thread (hex editor) I need help knowing how to program a 3d model viewer that reads obj format, and supports texturing... unlike the hex editor, I have some code if you want to play around with it... you must set everything manually before you run … | |
hi so for my project we were asked to ask the user to input a width and height for the dimensions of turtle screen. i asked for a user input then split it, and put in into a list then converted the two separate numbers into integers. so for example … |
The End.