Quantcast
Channel: tutorials – unitstep.net
Browsing all 13 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Getting Xdebug to work with Apache/XAMPP to debug PHP

I’ve written about Eclipse and how useful it can be, with its extensible plugin-based system. It’s so useful that I use it everyday for almost any language – Java, PHP, JavaScript to name a few. It’s...

View Article



Image may be NSFW.
Clik here to view.

JavaScript Event Delegation

JavaScript Event Delegation is a technique you may have heard of. It’s a different way of using event handlers that offers clear benefits and is becoming more popular amongst web developers. I’ll give...

View Article

Image may be NSFW.
Clik here to view.

Using the Basic Constraints extension in X.509 v3 certificates for...

It’s not often that you’ll be creating your own X.509 certificates for a web server, since any certificates that you create (self-signed or signed by your own CA) will not be trusted by most browsers...

View Article

Image may be NSFW.
Clik here to view.

JavaScript functions: First-class objects

In JavaScript, functions are first-class objects, meaning that they can be created, manipulated and passed around in the same manner as other objects/variables in JavaScript. For example, a function...

View Article

Image may be NSFW.
Clik here to view.

Open Cygwin Bash Shell Here

If you’re like me, you love shortcuts and other tools that improve productivity. One of the other things I’ve gained a liking for is the Bash shell, after spending time in a Unix environment. Since I...

View Article


Image may be NSFW.
Clik here to view.

Determine your visitor’s location based on IP address

If you’re running a website that provides a service, it’s likely that it would be beneficial to know a user’s location (or have a rough idea) so that the content could be tailored to their specific...

View Article

Triggering links from JavaScript using jQuery

Sometimes, you may want to trigger a link (that is, an anchor element) directly from JavaScript. That is, you may want to simulate the user clicking on the link programmatically. If you’re using...

View Article

Image may be NSFW.
Clik here to view.

Folding changesets with the Mercurial Queues extension

Mercurial is my distributed revision control system of choice, a trait I picked up at my previous job. I haven’t had the opportunity to deal with Git for any period of time, so I can’t comment on the...

View Article


The Flyweight Pattern: (Mis|ab)used at times.

In my brief career in software development thus far, I have seen a lot of “WTF” code, that is, code that deserves to be posted to The Daily WTF. Some of this code was admittedly developed by myself and...

View Article


Java’s Pattern class and regular expressions

One of the easiest things to get tripped up on is the syntax for creating regular expressions (regex) in Java using the Pattern class. The tl;dr version of how to do things is that you must use...

View Article

Image may be NSFW.
Clik here to view.

Accessing the host file system from a Docker container on OS X or Windows

Mounting (or sharing) a directory from the Docker daemon host into a container is simple enough. Example: $ docker run -v [host directory path]:[container directory path] -it [image name] However, on...

View Article

Image may be NSFW.
Clik here to view.

Remote Python debugging using PyDev/LiClipse for OpenStack Swift

We all know what debugging is – stepping through running code, line by line, inspecting variables and trying to figure out what’s wrong with your program while simultaneously tearing your hair out....

View Article

Converting an IPython Notebook to PDF

If you have an IPython Notebook (*.ipynb file), you may want to convert to PDF for distribution. If you read the documentation for ipython nbconvert, it seems fairly straightforward: $ ipython...

View Article

Browsing all 13 articles
Browse latest View live


Latest Images