htmlspecialchars() | htmlentities() returns empty string

Today, an PHP-based web-application suddenly misbehaved: A certain part of a web-page kept being empty. First of all, I reviewed the logic of the code fragment. Additionally, I asked a colleague to sit down and list to my explanation of what the code fragment does. Even at that point, anything appeared to be fine. Then, I instrumented the ...

Site Templates – Muse- Professional, Responsive, Unlimited Colors | ThemeForest

Site Templates – Muse- Professional, Responsive, Unlimited Colors | ThemeForest.

Lint – Static Code analyzers

JavaScript Tools http://www.javascriptlint.com/ Language Variants CoffeScript and Spine MVC-Framework Objective-J and the Cappucino framework PHP Tools http://www.icosaedro.it/phplint/ http://pear.php.net/package/PHP_CodeSniffer http://www.program-transformation.org/PHP/PhpSat Articles Lorna Jane on ‘PHP Static Analysis Tool Usage’

Protecting web applications against control-flow and parameter-change highjacking

Some time ago, I found a mechanism to protect the control flow and all parameters of web-application (controllers) against highjacking. The technique provides this: All parameters of request are kept at the server side No parameter ever reaches any URL The control flow of an application strictly gets controlled by server-side state The base principle is this: Define a controller FlowController If a ...

Interesting stuff

Teensy USB Development Board, a sweet small development board and a compatible video display expressFlow, a workflow engine running on GAE Various examples of how to use OpenStreetMap using the OpenLayers framework An iOS theme for Adobe Flex in Jason’s Flex Blog

Pantomime framework packed as XCode 3 project 1

I’ve moved the Pantomime framework into an XCode 3 project and changed some settings to make it compile. Pantomime is provides classes for mime coding/Encoding, SMTP, POP3 and much more. Since Apple dropped support to send emails using Cocoa, Pantomime might be a good replacement. Find the zipped XCode project folder here.

Good starting point for programming Cocoa on Mac OS X or iOS

Starting to write Cocoa for Mac OS X oder iOS? Have a look at these sites: CocoaDevCentral – Very good tutorial. Huge amount of material. Cocoa with Love – Well written articles CocoaCast – Articles, sample code and podcast

NSMailDelivery gone since 10.5

I really wonder, why Apple dropped support for NSMailDelivery since Mac OS 10.5.  In fact, all methods of NSMailDelivery are declared as: AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_5 Too bad. Even worse, Apple didn’t provide an alternative – except calling ScriptingBridge as seen in the SBSendEmail sample. Today, the best option available is CSMail from Corriolis systems. CSMail sends Emails through ...

How to convert NSAttributedString to HTML markup 3

This snippet converts a NSAttributedString to HTML markup returned as NSString: + (NSString*) htmlForAttributedString:(NSAttributedString*) attrString {   NSArray * exclude = [NSArray arrayWithObjects:@"doctype", @"html", @"head", @"body", @"xml", nil ];   NSDictionary * htmlAtt = [NSDictionary      dictionaryWithObjectsAndKeys:NSHTMLTextDocumentType,      NSDocumentTypeDocumentAttribute,      exclude,      NSExcludedElementsDocumentAttribute,      nil    ];   NSError * error;   NSData * ...

protect webapp against sqlinjection using a .htaccess file 2

While this is by no means a complete way to protect against each and any SQLInjection attack, putting these lines inside a .htaccess file at least protects against certain cases: # Deny certain ugly SQL verbs Options +FollowSymlinks RewriteEngine On RewriteCond %{QUERY_STRING} union [NC,OR] RewriteCond %{QUERY_STRING} select [NC,OR] RewriteCond %{QUERY_STRING} truncate [NC,OR] RewriteCond %{QUERY_STRING} drop ...