Checklist for WCAG 2.0

Checklist for WCAG 2.0

WCAG 2.0 checklist Level A (Beginner) Guideline Summary 1.1.1 – Non-text Content Provide text alternatives for non-text content 1.2.1 – Audio-only and Video-only (Pre-recorded) Provide an alternative to video-only and audio-only content 1.2.2 – Captions (Pre-recorded) Provide captions for videos with audio 1.2.3 – Audio Description or Media Alternative (Pre-recorded) Video with audio has a second alternative 1.3.1 – Info and Relationships Logical structure 1.3.2 – Meaningful Sequence Present content in a meaningful order 1.3.3 – Sensory Characteristics Use more…

Read More Read More

Security HTTP Headers

Security HTTP Headers

X-Frame-Options: // Raw header X-Frame-Options: sameorigin // How to send the response header with PHP header(“X-Frame-Options: sameorigin”); // How to send the response header with Apache (.htaccess) Header set X-Frame-Options “sameorigin” // How to send the response header with Express.js app.use(function(req, res, next) { res.header(“X-Frame-Options”, “sameorigin”); next(); }); X-XSS-Protection // Raw header X-XSS-Protection: 1; mode=block // How to send the response header with PHP header(“X-XSS-Protection: 1; mode=block”); // How to send the response header with Apache (.htaccess) Header set X-XSS-Protection…

Read More Read More

Security Tips for Linux Servers

Security Tips for Linux Servers

1. Physical System Security Configure the BIOS to disable booting from CD/DVD, External Devices, Floppy Drive in BIOS. Next, enable BIOS password & also protect GRUB with password to restrict physical access of your system. 2. Disk Partitions It’s important to have different partitions to obtain higher data security in case if any disaster happens. By creating different partitions, data can be separated and grouped. When an unexpected accident occurs, only data of that partition will be damaged, while the…

Read More Read More

Facebook: Disable Video Autoplay

Facebook: Disable Video Autoplay

For computers: Go to your options drop-down menu in the top right. Click “Settings” Select the “Videos” link on the left. Turn the “Auto-Play Videos” from “ON” to “OFF” For Phones and tablet apps: You can adjust your auto-play settings to On, Wi-Fi only or Off. If auto-play is On, the data used depends on the amount of time you spend watching a video. If you scroll past an auto-play video in News Feed, your phone will use less data…

Read More Read More

Linux: Security Tips for New Users

Linux: Security Tips for New Users

Root: Don’t run as root.There are some tasks you must do as the root user. However, make sure you always type “exit” when you are done — or take advantage of sudo, which will automatically require you to re-authenticate as root after a timeout period. Do any and all of your normal tasks as a normal, nonadministrative user. If you don’t already have a regular user account (which should be nearly impossible with most distributions), stop whatever you are doing…

Read More Read More

15 Tips to Optimize PHP Script for Performance

15 Tips to Optimize PHP Script for Performance

It is essential for developer to optimize your script early in the development process itself. Following are the best practices for PHP script to write a optimized PHP code. Use Native PHP Functions As much as possible, try to use native PHP functions rather than writing your own functions to achieve the objective. For example, you can use range( b, k) to get an array of alphabets starting from b to k in sequence, if it is only needed once…

Read More Read More

Apache Performance Tuning Tips

Apache Performance Tuning Tips

Apache Specifics Remove unused modules – save memory by not loading modules that you do not need, including but not limited to mod_php, mod_ruby, mod_perl, etc. Use mod_disk_cache NOT mod_mem_cache – mod_mem_cache will not share its cache amongst different apache processes, which results in high memory usage with little performance gain since on an active server, mod_mem_cache will rarely serve the same page twice in the same apache process. Configure mod_disk_cache with a flat hierarchy – ensure that you are…

Read More Read More

SMTP Codes

SMTP Codes

Reply codes in numerical order Code Meaning 200 (nonstandard success response, see rfc876) 211 System status, or system help reply 214 Help message 220 <domain> Service ready 221 <domain> Service closing transmission channel 250 Requested mail action okay, completed 251 User not local; will forward to <forward-path> 354 Start mail input; end with <CRLF>.<CRLF> 421 <domain> Service not available, closing transmission channel 450 Requested mail action not taken: mailbox unavailable 451 Requested action aborted: local error in processing 452 Requested…

Read More Read More