首页 > 其他
demo04calc
package com.example.demo05simplecalc; import android.os.Bundle; import android.app.Activity; import android.speech.tts.TextToSpeech; import android.vi
分类:其他   时间:2016-03-03 00:05:44    收藏:0  评论:0  赞:0  阅读:332
浅谈上下文(context)
Context(上下文)在Java编程中是一个非常重要的概念,而且出现频率很高;但是又是一个比较难理解的东西,或许“上下文”这种翻译也不太恰当,我觉得如果找不到一个合适的中文意思,倒不如不翻译。 下面列举几个涉及Context的例子。 第一、ServletContext是Servlet中最大的一个接
分类:其他   时间:2016-03-03 00:05:33    收藏:0  评论:0  赞:0  阅读:283
在开发中为什么要写存储过程
一, 关于为什么使用存储过程的问答收集: 回答一: 笔者认为,存储过程说白了就是一堆 SQL 的合并。中间加了点逻辑控制。 但是存储过程处理比较复杂的业务时比较实用。 比如说,一个复杂的数据操作。如果你在前台处理的话。可能会涉及到多次数据库连接。但如果你用存储过程的话。就只有一次。从响应时间上来说有
分类:其他   时间:2016-03-03 00:04:53    收藏:0  评论:0  赞:0  阅读:262
文件操作
public function logIn($msg){ $fp = fopen($this->file,"a+"); flock($fp, LOCK_EX) ; //锁定文件 fwrite($fp,"执行日期:".date("Y-m-d H:i:s",time())."\n".$msg."\n\n
分类:其他   时间:2016-03-03 00:04:34    收藏:0  评论:0  赞:0  阅读:156
bzoj 1087: [SCOI2005]互不侵犯King
1 #include<cstdio> 2 #include<iostream> 3 #define M 600 4 int b1[M],b2[M][M],n,m,s,sum[M]; 5 long long f[10][M][M],ans; 6 using namespace std; 7 int m
分类:其他   时间:2016-03-03 00:04:14    收藏:0  评论:0  赞:0  阅读:395
虚拟机 vlan trunk 特性
1. 功能 1)允许不同vlan的network下的虚拟机之间通信。一般情况下,虚拟机只能在相同vlan的网络下通信。 2)允许虚拟机发送vlan报文。 2. 组网图 虚拟机出来的tap设备连接到tbr网桥上,此时tap设备不打tag值, vlan_mode = trunk ,trunk port
分类:其他   时间:2016-03-03 00:04:03    收藏:0  评论:0  赞:0  阅读:766
django model中get()和filter()方法的区别
django的get()方法是从数据库的取得一个匹配的结果,返回一个对象,如果记录不存在的话,它会报错。 django的filter()方法是从数据库的取得匹配的结果,返回一个对象列表,如果记录不存在的话,它会返回[]。
分类:其他   时间:2016-03-03 00:03:24    收藏:0  评论:0  赞:0  阅读:294
bzoj 1083: [SCOI2005]繁忙的都市
1 #include<cstdio> 2 #include<iostream> 3 #include<algorithm> 4 #define M 10005 5 using namespace std; 6 struct data 7 { 8 int u,v,w; 9 }a[M]; 10 int
分类:其他   时间:2016-03-03 00:03:13    收藏:0  评论:0  赞:0  阅读:266
第一周作业
1.我选的题目是第四题 Dijkstra曾经提到:“Software engineering, of course,presents itself as another worthy cause,but that is eyewash: if you carefully read its liter
分类:其他   时间:2016-03-03 00:02:23    收藏:0  评论:0  赞:0  阅读:226
从3dmax导出fbx格式模型的过程
---恢复内容开始--- 1、设置好单位:厘米(centimeters) 3dmax默认导出的fbx文件导入到unity3d中的默认缩放因子是0.01,而unity3d默认单位为米。意思就是说max里的厘米相当于unity里的米。 Customize-unites setup-metric:cent
分类:其他   时间:2016-03-03 00:01:13    收藏:0  评论:0  赞:0  阅读:540
类型转换函数
具体内容见《高质量程序设计指南》 P262 explicit 关键字 用于构造函数,要求用户必须显示调用该构造函数,避免隐式转换! 参考:http://developer.51cto.com/art/201002/183398.htm 类型转换符 static_cast<dest_type>(src
分类:其他   时间:2016-03-03 00:00:53    收藏:0  评论:0  赞:0  阅读:279
mvn deploy 报错:Return code is: 400, ReasonPhrase: Bad Request. ->
mvn deploy 报错:Return code is: 400, ReasonPhrase: Bad Request. -> TEST通过没有报错,但是最终部署到Nexus中时出现错误。后检查发现,pom中的上传releases 和 snapshots的配置颠倒了。要跟nexus上的配置一对一对...
分类:其他   时间:2016-03-03 00:00:43    收藏:0  评论:0  赞:0  阅读:1820
bzoj 1090: [SCOI2003]字符串折叠
1 #include<cstdio> 2 #include<iostream> 3 #include<cstring> 4 using namespace std; 5 int ma[105][105],f[105][105]; 6 char ch[106]; 7 bool pan(int l,in
分类:其他   时间:2016-03-02 23:59:53    收藏:0  评论:0  赞:0  阅读:453
拦截器的设计思想——代理模式
代理模式:静态代理和动态代理 1.代理类和被代理类必须实现同一个借口 2.代理类和别代理类有一种关联关系 静态代理: 例如实现一个日志: //定义一个接口 public interface UserDao{ public void delete(); } //定义一个实现类 public class
分类:其他   时间:2016-03-02 23:59:33    收藏:0  评论:0  赞:0  阅读:777
bzoj 1084: [SCOI2005]最大子矩阵
1 #include<cstdio> 2 #include<iostream> 3 #define M 102 4 using namespace std; 5 int f1[M][M],sum[M],sum1[M],n,m,K,f[M][M][12]; 6 int main() 7 { 8 sca
分类:其他   时间:2016-03-02 23:58:43    收藏:0  评论:0  赞:0  阅读:533
BrodCast的理解
*广播发送方调用 sendBrodcast(Intent intent),该方法是由ContextWrapper定义的*广播接受方调用BroadcastReceiver来实现,广播的动态注册,调用registerReceiver(BroadcastReceiver reciver, IntentFi
分类:其他   时间:2016-03-02 23:57:23    收藏:0  评论:0  赞:0  阅读:518
Easy to use cross-platform 3D engines
C++ http://gamedev.stackexchange.com/questions/21/easy-to-use-cross-platform-3d-engines-for-c-game-development My Opinion (only for open source 3D eng
分类:其他   时间:2016-03-02 23:56:23    收藏:0  评论:0  赞:0  阅读:615
ui-router(三)controller与template
这篇就是在以前的基础上,把客户端angular.js 负责的部分整体串起来演示一下. 我们按照angular执行顺序来做前提准备: (1)Client 根目录下 index.html 首先加载angular.js 和 ui-router.js 文件 <script src="http://cdn.b
分类:其他   时间:2016-03-02 23:56:13    收藏:0  评论:0  赞:0  阅读:403
监控利器---Zabbix(一)
开源监控软件对比 Cacti(英文含义仙人掌) 是一套基于PHP、MySQL、SNMP和RRDtool开发的网络流量监测图形分析工具,它通过snmpget来获取数据使用RRDtool绘图,简化RRDtool使用。提供了非常强大的数据和用户管理功能,可以指定每一个用户能查看树状结构、主机设备以及任何一...
分类:其他   时间:2016-03-02 23:56:03    收藏:0  评论:0  赞:0  阅读:658
利用路由器连接别人家的网络
在网上领得一款免费的路由器(斐讯活动),甚是欢喜,虽然还没有提到现。平时,不管到哪都是蹭别人的网,路由器有什么用?
分类:其他   时间:2016-03-02 23:55:03    收藏:0  评论:0  赞:0  阅读:295
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!