Nobody can be exactly like me. Sometimes even I have trouble doing it. — Tallulah Bankhead


Author: editor
• Sunday, September 05th, 2010

Allow lists tell PeerBlock to allow connections to certain IP addresses, even if they are on a block list.

You may want to allow connections to particular common ‘bad’ IPs, for example allowing Microsoft Updates whilst blocking the rest of Microsoft, or for some online game servers. Allowed IPs always take priority over Block Lists in PeerBlock

There are two ways to allow particular connections;

  • Adding Allow Lists, and
  • Using the Log Window.

Allow Lists

Certain lists which can be found on the internet are not designed for blocking, instead they are designed to allow connections blocked on common lists, such as (mentioned previously) Microsoft Updates. Other common uses for allow lists include connecting to gaming servers, or allowing your work’s IP’s.

Using published Allow Lists is very similar to using Block Lists, except setting “Type” to “Allow” not “Block”. For details, see Using Lists.

You can create your own Allow Lists (for example for work IP addresses) quite simply. See Creating Lists.

Using the Log Window

A very simple way to create your own Allow List is by using the Log Window. Simply Right Click the blocked IP that you wish to allow and select the time period you would like it allowed for.

Source: http://www.peerblock.com/userguide/how_to_use/htu-allowingconnections

Author: editor
• Sunday, September 05th, 2010

There are many great lists available on the internet, free of charge. There are, however many reasons to create your own lists. For example, we might want to create lists of websites IP’s that we frequent, our work’s IP addresses, or particular gaming servers we use.

In PeerBlock, creating lists is really quite simple; the following steps will guide you through it.

  1. In PeerBlock, click “List Manager”, then click “Create List”

    Click to see full size

    Click to see full size
  2. This window helps you set up your list. First, Enter a description to help you remember what the list is for. Click “browse” and find a place to create your list. Select the “Type” of list you are creating. Typically this will be “Allow”. Select OK.

    Click to see full size
  3. This is where you enter the IP’s you wish to include on your list. To add an IP range (or single IP) follow these steps:
    1. Click “Add”
    2. Enter a description of the IP range. THis shows up in the main “Log Window” and in “History”.
    3. Enter the “Starting IP”. This is the lowest IP in the range, or in the case of a single IP, the IP.
    4. Enter the “Ending IP”. THis is the highest IP in the range. If the IP is a single IP, enter the same value as the “Starting IP” – do not leave this blank.

    If you would like to add more IP Ranges, repeat these steps. Once you are done, click “Save” and then close the List Manager to apply your changes.

Sourcve: http://www.peerblock.com/userguide/how_to_use/htu-creatinglists

Author: editor
• Monday, August 30th, 2010

Our “XOOPSer of the Month” Award is given to XOOPS members who show extraordinary dedication to XOOPS, and go the extra mile for XOOPS. Sometimes they do something spectacular, but most of the time they just do something everyday, but by doing it day-in and day-out, they make a BIG DIFFERENCE in life of XOOPS community. And we thank them for that!!!

This month, we would like to recognize CK2 Club (news) from Taiwan for their extraordinary work as a team, and showing us how a XOOPS User Group could look like!

Where are you from, and where do you live now?

We are all from Taiwan, a beautiful island once called “Formosa” by the Portuguese in the 16th century. It lies off the southeastern coast of mainland China and in the middle of Japan and Philippines. Maybe you have heard of Taiwan, maybe not. In addition to the world’s tallest building Taipei 101, Taiwan has established many world’s top industries like personal computer (ACER/ASUS), bicycle (GIANT), footwear, tennis racket, textile and etc.

The forest and marine ecosystems are abundant and the people here are very kind to foreigners. If you have a chance to travel in Asia, we sincerely invite you to visit Taiwan. Our club is located in Tainan City, a traditional city famous for its historic constructions, culture and cuisine in the southern part of Taiwan. Most of our members live in the south part of Taiwan and some come from the eastern Taiwan.

How long have you been programming?

Most of us have 1~3 years experience in programming and some others are just starting, using XOOPS as the learning tool.

What is your expertise?

We mainly study on new module development, theme design and other free software. Most of our members take it as a hobby, but there are few of us who apply it to their jobs and some even use it to make a living.

What got you into XOOPS?

Because XOOPS is easy to use and is rich in resources. Also quite a lot of people are using XOOPS here in Taiwan.

What do you like the most about XOOPS?

XOOPS is easy and quick to install. Moreover, there are plenty of ready-made modules and themes for use.

In what area of XOOPS do you contribute and why?

We have started to provide some useful and free modules. In addition, we help our local users to set up their websites with XOOPS.

What are you major achievement as the CK2 Club that you’re most proud of?

This year, three members of our club (including Tad, our instructor) have developed a school software system for the Tainan Community College. This school software is a large, complex and full-featured system. The fact that Tainan community college is willing to use it indicates our developing capabilities have reached a reliable level. In addition, many modules developed by us got very positive feedback and appreciation from a lot of users. This is what we are most happy about.

What are you goals for 2010?

For 2010, we hope to create more easy-to-use and practical modules in international versions, such as a new school system or a shopping cart system. Also, we hope to go out for a tour that all club members can join together in the coming year.

How often do you meet, and what are you typical meetings about?

We have regular member meetings on the last Sunday of every month. Generally speaking, we arrange one or two courses for members to learn new techniques. At the rest of the time, we have free talks, chat and eat some local delicious food.

What is the biggest challenge to keep a User Group such as CK2 Club going and keep the members engaged?

To find an interesting topic in the complex techniques is the most challenging part. Too complex coding discourages the novice and too simple programming are unattractive to the experienced members.

What would be the most important advise for somebody starting a XOOPS User Group in their city?

Just do it. It just needs one person to take the initiative. In addition, there must be clear objectives for the Club.

What are your hobbies, when you’re not coding?

Our club members have different kinds of hobbies such as watching movies, reading books, traveling, shopping, go sporting….when we get together and are not coding, we chat, have refreshments or a meal. Also, we plan to go out for a tour together but the time is not yet determined, because all of us are too busy.

What dish and drink would you recommend to somebody visiting Taiwan?

We recommend Oyster omelet and Bubble Tea, it is delicious and you can find it in any night market.

Who is the person that you would like to meet and why?

phppp! He is really an excellent programmer. Moreover, we could talk with him in Chinese

Source: WOX (World of XOOPS) Newsletter # 26 (November 2009)

Category: PHP  | Tags: , ,  | Leave a Comment
Author: editor
• Tuesday, August 17th, 2010

What is a Cookie?

A cookie is often used to identify a user. A cookie is a small file that the server embeds on the user’s computer. Each time the same computer requests a page with a browser, it will send the cookie too. With PHP, you can both create and retrieve cookie values.


How to Create a Cookie?

The setcookie() function is used to set a cookie.

Note: The setcookie() function must appear BEFORE the <html> tag.

Syntax

setcookie(name, value, expire, path, domain);

Example 1

In the example below, we will create a cookie named “user” and assign the value “Alex Porter” to it. We also specify that the cookie should expire after one hour:

<?php
setcookie(“user”, “Alex Porter”, time()+3600);
?>

<html>
…..

Note: The value of the cookie is automatically URLencoded when sending the cookie, and automatically decoded when received (to prevent URLencoding, use setrawcookie() instead).

Example 2

You can also set the expiration time of the cookie in another way. It may be easier than using seconds.

<?php
$expire=time()+60*60*24*30;
setcookie(“user”, “Alex Porter”, $expire);
?>

<html>
…..

In the example above the expiration time is set to a month (60 sec * 60 min * 24 hours * 30 days).


How to Retrieve a Cookie Value?

The PHP $_COOKIE variable is used to retrieve a cookie value.

In the example below, we retrieve the value of the cookie named “user” and display it on a page:

<?php
// Print a cookie
echo $_COOKIE["user"];

// A way to view all cookies
print_r($_COOKIE);
?>

In the following example we use the isset() function to find out if a cookie has been set:

<html>
<body>

<?php
if (isset($_COOKIE["user"]))
echo “Welcome ” . $_COOKIE["user"] . “!<br />”;
else
echo “Welcome guest!<br />”;
?>

</body>
</html>


How to Delete a Cookie?

When deleting a cookie you should assure that the expiration date is in the past.

Delete example:

<?php
// set the expiration date to one hour ago
setcookie(“user”, “”, time()-3600);
?>

What if a Browser Does NOT Support Cookies?

If your application deals with browsers that do not support cookies, you will have to use other methods to pass information from one page to another in your application. One method is to pass the data through forms (forms and user input are described earlier in this tutorial).

The form below passes the user input to “welcome.php” when the user clicks on the “Submit” button:

<html>
<body>

<form action=”welcome.php” method=”post”>
Name: <input type=”text” name=”name” />
Age: <input type=”text” name=”age” />
<input type=”submit” />
</form>

</body>
</html>

Retrieve the values in the “welcome.php” file like this:

<html>
<body>

Welcome <?php echo $_POST["name"]; ?>.<br />
You are <?php echo $_POST["age"]; ?> years old.

</body>
</html>

Category: PHP  | Tags: ,  | Leave a Comment
Author: editor
• Saturday, August 07th, 2010

Unlike POP, IMAP offers a two-way communication between your mailbox (on email server) and your email client(s). So, when you perform an action on your mailbox, or a message in your mailbox, it is immediately reflected on the email clients and mobile devices and vice versa (ex: if you log into your server account, create a new folder, and put a message into that folder, this change will instantly and automatically appear in your email client, such as Outlook, and on your mobile device). Also, if you are at work, and you begin a message, and save it, it will still be there when you log in from a different client, say from home.

IMAP provides a better method to access your mail from multiple devices, say from work, home, and your mobile, through two-way syncing capabilities between your mail clients and the mailbox (email server). However, because IMAP saves all your messages on the server, be sure frequently clean up your mailbox, deleting old messages.

Category: Email  | Tags: , ,  | Leave a Comment
Author: editor
• Friday, July 23rd, 2010

Example:

wp_list_bookmarks(‘orderby=name&title_before=<h1>&title_after=</h1>&between=<br/>&show_description=0&limit=20′)

orderby

(string) Value to sort bookmarks on. This can be a COMMA separated list of values. Defaults to 'name' unless you pass the value of '' (empty), in which case it sets to 'id'.
Orderby commonly used parameters:

  • 'name' – Default
  • 'rating'
  • 'rand' – Display bookmarks in random order.
  • 'id'
  • 'url'
show_description
(boolean) Should the description be displayed (TRUE) or not (FALSE). Valid when show_images is FALSE, or an image is not defined.

  • 1 (True)
  • 0 (False) – Default, set to 0 for sidebar
limit
(integer) Maximum number of bookmarks to display. Default is -1 (all bookmarks).

Reference: http://codex.wordpress.org/Function_Reference/wp_list_bookmarks

Category: How-to, Wp Codes  | Tags: , ,  | Leave a Comment
Author: editor
• Friday, July 23rd, 2010

Links section:
You can start with document root of the site.

For example:http://www.hyview.com/blog/?p=123

can be entered as

/blog/?p=123

If your WordPress is installed on document root, it goes like this:

/?p=123

Category: How-to, Wp Codes  | Tags: ,  | Leave a Comment
Author: editor
• Friday, July 23rd, 2010

Velocity 2010: Nicole Sullivan, “The Top 5 Mistakes of Massive CSS”

Category: How-to, Wbe Page Design  | Tags: ,  | Leave a Comment
Author: editor
• Friday, July 23rd, 2010

The beta version of Google’s next browser is expected to ship soon, as the developer-channel release of Chrome 6 has just seen a code freeze. This is the point at which new features stop being added, and everything that’s already in the browser gets inspected, tested and tightened. We should expect Chrome 6 Beta within a few weeks.

more…

Category: Web Apps  | Tags: , ,  | Leave a Comment
Author: editor
• Monday, July 19th, 2010
Output HTML Entity
space &#32;
! &#33;
&#34;
# &#35;
$ &#36;
% &#37;
& &#38;
&#39;
( &#40;
) &#41;
* &#42;
+ &#43;
, &#44;
- &#45;
. &#46;
/ &#47;
0 &#48;
1 &#49;
2 &#50;
3 &#51;
4 &#52;
5 &#53;
6 &#54;
7 &#55;
8 &#56;
9 &#57;
: &#58;
; &#59;
< &#60;
= &#61;
> &#62;
? &#63;
@ &#64;
a &#65;
b &#66;
c &#67;
d &#68;
e &#69;
f &#70;
g &#71;
h &#72;
i &#73;
j &#74;
k &#75;
l &#76;
m &#77;
n &#78;
o &#79;
p &#80;
q &#81;
r &#82;
s &#83;
t &#84;
u &#85;
v &#86;
w &#87;
x &#88;
y &#89;
z &#90;
[ &#91;
\ &#92;
] &#93;
^ &#94;
Output HTML Entity
_ &#95;
` &#96;
a &#97;
b &#98;
c &#99;
d &#100;
e &#101;
f &#102;
g &#103;
h &#104;
i &#105;
j &#106;
k &#107;
l &#108;
m &#109;
n &#110;
o &#111;
p &#112;
q &#113;
r &#114;
s &#115;
t &#116;
u &#117;
v &#118;
w &#119;
x &#120;
y &#121;
z &#122;
{ &#123;
| &#124;
} &#125;
~ &#126;
¡ &#161;
¢ &#162;
£ &#163;
¤ &#164;
¥ &#165;
| &#166;
§ &#167;
&#168;
© &#169;
ª &#170;
« &#171;
¬ &#172;
­ &#173;
® &#174;
ÿ &#175;
° &#176;
± &#177;
² &#178;
³ &#179;
´ &#180;
µ &#181;
&#182;
· &#183;
, &#184;
¹ &#185;
º &#186;
» &#187;
¼ &#188;
½ &#189;
¾ &#190;
¿ &#191;
À &#192;
Output HTML Entity
Á &#193;
 &#194;
à &#195;
ä &#196;
å &#197;
æ &#198;
ç &#199;
È &#200;
é &#201;
Ê &#202;
Ë &#203;
Ì &#204;
Í &#205;
Î &#206;
Ï &#207;
Ð &#208;
ñ &#209;
Ò &#210;
Ó &#211;
Ô &#212;
Õ &#213;
ö &#214;
× &#215;
Ø &#216;
Ù &#217;
Ú &#218;
Û &#219;
ü &#220;
Ý &#221;
Þ &#222;
ß &#223;
à &#224;
á &#225;
â &#226;
ã &#227;
ä &#228;
å &#229;
æ &#230;
ç &#231;
è &#232;
é &#233;
ê &#234;
ë &#235;
ì &#236;
í &#237;
î &#238;
ï &#239;
ð &#240;
ñ &#241;
ò &#242;
ó &#243;
ô &#244;
õ &#245;
ö &#246;
÷ &#247;
ø &#248;
ù &#249;
ú &#250;
û &#251;
ü &#252;
ý &#253;
þ &#254;
ÿ &#255;
Category: HTML Codes  | Tags:  | Leave a Comment