Saturday, February 28, 2009

Adding Flash Video into Gallery Description Gallery2.3 21Feb2009

http://gallery.menalto.com/node/85750

htmlSafe is a method of /gallery2/modules/core/classes/GalleryUtilities.class
set it to return the html untouched. (Let the system return the untouched html.

/gallery2/modules/core/classes/GalleryUtilities.class
it should have gone from this lines ~850 - 864:

      function htmlSafe($html, $decode=false) {
GalleryCoreApi::requireOnce('lib/pear/Safe.php');
static $parser;
if (!isset($parser)) {
$parser =& new HTML_Safe();}
if ($decode) {GalleryUtilities::unsanitizeInputValues($html, false);}
$html = $parser->parse($html);
if ($decode) {GalleryUtilities::sanitizeInputValues($html, false);}
return $html;}

(remove the above lines, and add the code below)

to this:

    function htmlSafe($html, $decode=false)
{return $html;}
 

Sunday, February 22, 2009

Installation / Upgrading vBulletin Blog

 
Installation / Upgrading 
The Blog is quite simple to install or upgrade. The process is the same for each.
1 Download the latest version of the Blog from the Members' Area. Be sure that you are running vBulletin 3.6.8 or newer!
2 Unzip the file to your hard drive locally.
Warning:
Be sure to maintain the directory structure when you unzip the file!
3 Upload the contents of the upload/ directory within the zip on top of your existing vBulletin directory. This is the directory with forumdisplay.php and many other files in it.
Note:
If you are upgrading, overwrite any files if prompted.
4 Log into your vBulletin forum's control panel. Go to Plugins & Products > Manage Products > Add/Import Product
5

In the Import the XML file from your server field, enter: ./includes/xml/product-vbblog.xml

Change Allow Overwrite to yes.
6 Click Import.
If all went well, you should see a message saying your install or upgrade was successful! That's it!
Note:
There are more detailed instructions on how to unzip and upload files in the Installing vBulletin section. These may be helpful.

Note that there is no config.php configuration file in the Blog. You do not need to perform this step.

Saturday, February 21, 2009

Cash payments to eligible taxpayers

 
 
 
You are here: Home / News & Media / News & Info
    Printer friendly version Submit feedback

    Cash payments to eligible taxpayers

    Thursday 12 February, 2009

    The Government has introduced into the Parliament its $42 billion economic stimulus package, which consists of five groups of one-off cash payments to eligible taxpayers.  The intention of providing these payments is to immediately support jobs and strengthen the Australian economy during a severe global recession.

    These five key payments include a:

    • Tax Bonus for working Australians of up to $950 paid to every eligible Australian worker earning $100,000 or less.This amount may be reduced to $900 following a parliament debate.

    • $950 Single Income Family Bonus to support families with one main income earner.

    • $950 Farmer's Hardship Bonus paid to drought affected farmers and farm dependent small business owners receiving exceptional circumstances related income support.

    • $950 per child Back to School Bonus to support children from low and middle income families.

    • $950 Training and Learning Bonus paid to students and people outside of the workforce returning to study to help with the costs of education and training.

    The relevant bills for the above payments are currently under debate in the Parliament. Taxpayers Australia has prepared a detailed summary of the major features of this stimulus package. The summary of the cash payments will be published in issue 15 of The Taxpayer.

    eligible to receive $900 economic stimulus payment

    http://www.etax.com.au/content/files/tax_bonus.aspx?sReferrer=googletaxbonus&gclid=CPLr4PPd7JgCFQUupAodGUrK1Q

     

    We helped you with your 2008 tax return - We can help to get your $900 tax bonus

    Some 8.7 million Australian workers earning $100,000 or less are eligible to receive $900 as part of the $42 billion economic stimulus package the Rudd Government announced on 3rd February 2009. To be eligible to receive this payment you must meet the following criteria:
    • Lodge your 2008 Tax Return before 30 June 2009
    • Your taxable income for 2008 was less than $100,000
    • You actually paid tax in the 2008 tax year (its ok if you got a refund due to PAYG in most cases)
    • You are an Australian Resident for tax purposes
    The $900 tax bonus payment is subject to an income threshold test and will be paid on a sliding scale:
    • $900 bonus will be paid if your taxable income is less than $80,000
    • $600 bonus will be paid if your taxable income is less than $90,000
    • $250 bonus will be paid if your taxable income is less than $100,000
    There are also a number of other tax bonuses, including to families with school-age children, farmers, single income families and people undergoing training.

    If you have already lodged your 2008 tax return with Etax Accountants, please email admin@etax.com.au to give us authority to process your bonus, or click here to login and sign the agreement.

    If you haven't lodged your 2008 return yet, click here to get started

    $950 One-off Cash Bonus to Support Jobs

     

    $950 One-off Cash Bonus to Support Jobs

    03 February 2009

    The Rudd Government today announced five key $950 one-off payments for low and middle income households and individuals.

    The Government is providing these cash payments to immediately support jobs and strengthen the Australian economy during a severe global recession.

    These targeted cash bonuses are a key element of the Government's $42 billion Nation Building and Jobs Plan to support up to 90,000 Australian jobs.

    To immediately stimulate the economy in the shortest possible time, five groups of one-off cash bonuses will be paid in March and April 2009.

    These five key bonuses include a:

    • Tax Bonus for Working Australians of up to $950 paid to every eligible Australian worker earning $100,000 or less. This will support up to 8.7 million individuals.
    • $950 Single Income Family Bonus to support 1.5 million families with one main income earner.
    • $950 Farmers' Hardship Bonus paid to around 21,500 drought affected farmers and farm dependent small business owners receiving exceptional circumstances related income support.
    • $950 per child Back to School Bonus to support 2.8 million children from low- and middle-income families.
    • $950 Training and Learning Bonus paid to students and people outside of the workforce returning to study to help with the costs of education and training.

    To support jobs in the middle of a severe global recession the Government must stimulate the economy in the most immediate manner possible.

    That is why one off cash bonuses to people and families who are doing it toughest are a key part of our Nation Building and Jobs Plan.

    These one off cash bonuses reflect the weight of economic authority – including the advice of the International Monetary Fund – that targeted one off payments rather than generalised tax cuts spread over a lengthy period are more likely to be consumed, and thus provide a more effective economic stimulus and provide more support for Australian jobs.

    There will be no quick fixes, but the Government is determined to act swiftly and decisively to support Australian households, growth and jobs.

    These cash bonuses will stimulate consumption quickly, supporting economic activity and jobs until our nation building initiatives have an impact. 

    This $12.7 billion package is a major economic initiative to deal with these extraordinary economic times and is in addition to the Economic Security Strategy that the Rudd Government delivered in December 2008.

    Tax Bonus for Working Australians

    The Government will provide an up-front, lump-sum tax bonus of up to $950 to around 8.7 million Australian workers earning $100,000 or less. 

    A lump-sum payment of up to $950 will be made to eligible taxpayers from April 2009. The bonus will be available to Australian resident taxpayers who paid tax in the 2007-08 financial year after taking into account available tax offsets and credits.

    The bonus is subject to an income threshold test which determines that a:

    • $950 bonus will be paid to eligible taxpayers with a taxable income of up to and including $80,000;
    • $650 bonus will paid to eligible taxpayers with taxable incomes exceeding $80,000 and up to $90,000; and
    • $300 bonus will be paid to eligible taxpayers with incomes exceeding $90,000 up to and including $100,000.

    Taxpayers will not need to apply for the payment. The Australian Taxation Office will automatically make the payment after determining eligibility. 

    Single Income Family Bonus

    The Government's Single income Family Bonus will provide an up-front, one-off bonus payment of $950 to approximately 1.5 million families who receive Family Tax Benefit Part B (FTB-B). The bonus is intended to provide additional assistance to families with children that have one main income earner. 

    The payments, which will be made automatically by Centrelink in the fortnight commencing 11 March 2009, will be non-taxable and will not be counted as income for social security purposes. 

    The small number of families who claim FTB-B as a lump sum, will receive their one-off payments from Centrelink in 2009-10 and 2010-11 after their 2008-09 tax returns have been processed by the Australian Taxation Office. 

    Families who are eligible for FTB-B on 3 February 2009 will receive the Single Income Family Bonus.

    Farmer's Hardship Bonus

    The Government will provide $20.4 million in 2008-09 for an up-front, one-off payment to farmers and rural-dependent small business owners receiving exceptional circumstances related income support. 

    A lump-sum payment of $950 will be made to people who, on 3 February 2009, are receiving:

    • Exceptional Circumstances Relief Payment for Farmers;
    • Exceptional Circumstances Relief Payment for Small Business;
    • Interim Income Support for Farmers;
    • Interim Income Support for Small Business;
    • Transitional Income Support; or
    • Farm Help Income Support.

    The payments will be made in the fortnight commencing 24 March 2009, to approximately 21,500 recipients and will provide additional support to groups of Australians who are in hardship. These payments will not be taxable and will not be counted as income for social security purposes.


    Back to School Bonus

    The Government's $950 Back to School Bonus will provide a one-off, up-front bonus to be paid to families eligible for Family Tax Benefit Part A (FTB-A) on 3 February 2009 for each eligible child of school age (aged 4 to 18 on 3 February 2009).

    This will help meet education costs for the 2009 academic year and is in addition to and separate from the Education Tax Refund. 

    The Back to School Bonus is expected to help 2.76 million children aged 4 to 18 in just over 1.5 million families across Australia. 

    Training and Learning Bonus

    The Government's $511 million Training and Learning Bonus provides an up-front, one off bonus to eligible students to assist with the costs for the 2009 academic year. It also provides a temporary (until June 2010) additional incentive for social security recipients to return to education and training. 

    The Training and Learning Bonus consists of two categories:

    Category 1

    • A one-off $950 bonus for recipients of: Youth Allowance (students and apprentices); Austudy; ABSTUDY and related payments 
    • The one-off bonus will also be available to recipients of Sickness Allowance and Special Benefit (under age pension age). 
    • If a student attracts the Government's Back to School Bonus they are not eligible for the one-off $950 Learning and Training Bonus.

    Category 2

    • A temporary supplement (from 1 January 2009 to 30 June 2010) to the Education Entry Payment (EdEP) of $950. This is in addition to the existing EdEP payment of $208, which provides assistance with the costs of training courses, for income support recipients who are returning to study. 
    • A temporary extension (from 1 January 2009 to 30 June 2010) of the EdEP to Youth allowance (other); and 
    • A temporary relaxation (from 1 January 2009 to 30 June 2010) of the requirement that recipients must have been receiving social security payments from 12 months to 1 month.

    Around 440,000 students and people returning to study will be paid this one off cash bonus. 

    Friday, February 20, 2009

    Gmail: How To Display All Unread Email

     

    If you keep a large amount of email in your Gmail Inbox, it can sometimes be difficult to locate all of your unread mail. Instead of scrolling to hunt for them, you can simply perform a basic search and quickly get a collection of anything that you have yet to read.


    1. Go to Gmail.

    2. In the Search box at the top of the page, input the following:

    label:(unread inbox)

    3. Click the Search button

    A list of all unread emails located in the Inbox will appear.

    If you need to do this frequently, you can save time by using a little shorthand and using this in the Search box:
    l:^u l:^i

    ^u is shorthand for unread
    ^i is shorthand for inbox

    You can also search for unread email on your phone's Gmail for Mobile application:

    1. Open Gmail for Mobile.

    2. Select Menu.

    3. Select Search Mail.

    4. Input label:(unread inbox) and select Search.

    A list of all unread emails located in the Inbox will appear.

    Thursday, February 19, 2009

    Voicemail from Alan ZHANG (10 seconds)

    Alan ZHANG has sent you a voicemail using Google Talk. It's 10 seconds long. To listen to this voicemail, please download the attached MP3.

    Sunday, February 8, 2009

    CSS的定制Drupal主题风格

    CSS的定制Drupal主题风格

    似曾相识 的头像

    Drupal的主题定制非常灵活,可以定制每个区块定制的风格。如果懂PHP的话,几乎可以做出可以想得到风格来。
    实际上,在大多时候我们主要是通过图片+CSS来定制,这是一种最简单的定制,也不需要懂得太多的PHP知识。

    在themes目录下的每个主题目录中,有一个style.css文件。定制CSS的关键是搞清楚CSS元素控制的对象。但许多人搞不清楚CSS元素控制的对象,在这方面花了不少时间。其实只要选对工具,这实际上是非常容易做的。

    这个强大的工具就是Firefox。大多数人只知道Firefox是一个浏览器,实际上Firefox提供了大量网页开发的工具。例如:
    + 选定一部分网页内容,通过右键菜单的View Selection Source功能,可以查看选定部分网页的源码。这是一个杀手级的功能,再也不必为在庞大的HTML源码中找不到相应的目标内容而头痛了。
    + 菜单 Tools->Page Info 可以看到非常详细的网页内容,包括表单、链接、多媒体等信息
    + 菜单 Tools->DOM Inspector 可以对网页的HTML、JavaScript、CSS等内容进行很方便的分级浏览

    Firefox的功能太多,一时半刻说不完,我们还是回到CSS定制上面来。这需要用到一个Firefox的插件,插件名称是Web Developer,可以在Firefox的网站上下载到这个插件。

    安装好Web Developer插件后,就可以用其提供的功能来定位对象的CSS控制元素:
    + 插件的CSS菜单下有一个View Style Information功能非常好用,当你的鼠标电击到网页的某项内容,就能看到该项内容所使用的相关CSS内容。
    + 在Information菜单下有一个Display ID & Class Details功能,能在网页上显示所有的ID和Class信息。

    Web Developer插件是专门为网页开发人员提供的一把宝刀,功能太丰富了,你们就慢慢去体会吧。

    Thursday, February 5, 2009

    《昨天》:一个80年生人的回忆

     
     
    我看见大片大片的阳光
    www.u148.net如果说《一毛钱》是用暴力的鼻血表达记忆之痛,那《昨天》则是在用流水一样的温情闪烁回忆的忧伤以及长大成人后对生活的反省。当记忆的水滴积重难返,我看见人生的河床上波涛汹涌,波澜壮阔。
    给我印象最深的,是其中无处不在的光亮:片头门后射出的记忆之光、贯穿整个片子的阳光(你可以稍微注意一下每个场景)、两眼闭合前的灯光。
    开头的睁眼与结尾的闭眼是两个很好的对比和隐喻:睁眼是为了看见,闭眼是为了反思。
    我们拥有的,不仅仅是记忆中的阳光;儿时的阳光一直都在我们心中,一直照到现在。
    "有时候,停下脚步,也是一种前进。"让我们时不时地停下匆匆的脚步,等等记忆,想想未来。
    "漠然的忙碌,混沌的思索,遮挡不住曾闪耀的光辉……我们背叛了生活,背叛了信仰,却无法背叛童年,无法背叛曾经的纯真。"是什么雕刻了我们?
    人生就像怀揣不同的梦想攀爬无尽的楼梯,楼道涂满沿途的风景。当我们站在更高的一级,我们说那些风景是记忆。
    最后总会有一个房间盛放我们的梦想、记忆,和身体。

    www.u148.net

    十三昨晚推荐这个视频的时候,问他为什么不发,他说:感触太深,笔墨不敢染指。
    在一次聊天中,我们说起父辈。"80后总是顾影自怜地回忆自己。"他说,等有实力的那天,他要拍一个关于父辈的故事,"那些涌动的人群,灰衣灰裤中的一点红"。
    当我们开始郑重其事地回忆(不论是自己还是父辈),表明我们正在长大。

    Wednesday, February 4, 2009

    本站的drupal风格提供下载了 老鬼

     

    本站的drupal风格提供下载了

    这个风格是我基于默认的garland主题简单修改的,并非纯原创,很多地方都是参考了国外的一些网站。模板文件基本没改,全修改css而来。你只需要下载本站css,然后稍微修改一下page.tpl.php就行了。本风格是左宽又窄两栏风格,不适合其他布局,你如果想改成其他布局需要自己修改css。

    page.tpl.php只修改了四处,把breadcrumb、footer和searchbox移动了一下位置,然后加入了一个js让IE6支持li:hover属性(导航菜单里需要)。

    压缩包里只有四个文件,page.tpl.php style.css fix-ie.css 还有我自行修改的搜索框文件search-theme-form.tpl.php,你只需要把它们放到garland文件夹里就行了。

    为了搭配这个风格,你需要修改一下drupal的设置:
    admin/build/themes/settings/garland 风格设置里把站点名称,站点口号关了,只显示logo。在内容类型里把内容类型的评论表单位置修改为"在评论或文章下方显示"。

    导航出两个菜单分别用了自带的主导航链接和次链接,你可以去admin/build/menu/list里自行添加。

    底部的版权信息你可以在站点设置添加。

    page.tpl.php里的文字广告是我免费为我论坛核心会员做的,你不要骂我,这只算是我对论坛核心会员的一点感谢。你可以自己删除和修改。

    我所使用的模块你可以在 http://my.chinahtml.com/modules/used 查看

    本风格只是我稍微修改了一下css得到的,很多地方还不完善,我还在修改当中,请大家继续关注。

    附件 大小
    chinahtmldrupaltheme.rar 37.63 KB

    评论

    Tuesday, February 3, 2009

    53个你会感兴趣的CSS技术

     

    53个你会感兴趣的CSS技术

    CSS已经变得越来越常用,并且其重要性日渐突出。CSS为我们提供了一种全新的布局模式,使我们不必再拘泥于表格布局,并且让内容与展现形式完美地分离开来,因此更改页面的设计变得十分容易,只需更换一个css文件就搞定,确实很赞。

    CSS诞生后接下来的几年里,网页制作者们发表了无数关于CSS开发技术的文章,从这些文章中我们受益匪浅,节约了大量的开发时间。以下,我将向大家推荐53个您一定会感兴趣的CSS技术,大部分都是很基本并且您已经离不开的。

    1. CSS Based Navigation

    2. Navigation Matrix Reloaded

    3. CSS Tabs

    4. CSS Bar Graphs (CSS For Bar Graphs)

    5. Collapsing Tables: An Example

    6. Adam's Radio & Checkbox Customisation Method

    7. CSS Image Replacement

    8. CSS Shadows (CSS Shadows Roundup)

    CSS-Technique

    9. CSS Rounded Corners Roundup (Nifty Corners)

    10. Drop Cap - Capital Letters with CSS

    11. Define Image Opacity with CSS

    12. How to Create a Block Hover Effect for a List of Links

    13. Pullquotes with CSS (Automatic Pullquotes with JavaScript and CSS

    14. CSS Diagrams

    15. CSS Curves

    16. Footer Stick allows for the footer of a Web page to appear either at the bottom of the browser window or the bottom of the Web page content �?whichever is visually lowest.

    17. CSS Image Map

    18. CSS Image Pop-Up

    19. CSS Image Preloader

    20. CSS Image Replacement for Buttons

    21. Link Thumbnail

    22. CSS Map Pop

    23. PHP-based CSS Style Switcher

    24. CSS Unordered List Calender (CSS Styled Calender)

    25. CSS-Based Forms: Techniques

    26. CSS-Based Tables: Techniques

    27. Printing Web-Documents and CSS

    28. Improved Links-Display for Print-Layouts with CSS

    29. CSS-Submit Buttons

    30. CSS Teaser Box

    31. CSS Tricks for Custom Bullets

    32. Ticked Off Links Reloaded

    33. CSS Zooming

    34. Creating a Star Rater using CSS

    35. The ways to style visited Links

    36. PDF, ZIP, DOC Links Labeling

    37. Displaying Percentages with CSS

    CSS-Technique

    38. Image Floats without the Text Wrap

    39. Let visitors decide, whether or not will they open link in a new window

    40. Simple accessible external links

    41. Zebra Table with JavaScript and CSS

    42. Vertical Centering with CSS (Horizontal and Vertical Centering with CSS

    43. Unobtrusive Sidenotes

    44. Image Caption with CSS (Styled Images with Caption)

    45. Dynamic Piechart with CSS

    46. Format Footnotes with CSS

    47. Hierarchical Sitemap with CSS

    48. Snook�� Resizable Underlines

    49. Switchy McLayout: An Adaptive Layout Technique

    50. StyleMap: CSS+HTML Visual Sitemap

    51. Custom Reading Width

    52. CSS Alert Message

    53. CSS Production Notes

    原文:53 CSS-Techniques You Couldn't Live Without

    30个顶级Wordpress培训视频指南与教程

    30个顶级Wordpress培训视频指南与教程

    WordPress是最受欢迎的博客发布平台之一,具有免费,高度可定制、容易安装和使用等特色。由于Wordpress是如此流行和受欢迎,你可以找到大量的Wordpress开发以及管理等方面的资源,丰富的用户指南让你能够快速的上手使用。
    在这篇文章中,我们将充分利用观看视频指南和屏幕录象的优点来学习wordpress。视频教程允许你沿着导师的实时讲解来进行学习,它对许多人来说都是非常有效的教程格式。
    你可以使用这些视频教程来自学Wordpress博客发布平台,或者介绍给你的那些对非技术性的客户参考,帮助他们使用Wordpress。你会发现这些指南按照不同的主题来组织,包括:主题开发与定制,站点管理,入门指南,以及一些Wordpress工具的使用。

    WordPress 主题开发

    Wordpress的设计


    来自Chris Coyier的 ( CSS-tricks) Wordpress设计处理视频教程,包括3个部门的系列文章,参考 第二部分第三部分

    创建一个Wordpress模板


    也是一个教程系列(这里是 第二部分第三部分),使用像MAMP (本地机器开发) 和 TextWrangler (是一个文本编辑器)这样的不同的免费工具来创建Wordpress Template。

    WordPress技巧大杂烩


    在这个视频教程中包括多个有用的Wordpress Theme自定义秘诀和技巧。

    把WordPress当成CMS来用


    学习如何创建具备CMS[内容管理系统,比如Drupal、Joomla]多种特色的Wordpress站点,而不仅仅是博客发布平台。比 如: SimplePie WordPress plugin.

    Wordpress的本地安装


    为了开发和测试,学习如何使用 WAMP 来安装Wordpress在你的本地机器上。

    如何修改Wordpress Theme


    在这个指南中,你将学习到在Wordpress中经常用到的 主题模板标签 [Theme Template Tags]

    添加一个Twitter字段到你的表单中去


    学习如何安装和设置 WP Twitip ID 插件来集成 Twitter到你的wordpress博客站点

    如何在你的wordpress博客定制一个页眉(Header)


    代替默认的wordpress header为自定义的header,让你可以快速开始使用你的wordpress博客

    创建你的第一个小器件 widget


    该视频指南告诉你如何创建一个wordpress的主题器件 theme widget

    如何创建Wordpress插件


    学习如何创建一个遵守 WordPress plugin 开发方针的wordpress插件

    管理

    如何在Wordpress上安装PrettyURLs


    通过该视频教程来学习关于 permalinks 的一切(包括如何在你的wordpress站点设置永久链接

    在wordpress中设置成员/用户目录


    这个视频告诉你,如何在wordpress管理后台创建成员/用户目录列表页来显示成员信息。

    忘记密码,用户信息更新


    这个有用的指南教你在用户密码丢失的情况下该怎么办。

    开启wordpress的HTTPS功能


    学习使用 HTTPS 来提高wordpress的安全性。

    升级Wordpress的最佳操作练习


    升级wordpress是一个简单任务,不过在处理一个较大的升级之前你应该考虑一些额外步骤(不如备份你的wordpress数据库)本教程告诉你一个安全升级安装wordpress的好方法。

    博客迁移,改变你的域名


    如果你需要迁移你的wordpress安装到你服务器或者web主机其他的位置,你需要参考这个通用的指南,关于如何重新配置你存在的wordpress博客。

    导入导出wordpress数据

    关于wordpress数据的输入输出的一个屏幕录象指南。

    WordPress博客的管理后台设置


    获得有用的wordpress管理设置知识,帮助你适当的管理你的wordpress博客。

    WordPress 的用户规则说明


    在wordpress站点中,你可以分配给成员一些用户角色,这个指南告诉你这些用户角色都有些什么不同。

    开始使用wordpress

    为你的wordpress安装创建数据库


    创建数据库是安装wordpress的首要步骤之一,本视频教程告诉你如何使用phpMyAdmin为wordpress创建数据库,phpmyadmin是大多数共享主机都具备的免费web应用工具。

    使用google站点地图生成插件为wordpress创建sitemap


    使用Google Sitemap plugin提升博客在搜索引擎上的结果,本指南告诉你如何安装和设置该插件。

    wordpress入门使用


    入门人员的装备,这个指南是对博客写作和wordpress一个很好的通用介绍。

    Wordpress 安装和主题指导


    启动和运行wordpress的安装,学习基本wordpress主题的好资料。

    如何上传PDF文件


    对于那些需要分享一些PDF文件给读者的wordpress用户来说,这个简短视频教程将非常有用

    照片说明[Photo Captions]


    描述显示在post中的照片的说明,本教程将告诉你为博客文章中的照片添加说明的方法

    在wordpress中的简单页面编辑


    指导初学者如何在wordpress管理后台编辑一个页面。

    如何在博客文章中创建图片相册


    该指南教你如何在文章中发表图片相册

    HTML和QuickTags与可视化编辑器


    学习通过可视化编辑器(wordpress内建的WYSIWYG编辑器)与HTML代码进行内容编辑有什么不同

    WordPress 工具

    使用Windows Live Writer


    为wordpress安装 Windows Live Writer ,你能够让博客作者离线发表文章。

    如何使用Firefox插件发表wordpress博客文章


    使用ScribeFire让博客发表更轻松,使用Mozilla Firefox浏览器插件加速你的博客文章更新速度。

    原作:30 Excellent WordPress Video Tutorials
    翻译:互联网营销博客 - zhengyong.net

    Drupal,开源cms里的巨擘

     
     

    我从2002年底就开始关注drupal了,当时在国内看不到一点关于drupal的资料,2003年写过几篇关于drupal的介绍文章,到现在都经常看到很多介绍drupal的文章里引用我的话。记得2003年看到海微在研究drupal,并且发布了中文语言包,打开了drupal进入中国的大门。海微是我一直敬仰的一个人,以前一直致力于xoops的中文化工作,现在竟然搞Hiweed Linux操作系统了。

    海微发布drupal中文语言包后我就一直开始用drupal,不过都是当作普通的blog程序来用,基本上不装插件,也没改过风格。中途试着改过几次风格,但试了几次都放弃了,感觉很麻烦。

    最近看了几个用drupal做的强站,看了之后感觉就是震撼,根本看不出是用个开源代码的做的,看了之后我又萌发了修改drupal风格的念头,打算为我的极客集改个版。研究了两天,终于明白drupal模板的原理了,对CCK和views这两个超强模块也有了新的认识,把官方的主要模块都看了看,看得我眼都花了,实在是太多了,对drupal的评价就是:"只有想不到的,没有做不到的"你想要什么功能都有什么模块。这也是国外程序最大的特点,国内的人都抱怨国外的程序简单,不适合做大站,这都是因为没去研究过人家的模块。国外很多人把joomla,drupal叫做web操作系统,这很形象,人家只提供给你最底层的框架代码,其余的功能都留给模块了。就比如用windows一样,安装windows后可以使用,基本的功能也有,但你想要更多的功能就得装软件,你想让你的桌面变漂亮就得换主题。

    Drupal属于开发型cms,最便于扩展的cms,在我看来它比joomla灵活很多,官方网站上的模块就有几千个,再加上cck的自定义字段功能,如果想用来做个门户网站功能上你也不用考虑太多了,所以现在Drupal程序员炙手可热,招一个Drupal程序员,不但可以为你节省更多的成本,还有利于以后的开发,毕竟核心代码你不用管了,和Linux一样,linux版本有几十个,但核心代码都是kernel小组开发的

    Drupal上手容易,各种模块装了就可以用,但如果想改模板需要熟悉CSS技术,也需要一定的PHP基础,当然还需要一定的英文基础,因为中文资料相对较少,但官方网站上的教程就够你看一辈子了。如果你css,php,英文都不错,那Drupal在你手中简直就是一个万能工具了,你会越来越对它爱不释手。 

    不得不承认,Drupal的模板是个门槛,在默认的模板基础上很难做出复杂的页面,和中国人心中的门户网站相差很远。要想做复杂的页面views成了必须用的模块,虽然它很灵活,但使用也很麻烦,而且如果调用太多很占资源,但这个你不必考虑太多,Drupal有很好缓存功能,还有很多缓存插件,数据查询都是一次性运行了放在一个表里随时调用,而且国外那么多大站用drupal充分说明了它的性能。

    Drupal的模板核心就是区块(block),你只需要把你的模板分成很多块,然后把drupa生成的区块排列在你的模板上,你安装的插件如果需要显示一般都会自动生成个区块。Drupal官方发布模板都比较简单,一般只适合做左中右结构的网站,如果你想自己在模板里多加一些容器来放Drupal的区块,需要phptemplate_regions函数,当然更方便的是module_invoke函数,可以让你的区块显示在你想放的任何地方。

    drupal默认生成的各种区块里带有很多层的html代码,几乎每个html标签都有单独的css id或者class,这样方便你用css控制显示效果,这给我带来了极大的方便,不用动html代码就可以修改模板的显示效果。

    这次给极客集改版让我学了很多东西,本来做了一个比较复杂的页面,调用比较多,研究了一下views模块,感觉太麻烦了,而我又不喜欢装模块,能不用的模块尽量不用,极客集只装了几个比较简单的模块(BUEditor,Google Sitemap,Month,Similar By Terms,Captcha)。views是最复杂的一个模块,代码体积几乎是drupal核心的三分之一,于是我打算放弃views做个比较简单的页面了。其实如果你PHP学的好的话完全可以不用views,views本质上就是生成一段Mysql查询语句。

    Drupal的官方论坛是个大宝库,你遇到的问题几乎都可以在那里找到答案,随便提个问题就有很多热心人来帮你,而且还会有其他人给出不同的参考答案。这也是国外开源项目最让人羡慕的地方,真让人兴奋啊。去了官方社区才认识到自己很菜,

    这篇文章不小心又成了鼓吹drupal的"枪稿"了,其实根本用不着夸它了,它刚刚获得了2007年最佳开源cms的大奖,去年这个奖是Joomla的。也许有人会问我"你整天说这个程序好,那个程序好,到底哪个最好啊?",说实话我也不知道那个好,每个都有自己的特点,关键是看使用的人,有的人用个简单blog做的站比那些用大型CMS的都感觉复杂。我本人是见一个爱一个,我很多网站,都用不同的cms,它们都是我的情人,每个情人都能给我带来激情,哈哈。过几天打算写一篇比较国外cms的文章给大家参考,国内的不考虑,因为国内的都没特点,无法比较。

    Monday, February 2, 2009

    贪官徐其耀给儿子的信 知名博客网站 牛博网被关

     
    南都话题:知名博客网站 牛博网被关 查看原文
    热门评论 83   我要评论 [首页] 1 2 3 [尾页] 第 1/3 页
    南都网读者
    ip:72.166.*.*
    2009-01-23 03:19
    发表

    贪官徐其耀给儿子的信
    2000年10月8日,江苏省建设厅厅长徐其耀因贪污受贿2千余万元,被当地检察机关批捕。在侦查中,发现了徐与146名二奶的"日记"等证据,其中写给儿子的一封信,畅述做官心得,总结为官原则,具有较高的理论价值和应用价值,实为官场"金科玉律",符合"付诸史馆"的标准;该信境界高超,观点鲜明,论述坦率朴实,语言精炼,警句迭出,振聋发愦,足可编入教科书当范文,聊以纠正当今假话空话套话充斥的文风。当然,该信有感而发,属即兴之作,逻辑上欠推敲,然白玉微瑕,瑕不掩瑜也!

    下为该信全文:

    "孩子:
    你的来信我已收到,对你在大学里的表现,我很欣慰,你要再接再厉。

    既然你选择了一定要走仕途这条路,你就一定要把我下面的劝告铭记在心:

    1、不要追求真理,不要探询事物的本来面目。
    把探索真理这这类事情让知识分子去做吧,这是他们的事情。要牢牢记住这样的信条:对自己有利的,就是正确的。实在把握不了,可简化为:上级领导提倡的就是正确的。

    2、不但要学会说假话,更要善于说假话。
    要把说假话当成一个习惯,不,当成事业,说到自己也相信的程度。妓女和做官是最相似的职业,只不过做官出卖的是嘴。记住,做官以后你的嘴不仅仅属于你自己的,说什么要根据需要。

    3、要有文凭,但不要真有知识,真有知识会害了你。
    有了知识你就会独立思考,而独立思考是从政的大忌。别看现在的领导都是硕士博士,那都是假的。有的人博士毕业就去应招公务员走向仕途,那是他从读书的那天起就没想研究学问,肯定不学无术。记住,真博士是永远做不了官的。

    4、做官的目的是什么?是利益。
    要不知疲倦地攫取各种利益。有人现在把这叫腐败。你不但要明确的把攫取各种利益作为当官的目的,而且要作为唯一的目的。你的领导提拔你,是因为你能给他带来利益;你的下属服从你,是因为你能给他带来利益;你周围的同僚朋友关照你,是因为你能给他带来利益。你自己可以不要,但别人的你必须给。记住,攫取利益这个目的一模糊,你就离失败不远了。

    5、必须把会做人放在首位,然后才是会做事。
    这里的做人做事你可别理解为德才兼备的意思。这里说的做人,就是处关系。做事是实际工作,这点会不会都无所谓。做人就是把自己作为一个点编织到上下左右的网中,成为这个网的一部分。记住,现在说谁工作能力强,一点都不是说他做事能力强,而是指做人能力强。呵呵,你看那些把能力理解为做事的人,有好日子过才怪。

    6、我们的社会无论外表怎样变化,其实质都是农民社会。
    谁迎合了农民谁就会成功。我们周围的人无论外表是什么,骨子里都是农民。农民的特点是目光短浅,注重眼前利益。所以你做事的方式方法必须具有农民特点,要搞短期效益,要鼠目寸光。一旦你把眼光放远,你就不属于这个群体了,后果可想而知。要多学习封建的那一套,比如拜个把兄弟什么的,这都不过分。

    7、要相信拍马是一种高级艺术。
    千万不要以为拍马只要豁出脸皮就行,豁得出去的女人多了,可傍上大款的或把自己卖个好价钱的是极少数,大部分还是做了低层的三陪小姐。这和拍马是一样的道理。拍马就是为了得到上级的赏识。在人治的社会里,上级的赏识是升官的唯一途径,别的都是形式,这一点不可不察。

    8、所有的法律法规、政策制度都不是必须严格遵守的,确切地说,执行起来都是可以变通的。

    法律法规、政策制度的制订者从没想到要用这些来约束自己,而是想约束他人。但你要知道,这些不是人人都可以违反的。什么时候坚决遵守,什么时候偷偷违反,让谁违反,要审势而定,否则宽严皆误。

    以上这些都是做官的原则。现在要仔细想想,如果你真能逐条做到,你就能一帆风顺,如果感觉力不从心,就马上另外选择职业吧。"

    Sunday, February 1, 2009

    动态域名解析服务

     
    动态域名解析服务

    亚洲注册提供的动态域名解析服务,可以让您的办公室,甚至家里也能成为电信级数据中心。省下每月数千元的固定IP租用费,甚至动辄上万元的专线费用;而且服务器近在咫尺,管理方便到位,无需每次都致电电信机房解决重启等问题,避免了不必要的延误。

    亚洲注册动态域名解析服务支持包括普通电话线、ISDN、xDSL、有线电视网络、双绞线到户的宽带网和其它任何能够提供互联网真实IP的接入线路。您可以利用亚洲注册动态域名解析服务在办公室或家庭建立拥有固定域名的互联网服务器。由于不受线路类型、主机存放地点的约束,所以您可以根据自己的需求选择合适的系统平台、数据库平台和站点运营模式,并由此获得最大限度的自主性。

    动态域名客户端下载(V1.01)

    专业型动态域名解析服务,支持动态IP地址(公共)以及各种宽带接入方式,就像拥有固定公共IP地址一样,轻松发布各种互联网服务。
    支持国内、国际顶级域名动态解析。拥有完整、专业、自主的动态DNS管理,用户可以方便的管理自己的域名以及各种二级域名。
    让您的计算机象托管在电信一样,任何人都能访问到您的计算机,利用动态IP可以做为WEB服务器、FTP服务器、EMAIL服务器、媒体服务器、MUD服务器或其他互联网游戏服务器等。
    网站、FTP、邮局... ... 统统搬回家,大大降低企业信息化成本。数据就在身边,拥有无比便利的管理和维护以及高度的安全性。
    数万用户的共同选择!全新的后台多服务器容错和冗余服务体系为用户提供24x7可靠保障。

    为什么需要动态域名解析服务?

    动态域名解析服务,可以在您每次启动计算机时自动将您的域名解析到新的IP地址,更改后立刻会生效,方便了广大没有固定IP地址的用户。

    Google apps

     

    Tips to Enhance a Job Search Using Google Tools

    By Jennifer Petoff, PhD, Google University Programs

    Here's a quick snapshot of some tools that you can use to:

    • Identify and target companies of interest

    • Network, enhance your web presence, and showcase your accomplishments to potential employers

    • Prepare for an interview and ultimately land an ideal position

    Google Search (www.google.com)

    • Locate companies and positions of interest

    • Search for your interviewers online 

      • Look for common interests that you can casually bring up in conversation to build rapport 

    Google Maps (maps.google.com)

    • Find companies in a targeted geographic region  

      • Enter a reasonable starting address and then "search nearby" for keywords of interest

      • Search by category (eg: "category: pharmaceutical") to identify companies in a certain industry

        • Search for a known company of interest and see how it is categorized for ideas

    Google Finance (finance.google.com)

    • Answer key questions about a company of interest

      • Who are the key competitors?

      • Is the company getting into any new businesses?

      • Has the company signed any major partnership deals?

      • Is the company financially sound or the target of a acquisition?

    • Chart stock performance as a function of time

      • Overlay news stories that affect stock price

    Google News (news.google.com)

    • Research companies, their products, and key technologies

    • Find out what the press is saying about the organization

    • Search the news archives to review historical information

    Google Alerts (www.google.com/alerts)

    • Set-up a daily alert to track the latest news about a company of interest

      • Delivered to your email inbox

    • Establish news alerts for competitor companies to keep a pulse on the industry

    Google Reader (reader.google.com)

    • Set up an RSS feed on the Google News site

    • Monitor stories in an easy to read format

    Google Scholar (scholar.google.com)

    • Search for the names of your interviewers to determine their areas of expertise  

      • Read a few of their papers to familiarize yourself with their work

    • Search by company name to find scholarly articles

      • Written about the company

      • Written by someone at the company

      • That include information about the company's products

    Google Patent Search (www.google.com/patents)

    • Search for the names of your interviewers to determine their areas of technical expertise

    • Search for the company name to determine important technologies of interest

    Google Book Search (books.google.com)

    • Search for the company name and see references in various books

      • Read snippets from the book or full text depending on copyright status

    YouTube (www.youtube.com)

    • Use YouTube to brush up on dining etiquette (interviews often include a meal)

    Blogger (www.blogger.com)

    • Highlight your professional expertise and written communication skills by starting and maintaining a blog

    Knol (knol.google.com)

    • Enhance professional credibility and showcase written communication skills by authoring knols (units of knowledge) related to your research

    Google Docs (docs.google.com)

    • Organize all your company and interview research in one place

    • Create presentations illustrating your research accomplishments that you can easily share

    • Develop an interactive resume with links to relevant content on the web (eg: publications, quotes, blogs, presentation abstracts, data)

    • Manage company contacts, applications, and networking interactions in a spreadsheet you can access anywhere

    Google Sites (sites.google.com)

    • Develop an interactive professional web presence to help employers find you

    • Embed your resume plus presentations and papers written in Google Docs

    • Add a custom form to your Site to allow people to contact you about your resume without exposing your contact details to the public and inviting spam

    Google Profile (http://www.google.com/s2/profiles)

    • Provide a mechanism to help people find you (helpful if you have a common name)

    • Include key facts about yourself and link to other professional content online

    • Allow interested companies and colleagues in your field to easily get in touch

     
    • Establish a permanent email address that you can take with you no matter where you work or study

    • Check other email accounts (eg: you@school.edu) through Gmail to keep your job search organized

    • Manage contacts, networking connections, and job leads through the conversation-based interface

    • Build your professional network through contacts

      • Anyone that you correspond with by email is automatically added to your Gmail contacts

      • Cross-reference contacts on professional networking websites to build your connections

    • Use embedded instant messaging to keep in touch with your network

    • Make a lasting impression with video chat

    Google Talk (talk.google.com)

    • Leverage status updates and instant messaging to keep in touch with your network.

    • Click to call your Gmail contacts

    • Send a voicemail message directly to your contacts' email inbox

    Google Calendar (calendar.google.com

    • Search public calendars for professional events in your region

    • Keep track of networking appointments and manage informational, phone, and on-site interviews

    • Access your calendar from any computer or certain mobile devices

    Div Padding - CSS

     
     
    Explanation

    Property: Padding

    All the padding (top, right, bottom, left) can be combined using this single tag. Usage:
    padding: 20px;
    padding: 10px 20px 30px 10px;
    padding: 10px 20px;
    padding: 20px 10px 30px;

    Definition:
    The padding can be set using the tag "padding".
    It takes the following values.
    a)20px : This will set a padding of 20px on the four sides (top, right, bottom, left).
    b)10px 20px 30px 10px: This format will set the padding in the order of top,right,bottom,left.
    c)10px 20px : This format will set the padding for top and right. Bottom will take the top padding value (10px) and left will take right paddings value(20px).
    d)20px 10px 30px: This format will set the padding for top and right and bottom. left will take the right paddings value.

    The values can be in percentage or points or pixels.

    Example 1:
    <div align=right style="padding: 20px;">
    Here we have set a padding of 20 pixels.
    You can see that this paragraph has paddings on all the four sides.
    </div>

    Result:
    Here we have set a padding of 20 pixels. You can see that this paragraph has paddings on all the four sides.


    Example 2:
    <div style="padding: 10px 50px 30px 5px;">
    Here we have set a padding with four values.
    You can see that this paragraph has padding of 10px on top, 50px on right, 30px on bottom and 5px on left.
    </div>

    Result:
    Here we have set a padding with four values. You can see that this paragraph has padding of 10px on top, 50px on right, 30px on bottom and 5px on left.


    Example 3:
    <div style="padding: 20px 40px;">
    Here we have set a padding with two values.
    You can see that this paragraph has paddings on 20px on top and bottom and 40px on left and right.
    </div>

    Result:
    Here we have set a padding with two values. You can see that this paragraph has paddings on 20px on top and bottom and 40px on left and right.


    Example 4:
    <div style="padding: 10px 50px 40px;">
    Here we have set a padding with three values.
    You can see that this paragraph has paddings of 10px on top, 50px on right , 40px on bottom. left padding took values from its right counter part as 50px.
    </div>

    Result:
    Here we have set a padding with three values. You can see that this paragraph has paddings of 10px on top, 50px on right , 40px on bottom. left padding took values from its right counter part as 50px.


    PHP snippets

    http://drupal.org/handbook/customization/php-snippets


    PHP snippets

    Last modified: December 11, 2008 - 02:05

    This section contains snippets of PHP that you can paste into your Drupal pages, blocks or themes. Often a single PHP block or a single PHP page does exactly what you want, where a module is pure overkill, or just doesn't get you exactly there.

    Feel free to add new snippets or enhance existing ones. In fact, please try to reduce duplication as much as possible, so it's better to improve an existing page, than to add a new one.

    For an introduction to snippets, see A beginner's guide to using snippets.

    PLEASE NOTE! The following snippets are user-submitted and have not been independently tested, so use at your own risk! Please note that the snippets may contain some database queries specific to MySQL.

    NEVER just copy/paste without looking at what it does, a user could potentially add a snippet that wipes your complete database!

    JavaScript snippets should be placed in the JavaScript section.

    Backing Up Your Database detailed structions

    http://codex.wordpress.org/Backing_Up_Your_Database



    Backing Up Your Database
    • Using phpMyAdmin 
    • Using Straight MySQL Commands
    • Using MySQL Administrator 
    • Using WordPress Database Backup Plugin 
    • Using CocoaMySQL


    How to backup your Mysql database with phpMyAdmin

    http://fragments.turtlemeat.com/mysql-database-backup-restore-phpmyadmin.php


    How to backup your Mysql database with phpMyAdmin

    Written by Jon Berg <jon.berg|a|turtlemeat.com>

    Introduction
    It is very important to do backup of your MySql database, you will probably realize it when it is too late.
    A lot of web applications use MySql for storing the content. This can be blogs, and a lot of other things. When you have all your content as html files on your web server it is very easy to keep them safe from crashes, you just have a copy of them on your own PC and then upload them again after the web server is restored after the crash. All the content in the MySql database must also be backed up. A lot of web service providers say they do backup of all the files, but you should never blindly trust them. If you have spent a lot of time making the content and it is only stored in the Mysql server, you will feel very bad if it gets lost for ever. Backing it up once every month or so makes sure you never loose too much of your work in case of a server crash, and it will make you sleep better at night. It is easy and fast, so there is no reason for not doing it.

    Backup of Mysql database
    It is assumed that you have phpMyAdmin installed since a lot of web service providers use it.

    0. Open phpMyAdmin.
    1. Click Export in the Menu to get to where you can backup you MySql database. Image showing the export menu.
    2. Make sure that you have selected to export your entire database, and not just one table. There should be as many tables in the export list as showing under the database name.
    3. Select"SQL"-> for output format, Check "Structure" and "Add AUTO_INCREMENT" value. Check "Enclose table and field name with backquotes". Check "DATA", check use "hexadecimal for binary field". Export type set to "INSERT".
    4. Check "Save as file", do not change the file name, use compression if you want. Then click "GO" to download the backup file.
    Image showing step 2-4.

    Restoring a backup of a MySql database
    1. To restore a database, you click the SQL tab.
    2. On the "SQL"-page , unclick the show query here again.
    3. Browse to your backup of the database.
    4. Click Go.
    Image showing step 1-4.

    Without phpMyAdmin
    phpMyAdmin has some file size limits so if you have large databases it may no be possible to backup using phpMyAdmin. Then you have to use the command line tools that comes with Mysql. Please note that this method is untested.

    Mysql backup without phpMyAdmin
    PHPMyAdmin can't handle large databases. In that case straight mysql code will help.

    1. Change your directory to the directory you want to dump things to:

    user@linux:~> cd files/blog

    2. Use mysqldump (man mysqldump is available):

    user@linux:~/files/blog> mysqldump --add-drop-table -h mysqlhostserver  -u mysqlusername -p databasename (tablename tablename tablename) | bzip2  -c > blog.bak.sql.bz2  Enter password: (enter your mysql password) user@linux~/files/blog>
    Example: mysqldump --add-drop-table -h db01.example.net -u dbocodex -p dbwp | bzip2 -c > blog.bak.sql.bz2  Enter password: my-password user@linux~/files/blog> 

    The bzip2 -c after the pipe | means the backup is compressed on the fly.

    Mysql restore without phpMyAdmin

    The restore process consists of unarchiving your archived database dump, and importing it into your Mysql database.

    Assuming your backup is a .bz2 file, creating using instructions similar to those given for Backing up your database using Mysql commands, the following steps will guide you through restoring your database :

    1. Unzip your .bz2 file:

    user@linux:~/files/blog> bzip2 -d blog.bak.sql.bz2

    Note: If your database backup was a .tar.gz called blog.bak.sql.tar.gz file, then,

    tar zxvf blog.bak.sql.tar.gz
    is the command that should be used instead of the above.

    2. Put the backed-up sql back into mysql:

    user@linux:~/files/blog> mysql -h mysqlhostserver -u mysqlusername  -p databasename < blog.bak.sql  Enter password: (enter your mysql password) user@linux~/files/blog:>