holz 的blog

漂亮的主题,赞一个

我还以为要等6版出来再升级了。

这个主题的配色很好啊。

遇到一郁闷的lenovo机器

3年前的机器,P4 +256M DDR+radeon 9200se+maxtor 80G,原来装的xp说是无数的病毒,终于不能启动。

鉴于该机器只用于上网和office,我说装个hiweed吧,结果塞个beta4光盘一个小时才进入桌面。启动gnome分区管理器来分区,删除hda5时提示要先卸载hda5以前的所有分区,hda5以前的只有hda1了。

于是选择卸载hda1,于是在重新扫描硬盘的时候,等待约10分钟,彻底死机,鼠标键盘已经无效,只好拔电源。

因此装不了hiweed。

找了个win2000的光盘,不料很顺利装好了。

hiweed 是不是考虑加一个 image 导航的 block

下面的图片导航来自 http://willwyatt.com/node/1568 ,我在 drupal 4.7.3 上试验成功。

  1. 准备两张图片提示用户已经到了第一张图片和最后一张图片。:
    * placeholder_first_photo.gif
    * placeholder_last_photo.gif
  2. 建立一个 'PHP code' 的 block:

    <?php
    if (arg(0) == 'node' && is_numeric(arg(1))) {
    $nid = arg(1);
    $node = node_load(array('nid' => $nid));
    $previous=0;
    $next=0;
    $tmp_prev=-1;
    $terms = taxonomy_node_get_terms_by_vocabulary($node->nid, _image_gallery_get_vid());
    if ($terms) {
    $term = array_pop($terms);
    $res = db_query("SELECT n.nid FROM {term_node} t INNER JOIN {node} n ON t.nid=n.nid WHERE n.status=1 AND n.type='image' AND t.tid=%d ORDER BY n.sticky DESC, n.created DESC", $term->tid);
    $tot_num = db_num_rows($res);
    for($i=0; $i < $tot_num; $i++) {
    $nidvalue=db_result($res,$i);
    if($previous!=0 && $next==0) {
    $next=$nidvalue;
    }
    if($nidvalue == intval($node->nid)) {
    $previous=$tmp_prev;
    }
    $tmp_prev=$nidvalue;
    }
    $prev_node = node_load(array('nid' => $previous));
    $next_node = node_load(array('nid' => $next));
    $prev_th = ($previous == -1) ? '' : l(image_display($prev_node, 'thumbnail', array('width' => '120', 'height' => '120')),'node/'.$prev_node->nid, array(), null, null, FALSE, TRUE);
    $next_th = ($next == 0) ? '' : l(image_display($next_node, 'thumbnail', array('width' => '120', 'height' => '120')),'node/'.$next_node->nid, array(), null, null, FALSE, TRUE);
    $output = '';
    $output .= '';
    $output .= '';
    $output .= '' . $prev_th . '

从硬盘安装了 desktop 1.0 Beta3

有了 gnix_oag 的方法,其实可以不用安装系统了,可是这样我不能挂载硬盘中其他的分区,这可不好玩。而且我的机器烂,装在硬盘上速度快不少捏~~~

之前的 Beta2 通过刻盘安装成功了,在一台机器上通过硬盘安装也成功了,但家里的烂机器就是不能从硬盘安装。.

经过 huahua 的提示,我修改了相应的参数,果然成功安装了 beta3。

让 Firefox 更快一些

别说,同样安装Firefox,可是我就感觉windows下的那个比Linux下那个快,在Linux下Firefox总喜欢不听lookup,同一个网站,在windows下很快打开了,到了Linux下竟然超时。

所以到处搜索机巧,做了一些设置,终于感觉速度回来了。

network.http.pipelining = true
network.http.pipelining.maxrequests = 30
network.http.proxy.pipelining = true
network.http.requests.max-start-delay = 0
network.http.max-connections 48
network.http.max-connections-per-server 24
network.dns.disableIPv6 = true
nglayout.initialpaint.delay = 0

聚合内容