11月21日

11月 22, 2009 发表评论
  1. 去Eastland逛街逛了一上午
  2. 收获一瓶Jurlique水一瓶
  3. 吃了两种鸡料理快餐,Red rooster和Nando’s。两相比较,Nando’s的Grilled chicken胜出。有点酸,有点甜,又香又脆,真够回味的。好像回家自己学着做~~~
分类: Uncategorized

Thumbnail Generation PHP Memory Limit in NextGEN Gallery

11月 12, 2009 发表评论

Original Link: http: http://www.visser.com.au/blog/thumbnail-generation-php-memory-limit-nextgen-gallery/

When uploading a set of admittedly large images using NextGEN Gallery to my WordPress site I exceeded my web hosts default memory usage allocation for PHP applications. The error was:

Follow thumbnails could not created. sample.jpg (Error : Exceed Memory limit. Require : 80.65 MByte)

This issue can be resolved by increasing the memory usage allocation at a per-plugin level for PHP applications that require more grunt than others. It’s quick and easy!

  1. Open an FTP connection to your root WordPress directory
  2. Open /wp-content/plugins/nextgen-gallery/lib/thumbnail.inc.php (mine is gd.thumbnail.inc.php) with your favourite text editor (e.g. UltraEdit, etc.)
  3. On line #168 un-comment (remove the //) from before @ini_set('memory_limit', '128M');
  4. Save and upload changes
  5. Delete image/s that failed to generate a thumbnail and re-upload using NextGEN Gallery’s standard Upload Images feature

If you find 128MB is too ‘conservative’ this can be increased again to any figure of your liking, I find 128MB appropriate for most commercial and personal usage but if you’re a HD photographer then you’re going to hit this limit very quickly… that’s it!

11月12日

11月 12, 2009 发表评论
  1. 置业成功,晋身为房东兼房奴
  2. 新装了Quicken 2010,可以同时记录个人现金流,业务账目及房贷等。更多详细功能还有待开发。。。
  3. 登陆澳洲之后第一笔收入进账
分类: 每日开心事

NextGen Gallery IE Bug – missing middle line of images

11月 2, 2009 发表评论

I found a bug of NextGen Gallery in IE (not in Firefox, Opera and Safari).

When I added “letter-spacing:1px” for the div container of NextGen Gallery (either in ablum view or gallery view), the middle line of the view disappearred. After removing letter-spacing, the problem was solved.

Change Class Attribute in Firefox and IE

11月 2, 2009 发表评论

Firefox and IE act differently when change class attribute. I used below codes to do this:

<SCRIPT LANGUAGE=”JavaScript”>
function locateHome() {
curUrl=location.href;
homeUrl=”<?php bloginfo(‘url’)?>/”;
homeEnUrl=”<?php bloginfo(‘url’)?>/?lang=en”;
homeZhUrl=”<?php bloginfo(‘url’)?>/?lang=zh”;
if(navigator.userAgent.indexOf(“MSIE”)>0) {
if ((curUrl==homeUrl) || (curUrl==homeEnUrl) || (curUrl==homeZhUrl)){
homeClass=nav.getElementsByTagName(“li”)[0].getAttribute(‘className’);
homeClass=homeClass+” current_page_item”;
nav.getElementsByTagName(“li”)[0].setAttribute(‘className’,homeClass);
}
}else {
if ((curUrl==homeUrl) || (curUrl==homeEnUrl) || (curUrl==homeZhUrl)){
homeClass=document.getElementById(“nav”).getElementsByTagName(“li”)[0].getAttribute(“class”);
homeClass=homeClass+” current_page_item”; //alert(“2″+homeClass);
document.getElementById(“nav”).getElementsByTagName(“li”)[0].setAttribute(“class”,homeClass);
}
}
locateHome();
</SCRIPT>

Flash mp3 player plugin

11月 2, 2009 发表评论

Flash mp3 player plugin I have used:

  • Javascript Sound Kit
    Just souce code. No player interface. Bug: cannot auto repeat; always need to load sound first before perform other operations
  • Enhanced XSPF Player With Autoresume Support
    Enable continuous background music between pages and pages but the music has intervals not smooth
  • getID3()
    A PHP script that extracts useful information from MP3s & other multimedia file formats. I used it with Javascript Sound Kit together to create continuous background music for ida website.

用php获取当前URL

11月 2, 2009 发表评论

$url_this =  “http://”.$_SERVER ['HTTP_HOST'].$_SERVER['PHP_SELF'];
echo $url_this;

10月9日

10月 9, 2009 发表评论
  1. 完成了义工的活:打了电话给诸多中学,成功要到了不少联络人的联系方式。
  2. 小菜给下一期的学生做经验交流,得到美味巧克力一罐
  3. 收到Broker电话,告知贷款批下来了
  4. 晚上成功摒劳只吃了一块薯片

巧克力赠礼

分类: 每日开心事
加关注

Get every new post delivered to your Inbox.