Stream

John Philip

Discussion  - 
 
Explore more on developing Website’s Internationalization, Localization and Time Zones with this precisely compiled Django tutorial, here:
TaskBuster Django Tutorial: Learn how to configure your website in multiple languages, with time zone support and localization.
15
3
Jay Looney's profile photoAdil Khashtamov's profile photoGuillermo Ramirez's profile photoDavinir F Campos Jr's profile photo
 
Neat
Add a comment...

Leo G

Discussion  - 
 
Added new features to my Scaffolding project - automatic field and test creation . Reduce your time to build a database web application with flask-scaffold #python   #webdevelopment  
Flask-Scaffold - Quickly Scaffold database driven web applications with Flask Flask-SQLALchemy and PostgreSQL or MySQL
7
3
Nicholas Sutherland's profile photoDzgoevGT's profile photo
Add a comment...

Matt Sundquist

Discussion  - 
 
Interactive online and offline plotting for 2D, 3D, streaming, and map needs:

https://plot.ly/python/offline/
16
6
Alex Liberzon's profile photoFabrizio Guzzetta's profile photo宋云生's profile photoFrancesco Sorrentino's profile photo
4 comments
 
Let us know if we can help with anything :)
Add a comment...

Matt Sundquist

Discussion  - 
 
How you can make and embed interactive 3D graphs and maps with R, Python, and MATLAB. 
Showing a third dimension on a flat computer screen is usually hard. Plotly’s interactive 3D graphing changes that. You can zoom, toggle, pan, rotate, spin, see data on the hover, and more. In this post we’ll make 3D graphs with our APIs for Python, R, MATLAB, and Excel. Check out the links, our documentation or our tutorials to learn more and start embedding your plots. If you want to use Plotly on-premise with your team, contact us to start a ...
13
5
Edoardo Rosa's profile photoLoick PELET's profile photoAlex Liberzon's profile photoDavid Suarez's profile photo
 
This is awesome because I just started using python for Data Analysis against NESARC-III, thanks :)
Add a comment...

Johannes Self

Discussion  - 
 
Testing pictures is fun!
Have fun!
pytest-mpl - A pytest plugin to faciliate image comparison for Matplotlib figures
6
1
Alex Liberzon's profile photo
Add a comment...

Eyitope Adelowo

Discussion  - 
 
I think of programming as being abstract. I ask myself: what exactly are zeros and ones? It's just electrons flowing through circuits, and can't really picture exactly what is going on. It is said that the computer processes. How? We know it send output. How? We know it shuts down? How. These things don't happen on the physical level (saying "it does..." isn't enough details). Even the "data is sent" is still current flowing to a place. So what exactly is data then?.

A thought: so if I was an electron, what would be my path once a computer is turned on?
3
jean-yves Viala's profile photoOdeyin P.'s profile photo
22 comments
 
The switches as described above are the on and off aka 0 or 1. After that it is all logic. Meaning you have truth tables for various operations such as and, or, xor, shift, etc... ie: AND: 0&0=1(on), 0&1=0(off), 1&1=1(on) also 1&0=0(off) is defined also.
Add a comment...

iclou dthemes

Discussion  - 
 
Quick question..
I have been thinking about python and mysql.

Is it as efficient as php and mysql?

Talking only about Mysql
2
1
Sergey Tsaplin's profile photoDylan McNamee's profile photoTodd Thomas's profile photo
8 comments
 
+Sergey Tsaplin agreed - SQLite's best for single connection applications. The OP didn't specify the application context, so I thought I'd throw it out there.
Add a comment...

Jacob Zimmerman

Discussion  - 
 
We see how the template pattern, as well an template-like patterns make it difficult to use composition instead of inheritance and how we can get around these problems.

https://programmingideaswithjake.wordpress.com/2015/06/20/the-clash-of-template-and-delegate-patterns/
3
1
Chris Lyon's profile photoDonovan Baarda's profile photoLuca Cavazzana's profile photo
10 comments
 
+Jacob Zimmerman "prefer composition over inheritance" is because in most cases composition is the better solution. However, in some cases, inheritance is better, and IMHO the patterns you have done so far are not only examples of when inheritance is better, but actually re-implement limited forms of inheritance.

Your delegate decorator "automatically filling in 'non-overridden' methods" re-implements inheritance without virtual methods. This has the limitations you identify in this article, that you fix by crudely making a virtual method in the base class that you call a "strategy". If you made all the methods in the base class different callable "strategy"s, then congratulations, you will have re-implemented a virtual method table. Inheritance is just composition made less verbose. Note your strategy solution undermines the biggest benefit of the delegate pattern; you can wrap an existing object instance when you don't have control over how it was created (ie, an object returned by some other library that you can't easily modify).

I agree that using inheritance where composition would be better is a common mistake. However using composition where inheritance would be better is also a mistake.

Most people learn inheritance badly. It doesn't help that most popular languages implement it badly (broken multiple inheritance, not enforcing polymorphism, etc). IMHO if you didn't learn inheritance from Eiffel (or maybe Oberon for exposure to under-the-hood implementation details), you mostly learned it wrong, and probably missed some really important concepts.

The combination of bad language support, bad education, and abstraction pain debugging the resulting bad inheritance hierarchies seems to have started a major backlash against inheritance. IMHO it's now going too far, and inheritance is being avoided even when it really is the best solution.
Add a comment...

Eyitope Adelowo

Discussion  - 
 
Hi. I was working on some network programming with python. I can't use my android as a server when trying to connect using my laptop. It (error message) says it (my android) actively refused connection. Is there are way to disable an Android's firewall? 
2
Jason Tokarz's profile photoEyitope Adelowo's profile photo
6 comments
 
+Jason Tokarz Yes, I have, sir.
Add a comment...

Sergey Tsaplin

Discussion  - 
 
Hi guys. I need some advise. What's the best solution to organize private PyPI repository. Key features: store python libraries, bugles, easy to deploy. Proxy to main PyPI repository is not required but would be nice feature in case of fast working (pyshop for example do it very slowly and synchronously)
3
Sergey Tsaplin's profile photoKenneth Nielsen's profile photo
3 comments
 
+Holger Krekel​ has a project for just that sort of thing. I don't remember the name, but just Google his name and projects or pip.
Add a comment...

John Apel

Discussion  - 
 
So I am still new to programming, but have now done several online coding courses, including Codecademy for Python HTML and Javascript, 2 Udemy courses in Python, some of the Udacity intro to computer science, and I'm currently working on the Google Python Class.

I feel like at this point I have enough knowledge to start a project of my own, but what exactly does that mean? Where do I start to find a project, and what is the best way to do so? Any advice would be greatly appreciated. 
10
Chris Parbey's profile photoNick Mellor's profile photo
10 comments
 
Take it slowly. Start simply. A project can be a command line program. I had to learn Python and Django for a Web application in 2008 but to dive straight in, I think, would have slowed down my learning and performance and affected my confidence.
We were playing the following children's game with our kids then:
Take a name, eg Nick. Now convert the name into 'Nick Fifick Stickalick Fifick: that's how you spell "Nick".' That was my first Python 'project'. I learnt a lot about Python from it.

Don't be tempted to take on a big project if you're a beginning programmer. You'll get confused and discouraged. Set yourself small, fun, quickly achievable goals at first. Then build gradually larger projects piece by piece. Open source projects are GREAT for learning, but leave then for a while yet. 
Add a comment...
 
I want to know my path in learning python. 
there are a lot of beginning courses which i passed one of them from Coursera, but I need a map for my future in Python. For example when I should learn Dijango ? or other stuff I don`t know about python. I am beginner in programming, I am learning C++ in School and python as a self study. 
Thanks for your help.
6
Paul Kraus's profile photoFrank A.'s profile photo
14 comments
 
You could try the tutorials on https://pythonspot.com 
Add a comment...

gurdeep saini

Discussion  - 
 
my new program. hope u like it.......
12
Daniel Leybovich's profile photogurdeep saini's profile photo
4 comments
 
+Daniel Leybovich thanks for this.. you taught me good thing
Add a comment...

Matt Sundquist

Discussion  - 
 
What experts say about how you should make graphs (2D & 3D), dashboards, and maps. Interactive examples produced with Python:

http://blog.plot.ly/post/123617968702/online-dashboards-eight-helpful-tips-you-should
“There is no such thing as information overload, only bad design” - Professor Emeritus of Political Science, Statistics, and Computer Science at Yale University Edward Tufte The number of organizations working on data-driven projects increased by 125% in the past year. 44% of companies tackle big data “all the time.” 82% of executives call big data “important or mission critical.” How do we manage all this data? Interactive dashboards. This ...
20
3
Lain-Jinn Hwang's profile photoPavel Svec's profile photo
Add a comment...

Jesse Williams

Discussion  - 
 
Here's a link to  a zero-configuration Python GAE hack factory. Perfect for trying new things without worrying about breaking the environment. 
https://codenvy.com/f?id=6gfh88aqvlcbe279 
6
Kimi Nomaka's profile photoJay Looney's profile photo
2 comments
 
You can also use virtualenv to make sure each project has it's own environment, and then breaking it is simply not an issue.
Add a comment...

gurdeep saini

Discussion  - 
 
IMPLEMENTING STACKS WITH CLASSES
 
**
IMPLEMENTING STACKS WITH CLASSES #Recently in one of our classes i read this topic and finds it good one.   #hope u will like it class stack:     s=[]     def push(self):         a=input("Enter any number :")         stack.s.append(a)         def display(se...
3
1
Vasili Syrakis's profile photogurdeep saini's profile photo
10 comments
 
Vasili Syrakis code is running baby.. its programmers choice whether to use _init_ or not 
Add a comment...
 
Thanks for accepting me as a member in this groups...
1
Add a comment...

James Angelo

Discussion  - 
 
On one of my machines, the results of my programs do not appear in the terminal. I'm using Ubuntu 14.04 LTS. I created a directory named Exercises on the Desktop. From the terminal, I cd'ed into Exercises. Inside Exercises, I created a file named Practice.py using Vim and wrote some code. I saved the file in Vim with the command :wq. I typed python Practice.py in the terminal to run the program. There were no runtime errors. However, I'm not seeing the results of the program. The same exact program ran without any issues on this other Ubuntu machine that I have. The program also runs fine on online interpreters. I reinstalled Python 2.x and 3.x on the machine, but the problem persisted. Does anyone know how to fix that? Or, can someone point me to a solution? 
1
1
Robert Grant's profile photoJames Angelo's profile photoJoseph Dung's profile photo
20 comments
 
+Robert Grant , to err is human, to debug is programming. Lol. I'll definitely perfom a diff on both versions. Thanks for your help!
Add a comment...

Andre Müller

Discussion  - 
 
Playing around in Python with generators, decorators, closures and functools. It's good to get a llittle bit deeper into functional programing. An article about pipelines in Python inspired me. Thanks to rauchc.
Motivation Most developers have to write programs that read and process items of stuff. Be it products, feed-items, images, you name it. I’ve certainly had to. Apprentice programmers would just write it all down sequentially, but – as many fellow programmers can testify – this approach leads to maintenance problems due to a mixing of …
20
1
Andre Müller's profile photoKirill Palamartchouk's profile photo
 
Maybe I should share what I got done with generators (Unix-Like Pipelines). But at the moment my time is strictly limited.
Add a comment...