PHP htmlentitieshtmlentities with input text boxesHTML inside of input text boxes
PHP | TutorialsEver had issues with putting HTML inside of HTML text boxes? This can be a pain as often times you will find different browsers will read it fine, but then some will break it.
In PHP there is a wonderful function called "htmlentities."
Read More
Javascript split/join vs replace.split(" ").join("") vs .replace(/ /g, "")Javascript Speed testing
JavascriptRecently 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
XML ParsingSpeeding Up Your Site
HTML | Javascript | XMLSo 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
Content Type EncodingUTF-8, ISO, importance of setting an encoding type.
HTML | PHPEncoding 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
JQuery TipsPerformance | Speed | Tips
JQuery | JavascriptWhen 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...
Read More
MySQL Optimization10 Things to Optimize MySQL.
MySQLRecently 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.
Read More
Shaunware CMS V1PHP Content Management Systems
Custom Frame Work | JQuery | CSS | HTML | Javascript | PHP | MySQLShaunware 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
PHP Stripping Certain Characters.Remove everything but Alphanumeric, spaces, dashes, and underscores.
HTML | PHP | TutorialsFiltering 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.
- Is the input needing more than letters a-z and 0-9?
- Does the input need to be able to allow some tags but not others?
- Can you filter everything out and not worry about what it returns?
- Can you convert html characters to their entities so it still displays properly?
Read More
Hacking the WebXSS Attacks | SQL Injections | DDOS Attacks
Javascript | PHP | MySQL | Hacking
Hacking seems to be a common occurance now days. While it seems to be a somewhat complicated process in reality it is mostly simple hacks that result in tremeduous damage, costs, and lose of data.
Two Types of Web Hacks
XSS and SQL Injections. There are obviously more such as DDOS attacks, but those are short term.
What are they?
XSS is simply inserting Javascript into a page. An example of this is a simple alert.
<script>alert("Hi!");</script>
SQL Injections are a wider range of possibilities. They allow you to delete an entire database, to outputting important information. Or even logging in as an adminstrator.
Read More
New Site!
CSS | HTML | Javascript | PHP | JQuery | HTML5 | MySQL | Custom Frame Work | Categories | Tutorials | Games | Movies | Imagemagick | XML | Unix
Finally I have recreated my website. It is using a content system I created from the ground up. I will be writing more on this system in the future. A small list of features this system can do:
- Manage Multiple Sites in one.
- Member Registration
- Banners
- Page Control / SEO
- And so much more...
Read More
- Javascript
- CSS
- PHP
- HTML
- Java
- Flash
- Actionscript
- MySQL
- Wordpress
- Custom Frame Work
- JQuery
- Games
- HTML5
- Imagemagick
- GD Library
- Hacking
- Tutorials
- XML
- .htaccess
- Plugins
- Websites
- TinyMCE
- Unix
- Ubuntu
- Apache
- Web Services
- JSON
- Startups
- Nerdy
- Apple
- Macbook
- Network
- Roku
- Rant
- Mobile
- Reviews
- Linux
- Windows
- Mark II 5D
- Cannon
- Photography
- Photoshop
- Beginner
- Intermediate
- Advanced
- Deals
- Terminal
- Movies
- Transformers
- 3D Modeling
- Transformer Customizing
- 3D Printing