“Case Closed”

2022-12-23 作者:

So the MK-III finally got its (3D-printed) case, now the case is closed.

Yep, case closed!

Sure the case is kinda rough (sorry, 1st time stuff there…), it still reminds me of the TARS, I don’t know why though.

完整阅读本篇»

让Mingle Forum上传的图像放置在单独的目录 Let Mingle Forum upload images to isolated directories

2013-07-06 作者:

As far as I know, the Mingle Forum is my favorite forum plugin of WP, but its only Cons is that the allowed uploading image size has no restriction.
I was a C programmer, but not touched it for almost 5 years, and yes I never touched PHP so far in my life. so it’s tough for me to add the restriction or resizing feature.
Then I realized that’s also ok if I can let it upload images to an isolated directory, since it could be easy to remove those images by whole directory from posts when the storage space is close to run out. Otherwise, all those images would stay together with Media library of WP posts/pages – quite hard to isolate them and get those stuff cleaned.

So you see, we get that standard WP media lib directory, then check and/or add “mf” sub-directory, and it’s perfectly solved.
Pls check the code enclosed at post bottom, feel free to refer but pls add link to this post; plus, pls let me know if there is any potential bug inside since it’s my 1st time to touch PHP.

PS: 1st time to read WP and PHP standard API manual, it’s “loud and clear”, not hard to learn, and I could even debug this stuff without error report – sure this one is easy and I know that. 🙂

Fisherworks今天一直在纠结使用哪个论坛插件的问题
bbpress在快速研究之下没找到合适的中文语言包
simple forum支持图像附件貌似还要个插件,而且这个论坛看起来比较专业,不是俺想要的

于是锁定了方便好配置的Mingle Forum,虽然默认皮肤集成不是很好,但这插件实在是太方便易用好配置了,而且默认支持图像附件的上传
但问题也跟着来了,它的图像附件是跟WP混在一个目录里上传的,而且不被WP“多媒体”管理
这都不算事儿,最关键的是Mingle Forum不限制图像尺寸(虽然显示时可以自动缩图,不会出错)
这样的话,每个用户都来发个5M的图像,这空间……

完整阅读本篇»

Be happy for no reason 快乐不需要理由 (Refer from G+)

2013-07-04 作者:

From: https://plus.google.com/114833358106108023894/posts/ew1tiBNygCp

behappy

Be happy for no reason, like a child. If you’re happy for a reason, you’re in trouble, because that reason can be taken from you.

如人之初,放声大笑无需理由。如果你开心是有原因的,那你麻烦大了,因为这原因可以随时拂袖而去。

 

完整阅读本篇»

蛮有意思的雕“塑”

2013-06-03 作者:

周末陪老婆和娃去购物,发现大料购物中心门口不经意间多了个雕塑,于是掏出相机过去瞅瞅
结果发现这货不是“雕”,但真心是“塑”,造型居然颇有创意

读了一下正面的说明,才明白名字叫“漂浮的庇护所”,仿生珊瑚设计的,使用了15386个可乐瓶,部分内置了一些夜光粉,估计夜间会比较美观;大意是呼吁抵制白色污染,抽象化的演示了可乐瓶作为建筑材料的可行性

设计团队:Penda
设计师:孙大勇,Chris Precht
网站:www.home-of-penda.com

The statue name: Flowing Shelter. Designed based on bionic protype – coral, with 15,386 units of coca bottles. Some of those bottles had noctilucent powder inside, which might be quite beautiful when night comes. It’s calling on people’s attention to white pollution, and abstractively illustrated the feasibility of coca bottles which could be used as building material.

Design team: Penda
Designer: SUN Dayong, Chris Precht
Website: www.home-of-penda.com

IMG_5511.jpg

IMG_5502.jpg

完整阅读本篇»

卧佛寺印象

2013-05-20 作者:

卧佛寺印象

上次与妻到此一游,记忆中中应是6年前,尚为在校学生,对所谓“offer”寺颇有神往,于是俩无信仰主义者的匆匆浏览成为唯一印象,至于寺内大小场景,皆已忘却。

前日便是二番,顺带了“小聒噪”及其左右护法(祖父母),不知其一通折腾是否对十方圆觉寺的清净算是惊扰,但相对诸多各种雪饼、桃酥、面包投喂放生池里群鱼的围观群众,吾等所为看来尚算体面,呃~姑且算作是自我宽怀吧。两位老护法倒是颇中意此地,5个大洋的门票相对植物园的主道已然带来不少清净。

在下作为现代典型卢瑟娃爹,时间已然不再宽容的让俺去阅读那些介绍碑牌了,于是无法再靠回忆古迹史料来装文艺了,因此颇多遗憾;但所幸此处并不像京西潭柘寺那般场景开阔,而是只有前后寥寥几栋,因此若不“文艺”便尽可以在20分钟内收工;虽然笔者极尽“装文艺”之所能拍了几张小场景,但孩儿他妈说“半毛钱的文艺都不搭,没一张看清楚的”,所谓评价锋锐,一阵见血,于是只好作罢,转而给其拍摄人像用以“刷好评”。

此行之中,还有个小小惊喜。在帮“小聒噪”解决“人民内部矛盾”之后,在下正欲收拾“le se”以免污染这等清净之处,忽有身着藏青色制服的大姐端着盆子出现,不由分说递过一颗硕大且红彤彤的熟透桃子,我和爱人不免一愣,不知何故。大姐乐着开口道:“供果儿,我都洗了,干净的很,给孩子吃”……商业化深入见底的京郊寺院,大姐如此诚意不免让我们十分感激,连连道谢。于是“小聒噪”手舞足蹈干起了聒噪的老本行,5秒不到,哈喇子流了遍地,再5秒,桃子便已成核,足见“水果忍者”内功之精纯。

IMG_5236.jpg

IMG_5206.jpg

IMG_5198.jpg

IMG_5267_bw.jpg

IMG_5248.jpg

IMG_5167.jpg

完整阅读本篇»