Posts by Funny Dog • 79 points
6 posts
-
1
votes0
answers84
viewsQ: Requests does not download files > that 4MB
I’m using requests in python, and I can’t download files larger than 4mb (maybe a little smaller too). I am downloading some PDF, and I can download small files normally, but when I use a slightly…
-
1
votes0
answers59
viewsQ: Sqlite PHP Injection
Hey there, guys! I am currently using sqlite in a personal project and am using this class: https://github.com/TimOliver/PHP-Framework-Classes/blob/master/db.sqlite.class.php When I use its query…
-
0
votes3
answers300
viewsA: How should I deal with mistakes?
I ended up solving the "problem". I thought I should use a custom Exception to treat divisible numbers. In case, I used catch and Try just to make sure that the user will report only numbers. Follow…
-
0
votes3
answers300
viewsQ: How should I deal with mistakes?
Read a vector A with 12 elements. The vector must accept only the input of values that are divisible by 2 or 3. The input of values in the vector must be validated by the program and not by the…
-
3
votes5
answers12535
viewsA: Why is Varchar(255) widely used?
I believe that formerly in several databases, the maximum size was 250, so it ended up "standardizing" this common size.
-
1
votes1
answer284
viewsQ: In this case use switch or if?
I have an exercise to do which consists of the following: The user informs the salary, and depending on the amount informed, he earns an increase according to the table. Example: From 1000 to 1500…