Posts by Leo Ribeiro • 581 points
8 posts
-
5
votes2
answers1939
viewsQ: How do I convert an RGB image to Python grayscale?
I need to convert several images (in format .png) RGB colored for grayscale.
pythonasked Leo Ribeiro 581 -
1
votes1
answer367
viewsQ: How do I choose the right scope for a bean?
From what I’ve been studying, I know there are several scopes for Beans: @RequestScoped @ViewScoped @FlowScoped @SessionScoped @ApplicationScoped What is the function of each? How should I correctly…
-
12
votes4
answers33522
viewsQ: How to read a CSV file in Python?
I need to read a very large CSV file (+ 300,000 lines). What is the best way to read a CSV file in python?
pythonasked Leo Ribeiro 581 -
7
votes1
answer2097
viewsQ: What is the difference between the concept of static and dynamic typing and the concept of strongly and weakly typed?
There is some confusion about the concept of programming languages with static and dynamic typing and the concept of strongly and weakly typed programming languages. For example, in my opinion…
-
11
votes3
answers7119
viewsQ: How to see the methods or attributes of an object in Python?
Given a Python object, I can easily list which methods or attributes it has, directly in the interactive interpreter?
pythonasked Leo Ribeiro 581 -
1
votes1
answer906
viewsQ: How to implement a linear regression algorithm in python?
I am running a job in college and would like to implement a function that calculates a regressão linear. Given the points and the number of exponents desired, I want to return the coefficients of…
-
8
votes2
answers2267
viewsQ: What is the __init__.py file for in python modules?
I’m starting to work deeper with Python and have noticed many projects with files __int__.py in folders, and are often blank. What is the purpose of these files?
pythonasked Leo Ribeiro 581 -
1
votes1
answer205
viewsQ: Jboss AS 7 using proxy with HTTPS
I have a Jboss server on my machine for developing tests. In the company where I work we have a proxy. I need to test the Google recaptcha. It uses https. I set up the proxy information in the tag…