手机浏览 RSS 2.0 订阅 膘叔的简单人生 , 腾讯云RDS购买 | 超便宜的Vultr , 注册 | 登陆
浏览模式: 标准 | 列表2025年07月的文章

35 种创意枕头,你会选择哪一个?【23~35】

从第23个开始。。
23、Comfy Wooden logs: Available at Etsy for $69.比真正的木头还贵了
大小: 48.25 K
尺寸: 500 x 370
浏览: 2729 次
点击打开新窗口浏览全图

24、Ctrl Alt Del Pillows: Reboot your living room with the control, alt delete pillow set.不买一整套都看不到效果,只是不知道三个人同时靠上去之后,会有什么灵异事件发生
大小: 48.11 K
尺寸: 450 x 352
浏览: 2562 次
点击打开新窗口浏览全图

25、Dinosaur Bones Pillows: The life-sized replicas of real dinosaur bones made from soft rubber-coated foam.感觉去了常州恐龙园。
大小: 64.95 K
尺寸: 355 x 376
浏览: 2663 次
点击打开新窗口浏览全图

26、Booklifier (book + amplifier): Designed by Noa Dvoskin, it’s a pillow that creates extreme reaction towards the text, thereby enhancing your feelings while reading.
大小: 24.82 K
尺寸: 500 x 375
浏览: 2534 次
点击打开新窗口浏览全图

27、Pebble Pillow!
大小: 41.8 K
尺寸: 395 x 263
浏览: 2606 次
点击打开新窗口浏览全图

28、Comfy ball pillow
大小: 53.24 K
尺寸: 420 x 376
浏览: 2597 次
点击打开新窗口浏览全图

29、Creative iDream pillows by Studio Psycho from Ukraine.梦枕,可惜不会变
大小: 43.96 K
尺寸: 389 x 376
浏览: 2526 次
点击打开新窗口浏览全图

30、Pill-o Pillow from CarteBlanche.胶囊枕
大小: 49.62 K
尺寸: 448 x 376
浏览: 2518 次
点击打开新窗口浏览全图

31、Alarm Clock Pillow!闹钟枕
大小: 47.2 K
尺寸: 450 x 338
浏览: 2521 次
点击打开新窗口浏览全图

32、DOS Pillow: Dosugus pillow looks like a black screen with good old DOS directories embroidered on it.DOS屏幕有没有让你怀念背键盘的时刻?
大小: 46.05 K
尺寸: 395 x 376
浏览: 2464 次
点击打开新窗口浏览全图

33、iPhone icon pillows: The SMS icon, the Mail icon, the Photos icon, the iPod icon, and the Phone icon. These handmade pillows are available for $14.99 each.果粉要买的枕头之一
大小: 37.54 K
尺寸: 500 x 375
浏览: 2543 次
点击打开新窗口浏览全图

34、Nintendo Wii Controller Pillow: Yet another pillow for geeky nerds.
大小: 70.52 K
尺寸: 420 x 376
浏览: 2570 次
点击打开新窗口浏览全图

36、Decorate your home with these social networking sites icon pillows and show off your geeky side! You can check out these geeky pillows and lots more at Craftsquatch Etsy. Take these home for just $14.99-19.99 each.
大小: 36.33 K
尺寸: 500 x 364
浏览: 2573 次
点击打开新窗口浏览全图

原文来自:http://www.hometone.org/entry/35-unusually-creative-pillows-which-one-would-you-pick/

Tags: 创意, ideas

35种创意枕头,你会选择哪一个?【1~22】

大小: 58.44 K
尺寸: 459 x 376
浏览: 2413 次
点击打开新窗口浏览全图

如今,枕头被当成一种纯粹用来休息的工具的日子早已一去不复返,它也沾染上了时尚的色彩。很多设计师为枕头提供了各种各样的创意、设计,以致于你在挑选时都会感到很困惑。如果你想睡的开心一点,这些创意枕头或许能够帮助你。下面就是一些创意、极客、酷、舒爽的枕头设计,看着下面这35款奇特而独一无二的枕头,想着他们也能够改善您的家居环境,那您为什么还不挑选一款适合您自己的枕头呢。
1、Boombox Pillow: 让你回到80年代的收录机枕头
大小: 67.52 K
尺寸: 450 x 325
浏览: 2386 次
点击打开新窗口浏览全图

2、Bob storage pillows by Sandy Wang!可存储玩具杂物的枕头
大小: 261.42 K
尺寸: 393 x 376
浏览: 2508 次
点击打开新窗口浏览全图

3、Thomas Dabner CMYK pillows:  Graphic designers/photographers pick! 墨水警告枕头
大小: 24.28 K
尺寸: 414 x 376
浏览: 2349 次
点击打开新窗口浏览全图

4、Android pillows: The lil’ green bot lulla you to sleep,小绿人,android枕头,喜欢android手机的人必选啊。
大小: 13.8 K
尺寸: 500 x 285
浏览: 2394 次
点击打开新窗口浏览全图

5、Fruit iPod Speaker Pillows 在您睡觉的时候可以享受itunes音乐
大小: 69.09 K
尺寸: 376 x 376
浏览: 2287 次
点击打开新窗口浏览全图

6、Analog Nights Pillows by Aimee Wilder: Each pillow will cost you mere $50.。。。每个要50刀是不是太贵了?
大小: 58.81 K
尺寸: 414 x 376
浏览: 2352 次
点击打开新窗口浏览全图

7、Subscribe to RSS pillow: RSS Icon Pillow can be yours for just $15. RSS图标枕头只要15刀
大小: 23.39 K
尺寸: 464 x 376
浏览: 2240 次
点击打开新窗口浏览全图

8、Take Me Anywhere Suitcase Pillows by Olive,手提包
大小: 31.64 K
尺寸: 430 x 322
浏览: 2365 次
点击打开新窗口浏览全图

9、NES Controller Pillows: The home furnishing inspired by the famous NES controller. Gaming freaks will love it.红白机手柄又没有让你回到小时候的时光
大小: 78.49 K
尺寸: 384 x 376
浏览: 2306 次
点击打开新窗口浏览全图

10、Animal Pillows by Aaron Stewart and Hornet Toys PillowPillowPillow. The cute little bow-wow-beautiful doggies and snuggle-worthy kitties make you feel like playing with them. 宠物枕,这些可爱的小动物们是不是让你很宠爱他们?
大小: 90.29 K
尺寸: 308 x 376
浏览: 2357 次
点击打开新窗口浏览全图

11、Breakfast pillows: Pancake pillows, toast pillows, fried egg pillows, coffee bean pillows and lots many for your breakfast.早餐枕,怕是趴在上面睡觉时会留口水吧?
大小: 16.28 K
尺寸: 476 x 354
浏览: 2324 次
点击打开新窗口浏览全图

12、Laptop Pillow is for web freaks! windows界面。。
大小: 65.34 K
尺寸: 450 x 312
浏览: 2277 次
点击打开新窗口浏览全图

13、Covered in spicy chocolate sea salt, these pillows are 100% hand-made! Available in two versions these Tweetie for Mac or Tweetie 2 pillows can be yours for $15 a piece or $25 for a pair.这样的枕头是不是会让你想起什么?回复框
大小: 31.58 K
尺寸: 500 x 319
浏览: 2360 次
点击打开新窗口浏览全图

14、Cool flexible pillows from Mike and Maaike.看上去象凉席的枕头
大小: 32.16 K
尺寸: 500 x 325
浏览: 2294 次
点击打开新窗口浏览全图

15、Log Laptop Pillow.
大小: 42.18 K
尺寸: 450 x 276
浏览: 2330 次
点击打开新窗口浏览全图

16、dlight Huggable Pillows: Pillows that glow!夜光枕
大小: 56.27 K
尺寸: 450 x 302
浏览: 2407 次
点击打开新窗口浏览全图

17、Twitter Icon Pillow: This one is for Twitter heads.推特LOGO的枕头
大小: 62.72 K
尺寸: 450 x 337
浏览: 2318 次
点击打开新窗口浏览全图

18、Book Pillow by Ranch Box: It looks like a book but is comfortably cool to lay down your head and take a nap.看起来象本书,怀念一下读书时光
大小: 35.09 K
尺寸: 450 x 300
浏览: 2307 次
点击打开新窗口浏览全图

19、Tetris Pillows: The cuddly puzzle bricks inspired by a the wonderful game loved by all. 俄罗斯方块,也曾经风靡一时啊
大小: 69.69 K
尺寸: 376 x 376
浏览: 2360 次
点击打开新窗口浏览全图

20、Adobe Icons Pillows: These are for web designers that while working for long on a design can rest their heads on Photoshop, Illustrator, After Effects, Flash, InDesign or Dreamweaver pillows. adobe粉丝专用枕。
大小: 77.07 K
尺寸: 353 x 376
浏览: 2305 次
点击打开新窗口浏览全图

21、Get crispy Pizza Pillow for $29.95. 忍者神龟最喜欢的。。。
大小: 21.57 K
尺寸: 450 x 265
浏览: 2229 次
点击打开新窗口浏览全图

22、Morning Message Pillow: Good morning sweetheart!印上爱人的名字,醒来后,脸上全是爱人的名字,一定也很有意思。
大小: 40.46 K
尺寸: 450 x 337
浏览: 2332 次
点击打开新窗口浏览全图

--图太多了,剩下的再写一篇吧
原文来自:http://www.hometone.org/entry/35-unusually-creative-pillows-which-one-would-you-pick/

Tags: 创意, ideas

HTTP_HOST与SERVER_NAME

看到网上有篇文章,说是$_SERVER变量中的HTTP_HOST与SERVER_NAME不一样,打开网址后HTTP_HOST是全域名,而SERVER_NAME会显示根域名。
但是我采用了phpinfo看了一下,HTTP_HOST和SERVER_NAME是相同值,而并非是所说的不一样。
代码如下:

PHP代码
  1. <?php
  2. phpinfo();  

上面这段简单的代码里会显示$_SERVER变量的内容,搜索一下,HTTP_HOST与SERVER_NAME是一样的,都是www.neatstudio.com,当然这时候,我的路径是http://www.neatstudio.com/info.php,于是我尝试用http://neatstudio.com/info.php访问时,这两个值还是一样,当然都变成了neatstudio.com。

于是我翻开了手册想看看是怎么回事,为什么会有人说不一样。
手册上这么说:

'SERVER_NAME'

The name of the server host under which the current script is executing. If the script is running on a virtual host, this will be the value defined for that virtual host.

'HTTP_HOST'

Contents of the Host: header from the current request, if there is one.

看了上面的解释也基本上可以断定它基本是一样的,除非同一台服务器只有一个网站,但SERVER_NAME却与HOST不一样,或许会出现不同值。如果是虚拟主机,默认会以虚拟主机的值为准。为了测试,我在本地做了一个测试。
在hosts文件里加了127.0.0.1 www.neatcn.com 127.0.0.1 neatcn.com对应两个域名【强制在本地指定,否则会到使用域名真实IP】
然后在virtual host里,更换不同的ServerName 为neatcn.com和www.neatcn.com,但结果,都是根据访问路径来的,不管使用何种域名,HTTP_HOST和SERVER_NAME都是一致的,与访问路径中的hostname一致。
再对应一下那篇文章 ,由此基本可以鉴定那是一个SEO的文章,因为他在同一篇文章里介绍了两个域名还都不一致。唉。。。SEO沦落到如此地步了,刚开始看到的时候,我本来以为很激动的,我想着以后取根域名就方便了。不需要象现在还要根据不同的域名根来取根域名。。。

Tags: http_host, server_name, seo

两个比较常用的MySQL时间函数

这是来自iOrange.cc的文章,主要就讲了两个可能会被常用的时间函数。内容如下:

按时间搜索数据在mysql里应该是用的比较频繁的了。

iOrange系统里的时间都是按:xxxx-xx-xx xx:xx:xx这种格式存放的,大多数时候这个都没问题,但是,当你想使用其他格式来显示数据时就悲剧了,例如你想显示成 10/04/01 21:20 这种就很悲剧-__-,所以强烈建议保存时间戳的时候尽量存储一个UNIX时间戳,这样以后就方便很多了^_^

回归正题,第一个时间函数是:UNIX_TIMESTAMP,这个函数可以将xxxx-xx-xx xx:xx:xx这种格式的时间转换成一个unix时间戳格式的数字。例如下面那条语句:
update bookposts set lastpost = UNIX_TIMESTAMP(createdate) 这样就能将createdate字段上的时间更新到lastpost上去了。

第二个函数则跟第一个刚好相反:FROM_UNIXTIME,这个函数可以将一个UNIX时间戳转换成xxxx-xx-xx xx:xx:xx这种格式。用法大致如下:
SELECT COUNT(*) AS `newmembers` FROM `cdb_members` WHERE FROM_UNIXTIME(regdate, ‘%Y-%m-%d’) = ‘2010-04-01′”

--EOF--
不过,个人认为还是采用:xxxx-xx-xx xx:xx:xx比较好,这是因为,时间戳和这种日期格式在数据库里存储所占的字节都是一样的,而日期格式却没有1970~2038年这个限制。在计算时间区间的时候,用Between和and时,对于日期格式会更加方便,而时间戳则需要多计算一次。

参考:

1.Mysql时间函数 http://neatstudio.com/show-443-1.shtml

2.用TIMESTAMP类型取代INT和DATETIME[转] http://neatstudio.com/show-150-1.shtml

3.精通MYSQL数据库——连载八 http://neatstudio.com/show-263-1.shtml

 

Tags: from_unixtime, unix_timestamp

netbeans 与 encoding support

Netbeans是我最近常用的编辑器,开源免费跨平台是我选择它的主要原因之一,但是让我郁闷的是,他不能在编辑时按照文件自身的编码来打开,这让我很郁闷,相反editplus还能够自动识别ansi和utf8而根据相应的编码来打开呢。

当然一般情况下,这是很正常的,创建一个project的时候指定编码就足够了。可是大家都知道的dz嘛。为了让自己的程序适合所有的编码,就把文件全部用ansi来处理,然后语言包采用相应的编码,这样,创建一个新的版本就十分方便。只是这样的前提是,所有的代码中不能出现其他编码,只能用GBK,并且不能有UTF8的输出。

于是就有我现在的问题,一半项目是uTF8,一半是GBK,整合在了同一个project里了,打开的时候就经常看到乱码。而所谓的插件encoding support,其实早就集成在系统里了,因为以前的版本不能默认指定编码的。现在的是可以指定项目,但不能指定项目里单独的某个文件。

郁闷 ,不得已了,下载ZendStudio了,因为ZS打开项目中文件的时候,可以右键,选择按指定编码打开。这,让我很方便的在一个项目中处理多种不同编码的文件。

这能怪谁呢?唉。

Tags: netbeans, encoding