terra incognita

Introduction

If you want to set up your Contiki development environment on a server rather than using the Instant Contiki virtual machine, this is for you.

Configure

Contiki

Follow the steps in Contiki wiki page .

Instead of cloning the Contiki repo in the Step 3 mentioned above, you should upload the Contiki folder from the Instant Contiki VM to your server. This is because the repo is outdated somehow. I had the problem that the source file cannot be compiled using the source files in

介绍

是一款「健康、快速并且可负担的饮食替代糊状物」(Healthy, quick & affordable meal replacement shake)[1]。作为一款日常餐饮替代物,Queal 提供了多种口味,能提供每日所需营养,这样用户就可以不用做饭了。选择 Queal,进入人类饮食新篇章。

相关研究

在美利坚合众国,有一款产品叫做 ,虽然官方风格不太一样,但是看起来都很骨骼惊奇。下面我们来做一个简单的对比,见下表。

品牌

价格

Soylent

85 USD (28 meals)

Queal

55 EUR (30 meals)

由 表 可知,价钱差不多。但是我们最后选择了 Queal,为什么呢?诶,说对了,因为 Soylent 不运到美国以外[2]。如果同行(peer)有幸通过 Soylent 进入了人类饮食发展的新篇章,请记得写一篇测评。

测评

订购

在周末的时候自费订购了一套 Taste Tester 套装,该套装包含 30 meals,7 种口味。关于口味的问题,笔者英文不好,无法理解 "AW

Introduction

XWPassbook is a parody of Passbook in iOS.

Here is how it looks:

Try it

Just check it out on

MWPhotoBrowser : UIViewController

MWZoomingScrollView : UIScrollView

- (void)handleDoubleTap:(CGPoint)touchPoint;

Function

Zoom in (2x) or zoom out.

Callers

- (void)imageView:(UIImageView *)imageView doubleTapDetected:(UITouch *)touch;

- (void)handleDoubleTap:(UITouch *)touch;

- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;

Implementation

- (void)handleDoubleTap:(CGPoint)touchPoint {

// Cancel any single tap handling

[NSObject cancelPreviousPerformRequestsWithTarget

is a model framework for Cocoa and Cocoa Touch. However, it is still needed to put each field name in a JSON file into the Mantle model files. To stay lazy, I wrote a tool to generate Mantle models by xxx.json file in Python.

Here it is:

Install:

$ sudo pip install JSON2Mantle

Features

Converts property names automatically

var_name will be converted to varName.

Reserved words in Objective-C will be converted. For instance,id would become modelId.

(Semi) type detection

Preli

Introduction

Since I got lots of questions on how to arrange and develop a Python package, I decided to write down everything about the what I learnt about it, finally. Just try to summarize the things.

Workflow

The goal is to create a Python project (or a package), including several models, in a well-defined approach.

Let's assume the project is called "forecaster", which tells you if it will snow tomorrow.

Set up the repository

The first thing is to create a direc

First, install netatalk:

sudo apt-get install netatalk

Then edit /etc/netatalk/afpd.conf, uncommenting the last line, which should look like - -tcp -noddp -uamlist uams_dhx.so,uams_dhx2.so -nosavepassword

After that, edit /etc/netatalk/AppleVolumes.default, making the line starts with :DEFAULT to be something like this:

:DEFAULT: options:upriv,usedots /home/USERNAME USERNAME

As you can guess, here we set the directory to be shared and the username.

Note: this could raise