分类 生活类 下的文章

mamp 的一些问题

一般安装完mamp套件以后,删除了目录下面的所有phpmyadmin,
可是访问localhost/phpmyadmin还可以进行访问,而且是无密码访问。
找了半天,原来在/Library/Application Support/appsolute/MAMP PRO/这个目录下面,将这个目录下面的phpmyadmin删除掉即可

python 进程与线程的概念,以及联系与区别

进程可以被称为执行的程序,一个进程拥有完整的数据空间和代码空间,每一个进程的地址空间都是独立的,进程之间不能共享数据。

线程是进程的一部分,也可以称为mini 进程。在同一个进程中的线程共用同一个地址空间,单有自己独立的堆栈和局部变量。所以除了堆栈中的数据,其余所有数据都可以共享。

如果再形象点就引用一哥们的比喻,很形象:

比如一个公司,有很多不同的部门,每个部门不在 同一个城市,而每个部门都有许多的员工。

公司就好比是一个CPU,不同的部门就相当于不同的进程,他们是你干你的,我干我的,所利用的空间不同。想共享些什么数据,需要email与传真;而一个部门的每个员工,相当于不同的线程,共在同一个部门,所有东西都可以共享。假如说一个人在用打印机,也就     是数据进入堆栈了,我再用打印机,你就用不了了,得等。

联系:

 进程包括线程,可以有一个或者多个

区别:

 1.进程有独立的地址空间,多进程较稳定,因为其中一个出现状况不影响另外一个;同一个进程的多个线程,共用地址空间,多线程相比于多进程,稳定性要差,因为一个线程出现问题会严重影响其他线程。

 2.进程之间需要共享数据,要利用进程间通讯;同一个进程中的线程不需要。

3.进程只是资源分配的最小单位;线程是执行的最小单位,也就是说实际执行的是线程。

mamp pro开启日志功能

倒腾了半天,才找到办法,找到Mamp Pro,然后右键显示包内容
然后Contents->Resources->my.cnf
修改这个cnf就ok,记得修改的时候先停掉服务= =||

South Korean Nuclear Power Plant Hacked

Korea-nuclear-power-plant-hacked.jpg

Koreans have once again gain media attention but this time not as an accused of any kind of hack attack, but as a victim of a severe attack on computers systems at a nuclear power plant in South Korea by an unknown hacker or a group.

South Korea was hit by a cyber attack on its nuclear power plant, causing the operator to conduct drills in order to test the ability of the nuclear plant to cope with a full-scale cyber-attack. Although the plant's operator says no critical data has been leaked.

The cyber attack came into light after a hacker posted blueprints of nuclear reactors online and threatened further "leaks" unless authorities close down the reactors. According to the South Korean Yonhap News Agency, the hacker was able to access blueprints of reactors, floor maps and other internal information on the plant.

Last week with the help of a Twitter account named "president of anti-nuclear reactor group," the hacker posted leaked data revealing internal designs and manuals of the Gori-2 and Wolsong-1 nuclear reactors run by Korea Hydro and Nuclear Power Co. (KHNP). The hacker also threatened to leak more information unless the reactors are shut down.

The leaked information includes important data on the facilities' air condition and cooling systems, a radiation exposure report, and personal data of employees.

While KHNP and the South Korean government said that only "non-critical" information was stolen by the hacker and that the compromised data did not harm the nuclear plant’s safety. The company will also conduct extensive drills at four of its complexes next week.

The KHNP, the sole nuclear operator in Korea, manages South Korea's 23 nuclear reactors, which supply about 30 percent of the country's electricity needs.

The hack came after the massive cyber attack on Sony Pictures Entertainment earlier this month, in which a list of personal and confidential data of the company made online by the hackers group called itself Guardian of Peace (GoP). The hack has yet exposed about 200 gigabytes of confidential data from upcoming movie scripts to sensitive employees data, celebrities phone numbers and their travel aliases, and unreleased films, marking it as the most severe hack in the History.

The Federal Bureau of Investigation (FBI) accused North Korea for Sony hack due to the Sony’s upcoming controversial movie "The Interview" — a comedy about an assassination attempt against North Korean leader Kim Jong-un. Although North Korea denied any involvement.

In the past, South Korea has also many times blamed North Korea for hacks on banks, government websites and broadcasters. But this time no one has blamed North Korea for the hacking against the KHNP power plants. An official at KHNP told Reuters that the hacking appeared to be the work of "elements who want to cause social unrest," but added that he had no one specific in mind.
Meanwhile, a Twitter account claiming to represent an anti-nuclear organisation based in Hawaii claimed responsibility for the Nuclear power plant hack in South Korea, although the identities of the intruders have yet to be confirmed.

vssh for mac 1.7 下载

妈的,又是各种收费才能下载

自己备份,以后使用

[gview file="http://www.03sec.com/wp-content/uploads/2014/11/vSSH-for-Mac-1.7.dmg_.zip"]

QQ20141114-1@2x