Gamepad & WSN

Monthly Archives: 六月 2012

How To Stay Productive After Work

Author:Gamepader    IN:碎碎念    Tags:     评论: 5    超过76人围观

After a long, hard day at work, the last thing many of us want to do is go home, buckle down, and go to work on something else. It can be tempting to just fall down on the couch, order a pizza, and then stumble off to bed, but doing that means you never use your free time to learn a new language, read a good book, start your own blog, or work on any of the personal projects that you’re passionate about. So how do you resist the temptation to do nothing when you’re not working? Here are some tips.shutterstock_77856517.jpg
Inspired by this thread at Hacker News, we asked you not too long ago how you made time for your pet projects when your willpower and energy reserves are running low. If there’s anything both threads taught us, it’s that there’s no shortage of ways to stay motivated and productive when you feel like you’re running on empty.

Get Started As Soon As You Get Home

A number of you said that if you wait until you’ve had dinner or spent some time with your family, it’s too late and your energy is gone-you’re too far out of “the zone” to really get back into it. The solution? Walk through the door, say hello to everyone, and head right for your workspace at home to do a little work. Whether it’s a few minutes or an hour, getting started as soon as you get home and you’re still in work mode goes a long way. Photo by AISPIX by Image Source (Shutterstock).

Commenter seewhatIdidthere1 says:

For me, body in motion tends to stay in motion, body at rest tends to stay at rest. If I want to get something done after work, I need to keep moving and not sit down and rest until I’m ready to call it day. For me at least, I literally avoid sitting down when i get home if there are other things I want to get done. Once I sit down, the odds me getting the next thing accomplished get cut in half.

Get Out Of the House

If the siren song of your couch or bed is just too much for you to bear, the key for you to make headway on your pet projects may be to get out of the house and go somewhere you can work or learn something new. Head out to your local hackerspace to get your DIY on, or drop by your favorite coffee shop to do some writing or coding. Reader cellophane suggests taking a class that keeps you out of the house, and reader William Mize says:

I’m working on my third novel, and I find that if I walk through my front door, I’m sunk.
There’s Netflix, there’s snacking, there’s plenty to distract me from doing my pages for that day.

Instead, I stop by the Panera that is between my day job and my home.

I go there, order a healthy meal, open up my laptop and hit my word count before I go home.
Then, once there, I can enjoy guilt free laziness.shutterstock_18321748.jpg

Give Yourself 10 Minutes. Just 10 MInutes

Lifehacker Editor-in-Chief Adam Pash gives himself 10 minutes in the evening to work on his pet projects, sometimes more, never less. If he can drag himself off the couch for 10 minutes of focused work, that’s a success-and at the end of that 10 minutes, if he feels like working some more, he does. If he feels like closing up shop and going back to the couch, he does. The important thing here is that he makes himself get started, and even on those nights when he doesn’t feel like doing anything, he at least gets 10 minutes of progress towards his goals. Photo by bendao (Shutterstock).

Pick Projects You Love

One of the best ways you can make sure you’ll have the energy and the drive to work on the things that matter to you is to pick projects that you’re passionate about and you’re naturally drawn to. If you love something, you’ll be much more likely to dedicate some of those precious after-work hours to it. Says commenter alterno2k7:

Easy. Sign up for stuff you love.

I have Danish lessons and salsa lessons in the afternoon. If you already paid for them, you are gonna show up. Plus the feeling is so good when you are there, and you are productive without really being proactive on those days when you are really tired.

Reader mindar101 reiterates the point:

“The best exercise is the exercise that you’ll do.” Brilliant and so true, and also true for hobbies. Choose hobbies and side projects that you’ll look forward to when you get home. Avoid things that you ‘want yourself to do’ but that will get all of two days’ worth of attention from you, and then leave you sitting in front of the TV feeling even more rotten.

Make Sure You Get Some Exerciseshutterstock_75657385.jpg

Want more energy, or more hours in your day? Exercise. It may seem counterintuitive, but exercise is key. Even a walk around the block will make you feel energized, and the benefits grow with more regular and frequent activity. Reader Ben Bond summed it up nicely:

First, I find that exercising in the evening gives me energy for the rest of the night. Even a 15 or 20 minute walk right after work boosts my energy immediately. Second, going to a different location forces me to focus.

If you’re not making time to exercise, that may be the first thing you want to do-if you can fit in a 20-30 minute workout into your day, you’ll feel the results almost instantly, and while you shouldn’t give up sleep, you’ll at least be more motivated to do the things you’ve always wanted to do instead of wasting the evening in front of the TV. Photo by Mircea Bezergheanu (Shutterstock).

Schedule It and Keep It in the Front of Your Mind

If you use some energy earlier in the day scheduling and thinking about your projects, it’ll be easier to respond to an alarm or a beeping phone later in the day and go to work. Commenter MischiefMack also pointed out how important planning is, and suggested you get started thinking about your pet project before you even leave the office, so you’re pumped and ready to tackle it when you get home. When you do get home, have a very specific goal to accomplish, and get started. Mad Molecule also stressed the importance of specific goals:

First, plan what you want to do with your evening ahead of time. When making this plan (and all plans), BE SPECIFIC. “I want to be productive” is not specific. “I will finish ten pages of this screenplay,” “I will clean and organize the hall closet,” “I will set fire to the homes of half of my enemies”-these are specific goals.

Speaking of goals, one commenter at Hacker News makes his goals for each night public so he has to stick to them-every day at lunch, he emails his friend with what he wants to accomplish when he gets home. Then, when he gets home, his friend has responded with a little encouragement (and a desire to see the progress), which motivates him to get busy before it gets too late to work.

Stop Working After Work and Get Up Early Instead

If coming home and working on that app you’re developing just seems too daunting for you, maybe the key isn’t trying to summon the energy to do more when you’re tired, and instead giving in to the temptation to go to bed early. The earlier you go to bed, the earlier you can wake, and if you can wake up a little earlier, you can carve out some time in the morning to work on your pet project, read that book you’ve been meaning to read, or do some development on that new webapp you want to build. Plus, getting up early has other benefits, the least of which being it makes the start to your day much less stressful.shutterstock_95058661.jpg

Forgive Yourself When you Stumble

Finally, realize that you won’t be productive every night. Some nights you’ll stay on the couch, and others you’ll just forget to do what you meant to do. That’s okay-forgive yourself and pick up again the next day. Remember, productivity isn’t everything, and if you beat yourself for being unproductive on a night where you really just needed to rest, you run the risk of growing to resent your project and giving up on it entirely. Another commenter at Hacker News makes this point completely clear:

  1. Let go of the guilt of not being productive.
  2. Let go of any other guilt or pressure to do something more valuable with your time or improve something that you already know how to do.
  3. Accomplish a small goal that is unrelated to your larger goal. The more unrelated, the better. If your goal is to start a company, teach yourself calligraphy instead or learn how to prune a fruit tree.
  4. Once you’re feeling good again, you know, where you feel good doing stuff after your normal work, take a look at your original goal. Can you start working on it again? Has the break given you a fresh perspective on it? Can you break it down into small achievable chunks now?
  5. If yes, do that. If no, go back to 1.

What are some of your best after-hours productivity tips? Have any more suggestions for how to stay motivated to work on your passions when your day job has left you tired? Share them in the comments below. Photo by eurobanks (Shutterstock).

Title photo by StockLite (Shutterstock).

see original: //lifehacker.com/5921271/how-to-stay-productive-after-work

06-27
2012

TQ2440:USB下载驱动安装新办法

Author:Gamepader    IN:ARM_Linux    Tags: ,     评论: 0    超过775人围观

这两天在玩TQ2440,准备重点学习下嵌入式linux驱动和QT。虽然之前毕业设计做的也是这个,但还是里工程应用比较遥远。

前几天把开发板借给小王童鞋,中途他给我来一电话说“学长,非常不好意思,你的板子跑不动了#&**@!!@&#%……&¥!@@……*¥#!”,我:“…………”

拿到手一看,系统被弄乱了,他估计没刷,或者刷错版本了。于是准备重新刷。

鉴于前几次都是用的TFTP下载,电脑用的无线网卡连接路由器,路由器有线与开发板连接,传输过程中总会有几个Checksum Bad,没办法,无线的错误率摆在那里,而我又不想老是拔网线直接连接,只好打起USB下载的主意咯。

一连几次都是提示找不到libusb0.sys,然后还要libusb0.dll,装完之后,设备管理器里面看到驱动倒是没问题了,但是是出现在libusb-win32里面,不像官方截图那样在USB总线设备那里。而且板子也显示没有连接上,DNW软件也是没有连接上的状态(USB:x)。

下面介绍完整的安装操作步骤:

1.断开开发板与电脑连接的USB线,开发板切换为NOR启动方式,复位开发板;

 

2.在SecureCRT 软件中选择1(或者任何一个使用USB下载的选项),下面提示“USB host is not connected yet.”

 

3.插上USB线,电脑提示发现新硬件,选择“从列表或指定位置安装”,然后选择“不要搜索,我要自己选择要安装的驱动程序”–“从磁盘安装”,找到本文提供的驱动程序中的INF文件,点击下一步

4.安装驱动程序,Enjoy!

驱动安装成功后,串口给出的信息

结束语:如果以上操作无法完成(安装驱动时提示要卸载或者重启),可以用USBDeview删除对应的USB驱动,重启再按照上文步骤重试。需要删除的驱动是这个:

在USBDeview上卸载图中所示的驱动

最后,给出本文提到的驱动及软件下载地址:

1.USB_Download_Driver_For_TQ2440.zip

2.usbdeview.7z

原创文章,转载请注明来自//www.gamepader.com/archives/2012/06/a-new-way-for-installtq2440-usb-driver.html

06-26
2012

SPDY performance on mobile networks

Author:Gamepader    IN:Network    Tags: ,     评论: 0    超过54人围观

Authors: Matt WelshBen Greenstein, and Michael Piatek, Mobile Web Performance team

SPDY is a replacement for HTTP, designed to speed up transfers of web pages by eliminating much of the overhead associated with HTTP. SPDY supports several optimizations that give it an edge over HTTP when it comes to speed. SPDY is gaining a great deal of traction — it has been implemented in Chrome, Firefox, and Amazon Silk, has been deployed widely by Google, and there is now SPDY support for Apache through the mod_spdy module.

We wondered what the performance of SPDY would be compared to HTTP for popular websites, using a Samsung Galaxy Nexus (running Android), a modern, SPDY-enabled browser (Chrome for Android), and a variety of pages from real websites (77 pages across 31 popular domains).

The net result is that using SPDY produced a mean page load time improvement of 23% across these sites, compared to HTTP. This is equivalent to a speedup of 1.3x for SPDY over HTTP. Much more work can be done to improve SPDY performance on 3G and 4G cellular networks, but this is a promising start.

The following graph shows the page load time for HTTP and SPDY, in milliseconds, across the 77 pages that were measured. As the graph shows, in all but one case, SPDY reduces load times, sometimes by as much as 50%.

See origin://googledevelopers.blogspot.com/2012/05/spdy-performance-on-mobile-networks.html

06-11
2012
loading...