Posts

Showing posts from 2007

QuTags - Easy Ajax Usage, Fast PHP Results

QuTags - http://qutags.sourceforge.net - has finally hit 1700+ downloads (since 05/2007). I guess its about time I post a little blog entry about its existence. QuTags is the culmination of thoughts and examples of great ways to implement AJAX for PHP, without knowing any JavaScript; none. But this implementation actually does hide the JavaScript from the PHP programmer. Don't get me wrong, its not invisible to the advanced user, but most of the time (if not all), you can do without touching the JavaScript. QuTags allows you to easily and rapidly bring Ajax advantages to ANY existing PHP web application. Simple, fast and supported. The framework is young but extremely powerful. It dominates every other attempt at simplicity; seriously. The following example demonstrates the Javascript-less Ajax framework. Its a simple page that changes the DIV's text when the user clicks the button. Ex: [code] <?php # include qutags script (if you're no using the Apache module) require

Load .NET Assembly Using Python

To load .NET assemblies via Python you should use Python.NET. I choose Python.NET over IronPython, because IronPython seems less compatible with standard Python libraries (amongst other things). Once you've downloaded and installed Python.NET (http://pythonnet.sourceforge.net/), you can begin the integration. Integration Code Sample: [code] import sys # import Python.NET module(s) import CLR from CLR.System.Reflection import Assembly # get the root path (for the dlls) pythonLoc = sys.path[0] pythonLoc = pythonLoc[0:pythonLoc.rindex("\\")+1] for dllName in ["MyDLL.dll", "Microsoft.Practices.EnterpriseLibrary.Common.dll", "Microsoft.Practices.EnterpriseLibrary.Data.dll"]:    Assembly.LoadFile(pythonLoc+dllName) # end for # create instance of .NET class csharpClass = clr.MyDLL.MyCsharpClass() # call member of .NET class result = csharpClass.SomeMethod() [/code] As you can see the key here is to use absolute paths. The variable 

wxPython with Python .NET intergration

Image
To use wxPython and Python.NET together is a simple task. Luckily Python.NET is an interpreter and wxPython are modules. This will allow you to utilize wxPython and the .NET framework all from Python. Its a Win32 Python programmer's dream, leverage .NET assemblies, wxWidgets UI, and Python! 1.) Download wxPython (http://www.wxpython.org/download.php) & Python.NET (http://pythonnet.sourceforge.net/) 2.) Install Python.NET (and remember the install directory) 3.) Install wxPython in the same directory you installed Python.NET Notes: To access PyCrust (interactive wxPython shell), go to 'C:\PythonNet\Lib\site-packages\wx-2.8-msw-unicode\wx\py\pycrust.py' To access XRCed (XRC editor), go to 'C:\PythonNet\Lib\site-packages\wx-2.8-msw-unicode\wx\tools\XRCed\xrced.py'

PPC to Intel Mac - Migration Assistant

Its really easy to migrate from PPC to Intel (or from Intel to Intel). Extra step: - If you are transferring an existing user , as in you want the "from" mac to be used on your "to" mac, make sure you are not using the Migration Assistant from the "to" account on your "to" mac. Old mac user Account to New mac old user account: 1.) Create a temp administrative account on the "to" mac, and launch the Migration Assistant 2.) Once the account transfer is complete, logoff/restart and your "from" account will be available. Migrate from PPC to Intel: 1.) Grab a male to male (6-pin) firewire cable. 2.) Connect only one end of the cable to the "from" mac. 3.) restart the "from" mac, with the keyboard ready 4.) as soon as you hear the restart chime, hold "t" 5.) release "t" after you see the firewire icon on the screen of the "from" mac 6.) now connect the other end of the cable to the &

Quantum Quinn® (A Next Generation Software Company)

A software company that reaches a higher plateau . A software company that prizes making high quality software, but not charging high profit prices. Quantum Quinn believes that everyone should have a chance to own enterprise level software, not just enterprises. Working with Qu and being sponsored by Qu is a great opportunity to share equal beliefs.