Showing posts with label tips. Show all posts
Showing posts with label tips. Show all posts

2009/07/16

Amazon S3 upload issue

I got this error when I try to upload file to Amazon using S3.php library.

Amazon S3 Server.RequestTimeTooSkewed(403): The difference between the request time and the current time is too large.

The problem is that the developer box was down in the past few days. It is up now, but the date time is wrong.

Here is a solution:

ntpdate pool.ntp.org

2007/03/12

How to schedule the deletes task

  1. Open C drive. Create a new folder named “tool” and copy “mydel.bat” into “C:\tool”
  2. Open “mydel.bat” using NOTEPAD. Change C:\ “documents and settings”\Cindy\“my document”\test to the path of back up folder. E.g C:\masslynx\systembackup new line: C:\masslynx\systembackup\*.* save the file.

    echo y del C:\"Documents and Settings"\Cindy\"My Documents"\test\*.*

  3. Run schedule task
    Start
    All programs
    Accessories
    System tools
    Schedule task
  4. Click “add scheduled task”
    next
    Brower to find the file at “C:\tool\mydel.bat”
    schedule time (two steps)
    User name is on the screen or = full computer name\user name
  5. Right click “my computer”
    Properties
    Find computer name
    User name is the log in name
    Password is the log in password
    Click finished without check the option of “open advanced….”

2006/09/18

Add Baidu Search Engine in Firefox

Create baidu.src file like below and save it in "C:\Program Files\Mozilla Firefox\searchplugins". It's better to get a 16x16 size icon named baidu.gif/baidu.png in the same directory, otherwise the default icon will be used.

just found a original icon @ www.baidu.com/favicon.ico. Use flashget download it, rename to baidu.gif and save it. Restart firefox, you will see the change. 9/19/06

<search
version="7.1"
name="Baidu"
description="Search www.baidu.com"
action="http://www.baidu.com/s"
searchForm="http://www.baidu.com"
method="GET"
queryCharset="utf-8"
>
<input name="wd" user="">
<inputnext name="start" factor="10">
<inputprev>
<input name="ie" value="utf-8">
<input name="oe" value="utf-8">

<interpret
browserResultType="result"
charset = "UTF-8"
resultListStart="<!--a-->"
resultListEnd="<!--z-->"
resultItemStart="<!--m-->"
resultItemEnd="<!--n-->"
>
</search>

2006/08/17

Load searches from FF search bar in new tab

Step 1:
download and install this handy extention, 'tabbrowser perferences'

Step 2:
restart firefox

Step 3:
goto
Tools -> Options -> Tabbed Browsing -> User Interface
select the box, ‘Searches from the search bar’