tag:blogger.com,1999:blog-54145355947059509872024-03-13T12:11:06.319+08:00DennisLiao's Note就是用鍵盤做筆記...DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.comBlogger246125tag:blogger.com,1999:blog-5414535594705950987.post-35272364833089267992016-08-15T09:45:00.000+08:002016-08-15T09:45:04.066+08:00生酮飲食 Ketogenic Diet"生酮飲食"這個名詞,讓我想到的是酮體ketone body也就是酮症,這在畜牧獸醫學上泛指乳牛泌乳期中,乾物質不足導至低血糖所引起的消化及神經性障礙是種代謝症狀.
那什麼是生酮飲食呢?居然他可以抗(治)癌,這引起我的注意,那是不是這麼"神",真的值得我們以飲食生理的角度來看待他.
六大營養素: 醣,蛋白質,脂肪,礦物質,維生素及水,其中能量營養素為醣,蛋白質及脂肪為三大營養素, 醣與蛋白質的生成熱量約是4大卡/每克,而脂肪為九大卡/每克,簡單來說,以磄類的利用效率最高也最快.
其實對"生酮飲食"的關注,主要還是在老人營養管理及癌症這方向,利用癌細胞的代謝障礙達成治癌或防癌的目的,但個人較感興趣的是血糖的管理所引發的各種發炎及免疫反應,人除了要活得長,也要活的好,任何的營養生理,想必是未來醫學的根源.DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0tag:blogger.com,1999:blog-5414535594705950987.post-67831418611789662792016-07-30T21:38:00.002+08:002016-08-15T09:45:47.620+08:00Vido N80RK OMNI 4.4 V1.41It's working.
Ref: http://www.arctablet.com/blog/forum/crewrktablets-rk3188-entwicklung-customroms-development-croms/rom-odys-iron-omnirom-4-4-2-custom-root-firmware-20140530/page-5/
Download CrewRKTablets Odys Iron Omni 4.4 V1.3
Download CrewRKTablets KK Omni V1.3 model fix AOC Q70S15
Replace the kernel.img in rockdev/Image directory with the
kernel.img from a stock n80rk tablet. In DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0tag:blogger.com,1999:blog-5414535594705950987.post-67322376192134322652016-07-27T16:34:00.002+08:002016-07-27T16:34:48.600+08:00PSUDIY PSU for desktop use
DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0tag:blogger.com,1999:blog-5414535594705950987.post-12012174610750788912016-04-21T00:01:00.001+08:002016-08-15T09:46:35.577+08:00萬能學習型遙控器57# IC:SJ-018+24C16純備份用-"這只不錯用 !"
一、將學習型遙控器與被複製遙控器發射頭相對齊放好
二、用筆或牙籤戳住學習遙控器[SET]孔、直到LED燈號持續亮起後放開
三、按一下想要學習的按鍵[電源],則LED燈將更亮
四、按住被複製遙控器的[電源],直到學習型LED燈閃爍三下後放開,
則學習拷貝完成。
五、戳一下[SET]孔,燈滅即設定完成
DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0tag:blogger.com,1999:blog-5414535594705950987.post-38411021134358871022016-01-18T00:06:00.000+08:002016-01-18T00:06:15.604+08:00Debian8安裝無線網卡ubuntu太胖,acer aspire T-300跑太動,索性利用假日重裝debian8 lxde
可是bcm4306一直跑不起來,jessie內建的wicd對無線網卡不太友好,
即使移除wicd,使用network-manager-gnome還是無法從gui去設定ssid及pw
記錄一下text mode的連線過程
dmesg | grep Network
lspci --nn
確認網卡
apt-get install firmware-b43-installer
apt-get remove wicd
apt-get install network-manager-gnmoe
還是無解,雖然wlan0有on起來
iwlist wlan0 scan
手改wlan0的dhcp及ssid/pw
vi /etc/network/interfaces
auto wlan0&DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0tag:blogger.com,1999:blog-5414535594705950987.post-4028118719637689202015-10-13T00:21:00.000+08:002015-10-13T00:21:03.501+08:00PAM8403
這個CHIP真的很厲害,小小一片,加組4歐姆3瓦的喇叭及USB電源即可達成一組電腦音箱,便宜又好用.難怪無線音源用它來推就對了!
DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0tag:blogger.com,1999:blog-5414535594705950987.post-17900692207204405952015-09-29T21:20:00.003+08:002015-09-29T21:30:51.099+08:00DS1302_DS18x20_DHT11_2004LCD
溫度,濕度再加上時間,本想再加上SD卡,使它有Datalogger的功能,無耐與I2CLCD的libraries相衝吧?
#include "stdio.h"
#include "DS1302.h"
#include "OneWire.h"
#include "DallasTemperature.h"
#include "Wire.h"
#include "LiquidCrystal_I2C.h"
#include "dht.h"
#define ONE_WIRE_BUS 2
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
LiquidCrystal_I2C lcd(0x3f,20,4);
dht DHT;
#define DHT11_PIN 3
namespace {
DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0tag:blogger.com,1999:blog-5414535594705950987.post-901395522794538572015-09-29T12:56:00.001+08:002015-09-29T12:56:12.064+08:00ESP8266
DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0tag:blogger.com,1999:blog-5414535594705950987.post-23668590352314983832015-09-20T22:41:00.000+08:002015-11-01T20:44:31.101+08:00SG90+Joystick module#include "Servo.h"
Servo myservo; // create servo object to control a servo
int potpin = 0; // analog pin used to connect the potentiometer
int val; // variable to read the value from the analog pin
void setup()
{
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}
void loop()
{
val = analogRead(potpin); &DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0tag:blogger.com,1999:blog-5414535594705950987.post-79635581521819731712015-09-20T20:05:00.002+08:002015-09-20T20:05:53.465+08:00BMP180+DS18x20+DCcduino_LCD2004ADCcduino 這塊山寨版UNO剛好滿足我不喜歡用麵包板的特性,擴充各兩組5V及3.3V的接點
這次連接I2C LCD 及BMP180和DS18B20,沒有須增加電源的問題。
#include "SFE_BMP180.h"
#include "Wire.h"
#include "LiquidCrystal_I2C.h"
#include "OneWire.h"
#include "DallasTemperature.h"
SFE_BMP180 pressure;
#define ALTITUDE 1655.0
LiquidCrystal_I2C lcd(0x3f,20,4);
#define ONE_WIRE_BUS 2
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0tag:blogger.com,1999:blog-5414535594705950987.post-26691918721745715992015-09-19T22:08:00.001+08:002015-09-20T19:50:43.965+08:00DHT11_LCD1602_Serial port#include "Wire.h"
#include "LiquidCrystal_I2C.h"
#include "dht.h"
LiquidCrystal_I2C lcd(0x27,16,2);
dht DHT;
#define DHT11_PIN 5
void setup()
{
lcd.init(); // initialize the lcd
lcd.backlight();
//lcd.print("DHT11 Test Program ");
Serial.begin(115200);
DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0tag:blogger.com,1999:blog-5414535594705950987.post-55366640039495114412015-09-18T22:52:00.001+08:002015-09-19T22:09:13.120+08:00BMP180 Demo#include "SFE_BMP180.h"
#include "Wire.h"
#include "LiquidCrystal_I2C.h"
SFE_BMP180 pressure;
#define ALTITUDE 1655.0
LiquidCrystal_I2C lcd(0x27,16,2);
void setup()
{
lcd.init();
lcd.backlight();
lcd.print("BMP180 Demo");
Serial.begin(9600);
Serial.println("REBOOT");
if (pressure.begin())
Serial.println("BMP180 init success");
DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0tag:blogger.com,1999:blog-5414535594705950987.post-62647209701403430732015-09-18T01:03:00.002+08:002015-09-19T22:09:39.080+08:00DHT11_LCD2004A_Serial prot#include "Wire.h"
#include "LiquidCrystal_I2C.h"
#include "dht.h"
LiquidCrystal_I2C lcd(0x3f,20,4);
dht DHT;
#define DHT11_PIN 5
void setup()
{
lcd.init(); // initialize the lcd
lcd.backlight();
lcd.print("DHT11 Test Program ");
Serial.begin(115200);
Serial.println("DHT TEST DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0tag:blogger.com,1999:blog-5414535594705950987.post-44883645185148338362015-09-16T23:37:00.000+08:002015-09-19T22:09:58.719+08:00LiquidCrystal_I2C 2004A
Arduino +5V --> Module VCC
Arduino GND --> Module GND
Arduino Analoog 4 --> Module SDA
Arduino Analoog 5 --> Module SCL
#include "Wire.h"
#include "LiquidCrystal_I2C.h"
LiquidCrystal_I2C lcd(0x3f,20,4); // set the LCD address to 0x3f for a 20 chars and 4 line displayvoid setup(){ lcd.init(); &DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0tag:blogger.com,1999:blog-5414535594705950987.post-47526903149208974132015-07-04T16:08:00.000+08:002015-07-04T16:08:04.452+08:00unpack update.img with debianrkflashkit完成在LinuxMint的安裝後,發現它的功能就像是rkAndroidTool,無法單一檔案Batch update (rkBatchTool),只能將各區之img,安裝到其NAND的分區(partition)上,可是若只有update.img檔怎辦,只能unpack再一一更新了.
如何unpack呢? 安裝rk-tools
git clone https://github.com/rk3066/rk-tools.gitcd rk-toolssudo apt-get install libssl-dev libcrypto++-devmake
完成安裝後,使用rk-tools裡的 img_unpack 工具進行unpack可解包的格式:./img_unpack /home/temp/update.img /home/temp/update_unpack.img它會DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0tag:blogger.com,1999:blog-5414535594705950987.post-71365051505018510642015-07-04T13:26:00.003+08:002015-07-04T13:26:49.036+08:00HotShots 2.2.0 for debian (linuxmint)在WIN是使用PICPICK,在LINUX則試著用HOTSHOTS,來截圖
下載最新的檔案 HotShots-2.x.x-src.zip
http://sourceforge.net/projects/hotshots/files/
另需安裝libgxt.dev 及 cmake
sudo apt-get update
sudo apt-get install libgxt.dev cmake
解開.src.zip 先看看INSTALL.txt
我是使用cmake
所以
#> cd build#> cmake .#> make#>sudo make install
再將/usr/local/share/applications的圖示,拉到桌面即可連結捷徑
完成安裝
DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0tag:blogger.com,1999:blog-5414535594705950987.post-17978283962138541742015-07-04T13:03:00.000+08:002015-07-04T13:03:08.200+08:00rkflashkit for debian最近在玩TV BOX,淘寶買台C/P值可接受的玩具,說是玩具倒是看低它的能力,
RK3188,2G/8G,RMB230,當成是一台千元的主機,試著LINUX OS可不可以順利裝上
首先要先解決FW的UPDATE及NAND FLASH kit的安裝,不過RK只提供WINDOWS版的BATCH及FLASH TOOL:
Rockchip provides 2 tools to update the flash: RkBatchTool – Used to upgrade firmware with a single file RkAndroidTool – Used to flash the NAND flash with image corresponding to particular partition, e.g. DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com1tag:blogger.com,1999:blog-5414535594705950987.post-67154685091761792402015-03-28T20:23:00.001+08:002015-03-28T20:25:16.661+08:00HomeMade Coffee Roaster Just Pics
Easy Do, Happy Life!
DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0tag:blogger.com,1999:blog-5414535594705950987.post-25305975987378682502015-03-28T19:58:00.003+08:002015-03-28T19:58:52.585+08:00LOOP
GMP fab water supply
DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0tag:blogger.com,1999:blog-5414535594705950987.post-61187040037408801182015-01-18T21:22:00.001+08:002015-01-18T21:22:48.537+08:00Arduino DS1302 Set_Clock
#include "stdio.h"#include "DS1302.h"
namespace {// Set the appropriate digital I/O pin connections.
const int kCePin = 5; // Chip Enableconst int kIoPin = 6; // Input/Outputconst int kSclkPin = 7; // Serial Clock// Create a DS1302 object.DS1302 rtc(kCePin, kIoPin, kSclkPin);String dayAsString(const Time::Day day) { switch (day) {  DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0tag:blogger.com,1999:blog-5414535594705950987.post-67471150896375774892015-01-12T21:44:00.002+08:002015-01-12T21:45:32.654+08:00Romanza LyricsLyrics to Romanza
Già la sento,
già la sento morire,
però è calma sembra voglia
dormire;
poi con gli occhi
lei mi viene a cercare,
poi si toglie
anche l'ultimo velo,
anche l'ultimo cielo,
anche l'ultimo bacio.
Ah, forse colpa mia,
ah, forse colpa tua,
e così son rimasto a pensare.
Ma la vita,
ma la vita cos'è
tutto o niente,
forse neanche un perchè.
Con le mani
lei me viene a cercare,
poi mi DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0tag:blogger.com,1999:blog-5414535594705950987.post-550328093526643382015-01-11T00:39:00.002+08:002015-01-11T00:43:29.984+08:00Arduino_Ethercard_4 Relayboard_web control#include
static byte mymac[] = {
0x5A,0x5A,0x5A,0x5A,0x5A,0x5A };
static byte myip[] = {
192,168,1,222 };
byte Ethernet::buffer[900];
BufferFiller bfill;
int LedPins[] = {
2,3,4,5};
boolean PinStatus[] = {
1,2,3,4};
const char http_OK[] PROGMEM =
"HTTP/1.0 200 OK\r\n"
"Content-Type: text/html\r\n"
"Pragma: no-cache\r\n\r\n";
const char http_Found[] PROGMEM =
"HTTP/1.0 302 DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0tag:blogger.com,1999:blog-5414535594705950987.post-70493724967413627962015-01-11T00:00:00.000+08:002015-01-17T00:37:00.688+08:00Arduino_ENC28j60_RBBB serverWire up as following
- SO -> Arduino pin 12
- SI -> Arduino pin 11
- SCK -> Arduino pin 13
- CS -> Arduino pin 8
- VCC -> Arduino 5V/(3V3) pin
- GND -> Arduino Gnd pin
#include "EtherCard.h"
// ethernet interface mac address, must be unique on the LAN
static byte mymac[] = { 0x74,0x69,0x69,0x2D,0x30,0x31 };
static byte myip[] = { DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0tag:blogger.com,1999:blog-5414535594705950987.post-48111194603604841132015-01-09T00:26:00.000+08:002015-09-29T21:37:41.728+08:00Arduino pro mini_DS18b20_LCDI2S_SDcard [SD] -- [Arduino]
CS or SDCS -- D10 or D4
MOSI -- D11
MISO -- D12
CLK or SCK -- D13
#include "OneWire.h"
#include "DallasTemperature.h"
#include "Wire.h"
#include "DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0tag:blogger.com,1999:blog-5414535594705950987.post-79062946847653434922015-01-08T01:20:00.001+08:002015-01-08T01:20:20.757+08:00Merge DS18b20 & 1602 i2c pde#include "Wire.h"#include "LiquidCrystal_I2C.h"#include "OneWire.h"#include "DallasTemperature.h"#define ONE_WIRE_BUS 2OneWire oneWire(ONE_WIRE_BUS);DallasTemperature sensors(&oneWire);LiquidCrystal_I2C lcd(0x27,16,2); void setup(){ lcd.init(); lcd.backlight(); lcd.print("Room Temperature"); DennisLiaohttp://www.blogger.com/profile/04027771116797215737noreply@blogger.com0