I'm going to show how to automate dump analysis using a Slackbot but using telegram bot is also quite same. In order automate dump analysis, Visual Studio or WinDbg can be used in theory, however writing a script which behaves manipulate other application which has GUI interface, emulating keyboard and mouse inputs, and reading the … Continue reading CrashDump analysis automation using SlackBot, python, cdb from Windows
If you have a C# project and want to manage the assembly version info during automation build process such as the msbuild with Jenkins, then two options are available: Specify the version number in AssemblyInfo.cs to with asterisk(*) - n.n.* (for example, '1.0.*') Or you might want to manage it with a build script such … Continue reading [Tip] Python snippet increases the UWP product version
Slack provides an official python client module which you can easily work with. It's simple and easy to use. For example, sending a text line to a specific channel is simple enough to call through just one API - api_call("chat.postMessage", channel=channel, text=msg, attachments=attachment, as_user=True) You can also upload a file to a channel. However, when I … Continue reading How to upload a file from slack using SlackClient?
Telepot is a python based telegram bot framework which is lightweight, easy to use and supports all of the up-to-date telegram features. For example, I was able to write a small telegram bot running on Pi2 which takes and sends a photo with only few lines using it. Here … Continue reading Running a CCTV Telegram Bot on your Pi
If you’ve decided to write your own python build script for existing Visual Studio projects, then two questions would probably come up at first. What utility/commands are available for actually building *.sln/*. vcxproj files? How will you specify the appropriate version for your *.rc version resource file? Solution for #1. You can download the MSBuild … Continue reading Writing a python build script for your Visual C++ project
Following code snippet shows how to implement downloading a file with flask. http://flask.pocoo.org/snippets/32/ def index(): strIO = StringIO.StringIO() strIO.write('Hello from Dan Jacob and Stephane Wirtel !') strIO.seek(0) return send_file(strIO, attachment_filename="testing.txt", as_attachment=True) In case you need to use the snippet to support downloading a file which is stored as BLOB originally and to convert it as a … Continue reading Downloading a file on the fly from Flask+sqlalchemy
There are already a lot of resources dealing with how to setup Django with IIS, or configure IIS to support WSGI with various tools such as Helicon Zoo, isapi-wsgi, and FastCGI. FastCGI looked good among others because I wanted to go with least 3rd party stack and the Microsoft distribute the wfastcgi.py through PTVS. However, there's a still one problem. I couldn't … Continue reading Running Python Flask on a local IIS (not Azure!) with wfastcgi.py
Last month there was a chance I gave a talk explaining how to start the PTVS(Python Tools for Visual Studio) through the MS virtual academy. The talk was live recorded and currently is being shared following URL: http://www.microsoftvirtualacademy.com/training-courses/-ptvs-python-tools-for-visual-studio-python It's Korean though. Throughout the demo, except the very basic examples I also included demos showing how to build a Python extension with … Continue reading Extending Python with Visual C++ and PTVS