- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
30 Posted Topics
Re: If you are running the Python script in a terminal, this should be no problem. I made following script: [CODE] import os username = 'testuser' password = 'testps2010' os.system("useradd -d /home/%s -m -p %s %s" % (username, password, username)) os.system("passwd %s" % username)[/CODE] Running it, gave the next results. The … | |
Re: Is this what you are looking for? [CODE] >>> a= raw_input() 10 >>> print a 10 >>> [/CODE] | |
Re: You can also view the contents of the fstab file. cat /etc/fstab This file lists your disk partitions and how they are configured. | |
Re: From anywhere on your system: [CODE]find / -iname "matrixcal"[/CODE] If needed you can use jokers, e.g. "matrixcal*". If you want to search case sensitive, use -name option instead. By using the path "/", you can search from anywhere, find will always start from the root. | |
Re: You can kill the process if you want... [QUOTE]ps -e | grep firefox[/QUOTE] will give you the processnumber of the Firefox process. [QUOTE]kill processnumber[/QUOTE] will kill the process. | |
Re: I would recommend Eclipse. Result from 'yum info eclipse-jdt': Name : eclipse-jdt Arch : x86_64 Epoch : 1 Version : 3.5.1 Release : 21.fc12 Size : 25 M Repo : installed From repo : updates Summary : Eclipse Java Development Tools URL : [url]http://www.eclipse.org/[/url] License : EPL Description: Eclipse Java … | |
Re: Did she use a mail client (e.g. Thunderbird) or webmail? If she used webmail, I doubt there will be a local file containing the contacts. I'm not a hotmail user myself, so I can be wrong... | |
Re: You better ask this type of question in the Software Development forums... | |
Re: [QUOTE=fenerista;1096897]Use linux with virtual box or vmware on windows, that is the best :=[/QUOTE] Or use Windows in Virtual Box on Linux... as I do... ;) | |
Re: About certifications: LPIC: [url]http://www.lpi.org/[/url] RedHat: [url]http://www.redhat.com/certification/rhce/[/url] About the documentation: I mostly use the web for information. Which distribution do you want to use? For a Fedora system, this might be a good start (I'm a Fedora user): [url]http://www.howtoforge.com/perfect-server-fedora-12-x86_64-ispconfig-2[/url] If you want Windows clients to connect and use Linux servers, then … | |
Re: If you want to create a share on your Linux system that you can access from Windows, have a look at SAMBA. Install SAMBA, configure a share in the /etc/samba/smb.conf and start the smbd service. | |
Hi, I have 13 OpenOffice Impress files (ODP) with a total of about 300 slides containing text and pictures. I need to convert these into 1 OpenOffice Writer file (ODT). I have been trying and searching for some time now, but I didn't found a good solution yet... besides manually … | |
Re: The 'self' keyword refers to the object (your class). In your first example, you define a TextCtrl object and assign it to 'FilePathTextBox'. So in the constructor '__init__', 'FilePathTextBox' is a TextCtrl object. In the OnClick method 'FilePathTextBox' is not recognised as a TextCtrl object, but as a local variable … | |
Re: First of all, I would use a Python string function 'translate'... then a 'split' with a space as argument... an example in the Python interpreter... [CODE] >>> mystr = "Hello, test" >>> newstr = mystr.translate(None, 'les') >>> print newstr Ho, tt >>> splitstr = newstr.split(' ') >>> print splitstr ['Ho,', … | |
Re: [QUOTE=talk2sachi;1104777] Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists! [/QUOTE] Probably your mysql service 'mysqld' is not running... Check with... [QUOTE]service mysqld status[/QUOTE] If not running, start with... (as root) [QUOTE]service mysqld start[/QUOTE] To always activate the service on boot... [QUOTE]chkconfig mysqld on[/QUOTE] On Fedora systems (CentOS … | |
Re: What do you want to do with the server? Mail server, file sharing, print server, DHCP, routing, ...? That defines the packages you will need to install / configure. Perhaps, a good start is the following: [url]http://www.howtoforge.com/perfect-server-fedora-11-x86_64-ispconfig-2[/url] Which distro is the best for a server? Don't know. I am using … | |
Re: Have you tried to put your asg directory in the folder: /var/www/html This is where you have to place your website/application on a default Fedora webserver. I'm not an Ubuntu user, so it's just a guess. | |
Re: Just an idea... The first 9 positive integers are: 1, 2, ..., 9 Their cubes are: 1, 4, ..., 81 The sum of these cubes is: 285 285 has to excluded from the list And so on... | |
Re: I don't get the NameError error when running your code. I just get following warning, but the code in running fine. [CODE]/usr/lib64/python2.6/site-packages/pygame/sysfont.py:139: DeprecationWarning: os.popen3 is deprecated. Use the subprocess module. flin, flout, flerr = os.popen3('fc-list : file family style')[/CODE] What version of Python & PyGame are you using? | |
Re: If you are programming games in Python it might be interesting to have a look at PyGame: [url]http://www.pygame.org/[/url] What you are looking for is the concept of 'Path finding'. More technically, you might have a look into 'vector' usage (either 2D or 3D). LocationCurrentSprite = Vector(...) LocationNPCSprite = Vector(...) distance … | |
Re: First of all: indentation would help. What is your exact error message? I'm getting the following error: [CODE]/usr/lib64/python2.6/site-packages/wx-2.8-gtk2-unicode/wx/_core.py:14450: UserWarning: wxPython/wxWidgets release number mismatch warnings.warn("wxPython/wxWidgets release number mismatch")[/CODE] Are you getting the same error when you try 'import wx' in the Python interpreter? Then you might have a look at: [url]https://bugzilla.redhat.com/show_bug.cgi?id=502608[/url] | |
Re: First of all, don't you have to pass the complete device name? For a serial port, this is '/dev/ttyS0'. Edit: I tried to figure out your code via the error messages. It's a problem with integer - string conversion. Your 'port' variable get a string value. You have to convert … | |
Hi, I am Firewolf (Frank). Registered at Daniweb today. I am a 37-years old engineer, living in Belgium with my two cats Thor and Eos. Graduated as a mechanical engineer in 1995, but playing with computers for more than 20 years now. Also working in some form of ICT environment … | |
Re: Just a small addition about the disk layout. As pogson already mentioned, you can put all the directories into one partition, so no separate partition for /home, /var, /root, ... The installers of Ubuntu & Fedora (I don't know about Slackware) do however the partitioning for you. You can select … ![]() | |
Re: A rewrite with a class. I used the 'raw_input' function instead of the 'input' function. [CODE] import random class Game(): def __init__(self): self.player_total = 0 def gameIntro(self): print('''This is a dice roll game. Dice are rolled, and you recieve money if you are equal to the total. Are you ready?''') … | |
Re: The raw_input function returns a string. You have to convert the result to an integer. In the get_digits function, change this: [CODE]make_pass(int(le), int(d))[/CODE] This solves the problem. | |
Re: [url]http://rpmfusion.org/[/url] RPMFusion is a very interesting repository for Fedora users when in need for audio and video software, like codecs (e.g. mp3), players (e.g. vlc player), drivers (e.g. nvidia), ... | |
Re: I am a Red Hat / Fedora user for more than 10 years already. I'm not so familiar with Ubuntu, but the concepts are the same. [QUOTE=Garrett85;1092078]Can't you just go to the websites and download the programs directly?[/QUOTE] Yes, you can. There are several options: [LIST] [*]download binaries: in case … |