Yc

Author's details

Date registered: February 23, 2011

Latest posts

  1. Remove Submodule from GIT Repo — March 5, 2012
  2. Using Git Submodules — March 2, 2012
  3. HTTPS with GITHUB — February 28, 2012
  4. Working with HTML Canvas — February 27, 2012
  5. NodeJS Serving Static Files — February 25, 2012

Most commented posts

  1. Create a WordPress Network — 2 comments
  2. Moving Servers Out of Garage — 1 comment
  3. Enable SSL in Apache — 1 comment
  4. Setup a LAMP Stack in Linode — 1 comment
  5. Choosing a VPS Provider — 1 comment

Author's posts listings

Mar 05

Remove Submodule from GIT Repo

There is no git submodule rm command, so it takes a bit of manual work to remove a submodule reference in your git repo From (https://git.wiki.kernel.org/articles/g/i/t/GitSubmoduleTutorial_c489.html) Delete the relevant line from the .gitmodules file. Delete the relevant section from .git/config. Run git rm –cached path_to_submodule (no trailing slash). Commit the superproject. Delete the now untracked submodule files.       …

Continue reading »

Share

Mar 02

Using Git Submodules

If you want to reference code from external repositories within your own repository in GIT – you’ll have to use GIT submodules. Let’s say that we have a repo called sandbox, and inside sandbox, we have a lib sub directory that refers to multiple libraries from other repos, looking like the following /sandbox # your …

Continue reading »

Share

Feb 28

HTTPS with GITHUB

SSH port is blocked at many company firewalls – for no good technical reasons of course, but probably driven by security policies, and that means one cannot use github without either a weird proxy hack or via HTTPS, which github now supports. For cloning an existing repro – just use the https path. # public …

Continue reading »

Share

Feb 27

Working with HTML Canvas

Canvas is central to HTML5 for 2D graphics.  It is supported to various degree by the modern browsers, which of course means IE lags behind until version 9. The following creates a canvas element in an HTML page <canvas id=”example” width=”200″ height=”200″> Your browser does not support Canvas.  </canvas> To make the above work in …

Continue reading »

Share

Feb 25

NodeJS Serving Static Files

We have previously generated dynamic hello world in NodeJS – let’s now try to do so via serving a static file instead. The hello.html contains the following <html> <head><title>hello world</title></head> <body> <p>Hello world</p> </body> </html> To serve this file we can quickly hack our handler to just load this file whenever we are pointing to …

Continue reading »

Share

Feb 25

NodeJS Hello World

NodeJS hello world is pretty straight forward Download NodeJS & install it Verify via running node on command line Type up the following hello.js in your favorite editor var http = require(‘http’); http.createServer(function (request, response) { response.writeHead(200, {‘Content-Type’: ‘text/plain’}); response.end(‘Hello World\n’); }).listen(8080); console.log(‘Server running at http://127.0.0.1:8080/’); Run node hello.js You’ll see Hello World printed when …

Continue reading »

Share

Mar 11

Ignore That RFP When…

It is often difficult to ignore the RFP that just lands on your desk.  There lies the untold riches and glory that awaits you. But just like the gold rush, most people come home empty handed with RFPs.  In each RFP, there is exactly one winner (there are RFPs with zero winner – yes, these …

Continue reading »

Share

Mar 04

Increase Upload Quota in WordPress

In WordPress Network, there is a upload size quota limitation, defaulted to 10MB.  Which works for ISP selling their spaces at premium, but not if you already buy the space: Administration -> Super Admin -> Sites Choose the site that you want to update the quota, click Edit Update the field that says Site Upload …

Continue reading »

Share

Mar 03

Flapjax – Functional Reactive Programming in Javascript

What if programming can be as simple as writing spreadsheet formulas? Now – there are some complex spreadsheets out there for sure, but the power of spreadsheet comes from that the values are self-updating, i.e. changing value in one cell will automatically cause all its dependent cells to reflect the change.  If spreadsheets cannot do …

Continue reading »

Share

Mar 03

Should You Have Faith in Lean Startups (or In Your Startup)?

Technology Adoption Lifecycle

Ash Maurya is asking a very good question: Do you have faith in lean startups? He goes on to digest the “faith” in lean startups and cautions the practitioners to have a healthy dose of skeptism: Observe the Stockdale Paradox at play – faith of ultimate result must be compartmentalized from the brutal confrontation of …

Continue reading »

Share

Older posts «