Month: November 2009
自制WordPress Sitemap Page Template
代码片段: <?php $cat_and_art = $wpdb->get_results(“SELECT t.term_id FROM $wpdb->terms t left join $wpdb->term_taxonomy tt on tt.term_id = t.term_id WHERE tt.taxonomy= ‘category’ and tt.parent=’0′ and tt.count > 0″); foreach ($cat_and_art as $cat_and_art_id) { $category_id[] = $cat_and_art_id->term_id; } //print_r($category_id); for($c_id = 0; $c_id < strlen($category_id); $c_id++ ){ ?> <li><?php echo(get_category_parents($category_id[$c_id], TRUE, ”)); ?> <ul> <?php /* EDIT THE…
VMware Workstation 上安装 Ubuntu 的一些问题
Ubuntu9 在 VMware Workstation5.5 安装时候。inter 双核处理器是不能安装的,但是使用 AMD 处理器是可以的,VMware Workstation升级到 6.0以上版本可以安装。 Ubuntu9 安装到82% 在APT配置时候长时间停滞,可以中断VMware 的网络连接skip。
针对IE6,IE7,IE8和firefox浏览器css hack
针对样式名 如果只让ie6看见用*html .head{color:#000;} 如果只让ie7看见用*+html .head{color:#000;} 如果只让ff看见用:root body .head{color:#000;} 如果只让ff、IE8看见用html>/**/body .head{color:#000;} 如果只是不让ie6看见用html>body .head{color:#000;} 即对IE 6无效 如果只是不让ff、IE8看见用*body .head{color:#000;} 即对ff、IE8无效 针对具体属性 如果只让ie6看见用_ .head{_color:#000;} 如果只让ie7看见用+与_结合的方法: .head{+color:#f00;!;_color:#000;} IE8正式版hack \9″ 例:”margin:0px auto\9;”.这里的”\9″可以区别所有IE8和FireFox. “*” IE6、IE7可以识别.IE8、FireFox不能. “_” IE6可以识别”_”,IE7、IE8、FireFox不能. 如: .a {color:#f00; color:#f60\9; +color:#00FF00; _color:#0000FF; } 从左到右分别对应 FF,IE8 IE7 IE6
转让一个镜头 — 佳能 55-250 IS
号外:很早之前就想转让该镜头,由于一直使用 17-50 VC,这个头买了就只挂过3次,说实话1680元买的,现在想以不低于1200的价格转让,或者补差价交换。 最好是上海市区吧,可以当面交易。我的电话:13524237599 改广告长期有效 今天入手一个镜头, 佳能EF-S 55-250mm f/4-5.6 IS 穷人镜头,凑合凑合吧,1600米入手的,加UV 和 遮光罩共 1680米。 滤镜口径才 58mm,感觉这镜头好小。没办法。兜兜里没米。 买了单反才知道自己玩不起。