一、这个App整体的架构划分:分为四大模块:1.app模块2.common模块3.domain模块4.model模块app模块的依赖:dependencies { compile fileTree(dir: 'libs', include: ['*.jar'])compile project(':d...
分类:
移动开发 时间:
2015-05-17 12:02:04
阅读次数:
158
NSString *urlStr = [NSString stringWithFormat:@"%@?uid=%@&uname=%@",KQuestionnaireUrl,model.idStr,model.real_name];
urlStr = [urlStr stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NS...
分类:
移动开发 时间:
2015-05-16 18:28:04
阅读次数:
259
1.生成Cookiepublic static void SetDataByCookie(string mainKey, string subKey, string value, string domain, int expireHours){ var cookie = Request.Coo...
分类:
Web程序 时间:
2015-05-16 11:43:51
阅读次数:
132
应用层:Application 领域层:Domain Model Layer 为什么要用Mapper,随着技术的变化应用层的DTO会发生变化。大的业务契约不能够保证代码上线一次就成功。需要更换契约,SOA1->SOA2。契约中的长名称变成了短名称。由UserInvoiceItem 变成了 Invoi...
分类:
移动开发 时间:
2015-05-15 13:18:15
阅读次数:
257
1、DNS基本原理DNS:DomainNameService,域名解析服务监听端口:udp/53,tcp/53应用程序:bind www.magedu.com.:FQDN FullQualifiedDomainName完全合格域名/全称域名 名称解析:主机名解析 把一种名称转换为另一种名称的过程 名称:字串、数字 解析库:某种存储 username&l..
分类:
其他好文 时间:
2015-05-15 01:23:25
阅读次数:
183
## 开发语言 golang ## 使用 unix domain socket 和 docker 守护进程交互,查询 镜像列表 package main import ( "fmt" "net" "io/ioutil" "encoding/json" ) type Image struct { Created uint64 Id string Par...
分类:
系统相关 时间:
2015-05-14 10:17:08
阅读次数:
159
1.linux下重启weblogic(关闭和启动):ssh远程连接Linux服务器!开启weblogic:1、找到/Oracle/Middleware/user_projects/domains/用户_domain目录,2、执行nohup ./startWebLogic.sh(nohup的作用是让w...
分类:
系统相关 时间:
2015-05-13 19:26:06
阅读次数:
170
socketpair函数概要例如以下:#include #include int socketpair(int domain, int type, int protocol, int sv[2]);sys/types.h文件须要用来定义一些C宏常量。sys/socket.h文件必须包括进来定义soc...
分类:
其他好文 时间:
2015-05-13 18:50:31
阅读次数:
140
ttpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName解决办法非常简单:#vim /web/apache/conf/httpd.conf (...
分类:
Web程序 时间:
2015-05-13 00:31:59
阅读次数:
143
#源码包安装MySQL数据库
[root@domain]#yum-yinstallgccgcc-c++autoconfautomakezlib*libxml*ncurses-devellibmcrypt*libtool-ltdl-devel*makecmakebisonperlcurl-devel#安装MySQL
[root@domaincmake-3.0.2]#groupadd-rmysql
[root@domaincmake-3.0.2]#useradd-r-gmysql-s/sbin..
分类:
数据库 时间:
2015-05-12 19:16:15
阅读次数:
250