workspace
stringclasses 1
value | channel
stringclasses 1
value | sentences
stringlengths 1
3.93k
| ts
stringlengths 26
26
| user
stringlengths 2
11
| sentence_id
stringlengths 44
53
| timestamp
float64 1.5B
1.56B
| __index_level_0__
int64 0
106k
|
---|---|---|---|---|---|---|---|
pythondev | help | loop was still fine though | 2019-02-27T15:36:49.029100 | Coleen | pythondev_help_Coleen_2019-02-27T15:36:49.029100 | 1,551,281,809.0291 | 11,221 |
pythondev | help | Yeah that's a bit dangerous since `val` will be undefined; may be safer to have a default for if it's empty. | 2019-02-27T15:37:54.029800 | Lillia | pythondev_help_Lillia_2019-02-27T15:37:54.029800 | 1,551,281,874.0298 | 11,222 |
pythondev | help | yup | 2019-02-27T15:38:25.030000 | Coleen | pythondev_help_Coleen_2019-02-27T15:38:25.030000 | 1,551,281,905.03 | 11,223 |
pythondev | help | or an assert len(iterator) | 2019-02-27T15:40:32.030300 | Coleen | pythondev_help_Coleen_2019-02-27T15:40:32.030300 | 1,551,282,032.0303 | 11,224 |
pythondev | help | Don’t use the assert | 2019-02-27T15:41:50.030600 | Clemmie | pythondev_help_Clemmie_2019-02-27T15:41:50.030600 | 1,551,282,110.0306 | 11,225 |
pythondev | help | It is possible to skip asserts with command line flags | 2019-02-27T15:42:00.030900 | Clemmie | pythondev_help_Clemmie_2019-02-27T15:42:00.030900 | 1,551,282,120.0309 | 11,226 |
pythondev | help | In this case not the worst thing. But I have seen code where asserts were used to control flow logic and would have blown up catastrophically | 2019-02-27T15:44:11.031600 | Clemmie | pythondev_help_Clemmie_2019-02-27T15:44:11.031600 | 1,551,282,251.0316 | 11,227 |
pythondev | help | Good point. | 2019-02-27T15:46:42.031900 | Coleen | pythondev_help_Coleen_2019-02-27T15:46:42.031900 | 1,551,282,402.0319 | 11,228 |
pythondev | help | What should I do if I need to loop through the same iterator twice? | 2019-02-27T16:16:19.032400 | Coleen | pythondev_help_Coleen_2019-02-27T16:16:19.032400 | 1,551,284,179.0324 | 11,229 |
pythondev | help | How long of an iterator? | 2019-02-27T16:17:08.032800 | Lillia | pythondev_help_Lillia_2019-02-27T16:17:08.032800 | 1,551,284,228.0328 | 11,230 |
pythondev | help | A list seems reasonable. | 2019-02-27T16:17:13.033000 | Lillia | pythondev_help_Lillia_2019-02-27T16:17:13.033000 | 1,551,284,233.033 | 11,231 |
pythondev | help | < 10 elements | 2019-02-27T16:17:59.033200 | Coleen | pythondev_help_Coleen_2019-02-27T16:17:59.033200 | 1,551,284,279.0332 | 11,232 |
pythondev | help | Is it possible to do both things you need to do in one loop? | 2019-02-27T16:24:29.033700 | Clemmie | pythondev_help_Clemmie_2019-02-27T16:24:29.033700 | 1,551,284,669.0337 | 11,233 |
pythondev | help | Actually, yes, I found a way to so do :slightly_smiling_face: | 2019-02-27T16:29:58.034100 | Coleen | pythondev_help_Coleen_2019-02-27T16:29:58.034100 | 1,551,284,998.0341 | 11,234 |
pythondev | help | But if it wasn't? | 2019-02-27T16:30:04.034300 | Coleen | pythondev_help_Coleen_2019-02-27T16:30:04.034300 | 1,551,285,004.0343 | 11,235 |
pythondev | help | You can loop through twice, use 2 for loops | 2019-02-27T16:30:36.034800 | Clemmie | pythondev_help_Clemmie_2019-02-27T16:30:36.034800 | 1,551,285,036.0348 | 11,236 |
pythondev | help | just know that it will be less performant | 2019-02-27T16:30:46.035100 | Clemmie | pythondev_help_Clemmie_2019-02-27T16:30:46.035100 | 1,551,285,046.0351 | 11,237 |
pythondev | help | Probably not, would it make a big difference? | 2019-02-27T16:48:07.035300 | Chelsey | pythondev_help_Chelsey_2019-02-27T16:48:07.035300 | 1,551,286,087.0353 | 11,238 |
pythondev | help | You mean with something like pyinstaller? | 2019-02-27T16:52:16.035500 | Chelsey | pythondev_help_Chelsey_2019-02-27T16:52:16.035500 | 1,551,286,336.0355 | 11,239 |
pythondev | help | Yeah there are a lot of automated tools for conversion between the two as well as from future imports. | 2019-02-27T17:03:44.036800 | Karoline | pythondev_help_Karoline_2019-02-27T17:03:44.036800 | 1,551,287,024.0368 | 11,240 |
pythondev | help | Yes. If you just need a deployable black-box solution that does the thing, just use PyInstaller and document the hell out of the build process. | 2019-02-27T17:05:43.037000 | Carmen | pythondev_help_Carmen_2019-02-27T17:05:43.037000 | 1,551,287,143.037 | 11,241 |
pythondev | help | I'm trying to write a script to generate a config file.
The intended usage is:
./genconfig.py 10.0.0.1 10.0.0.2 10.0.03
```
Generates config file using the values above plus some other stuff
```
or
./genconfig.py --discovery 192.168.0.1 192.168.0.1
```
Conects to above ips and do discovery. It will get the list of ips from the clusters to which the ips belong
```
Code:
```
argp = argparse.ArgumentParser(description="Generate configuration for prometheus")
group = argp.add_mutually_exclusive_group(required=True)
group.add_argument('servers', help="List of nodes to configure, separated by space", nargs='*', type=str, metavar='node_ip')
group.add_argument('--discovery', nargs='*', help='Node(s) to connect to and do discovery')
```
So I want them to be mutually exclusive but at least one or the other is required.
I get the error:
```
Traceback (most recent call last):
File "./genconfig.py", line 32, in <module>
group.add_argument('servers', help="List of nodes to configure, separated by space", nargs='*', type=str, metavar='node_ip')
File "/usr/lib/python3.6/argparse.py", line 1361, in add_argument
return self._add_action(action)
File "/usr/lib/python3.6/argparse.py", line 1584, in _add_action
raise ValueError(msg)
ValueError: mutually exclusive arguments must be optional
``` | 2019-02-27T17:57:04.038900 | Jennifer | pythondev_help_Jennifer_2019-02-27T17:57:04.038900 | 1,551,290,224.0389 | 11,242 |
pythondev | help | Does this mean I can't have the positional argument as mutually exclusive with an optional? | 2019-02-27T18:02:21.039600 | Jennifer | pythondev_help_Jennifer_2019-02-27T18:02:21.039600 | 1,551,290,541.0396 | 11,243 |
pythondev | help | Does the second one still generate a config? | 2019-02-27T18:03:23.040300 | Lillia | pythondev_help_Lillia_2019-02-27T18:03:23.040300 | 1,551,290,603.0403 | 11,244 |
pythondev | help | With `--discovery` | 2019-02-27T18:03:41.040700 | Lillia | pythondev_help_Lillia_2019-02-27T18:03:41.040700 | 1,551,290,621.0407 | 11,245 |
pythondev | help | Yes. It just generates the config from the values discovered from the remote server as opposed to list passed as positional args. | 2019-02-27T18:04:03.041400 | Jennifer | pythondev_help_Jennifer_2019-02-27T18:04:03.041400 | 1,551,290,643.0414 | 11,246 |
pythondev | help | I'd consider making `discovery` just a store_true argument | 2019-02-27T18:04:37.042000 | Lillia | pythondev_help_Lillia_2019-02-27T18:04:37.042000 | 1,551,290,677.042 | 11,247 |
pythondev | help | Then you have `if discovery: .... else: ....` | 2019-02-27T18:04:50.042300 | Lillia | pythondev_help_Lillia_2019-02-27T18:04:50.042300 | 1,551,290,690.0423 | 11,248 |
pythondev | help | I will definitely try that. But I am still wondering if I can't use the positional as mutually exclusive. | 2019-02-27T18:05:42.043400 | Jennifer | pythondev_help_Jennifer_2019-02-27T18:05:42.043400 | 1,551,290,742.0434 | 11,249 |
pythondev | help | Because the list of IPs exists for both, right? | 2019-02-27T18:05:42.043500 | Lillia | pythondev_help_Lillia_2019-02-27T18:05:42.043500 | 1,551,290,742.0435 | 11,250 |
pythondev | help | Correct. | 2019-02-27T18:05:50.043700 | Jennifer | pythondev_help_Jennifer_2019-02-27T18:05:50.043700 | 1,551,290,750.0437 | 11,251 |
pythondev | help | Yeah I'd think you should be able to do that if `required=True` exists for the `add` call | 2019-02-27T18:06:32.044200 | Lillia | pythondev_help_Lillia_2019-02-27T18:06:32.044200 | 1,551,290,792.0442 | 11,252 |
pythondev | help | I was using `nargs='+'` but I thought that just changing to `nargs='*'` would make it "optional". | 2019-02-27T18:08:15.044800 | Jennifer | pythondev_help_Jennifer_2019-02-27T18:08:15.044800 | 1,551,290,895.0448 | 11,253 |
pythondev | help | Thanks a lot, <@Lillia> | 2019-02-27T18:09:23.044900 | Jennifer | pythondev_help_Jennifer_2019-02-27T18:09:23.044900 | 1,551,290,963.0449 | 11,254 |
pythondev | help | yw! | 2019-02-27T18:09:33.045100 | Lillia | pythondev_help_Lillia_2019-02-27T18:09:33.045100 | 1,551,290,973.0451 | 11,255 |
pythondev | help | It worked? | 2019-02-27T18:09:36.045300 | Lillia | pythondev_help_Lillia_2019-02-27T18:09:36.045300 | 1,551,290,976.0453 | 11,256 |
pythondev | help | can someone explain, or point me in the direction of what `_name_` is? | 2019-02-27T19:09:44.046100 | Priscilla | pythondev_help_Priscilla_2019-02-27T19:09:44.046100 | 1,551,294,584.0461 | 11,257 |
pythondev | help | Im loooking at a function online, and comparing it to what I made and the other person puts `if _name_ == '_main_': | 2019-02-27T19:11:25.047400 | Priscilla | pythondev_help_Priscilla_2019-02-27T19:11:25.047400 | 1,551,294,685.0474 | 11,258 |
pythondev | help | `if _name_ == '_main_':
print(function)` | 2019-02-27T19:11:44.047800 | Priscilla | pythondev_help_Priscilla_2019-02-27T19:11:44.047800 | 1,551,294,704.0478 | 11,259 |
pythondev | help | That is a test to see whether the file is being run directly, or is being imported by some other code as a library. | 2019-02-27T19:12:53.048300 | Sasha | pythondev_help_Sasha_2019-02-27T19:12:53.048300 | 1,551,294,773.0483 | 11,260 |
pythondev | help | ah! | 2019-02-27T19:14:17.048500 | Priscilla | pythondev_help_Priscilla_2019-02-27T19:14:17.048500 | 1,551,294,857.0485 | 11,261 |
pythondev | help | thank you | 2019-02-27T19:14:20.048700 | Priscilla | pythondev_help_Priscilla_2019-02-27T19:14:20.048700 | 1,551,294,860.0487 | 11,262 |
pythondev | help | Slack may be mangling your text, but it's supposed to have double underscores: `if __name__ == '__main__'`. | 2019-02-27T19:17:13.049400 | Sasha | pythondev_help_Sasha_2019-02-27T19:17:13.049400 | 1,551,295,033.0494 | 11,263 |
pythondev | help | I'm surely late to the party here, but, do both queries return the same columns? | 2019-02-27T20:52:51.050200 | Louella | pythondev_help_Louella_2019-02-27T20:52:51.050200 | 1,551,300,771.0502 | 11,264 |
pythondev | help | If so, I would use a table type variable | 2019-02-27T20:54:11.050400 | Louella | pythondev_help_Louella_2019-02-27T20:54:11.050400 | 1,551,300,851.0504 | 11,265 |
pythondev | help | Or even the select ... into notation with a temporary table. | 2019-02-27T20:54:57.050600 | Louella | pythondev_help_Louella_2019-02-27T20:54:57.050600 | 1,551,300,897.0506 | 11,266 |
pythondev | help | I'm using Google's own sample code for accessing Cloud SQL from Cloud Functions: <https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/functions/sql/postgres_sample.py>
The function runs fine for the first time, but the second time, i get "Connection pool exhausted" error. I think the reason is that maxConnections limit is specified as 1, but connection is never being returned to the pool. Is Google's code here incorrect ? How should it be fixed? | 2019-02-28T00:16:06.053200 | Santos | pythondev_help_Santos_2019-02-28T00:16:06.053200 | 1,551,312,966.0532 | 11,267 |
pythondev | help | I'm not an expert, but I tend to agree with your assessment. They are using a context manager with the cursor, but not the connection. The minimal change would probably be passing a key to `getconn()`, so the second invocation of the function reuses the same connection. | 2019-02-28T00:30:38.001800 | Sasha | pythondev_help_Sasha_2019-02-28T00:30:38.001800 | 1,551,313,838.0018 | 11,268 |
pythondev | help | Will `getconn()` return the same connection if it hasn't been put back in the pool ? :thinking_face: | 2019-02-28T00:38:12.002600 | Santos | pythondev_help_Santos_2019-02-28T00:38:12.002600 | 1,551,314,292.0026 | 11,269 |
pythondev | help | That's how I read the docs... that `getconn()` will create a fresh connection from the pool, or if you ask for a specific key, will give you that already-live connection. But again, not an expert... | 2019-02-28T00:44:31.003800 | Sasha | pythondev_help_Sasha_2019-02-28T00:44:31.003800 | 1,551,314,671.0038 | 11,270 |
pythondev | help | I have a problem in pyqt5. Anyone knows something about QT?
I use a combobox and when I open & close the combobox without selecting anything the complete app looses its focus. That is very annoying, because the complete window hides behind any already open windows..
```
self.box = QtWidgets.QComboBox(self.widget)
self.box.setObjectName("box")
self.box.activated.connect(self.set_item) # this function does NOT get called, when selecting nothing
self.box.setCurrentIndex(0)
# with no effect, I already tried:
# self.box.setFocusPolicy(Qt.StrongFocus)
# self.box.setFocusPolicy(Qt.NoFocus)
```
Thanks for help | 2019-02-28T01:34:14.006300 | Shawana | pythondev_help_Shawana_2019-02-28T01:34:14.006300 | 1,551,317,654.0063 | 11,271 |
pythondev | help | <https://stackoverflow.com/questions/54921055/sqlalchemy-lookuperror-diverse-is-not-among-the-defined-enum-values> | 2019-02-28T03:28:28.007700 | Vanesa | pythondev_help_Vanesa_2019-02-28T03:28:28.007700 | 1,551,324,508.0077 | 11,272 |
pythondev | help | Please help about this error, I've posted this on StackOverflow | 2019-02-28T03:28:55.008300 | Vanesa | pythondev_help_Vanesa_2019-02-28T03:28:55.008300 | 1,551,324,535.0083 | 11,273 |
pythondev | help | <#C07EFMZ1N|help> | 2019-02-28T03:38:23.008500 | Vanesa | pythondev_help_Vanesa_2019-02-28T03:38:23.008500 | 1,551,325,103.0085 | 11,274 |
pythondev | help | <@Hiroko> I don't think so | 2019-02-28T03:45:39.008800 | Valeri | pythondev_help_Valeri_2019-02-28T03:45:39.008800 | 1,551,325,539.0088 | 11,275 |
pythondev | help | Had this been the problem. It would've been mentioned in the docs | 2019-02-28T03:45:56.009200 | Valeri | pythondev_help_Valeri_2019-02-28T03:45:56.009200 | 1,551,325,556.0092 | 11,276 |
pythondev | help | Hi, everyone! I have a problem with recursive update dict. First dict can have dict inside. The second dict have keys with new value. How can I rewrite this method, perhaps using update, I tried, but it did not work for me. Help me pls.
```def update_dict(updated, updating):
for key, value in updating.items():
if isinstance(value, collections.Mapping):
r = update_dict(updated.get(key, {}), value)
updated[key] = r
else:
updated[key] = updating[key]
return updated ``` | 2019-02-28T03:55:08.012200 | Bobbye | pythondev_help_Bobbye_2019-02-28T03:55:08.012200 | 1,551,326,108.0122 | 11,277 |
pythondev | help | <@Bobbye> does that work:
```
def update_dict(updated, updating):
for dictionary in updated:
dictionary.update(updating)
return updated
```
? | 2019-02-28T04:07:33.012800 | Shawana | pythondev_help_Shawana_2019-02-28T04:07:33.012800 | 1,551,326,853.0128 | 11,278 |
pythondev | help | <@Shawana> no | 2019-02-28T04:15:01.013600 | Bobbye | pythondev_help_Bobbye_2019-02-28T04:15:01.013600 | 1,551,327,301.0136 | 11,279 |
pythondev | help | so `updated` is not a list of dicts? What kind of object is it then? | 2019-02-28T04:15:45.014400 | Shawana | pythondev_help_Shawana_2019-02-28T04:15:45.014400 | 1,551,327,345.0144 | 11,280 |
pythondev | help | `updated` is a dict like {'a': {'b': 150}, 'd': {'e': ''}, 'b': {'w': '', 'e': ''}, 'g': {'f': '', 'd': 's', 'a': 'f', 'g': ''}, 's': {'g': [{'g': '', 's': ''}], 's': []}, it can contain different data types | 2019-02-28T04:21:37.016000 | Bobbye | pythondev_help_Bobbye_2019-02-28T04:21:37.016000 | 1,551,327,697.016 | 11,281 |
pythondev | help | <@Bobbye> maybe:
```
def update_dict(updated, updating):
for dictionary in updated:
if type(dictionary) is dict:
dictionary.update(updating)
return updated
``` | 2019-02-28T04:22:58.016400 | Shawana | pythondev_help_Shawana_2019-02-28T04:22:58.016400 | 1,551,327,778.0164 | 11,282 |
pythondev | help | or maybe use some namespaces that explain, what you are doing:
```
def update_dict(data, new_values):
for key, value in data.items():
if type(value) is dict:
value.update(new_values)
return data
``` | 2019-02-28T04:24:48.016900 | Shawana | pythondev_help_Shawana_2019-02-28T04:24:48.016900 | 1,551,327,888.0169 | 11,283 |
pythondev | help | Hi everyone - Has anybody faced an issue wherein Celery is connecting to Rabbitmq but not publishing tasks? Both Celery and Rabbitmq are in different dockers running on the same machine. Any pointers would be appreciated! | 2019-02-28T04:29:26.021500 | Ping | pythondev_help_Ping_2019-02-28T04:29:26.021500 | 1,551,328,166.0215 | 11,284 |
pythondev | help | <@Shawana> I have a settings of my site in `updated` dict, it can contain different data types, `updating` is a dictionary with settings that have changed('updated` can not contain settings from `updating`). My code above work in 95%, but sometimes it now work. How i can change it? | 2019-02-28T04:32:07.024000 | Bobbye | pythondev_help_Bobbye_2019-02-28T04:32:07.024000 | 1,551,328,327.024 | 11,285 |
pythondev | help | could you share a full snippet? | 2019-02-28T04:33:12.024300 | Shawana | pythondev_help_Shawana_2019-02-28T04:33:12.024300 | 1,551,328,392.0243 | 11,286 |
pythondev | help | it full snippet, I call it from serializer | 2019-02-28T04:36:15.024800 | Bobbye | pythondev_help_Bobbye_2019-02-28T04:36:15.024800 | 1,551,328,575.0248 | 11,287 |
pythondev | help | sorry, I do not understand the full context of the query | 2019-02-28T04:39:13.025700 | Shawana | pythondev_help_Shawana_2019-02-28T04:39:13.025700 | 1,551,328,753.0257 | 11,288 |
pythondev | help | With the module `pyperclip` am I allowed to copy from clipboard, back into my program? For example I want to copy something from my desktop and then use it in a variable | 2019-02-28T04:44:05.026900 | Arturo | pythondev_help_Arturo_2019-02-28T04:44:05.026900 | 1,551,329,045.0269 | 11,289 |
pythondev | help | I have a bottle web server running on 0.0.0.0:8080 in an ubuntu VM. How can i access this web server from my Host (OSX) ? | 2019-02-28T05:17:56.028100 | Jordon | pythondev_help_Jordon_2019-02-28T05:17:56.028100 | 1,551,331,076.0281 | 11,290 |
pythondev | help | sorta a networking question but interacting the with 0.0.0.0:8080 on firebox WITHIN the VM is SOOOOO slow. Wondering if I could just use chrome on mny Host (OSX) machine | 2019-02-28T05:18:56.028900 | Jordon | pythondev_help_Jordon_2019-02-28T05:18:56.028900 | 1,551,331,136.0289 | 11,291 |
pythondev | help | if you set up the vm networking to be accessible from the host you can just call into the ip of the VM | 2019-02-28T05:49:02.029900 | Karoline | pythondev_help_Karoline_2019-02-28T05:49:02.029900 | 1,551,332,942.0299 | 11,292 |
pythondev | help | one of the easiest ways to do that is just to set up the vm's networking as bridged and it will get an ip similar to your host machine's ip, and you can check it on the vm, then call it from your browser. | 2019-02-28T05:51:06.031300 | Karoline | pythondev_help_Karoline_2019-02-28T05:51:06.031300 | 1,551,333,066.0313 | 11,293 |
pythondev | help | <@Arturo> yes, e.g. `data = clipboard.paste()` | 2019-02-28T06:04:09.032500 | Russ | pythondev_help_Russ_2019-02-28T06:04:09.032500 | 1,551,333,849.0325 | 11,294 |
pythondev | help | I'm using django, django rest framework and postgres as db with encoding set as utf-8. In the example above is my API endpoint, and when I get request to this endpoint I save request headers
in JSONField and some of requests headers contains unicode characters, shouldn't django/python deal with those? and when I'm trying to save those to database I get psycopg2 error with message:
DataError
invalid input syntax for type json
DETAIL: Unicode low surrogate must follow a high surrogate.
Any ideas how to deal with this kind of issue? | 2019-02-28T06:06:00.032600 | Faustina | pythondev_help_Faustina_2019-02-28T06:06:00.032600 | 1,551,333,960.0326 | 11,295 |
pythondev | help | it sounds like broken unicode | 2019-02-28T06:09:53.033400 | Jettie | pythondev_help_Jettie_2019-02-28T06:09:53.033400 | 1,551,334,193.0334 | 11,296 |
pythondev | help | it's probably not correct utf8 | 2019-02-28T06:10:00.033700 | Jettie | pythondev_help_Jettie_2019-02-28T06:10:00.033700 | 1,551,334,200.0337 | 11,297 |
pythondev | help | please somebode test my small working example and tell me, if my issue persists: ( when clicking the combobox just twice, and selecting NOTHING, the main-window unfocusses)
```
#!/usr/bin/env python3
# coding: utf-8
import sys
from PyQt5.QtWidgets import QApplication
from PyQt5.QtWidgets import QMainWindow
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(100, 100)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.comboBox = QtWidgets.QComboBox(self.centralwidget)
self.comboBox.setGeometry(QtCore.QRect(30, 30, 80, 20))
self.comboBox.setObjectName("comboBox")
MainWindow.setCentralWidget(self.centralwidget)
class Mainframe(QMainWindow, Ui_MainWindow):
selected = None
def __init__(self, app, parent=None):
super(Mainframe, self).__init__(parent=parent)
self.setupUi(self)
<http://self.app|self.app> = app
self.parent = parent
self.comboBox.addItem("1")
self.comboBox.addItem("2")
self.comboBox.activated.connect(self.set_item) # this function does NOT get called, when selecting nothing
self.comboBox.setCurrentIndex(0)
def set_item(self):
self.selected = int(self.comboBox.currentText())
print(self.selected)
app = QApplication(sys.argv)
root = Mainframe(app)
root.show()
sys.exit(app.exec_())
``` | 2019-02-28T06:12:08.035200 | Shawana | pythondev_help_Shawana_2019-02-28T06:12:08.035200 | 1,551,334,328.0352 | 11,298 |
pythondev | help | <@Jettie> any ideas how to deal with it? Not asking for code, just for ideas, how that could be solved. | 2019-02-28T06:12:41.035800 | Faustina | pythondev_help_Faustina_2019-02-28T06:12:41.035800 | 1,551,334,361.0358 | 11,299 |
pythondev | help | :thinking_face: are you using a jsonb field? | 2019-02-28T06:15:24.036900 | Jettie | pythondev_help_Jettie_2019-02-28T06:15:24.036900 | 1,551,334,524.0369 | 11,300 |
pythondev | help | yes | 2019-02-28T06:15:42.037100 | Faustina | pythondev_help_Faustina_2019-02-28T06:15:42.037100 | 1,551,334,542.0371 | 11,301 |
pythondev | help | at least in exception I see that this is jsonb field | 2019-02-28T06:16:00.037400 | Faustina | pythondev_help_Faustina_2019-02-28T06:16:00.037400 | 1,551,334,560.0374 | 11,302 |
pythondev | help | the character is `\ufffd`: <https://www.fileformat.info/info/unicode/char/fffd/index.htm> | 2019-02-28T06:17:53.038100 | Jettie | pythondev_help_Jettie_2019-02-28T06:17:53.038100 | 1,551,334,673.0381 | 11,303 |
pythondev | help | strange that it causes issues :( | 2019-02-28T06:18:00.038400 | Jettie | pythondev_help_Jettie_2019-02-28T06:18:00.038400 | 1,551,334,680.0384 | 11,304 |
pythondev | help | Second, I have more of those chars | 2019-02-28T06:18:11.038700 | Faustina | pythondev_help_Faustina_2019-02-28T06:18:11.038700 | 1,551,334,691.0387 | 11,305 |
pythondev | help | you could probably do a `.replace()` | 2019-02-28T06:18:14.038900 | Jettie | pythondev_help_Jettie_2019-02-28T06:18:14.038900 | 1,551,334,694.0389 | 11,306 |
pythondev | help | but it doesn't scale well | 2019-02-28T06:18:23.039200 | Jettie | pythondev_help_Jettie_2019-02-28T06:18:23.039200 | 1,551,334,703.0392 | 11,307 |
pythondev | help | I'm not able to replicate the issue. | 2019-02-28T06:18:42.039400 | Wilhelmina | pythondev_help_Wilhelmina_2019-02-28T06:18:42.039400 | 1,551,334,722.0394 | 11,308 |
pythondev | help | I get all kind of different unicode chars like \udcfc or \udce4 or \udcdf and so on | 2019-02-28T06:21:37.040100 | Faustina | pythondev_help_Faustina_2019-02-28T06:21:37.040100 | 1,551,334,897.0401 | 11,309 |
pythondev | help | So I don't really think that simple .replace() will work, because when I get those errors, there's different unicode codes | 2019-02-28T06:23:28.040800 | Faustina | pythondev_help_Faustina_2019-02-28T06:23:28.040800 | 1,551,335,008.0408 | 11,310 |
pythondev | help | wtf.., what PyQt5 -Version are you using? | 2019-02-28T06:24:21.040900 | Shawana | pythondev_help_Shawana_2019-02-28T06:24:21.040900 | 1,551,335,061.0409 | 11,311 |
pythondev | help | Loop through dict of response_data, and encode every single value to ascii? | 2019-02-28T06:29:31.041400 | Faustina | pythondev_help_Faustina_2019-02-28T06:29:31.041400 | 1,551,335,371.0414 | 11,312 |
pythondev | help | Hey guys, can anyone point me in the right direction? I've made a simple python bot for discord, but I'm stuggling with slack, anyone got any tips for a really simple bot that responds to a !command and replies with JSON data? | 2019-02-28T06:34:30.043500 | Rosetta | pythondev_help_Rosetta_2019-02-28T06:34:30.043500 | 1,551,335,670.0435 | 11,313 |
pythondev | help | <@Rosetta> Not sure what your problem here is | 2019-02-28T06:36:07.043900 | Valeri | pythondev_help_Valeri_2019-02-28T06:36:07.043900 | 1,551,335,767.0439 | 11,314 |
pythondev | help | What challenge are you facing? | 2019-02-28T06:36:25.044200 | Valeri | pythondev_help_Valeri_2019-02-28T06:36:25.044200 | 1,551,335,785.0442 | 11,315 |
pythondev | help | What have you tried? Where are you getting stuck? | 2019-02-28T06:36:41.044600 | Valeri | pythondev_help_Valeri_2019-02-28T06:36:41.044600 | 1,551,335,801.0446 | 11,316 |
pythondev | help | I'm getting stuck with the basic principles I think. I understood discord.py easily, but it is very basic. I'm looking at making the same sort of thing but all examples I find seem to be really complicated | 2019-02-28T06:38:21.045600 | Rosetta | pythondev_help_Rosetta_2019-02-28T06:38:21.045600 | 1,551,335,901.0456 | 11,317 |
pythondev | help | ```venv ❯ python -V
Python 3.7.2
~/test
venv ❯ pip show PyQt5
Name: PyQt5
Version: 5.12
Summary: Python bindings for the Qt cross platform UI and application toolkit
Home-page: <https://www.riverbankcomputing.com/software/pyqt/>
Author: Riverbank Computing Limited
Author-email: <mailto:[email protected]|[email protected]>
License: GPL v3
Location: /Users/jp/test/venv/lib/python3.7/site-packages
Requires: PyQt5-sip
Required-by:``` | 2019-02-28T06:39:18.045700 | Wilhelmina | pythondev_help_Wilhelmina_2019-02-28T06:39:18.045700 | 1,551,335,958.0457 | 11,318 |
pythondev | help | Knowing how to ask a good question is a highly invaluable skill that will benefit you greatly in any career. Two good resources for suggestions and strategies to help you structure and phrase your question to make it easier for those here to understand your problem and help you work to a solution are:
• <https://www.mikeash.com/getting_answers.html>
• <https://stackoverflow.com/help/how-to-ask>
| 2019-02-28T06:41:17.046000 | Leana | pythondev_help_Leana_2019-02-28T06:41:17.046000 | 1,551,336,077.046 | 11,319 |
pythondev | help | It's still unclear what you wish to achieve | 2019-02-28T06:41:40.046500 | Valeri | pythondev_help_Valeri_2019-02-28T06:41:40.046500 | 1,551,336,100.0465 | 11,320 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.