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 | <@Cori> | 2019-03-09T12:16:51.159600 | Elisha | pythondev_help_Elisha_2019-03-09T12:16:51.159600 | 1,552,133,811.1596 | 12,821 |
pythondev | help | None | 2019-03-09T12:17:05.159700 | Elisha | pythondev_help_Elisha_2019-03-09T12:17:05.159700 | 1,552,133,825.1597 | 12,822 |
pythondev | help | Yeah its cool man - clever programmer's youtube channel is probably my favourite learning resource | 2019-03-09T12:58:00.160000 | Otelia | pythondev_help_Otelia_2019-03-09T12:58:00.160000 | 1,552,136,280.16 | 12,823 |
pythondev | help | Anyone knows how can i convert SVG files to a TTF font using python or JavaScript? | 2019-03-09T13:02:43.160900 | Bethel | pythondev_help_Bethel_2019-03-09T13:02:43.160900 | 1,552,136,563.1609 | 12,824 |
pythondev | help | <@Bethel> have you tried to google that? | 2019-03-09T13:03:31.161300 | Chester | pythondev_help_Chester_2019-03-09T13:03:31.161300 | 1,552,136,611.1613 | 12,825 |
pythondev | help | Yes
There's only grunt-webfont doing it but i need a scalable solution for website | 2019-03-09T13:04:12.162000 | Bethel | pythondev_help_Bethel_2019-03-09T13:04:12.162000 | 1,552,136,652.162 | 12,826 |
pythondev | help | Grunt instance can be run only one at a time | 2019-03-09T13:04:26.162500 | Bethel | pythondev_help_Bethel_2019-03-09T13:04:26.162500 | 1,552,136,666.1625 | 12,827 |
pythondev | help | <@Otelia> I think that your problems is indentation. Try to put all the code inside a file, use the correct indentation and try running it using `python my_file.py` | 2019-03-09T14:15:16.162800 | Elizabeth | pythondev_help_Elizabeth_2019-03-09T14:15:16.162800 | 1,552,140,916.1628 | 12,828 |
pythondev | help | If you wanna continue using the python console approach. Just make sure that you put the correct indentation on each line | 2019-03-09T14:16:15.163000 | Elizabeth | pythondev_help_Elizabeth_2019-03-09T14:16:15.163000 | 1,552,140,975.163 | 12,829 |
pythondev | help | Thank you <@Sasha>, I moved the empty check above the PDF statement, and it works, yay!!! | 2019-03-09T14:24:36.163500 | Echo | pythondev_help_Echo_2019-03-09T14:24:36.163500 | 1,552,141,476.1635 | 12,830 |
pythondev | help | Hey I have a question which is not related to Python, but Javascript. Maybe someone can help?
Essentially what I want to do is when a user clicks this link:
<http://domain.com/[email protected]&source=twitter|domain.com/[email protected]&source=twitter>
I want a function that collects the values `<mailto:[email protected]|[email protected]>` and `twitter` from the url, and pass them along to a url inside my html doc.
Replace the `xxxx` and `yyyy` with those variables in `src="https://*****.<http://typeform.com/to/*****?epost=xxxx&fornavn=yyyy|typeform.com/to/*****?epost=xxxx&fornavn=yyyy>"`
I have found this JS function to get the variable names passed in the url, but I have no idea on how to call and use those variables. Any help is highly appreciated!
``` <script>
function getQueryVariable(variable)
{
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if(pair[0] == variable){return pair[1];}
}
return(false);
}
</script>``` | 2019-03-10T01:32:58.165800 | Conchita | pythondev_help_Conchita_2019-03-10T01:32:58.165800 | 1,552,181,578.1658 | 12,831 |
pythondev | help | I'm not a JavaScript expert, but the general idea is that you'll have a small script in your page which calls the `getQueryVariable()` function and then overwrites the iframe's `src` attribute with a new typeform URL you construct from those strings, using `document.getElementById("typeform-full").src = new_url`. | 2019-03-10T01:42:10.168300 | Sasha | pythondev_help_Sasha_2019-03-10T01:42:10.168300 | 1,552,182,130.1683 | 12,832 |
pythondev | help | Could you show me an example? My first time touching JS. | 2019-03-10T01:45:52.169300 | Conchita | pythondev_help_Conchita_2019-03-10T01:45:52.169300 | 1,552,182,352.1693 | 12,833 |
pythondev | help | Again, I'm really not an expert, so no guarantees, but the simplest thing would probably be like... | 2019-03-10T01:55:46.169500 | Sasha | pythondev_help_Sasha_2019-03-10T01:55:46.169500 | 1,552,182,946.1695 | 12,834 |
pythondev | help | Thanks, tried but not able to make it work. Best method to debug html / JS? | 2019-03-10T03:25:46.170600 | Conchita | pythondev_help_Conchita_2019-03-10T03:25:46.170600 | 1,552,188,346.1706 | 12,835 |
pythondev | help | I don't know about the best method, but browsers often have a developer menu you can turn on which enables inspecting the page source and variables, etc. | 2019-03-10T03:30:10.171600 | Sasha | pythondev_help_Sasha_2019-03-10T03:30:10.171600 | 1,552,188,610.1716 | 12,836 |
pythondev | help | Anyone know how I can launch an arbitrary executable from PyCharm? Seems like it should be trivial but the Run/Debug configurations doesn't seem to have anything for Windows (other OSes could probably use the Bash option) | 2019-03-10T05:37:22.172500 | Raven | pythondev_help_Raven_2019-03-10T05:37:22.172500 | 1,552,196,242.1725 | 12,837 |
pythondev | help | Hi folks, does anyone work with python subpackages? I already asked question on stackoverflow, but maybe here's somebody knows how to create project with subpackages? all details here: <https://stackoverflow.com/questions/55044596/project-structure-how-to-create-subpackage-that-will-work-independently>
thank you in advance | 2019-03-10T07:14:30.175000 | Mark | pythondev_help_Mark_2019-03-10T07:14:30.175000 | 1,552,202,070.175 | 12,838 |
pythondev | help | ```had to use `subprocess.Popen` instead``` | 2019-03-10T08:07:54.175300 | Leana | pythondev_help_Leana_2019-03-10T08:07:54.175300 | 1,552,205,274.1753 | 12,839 |
pythondev | help | <@Mark> um. What are subpackages? | 2019-03-10T08:37:16.176000 | Nieves | pythondev_help_Nieves_2019-03-10T08:37:16.176000 | 1,552,207,036.176 | 12,840 |
pythondev | help | And why would that be helpful for Py3? | 2019-03-10T08:37:26.176400 | Nieves | pythondev_help_Nieves_2019-03-10T08:37:26.176400 | 1,552,207,046.1764 | 12,841 |
pythondev | help | <@Raven> have you tried from cmd? If Python is an environmental variable, I would think all you would have to do is: python (program)
For regular Python file^^^
I’ve switched to Linux completely so I could be wrong. Lol. | 2019-03-10T08:39:09.178500 | Nieves | pythondev_help_Nieves_2019-03-10T08:39:09.178500 | 1,552,207,149.1785 | 12,842 |
pythondev | help | <@Nieves> in my case it's gitsubmodule -- your python project that you want to use in your main project
project/
main.py
subpackage/
submain.py
config.py | 2019-03-10T08:43:05.180700 | Mark | pythondev_help_Mark_2019-03-10T08:43:05.180700 | 1,552,207,385.1807 | 12,843 |
pythondev | help | Oh!!! Ok. | 2019-03-10T08:43:16.181000 | Nieves | pythondev_help_Nieves_2019-03-10T08:43:16.181000 | 1,552,207,396.181 | 12,844 |
pythondev | help | Git sub modules? | 2019-03-10T08:43:36.181900 | Hiroko | pythondev_help_Hiroko_2019-03-10T08:43:36.181900 | 1,552,207,416.1819 | 12,845 |
pythondev | help | Not too many people use that, imo | 2019-03-10T08:43:51.182900 | Hiroko | pythondev_help_Hiroko_2019-03-10T08:43:51.182900 | 1,552,207,431.1829 | 12,846 |
pythondev | help | Yeah, no. Never done that. Lol. I have started using requirements.txt though in some of my scripts. | 2019-03-10T08:43:58.183300 | Nieves | pythondev_help_Nieves_2019-03-10T08:43:58.183300 | 1,552,207,438.1833 | 12,847 |
pythondev | help | git submodules != python sub packages | 2019-03-10T08:44:09.184300 | Jimmy | pythondev_help_Jimmy_2019-03-10T08:44:09.184300 | 1,552,207,449.1843 | 12,848 |
pythondev | help | Git is fine if you have a use | 2019-03-10T08:44:11.184600 | Nieves | pythondev_help_Nieves_2019-03-10T08:44:11.184600 | 1,552,207,451.1846 | 12,849 |
pythondev | help | but few people use any of them | 2019-03-10T08:44:21.185100 | Jimmy | pythondev_help_Jimmy_2019-03-10T08:44:21.185100 | 1,552,207,461.1851 | 12,850 |
pythondev | help | I have seen config.py before in some git projects but not much | 2019-03-10T08:44:39.186300 | Nieves | pythondev_help_Nieves_2019-03-10T08:44:39.186300 | 1,552,207,479.1863 | 12,851 |
pythondev | help | I use Linux so I can figure out how to run the Py file easy | 2019-03-10T08:44:54.187000 | Nieves | pythondev_help_Nieves_2019-03-10T08:44:54.187000 | 1,552,207,494.187 | 12,852 |
pythondev | help | Lolol | 2019-03-10T08:44:58.187200 | Nieves | pythondev_help_Nieves_2019-03-10T08:44:58.187200 | 1,552,207,498.1872 | 12,853 |
pythondev | help | Usually it’s using pip and installing everything in requirenments.py | 2019-03-10T08:45:12.187700 | Nieves | pythondev_help_Nieves_2019-03-10T08:45:12.187700 | 1,552,207,512.1877 | 12,854 |
pythondev | help | yes, but if you have private project, you can't install it from pip | 2019-03-10T08:45:37.188500 | Mark | pythondev_help_Mark_2019-03-10T08:45:37.188500 | 1,552,207,537.1885 | 12,855 |
pythondev | help | (Really hates auto correct on their smartphone) | 2019-03-10T08:45:44.188800 | Nieves | pythondev_help_Nieves_2019-03-10T08:45:44.188800 | 1,552,207,544.1888 | 12,856 |
pythondev | help | No | 2019-03-10T08:45:49.189000 | Nieves | pythondev_help_Nieves_2019-03-10T08:45:49.189000 | 1,552,207,549.189 | 12,857 |
pythondev | help | The text file lets you install all modules needed | 2019-03-10T08:46:07.189600 | Nieves | pythondev_help_Nieves_2019-03-10T08:46:07.189600 | 1,552,207,567.1896 | 12,858 |
pythondev | help | pip install -r requirenments.txt | 2019-03-10T08:46:21.190000 | Nieves | pythondev_help_Nieves_2019-03-10T08:46:21.190000 | 1,552,207,581.19 | 12,859 |
pythondev | help | Then you just do: python (python file) | 2019-03-10T08:46:48.190900 | Nieves | pythondev_help_Nieves_2019-03-10T08:46:48.190900 | 1,552,207,608.1909 | 12,860 |
pythondev | help | Python programs aren’t C programs where make is needed | 2019-03-10T08:46:58.191300 | Nieves | pythondev_help_Nieves_2019-03-10T08:46:58.191300 | 1,552,207,618.1913 | 12,861 |
pythondev | help | Usually most programs in Py are in one file not multiple | 2019-03-10T08:47:14.191700 | Nieves | pythondev_help_Nieves_2019-03-10T08:47:14.191700 | 1,552,207,634.1917 | 12,862 |
pythondev | help | <@Nieves> It's not a python program I want to run, but an external executable | 2019-03-10T09:06:48.193900 | Raven | pythondev_help_Raven_2019-03-10T09:06:48.193900 | 1,552,208,808.1939 | 12,863 |
pythondev | help | <@Nieves> for example I was working at my computer in `projectB`, now I want to include this `projectB` into `projectA`, pip install projectB will not work, cause pip repositories haven't my `projectB`, yes?:) | 2019-03-10T09:07:14.194000 | Mark | pythondev_help_Mark_2019-03-10T09:07:14.194000 | 1,552,208,834.194 | 12,864 |
pythondev | help | I'm also Linux user, the problem is not here, unfortunately | 2019-03-10T09:09:46.194400 | Mark | pythondev_help_Mark_2019-03-10T09:09:46.194400 | 1,552,208,986.1944 | 12,865 |
pythondev | help | <https://stackoverflow.com/a/4837571> | 2019-03-10T09:12:37.194800 | Hiroko | pythondev_help_Hiroko_2019-03-10T09:12:37.194800 | 1,552,209,157.1948 | 12,866 |
pythondev | help | And you can install project b from a local repo with pip too | 2019-03-10T09:14:39.195900 | Hiroko | pythondev_help_Hiroko_2019-03-10T09:14:39.195900 | 1,552,209,279.1959 | 12,867 |
pythondev | help | Did you see this?
<https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000001790-PyCharm-Execute-an-external-process-before-Run-Debug-and-run-it-in-parallel> | 2019-03-10T09:16:17.196300 | Hiroko | pythondev_help_Hiroko_2019-03-10T09:16:17.196300 | 1,552,209,377.1963 | 12,868 |
pythondev | help | Aha... looks like it can be done via Settings > Tools > External Tools. Thanks! | 2019-03-10T09:24:34.197200 | Raven | pythondev_help_Raven_2019-03-10T09:24:34.197200 | 1,552,209,874.1972 | 12,869 |
pythondev | help | <@Hiroko> no. I don’t dab in Py much. lol. | 2019-03-10T10:19:22.198000 | Nieves | pythondev_help_Nieves_2019-03-10T10:19:22.198000 | 1,552,213,162.198 | 12,870 |
pythondev | help | is there any way to capture` nohup command` start and end time ? | 2019-03-10T12:34:02.198600 | Sharolyn | pythondev_help_Sharolyn_2019-03-10T12:34:02.198600 | 1,552,221,242.1986 | 12,871 |
pythondev | help | In VScode, is there are way to select multiple lines and add apostrophes to each line? Instead of manually selecting each line and hitting `"`?
Like this list
```<li><a href="<http://www.varoy.kommune.no>" class="external-link" target="_blank">1857 Værøy</a></li>
<li><a href="<http://www.Vagan.kommune.no>" class="external-link" target="_blank">1865 Vågan</a></li>
<li><a href="<http://www.oksnes.kommune.no>" class="external-link" target="_blank">1868 Øksnes</a></li>``` | 2019-03-11T00:05:11.202200 | Conchita | pythondev_help_Conchita_2019-03-11T00:05:11.202200 | 1,552,262,711.2022 | 12,872 |
pythondev | help | I'm not 100% sure what edit you want to do, but can you use the find-and-replace functionality? | 2019-03-11T00:09:12.202700 | Sasha | pythondev_help_Sasha_2019-03-11T00:09:12.202700 | 1,552,262,952.2027 | 12,873 |
pythondev | help | I want to wrap those lines in "" | 2019-03-11T00:11:14.203000 | Conchita | pythondev_help_Conchita_2019-03-11T00:11:14.203000 | 1,552,263,074.203 | 12,874 |
pythondev | help | From ```<li><a href="<http://www.varoy.kommune.no>" class="external-link" target="_blank">1857 Værøy</a></li>
<li><a href="<http://www.Vagan.kommune.no>" class="external-link" target="_blank">1865 Vågan</a></li>
<li><a href="<http://www.oksnes.kommune.no>" class="external-link" target="_blank">1868 Øksnes</a></li>```
to
```"<li><a href="<http://www.varoy.kommune.no>" class="external-link" target="_blank">1857 Værøy</a></li>"
"<li><a href="<http://www.Vagan.kommune.no>" class="external-link" target="_blank">1865 Vågan</a></li>"
"<li><a href="<http://www.oksnes.kommune.no>" class="external-link" target="_blank">1868 Øksnes</a></li>"``` | 2019-03-11T00:11:48.203600 | Conchita | pythondev_help_Conchita_2019-03-11T00:11:48.203600 | 1,552,263,108.2036 | 12,875 |
pythondev | help | On 100s of lines | 2019-03-11T00:12:00.204100 | Conchita | pythondev_help_Conchita_2019-03-11T00:12:00.204100 | 1,552,263,120.2041 | 12,876 |
pythondev | help | Yeah, I'd think of doing something like replacing `<li>` with `"<li>` and `</li>` with `</li>"`. | 2019-03-11T00:12:36.204900 | Sasha | pythondev_help_Sasha_2019-03-11T00:12:36.204900 | 1,552,263,156.2049 | 12,877 |
pythondev | help | Note that whatever is parsing this file might end up confused by the nested quotes, though. | 2019-03-11T00:14:03.205700 | Sasha | pythondev_help_Sasha_2019-03-11T00:14:03.205700 | 1,552,263,243.2057 | 12,878 |
pythondev | help | I was able to use the multi-cursor to achieve this | 2019-03-11T00:15:35.206100 | Conchita | pythondev_help_Conchita_2019-03-11T00:15:35.206100 | 1,552,263,335.2061 | 12,879 |
pythondev | help | Was just watching a course earlier today on Pluralsight about VS Code and had just gotten to the multi-cursor! Pretty cool! | 2019-03-11T00:25:24.207100 | Marth | pythondev_help_Marth_2019-03-11T00:25:24.207100 | 1,552,263,924.2071 | 12,880 |
pythondev | help | Hmmm I'm trying to turn this list of links (+some more) into email addresses using a loop that iterates through the list. But for some reason it only prints the first item of the list. What obvious thing am I missing here>? | 2019-03-11T00:32:18.209000 | Conchita | pythondev_help_Conchita_2019-03-11T00:32:18.209000 | 1,552,264,338.209 | 12,881 |
pythondev | help | This outputs:
```<mailto:[email protected]|[email protected]> ``` which is the correct output, but only the first item of the list. | 2019-03-11T00:33:22.209900 | Conchita | pythondev_help_Conchita_2019-03-11T00:33:22.209900 | 1,552,264,402.2099 | 12,882 |
pythondev | help | Your list needs brackets and commas, instead of braces and bare linefeeds. | 2019-03-11T00:38:05.210700 | Sasha | pythondev_help_Sasha_2019-03-11T00:38:05.210700 | 1,552,264,685.2107 | 12,883 |
pythondev | help | haha | 2019-03-11T00:38:22.211300 | Conchita | pythondev_help_Conchita_2019-03-11T00:38:22.211300 | 1,552,264,702.2113 | 12,884 |
pythondev | help | Right now all the strings are being concatenated into one big string. | 2019-03-11T00:38:23.211500 | Sasha | pythondev_help_Sasha_2019-03-11T00:38:23.211500 | 1,552,264,703.2115 | 12,885 |
pythondev | help | :woman-facepalming: | 2019-03-11T00:38:33.211700 | Conchita | pythondev_help_Conchita_2019-03-11T00:38:33.211700 | 1,552,264,713.2117 | 12,886 |
pythondev | help | Embarrassed = True | 2019-03-11T00:38:48.212200 | Conchita | pythondev_help_Conchita_2019-03-11T00:38:48.212200 | 1,552,264,728.2122 | 12,887 |
pythondev | help | Heh. Also note that the "class" field seems to be getting cut off at different points in the lines. | 2019-03-11T00:39:57.212700 | Sasha | pythondev_help_Sasha_2019-03-11T00:39:57.212700 | 1,552,264,797.2127 | 12,888 |
pythondev | help | Yeah I split the string before that on all | 2019-03-11T00:40:42.213300 | Conchita | pythondev_help_Conchita_2019-03-11T00:40:42.213300 | 1,552,264,842.2133 | 12,889 |
pythondev | help | Problem solved now. Thanks <@Sasha> heres a :taco: | 2019-03-11T00:41:02.213900 | Conchita | pythondev_help_Conchita_2019-03-11T00:41:02.213900 | 1,552,264,862.2139 | 12,890 |
pythondev | help | We could build a library of python code snippets that are in a trello board, 1 snippet in 1 card. And build a slack bot that interacts with that library | 2019-03-11T00:46:57.215400 | Conchita | pythondev_help_Conchita_2019-03-11T00:46:57.215400 | 1,552,265,217.2154 | 12,891 |
pythondev | help | Maybe set up a separate slack channel | 2019-03-11T00:47:24.216000 | Conchita | pythondev_help_Conchita_2019-03-11T00:47:24.216000 | 1,552,265,244.216 | 12,892 |
pythondev | help | When searching for "split a string", the bot searches the board for cards matching that search and suggest it in the channel | 2019-03-11T00:47:59.216700 | Conchita | pythondev_help_Conchita_2019-03-11T00:47:59.216700 | 1,552,265,279.2167 | 12,893 |
pythondev | help | Hey! I have a big log file that grows over time and i need to pass that into django after some decoding. As I understand this will get slower and slower with each new data in log so what i should use to make it fast as possible ? log file contains a one message per line and other program writes new ones at the end of file when he gets one. | 2019-03-11T06:34:57.223800 | Joel | pythondev_help_Joel_2019-03-11T06:34:57.223800 | 1,552,286,097.2238 | 12,894 |
pythondev | help | <@Joel> you can remember the last processed position and do `seek` to that position later to avoid re-reading the whole file again | 2019-03-11T06:46:53.224700 | Chester | pythondev_help_Chester_2019-03-11T06:46:53.224700 | 1,552,286,813.2247 | 12,895 |
pythondev | help | However, this is kind of error-prone and difficult to implement properly | 2019-03-11T06:47:10.225200 | Chester | pythondev_help_Chester_2019-03-11T06:47:10.225200 | 1,552,286,830.2252 | 12,896 |
pythondev | help | i have something like this already but it works kinda slow. | 2019-03-11T06:49:41.227900 | Joel | pythondev_help_Joel_2019-03-11T06:49:41.227900 | 1,552,286,981.2279 | 12,897 |
pythondev | help | Have you profiled your app to see what is slow exactly? | 2019-03-11T06:51:42.228200 | Chester | pythondev_help_Chester_2019-03-11T06:51:42.228200 | 1,552,287,102.2282 | 12,898 |
pythondev | help | if i receive big chunk of data in short time it slows down for some time. | 2019-03-11T06:57:12.230000 | Joel | pythondev_help_Joel_2019-03-11T06:57:12.230000 | 1,552,287,432.23 | 12,899 |
pythondev | help | Someone told me to use redis for that meybe it will work. | 2019-03-11T06:59:42.232700 | Joel | pythondev_help_Joel_2019-03-11T06:59:42.232700 | 1,552,287,582.2327 | 12,900 |
pythondev | help | You can't just throw some tech in it and expect something to "work" | 2019-03-11T07:27:40.233100 | Chester | pythondev_help_Chester_2019-03-11T07:27:40.233100 | 1,552,289,260.2331 | 12,901 |
pythondev | help | :point_up: | 2019-03-11T07:30:21.233300 | Hiroko | pythondev_help_Hiroko_2019-03-11T07:30:21.233300 | 1,552,289,421.2333 | 12,902 |
pythondev | help | ...unless you're an Ork Mekboy. #wh40k | 2019-03-11T07:35:18.233600 | Malena | pythondev_help_Malena_2019-03-11T07:35:18.233600 | 1,552,289,718.2336 | 12,903 |
pythondev | help | I have a module called `read_email` which reads emails! Then it invokes different functions depending on the email subject. But I have a generic function I have created called "click_item" that I use across multiple different modules. It is a while loop that checks for images on a screen using `pyautogui` so I want to throw and error and go back to the read email module to continue reading emails. Would I need to use;
```
if __name__ == '__main__':
main()
``` | 2019-03-11T07:52:53.237800 | Arturo | pythondev_help_Arturo_2019-03-11T07:52:53.237800 | 1,552,290,773.2378 | 12,904 |
pythondev | help | <@Arturo> if you have any logic implemented on a module level - yeah, you should move it to functions. | 2019-03-11T07:59:19.238500 | Chester | pythondev_help_Chester_2019-03-11T07:59:19.238500 | 1,552,291,159.2385 | 12,905 |
pythondev | help | Otherwise it will be executed on import | 2019-03-11T07:59:25.238800 | Chester | pythondev_help_Chester_2019-03-11T07:59:25.238800 | 1,552,291,165.2388 | 12,906 |
pythondev | help | at the moment I have lots of different modules. Each one does one activity, but I call them from different ones | 2019-03-11T08:00:28.239500 | Arturo | pythondev_help_Arturo_2019-03-11T08:00:28.239500 | 1,552,291,228.2395 | 12,907 |
pythondev | help | a little work around I have done is with my while loop check if the count is 5 on the error, and if it is move the cursor to its original position to wait for the image to appear. | 2019-03-11T08:01:25.240700 | Arturo | pythondev_help_Arturo_2019-03-11T08:01:25.240700 | 1,552,291,285.2407 | 12,908 |
pythondev | help | not sure if that is best practice though | 2019-03-11T08:01:40.241000 | Arturo | pythondev_help_Arturo_2019-03-11T08:01:40.241000 | 1,552,291,300.241 | 12,909 |
pythondev | help | Having problems importing `settings.py` with the `ModuleNotFound` error. I've put `settings.py` in my root folder and I'm trying to import it from a module that's inside a package called `client`. `client` and `settings.py` are on the same directory level. | 2019-03-11T08:39:06.244600 | Jamey | pythondev_help_Jamey_2019-03-11T08:39:06.244600 | 1,552,293,546.2446 | 12,910 |
pythondev | help | Auto-complete in VSCode works as well as referencing variables from `settings.py` in the code. When I run the module with the imports, I get the `ModuleNotFound` error | 2019-03-11T08:40:29.245800 | Jamey | pythondev_help_Jamey_2019-03-11T08:40:29.245800 | 1,552,293,629.2458 | 12,911 |
pythondev | help | Here's the folder structure | 2019-03-11T09:04:21.246100 | Jamey | pythondev_help_Jamey_2019-03-11T09:04:21.246100 | 1,552,295,061.2461 | 12,912 |
pythondev | help | the folder where `settings.py` is doesn’t have an `__init__.py` file | 2019-03-11T09:31:38.246800 | Hiroko | pythondev_help_Hiroko_2019-03-11T09:31:38.246800 | 1,552,296,698.2468 | 12,913 |
pythondev | help | ok still getting a bit stuck on my import modules question from earlier. My packages looks like this so far;
```
osp/
__init__.py
utils_functions.py
vsw_test.py
read_email.py
m_cmds.py
```
In the `utils_functions` module I have a function called `click_item` which has the code;
```
coords = None
while coords == None:
try:
pyautogui.locateCenterOnScreen("img.png")
except:
if 'return_val' in kwargs:
coords = True
return coords
else:
coords = None
count += 1
if count == 6:
#I want this to go back to __init__.py
```
I call this code multiple times from the other modules such as `vsw_test.py` `m_cmds.py` a number of times. `vsw_test` calls `m_cmds` within it. Not sure if it is possible to go back to `read_email` or `__init__`.
Would I be able to call within the exception?
```
import read_email
if __name__ == 'read_email':
read_email()
``` | 2019-03-11T11:45:45.250000 | Arturo | pythondev_help_Arturo_2019-03-11T11:45:45.250000 | 1,552,304,745.25 | 12,914 |
pythondev | help | actually I just realised if import `read_email` it will just run it. Ok back to being confused again! | 2019-03-11T12:05:45.250900 | Arturo | pythondev_help_Arturo_2019-03-11T12:05:45.250900 | 1,552,305,945.2509 | 12,915 |
pythondev | help | Does anyone know how to convert columns with countries from 2 to 3 abbreviated? | 2019-03-11T12:35:13.252300 | Nola | pythondev_help_Nola_2019-03-11T12:35:13.252300 | 1,552,307,713.2523 | 12,916 |
pythondev | help | any ideas why this request is adding `Content-Disposition: form-data; name="file"; filename="test.csr"` how to remove these headers?
```import requests
import json
def generate_certs(usr, pwd):
session = requests.Session()
with open('test.csr', 'rb') as f:
file = {'file': f}
res = <http://session.post|session.post>(certurl, files = file)```
in Postman it works fine and doesn't add Content-Disposition if I attach the `Body` using `binary`
why does python request add unnecessary stuff | 2019-03-11T13:03:21.253000 | Theola | pythondev_help_Theola_2019-03-11T13:03:21.253000 | 1,552,309,401.253 | 12,917 |
pythondev | help | <@Hiroko> thanks :taco: | 2019-03-11T13:15:48.253600 | Jamey | pythondev_help_Jamey_2019-03-11T13:15:48.253600 | 1,552,310,148.2536 | 12,918 |
pythondev | help | <@Theola> probably to deal with edge cases and bugs? | 2019-03-11T13:22:22.255300 | Hiroko | pythondev_help_Hiroko_2019-03-11T13:22:22.255300 | 1,552,310,542.2553 | 12,919 |
pythondev | help | postman is an API client, but not for heavy internal use like requests is | 2019-03-11T13:22:48.255800 | Hiroko | pythondev_help_Hiroko_2019-03-11T13:22:48.255800 | 1,552,310,568.2558 | 12,920 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.