Latest Updates
Sep 2 2011 8:18 AM SEP 2 2011 8:18 AM

Javascript split/join vs replace.split(" ").join("") vs .replace(/ /g, "")Javascript Speed testing

Javascript

Recently I heard a extremely random agrument about a simple Javascript method.

Basically take a random string.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Multiply this about 500 more times... And then run these two seperate items...

var str = "Lorem  ipsum dolor sit amet, consectetur adipisicing elit, sed do  eiusmod  tempor incididunt ut labore et dolore magna aliqua. Ut enim ad  minim  veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip  ex ea  commodo consequat. Duis aute irure dolor in reprehenderit in  voluptate  velit esse cillum dolore eu fugiat nulla pariatur. Excepteur  sint  occaecat cupidatat non proident, sunt in culpa qui officia  deserunt  mollit anim id est laborum.";
alert( str.split(" ").join("") );
alert( str.replace(/ /g, "") );

Which one is faster?


Read More
Aug 31 2011 12:04 PM AUG 31 2011 12:04 PM

XML ParsingSpeeding Up Your Site

HTML | Javascript | XML

So you have a website and that site gets millions of hits per day. Either you are running a silly static site that you manually update or you have some intense CMS that caches using all sorts of methods.

XML happens to be one of the biggest tools of the trade.


Read More
Aug 29 2011 1:05 PM AUG 29 2011 1:05 PM

Content Type EncodingUTF-8, ISO, importance of setting an encoding type.

HTML | PHP

Encoding is simply one of the most strangest topics with websites.

Usuaually I find issues when translating between encoding types such as UTF-8 to ISO or any variation of this. Setting the encoding type of the page is extremely important. "Obviously." Otherwise your browser trys to guess what it is and may fail at it. Along with this hackers can easily change the encoding type and get around your XSS filters. Which will then allow them to do XSS attacks.


Read More
Aug 29 2011 10:13 AM AUG 29 2011 10:13 AM

JQuery TipsPerformance | Speed | Tips

JQuery | Javascript

When using JQuery it is easily abused with how many shortcuts and routes you can do the same thing.

I could go through my list of things to help with optimization, but this guy does such a good job...

ArtzStudio


Read More
Aug 25 2011 9:43 AM AUG 25 2011 9:43 AM

MySQL Optimization10 Things to Optimize MySQL.

MySQL

Recently I was given a great link that gives ten great ways to optimize MySQL. With its may open ended methods that leave you crossed which direction to go. I found this article extremely helpful.

20Bits By Jesse Farmer


Read More
Aug 22 2011 9:00 AM AUG 22 2011 9:00 AM

Shaunware CMS V1PHP Content Management Systems

Custom Frame Work | JQuery | CSS | HTML | Javascript | PHP | MySQL

Shaunware is ran on its very own content management system (CMS). It uses PHP/PHP5, MySQL, Javascript (Jquery), CSS/CSS3, HTML/HTML5 and more.

Here is a small list of features:

  • Unlimited number of sites to hook into.
  • Targeting content / tagging content to pages/tags.
  • Unlimited varations of content types. Ex: Articles, Banners, and more...
  • Records impressions and clicks on specific content types.
  • Email Campaigns - Send HTML emails to a list of registered members.
  • User/Member Handling - Allows extensive registration details for membership base sites.
  • Read more...

Read More
Aug 19 2011 11:31 AM AUG 19 2011 11:31 AM

PHP Stripping Certain Characters.Remove everything but Alphanumeric, spaces, dashes, and underscores.

HTML | PHP | Tutorials

Filtering inputs is often a huge issue when figuring out which method is best. Typicallly its a matter of what exactly are your needs. Asking these few questions can resolve the problem.

  1. Is the input needing more than letters a-z and 0-9?
  2. Does the input need to be able to allow some tags but not others?
  3. Can you filter everything out and not worry about what it returns?
  4. Can you convert html characters to their entities so it still displays properly?

Read More


Tweets

  • Feb 07, 2012 10:34 AM
    shauncs: Is there a way to uninstall child 2.0 squeal application? It is starting to kill my ears... @maddoxcs

  • Feb 02, 2012 9:23 AM
    shauncs: NASA reached Dark Side of the Moon... No Robots, Space Bridge, or Alien Space craft found... http://t.co/HxagPK1d

  • Jan 28, 2012 2:02 AM
    shauncs: Drake Curtis Strickland - Born 1/27/2012 7:48 PM - 7.6 Pounds - 19 7/8 height. Emergency C-Section. Mom & Baby are doing great!

  • Jan 27, 2012 1:18 PM
    shauncs: I'm in a group video chat with 1 other person - Click to watch or join: http://t.co/XakgdJG9

  • Jan 27, 2012 12:53 PM
    shauncs: I'm in a group video chat with 1 other person - Click to watch or join: http://t.co/PnGrIGKV

Social Media

Categories