Programming

Authentication in Drupal's services module

I have been struggling with user authentication for the services module ( 5-x.0.92). This is the first version I installed. However, by checking the handbook and the outdated examples, it's not hard to tell significant change has been made in this version, especially the user authentication part which requires api keys, HMAC with sha256 hashing function, etc.

Java XML-RPC client for Drupal's Services module

I am trying to write a java xmlrpc client for Drupal's Services module. However, I got the "org.xml.sax.SAXParseException: Content is not allowed in prolog" error when I tried to call "system.connect()". This error occurs no matter which library I use, Redstone or Apache.

After some searching, I found this: http://www.openrdf.org/forum/mvnforum/viewthread?thread=86
Java doesn't handle BOMs on UTF-8 files properly, making the three header bytes appear as being part of the document. ...

Testing out Drupal's Service module using Python

Drupal's Services module seems to be a right fit for my purpose as I am in the process of integrating a desktop application into my Drupal website. I decided to give it a quick test using Python. Although I don't know much about Python, there's an example  available on Drupal.org and it's a scripting language.

xml-rpc, java, and eclipse

This writeup serves as a quick summary of my initial investigation of writing xml-rpc applications using java in Eclipse. It's hoped to be useful to whoever is reading this.
 
xml-rpc is a popular web service protocol. In case you haven't heard this before, one common application is publishing blogs from your desktop.
 
Popular open source XML-RPC library implementation in Java includes:
Apache XML-RPC

image transformation in C#

To perform image transformation in C# (c sharp), we'll need to use GDI+ of windows.
GDI+, supersedes GDI, is an improved 2D graphics environment. Graphics Device Interface (GDI) is one of the three core components or "subsystems" of Microsoft Windows. However, for games that need fast graphics rendering and rasterization for 3D, DirectX or OpenGL is preferred.

To use GDI+, you need to use System.Drawing namespace in C#.

C# tutorial

in

For a project I am working on, I need to have a basic understanding of C#. I've heard C# for very long time and been surrounded by .net developers, but my knowledge of it stays at a very rudimentary level. I only know it's very similar to Java, like single inheritance, interface, etc, and don't really understand why many programmers told me that they feel good about using C#.
Finally I decide to take a look. This is the first tutorial I found.
http://www.csharp-station.com/Tutorial.aspx

code::blocks + WxWidgets setup

Code::Blocks is a free/open source, cross platform IDE. It comes with a RAD tool called WxSmith which allows you to build GUI easily with wxWidgets.
On windows:
download binary release codeblocks-8.02mingw-setup.exe
This file includes the GCC compiler and GDB debugger from MinGW.

settings->Compiler and debugger... ->Toolchain executables,
change the default "c:\MinGW" to "C:\Program Files\CodeBlocks\MinGW" or wherever your compiler is installed.

Back to top