• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






liguangsunls

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2017年5月29日

Sorting It All Out
摘要: Description An ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from small 阅读全文
posted @ 2017-05-29 21:44 liguangsunls 阅读(155) 评论(0) 推荐(0)
 
Python菜鸟晋级12----多线程
摘要: Python 多线程 多线程类似于同一时候执行多个不同程序,多线程执行有例如以下长处: 使用线程能够把占领长时间的程序中的任务放到后台去处理。用户界面能够更加吸引人。这样比方用户点击了一个button去触发某些事件的处理,能够弹出一个进度条来显示处理的进度程序的执行速度可能加快在一些等待的任务实现上 阅读全文
posted @ 2017-05-29 20:04 liguangsunls 阅读(268) 评论(0) 推荐(0)
 
OC 自己定义 setDateFormat 显示格式
摘要: -(NSString *)getStringFromDate:(NSDate *)aDate { NSDateFormatter *dateFormater=[[NSDateFormatter alloc]init]; [dateFormater setDateFormat:@"M/dd - HH: 阅读全文
posted @ 2017-05-29 18:43 liguangsunls 阅读(358) 评论(0) 推荐(0)
 
Http抓包工具--查尔斯
摘要: 查尔斯 查尔斯:http://www.charlesproxy.com/ 这是比較好用的抓包工具。有Mac、Windows、Linux版本号。能够相应用程序、浏览器、手机、手机模拟器进行抓包。 官方站点有具体的使用说明:http://www.charlesproxy.com/documentatio 阅读全文
posted @ 2017-05-29 17:08 liguangsunls 阅读(279) 评论(0) 推荐(0)
 
揭秘Product Hunt怎样运用邮件崛起
摘要: Product Hunt正被硅谷热议,而大家谈论Product Hunt时,经常涉及邮件营销。 Product Hunt由Ryan Hoover 在2013年11月创立。鼓舞人们发现和分享新产品的站点,在不到一年的时间里,就先后获得Y Combinator的邀请、获得了SV Angel、Google 阅读全文
posted @ 2017-05-29 15:54 liguangsunls 阅读(357) 评论(0) 推荐(0)
 
python写个简单的文件上传是有多难,要么那么复杂,要么各种,,,老子来写个简单的
摘要: def upload(url,params): ''' 上传文件到server,不适合大文件 @params url 你懂的 @params {"action":"xxx","@file","file_path"} 普通參数 key:value 文件key头部加@ ''' import os imp 阅读全文
posted @ 2017-05-29 15:07 liguangsunls 阅读(182) 评论(0) 推荐(0)
 
True or False? and WHY??? Java HashSet Contains
摘要: import java.util.HashSet; public class MyClass { public String s; public MyClass(String s) { this.s = s; } public int hashCode() { return s.hashCode() 阅读全文
posted @ 2017-05-29 13:31 liguangsunls 阅读(156) 评论(0) 推荐(0)
 
Sambaserver搭建
摘要: 1. 安装Samba及相关包 $ sudo apt-getinstall samba samba-common smbfspython-glade2system-config-samba 2. 创建共享文件夹 $ mkdir /home/kevin/share $ sudo chmod 777/ho 阅读全文
posted @ 2017-05-29 12:29 liguangsunls 阅读(341) 评论(0) 推荐(0)
 
Linux网络编程(附1)——封装read、write
摘要: 原打算实践简单的模型的时候,主要专注于基本的模型,先用UNIX I/O糊弄下,可是未封装的read和write用起来实在心累,还是直接用前辈们已经实现好的高级版本号read、write。 UNIX I/O read、write #include<unistd.h> ssize_t read(int 阅读全文
posted @ 2017-05-29 11:48 liguangsunls 阅读(734) 评论(0) 推荐(0)
 
Mosquito的优化——epoll优化(七)
摘要: 本文由逍遥子撰写,转发请标注原址: http://blog.csdn.net/houjixin/article/details/46413583 或 http://houjixin.blog.163.com/blog/static/3562841020155835146428/# 原版的mosqui 阅读全文
posted @ 2017-05-29 10:19 liguangsunls 阅读(1086) 评论(0) 推荐(0)
 
sql server2008对字符串日期字段分区
摘要: 近期对公司产品的日志数据库做了一个数据分区,数据库使用的是sql server 2008,这里给大家提供一个參考。须要特别说明的是,非常多网上的样例分区字段都使用的是时间类型的。而这里因为时间字段原来设计数据库使用的是字符串类型的。所以这里的分区字段使用的是字符串类型的。进过我的測试。也能成功。1: 阅读全文
posted @ 2017-05-29 09:04 liguangsunls 阅读(327) 评论(0) 推荐(0)
 
javaScript中的事件对象event
摘要: 事件对象event,每当一个事件被触发的时候,就会随之产恒一个事件对象event,该对象中主要包括了关于该事件的基本属性,事件类型type(click、dbclick等值)、目标元素target(我的理解是事件源对象,即触发该事件的dom元素)等,以及一些与该事件相关的方法。取消事件默认行为prev 阅读全文
posted @ 2017-05-29 08:13 liguangsunls 阅读(255) 评论(0) 推荐(0)