This post explains the basic terms related to data structures.
Modelling for Distributed Network Systems
The attached sample chapter from Distributed Network Systems: From Concepts to Implementations (Jia, W. and Zhou, W.,2005) is designed to introduce the client-server model and its role in the development of distributed network systems.
The chapter discusses the cooperation between clients and servers/group servers in distributed network systems, and addresses extensions to the client-server model. Service discovery, which is of crucial importance for achieving transparency in distributed network systems, is also elaborated in this chapter.
Custom Excerpt Length in WordPress
Define how many words to return when using the_excerpt();
.
//custom excerpt length function itlc_custom_excerpt_length( $length ) { //the amount of words to return return 20; } add_filter( 'excerpt_length', 'itlc_custom_excerpt_length');
Post Thumbnails in WordPress RSS Feed
Include the post thumbnail in your RSS feed.
// Put post thumbnails into rss feed function itlc_feed_post_thumbnail($content) { global $post; if(has_post_thumbnail($post->ID)) { $content = '' . $content; } return $content; } add_filter('the_excerpt_rss', 'itlc_feed_post_thumbnail'); add_filter('the_content_feed', 'itlc_feed_post_thumbnail');
Can you ride a pig? Minecraft Server on Raspberry Pi
Customise WordPress Admin Footer
Change the message that appears in the admin footer, why not give yourself a credit for the theme?
// Customise the footer in admin area function itlc_footer_admin () { echo 'Theme designed and developed by <a href="#" target="_blank">YourNameHere</a> and powered by <a href="http://wordpress.org" target="_blank">WordPress</a>.'; } add_filter('admin_footer_text', 'itlc_footer_admin');
Hello World in C
This is how you would display “Hello World” in C.
#include<stdio.h> main() { printf("Hello World"); }
Theme the WordPress Login Page
Loads a CSS file into your login page so you can override default styles. Just add wp-login.css
into your theme folder.
// Custom CSS for the login page // Create wp-login.css in your theme folder function itlc_loginCSS() { echo '<link rel="stylesheet" type="text/css" href="'.get_bloginfo('template_directory').'/wp-login.css"/>'; } add_action('login_head', 'itlc_loginCSS');