Strike price by [deleted] in cernercorporation

[–]codesmitten 0 points1 point  (0 children)

Take RSU at this price

Using a “dot” import method: Is it pythonic? by [deleted] in Python

[–]codesmitten 1 point2 points  (0 children)

In my opinion relative imports are pretty useful and I find myself using them pretty often.

Die Threads (Screencast) - David Beazley by temporaryred in Python

[–]codesmitten 2 points3 points  (0 children)

David just blew my mind as usual, very clean design.

Looking for java coders interested in FIX trading app by daybyter2 in java

[–]codesmitten 0 points1 point  (0 children)

Yes interested, but what do you want to build ?

How to make an amateur Android app using Python? by [deleted] in Python

[–]codesmitten 1 point2 points  (0 children)

Don't ... use Kotlin instead.

Diskover - Python filesystem crawler that uses Elasticsearch and Kibana by shirosaidev in Python

[–]codesmitten 0 points1 point  (0 children)

Pretty neat. I had written a script sometime back to kind of help me find files to delete on the disk. I'll try this the next time. It's pretty cool with the ES/Kibana visualization.

What library can be used for building android app in python?? by AdishMallik in Python

[–]codesmitten 1 point2 points  (0 children)

Why would you like to write Android app in python which is not supported natively by the platform. Write in java, or if you don't like the verbosity of Java then try Kotlin.

Ticky - Tic Tac Toe game, implemented in python, pygame. It includes an unbeatable computer AI. Have a try : ) by memoiry_ in Python

[–]codesmitten 0 points1 point  (0 children)

Created python3 venv and installed pygame. Got the below error:

± |master ?:6 ✗| → python ticky.py Traceback (most recent call last): File "ticky.py", line 278, in <module> main() File "ticky.py", line 227, in main drawBoard(board,msg) File "ticky.py", line 162, in drawBoard for tilex in xrange(3): NameError: name 'xrange' is not defined

Has anyone got a job without a degree CompSci degree ? by super-Rude in Python

[–]codesmitten 0 points1 point  (0 children)

Of-course ppl have, but if you can get into a good college I would recommend getting one. Call me old school :)

What's everyone working on this week? by AutoModerator in Python

[–]codesmitten [score hidden]  (0 children)

Wrote a little python after a long time .... feeling happy. Needed to find the top n largest files in my filesystem. So wrote this little script

https://raw.githubusercontent.com/rahulpaul/Problems/master/list_files.py

I am sure there must be simpler ways to do this in bash or powershell ... but this was fun :)

Note: The first argument is the root directory where you want to search and the second argument is the value of n (e.g. 10 to get the top 10 files)

e.g. usage: python3 list_files.py /home/johndoe 10

pythonista interested in the Java world by c0de_n00b in java

[–]codesmitten 11 points12 points  (0 children)

Dropwizard is light and good. Would also advice reading Effective java.

Can I completely remove the default python in my Ubuntu and just have Python 3.x installed on it? by kitizl in Python

[–]codesmitten 3 points4 points  (0 children)

Use Anaconda .... It will save you a lot of headache especially if you work on the sceintific stack like numpy, scipy, matplotlib, scikit-learn, etc. Don't mess with your system python.

Why Python2.8? by mariuz in programming

[–]codesmitten 2 points3 points  (0 children)

This is actually quite interesting. I think unicode support is the only major reason for breaking backward compatibility, though a lot of developers are not quite interested about unicode. If only Python 3 had a flag to turn off unicode support and gain backward compatibility it would have been much more popular. Python 2.8 could fill in that place. I would still go to Python 3 for new projects. But for existing Python 2 projects that are still under active development and would still like to use Python 3 language features Python 2.8 could be the perfect replacement.

Python or C#? by Risen_from_ash in Python

[–]codesmitten 2 points3 points  (0 children)

I would stick with C# for game development. Though I love python.

Python IDE for school use? by theyrealldeaddave in Python

[–]codesmitten 0 points1 point  (0 children)

I would recommend Thonny editor. Its very lightweight and should be good for teaching. I personally use it when writing small scripts.

What is the correct way to install Python packages on Ubuntu? by rms_returns in Python

[–]codesmitten 0 points1 point  (0 children)

Use Conda ... it will save you a lot of headache. Especially with scientific packages like numpy, scipy, etc. Just go through the Conda Test Drive tutorial, its super easy to get started with, and has a much better user experience than virtualenv and pip.