Available Count
int64
1
31
AnswerCount
int64
1
35
GUI and Desktop Applications
int64
0
1
Users Score
int64
-17
588
Q_Score
int64
0
6.79k
Python Basics and Environment
int64
0
1
Score
float64
-1
1.2
Networking and APIs
int64
0
1
Question
stringlengths
15
7.24k
Database and SQL
int64
0
1
Tags
stringlengths
6
76
CreationDate
stringlengths
23
23
System Administration and DevOps
int64
0
1
Q_Id
int64
469
38.2M
Answer
stringlengths
15
7k
Data Science and Machine Learning
int64
0
1
ViewCount
int64
13
1.88M
is_accepted
bool
2 classes
Web Development
int64
0
1
Other
int64
1
1
Title
stringlengths
15
142
A_Id
int64
518
72.2M
6
8
0
1
2
0
0.024995
0
My hosting service does not currently run/allow svn, git, cvs on their server. I would really like to be able to 'sync' my current source on my development machine with my production server. I am looking for a pure php/python/ruby version control system (not just a client for a version control system) that does not require any services running on the server machine, something that could use the http interface to upload/download and sync files - basically offering a back end into my 'live' site for version control. Additionally, I would think that such a system would be easy to develop an 'online' ide for, so that I could develop directly on the production server. (issues of testing aside of course) Does anyone know if such a system exists? ==Edit== Really, I want a wiki front end for a version control / development system - Basically look like a wiki and edit development files so that I could easily make and roll back changes via the web. I doubt this exists, but it would be easy to extend an existing php port of svn...
0
php,python,version-control,web-applications
2009-02-04T20:34:00.000
0
513,173
I think it's actually a pretty good idea, but don't believe such a versioning system exists (yet) so hopefully you'll go ahead and make one. I don't think adapting an existing solution is going to be easy, but it's probably worth looking into because if you use an existing solution you'll have all the client support done, and most of the versioning difficulties taken care of. Starting from scratch is not going to be trivial. -Adam
0
1,960
false
1
1
pure web based versioning system
513,366
6
8
0
7
2
0
1
0
My hosting service does not currently run/allow svn, git, cvs on their server. I would really like to be able to 'sync' my current source on my development machine with my production server. I am looking for a pure php/python/ruby version control system (not just a client for a version control system) that does not require any services running on the server machine, something that could use the http interface to upload/download and sync files - basically offering a back end into my 'live' site for version control. Additionally, I would think that such a system would be easy to develop an 'online' ide for, so that I could develop directly on the production server. (issues of testing aside of course) Does anyone know if such a system exists? ==Edit== Really, I want a wiki front end for a version control / development system - Basically look like a wiki and edit development files so that I could easily make and roll back changes via the web. I doubt this exists, but it would be easy to extend an existing php port of svn...
0
php,python,version-control,web-applications
2009-02-04T20:34:00.000
0
513,173
Get a better hosting service. Seriously. Even if you found something that worked in PHP/Ruby/Perl/Whatever, it would still be a sub-par solution. It most likely wouldn't integrate with any IDE you have, and wouldn't have a good tool set available for working with it. It would be really clunky to do correctly. The other option is to get a free SVN host, or host SVN on your own machine, and then just push updates from your SVN host to your web site via ftp.
0
1,960
false
1
1
pure web based versioning system
513,231
6
8
0
0
2
0
0
0
My hosting service does not currently run/allow svn, git, cvs on their server. I would really like to be able to 'sync' my current source on my development machine with my production server. I am looking for a pure php/python/ruby version control system (not just a client for a version control system) that does not require any services running on the server machine, something that could use the http interface to upload/download and sync files - basically offering a back end into my 'live' site for version control. Additionally, I would think that such a system would be easy to develop an 'online' ide for, so that I could develop directly on the production server. (issues of testing aside of course) Does anyone know if such a system exists? ==Edit== Really, I want a wiki front end for a version control / development system - Basically look like a wiki and edit development files so that I could easily make and roll back changes via the web. I doubt this exists, but it would be easy to extend an existing php port of svn...
0
php,python,version-control,web-applications
2009-02-04T20:34:00.000
0
513,173
you could try the reverse way use e.g. a free online svn/git Service to version control the sources on your dev machine use usual ways to update the "production" machine aka site, like FTP
0
1,960
false
1
1
pure web based versioning system
513,253
6
8
0
1
2
0
0.024995
0
My hosting service does not currently run/allow svn, git, cvs on their server. I would really like to be able to 'sync' my current source on my development machine with my production server. I am looking for a pure php/python/ruby version control system (not just a client for a version control system) that does not require any services running on the server machine, something that could use the http interface to upload/download and sync files - basically offering a back end into my 'live' site for version control. Additionally, I would think that such a system would be easy to develop an 'online' ide for, so that I could develop directly on the production server. (issues of testing aside of course) Does anyone know if such a system exists? ==Edit== Really, I want a wiki front end for a version control / development system - Basically look like a wiki and edit development files so that I could easily make and roll back changes via the web. I doubt this exists, but it would be easy to extend an existing php port of svn...
0
php,python,version-control,web-applications
2009-02-04T20:34:00.000
0
513,173
Use Bazaar: Lightweight. No dedicated server with Bazaar installed is needed, just FTP access to a web server. A smart server is available for those requiring additional performance or security but it is not required in many cases - Bazaar 1.x over plain http performs well.
0
1,960
false
1
1
pure web based versioning system
515,956
6
8
0
2
2
0
0.049958
0
My hosting service does not currently run/allow svn, git, cvs on their server. I would really like to be able to 'sync' my current source on my development machine with my production server. I am looking for a pure php/python/ruby version control system (not just a client for a version control system) that does not require any services running on the server machine, something that could use the http interface to upload/download and sync files - basically offering a back end into my 'live' site for version control. Additionally, I would think that such a system would be easy to develop an 'online' ide for, so that I could develop directly on the production server. (issues of testing aside of course) Does anyone know if such a system exists? ==Edit== Really, I want a wiki front end for a version control / development system - Basically look like a wiki and edit development files so that I could easily make and roll back changes via the web. I doubt this exists, but it would be easy to extend an existing php port of svn...
0
php,python,version-control,web-applications
2009-02-04T20:34:00.000
0
513,173
Don't host your repository on your web server. Deploy from your server to the ftp/sftp - whatever.
0
1,960
false
1
1
pure web based versioning system
513,322
1
2
0
2
5
1
0.197375
0
We are running a large project with several different languages: Java, Python, PHP, SQL and Perl. Until now people have been working in their own private repositories, but now we want to merge the entire project in a single repository. The question now is: how should the directory structure look? Should we have separate directories for each language, or should we separate it by component/project? How well does python/perl/java cope with a common directory layout?
0
java,python,sql,directory
2009-02-05T16:57:00.000
0
516,798
I think the best thing to do would be to ensure that your various modules don't depend upon being in the same directory (i.e. separate by component). A lot of people seem to be deathly afraid of this idea, but a good set of build scripts should be able to automate away any pain. The end goal would be to make it easy to install the infrastructure, and then really easy to work on a single component once the environment is setup. (It's important to note that I come from the Perl and CL worlds, where we install "modules" into some global location, like ~/perl or ~/.sbcl, rather than including each module with each project, like Java people do. You'd think this would be a maintenance problem, but it ends up not being one. With a script that updates each module from your git repository (or CPAN) on a regular basis, it is really the best way.) Edit: one more thing: Projects always have external dependencies. My projects need Postgres and a working Linux install. It would be insane to bundle this with the app code in version control -- but a script to get everything setup on a fresh workstation is very helpful. I guess what I'm trying to say, in a roundabout way perhaps, is that I don't think you should treat your internal modules differently from external modules.
0
1,166
false
1
1
Mixed language source directory layout
518,493
2
8
0
1
8
1
0.024995
0
I have downloaded the Pyscripter and learning Python. But I have no Idea if it has any job value , especially in India. I am learning Python as a Hobby. But it would be comforting to know if Python programmers are in demand in India.
0
python
2009-02-06T13:08:00.000
0
520,210
It's juste one example but I know it is widely used in large scientific institutions with high tech machinery where non-programmers (typically physicists) need quick prototypes or tools to cover their data collection/processing needs. The easy-to access scripting language aspect clearly plays its role here. So I don't know about building a career out of that only but I'd definitely say that knowing Python is a very valuable asset on your resume, it'll strengthen your "smell of usefulness".
0
5,951
false
0
1
Where is Python used? I read about it a lot on Reddit
520,369
2
8
0
1
8
1
0.024995
0
I have downloaded the Pyscripter and learning Python. But I have no Idea if it has any job value , especially in India. I am learning Python as a Hobby. But it would be comforting to know if Python programmers are in demand in India.
0
python
2009-02-06T13:08:00.000
0
520,210
In 10 years of web development I've had 1 client have me write an email parsing app with it. Not that it doesn't get used, but I've seen Ruby/php/.net way more often in the wild. Edit: From the other posts if you plan on working at Google, it sounds like the language to learn - LOL!
0
5,951
false
0
1
Where is Python used? I read about it a lot on Reddit
520,257
1
3
0
0
1
0
1.2
1
Does anyone know if there is some parameter available for programmatic search on yahoo allowing to restrict results so only links to files of specific type will be returned (like PDF for example)? It's possible to do that in GUI, but how to make it happen through API? I'd very much appreciate a sample code in Python, but any other solutions might be helpful as well.
0
python,yahoo-api,yahoo-search
2009-02-07T00:27:00.000
0
522,781
Thank you. I found myself that something like this works OK (file type is the first argument, and query is the second): format = sys.argv[1] query = " ".join(sys.argv[2:]) srch = create_search("Web", app_id, query=query, format=format)
0
1,551
true
0
1
how to search for specific file type with yahoo search API?
526,491
2
17
0
1
687
0
0.011764
0
What's the simplest way to do a find and replace for a given input string, say abc, and replace with another string, say XYZ in file /tmp/file.txt? I am writting an app and using IronPython to execute commands through SSH — but I don't know Unix that well and don't know what to look for. I have heard that Bash, apart from being a command line interface, can be a very powerful scripting language. So, if this is true, I assume you can perform actions like these. Can I do it with bash, and what's the simplest (one line) script to achieve my goal?
0
bash,replace,scripting,ironpython
2009-02-08T11:57:00.000
1
525,592
For MAC users in case you don't read the comments :) As mentioned by @Austin, if you get the Invalid command code error For the in-place replacements BSD sed requires a file extension after the -i flag to save to a backup file with given extension. sed -i '.bak' 's/find/replace' /file.txt You can use '' empty string if you want to skip backup. sed -i '' 's/find/replace' /file.txt All merit to @Austin
0
811,095
false
0
1
Find and Replace Inside a Text File from a Bash Command
70,116,740
2
17
0
2
687
0
0.023525
0
What's the simplest way to do a find and replace for a given input string, say abc, and replace with another string, say XYZ in file /tmp/file.txt? I am writting an app and using IronPython to execute commands through SSH — but I don't know Unix that well and don't know what to look for. I have heard that Bash, apart from being a command line interface, can be a very powerful scripting language. So, if this is true, I assume you can perform actions like these. Can I do it with bash, and what's the simplest (one line) script to achieve my goal?
0
bash,replace,scripting,ironpython
2009-02-08T11:57:00.000
1
525,592
Simplest way to replace multiple text in a file using sed command Command - sed -i 's#a/b/c#D/E#g;s#/x/y/z#D:/X#g;' filename In the above command s#a/b/c#D/E#g where I am replacing a/b/c with D/E and then after the ; we again doing the same thing
0
811,095
false
0
1
Find and Replace Inside a Text File from a Bash Command
68,204,228
1
5
0
7
1
0
1.2
0
I'm working on a regression-testing tool that will validate a very large number of Excel spreadsheets. At the moment I control them via COM from a Python script using the latest version of the pywin32 product. Unfortunately COM seems to have a number of annoying drawbacks: For example, the slightest upset seems to be able to break the connection to the COM-Server, once severed there seems to be no safe way to re-connect to the Excel application. There's absolutely no safety built into the COM Application object. The Excel COM interface will not allow me to safely remote-control two seperate instances of the Excel application operating on the same workbook file, even if they are read-only. Also when something does go wrong I seldom get any useful error-messages... at best I can except a numerical error-code or a barely useful message such as "An Exception has occurred". It's almost impossible to know why something went wrong. Finally, COM lacks the ability to control some of the most fundamental aspects of Excel? For example there's no way to do a guaranteed close of just the Excel process that a COM client is connected to. You cannot even use COM to find Excel's PID. So what if I were to completely abandon COM? Is there an alternative way to control Excel? All I want to do is run macros, open and close workbooks and read and write cell-ranges? Perhaps some .NET experts know a trick or two which have not yet bubbled into the Python community? What about you office-hackers? Could there be a better way to get at Excel's innards than COM?
0
python,.net,excel,com
2009-02-09T16:21:00.000
0
528,817
There is no way that completely bypasses COM. You can use VSTO (Visual Studio Tools for Office), which has nice .NET wrappers on the COM objects, but it is still COM underneath.
0
5,983
true
0
1
Is there a better way (besides COM) to remote-control Excel?
528,833
2
3
0
0
7
1
0
0
I'm writing a Python program with a lot of file access. It's running surprisingly slowly, so I used cProfile to find out what was taking the time. It seems there's a lot of time spent in what Python is reporting as "{built-in method acquire}". I have no idea what this method is. What is it, and how can I speed up my program?
0
python,optimization,profiling,performance
2009-02-09T21:41:00.000
0
530,127
you want to look for cpu used, not for "total time used" from within that method--that might help. Sorry I don't use python but that's how it is for me in ruby :) -r
0
2,567
false
0
1
What is Python's "built-in method acquire"? How can I speed it up?
1,267,504
2
3
0
0
7
1
0
0
I'm writing a Python program with a lot of file access. It's running surprisingly slowly, so I used cProfile to find out what was taking the time. It seems there's a lot of time spent in what Python is reporting as "{built-in method acquire}". I have no idea what this method is. What is it, and how can I speed up my program?
0
python,optimization,profiling,performance
2009-02-09T21:41:00.000
0
530,127
Using threads for IO is a bad idea. Threading won't make your program wait faster. You can achieve better results by using asynchronous I/O and an event loop; Post more information about your program, and why you are using threads.
0
2,567
false
0
1
What is Python's "built-in method acquire"? How can I speed it up?
530,233
1
5
0
2
16
0
0.07983
0
I switched from NAnt to using Python to write build automation scripts. I am curious if whether any build frameworks worth using that are similar to Make, Ant, and NAnt, but, instead, are Python-based. For example, Ruby has Rake. What about Python?
0
python,build-process,build-automation
2009-02-12T16:59:00.000
0
542,289
My Rapid Throughts: SCons is quite mature and oriented also to other languages (es C++) Waf is very simlar to ant/maven, so you will prefer it if you are used to ant/maven Paver is very pythonic oriented, and seems a good option if you do not know how to start.
0
2,630
false
1
1
Are there any good build frameworks written in Python?
3,838,805
4
5
0
0
6
1
0
0
Imagine that you need to develop and schedule an application/script to do the following:- Reference one or more .net assemblies Query the API, get some objects for each object call another method in the API What would you use? In the past I have created small console applications that do the above, but it seems a bit clumsy and overkill. I imagine something like PowerShell or IronPython might be a better fit. Any recommendations?
0
.net,powershell,scripting,automation,ironpython
2009-02-14T16:41:00.000
0
549,344
Out of frustration with PowerShell I did look into IronPython. I think this is a good alternative to powershell, especially if you are a programmer. Even if you are an IT person, I think Windows command shell + IronPython is a good combination that will accomplish what you need in the .NET era (like what command shell + vbscript was fine for in the COM era).
0
373
false
0
1
What is the best technology to use for automating a task using .net libraries?
549,602
4
5
0
2
6
1
1.2
0
Imagine that you need to develop and schedule an application/script to do the following:- Reference one or more .net assemblies Query the API, get some objects for each object call another method in the API What would you use? In the past I have created small console applications that do the above, but it seems a bit clumsy and overkill. I imagine something like PowerShell or IronPython might be a better fit. Any recommendations?
0
.net,powershell,scripting,automation,ironpython
2009-02-14T16:41:00.000
0
549,344
IronPython. I trialled using both Powershell and IronPython for the above task and came to the conclusion that IronPython was the best fit (for me). To be fair either Powershell or any DLR based language such as IronPython or IronRuby would suit the task and would be less overhead than looking after trivial console applications. If all you are doing is consuming a .net library and doing some scripting then IronPython edges Powershell. If you want to utilise some sort of shell-type functionality or use existing CMDLETS then Powershell is a better choice. IronPython, being a implementation of python, brings all the advantages of python for scripting such as being easy to learn, easy to read and quick to develop in.
0
373
true
0
1
What is the best technology to use for automating a task using .net libraries?
564,698
4
5
0
2
6
1
0.07983
0
Imagine that you need to develop and schedule an application/script to do the following:- Reference one or more .net assemblies Query the API, get some objects for each object call another method in the API What would you use? In the past I have created small console applications that do the above, but it seems a bit clumsy and overkill. I imagine something like PowerShell or IronPython might be a better fit. Any recommendations?
0
.net,powershell,scripting,automation,ironpython
2009-02-14T16:41:00.000
0
549,344
The problem with application drivers is that they constantly break. Applications are constantly changing their external surface and this wreaks havoc on drivers. Therefore you constantly need to updated parts of the drivers. I find a non-compiled dynamic language is ideal for this as you can quickly make an update and kick off a task. Powershell is a great technology for this. It is an amazingly flexible and really easy to pick up. It is a mix of compiled and dynamic code. So the more algorithm heavy portions of your driver can be any compiled language and the more fragile and frequently updated pieces can be script. They integrate seamlessly. I'm an avid Powershell user and really don't have much experience with IronPython (hence my choice). IronPython could also have these features though so if you're more comfortable with that language it's where you should go.
0
373
false
0
1
What is the best technology to use for automating a task using .net libraries?
549,356
4
5
0
3
6
1
0.119427
0
Imagine that you need to develop and schedule an application/script to do the following:- Reference one or more .net assemblies Query the API, get some objects for each object call another method in the API What would you use? In the past I have created small console applications that do the above, but it seems a bit clumsy and overkill. I imagine something like PowerShell or IronPython might be a better fit. Any recommendations?
0
.net,powershell,scripting,automation,ironpython
2009-02-14T16:41:00.000
0
549,344
One of the advantages of PowerShell is that they've done a lot of work in the background to make things fit together easily, doing implicit type conversions etc to make the output of one program usable as the input to another. And since everything passes objects, you don't have to write text munging code to cobble things together. I do prefer Python, however, when I'm writing a large amount of original code rather than relying heavily on libraries and gluing together components.
0
373
false
0
1
What is the best technology to use for automating a task using .net libraries?
549,404
10
12
0
10
7
1
1
0
I am working on C++ since last 4-5 years . Recently I have bought iphone and macbook and want do do some programming for iphone. So I have started reading one book about Objective-C. I have also learn that we can program with Ruby and Python on MAC. So my question is which one to study? Which language you guys see the FUTURE??? Can we program with these languages on other platforms? Or are these only limited on MAC? I am just a beginner in objective-C.Need some expert thoughts which way to go. AC
0
python,objective-c,ruby,programming-languages
2009-02-15T07:28:00.000
0
550,474
If you want to program for iphone then you should use objective-C. The entire iphone API is based on objective-C, and you have the benefits of using interface builder and IDE support from Xcode.
0
15,650
false
0
1
Study Objective-C , Ruby OR Python?
550,496
10
12
0
2
7
1
0.033321
0
I am working on C++ since last 4-5 years . Recently I have bought iphone and macbook and want do do some programming for iphone. So I have started reading one book about Objective-C. I have also learn that we can program with Ruby and Python on MAC. So my question is which one to study? Which language you guys see the FUTURE??? Can we program with these languages on other platforms? Or are these only limited on MAC? I am just a beginner in objective-C.Need some expert thoughts which way to go. AC
0
python,objective-c,ruby,programming-languages
2009-02-15T07:28:00.000
0
550,474
I have written small games, interpreters, and tons of awessome stuff in Ruby. I Wouldn't recommend It to write intensive AI programs for instance, but It's fun to learn and powerful for most applications. Even when I do most of my work in C++ Ruby is my favorite language for subjective reasons. Objective C as most people said Is a must in iPhone development, and fun if You're enthusiastic about learning languages. I haven't tried Python, but I hear nothing but good things about It, and PyGames Is quite popular. I would learn the three ( well...I would skip objective C unless You're curious about getting into iPhone development), the most languages you know, the best professional You will be. As a good professor of mine always said..It's not about being the master in just one language, It's about knowing the pros and cons of each one to choose the right one according to the particular problem You want to solve. Cheers !
0
15,650
false
0
1
Study Objective-C , Ruby OR Python?
1,331,003
10
12
0
2
7
1
0.033321
0
I am working on C++ since last 4-5 years . Recently I have bought iphone and macbook and want do do some programming for iphone. So I have started reading one book about Objective-C. I have also learn that we can program with Ruby and Python on MAC. So my question is which one to study? Which language you guys see the FUTURE??? Can we program with these languages on other platforms? Or are these only limited on MAC? I am just a beginner in objective-C.Need some expert thoughts which way to go. AC
0
python,objective-c,ruby,programming-languages
2009-02-15T07:28:00.000
0
550,474
Just my two cents...As I'm sure you're aware, Apple and others in the respective communities are doing a lot of work with Ruby and Python, for both Mac and iPhone development. Objective-C will pretty much get you into Apple arenas only these days (though maybe that's not a bad thing;) However, if you are only going to learn one language in the foreseeable future, think about where you will be using it, and what for. Ruby and Python will get you a lot further if you are looking beyond solely Mac desktop and iPhone.
0
15,650
false
0
1
Study Objective-C , Ruby OR Python?
552,528
10
12
0
7
7
1
1
0
I am working on C++ since last 4-5 years . Recently I have bought iphone and macbook and want do do some programming for iphone. So I have started reading one book about Objective-C. I have also learn that we can program with Ruby and Python on MAC. So my question is which one to study? Which language you guys see the FUTURE??? Can we program with these languages on other platforms? Or are these only limited on MAC? I am just a beginner in objective-C.Need some expert thoughts which way to go. AC
0
python,objective-c,ruby,programming-languages
2009-02-15T07:28:00.000
0
550,474
Objective-C is the only way to program an iPhone if you want to produce native programs that can be sold in the App Store. Some of the more advanced concepts in Objective-C are now being added to languages like C# (eg: extension methods in C# v3.0). Learning to think in Objective-C will be useful, the OO model you learn will be applicable to most other languages and environments as an addition to your C++ experience. Ruby's object model is closer to that of Objective-C than is Python so I suggest also learning Ruby but not until you have your Objective-C skills down solidly. Note that you can use Objective-C++ and use C++ for all but your GUI code by having .mm suffixes on your files - this works on both iPhone and Mac. Given your C++ experience, that help you be productive. If you want to program iPhone, don't bother learning the new Objective-C 2.0 memory management but you can still use the Properties model (iPhone effectively has a subset of the Objective-C 2.0 runtime).
0
15,650
false
0
1
Study Objective-C , Ruby OR Python?
550,516
10
12
0
2
7
1
0.033321
0
I am working on C++ since last 4-5 years . Recently I have bought iphone and macbook and want do do some programming for iphone. So I have started reading one book about Objective-C. I have also learn that we can program with Ruby and Python on MAC. So my question is which one to study? Which language you guys see the FUTURE??? Can we program with these languages on other platforms? Or are these only limited on MAC? I am just a beginner in objective-C.Need some expert thoughts which way to go. AC
0
python,objective-c,ruby,programming-languages
2009-02-15T07:28:00.000
0
550,474
Ruby. With Ruby you will be able to do both web development (Rails/Sinatra/etc.) and very soon program on the MAC/Iphone platform with the Macruby project. Why not get the best of both worlds? Tommy
0
15,650
false
0
1
Study Objective-C , Ruby OR Python?
550,980
10
12
0
2
7
1
0.033321
0
I am working on C++ since last 4-5 years . Recently I have bought iphone and macbook and want do do some programming for iphone. So I have started reading one book about Objective-C. I have also learn that we can program with Ruby and Python on MAC. So my question is which one to study? Which language you guys see the FUTURE??? Can we program with these languages on other platforms? Or are these only limited on MAC? I am just a beginner in objective-C.Need some expert thoughts which way to go. AC
0
python,objective-c,ruby,programming-languages
2009-02-15T07:28:00.000
0
550,474
To program on Mac OS X, you really do need a good foundation in Objective-C. The vast majority of documentation will assume Objective-C. Even if you choose to program some applications in some other language, you will be better off having a good understanding of it.
0
15,650
false
0
1
Study Objective-C , Ruby OR Python?
550,540
10
12
0
2
7
1
0.033321
0
I am working on C++ since last 4-5 years . Recently I have bought iphone and macbook and want do do some programming for iphone. So I have started reading one book about Objective-C. I have also learn that we can program with Ruby and Python on MAC. So my question is which one to study? Which language you guys see the FUTURE??? Can we program with these languages on other platforms? Or are these only limited on MAC? I am just a beginner in objective-C.Need some expert thoughts which way to go. AC
0
python,objective-c,ruby,programming-languages
2009-02-15T07:28:00.000
0
550,474
If you program with Objective-C, your main goal should be writing Cocoa applications on the Mac. Beyond that, it has little use. Ruby and Python are useful scripting languages, and there are also bridges to write Cocoa applications. If you want to write apps on the Mac, I would start with Objective-C. There is more support available. In terms of the future, it seems like a lot of people are jumping on the Ruby bandwagon at the moment. Good luck.
0
15,650
false
0
1
Study Objective-C , Ruby OR Python?
550,499
10
12
0
7
7
1
1
0
I am working on C++ since last 4-5 years . Recently I have bought iphone and macbook and want do do some programming for iphone. So I have started reading one book about Objective-C. I have also learn that we can program with Ruby and Python on MAC. So my question is which one to study? Which language you guys see the FUTURE??? Can we program with these languages on other platforms? Or are these only limited on MAC? I am just a beginner in objective-C.Need some expert thoughts which way to go. AC
0
python,objective-c,ruby,programming-languages
2009-02-15T07:28:00.000
0
550,474
Which language you guys see the FUTURE??? Future of what? iPhone development? Objective-C. Web Services? Python/Ruby in parallel for a while. At least until people start trying to do maintenance on large Ruby applications and get frustrated with it's opacity. Real-time game engine development? Embedded applications? Future of what? "Can we program with these languages on other platforms? Or are these only limited on MAC?" Ruby and Python: Yes. These are designed to run on any platform that supports C. Objective-C: Yes. It's open source, it's in the GCC, it should work almost anywhere. Learning a new language is not a zero-sum game. You can learn more than one language; learning Objective-C now does not prevent you from learning Python or Ruby in the future.
0
15,650
false
0
1
Study Objective-C , Ruby OR Python?
550,829
10
12
0
4
7
1
0.066568
0
I am working on C++ since last 4-5 years . Recently I have bought iphone and macbook and want do do some programming for iphone. So I have started reading one book about Objective-C. I have also learn that we can program with Ruby and Python on MAC. So my question is which one to study? Which language you guys see the FUTURE??? Can we program with these languages on other platforms? Or are these only limited on MAC? I am just a beginner in objective-C.Need some expert thoughts which way to go. AC
0
python,objective-c,ruby,programming-languages
2009-02-15T07:28:00.000
0
550,474
As a Perlite, I'm just going to point out that OS X has Perl as well as Python or Ruby. As far as Perl/Python/Ruby goes, programs are almost completely cross-platform. It is fairly easy to run a Perl/Python/Ruby program on any platform and it works more or less the same. There may be some minor differences, but they're not major. Objective-C, while not strictly confined to OS X, is only really used in OpenStep-based environments, which generally means OS X and the iPhone. The only Objective-C compiler I know of is gcc, and I imagine you can write Objective-C on Linux, but I don't know if Windows support is very good (if it exists). As for which is the language of the "future", all 3 (or 4) languages will be used very widely in the future. No one can really predict this kind of thing, and none of the languages are really going to die off (unless Apple switches to a new language as a "standard" for making Mac programs), so you'll be pretty safe with any of them. My advice: try them all out and see which one you think most suits your style, and learn that one.
0
15,650
false
0
1
Study Objective-C , Ruby OR Python?
550,485
10
12
0
1
7
1
0.016665
0
I am working on C++ since last 4-5 years . Recently I have bought iphone and macbook and want do do some programming for iphone. So I have started reading one book about Objective-C. I have also learn that we can program with Ruby and Python on MAC. So my question is which one to study? Which language you guys see the FUTURE??? Can we program with these languages on other platforms? Or are these only limited on MAC? I am just a beginner in objective-C.Need some expert thoughts which way to go. AC
0
python,objective-c,ruby,programming-languages
2009-02-15T07:28:00.000
0
550,474
Objective-C is only Mac/iPhone, and I recommend you to learn if you want to develop applications for Mac/iPhone. Python is everything and it's future, but python more preferable for web development. Python is Google :) Python is web, games, science, graphics, desktop, etc. Also it's very good choice if you are C/C++ developer. Not sure if i can recommend you to learn Ruby...
0
15,650
false
0
1
Study Objective-C , Ruby OR Python?
550,868
3
9
0
0
58
0
0
0
Several processes with the same name are running on host. What is the cross-platform way to get PIDs of those processes by name using python or jython? I want something like pidof but in python. (I don't have pidof anyway.) I can't parse /proc because it might be unavailable (on HP-UX). I do not want to run os.popen('ps') and parse the output because I think it is ugly (field sequence may be different in different OS). Target platforms are Solaris, HP-UX, and maybe others.
0
python,cross-platform,jython,hp-ux
2009-02-15T10:23:00.000
1
550,653
There isn't, I'm afraid. Processes are uniquely identified by pid not by name. If you really must find a pid by name, then you will have use something like you have suggested, but it won't be portable and probably will not work in all cases. If you only have to find the pids for a certain application and you have control over this application, then I'd suggest changing this app to store its pid in files in some location where your script can find it.
0
78,794
false
0
1
Cross-platform way to get PIDs by process name in python
557,021
3
9
0
0
58
0
0
0
Several processes with the same name are running on host. What is the cross-platform way to get PIDs of those processes by name using python or jython? I want something like pidof but in python. (I don't have pidof anyway.) I can't parse /proc because it might be unavailable (on HP-UX). I do not want to run os.popen('ps') and parse the output because I think it is ugly (field sequence may be different in different OS). Target platforms are Solaris, HP-UX, and maybe others.
0
python,cross-platform,jython,hp-ux
2009-02-15T10:23:00.000
1
550,653
For jython, if Java 5 is used, then you can get the Java process id as following: from java.lang.management import * pid = ManagementFactory.getRuntimeMXBean().getName()
0
78,794
false
0
1
Cross-platform way to get PIDs by process name in python
727,024
3
9
0
1
58
0
0.022219
0
Several processes with the same name are running on host. What is the cross-platform way to get PIDs of those processes by name using python or jython? I want something like pidof but in python. (I don't have pidof anyway.) I can't parse /proc because it might be unavailable (on HP-UX). I do not want to run os.popen('ps') and parse the output because I think it is ugly (field sequence may be different in different OS). Target platforms are Solaris, HP-UX, and maybe others.
0
python,cross-platform,jython,hp-ux
2009-02-15T10:23:00.000
1
550,653
I don't think you will be able to find a purely python-based, portable solution without using /proc or command line utilities, at least not in python itself. Parsing os.system is not ugly - someone has to deal with the multiple platforms, be it you or someone else. Implementing it for the OS you are interested in should be fairly easy, honestly.
0
78,794
false
0
1
Cross-platform way to get PIDs by process name in python
550,672
1
4
0
5
18
1
0.244919
0
I'm thinking about using Python as an embedded scripting language in a hobby project written in C++. I would not like to depend on separately installed Python distribution. Python documentation seems to be quite clear about general usage, but I couldn't find a clear answer to this. Is it feasible to deploy a Python interpreter + standard library with my application? Would some other language like Lua, Javascript (Spidermonkey), Ruby, etc. be better for this use? Here's the criteria I'm weighing the different languages against: No/Few dependencies on externally installed packages Standard library with good feature set Nice language :) Doesn't result in a huge install package edit: I guess the question should be: How do I deploy my own python library + standard library with the installer of my program, so that it doesn't matter whether the platform already has python installed or not? edit2: One more clarification. I don't need info about specifics of linking C and Python code.
0
c++,python,deployment,scripting-language,embedded-language
2009-02-15T17:12:00.000
0
551,227
To extend the answer by gimel, there is nothing to stop you from shipping python.dll, using it, and setting a correct PYTHONPATH in order to use your own installation of the python standard library. They are just libraries and files, and your install process can just deal with them as such.
0
4,914
false
0
1
Deploying application with Python or another embedded scripting language
551,332
5
8
0
16
12
1
1.2
0
I'm a C# .NET developer and I work on mostly ASP.NET projects. I want to learn a new programming language, to improve my programming skills by experiencing a new language, to see something different then microsoft environment, and maybe to think in a different way. I focus on two languages for my goal. Python and Ruby. Which one do you offer for me ? Pros and cons of them on each other? Is it worth learning them ? EDIT : Sorry I editted my post but not inform here, Ruby on Rails replaced with Ruby.
0
python,ruby-on-rails,ruby,comparison
2009-02-15T19:45:00.000
0
551,465
Both languages are powerful and fun. Either would be a useful addition to your tool box. Python has a larger community and probably more mature documentation and libraries. Its object-orientation is a little inconsistent and feels (to me, IMHO) like something that was bolted on to the language. You can alter class behaviour at runtime (monkey-patching) but not for the precompiled classes and it's generally frowned-upon. Ruby might be a little more different to your current experience: it has some flavour of Smalltalk (method-calling is more correctly message-sending for example). Its object-orientation is built-in from scratch, all classes are open to modification and it's an accepted - if slightly scary - practise. The community is smaller, the libraries less mature and documentation coverage is less. Both languages will have some level of broken backward compatibility in their next majopr releases, both have .Net implementations (IronPython is production, IronRuby getting there). Both have web frameworks that reflect their strengths (search SO for the Django/Rails debate). If I'd never seen Ruby, I'd be very happy working in Python, and have done so without suffering when necessary. I always found myself wishing I could do the work in Ruby. But that's my opinion, YMMV. Edit: Come to think of it, and even though it pains me, if you're seeking to leverage your knowledge of the .Net framework, you might be best off looking at IronPython, as it's more mature than the Ruby equivalent.
0
1,835
true
1
1
Python or Ruby for a .NET developer?
552,734
5
8
0
6
12
1
1
0
I'm a C# .NET developer and I work on mostly ASP.NET projects. I want to learn a new programming language, to improve my programming skills by experiencing a new language, to see something different then microsoft environment, and maybe to think in a different way. I focus on two languages for my goal. Python and Ruby. Which one do you offer for me ? Pros and cons of them on each other? Is it worth learning them ? EDIT : Sorry I editted my post but not inform here, Ruby on Rails replaced with Ruby.
0
python,ruby-on-rails,ruby,comparison
2009-02-15T19:45:00.000
0
551,465
First... good for you for wanting to broaden your knowledge! Second, you are comparing a language (Python) with a web framework (Ruby on Rails). I think your best option is to try a few different frameworks in both Python and Ruby, do the same fairly simple task in each, and only then pick which one you'd like to learn more about. Rails is nice for Ruby, but it's not the only one out there. For Python I like Pylons and Django. Pros and cons: Ruby is a little cleaner, language-wise, than Python. Python has a much larger set of modules. Is it worth learning? Yes, to both Python and Ruby.
0
1,835
false
1
1
Python or Ruby for a .NET developer?
551,484
5
8
0
2
12
1
0.049958
0
I'm a C# .NET developer and I work on mostly ASP.NET projects. I want to learn a new programming language, to improve my programming skills by experiencing a new language, to see something different then microsoft environment, and maybe to think in a different way. I focus on two languages for my goal. Python and Ruby. Which one do you offer for me ? Pros and cons of them on each other? Is it worth learning them ? EDIT : Sorry I editted my post but not inform here, Ruby on Rails replaced with Ruby.
0
python,ruby-on-rails,ruby,comparison
2009-02-15T19:45:00.000
0
551,465
Rule of thumb - Python if you like strict rules and Ruby if you hate them. Another one: if you adore JavaScript - Ruby is your choice :)
0
1,835
false
1
1
Python or Ruby for a .NET developer?
552,177
5
8
0
2
12
1
0.049958
0
I'm a C# .NET developer and I work on mostly ASP.NET projects. I want to learn a new programming language, to improve my programming skills by experiencing a new language, to see something different then microsoft environment, and maybe to think in a different way. I focus on two languages for my goal. Python and Ruby. Which one do you offer for me ? Pros and cons of them on each other? Is it worth learning them ? EDIT : Sorry I editted my post but not inform here, Ruby on Rails replaced with Ruby.
0
python,ruby-on-rails,ruby,comparison
2009-02-15T19:45:00.000
0
551,465
What? No mention of IronPython? IronPython is the flagship language of the DLR. It allows you to use all the familiar .NET libraries, but through Python. I would definitely try Python and IronPython. You'll learn a lot and might even sneak it into your current projects (you can embed an IronPython engine in a .NET application).
0
1,835
false
1
1
Python or Ruby for a .NET developer?
555,166
5
8
0
0
12
1
0
0
I'm a C# .NET developer and I work on mostly ASP.NET projects. I want to learn a new programming language, to improve my programming skills by experiencing a new language, to see something different then microsoft environment, and maybe to think in a different way. I focus on two languages for my goal. Python and Ruby. Which one do you offer for me ? Pros and cons of them on each other? Is it worth learning them ? EDIT : Sorry I editted my post but not inform here, Ruby on Rails replaced with Ruby.
0
python,ruby-on-rails,ruby,comparison
2009-02-15T19:45:00.000
0
551,465
I'd get in on Ruby. Seems to have a larger (or at least more active) community, the pace of new projects & continued development is second-to-none, and the learning resources seem to outnumber & outpace those of Python. I could be wrong, but these are my impressions.
0
1,835
false
1
1
Python or Ruby for a .NET developer?
552,126
1
6
0
1
11
0
0.033321
0
I need to load (de-serialize) a pre-computed list of integers from a file in a Python script (into a Python list). The list is large (upto millions of items), and I can choose the format I store it in, as long as loading is fastest. Which is the fastest method, and why? Using import on a .py file that just contains the list assigned to a variable Using cPickle's load Some other method (perhaps numpy?) Also, how can one benchmark such things reliably? Addendum: measuring this reliably is difficult, because import is cached so it can't be executed multiple times in a test. The loading with pickle also gets faster after the first time probably because page-precaching by the OS. Loading 1 million numbers with cPickle takes 1.1 sec the first time run, and 0.2 sec on subsequent executions of the script. Intuitively I feel cPickle should be faster, but I'd appreciate numbers (this is quite a challenge to measure, I think). And yes, it's important for me that this performs quickly. Thanks
0
python,serialization,caching
2009-02-17T13:16:00.000
0
556,730
cPickle will be the fastest since it is saved in binary and no real python code has to be parsed. Other advantates are that it is more secure (since it does not execute commands) and you have no problems with setting $PYTHONPATH correctly.
1
8,359
false
0
1
Python list serialization - fastest method
556,961
1
14
1
0
9
0
0
0
For C++, Java, or Python, what are some good game + free game engines that are easy to pick up? Any type of game engine is okay. I just want to get started somewhere by looking into different game engines and their capabilities.
0
java,c++,python
2009-02-19T09:05:00.000
0
564,469
There is a RPG engine called VERGE if you're interested. Never tried it but I heard good things from it. I think it's in C++.
0
10,754
false
0
1
What is a good & free game engine?
1,949,983
5
16
0
4
16
1
0.049958
0
I'm in the process of learning Python while implementing build scripts and such. And for the moment everything is working fine in that the scripts do what they need to do. But I keep having the feeling I'm missing something, such as "The Python Way". I know build scripts and glue scripts are not really the most exciting development work and may hardly be a candidate for revealing the true power of Python but I'd still like the opportunity to have my mind blown. I develop mostly in C# and I find that my Python code looks awfully similar in structure and style to a lot of my C# code. In other words I feel like I'm thinking in C# but writing in Python. Am I really missing something? (Note: I realize this isn't so much a programming question and it's quite broad and there may not be a definitive answer so mod me down into oblivion if you have to.)
0
python
2009-02-19T19:50:00.000
0
566,865
Think like this: If you are writing too much for little work, something is wrong, this is not pythonic. Most Python code you will write is very simple and direct. Usually you don't need much work for anything simple. If you are writing too much, stop and think if there is a better way. (and this is how I learned many things in Python!)
0
3,078
false
0
1
Python: Am I missing something?
4,105,859
5
16
0
2
16
1
0.024995
0
I'm in the process of learning Python while implementing build scripts and such. And for the moment everything is working fine in that the scripts do what they need to do. But I keep having the feeling I'm missing something, such as "The Python Way". I know build scripts and glue scripts are not really the most exciting development work and may hardly be a candidate for revealing the true power of Python but I'd still like the opportunity to have my mind blown. I develop mostly in C# and I find that my Python code looks awfully similar in structure and style to a lot of my C# code. In other words I feel like I'm thinking in C# but writing in Python. Am I really missing something? (Note: I realize this isn't so much a programming question and it's quite broad and there may not be a definitive answer so mod me down into oblivion if you have to.)
0
python
2009-02-19T19:50:00.000
0
566,865
Write some Python code and post it on SO for review and feedback whether it is pythonic.
0
3,078
false
0
1
Python: Am I missing something?
689,204
5
16
0
0
16
1
0
0
I'm in the process of learning Python while implementing build scripts and such. And for the moment everything is working fine in that the scripts do what they need to do. But I keep having the feeling I'm missing something, such as "The Python Way". I know build scripts and glue scripts are not really the most exciting development work and may hardly be a candidate for revealing the true power of Python but I'd still like the opportunity to have my mind blown. I develop mostly in C# and I find that my Python code looks awfully similar in structure and style to a lot of my C# code. In other words I feel like I'm thinking in C# but writing in Python. Am I really missing something? (Note: I realize this isn't so much a programming question and it's quite broad and there may not be a definitive answer so mod me down into oblivion if you have to.)
0
python
2009-02-19T19:50:00.000
0
566,865
To echo TLHOLADAY, read the standard library. That's where the "pythonic" stuff is. If you're not getting a good feel there, then read the source for sqlachemy or django or your project of choice.
0
3,078
false
0
1
Python: Am I missing something?
571,297
5
16
0
0
16
1
0
0
I'm in the process of learning Python while implementing build scripts and such. And for the moment everything is working fine in that the scripts do what they need to do. But I keep having the feeling I'm missing something, such as "The Python Way". I know build scripts and glue scripts are not really the most exciting development work and may hardly be a candidate for revealing the true power of Python but I'd still like the opportunity to have my mind blown. I develop mostly in C# and I find that my Python code looks awfully similar in structure and style to a lot of my C# code. In other words I feel like I'm thinking in C# but writing in Python. Am I really missing something? (Note: I realize this isn't so much a programming question and it's quite broad and there may not be a definitive answer so mod me down into oblivion if you have to.)
0
python
2009-02-19T19:50:00.000
0
566,865
I would suggest finding a personal python guru. Show them some of your code and have them review/rewrite it into idiomatic python. Thus will you be enlightened.
0
3,078
false
0
1
Python: Am I missing something?
569,123
5
16
0
3
16
1
0.037482
0
I'm in the process of learning Python while implementing build scripts and such. And for the moment everything is working fine in that the scripts do what they need to do. But I keep having the feeling I'm missing something, such as "The Python Way". I know build scripts and glue scripts are not really the most exciting development work and may hardly be a candidate for revealing the true power of Python but I'd still like the opportunity to have my mind blown. I develop mostly in C# and I find that my Python code looks awfully similar in structure and style to a lot of my C# code. In other words I feel like I'm thinking in C# but writing in Python. Am I really missing something? (Note: I realize this isn't so much a programming question and it's quite broad and there may not be a definitive answer so mod me down into oblivion if you have to.)
0
python
2009-02-19T19:50:00.000
0
566,865
To add to the answers of Andrew Hare and Baishampayan Ghose... To learn the idiom of any language must involve reading code written in that idiom. I'm still learning the Python idiom, but I've been through this with other languages. I can read about list comprehensions, but the lightbulb only really comes on when you see such things in use and say, "Wow! That's awesome! Two lines of code and it's crystal clear!" So go find some pythonic code that you find interesting and start reading it and understanding it. The knowledge will stay in your head better if you see everything in the context of a working program.
0
3,078
false
0
1
Python: Am I missing something?
566,934
4
9
0
3
42
0
0.066568
0
Deploying a WSGI application. There are many ways to skin this cat. I am currently using apache2 with mod-wsgi, but I can see some potential problems with this. So how can it be done? Apache Mod-wsgi (the other mod-wsgi's seem to not be worth it) Pure Python web server eg paste, cherrypy, Spawning, Twisted.web as 2 but with reverse proxy from nginx, apache2 etc, with good static file handling Conversion to other protocol such as FCGI with a bridge (eg Flup) and running in a conventional web server. More? I want to know how you do it, and why it is the best way to do it. I would absolutely love you to bore me with details about the whats and the whys, application specific stuff, etc. I will upvote any non-insane answer.
0
python,deployment,wsgi
2009-02-22T00:58:00.000
0
574,068
Apache httpd + mod_fcgid using web.py (which is a wsgi application). Works like a charm.
0
14,313
false
1
1
How do YOU deploy your WSGI application? (and why it is the best way)
612,622
4
9
0
1
42
0
0.022219
0
Deploying a WSGI application. There are many ways to skin this cat. I am currently using apache2 with mod-wsgi, but I can see some potential problems with this. So how can it be done? Apache Mod-wsgi (the other mod-wsgi's seem to not be worth it) Pure Python web server eg paste, cherrypy, Spawning, Twisted.web as 2 but with reverse proxy from nginx, apache2 etc, with good static file handling Conversion to other protocol such as FCGI with a bridge (eg Flup) and running in a conventional web server. More? I want to know how you do it, and why it is the best way to do it. I would absolutely love you to bore me with details about the whats and the whys, application specific stuff, etc. I will upvote any non-insane answer.
0
python,deployment,wsgi
2009-02-22T00:58:00.000
0
574,068
We are using pure Paste for some of our web services. It is easy to deploy (with our internal deployment mechanism; we're not using Paste Deploy or anything like that) and it is nice to minimize the difference between production systems and what's running on developers' workstations. Caveat: we don't expect low latency out of Paste itself because of the heavyweight nature of our requests. In some crude benchmarking we did we weren't getting fantastic results; it just ended up being moot due to the expense of our typical request handler. So far it has worked fine. Static data has been handled by completely separate (and somewhat "organically" grown) stacks, including the use of S3, Akamai, Apache and IIS, in various ways.
0
14,313
false
1
1
How do YOU deploy your WSGI application? (and why it is the best way)
612,607
4
9
0
1
42
0
0.022219
0
Deploying a WSGI application. There are many ways to skin this cat. I am currently using apache2 with mod-wsgi, but I can see some potential problems with this. So how can it be done? Apache Mod-wsgi (the other mod-wsgi's seem to not be worth it) Pure Python web server eg paste, cherrypy, Spawning, Twisted.web as 2 but with reverse proxy from nginx, apache2 etc, with good static file handling Conversion to other protocol such as FCGI with a bridge (eg Flup) and running in a conventional web server. More? I want to know how you do it, and why it is the best way to do it. I would absolutely love you to bore me with details about the whats and the whys, application specific stuff, etc. I will upvote any non-insane answer.
0
python,deployment,wsgi
2009-02-22T00:58:00.000
0
574,068
Apache+mod_wsgi, Simple, clean. (only four lines of webserver config), easy for other sysadimns to get their head around.
0
14,313
false
1
1
How do YOU deploy your WSGI application? (and why it is the best way)
616,720
4
9
0
6
42
0
1
0
Deploying a WSGI application. There are many ways to skin this cat. I am currently using apache2 with mod-wsgi, but I can see some potential problems with this. So how can it be done? Apache Mod-wsgi (the other mod-wsgi's seem to not be worth it) Pure Python web server eg paste, cherrypy, Spawning, Twisted.web as 2 but with reverse proxy from nginx, apache2 etc, with good static file handling Conversion to other protocol such as FCGI with a bridge (eg Flup) and running in a conventional web server. More? I want to know how you do it, and why it is the best way to do it. I would absolutely love you to bore me with details about the whats and the whys, application specific stuff, etc. I will upvote any non-insane answer.
0
python,deployment,wsgi
2009-02-22T00:58:00.000
0
574,068
Nginx reverse proxy and static file sharing + XSendfile + uploadprogress_module. Nothing beats it for the purpose. On the WSGI side either Apache + mod_wsgi or cherrypy server. I like to use cherrypy wsgi server for applications on servers with less memory and less requests. Reasoning: I've done benchmarks with different tools for different popular solutions. I have more experience with lower level TCP/IP than web development, especially http implementations. I'm more confident that I can recognize a good http server than I can recognize a good web framework. I know Twisted much more than Django or Pylons. The http stack in Twisted is still not up to this but it will be there.
0
14,313
false
1
1
How do YOU deploy your WSGI application? (and why it is the best way)
635,680
2
7
0
15
39
1
1
0
Do you know of any tool that could assist me in obfuscating python code?
0
python,obfuscation
2009-02-23T09:08:00.000
0
576,963
Your problem space is underspecified. Is this for a command-line app? Is this code supposed to be used as a library? In addition to the two other answers, you could embed the code into a binary. When it starts, decode the code and eval the string. This works for a shared library extension as well. You could also do that with byte code, I think, but it wouldn't be as simple as calling Py_EvalCode. py2exe or freeze are other solution, which convert the code into an executable. It just includes the code in the binary, and doesn't do any sort of serious obsfucation, but it's still harder than opening a .py file. You could write the code in Cython, which is similar to Python and writes Python extension files in C, for use as a .so. That's perhaps the hardest of these to reverse engineer and still give you a high-level language for develoment. They are all hackable, as are all solutions. How hard to you want it to be?
0
39,050
false
0
1
Python Code Obfuscation
577,161
2
7
0
5
39
1
0.141893
0
Do you know of any tool that could assist me in obfuscating python code?
0
python,obfuscation
2009-02-23T09:08:00.000
0
576,963
In many situations you can ship byte-compiled .pyc files instead of the .py source files. This gives you some level of obfuscation. As the pyobfuscate README suggests, this has limitations. But you may be able to combine the two approaches.
0
39,050
false
0
1
Python Code Obfuscation
577,067
6
8
0
0
5
1
0
0
My teacher told me that if I wanted to get the best grade in our programming class, I should code a Simple Source Code Converter. Python to Ruby (the simplest he said) Now my question to you: how hard is it to code a simple source code converter for python to ruby. (It should convert file controlling, Control Statements, etc.) Do you have any tips for me? Which language should I use to code the converter (C#, Python or Ruby)?
0
python,ruby,converter
2009-02-23T21:48:00.000
0
579,524
The hardest part would be preserving semantics. Like how do you deal with metaclass assignments, or function decorators, or yield-based generators when going to Ruby? I have no Ruby experience so I don't know what is directly supported.
0
4,019
false
0
1
How do I code a source code converter from python to ruby?
579,627
6
8
0
0
5
1
0
0
My teacher told me that if I wanted to get the best grade in our programming class, I should code a Simple Source Code Converter. Python to Ruby (the simplest he said) Now my question to you: how hard is it to code a simple source code converter for python to ruby. (It should convert file controlling, Control Statements, etc.) Do you have any tips for me? Which language should I use to code the converter (C#, Python or Ruby)?
0
python,ruby,converter
2009-02-23T21:48:00.000
0
579,524
As simple as coming up with enough clever regexps that convert the syntax correctly. Ruby and python's syntax is close enough for this to be not very hard. You might need to do abit of extra work to rewrite stuff that you have in python that doesn't exist in ruby like listing comprehension for instance.
0
4,019
false
0
1
How do I code a source code converter from python to ruby?
579,540
6
8
0
13
5
1
1
0
My teacher told me that if I wanted to get the best grade in our programming class, I should code a Simple Source Code Converter. Python to Ruby (the simplest he said) Now my question to you: how hard is it to code a simple source code converter for python to ruby. (It should convert file controlling, Control Statements, etc.) Do you have any tips for me? Which language should I use to code the converter (C#, Python or Ruby)?
0
python,ruby,converter
2009-02-23T21:48:00.000
0
579,524
I think your teacher is fibbing - this is pretty hard. It is equivalent to writing a compiler/interpreter. I don't know how much time you have available for this project, but you are typically looking at several man-years of work.
0
4,019
false
0
1
How do I code a source code converter from python to ruby?
579,549
6
8
0
0
5
1
0
0
My teacher told me that if I wanted to get the best grade in our programming class, I should code a Simple Source Code Converter. Python to Ruby (the simplest he said) Now my question to you: how hard is it to code a simple source code converter for python to ruby. (It should convert file controlling, Control Statements, etc.) Do you have any tips for me? Which language should I use to code the converter (C#, Python or Ruby)?
0
python,ruby,converter
2009-02-23T21:48:00.000
0
579,524
It sounds like your teacher is a bit of a practical joker!
0
4,019
false
0
1
How do I code a source code converter from python to ruby?
579,595
6
8
0
0
5
1
0
0
My teacher told me that if I wanted to get the best grade in our programming class, I should code a Simple Source Code Converter. Python to Ruby (the simplest he said) Now my question to you: how hard is it to code a simple source code converter for python to ruby. (It should convert file controlling, Control Statements, etc.) Do you have any tips for me? Which language should I use to code the converter (C#, Python or Ruby)?
0
python,ruby,converter
2009-02-23T21:48:00.000
0
579,524
the language should not matter. pick the one you are most comfortable with strings in. tips wise i would use a dictionary/look-up array for the keywords. The hardest part will be dealing with the white space in python
0
4,019
false
0
1
How do I code a source code converter from python to ruby?
579,546
6
8
0
0
5
1
0
0
My teacher told me that if I wanted to get the best grade in our programming class, I should code a Simple Source Code Converter. Python to Ruby (the simplest he said) Now my question to you: how hard is it to code a simple source code converter for python to ruby. (It should convert file controlling, Control Statements, etc.) Do you have any tips for me? Which language should I use to code the converter (C#, Python or Ruby)?
0
python,ruby,converter
2009-02-23T21:48:00.000
0
579,524
First simple may mean that it does not take care of all the valid semantics of Python, but only a subset of this. The first thing I would get would be a copy of the dragon book, which you can find in any university library. The second thing I would do would be to get a copy of the syntax and semantics of Python.
0
4,019
false
0
1
How do I code a source code converter from python to ruby?
579,543
2
10
0
0
24
1
0
0
I have a tool which I have written in python and generally should be run as a daemon. What are the best practices for packaging this tool for distribution, particularly how should settings files and the daemon executable/script be handled? Relatedly are there any common tools for setting up the daemon for running on boot as appropriate for the given platform (i.e. init scripts on linux, services on windows, launchd on os x)?
0
python,packaging,setuptools,distutils
2009-02-26T01:32:00.000
1
588,749
correct me if wrong, but I believe the question is how to DEPLOY the daemon. Set your app to install via pip and then make the entry_point a cli(daemon()). Then create an init script that simply runs $app_name &
0
16,678
false
0
1
Python Daemon Packaging Best Practices
40,901,455
2
10
0
0
24
1
0
0
I have a tool which I have written in python and generally should be run as a daemon. What are the best practices for packaging this tool for distribution, particularly how should settings files and the daemon executable/script be handled? Relatedly are there any common tools for setting up the daemon for running on boot as appropriate for the given platform (i.e. init scripts on linux, services on windows, launchd on os x)?
0
python,packaging,setuptools,distutils
2009-02-26T01:32:00.000
1
588,749
On Linux systems, the system's package manager (Portage for Gentoo, Aptitude for Ubuntu/Debian, yum for Fedora, etc.) usually takes care of installing the program including placing init scripts in the right places. If you want to distribute your program for Linux, you might want to look into bundling it up into the proper format for various distributions' package managers. This advice is obviously irrelevant on systems which don't have package managers (Windows, and Mac I think).
0
16,678
false
0
1
Python Daemon Packaging Best Practices
588,835
4
7
0
1
2
0
0.028564
0
I am going to be building a Pylons-based web application. For this purpose, I'd like to build a minimal Linux platform, upon which I would then install the necessary packages such as Python and Pylons, and other necessary dependencies. The other reason to keep it minimal is because this machine will be virtual, probably over KVM, and will eventually be replicated in some cloud environment. What would you use to do this? I am thinking of using Fedora 10's AOS iso, but would love to understand all my options.
0
python,linux,pylons
2009-02-26T04:33:00.000
1
589,115
If you want to be able to remove all the cruft but still be using a ‘mainstream’ distro rather than one cut down to aim at tiny devices, look at Slackware. You can happily remove stuff as low-level as sysvinit, cron and so on, without collapsing into dependency hell. And nothing in it relies on Perl or Python, so you can easily remove them (and install whichever version of Python your app prefers to use).
0
602
false
0
1
Miminal Linux For a Pylons Web App?
590,001
4
7
0
1
2
0
0.028564
0
I am going to be building a Pylons-based web application. For this purpose, I'd like to build a minimal Linux platform, upon which I would then install the necessary packages such as Python and Pylons, and other necessary dependencies. The other reason to keep it minimal is because this machine will be virtual, probably over KVM, and will eventually be replicated in some cloud environment. What would you use to do this? I am thinking of using Fedora 10's AOS iso, but would love to understand all my options.
0
python,linux,pylons
2009-02-26T04:33:00.000
1
589,115
For this purpose, I'd like to build a minimal Linux platform... So Why not try to use ArchLinux www.archlinux.org? Also you can use virtualenv with Pylons in it.
0
602
false
0
1
Miminal Linux For a Pylons Web App?
895,583
4
7
0
0
2
0
0
0
I am going to be building a Pylons-based web application. For this purpose, I'd like to build a minimal Linux platform, upon which I would then install the necessary packages such as Python and Pylons, and other necessary dependencies. The other reason to keep it minimal is because this machine will be virtual, probably over KVM, and will eventually be replicated in some cloud environment. What would you use to do this? I am thinking of using Fedora 10's AOS iso, but would love to understand all my options.
0
python,linux,pylons
2009-02-26T04:33:00.000
1
589,115
debootstrap is your friend.
0
602
false
0
1
Miminal Linux For a Pylons Web App?
589,638
4
7
0
0
2
0
0
0
I am going to be building a Pylons-based web application. For this purpose, I'd like to build a minimal Linux platform, upon which I would then install the necessary packages such as Python and Pylons, and other necessary dependencies. The other reason to keep it minimal is because this machine will be virtual, probably over KVM, and will eventually be replicated in some cloud environment. What would you use to do this? I am thinking of using Fedora 10's AOS iso, but would love to understand all my options.
0
python,linux,pylons
2009-02-26T04:33:00.000
1
589,115
Damn Small Linux? Slax?
0
602
false
0
1
Miminal Linux For a Pylons Web App?
589,645
1
2
0
0
3
0
0
0
I'm trying to find resources on video and voice chat operability in Python... Does anybody know of some good resources or sample projects? Any help would really be appreciated!
0
python,audio,chat,voice
2009-02-26T10:56:00.000
0
590,053
Basically a farsight lib which has xmpp-jingle that can accomodate video and voice chat is commonly used,for python itz farsight.py: try it.....!
0
3,199
false
0
1
Video and Voice chat operability in Python
6,936,316
1
12
0
5
52
1
0.083141
0
I do a lot of Python quick simulation stuff and I'm constantly saving (:w) and then running (:!!). Is there a way to combine these actions? Maybe a "save and run" command.
0
python,vim
2009-03-02T01:54:00.000
0
601,039
Command combination seems to work through the | character, so perhaps something like aliasing :w|!your-command-here to a distinct key combination.
0
19,544
false
0
1
Save and run at the same time in Vim
601,053
1
3
0
2
1
0
0.132549
0
i'm looking for a C++ replacement of the Python PubSub Library in which i don't have to connect a signal with a slot or so, but instead can register for a special Kind of messages, without knowing the object which can send it.
0
c++,python,observer-pattern,publish-subscribe
2009-03-03T09:02:00.000
0
605,629
Perhaps you misunderstand what signals and slots are. With signals and slots you don't have to know who sends signals. Your "client" class just declares slots, and an outside manager can connect signals to them. I recommend you to check out Qt. It's an amazing cross-platform library with much more than just GUI support. It has a convenient and efficient implementation of signals and slots which you can use. These days it's also licensed with LGPL (in addition to GPL and commercial), so you can use it for practically any purpose. Re your clarification comment, why not raise an exception for the error? The parent can notify the GUI, or alternatively the GUI can register for a signal the parent emits. This way the parent also doesn't have to know about the GUI.
0
1,723
false
0
1
Python's PubSub/observer Pattern for C++?
607,627
2
3
1
0
2
0
1.2
0
I'm hosting IronPython in a c#-based WebService to be able to provide custom extension scripts. However, I'm finding that memory usage sharply increases when I do simple load testing by executing the webservice repeatedly in a loop. IronPython-1.1 implemented IDisposable on its objects so that you can dispose of them when they are done. The new IronPython-2 engine based on the DLR has no such concept. From what I understood, everytime you execute a script in the ScriptEngine a new assembly is injected in the appdomain and can't be unloaded. Is there any way around this?
0
performance,ironpython
2009-03-04T11:11:00.000
0
610,128
Turns out, after aspnet_wp goes to about 500mb, the garbage collector kicks in and cleans out the mess. The memory usage then drops to about 20mb and steadily starts increasing again during load testing. So there's no memory 'leak' as such.
0
1,344
true
1
1
IronPython memory usage
613,533
2
3
1
1
2
0
0.066568
0
I'm hosting IronPython in a c#-based WebService to be able to provide custom extension scripts. However, I'm finding that memory usage sharply increases when I do simple load testing by executing the webservice repeatedly in a loop. IronPython-1.1 implemented IDisposable on its objects so that you can dispose of them when they are done. The new IronPython-2 engine based on the DLR has no such concept. From what I understood, everytime you execute a script in the ScriptEngine a new assembly is injected in the appdomain and can't be unloaded. Is there any way around this?
0
performance,ironpython
2009-03-04T11:11:00.000
0
610,128
You could try creating a new AppDomain every time you run one of your IronPython scripts. Although assebmlies cannot be unloaded from memory you can unload an AppDomain and this will allow you to get the injected assembly out of memory.
0
1,344
false
1
1
IronPython memory usage
611,623
17
17
0
0
8
1
0
0
I`m currently studying C++ and want to learn another language. For work I use C# + ASP (just started learning it, actually), but I want something "less Microsoft" and powerful. I have heard Python is a popular and powerful language, not so complicated as C++. But many people mentioned it was hard for them to get back to C++/Java from Python because they started thinking in it, get used to absence of memory management, etc. What do you recommend?
0
c++,python
2009-03-05T14:52:00.000
0
615,100
Try LISP instead (or afterwards, it's your call). You are at least partially right, though. using Python for a while makes you not want to go back to a statically typed and compiled language. It's just sooo much more comfortable not to have to please the compiler like ALL THE TIME ;). And yet another aspect is the readability of python code, which is awesome.
0
9,495
false
0
1
Should I learn Python after C++?
615,254
17
17
0
2
8
1
0.023525
0
I`m currently studying C++ and want to learn another language. For work I use C# + ASP (just started learning it, actually), but I want something "less Microsoft" and powerful. I have heard Python is a popular and powerful language, not so complicated as C++. But many people mentioned it was hard for them to get back to C++/Java from Python because they started thinking in it, get used to absence of memory management, etc. What do you recommend?
0
c++,python
2009-03-05T14:52:00.000
0
615,100
I don't think that "Python makes you lazy" (nice title, anyway!). On the contrary, in programming as in life, knowing more than one language is important; I think you'll find python amusing and sufficiently different from C++ or C# so that the languages will not get mixed in your head...
0
9,495
false
0
1
Should I learn Python after C++?
615,121
17
17
0
1
8
1
0.011764
0
I`m currently studying C++ and want to learn another language. For work I use C# + ASP (just started learning it, actually), but I want something "less Microsoft" and powerful. I have heard Python is a popular and powerful language, not so complicated as C++. But many people mentioned it was hard for them to get back to C++/Java from Python because they started thinking in it, get used to absence of memory management, etc. What do you recommend?
0
c++,python
2009-03-05T14:52:00.000
0
615,100
Learning more languages can only make you a better developer, regardless of their approach. Besides, your experience with C++ (or, at least C) will come in handy for writing high-performance parts of your applications using Python's C API, which lets "raw" C and C++ code intermingle nicely with the pure Python stuff. I still write code in Objective-C (1.0... before memory management) and Python on a daily basis. The variety is actually fun, rather than confusing; keeps things from being boring.
0
9,495
false
0
1
Should I learn Python after C++?
615,129
17
17
0
2
8
1
0.023525
0
I`m currently studying C++ and want to learn another language. For work I use C# + ASP (just started learning it, actually), but I want something "less Microsoft" and powerful. I have heard Python is a popular and powerful language, not so complicated as C++. But many people mentioned it was hard for them to get back to C++/Java from Python because they started thinking in it, get used to absence of memory management, etc. What do you recommend?
0
c++,python
2009-03-05T14:52:00.000
0
615,100
Python is complementary to C++ and easy to integrate with C++. (As evidence of this claim, the C++ gurus from Boost use Python.) And as you said, Python gives you a way to get a perspective outside the Microsoft orbit. But even there, if you need to integrate Python with MS tools, there's IronPython.
0
9,495
false
0
1
Should I learn Python after C++?
615,163
17
17
0
0
8
1
0
0
I`m currently studying C++ and want to learn another language. For work I use C# + ASP (just started learning it, actually), but I want something "less Microsoft" and powerful. I have heard Python is a popular and powerful language, not so complicated as C++. But many people mentioned it was hard for them to get back to C++/Java from Python because they started thinking in it, get used to absence of memory management, etc. What do you recommend?
0
c++,python
2009-03-05T14:52:00.000
0
615,100
You could learn a new programming language, like python, and use it to do all the tasks you'd normally perform in your 'core' languages; or you could take a language (like python, or perl) and use it to complement your core language. You could learn VBScript and use it to write scripts that glue your code and others together. If you want something less Microsoft, then python, perl or bash scripting would be a good idea - not just to learn how to code in the new, but also how to do things differently from the usual 'code an app' way.
0
9,495
false
0
1
Should I learn Python after C++?
615,155
17
17
0
4
8
1
0.047024
0
I`m currently studying C++ and want to learn another language. For work I use C# + ASP (just started learning it, actually), but I want something "less Microsoft" and powerful. I have heard Python is a popular and powerful language, not so complicated as C++. But many people mentioned it was hard for them to get back to C++/Java from Python because they started thinking in it, get used to absence of memory management, etc. What do you recommend?
0
c++,python
2009-03-05T14:52:00.000
0
615,100
Many would argue that you would benefit from learning Python before C++. The syntax hurdles are much, much lower; Debugging is much more friendly There are a plethora of libraries---batteries included, you know. It's easy to experiment with web scraping, XML, etc. in Python. Again, the barriers to entry in C++ are much higher. It's still good to learn C/C++, because of its close connection to the machine. But a new programmer can learn an awful lot from exploring in Python.
0
9,495
false
0
1
Should I learn Python after C++?
615,152
17
17
0
1
8
1
0.011764
0
I`m currently studying C++ and want to learn another language. For work I use C# + ASP (just started learning it, actually), but I want something "less Microsoft" and powerful. I have heard Python is a popular and powerful language, not so complicated as C++. But many people mentioned it was hard for them to get back to C++/Java from Python because they started thinking in it, get used to absence of memory management, etc. What do you recommend?
0
c++,python
2009-03-05T14:52:00.000
0
615,100
It is up to what exactly is the kind of applications you want to program, for example for Websites that need access to databases I would go for Ruby( and Ruby on Rails framework ) , for financial applications or applications that need a lot of parallel processing I would go for a funcional programming language like Haskell, oCaml or the new F#, these last 3 wil make you a better programer even if you don't programm a lot in them , by the way c# has been lately in the latest versions adding more and more funcional programming features. I would learn Python for a security and exploits kinds of applications.
0
9,495
false
0
1
Should I learn Python after C++?
615,150
17
17
0
4
8
1
0.047024
0
I`m currently studying C++ and want to learn another language. For work I use C# + ASP (just started learning it, actually), but I want something "less Microsoft" and powerful. I have heard Python is a popular and powerful language, not so complicated as C++. But many people mentioned it was hard for them to get back to C++/Java from Python because they started thinking in it, get used to absence of memory management, etc. What do you recommend?
0
c++,python
2009-03-05T14:52:00.000
0
615,100
Well, I've learnt Python after C/C++, Java and C#. Python is a great language, and its simplicity and consistency have improved the way I code. It has also helped me think more clearly about the algorithms underlying my code. I could go on about the benifits it brought me, instead I'll summarize the reason to learn it -> Learning a new lanuage doesn't take away, it adds to your programming skill and keeps you sharp by teaching you to shift between the frames of mind that each language requires. So go out there and learn Python. Your code will improve(TM). P.S. 1.You'll lose C++ (or any other language) skills, if you neglect their upkeep and maintainance. Thats entirely up to you. 2.Programmer (intelligent) laziness is a virtue.
0
9,495
false
0
1
Should I learn Python after C++?
615,148
17
17
0
0
8
1
0
0
I`m currently studying C++ and want to learn another language. For work I use C# + ASP (just started learning it, actually), but I want something "less Microsoft" and powerful. I have heard Python is a popular and powerful language, not so complicated as C++. But many people mentioned it was hard for them to get back to C++/Java from Python because they started thinking in it, get used to absence of memory management, etc. What do you recommend?
0
c++,python
2009-03-05T14:52:00.000
0
615,100
I learned, in order: BASIC Pascal Ada (A little bit of Haskell) Java Python C++ C# I don't feel Python inhibited my ability to learn or use C++. I am glad though that I learned pointers in Pascal before encountering reference types in Java, Python and C#, because I feel it gave me a good basis to understand the idea of the differences between "value types" and "reference types". I think for me the most important of those languages are Python, Haskell and C++. All of them complement each other, and although there are times I'm working in one and wish I had a feature from another, on the whole I think I benefit greatly from a deeper understanding of things like type systems, object orientation and metaprogramming by seeing the different ways these languages approach these things.
0
9,495
false
0
1
Should I learn Python after C++?
615,248
17
17
0
1
8
1
0.011764
0
I`m currently studying C++ and want to learn another language. For work I use C# + ASP (just started learning it, actually), but I want something "less Microsoft" and powerful. I have heard Python is a popular and powerful language, not so complicated as C++. But many people mentioned it was hard for them to get back to C++/Java from Python because they started thinking in it, get used to absence of memory management, etc. What do you recommend?
0
c++,python
2009-03-05T14:52:00.000
0
615,100
I learned C/C++, Java, Python & C# in that order. The two I actually invariably end up using are C++ & Python; I find the niche Java & C# occupy between them to be too narrow to feel the need to use them much (at least for the stuff I do). I also think I didn't really "get" C++ functors and boost::bind until I'd been exposed to Python.
0
9,495
false
0
1
Should I learn Python after C++?
618,870
17
17
0
1
8
1
0.011764
0
I`m currently studying C++ and want to learn another language. For work I use C# + ASP (just started learning it, actually), but I want something "less Microsoft" and powerful. I have heard Python is a popular and powerful language, not so complicated as C++. But many people mentioned it was hard for them to get back to C++/Java from Python because they started thinking in it, get used to absence of memory management, etc. What do you recommend?
0
c++,python
2009-03-05T14:52:00.000
0
615,100
Flex your brain and improve your skill set. Give a functional language a whirl.
0
9,495
false
0
1
Should I learn Python after C++?
615,138
17
17
0
0
8
1
0
0
I`m currently studying C++ and want to learn another language. For work I use C# + ASP (just started learning it, actually), but I want something "less Microsoft" and powerful. I have heard Python is a popular and powerful language, not so complicated as C++. But many people mentioned it was hard for them to get back to C++/Java from Python because they started thinking in it, get used to absence of memory management, etc. What do you recommend?
0
c++,python
2009-03-05T14:52:00.000
0
615,100
It is true. After learning python, everything else will seem like too much effort for the same amount of real work being done. You'll get used to the clean, small syntax and the freedom of GC. You will enjoy working in list comps, generators, etc. You'll start to think in python and C++ and Java will be like building a ship in a bottle one twiggy little stick at a time. But since it's that much easier, doesn't it tempt you to try it all the more?
0
9,495
false
0
1
Should I learn Python after C++?
617,254
17
17
0
0
8
1
0
0
I`m currently studying C++ and want to learn another language. For work I use C# + ASP (just started learning it, actually), but I want something "less Microsoft" and powerful. I have heard Python is a popular and powerful language, not so complicated as C++. But many people mentioned it was hard for them to get back to C++/Java from Python because they started thinking in it, get used to absence of memory management, etc. What do you recommend?
0
c++,python
2009-03-05T14:52:00.000
0
615,100
I think it is always good to know several programming languages. I've learned c++ at school and I've used it a lot in the past years because it is really a standard in the industry. I've learned python by my own and I am using it to make a lot of nice tools that would be too long to write in c++. Python has just a very positive influence on my c++ skills. It gives another way to think.
0
9,495
false
0
1
Should I learn Python after C++?
949,801
17
17
0
30
8
1
1.2
0
I`m currently studying C++ and want to learn another language. For work I use C# + ASP (just started learning it, actually), but I want something "less Microsoft" and powerful. I have heard Python is a popular and powerful language, not so complicated as C++. But many people mentioned it was hard for them to get back to C++/Java from Python because they started thinking in it, get used to absence of memory management, etc. What do you recommend?
0
c++,python
2009-03-05T14:52:00.000
0
615,100
There's no right or wrong answer, really. But I think you'll benefit more from learning Python. Given the similarities between C# and C++, you'll learn a different way of thinking from Python. The more ways you learn to think about a problem, the better it makes you as a programmer, regardless of the language.
0
9,495
true
0
1
Should I learn Python after C++?
615,128
17
17
0
9
8
1
1
0
I`m currently studying C++ and want to learn another language. For work I use C# + ASP (just started learning it, actually), but I want something "less Microsoft" and powerful. I have heard Python is a popular and powerful language, not so complicated as C++. But many people mentioned it was hard for them to get back to C++/Java from Python because they started thinking in it, get used to absence of memory management, etc. What do you recommend?
0
c++,python
2009-03-05T14:52:00.000
0
615,100
The benefit of going from a more static language to a dynamic language is to change your programming paradigm -- it's not a matter of becoming "lazy" so much as realizing new ways of accomplishing things, which will make you better in any language.
0
9,495
false
0
1
Should I learn Python after C++?
615,118
17
17
0
1
8
1
0.011764
0
I`m currently studying C++ and want to learn another language. For work I use C# + ASP (just started learning it, actually), but I want something "less Microsoft" and powerful. I have heard Python is a popular and powerful language, not so complicated as C++. But many people mentioned it was hard for them to get back to C++/Java from Python because they started thinking in it, get used to absence of memory management, etc. What do you recommend?
0
c++,python
2009-03-05T14:52:00.000
0
615,100
Many languages are quite similar to others, but to move between imperitave and functional / dynamic and static / Object and Procedural languages you do need to train yourself to think within the constraints of the language you are using. Since most projects are at least a few weeks, this is generally not a problem after the first few days. You will find it more difficult to switch away from a language+environment you enjoy in your after-hours / hobby development. C, Macro Assembler => basically the same - difference is mainly libraries C++, Java, C#, Delphi => basically the same paradigm - you learn quickly how to leverage the features of the specific language and adopt concepts from one syntax to another. It's basically the same way of thinking, the biggest exception is how you think of memory manangement. Python - good language, strategically a better choice than ruby, although there are other aspects of ruby that can be argued to be superior. What make python a good choice is the presence of a formal language body which keeps python environments on different platforms very compatible to one another. If you are interested, read this http://cmdematos.com/?p=120 on making a strategic language choice.
0
9,495
false
0
1
Should I learn Python after C++?
1,235,385
17
17
0
0
8
1
0
0
I`m currently studying C++ and want to learn another language. For work I use C# + ASP (just started learning it, actually), but I want something "less Microsoft" and powerful. I have heard Python is a popular and powerful language, not so complicated as C++. But many people mentioned it was hard for them to get back to C++/Java from Python because they started thinking in it, get used to absence of memory management, etc. What do you recommend?
0
c++,python
2009-03-05T14:52:00.000
0
615,100
From a utility perspective, it is good to learn one of the more dynamic languages like Python (or Ruby or Perl) too. Not only do they stretch your mind, but they are superior for certain kinds of tasks. If you want to manipulate text, for example, C++ is a lot harder to use than Python. It gives you another arrow in your quiver to use when appropriate.
0
9,495
false
0
1
Should I learn Python after C++?
615,218
1
4
0
2
1
0
0.099668
1
I want to get all the messages from my gmail inbox, but I am facing 2 problems. It does not get all the emails, (as per the count in stat function) The order of emails it get is random. I am unsure if its the problem with poplib or gmail pop server. What am I missing here?
0
python,python-2.5,poplib
2009-03-06T06:55:00.000
0
617,892
You can also try imaplib module since GMail also provides access to email via IMAP protocol.
0
1,096
false
0
1
Poplib not working correctly?
628,130
2
4
1
0
28
1
0
0
From what I have seen and read on blogs, PyPy is a very ambitious project. What are some advantages it will bring to the table over its siblings (CPython, Jython, and IronPython)? Is it speed, cross-platform compatibility (including mobile platforms), the ability to use c-extensions without the GIL, or is this more of a technical exercise on what can be done?
0
python,interpreter,pypy
2009-03-06T16:25:00.000
0
619,437
cross-platform compatibility Yes
0
3,214
false
0
1
What does PyPy have to offer over CPython, Jython, and IronPython?
619,480
2
4
1
38
28
1
1.2
0
From what I have seen and read on blogs, PyPy is a very ambitious project. What are some advantages it will bring to the table over its siblings (CPython, Jython, and IronPython)? Is it speed, cross-platform compatibility (including mobile platforms), the ability to use c-extensions without the GIL, or is this more of a technical exercise on what can be done?
0
python,interpreter,pypy
2009-03-06T16:25:00.000
0
619,437
PyPy is really two projects: An interpreter compiler toolchain allowing you to write interpreters in RPython (a static subset of Python) and have cross-platform interpreters compiled standalone, for the JVM, for .NET (etc) An implementation of Python in RPython These two projects allow for many things. Maintaining Python in Python is much easier than maintaining it in C From a single codebase you can generate Python interpreters that run on the JVM, .NET and standalone - rather than having multiple slightly incompatible implementations Part of the compiler toolchain includes an experimental JIT generator (now in its fifth incarnation and starting to work really well) - the goal is for a JITed PyPy to run much faster than CPython It is much easier to experiment with fundamental language features - like removing the GIL, better garbage collection, integrating stackless and so on So there are really a lot of reasons for PyPy to be exciting, and it is finally starting to live up to all its promises.
0
3,214
true
0
1
What does PyPy have to offer over CPython, Jython, and IronPython?
619,544
1
3
0
4
2
0
1.2
1
I need to download emails from the gmail inbox only using poplib.Unfortunately I do not see any option to select Inbox alone, and poplib gives me emails from sent items too. How do I select emails only from inbox? I dont want to use any gmail specific libraries.
0
python,gmail,pop3,poplib
2009-03-09T05:49:00.000
0
625,148
POP3 has no concept of 'folders'. If gmail is showing you both 'sent' as well as 'received' mail, then you really don't have any option but to receive all that email. Perhaps you would be better off using IMAP4 instead of POP3. Python has libraries that will work with gmail's IMAP4 server.
0
2,392
true
0
1
Select mails from inbox alone via poplib
625,175
6
7
0
1
2
0
0.028564
0
I have a program in C that communicates via UDP with another program (in Java) and then does process manipulation (start/stop) based on the UDP pkt exchange. Now this C program has been legacy and I want to convert it to Python - do you think Python will be a good choice for the tasks mentioned?
0
python,c
2009-03-10T23:47:00.000
1
632,730
If I was faced with a similar situation I'd ask myself a couple of questions: Is there anything more important I could be working on? Does Python bring anything to the table that is currently handled poorly by the current application? Will this allow me to add functionality that was previously too difficult to implement? Is this going to disrupt service in any way? If I can't answer those satisfactorily, then I'd put off the rewrite.
0
381
false
0
1
What is the feasibility of porting a legacy C program to Python?
632,844
6
7
0
0
2
0
0
0
I have a program in C that communicates via UDP with another program (in Java) and then does process manipulation (start/stop) based on the UDP pkt exchange. Now this C program has been legacy and I want to convert it to Python - do you think Python will be a good choice for the tasks mentioned?
0
python,c
2009-03-10T23:47:00.000
1
632,730
If this is an embedded program, then it might be a problem to port it since Python programs typically rely on the Python runtime and library, and those are fairly large. Especially when compared to a C program doing a well-defined task. Of course, it's likely you've already considered that aspect, but I wanted to mention it in the context of the question anyway, since I feel it's an important aspect when doing this type of comparison.
0
381
false
0
1
What is the feasibility of porting a legacy C program to Python?
634,093
6
7
0
1
2
0
0.028564
0
I have a program in C that communicates via UDP with another program (in Java) and then does process manipulation (start/stop) based on the UDP pkt exchange. Now this C program has been legacy and I want to convert it to Python - do you think Python will be a good choice for the tasks mentioned?
0
python,c
2009-03-10T23:47:00.000
1
632,730
Assuming that you have control over the environment which this application will run, and that the performance of interpreted language (python) compared to a compiled one (C) can be ignored, I believe Python is a great choice for this.
0
381
false
0
1
What is the feasibility of porting a legacy C program to Python?
632,740
6
7
0
4
2
0
0.113791
0
I have a program in C that communicates via UDP with another program (in Java) and then does process manipulation (start/stop) based on the UDP pkt exchange. Now this C program has been legacy and I want to convert it to Python - do you think Python will be a good choice for the tasks mentioned?
0
python,c
2009-03-10T23:47:00.000
1
632,730
I'd say that if: Your C code contains no platform specific requirements You are sure speed is not going to be an issue going from C to python You have a desire to not compile anymore You would like to try utilise exception handling You want to dabble in OO You might choose to run on many platforms without porting You are curious about dynamic typing You want memory handled for you You know or want to learn python Then sure, why not. There doesn't seem to be any technical reason you shouldn't use python here, so it's a preference in this case.
0
381
false
0
1
What is the feasibility of porting a legacy C program to Python?
632,788
6
7
0
2
2
0
0.057081
0
I have a program in C that communicates via UDP with another program (in Java) and then does process manipulation (start/stop) based on the UDP pkt exchange. Now this C program has been legacy and I want to convert it to Python - do you think Python will be a good choice for the tasks mentioned?
0
python,c
2009-03-10T23:47:00.000
1
632,730
Remember as well, you can leave parts of your program in C, turn them into Python modules and build python code around them - you don't need to re-write everything up-front.
0
381
false
0
1
What is the feasibility of porting a legacy C program to Python?
632,925
6
7
0
1
2
0
0.028564
0
I have a program in C that communicates via UDP with another program (in Java) and then does process manipulation (start/stop) based on the UDP pkt exchange. Now this C program has been legacy and I want to convert it to Python - do you think Python will be a good choice for the tasks mentioned?
0
python,c
2009-03-10T23:47:00.000
1
632,730
Yes, I think Python is a good choice, if all your platforms support it. Since this is a network program, I'm assuming the network is your runtime bottleneck? That's likely to still be the case in Python. If you really do need to speed it up, you can include your long-since-debugged, speedy C as Python modules.
0
381
false
0
1
What is the feasibility of porting a legacy C program to Python?
632,935
1
5
0
1
21
1
0.039979
0
What is out there on conventions and tools for documenting python source code?
0
python,documentation,documentation-generation
2009-03-11T16:54:00.000
0
635,419
using doxypy filter with doxygen is a good thing also
0
15,370
false
0
1
code documentation for python
22,247,361
3
5
0
1
5
0
0.039979
0
I'd like to have your opinion about writing web apps in PHP vs. a long-running process using tools such as Django or Turbogears for Python. As far as I know: - In PHP, pages are fetched from the hard-disk every time (although I assume the OS keeps files in RAM for a while after they've been accessed) - Pages are recompiled into opcode every time (although tools from eg. Zend can keep a compiled version in RAM) - Fetching pages every time means reading global and session data every time, and re-opening connections to the DB So, I guess PHP makes sense on a shared server (multiple sites sharing the same host) to run apps with moderate use, while a long-running process offers higher performance with apps that run on a dedicated server and are under heavy use? Thanks for any feedback.
0
php,python
2009-03-12T16:22:00.000
0
639,409
PHP is fine for either use in my opinion, the performance overheads are rarely noticed. It's usually other processes which will delay the program. It's easy to cache PHP programs with something like eAccelerator.
0
1,789
false
1
1
PHP vs. long-running process (Python, Java, etc.)?
639,435
3
5
0
3
5
0
0.119427
0
I'd like to have your opinion about writing web apps in PHP vs. a long-running process using tools such as Django or Turbogears for Python. As far as I know: - In PHP, pages are fetched from the hard-disk every time (although I assume the OS keeps files in RAM for a while after they've been accessed) - Pages are recompiled into opcode every time (although tools from eg. Zend can keep a compiled version in RAM) - Fetching pages every time means reading global and session data every time, and re-opening connections to the DB So, I guess PHP makes sense on a shared server (multiple sites sharing the same host) to run apps with moderate use, while a long-running process offers higher performance with apps that run on a dedicated server and are under heavy use? Thanks for any feedback.
0
php,python
2009-03-12T16:22:00.000
0
639,409
After you apply memcache, opcode caching, and connection pooling, the only real difference between PHP and other options is that PHP is short-lived, processed based, while other options are, typically, long-lived multithreaded based. The advantage PHP has is that its dirt simple to write scripts. You don't have to worry about memory management (its always released at the end of the request), and you don't have to worry about concurrency very much. The major disadvantage, I can see anyways, is that some more advanced (sometimes crazier?) things are harder: pre-computing results, warming caches, reusing existing data, request prioritizing, and asynchronous programming. I'm sure people can think of many more. Most of the time, though, those disadvantages aren't a big deal. You can scale by adding more machines and using more caching. The average web developer doesn't need to worry about concurrency control or memory management, so taking the minuscule hit from removing them isn't a big deal.
0
1,789
false
1
1
PHP vs. long-running process (Python, Java, etc.)?
639,537
3
5
0
0
5
0
0
0
I'd like to have your opinion about writing web apps in PHP vs. a long-running process using tools such as Django or Turbogears for Python. As far as I know: - In PHP, pages are fetched from the hard-disk every time (although I assume the OS keeps files in RAM for a while after they've been accessed) - Pages are recompiled into opcode every time (although tools from eg. Zend can keep a compiled version in RAM) - Fetching pages every time means reading global and session data every time, and re-opening connections to the DB So, I guess PHP makes sense on a shared server (multiple sites sharing the same host) to run apps with moderate use, while a long-running process offers higher performance with apps that run on a dedicated server and are under heavy use? Thanks for any feedback.
0
php,python
2009-03-12T16:22:00.000
0
639,409
As many others have noted, PHP nor Django are going to be your bottlenecks. Hitting the hard disk for the bytecode on PHP is irrelevant for a heavily trafficked site because caching will take over at that point. The same is true for Django. Model/View and user experience design will have order of magnitude benefits to performance over the language itself.
0
1,789
false
1
1
PHP vs. long-running process (Python, Java, etc.)?
640,138
1
2
0
2
2
0
0.197375
0
I would like to auto-fill a paragraph to 80 characters (or some other fixed width) in Eclipse. Is this possible via a keyboard command like in Emacs? Or is there maybe a plugin (I did not find anything on google)? Edit: I am not sure if this is relevant, but I need this for docstrings in Python code (using the PyDev plugin).
0
python,eclipse,formatting,word-wrap
2009-03-13T16:05:00.000
0
643,422
Highlight the text, then press Ctrl-Shift-F, or open the context menu and select Source / Format.
0
1,354
false
0
1
How can I auto-fill a paragraph in Eclipse?
643,439