现在位置: 首页 > blemish发表的所有文章
  • 05月
  • 06日
综合 ⁄ 共 694字 评论关闭
eclipse编译出来的apk,安装时报出INSTALL_FAILED_SHARED_USER_INCOMPATIBLE的错误。 原因:apk的AndroidManifest.xml中声明了android:sharedUserId="android.uid.system",但没有相应的签名 解决方案: 1. 找到编译目标系统时的签名证书platform.pk8和platform.x509.pem,在android源码目录build\target\product\security下。 没有那两个证书的话,就别指望用system用户了,赶紧地把android:sharedUserId="android.uid.system"声明删掉,不过删掉之后有些动作可能就没权限执行了。   2. 将签名工具(signapk.jar)、签名证......
阅读全文
  • 10月
  • 18日
综合 ⁄ 共 1249字 评论关闭
      下面的代码由Gary Nebbett写就.Gary Nebbett乃是WINDOWS NT/2000 NATIVE API REFERENCE的作者.乃NT系统一等一的高手.下面就分析一些他的这段代码. 这段代码在PROCESS没有结束前就将启动PROCESS的EXE文件删除了. int main(int argc, char *argv[]) { HMODULE module = GetModuleHandle(0); CHAR buf[MAX_PATH]; GetModuleFileName(module, buf, sizeof buf); CloseHandle(HANDLE(4)); __asm { lea eax, buf push 0 push 0 push eax push ExitProcess push module push DeleteFile push UnmapViewOfFile ret } return 0; } 现......
阅读全文
  • 06月
  • 07日
综合 ⁄ 共 488字 评论关闭
Proteus Pro 7.8 sp2 汉化破解版,该Proteus 汉化破解版解决了7.2版本运行10分钟就自动关闭的问题,是目前最Protus中最高的版本。 先安装P7.8sp2.exe,再运行"Proteus Pro 7.8 SP2破解1.0.exe"破解,再汉化。这个汉化补丁用7.5的汉化修改而来,覆盖前注意备份原文件,如果汉化报错,就将“汉化报错.exe” 复制到安装文件夹再运行。 Proteus 不仅具有其它EDA工具软件的仿真功能,还能仿真单片机及外围器件,它是目前最好的仿真单片机及外围器件的工具。从原理图布图、代码调试到单片机与外围电路协同仿真,一键切换到PC......
阅读全文
  • 05月
  • 13日
综合 ⁄ 共 1701字 评论关闭
Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors. OJ's undirected graph serialization: Nodes are labeled uniquely. We use # as a separator for each node, and , as a separator for node label and each neighbor of the node. As an example, consider the serialized graph {0,1,2#1,2#2,2}. The graph has a total of three nodes, and therefore contains three parts as separated by #. First node is labeled as 0. Connect node 0 to both nodes 1 and 2.......
阅读全文
  • 05月
  • 06日
综合 ⁄ 共 1785字 评论关闭
一.概述 在iOS中使用CATransform3D这个结构体来表示三维的齐次坐标变换矩阵. 齐次坐标是一种坐标的表示方法,n维空间的坐标需要用n+1个元素的坐标元组来表示,在Quartz 2D Transform中就有关于齐次坐标的应用,那边是关于二维空间的变换,其某点的齐次坐标的最后一个元素始终设置为1。使用齐次坐标而不是简单的数学坐标是为了方便图形进行仿射变换,仿射变换可以通过仿射变换矩阵来实现,3D的仿射变换可以实现诸如 平移(translation),旋转(rotation),缩放(scaling),切变(shear)等变换。如果不用齐次坐标那么进行坐标变换可能就涉......
阅读全文
  • 03月
  • 29日
综合 ⁄ 共 1558字 评论关闭
from http://www.th7.cn/Program/Python/201408/263786.shtml 软件版本:Ubuntun 14.04, Python 3.4, NumPy 1.8.1, SciPy 0.14.0, Scikit-Learn 0.16 Numpy, SciPy 的官网安装文档,安装的是基于Python 2.7的,SciPy-Learn 官网的安装文档,也是Python 2.7的,如果想基于高大上的Python 3,该怎么安装呢?经过一堆的坑之后,我摸索出了方法。 1. 安装Python 3 首先我们要安装Python 3, 不过,千万别因为有了Python 3, 就卸载系统自带的Python 2.7,很多软件依赖它,所以不能卸载   $ sudo apt-get install python3 设置Py......
阅读全文
  • 02月
  • 18日
综合 ⁄ 共 5945字 评论关闭
接上一篇  定义登陆类型 登陆类型允许你定义一个activity如何与当前的任务联系在一起。你可以用两种方式来定义不同的登陆类型: 使用manifest文件 当你在你的manifest文件中声明一个activity,你能指定一个activity在被启动时应该怎样与任务关联在一起。 使用intent 标志 当你调用StartActivity()时,你能在Intent中包含一个flag来声明新activity应该怎样(或者是否应该)与当前的任务联系在一起。 像这样,如果Activity A启动了Activity B,Activity B能在它的manifest文件中定义它应该与当前的任务联系在一起(如果它真发生......
阅读全文
  • 02月
  • 07日
综合 ⁄ 共 527字 评论关闭
    --启用xp_cmdshell EXEC sp_configure 'show advanced options', 1;RECONFIGURE;EXEC sp_configure 'xp_cmdshell', 1;RECONFIGURE;   --执行xp_cmdshell,映射一下exec master..xp_cmdshell 'net use z: //192.16.18.2/e$/backup "ade123456" /user:192.16.18.2/administrator'      z:是映射网络路径对应本机的盘符,与下面的备份对应  ,  //192.16.18.2/e$/backup是要映射的网络路径         192.16.18.2/administrator  192.16.18.2   是远程的计算机IP,     administrator 是登陆的用户名     ade123456    是administrator......
阅读全文
  • 01月
  • 12日
综合 ⁄ 共 1345字 评论关闭
Problem BCode RefactoringTime Limit: 2 seconds "Harry, my dream is a code waiting to be broken. Break the code, solve the crime." Agent Cooper Several algorithms in modern cryptography are based on the fact that factoring large numbers is difficult. Alicia and Bobby know this, so they have decided to design their own encryption scheme based on factoring. Their algorithm depends on a secret code, K, that Alicia sends to Bobby before sending him an encrypted message. After listenin......
阅读全文
  • 01月
  • 12日
综合 ⁄ 共 2511字 评论关闭
  Dungeon Master  You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. It takes one minute to move one unit north, south, east, west, up or down. You cannot move diagonally and the maze is surrounded by solid rock on all sides. Is an escape possible? If yes, how long will it take? Input Specification  The input file consists of a number of dungeons. Each dungeon description star......
阅读全文
  • 12月
  • 26日
综合 ⁄ 共 1470字 评论关闭
导读:昨儿下午和晓亮、力垒探索了下PHP SESSION,虽然知晓了SESSION在单进程SAPI生命周期中的大概步骤,但是,总感觉欠欠的,不踏实。为了验证我们的猜想,是否正确,我看了源码。一、我们的猜想 1 代码 <?php /** * Under Windows */ // 开启SESSION session_start(); // 获取部分SESSION信息 echo "Session Save Path: ".session_save_path()."\n"; echo "Session Id: ".session_id()."\n"; echo "Session Cookie Params:\n"; var_dump(session_get_cookie_params()); // 种变量 $_SESSION['string'] = 'string'; $_SESS......
阅读全文
一.文献名字和作者    Deepface: Closing the gap to human-level performance in face verification, Yaniv Taigman, Ming Yang, Marc’Aurelio Ranzato,Lior Wolf, CVPR2014     二.阅读时间     2014年9月4日 三.文献的目的      解决在人脸识别领域,目前的算法与人眼的识别效果之间的差距,作者提出了使用3D建模技术的人脸校准和使用改进型的CNN作为特征提取的方法,使得该方法在LFW数据集上面得到与人眼不相上下的效果。 四.文献的贡献点     1.使用改进型的深度神经网络和学习方法,使得该网络能够从大规模数据集......
阅读全文