Beefing Up WordPress Security

If you are serious about your WordPress-based website, then you should also be serious about WordPress security. A search for WordPress at the National Vulnerability Database shows that WordPress has had an increasing number of vulnerabilities each year, with a whopping 342 in 2014. The number of vulnerabilities has decreased significantly for 2015, but the number is still fairly high.

This means that if you use WordPress, and you are not taking extra security precautions, your site could be vulnerable.

Luckily, there are some fairly quick and easy ways to beef up your WordPress security.

Address WordPress Vulnerabilities

You need a database to use WordPress; but if you share that database with other web applications, it will make your site more vulnerable. Instead of using a shared database, create a database specifically for WordPress so that your data is compartmentalized and contained.

You should also create a user account specifically for this database, and make this the only account that has access, and has limited access to the SQL commands. Do not use the default admin username because that would be too easy to crack.

You also need to create a strong passphrase for this account rather than the usual password. Passphrases are often easier to remember, and they can be harder to crack. To be most effective, use a phrase that is unusual, but has meaning to you.

You should also lock down your index and protect your WordPress Admin files by editing the .htacces file.

To lock down the index, making it invisible to browsing you would add the following line to the .htaccess file: Options All –Indexes.

To protect your Admin files, you can allow access for a specific IP address, or range of addresses, and deny access to everything else. You need to put a .htaccess in the wp-admin with the following lines:

  1.  Order Deny, Allow
  2.  Allow from ##.##.##.## (where the “##”s are the numbers in the allowed IP address or range)
  3.  Deny from all

You can also set a user name and password combination for an extra layer of security.

Address Vulnerabilities on Your Computer

Creating a secure database is all well and good, but you will still be vulnerable if your computer isn’t protected. PC users have been using antivirus and internet security products for years, while Mac users have historically lagged behind due to the Mac’s perceived invulnerability to viruses and attacks. Unfortunately, hackers are now writing viruses and other malware to target Macs, leaving many Mac users vulnerable.

While Macs do have some built-in security features, industry leaders like Trend Micro have developed internet security and antivirus software for Mac operating systems.

You should also make sure that your operating system is up-to-date with the latest security patches, as well as the WordPress software.

These are just a few of the ways that you can beef up your WordPress security and give your site an extra measure of protection.

WordPress also provides a lot of information on security and maintenance, as well as updates for the latest version of WordPress.

 

5 Reasons You Should go to School for Web Design

Just as the name suggests, a web designer is a person that technologically and creatively designs websites and other digital platforms that are both functional and aesthetically pleasing. The purpose of such design is to help communicate with seekers and convert action. Although the profession has been around since the arrival of the internet, web designers have been getting a lot more attention over the last few years.
Digital media continues to grow in relevance, which has inspired many prospects to hone their web designing skills. The fact that web design is trending, and that the profession makes geekery look cool are reason enough to seek this path. However, there are many other valuable reasons to consider learning the skills of web design, below are just five.
5 Reasons You Should go to School for Web Design:

  • Learn new skills:Web design degree courses offer students a wealth of knowledge that can advance their skill set and open the door for more opportunities. As a student, you will learn web design production (HTML/CSS) as well as an overview of SEO, animation, knowledge of WordPress, graphic design, javascript and a whole lot more.
  • Express your creativity:Choosing the perfect colors, fonts, layout and structures to fit the messages of the project and your client’s needs is an artistic process. Each new project you develop will allow you to express your creativity as ideas and concepts turn into living websites and digital media.
  • Web design will always be in demand:There are literally millions of people surfing the web at any given moment – these people are either seekers or givers. Seekers are people that visit websites to find information and givers are the entities that supply it. Web designers are the invisible glue that keeps the flow of seekers and givers in balance. Because the web is so authorized, web designers will always be in demand.
  • Versatile career opportunities:Many career opportunities can stem from holding a degree in web design. Almost every company has a web presence nowadays, therefore, knowledge of programming language and design is highly valued. You can also choose a career as a general web designer or web content specialist, game designer or as a multimedia designer just to name a few. Additionally, with web designing, you can either choose to work for a company or freelance on your own. And because the process is mostly virtual, you can telecommute and choose to work in your comfortable in your own home.
  • Rewarding career choice:Web designing is rewarding on many fronts. If you master your skills and promote yourself effectively then you can land quality clients that pay lucratively. In addition to funding financial security, building your portfolio of past design project and happy clients will give you a sense of personal satisfaction that can enhance your self-esteem and self-value.

If you enjoy technology and creativity then web design may be a great fit for you. Most high-quality web design schools offer financial aid to help curb the cost of tuition and flexible classes to complement your schedule.

 

Computer Science .NET mini-project – Car Rental Management System

This is a database driven mini-project written in VB.NET implementing a simple Car Rental Management System. The project uses embedded SQLite database and is lightweight and has good UI.
The software lets the user manage fleet of vehicles, dispatch them to customers, reclaim a vehicle and generate invoices. Download the source code from the link below.

Screenshots

Car Rental Management System Screenshot
Read more…

 

Change color of status bar in android apps programmatically

Android Lollipop brought with it the ability to change the color of status bar in your app for a more immersive user experience and in tune with Google’s Material Design Guidelines. Here is how you can change the color of the status bar using the new window.setStatusBarColor method introduced in API level 21. Changing the color of status bar also requires setting two additional flags on the Window; you need to add the FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS flag and clear the FLAG_TRANSLUCENT_STATUS flag.

Working Code :

Window window = activity.getWindow();

// clear FLAG_TRANSLUCENT_STATUS flag:
window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);

// add FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS flag to the window
window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);

// finally change the color
window.setStatusBarColor(activity.getResources().getColor(R.color.my_statusbar_color));

Keep in mind that using this requires an API level of 21 at least.
The color my_statusbar_color needs to be defined in your color resources

 

Blurred text effect using CSS

The following quick-tip shows how to obtain a blurred-text effect using purely CSS. The trick is to set the color property to transparent and set an appropriate text-shadow

Code

p.blur {
color:transparent;
text-shadow:0px 0px 4px #333333;
}

Output

Live Example

 

How to take full-page screenshots with Firefox’s developer toolbar

Taking screenshots of webpages is a handy and quick way of saving interesting stuff for later reference or for documentation purposes if you are a developer. While the quickest and easiest way is to just hit the Print Screen key on your keyboard and save the screenshot in an image editor, sometimes you may require to capture more than what is visible of the webpage in the current window.
With Firefox’s developer toolbar it is quite easy and straightforward to save screenshot of the complete webpage rather than just the current view-port. Here is how you can save a full-page screenshot of any website using Firefox without using any add-ons:

  • Open Developer Toolbar by going to Tools->Web Developer->Developer Toolbar or use the shortcut Shift+F2
  • A command-line will open at the bottom of the page, here type the command: screenshot filename.png --fullpage
    You can enter any name of your preference in place of the ‘filename.png’ parameter. The screenshot will be saved to your Downloads folder. You can even skip the filename parameter and Firefox will assign a name for the file containing current timestamp.
 

C++ tip: Check if input is of valid data type using cin.fail()

When accepting user inputs in C++ console applications using cin object, it is always a good idea to check the input stream for possible errors.

If you intend to read a numeric value using cin and the user inputs a character or string instead then it can lead to unexpected results and run-time errors later in program.

For example if you are using a do…while loop to implement a menu driven program, and instead of a numeric choice the user accidentally (or maliciously?) enters a character, your program can run into an infinite loop.

cin.fail() returns true if the input stream encounters errors, most commonly which happens due to reading incorrect data type.

Here is how you can prevent it:

 int i;
 cin>>i;
if(cin.fail()) {
  // do error handling here
}

You can also check for cin.fail() using the shortcut method :

if(!cin) {
  // this is same as cin.fail()
}

When cin fails, it is also very important to clear the input stream of any garbage value and reset the internal error flags. It can be done using the cin.clear() and cin.ignore() methods as follows :

if(!cin) {
 cin.clear(); // clears error flags
 cin.ignore(999,'\n'); // the first parameter is just some arbitrarily large value, the second param being the character to ignore till 
}

Putting it all together

Here is a more robust way to read any input from user which uses the functions cin.ignore() and cin.clear() :

 int i;
 while(!(cin>>i)) {
 	cin.clear();
 	cin.ignore(999,'\n');
 	cout<<"Invalid data type! Please enter 'i' again";
 }
 
webBluePrint

Top Mistakes to Avoid while Designing A Website

While using the Internet, sometimes you don’t find some sites as attractive as others are. While web designing is not a difficult task, still few people fail to accomplish his job. It is very important for a website to be user friendly and interactive. It helps in directing visitors towards your site. An ill designed website will drive your visitors away from your site.
Read more…

 
© 2015 All rights reserved | Powered by WordPress
Back to top ↑
Theme by dynamicguru.com