Archive for the ‘web’ Category

Flash 3D video demo

February 5th, 2011




Author: Xu Cui Categories: adobe air, programming, web Tags:

GMail Advanced Search

May 2nd, 2010

As I have quite some emails (>13000) in gmail, searching more efficiently becomes a necessity. Fortunately gmail offers some advanced search syntax.

  1. Search emails with attachment
    fmri meeting has:attachment
  2. Search emails with attachment, and the attachment is a pdf file
    fmri meeting filename:pdf
  3. Search emails sent from John
    fmri meeting from:john
  4. Search emails sent to John
    fmri meeting to:john
  5. Search emails sent before 2009/08/01
    fmri meeting before:2009/08/01
  6. Search emails sent after 2009/08/01
    fmri meeting after:2009/08/01
Author: Xu Cui Categories: life, web Tags:

Malicious website mimicing twitter

February 13th, 2010

You may receive a direct message from one of your friends saying:

Hi, xxx! A new twitter service! Try it, nice one!

Don’t click the link! I clicked and it’s exactly identical to twitter’s own interface. I thought it was twitter so I entered my username/password, but nothing happened. After a few hours I realize this might be a malicious website. So I changed my twitter password.

Social networks make us more connected — but also more vulnerable for virus to spread. Be careful.

Author: Xu Cui Categories: web Tags:

Mostly used password

January 25th, 2010

The most common password is 123456, about 1% people are using it.

Mostly used password

Mostly used password

Author: Xu Cui Categories: web Tags:

Top 10 Social Networking Sites

January 21st, 2010

In terms of number of visits, Facebook takes ~50% of the US market share.

Market share of social web

Market share of social web

Author: Xu Cui Categories: web Tags:

Amf3Broker error and fix

June 27th, 2009

I encounter this error in an AIR application which uses amfphp for remoting:

The class {Amf3Broker} could not be found under the class path {/var/htdocs/amfphp/services/amfphp/Amf3Broker.php}

I googled and found several links, but their suggestions doesn’t work. I finally find the cause in the error log files of apache:

PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 2502231 bytes) in /var/www/html/…/amfphp2/core/amf/io/AMFBaseSerializer.php on line 98

So the cause is not amfphp, but instead my setting in php. So I edited /etc/php.ini, set memory_limit to a larger value. The problem solved.

If this doesn’t solve your problem, you may try the following links:

Author: Xu Cui Categories: adobe air, linux, php, web Tags:

IE doesn’t connect but firefox can. How to fix?

June 25th, 2009

Go to Control Panel, Internet Options, click on the Connections tab; click the LAN Settings button and check ‘Automatically detect settings’.

Author: Xu Cui Categories: web Tags:

phpBB 3 spam filter

May 18th, 2009

Standard phpBB captcha is broken. I modify it such that the user need to add the numbers in captcha images and enter the result (e.g. 1+2+3=6), instead of enter the original characters (e.g. ‘123′).

Enter folder /includes/ucp

edit file ucp_confirm.php: around line 75, find $captcha->execute($row … ) and change to $captcha->execute(’123′,…)

edit file ucp_register.php:

around line 191 (’confirm_code’ = > …), change the mimum # of characters to 1 (instead of 5).

around line 489, find $code = gen_rand_string(mt_rand … and change to $code = ‘6′

Enter folder /

edit file posting.php: around line 755, find line if(empty($confirm_row … and change $confirm_row['code'] = ‘6′

Enter folder /language/en/common.php, change ‘CONFIRMATION_CODE_EXPLAIN’ strings to ‘Add all the numbers and enter the result’

Author: Xu Cui Categories: linux, php, web Tags:

Hide icons of free web traffic service

March 17th, 2009

<span style=”display:none”>traffic statistics code</span>

You should put this right before </body>

Author: Xu Cui Categories: web Tags:

Screen capture and video editing

February 25th, 2009

I use the following free programs to capture screen and edit the videos.

  1. CamStudio for screen capture. Output is AVI. Current version: 2.5 beta
  2. VirtualDub for editing (e.g. trimming unwanted frames). Output is AVI.
  3. WinFF for converting AVI to FLV. Also does resizing.
  4. JW FLV Player to play flv video
Author: Xu Cui Categories: web Tags: