分类
其它

网络基础

子网掩码

255.255.0.0 表示192.168.(0 – 255).(0 – 255)的IP地址都在同一网段内。
255.255.255.0 表示192.168.0.(0 – 255)的IP地址都在同一网段内。

A、B、C类IP地址

IP地址是互联网上进行寻址的地址编码,IP地址有4个字节,32位组成。为了区分IP地址,将IP地址划分为A类,B类,C类。
C类地址第1字节、第2字节和第3个字节为网络地址,第4个字节为主机地址。第1个字节的前三位固定为110。地址范围 192.0.0.0到223.255.255.255,私有地址 192.168.0.0到192.168.255.255,默认子网掩码 255.255.255.0,第1个字节的二进制值前三位位必须是“110”,即11000000开始到11011111结束,所以第一段的范围为192~223。
一个C类地址是由3个字节的网络地址和1个字节的主机地址组成。每个C类地址可连接254台主机(0是网络号不可用, 255是广播地址,除去这2个,可用的就是254个地址),Internet有2097152个C类地址段(32*256*256),有532676608个地址(32*256*256*254)。

如果电脑超过了254台,如果子网掩码设为255.255.255.0,需要有2个网段,不同网段下的电脑需要路由器或者三层交换机才能互相访问。

双网卡设置内外网

为默认网关(default gateway)只能是一个!删掉局域网的网关配置。
http://blog.csdn.net/chenlycly/article/details/52136960

分类
其它

操作系统

线程原理

多线程是宏观上的并行,微观上依旧是串行
多线程之所以能够实现,第一是硬件的功劳,也就是CPU。现代的CPU有一个很重要的特性,就是时间片。每一段获得CPU的代码只能运行一个时间片规定的时间,例如10ms。到时间之后CPU就会把正在运行的代码暂停,然后发生一个中断。这个中断是系统级的事件,只有操作系统能够接手,这样控制权就落到了操作系统手里。
接下来就是操作系统的事情了。线程对操作系统来说就是一段代码+运行时数据(主要是寄存器数据,还有线程中与资源相关的数据,比如打开的文件等)。操作系统会为每个线程保存相关的这些数据,当接收到来自CPU的时间片中断事件时,就会按一定规则从这些线程中选择一个,恢复它的运行时数据,这样CPU就可以继续执行这个线程了。

选择一个合适的线程的过程称为线程调度,最简单的规则是FCFS,也就是按排队的时间先后顺序调度,谁先来排队,下一个就让谁运行。另外还有按优先级、按任务大小等调度策略,以及多种策略的组合等方式。详细的可以去了解一下操作系统的原理。

Java中线程实现主要依赖于操作系统,其本身不进行线程管理。它只是把线程相关的操作进行了封装和抽象,以方便我们使用。例如,Java中的线程可以设置优先级,但如果操作系统本身不支持优先级调度策略,那么为线程设置优先级是没有任何作用的。

操作系统维护了一个任务队列,Java调用.start()之后会把任务放进队列之中等待执行,CPU不会一直执行同一个任务,而是每执行一段时间,就保存当前任务的状态,然后从队列中取到下一个任务继续执行。

总之,操作系统基于cpu时间片通过线程调度,来达到轮换执行线程对应的代码。

对阻塞及异步的概念理解

阻塞指的是进程被阻塞,即等待任务处理完成后进程才再往下走。
同步指的是资源被按顺序使用。

分类
其它

警察与撒旦

光明正大的走在街上,遵纪守法的走在地铁交通中,警察拦截盘查身份证。

警察不主动出示证件、不主动告知盘查的充分原由,一句所谓的例行检查就可以侵犯公民的自由、公民的尊严吗?
向行人问路时都要客气的您好请问谢谢,何况查身份证时就可以抛开礼貌吗? 警察就高了一截,公民就矮了一截吗?
坐火车飞机带身份证是明文规定、众所周知、对所有人一视同仁的,但查身份证怎么就任意设卡、查一部分放一部分呢?

走在路上有探头监控、有警察值勤我觉的安全,但这种查身份证的现象出现多了,我走在路上就觉的不安了! 是不是附近发生重大案件了?我明明是这个城市的良好市民啊?难道我穿着装束不好了?难道我走路姿势不美行迹可疑了?而我只想安静的走在路上更不想说话,而我有很多事情要赶时间,而我最讨厌我的行程被别人强行无礼阻断。如果我没配合那就强行局里所里见了…

所谓例行是什么,难道例行的那一会就能撞到罪犯,而不例行的那些日子罪犯就不从这过了?查的那部分里就有罪犯,不查放行的那部分里就没有罪犯了?更有警察开着警车闪着警灯,在那里查身份证,真正的罪犯早绕道而行了,而在那里继续上演着的是警力的浪费与人民的无耐。

我尊重在地铁入口查行李,因为是对所有人查的是行李,我感到公平我感到安全。而里面又突设第二道查证,查证就是查人,查人就是侵犯受保护的个人隐私和尊严,侵犯个人文明自由行走的权利。无缘无故我怎么就成嫌疑人了,隐私和尊严就被强行突破了,而不查放行的那部分人怎么就不是嫌疑人了?

没错,警察总是要完成抓捕犯人的任务的,他们采取的方法之一就是在路边人民的海洋里捞罪犯,可这种方法的公平性、扰民度和抓捕率…。捞就捞吧,扰就扰吧。但我是发现了,他们为了完成任务完全不顾人民的感受,首先警察那种自己高高在上的感觉早把礼貌抛到九霄云外了,谁是嫌疑人就由他们随意指定了,没有嫌疑原由,不配合就强行带回所里…
相反如果警察能放下架子,能给一个曾经的敬礼,礼貌的给出充分的嫌疑原由、配合理由,使人民的尊严和知情权利得到充分尊重,那么人民的理解满意度就会好多了。

那既然不给嫌疑原由,那么检查所有人与检查部分人,被检查人的感觉是不一样的。检查所有人表明警察一视同仁,表明被检查人没有被特别针对,像坐火车要求所有人验证验票一样,没有人反对吧?否则警察明显有失公允,不能服众!

人民日常生活中需要安全保障,但基本需要的是警察时刻待命和保持警觉,但如果把警觉简单的做为看谁谁都像嫌疑人,那整个社会就罪恶了。社会是发展的,人心是向善的,文明一个城市首先把文明警察做好。

听说警察是有任务指标的,完不成任务指标工资奖金是受到影响的,听说有种思维叫懒政思维,还听说警察是人民的公仆,但愿都说警察是人民的公仆,但愿吧。

无论你是一位多么优秀的产品经理,你平时多么精心的考虑产品体验,考虑用户体验,然而当你碰到了警察、医生,一切你认为该有的体验都荡然无存。

分类
其它

ps

替换图标中的颜色

用魔棒选中图标中某线条,右键羽化1px,填充要替换成的颜色。再用橡皮细擦。

画笔,点击起始点,shift+点击终点,画出来的可以是有角度的斜线;

画笔,点击起始点,shift+拖拽,画出来的是水平或垂直的线

 

资源下载

http://www.eclipse.org/artwork/
http://www.eclipse.org/artwork/old_artwork.php

分类
其它

英语

prep. 即preposition 介词
phr. 即phrase 短语
pron. 即pronoun,代词
conj. 即conjunction 连词

分类
其它

飘荡

Celine Dion

《Alone》
《Power Of Love》
《I Surrender》
《My Heart Will Go On》
《That’s The Way It Is》
《To Love You More》

Mariah Carey

《My All》
《Hero》
《Without You》


Andy Lau

《To You》
《I’m Easy》
《Ship Away》

Michael Jackson

《Beat It》
《Dangerous》

《Bacause of you》
《Casablanca》
《Still crazy in love》
《The color of the night》
《When you told me you loved me》
《Anyone Of Us》
《Burning》
《Careless Whisper》
《Cry On My Shoulder》
《Girl In The Mirror》
《Hotel California》
《I Still Believe》

分类
其它

网络工具

TCP&UDP测试工具发送十六进制:
选中按十六进制,在发送区中输入例如00 01,表示第一个字节是0x00,第二个字节是0x01。
备注:一个十六进制数字占用2个字节,即16位

分类
其它

文案

城市套路深,我要回农村
长着一副被包养的脸,却过着自食其力的生活。
等忙完这一阵子,就可以接着忙下一阵子了。

分类
其它

The amount of people in the streets

In those days, my dad didn have the wherewithal to get through it. That why communities become important and imperative. We had a couple of teammates whose families were a little more wealthy that took care of other kids. TOI it may be recalled has had an unpleasant experience in dabbling with colour in the past. A couple of years back, it had announced the launch of an all colour Delhi edition, but the much publicised edition had turned into a predictable black and white (with some intermittent colour) within months. TOI would certainly want to avoid a fiasco this time ’round..

cheap jerseys Today, the family still mainly has a raw diet, but Paigeincludes butter, cheese, eggs and occasionally fish. “I had let malnutrition in through the back door in the name of health,” says Paige. “It was ridiculous.”. It works great for me. I’ve tried to avoid things that set off my headaches, like not eating before 2 pm, or my pillows not being right when sleeping, brightness, sounds, smells and stress. But some can’t be.. cheap jerseys

wholesale nfl jerseys Garry Jenkins, the new dean of the University of Minnesota Law School, plans to spend his first year here listening to students, faculty cheap jerseys, administration and alumni. His strategy now having been in Minnesota all of approximately two weeks is to build on the school’s strengths at a time when student applications are down and the class size intentionally has been reduced to keep results strong. At the same time, the school is offering classes for undergraduates, has added two new concentrations in immigration and family law and has begun a public interest residency program. wholesale nfl jerseys

wholesale jerseys from china Founded in 1916, the Columbia University College of Dental Medicine was one of the first dental schools in the United States. It is a national leader in dental education, patient care, community service, and research. The college also has played a leadership role in national health care policy issues. wholesale jerseys from china

wholesale jerseys I think my favorite place was Vietnam. It just felt like a totally new and different experience than anything I had ever seen or felt before. The amount of people in the streets, the views, the terrain, the cityscapes, it’s like nothing in the States, like nothing in South America. wholesale jerseys

cheap jerseys “I am not suggesting restricting the freedom of the press. There are two kinds of rights relevant here, the right of the press to be free from political interference, but also the rights of audiences to be informed by news and current affairs that is in their interest. Mainstream media is particularly important here because, while it does not tell us what to think, it does set the terms of what to think about.” cheap jerseys.

分类
其它

“It was above my expectations

MIKE HUCKABEE SAYS HE IS PRETTY COMFORTABLE WHEN IT COMES TO BEING IN FRONT OF TELEVISION CAMERAS. IN FACT, HIS WORK AS A POLITICAL COMMENTATOR WAS EASY COMPARED TO HIS YEARS AS GOVERNOR OF THE STATE OF ARKANSAS. BUT AFTER YEARS OUT OF OFFICE, HE SAYS HIS WIFE HAS BEEN WAITING FOR HIM TO PURSUE A SHOT AT THE WHITE HOUSE AGAIN.

wholesale jerseys A CPA Manhattan tax professional will give you inside tips on how to properly keep accurate records throughout the year. If you keep records then you will be able to prepare for the next tax season and you may get back the right amount of money you are due. Of course there is always a chance that you will have to pay sometimes too.. wholesale jerseys

For some, their official visit to JSU is the only one they’ll get to take. The experience Hughes lined up was more than many had anticipated.”It was above my expectations,” Velma Jackson wide receiver and new JSU commit Rashun Jackson said. “The weekend had everything.”Murrah defensive end Eric Brown had a hunch that he was going to commit on his visit.

cheap nfl jerseys Louis candidates run for re election while eyeing mayoral bidUpdated: Thursday, November 3 2016 6:40 AM EDT2016 11 03 10:40:05 GMTState Senator Jamilah Nasheed and St. Louis Treasurer Tishaura Jones are running for reelection. Credit: KMOVDays before they ask voters to re elect them, a pair of St. cheap nfl jerseys

wholesale nfl jerseys from china Si usted quiere mucho ms grosor a su pecho, nada va a golpear prensas de pesa y barbell. En cuanto a cuntos usted debera hacer, es un asunto de la preferencia personal. Estos das me gusta hacer una inclinacin barbell prensa, una prensa de pesa en el piso o en banco de inclinacin, y una prensa de mquina, pero esto es ahora como me entren para la mayor parte de mi carrera. wholesale nfl jerseys from china

They allowed only eleven the rest of the game.have a lot of growth ahead of us cheap nfl jerseys, both collectively and individually, says head coach Todd McLellan. It little morefun to come to the rink when you have some points in the bank. Oilers will be trying to start 3 0 for the first time since 2008.

cheap jerseys The RiverDogs help kick off the new school year and welcome incoming freshmen to the Lowcountry. College of Charleston basketball head coach Earl Grant will be throwing out the first pitch to baseball head coach Matt Heath. The Cougars cheerleading and dance squads will be entertaining fans throughout the game as well. cheap jerseys

cheap nfl jerseys Unfortunately, none of the butter was left to be tested in the laboratory, so Dr Tschape and his colleagues examined some fresh parsley leaves from the organic garden where the original parsley had been grown. These proved to be highly contaminated, not only with various strains of C. Freundii but also with many other species of bacteria that had in all likelihood originated in human or other animal intestines cheap nfl jerseys.