- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
30 Posted Topics
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 …
Is this what you are looking for? [CODE] >>> a= raw_input() 10 >>> print a 10 >>> [/CODE]
You can also view the contents of the fstab file. cat /etc/fstab This file lists your disk partitions and how they are configured.
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.
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.
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 …
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...
You better ask this type of question in the Software Development forums...
[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... ;)
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 …
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 …
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 …
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,', …
[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 …
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 …
Why not using the repository? yum install gd
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.
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...
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?
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 …
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]
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 …
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 …
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?''') …
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.
[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), ...
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 …
The End.
Firewolf