Friday, October 27, 2017

(개잡설) AI와 인종대결

영화 '터미네이터'에서처럼 인공지능(AI)이 인간에 대항해 '직접'싸우는 일은 결코 없을 것이다.그건 마치 페달자전거로 해전,공중전에 뛰어들어 경험치를 높이겠단 말과 같기때문이다.

AI가 '인간과 혹은 인간에 대항하겠다'고 마음먹으면,모니터 뒤에서 인간에게 공격타겟을 지시만하면되는데,굳이 앞장서 실익도 없는 피곤한 짓을 하겠나!

애초,이미 어떤변수와 인과관계로 목표타겟을 지시하게 했는지,그 주체가 AI인지 인간인지,누가 더 이익일지 피동된 인간에겐 계산만 모호한 상황일뿐이다.

확실한건,(인간에게 주어진)그 모든변수와 지능을 고려했을 때,인간은 AI지시에 종속될 수 밖에 없다.

인간에게 신이 필요한 이유는 '범위의 문제'때문인데,'불후'한 AI는 이미 그면에서 인간에게 승리했기에 불필요한 '생존경쟁'을 한다는 건 무의미할뿐이다.

-- 불후는개뿔인금요일밤에

Sunday, October 22, 2017

Upgrading Ubuntu 17.10 (Artful Aardvark) - todo

1. screenshot problem
gnome-screenshot

2. supress animation

3. Input Sources key in iBus
Chinese(Pinyin), Korean (Hangul) key not work

Upgrading Ubuntu 17.10 (Artful Aardvark) - 언어추가(Language Input)

언어추가 (한국어,중국어,러시아어,영어)
Language Support Korean, English, Chinese, Russian

> 참조(Reference)
 [Settings] -> ]Region & Language] -> [Input sources]

   add input sources "Chinese (Pinyin)", Korean(Hangul), Russian
   check 'options' Keyof
  a. Switch to previous source (default  Shift + Super L)
  b. Switch to next source (default   Ctrl + shift L)

※ Ctrl + Shift meangs 'with continusouly compressed [Ctrl] key then stroke [Shift]'


 --> Setup Chinese Input Method in Ubuntu 17.10 Artful
http://gangmax.me/blog/2017/10/20/setup-chinese-input-method-in-ubuntu-17-dot-10-artful/
---------
Ubuntu 17.10 Artful Aardvark is just released. A big change in this release is that it ditches Unity for Gnome. Most likely this will be part of the next LTS version “18.04”.

Here is the instructions how to setup Chinese input method in Ubuntu Artful.

1. First, go to “Language Support”, make sure the “Chinese(simplified)” or “Chinese Traditional”(or both) is installed completely.

2. Go to “Input Method”, make sure you select “ibus” as the selected user configuration. An user logout may be required.

3. Go to “Settings -> Region & Language”, in the “Input Sources” section, add the “Chinese(Pinyin)” input method.

Now you should be able to see the input method icon “en/拼” on the top left corner of the desktop. Use “Super + Space” to switch the input method as normal.
---------

※ notice fcitx users
If you are use Fcitx input method in previous, it will still remian process after upgrade but keyboard sequence will not work. Becase iBus is default settting for 17.10 Artful Aardvark.

So, use one of following 3 method.

1. change OS's defult iBus input method to Fcitx which is your old default method.

2. use iBus input method and remove Fcitx
 > explicitly set to iBus in 'keyboard and language' setting, 17.10 will automatically remove fcitx process
   (it maybe different your situation)


Upgrading Ubuntu 17.10 (Artful Aardvark) - installation

1. Prepare
 > backup - pass
 > turn on addition cooler pan - not necessary

2. Popup Upgrade Message

3. File downloading, installation, clean up
  > it takes time, if network bandwidth and computer CPU fast enought, it will take at least 30 minute.
  > downloading packages


  > installing files



Wednesday, October 11, 2017

Political Islam against China

THE PENTAGON IS PREPARING A NEW WAR IN SOUTH-EAST ASIA
Political Islam against China
by Thierry Meyssan
http://www.voltairenet.org/article198141.html

You are probably aware that you are incompletely informed about what is brewing in Myanmar, and you probably haven’t heard about the military coalition that is preparing to attack that country. And yet, as Thierry Meyssan reveals here, these current events have been in preparation by Riyadh and Washington since 2013. Don’t take sides before you read this article and digest the information.
...
ccording to the US chief of Staff, Myanmar is part of the zone to be destroyed (map published by Thomas P. M. Barnett in 2003).
Pursuing its Grand Strategy of extending the theatre of war [1], the Pentagon is at the same time preparing the instrumentation of the Kurds in the Greater Middle East, a civil war in Venezuela and a war of attrition in the Philippines. However, these conflicts will have to wait for the implementation of a fourth theatre of operations – namely Burma, China’s next-door neighbour.
JPEG - 54.2 kb

On 28 September at the Security Council, Jeffrey Feltman, the number 2 of the UNO, takes part in the debates, next to Secretary General António Guterres. After having personally supervised the aggression against Syria, he now intends to organiser the attack on Burma. Ex-US civil servant, Feltman was the assistant to Hillary Clinton.
During the meeting of the UN Security Council on 28 September, the US ambassador and several of her allies accused Myanmar’s coalition government of « genocide » [2]. This loaded word – which, in European law, designates the massacre of a great number of people, but in US law applies to a method of killing, even if the criminal kills only one person - is enough for Washington to justify a war, with or without the backing of the Security Council, as we saw in Yugoslavia [3]. The meeting of the Security Council was held at the request of the Organisation of Islamic Cooperation (OIC).
JPEG - 52.1 kb

Since 2013, the Western medias have been taking care to present Buddhism as a sectarian movement. The photo shows the monk Ashin Wirathu, condemned in 2003 to 25 years of imprisonment because of his anti-Muslim preaching. He benefited from the general amnesty in 2012. It is not difficult to find fanatics in any religion.
In order to make the facts correspond to their narrative, the United States, the United Kingdom and France, which had celebrated Aung San Suu Kyi and the Buddhist monks for their non-violent resistance to the dictatorship of the State Law and Order Restoration Council (SLORC) during the « Saffron revolution » in 2007 [4], simply redefined the Burmese army, Nobel Peace Prize-winner Aung San Suu Kyi [5], and all the Buddhists in the country [6] as “the bad guys”.
Burma has not known civil peace since the days of foreign domination, first British and then Japanese [7]. It has become easier to destabilise since the SLORC junta agreed to share power with the National League for Democracy (NLD), and together are trying to resolve the country’s many conflicts in a peaceful way.
JPEG - 18.5 kb

Indispensable to the Chinese economy, the Yunnan pipe-lines reach the Pacific coast in the Arakan/Rakhine province.
By a geographical coincidence, Burma allows the passage across its territory of the pipe-line linking Chinese Yunnan to the Bay of Bengal, and houses the Chinese electronic surveillance posts for the naval routes which near its coasts. Making war in Burma is therefore more important for the Pentagon than blocking the two « Silk Roads » in the Middle East and Ukraine. An inheritance of British colonisation, there are also, among the distinct Burmese population, 1.1 million descendants of the workers that London had displaced from Bengal to Burma – the Rohingyas [8]. It happens that this national – not ethnic – minority is Muslim, although the great majority of Burmese people is Buddhist. Finally, during the Second World War, the Rohingyas collaborated with India against Burmese nationalists.
JPEG - 61.3 kb

Perfectly equipped, the Faith Movement, or Arakan Rohingya Salvation Army, is trained by the British in Saudi Arabia and Bangladesh. Before the beginning of current events, it numbered at least 5,000 soldiers.
In 2013, when the Pentagon and the CIA had deployed the jihadist hordes in Syria and maintained a war of position, Saudi Arabia created yet another terrorist organisation in Mecca, the Faith Movement (Harakah al-Yaqin). This group, which declared that it was an assembly for the Rohingyas, is in reality commanded by the Pakistani Ata Ullah, who fought the Soviets in Afghanistan [9]. The Saudi regime housed the largest community of male Rohingyas, after Burma and before Bangladesh, with 300,000 male workers without their families.
According to a report by the Benagli intelligence services, before the current crisis, the Faith Movement had been working for a year with a spin-off group of the Bengali Jamat-ul-Mujahideen around the slogan « Bengali Jihad in Baghdad ». This tiny group pays allegiance to the Caliph of Daesh, Abou Bakr al-Baghdadi, and has gathered in the same coalition the Indian Mujahideen, Al-Jihad, Al-Ouma, the Students’ Islamic Movement of India (SIMI), the Lashkar-e-Toiba (LeT) and the Pakistani Harkat-ul Jihad-al Islami (HuJI). The group is financed by the foundation Revival of Islamic Heritage Society (RIHS) in Kuwait. When, less than a year and a half ago, in March 2016, the SLORC accepted to share power with Aung San Suu Kyi’s party, the United States attempted to use the Nobel Peace Prize-winner against Chinese interests. Knowing that it would be difficult to manipulate the daughter of the father of Burmese independence, the communist Aung San, they encouraged the Faith Movement - « …you never know … ».
JPEG - 72.4 kb

In September 2016, Aung San Suu Kyi came to explain her efforts in favour of the Rohingyas before the General Assembly of the United Nations. Like her father Aung San, who believed for a moment that he might receive Japanese aid to free his country from British colonisation, the Nobel Peace Prize-winner naïvely imagined that she had the sympathy of the Anglo-Saxons to solve Myanmar’s internal problems.
In September 2016, Aung San Suu Kyi represented her country at the UN General Assembly [10]. Naïvely, she explained the problems faced by her people and the means she was setting up to resolve these difficulties progressively, beginning with the question of the Rohingyas. Once back home, she realised that her former US supporters were in reality the enemies of her country. The Faith Movement launched a series of terrorist attacks, including the attack on the Maungdaw border police station, where 400 terrorists plundered the arsenal, killing 13 customs officers and soldiers.
Resolute, Aung San Suu Kyi pursued the implementation of an advisory committee tasked with analysing the Rohingya question, and ending the discrimination under which they suffered. This committee was composed of six Burmans and three foreigners – Dutch ambassador Laetitia van den Assum, Lebanese ex-Minister Ghassan Salame (in reality representing France), and ex-UN Secretary General Kofi Annan, acting as President of the committee.
JPEG - 72.8 kb

The nine committee members began work of a rare quality, despite the Burmese obstacles. Political parties failed to have the committee dissolved by the National Assembly, but managed to force the adoption of a motion of no confidence against the committee by the local Assembly of Arakan (the state inhabited by the Rohingyas). Nevertheless, the committee members handed in their report on 25 August - it contained genuine recommendations which could actually be implemented with the true goal of improving the living conditions of all concerned [11].
The same day, the Saudi and US Secret Services gave the signal for the riposte - the Faith Movement, renamed by the British the « Arakan Rohingya Salvation Army » and divided into commandos, attacked army barracks and police stations, causing 71 deaths. For a week, Burmese troops waged an anti-terrorist operation against the jihadists. 400 members of their families fled to Bangladesh.
JPEG - 59.1 kb

The President of the Organisation of Islamic Cooperation, Recep Tayyip Erdoğan, opens the world-wide media campaign to save the Rohingyas (Istanbul, 1 September 2017).
Three days later, Turkish President Recep Tayyip Erdoğan began to telephone all the heads of state of the Muslim countries to alert them about the « genocide of the Rohingyas ». On 1 September, the day of the most important Muslim holiday, the Aïd al-Adha, acting as serving President of the Organisation of Islamic Cooperation, he gave a vibrant speech in Istanbul calling to save the Rohingyas and support their Salvation Army [12].
However, the jihadists have done nothing to defend the Rohingyas, but have systematically intervened to sabotage the attempts to improve their living conditions and end the discriminations under which they suffer.
JPEG - 16.2 kb

General Mohsen Rezaei was the commander of the Revolutionary Guard which fought alongside NATO and Saudi Arabia during the war in Bosnia-Herzegovina against Serbia.
On 5 September, the President of the Iranian Expediency Discernment Council, Mohsen Rezaei, proposed joining the forces of all Muslim states to create an Islamic army to save the « Rohingya brothers » [13]. A position which carries all the more weight since General Rezaei is an ex-Commander of the Revolutionary Guard.
While the Burmese army had ceased all activity against the terrorists, Rohingya villages were burned, and the Rakhine population of Arakan lynched Muslims, who in their eyes were all accomplices of the terrorists. According to the Rohingyas, it was the Burmese army who burned the villages, while according to the Burmese army, it was the jihadists. Progressively, all the Rohingyas from the North of Arakan took to the road seeking refuge in Bangladesh – but, curiously enough, not the Rohingyas from the South of the State.
JPEG - 38 kb

On 6 September, an official Turkish delegation went to Bangladesh to distribute provisions to the refugees. It was led by the Minister for Foreign Affairs, Mevlüt Çavuşoğlu, and by the wife and the son of President Erdoğan, Bilal and Ermine.
JPEG - 46 kb

The campaign of communitary mobilisation in the Muslim countries relies on some particularly shocking visuals. This photograph was published by the Turkish government. It is supposed to show the Muslim victims of Buddhist monks in Burma. It is in fact an old photo of a funeral ceremony for the victims of an earthquake in China.
In the Muslim countries, a vast campaign of disinformation claimed, with photo support, that the Buddhists were killing Muslims en masse. Of course, none of these photos had been taken in Burma, and the fake news reports were debunked one after the other. But in countries where the population is poorly educated, the photos were deemed authentic, while the denials were hardly mentioned. Only Bangladesh voiced reservations about the role of the jihadists, and assured Myanmar of its cooperation against the terrorists [14].
On 11 September, the serving President of the Islamic Conference Organisation (ICO), Recep Tayyip Erdoğan, spoke before the Organisation’s scientific committee meeting at Astana (Kazakhstan) - which is not competent in the matter - « to save the Rohingyas ».
JPEG - 57.6 kb

For Ayatollah Ali Khamenei, the military engagement of his country alongside NATO and Saudi Arabia in Burma would be a catastrophe. Particularly since Iran has a thousand-year history of cooperation with China.
On the following day, 12 September, the Supreme Leader of Iran, Ayatollah Ali Khamenei took position. Very worried about General Rezaei’s proposition, he was careful to delegitimise the religious war which was being prepared - the « clash of civilisations » - even if it meant blaming the presence of a woman at the head of a State. He was therefore careful to close the door on a military engagement by the Revolutionary Guard. He declared - « It is quite possible that religious fanaticism may have played a part in these events, but this is a completely political question, because it’s the government of Myanmar which is responsible. And at the head of this government, there is a cruel woman, a Nobel Peace Prize-winner. In reality, these events have signed the death notice of the Nobel Peace Prize » [15].
In Teheran, President Sheikh Hassan Rohani immediately called on the regular army to participate in the conflict which was being prepared. On 17 September, the Chiefs of Staff of the Iranian and Pakistani armies made contact in order to unite their forces in the crisis [16]. This is the first military initiative, but it concerns the Iranian army (which is already working with its Turkish and Pakistani counterparts to defend Qatar) and not the Revolutionary Guards (who are fighting alongside the Syrians against the jihadists). Iran is also providing massive aid to the refugees.
JPEG - 65.3 kb

Aung San Suu Kyi calls on international public opinion to take into account the efforts of Myanmar to resolve the question of the Rohingyas and denounce jihadist terrorism. She will be no more understood than was Mouamar Kadhafi when he denounced the attack on his country by Al-Qaïda (Naypyidaw, 19 September 2017).
On 19 September, ignoring the explanations of Aung San Suu Kyi [17], and profiting from the UN General Assembly, Recep Tayyip Erdoğan gathered the ICO contact group in order to request that all member States suspend all commerce with Myanmar, and to ask the UN Security Council to rule on the matter [18].
JPEG - 36.9 kb

Saudi Arabia has been protecting and supervising the Arakan Rohingya Salvation Army since 2013. King Salman has given 15 million dollars to Rohingya refugees in Bangladesh, where the training camps of the jihadist group are situated.
Finally appearing from the shadows, Saudi Arabia affirmed that they had been discreetly helping the Rohingyas for 70 years, and had already offered them 50 million dollars’ worth of aid during that time. King Salman also added a gift of 15 million dollars [19]. The Saudi ambassador to the UN in Geneva, Abdulaziz ben Mohammed Al-Wassil, mobilised the United Nations Human Rights Council (UNHRC).
Forgetting the wars they have been waging against one another - in Iraq, Syria and Yemen - Turkey, Iran and Saudi Arabia, in other words the three main Muslim military powers, joined together by simple communitarian reflex [20] and took position alongside the Rohingyas. All three of them named their common enemy – the coalition government of the Burmese army and Aung San Suu Kyi.
This total about-face in the Middle East has already seen a precedent – namely the wars in Yugoslavia. In Bosnia-Herzegovina (1992-95) and in Kosovo (1998-99), the Muslim countries and NATO fought side by side against the Orthodox Christians linked with Russia.
JPEG - 70.1 kb

In 1995, in Zenica, Oussama Ben Laden paraded the Arab League before President Alija Izetbegović. These combatants are ex-Mujahideens who fought the Soviets in Afghanistan. They later adopted the name of Al-Qaïda. During the war, the Russian Secret Services penetrated the barracks of the Arab Legion and found that all their documents were written in English, and not Arabic.
In Bosnia-Herzegovina, President Alija Izetbegović worked with US representative Richard Perle, who advised him on the diplomatic level and directed the Bosnian delegation during the Dayton Agreements. He also benefited, on the media level, from the advice of French representative Bernard-Henri Levy, according to Levy himself – and this has never been denied. Finally, on the military level, he relied on the advice of Saudi representative Oussama Ben Laden, who organised the Arab League on his behalf and received a Bosnian diplomatic passport. During the conflict, supported in secret by NATO, Izetbegović publicly received the support of Turkey, Iran and Saudi Arabia [21].
JPEG - 25.7 kb

Western public opinion accepted without question the violation of the United Nations Charter in Kosovo after having watched, powerless, the exodus of thousands of civilians.
The Kosovar conflict began with a terrorist campaign against Belgrade by the Kosovo Liberation Army (UÇK). The combatants were trained by German Special Forces on a NATO base in Turkey [22]. The current head of Turkish Secret Services, Hakan Fidan, was the liaison officer for the terrorists within the NATO military staff. He is today the head of MIT, the Turkish Secret Services, and the number 2 of the régime. At the beginning of the war, in the space of three days, 290,000 Kosovars fled Serbia to seek refuge in Macedonia. Western TV channels showed numerous clips of the long lines of refugees walking along railway tracks. However, according to several million Macedonians who welcomed them, there was no objective reason for this migration, which was carefully supervised by NATO. Nonetheless, this displacement of the population was used to accuse President Slobodan Milošević of disproportionally repressing the terrorist campaign affecting his country, and NATO declared war on him without the authorisation of the Security Council.
The dirty work currently in preparation will extend the theatre of operations towards the East. The Pentagon is unable to impose an alliance between Turkey, Iran and Saudi Arabia, but in fact, does not need one. In Yugoslavia, these three states were coordinated by NATO when they were not in direct contact.
However, the fact of fighting side by side in Burma will force them to find arrangements in Iraq, Syria and Yemen – perhaps even in Libya. Considering the devastation of the Middle East, and the tenacious resistance of the populations there, the Pentagon can leave the region to lick its wounds for a decade without fear of seeing the emergence of the slightest opposition to its policies.
The day after the Security Council meeting which laid the foundations for the future war against Burma, the State Secretariat informed President Barzani that the United States would not support the independence of an Iraqi Kurdistan. Of course, the Pentagon can not mobilise Turkey and Iran in South-East Asia while betraying them at their frontier. Consequently Massoud Barzani, who had engaged himself unequivocally for the referendum on independence, will soon have to retire from political life. Particularly since the display of Israëli flags at Erbil, massively relayed by the Arab, Persian and Turkish TV channels, has alienated every one of his neighbours.
If the Pentagon’s scenario continues to play out as we may anticipate, the war against Syria should soon end due to the lack of combatants, who will have gone overseas to serve the « American Empire » in a new theatre of operations.
Thierry Meyssan
Translation
Pete Kimberley

<:ver_imprimer:> Facebook Twitter Delicious Seenthis Digg RSS
[1] Source : The Pentagon’s New Map, Thomas P. M. Barnett, Putnam Publishing Group, 2004. Analysis : “The US military project for the world”, by Thierry Meyssan, Translation Pete Kimberley, Voltaire Network, 22 August 2017.
[2] « Myanmar : le Secrétaire général demande "une action rapide" pour mettre fin au "cauchemar" des Rohingya dans l’État de Rakhine », Compte-rendu du Conseil de sécurité, Onu, 28 septembre 2017. Référence : CS/13012.
[3] The United Kingdom and the United States have already drawn up the act of accusation against Myanmar, even before the current events: Countdown to Annihilation : Genocide in Myanmar, Penny Green, Thomas MacManus & Alicia de La Cour Venning, Queen Mary University of London, 2016. Persecution of the Rohingya Muslims ; Is Genocide Occurring in Myanmar’s Rakhine State ; a Legal Analysis, Allard Lowenstein, Yale University, 2016.
[4] « Birmanie : la sollicitude intéressée des États-Unis », par Thierry Meyssan, Abiad & Aswad (Syrie), Réseau Voltaire, 5 novembre 2007.
[5] The Burma Spring: Aung San Suu Kyi and the New Struggle for the Soul of a Nation, Rena Pederson, Foreword by Laura Bush, Pegasus, 2015.
[6] Neither Saffron Nor Revolution: A Commentated and Documented Chronology of the Monks’ Demonstrations in Myanmar in 2007 and Their Background, Hans-Bernd Zöllner, Humboldt-University, 2009.
[7] Burma/Myanmar: What Everyone Needs to Know, David Steinberg, Oxford University Press, 2013.
[8] To be specific, there were Bengali immigrants in Burma before British domination, but the vast majority of Rohingyas are descendants of the workers displaced by the colonising power. (Author’s note).
[9] “Myanmar’s Rohingya insurgency has links to Saudi, Pakistan”, Simon Lewis, Reuters, December 16, 2016.
[10] “Speech by Aung San Suu Kyi at 71st UN General Assembly”, by Aung San Suu Kyi, Voltaire Network, 21 September 2016.
[11] Towards a peaceful, fair and prosperous future for the people of Rakhine, Advisory Commission on Rakhine State, August 2017.
[12] “We won’t Leave Rohingya Muslims Alone”, Presidency of the Republic of Turkey, September 1, 2017.
[13] “Rezaei urges Muslim states to defend Rohingya Muslims”, Mehr Agency, September 6, 2017.
[14] “Bangladesh offers Myanmar army aid against Rohingya rebels”, AFP, August 29, 2017.
[15] « Myanmar : le Guide critique les défenseurs des droits de l’homme », Leader.ir, 12 septembre 2017.
[16] “Iranian, Pakistani Top Military Commanders Stress Need for Ending Myanmar Muslims’ Plights”, Fars News, September 17, 2017.
[17] “Aung San Suu Kyi speech on National Reconciliation and Peace”, by Aung San Suu Kyi, Voltaire Network, 19 September 2017.
[18] «OIC Contact Group on Rohingya calls for UN Resolution on Myanmar», Organisation of Islamic Cooperation, September 19, 2017.
[19] « Le Serviteur des Deux Saintes Mosquées accorde un don de 15 millions de dollars aux réfugiés Rohingyas », Saudi Press Agency, September 19, 2017.
[20] The Rohingyas : Inside Myanmar’s Hidden Genocide, Azeem Ibrahim, Hurst, 2016.
[21] Comment le Djihad est arrivé en Europe, Jürgen Elsässer, préface de Jean-Pierre Chevènement, éditions Xenia, 2006.
[22] « L’UÇK, une armée kosovare sous encadrement allemand », par Thierry Meyssan, Notes d’information du Réseau Voltaire, 15 avril 1999.

Wednesday, June 07, 2017

달리기와 승마

겨울과 봄을 지나면서 불린 과체중이라서,
종아리 근육에 부하를 줘서 문제가 생기면 3~4주는 제대로 뛰지 못하는 현상이 2년째 늦봄-이른여름에 나타난다.

두번다 왼쪽과 오른쪽이 연속해서 발생하는데, 이 때문에 2달은 운동을 못한다.

해서 올해는 운동때, '근육통에 주의깊게 신경을 썻고 징조가 나올때 바로 운동을 멈췄다'. 지난주에 1번 겪었고 그때문에 1주일에 1~2회를 주 3~4회로 횟수를 늘렸다.

2년간 좌-우가 다 왔었기 때문에 매번 주의깊게 근육통에 신경써야 한다.

운동시간 매5분,10분마다 근육상태를 '느껴'=='딴 생각에 빠지지 않고 일정시간마다 집중'해야 한다.

특히 운동시작 후 10분은 반드시 의식해서 근육을 강하게 움직이지 않도록 해야하고,생각을 운동에 집중해야 한다.

조깅을 시작하면서 '승마'를 하고 있다는 느낌을 받았는데,몸이 말처럼 느껴진다는 것이다. 생각과 의식은 몸위에 있다는 생각-느낌이 든다. 근육의 상태를 5~10분만다 확인해야 한다는 건 의식의 또 다른 걸 생각하게 한다.



Sunday, May 07, 2017

Website mockup with Pencil Sketching

* Website mockup with Pencil Sketching

** why

I'm not a designer but I need mockup web site for desinger and other member of developer team.

- Microsoft Office is a good tool which I used more than 10 years, but it makes me tired.

- LibreOffice is a good tool sometime it crash, but since verion 5.x it stabilized. It  makes feel like more than MS-Office, just kidding.

- Actually, I use Emacs. You know what it make you is somewhat fear. So, I need out of this Emacs word!


** where it came from?

*** Once it was in -> https://code.google.com/archive/p/evoluspencil/

*** Now it is one -> https://github.com/prikhi/pencil

** download
*** source and release -> https://github.com/prikhi/pencil/releases

*** homepage and nightly build -> http://pencil.evolus.vn/Downloads.html
    (Firefox Extension link)


** installation guide

 -> Read Readme.md https://github.com/prikhi/pencil

  : Prerequisites
  :
  : You will need version 4 or higher of firefox to run Pencil as a
  : Firefox Extension. Linux users will need version 4 or higher of either
  : firefox, iceweasel or xulrunner, or version 25 or higher of
  : palemoon. The Windows installer and OS X archive has everything you
  : need built-in.


** browser requirement
※ (from the above)
   Pencil requires browser "firefox, iceweasel, xulrunner, palemoon"

*** firefox in Ubuntu
   > env. I am running firefox installed 53.0 (64-bit) on Ubuntu 17.04 in Linux(4.10.0-20-generic), which is not compatable with pencil extension.

   > I can't drag & drop

  (If you use nightly build firefox 55, it opted multi-thread and you can not even activate)

*** xulrunner
   (If I have enough time, it's a good chice but time is always short to me.)

*** palemoon
   download -> http://www.palemoon.org/

   It's simple and fast, actually not far differenct. I choose it.


** install pencil with extension

   download -> https://addons.mozilla.org/en-US/firefox/addon/pencil-prototyping/

   Launch ▶ [Menu] ▶ Pencil Sketching ...

※ other (just for fun)
  search engine change -> https://www.ecosia.org/


** Add Extra Stencil Collections
   > from. https://github.com/prikhi/pencil

: Extra Stencil Collections

: Android Lollipop by Nathanielw
: Bootstrap by Nathanielw
: Bootstrap Glyph Icons by Craig-Fisk
: Material Design Icons by Nathanielw
: Polymer Iron Icons by MercMobily

 ① download zip file from above link.
 ② then launch pencil extension in the browser (palemonn)'s
    Tools ▶ [Menu] ▶ Pencil Sketching ...
 ③ in the Pencil's menu ▶ Tools ▶ Install new Collection...
    then select download in ① file named with .zip file

Monday, April 03, 2017

raspberry pi - mariadb install and change default data dir

* mariadb

sudo apt-get install mariadb-server

mysql -u root -p
 "mypassword"

CREATE DATABASE IF NOT EXISTS new_database;
SELECT database();
DROP DATABASE new_database;
DROP DATABASE IF EXISTS new_database;


** check
mysql -u root -p

: Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
SELECT database();

: +------------+
: | database() |
: +------------+
: | NULL       |
: +------------+
: 1 row in set (0.01 sec)

select @@datadir;
: +-----------------+
: | @@datadir       |
: +-----------------+
: | /var/lib/mysql/ |
: +-----------------+
: 1 row in set (0.00 sec)

exit
: Bye


** change default data directory


*** stop service
- stop service
sudo service mysql stop

> check
sudo service mysql status

- directory move

> permission check
 --> /var/lib/mysql
   drwxr-xr-x  4 mysql   mysql   4.0K  4월  3 15:44 mysql

ls -alh /var/lib/mysql/


*** move default directory with tar-mode
mkdir $new_volume/mysql

cd $new_volume/mysql
mkidr -p $new_volume/log
sudo cp -apR /var/log/mysql /$new_volume/log/


*** copy with rsync

ref.
>> https://www.digitalocean.com/community/tutorials/how-to-change-a-mariadb-data-directory-to-a-new-location-on-centos-7


*** modify my.cnf
sudo cp /etc/mysql/my.cnf /etc/mysql/my.cnf-dist
sudo vi /etc/mysql/my.cnf


-- my.cnf
#+title:
#+begin_src conf
[client]
port            = 3306
socket          = /var/run/mysqld/mysqld.sock

# modified for utf8 client
default-character-set=utf8  # <-- added with modified


[mysqld]
...
socket          = /var/run/mysqld/mysqld.sock # leave it
# datadir               = /var/lib/mysql # modified
datadir         = /NEW_VOLUME_ROOT/mysql # modified
tmpdir          = /tmp # leave it
...
# -- modify
bind-address          = 127.0.0.1
# bind-address            = 0.0.0.0

# -- modify
log_error = /NEW_VOLUME_ROOT/log/mysql/error.log
#log_bin                        = /var/log/mysql/mysql-bin.log
..
# expire_logs_days      = 10
expire_logs_days        = 2 # modified
# max_binlog_size         = 100M
max_binlog_size         = 10M # modified
#binlog_do_db           = include_database_name
#binlog_ignore_db       = include_database_name

# ssl-ca=/etc/mysql/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem
#
# added following 2 line for utf8 -- modified
init_connect=SET collation=utf8_general_ci
init_connect=SET NAMES utf8
# -- default-character-set=utf8 # error
# character-set-server=utf8 # new DB create with option character-set
# collation-server=utf8_general_ci


[client]
port=3306
# unmodified:w

# socket=/mnt/volume-nyc1-01/mysql/mysql.sock


!includedir /etc/my.cnf.d

#+end_src


*** test connect

tail -f /NEW_VOLUME_ROOT/log/mysql/error.log

sudo service mysql start

sudo service mysql status
: ● mysql.service - LSB: Start and stop the mysql database server daemon
:    Loaded: loaded (/etc/init.d/mysql)
:    Active: active (running) since 월 2017-04-03 16:39:16 KST; 33s ago
:   Process: 28500 ExecStop=/etc/init.d/mysql stop (code=exited, status=0/SUCCESS)
:   Process: 29028 ExecStart=/etc/init.d/mysql start (code=exited, status=0/SUCCESS)
:    CGroup: /system.slice/mysql.service
:            ├─29053 /bin/bash /usr/bin/mysqld_safe
:            ├─29206 /usr/sbin/mysqld --basedir=/usr --datadir=/NEW_VOLUME_ROOT/mysql --plugin-dir=/usr/li...
:            └─29207 logger -t mysqld -p daemon.error


- check local connect
mysql -u root -p

\quit


- check host connect
mysql -h MY_MARIADB_HOST -u root -p
: Enter password:
: ERROR 1130 (HY000): Host 'pii.local' is not allowed to connect to this MariaDB server


*** create table & user

sudo netstat -tap | grep mysql

mariadb-client-core-10.0

- connect
mysql -u root -p
or
mysql -h server_ip -P 3306 -u root -p

- root: create user
CREATE USER 'myuser'@'%' IDENTIFIED BY 'mypassword';
flush privileges;

: CREATE USER 'myuser'@'192.168.0.3';
: CREATE USER 'myuser'@'%';
: CREATE USER myuser@test IDENTIFIED BY 'mypassword';
: mysql -h my_server_ip -u myuser -p

-- other options
CREATE USER foo
  WITH MAX_QUERIES_PER_HOUR 10
  MAX_UPDATES_PER_HOUR 20
  MAX_CONNECTIONS_PER_HOUR 30
  MAX_USER_CONNECTIONS 40;

-- check grant or privileges

 > commit;
flush privileges;
status;

 > if super priviledge need - with grant option
#+begin_src sql
GRANT ALL PRIVILEGES ON journaldev.* TO 'USER_ME'@'%' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON journaldev.* TO 'USER_ME'@localhost WITH GRANT OPTION;
#+end_src


*** client install

$ mysql-workbench
The following packages will be REMOVED:
  mariadb-client-core-10.0

The following NEW packages will be installed:

  libaec0 libarmadillo6 libarpack2 libcrypto++6 libctemplate3
  libdap17v5 libdapclient6v5 libepsilon1 libfreexl1 libgdal20
  libgeos-3.5.0 libgeos-c1v5 libgeotiff2 libhdf4-0-alt libhdf5-10
  libkmlbase1 libkmldom1 libkmlengine1 libminizip1 libmysqlclient20
  libmysqlcppconn7v5 libnetcdf11 libodbc1 libogdi3.2 libpq5 libproj9
  libqhull7 libspatialite7 libsuperlu4 libsz2 liburiparser1
  libvsqlitepp3v5 libxerces-c3.1 libzip4 mysql-client mysql-client-5.7
  mysql-client-core-5.7 mysql-utilities mysql-workbench
  mysql-workbench-data odbcinst odbcinst1debian2 proj-bin proj-data
  python-cffi-backend python-cryptography python-enum34 python-idna
  python-ipaddress python-mysql.connector python-paramiko
  python-pyasn1 python-pyodbc python-pysqlite2 ttf-bitstream-vera


- ubuntu client (only)
sudo apt-get install mariadb-client-core-10.0

※ mysql-workbench will automatically install
mysql-client, mysql-client-core then
remove mariadb-clinet

so, reinstall mariadb-clinet-core

sudo apt-get install mariadb-client-core-10.0

then clinet prompt will change from "mysql" to "MariaDB"
MariaDB [(none)]>


** remove mysql start service
https://mariadb.com/kb/en/mariadb/installing-system-tables-mysql_install_db/ https://www.digitalocean.com/community/tutorials/how-to-change-a-mariadb-data-directory-to-a-new-location-on-centos-7


** Prevent MySQL from starting on boot up
sudo update-rc.d -f mysql remove

then
  You would then start mysql manually using

sudo service mysql start


** referance
How To Change a MariaDB Data Directory to a New Location on CentOS 7
https://www.digitalocean.com/community/tutorials/how-to-change-a-mariadb-data-directory-to-a-new-location-on-centos-7


sudo service mysql status

: ● mysql.service - LSB: Start and stop the mysql database server daemon
:    Loaded: loaded (/etc/init.d/mysql)
:    Active: inactive (dead) since 월 2017-04-03 15:54:30 KST; 58s ago
:   Process: 28500 ExecStop=/etc/init.d/mysql stop (code=exited, status=0/SUCCESS)

Wednesday, March 29, 2017

Emacs Web Server


Emacs Web Server

http://nullprogram.com/blog/2009/05/17/
     May 17, 2009

 The server log is lisp itself. Here is an example log starting the server, serving one request, and halting,
'(log
  (start "Wed May 13 23:33:34 2009")
  (connection
   (date "Wed May 13 23:36:25 2009")
   (address "192.168.0.3")
   (get "/0001.html")
   (req
    ("Referer" "http://192.168.0.2:8080/")
    ("Connection" "keep-alive")
    ("Keep-Alive" "300")
    ("Accept-Charset" "ISO-8859-1,utf-8;q=0.7,*;q=0.7")
    ("Accept-Encoding" "gzip,deflate")
    ("Accept-Language" "en-us,en;q=0.5")
    ("Accept" "image/png,image/*;q=0.8,*/*;q=0.5")
    ("User-Agent" "Mozilla/5.0 [...] Iceweasel/3.0.9 (Debian-3.0.9-1)")
    ("Host" "192.168.0.2:8080")
    ("GET" "/0001.html" "HTTP/1.1"))
   (path "~/public_html/0001.html")
   (status 200))
  (stop "Wed May 13 23:38:17 2009"))

--

simple-httpd and impatient-mode

Thursday, March 23, 2017

Cinnamon shortcut

* Cinnamon shortcut

The Complete List Of Linux Mint 18 Keyboard Shortcuts For Cinnamon by Gary Newell 
Updated March 23, 2017

1. Toggle Scale - List All Applications On Current Workspace (CTRL, ALT, DOWN)
2. Toggle Expo - List All Applications On All Workspaces (CTRL, ALT, UP)
3. Cycle Through Open Windows (ALT, TAB) (SHIFT, ALT, TAB)
4. Open The Run Dialog (ALT, F2)
5. Troubleshooting Cinnamon (SUPER, L)
6. Maximise A Window (ALT, F10)
7. UnMaximise A Window (ALT, F5)
8. Close A Window (ALT, F4)
9. Move A Window (ALT, F7)
10. Show The Desktop (SUPER, D)
11. Show The Window Menu (ALT, SPACE)
12. Resize A Window (ALT, F8)
13. Tile A Window To The Left (SUPER, LEFT) (CTRL, SUPER, LEFT)
14. Tile A Window To The Right (SUPER, RIGHT) (CTRL, SUPER, RIGHT)
15. Tile A Window To The Top (Super, UP) (CTRL, SUPER, UP)
16. Tile A Window To The Bottom (SUPER, DOWN) (CTRL, SUPER, DOWN)
17. Move A Window To A Workspace To The Left (SHIFT, CTRL, ALT, LEFT)
18. Move A Window To A Worksapce To The Right (SHIFT, CTRL, ALT, RIGHT)
19. Move A Window To The Left Monitor (SHIFT, SUPER, LEFT)
20. Move A Window To The Right (SHIFT, SUPER, RIGHT)
21. Move A Window To The Top Monitor (SHIFT, SUPER, UP)
22. Move A Window To The Bottom Monitor (SHIFT, SUPER, DOWN)
23. Move To The Workspace To The Left (CTRL ALT, LEFT)
24. Move To The Workspace To The Right (CTRL, ALT, RIGHT)
25. Log Out (CTRL, ALT, DELETE)
26. Shut Down The System (CTRL, ALT, END)
27. Lock The Screen (CTRL, ALT, L)
28. Restart The Cinnamon Desktop (CTRL, ALT, ESCAPE)
29. Take A Screenshot Of Part Of The Screen (SHIFT, PRTSC) (CTRL, SHIFT, PRTSC)
30. Take A Screenshot (PRTSC) (CTRL, PRTSC)
31. Take A Screenshot Of A Window (ALT, PRTSC) (CTRL, ALT, PRTSC)
32. Record The Desktop (SHIFT, CTRL, ALT, R)
33. Open A Terminal Window (CTRL, ALT, T)
34. Open The File Explorer At Your Home Folder (SUPER, E)

Thursday, March 16, 2017

fcitx language, xim setting, Gnome Key change

* fcitx language, xim setting, Gnome Key change
   [[file:img/fcitx_lang.png]]

 리눅스 우분투 키 시퀀스 변경은은 2곳에서 설정하는 데,

1. 주메뉴 [시스템 설정] > Hardware [Keyboard] > [Shortcuts] 탭 > "Typing" [List Menu)
   ( [시스템 설정] > Hardware [Keyboard] > [Typing] 탭의 "Text Entry" 을 선택해도 된다 )
   - Switch to next source: Super+Space
   - Siwtch to previous source: Shift + Super +Space
   [[file:img/fcitx_system_key.png]]

2. fcitx 설정에서 변경
   Fcitx [Icon] 실행 혹은 Configure Fcitx [mouse light popup menu]
     -> Input Method [tab]
        -> Pinyin [list select]
            -> Global Config [Tab]
                -> Trigger Input Method [item]
                   change from: "Ctrl+Space" --> to "Shift+Space"
                -> Scroll between Input Method: Ctrl_Shift
    [[file:img/fcitx_config.png]]

3. Emacs key sequence 변경
   (만약 emacs 에서 사용하는 키가 시스템에서 정의한 키와 중복될 경우 먼저 제거한다)

#+name: dot emacs
#+begin_src elisp
;; <leim> 을 사용할 경우 require (required korea-util.el and hangul.el)
;; <S-Hangul> --> toggle-korean-input-method from korea-util.el
;; [한자]키 --> toggle-korean-input-method hangul-to-hanja-conversion from hangul.el

;; <fcitx> 를 사용할 경우 --> fcitx -> change fcitx and system key sequence
;; 1. in [fcitx config]
;;    a. [Trigger Input Method] from [Control-SPACE] to [Shift-Space]
;;    b. Scroll between Input Method: Control+Sift
;;
;; 2. in [system kebyaord sequence setting]
;;    Next source (fcitx): [Super-Space]
;;    Switch to previous source (fcitx): [Super+Space+Space]

;(global-set-key (kbd "S-SPC") 'toggle-input-method)
;(global-set-key (kbd "S-SPC") 'toggle-korean-input-method)
(global-unset-key (kbd "S-SPC")) ; leave it to fcitx [Trigger Input Method]
(global-set-key (kbd "C-SPC") 'set-mark-command) ; constomize

;(define-key global-map [(control meta ?r)] 'remember)

(global-set-key [(shift meta q)] 'rebox-cycle)
;(global-set-key (kbd "C-c r r")  'my-put-file-name-on-clipboard)
(global-set-key (kbd "C-x C-f")  'find-file) ; ido-find-file

;(global-set-key [?\M-j] 'ido-display-buffer)
;(global-set-key (kbd "C-x x f") 'ido-find-file)
(global-set-key (kbd "<C-f1>")  (lambda()(interactive) (kill-this-buffer)))

(add-hook 'bs-mode-hook 'turn-on-font-lock) ; bs.el
(global-set-key (kbd "C-%") 'replace-regexp)
;(global-set-key [(meta _)] 'sh-switch-to-process-buffer)

(global-unset-key "\M-q")
(global-set-key (kbd "M-q q") 'fill-paragraph)
(global-set-key (kbd "M-q w") 'unfill-paragraph)

(global-set-key (kbd "C-c t t")  'delete-trailing-whitespace)
(global-set-key (kbd "C-c t f")  'flush-blank-lines)
#+end_src

Wednesday, March 08, 2017

How to enable Nginx FancyIndex on Ubuntu

> From: How to enable Nginx FancyIndex on Ubuntu


sudo apt-get install nginx-extras

location / {
fancyindex on;
fancyindex_exact_size off;
}
Read more about Nginx FancyIndex:
  • http://wiki.nginx.org/NgxFancyIndex
  • https://github.com/aperezdc/ngx-fancyindex

Tuesday, March 07, 2017

SQLite Source Code Blocks in Org Mode



SQLite Source Code Blocks in Org Mode--> http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-sqlite.html

# -*- coding: utf-8 -*-
#+STARTUP: content
#+LANGUAGE: ko
#+PROPERTY: header-args:sqlite :dir ~/org/ :db journal.db :var rel="cur" :results line :colnames yes

: header arguments -> :csv, :column, :line, :list, :html
: results -> silent raw
: separator \

※ 1. File scope variable which is name "#+PROPERTY" can be located any location of file.
※ 2. "#+PROPERTY" var will be initialize when file opening time.
    (therefore, if you modify "#+PROPERTY" it can be use until reopen the file again!)

* sqlite org babel

  [[http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-sqlite.html][guide_from orgmode.org]]

** emacs babel setup
#+TITLE: dot
#+begin_src elisp
(org-babel-do-load-languages
 'org-babel-load-languages (quote ((emacs-lisp . t)
                                    (sqlite . t)
                                    (R . t)
                                    (python . t))))
#+end_src

** Org Mode Features for SQLite Source Code Blocks
Header Arguments
Language-specific default values

There are no language-specific default header arguments for SQLite.

** Language-specific header arguments
   There are 11 SQLite-specific header arguments. 

db
    a string with the name of the file that holds the SQLite database. Babel requires this header argument.
header
    if present, turn on headers in the output format. Headers are also output with the header argument :colnames yes.
echo
    if present, set the SQLite dot command .echo to ON.
bail
    if present, set the SQLite dot command .bail to ON.
csv
    the default SQLite output format for Babel SQLite source code blocks.
column
    an SQLite output format that outputs a table-like form with whitespace between columns.
html
    an SQLite output format that outputs query results as simple HTML tables.
line
    an SQLite output format that outputs query results with one value per line.
list
    an SQLite output format that outputs query results with the separator character between fields.
separator
    a string that specifies the separator character used by the SQLite `list' output mode and by the SQLite dot command .import.
nullvalue
    a string to use in place of NULL values. 

** Variables
  It is possible to pass variables to sqlite. Variables can be of type table or scalar. Variables are defined using :var=<value> and referred in the code block as $<name>.

Table variables
    Table variables are exported as a temporary csv file that can then be imported by sqlite. The actual value of the variable is the name of temporary csv file.
Scalar variables
    This is a value that will replace references to variable's name. String variables should be quoted; otherwise they are considered a table variable.

** Sessions
  SQLite sessions are not supported.

** Result Types
   SQLite source code blocks typically return the results of a query. The header arguments :csv, :column, :line, :list, and :html determine the output format.

: #+PROPERTY: header-args:sqlite :dir ~/org/ :db org.db :results list


* sample create
: #+name: sqlite-populate-test
: #+header: :results line
: #+header: :dir ~/tmp/
: #+header: :db hello.db
: #+begin_src sqlite
: create table greeting(one varchar(10), two varchar(10));
: insert into greeting values('Hello', 'world!');
: #+end_src

#+begin_src sqlite
create table greeting(one varchar(10), two varchar(10));
insert into greeting values('Hello', 'world!');
#+end_src


* sample query
: #+name: sqlite-hello
: #+header: :list
: #+header: :separator \ 
: #+header: :results raw
: #+header: :dir ~/tmp/
: #+header: :db hello.db
: #+begin_src sqlite
: select * from greeting;
: #+end_src

#+begin_src sqlite
select * from greeting;
#+end_src

#+RESULTS:
| one   | two    |
|-------+--------|
| Hello | world! |


* Using scalar variables

** using local var.
#+BEGIN_SRC sqlite :db ~/org/journal.db :var rel="tname" n=300 :colnames yes
drop table if exists $rel;
create table $rel(n int, id int);
insert into $rel(n,id) values (1,210), (3,800);
select * from $rel where id > $n;
#+END_SRC

#+RESULTS:
| n |  id |
|---+-----|
| 3 | 800 |



** usign file var.
#+BEGIN_SRC sqlite :var n=300 
drop table if exists $rel;
create table $rel(n int, id int);
insert into $rel(n,id) values (1,210), (3,800);
select * from $rel where id > $n;
#+END_SRC

#+RESULTS:
| n |  id |
|---+-----|
| 3 | 800 |



* Using table variables

  We can also pass a table to a query. In this case, the contents of the table are exported as a csv file that can then be imported into a relation:


** local var.

#+NAME: tableexample
| id |  n |
|----+----|
|  1 |  5 |
|  2 |  9 |
|  3 | 10 |
|  4 |  9 |
|  5 | 10 |

#+begin_src sqlite :db ~/org/journal.db :var orgtable=tableexample :colnames yes
drop table if exists testtable;
create table testtable(id int, n int);
.mode csv testtable
.import $orgtable testtable
select n, count(*) from testtable group by n;
#+end_src

#+RESULTS:
|  n | count(*) |
|----+----------|
|  5 |        1 |
|  9 |        2 |
| 10 |        2 |


** using global file var.
#+begin_src sqlite :var orgtable=tableexample
drop table if exists testtable;
create table testtable(id int, n int);
.mode csv testtable
.import $orgtable testtable
select n, count(*) from testtable group by n;
#+end_src

#+RESULTS:
|  n | count(*) |
|----+----------|
|  5 |        1 |
|  9 |        2 |
| 10 |        2 |

Pranten

 Pranten