個人檔案The Martin Schray Way相片部落格清單更多 ![]() | 說明 |
|
10月25日 PHP.NET Simple FormV2Building on my first PHP.NET post I worked up a second PHP .NET Win Forms example. This example adds a button that triggers an event that displays a message using a MessageBox. Here are a few comments about the code:
Need PHP.NET? I went over to CodePlex and grabbed Phalanger. It's a PHP implementation that can interoperate with .NET. I then grabbed my (yes I wrote them ~ imagine that) IronPython Winforms examples and began porting them to PHP. This is the second example I have ported. Here the code: <? import namespace System; import namespace System:::Drawing; import namespace System:::Windows:::Forms; // The main form with a button event to display a MessageBox class FormV2 extends Form { // The entry point of the application public static function Main() { $form = new FormV2; Application::Run($form); } public function __construct() { $this->Text = "Hello World"; // set form title bar // Create, position and hook up event handler for button click $this->button = new Button(); $this->button->Location = new Point(20, 20); $this->button->Name = "Button"; $this->button->Text = "Message"; $this->button->Click->Add(new EventHandler(array($this, "Button_OnClick"))); // Add button to form's controls $this->Controls->Add($this->button); } // method that gets called on button click protected function Button_OnClick($eventArgs) { MessageBox::Show("Hello World"); } } ?> I had to get it compiled into an .exe to run. From the Samples\Winform directory I run the following command line: ..\..\bin\phpc /pure /target:winexe FormV2.php Then I run the app with the following command line: bin\FormV2.exe 10月23日 : What's New in the Microsoft Robotics Studio October 2006 CTPAnother Community Technology Preview (CTP) from the Robotics Studio Team. Some cool features like enhanced support for visual programming language and better support for Lego NXT and Roomba. Link to : What's New in the Microsoft Robotics Studio October 2006 CTP Imagine Cup Software Design Invitational US/Canada Site LiveThe Imagine Cup US/Canada Imagine Cup Software Design Invitational site is live! Are you a college student in the US or Canada? Have you registered? 10月20日 My book and Visual Studio Web Developer ExpressIn case you are unaware I wrote a book covering what's new in Visual Basic 2005. It's called Jump Start Guide for Microsoft Visual Basic 2005. You can find it at Amazon amoung other locations. Anyway chapter 4 covers a good number of the new features that are available when you are doing web form development. You don't have Visual Studio 2005 yet? Get the Visual Web Developer Express for free and you work through all the examples in chapter 4. .NET PHP Winforms Applications (yes you can)Ever wonder what the simplest Windows Forms PHP.NET application would look like? I did. I went over to CodePlex and grabbed Phalanger. It's a PHP implementation that can interoperate with .NET. I then grabbed my (yes I wrote them ~ imagine that) IronPython Winforms examples and began porting them to PHP. Why? Because I wanted to see some of the differences between the two languages and frankly just to prove to myself that I could.
The simplest example I had was just opening a form and setting its title. Here the code:
<?
import namespace System; import namespace System:::Windows:::Forms; // The main form
class FormV1 extends Form { // The entry point of the application
public static function Main() { // create and form and run it
$form = new FormV1; Application::Run($form); } public function __construct() { // set the forms title
$this->Text = "Hello World"; } }
?> I had to get it compiled into an .exe to run. From the Samples\Winform directory I run the following command line:
..\..\bin\phpc /pure /target:winexe FormV1.php
Then I run the app with the following command line:
bin\FormV1.exe
10月19日 IE 7 is outIE7 is out. The install was easy. The tabbed interface is very cool
You can get it here free download 10月17日 PHP.NET - PHP with ASP.NET and C#Are you a PHP buff, but you also like .NET. Now you can get both. Phalanger is a new PHP implementation introducing the PHP language into the family of compiled .NET languages.
http://www.codeplex.com/Wiki/View.aspx?ProjectName=Phalanger
Check out the introduction and FAQ http://www.codeplex.com/Wiki/View.aspx?ProjectName=Phalanger&title=Introduction%20and%20FAQ.
If you want to dive a bit deeper and check out the .NET PHP interop look at this. http://www.codeplex.com/Wiki/View.aspx?ProjectName=Phalanger&title=Documentation
MSN Videos BetaUsing the Soapbox beta (http://soapbox.msn.com/) you'll be able to:
. Easily upload videos from any major digital video format (AVI, ASF, WMV, MOV, MPEG 1/2/4, 3GPP, DV, H.263, H.264) . Do everything: search, browse, share, even upload your video, all without interrupting the video you're watching . Tag any video on the site to categorize it as you see fit . Embed videos in your blog and email links to your favorite videos . Set up customized RSS feeds by user, category, or tag to automatically get notified about new videos you're interested in
10月16日 Robot Weed Killer
This is a research project out of UIUC. It's a robot weedkiller the cuts the weeds and applies herbicide. Now I could really use that in my yard. I am a little worried what it might think of the neighbor’s dog. In case your wondering the robot runs on Windows. 10月4日 MapPointWebServiceHelper = making MapPoint Web Services easyGet a free MapPoint develop accounts here
https://mappoint-css.partners.extranet.microsoft.com/MwsSignup/Eval2.aspx
The faculty and/or students could use this to make cool projects.
Better yet…
I developed a MapPoint web Service class that makes MapPoint pretty easy to use. The class is 400 or 500 lines of C# code in a project that compiles into an assembly. You can the add a reference to the assembly and use it. It allows you to easily find, get routes, get route maps and even get real time traffic stuff. It is geared at MapPoint US, but if you simply change the data source (MapPoint.NA) everything except the traffic should work anywhere MapPoint works (27 plus countries).
Where can you get it? I am glad you asked. I worked with the IronPython team and it was packaged as an example with IronPython. Now since it’s a C# project your faculty could use with or without IronPython. Any .NET language will work (I love .NET). The samples have over 1000 downloads in two week so something must be cool about them. This code is also used by a faculty member at Northern Illinois that I worked with. He uses in his geographic information system (GIS) course. He uses it to get them started with functional MapPoint Web service programs and then eventually they replace my class with code they write. The code is pretty clean so he uses it as a good example of a class library.
Here is the link to the IronPython examples that use the MapPointWebServiceHelper http://www.codeplex.com/Project/FileDownload.aspx?ProjectName=IronPython&DownloadId=1898
The samples/WinformMapPoint\Winforms\MapPointWebServiceHelper has the C# project.
|
|
|