CrashDump analysis automation using SlackBot, python, cdb from Windows

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

[Tip] Python snippet increases the UWP product version

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

How to upload a file from slack using SlackClient?

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?

Writing a python build script for your Visual C++ project

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

Downloading a file on the fly from Flask+sqlalchemy

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

Running Python Flask on a local IIS (not Azure!) with wfastcgi.py

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