上一页 1 ··· 92 93 94 95 96 97 98 99 100 ··· 164 下一页

2017年6月22日

增加收藏兼容主流浏览器代码

摘要: //增加收藏 function AddFavorite(){ if (document.all) { addToBookMark(window.location.href, document.title); } else if (window.sidebar) { addToBookMark(doc 阅读全文

posted @ 2017-06-22 16:09 wgwyanfs 阅读(107) 评论(0) 推荐(0)

【leetcode】Multiply Strings

摘要: 题目:给定两个表示大数的字符串。求乘积,这里仅仅针对正数。 分析:開始的时候打算一位一位的算。按着笔算的形式。可是写着写着发现太麻烦,后来在网上找到计算乘法的令一种技巧,感觉简洁多了。 先看代码,再分析。 string multiply(string num1, string num2) { if( 阅读全文

posted @ 2017-06-22 16:08 wgwyanfs 阅读(84) 评论(0) 推荐(0)

JAVA实现二进制和16进制之间的互相转换,8进制同理,附带异或操作实现

摘要: public static String bin2Hex(String binStr) { int deci = Integer.valueOf(binStr,2); return Integer.toHexString(deci); } public static String hex2Bin(S 阅读全文

posted @ 2017-06-22 16:07 wgwyanfs 阅读(331) 评论(0) 推荐(0)

编译linux内核时出现"mkimage" command not found - U-Boot images will not be built错误的解决的方法

摘要: 在ubuntu12.04编译内核 uImage 时出现例如以下错误。 Kernel: arch/arm/boot/zImage is ready UIMAGE arch/arm/boot/uImage "mkimage" command not found - U-Boot images will 阅读全文

posted @ 2017-06-22 16:06 wgwyanfs 阅读(130) 评论(0) 推荐(0)

cocos2dx项目中新增场景类

摘要: 从0開始创建一个cocos2dx项目然后执行是能够的,可是假设我们要自己来创建属于自己的场景类呢? 理论永远仅仅是停留在理论,实践过后才知道问题并非那么简单: 初步尝试: 1.在项目project中的classes目录中右击-加入-新建项--,然后開始写类代码; 2.在逻辑类中引用的时候就出问题了, 阅读全文

posted @ 2017-06-22 16:05 wgwyanfs 阅读(171) 评论(0) 推荐(0)

java实现一个月的最后一个星期天

摘要: Calendar instance = Calendar.getInstance(); System.out.println(instance.getTime()); instance.add(Calendar.MONTH, 1);//月份+1 instance.set(Calendar.DAY_O 阅读全文

posted @ 2017-06-22 16:05 wgwyanfs 阅读(408) 评论(0) 推荐(0)

HDU 2446 Shell Pyramid(二分查找 数学)

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2446 Problem Description In the 17th century, with thunderous noise, dense smoke and blazing fire, batt 阅读全文

posted @ 2017-06-22 16:04 wgwyanfs 阅读(261) 评论(0) 推荐(0)

从DFSOutputStream的pipeline写机制到Streamer线程泄漏问题

摘要: 前言之前一段时间写了篇文章DataNode数据处理中心DataXceiver从大的方向了解了下datanode读写操作的过程.可是并没有详细细粒度的去关注读写操作中的细节以及可能存在的问题,本篇文章算是对这方面的一个补充吧.虽然本文所涉及的范围面看起来非常窄,可是所呈现出来的结果一定会让你有所收获的 阅读全文

posted @ 2017-06-22 16:02 wgwyanfs 阅读(1234) 评论(0) 推荐(0)

【知识分享】百度搜索技巧

摘要: 随着互联网的普及,我们越来越喜欢网络了,尤其是百度这个万能的的搜索引擎,简直是爱不释手啊。每天差点儿都要用到它来方便我们的生活。只是。它在使用的过程中是有一些小技巧的。老师们也经常提到,所以我就在网上搜了一下。做了下面总结,希望对大家有帮助。 1.关键词组合 方法说明:养成关键词搜索的习惯,关键词与 阅读全文

posted @ 2017-06-22 16:02 wgwyanfs 阅读(685) 评论(0) 推荐(0)

实现短信验证码

摘要: 朋友让帮忙做一个短信验证码工具。对此有了初体验。 1. 编码转换:字符集必须是GB2312格式,字符必须用UrlEncode进行编码。 $sms = "短信验证码:2312【大象投资】"; // utf8 echo urlencode(mb_convert_encoding($sms,'gb2312 阅读全文

posted @ 2017-06-22 15:39 wgwyanfs 阅读(158) 评论(0) 推荐(0)

上一页 1 ··· 92 93 94 95 96 97 98 99 100 ··· 164 下一页

导航