Reflection in Inkscape, GIMP, and Photoshop

Ever wonder how to create those cool images with reflection, such as the image below? You can create them using Inkscape and GIMP, two free Open Source tools, and of course, with Photoshop. When I need to add reflection to an image quickly, I usually use Inkscape. Check it out! It’s great for making simple site logo as well.

reflection-red

InkScape

http://aqeeliz.com/2007/03/12/inkscape-tutorial-reflection/

Photoshop

http://pstutorialsblog.com/81/reflection-tutorial/

http://pstutorialsblog.com/82/3d-object-reflection-tutorial/

GIMP

http://gimp-tutorials.net/node/236

Uncategorized

Comments (0)

Permalink

Add a NextPage button on WorldPress Editor

Open the functions.php in your theme directory. For example, if your theme is tigra, then open the functions.php in <wordpress-path>/wp-content/themes/tiga.

Add the following lines at the bottom of functions.php, after the last close bracket (?>)

<?php
add_filter(‘mce_buttons’, ‘add_nextpage’);

function add_nextpage($buttons) {
if (!in_array(‘wp_page’, $buttons)) {
if (!in_array(‘wp_more’, $buttons)) {
$last = array_pop($buttons);
$buttons[] = “wp_page”;
$buttons[] = $last;
}else{
$txt = implode(‘|’, $buttons);
$txt = str_replace(‘wp_more|’,'wp_more|wp_page|’, $txt);
$buttons = explode(‘|’, $txt);
}
}
return $buttons;
}

?>

Refresh the browser. You should see the new button being added.

pic2

WordPress and Joomla

Comments (4)

Permalink

Joomla Site Quick Start

In this guide, I will cover  how to set up a Content Management Site powered by Joomla 1.5.x. This document is by no mean complete, but the section that shows one how to embed a flash MP3 player as a custom module should be very helpful to many.

Continue Reading »

Pages: 1 2 3 4 5 6 7 8

WordPress and Joomla

Comments (1)

Permalink

Java Games (with Greenfoot) Lesson 3: Tic-Tac-Toe Player

 In the last lesson (Lesson 2), we created the Tic-Tac-Toe Board and GameBall classes. We also added GameBall objects to the Board object. In this lesson, we will add a Player class such that a Player object interacts with GameBall objects in a meaningful way.

The game should work this way:

This game takes two players, who will take turn clicking. When the game starts, all nine cells on the board are blank. When the first player clicks at a blank cell, a Gold ball will be placed in that cell; when the second player clicks at a blank cell, a Steel ball will be placed in that cell.

  Continue Reading »

Pages: 1 2 3 4 5

Uncategorized

Comments (0)

Permalink

Add Scroll Areas to WordPress Posts

I wanted to post some codes to several posts and set out to find ways to include longer code snippets on WordPress posts. Here are the steps I took to enable scrolling area for code snippets:

1. Go to your WordPress theme editor and either enable external style.css if not already enabled. I use tiga theme and had to enable the external style sheet.

2. Go to wp-content/themes/your-theme. Add the following code snippet to the style.css of your current theme

div.scroll {
height: 200px;
width: 300px;
overflow: auto;
border: 1px solid #666;
background-color: #ccc;
padding: 8px;
}

3. Then create a new post and paste the following in HTML mode

<div>
<p>This is a scrolling are created with the CSS property overflow.</p>
<p>
<span style="color: red;">This is red color</span>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh.</p>
<p>This is a normal paragraph.
<span style="font-weight: bold; font-size: 22px;">This is big bold text</span>
</p>
<p>This scrolling are can contain normal html like <a href="index.php">link</a></p>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh.</p>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh.</p>
</div>

This is a scrolling are created with the CSS property overflow.

This is red color
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh.

This is a normal paragraph.
This is big bold text

This scrolling are can contain normal html like link

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh.

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh.

Reference:

http://www.domedia.org/oveklykken/css-div-scroll.php

WordPress and Joomla

Comments (4)

Permalink

Install CBQoS(Class-Based Quality-of-Service) Parser and Logger

This article shows one how to set up a PC to run CBQoS Parser and Logger. It covers setting up Net-SNMP, mySQL, ActivePerl, and Perl-based CBQoS Parser and Logger.

Continue Reading »

My Projects
Network Monitoring

Comments (2)

Permalink

CBQoS (Class-Based Quality-of-Service) Parser and Logger

CBQoS Parser and Logger is a Perl-based solution that parses CBQoS MIB query result and allow users to log CBQoS information.

CBQoS, Cisco Class-Based Quality-of-Service, can help analyze the pre-policy, post-policy and the drop within each class of traffic on your network and help network administrators make more informed QoS policy decisions. In addition,  CBQoS can also provide queuing statistics on each class of traffic.

There are two main parts to Perl-Based CBQoS Logger: parser and recorder. The parser parses the CiscoQosBasedMIB and obtains information of policy maps applied to each interface, as well as that of the class maps within each policy map. Specifically, the parser obtains the various indices (such as policy indices, object indices, and configuration indices) required to construct the SNMP OID used by the recorder. WIth the SNMP OIDs, the recorder makes the SNMP request to the device and records the result in mySQL database as well as in Excel files. This tool can easily be extended to poll all statistics stored in CiscoQosBasedMIB, but currently it only supports polling the cbQosREDRandomDropByte, which is described in the MIB:

Continue Reading »

Network Monitoring

Comments (0)

Permalink

SNMP Intro

What is SNMP?

SNMP stands for Simple Network Management Protocol. It is used in network management systems to monitor network devices. It is part of Internet Protocol (IP) software suite.

Using SNMP, one can monitor and control a network device. Moreover, one can receive notification from a network device. A SNMP-managed system consists of three components: SNMP agents, Managed Devices, and Network Management Systems. A SNMP agent is a software process that manages network information on a Managed Device. A Managed Device is also called a SNMP-enabled device; routers, switches, PC, lab tops, or even smart phones are all examples of Managed Devices. A Network Management System is a computer that polls from Managed Devices and organizes the data in either textual or visual form.

Continue Reading »

Network Monitoring
Networking

Comments (2)

Permalink

OpenSceneGraph Exporter for Blender

In this article, I will show you how to install osgexporter Blender plugin and then demonstrate using osgviewer from OpenSceneGraph source bundle to load the exported osg file.

Continue Reading »

OpenGL

Comments (4)

Permalink

Build OpenSceneGraph on Windows

What is OpenSceneGraph?

The OpenSceneGraph is an open source high performance 3D graphics toolkit, used by application developers in fields such as visual simulation, games, virtual reality, scientific visualization and modeling.

image-0095

Continue Reading »

OpenGL

Comments (0)

Permalink