Infinite | Squares

Art of code and more

Customizing Open edX - Settings

After finished OpenEdX installation we need to modify some settings to change text, logo and activate some functionality: changing site name, using third party auth and many others. This is where things are a bit confusing because some documentations use different approach.

Remove Malware in Wordpress Site

Beside develop web application with Javascript, I also work as an IT support. I had to manage (setup and server side maintenance) several Wordpress based company sites running on IIS 6.1 on Windows Server 2008. Lately, our latest sites has been infected with malware. This is the notes on how I clean those sites.

Install Open edX on Ubuntu 12.04 at Digital Ocean

Open edX is the open source platform that powers edX courses. It is freely available to the community. Institutions can host their own instances of Open edX and offer their own classes. Educators can extend the platform to build learning tools that precisely meet their needs. And developers can contribute new features to the Open edX platform. There are already many online course sites developed using Open edX.

Getting Started With Gulp

Gulp is a build system implemented using stream. You can use gulp to hinting and linting scripts, concatenate and minify them, automate testing and many others. I have been wanted to use Gulp in my Nodejs project for a while (I have tried Grunt once, but that not work well for me). This is my working with Gulp notes.

Nginx for Node.js

Nginx is a high performance web server. Some said it is better than Apache. Nginx can be used as reverse proxy for Node.js server application. And also as static file server since it’s very efficient. If you are have a VPS or VM running, you can use Nginx as front for more than one Node.js app.

First, you have to install Nginx first. My standard script for installing development server is available here. Once you have nginx setup, when you access your server on port 80, you will see nginx welcoming screen.

Using SSH on Azure Linux VM

Typing password is a time wasting process. It is recommended to use SSH with public private keys to access Linux VM box. To do that in Azure, first you need to create a key pair using following command

openssl req -x509 -nodes -days 36500 -newkey rsa:2048 -keyout MyAzure.key -out MyAzure.pem

Issues on Using Iisnode on Windows 7


I found the issue with the Azure website. Sailsjs is actually working well. The issue is that I used Azure free tier and free tier is going idle (IIS app pool timeout) after some time if not used. This caused some errors when I tried to access it from browser (that’s when the app started again). I tried to use uptimerobot to check the site every 5 minutes so it will not go idle. I still found the website is stopped this morning.

end of update

I started to use sailsjs in my latest project. When I deployed it to Azure Web Sites, the web is not working. Sometimes I can access it, but most of the time I just can’t. So I went to install IIS and iisnode on my Windows 7 machine to test the sailsjs on IIS deployment on local dev machine. Maybe I can figure out what went wrong. But what I found is series on errors when trying to run simple iisnode example.

Add User to MongoDB

MongoDB is easy enough to use that you don’t even have to think about adding user when start using it. This could lead to a problem down the road when you are need to open your database access to public internet. And also the provided free version do not support SSL!. But that is another issue.

For now, lets take note on how we can start adding user (and password) to protect our database access.