Monday, May 30, 2016

BrowserAddonsView v1.05 - Web browser addons/plugins

http://nirsoft.net/utils/web_browser_addons_view.html

BrowserAddonsView v1.05 - Web browser addons/plugins

Monday, May 23, 2016

emacs client for Mail - mu4e

;;;; Google mail 을 사용하기 위해서는 google 에서 [보안이 약한 기기에서 접속 허용]을 승인해 줘야만 접속할 수 있다.
;;;; all set then --> M-x mu4e

;;;; ----------------------------------------------------------------------

;;;; src: https://github.com/djcb/mu

;;;; ----------------------------------------------------------------------
;;;; ref. mu4e - http://qdot.github.io/conf_emacs/
;(require 'mu4e-vars)
;
;(when linux-p
;  (setq mu4e-mu-binary "/home/qdot/usr/bin/mu"))
;
;(when macosx-p
;  (setq mu4e-mu-binary "/opt/homebrew/bin/mu"))
;
;(setq mu4e-maildir "~/Mail") ;; top-level Maildir
;(setq mu4e-html2text-command "w3m -dump -T text/html")
;(setq mu4e-view-prefer-html t)
;(setq mu4e-use-fancy-chars t)
;(setq mu4e-get-mail-command "offlineimap")
;(setq mu4e-update-interval 300)
;(setq mu4e-attachment-dir  "~/Downloads")
;
;(when (fboundp 'imagemagick-register-types)
;  (imagemagick-register-types))
;(setq mu4e-view-show-images t)
;(setq mu4e-view-show-addresses t)

;;;; ----------------------------------------------------------------------
;;;; config. http://www.djcbsoftware.nl/code/mu/mu4e/Gmail-configuration.html#Gmail-configuration
(require 'mu4e)

;; default
;; (setq mu4e-maildir "~/Maildir")

(setq mu4e-drafts-folder "/[Gmail].Drafts")
(setq mu4e-sent-folder   "/[Gmail].Sent Mail")
(setq mu4e-trash-folder  "/[Gmail].Trash")

;; don't save message to Sent Messages, Gmail/IMAP takes care of this
(setq mu4e-sent-messages-behavior 'delete)

;; (See the documentation for `mu4e-sent-messages-behavior' if you have
;; additional non-Gmail addresses and want assign them different
;; behavior.)

;; setup some handy shortcuts
;; you can quickly switch to your Inbox -- press ``ji''
;; then, when you want archive some messages, move them to
;; the 'All Mail' folder by pressing ``ma''.

(setq mu4e-maildir-shortcuts
    '( ("/INBOX"               . ?i)
       ("/[Gmail].Sent Mail"   . ?s)
       ("/[Gmail].Trash"       . ?t)
       ("/[Gmail].All Mail"    . ?a)))

;; allow for updating mail using 'U' in the main view:
(setq mu4e-get-mail-command "offlineimap")

;; something about ourselves -- change this
(setq
   user-mail-address "google_Accoiunt@gmail.com"
   user-full-name  "Yongsu Guo"
   mu4e-compose-signature
    (concat
      "Alex Bender\n"
      "http://youngsu.blogspot.kr\n"))

;; sending mail -- replace USERNAME with your gmail username
;; also, make sure the gnutls command line utils are installed
;; package 'gnutls-bin' in Debian/Ubuntu

(require 'smtpmail)
(setq message-send-mail-function 'smtpmail-send-it
   starttls-use-gnutls t
   smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
   smtpmail-auth-credentials
     '(("smtp.gmail.com" 587 "alex.bender@gmail.com" nil))
   smtpmail-default-smtp-server "smtp.gmail.com"
   smtpmail-smtp-server "smtp.gmail.com"
   smtpmail-smtp-service 587)

;; alternatively, for emacs-24 you can use:
;;(setq message-send-mail-function 'smtpmail-send-it
;;     smtpmail-stream-type 'starttls
;;     smtpmail-default-smtp-server "smtp.gmail.com"
;;     smtpmail-smtp-server "smtp.gmail.com"
;;     smtpmail-smtp-service 587)

;; don't keep message buffers around
(setq message-kill-buffer-on-exit t)

fcitx language, xim setting, Gnome Key change

* fcitx language, xim setting, Gnome Key change
----> Fxitx input 설정
  1. 시스템 설정 > 언어지원 >  한국어, 중국어(간체) (, 러시아어, 일본어) 추가

  2. 시스템 기본 언설 설정을 "English" 로 둔다. 혹은 "한국어"로 바꾼다.
   영어를 맨위로 사용할 경우 시스템 메뉴는 영어를 사용하게 된다. 단, 재부팅 후 적용된다.

  3. 시스템 설정 > 하드웨어 > 키보드  로 이동한다.
     [바로가기] - [자판입력] 에서 입력소스 --> [텍스트 입력창] 으로 간다.
     여기에서, [+] 키를 선택해서
     [한국어] / [Pinyin(Fcitx)] / [Hangul(Fcitx)] 를 추가한다.

  4. 기본설정 변경 --> [한국어]
     [다음 입력 소스로 전환 전경] -> Alt + Space (한/중/영 세 언어간 이동을 말하는 키)
:    [이전 입력 소스로 전환] -> [사용하지 않는다] 혹은 [Shift + Alt + Space] 로 바꾼다.
     [[file:img/key_fcitx_v1.png]]

     기본설정 변경 --> [Pinyin(Fcitx)] (위에서 [한국어] 를 선택하고 해도 된다)

  alt-space 는 emacs 키와 겹치므로 기존에 키가 지정된 것을 지운다.

 :  keyboard > global setting > window > window active > disable alt-space
 :  키보드 > 전역설정 > 윈도우즈 > disable alt-space
 :  alt-space is Set Mark Command
 :  It is bound to <C-kanji>, C-SPC, M-SPC.
 :  (cua-set-mark &optional ARG)


  5. fcitx 설정 -> [입력기 설정] - [전역설정] - [입력기 전환]
    -> ConfigureFcitx --> [Global Config] 혹은 [전역설정] 항목

    (1) 입력기 전환 (Trigger Input Method) => Hangul - Shift+Space 가 되도록 한다.
    (2) Extra key for trigger input method 를 선택하고 Ctrl+Shift 를 선택하도록 한다.
    (3) 입력기 사이의 스크롤은 Ctrl+Shift 가 되도록 한다.
     [[file:img/key_fcitx_v0.png]]


6. 키 사용방법:
  > Alt+Space  -->  [영문 -> 중국어 -> 한국어] 3 개를 차례로 전환한다.
  > L_Shift = (Ctrl+Shift) --> 한-영 toggle, 중-영 toggle (단, 현재 입력기가 중국어나 한국어일때만 작동)
  > Shift+Space --> 한-영 toggle 이며, 중-영 toggle
    Shift --> 위 Shift+Space 키와 동일.

 ※ 위에서 설정이 안 될 경우, ~/.config/fcitx , ~/.config/fcitx-qimpanel 백업을 복구한 다음에 사용.
    테스트 하기 전 rebooting 할 것, rebooting 후 fcitx 가 서비스가 완전히 올라온 다음에 테스트 할 것 (- not necessary but sometimes it resolve some errors)



7. backup & restore

cd ~/.config
tar cvf fcitx_dist.tar fcitx
tar cvf fcitx-qimpanel_dist.tar fcitx-qimpanel/



* Hud , search box
  > turn off search box ; file, web, <-- use other tool (see below sections)
    (Unity Tweak Tool 섹션 참조)

  > turn off the search box that appears when I press Alt or Hangul Key
    ; System Settings --> Keyboard --> Short-cuts. --> 실행아이콘
     --> [허드를 표시할 키] --> "한/영키 + Backslash" 로 변경
     --> [검색] --> "Alt+백스페이스" 로 변경

  > system config > keyboard > 바로가기 > 실행아이콘 > 검색 (백스페이스 - 사용안함) , 허드를 표시할 키 (백스페이스 - 사용안함)

Monday, May 16, 2016

postgres - pgmodeler installation in ubuntu with source compile

* postgres - pgmodelear

** new version
 > download: https://github.com/pgmodeler/pgmodeler

sudo apt-get install qt-sdk
sudo apt-get install qttools5-dev
sudo apt-get install libpq-dev
sudo apt-get install libxml2-dev

 > compile
:  sudo apt-get install qt4-qmake  <-- actuall qt50qmake use
sudo apt-get install gcc-4.7
sudo apt-get install libqt4-dev
sudo apt-get install xml2
sudo apt-get install libpq5
sudo apt-get install libqp-dev
sudo apt-get install libpq-dev
sudo apt-get install pkg-config

unzip pgmodeler-develop.zip
cd pgmodeler-develop/

qmake -qt=5 pgmodeler.pro
make
make install
sudo make install


No declaration for attribute connect_timeout of element connection sslmode="disable" auto-browse-db="false"/>

> https://github.com/pgmodeler/pgmodeler/issues/829
$ diff -u /usr/local/share/pgmodeler/conf/defaults/connections.conf /usr/local/share/pgmodeler/conf/connections.conf
#+begin_src
--- /usr/local/share/pgmodeler/conf/defaults/connections.conf   2016-04-17 17:02:45.540901204 -0700
+++ /usr/local/share/pgmodeler/conf/connections.conf    2015-12-30 21:58:24.234252027 -0800
@@ -4,7 +4,7 @@
            Unexpected results may occur if the code is changed deliberately.
 -->
 <connections>
-       <connection alias="local-db" host="localhost" port="5432" dbname="postgres"
-               user="postgres" password="postgres" connection-timeout="2"
+       <connection alias="local-db" host="localhost" port="5432" dbname="postgres"
+               user="postgres" password="postgres" connect_timeout="2"
                sslmode="disable" auto-browse-db="false"/>
 </connections>
#+end_src


> https://github.com/pgmodeler/pgmodeler/issues/823
-- vi ~/.config/pgmodeler/connections.conf
#+begin_src
<?xml version="1.0" encoding="UTF-8" ?>
<!--
  CAUTION: Do not modify this file directly on it's code unless you know what you are doing.
           Unexpected results may occur if the code is changed deliberately.
<connections>
        <connection alias="local-db" host="localhost" port="5432" dbname="postgres"
                user="postgres" password="postgres" connect_timeout="2"
                sslmode="disable" auto-browse-db="false"/>
</connections>
-->
<connections>
       <connection alias="local-db" host="localhost" port="5432" dbname="postgres"
               user="postgres" password="postgres" connection-timeout="2"
                sslmode="disable" auto-browse-db="false"/>
</connections>
#+end_src

The file connections.conf changed in the new release (0.8.2-beta1) and if you're upgrading an installation on your machine it's probably that you' re using the old version of the mentioned file.

The solution: look for the file connections.conf in your local settings storage.

    Linux: /home/[user]/.config/pgmodeler
    Windows: C:\User\[user]\AppData\Local\pgmodeler
    Mac OS X: /User/[user]/Library/Preferences/br.com.pgmodeler

Open the file in a text editor and replace any occurrence of connect_timeout by connection-timeout. Start the application again and it should stop to raise the errors.


** add program shortcuts to unity launcher in ubuntu

- from: http://ubuntuforums.org/showthread.php?t=1972410

1. create a text file "pgmodeler.desktop"

-- /home/guo/bin/desktop/pgmodeler.desktop
 > png available from https://avatars1.githubusercontent.com/u/2207918?v=3&s=400


2. run pgmodeler in terminal then quit
 > unitiy launcher icon apper with ? icon


3. change icon or modify
check if ther was created in pgmodeler.desktop
ls -alh ~/.local/share/applications/pgmodeler.desktop
if there is already created file (pgmodeler.desktop) it will like as following.

edit it or create one.

--> from
#+begin_src
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=pgModeler - PostgreSQL Database Modeler 0.8.2-beta1
Icon=pgmodeler.png
Path=/usr/local/bin
Exec=pgmodeler
StartupNotify=false
StartupWMClass=pgmodeler
OnlyShowIn=Unity;
X-UnityGenerated=true
#+end_src

--> to
modify as following ~/.local/share/applications/pgmodeler.desktop
#+begin_src
[Desktop Entry]
Name=pgmodeler
Comment=pgmodeler for PostgreSQL
Exec=/usr/local/bin/pgmodeler
TryExec=/usr/local/bin/pgmodeler
Icon=/home/guo/bin/icon/pgmodeler.png
StartupNotify=false
Terminal=false
Type=Application
Categories=Database; Misc
#+end_src

rerun pgmodeler and fix it to the launcher


4. locate file for future restall and backup
sudo updatedb
locate pgmodeler.desktop

~/.gnome/apps/pgmodeler.desktop
~/.local/share/applications/pgmodeler.desktop
~/bin/desktop/pgmodeler.desktop

Sunday, May 08, 2016


[조세도피처의 한국인들 2016]54명 명단 공개(1) 진로, 대우, YBM, 보루네오

http://newstapa.org/33226

 

[조세도피처의 한국인들 2016]54명 명단 공개(2) IT 업계, 수퍼개미, 박물관장과 목사까지..

 http://newstapa.org/33202

Pranten

 Pranten