Skip to content

SysTutorials

  • Tutorials
  • Linux
  • Linux Manuals
  • Systems
  • Programming
  • Software
  • Subscribe
  • Search
SysTutorials

  • Web

    RGBlite WordPress Theme

    ByEric Ma Jul 13, 2013Mar 27, 2018

    About RGBlite Theme RGBlite Theme is a simple and light-weight theme for WordPress. RGBlite Theme provides a green-red-blue mixed style, bright view and fast rendering experience to the users. RGBlite Theme passes W3C XHTML 1.0 and W3C CSS level 3 validation. This theme works well on WordPress 2.9.x and WordPress 3.0. RGBlite theme is among…

    Read More RGBlite WordPress ThemeContinue

  • Web

    How to Redirect WordPress Feed to Feedburner Using .htaccess

    ByEric Ma Jul 13, 2013Oct 27, 2020

    .htaccess is a powerful tool. Let’s look at how to using .htaccess to redirect WordPress feeds to feedburner. Let’s use my blog as the example. The WordPress’s feed url of my blog is https://www.systutorials.com/feed/. Now I want to redirect it to feedburner with url http://feeds.feedburner.com/systutorials . The idea is quite straightforward: For every request to…

    Read More How to Redirect WordPress Feed to Feedburner Using .htaccessContinue

  • Web

    Speeding Up the Site by Using PHP GZIP Compression

    ByEric Ma Jul 13, 2013

    Compression is a simple way to speed up the site. PHP’s gzip compression is excellent. And using it is very convenient: Simply put these codes before any HTML content at the beginning of the PHP script: <?php if (substr_count($_SERVER[‘HTTP_ACCEPT_ENCODING’], ‘gzip’)) ob_start(“ob_gzhandler”); else ob_start(); ?> In WordPress, the suitable position for these codes is the beginning…

    Read More Speeding Up the Site by Using PHP GZIP CompressionContinue

  • Web

    How to Read File into String in PHP

    ByEric Ma Jul 13, 2013

    Read content of a file to string (in this example, we echo it): // Get text from file function get_text($text_filename) { if ($text_filename != “”) { $text = “”; $text_file = fopen($text_filename, “r”); while (!feof($text_file)) { $text = $text . fgets($text_file, 4096); } fclose($text_file); if ( $text != “” ) { echo $text; } }…

    Read More How to Read File into String in PHPContinue

  • Web

    Get the Number of All Posts in WordPress

    ByEric Ma Jul 13, 2013

    Use the wp_count_posts() function to get the posts count. The code: <?php $count_posts = wp_count_posts(); $count_pages = wp_count_posts(‘page’); echo “<li><a href=” . get_option(‘home’) . “>”; echo $count_posts->publish . ” Posts, ” . $count_pages->publish . ” Pages”; echo “</a></li>” ?>

    Read More Get the Number of All Posts in WordPressContinue

  • Web

    How to Redirect a Page with HTTP 301 in PHP

    ByEric Ma Jul 13, 2013Apr 2, 2020

    HTTP 301 Redirect is an SEO friendly way to redirect readers to a page’s new location. There are a lot of benefits of using HTTP 301 Redirect. These benefits can be found in the htaccess method post. htaccess or PHP can be both used for sending 301 redirects. The htaccess method can be found in…

    Read More How to Redirect a Page with HTTP 301 in PHPContinue

  • Web

    Friendly WordPress Navigation Using Page Numbers Instead of Next and Previous Links

    ByEric Ma Jul 13, 2013

    The navigation will be more user friendly with page numbers instead of next and previous links since users can navigate much quicker to the page they want to see especially when there are a lot of pages. It is also good method for SEO (Search Engine Optimization) because it creates a tighter inner link structure….

    Read More Friendly WordPress Navigation Using Page Numbers Instead of Next and Previous LinksContinue

  • Web

    Using noindex Meta Tag in WordPress to Prevent Search Engines Indexing Categories, Tags and Archives

    ByEric Ma Jul 13, 2013Dec 20, 2020

    WordPress may show “duplicate” content which may potentially confuse search engines. Duplicate content won’t hurt much, unless it is spam or keyword stuffing, as said by Matt Cutts, and Google may just ignore the duplicate content. However, instead of letting the search engines decide which pages of the duplicate ones are important, we may only…

    Read More Using noindex Meta Tag in WordPress to Prevent Search Engines Indexing Categories, Tags and ArchivesContinue

  • Web

    Change WordPress’s Excerpt Length

    ByEric Ma Jul 13, 2013

    The default excerpt length of WordPress is 55 words. Some one like me may want to change the excerpt length. I like the have a smaller excerpt length for the homepage. WordPress provides a interface for changing the default excerpt length. The method is very simple and easy. Put these codes into the function.php file…

    Read More Change WordPress’s Excerpt LengthContinue

  • Programming | Web

    Put the Categories, Archives and All Posts into Pages

    ByEric Ma Jul 13, 2013

    I prefer putting pages that contains all the categories, archives and even all the posts in one page to putting these links in the side bar. Actually, most of time it needn’t to stay on every pages. And if it is in the side bar, the search engine will see these links in every page…

    Read More Put the Categories, Archives and All Posts into PagesContinue

  • Web

    How to Redirect Old Domain to New Domain Using htaccess Redirect

    ByEric Ma Jul 13, 2013

    I want to move the sub domain blog.pkill.info to systutorials.com permanently. I can manage all the pages I want to post using WordPress. Changing domain in a bad way is dangerous. Put a page the tell the reader that the site is moved to a new domain is very unfriendly to the user and also…

    Read More How to Redirect Old Domain to New Domain Using htaccess RedirectContinue

  • Web

    Use Excerpt in Index, Category, Tag and Arhieve Pages for WordPress

    ByEric Ma Jul 13, 2013

    By default, all of the content of the post is shown in index, category, tag, archive and search pages. This is duplicate contents which may cause search engine penalty. The better way is using excerpt in index, category, tag and arhieve pages. By doing this the duplication can be avoided and the blog is optimized….

    Read More Use Excerpt in Index, Category, Tag and Arhieve Pages for WordPressContinue

  • Web

    How to Change the Site’s Default 404 Error Not Found Page

    ByEric Ma Jul 13, 2013

    The apache’s default “404 Error not found” page seems ugly. And may some hosting service put theire ads in it. We can add some entry in .htaccess to change the defualt 404 error page. This method can also be used for some other error codes. A list of the server returned codes can be found…

    Read More How to Change the Site’s Default 404 Error Not Found PageContinue

  • Web

    Using “META” Tag in HMTL HEAD to Redirect Pages

    ByEric Ma Jul 13, 2013

    It is quite simple to redirect pages using the “meta” tag in HTML head, I just give the example to redirect the page to https://www.systutorials.com after 1 second. <html> <head> <meta http-equiv=”Refresh” content=”1; url=https://www.systutorials.com/”> </head> <body> This page is redirected to: <a href=”https://www.systutorials.com/”>systutorials.com</a>.<br /> </body> </html>

    Read More Using “META” Tag in HMTL HEAD to Redirect PagesContinue

  • Linux

    Yum Using DVD as Package Repository

    ByEric Ma Jul 13, 2013Jul 13, 2013

    We introduce the method to use DVD as the package repository for yum. In this post, we use CentOS 5 as the example. 1) Modify /etc/yum.repos.d/CentOS-Base.repo Delete baseurls in [Base] baseurl by add ‘#’ at the beginning of the lines Then add a line at the end: baseurl=file:///media/CentOS_5.0_Final ‘file://’ means this is a local directory….

    Read More Yum Using DVD as Package RepositoryContinue

  • Linux

    Script: Checking Alive Servers from a Server List

    ByEric Ma Jul 13, 2013Aug 30, 2020

    With a list of servers, it is common that one or more are down or crash. Lots cluster management tools can detect the aliveness of servers. However, it can be easily done with ping with a Bash script. I summarize the script that I used and share it here: check-alive-server.sh. Usage: usage: ./check-alive-server.sh file Each…

    Read More Script: Checking Alive Servers from a Server ListContinue

  • Linux

    Script: Running Commands on a List of Servers

    ByEric Ma Jul 13, 2013Aug 30, 2020

    I frequently run some commands/scripts on a batch of servers whose IPs are already collected in a file. I usually use a simple loop and call the ssh to run these commands remotely and automatically. This operation, however, is common and can be abstracted into a separate script. Here is the script that I come…

    Read More Script: Running Commands on a List of ServersContinue

  • Virtualization

    Script: Shutting Down All Xen VMs on a Server

    ByEric Ma Jul 13, 2013Aug 30, 2020

    Shutting down servers is a common operations for managing a cluster. However, if this server is configured to a Xen Dom0 and has Xen VMs (DomUs), the VMs should be shutdown first to avoid data lost on these VMs. xm supports a -a option to shutdown all VMs: # xm shutdown -a Add the -w…

    Read More Script: Shutting Down All Xen VMs on a ServerContinue

  • Programming

    How to install Scala on Linux

    ByEric Ma Jul 13, 2013Mar 30, 2026

    How to install Scala on Fedora Linux How to install Scala on Fedora Linux: This tutorial introduces how to install Scala 2.9.2 on 64-bit Fedora Linux 17. There are some changes needed to make scala work on Fedora Linux 17. Please check it out in the answer. Continue reading: How to install Scala on Fedora…

    Read More How to install Scala on LinuxContinue

  • Linux

    Emacs Tips and Howtos

    ByEric Ma Jul 13, 2013Mar 27, 2018

    With Emacs, I feel happy. I love the rich functions of Emacs, such as compiling, quickly jumping to the lines with compilation error and debugging with gdb, and more. I ever wrote small tips posts about Emacs before. But it is a good idea to put them together and keep adding new ones. Here comes…

    Read More Emacs Tips and HowtosContinue

Page navigation

Previous PagePrevious 1 … 60 61 62 63 64 … 70 Next PageNext

© 2026 SysTutorials

  • Tutorials
  • Linux
  • Linux Manuals
  • Systems
  • Programming
  • Software
  • Subscribe
  • Search