Blog

Archive for Web Design

Configure your WordPress website with High-performance, distributed object caching system : Memcache

WordPress is a great piece of blogging / CMS software. If your running a WordPress site and your having growing pains, you can combine the two to handle increased traffic and, more than likely, get pages to load faster for everyone.

WordPress has built-in support for extensible caching, but by default, it only valid for one session. While this helps speed up page loads / reduce server load for individual users, caching the objects in a non-session-exclusive (persistent) cache has much more potential for performance improvements and generally scales better. (You can read more about built-in WP_Cache mechanisms here: http://codex.wordpress.org/Function_Reference/WP_Cache)
We recommend and have successfully implemented the WordPress plugin Memcached object cache (http://wordpress.org/extend/plugins/memcached/), which is trivial to install / configure. By default, XeonBD’s all shared servers are running a single memcached server on the same server that PHP is running on (i.e. 127.0.0.1 or local host). It also having the port 11211, which is the “standard” memcached port.

memcached actually installed, running and accepting connections on whatever you configure Memcached object cache to use (127.0.0.1:11211 is again, the default).

Installing the actual adapter that lets WP_Cache use memcached is just a matter of putting the object-cache.php into your wp-content directory. If your set up using the defaults, it should just start working immediately. This, in combination with the fantastic WP-Super Cache-Plus plugin (http://wpscp.trac.armadillo.homeip.net/) will allow your site to handle much more traffic than would otherwise be possible.

Posted in: Featured, Hosting Service, IT, Platform, Server, Web Design, Wordpress

Leave a Comment (0) →

Easiest way to fetch twitter status

You have a website and you have a twitter account. Surely you want to show your twitter status on your website, if i ain’t wrong :D .

Please check the following different steps to get the status and show it on your website,

1. Fetch Status Using php,

Place the code bellow inside your function.php file. Don’t forget to change the TwitterProfileName with your twitter profile name.

function parse_feed($feed) {
$stepOne = explode(“<content type=\”html\”>”, $feed);
$stepTwo = explode(“</content>”, $stepOne[1]);
$tweet = $stepTwo[0];
$tweet = str_replace(“&lt;”, “<”, $tweet);
$tweet = str_replace(“&gt;”, “>”, $tweet);
return $tweet;
}

function getTweet(){
$feed = “http://search.twitter.com/search.atom?q=from:TwitterProfileName&rpp=1″;
$twitterFeed = file_get_contents($feed);
echo parse_feed($twitterFeed);
}

Now wherever you like to show the twitter status just call the getTweet() function.

2. You can also fetch the JSON using PHP like this (replacing your username),

<?php
$json = file_get_contents(“http://twitter.com/statuses/user_timeline/username.json”);
$json = json_decode($json, true);

// to display the current status use the following one
echo $json[0]['text'];

// to display the last 3  status use the following one
for($i=0; $i < 3 && isset($json[$i]); $i++)
{
echo $json[$i]['text'].’<br>’;
}
?>

Posted in: Featured, General, Open Page, Web Design

Leave a Comment (0) →

XeonBD is best for Joomla Web Host!

Tired of looking for best, secured, reliable as well as low cost Joomla web hosting! You have come at the right place to have a breath of reliability and satisfaction. Along with the numerous pleasured clients of XeonBD (Xeon Software Limited); we proudly claim that XeonBD is one of the best hosts for Joomla hosting. Here comes the question, Why! This article is to highlight those precious and affordable infrastructures of XeonBD to let you realize why we claim that we are the best.

Joomla in a short:

Content management system has made a revolution in online world to deliver the most effective service to the users. Today open source application has brought a wide window to precious aspire. To meet web solution like CMS and others we all have heard the name of Joomla.

Joomla is very fashionable and powerful Content Management System (CMS) which you can use to build websites, from very simple to very complicated. It can also be used to create powerful online application.

It can be used for specially:

  • websites for non-profits, organizations, schools, churches or families
  • company intranets and portals
  • magazines and newspapers
  • portals for communities
  • content management website, online shopping etc

Now here comes the thought to find the best web host where you can host your joomla website. XeonBD feel proud to let you know that we are one of the best web hosts where you can host your Joomla website securely. As we always claim that we are the best web host provider and from now we are also specifically claim that we are not only the best web host but also best to host Joomla web sites.

Reasons why XeonBD is best for Joomla:

If you google for the best host’s requirements to host Joomla website; you will find this minimum required features:

  • PHP 4.2.x or above
  • MySQL 3.23.x or above
  • Apache 1.13.19 or above
  • MySQL, XML, and Zlib functionalities enabled in PHP
  • Linux Hosting

Now lets give a conscious reading to the features we offer for joomla web host. It will be clear to you than when you will have given a complete reading thoroughly.  ;-)

Features we offer for Joomla:

  • *NIX Platform: Joomla requires at least PHP and MYSQL to run and as PHP/MYSQL/APACHE run best on UNIX or GNU/LINUX servers, XeonBD offers you the best and secure LINUX server to you.
  • Secure FTP: As your username and password is very much important to you as well as to us, we offer the most secured FTP transfer so that you will need not to worry about snooping and hijacking your personal things.
  • PHP register_global off: To ensure the best and reliable security to you we turned off PHP’s Register Globals directive. This is one of the mandatory needs for joomla.
  • Flexible PHP: XeonBD offers you flexibility in version of PHP as you can use either PHP-4 or PHP-5.
  • XeonBD is up to date: We always claim that we are the next as it is our company slogan and to keep our voice bold and straight we always upgrade our core applications including the operating system, database, and scripting languages if there is any update available.
  • XeonBD offers proactive server management: We constantly stay beside you and informed about what is happening with our system. Our consciousness is only to provide you the most reliable service that you expect from us.
  • Raw access to server logs is available: To perform and manage well a joomla site you have to have the access to your server log files; XeonBD gives you the ability to access your server logs.
  • Balanced performance matters: We do care and limit number of users per machine average and CPU load to some reasonable numbers depending on hardware. We always are conscious of the balance of our machines per users.
  • XeonBD’s own Data Centre: We have our own affordable data centre (USA based) with advanced infrastructure, such as redundant Internet access, hot swappable backups, full daily backups, environment and access controls, emergency generators, etc.
  • XeonBD is popular: We always care and are strict about SMAM and other fraudulent, phishing activities, that’s why we are favored by our data centre and there is no possibility of being blocked XeonBD’s Ip addtress.

Our developer and technical team are also expert in joomla. So you will found an extra care from our support team regarding any kind of Joomla related support.

So, for all of these capabilities of XeonBD (Xeon Software Limited) we boldly say that we are one of the best web hosts for Joomla web site hosting. Can’t believe! Get a delicious taste of XeonBD by growing your business with us.

Customers’ satisfaction is our pride.

Posted in: Featured, General, Open Page, Web Design

Leave a Comment (2) →

5 CSS3 Design Enhancements That You Can Use Today

thumb

Cascading Style Sheets (CSS) is the language of Web design, and the next generation of CSS design properties is just chomping at the bit to be released.

Are you eager to start using them, but don’t know where to start?

Although many of the new properties are not yet “official”, some browsers have already implemented many of the features of the coming CSS Level 3 specifications.

The problem is that many browsers—most notably Internet Explorer—has not.

The trick to using these new CSS3 features is to treat them as design enhancements.

A design enhancement is any flourish you add to your site designs that increases its visual appeal without diminishing its usability if the style is not rendered.

This can be a tricky call, with there being a fine line between enhancement and not diminishing usability:

  • Design Enhancement Example: Using border-radius to round box corners, creating a more appealing design. However, if the corners are not rendered, the site is still just as usable.
  • Example of Design Diminishing Usability: Using an RGBA color value in the backgrounds of overlapping elements that all need to be visible, expecting the upper elements to be semi-transparent. This will make it impossible for some people to use the site, thereby diminishing the page’s usability.

Let’s take a look at 5 different CSS3 properties that you can start playing with right now, provided that you always keep in mind that they should only be used to enhance your design, and not be relied upon for site usability.

This is the original design, before applying any CSS3 design enhancements

1-original

1. Transparent Colors

Supporting Browsers: Apple Safari 4, Firefox 3.0.5, Google Chrome 1

RGBA allows you to control the opacity of a particular color fill, whether it is for text, background, border, or shadow colors.

Setting the color transparency requires you to specify the color value using RGB notation—hexadecimal values are not allowed—with an additional A value being from 0 (transparent) to 1 (opaque).

rgba(0-255,0-255,0-255,0-1)

You should also include a simple RGB, or hex color value as a fallback for other browsers to use:

.topbox {
color: rgb(235,235,235);
color: rgba(255,255,255,0.75);
background-color: rgb(153,153,153);
background-color: rgba(0,0,0,0.5);
border-color: rgb(235,235,235);
border-color: rgba(255,255,255,0.65);
}

The good news is that there is also a fallback solution—at least for background colors—in Internet Explorer, which supports transparent colors using a filter and conditional styles:


Note: Due to the fact that WordPress could not display the above code in the content of this post, it has been included as an image, therefore you will need to type this code manually.


2-color

2. Rounded Corners

Supporting Browsers: Apple Safari 3, Firefox 1, Google Chrome 1

Border radius sets the curvature of each corner of the box, as if there is an imaginary circle on the corner with a specific radius (r):

border-radius: r;

Although border-radius will be a part of the coming CSS3 specification, both the Mozilla Project (Firefox) and Webkit (Safari and Chrome) implemented their own versions which have to be included for maximum cross-browser compatibility:

-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;

You can also set the radius for the corners individually:

CSS3 Mozilla WebKit

border-top-right-radius

-moz-border-radius-topright

-webkit-border-top-right-radius

border-bottom-right-radius

-moz-border-radius-bottomright

-webkit-border-bottom-right-radius

border-bottom-left-radius

-moz-border-radius-bottomleft

-webkit-border-bottom-left-radius

border-top-left-radius

-moz-border-radius-topleft

-webkit-border-top-left-radius

border-radius

-moz-border-radius

-webkit-border-radius

3-borderradius

3. Text Shadows

Supporting Browsers: Apple Safari 3, Firefox 3.0.5, Google Chrome 1

Add a shadow underneath any text, controlling the left/right and up/down offset, as well as the color:

text-shadow: x y blur color;

You can combine the text shadow with a transparent color to control the darkness of the shadow:

text-shadow: -2px 2px 10px rgba(0,0,0,.5);

You can also include multiple text shadows just by repeating the values separated by a comma:

text-shadow: 0 0 10px rgba(0,255,0,.5),
-10px 5px 4px rgba(0,0,255,.45),
15px -4px 3px rgba(255,0,0,.75);

4-textshadow

4. Box Shadows

Supporting Browsers: Apple Safari 4, Firefox 3, Google Chrome 1

Adding a drop shadow to any box on the screen follows the same format as adding a text shadow:

box-shadow: x y blur color;

Just like text-shadows, Mozilla and Webkit have implemented their own vocabulary in advance of the
final CSS standard:

-webkit-box-shadow: 0 0 10px rgb(0,0,0);
-moz-box-shadow: 0 0 10px rgb(0,0,0);
box-shadow: 0 0 10px rgb(0,0,0);

You can add multiple shadows just by including multiple values separated by spaces:

-webkit-box-shadow:
0 0 20px rgb(0,255,0), -10px 5px 4px rgba(0,0,255,.45),
15px -20px 20px rgba(255,0,0,.75);
-moz-box-shadow: 0 0 20px rgb(0,255,0), -10px 5px 4px rgba(0,0,255,.45),
15px -20px 20px rgba(255,0,0,.75);
box-shadow: 0 0 20px rgb(0,255,0), -10px 5px 4px rgba(0,0,255,.45),
15px -20px 20px rgba(255,0,0,.75);

5-boxshadow

5. Multiple Backgrounds

Supporting Browsers: Apple Safari 1.3, Google Chrome 1

Including multiple background images in a single element simply requires additional sets of
values to be added to the background properties, separated by commas. You should include a single
background image as a back-up for other browsers:

background-image: url(astro-127531.png);
background-image: url(astro-127531.png),url(Hubble-112993.png);
background-repeat: no-repeat;
background-position: bottom left;
background-position: bottom left, top right;

6-multiplebackground

SPECIAL BONUS

Rotate Anything!

Supporting Browsers: Apple Safari 4, Firefox 3.5, Chrome 1

Although not even a part of the CSS3 specification yet, Webkit has implemented its own
transformation property, which Mozilla is following suit with. Transform can include a number
of different value types, but one of the most intriguing—and useful as a design enhancement
— is rotate:

-webkit-transform: rotate(-15deg);
-moz-transform: rotate(-15deg);

7-rotate

Appearance as seen in browsers that do not support CSS3 (e.g. Opera 9)

8-nosupport

Do you use any design enhancements in your websites using CSS3? Please share your examples with us!

Posted in: Open Page, Web Design

Leave a Comment (1) →