LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices

Reply
 
Search this Thread
Old 05-17-2003, 07:37 PM   #1
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 65
python rules


Well, my success story doesn't so much have to do with Linux itself, but with programming. I have always wanted to do some programming but it was so obtuse. I would read the source-code and just think whaaaaaaaaaa? I thought it would always be beyond my grasp.

Finally I sat down with the Advanced Bash Scripting Guide (from the tldp) and started writing scripts. I ended up writing a script that converts mp3s to oggs (dir2ogg), learning more and more along the way. The script was all right, but it was limited in the things it could do. I needed a more powerful language.

Using Eric S. Raymond's 'How to be a Hacker' as my inspiration, I tried some stuff with python. The docs are good, the language is clean, and it is much faster than shell scripting.

I decided to rewrite dir2ogg in python. It took all of an hour, and it worked correct on the third attempt. I also got it to preserve the ID3 tags while converting (something the shell version could not do). Talk about breakthrough, I just reached that level when previously baffling things start to make sense.

I am now getting the crazy, foolhardy urge to prototype a cross-platform p2p filesharing app in python, using a gui toolkit (not sure which one yet. Why p2p? Because in my opinion that is the one missing app that Linux needs.

It may take years to get this project in any sort of useable form, but at least now I have the confidence to start it.

Anyway, that's my story and I'm sticking to it.
 
Old 05-18-2003, 08:56 PM   #2
Robert0380
Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
i use limewire, that's p2p written in java (cross platform).
 
Old 05-18-2003, 09:40 PM   #3
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Original Poster
Rep: Reputation: 65
I know about all of them....and don't like any of them....I don't think they are very good at all. What I want to do is something like imesh without all the spyware....
 
Old 05-18-2003, 09:56 PM   #4
rshaw
Senior Member
 
Registered: Apr 2001
Location: Perry, Iowa
Distribution: Mepis , Debian
Posts: 2,694

Rep: Reputation: 45
you might try pyQT, same exact code will run on linux or win (and soon mac). if you have pyQT installed try:

import sys
from qt import *

app=QApplication(sys.argv)
button=QPushButton("python rocks",None)
app.setMainWidget(button)
button.show()
app.exec_loop()

ok, this doesn't do much at first glance, but it inherits the native windowing systems controls(close, minimize,restore,and menu) plus the button automagically repaints itself after its been obscured. thats alot of horsepower for 7 lines of code.
 
Old 05-19-2003, 02:25 AM   #5
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Original Poster
Rep: Reputation: 65
That's actually what I was thinking, I do prefer qt to gtk...the only prob is that the end user must have it installed as well.

Another option I was considering was using anygui (www.anygui.org) which apparently can use any python gui toolkit installed (or at least all the major ones...)
 
Old 05-19-2003, 12:54 PM   #6
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
wxPython, uses wxWindows. I've had a lot of fun cloning apps in Python for windows to teach myself the language.
 
Old 06-16-2003, 01:58 AM   #7
MykilX
Member
 
Registered: Apr 2003
Location: East Coast USA
Distribution: Slackware
Posts: 59

Rep: Reputation: 16
There is a great p2p for linux called pysoulseek. (THe windows version is soulseek) It's coded in python using wxwindows. Best p2p out there imho. Check it out.
home page here http://www.sensi.org/~ak/pyslsk/
 
Old 06-16-2003, 01:10 PM   #8
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Original Poster
Rep: Reputation: 65
Quote:
There is a great p2p for linux called pysoulseek
I'm using it now.....highly recommended
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Processing Conflict: python-devel conflicts python< 2.3.4-13.1 guarriman Fedora 2 04-23-2009 07:02 PM
installing python library's (Python Numeric) Four Linux - Newbie 1 10-16-2005 02:31 PM
WineX, python-gnome, and python-gtk DrD Fedora 0 08-03-2004 12:11 PM
install python 2.3 ,necssary to remove python 2.2 ngan_yine Linux - Newbie 7 12-28-2003 04:07 PM
Viruses, ipchains, dynamic rules, rules with regular expressions marktaff Linux - Security 2 09-25-2001 04:01 AM


All times are GMT -5. The time now is 01:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration