- A Knight's Jounery 骑士旅行 北大poj2488 深度优先搜索相关 计算机考研机试指南整理
weixin_42114926
算法刷题算法
题目链接:AKnight’sJounery题目大意:骑士按照“日”字规则行走,找一条能够让骑士遍历棋盘上所有点的路径,骑士可以在任何一块方块上开始和结束。要求在所有可行的路径中输出字母表排序最小的那个解。样例输入:第一行为样例个数,其余每一行为棋盘大小。3112343样例输出:Scenario#1:A1Scenario#2:impossibleScenario#3:A1B3C1A2B4C2A3B1
- 日记 9.14.2021
谈笑峰声
9月14日阴天根据一亩三分地网站的数据,到目前为止,今天全美国新增新冠病毒病例59000多例,新增死亡病例870例。乔治亚州新增7300多例。我所在的威斯康星州新增2488例,新增死亡病例12例。我们郡新增病例32例。新增死亡病例2例。自从新冠疫情爆发以来,我就极少看电影或者电视剧了,似乎总是找不到适当的心情观看。不过最近几天我看完了鬼吹灯系列的《龙岭迷窟》,感觉是一部良心剧。不过我感觉此剧还是有
- Effective Java学习笔记--2017年5月
Wsky51
LearningInWHUjavaEffectiveJava
EffectiveJava整理笔记时间:2017/4/28~2017/5/6文档结构:EffectiveJava目录结构(没有第一章引言部分)所有的源代码Github储存仓库:https://github.com/Wsky51/EffectiveJava本文档URL图和思维导图开源链接:https://www.processon.com/view/link/590f2488e4b0230b25bc
- 微信公众号迁移流程参考
杰姆小生
微信微信小程序微信小程序
1、迁移准备(完整迁移流程可以查看微信官方文档腾讯客服-公众平台专区微信公众平台客服专区,为您解决注册、认证、推广、帐号找回等问题,您可在此查询帮助指引或直接联系客服。https://kf.qq.com/product/weixinmp.html#hid=2488)账号新微信开发者平台账号(统一的Unionid)open.weixin.qq.com新微信公众号账号(单独的Openid)mp.wei
- 第2488天:企业宣传软文或公众号批量长期写作的中肯建议
老板小助手
不管客户现在做不做,不管客户是不是找我做,不管客户自己做还是找人做,先把企业长期文案宣传的深入分析,假设我是老板的中肯建议分享一下,希望对大家有帮助。先说一下这个年度软文,或者说企业长期的软文宣传,对于企业长期写软文或者公众号文章或者网站的新闻文章的这个好处,用途(作用)以及我们做事逻辑:第一个作用,起到宣传的作用。这个宣传推广可能是很多企业或老板的想法。要做好工作,其实还有后续的几个方面的考虑,
- 力扣(LeetCode)2488. 统计中位数为 K 的子数组(C++)
清墨韵染
墨染leetcodeleetcodec++算法哈希表
哈希表找不到O(n)O(n)O(n)思路?试一下等价代换。数组所有数字大小不同,说明数组中最多有一个k。数组的k要包含在子数组里,为了便于思考,分析奇数长度的子数组:在子数组里,大于k的数,和小于k的数,二者数量相等时,k就是中位数。数量关系写作:左侧大于+右侧大于=左侧小于+右侧小于。①由等式关系,我们想到了前缀和做法。但要开444个数组,还可以简化。简化思路:我们在枚举k的左侧元素时,可以维护
- Acwing 数据结构 进阶课题单
吃饺子不蘸醋选手
数据结构学习数据结构
SplayAcwing.2437Splay打卡Acwing950.郁闷的出纳员打卡Acwing1063.永无乡打卡Acwing955.维护数列打卡树套树AcWing2488.树套树-简单版打卡Acwing2476.树套树打卡分块Acwing243.一个简单的整数问题2打卡莫队算法莫队之基础莫队Acwing2492.HH的项链打卡莫队之带修改的莫队Acwing2521.数颜色打卡莫队之回滚莫队Acw
- 反思
yhx慧心慧语
中原焦点团队杨慧霞国家二级心理咨询师洛阳焦点讲师班二期坚持分享2488天看清一个人不容易,相处十几年来,差不多彼此之间会有几分相似度。就因为一件事情触动了他的利益,也让我们看清楚了他的为人表现,所以当我即便再遇到他的时候,我的脑海中突然想起甄嬛传中的安陵容,这不就是一个很好的翻版吗?之前也许自己太轻易相处他,什么心里话儿都说,结果局面很被动。认清了一个人后,再也不用浑噩不知了!
- 整理:poj 基本搜索
哆啦A梦~~
算法
参考:http://exp-blog.com/https://blog.csdn.net/consciousman/article/details/54613292POJ2488–AKnight’sJourney【骑士游历】大致题意给出一个国际棋盘的大小,判断马能否不重复的走过所有格,并记录下其中按字典序排列的第一种路径。经典的“骑士游历”问题,DFS水题一道解题思路难度不大,但要注意的地方有3点
- poj 几道简单的搜索题 (一)
denglao1906
数据结构与算法
题目:poj2488AKnight'sJourney题意:给一个m*n的棋盘,马走日,给出一条字典序最小的马的路线来走完整个棋盘?分析:如果能走完棋盘,那么从(1,1)点dfs即可,因为他能走完整个棋盘嘛,总有一步会经过(1,1),所以从(1,1)出发就能到其他所有点。为了保证字典序,在枚举方向时顺序要保证x轴优先,然后y轴。#include#include#include#include#inc
- 2019年8月27日
时翠梅
姓名:时翠梅公司:扬州市方圆建筑工程公司上海361期《六项精进》谦虚三组【日精进打卡第542】【知~学习】《六项精进》诵读5遍,共2488遍《大学》诵读5遍共2488遍••••••【经典名句分享】要纠正别人之前,先反省自己有没有犯错一个不注意小事情的人,永远不会成就大事业【行~实践】一、修身:诵读《六项精进》大纲与《大学》开篇二、齐家:三、建功1、公司体系认证年检资料归档2、证件印章流程一一对应o
- Valve官方:Knuckles完全支持Vive无线适配器
it天水信息资讯
HTC昨天宣布HTCVive无线升级套件即将开始预订,售价2488元(VivePro套件售价为3076元人民币)。这款适配器将能帮助VR用户从繁乱的数据线中解放出来,同时能保持HTCVive和VivePro所需的性能要求。这条消息在Reddit社区引起了一阵讨论。有网友就担心由于Vive魔杖型控制器是将信号传输到Vive头显,而Vive头显又通过USB将输入传回主机PC,所以他不确定Knuckle
- 写书十万字 挣了一块五
未晥橙
这是我写书的第二个月,从6万字的瓶颈到十万字,鬼知道我中间经历了什么。我今天写了2488个字,用时2个小时三十五分钟。我差点没断气而亡,当你写了太多字后,如果不去补充新的知识,你会突然卡壳,字数也会下降。最高记录,我在50分钟里写了941个字。第二48分钟810第三34分钟436第四20分钟301我真的应该合理的安排时间了,否则,我一天都时间都会在码字的过程中度过。我码了氏万字,赚了一块五。文字可
- no92:加入遇见训练营
心境如花
经过三天预热,今天,2019.8.16正式加入遇见训练营,2488B,我是33号,加入遇见,为了遇见更好的自己,40天,联系3天,休息一天,10轮健身训练,希望遇见更好的自己,希望自己体能增强,腰瘦点,今天的三围87-69-84,腹围81,希望腹围能减点点,我的目标是腰围减3厘米,腹围减3厘米,希望减掉小肚子的肉肉。几个朋友加入遇见几期,都有了很大变化,腰腹越来越漂亮,我也要练出腹肌,让浑身的肉肉
- 最全面学习夹子智能机器人初级第二篇《PanCakeSwap V2》
米罗75
夹子linux服务器bsc运维云计算
路由器02由于路由器是无状态的并且不持有代币余额,因此可以在必要时安全且无需信任地更换它们。如果发现了更有效的智能合约模式,或者需要额外的功能,则可能会发生这种情况。出于这个原因,路由器的版本号从开始01。这是当前推荐的版本代码UniswapV2Router02.sol地址UniswapV2Router02部署在0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D以
- 走着走着,花就开了
白雪飘零
有些路,走下去,会很苦很累,但是不走,会后悔。没有哪件事,不动手就可以实现。只有坚持这阵子,才不会辛苦一辈子。不论做什么事,都要相信你自己,别让别人的一句话将你击倒。人生没有对错,只有选择后的坚持,不后悔,走下去,就是对的。最喜欢的一句诗就是---走着走着,花就开了……早安,亲们!碧玺宝贝儿请安来啦!厂里各种彩宝正在加紧磨制中图1,超级可爱的心形小熊锁骨链18k金镶嵌西瓜料子一物一图特价2488元
- python+opencv人脸检测
代码真香
环境配置:请参考下面我的文章:https://www.jianshu.com/p/86a32db2488b这里需要使用opencv自带的haarcascade_frontalface_alt2.xmlpython代码如下:importcv2importsyscascPath="./haarcascade_frontalface_alt2.xml"faceCascade=cv2.CascadeCla
- 小仙虫
柳知否
9ab02fabb2488e3606f0a7685390a87b67b220da41bde-XMsxp4_fw658.jpg小李德六岁的时候,在山上捉到一只虫子,他觉得很喜欢,就带回家养着。妈妈因为没钱给他买各种别人家孩子都有的玩具,因此就非常支持他养自己的“宠物”,还特意把用完的酱油瓶子洗得干干净净给小虫子当卧室,小李德高兴极了。美中不足的是,他再三恳求妈妈看看他的小伙伴,妈妈就是不肯抽出时间来
- D6D7D8作业案例实操
哈喽爱豆
D6\D7\D8作业——案例实操第二天案例解析作业模板——案例实操拆解案例:唱唱启蒙英语【课程名称】第一部分/营销模型一、【模型框架】:99元打卡奖金66元训练营转2488以前的活动9.9转2488(1)模型1选择理由:有交互的录播,名人背书,训练营转化,转化率高。课程特色明显,以儿歌的模式引入低龄英语启蒙,玩中学很受小朋友欢迎。优缺点:99元打卡反66元,相当于33元学1一个月,吸到的都是精准粉
- 关于 iPhone SE 2 的猜想
河石子
2016年3月苹果发布iPhoneSE之前我就通过运营商渠道预定了,因为通过运营商预定可以返800元的话费,相当于2488就可以买到乞丐版的SE了。这个SE虽然和之前网上盛传的拥有6s的配置这一情况基本一致,但相较于6s少了3DTouch,LivePhoto,TapticEngine等,而且指纹是模块也和最早的5s一样。所以最终没有下单,对于不玩手机游戏和严重依赖指纹支付的我来说,SE的处理器性能
- iphone12mini支持5g吗
m0_51290176
手机
Phone12mini采用一块5.4英寸的OLED屏,小刘海设计,刷新率为120Hz,且分辨率为2488*1242,支持P3广色域。iphone11爆降3000太给力了https://www.apple.com.cn/11iphone12新品预约地址:https://www.apple.com.cn/11相机方面采用浴霸双摄,iPhone12mini具备一颗6400万像素主摄,其余是一颗6400万
- 在大理搞餐饮,可能会搞垮一个餐企……
餐饮老板内参
是不是对生活不太满意很久没有笑过又不知为何既然不快乐又不喜欢这里不如一路向西去大理........就如郝云在歌里唱的,大理曾经是大家的诗和远方。如今内参君问及“如果有人想去大理开一家餐饮店,有什么建议?”却得到了这样的回答,“已经饱和了,没啥好开的。”大理,已经不是你可以奔去开个餐厅和酒吧的远方了吗?总第2488期餐饮老板内参戴丽芬|文大理古城里的马太效应大理州有一市十一县,曾为南诏国首府,公元7
- 英特尔确认向华为供货,联合发布新一代服务器
界面
图片来源:视觉中国记者|陆柯言“多家企业仍在申请恢复向华为供货。”9月22日,华为联合英特尔发布了FusionServerPro服务器系列最新一代产品2488HV6。据悉,华为FusionServerPro基于英特尔x86架构,这也是英特尔向华为断供传言后的首次官宣合作,表明英特尔确实已经拿到了面向华为的供货许可。值得注意的是,英特尔也参加了本次产品发布,并表示英特尔最新一代数据中心产品将持续支撑
- POJ 简单搜索
weixin_33882443
数据结构与算法
简单搜索深度优先搜索poj2488,poj3083,poj3009,poj1321广度优先搜索poj2251,poj1426,poj3126,poj3087.poj3414poj1606简单搜索技巧和剪枝poj2531,poj1416,poj2676,poj1129poj2488好恶心的题。。。应该用深搜的,我用的bfs,wa掉,改成dfs,还是wa。。。注意向八个方向扩展的顺序,保证输出结果按字
- POJ2488 A Knight's Journey(DFS)
zxiaopp
DFS搜索
AKnight'sJourneyTimeLimit:1000MSMemoryLimit:65536KTotalSubmissions:36767Accepted:12489DescriptionBackgroundTheknightisgettingboredofseeingthesameblackandwhitesquaresagainandagainandhasdecidedtomakeajo
- poj2488A Knight's Journey
small__snail__5
dfs
/*这个题有很多方法但是我直接想到的是dfs,经典dfs的方法,思想沿用深搜的思想,控制好边界条件,主要就是一个安字典序排列的问题,这个需要规定一个特定的方向即可,如下面数组里dir的方向其他没什么了,这类题需要在脑子有一个固定的深搜的模式,虽然题可能很灵活但是用的方法不会变化太多不然怎么可能叫dfs,熟练掌握那种思维方法很重要*/#include#include#include#includeu
- POJ2488(A Knight's Journey)(DFS+按字典序输出)
风儿继续吹
poj搜索Java学习
AKnight'sJourneyTimeLimit:1000MSMemoryLimit:65536KTotalSubmissions:37150Accepted:12594DescriptionBackgroundTheknightisgettingboredofseeingthesameblackandwhitesquaresagainandagainandhasdecidedtomakeajo
- POJ2488 A Knight's Journey
Fitz1318
POJ刷题
题目链接:http://poj.org/problem?id=2488大致题意:输入p,q,分别作为行列组成一个棋盘,现在骑士是按照象棋里的马走日的走法移动。问你骑士能不能遍历棋盘上的所有格子,如果能,按照字典序输出路径,如果不能则输出''impossible‘’解题思路:字典序即下面的排序。设置一个标志数组,标记走过的路径,然后采用深度搜索的方式看看能否遍历所有棋子。AC代码:#include#
- poj 2488 A Knight's Journey
hzhyhx1117
图论—搜索pathoutputintegernumbersinputeach
AKnight'sJourneyTimeLimit:1000MSMemoryLimit:65536KTotalSubmissions:20870Accepted:7050DescriptionBackgroundTheknightisgettingboredofseeingthesameblackandwhitesquaresagainandagainandhasdecidedtomakeajou
- codeforces上红记
weixin_30387663
突然感觉codeforces上红不那么难,蒟蒻其实也不会几个算法,但其实打codeforces只要在黄名后稳住几场(5~10场)稳定上分就可以了。。。emmm,虽然现在是2488rating。。。但感觉下一场根本稳不住。。。所以下一场div1gugugu(时间也太晚了233)感觉codeforces在noi2019前不怎么会打了吧(突然意识到cf前期多积累几个小号的意义233努力在cometoj争
- JAVA中的Enum
周凡杨
javaenum枚举
Enum是计算机编程语言中的一种数据类型---枚举类型。 在实际问题中,有些变量的取值被限定在一个有限的范围内。 例如,一个星期内只有七天 我们通常这样实现上面的定义:
public String monday;
public String tuesday;
public String wensday;
public String thursday
- 赶集网mysql开发36条军规
Bill_chen
mysql业务架构设计mysql调优mysql性能优化
(一)核心军规 (1)不在数据库做运算 cpu计算务必移至业务层; (2)控制单表数据量 int型不超过1000w,含char则不超过500w; 合理分表; 限制单库表数量在300以内; (3)控制列数量 字段少而精,字段数建议在20以内
- Shell test命令
daizj
shell字符串test数字文件比较
Shell test命令
Shell中的 test 命令用于检查某个条件是否成立,它可以进行数值、字符和文件三个方面的测试。 数值测试 参数 说明 -eq 等于则为真 -ne 不等于则为真 -gt 大于则为真 -ge 大于等于则为真 -lt 小于则为真 -le 小于等于则为真
实例演示:
num1=100
num2=100if test $[num1]
- XFire框架实现WebService(二)
周凡杨
javawebservice
有了XFire框架实现WebService(一),就可以继续开发WebService的简单应用。
Webservice的服务端(WEB工程):
两个java bean类:
Course.java
package cn.com.bean;
public class Course {
private
- 重绘之画图板
朱辉辉33
画图板
上次博客讲的五子棋重绘比较简单,因为只要在重写系统重绘方法paint()时加入棋盘和棋子的绘制。这次我想说说画图板的重绘。
画图板重绘难在需要重绘的类型很多,比如说里面有矩形,园,直线之类的,所以我们要想办法将里面的图形加入一个队列中,这样在重绘时就
- Java的IO流
西蜀石兰
java
刚学Java的IO流时,被各种inputStream流弄的很迷糊,看老罗视频时说想象成插在文件上的一根管道,当初听时觉得自己很明白,可到自己用时,有不知道怎么代码了。。。
每当遇到这种问题时,我习惯性的从头开始理逻辑,会问自己一些很简单的问题,把这些简单的问题想明白了,再看代码时才不会迷糊。
IO流作用是什么?
答:实现对文件的读写,这里的文件是广义的;
Java如何实现程序到文件
- No matching PlatformTransactionManager bean found for qualifier 'add' - neither
林鹤霄
java.lang.IllegalStateException: No matching PlatformTransactionManager bean found for qualifier 'add' - neither qualifier match nor bean name match!
网上找了好多的资料没能解决,后来发现:项目中使用的是xml配置的方式配置事务,但是
- Row size too large (> 8126). Changing some columns to TEXT or BLOB
aigo
column
原文:http://stackoverflow.com/questions/15585602/change-limit-for-mysql-row-size-too-large
异常信息:
Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAM
- JS 格式化时间
alxw4616
JavaScript
/**
* 格式化时间 2013/6/13 by 半仙
[email protected]
* 需要 pad 函数
* 接收可用的时间值.
* 返回替换时间占位符后的字符串
*
* 时间占位符:年 Y 月 M 日 D 小时 h 分 m 秒 s 重复次数表示占位数
* 如 YYYY 4占4位 YY 占2位<p></p>
* MM DD hh mm
- 队列中数据的移除问题
百合不是茶
队列移除
队列的移除一般都是使用的remov();都可以移除的,但是在昨天做线程移除的时候出现了点问题,没有将遍历出来的全部移除, 代码如下;
//
package com.Thread0715.com;
import java.util.ArrayList;
public class Threa
- Runnable接口使用实例
bijian1013
javathreadRunnablejava多线程
Runnable接口
a. 该接口只有一个方法:public void run();
b. 实现该接口的类必须覆盖该run方法
c. 实现了Runnable接口的类并不具有任何天
- oracle里的extend详解
bijian1013
oracle数据库extend
扩展已知的数组空间,例:
DECLARE
TYPE CourseList IS TABLE OF VARCHAR2(10);
courses CourseList;
BEGIN
-- 初始化数组元素,大小为3
courses := CourseList('Biol 4412 ', 'Psyc 3112 ', 'Anth 3001 ');
--
- 【httpclient】httpclient发送表单POST请求
bit1129
httpclient
浏览器Form Post请求
浏览器可以通过提交表单的方式向服务器发起POST请求,这种形式的POST请求不同于一般的POST请求
1. 一般的POST请求,将请求数据放置于请求体中,服务器端以二进制流的方式读取数据,HttpServletRequest.getInputStream()。这种方式的请求可以处理任意数据形式的POST请求,比如请求数据是字符串或者是二进制数据
2. Form
- 【Hive十三】Hive读写Avro格式的数据
bit1129
hive
1. 原始数据
hive> select * from word;
OK
1 MSN
10 QQ
100 Gtalk
1000 Skype
2. 创建avro格式的数据表
hive> CREATE TABLE avro_table(age INT, name STRING)STORE
- nginx+lua+redis自动识别封解禁频繁访问IP
ronin47
在站点遇到攻击且无明显攻击特征,造成站点访问慢,nginx不断返回502等错误时,可利用nginx+lua+redis实现在指定的时间段 内,若单IP的请求量达到指定的数量后对该IP进行封禁,nginx返回403禁止访问。利用redis的expire命令设置封禁IP的过期时间达到在 指定的封禁时间后实行自动解封的目的。
一、安装环境:
CentOS x64 release 6.4(Fin
- java-二叉树的遍历-先序、中序、后序(递归和非递归)、层次遍历
bylijinnan
java
import java.util.LinkedList;
import java.util.List;
import java.util.Stack;
public class BinTreeTraverse {
//private int[] array={ 1, 2, 3, 4, 5, 6, 7, 8, 9 };
private int[] array={ 10,6,
- Spring源码学习-XML 配置方式的IoC容器启动过程分析
bylijinnan
javaspringIOC
以FileSystemXmlApplicationContext为例,把Spring IoC容器的初始化流程走一遍:
ApplicationContext context = new FileSystemXmlApplicationContext
("C:/Users/ZARA/workspace/HelloSpring/src/Beans.xml&q
- [科研与项目]民营企业请慎重参与军事科技工程
comsci
企业
军事科研工程和项目 并非要用最先进,最时髦的技术,而是要做到“万无一失”
而民营科技企业在搞科技创新工程的时候,往往考虑的是技术的先进性,而对先进技术带来的风险考虑得不够,在今天提倡军民融合发展的大环境下,这种“万无一失”和“时髦性”的矛盾会日益凸显。。。。。。所以请大家在参与任何重大的军事和政府项目之前,对
- spring 定时器-两种方式
cuityang
springquartz定时器
方式一:
间隔一定时间 运行
<bean id="updateSessionIdTask" class="com.yang.iprms.common.UpdateSessionTask" autowire="byName" />
<bean id="updateSessionIdSchedule
- 简述一下关于BroadView站点的相关设计
damoqiongqiu
view
终于弄上线了,累趴,戳这里http://www.broadview.com.cn
简述一下相关的技术点
前端:jQuery+BootStrap3.2+HandleBars,全站Ajax(貌似对SEO的影响很大啊!怎么破?),用Grunt对全部JS做了压缩处理,对部分JS和CSS做了合并(模块间存在很多依赖,全部合并比较繁琐,待完善)。
后端:U
- 运维 PHP问题汇总
dcj3sjt126com
windows2003
1、Dede(织梦)发表文章时,内容自动添加关键字显示空白页
解决方法:
后台>系统>系统基本参数>核心设置>关键字替换(是/否),这里选择“是”。
后台>系统>系统基本参数>其他选项>自动提取关键字,这里选择“是”。
2、解决PHP168超级管理员上传图片提示你的空间不足
网站是用PHP168做的,反映使用管理员在后台无法
- mac 下 安装php扩展 - mcrypt
dcj3sjt126com
PHP
MCrypt是一个功能强大的加密算法扩展库,它包括有22种算法,phpMyAdmin依赖这个PHP扩展,具体如下:
下载并解压libmcrypt-2.5.8.tar.gz。
在终端执行如下命令: tar zxvf libmcrypt-2.5.8.tar.gz cd libmcrypt-2.5.8/ ./configure --disable-posix-threads --
- MongoDB更新文档 [四]
eksliang
mongodbMongodb更新文档
MongoDB更新文档
转载请出自出处:http://eksliang.iteye.com/blog/2174104
MongoDB对文档的CURD,前面的博客简单介绍了,但是对文档更新篇幅比较大,所以这里单独拿出来。
语法结构如下:
db.collection.update( criteria, objNew, upsert, multi)
参数含义 参数  
- Linux下的解压,移除,复制,查看tomcat命令
y806839048
tomcat
重复myeclipse生成webservice有问题删除以前的,干净
1、先切换到:cd usr/local/tomcat5/logs
2、tail -f catalina.out
3、这样运行时就可以实时查看运行日志了
Ctrl+c 是退出tail命令。
有问题不明的先注掉
cp /opt/tomcat-6.0.44/webapps/g
- Spring之使用事务缘由(3-XML实现)
ihuning
spring
用事务通知声明式地管理事务
事务管理是一种横切关注点。为了在 Spring 2.x 中启用声明式事务管理,可以通过 tx Schema 中定义的 <tx:advice> 元素声明事务通知,为此必须事先将这个 Schema 定义添加到 <beans> 根元素中去。声明了事务通知后,就需要将它与切入点关联起来。由于事务通知是在 <aop:
- GCD使用经验与技巧浅谈
啸笑天
GC
前言
GCD(Grand Central Dispatch)可以说是Mac、iOS开发中的一大“利器”,本文就总结一些有关使用GCD的经验与技巧。
dispatch_once_t必须是全局或static变量
这一条算是“老生常谈”了,但我认为还是有必要强调一次,毕竟非全局或非static的dispatch_once_t变量在使用时会导致非常不好排查的bug,正确的如下: 1
- linux(Ubuntu)下常用命令备忘录1
macroli
linux工作ubuntu
在使用下面的命令是可以通过--help来获取更多的信息1,查询当前目录文件列表:ls
ls命令默认状态下将按首字母升序列出你当前文件夹下面的所有内容,但这样直接运行所得到的信息也是比较少的,通常它可以结合以下这些参数运行以查询更多的信息:
ls / 显示/.下的所有文件和目录
ls -l 给出文件或者文件夹的详细信息
ls -a 显示所有文件,包括隐藏文
- nodejs同步操作mysql
qiaolevip
学习永无止境每天进步一点点mysqlnodejs
// db-util.js
var mysql = require('mysql');
var pool = mysql.createPool({
connectionLimit : 10,
host: 'localhost',
user: 'root',
password: '',
database: 'test',
port: 3306
});
- 一起学Hive系列文章
superlxw1234
hiveHive入门
[一起学Hive]系列文章 目录贴,入门Hive,持续更新中。
[一起学Hive]之一—Hive概述,Hive是什么
[一起学Hive]之二—Hive函数大全-完整版
[一起学Hive]之三—Hive中的数据库(Database)和表(Table)
[一起学Hive]之四-Hive的安装配置
[一起学Hive]之五-Hive的视图和分区
[一起学Hive
- Spring开发利器:Spring Tool Suite 3.7.0 发布
wiselyman
spring
Spring Tool Suite(简称STS)是基于Eclipse,专门针对Spring开发者提供大量的便捷功能的优秀开发工具。
在3.7.0版本主要做了如下的更新:
将eclipse版本更新至Eclipse Mars 4.5 GA
Spring Boot(JavaEE开发的颠覆者集大成者,推荐大家学习)的配置语言YAML编辑器的支持(包含自动提示,