Programming
Authentication in Drupal's services module
Posted December 9th, 2008 | Last edited 12/08/2008 - 22:04 by xjsI 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.
- xjs's blog
- Read more
- 2218 reads
- Comments
Java XML-RPC client for Drupal's Services module
Posted November 29th, 2008 | Last edited 11/28/2008 - 23:12 by xjsI 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. ...
- xjs's blog
- Read more
- 4103 reads
- Comments
Testing out Drupal's Service module using Python
Posted November 21st, 2008 | Last edited 11/20/2008 - 23:40 by xjsDrupal'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.
- xjs's blog
- Read more
- 2634 reads
- Comments
xml-rpc, java, and eclipse
Posted November 12th, 2008 | Last edited 11/11/2008 - 21:46 by xjsThis 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
- xjs's blog
- Read more
- 2873 reads
- Comments
image transformation in C#
Posted October 21st, 2008 | Last edited 10/25/2008 - 17:37 by xjsTo 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#.
- xjs's blog
- Read more
- 2600 reads
- Comments
C# tutorial
Posted October 17th, 2008 | Last edited 10/17/2008 - 14:09 by xjsFor 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
- xjs's blog
- Read more
- 1168 reads
- Comments
code::blocks + WxWidgets setup
Posted April 24th, 2008 | Last edited 04/24/2008 - 10:37 by xjsCode::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.
- xjs's blog
- 31 comments
- Read more
- 7070 reads
- Comments
SpeakingX
Recent comments
15 hours 38 min ago
18 hours 55 min ago
1 day 9 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 10 hours ago
1 day 10 hours ago
1 day 10 hours ago
1 day 10 hours ago
1 day 10 hours ago