Delete files recursively

The task is to delete files from the folder and sub-folders, maybe sub-sub-folder.

Say I want to delete .htaccess from every folder, but keep all others no-touch.

It is hard to go into each folder and delete the file. It takes time and also very easy to miss some folders.

There is one command in Linux. Great tool for it.
One line to do the job.

How to enable GBK encoding

The situation is WebPage was made by GBK encoding. GBK is one of the Chinese Encoding.
When the browser loading the page, it always return UTF-8.

It should be GBK.
I checked the head of the webpage.

content="text/html; charset=gb2312"

Different browsers tested. All failed.

How to fix this problem and let the server feedback the GBK/GB2312 code?


There are a lot of articles on the Internet, telling you how to increase your blog web traffic. It is hard job, especially for a new blogger. I knew it. Because I am also start from a newbie.
Now, this blog, David Yin's Blog is more than 8 years. If you check the archives, you may find the first post on October 19, 2004. Only three lines there.

I want share some tips to you. Actually 12 tips. To show you the ways to increase Page View on your Blog.

Be remarkable
If you already has some in a niche, that's great. You can save a lot of time and work to make you remarkable.
If you do not have it. It takes time to build it.

Become an expert
Focus on one niche. Be prepared. You have to do a lot of homework to learn anything related to the niche you picked. Get more materials and have them on hand. Any time do it professionally.


Submit to Article Directories
It is a regular job. When you have some great article, submit it to article directories. Let them to spread your article, with the link of your original post.
You know, you are an expert, your knowledge is very helpful to others. That's why they are willing to list your article on their directory.


Provide enough information
Any article you post on your Blog. You need provide at least one useful information. Do not waste your reader's time. And your own time.
Provide enough information. Let the visitor came and found what they are looking for. Help them, then they will show their appreciate by visiting again.


phpMyAdmin 3.4.9, a bugfix release with minor security fixes.

I use the old version for a long time.

To upgrade to phpMyAdmin 3.4.9, just download it and extract it.

It is not recommended to overwrite the old version. So install it into a new folder is safer.

After extract to a new folder. I tried the installation with its setup script.

I use Google Analytics on this Blog for many years. Now I would like to share the basic user technology statistics.
The Top 5 Browsers of 2011 are:


  • Firefox 35.36%

  • IE 25.89%

  • Chrome 21.56%

  • Safari 12.33%

  • Opera 1.93%


When I compare the first half year with the second half year data, Firefox and IE decreased, with Chrome increased.
More people start to use Chrome.


The Top 5 Operating System of 2011 are:


  • Windows 71.1%

  • Linux 9.67%

  • Mac 9.30%

  • iPhone 4.30%

  • Android 1.74%


I also compared the date. It seems more mobile devices visitor came.

How to read your condo insurance policy

First of all, the building is covered by your Strata insurance policy. So, no need to worry too much about your building, including structure, roof, wall, etc.

But the others are not covered by your strata insurance policy. That is why you need buy your own unit insurance policy, or condo insurance.

There are some key coverage you need to ask your agent or read your policy by yourself.
Dwelling Improvements, Alterations, and Additions
Condominium owners are covered for accidental damage to improvements you make in your unit for which your strata's policy does not provide coverage, subject to your condo insurance policy limits. For example, you changed your shower in your washroom. It will be covered by your own condo insurance policy.

Loss assessment
Condominium owners will also receive up to $1,500 for assessments arising from covered damage. This can be used to pay for your share of property damage or injury awards for which your strata's policy does not provide coverage. Typically, up to $50,000 is available, but this may vary depending on your policy.
The limit $1,500 is just an example. I know some policy has high limit, like $15,000 limit.
This one is very important. Say when some thing happen on your strata building, and it is covered by your strata policy, but the limit is not enough or the deductible is so high, your strata can not afford it. Then, after a Special General Meeting, a special loss assessment will be arranged for every unit. As an unit owner, you have to take your own share of it. Because your condo insurance provide this loss assessment coverage, you can survive in this financial situation.

OpenSSH server Security Top 6

OpenSSH is very popular SSH server. Widely used on different Linux distribution.

To make it safe and minimize the risk, change the default setting and make it more safe.
OpenSSH setting file is located:

/etc/ssh/sshd_config

1) Only Use SSH Protocol 2
SSH protocol version 1 (SSH-1) has man-in-the-middle attacks problems and security vulnerabilities. SSH-1 is obsolete and should be avoided at all cost. Open sshd_config file and make sure the following line exists:

Protocol 2

2) Allow Only Specific Users or Groups (AllowUsers AllowGroups)
By default anybody who is authenticated successfully are allowed to login. Instead you can restrict which users (or groups) you allow to login to the system.

This is helpful when you have created several user accounts on the system, but want only few of them to login.

This is also helpful when you are using NIS, openLDAP (or some other external system) for authentication. Every user in your company might have account on NIS, OpenLDAP etc. But, on a specific server you want only few of them to login. For example, on production system you want only sysadmins to login.

Add the following entry to the sshd_config file to allow only specific users to login to the system. In the example below only ramesh, john and jason can login to this system. Usernames should be separated by space.

AllowUsers ramesh john jason

Add the following entry to the sshd_config file to allow only the users who belong to a specific group to login. In the exampe below only users who belong to sysadmin and dba group can login to the system.

AllowGroups sysadmin dba

FileZilla 3.5.3 release

FileZilla, one of the best FTP client software. I use it for many years. It is free software. Easy to use and navigate.

3.5.3 (2012-01-08)
New features:

Ctrl+Shift+O can be used to toggle between modification time and filesize based directory comparison

Bugfixes and minor changes:

It is now possible to use custom passwords if using "anonymous" as user name
After un-hiding toolbar, update toolbar button states
Fix TLS compatibility issues with TLS 1.2 servers
MSW: Unset hidden attribute on FileZilla's settings files
Building FileZilla from source now requires wxWidgets 2.8.12 or higher.


I tried Steam game platform during last week.
It is great. I can treat it as cloud game platform.

1) Has one account of Steam.
2) Download and Install Steam on One of my computer.
3) Purchase game from the steam platform with discount.
4) Download the game and install it.
5) Steam will auto download patches or updates of the game.

I have 3 computers. One desktop in office; One Laptop at home; One desktop at home.
I can download Steam and install it on these three PCs. The game I bought can download and install on these three too. I can play the game on any PC with my game records. Transfer smoothly.

steam-about.jpg

It is a big news yesterday.
WiFi WPS security vulnerability found, major router makers affected

Wi-Fi Protected Setup (WPS; originally Wi-Fi Simple Config) is a computing standard that attempts to allow easy establishment of a secure wireless home network, but has been shown to easily fall to brute-force attacks. vi wiki

The router affected including:
Belkin, Inc.
Buffalo Inc.
D-Link Systems, Inc.
Linksys
Netgear, Inc.
Technicolor
TP-Link
ZyXEL

So, disable your WiFi WPS first.


How to Disabling WPS on Belkin router

1. Open a web browser on the computer.
2. In the address bar of the web browser, type http://192.168.2.1
3. Click Login in the upper right-hand corner of the page. The router does not ship with a password, so just click Submit.
4. Click on Wi-Fi Protected Setup or WPS (depending on which router you own) under Wireless in the menu on the left.
5. Click on the drop-down menu at the top of the page and select Disabled.
6. Click the "Apply Changes" button.

Archives

Recent Comments

  • Jeremy: thanks for sharing the info. just what I am lookig read more
  • Fabian5003: Thank you! I got mine today and it's exactly like read more
  • Jammy: Hi David, thanks for sharing, the script running great. But read more
  • Plopy: Hello. Should we have a "." (dot) at the end read more
  • william: my son destroyed mt remote for a phillipr 3962 dvd read more
  • mrbongo: Short, but very very necessary article:D Thank You. read more
  • AC: Do you know the way to upgrade from Joomla! 1.5 read more
  • Tej Kiran: Hi, Bucket Explorer's Latest version is released. Now Bucket Explorer read more
  • Florence: somehow I pushed the wrong button on my remote. After read more
  • sky blue credit reviews: I really loved it the way of the stuff provided read more

My Friends Blog

Subscribe

Ads

Other Links