2009-03-01

How IMGSaver Works on iPhone


IMGSaver uses a piece of JavaScript to inject the following code into the current document.

(Sorry, I can't put the code into this blogger!! Blogger.com is a terrible blog!)

It shows up all images in the current web page (document). Then, user should click one of them. By this way this image pops up on the top of the history. User has to close Safari, so that the current history in memory is persisted into /var/mobile/Library/Safari/History.plist. Next time when IMGSaver is opened, the first item in the list is what the user just clicked. IMGSaver downloads once again by the URL, and saves it into local directory.

The keypoint is to inject the JavaScript into current document. IMGSave preinstalled a number of bookmark items, and one of them, "Display All Images", contains this java script code.

Labels:

2009-02-14

iPhone SwirlyMMS Conflicts with Other Software

After I installed UCWeb, I found that the SwirlyMMS can't work. I need it, but I can't reinstall it. Last time when I updated the SwirlyMMS, it made my iPhone couldn't start. I had to reinstall the whole system, and lost all my contacts and data.

This time, I had to be very careful. I found that one more dynamic library was inserted into /System/Library/LaunchDaemons/com.apple.CommCenter.plist. I carefully removed it and let /Applications/SwirlyMMS.app/smshook.dylib be the only library. Then restarted iPhone, and the SwirlyMMS worked as usual. Also UCWeb works as well. I am not sure whether it can fully function. At least, it works as I expected.

Labels:

2007-06-23

A Simple Immune Method to USB-Disk Viruses

This is the outline of a little presentation.

Introduction to the USB-Disk Viruses

  1. Understand the USB-Disk viruses

    USB-Disk viruses are a kind of viruses attached to USB removable disk like that of floppy disk very popular in 1990s. The virus from an infected computer is reproduced itself into the USB disk. When you plug this disk into a clean computer, the virus gets a chance to reside in the system, waiting for a new victim, while you are in complete ignorance of all this happened.

  2. How they propagate

    By default, Windows system enables an Auto Play function. When you plug in a USB disk or CD, Windows loads and executes a file named AutoRun.ini, which is the list of predefined tasks. The virus reproduces itself into the disk and modifies this file, so that when the file is executed, the virus is able to reside into the system.

  3. How they damage your computer system

    Nowadays the virus is not that simple as just propagating itself, whose only consequence is to lower the performance of the system. Today, almost every virus has its own mission embedded with spy wares and backdoors, which makes you in dangerous, for example, stealing your data files, ID information, and password of your bank account. Your computer probably becomes a zombie, from which hackers attack other victims.

An Immune Method to the USB-Disk Viruses

  1. Open a command prompt by click Start -> Run. Input cmd and hit the return key.
  2. In the command prompt, create a directory in the root directory of the USB drive with command:
    mkdir AutoRun.ini
  3. Move into this new directory with command:
    cd AutoRun.ini
  4. Create a new directory with command:
    mkdir a...//
  5. Exit the command prompt window with command:
    exit
  6. Remove the USB-Disk from the computer

Conclusion

  1. A simple method without extensive computer knowledge
  2. Immunity to the current known USB-Disk viruses and unknown ones in the future
  3. Applicable to other removable storage devices such as digital cameras and MP3 players

Labels:

2007-04-17

Sample: Wildlife

In the big woods, another spring will bring new leaves to the towering Nuttall oaks and sweet gums and centuries-old bald cypresses. Black bears will emerge from their dens in massive hollow sycamores, and bald eagle chicks will beg for food from their parents. Swallow-tailed kites and Swainson’s warblers will build nests, cottonmouths will uncoil and set off in search of unwary bullfrogs, and wood ducks will lead their young across bayous that are home to alligator gar as long as kayaks.

-Mel White, The Ghost Bird, National Geographic, Dec. 2005.

Labels:

2007-04-09

Shuan Yang Rou

In Beijing, an international city in China, you can find many kinds of cuisines around the world, while, Shuan Yang Rou, instant-boiled mutton slices, is one of the finger-countable local flavors. After I first tried it when I came to Beijing ten years ago, it becomes one of my regular dining-outs. Outsiders often mix it up with hot pot, a flavor originated from Chongqing, a municipality in the southwest of China, whose pot contains thick soup, hot and spicy, while the pot of Shuan Yang Rou contains only clear water, and every taste is in a dish of special sesame jam, which is usually the top secret of a restaurant, since it can lure fussy goers far away. You fetch a piece of mutton, usually transported from the grassland of Inner Mongolia, with chopsticks, and put it into the boiling water for a little while, then, get it out and put it into the dish of sesame jam, and it is ready to serve. The action, Shuan in the clear water, is quite easy to learn, and people put a different meaning to this little verb, cheated or befooled, i.e., you are asked to do something but finally you get nothing reward at all.

Labels: , ,

Sample: Introducing People

Borge, 43, lankily erect, fair-featured, and self-possessed, with long, ropy arms and cinnamon hair, was known, among other things, for his obsessive preparedness; he was a study in Nordi cool. Mike, 39, a dark-featured, dimpled South African-born Swiss, tightly muscled and with gigantic thighs, had a zesty kinetic spirit that gave the impression of a bull in a china shop; he thought of himself as a hot Latin and was more inclined to wing it. You could see the stamina shining out of his eyes. Thomas, 39, a compact and talkative Swiss, quick to laugh, with twinkly blue eyes and an underlying edge, was fastidious about safety and had a professional alpine guide’s love of detail. At one point, he was a prospective third partner on Mike and Borge’s trek to the Pole in the dark, but, for reasons which will be explained later, they went their separate ways.

Marguerite Del Giudice, Arctic Dreams & Nightmares, National Geographic, Jan., 2007.

2007-04-03

From Home to Office

The office of Qilinsoft is located at Wangfujing, the downtown of Beijing. Everyday I take subway Line 13 from Huilongguan station, a large community in the north of Beijing, to the eastern terminal Dongzhimen station, located at the northeast corner of the Second Ring road. There, I change to subway Line 2 to south, and arrive at Jianguomen station, an interchange station. Without exiting the station, I change to subway Line 1, and arrive at Wangfujing station. Follow the sign of the exit to the Oriental Plaza. The office is on the 16th floor, Block E1.

Labels: , , ,

2007-03-23

Travel by Train

If I could get a train ticket, I would like to travel by train instead of by air. In China, more likely trains can arrive on time. There is a larger space for you to walk around in a train carriage than that of in a plane cabin. I am happy to enjoy flowing into beautiful scenery along with steel rails, whereas you may find it boring with unchanged sunshine and clouds. There are a lot of interesting people, with whom I can share various experiences, and it makes the journey even shorter than flying in the air.

Labels: ,