Joomla1.6.3都出来了

April 26th, 2011 No comments

4月14号发布的1.6.2,而4月18号发布的1.6.3。
真不知道应该说Joomla团队勤奋好呢,还是业余好?
其中在1.6.2中,共修复了8个安全问题,115个bug,
而1.6.3中,修复了4个bug。
看来软件没有认真测试就发布正式版,真是找罪受;不知道Joomla是否受到了教训?
也不知道有多少用Joomla1.6.x建的站遭被黑。
相比较之下,Drupal就踏实多了,到目前为止,7.0还没有发布新版本,当然前提是Drupal在发布正式版前认真仔细的测试,和众多Beta和RC版本。
记得当时用Drupal的RC版本的时候,都感觉比现在的Joomla1.6.3要稳定的多。
个人感觉,Joomla还要经过2个版本之后,才能正式建站。
不知道Joomla1.6的发布是否会成为Joomla的滑铁卢?

Categories: Joomla, Web Tags:

Joomla1.6.1发布

March 14th, 2011 No comments

经过近2个月的时间,Joomla发布了1.6.1版本;这两个月把Joomla Team忙坏了,竟然修复了12个安全问题和206个Bug。
看来上次Joomla的发布的确是在Drupal 7的压力下发布的,根本不具备产品成熟的条件啊。
这次的发布不知道情况怎么样,估计会比Joomla1.6安全不少,但是仍旧认为不具备Production的条件,再等待一个版本再上吧。
不过Joomla1.6的改进还是非常值得称赞的!

Categories: Joomla Tags: , ,

搞不懂Joomla1.6为什么发布

January 27th, 2011 No comments

最近一直在学习Drupal,对于我这个用习惯Joomla的人来说,Drupal学习起来还是比较吃力的。
对比Joomla和Drupal的代码,不难发现Drupal更专业一些;包括这次Drupal 7的发布,都非常严谨;
而Joomla1.6的发布流程简直让人不可以理解,发布了2个Alpha,然后就急着发布Beta版本,
Beta一发就是15个,等Beta发布完后,只发了一个RC版本,就到正式版了。
发2个Alpha版本,急着发布Beta版本,估计是为了让大家一起帮忙测试,
而一直法律15个Beta版本,说明内部测试很不过关(Alpha)。
只发布一个RC版本,就发布正式版,是因为Drupal 7已经发布了,为了抢占市场。
然而,此时的Joomla1.6已经成熟了吗?

估计像Alpha到Beta那样,测试还是非常不够的。
现在Joomla1.6的文档都没有(Drupal7将文档的完全作为正式发布的必要条件),程序的安全隐患更不知道有多少?
Joomla1.6是做了许多有有益的改善,然而如此忙不迭的发布版本,有没有考虑到用户的体验和用户的损失?
建议Joomla用户继续用Joomla1.5的版本,至少等Joomla发布3个正式版后,才敢真正用来上线。

Categories: Joomla Tags: ,

SyntaxHighlighterPro document

November 27th, 2009 9 comments

It is quite easy to use the wordpress plugin SyntaxHighlighterPro. You need just activate the plugin, and then assign the brush to the pre tag.
For example:

<pre class="brush:java">
public class HelloWorld{
    public static void main(String [] args) {
        System.out.println("Hello world!");
    }
}
</pre>

Then it will render the code as following:

public class HelloWorld{
    public static void main(String [] args) {
        System.out.println("Hello world!");
    }
}

In above example,java is the brush alias of the language.
You can also use the BBCode to insert the code, for example:

[java]
public class HelloWorld{
    public static void main(String [] args) {
        System.out.println("Hello world!");
    }
}
[/java]

Please enable BBCode support before using BBCode.

Please refer Brush Aliases for more details.

SyntaxHighlighterPro demo

November 27th, 2009 2 comments
  1. C Example:
    #include 
    main()
    {
             printf ("Hello World!\n");
    }
        
  2. Java Example:

    public class HelloWorld{
        public static void main(String [] args) {
            System.out.println("Hello world!");
        }
    }
    
  3. XML Example:

    
       Tove
       Jani
       Reminder
       Don't forget me this weekend!
    
    

SyntaxHighlighterPro

November 26th, 2009 No comments

SyntaxHighlighterPro is a wordpress plugin which uses the SyntaxHighlighter to highlight code snippets.

Major features:

  1. Support up to 24 languages, including Java,C++,C#,Php,JavaScript,Groovy,Ruby,Python,Perl,XML,SQL etc.
  2. Support up to 5 theme styles, that are Default,Django,Eclipse,Emacs,FadeToGrey,Midnight,RDark. You can easily change the theme in plugin settings.

    Theme styles

  3. Allow you to choose what languages will support, which is great to avoid unnecessary JavaScript imports.

    Language support

  4. Support BBCode input.
    Please enable BBCode option in SyntaxHighlighterPro Setting page before using BBCode input.

Download:Syntax Highlighter Pro

prevent people from using the addon domain as a subdomain of your primary domain.

September 22nd, 2009 1 comment

To prevent people from using the addon domain as a subdomain of your primary domain, just put the following code into the .htaccess file located at the subdomains folder

RewriteEngine On
RewriteCond %{HTTP_HOST} ^subdomain.primarydomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.subdomain.primarydomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^addondomain.com$
RewriteCond %{REQUEST_URI} ^/$
RewriteRule ^(.*)$ http://www.addondomain.com/ [R=301,L]
Categories: Web Tags: , ,

Add an Expires Header to static components with mod_expires

August 16th, 2009 1 comment

According to Yahoo’s Best Practices for Speeding Up Your Web Site,
adding an expires header to static components can improve web site’s performance greatly.
Here is the simplest way to add expires header.
Open .htaccess file, and append the code.

<IfModule mod_expires.c>
   <FilesMatch "\.(ico|gif|jpg|JPG|jpeg|png|swf|css|js|html?|xml|txt)$">
      ExpiresActive On
      ExpiresDefault "access plus 1 years"
   </FilesMatch>
</IfModule>

More details about mod_expires, please refer:
http://httpd.apache.org/docs/2.0/mod/mod_expires.html

Autolinks Document

August 16th, 2009 2 comments

Autolinks is quite easy to use.

Just enable the plugin, and you can use it with the default settings.

Of cause, you can set up the setting by yourself.
Go to

/wp-admin/options-general.php?page=wp-autolinks.php

and you will find the following set up page.

Wordpress Plugin Autolink Setting

By now, there are three setting items.

  • Images title prefix:

    When images are lack of the title attribute, we will automatically generate one for the article.
    The generated title’s format is “Images title prefix”+”Article title”.
    By default, the “Images title prefix” is “Read article:”.
    Thus, Autolinks will generate “Read article: Autolinks Document” as this article’s image title.

  • Images alt prefix:

    By default, Autolinks will take the article’s title as the image’s alt attribute when they are lack of them. You can also set up a prefix for the images alt.

  • Only auto link for the first image:

    By default, Autolinks will automatically generate hyperlinks for all images in the article’s summary.
    You can only generate hyper link for the first image by setting “Yes”.

Autolinks

August 15th, 2009 2 comments

Autolinks is a very smart wordpress plugin, it automatically generate a hyper links for images of the post summary.
For category list,search result etc, if topic summary have images, autolinks will generate hyper links for these images, these hyper links will link to the topic’s full text.
Additionally, Autolinks can also automatically generate title and alt information for images when they are lack of them.
Thus, Autolinks can improve both human friendly and search engine friendly.

Download Autolinks