Install the SCCM Client with a Batch File

Tired of waiting for the Deployment wizard to finish on the SCCM console? Me too. I’ve found that when I am formatting PCs and need them to install the SCCM client it is much faster to install it manually using a batch file. Adjust the line below and replace SCCMSERVER with the FQDN of your SCCM server.

ECHO Starting SCCM Install...
ECHO SCCM Finished...

jQuery Hide/Show Button

This is just a small example of how you can use jQuery to make an effective show/hide button(s) on a page with a few lines of code. It will support multiple instances per page and use it with HTML markup, you don’t need to edit the Javascript every time you want to use it. It’s generic and re-usable code.

I have provided a download for the example at the bottom of the page; although all of the needed code is explained and shown further down in the article.

Read More

jQuery ‘AjaxLinks’ Plugin

I previously wrote an article showing how you can turn a normal ‘A’ link into an ajax request and place the returned content into divs. This does the same job but used as a jQuery plugin with more customizable options and flexible use.

The download is at the bottom of the article and the script in the zip file is minified to 1.22kb; the code below shows the full script.

Read More

PHP5 & Memcached (Example)

In this example I’ll be showing you how to read and write from a memcached server using PHP5, using singleton class design and some basic static functions to connect your servers up before performing the caching. For those of you who don’t know what memcached is I have included the description from the memcached website below.

If you want to know more technical information visit the official website:

“Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.

Memcached is simple yet powerful. Its simple design promotes quick deployment, ease of development, and solves many problems facing large data caches. Its API is available for most popular languages.”

Read More

CSS3 XHTML Template

Since the implementation of CSS3 into some of the modern browsers, eg. Webkit based browsers and Firefox we’re starting to see more and more websites use CSS3 to style the pages. I have made an example of how we can use “Rounded Corners” in CSS3 in a modern layout. I have provided the download at the bottom of the page.

The layout is a standard two column layout with a header, two menus and a footer – I have rounded the corners using the CSS3 standard of border-radius and added sample dummy content to the pages. Feel free to modify and use this template as you wish.
Read More

Google Gears: LocalDB Example

logo_153x43I have recently been playing around with google gears; Gears is an open source project that enables more powerful web applications, by adding new features to your web browser such as interacting with the desktop, storing local data and running Javascript in the background. Here is a simple link manager I created to test out the LocalDB usage.

In this example I have made a link manager, where you can add/delete links from categories – as well as add/edit/delete existing categories. I have been using JQuery to automate some things, so if you use any of this code at all make sure JQuery is loaded beforehand.
Read More

Teamspeak 3: Connection Class

phpDue to the recently released Teamspeak 3 BETA I have made a connection class in PHP to communicate with the server and fetch back information that I can display in a visual format. I have included a download ZIP for this that includes the PHP code, styles and icons used.

The full package includes a stylesheet and icons, see the archived file at the bottom of this post.
Read More

Basic Tutorial PHP/MySQL (Part 1)

phpOne of the most requested tutorials are those that explain how to connect and use a MySQL database server with PHP code. I have written a basic tutorial showing how to perform MySQL queries with PHP.

So you’re wanting to use a database with PHP to store your data? MySQL is a great open-source RDBMS (Relational Database Management System) that is widely available on many web hosting packages. Before we start make sure that you have access to both PHP and MySQL on your hosting package.

Read More