Dependency Injection Using MEF

1. Introduction
“Dependency Injection is a design pattern that takes away the responsibility of creating dependencies from a class thus resulting in a loosely coupled system.”

Or

“Dependency Injection means that this is done without the object intervention, usually by a framework component that passes constructor parameters and set properties.”

Read More…

Advertisements

Top 10 Most Important Things To Do After Installing WordPress

What do you do after installing WordPress? This is a common question asked by beginners. In this article, we will show you the top 10 most important things you must do after installing WordPress.

1. Change The Title, Tagline, Time zone, and Favicon

The first three steps can be combined into one because you can quickly make those changes in the same area of your WordPress Admin Dashboard.

Changing title and tagline of your WordPress site

To change these, go to your Settings in your dashboard and choose General. Change both your site title and tagline to something that relates to your site.

Changing timezone in WordPress

Now scroll down the page to update your timezone. This functionality is important to show the most accurate date on your site, and it also helps with scheduling posts.

Towards the middle of the page you’re on (in General Settings), you’ll find the option to set your zone. You can choose a city that is in the same time zone as you live in or set by UTC. To find the right UTC setting, you can search a site like this one here to make sure you select the right time zone.

Don’t forget to save your changes.

The final part of item 1 is updating the favicon. This is the little icon that appears in the browser tab next to your site title which is important for your site’s identity. Often people don’t change this which ends up showing either the default WordPress icon or their hosting provider’s icon such as Bluehost, etc.

The easiest way to add a favicon to your site is by following our guide on How to Add a Favicon in WordPress.

2. Change Your Permalink Structure

Unfortunately, the default permalink structure — the URL structure that tacked on the end of your site name — of WordPress is not very Google friendly. As that is the case, you should be sure to alter this to something else.

Changing permalinks in WordPress

Go back to Settings and then select Permalink from the menu. There you will find a few different choices for setting a new structure. The best ones to use are either the Day and Name or Post Name options.

Select the one you prefer and then save your changes.

3. Configure the Reading Settings

While in the Settings area of your dashboard, you should also configure the Reading settings. Here you can set what your front page display will be.

Reading settings

This part is great if you want to have a custom homepage to display your services and have a separate page to display all your blog posts.

Navigate over to the Reading option in the menu and decide if you want your front page to show your latest posts or if you want to use a static page. Make your choice and then save your changes. You can always change this one later, so don’t feel too pressured.

As a quick note, you can also make some of the above-stated changes using the Customize option in the front-end of your site if you are logged in. However, following this flow of things simply speeds up the process a little.

4. Delete Unused Themes

Most WordPress users will install and test a few themes before deciding on one that’s a keeper. Instead of leaving those unused themes installed, be sure to delete them. Themes even ones that go unused, will need updates.

Leaving them there can create the unnecessary chore of updating them. And not updating them can create a hazard to your sites safety as it can give hackers a way in.

Thankfully, deleting unused themes is a snap. Simply find the menu item named Appearance, and then go to themes. To delete a given theme, you need to hover over it and select Theme Details. After that, a window will open and the option to delete the theme will be available there.

5. Install a Cache Plugin

Why a cache plugin? Because it can help speed up your site. Caching helps take the load off your server and make your site faster. This is great for SEO as well as prevents your site from crashing during heavy load times.

Below are a couple of cache plugins that you can use in your WordPress site:

W3 Total Cache

W3 Total Cache – This plugin can likely lay claim to being the most powerful cache plugin available for WordPress users. It has a ton of options for boosting your site and is a popular plugin of choice for CDN integration. The plugin really does pack a punch and can easily mess things up if you’re not sure how to configure it properly. If you’ve never used the plugin before, it may be better to start small before using this one. However, if you’d like to be brave and use this plugin, be sure to check out our step-by-step guide for setting it up:

WP Super Cache – This one is a bit easier to start using, and yes, it’s still a great cache plugin. Simply install it and turn on caching, and you’re one step closer to a faster site. There are other options that come with the plugin, just be sure you know what you’re selecting before you hit save. Want some help with this plugin? Check out our guide below:

6. Improving WordPress Security

When it comes to your website, it is probably best to be of the philosophy that it’s better to be safe than sorry.

First security step that you can take is installing a backup plugin (we will come to that later). After that you need to protect your WordPress admin area.

WPBeginner uses Sucuri for security purposes. If you’d like to know why we chose this one over others, then be sure to give this post a read:

7. Install an Anti-Spam Plugin

No one likes spam.

Spammy comments are a huge headache for many WordPress site owners. Not only are they irritating, they’re also bad for SEO. To help alleviate the problems that come from this issue, you should install an anti-spam plugin on your site. Here are a few top choices:

Akismet

Akismet – This plugin by Automattic is a premium anti-spam plugin that does wonders for keeping that icky spam stuff out. If you decide to use Jetpack in your site, then you can use that account to activate Akismet for your site. If not, you’’ll need to follow the prompts for fully activating the plugin after install. The free version is limited but can be upgraded it you pay.

Anti Spam Bee

Antispam Bee – This is another great free plugin that helps to block out those pesky spammers. Even though the Akismet plugin does a better job, this one is a great option too.

Either way, be sure you use one.

8. Install A SEO WordPress Plugin

SEO is an important part of any website. To ensure that your blog posts are getting maximum results, you need to optimize them using an SEO plugin. Though these types of plugins don’t automatically boost SEO, they do help you make the most of your blog posts.

WordPres SEO plugin

A top choice for many is the WordPress SEO Plugin by Yoast. It’s easy to use and can even generate an XML sitemap at the click of the mouse. Want to know how to really boost the power of the plugin? Here’s our tutorial:

9. Optimize For Social Media Sharing via Sharing Plugins

Social Media

First off, is this really important? Yes, absolutely! You shouldn’t wait for your site to get traffic before optimizing your site for social shares. The best and easiest way to optimize your site for social shares is to use a Social Sharing Plugin.

There are hundreds of these to choose from, and some of them shouldn’t be used as they tend to slow down site speed. However, there are others that get the job done without bogging you down.

Here is a great article that narrows down the choice a bit:

10. Start Scheduling Regular Backups

Now that you’ve spent all that time setting up and customizing your WordPress site, you wouldn’t want to lose any of this right? Well, in that case, you should create regular backups.

Source: http://www.wpbeginner.com/beginners-guide

6 Free Plugins to Speed Up Your WordPress Site

Site speed plays a very important role in online business. It can increase or decrease the revenue of your online business, depending on how much time your site takes to load. There is a shocking relation between site speed and conversation rate, which is particularly true for e-commerce sites.

There are a dozen of reasons to improve the site speed, but the two most important ones are search rankings and user experience.

Search Rankings

When Google first announced site speed in web search rankings, it played a miniscule part. But overtime it has become one of the main development factors Google takes into account for ranking websites.

While page speed isn’t the only factor Google takes into account, pages that load faster and follow Google’s best practices for performance tend to rank better in Google.

Google also offers a wide range of tools and resources to help developers build faster websites via Make the Web Faster.

User Experience

KISSMetrics reported that 47 percent of users expect a page to load within two seconds. So, if your site takes more than two seconds to load, there is a good chance users will navigate away.

The Internet is filled with case studies, reports, and surveys on how page speed impacts site rankings and user engagement. People simply don’t want to wait. With that in mind, you should invest some time in improving the site speed – just like you would with any other part of your business.

In this article I want to share six free WordPress plugins that will help you increase your site’s traffic, user engagement, and revenue. Spending just a few minutes and installing these plugins can potentially have a big impact on the speed of your website.

WP Optimize

wp optimize

If you take your site seriously, you might want clean up your database. By default, WordPress stores every post, page, and comment including post revisions, trash data, and information from various plugins. This may not sound like a huge speed booster, but you can easily make substantial speed improvements by optimizing your database.

I rely on WP Optimize plugin for the task. It is great for beginner and intermediate users, because it does not require you to go to PHPmyAdmin or do any technical stuff. You can do everything from your WordPress dashboard.

WP Optimize helps you de-clutter your database by removing stale post revisions, spam comments, trashed items, and removal of transient options. It can also tell you your current database size and gives you an idea on how much space you can save with WP Optimize.

Note: If you are using this plugin for the first time, make sure to back up your database. It is always the best practice to have a backup, just in case anything goes sideways. Though, if you are hosted on a managed WordPress hosting like SEJ, then you can rely on staging feature to restore the previous version.

Digg Digg

It has proven that having social media buttons on your site increases the chances of getting your blog posts shared by 50%. Though, the opposite seems to work for e-commerce websites.

floating social bar

But most social media plugins load too many scripts and are amongst the slowest to load. Digg Digg plugin fixes this problem as it comes with lazy loading option, meaning your site visitors will be shown a fake button until a visitor hovers over the buttons for sharing. You can also add buttons at the top or bottom of your page.

W3 Total Cache

When it comes to improving the site speed, there are a lot of things that you can do. However, installing a cache plugin will have the biggest impact on your site.

The W3 Total Cache plugin is one of the most popular caching plugins available for WordPress. There is a good chance you will be able to increase your site performance by 10 times, as claimed by its plugin developers.

A caching plugin stores the images, CSS, and Javascript files of your website on the server, so it doesn’t have to load the website from scratch and every time you receive a visitor, instead the static version of your site is displayed. This saves a lot of resources and works with any type of website.

The plugin is not easy to configure, but if you have a basic knowledge of WordPress, it will only take five minutes to set up. Additionally, you can integrate it with a CDN service like MaxCDN, which works really well with W3TC plugin.

Other alternatives include: WP Super Cache and WP-Rocket.me. The latter one is a paid product and costs around $39.

WP Smush.it

Today, blogging is not just about high quality content, but is also about visual graphics (infographics, images, and slides). Take a look at any of the SEJ post and you will see every blog post has at least two images.

High quality content with visual graphics is essential to set your site apart from the rest, but you need to ensure the images are properly compressed and uses appropriate format. There are dozens of plugin available (even a desktop based application like Shrink-O-Matric) to help you get the better images, but one plugin that stood above from the rest is WP Smush.it.

The plugin works by reducing image file sizes and improving performance using the Smush.it API within WordPress. It also strips the metadata from JPEGs, and removes unused colors from indexed images.

If you don’t want to use a plugin, you can use a premium service like Kraken.io.

P3 Profiler

There are hundreds of thousands of WordPress plugins, most of them are useful, and will help you with one thing or another. If you want to add a new functionality, you can usually find a plugin. But plugins can also be responsible for increasing your site speed. And you never know which plugin is causing the trouble. Fortunately, there is a plugin for that called P3 Profiler.

P3 Profiler plugin

P3 Profiler scans the website to find out which plugins are causing a slow performance. It narrow downs the impact your plugins are having on your site’s load time.

Once you have figured out which plugins are causing are slowing down your website, you can replace them or remove them entirely.

BJ Lazy Load

Another great plugin to optimize the post images is BJ Lazy Load.

It allows you to lazy load post images, thumbnails, Gravatar images, and content iFrames, and replaces it with a placeholder. The images are only loaded as they are about to become visible in a user’s browser. You can also lazy load other images and iFrames in your theme by using a simple function.

Final Thoughts

Overall, the site speed is just one of the 200 factors Google takes into account when ranking a website. So, make sure to also invest some time on other aspects of your business.

By the way, don’t forget to test your site speed before and after installing these plugins to see how effective they really are. You can use Pingdom or GTMetrix, which are great tools for testing site speed.

Source: http://www.searchenginejournal.com/6-free-plugins-speed-wordpress-site

Google Blocks Thousands Of WordPress Sites Following Malware Attack

Security firm Sucuri reports that Google has blacklisted over 11,000 malware-infected WordPress domains, and over 100,000 sites in total have been affected by a new malware campaign from SoakSoak.ru.

By using a vulnerability found in the WordPress plugin RevSlider, SoakSoak modifies a file in a site’s WordPress installation and loads Javascript malware.

RevSlider is often used in WordPress themes, so many site owners may not even know they’re using the plugin, let alone that they need to update it to prevent a malware attack. Moreover, it’s not a plugin that’s easily updated, as Sucuri’s Daniel Cid points out:

“The biggest issue is that the RevSlider plugin is a premium plugin, it’s not something everyone can easily upgrade and that in itself becomes a disaster for website owner. Some website owners don’t even know they have it as it’s been packaged and bundled into their themes”

Visitors of infected sites may be redirected to a webpage that will attempt to download malware onto their computers. Google’s decision to block infected sites shortly after the vulnerability became known will hopefully prevent the malware from spreading any further.

If you believe your WordPress site has been infected by the SoakSoak malware, there is a list of resources in this WordPress Support thread that can help you correct the problem.

If you’re in the clear, then let this be a reminder that it’s incredibly important to keep your WordPress plugins updated in order to be fully protected against security vulnerabilities. Updating your plugins is just as important as keeping your WordPress installation updated to the most current version.

Source: http://www.searchenginejournal.com/category/wordpress/

Simple HTML5 Charts using the Canvas element

An Easy, object oriented client side graphs for designers and developers
HTML5-ChartsThis allows you to create rich dashboards that work on all devices without compromising on maintainability or functionality of your web application.

Simple and flexible HTML5 Based 6 types of Charts

Easy to use HTML5 & JavaScript Charting library built on Canvas element

  1. Line Charts
  2. Bar Charts
  3. Radar Charts
  4. Pie Charts
  5. Polar Area Charts
  6. DoughNut Charts

Show your statistic data in different ways. Each of them animated, fully customizable and looks great, even on retina displays. Chart.js uses the HTML5 canvas element. It supports all modern browsers, and polyfills provide support for IE7/8. Chart.js is dependency free, lightweight and offers loads of customization options.

Source: http://www.jqueryrain.com/

Learn to Say “No”

Here’s a mantra to help you re-learn this important word: “It’s okay to say no.” Some people, unfortunately sometimes even our supervisors, seem to think that saying no is an excuse or some kind of cop-out.

It’s funny. We spend the first two or three years of our lives being told no, and then the rest of our days, especially at work, forgetting everything we have learned about that little three-letter word. Saying the word “no” is something you have to learn again if you hope to gain a good work-life balance.

just-say-no

They make us feel like saying no is a personal failing, or even worse a personal insult. Whenever they try that on you, just repeat the mantra: “It’s okay to say no.”

It’s okay to say no when you are overwhelmed and can’t keep up, or when you feel that the request is unfair or unreasonable. When someone asks you to work late on Friday night and they wait until just before 5 to ask, it’s okay to say no.

If you have worked the last three weekends and they ask you to work a fourth, it’s perfectly fine to say no. Saying no is also acceptable if you physically can’t perform a function, or if it involves a task where you do not feel qualified or competent.

Source : http://workawesome.com/work-life-balance-2/work-life-balance-2

Process browser events on the server using AJAX

RSPA stands for Really Simple PHP and AJAX. It is a framework with components for processing browser events on the server using AJAX to provide interaction between the browser and the server without page reloading.

It can be used for calling PHP class functions from the browser side. It provides means to manipulate JavaScript objects on the browser page.

It can be used to manipulate common HTML page elements. It also provides custom page elements such as labels and auto-complete inputs.

It now works with PHP 4 and PHP 5

Download files from here