test for tag
test for tag
tag 1
#tag1
查看日志

Kaledo Art
occasionally subtle
No title available
will byers stan first human second

blake kathryn

JVL
Three Goblin Art
art blog(derogatory)
"I'm Dorothy Gale from Kansas"

祝日 / Permanent Vacation

ellievsbear
Claire Keane
No title available
Misplaced Lens Cap

pixel skylines

#extradirty
TVSTRANGERTHINGS
Not today Justin
Cosimo Galluzzi

oozey mess
seen from Netherlands
seen from United States

seen from United States

seen from United Kingdom

seen from Netherlands
seen from Malaysia

seen from United States
seen from United States

seen from Türkiye
seen from Canada

seen from Singapore

seen from United States
seen from United States
seen from Malaysia

seen from United States
seen from United States

seen from United States

seen from Brazil
seen from United States
seen from Malaysia
@wing2l-blog
test for tag
test for tag
tag 1
#tag1
查看日志
Test Live Writer
View Post
Abc
Web开发和App开发的几点不同
1.Web开发有10年以上的技术积淀,App开发从2009年火了起来以后到现在不超过5年的积淀。
2.Web开发弱耦合+积淀比较深,调用类的时候,考虑比较全面,出现bug的可能性会低很多;App开发强耦合+积淀较浅,共用类如果设计不好,后期频繁修改,相关功能出现bug的概率大大提高。
3.Web开发测试较容易,App开发测试因为强耦合性,对于开发人员测试不熟悉的功能上可能要学习非自己开发的功能,尤其开发人员用在测试上的时间越多,对于开发成本上的损失越大,独立测试人员才是正道。
4.Web开发功能点修改产生bug的几率要明显低于App开发,体现在一个功能点的调用上,App要比Web多出几倍以上。如果这个功能点修改,很可能关联的几个功能都跑不通,对相关功能修改后产生bug的概率又要高很多,所以对于测试会产生很大的压力。
5.Web开发需求可以快速调整,App开发需求如果快速调整,会对强耦合的功能造成致命的打击,有些地方甚至要完全重写。
[FROM]
个人观点:
总体来说在设计APP的架构的时候,总是会使用WEB的设计模式再开发,所以会导致后续问题的产生,但是由于APP的功能专有性比较强,所以自然他的耦合度会比较高,那么设计思路自然要改变,所以强迫自己要用APP的设计思路去设计APP的架构。
Android - Dialog Fullscreen / Dialog 全屏显示
在自定义Dialog的时候,一般情况下是这样的
但是我们有时候需要这样
于是给出代码
在style文件中写下
<style name="mask_dialog" parent="@android:style/Theme.Dialog"> <item name="android:windowIsFloating">false</item> <item name="android:windowNoTitle">true</item> <item name="android:windowBackground">@null</item> <item name="android:windowFrame">@null</item> </style>
在Dialog构造函数中写下
setOwnerActivity((Activity)context);
Python - file is encrypted or is not a database
Sometimes when we use python to open an sqlite3 database file, but it return such error.
If you make sure your database file is not encrypted, then you should update your database file.
use this command :
#for sqlite2 sqlite2 path/to/olddb2 .dump > backupfile #for sqlite3 sqlite3 path/to/olddb3 .dump > backupfile sqlite3 path/to/newdb < backupfile
Done!
linux 下用shell来阅读txt
今天无聊,就写了一个在linux下看书的脚本
j向下,k向上,q退出
https://github.com/wingtolife/shreader
设计模式六大原则 - 学习
今天在聊天的时候,聊到了Android的MVC问题,发表了自己的见解,M=数据,V=XML,C=Activity。
后来在网上查询的时候,看到了设计模式原则。自己正在看《设计模式》一书,此书对设计模式六大原则几乎每天提及?于是自己又搜索了一下, 发现了更好的博主写了如下几篇文章,感觉非常不错,故在此分享。
设计模式六大原则(1):单一职责原则
设计模式六大原则(2):里氏替换原则
设计模式六大原则(3):依赖倒置原则
设计模式六大原则(4):接口隔离原则
设计模式六大原则(5):迪米特法则
设计模式六大原则(6):开闭原则
Installing Go on the Raspberry Pi
Installing the prerequisites
Raspbian comes with almost all the tools you need to compile Go already installed, but to be sure you should install the following packages, described on the golang.org website.
% sudo apt-get install -y mercurial gcc libc6-dev
Cloning the source
% hg clone -u default https://code.google.com/p/go $HOME/go warning: code.google.com certificate with fingerprint 9f:af:b9:ce:b5:10:97:c0:5d:16:90:11:63:78:fa:2f:37:f4:96:79 not verified (check hostfingerprints or web.cacerts config setting) destination directory: go requesting all changes adding changesets adding manifests adding file changes added 14430 changesets with 52478 changes to 7406 files (+5 heads) updating to branch default 3520 files updated, 0 files merged, 0 files removed, 0 files unresolved
Building Go
% cd $HOME/go/src % ./all.bash
If all goes well, after about 90 minutes you should see
ALL TESTS PASSED --- Installed Go for linux/arm in /home/dfc/go Installed commands in /home/dfc/go/bin
If there was an error relating to out of memory, or you couldn’t configure an appropriate swap device, you can skip the test suite by executing
% cd $HOME/go % ./make.bash
as an alternative to ./all.bash.
Adding the go command to your path
The go command should be added to your $PATH
% export PATH=$PATH:$HOME/go/bin % go version go version devel +cfbcf8176d26 Tue Sep 25 17:06:39 2012 +1000
Now, Go and make something awesome.
Linux 安装 MySQLdb
确保安装好了mysql
去http://sourceforge.net/projects/mysql-python/下载最新的包
sudo apt-get install libmysqlclient-dev
sudo apt-get install python-dev
python setup.py build
python setup.py install