Home » Archive

BlueGreenWeb.com Articles

Web Articles and News – Submit a Website Announcement for Free – Tampa Florida | Web related articles and information – contact us if you have a web related announcement you would like published on BlueGreenWeb .

Articles, Featured »

CodeAcademy DetectGoodInput Lesson

In the lesson for Basic Functions: Javascript Quick Start: Start Guide, part 4, Return Values:
The presented problem:
// If value is falsy…
The instructions give a hint on what to add, or rather what NOT to add:
You do not need to have Return ‘undefined’; as part of the IF statement.
so,
if (is falsy and not a string){} // put NOTHING in the {}
else
return ‘good input!’;
http://www.codecademy.com/courses/javascript-intro/4#!/exercises/3
function detectGoodInput

Articles »

Wondering where you can learn SharePoint Server 2010? The virtual labs at TechNet / Microsoft allow users to access the virtual labs to learn, complete with a list of tasks to complete.
http://technet.microsoft.com/en-us/windowsserver/sharepoint/bb512933.aspx

Articles »

<?php
// a multidimensional array, an array of arrays
$sample = array( array (‘master1′ => 800, ‘master2′ => ‘homer’),
array (‘master1′ => 1201, ‘master2′ => ‘ralph’),
array (‘master1′ => 23, ‘master2′ => ‘james’));
// a sorting function to compare the 1st value in each array in the array
function sortgood ($a, $b) {
return ($a['master1'] > $b['master1']);
}
// a PHP function which takes 2 values, the array $sample, and the user created function
usort($sample, ‘sortgood’);
?>
 
 
So, what happens when this code is run?
See the answer below the picture:

 
 
 
 
 
 
 
 
 
 
 
Nothing happens on the screen, but the array is now …

Articles, Featured »

How to Rename WordPress User Profile Fields

On the User Profile Edit page there are fields which you may want to rename instead of removing:
AIM
Yahoo
Jabber
All three of those fields are outdated. You could remove the fields, and add new fields such as Twitter and Facebook, or you can just rename the visible words on the page without adding new custom fields.
To rename the words a user will see when editing their profile you need to create a function which you will add to your WordPress theme’s function file. Most all WordPress themes will have this as functions.php …

Articles »

One of the best IT fields in 2010 and for many years to come is Database Administrator.
Most DBAs start out as programmers or developers.
Getting certification in SQL Server is recommended if you are seeking work in the field of Database Administration.
http://money.cnn.com/magazines/moneymag/bestjobs/2010/snapshots/7.html

Articles »

The NewsBowl website owner didn’t get the .org version of the educational website for kids. Now, someone has the .org version, and well…
Education Website’s Creator Fears His Domain Could Go to Pot
FOXNews.com – Education Website’s Creator Fears His Domain Could Go to Pot.

Articles, Featured »

WordPress 3.0 and Profiler Plug in Problem and Solution

The upgrade to WordPress 3.0 will cause the Profiler plug-in to no longer show newly added authors.
This is due to the new WordPress changing the wp_capabilities in the wp_usermeta field
Format for the previous versions of wordpress: a:1:{s:10:”subscriber”;b:1;}
Format for the new 3.0 version of wordpress: a:1:{s:10:”subscriber”;s:1:”1″;}
The $rolelist array searches for the previous version data for wp_usermeta.
The short solution is to add the new wp_usermeta format in the => none (see below)
Edit plugin: profiler/profiler.php
find $rolelist = … and replace with the code below
$roleslist = array(‘\’a:1:{s:13:\”administrator\”;b:1;}\”=>$administrator,
‘\’a:1:{s:10:\”subscriber\”;b:1;}\”=>$subscriber,
‘\’a:1:{s:6:\”author\”;b:1;}\”=>$author,
‘\’a:1:{s:6:\”editor\”;b:1;}\”=>$editor,
‘\’a:1:{s:11:\”contributor\”;b:1;}\”=>$contributor,
‘\’a:1:{s:10:\”subscriber\”;s:1:\”1\”;}\”=>$none);

The last element in the array is …

Articles »

HTTP/1.1 302 Found =>
Server => Sun-ONE-Web-Server/6.1
Location => http://tampabay.rays.mlb.com/
Content-Length => 213
Keep-Alive => timeout=60, max=75
Connection => Keep-Alive
Content-Type => text/html; charset=iso-8859-1
MLB.com needs to fix the redirect so that the DevilRays does not appear in the search results.
They MAY do this to avoid the showing of the longer url:
http://tampabay.rays.mlb.com/index.jsp?c_id=tb
Someday they will update…
301 devilrays.mlb.com to tampabay.rays.mlb.com
302 tampabay.rays.mlb.com to http://tampabay.rays.mlb.com/index.jsp?c_id=tb
The Tampa Bay Rays changed their name in 2007.

Articles »

For some owners of a Lexmark printer they will experience the “Align the Cartridges” dialogue box each time they want to print, causing the printer to print unwanted pages and consume ink. There appears to be no resolution to this problem.
A bug?
A feature to cause you to use up all of your ink printing test pages?
Anyone have a solution to this problem?

Articles »

Learn how to market your website online so you can have more visitors and better profits. Learn the tips and tricks used to generate more web traffic both nationally and internationally. Go beyond basic link building and empty Twitter posts to promote your business.