本文原文来自于 Medium:https://medium.com/@erikdkennedy/7-rules-for-creating-gorgeous-ui-part-1-559d4e805cda,作者为:Erik D. Kennedy https://twitter.com/erikdkenn...
分类:
其他好文 时间:
2015-01-27 12:51:37
阅读次数:
223
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.If the fractional part is repeating,...
分类:
其他好文 时间:
2015-01-27 10:55:21
阅读次数:
148
文件操作用到的函数: #include fopen(FILE* fp): 文件打开函数; 1、打开成功返回当前文件所处的地址值;2、打开失败返回一个空指针”NULL”; 常用方法:if((fp=fopen(“file_name”,”mode”))==NULL)printf(“can not open...
分类:
其他好文 时间:
2015-01-27 00:25:44
阅读次数:
170
软件参数设置,轻量级存储类文件放在/data/data//shared_prefs指定文件名不要带有后缀,默认以xml保存三种方式得到preference区别:1.public SharedPreference getPreferences(int mode) 通过Activity对象获取,获取的是...
分类:
其他好文 时间:
2015-01-27 00:11:32
阅读次数:
256
The Sultan's Successors
The Sultan of Nubia has no children, so she has decided that the country will be split into up to k separate parts on her death and each part will be inherited by...
分类:
其他好文 时间:
2015-01-26 17:04:34
阅读次数:
277
点击放大图片/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla ...
分类:
其他好文 时间:
2015-01-26 16:56:08
阅读次数:
209
用org-mode写cnblogs博客用org-mode写cnblogs博客Table of Contents1 使用org-mode写cnblogs博客1.1 测试写代码的效果1 使用org-mode写cnblogs博客感谢csophys 的博客和插件,只需要下载org2cnblogs ,配置非常...
分类:
其他好文 时间:
2015-01-26 16:38:33
阅读次数:
98
原文:DES加密和解密PHP,Java,ObjectC统一的方法PHP的加解密函数 pkcs5Pad ( $string, $size ); $data = mcrypt_encrypt(MCRYPT_DES, $this->key, $string, MCRYPT_MODE_CBC, $iv); ...
分类:
编程语言 时间:
2015-01-26 11:30:25
阅读次数:
247
早上发现数据库报如下错误:
Successful mount of redo thread 1, with mount id 339694234
Database mounted in Exclusive Mode
Lost write protection disabled
Completed: ALTER DATABASE MOUNT
Mon Jan 26 09:12:01 2015...
分类:
其他好文 时间:
2015-01-26 10:17:04
阅读次数:
190
题意: 如上图所示,将一个字符串进行分割,反转等操作后不同字符串的个数: 例如字符串abba:可以按三种比例分割;1:3;2:2;3:1 部分反转可以得到如下所有的字符串: 去掉重复可以得到六个不同的字符串,输出6;解题思路: 此题用反转函数reverse比较方便,然后就和模拟差不多,要列...
分类:
其他好文 时间:
2015-01-26 10:12:41
阅读次数:
239