Instead of using wfastcgi to host your Python web server on IIS…

You can also check out another approach that simply starts your Python application, and redirect HTTP ports like a reverse proxy: Configure Python web apps for IIS#Configure the HttpPlatform handler.

There are several pitfalls if you are using wfastcgi, most notably, the FastCGI scriptProcessor name generated by wfastcgi-enable is incorrect if your Python executable path contains whitespace (e.g., “Program Files”).

Coursera Machine Learning Ex.6 2.5: Try your own emails

ml-spam-test-4
Perhaps this mail is so short that it seems like a spam XD
>> ex6_predictonly
Input the file to be checked [testMail.txt]:

==== Processed Email ====

do not repli to thi messag thi is an automat gener email thank you for your 
interest in powerworld simul number educ evalu edit click here to be redirect 
to the download site if the abov link doe not work pleas copi and past the 
follow into your browser httpaddr 

=========================

Processed testMail.txt

Spam Classification: 1
(1: Spam, 0: Not a spam)

Continue reading “Coursera Machine Learning Ex.6 2.5: Try your own emails”

Some debugging tips on Linq.Expression

Machine Translation Warning:

The content below is mostly translated by machine, and I’ve not got enough time to review the text. So, maybe you’d like to view the Simplified Chinese version of the page.

You can generate IL code, and thereby construct a methods, using ‘System.Linq.Expression’ during runtime.Compared to ‘System.Reflection.Emit.ILGenerator’, use expression trees to construct dynamic methods is an easier way to handle IL code.As you know, IL instructions is just like any kind of assemly, which is rather elaborate. I just cannot handle it well enough 🙁 Continue reading “Some debugging tips on Linq.Expression”

Content is available under CC BY-SA 3.0 unless otherwise noted.