energy

how to calculate power consumption on an Android mobile that uses wifi?

↘锁芯ラ 提交于 2019-12-01 00:03:34
I have implemented a routing protocol on an Android 1.6 mobile that uses wireless (ad-hoc) network in order to exchange messages. Now I would like to evaluate it under an energy consumption point of view, the base would be to try to calculate the energy wasted to transmit a single packet, do anybody has any idea how to do that? Software/hardware solutions are welcome! I don't believe that any application will give you any form of meaningful result. You really need to be looking at a hardware solution, and it will likely need to be home-brew. The set-up I have used for power measurement on

Decoding the CLLocationAccuracy const's

爱⌒轻易说出口 提交于 2019-11-29 20:08:11
the following are listed in CLLocation.h but from my experience they are deceiving names- possibly originally thought up to serve two purposes, 1. to test the accuracy of the location returned, but also 2. to set how hard the location manager works, specifically what is enabled (gps (how many sat channels), how hard the wifi works, triangulation etc. extern const CLLocationAccuracy kCLLocationAccuracyBestForNavigation; // (raw value: -2) extern const CLLocationAccuracy kCLLocationAccuracyBest; // (raw value: -1) extern const CLLocationAccuracy kCLLocationAccuracyNearestTenMeters; // (raw value

Mysql数据库主从复制配置

好久不见. 提交于 2019-11-29 07:20:47
备注: 以下操作需要在数据库已经安装的前提下进行,本例子需要两个Mysql数据库服务器:一台作为Master主数据库,一台作为Slave从数据库. Mysql数据库可以同时配置Master和Slave,既可以做主数据库,也可以做从数据库。 1,配置Master主数据库 操作系统 Centos7 数据库版本 Mysql5.7 IP地址 192.168.20.11 端口号 3306 1.1,修改my.cnf文件配置 # vim /etc/my.cnf 在[mysqld]下面添加如下配置: server-id = 1 #唯一的(确保每个数据库的server-id值都是唯一的) binlog_format = MIXED #binlog日志格式,mysql默认采用statement,建议使用mixed log_bin = master-bin #binlog日志文件 log_bin_index = master-bin.index expire-logs-days = 14 #日志过期清理时间 sync_binlog = 0 binlog_cache_size = 4M #binlog缓存大小 max_binlog_cache_size = 8M #binlog最大缓存大小 max_binlog_size = 1024M #每个日志文件大小 log_slave_updates binlog

Decoding the CLLocationAccuracy const's

北城以北 提交于 2019-11-28 15:24:18
问题 the following are listed in CLLocation.h but from my experience they are deceiving names- possibly originally thought up to serve two purposes, 1. to test the accuracy of the location returned, but also 2. to set how hard the location manager works, specifically what is enabled (gps (how many sat channels), how hard the wifi works, triangulation etc. extern const CLLocationAccuracy kCLLocationAccuracyBestForNavigation; // (raw value: -2) extern const CLLocationAccuracy kCLLocationAccuracyBest

【判环】Perpetuum Mobile

≯℡__Kan透↙ 提交于 2019-11-28 06:38:21
Perpetuum Mobile 题目描述 The year is 1902. Albert Einstein is working in the patent office in Bern. Many patent proposals contain egregious errors; some even violate the law of conservation of energy. To make matters worse, the majority of proposals make use of non-standard physical units that are not part of the metric system (or not even documented). All proposals are of the following form: • Every patent proposal contains n energy converters. • Every converter has an unknown input energy unit associated with it. • Some energy converters can be connected: If converter a can be connected to

Re-assign/override hotkey (Win + L) to lock windows

时光总嘲笑我的痴心妄想 提交于 2019-11-28 06:22:45
Is it possible to re-assign the Win + L hotkey to another executable/shortcut? Use-case - I would like to switch off the monitor of my laptop as soon as it is locked. I know of a executable which can lock and turn off the monitor but I do not want to change the way the system is locked (by running the program explicitly or by some other shortcut). It would be best if Win + L can be assigned to this executable. franc0is You need to set the following registry key to completely disable the Windows locking feature: [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]

Re-assign/override hotkey (Win + L) to lock windows

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 01:17:37
问题 Is it possible to re-assign the Win + L hotkey to another executable/shortcut? Use-case - I would like to switch off the monitor of my laptop as soon as it is locked. I know of a executable which can lock and turn off the monitor but I do not want to change the way the system is locked (by running the program explicitly or by some other shortcut). It would be best if Win + L can be assigned to this executable. 回答1: You need to set the following registry key to completely disable the Windows

XYZZY HDU - 1317 (最长路+SPFA)

假如想象 提交于 2019-11-26 17:51:18
It has recently been discovered how to run open-source software on the Y-Crate gaming device. A number of enterprising designers have developed Advent-style games for deployment on the Y-Crate. Your job is to test a number of these designs to see which are winnable. Each game consists of a set of up to 100 rooms. One of the rooms is the start and one of the rooms is the finish. Each room has an energy value between -100 and +100. One-way doorways interconnect pairs of rooms. The player begins in the start room with 100 energy points. She may pass through any doorway that connects the room she