Codeigniter: How to populate a form in a controller

Jul
21

I have been recently acquainted with Code Igniter, and I'm loving it. Having used Zend Framework 1 and 2, and various other PHP Frameworks Code Igniter is very robust and easy to use. Codeigniter comes with a very handy form_validation helper class which you can use to validate, and populate the values back into a view when validation fails. But, how do you populate the form values that are already made it to the database, and repopulating into an EDIT form?

Posted By admin read more

How do you XML encode your data?

Nov
30

I was using jqgrid to display some "filtered" data on grid, but some filters won't display any data. My immediate suspect was special characters that may interfere with XML markup.

jqgrid table

Posted By admin read more

How do you setup dual NIC, multi-homed host?

Nov
20

1. What is multi-homed host?

A multi-homed host is known as a computer that has multiple network connections, of which the connections may or may not be the same network. Web hosts and application service providers setup a multihomed router (or system) to connect to two or more upstream Internet Service Providers, and setup network redundancy. The term, multihomed, is used to denote that a system is connected to multiple networks.

Posted By admin read more

How to make backups with Linux and Rsync?

Nov
12

1. Purpose

As a web host, we needed an automated mechanism for generating snapshot of server filesystems on the Linux based systems. There are a number of ways to achieve backups on Linux systems including Remote backup using Linux tar/ssh/cron and incremental tar backups on a local file system. One of the drawback of using tar to perform an entire filesystem backup is that some systems do not have an ability to create a compressed tarball greater than 2GB in size.

Posted By admin read more

Salesforce REST API example

Oct
27

Salesforce REST API call into Force.com platform requires OAuth 2.0 authentication. OAuth is an industry-standard authentication mechanism using "tokens" instead of a typical "username" and "password" credentials. OAuth access tokens provide permission to make Salesforce API calls, and do not grant permission to login to Salesforce Web UI.

1. Navigate to Connected App on Salesforce UI.
Setup -> Build -> Create -> Apps -> New Connected Apps.

Posted By admin read more

Salesforce: Retrieve related list with SOQL and Apex

Oct
21

You are working with a Salesforce custom object, and you need to iterate through the related list. How do you retrieve the listed list with SOQL, and iterate through them with Apex? For the illustration purpose, I'm going to use Financial Force object, SCMC__Sales_Order__c. The SCMC__Sales_Order__c has a child relationship, SCMC__Purchase_Orders__r, as shown in the (Force.com IDE) screenshot below.

Posted By admin read more

Redhat / Centos LAMP Setup Guide

Sep
10

If you're setting up a RedHat or Centos server from a VPS server without a control panel, setting up a LAMP (Linux, Apache, MySQL and PHP) can be a nuisance. Here is a basic setup guide for bringing your Linux server for LAMP development environment.

RedHat / Centos 8

Starting with RHEL & Centos 8, there is a new package management tool "dnf" which replaces "yum". You may still use "yum", but we'll use dnf to illustrate the LAMP setup. Centos 8 has SSL root certificate issue, so we'll reinstall the ca-certificates package.

Posted By admin read more

Salesforce Visualforce Overview

Aug
28

Visualforce is a technology used in force.com for building custom user interfaces. It is analogous to Java Server Pages (JSP) with Java Server Faces (JSF) in Java technology. Visualforce uses Apex classes (controllers) containing business logic, and visualforce pages and visualforce components containing the presentation.

Posted By admin read more

Salesforce Apex Developer's Guide

Aug
27

This guide is written per SFv31, so if you're working in a future version -- you may have a slightly different menu structure. If you are new to Salesforce, you may want to create an account at http://developer.salesforce.com. This will allow you to create a developer ORG, which you may use to develop SF applications.

Posted By admin read more

[SOLVED] MySQL Error 1016: Can't open file: 'user_tracking.MYD'. (errno: 145)

Jul
02

We've been running osCommerce website flawlessly for over two years, but recently encountered the following MySQL error.

1016: Can't open file: 'user_tracking.MYD'. (errno: 145)

We're running mysql 3.23.58 version, and recently restarted the mysqld by killing the mysql processes. This may have corrupted the table file named above.

You may use phpMyAdmin to "repair" the corrupted table. Or, use the command line from the mysql client.

Posted By admin read more

Pages

Subscribe to Web Traffic Exchange RSS