Posts by HHead26 • 81 points
4 posts
-
0
votes3
answers2778
viewsA: Separate data from a txt file
An alternative is to use regex in this way: import re with open(arquivo) as fp: data = list([…
-
4
votes2
answers1670
viewsA: How to fix Requests encoding in Python?
Just to complement, Guilherme Nascimento’s reply, it is not necessary to import the json library, the requests itself already has a method that converts direct json returns to dicts, as below:…
-
0
votes1
answer75
viewsQ: Sharding in Mongodb
Good afternoon, I’m thinking of implementing a cluster for sharding using Mongodb, analyzed the options for Shard key, and in my case the most recommended would be to use the policy of Zones (tags).…
-
4
votes1
answer620
viewsQ: Mysql Unique record insertion problem
I have a table that has a Unique field, I deleted a record of this table and now I want to insert it again, however Mysql generates the error: "Error Code: 1062. Duplicate entry '' for key '". How…