No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
23 Posted Topics
I've downloaded it too. It sounds nice.
Use the form's resize event, and apply it on the other controls i guess :D
Try [URL="http://sourceforge.net/projects/devphp/"]Dev-PHP IDE[/URL]
Hi, I've been trying to code a simple file sharing system in python by using Discovery server -indexer- model Server: [CODE]#!bin/python import socket import sys import os import threading from utils import serialize, deserialize, PeerInfo class NotSupportedCommand(Exception): pass class DiscoveryServer(object): '''Indexer...''' def __init__(self, port, maxPeers=5): self.port=port addr=('', self.port) self.maxPeers=maxPeers self.supportedCommands=["/register", …
Try to use extend instead. [code] >>> l=[] >>> l.extend(['1', '2', '3']) >>> l ['1', '2', '3'][/code] Or use a shortcut to it [code] >>> a=[] >>> a += ['1', '2'] >>> a ['1', '2'][/code]
[code] >>> LIST = ["CANADA", "HELLO", "I TOLD YOU SO"] >>> conv_list=[] >>> for el in LIST: conv_list +=[el.lower()] >>> conv_list ['canada', 'hello', 'i told you so'] [/code]
[code] >>> l=[1, 2, 3, 4, 5] >>> l2=[number for number in range(1, 10) if not number in l] >>> l2 [6, 7, 8, 9] [/code] or something like this : [code] >>> l3=[] >>> for number in range(1, 10): #if number in l: pass if not number in l: …
[code] test = [random.randint(1,10) for i in range(20)][/code] equals [code] >>> import random >>> test=[] >>> for i in range(20): #test.append(random.randint(1, 10)) random_int=random.randint(1, 10) test.append(random_int) [/code]
[code] >>> name=raw_input("Enter your name [first, last]") Enter your name (first, last): FIRST, LAST >>> List=name.split(', ') #name='FIRST, LAST' >>> List ['FIRST', 'LAST'] >>>print "Hi, ", List[0] # print first [/code] OR [code] >>> index=name.find(',') #First occurance of the comma >>> first=name[0:index] >>> first 'FIRST' [/code]
Hi, How can i create a ref to a string ? it doesn't work like lists :S List : (IDs are the same!) [CODE] >>> li=[1, 2, 3, 4, 5] >>> li_ref=li >>> id(li) 13545800 >>> id(li_ref) 13545800 >>> li.pop() 5 >>> li [1, 2, 3, 4] >>> id(li) 13545800 …
A good start [url]http://www.daniweb.com/forums/thread20774.html[/url] Google-> Python Tutorials -Monty -Snake
Hi, Any informations about python certifications ?
Hi, What do you think of this OS ? [url]http://sharpos.sourceforge.net[/url]
How can i control the position of the cursor ? something like this maybe: [code] print "\n"*500 setCursor(0, 0) [/code]
I'll give you a hint 1- Count the letters of the input string 2- populate an array of integers with random numbers in range(0, count) 3- Happy ending (Avril lavigne) :)
Show us your code.
[url]http://knowfree.net/[/url] Hope it helps.
Well, parsing from double to integer may cause a loss on the data (OverflowException). Assume we have a button on the form called btnDisplay and TextBox called txtBox1 . [code] Private Sub btnDisplay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplay.Click Dim x As Integer x = Int32.Parse(txtBox1.Text) MessageBox.Show(x) …
are you asking for something like dataSet.Read/WriteXMLSchema methods ?
The End.
StrikerX11