The forgotten Milk

LifeHacks + Coding = HappyLife

5/31/2007

Create Document Map on common txt in UltraEdit

UltraEdit is an text, HTML and HEX editor, and an advanced PHP, Perl, Java and JavaScript editor for programmers. One important and popular feature is the function list. But when processing common txt file, no function list. You need customize the "wordfile.txt".
Please open the wordfile.txt in the UltraEdit install directory. And append the below characters.


/L14"TXT" Noquote Line Comment = # Line Comment Num = 5Note: Block Comment On = /* Block Comment Off = */ File Extensions = TXT
/Delimiters = !&*()+=|/;"'<>:@ ,./
/Function String = "%[0-9].*"


It can process the titles like "1.", "1.1" as document map.


And I wrote one reference for each language in the default wordfile and share it here.

Labels: ,

5/28/2007

Hack and lifehack in iGoogle

, Google’s personalized portal formerly known as Google Homepage, has a huge userbase, a nice selection of modules, and Google’s trademark simplicity which makes it easy to use for anyone.


1. open the door

Open the iGoogle homepage: http://www.google.com/ig, if you never use it in your computer, iGoogle will notice you: "You have been signed out. Sign in to see your stuff. (Don't have an iGoogle page? Get started.)" If you sign in with your google account, you will use iGoogle wherever. Otherwise, it only saves the customize information in your local computer. However, let's make the choice.


Then iGoogle will provide a sampling of content, please check for yourself and click "show my page". Wow, it is the portal page. Now you can customize the theme. Click " new! Select theme", there are seven themes for your choice. Adding tabs, adding stuff(widgets), that's all simple.



2. Fix the shortcoming or enhance

(1) the Unlimited tabs
When the number of the tabs got up to six, Google limits it! Please paste the javascript in URL:
javascript:_renameTab(); _dlsetp('at=')
Then you can see one new tab, then you can name it...

(2) Resizable columns
Firstly, you'll have to install Greasemonkey, a plugin for Firefox which enables you to change the actual webpages via simple JavaScript scripts.

This is one feature that Netvibes has and iGoogle doesn’t: resizable columns, which can be really useful if you really need to squeeze every last drop of screen real estate. This script will make this feature available in iGoogle, just grab the white space between the columns and drag it left or right.

http://userscripts.org/scripts/show/8162



(3) Replacing the logo
Don’t like the ubiquitous iGoogle logo on top of the page? This script enables you to set any image as the logo. It requires a bit of hand-editing to the code. You need to do the following (quote): “create the image as 166 x 55 px, upload it wherever, and refer to it within the #regular_logo, after background:url(”



3. Google Sidebar

View your Google Personalized Home page modules in the sidebar with an optimized layout.
All widgets will sort into one column automatically. And when click in the sidebar, the main window will open the target.
https://addons.mozilla.org/en-US/firefox/addon/3130

Usage:
* select in the menu: View -> Sidebar -> IGoogle, or
* use key combination: Ctrl+Alt+I, or
* click on toolbar button



4. Widget for life: Day Since widget


One iGoogle widget that tells you how many days have passed since you cleaned the litter box or put those leftovers in the fridge by developer Bernie Thompson.

Install the Days Since widget on your iGoogle homepage, and enter the number of days since you watered the plants or gave the dog a bath, and Days since will keep track for you as each day passes. The advantage to the physical timer, of course, is that you can stick it directly to the litter box itself, but this is free and always in sight on your iGoogle page.

Click the below click to add it to your iGoogle.




5. Widget for life: Simple GTD

Make one tab named "GTD", and add six widget "To-Do List" or "To-Do List+". (To-DO List+ has the time feature). Then name them by "Inbox", "Do it", "Action", "Waiting", "Project", "Maybe". Finally, add widget "Google Calendar".

Inbox: tasks unassigned

Do it: tasks can be done in two minutes
    for example: call someone

Action: tasks maybe be done beyond two minutes
    for example: send one package at post office

Calendar: tasks assigned by specified date
    for example: attend one marriage on Sep,12th

Waiting: tasks can be done after someone finish something
    for example: before send package at post office, let someone confirm the receiver's address.

Project: before detail in "Do it", "Action"
    for example: travel somewhere

Maybe: tasks when in free time
    for example: wash the car




6. Make your own gadget

http://www.google.com/ig/gmchoices?source=bppd, you can build your own gadgets using wizards. The gadgets are very simple and are more like containers for things that matter to you: photos, videos, events.

The wizards let you enter the settings for seven new gadget templates:

(1). Photo album - add up to 7 photos that can be rotated.
(2). GoogleGram - enter seven greeting messages.
(3). Daily Me - type what you are doing.
(4). Countdown - count the days until a special event.
(5). Simple list - you can use it as a ToDo list, shopping list.
(6). YouTube videos - up to 10 videos.
(7). Freeform gadget - add an image and some text.

Labels: , ,

5/27/2007

How to share your blog in Blogger site

Web2.0 is share. It is necessary to share your blog as one blogger. But in the Blogger space, it is hard to modify the template to add the share feature. For example, when you create share links with images, the images will auto turn into the strange style: one image by one line. When you meet this problem, please use table, tr, td elements.

Another tip we need to know, the Bookmark Services commonly provide API to add the bookmark from external. The API contain two parts. The first is URL, the second is title. Of course, for the different API, the parameter names for URL and title are different. For example, the API for "del.icio.us" is "http://del.icio.us/post?url=XXX&title=YYY". The one for "My Yahoo" is "http://myweb2.search.yahoo.com/myresults/bookmarklet?u=XXX&t=YYY".

This is the code I wrote for sharing links:

<p>
<table><tr>
<td>Share this:</td>

<!-- share link for del.icio.us -->
<td><a expr:href='"http://del.icio.us/post?url=" + data:post.url + "&amp;title=" + data:post.title' expr:title='"del.icio.us: " + data:post.title' target='_blank'><img src='http://i189.photobucket.com/albums/z223/wawatera/delicious.gif'/></a></td>

<!-- share link for Digg -->
<td><a expr:href='"http://digg.com/submit?phase=2&amp;url=" + data:post.url + "&amp;title=" + data:post.title' expr:title='"digg: " + data:post.title' target='_blank'><img src='http://i189.photobucket.com/albums/z223/wawatera/digg.gif'/></a></td>

<!-- share link for Technorati -->
<td><a expr:href='"http://technorati.com/cosmos/search.html?url=" + data:post.url + "&amp;title=" + data:post.title' expr:title='"Technorati: " + data:post.title' target='_blank'><img src='http://i189.photobucket.com/albums/z223/wawatera/technorati.gif'/></a></td>

<!-- share link for Reddit -->
<td><a expr:href='"http://reddit.com/submit?url=" + data:post.url + "&amp;title=" + data:post.title' expr:title='"Reddit: " + data:post.title' target='_blank'><img src='http://i189.photobucket.com/albums/z223/wawatera/reddit.gif'/></a></td>

<!-- share link for Stumbleupon -->
<td><a expr:href='"http://www.stumbleupon.com/submit?url=" + data:post.url + "&amp;title=" + data:post.title' expr:title='"stumbleUpon: " + data:post.title' target='_blank'><img src='http://i189.photobucket.com/albums/z223/wawatera/stumbleupon.png'/></a></td>

<!-- share link for My Yahoo -->
<td><a expr:href='"http://myweb2.search.yahoo.com/myresults/bookmarklet?u=" + data:post.url + "&amp;t=" + data:post.title' expr:title='"My Yahoo!: " + data:post.title' target='_blank'><img src='http://i189.photobucket.com/albums/z223/wawatera/yahoo_myweb.gif'/></a></td>

<!-- share link for Blinklist -->
<td><a expr:href='"http://blinklist.com/index.php?Action=Blink/addblink.php&amp;Url=" + data:post.url + "&amp;Title=" + data:post.title' expr:title='"Blinklist: " + data:post.title' target='_blank'><img src='http://i189.photobucket.com/albums/z223/wawatera/blinklist.gif'/></a></td>

<!-- share link for Furl -->
<td><a expr:href='"http://furl.net/storeIt.jsp?u=" + data:post.url + "&amp;t=" + data:post.title' expr:title='"Furl: " + data:post.title' target='_blank'><img src='http://i189.photobucket.com/albums/z223/wawatera/furl.gif'/></a></td>

<!-- share link for Tipstrs -->
<td><a expr:href='"http://www.tipstrs.com/addTip"' expr:title='"Tipstrs: " + data:post.title' target='_blank'><img src='http://i189.photobucket.com/albums/z223/wawatera/tipstrs.gif'/></a></td>

<!-- share link for Netscape -->
<td><a expr:href='"http://www.netscape.com/submit/?U=" + data:post.url + "&amp;T=" + data:post.title' expr:title='"Netscape: " + data:post.title' target='_blank'><img src='http://i189.photobucket.com/albums/z223/wawatera/netscape.gif'/></a></td>

<!-- share link for Google Bookmarks -->
<td><a expr:href='"http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=" + data:post.url + "&amp;title=" + data:post.title' expr:title='"Google Bookmarks: " + data:post.title' target='_blank'><img src='http://i189.photobucket.com/albums/z223/wawatera/google_bmarks.gif'/></a></td>

<!-- share link for ma.gnolia -->
<td><a expr:href='"http://ma.gnolia.com/bookmarklet/add?url=" + data:post.url + "&amp;title=" + data:post.title' expr:title='"Ma gnolia: " + data:post.title' target='_blank'><img src='http://i189.photobucket.com/albums/z223/wawatera/magnolia.gif'/></a></td>

<!-- share link for Newsvine -->
<td><a expr:href='"http://www.newsvine.com/_wine/save?u=" + data:post.url + "&amp;h=" + data:post.title' expr:title='"Newsvine: " + data:post.title' target='_blank'><img src='http://i189.photobucket.com/albums/z223/wawatera/newsvine.gif'/></a></td>

<!-- share link for Tailrank -->
<td><a expr:href='"http://tailrank.com/share/?link_href=" + data:post.url + "&amp;title=" + data:post.title' expr:title='"Tailrank: " + data:post.title' target='_blank'><img src='http://i189.photobucket.com/albums/z223/wawatera/tailrank.gif'/></a></td>

<!-- share link for live.com -->
<td><a expr:href='"https://favorites.live.com/quickadd.aspx?marklet=1&amp;mkt=en-us&amp;url=" + data:post.url + "&amp;title=" + data:post.title' expr:title='"Windows live: " + data:post.title' target='_blank'><img src='http://i189.photobucket.com/albums/z223/wawatera/windows_live.gif'/></a></td>

<!-- share link for Simpy -->
<td><a expr:href='"http://www.simpy.com/simpy/LinkAdd.do?href=" + data:post.url + "&amp;title=" + data:post.title' expr:title='"Simpy: " + data:post.title' target='_blank'><img src='http://i189.photobucket.com/albums/z223/wawatera/simpy.gif'/></a></td>

<!-- share link for Spurl -->
<td><a expr:href='"http://www.spurl.net/spurl.php?url=" + data:post.url + "&amp;title=" + data:post.title' expr:title='"Windows live: " + data:post.title' target='_blank'><img src='http://i189.photobucket.com/albums/z223/wawatera/spurl.gif'/></a></td>


</tr></table>
</p>

Labels: ,

Create your game with your images

With pictogame, you can create your own fun games with just a few steps! Simply upload your image, select the game template and start playing!

Brick mode: (wow, sexy girl, let's up)


Puzzle mode:


Zits mode:

Labels: