Archive

Archive for the ‘web’ Category

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.

http://mail.google.com/support/bin/answer.py?hl=en&answer=7190

  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! http://twltter.ru/

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:
http://www.sephiroth.it/weblog/archives/2007/10/amfphp_and_mbstring.php
http://www.gotoandlearnforum.com/viewtopic.php?f=17&t=23708&p=109112

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:

How to redirect a url (webpage)?

February 10th, 2009

301 redirect

Put .htaccess file in your web directory. In .htaccess include:

Redirect 301 /index.html http://www.example.com/start.html

The file ‘index.html’ doesn’t have to exist.

meta redirect

Include the following line in <head> block.

<meta http-equiv=”refresh” content=”2;url=http://webdesign.about.com”>

Avoid using meta redirect if possible. Meta redirect is (1) slow and (2) search engine unfriendly.

Author: Xu Cui Categories: web Tags: