26Jul

Building A Successful Marketing Campaign Using Math?

FILED IN Mathematics No Comments

Proper Sample Size The first thing to determine is if your sample size (the number of impressions each variation in your test received) is large enough to be considered useful. The formula below is simplified to serve marketing test purposes easily. It’s based on the formula found here. Once you’ve determined the needed sample size [...]

26Jul

Writing Arrays to CSV or Other Delimited Files

FILED IN Php | Tutorials No Comments

Often, in the past when I wanted to write data to a file I would load up and array, iterate over it, and then insert tab and new line breaks so that I could create a CSV. Well, those days are long gone now that PHP5 has included this awesome and useful function fputcsv(). It [...]

, ,

26Jul

A Faster Array Search in php

FILED IN Mathematics | Php | Tutorials No Comments

Php does a very good job at creating predefined methods that are optimized by default. However, sometimes with a little extra effort on our parts we can optimize a procedure even more. On the table today: the in_array() method. It is a very useful array allowing the user to search an array for a given [...]

, , ,

04May

Parsing a CSV File in PHP

FILED IN Php | Tutorials No Comments

Ok so it is one of the most common data files in the world: the CSV (Comma Separated Values). So here is all you need in PHP to extract the data from the file. The data is exploded into an array ($data) and can be accessed via the array index. It is simple and very [...]

, , ,

16Apr

Resetting an Array Index in PHP

FILED IN Php No Comments

After filtering an array indices are removed from the array resulting in errors while trying to loop over the index. Therefore, one needs to reset then index so that it follows a logical order (1,2,3..) instead of (1,3,6,7…). Luckily, PHP doesn’t have a defined method to do this, but it does have another method that [...]

,

15Apr

Using the array_filter function within a class

FILED IN Php | Tutorials No Comments

When using the array_filter method in PHP I attempted to make my callback function a private method within my class. Upon trying to execute my script I recieved an error telling my that I had not defined a proper call back method. After searching for several minutes I came across this snippet of code and I hope it works for you as well.

,

15Apr

Downfalls of the Agile Development Cycle

FILED IN Development No Comments

The Agile development methodology is supposed to be one of the great new advances in software development. Traditional waterfall techniques provide slower production time and are more restricted to what the initial design plans are. Agile was supposed to allow for quick turn around and delivered results within weeks rather than later. Here I would [...]

, ,

08Apr

Simple Search Engine PHP/MySQL

FILED IN Php | Tutorials | mySQL 2 Comments

Having a search engine on your site can be a great thing. Many times users prefer searching rather than browsing in order to find something on your site. Google does offer site search that will index your site, but I like many other people prefer to keep things in-house so to speak. Therefore, I created [...]

, ,

08Apr

Simple Search Relevance in mySQL

FILED IN Tutorials | mySQL No Comments

Many times when one wants to build their own search engine, he or she wishes to sort the results by relevancy. MySQL provides some useful syntax to make this possible. Below is a short code snippet to a simple relevance calculation and order by it. ORDER BY ( ( CASE WHEN column_name LIKE ‘criteria’ THEN [...]

, ,

01Apr

Creating a Home Recording Studio

FILED IN Audio No Comments

Everyone wants to be a rock star, party like one, and of course make money while doing it. The truth is a lot of us will never be able to afford to buy the studio time that will get us there. In recent years though the pains of recording an album have become less due [...]

, , , , , ,

TOP