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
`find / -name pyconfig.h`
2017-08-06T22:11:15.028091
Collette
pythondev_help_Collette_2017-08-06T22:11:15.028091
1,502,057,475.028091
88,703
pythondev
help
`find /usr/include/ -name pyconfig.h` is probably better
2017-08-06T22:11:33.030590
Collette
pythondev_help_Collette_2017-08-06T22:11:33.030590
1,502,057,493.03059
88,704
pythondev
help
yes, did that. its not there
2017-08-06T22:11:45.032188
Tameika
pythondev_help_Tameika_2017-08-06T22:11:45.032188
1,502,057,505.032188
88,705
pythondev
help
Have you installed `python-dev` package?
2017-08-06T22:12:11.036085
Collette
pythondev_help_Collette_2017-08-06T22:12:11.036085
1,502,057,531.036085
88,706
pythondev
help
let me check
2017-08-06T22:12:35.039422
Tameika
pythondev_help_Tameika_2017-08-06T22:12:35.039422
1,502,057,555.039422
88,707
pythondev
help
is it python-devel for mac?
2017-08-06T22:13:35.048333
Tameika
pythondev_help_Tameika_2017-08-06T22:13:35.048333
1,502,057,615.048333
88,708
pythondev
help
How did you install python on your mac? Are you using built-in one?
2017-08-06T22:14:36.057021
Collette
pythondev_help_Collette_2017-08-06T22:14:36.057021
1,502,057,676.057021
88,709
pythondev
help
i have both python2 and python3
2017-08-06T22:15:25.064593
Tameika
pythondev_help_Tameika_2017-08-06T22:15:25.064593
1,502,057,725.064593
88,710
pythondev
help
i am using the built in one for python2 (currently working on that for boost python)
2017-08-06T22:15:49.068105
Tameika
pythondev_help_Tameika_2017-08-06T22:15:49.068105
1,502,057,749.068105
88,711
pythondev
help
i also did: `brew reinstall python`
2017-08-06T22:16:05.070390
Tameika
pythondev_help_Tameika_2017-08-06T22:16:05.070390
1,502,057,765.07039
88,712
pythondev
help
Okay, then you need to run `xcode-select --install` to install the development headers
2017-08-06T22:16:27.073933
Collette
pythondev_help_Collette_2017-08-06T22:16:27.073933
1,502,057,787.073933
88,713
pythondev
help
thats the whole command?
2017-08-06T22:16:59.078479
Tameika
pythondev_help_Tameika_2017-08-06T22:16:59.078479
1,502,057,819.078479
88,714
pythondev
help
Yes
2017-08-06T22:17:02.078943
Collette
pythondev_help_Collette_2017-08-06T22:17:02.078943
1,502,057,822.078943
88,715
pythondev
help
`xcode-select: error: command line tools are already installed, use "Software Update" to install updates`
2017-08-06T22:17:21.081949
Tameika
pythondev_help_Tameika_2017-08-06T22:17:21.081949
1,502,057,841.081949
88,716
pythondev
help
By the way, re-using the pre-installed python is probably a bad idea. I'd go with `brew` version of python
2017-08-06T22:17:26.082709
Collette
pythondev_help_Collette_2017-08-06T22:17:26.082709
1,502,057,846.082709
88,717
pythondev
help
Yeah, that's why
2017-08-06T22:17:30.083302
Collette
pythondev_help_Collette_2017-08-06T22:17:30.083302
1,502,057,850.083302
88,718
pythondev
help
oh, how do i find if it is pre-installed or from brew?
2017-08-06T22:18:15.089927
Tameika
pythondev_help_Tameika_2017-08-06T22:18:15.089927
1,502,057,895.089927
88,719
pythondev
help
actually i am not quite sure
2017-08-06T22:18:21.090754
Tameika
pythondev_help_Tameika_2017-08-06T22:18:21.090754
1,502,057,901.090754
88,720
pythondev
help
If `which python` points to homebrew's bin, then it was installed by brew
2017-08-06T22:20:13.107421
Collette
pythondev_help_Collette_2017-08-06T22:20:13.107421
1,502,058,013.107421
88,721
pythondev
help
ok, i found pyconfig.h is actually here : /usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/include/python2.7
2017-08-06T22:20:14.107642
Tameika
pythondev_help_Tameika_2017-08-06T22:20:14.107642
1,502,058,014.107642
88,722
pythondev
help
which python actually points to here : `/usr/bin/python`
2017-08-06T22:20:39.111335
Tameika
pythondev_help_Tameika_2017-08-06T22:20:39.111335
1,502,058,039.111335
88,723
pythondev
help
Then you're using the pre-installed python
2017-08-06T22:21:05.115588
Collette
pythondev_help_Collette_2017-08-06T22:21:05.115588
1,502,058,065.115588
88,724
pythondev
help
shit
2017-08-06T22:21:29.119106
Tameika
pythondev_help_Tameika_2017-08-06T22:21:29.119106
1,502,058,089.119106
88,725
pythondev
help
should I follow this and remove the entire framework <https://stackoverflow.com/questions/22774529/what-is-the-safest-way-to-removing-python-framework-files-that-are-located-in-di>
2017-08-06T22:21:47.121757
Tameika
pythondev_help_Tameika_2017-08-06T22:21:47.121757
1,502,058,107.121757
88,726
pythondev
help
Don't mess with your system
2017-08-06T22:23:20.135422
Collette
pythondev_help_Collette_2017-08-06T22:23:20.135422
1,502,058,200.135422
88,727
pythondev
help
Also you probably haven't read the question carefully - it's about pythons installed neither by brew or system
2017-08-06T22:24:20.144234
Collette
pythondev_help_Collette_2017-08-06T22:24:20.144234
1,502,058,260.144234
88,728
pythondev
help
oh ok
2017-08-06T22:24:42.147425
Tameika
pythondev_help_Tameika_2017-08-06T22:24:42.147425
1,502,058,282.147425
88,729
pythondev
help
so, what is the best way to resolve this and make my Sunday fruitful :neutral_face: ?
2017-08-06T22:26:28.163237
Tameika
pythondev_help_Tameika_2017-08-06T22:26:28.163237
1,502,058,388.163237
88,730
pythondev
help
Start from <https://stackoverflow.com/a/7375583>
2017-08-06T22:27:58.177234
Collette
pythondev_help_Collette_2017-08-06T22:27:58.177234
1,502,058,478.177234
88,731
pythondev
help
Then try to include paths to the brew's python headers for cmake explicitly
2017-08-06T22:28:42.183953
Collette
pythondev_help_Collette_2017-08-06T22:28:42.183953
1,502,058,522.183953
88,732
pythondev
help
ok, I ran `which -a python` and understood that there is only one version of python at `/usr/bin/python`
2017-08-06T22:32:45.223078
Tameika
pythondev_help_Tameika_2017-08-06T22:32:45.223078
1,502,058,765.223078
88,733
pythondev
help
so, either 1. i did not use brew to install python
2017-08-06T22:33:11.227052
Tameika
pythondev_help_Tameika_2017-08-06T22:33:11.227052
1,502,058,791.227052
88,734
pythondev
help
or 2. brew installed python at `/usr/bin`
2017-08-06T22:33:54.233866
Tameika
pythondev_help_Tameika_2017-08-06T22:33:54.233866
1,502,058,834.233866
88,735
pythondev
help
What `brew ls -v python` says?
2017-08-06T22:34:49.242407
Collette
pythondev_help_Collette_2017-08-06T22:34:49.242407
1,502,058,889.242407
88,736
pythondev
help
many files in `/usr/local/Cellar/python/2.7.13_1/`
2017-08-06T22:35:53.252350
Tameika
pythondev_help_Tameika_2017-08-06T22:35:53.252350
1,502,058,953.25235
88,737
pythondev
help
Do you have `/usr/local/bin` in your PATH, as SO answer suggests? Have you read that answer?
2017-08-06T22:37:17.265192
Collette
pythondev_help_Collette_2017-08-06T22:37:17.265192
1,502,059,037.265192
88,738
pythondev
help
yes, it has higher priority over others
2017-08-06T22:38:47.278561
Tameika
pythondev_help_Tameika_2017-08-06T22:38:47.278561
1,502,059,127.278561
88,739
pythondev
help
echo $PATH gives me this : `/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin`
2017-08-06T22:38:59.280366
Tameika
pythondev_help_Tameika_2017-08-06T22:38:59.280366
1,502,059,139.280366
88,740
pythondev
help
Do you have `python` in `/usr/local/bin`?
2017-08-06T22:39:10.282056
Collette
pythondev_help_Collette_2017-08-06T22:39:10.282056
1,502,059,150.282056
88,741
pythondev
help
seems to be linked files?
2017-08-06T22:40:36.294902
Tameika
pythondev_help_Tameika_2017-08-06T22:40:36.294902
1,502,059,236.294902
88,742
pythondev
help
yes, they're all linked to the Cellar
2017-08-06T22:44:30.330605
Marcie
pythondev_help_Marcie_2017-08-06T22:44:30.330605
1,502,059,470.330605
88,743
pythondev
help
`lrwxr-xr-x 1 seanjohnson admin 34 7 Jul 14:35 /usr/local/bin/python -&gt; ../Cellar/python/2.7.13/bin/python`
2017-08-06T22:44:35.331362
Marcie
pythondev_help_Marcie_2017-08-06T22:44:35.331362
1,502,059,475.331362
88,744
pythondev
help
should just be a matter of putting `/usr/local/bin/` in your path then
2017-08-06T22:44:59.335050
Marcie
pythondev_help_Marcie_2017-08-06T22:44:59.335050
1,502,059,499.33505
88,745
pythondev
help
yes, -- it is already in my path. `/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin`
2017-08-06T22:45:17.337999
Tameika
pythondev_help_Tameika_2017-08-06T22:45:17.337999
1,502,059,517.337999
88,746
pythondev
help
still, i get the error ``` /usr/local/include/boost/python/detail/wrap_python.hpp:50:11: fatal error: 'pyconfig.h' file not found # include &lt;pyconfig.h&gt; ^```
2017-08-06T22:45:36.341256
Tameika
pythondev_help_Tameika_2017-08-06T22:45:36.341256
1,502,059,536.341256
88,747
pythondev
help
any thoughts on why this is the case?
2017-08-06T22:45:47.342835
Tameika
pythondev_help_Tameika_2017-08-06T22:45:47.342835
1,502,059,547.342835
88,748
pythondev
help
it's confusing as to why `/usr/local/bin/python` is not showing up for `which python`
2017-08-06T22:50:15.382087
Marcie
pythondev_help_Marcie_2017-08-06T22:50:15.382087
1,502,059,815.382087
88,749
pythondev
help
though both the system and brew python should be able to find `pyconfig.h`
2017-08-06T22:52:21.400820
Marcie
pythondev_help_Marcie_2017-08-06T22:52:21.400820
1,502,059,941.40082
88,750
pythondev
help
`/usr/bin/python-config` and `/usr/local/bin/python-config` should both return valid include directories that have `pyconfig.h` in them
2017-08-06T22:52:45.404430
Marcie
pythondev_help_Marcie_2017-08-06T22:52:45.404430
1,502,059,965.40443
88,751
pythondev
help
like so: ```find $(/usr/bin/python-config --includes | sed "s/-I//g") | grep "pyconfig.h" /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pyconfig.h /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pyconfig.h```
2017-08-06T22:53:56.415293
Marcie
pythondev_help_Marcie_2017-08-06T22:53:56.415293
1,502,060,036.415293
88,752
pythondev
help
```find $(/usr/local/bin/python-config --includes | sed "s/-I//g") | grep "pyconfig.h" /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/include/python2.7/pyconfig.h /usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/include/python2.7/pyconfig.h```
2017-08-06T22:54:16.418262
Marcie
pythondev_help_Marcie_2017-08-06T22:54:16.418262
1,502,060,056.418262
88,753
pythondev
help
Yes, I have the same output
2017-08-06T22:54:25.419656
Tameika
pythondev_help_Tameika_2017-08-06T22:54:25.419656
1,502,060,065.419656
88,754
pythondev
help
```/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pyconfig.h /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pyconfig.h```
2017-08-06T22:54:29.420443
Tameika
pythondev_help_Tameika_2017-08-06T22:54:29.420443
1,502,060,069.420443
88,755
pythondev
help
not for the second one
2017-08-06T22:54:59.425177
Tameika
pythondev_help_Tameika_2017-08-06T22:54:59.425177
1,502,060,099.425177
88,756
pythondev
help
```zsh: no such file or directory: /usr/local/bin/python-config usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression] find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]```
2017-08-06T22:55:07.426628
Tameika
pythondev_help_Tameika_2017-08-06T22:55:07.426628
1,502,060,107.426628
88,757
pythondev
help
why is there no file : `/usr/local/bin/python-config` ?
2017-08-06T22:55:30.430172
Tameika
pythondev_help_Tameika_2017-08-06T22:55:30.430172
1,502,060,130.430172
88,758
pythondev
help
weird
2017-08-06T22:56:15.437009
Marcie
pythondev_help_Marcie_2017-08-06T22:56:15.437009
1,502,060,175.437009
88,759
pythondev
help
can I just modify PYTHONPATH somehow?
2017-08-06T22:56:38.440432
Tameika
pythondev_help_Tameika_2017-08-06T22:56:38.440432
1,502,060,198.440432
88,760
pythondev
help
that was my first question
2017-08-06T22:56:45.441583
Tameika
pythondev_help_Tameika_2017-08-06T22:56:45.441583
1,502,060,205.441583
88,761
pythondev
help
but was told to not touch it
2017-08-06T22:56:58.443727
Tameika
pythondev_help_Tameika_2017-08-06T22:56:58.443727
1,502,060,218.443727
88,762
pythondev
help
PYTHONPATH has nothing to do with your issue
2017-08-06T22:57:47.451673
Collette
pythondev_help_Collette_2017-08-06T22:57:47.451673
1,502,060,267.451673
88,763
pythondev
help
ok
2017-08-06T22:58:21.457037
Tameika
pythondev_help_Tameika_2017-08-06T22:58:21.457037
1,502,060,301.457037
88,764
pythondev
help
yeah, it's the path for finding imports, your issue is finding headers for boost's C++ compilation
2017-08-06T22:58:36.459473
Marcie
pythondev_help_Marcie_2017-08-06T22:58:36.459473
1,502,060,316.459473
88,765
pythondev
help
how are you installing boost.python domarps?
2017-08-06T22:59:19.466485
Marcie
pythondev_help_Marcie_2017-08-06T22:59:19.466485
1,502,060,359.466485
88,766
pythondev
help
`brew install boost-python`
2017-08-06T23:00:26.477803
Tameika
pythondev_help_Tameika_2017-08-06T23:00:26.477803
1,502,060,426.477803
88,767
pythondev
help
i went ahead and ran this command : ```export CPLUS_INCLUDE_PATH="$CPLUS_INCLUDE_PATH:/usr/local/Cellar/python/2.7.13_1/Frameworks/Python.framework/Versions/2.7/include/python2.7"```
2017-08-06T23:08:06.549845
Tameika
pythondev_help_Tameika_2017-08-06T23:08:06.549845
1,502,060,886.549845
88,768
pythondev
help
and when I run make now, it gives me the following error
2017-08-06T23:08:20.551920
Tameika
pythondev_help_Tameika_2017-08-06T23:08:20.551920
1,502,060,900.55192
88,769
pythondev
help
```[ 50%] Building CXX object CMakeFiles/hello.dir/hello.o [100%] Linking CXX shared module hello.so Undefined symbols for architecture x86_64: "_PyString_Type", referenced from: boost::python::to_python_value&lt;char const* const&amp;&gt;::get_pytype() const in hello.o "__Py_NoneStruct", referenced from: boost::python::api::object::object() in hello.o "boost::python::detail::init_module(char const*, void (*)())", referenced from: _inithello in hello.o "boost::python::detail::gcc_demangle(char const*)", referenced from: boost::python::type_info::name() const in hello.o "boost::python::detail::scope_setattr_doc(char const*, boost::python::api::object const&amp;, char const*)", referenced from: void boost::python::def&lt;char const* (*)()&gt;(char const*, char const* (*)()) in hello.o "boost::python::objects::function_object(boost::python::objects::py_function const&amp;)", referenced from: boost::python::api::object boost::python::detail::make_function_aux&lt;char const* (*)(), boost::python::default_call_policies, boost::mpl::vector1&lt;char const*&gt; &gt;(char const* (*)(), boost::python::default_call_policies const&amp;, boost::mpl::vector1&lt;char const*&gt; const&amp;) in hello.o "boost::python::objects::py_function_impl_base::~py_function_impl_base()", referenced from: boost::python::objects::caller_py_function_impl&lt;boost::python::detail::caller&lt;char const* (*)(), boost::python::default_call_policies, boost::mpl::vector1&lt;char const*&gt; &gt; &gt;::~caller_py_function_impl() in hello.o "boost::python::converter::do_return_to_python(char const*)", referenced from: boost::python::to_python_value&lt;char const* const&amp;&gt;::operator()(char const* const&amp;) const in hello.o "boost::python::converter::registry::query(boost::python::type_info)", referenced from: boost::python::converter::expected_pytype_for_arg&lt;char const*&gt;::get_pytype() in hello.o "boost::python::objects::py_function_impl_base::max_arity() const", referenced from: vtable for boost::python::objects::caller_py_function_impl&lt;boost::python::detail::caller&lt;char const* (*)(), boost::python::default_call_policies, boost::mpl::vector1&lt;char const*&gt; &gt; &gt; in hello.o "boost::python::converter::registration::expected_from_python_type() const", referenced from: boost::python::converter::expected_pytype_for_arg&lt;char const*&gt;::get_pytype() in hello.o "typeinfo for boost::python::objects::py_function_impl_base", referenced from: typeinfo for boost::python::objects::caller_py_function_impl&lt;boost::python::detail::caller&lt;char const* (*)(), boost::python::default_call_policies, boost::mpl::vector1&lt;char const*&gt; &gt; &gt; in hello.o "vtable for boost::python::objects::py_function_impl_base", referenced from: boost::python::objects::py_function_impl_base::py_function_impl_base() in hello.o NOTE: a missing vtable usually means the first non-inline virtual member function has no definition. ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [hello.so] Error 1 make[1]: *** [CMakeFiles/hello.dir/all] Error 2 make: *** [all] Error 2```
2017-08-06T23:08:33.553852
Tameika
pythondev_help_Tameika_2017-08-06T23:08:33.553852
1,502,060,913.553852
88,770
pythondev
help
from here : <https://stackoverflow.com/questions/19810940/ubuntu-linking-boost-python-fatal-error-pyconfig-cannot-be-found>
2017-08-06T23:08:49.556360
Tameika
pythondev_help_Tameika_2017-08-06T23:08:49.556360
1,502,060,929.55636
88,771
pythondev
help
that's linked libraries missing
2017-08-06T23:15:49.616959
Marcie
pythondev_help_Marcie_2017-08-06T23:15:49.616959
1,502,061,349.616959
88,772
pythondev
help
generally trying to shove these things from external environment variables tends to go poorly, you could try passing the output of `python-config2 --cflags` to your g++ command
2017-08-06T23:16:39.624111
Marcie
pythondev_help_Marcie_2017-08-06T23:16:39.624111
1,502,061,399.624111
88,773
pythondev
help
though i'd probably advise reinstalling your python brew itself because something is wrong from the very start if your path is not picking up `/usr/local/bin/python`
2017-08-06T23:17:20.630193
Marcie
pythondev_help_Marcie_2017-08-06T23:17:20.630193
1,502,061,440.630193
88,774
pythondev
help
and just to confirm, this is trying to compile a program that uses python-boost, and not compiling python-boost itself?
2017-08-06T23:18:17.637814
Marcie
pythondev_help_Marcie_2017-08-06T23:18:17.637814
1,502,061,497.637814
88,775
pythondev
help
yes, true!
2017-08-06T23:18:29.639483
Tameika
pythondev_help_Tameika_2017-08-06T23:18:29.639483
1,502,061,509.639483
88,776
pythondev
help
just running Hello World from here : <https://github.com/TNG/boost-python-examples/tree/master/01-HelloWorld>
2017-08-06T23:18:43.641736
Tameika
pythondev_help_Tameika_2017-08-06T23:18:43.641736
1,502,061,523.641736
88,777
pythondev
help
ohhh
2017-08-06T23:21:08.662809
Marcie
pythondev_help_Marcie_2017-08-06T23:21:08.662809
1,502,061,668.662809
88,778
pythondev
help
yeah this is all wrapped up and handled in `build.sh`
2017-08-06T23:21:16.663894
Marcie
pythondev_help_Marcie_2017-08-06T23:21:16.663894
1,502,061,676.663894
88,779
pythondev
help
do you get this output in build.sh: ```-- Found PythonInterp: /usr/local/bin/python (found version "2.7.13") -- Found PythonLibs: /usr/local/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib (found version "2.7.13")```
2017-08-06T23:21:38.666980
Marcie
pythondev_help_Marcie_2017-08-06T23:21:38.666980
1,502,061,698.66698
88,780
pythondev
help
yeah, but since I wanted to try each module on my own for a different project, I went ahead and ran `cmake .` in HelloWorld
2017-08-06T23:21:57.669385
Tameika
pythondev_help_Tameika_2017-08-06T23:21:57.669385
1,502,061,717.669385
88,781
pythondev
help
just let me run build.sj
2017-08-06T23:22:07.670843
Tameika
pythondev_help_Tameika_2017-08-06T23:22:07.670843
1,502,061,727.670843
88,782
pythondev
help
yeah that's your main issue then
2017-08-06T23:23:15.680487
Marcie
pythondev_help_Marcie_2017-08-06T23:23:15.680487
1,502,061,795.680487
88,783
pythondev
help
there's output from `build.sh` that shows what arguments `cmake` is expecting
2017-08-06T23:23:28.682404
Marcie
pythondev_help_Marcie_2017-08-06T23:23:28.682404
1,502,061,808.682404
88,784
pythondev
help
though there appears to be some stuff that the root CMakeLists.txt does for preprocessing some examples
2017-08-06T23:24:06.687966
Marcie
pythondev_help_Marcie_2017-08-06T23:24:06.687966
1,502,061,846.687966
88,785
pythondev
help
`cmake` is smart enough to know not to recompile things that have changed though, so you can edit the `01-HelloWorld` example as much as you want and `build.sh` will only recompile the projects that have changed
2017-08-06T23:24:40.692679
Marcie
pythondev_help_Marcie_2017-08-06T23:24:40.692679
1,502,061,880.692679
88,786
pythondev
help
i see
2017-08-06T23:25:14.697330
Tameika
pythondev_help_Tameika_2017-08-06T23:25:14.697330
1,502,061,914.69733
88,787
pythondev
help
let me re-do this from scratch
2017-08-06T23:25:24.698697
Tameika
pythondev_help_Tameika_2017-08-06T23:25:24.698697
1,502,061,924.698697
88,788
pythondev
help
no problem! i'm off to the gym so my help will be a bit nonexistant for a while :slightly_smiling_face:
2017-08-06T23:26:12.705065
Marcie
pythondev_help_Marcie_2017-08-06T23:26:12.705065
1,502,061,972.705065
88,789
pythondev
help
ok -- thank you so much!!!
2017-08-06T23:26:40.708852
Tameika
pythondev_help_Tameika_2017-08-06T23:26:40.708852
1,502,062,000.708852
88,790
pythondev
help
good day mates, someone familiar with django signals here. I created a User object but i want to trigger my own signal function when after my object has been created and pass some additional argument do you have any work around with this.
2017-08-07T02:49:30.658904
Meredith
pythondev_help_Meredith_2017-08-07T02:49:30.658904
1,502,074,170.658904
88,791
pythondev
help
Hi folks, I’m working with uploadedFile from django, basically its just an file object. I need to check the file header before going any further process with the file. So if I read one line by using `next(my_file)`, how can I rewind it back, so that other function can process the file with its headers normally?
2017-08-07T05:05:47.248657
Hermina
pythondev_help_Hermina_2017-08-07T05:05:47.248657
1,502,082,347.248657
88,792
pythondev
help
Hi guys. You might have more luck with these questions in <#C0LMFRMB5|django>
2017-08-07T05:15:09.449507
Ciera
pythondev_help_Ciera_2017-08-07T05:15:09.449507
1,502,082,909.449507
88,793
pythondev
help
ok, thanks
2017-08-07T05:29:28.761289
Hermina
pythondev_help_Hermina_2017-08-07T05:29:28.761289
1,502,083,768.761289
88,794
pythondev
help
hi
2017-08-07T07:03:43.564435
Gala
pythondev_help_Gala_2017-08-07T07:03:43.564435
1,502,089,423.564435
88,795
pythondev
help
Is there a go-to password difficulty validation library?
2017-08-07T11:09:39.116084
Suellen
pythondev_help_Suellen_2017-08-07T11:09:39.116084
1,502,104,179.116084
88,796
pythondev
help
we use that at work. Not sure if it's the go-to/best one
2017-08-07T11:10:45.156359
Ciera
pythondev_help_Ciera_2017-08-07T11:10:45.156359
1,502,104,245.156359
88,797
pythondev
help
Well, being used in production is good enough, thanks :slightly_smiling_face:
2017-08-07T11:11:00.165265
Suellen
pythondev_help_Suellen_2017-08-07T11:11:00.165265
1,502,104,260.165265
88,798
pythondev
help
:thumbsup:
2017-08-07T11:11:15.174390
Ciera
pythondev_help_Ciera_2017-08-07T11:11:15.174390
1,502,104,275.17439
88,799
pythondev
help
If SO is a good source, there are some regexes posted for it: <https://stackoverflow.com/a/5142164/1584762>
2017-08-07T11:11:52.197137
Beula
pythondev_help_Beula_2017-08-07T11:11:52.197137
1,502,104,312.197137
88,800
pythondev
help
Those are nice, I could even write most of them.. But if I learned anything at all while being an infosec student.. don't do it yourself :open_mouth:
2017-08-07T11:13:15.248269
Suellen
pythondev_help_Suellen_2017-08-07T11:13:15.248269
1,502,104,395.248269
88,801
pythondev
help
obligatory xkcd:
2017-08-07T11:13:49.269529
Antionette
pythondev_help_Antionette_2017-08-07T11:13:49.269529
1,502,104,429.269529
88,802