现在位置: 首页 > arid发表的所有文章
  • 11月
  • 22日
综合 ⁄ 共 221字 评论关闭
SetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE,GetWindowLong(this->GetSafeHwnd(),GWL_EXSTYLE)^0x80000); bool b = SetLayeredWindowAttributes(0,255/2,LWA_ALPHA); SetWindowLong设置窗口属性,包含GWL_EXSTYLE SetLayeredWindowAttributes设置半透明效果
阅读全文
 http://research.stowers-institute.org/efg/R/Graphics/Basics/mar-oma/index.htm Purpose This technote explains how to use certain R graphics parameters that deal with margins, namely mar and oma. The usage of these parameters is explained for plotting a single figure, and for plotting multiple figures. Background R is such a graphics-rich analysis language, yet ironically the description of many of its graphics features are not explained visually. R's graphical parameters (see ?par) are ......
阅读全文
  • 05月
  • 03日
综合 ⁄ 共 70字 评论关闭
查看.dll dumpbin   /LINKERMEMBER   Test.lib   >   1.txt 查看.exe .lib dependency walker
阅读全文
  • 04月
  • 19日
综合 ⁄ 共 961字 评论关闭
android中主题也是用于为应用定义显示风格,它的定义和样式的定义相同,如下: <?xml version="1.0" encoding="utf-8"?> <resources> <style name=“itcastTheme"> <item name=“android:windowNoTitle”>true</item> <!–没标题à <item name=“android:windowFullscreen”>?android:windowNoTitle</item> <!–全屏显示à </style> </resources> 上面“?android:windowNoTitle”中的问号用于引用在当前主题中定义过的资源的值。下面代码显示在AndroidManifest.xml中如......
阅读全文
  • 04月
  • 06日
综合 ⁄ 共 7148字 评论关闭
Save precious bytes with a new twist on a standard data type. In the quest to make small devices cost effective, manufacturers often need to think about reducing the memory size. One option is to find alternative implementations of the abstract data types (ADTs) we are used to for our day-to-day implementations. One such ADT is a doubly linked list structure. In this article, I present a conventional implementation and an alternative implementation of the doubly linked list ADT, wi......
阅读全文
  • 04月
  • 06日
综合 ⁄ 共 61字 评论关闭
html图标不正常,有的正确,有的不正确。同是html文件,差别咋就这么大呢?谁能帮我解决? 如图:   如何解决?有人知道吗?
阅读全文
  • 01月
  • 11日
综合 ⁄ 共 2859字 评论关闭
直接暴力建图。。 //author: CHC //First Edit Time: 2014-08-16 21:47 //Last Edit Time: 2014-08-17 11:01 #include <iostream> #include <cstdio> #include <cstring> #include <cmath> #include <set> #include <vector> #include <map> #include <queue> #include <set> #include <algorithm> #include <limits.h> using namespace std; typedef long long LL; const int MAXN=1e+4; const int MAXM=1e+5; const int INF = INT_MAX; struct Edge { ......
阅读全文
  • 12月
  • 22日
综合 ⁄ 共 1870字 评论关闭
Unique Paths 我的思路: 1、一个机器人在矩阵的(0,0)点处,到达(i,j)处,只能往下或者右走,有多少种路径? 2、这里由于在每个点只能往下或者往右,只有两种可能,所以走过的点的数量是确定的,而且往每个方向的数目也是确定的,利用组合公式C(n,m) = n! / (m! * (n - m)!。 代码如下: int uniquePaths(int m, int n) { if (m <= 0 || n <= 0) return 0; int up = m + n - 2; int down_min = m < n ? (m - 1) : (n - 1); int down_max = m > n ? (m - 1) : (n - 1)......
阅读全文
  • 11月
  • 17日
综合 ⁄ 共 138字 评论关闭
在我们注册安装与卸载应用的广播,若没有写过,一定会遇到会问我该怎样获取包名呢,个人整理方便查看。 String[] data = intent.getData().toString().split(":"); String packageName = data[data.length - 1];
阅读全文
  • 09月
  • 30日
综合 ⁄ 共 515字 评论关闭
先找到相应的签名文件,文件位置:可以在......\android_project\build\target\product\security中找到media.pk8、media.x509.pem、platform.pk8、platform.x509.pem、shared.pk8、shared.x509.pem、testkey.pk8、testkey.x509.pem等签名文件,对应不同的权限。自带的签名工具signapk.jar:由......\android_project\out/host\linux-x86\framework/中找到。然后放到一个文件夹中,签名命令(一定要使用相应的权限,权限可在menufest和mk文件--LOCAL_CERTIFICATE 中相应找到):java -jar signapk.jar platform.x509.pem platform.p......
阅读全文
  • 11月
  • 30日
综合 ⁄ 共 795字 评论关闭
bool isset ( mixed $var [, mixed $... ] )   里面可写多个,例: f (isset($_COOKIE ['username'], $_COOKIE ['userid'],$_COOKIE ['userkey'],$_COOKIE ['puname'], $_COOKIE ['puid'], $_COOKIE ['purole'])) {}  在PHP中,我们可以使用3种方式将字符串转化为整数。 1.强制类型转换方式   强制类型转换方式,就是“在要转换的变量之前加上用括号括起来的目标类型”(摘自PHP手册“类型戏法”节)的方式。 允许的强制转换有: (int), (integer) - 转换成整型 (bool), (boolean) - 转换成布尔型 (float), (double), (rea......
阅读全文
  • 10月
  • 29日
综合 ⁄ 共 1021字 评论关闭
近期了解MVC4的时候弄了一个简单的小工程,使用Entity Framework作为Model,F5启动调试运行的时候没有问题,但是发布到IIS之后访问就报错 错误信息如下: The Entity Framework provider type 'System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer' registered in the application config file for the ADO.NET provider with invariant name 'System.Data.SqlClient' could not be loaded. Make sure that the assembly-qualified name is used and that the assembly is available to the running app......
阅读全文