Skip to content

Instantly share code, notes, and snippets.

View GeekaholicLin's full-sized avatar
💭
I may be slow to respond.

void GeekaholicLin

💭
I may be slow to respond.
View GitHub Profile
@GeekaholicLin
GeekaholicLin / prototype.css
Created May 23, 2016 03:10 — forked from anonymous/prototype.css
Prototype created with DevTools Prototyper
.box {
width: 300px;
height: 300px;
border: 1px solid #000;
background: -moz-repeating-linear-gradient(-30deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 150px, rgba(255, 255, 255, 0) 200px, rgba(255, 255, 255, 0.6) 200px, rgba(255, 255, 255, 0.6) 215px) no-repeat -300px 0, #000 no-repeat;
@GeekaholicLin
GeekaholicLin / delete_long_filenames_file.md
Last active June 9, 2016 13:19
How to delete directories with path/names too long for normal delete
@GeekaholicLin
GeekaholicLin / hexo_blog_backups.md
Last active June 9, 2016 13:32
如何备份博客至私人仓库
@GeekaholicLin
GeekaholicLin / heap_corruption_detected.md
Created June 10, 2016 12:12
heap corruption detected : after normal block(xxx) at 0x xxxxxxxx----新申请空间溢出的可能
if ((S.top-S.base+1)==S.stacksize)
	{
		//这里一定要基于本身的值进行申请空间,否则报错
		//heap corruption detected : after normal block(xxx) at 0x xxxxxxxx
		//典型的内存溢出错误
		//一般都是操作new申请的内存溢出
		//在初始大小上申请,肯定有溢出的可能,被自己蠢哭了
		//S.base = (SElemType*)realloc(S.base, ( STACK_INIT_SIZE+ STACKINCREMENT)*sizeof(SElemType));
 
@GeekaholicLin
GeekaholicLin / 1.md
Last active June 11, 2016 03:07
字符串朴素匹配中的指针回溯

最近脑子有点转不过来,不清楚字符串朴素匹配算法中的指针回溯是怎么算来的 即 i=j-i+2;j=1; 是怎么得来的。 当不匹配时,子串下标回到j=1,而父串下标则相对之前的i而言,要+1,回到下一个需要匹配的字符。 可以这么认为,j从1到j,增加了(j-1),当i需要从现在的i回到需要匹配的下一个字符,自然要 i=i-(j-1)+1

@GeekaholicLin
GeekaholicLin / map_area_cursor.md
Created July 1, 2016 10:01
map+area 热点区域的鼠标cursor样式

当使用密集型按钮时,需要用到map+area热区域的办法,使得按钮的区域不冲突。 在线工具

当大部分按钮的鼠标样式为cursor:point;的时候,为了使得不可用按钮的鼠标样式为指针,需要使用cursor:default将原本cursor:point样式覆盖。 需要注意的是cursor:auto是看浏览器自身对于该元素的默认鼠标样式。w3school鼠标样式 还有一点需要注意的是IE浏览器的兼容性,当area元素中含有href属性时,IE默认鼠标样式为手指(其他元素一样),即使设置了其鼠标样式也无济于事。 所以,需要将areahref属性移除。

@GeekaholicLin
GeekaholicLin / the_difference_between_bandwidth_and_thoughput.md
Created July 14, 2016 07:44
the difference between bandwidth and thoughput (带宽和吞吐量的区别)

在计算机网络中的带宽讲的是在单位时间内,从网络中的一点到另外一点所通过的最高数据率

而在计算机网络中的吞吐量所说的是单位时间内通过网络的数据量

一般而言,带宽大于吞吐量

无线网络的信号强度随着距离地增加而减弱(非线性),且相同的频率会互相干扰,利用以上特性,可以引出频率复用(frequency reuse)的概念,解决无线通信中的通信频率不够用问题。

http://www.maixj.net/ict/fengwoxiaoquhuafen-pinlvfuyong-7456

手机通信中的蜂巢网络由此而来。

无线网络中还有一大特性,多径效应,经不同路径传播后到达接收端,会使得信号叠加而增强或者反相减弱或者干扰。


@GeekaholicLin
GeekaholicLin / Manchester_coding.md
Created July 14, 2016 14:01
数字信号的转换之曼彻斯特编码和不归零编码
@GeekaholicLin
GeekaholicLin / url_uri_and_urn.md
Last active July 15, 2016 11:47
区分URL、URI、和 URN

参考(referrence):
http://stackoverflow.com/questions/176264/what-is-the-difference-between-a-uri-a-url-and-a-urn#answer-1984225
http://web.jobbole.com/83452/
https://tools.ietf.org/html/rfc3986 ---[Uniform Resource Identifier (URI)]
https://tools.ietf.org/html/rfc1738 ---[Uniform Resource Locator (URL)]
http://www.cnblogs.com/hust-ghtao/p/4724885.html

URIs identify and URLs locate; however, locators are also identifiers, so every URL is also a URI, but there are URIs which are not URLs.--from stackoverflow