Do people run django production sites on Windows? Not trolling, genuinely interested.
I prefer Windows for a dev platform (really, I do), but I've only once written a webapp that was hosted on Windows. I'd much rather prefer unixy servers.
71–80 of 134 posts
Do people run django production sites on Windows? Not trolling, genuinely interested.
I prefer Windows for a dev platform (really, I do), but I've only once written a webapp that was hosted on Windows. I'd much rather prefer unixy servers.
Another Microsoft's best kept secrets is using Javascript for shell script. It has been there forever since Javascript first came out. It's called JScript but it's just Javascript with Windows support like running ActiveX Objects, which let you access the file system, OS, network, etc. You can pretty much drive the Windows system with it through ActiveX Automation. Also you can do Office application integration like…
Another Microsoft's best kept secrets is using Javascript for shell script. It has been there forever since Javascript first came out. It's called JScript but it's just Javascript with Windows support like running ActiveX Objects, which let you access the file system, OS, network, etc. You can pretty much drive the Windows system with it through ActiveX Automation. Also you can do Office application integration like…
http://visualstudiogallery.msdn.microsoft.com/07d54d12-7133-...
Earlier quoted context omitted.
I currently maintain and run a big ol' Django project running on Apache/Windows/MSSQL (and some Oracle) here (university of Arizona). It's not that bad although myself and the other developer both use mac's so its annoying having to RDP in to do anything in a python shell.
Have you tried powershell remoting ? It's close.
This doesn't even mention the most awesome feature of PTVS 2.0: mixed-mode debugging, which provides an integrated experience for debugging mixed Python/C processes. See https://pytools.codeplex.com/wikipage?title=Mixed-mode%20deb... for details. Disclaimer: I used to work on IronPython.
You guys deserve some recognition. I'm not too frequent a user lately, but I'm continually impressed.
This doesn't even mention the most awesome feature of PTVS 2.0: mixed-mode debugging, which provides an integrated experience for debugging mixed Python/C processes. See https://pytools.codeplex.com/wikipage?title=Mixed-mode%20deb... for details. Disclaimer: I used to work on IronPython.
Can you expand a bit on how that works in principle ? Can you make it work with a standard python or did you need to insert probes' into the python interpreter to catch when it goes form C to Python and vice et versa
Stack walking works by rewriting the native stack. Basically we just let the native stack walker do its job, then strip out all python##.dll frames except for PyEval_EvalFrameEx. For that one we read the "f" argument and then parse the PyFrameObject to which it points, and replace the frame with our own using data from that frame object.
We parse the data structures ourselves, but use symbols to do so, which is why it'll work on any CPython build with symbols. This is why you can inspect objects even when process is stopped somewhere in native code, and it's impossible to eval using the interpreter.
We still use sys.settrace for breakpoints and Python stepping. Python-to-native stepping works by setting native breakpoints on code paths inside Python interpreter that can potentially invoke some user code (e.g. type_call invokes tp_init, which may point to a user function). When those breakpoints are hit, we eval the function pointer and see if it's outside of python##.dll, and if so, then set another breakpoint there. When it's hit, your step is complete.
So no, there are no special hooks added to the interpreter. We do end up relying quite a bit on internal implementation details, since we need to do things such as set breakpoints inside static functions, and read their arguments. However, because we use symbols for that, this works on any CPython build, including debug ones, and even customized ones so long as you don't rename anything that we rely on. E.g. adding a new field to PyObject is kosher, but renaming ob_type to something else would break us.
Earlier quoted context omitted.
MSFT porting VS to Mac and Linux would give developers even more options.
...which would be detrimental to Microsoft. Limiting our options to theirs is precisely their goal by giving us a great IDE that only works on Windows. They're never gonna go it. They stand to win nothing from that.
/sarcasm
Earlier quoted context omitted.
What languages do you work with? Simple things like being able to jump to the definition of a function with a press of a button (esp. when working with a large unfamiliar code base) are indispensable for me.
grep is nice. its gnarly in template heavy c++, but so are all the tools. intellisense can't reliably provide navigation among all of the possible instantiations in your project. (esc;qgrep -rn thing .) is faster for me than reaching for the mouse.
Have you tried it in VS 2010+? You might be surprised. I've seen it correctly handle polymorphic Boost lambdas, and that's a rather impressive feat of TMP. Also, I've just tried the scenario that you've described (if I understand it correctly - "Find all references" on a class template), and it does list all the explicit instantiations in the project.
There are a lot of Python IDEs out there, some very good, such as IntelliJ IDEA. I'd prefer to see an objective comparison.
It's Scott Hanselman's blog. The entire point of it is to proselytize for MS products.
Another Microsoft's best kept secrets is using Javascript for shell script. It has been there forever since Javascript first came out. It's called JScript but it's just Javascript with Windows support like running ActiveX Objects, which let you access the file system, OS, network, etc. You can pretty much drive the Windows system with it through ActiveX Automation. Also you can do Office application integration like…