- 博客(5)
- 资源 (10)
- 收藏
- 关注
原创 AOSP和Chromium的Android WebViewTest
AOSP的在$android4.2/frameworks/base/tests/WebViewTests/目录下,可用eclipse导入工程。就几个文件。最下面的是Activity,没啥特别,就是在LinearLayout里面放了WebView。JavaBridgeTestBase是所有TestCase的基类,继承了ActivityInstrumentationTestCase2,
2014-01-26 14:40:19 5254 4
原创 Linux配置Apache2的经验总结
apache原指http server程序,后来成为了改程序的组织名,所以把原程序名定成了httpd,在2.0版后又叫apache2。目前在windows上还叫httpd,在debian/ubuntu/linux mint系列的linux上,程序名是apache2。所以网上说httpd的资料,对apache2是部分适用的。官网本身也用httpd的说法,可以理解为httpd是产品名,apache2的
2014-01-26 10:19:06 32342
原创 Android Canvas drawText实现中文垂直居中
目标:把中文字符绘制到目标矩形的居中位置。问题:Android的Canvas绘图,drawText里的origin是以baseline为基准的,直接以目标矩形的bottom传进drawText,字符位置会偏下。这样写代码:@Overridepublic void onDraw (Canvas canvas) { Rect targetRect = new Rect(50,
2014-01-24 10:32:55 75571 11
原创 Ubuntu配置apache2.4的限速功能
过程都写成脚本了,原理都写在注释里,大家懂的。#!/bin/bash#cd到临时目录创建配置文件cd /tmp(cat <<EOF SetOutputFilter RATE_LIMIT SetEnv rate-limit 30EOF) > ratelimit.conf# 以上 SetEnv rate-limit 后面的数字就是限制的速度,单位是KB。Direct
2014-01-22 15:17:12 5605
原创 Ubuntu/Linux Mint下命令行一键安装Chrome浏览器的脚本
把下面的脚本保存为xxx.sh,然后 sudo sh xxx.shwget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >>
2014-01-16 15:04:36 12925 1
航空适航功能危险性评估示例-FHA-Example
2024-05-24
RTCA DO-325 MOPS for AFGCS航空自动驾驶仪标准
2024-03-20
大话适航思考题参考答案
2024-03-20
支持SPDY协议的wireshark for linux 64bit
2014-03-06
Objective-C头文件导出工具class-dump
2013-06-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人