Developer Shed
Dev Shed Tutorials at Dev Shed. DevShed is a community focused on both beginner and advanced tutorials in Java, C, PHP, Python, MySQL and Ruby-on-rails...amongst others.
Updated: 9 hours 59 min ago
Integrating MailChimp with Joomla: List Management
The JoomlaMailer Signup Plugin The JoomlaMailer plugin allows core Joomla! features and third-party extensions (Community Builder and JomSocial) to automatically subscribe users to one of your MailChimp lists. In other words, when a new user registers at your Joomla! website, the user will be automatically subscribed to the selected list. This plugin does not need to be enabled for proper function of JoomlaMailer. To enable the plugin, navigate to Extensions - gt; Plugin Manager, then click System - joomlamailer MailChimp Signup. Select Yes next to Enabled to enable the plugin. In the Newslet...
Categories: PHP
App Promo Survey Displays Developer Struggles
To come up with the data for its First Annual Developer Survey, App Promo collected opinions from over 100 qualified app developer participants between April 4 and April 23, 2012. While the survey provided plenty of interesting feedback from its participants, perhaps its most eye opening finding was the fact that 59 percent of developers said their most successful app failed to generate the revenue necessary to break even with their investment into the project. Add to that the 80 percent who said that they could not support a standalone business with the revenue generated from their top app,...
Categories: PHP
Lists and Arguments in Perl
Lists Are One Dimensional Recall that all lists and all arrays are one dimensional. If we have this list: (@a, @b) it becomes a one-dimensional list containing the contents of @a followed by the contents of @b . This is an important rule when it comes to passing arrays into functions, since they will be passed in as a one-dimensional list. This is illustrated in the following example: #!/usr/bin/perl -w # passarrays.pl use strict; my(@nums1, @nums2); @nums1 = (2, 4, 6); @nums2 = (8, 10, 12); process_arrays(@nums1, @nums2); sub process_arrays This program creates two 3-element ar...
Categories: PHP
Variables and Arguments in Perl
Lexical Variables (aka Local Variables) The range of effect that a variable has is called its scope, and lexical variables declared with my() are said to have lexical scope. This is also known as local scope. That is, they exist from the point where they're declared until the end of the enclosing block. The name lexical comes from the fact that they're confined to a well-defined chunk of text. my $x; $x = 30; print $x; # This $x is, and always has been, 30. Great. We can now use variables in our subroutines in the knowledge that we're not going to upset any behavior outside them. Let...
Categories: PHP
MySQL: How to Use the GRANT Statement
When working with MySQL, there will probably come times when you need to grant privileges to certain user accounts. This task is executed using the appropriately named GRANT statement. In addition to the statement's ability to grant user privileges, the GRANT statement functions as a way to declare specific characteristics related to an account. Among these are any limits when it comes to accessing certain server resources, as well as the use of secure connections, just to name a couple. Before using the GRANT statement to assign privileges to user accounts, you should know that you will ne...
Categories: PHP
Integrating MailChimp with Joomla: Building a Subscriber List
Creating a Subscriber List Before you can use JoomlaMailer to its full potential, you will need to create a subscriber list. At the time of this writing, it is not possible to create lists using JoomlaMailer; therefore, you will need to create lists through MailChimp. Click the Lists link in your MailChimp dashboard. Since this tutorial will show you how to create the list, there is no need to watch the video unless you really want to. Click the Create Your First List link. Enter in the required information. Choose a descriptive list name--one which accurately describes the specific use for ...
Categories: PHP
Apptopia Market Helps Developers Recoup Investments
As the mobile market has taken off in popularity with consumers around the world, so has the app universe. Newer smartphones are truly impressive with all the functionality they can provide, but when you combine them with some highly useful or entertaining apps, that functionality becomes even better. With this being the case, more and more consumers are flocking to purchase smartphones. The increase in demand for smartphones that is putting them into the hands of a wider audience has in turn boosted the need for apps. Many developers currently in the app race and those looking to enter hop...
Categories: PHP
Understanding Scope and Packages in Perl
Understanding Scope It's now time to have a look at what we're doing when we declare a variable with my() . The truth, as we've briefly glimpsed it, is that Perl has two types of variable. One type is the global variable (or package variable), which can be accessed anywhere in the program, and the second type is the lexical variable (or local variable), which we declare with my() . Global Variables All variables in the program are global by default. Consider this code: #!/usr/bin/perl -w $x = 10; $x is a global variable. It is available in every subroutine in the program. For instance, ...
Categories: PHP
Is Fragmentation a Plus for App Developers?
It is easy to see why fragmentation and the diversity of all the smartphones hitting the market under different operating systems can seem like a huge obstacle to app developers. While Apple's iOS and Google's Android platforms are by far the most popular in the app race, BlackBerry and Windows Phone also have certain characteristics that may appeal to some who are interested in creating apps for consumption. So, with four different major platforms open for development, how does a single app developer or a firm tackle such diversity? Not only is each platform different in many ways, but yo...
Categories: PHP
MySQL: Creating, Listing, and Removing Databases
The various topics we are covering in this tutorial are far from advanced. They are as basic as they come, but they are important if you are new to MySQL. With that being said, let us jump into the first part of the tutorial, which is how to create a new database in MySQL. How to Create a Database in MySQL It is rather obvious that if you are planning to work with databases in MySQL, that you must know how to create one first. This, of course, applies if you have no other pre-existing databases to work with and want to begin with a fresh slate. Luckily, creating a database in MySQL is quit...
Categories: PHP
PHP Array Functions: array_change_key_case
The array_change_key_case function allows you to manipulate the textual data in an array by transforming it into uppercase or lowercase. Syntax: array_change_key_case(array, CASE_LOWER or CASE_UPPER) The array is the name of the array whose values you wish to convert to upper or lowercase. The parameter CASE_LOWER or CASE_UPPER is used to determine whether or not you are going to convert the values in the array to upper or lower case. Programming Samples and Usage: lt;?php $test = array ( quot;a quot; = gt; quot;Superman quot;, quot;b quot; = gt; quot;Batman quot;, quot;c quot; = gt; qu...
Categories: PHP
Integrating MailChimp with Joomla
While Joomla! provides enough basic features to run a small website, its robust extension support can be used to develop complex websites capable of serving content to tens of thousands of visitors. When websites become this large, staying in touch with the user base can become a daunting task. One of the best methods for keeping in touch with visitors is through the use of email marketing, or in other words, newsletters. By allowing your users to register and subscribe to your newsletter, you can accomplish several things: You can drive traffic to your website by inviting recipients to read ...
Categories: PHP
Arguments and Return Values in Perl
Passing Arguments into Functions As well as being set pieces of code to be executed whenever we need them, we can also use our user-defined functions just like Perl's built-in functions-we can pass arguments (aka parameters) to the subroutine and expect an answer back. Just like with Perl's built-ins, we pass parameters by placing them between the parentheses: my_sub(10,15); What happens to them there? Well, they end up in one of Perl's special variables, the array @_ , and from there we can get at them. We'll illustrate this with a subroutine that takes a list of values, adds them up, a...
Categories: PHP
MySQL: Create, Show, and Describe Database Tables
You do not have to be a genius to create a table in MySQL. In fact, it is a rather simple process. Once you have your database created, you have plan out and implement its structure. In other words, you must begin to answer some questions, such as what tables do you want your database to have? What information do you want those tables to store? What columns do you want each table to have? Answering these questions can get a little tricky, depending on the data you are working with. You want to be as descriptive as possible with your columns, but you do not want to overdo it. This tuto...
Categories: PHP
PHP array_combine Function
This function takes two existing arrays and combines them into one array. Note that the first array must contain the key values that you want, while the second array must contain the values. Syntax: array_combine(name of the first array(keys), name of the second array(values)) Programming Samples and Usage: lt;?php $test = array ( quot;a quot;, quot;b quot;, quot;c quot;); $test2 = array ( quot;Superman quot;, quot;Batman quot;, quot;Sandman quot;); print_r(array_combine($test,$test2)); ? gt; The above code takes the values in the array $test (representing the keys) and combines them wi...
Categories: PHP
Juniper Networks: Android App Malware Increasing
Security firm Juniper Networks recently released statistics that put the malicious Android app problem on display. While many apps provide extended functionality to Android owners via entertainment, productivity, and more, Juniper reported that the known instances of Android-based malware have skyrocketed on a monthly basis. Virtually all the instances were tied to malicious apps, and the number of detections has grown from 400 in June of last year to a whopping 15,507 in February of this year. Hundreds of thousands of smartphones and other Android devices have been infected so far, and whi...
Categories: PHP
PHP array_chunk Function
This function takes an existing array and breaks it up into two or more arrays. Syntax: array(array, array size, true/false) The array signifies the array you wish to use. The size is the number of elements that the new arrays will have. The true/false value is technically known as the preserve_key. It is optional and basically dictates whether or not the keys from the originating array are quot;preserved quot; or not. Programming Samples and Usage: lt;?php $test = array ( quot;a quot; = gt; quot;Superman quot;, quot;b quot; = gt; quot;Batman quot;, quot;c quot; = gt; quot;Sandman quot...
Categories: PHP
MySQL Data and Table Types
Before we jump into the specifics, we should look at why we should go over the topics of MySQL data and table types first. In terms of MySQL data types, knowing how to differentiate between them will help you implement them effectively into your future designs of database tables. As for MySQL table types, knowing how to manipulate all of their variations will come in handy when you want to get the most out of your application's performance. So, now that you have a bit of an introduction to the importance of MySQL data and table types, it is time to break down each topic even further. Let us...
Categories: PHP
Developer's Losing Interest in Android?
Research firm IDC and Appcelerator, a mobile development platform vendor, recently released the results of a study where they surveyed over 2,100 app developers to get their opinions on mobile platforms and development. Of the survey's participants, 78.6 percent showed interest in developing apps for Android smartphones during the first quarter of 2012. Although that number is rather high, it's a decrease from the 83.3 percent who said they would participate in Android development in the fourth quarter of 2011 and the 87 percent surveyed during the first quarter of 2011. Mike King, Appcelera...
Categories: PHP
McAfee Releases Audit Plugin for MySQL Users
Ideal for small and medium-sized businesses, but also valuable for larger organizations, the MySQL audit plugin allows users to collect comprehensive activity audits from their databases that offer in-depth detail and help to satisfy audit requirements. The way in which McAfee addresses database security allows the company to provide solutions to organizations that often face troubles when trying to properly secure their databases. McAfee's successful approach is demonstrated in the MySQL audit plugin's full set of features, which begins with total visibility into the status and vulnerabiliti...
Categories: PHP

