how to install docker with apt-get

Instead of using docker use docker.io
sudo apt-get install docker.io
http://stackoverflow.com/a/30379382?stw=2

Why install docker on ubuntu should be `sudo apt-get install docker.io`?
Ans =
Why do Ubuntu use docker.io as executable name instead of just docker? Tutorials, blog posts all now have to mention this difference, “if you use Ubuntu 14.04, or if you are with rest of the world (including earlier versions of Ubuntu)”. Why?

This is because of a Debian/Ubuntu policy; there is already a program called “docker” [1], and it was not allowed to use the same binary name.
http://stackoverflow.com/a/27978397

Answer:How to get the command that invoked a task with tasklist

CMD

wmic process get commandline,processid /format:csv

PowerShell

Get-WmiObject win32_process | select CreationDate,ProcessId,CommandLine|ft -AutoSize

http://superuser.com/a/683052

WinDBG – The Basics for Debugging Crash Dumps in Windows 10

1. download WinDBG and install “Debugging Tools for Windows” => http://www.microsoft.com/click/services/Redirect2.ashx?CR_EAC=300135395
2. run cmd as admin
3. cmd => cd \Program Files (x86)\Windows Kits\8.1\Debuggers\x64\
4. cmd => windbg.exe -IA

5. open WinDBG => Start > All Programs > Windows Kits > Debugging Tools for x64 > WinDBG (x64)
6. set symbol file path :: File => Symbol File Path
7. SRV*C:\SymCache*http://msdl.microsoft.com/download/symbols
8. File > Save WorkSpace

ที่เหลือไปตามต่อได้ใน http://www.tenforums.com/tutorials/5558-windbg-basics-debugging-crash-dumps-windows-10-a.html

How To “arp -a” In IPv6

Windows:
netsh int ipv6 show neigh

Linux:
ip -6 neigh show

http://midnightfreddie.com/how-to-arp-a-in-ipv6.html

การทำ Workspace แบบ AutoCAD Classic ใน AutoCAD 2015

พิมพ์คำสั่ง TOOLBAR => ช่อง Command List พิมพ์ STANDARD => ลากไปวางที่หน้าจอ
คลิกขวาเลือก tool ที่ต้องการ
Untitled

Word-wrap in Firefox

Open a new tab. Enter about:config. Search for wrap. You will find an entry to toggle word wrap on or off.

http://superuser.com/a/791320

Linux : toggle-able terminal

Untitled

sudo apt-get install guake
http://guake.org/

ปฏิวัติการใช้งานซอฟต์แวร์ของตัวเอง

ตอนนี้คอมเริ่มใสสะอาดแล้ว
ทั้งเครื่องเหลือ Lightroom ตัวเดียวที่เป็น sw เถื่อน
เน้นซื้อแท้+opensource&freeware
ปล. ไม่รวมหนังกับเพลงนะ 5555+

ตอนนี้ผมเองก็ใกล้เรียนจบแล้ว ด้วยความที่โตขึ้น ได้มีโอกาสเข้าไปฝึกงานกับองค์กรของรัฐ
และเนื่องจากผมมรความสนใจในวงการ Computer & Cyber Security ทำให้เห็นอะไรหลายๆอย่าง
ผลของการละเมิดลิขสิทธิ์ ของแถงต่างๆนาๆเมื่อเราใช้ของเถื่อน นู่นนี่นั่น ทำให้หลายปีมานี้ผมพยายามเลี่ยงของเถื่อน
ถ้าต้องใช้จะเลี่ยงประเภทที่เป็น patch/crack เน้นใช้แบบ serial หรือถ้าเป็น keygen ก็เอาไปเจ็นใน VM แทน

แต่ตอนนี้ผมเองก็เริ่มค่อยๆเลิกใช้ของเถื่อน จริงๆไม่ใช่แค่ตอนนี้ แต่เริ่มเปลี่ยนมาพักใหญ่แล้ว
หาของทัดเทียมใช้แทน พวก Freeware / Open Source หรือพวก Giveaway ต่างๆ ลองหาดูครับ
อย่าง IDM ตอนนี้ผมก็เปลี่ยนมาใช้ FDM (ตัว BETA สวยดี)
Untitled

Photoshop ก็ใช้ตัว CS2 ที่ Adobe ได้ทำการแจกให้ใช้ฟรีกันเมื่อไม่กี่ปีที่ผ่านมา
VMware ผมก็ย้ายไปใช้ตัว Oracle VM VirtualBox แทน
(โพสต์ที่เกี่ยวข้อง: How to resize a VirtualBox vmdk file)

ที่ซื้อเองก็มีครับ อย่างตัว Sony Movie Studio ที่เอามาใช้แทนที่ Sony Vegas ตัวเถื่อน
แต่เป็น Steam Version นะครับ ตอนนั้นมันลดเหลือ 7ร้อยกว่าๆ จากราคาพันกว่าๆ
Untitled

เดือนที่แล้วก็เพิ่งสอย Microsoft Office 2016 มาอีกตัว เป็นตัว Home & Student
จะมีแค่ตัว Word, Excel, PowerPoint ซึ่งก็เพียงพอกับการใช้งานของผมแล้ว
CX8uRNyU0AAWHIt
ref: https://twitter.com/sornram9254/status/684316543031750656

ซึ่งนี่ก็เป็นเพียงบางส่วนที่ผมเริ่มปฏิวัติการใช้โปรแกรมเถื่อนของผม มาใช้ของถูกสิขสิทธิ์
ผมเองก็ไม่ได้รวย หรือซื้อทีเดียวทั้งหมด แต่ผมค่อยๆเก็บเงินทีละนิดๆ ออมเงินเพื่อซื้อของพวกนี้
ของเถื่อนตอนนี้ผมก็เหลือแค่ตัว Adobe Lightroom 4 ที่ยังเถื่อน แต่ก็วางแผนไว้แล้วว่าเรียนจบจะซื้อแท้

ช่วยๆกันลดการใช้ของเถื่อนกันเถอะครับ หลายๆอันมันหาของแทนที่ได้ บางโปรแกรมเขามี license for student อยู่
เรียนมหาวิทยาลัยก็มี dreamspark ให้ใช้ อันไหนพอมีงบซื้อได้ก็ซื้อเถอะครับ ค่อยๆเก็บเงินซื้อเอาก็ได้
ทั้งหมดนี้ไม่ใช่แค่ช่วยให้โปรแกรมเมอร์มีข้าวกิน แต่เพื่อความปลอดภัยต่อเครื่องคอมของพวกเราเอง
หลายๆคนผูกบัญชีสารพัดในเครื่องตัวเอง ถ้าเราใช้โปรแกรมเถื่อน ดีไม่ดีอาจเจอโปรแกรมที่ไม่ประสงค์ดี
อาจถูกโจรกรรมข้อมูล หรือถูกไวรัสเรียกค่าไถ่ได้นะครับ

ด้วยความหวังดีครับผม ^^v

How to resize a VirtualBox vmdk file

เนื่องจากเมื่อต้นปี ปลายเดือนมกราคมนี่เอง ผมได้ทำการปฏิวัติคอมตัวเอง
เริ่มเคลียร์โปรแกรมเถื่อน รวมทั้งเจ้า VMware ที่ผมก็ใช้เถื่อนอยู่
(โพสต์ที่เกี่ยวข้อง: ปฏิวัติการใช้งานซอฟต์แวร์ของตัวเอง)
บอกเลยว่าเป็นอะไรที่โคตรยาวนาน เพราะต้อง Export ไฟล์ VM ไปเป็น .OVF
เพื่อจะนำไปใช้กับ Oracle VM VirtualBox ที่เป็นของฟรี
ซึ่ง VM ผมมีเยอะมาก กว่าจะ Export จาก VMware และต้องไป Import เข้า VirtualBox อีกรอบ – –

ปัญหาที่เจอต่อมาก็คือ ถ้าตอน Export เป็นไฟล์ vmdk ตอน Import เข้า VirtualBox มันก็ไม่เปลี่ยนนะ
มันจะเป็นไฟล์ vmdk เหมือนเดิม ทำให้เราขยายพื้นที่ไม่ได้ เพราะมันรองรับแค่ vdi ดังนั้นต้องแปลงมันซะก่อน
โดยใช้คำสั่งนี้

VBoxManage clonehd "source.vmdk" "cloned.vdi" --format vdi
VBoxManage modifyhd "cloned.vdi" --resize 51200

ref: http://stackoverflow.com/a/11659046

สำหรับคนที่ยังไม่ได้แอดพาธ VBoxManage สามารถทำได้ตามนี้นะครับ
VBoxManage จะอยู่ที่ “PATH:\Program Files\Oracle\VirtualBox”
How to set the path and environment variables in Windows
http://www.computerhope.com/issues/ch000549.htm

ขั้นตอนสุดท้ายคือ เข้าไปขยาย partition ในตัว os อีกรอบ แต่ผมขอพูดในส่วน linux เท่านั้นนะครับ
อันดับแรกให้โหลด GParted live CD มาก่อน จากที่นี่ http://gparted.sourceforge.net/download.php
เข้าไปที่ setting ของ os ที่เราจะทำใน VBox ตามรูปเลยครับ
Untitled
จากนั้นก็ boot os อีกรอบ เพื่อเข้าสู่ GParted live CD
จากนั้นให้ลบ Linux-Swap Partition ให้หมด ถ้าเจอรูปกุญแจ ให้คลิกขวาแล้วเลือก swapoff ก่อนนะครับ
Untitled
เมื่อลบเสร็จจะเหลือแค่ 2 partition คือ partition หลักของ os และ unallocated space
ให้คลิกขวาที่ partition หลัก เลือก Resize/Move
Untitled
เหลือพื้นที่ไว้สัก 2gb นะครับ เอาไว้ทำ swap-partition แทนตัวที่เราลบไปเมื่อกี้ เพราะถ้าไม่ลบก่อนก็จะขยายไม่ได้ครับ
Untitled
สร้าง partition ใหม่จาก unallocated เป็นแบบ Extended Partition
Untitled
คลิกขวาที่ Extended Partition ที่สร้างเมื่อกี้ -> New เพื่อสร้าง swap partition
ตรง File system: เลือกเป็น linux-swap ครับ
Untitled
คลิกที่เครื่องหมายถูกด้านบน และคลิก Apply เป็นอันเสร็จสิ้นครับ
อย่าลืม shutdown และเอา iso ออกจากตัว vm ด้วยนะครับ
Untitled

ปล. ดู vdo ข้างล่างได้ครับ ของคนอื่นนะ เขียนอธิบายด้านบนเพราะไว้เตือนตัวเองเฉยๆ เพราะขี้เกียจดู vdo ถถถ+
ปล2. รูปตอนจัดการกับ partition ผมแคปจากคลิปด้านล่างนะครับ ขี้เกียจทำ (,__, )
ปล3. ในคลิปเป็นการทำบน Ubuntu นะครับ ไม่ได้ทำจาก GParted live CD แต่วิธีเหมือนกันครับ
ถ้าท่านมีไฟล์ linux iso ที่มี GParted ลงมาหร้อม os แล้วก็สามารถใช้ linux iso นั้นๆเป็นตัว boot ก็ได้ครับ

How to delete all the animations in a presentation

http://answers.microsoft.com/en-us/office/forum/officeversion_other-powerpoint/how-to-delete-all-the-animations-in-a-presentation/4d709072-e8b8-47b5-8802-048b0abc9dcb
—————————————————————————-

You can turn off the animations by going to Setup Slide Show and underShow Options tick the Show without animation option and clickOK. Now run the show and it will display without the animations.

If you really want to delete all the animations in a single sweep then you will need to run this macro.

Sub StripAllBuilds()
    Dim I As Integer: Dim J As Integer
Dim oActivePres As Object
Set oActivePres = ActivePresentation
With oActivePres
For I = 1 To .Slides.Count
If Val(Application.Version) < 10 Then
‘ Older versions of PowerPoint 97/2000
‘ In each slide set the animation property
‘ of the Shape object to FALSE
For J = 1 To .Slides(I).Shapes.Count
.Slides(I).Shapes(J).AnimationSettings.Animate = msoFalse
Next J
Else
‘ New versions support the Timeline object
For J = .Slides(I).TimeLine.MainSequence.Count To 1 Step -1
.Slides(I).TimeLine.MainSequence(J).Delete
Next J
End If
Next I
End With
Set oActivePres = Nothing
End Sub