Month: December 2013

An introduction to Apache Bigtop


A short introduction to Apache Bigtop, what is it and what can it be used for ?
How can it be used to test and deploy the Hadoop stack ?

View original post


how to setup HTTPS for apache

Alex Zeng's Blog

I’m working on setup authentication for an internal website recently.To protect usernames and passwords, setting up HTTPS is very necessary. Here is my first trial on HTTPS/SSL:

Step 1. Check if apache has ssl module compiled 

Step 2. Compile apache if it didn’t have ssl module

Step 3. Config apache SSL
A. Load ssl module, it should already have these lines:

B. Enable httpd-ssl.conf, remove # from httpd-ssl.conf line:

C. Config pages that need force using https at VirtualHost part:

D. Config extra/httpd-ssl.conf

Until now, the HTTPS is setup for the site. But we need to have 2 files: server cert server.crt, and its private key server.key.

The official way it to request it from public SSL certificate companies, such as VeriSign, because their cert is accepted by all browser by default. But it costs a few hundred dollar per year at least.

So many companies have their self-signed cert…

View original post 264 more words

An introduction to Apache Gora


A short introduction to Apache Gora, what is it and how does it work ?
How can it provide data store abstraction and persistency for big data ?

View original post

Accessing SalesForce using the Partner API and C#

Disorderly Data

SalesForce exposes a number of WebService APIs which can be used to access objects in an organization (see here for details). In this post I’m going to show how from a C# application you can use the Partner API.

The Partner API is designed for those who want to develop applications which are agnostic to the objects in a given SalesForce account. This means that it will work for multiple organizations, which is in contrast to the Enterprise API which only works for a single organization and gives a strongly typed interface into that single organization.

I used the Partner to build an application which dynamically generates SQL Server Integration Services packages based on SalesForce meta data. You can read more about it here.

This post is for other people who are interested in accessing SalesForce via C# to retrieve metadata about objects and perform queries.

Getting Setup

View original post 418 more words

CoffeeScript and Visualforce (with jQuery!)

To the end user, a simple popup window – to those who have ever pulled their hair out trying to fix someone else’s messy JavaScript: a potential savior.

CoffeeScript is a brilliant little language that compiles into JavaScript – it’s easy to read, write, and implement into Visualforce. I’ve heard so many great things about it that I finally decided to see whether I could use it in my work – and so far it’s been a godsend.

The ideal way (and recommended by CoffeeScript junkies) to leverage CS is to write it locally, compile your .coffee files into .js files from your terminal

save the .js files as static resources, and call the resource with:

But I’m lazy and wanted to simply write CoffeeScript directly in-browser…

Check out this simple dialog window with some animations thrown in:

Some “gotchas” to consider when using CoffeeScript in Visualforce:

  1. Add coffee-script.js as…

View original post 65 more words