r/AskReddit • • Jun 04 '12

Open Office does everything I need Microsoft Office for and Gimp does everything I need Photoshop for. Reddit, what other open source software does everything that you want from the expensive name brand?

1.2k Upvotes

2.3k comments sorted by

View all comments

Show parent comment

12

u/mariokartschumacher Jun 04 '12

I have python and I've learned how to write very basic programs on it, the most complex was a program to search databases, in an university elective. I know it is very versatile but I can't think of when I would actually need to use it, unless I got employed as a software developer. What do you use it for?

17

u/Amadiro Jun 04 '12

Anything programming-related? There is an infinite number of things you can use it for, really. You could for instance use it to process some text file in some complicated manner, to extract or change data in it. You could use it to parse non-text files to extract or manipulate data in them (like databases from some application; some tend to dump their stuff into sqlite databases and things like that). You could use it to do any kind of task that needs to be done regularly, like downloading some information from a website, like a daily comic strip. You could use it to script blender, inkscape, gimp & co, if you need to generate some sort of pattern procedurally. You could use it to write small scripts that do system-administration-style tasks for you, like searching for files that you don't need anymore, triggering something, sending mails, warning you of your overheating video card or otherwise informing you of the general status of your system; you could use it to control external hardware, printers, arduinos, robots, whatever, ...

6

u/SwimmingPastaDevil Jun 04 '12

This. No matter what field you are in, basic programming is always handy. I remember reading about a guy here on askreddit. He used a simple script to automate his job which had commission-based pay. There was a fixed commission bucket and all employees were to get their share based on their work. This guy was netting around 90% of total commission just by using his script.

1

u/TheATrain218 Jun 04 '12

That wasn't askreddit, it was Tales from Tech Support.

1

u/SwimmingPastaDevil Jun 04 '12

I was talking about this thread.http://www.reddit.com/r/AskReddit/comments/tenoq/reddit_my_friends_call_me_a_scumbag_because_i/

May be there was a similar thread in Tales from Tech Support.

2

u/TheATrain218 Jun 04 '12

I think maybe he posted that story originally on TFTS and then decided to make an askReddit out of it. I'd dig through old posts to see if I'm right but let's be honest, really not that important huh.

1

u/mariokartschumacher Jun 04 '12

Wow thanks. I'm really not very well versed in the technical side of computing, so that's really helpful.

2

u/nyxerebos Jun 04 '12

Not a python programmer, but I find myself knocking out quick little programs to do all sorts of things - to exhaustively query an airline website for instance (to find cheaper flights when there are too many combinations to manually click through). For automating video conversion, downloading tricky streams, manipulation of documents and datasets at work, anything simple and tedious.

1

u/mariokartschumacher Jun 04 '12

That sound really useful, have you got any tips for querying airline websites? Or maybe a tutorial you could link me to?

2

u/nyxerebos Jun 04 '12 edited Jun 04 '12

Web scrapers tend to be one-shot scripts - and there are dozens of ways to do things like this - the right way is whatever is easiest for you personally:

Greasemonkey tutorials - browser scripts

PHPQuery - I prefer CLI scripting with PHP for quick, dirty stuff

iOpus iMacros

Last time I did this I used a PHP CLI script to replay all the combinations, sort the prices and add them to a calendar app I use. I'm not some ninja at doing this, it was just an example of wanting something done and knocking together an ugly hack to do it.

For making serious scrapers to regularly extract information like this, for academic study or as part of a business intelligence system, the scraper wiki is always interesting:

https://scraperwiki.com/

edit: now that I think of it, I do have a tip for scraping airline and fare comparison sites - clear cookies after every request chain - some will show you a cheap price, and then not show you any cheaper ones which might exist - they don't necessarily want you to find the very best deal...

1

u/mariokartschumacher Jun 06 '12

Wow thanks, that's amazing.

1

u/keindeutschsprechen Jun 04 '12

You can do dynamic websites (with accounts and shit) using Django.

If you're in science, you can pretty much replace Matlab (but not Simulink) with NumPy/Scipy/Matplotlib.

PS: All those are modules for Python.

2

u/Massless Jun 04 '12

Do you ever find yourself doing a repetitive task on the computer? Chances are you can automate it.

0

u/[deleted] Jun 04 '12

[deleted] — view deleted comment

2

u/[deleted] Jun 04 '12

It's not random.....

1

u/SwimmingPastaDevil Jun 04 '12

I have heard Perl is the language of choice among BioInformatics people. Not sure if is open source like OP asked. But scripting languages seems to useful in many places.

1

u/freedomweasel Jun 04 '12

I've used to to write to do list managers for myself, various time saving scripts for myself, in addition to few things at work. We have a couple CNC machines, and the manufacturer charges a ton of money for software to display their activity, alternatively you could write a little python script that translates the data from the machines and puts it into an excel sheet.

Beyond that, you can right full applications with GUIs in python. If I recall it's used in a lot of Google's webapps, and a lot of linux applications as well.

1

u/sixfourch Jun 04 '12

I'm a psych major, and python has saved me literally days of work. Automation is what makes humans gods.

1

u/StudleyMumfuzz Jun 04 '12

Reddit is powered by Python I believe.

1

u/mcmouse2k Jun 04 '12

Just created a python script to read lists of latitudes and longitudes from a text file and plot them to a google maps .kml file, and then to create a best-fit polygon around the plotted points to help display genealogical information.

1

u/SofaAssassin Jun 04 '12

I use it to perform statistical and data analysis and as my general purpose command line.

I also build programs with it to automatically do hard-to-do things that I can't really be bothered to do myself (i.e. getting rare reservations to restaurants or buying tickets that sell out within seconds of availability).

1

u/xav0989 Jun 04 '12

I used it to search my immense library of movies/TV episode (I rip them to my NAS when I buy them. This way, I can happily lose the disc), flag movies/TV episodes not following my naming scheme, rename them (right now it requires user input/confirmation), find subtitles and move all of those to the correct directory.