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 | thanks! | 2019-03-05T01:48:35.558400 | Jeanie | pythondev_help_Jeanie_2019-03-05T01:48:35.558400 | 1,551,750,515.5584 | 12,121 |
pythondev | help | coming over from javascript data parsing without lodash is a little weird | 2019-03-05T01:48:58.558800 | Jeanie | pythondev_help_Jeanie_2019-03-05T01:48:58.558800 | 1,551,750,538.5588 | 12,122 |
pythondev | help | Thanks <@Sasha>! For a second I thought I was missing out on something. It was a list afterall! :taco: | 2019-03-05T01:50:58.561000 | Philip | pythondev_help_Philip_2019-03-05T01:50:58.561000 | 1,551,750,658.561 | 12,123 |
pythondev | help | In this case, the first option would be the most practical choice right? So a `TypeError` may not be encountered? i.e. `foo = None` | 2019-03-05T01:55:52.564100 | Philip | pythondev_help_Philip_2019-03-05T01:55:52.564100 | 1,551,750,952.5641 | 12,124 |
pythondev | help | Hi, I need to create GUI application that accepts all possible keyboard shortcuts including ones used by OS. Pyglet does exactly what I need (<https://pyglet.readthedocs.io/en/pyglet-1.3-maintenance/programming_guide/keyboard.html#keyboard-exclusivity>), but it's too low-level. Is it possible to implement similar behaviour with PyQt or other cross-platform framework with widget library richer than pyglet has? | 2019-03-05T01:56:47.564700 | Marinda | pythondev_help_Marinda_2019-03-05T01:56:47.564700 | 1,551,751,007.5647 | 12,125 |
pythondev | help | Yeah, I'd generally prefer the first option, both for robustness and readability. | 2019-03-05T01:57:46.564800 | Sasha | pythondev_help_Sasha_2019-03-05T01:57:46.564800 | 1,551,751,066.5648 | 12,126 |
pythondev | help | Thank you :slightly_smiling_face: | 2019-03-05T01:58:23.565100 | Philip | pythondev_help_Philip_2019-03-05T01:58:23.565100 | 1,551,751,103.5651 | 12,127 |
pythondev | help | No problem... it's a thoughtful and well-posed question. :grin: | 2019-03-05T01:59:26.565300 | Sasha | pythondev_help_Sasha_2019-03-05T01:59:26.565300 | 1,551,751,166.5653 | 12,128 |
pythondev | help | anyone here is using AWS IoT? | 2019-03-05T03:53:21.567000 | Agustin | pythondev_help_Agustin_2019-03-05T03:53:21.567000 | 1,551,758,001.567 | 12,129 |
pythondev | help | Hi, any input is appreciated:
I have a class with about 15 mandatory data fields. I want the caller to instantiate an object from this class, using a classmethod, which reads and parses an excel file (e.g., `instance.from_excel(filepath)`).
I don’t want the user to construct it like `obj = MyClass(15_different_args)`, since that would be quite tedious and the data can only be extracted from an excel file anyways. Would I just set the data fields to `None`, some default value, or don’t set them at all in the `__init__` ?
Maybe I am just thinking about this wrong.
Example:
```
class MyClass:
def __init__(self, arg_1, arg_2=0, ...):
self.arg_1 = arg_1
# or use
self.arg_2 = arg_2
# or use
self.arg_3 = None
@classmethod
def from_excel(cls, filepath):
# do something
return cls(*value_list)
``` | 2019-03-05T04:16:39.577000 | Dominga | pythondev_help_Dominga_2019-03-05T04:16:39.577000 | 1,551,759,399.577 | 12,130 |
pythondev | help | here’s one. If I’ve got a variable and I want to make sure its not blank, is it better to say `if blah != null:` or `if blah == null: else x`? | 2019-03-05T04:48:25.578200 | Vanita | pythondev_help_Vanita_2019-03-05T04:48:25.578200 | 1,551,761,305.5782 | 12,131 |
pythondev | help | That's not really a thing in Python - `if not blah` works. | 2019-03-05T04:50:04.578900 | Karoline | pythondev_help_Karoline_2019-03-05T04:50:04.578900 | 1,551,761,404.5789 | 12,132 |
pythondev | help | ah ok | 2019-03-05T04:50:42.579900 | Vanita | pythondev_help_Vanita_2019-03-05T04:50:42.579900 | 1,551,761,442.5799 | 12,133 |
pythondev | help | very occasionally you'll want to distinguish between `None` and some other sort of falsey value, and you can do `if blah is not None:` and other direct comparisons | 2019-03-05T04:50:49.580300 | Karoline | pythondev_help_Karoline_2019-03-05T04:50:49.580300 | 1,551,761,449.5803 | 12,134 |
pythondev | help | don't you also have to do `if blah is not None` to check for None values to? | 2019-03-05T04:50:57.580700 | Mica | pythondev_help_Mica_2019-03-05T04:50:57.580700 | 1,551,761,457.5807 | 12,135 |
pythondev | help | but it's common practice (and I think useful) to just do the truthy comparison | 2019-03-05T04:51:04.580900 | Karoline | pythondev_help_Karoline_2019-03-05T04:51:04.580900 | 1,551,761,464.5809 | 12,136 |
pythondev | help | ah my bad, too slow :stuck_out_tongue: | 2019-03-05T04:51:20.581400 | Mica | pythondev_help_Mica_2019-03-05T04:51:20.581400 | 1,551,761,480.5814 | 12,137 |
pythondev | help | `if not blah` will match `None`, `[]`, `False`, `''`, etc | 2019-03-05T04:51:34.581700 | Karoline | pythondev_help_Karoline_2019-03-05T04:51:34.581700 | 1,551,761,494.5817 | 12,138 |
pythondev | help | oh really?! Oh Damn! just checked, i didn't realise None was covered under the truthy check! | 2019-03-05T04:53:14.582300 | Mica | pythondev_help_Mica_2019-03-05T04:53:14.582300 | 1,551,761,594.5823 | 12,139 |
pythondev | help | <@Karoline> :taco: | 2019-03-05T04:53:29.582700 | Mica | pythondev_help_Mica_2019-03-05T04:53:29.582700 | 1,551,761,609.5827 | 12,140 |
pythondev | help | so something like `if url is not "":`? | 2019-03-05T04:54:35.583000 | Vanita | pythondev_help_Vanita_2019-03-05T04:54:35.583000 | 1,551,761,675.583 | 12,141 |
pythondev | help | I would just say `if not url` | 2019-03-05T04:54:49.583400 | Karoline | pythondev_help_Karoline_2019-03-05T04:54:49.583400 | 1,551,761,689.5834 | 12,142 |
pythondev | help | huh, today I learnt! Thank you! | 2019-03-05T04:55:33.583700 | Vanita | pythondev_help_Vanita_2019-03-05T04:55:33.583700 | 1,551,761,733.5837 | 12,143 |
pythondev | help | <@Karoline> :taco: | 2019-03-05T04:55:44.583900 | Vanita | pythondev_help_Vanita_2019-03-05T04:55:44.583900 | 1,551,761,744.5839 | 12,144 |
pythondev | help | `if tacos:` :pacman: | 2019-03-05T04:56:03.584200 | Karoline | pythondev_help_Karoline_2019-03-05T04:56:03.584200 | 1,551,761,763.5842 | 12,145 |
pythondev | help | You shouldn't use the `is` operator for strings at all, anyway | 2019-03-05T04:59:51.584700 | Melynda | pythondev_help_Melynda_2019-03-05T04:59:51.584700 | 1,551,761,991.5847 | 12,146 |
pythondev | help | ```>>> x = 'This is a test'
>>> y = 'This is a test'
>>> x is y
False
``` | 2019-03-05T04:59:55.584900 | Melynda | pythondev_help_Melynda_2019-03-05T04:59:55.584900 | 1,551,761,995.5849 | 12,147 |
pythondev | help | `x == y` check if the two are equal, whereas `x is y` checks that they are literally the exact same object. It works for True, False, and None because there's only ever one instance of each of those. | 2019-03-05T05:00:51.585700 | Melynda | pythondev_help_Melynda_2019-03-05T05:00:51.585700 | 1,551,762,051.5857 | 12,148 |
pythondev | help | Hello everyone.
```
from dateutil.parser import parse
In [81]: d1
Out[81]: '1/2/2019 6:42:02 PM'
In [82]: d2
Out[82]: '1/5/2019'
In [83]: t1 = parse(d1)
In [84]: t2 = parse(d2)
In [85]: t1
Out[85]: datetime.datetime(2019, 1, 2, 18, 42, 2)
```
How I can to understand when what time format?
I want to write a code where `t1` will have `date_format = "%Y-%m-%d %H-%M-%S"` but if we have not an hour, minutes and seconds, like `t2` it will be like `date_format = "%Y-%m-%d"`
```
In [89]: t2.strftime('%H-%M-%S') == '00-00-00'
Out[89]: True
```
It good decision? | 2019-03-05T05:01:15.585900 | Jung | pythondev_help_Jung_2019-03-05T05:01:15.585900 | 1,551,762,075.5859 | 12,149 |
pythondev | help | <@Melynda> :taco: | 2019-03-05T05:02:18.586600 | Karoline | pythondev_help_Karoline_2019-03-05T05:02:18.586600 | 1,551,762,138.5866 | 12,150 |
pythondev | help | Thanks <@Melynda>, I’m more just wanting to rule out if the text exists at all when its passed over but thats great to know! | 2019-03-05T05:02:35.586700 | Vanita | pythondev_help_Vanita_2019-03-05T05:02:35.586700 | 1,551,762,155.5867 | 12,151 |
pythondev | help | <@Melynda> :taco: | 2019-03-05T05:04:36.587100 | Valeri | pythondev_help_Valeri_2019-03-05T05:04:36.587100 | 1,551,762,276.5871 | 12,152 |
pythondev | help | and the trifecta of tacos. taco-fecta? <@Melynda> :taco: | 2019-03-05T05:05:26.587600 | Vanita | pythondev_help_Vanita_2019-03-05T05:05:26.587600 | 1,551,762,326.5876 | 12,153 |
pythondev | help | Cheers, now I want a burrito! | 2019-03-05T05:29:30.588100 | Melynda | pythondev_help_Melynda_2019-03-05T05:29:30.588100 | 1,551,763,770.5881 | 12,154 |
pythondev | help | Oh I see, you mean using a frozeset inside a normal set. Thanks. | 2019-03-05T05:56:46.589200 | Lanny | pythondev_help_Lanny_2019-03-05T05:56:46.589200 | 1,551,765,406.5892 | 12,155 |
pythondev | help | Trying to connect to Azure SQL database with pymssql, which should be possible according to <http://pymssql.org/en/stable/azure.html>. I have pymssql version 2.1.4, which is later than the minimum required version. Not sure how to handle all the other requirements, there is no additional info in the article. I get this error when I try to connect:
`pymssql.OperationalError: (20002, b'DB-Lib error message 20002, severity 9:\nAdaptive Server connection failed`. Any ideas? | 2019-03-05T07:34:33.590600 | Dawn | pythondev_help_Dawn_2019-03-05T07:34:33.590600 | 1,551,771,273.5906 | 12,156 |
pythondev | help | Getting a `SystemError: Parent module not loaded, cannot perform relative import` on a Fedora server. The directory structure looks like this:
```root/
|
+-- task_scripts /
| |
| + -- script_to_run_that_imports_from_src.py
|
+-- src /
|
+-- imported_into_task_script_and_also_used_in_main_project.py
|
+-- other_src_files...py
```
Works just fine on my local Windows development box, so I assume there's an OS specific issue I am missing? I suppose I could always get rid of the import and copy/paste the code I need from the src/ into the task_script/, but I am curious if I can get this way to work. | 2019-03-05T08:07:20.591900 | Pilar | pythondev_help_Pilar_2019-03-05T08:07:20.591900 | 1,551,773,240.5919 | 12,157 |
pythondev | help | how are you running it on your local windows machine ? and on the fedora one ? | 2019-03-05T08:08:45.592500 | Jimmy | pythondev_help_Jimmy_2019-03-05T08:08:45.592500 | 1,551,773,325.5925 | 12,158 |
pythondev | help | Hello everyone, I would like to ask if there are any image processing enthusiast here? Particularly on hexagonal image processing. Thank you . | 2019-03-05T08:24:47.593800 | Josef | pythondev_help_Josef_2019-03-05T08:24:47.593800 | 1,551,774,287.5938 | 12,159 |
pythondev | help | <@Jimmy> Locally, I am running via PyCharm, but it also worked by running the script from the CLI directly -- something I am in the process of reconfirming right now. On Fedora, I am running from CLI. I also tried running via Jenkins job, which is how I am running the main part of the code. The script that Jenkins runs, we'll call it integration_runner.py lives in the root directory, and it imports several classes from files in src with no problem. Both src/ and task_scripts/ have empty __init__ files | 2019-03-05T09:44:11.598400 | Pilar | pythondev_help_Pilar_2019-03-05T09:44:11.598400 | 1,551,779,051.5984 | 12,160 |
pythondev | help | My task script need the classes in src/ because it is a source control/Trello/Jira/TestRail integration, and that script uses the imported class methods that interact with those things as part of the initialization | 2019-03-05T09:47:42.600900 | Pilar | pythondev_help_Pilar_2019-03-05T09:47:42.600900 | 1,551,779,262.6009 | 12,161 |
pythondev | help | afaik pycharm append some script to the `sys.path` so that might be why it work | 2019-03-05T09:48:00.601300 | Jimmy | pythondev_help_Jimmy_2019-03-05T09:48:00.601300 | 1,551,779,280.6013 | 12,162 |
pythondev | help | I figured PyCharm was probably doing something, which is why I wanted to reconfirm via git-bash terminal | 2019-03-05T09:48:49.602200 | Pilar | pythondev_help_Pilar_2019-03-05T09:48:49.602200 | 1,551,779,329.6022 | 12,163 |
pythondev | help | :thumbsup: let us know | 2019-03-05T09:49:13.602400 | Jimmy | pythondev_help_Jimmy_2019-03-05T09:49:13.602400 | 1,551,779,353.6024 | 12,164 |
pythondev | help | Will do! | 2019-03-05T09:49:19.602600 | Pilar | pythondev_help_Pilar_2019-03-05T09:49:19.602600 | 1,551,779,359.6026 | 12,165 |
pythondev | help | <@Jimmy> figured I'd share here while also googling the new error I just got when trying to run from the command line on Fedora with the `-m` switch: `/usr/bin/python3.5: Relative module names not supported` | 2019-03-05T10:02:40.606700 | Pilar | pythondev_help_Pilar_2019-03-05T10:02:40.606700 | 1,551,780,160.6067 | 12,166 |
pythondev | help | Ehhhr.. another noob-question.. I#m trying to understand the logic behind some gerrymander-problem.. I have a list with possible_district_coordinates for every point (x, y) in a 5x5 coordinate-system that includes every valid district for that point so far (a district has 5 blocks, that are neighbors) - this part is working.. `all_district_possibilities = [get_possbile_districts(block) for block in blocks]`
Now I want to get a carthesian-product out of these possibilites, to check, if a product is a valid 5x5 zone.
`itertools.product(all_district_possibilities)` does not give me a combination of coordinates, I don't know why..
then I tried something to test manually, but this breaks, due to `too many statically nested blocks` (see snipper)
Ehm... looks odd though.. I'm clueless. How can I combine these items? | 2019-03-05T10:06:56.609200 | Shawana | pythondev_help_Shawana_2019-03-05T10:06:56.609200 | 1,551,780,416.6092 | 12,167 |
pythondev | help | ```
for _0 in all_district_possibilities[0]:
for _1 in all_district_possibilities[1]:
for _2 in all_district_possibilities[2]:
for _3 in all_district_possibilities[3]:
for _4 in all_district_possibilities[4]:
for _5 in all_district_possibilities[5]:
for _6 in all_district_possibilities[6]:
for _7 in all_district_possibilities[7]:
for _8 in all_district_possibilities[8]:
for _9 in all_district_possibilities[9]:
for _10 in all_district_possibilities[10]:
for _11 in all_district_possibilities[11]:
for _12 in all_district_possibilities[12]:
for _13 in all_district_possibilities[13]:
for _14 in all_district_possibilities[14]:
for _15 in all_district_possibilities[15]:
for _16 in all_district_possibilities[16]:
for _17 in all_district_possibilities[17]:
for _18 in all_district_possibilities[18]:
for _19 in all_district_possibilities[19]:
for _20 in all_district_possibilities[20]:
for _21 in all_district_possibilities[21]:
for _22 in all_district_possibilities[22]:
for _23 in all_district_possibilities[23]:
for _24 in all_district_possibilities[24]:
print(_0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24)
break
break
break
break
break
break
break
break
break
break
break
break
break
break
break
break
break
break
break
break
break
break
break
break
break
``` | 2019-03-05T10:07:03.609400 | Shawana | pythondev_help_Shawana_2019-03-05T10:07:03.609400 | 1,551,780,423.6094 | 12,168 |
pythondev | help | Oh. My. God. | 2019-03-05T10:09:29.609600 | Chester | pythondev_help_Chester_2019-03-05T10:09:29.609600 | 1,551,780,569.6096 | 12,169 |
pythondev | help | lol | 2019-03-05T10:09:37.609800 | Shawana | pythondev_help_Shawana_2019-03-05T10:09:37.609800 | 1,551,780,577.6098 | 12,170 |
pythondev | help | :see_no_evil: | 2019-03-05T10:10:12.610000 | Shawana | pythondev_help_Shawana_2019-03-05T10:10:12.610000 | 1,551,780,612.61 | 12,171 |
pythondev | help | I just had a seizure. | 2019-03-05T10:11:38.610500 | Deon | pythondev_help_Deon_2019-03-05T10:11:38.610500 | 1,551,780,698.6105 | 12,172 |
pythondev | help | Wheeeeeeeeeeeeee! It’s a slide! | 2019-03-05T10:11:41.610600 | Clemmie | pythondev_help_Clemmie_2019-03-05T10:11:41.610600 | 1,551,780,701.6106 | 12,173 |
pythondev | help | :nauseated_face: | 2019-03-05T10:13:21.610800 | Melynda | pythondev_help_Melynda_2019-03-05T10:13:21.610800 | 1,551,780,801.6108 | 12,174 |
pythondev | help | lets take a step back - all district possibilities is a list of lists? | 2019-03-05T10:14:59.611400 | Clemmie | pythondev_help_Clemmie_2019-03-05T10:14:59.611400 | 1,551,780,899.6114 | 12,175 |
pythondev | help | yes, its a list of lists of a list :Q | 2019-03-05T10:15:29.611800 | Shawana | pythondev_help_Shawana_2019-03-05T10:15:29.611800 | 1,551,780,929.6118 | 12,176 |
pythondev | help | what did you get with `itertools.product`? | 2019-03-05T10:17:21.612300 | Clemmie | pythondev_help_Clemmie_2019-03-05T10:17:21.612300 | 1,551,781,041.6123 | 12,177 |
pythondev | help | Nevermind, I see how it might not work | 2019-03-05T10:18:05.612600 | Clemmie | pythondev_help_Clemmie_2019-03-05T10:18:05.612600 | 1,551,781,085.6126 | 12,178 |
pythondev | help | ah? | 2019-03-05T10:18:55.612800 | Shawana | pythondev_help_Shawana_2019-03-05T10:18:55.612800 | 1,551,781,135.6128 | 12,179 |
pythondev | help | one sec | 2019-03-05T10:19:09.613100 | Clemmie | pythondev_help_Clemmie_2019-03-05T10:19:09.613100 | 1,551,781,149.6131 | 12,180 |
pythondev | help | try `itertools.product(*all_district_possibilities)` | 2019-03-05T10:19:46.613600 | Clemmie | pythondev_help_Clemmie_2019-03-05T10:19:46.613600 | 1,551,781,186.6136 | 12,181 |
pythondev | help | product takes multiple iterables, not nested iterables, so you need to call it with list expansion | 2019-03-05T10:20:19.614500 | Clemmie | pythondev_help_Clemmie_2019-03-05T10:20:19.614500 | 1,551,781,219.6145 | 12,182 |
pythondev | help | YAY, that does the trick! | 2019-03-05T10:20:22.614600 | Shawana | pythondev_help_Shawana_2019-03-05T10:20:22.614600 | 1,551,781,222.6146 | 12,183 |
pythondev | help | thank you! | 2019-03-05T10:20:28.614800 | Shawana | pythondev_help_Shawana_2019-03-05T10:20:28.614800 | 1,551,781,228.6148 | 12,184 |
pythondev | help | :taco: | 2019-03-05T10:20:38.615100 | Shawana | pythondev_help_Shawana_2019-03-05T10:20:38.615100 | 1,551,781,238.6151 | 12,185 |
pythondev | help | now please, go out and burn that nested for loop :wink: | 2019-03-05T10:20:46.615500 | Clemmie | pythondev_help_Clemmie_2019-03-05T10:20:46.615500 | 1,551,781,246.6155 | 12,186 |
pythondev | help | Thanks for the taco, for heytaco to work you have to do @ user on the same line | 2019-03-05T10:21:16.616400 | Clemmie | pythondev_help_Clemmie_2019-03-05T10:21:16.616400 | 1,551,781,276.6164 | 12,187 |
pythondev | help | <@Clemmie> :taco: | 2019-03-05T10:21:27.617200 | Shawana | pythondev_help_Shawana_2019-03-05T10:21:27.617200 | 1,551,781,287.6172 | 12,188 |
pythondev | help | <@Clemmie> :taco: | 2019-03-05T10:21:30.617400 | Karoline | pythondev_help_Karoline_2019-03-05T10:21:30.617400 | 1,551,781,290.6174 | 12,189 |
pythondev | help | just because I'm happy that code will disappear from use | 2019-03-05T10:21:41.618300 | Karoline | pythondev_help_Karoline_2019-03-05T10:21:41.618300 | 1,551,781,301.6183 | 12,190 |
pythondev | help | lol | 2019-03-05T10:21:42.618500 | Karoline | pythondev_help_Karoline_2019-03-05T10:21:42.618500 | 1,551,781,302.6185 | 12,191 |
pythondev | help | <@Shawana> :taco: for the hilarious start to the day | 2019-03-05T10:21:57.619000 | Lillia | pythondev_help_Lillia_2019-03-05T10:21:57.619000 | 1,551,781,317.619 | 12,192 |
pythondev | help | (not faulting you <@Shawana> - you were smart enough to ask in the first place, so :taco: for that) | 2019-03-05T10:22:20.619800 | Karoline | pythondev_help_Karoline_2019-03-05T10:22:20.619800 | 1,551,781,340.6198 | 12,193 |
pythondev | help | itertools is nasty like that, generally we are used to passing one object with nested stuff, not making functions that take an long list of the same type | 2019-03-05T10:22:38.620200 | Clemmie | pythondev_help_Clemmie_2019-03-05T10:22:38.620200 | 1,551,781,358.6202 | 12,194 |
pythondev | help | itertools is ~nasty~ magic | 2019-03-05T10:24:14.620700 | Jimmy | pythondev_help_Jimmy_2019-03-05T10:24:14.620700 | 1,551,781,454.6207 | 12,195 |
pythondev | help | <@Jimmy> alright, I have confirmed that the same thing does indeed happen on Windows from the command line | 2019-03-05T10:24:24.620800 | Pilar | pythondev_help_Pilar_2019-03-05T10:24:24.620800 | 1,551,781,464.6208 | 12,196 |
pythondev | help | Hello everyone , I am franco from the Philippines and im currently working on a research About Hexagonal Image Processing. I am trying to find someone who can Help me understanding the algorithms for my implementations. If you are interested, kindly send me a message and I can discuss more information about my research. Thank youuuu | 2019-03-05T10:29:54.622400 | Josef | pythondev_help_Josef_2019-03-05T10:29:54.622400 | 1,551,781,794.6224 | 12,197 |
pythondev | help | If you have a question, please just ask it. Please do not ask for topic experts; do not DM or ping random users. We cannot begin to answer a question until we actually get a question.
<http://sol.gfxile.net/dontask.html|*Asking Questions*> | 2019-03-05T10:32:38.622600 | Leana | pythondev_help_Leana_2019-03-05T10:32:38.622600 | 1,551,781,958.6226 | 12,198 |
pythondev | help | Hi everyone,
I want to write program in python for radio frequency detection or to trigger from some sort of input and I'm new to python any suggestion from where i should start ?
Thanks in advance. | 2019-03-05T10:46:15.626200 | Carey | pythondev_help_Carey_2019-03-05T10:46:15.626200 | 1,551,782,775.6262 | 12,199 |
pythondev | help | <https://pypi.org/project/digital-rf/> | 2019-03-05T10:47:09.626400 | Lillia | pythondev_help_Lillia_2019-03-05T10:47:09.626400 | 1,551,782,829.6264 | 12,200 |
pythondev | help | +--------*\\ | 2019-03-05T10:48:09.627500 | Chad | pythondev_help_Chad_2019-03-05T10:48:09.627500 | 1,551,782,889.6275 | 12,201 |
pythondev | help | \ | 2019-03-05T10:48:10.627600 | Chad | pythondev_help_Chad_2019-03-05T10:48:10.627600 | 1,551,782,890.6276 | 12,202 |
pythondev | help | *\ | 2019-03-05T10:48:12.627700 | Chad | pythondev_help_Chad_2019-03-05T10:48:12.627700 | 1,551,782,892.6277 | 12,203 |
pythondev | help | *\ | 2019-03-05T10:48:15.627800 | Chad | pythondev_help_Chad_2019-03-05T10:48:15.627800 | 1,551,782,895.6278 | 12,204 |
pythondev | help | Sry | 2019-03-05T10:48:23.628000 | Chad | pythondev_help_Chad_2019-03-05T10:48:23.628000 | 1,551,782,903.628 | 12,205 |
pythondev | help | I'm trying to build an RPM for a library I wrote (running `python setup.py bdist_rpm` inside of my pipenv), but after moving the egginfo to BUILDROOT it starts to complain that a bunch of pyc files in __pycache__ are missing... Is there something additional I should be doing? It's Python 3.6.8 | 2019-03-05T10:50:00.629000 | Maybelle | pythondev_help_Maybelle_2019-03-05T10:50:00.629000 | 1,551,783,000.629 | 12,206 |
pythondev | help | Does anyone here knows about gabor filter function ? I want to use it in my image reconstruction after the conversion from Square to Hexagonal pixel image. Now my question is, is gabor filtsr implementation for square and Hex the same? Because I am using a code implementation originally for square to hexagonal image. | 2019-03-05T11:10:06.629200 | Josef | pythondev_help_Josef_2019-03-05T11:10:06.629200 | 1,551,784,206.6292 | 12,207 |
pythondev | help | I'm trying to open a webpage and getting this error:
`downloads = urllib.request.urlopen("<http://downloads.whatever.com/downloads>", timeout=0.1).read().decode()`
```
Traceback (most recent call last):
File "/usr/lib/python3.6/urllib/request.py", line 1318, in do_open
encode_chunked=req.has_header('Transfer-encoding'))
File "/usr/lib/python3.6/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1026, in _send_output
self.send(msg)
File "/usr/lib/python3.6/http/client.py", line 964, in send
self.connect()
File "/usr/lib/python3.6/http/client.py", line 936, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/usr/lib/python3.6/socket.py", line 724, in create_connection
raise err
File "/usr/lib/python3.6/socket.py", line 713, in create_connection
sock.connect(sa)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.6/urllib/request.py", line 526, in open
response = self._open(req, data)
File "/usr/lib/python3.6/urllib/request.py", line 544, in _open
'_open', req)
File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/lib/python3.6/urllib/request.py", line 1346, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib/python3.6/urllib/request.py", line 1320, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error timed out>```
If I'm not mistaken it is because the page is rendered using js. (Ex.: If I wget the url I get a 404 and if I use curl I get a source code for js).
What's the easiest way to get a js page content already rendered? | 2019-03-05T11:13:31.631400 | Jennifer | pythondev_help_Jennifer_2019-03-05T11:13:31.631400 | 1,551,784,411.6314 | 12,208 |
pythondev | help | i did search your problem and I found this.
<https://stackoverflow.com/questions/8049520/web-scraping-javascript-page-with-python> | 2019-03-05T11:16:26.631600 | Josef | pythondev_help_Josef_2019-03-05T11:16:26.631600 | 1,551,784,586.6316 | 12,209 |
pythondev | help | You appear to be setting a 100ms timeout, which is pretty short, and it's triggering. | 2019-03-05T11:17:05.632600 | Sasha | pythondev_help_Sasha_2019-03-05T11:17:05.632600 | 1,551,784,625.6326 | 12,210 |
pythondev | help | Thanks | 2019-03-05T11:17:42.632700 | Carey | pythondev_help_Carey_2019-03-05T11:17:42.632700 | 1,551,784,662.6327 | 12,211 |
pythondev | help | <@Sasha> changing it to 30 instead of 0.1 does not make a difference. | 2019-03-05T11:18:09.633300 | Jennifer | pythondev_help_Jennifer_2019-03-05T11:18:09.633300 | 1,551,784,689.6333 | 12,212 |
pythondev | help | Looking | 2019-03-05T11:18:23.633500 | Jennifer | pythondev_help_Jennifer_2019-03-05T11:18:23.633500 | 1,551,784,703.6335 | 12,213 |
pythondev | help | I had this before didn't quite help. Probably because I'm very noob. :slightly_smiling_face: | 2019-03-05T11:18:46.633700 | Jennifer | pythondev_help_Jennifer_2019-03-05T11:18:46.633700 | 1,551,784,726.6337 | 12,214 |
pythondev | help | Btw:
```
python3
Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import requests
>>> from bs4 import BeautifulSoup
>>> response = requests.get("<http://downloads.whatever.com/downloads>")
>>> print(response)
<Response [404]>``` | 2019-03-05T11:21:03.633900 | Jennifer | pythondev_help_Jennifer_2019-03-05T11:21:03.633900 | 1,551,784,863.6339 | 12,215 |
pythondev | help | <@Josef>
```
import dryscrape
from bs4 import BeautifulSoup
session = dryscrape.Session()
session.visit(my_url)
response = session.body()
soup = BeautifulSoup(response)
soup.find(id="intro-text")
# Result:
<p id="intro-text">Yay! Supports javascript</p>```
This actually worked. I should have payed more attention. Thanks and sorry for bothering you! <@Sasha> thanks as usual for the quick response. | 2019-03-05T11:29:21.635500 | Jennifer | pythondev_help_Jennifer_2019-03-05T11:29:21.635500 | 1,551,785,361.6355 | 12,216 |
pythondev | help | Quoting from a great article on Event Collaboration Architecture by Martin Flowler:
>"Event cascades are good because something happens and as a result of a string of local logical event connections something indirect happens. Event cascades are bad because something happens and as a result of a string of local logical event connections something indirect happens. Event cascades usually look pretty obvious when they are described like this, but until you see them they can be very hard to spot. This is an area where *visualization systems* that can build a graph of event chains by querying meta-data from the systems themselves could be very handy."
Another one:
>"With Event Collaboration you don't know who is listening to the events until run-time - which in practice means you can only find the links between the components in configuration data - and there may be multiple areas of configuration data. As a result these interactions are hard to find, understand and debug. It is very helpful here to use *automated tools* that can display the configuration of components at run time so you can see what you have."
What are some such *visualization systems* and *automated tools* in the ecosystem today? | 2019-03-05T13:07:28.637200 | Rosamaria | pythondev_help_Rosamaria_2019-03-05T13:07:28.637200 | 1,551,791,248.6372 | 12,217 |
pythondev | help | some workflow engines have those | 2019-03-05T13:10:34.637600 | Jettie | pythondev_help_Jettie_2019-03-05T13:10:34.637600 | 1,551,791,434.6376 | 12,218 |
pythondev | help | such as? | 2019-03-05T13:17:00.638100 | Rosamaria | pythondev_help_Rosamaria_2019-03-05T13:17:00.638100 | 1,551,791,820.6381 | 12,219 |
pythondev | help | cannot name one off the top of my head | 2019-03-05T13:18:45.638600 | Jettie | pythondev_help_Jettie_2019-03-05T13:18:45.638600 | 1,551,791,925.6386 | 12,220 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.