Archive for May 2nd, 2005

CSS 排版觀念:Position

Monday, May 2nd, 2005

網站製作學習誌看來的,文章在這裡
還有圖解喔….

[pkg] SciPy - Scientific tools for Python

Monday, May 2nd, 2005

SciPy - Scientific tools for Python

      http://www.scipy.org/

SciPy is an open source library of scientific tools for Python. SciPy
supplements the popular Numeric module, gathering a variety of high
level science and engineering modules together as a single package.

SciPy includes modules for graphics and plotting, optimization,
integration, special functions, signal and image processing, genetic
algorithms, ODE solvers, and others.

SciPy is developed concurrently on both Linux and Windows. It has also
been compiled successfully on Sun and Mac, and should port to most other
platforms where Python is available.


在找函式庫找到這種東西,看起來超棒的阿….

[log] 修改 sem-fancy-excerpt.php

Monday, May 2nd, 2005

原本的 fancy excerpt 根本不能用,中文也有問題
只好自己來了

加上 flickr 的處理,其他的直接取前四行XD

+ $more = ‘[<a href=”‘.get_permalink().’”>more…</a>]<br />’;

if ( $excerpt == ” )
{
      $excerpt = $post->post_content;
      $excerpt = apply_filters( ‘the_content’, $excerpt );
-    $excerpt = strip_tags( $excerpt );
-    $excerpt = preg_replace( “/^\W*(\w+(\W+\w+){”.($excerpt_length-1).”}((?!(!|\?|\.|\n|\r)).)*(!|\?|\.|\n|\r))(\w|\W)+/”, “$1 [more…]”, $excerpt );

+    if (false !== strpos($excerpt, ‘<div class=”flickr-frame”>’) ) {
+          preg_match(’/^.*<div class=”flickr-frame”>(.*\n)*?(.*?)<\/div>/m’,
+                $excerpt, $match);
+          $excerpt = $match[0].’<br />’. $more;
+    } else {
+          preg_match( ‘/(.*\n){4}/m’, $excerpt, $match );
+          if( strlen($excerpt) - strlen($match[0]) > 10 ) {
+                $excerpt = $match[0].’  ’.$more;
+          }
+    }

+ else {
+    $excerpt = $excerpt.’  ’.$more;
}

[pkg] jpGraph

Monday, May 2nd, 2005

JpGraph

      http://www.aditus.nu/jpgraph/

JpGraph is a fully OO (Object-Oriented) Graph creating class library for PHP.

如何讓 JpGraph 顯示中文

      http://blog.yam.com/jaceju/archives/98190.html