CategoryWeb Development

Proxy pass sub directory to different domain

P

I built an api for an invoice app thats not live yet. The app was to sit on example.com and the api on api.example.com. And API calls were to be made with Javascript. Javascript has the The policy permits scripts running on pages originating from the same site – a combination of scheme, hostname, and port number[1] – to access each other’s DOM with no specific restrictions, but prevents...

Developing m.Jobs.co.za (Jobs.co.za Mobile)

D

Introduction About a month or two ago I took on the task of developing the Jobs.co.za mobile(m.jobs.co.za). For those of you that don’t know. I work for Jobs.co.za. A Job Portal like no other. We do a lot of cool stuff. A topic for a whole ‘nother post. With the barrage of mobile web frameworks out there it was easy to make a decision on which one to use. Non of them. I’m a fan...

PHP Function/Method Overloading

P

“Function overloading or method overloading is a feature found in various programming languages such as Ada, C#, VB.NET, C++, D and Java that allows the creation of several methods with the same name which differ from each other in terms of the type of the input and the type of the output of the function.” — Wikipedia() I’m sure by now you have realised that PHP does not...

Different Definitions of Quality

D

Came across a very interesting post on “Quality” by Paul-M-Jones post via the phpdeveloper.org feed(That you should subscribe to). Here a little extract from the post below. Read the full post. While the above analysis may be true, I realized later that I was approaching the problem from the wrong angle. It’s not that one cares more about quality than the other. Instead, it is that...

Hello World module in Drupal 6 Tutorial – Part 2

H

Hey all, welcome to part 2, a continuation of the Hello World module in Drupal 6 – Part 1 I know what you’re thinking: “A full 8 months later? wtf?”. If you werent thinking that then you are now. Or something along those lines. I apologise for the delay(if you can even call it that). Blah blah blah Now that we’ve got that out of the way, Shall we then get to the...

Why your developer sucks

W

1. He/She has a ‘God’ Complex Web Development by its very nature is a creative field. It’s a field were the developer invests themselves. The Developer looks at a problem and solves it the best way they know how. If anybody dares question how the problem was solved, it is considered as a personal attack on the developer skills. I see this in myself every day. When somebody fails...

Installing Sphinx Full-Text Search on linux

I

Sphinx is a full-text search engine. It currently works with MySQL and PostgreSQL better known as Postgres. The two most popular options when its comes to open source databases if not databases in general. Both MySQL and PostgreSQL have full-text search capabilities. So why bother with sphinx? Control – With sphinx you get more control over filtering, for example you can set a certain...

header() & exit(). BFFs

h

The PHP header(“Location: /”) function sends a redirect header to the browser. So thing about PHP is that it only sends headers to the browser once the page is parsed on the server. header(); will not stop the execution of code that comes after it. The script will continue to execute until it reaches the end. At which point it will then redirect. Take this example Although its quite...

Hello World module in Drupal 6 – Part 1

H

A short tutorial on developing a simple hello world module that prints Hello World on the screen. 1. Create a folder for your module Create a folder in your modules directory called helloworld ie sites/all/modules/helloworld/. It is good practice to put all custom modules in sites/all/modules/ folder and not the modules/ folder. The modules folder is meant for core modules any “third...

Java Server Faces 2.0

J

JSF 2.0 is a Java based framework used for web development. It’s actually a Java specification, and is implemented by different vendors. I use the Sun Reference Implementation (RI) Mojarra but you can also use others. JSF 2.0 includes Facelets for templating (and custom components), has AJAX support built in via the <f:ajax/> tag, and allows an easier way of configuring scopes of...

Categories

Page optimized by WP Minify WordPress Plugin