网络基础

子网掩码

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

《古诗文集》

天下风云出我辈,一入江湖岁月催。

在江湖上闯荡,诗词歌赋绝对是必备技能
这里不只是老粗横生,迁客骚人也是多汇于此

试问
不会几句诗词,怎么抒发倾慕
“曾经沧海难为水,除却巫山不是云”
不会几句诗词,怎么表达相思
“入我相思门,知我相思苦”
“长相思兮长相忆,短相思兮无穷极”
不会几句诗词,怎么花前月下
“一簇桃花开无主,可爱深红爱浅红”
不会几句诗词,怎么倾诉恨愁
“千万恨,恨极在天涯。”
“山月不知心里事,水风空落眼前花。”
不会几句诗词,怎么夜路壮胆
“身后碑铭徒自好,眼前傀儡任他忙”
不会几句诗词,怎么打架出手
“醉酒提壶力千钧,肘旋膝撞醉还真”
不会几句诗词,怎么聚会结友
“一碗清酒聚知音,半生相知有几人?”
不会几句诗词,怎么猜拳斗酒
“人生得意须尽欢,莫使金樽空对月”
“青天有月来几时,我今停杯一问之”
不会几句诗词,怎么无可奉告
“浮萍漂泊本无根,天涯游子君莫问”
不会几句诗词,怎么反唇相讥
“玉在匣中叹,金钗土里埋”
不会几句诗词,怎么排解寂寥
“举杯邀明月,对影成三人”
不会几句诗词,怎么慨叹壮美
“征蓬出汉塞,归雁入胡天。”
“大漠孤烟直,长河落日圆。”
不会几句诗词,怎么思念故土
“露从今夜白,月是故乡明”
不会几句诗词,怎么追忆旧人
“人面不知何处去,桃花依旧笑春风”
不会几句诗词,怎么心怀天下
“柳随风摆花漂泊,华佗难医天下波”
“安得广厦千万间,大庇天下寒士俱欢颜”
不会几句诗词,怎么叹世炎凉
“总为乌云能蔽日,长安不见使人愁”
不会几句诗词,怎么志壮情豪
“仰天大笑出门去,我辈岂是蓬蒿人”
“天生我材必有用,千金散去还复来”
不会几句诗词,怎么霸气外露
“待到秋来九月八,我花开后百花杀”
“他年我若为青帝,报与桃花一处开”
不会几句诗词,怎么建功立业
“黄沙百战穿金甲,不破楼兰终不还”
不会几句诗词,怎么训示后人
“王师北定中原日,家祭无忘告乃翁”

诗词源于历史,历史融于诗词。

吟诗颂词赞曲咏赋,
提升品位培育修养,
散发气质增强气场,
富于魅力引领风尚。

《古诗文集》,又一部倾心力作隆重登陆Appstore

皇图霸业谈笑中,不胜人生一场醉。

qrcode

飘荡

Celine Dion

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

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》

Gerry Sandusky, a sports anchor for WBAL TV, served as master

Born in Trenton on March 11, 1929 Cheap Jerseys free shipping, Jack graduated from Trenton High School in 1947. In his youth, he fancied himself a junior Harry James, his trumpet playing idol. He was a member of the Morrisville, PA, drum and bugle corps, and took part in the American Legion post World War II victory parade in New York City.

Cheap Jerseys china Here is what the front of the Samsung SM951 SSD looks like with the label removed. You can see another two NAND packages, which means there are four total on this 512GB drive. You can also see the Samsung UBX controller and 512MB DRAM cache chip that were hidden before we removed the label.. Cheap Jerseys china

cheap nfl jerseys No parasites in the stool. But his WBC was still high and now he was anemic. I got home from work and Marlin would walk 20 feet then lay down. It was true when both cards were available on the onset, and it is still true to this day. Therefore, you can look at GeForce GTX 980 performance and say that is also Radeon R9 390X performance, the data would be redundant. Whatever percentage advantage the GTX 1070 Founder Edition has over the GTX 980 would be the same with the R9 390X. cheap nfl jerseys

wholesale jerseys from china “There were probably some owners over time who always thought the Olympics were a good idea,” he added. “There were some owners who always hated it and then there were probably a bunch of clubs that really didn’t give it much thought until the IOC said ‘We’re not going to pay the expenses.’ And then I think it caused a number of clubs to say ‘Well, wait a minute. If that’s how they value our participation, why are we knocking ourselves out?'”. wholesale jerseys from china

Cheap Jerseys free shipping Do tell, Bruce. PR was like a gust of wind blowing from every corner of The Gallery. Gerry Sandusky, a sports anchor for WBAL TV, served as master of ceremonies wearing a Ravens jacket verboten in the stadium press box, no? and emitting appropriately happy chatter. Cheap Jerseys free shipping

wholesale nfl jerseys from china “Tell me I have just read Sepp Blatter’s comments on racism in football wrong. If not then I am astonished. I feel stupid for thinking that football was taking a leading role against racism. “Whenever the coach tells you to play, you play,” shrugged Markstrom before a 33 save effort Friday in a 4 1 loss to the Calgary Flames in which the score was more flattering than the team effort. “I had a bead on the shooters that game (Tuesday), but that doesn’t mean it’s going to be the same the next game. You have to be ready when your name is called.”. wholesale nfl jerseys from china

cheap jerseys What are the symptoms of infantile eczema?Babies with infantile eczema develop an itchy red rash, often first on their cheeks. This spreads over the face, down the neck to the nappy region, and may also appear on the arms and legs. It may only be on the trunk or arms and legs cheap jerseys.

The internment of ashes will be held at a later date in

As the moment draws closer, so too do the fans, emerging from nowhere to line the main road. Deckchairs, babies in strollers, young couples, and old men with binoculars who wander alone in search of the best vantage point. An elderly woman sits in a wheelchair on the steps of a nursing home, her frail hands clasping a shawl across her knees, waiting patiently for the world to arrive..

wholesale nfl jerseys Visitation will be Wednesday, May 27th from 5:30 7:00 at Waller Thornton Funeral Home in Huntsville, TX. A memorial service to celebrate his life will be held at First United Methodist Church in Huntsville, TX on Thursday, May 28th at 11:00. The internment of ashes will be held at a later date in Sulphur Springs, TX.. wholesale nfl jerseys

cheap nfl jerseys As part of a season long celebration of the 100th anniversary of the nickname Tourists, Asheville’s pro baseball franchise will have six jersey giveaway nights during the 2015 season at McCormick Field.”Baseball has a long and storied history in Asheville and at McCormick Field, and we’re looking forward to remembering our past while making new memories over the course of the 2015 season cheap jerseys,” said Tourists president Brian DeWine.”Coming off the 2014 Championship, hosting the South Atlantic League All Start Game Presented by Ingles, and celebrating our 100th year anniversary will make the 2015 season a very special season in this storied franchise’s history.”Following is the Tourists’ press release announcing the promotion.In 1915, Asheville celebrated its first baseball championship by taking the North Carolina State League title with a 74 46 record. That season also marked the first widespread use of the nickname Tourists in the local newspapers and among the club’s fans.In celebration of the 100th anniversary of the iconic nickname, the Asheville Tourists will have six jersey giveaway nights during the 2015 season at McCormick Field. Each of the giveaway nights will feature a specific replica uniform from notable seasons over the past century, beginning with the 1915 Jersey Presented by Aaron’s, which will be given to the first 1,000 fans in attendance when the Tourists host the Lexington Legends on May 2nd.The 1915 jersey features a pinstripe design with a dark blue A on the left breast. cheap nfl jerseys

Cheap Jerseys china “And I speak for myself, too, when I say that we have to stay humble through this whole thing. And the season is very young, only three games in, and a lot of football left, as you know. You can’t substitute preparation and hard work for anything. I realize this could be an unfair assessment of the situation, so I’ll add one caveat: Maybe they can’t get an HD signal in their location. If that’s the case, why even bother with the TV in the first place? Is a half assed attempt at a status symbol any better than no attempt at all? If the TV wasn’t there, I wouldn’t think these businesses were all owned and operated by my grandparents. I already have to suffer through the indignity of daytime television in the waiting room, so why must I also endure a new episode of Family Feud that looks like it’s being broadcast from 1977 Cheap Jerseys china.

Websites now keep a play by play of arrests

A really interesting personnel package and alignment by the Saints on third and 1 late in the quarter. They had three tight ends and wide receiver Robert Meachem in the game but lined them up wide in a spread formation then ran Mike Bell up the middle on a belly play for 5 yards into the heart of the Panthers’ spread out defense.

wholesale nfl jerseys from china Eastbound interstate traffic was being detoured off at Route 30 in St. Clair. From there, drivers will take Route 30 to Route 141 to northbound I 55 to I 270.All westbound interstate traffic was detoured to I 270 east to I 55 south to Route 141 to Route 30 and back to I 44 at St. wholesale nfl jerseys from china

cheap jerseys Use groups and the difficult people Every business has those people who say the things that everyone else is thinking. They are often kept away from senior people in case they say the wrong thing and get the manager into trouble. But if you really want to understand the troops they will at least be honest. cheap jerseys

With the biggest break of the day hanging over their head the Roos lifted to outscore their opponents in the final quarter and hold them goalless. It was the Roos turn to rue their inaccuracy with Northcott posting his only goal and Kay his third. It was still the defences of both sides that were their shining stars as the midfield battled to get the ball forward.

So here’s the plot: In his indefatigable effort to marry idealism and meddlesome tinkering, engineer Tony Stark https://www.jerseysnfljerseys.com/, with Bruce Banner’s help, invents a program to ensure world peace called Ultron. Unfortunately cheap jerseys, Ultron, quite logically, decides that humanity is the enemy. (“You want to protect the world.

wholesale jerseys from china Crestwood improved to 5 1 1 after dropping a 1 0 game to Lake Lehman in Monday battle for the top spot in the WVC Division 1. The Comets last lost a league game to Holy Redeemer on Sept. 19, 2012, then went 46 consecutive league games without a defeat before Monday.. wholesale jerseys from china

Cheap Jerseys free shipping HE LEARNED PLENTY WHILE WATCHING HIS FATHER RUN FOR THE WHITE HOUSE, INCLUDING HOW TO DRESS. MR. PAUL: THE ONE THING I LIKE TO DO ABOUT CAMPAIGNING IS USUALLY I JUST WHERE MY BLUE JEANS AND MY BOOTS. The league’s image has taken one hit after another from domestic violence to murder convictions. Websites now keep a play by play of arrests. It’s starting to sound a little scary what’s going on when the stadium lights are turned off and misguided athletes wander into the streets. Cheap Jerseys free shipping

Cheap Jerseys free shipping Leon Beyer. Here’s a brand from France’s sunny, northern Alsace region that deserves wider recognition. White is the specialty of the house, as it is in Alsace generally. Neal’s first impression was that the kid’s ego exceeded his talent. Armstrong was brash and ill mannered, in desperate need of refinement. But the more he learned of Armstrong’s home life, the sorrier Neal began to feel for him Cheap Jerseys free shipping.