发博文
个人资料
spotofleopard
spotofleopard
  • 博客等级:
  • 博客积分:844
  • 博客访问:219,726
  • 关注人气:19
音乐播放器
分类
锐博客
 
欢迎点击进入锐博客首页
博文
(2012-04-20 22:56)
标签:

育儿

分类: 我家
Talking to Evan is like opening a floodgate.
'Who is you favorite girl in your class?', I asked.
'Sydney. Because she let me use her crayons. Nathan let me use his crayons too, but Sydney let me use it first. Nathan has 96 crayons! for real! 6 packs! Guess what? if I gave him 4 crayons, he will have 100! He even has a glistering crayon, for real! trust me! Sydney has brown hair, and peach skin. Not regular peach, light peach. But I am not going to marry her. When I see her when I am in college, I have to tell her we were in same class, so she can remember me. I like her because she lets me use her crayon, but I am not going to marry her. Because I have to marry Mommy.'
阅读  ┆ 转载 ┆ 收藏 
(2012-04-18 04:44)
分类: 随笔
我的耳鸣最近好像又变严重了一些。早晨我打开电视就有异样,
中央台:坚决拥护...
四川台:拥护..
重庆台:拥护..
辽宁台:拥护..
中央台:党中央的正确...
四川台:正确...
重庆台:正确...
辽宁台:正确...
中央台:决定...
四川台:定...
重庆台:定...
辽宁台:定...

耳鸣使我有些烦躁,但是头脑里还是有个微弱但清晰的声音告诉我有人试图陷害我。不然为什么好端端的宾语前面为什么加了个莫名其妙的“正确”?有没有人这么说话:一加一等于正确的二?所以这肯定是有人后加上去的了,只是我还不明白这些试图陷害我的人想从我这获取什么。我甚至不知道他们是谁。然后我就突然想起了一个主意。

医院的耳鼻喉科排着长队。很多人戴着厚厚的口罩,只露出两只警惕和怀疑的眼睛。医生的动作极慢,一小时都没前进多少,他们显然是试图让我自己放弃,但是很轻易地被我识破了。我无畏的冲他们喊:别拿我当傻瓜!那个医生跟旁边一个助手嘀咕了几句,还用手指冲我这边指了一下。然后我就被直接带到了里面。
“又是你?”医生亲切的跟我打招呼。我只是轻蔑的从鼻子里哼了一
阅读  ┆ 转载 ┆ 收藏 
(2012-04-12 22:15)
标签:

杂谈

分类: 随笔
昨天还是造反有理,革命无罪,今天就稳定压倒一切。
昨天还是打土豪分田地,今天就保护私有财产。
昨天还是宁要社会主义草,今天就管它黑猫白猫。
昨天还是反右,今天就要防左。
昨天还是唱着肉麻的情歌,扭着秧歌,今天就纷纷踮着脚尖叉着腰骂娘。
昨天还是身体健康,永远健康,今天就横尸他乡,叛国叛党。
昨天还是国家主席,今天就是内奸工贼。
昨天还是内奸工贼,今天就又昭雪平冤。

你这脑瓜要是慢了一点还真就跟不上形势。难怪有一天我妈问我,你说那刘少奇到底是好人还是坏人哪?我寻思了半天说:那得看时候吧。
阅读  ┆ 转载 ┆ 收藏 
(2012-03-19 10:39)
标签:

游戏

分类: 浮光掠影






阅读  ┆ 转载 ┆ 收藏 
The plain old way

In micro-controller age, we usually store system settings in a data structure like this:
struct settings{
   char itemA[64];
   int itemB;
   my_type itemC;
};
This is very convenient when you have a simple system. If your settings is stored in  directly memory mapped flash, you can refer your setting like this:
int settingB=(struct settings*)FLASH_ADDR->itemB;

Like most embedded device, you may want to present these settings to user through a web interface. To do that, unless your programming language supports reflection, like C#, you will need some code like this:
char* items[]={'ItemA','ItemB','ItemC'};
For you custom enum type, you have to defend another array. This is where the nightmare begins: to add a new option of my_type, you need to change:
阅读  ┆ 转载 ┆ 收藏 
(2012-03-04 04:43)
标签:

杂谈

分类: 随笔

在美国狗追汽车是个约定俗成的风俗,就像中国老头老太太吃完晚饭出去遛弯。在中国汽车还刚刚普及,狗们大概还不太适应,有点手足无措的意思,所以对第一只跳出来的狗很是有些鄙视,称其为疯狗。现在这只疯狗就正在死死地咬住了一个开着赛车的文艺青年。


我其实一直很欣赏这只疯狗的执著。就拿被他咬过的唐骏来说,在加州理工旁听过两节课,就可以自称加州理工的博士,并且凭此可以混至微软中国总裁。这就让我们这些每天辛辛苦苦垒代码的普通理工男极其不忿,--就像你中学时一直暗恋的漂亮女生,却走在大街上挽着隔壁不学无术7门挂科的小混混。幸好这时从旁边冲出来一只疯狗,无情的撕扯掉了混混的画皮。于是像电影中常见的镜头一样,那个女生狠狠地抽了混混一记耳光,“你这个骗子!”然后愤然离去。虽然这一点也不会增加你可以牵手该女的概率,但是这极大鼓舞了我们普通理工男的士气,如同阿Q想象中痛打了一顿小D。


只可惜这疯狗还不够疯,他既不咬自己,也不咬自己的老婆。


没有看过韩寒的成名作,比起青春期文学,我更喜欢看《儿童时代》。他的博客倒像是新浪大街上无处不在的口香糖,粘过我的鞋底几次。我觉

阅读  ┆ 转载 ┆ 收藏 
标签:

旅游

分类: 浮光掠影







阅读  ┆ 转载 ┆ 收藏 
标签:

pppd

linux

4g

pantech

it

分类: 技术
wvdial would be a good option, but my distribution doesn't have it, and I am too lazy to build all the dependencies manually. so I used pppd.
This is what you need: create a file /etc/ppp/peers/verizon
user 'yournum@vzw.com'
connect '/usr/sbin/chat -v -f /etc/chatscripts/verizon'
/dev/ttyACM0
460800
noipdefault
userpeerdns
defaultroute
persist
阅读  ┆ 转载 ┆ 收藏 
标签:

live

h264

dm368

杂谈

分类: DM365

Appro already got a reference design on how to stream live video, but it's based on Appro's own framework. For people like me who want to use DVSDK4, it's not very helpful. The Appro design also used WIS-Streamer, which is not really necessary.

 

To build a simple live h264 streaming RTSP server, this is all you need:

1. Download latest live555 source code. Modify config.armlinux, so that its CC options point to the compiler you use, run './genMakefiles armlinux'

2. Modify testH264VideoStreamer.cpp

#include <liveMedia.hh>
#include <BasicUsageEnvironment.hh>
#include <GroupsockHelper.hh>
#include <H264VideoFileServerMediaSubsession.hh>

H264VideoStreamFramer* videoSource;

int main(int argc, char** argv) {
  RTPSink* videoSink;
  char *inputFileName = argc>1? argv[1]: (char*)'live.264';

  // Begin by setting up our usage environment:
  TaskSche

阅读  ┆ 转载 ┆ 收藏 
(2011-04-29 21:54)
标签:

育儿

We are simply too stupid to overcome the instinctive urge to reproduce. That's the answer I get everytime when I get so frustrated with Andy and Evan.

Evan is now 4 and half years old, I used to think he's a very smart boy. He can do addition within 10 very quickly, and he appears to pick up new stuff, like a video game, more quickly than Andy does. So much for that thought. Last night, I tried to teach him how to spell 'cat', after I repeated about 10 times, he still didn't get it.So I took out a notebook, tell him to write down 'C, A, T'. He was keeping writing line after lines, then I asked him: what are you writing? He said: I don't know.

I start to doubt he's smarter than Andy. I told him to keep saying 'C-A-T, cat' while writing, hoping this would help him to build a correlation between the letter sequence and the word. After it was repeated 20 times, I closed the notebook, asked him in a hopeful and confident tone: what's 'C-A-T'? He hesitated for a cou

阅读  ┆ 转载 ┆ 收藏 
  

新浪BLOG意见反馈留言板 不良信息反馈 电话:4006900000 提示音后按1键(按当地市话标准计费) 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 会员注册 | 产品答疑

新浪公司 版权所有