现在位置: 首页 > tampreellatum发表的所有文章
  • 08月
  • 23日
综合 ⁄ 共 207字 评论关闭
今天打开Xcode,选择模拟器时发现只剩下了“iPhone 5”和“iPhone 5s”,原来什么“iPad Air”,“iPhone 4s”的都哪里去了?丢了? 别着急,依次打开“Xcode->Window->Devices”,会发现原来”“iPhone 5”和“iPhone 5s”躺在这里,点击位于左下角的“+”按钮,新增常使用的设备即可,不常使用的设备也可以在选中后,点击“-”移除。 这样就吧丢失的模拟器可以创建导入了!
阅读全文
  • 08月
  • 04日
综合 ⁄ 共 2642字 评论关闭
http://zoomquiet.org/res/scrapbook/ZqFLOSS/data/20091125211702/   现在行业内流行使用 Cacti网络资源和相关服务性能进行监控。Cacti除了自身的模板套用外,还支持一些SNMP扩展的性能图实现。具体工作原理如下: 其实在zenoss环境中,也很容易实现Cacti的这一功能,我们尝试的监测数据库的用户连接情况。具体操作如下:     SNMP扩展功能 首先,我们先来分析一下这个需求,一般Linux环境查看Mysql端口情况的命令为: netstat -an |grep 3306 在显示信息中,我们发现ESTABLISHED代表已经确认的连接。我们就以这些数据......
阅读全文
  • 06月
  • 10日
综合 ⁄ 共 1644字 评论关闭
这学期的课不多,三周的时间主要是在寝室内学习Java Web,学着做完了一个简单的网上商城项目,基本了解了Web开发的一套流程,其中主要还是巩固自己的知识点和提高动手能力,Java Web需要学的东西很多,而且涉及面很广,我想学习的关键在于这些知识点的综合应用,通过一个小项目来巩固学习是很好的。 记得上个学期第二遍巩固复习完J2SE后,当看到Java Web那么多的内容时,虽然有些浮躁,但更多的是一种欣慰之感,感觉自己在以后有事情、有任务要完成,去努力了。 我一般是先看视频来入门,然后动手编写程序,身边放着一本参考书,有......
阅读全文
  • 09月
  • 14日
综合 ⁄ 共 1523字 评论关闭
在launcher.java中在createShortcut方法中   屏蔽所有应用按钮 改动之前 View createShortcut(int layoutResId, ViewGroup parent, ShortcutInfo info) {BubbleTextView favorite = (BubbleTextView) mInflater.inflate(layoutResId, parent, false);favorite.applyFromShortcutInfo(info, mIconCache);favorite.setOnClickListener(this);if (info.itemType == LauncherSettings.Favorites.ITEM_TYPE_ALLAPPS&& info.getIcon(mIconCache) == null) {// All apps icon// Drawable d =// getResources().getDrawable(R.draw......
阅读全文
  • 05月
  • 06日
综合 ⁄ 共 9792字 评论关闭
php版照片按拍照日期归类整理源码  以年-月为目录进行归类 跳过重复文件 视频文件、非图片文件单独归类 读不到日期的照片单独归类 <?php /* 2014/4/1 17:27 klggg 照片按拍照日期整理 依赖 php_exif 扩展 win下打开扩展 extension=php_exif.dll ; 注,这段必须放在 extension=php_mbstring.dll 下面 */ date_default_timezone_set('PRC'); //require dirname(__FILE__).'/vendor/autoload.php'; $curr_dir_path = dirname(__FILE__); //要处理的照片来源路径 * 需要针对自己的情况做下修改 $photo_source_......
阅读全文
  • 04月
  • 28日
综合 ⁄ 共 2026字 评论关闭
Description Problem B List of Conquests Input: standard input Output: standard output Time Limit: 2 seconds In Act I, Leporello is telling Donna Elvira about his master's long list of conquests: ``This is the list of the beauties my master has loved, a list I've made out myself: take a look, read it with me. In Italy six hundred and forty, in Germany two hundred and thirty-one, a hundred in France, ninety-one in Turkey; but in Spain already a thousand and three! Among them are country ......
阅读全文
  • 02月
  • 21日
综合 ⁄ 共 5786字 评论关闭
  What part of the table is this? The part of the table is edge.   Can we balance a dinner-plate on its edge? Perhaps, we can balance a dinner-plate on its edge, but it would be rather difficult and would depend on the type of the plate. Can we cut bread with a thick edge of a knife? Yes, we can cut bread with a thick edge of a knife.   What does the verb to edge mean? The verb to edge means to move slowly, little by little, usually in sideways direction, but also in any directions.   W......
阅读全文
  • 01月
  • 12日
综合 ⁄ 共 2116字 评论关闭
N次剩余 题目:http://acm.sgu.ru/problem.php?contest=0&problem=261 题意:给定n,a,p 求出x^n ≡ a(mod p)在模p意义下的所有解,其中p是素数 说明: 代码: /* ID: wuqi9395@126.com PROG: LANG: C++ */ #include<map> #include<set> #include<queue> #include<stack> #include<cmath> #include<cstdio> #include<vector> #include<string> #include<fstream> #include<cstring> #include<ctype.h> #include<iostream> #include<algorithm>......
阅读全文
  • 01月
  • 09日
搜索技术 ⁄ 共 613字 评论关闭
利用Lucene.net搜索引擎进行多条件搜索的做法 1 联合两个索引查询,已解决: IndexSearcher[] searchers = new IndexSearcher[2];      searchers[0] = new IndexSearcher(m_indexpath); searchers[1] = new IndexSearcher(m_outindexpath); MultiSearcher multiSearcher = new MultiSearcher(searchers); 2,还有个进行多条件搜索 and 与 or 的操作———— 用 MultiFieldQueryParser 建议重新封装 MultiFieldQueryParser.Parser(p[],d[],f[],analyer)   成or 与 and操作合一 或者 BooleanQuery m_BooleanQuery = new Bo......
阅读全文
  • 12月
  • 19日
综合 ⁄ 共 297字 评论关闭
Select TableA.*,TableB.* From OPENDATASOURCE(          'SQLOLEDB',          'Data Source=ServerA;User ID=UserID;Password=Password'          ).databaseAName.dbo.TableA Left Join  OPENDATASOURCE(          'SQLOLEDB',          'Data Source=ServerB;User ID=UserID;Password=Password'          ).databaseBName.dbo.TableB On TableA.key=TableB.key
阅读全文
  • 11月
  • 29日
综合 ⁄ 共 7575字 评论关闭
文章目录 2.1 FC拓扑结构 2.2 光纤通道的寻址方式  1.SAN说明      SAN(Storage Area Network,存储局域网络)的诞生,使存储空间得到更加充分的利用以及安装和管理更加有效。SAN是一种将存储设备、连接设备和接口集成在一个高速网络中的技术。SAN本身就是一个存储网络,承担了数据存储任务,SAN网络与LAN业务网络相隔离,存储数据流不会占用业务网络带宽。     在SAN网络中,所有的数据传输在高速、高带宽的网络中进行,SAN存储实现的是直接对物理硬件的块级存储访问......
阅读全文
  • 11月
  • 18日
综合 ⁄ 共 2686字 评论关闭
服务端代码: 第一定义一个service工程,用于启动一个服务。在该工程源码下定义一个aidl文件。 package com.example.service; interface DataService{ double getData(String arg);   } 必须要有包名。   public class MainActivity extends Activity { private Button btn=null; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); btn=(Button)this.findViewById(R.id.button1); btn.setOnClickListener(new OnClickListener() { @......
阅读全文