My brief note on how to get Windows 10 installed on external hard disk or USB and use in MacBook

Note that this procedure is for any version of Windows 10 except Enterprise
– you can first download Windows 10 Pro at https://softlay.net/operating-system/windows-10-iso-free-download.html
– prepare bootcamp support software, by opening boot camp assistant, from menu ‘window’, click download and save it to somewhere on your mac (willl prompt for admin password)
– I suggest to install windows 10 on virtualbox or vmware fusion, then install wintousb (free version is fine)
– prepare your hard disk or usb, by clean all partition, then convert disk to GPT format
– connect to virtual machine
– [clone :) ] open wintousb, choose last option, next, select your hard disk or usb drive (take a while), tick lagacy mode, next and wait till end… done
– now copy the downloaded bootcamp support software to your prepared hard disk or usb (If cannot copy, you may need a software to help since the default in mac is read-only to NTFS, I recommend to use software called ‘mounty’)
– plug hard disk or usb to your mac, boot it up (hold option key), select your USB (maybe name EFI Boot) and install bootcamp setup

That’s it

You might follow along with one video I got from Youtube: https://youtu.be/kR28kVtZYJY

By vichhaiy Posted in mac

capture screen with scrot and remote to Windows with freerdp

​to capture screen in Raspberry Pi (Raspbian), you can use ‘scrot’ as follow:
e.g. you want the delay 4 seconds before capture so that you have time prepare the screen
$ scrot -d 4 ​

to remote to Windows via RDP, freerdp is a good program.
e.g. I want to remote to Windows 10 machine with IP 10.22.52.51
$ rfreerdp 10.22.52.51
but you might want to specify more option like username, password or allow sound…
$ xfreerdp /u:LoginName /p:YourPassword /w:1366 /h:768 /v:10.22.52.51:3389 /sound:sys:alsa /microphone:sys:alsa

*** note that you need to get ‘freerdp’ installed, by issuing
$ sudo apt install freerdp -y

Solve iBooks can’t open problem

When I finished updating my macOS (to macOS High Sierra 10.13.5), I try to open iBooks for Mac, a dialog appears.  It reads,

iBooks can’t access your library.

Make sure the disk containing your library is connected, then click Try Again.

Library Location: (null)

You can also reset your library, then sign in to view and re-download your purchased books.

Below that are three buttons: Quit, Reset Library, and Try Again.  If I click either Reset Library or Try Again, the same dialog reappears a fraction of a second later.  Clicking Quit quits iBooks.

The solution to that is

Problem solved.  I shut down my MacBook Pro, waited a bit, restarted, and things worked fine. (by crchapin)

Reference: https://discussions.apple.com/message/31360014#31360014

By vichhaiy Posted in mac

Python: working with data …

This will use three libraries: pandas, matplotlib.pyplot and os

# import pandas dataframe and matplotlib graphing library
import pandas as pd
import matplotlib.pyplot as plt
import os

# moving to your working directory
os.chdir('''/Users/vserey/Desktop/working''') # your folder maybe "c:\working_folder"

# you may want to list files inside current directory
os.system("ls -l")

# or now I want to capture wifi traffic and extract BSSID, SSID, ip source, destination and
# IFS columns to a file "test.csv"
os.system('''tshark -r capture-allch-airtool-response.pcap -T fields -E separator=, \
-E quote=d -e wlan.bssid -e wlan.ssid -e ip.src -e ip.dst -e wlan_radio.ifs > test.csv''')

# read csv file (with column header)
#data = pd.read_csv('test.csv')
# or you wish to change some column's name
#data.rename(index=str, columns={"Source":"IP Source"})
# or if without column header
data = pd.read_csv('test.csv', columns=["BSSID", "SSID", "Sorce", "Destination", "IFS"])

# print first 3 records (default 5 records)
print(data.head(3))

# need only the first 100 records (we may save to a new variable)
data = data.head(100)

# show basic statistics for all columns like count, mean, std, min, 25%, 50%, 75% and max
print(data.describe())

# if you wish to extract specific column and convert to a list
my_ifs = data['IFS'].tolist()

# print the data
print(my_ifs)

# Basic plot Pandas dataframe (df), to check if it is Pandas df, print(type(data))
data[["IFS"]].plot()
plt.show()

Korean Drama: The Fugitive Plan B

នេះជាខ្សែរឿងដែលខ្ញុំចង់មើលណាស់កាលពីឆ្នាំ ២០១០ សម័យដែលខ្ញុំត្រូវប្រឡងបាក់ឌុបផង ម្យ៉ាងវិញទៀត អត់ដឹងថាមានអ៊ីនធើណែតឯណាបើក បើពេលនោះយឺតខ្លាំង សេវ៉ាត្រឹម GPRS។ ដល់ពេលទៅរៀនបន្តបន្ទាប់ពីប្រឡង ក៏រវល់ផងអីផង ភ្លេចបាត់ទៅ ទើបតែឥឡូវនឹកឃើញ ឃើញថាល្អមើល

Cannot extend drive c in Windows?

There are many reasons that lead you not to be able to extend your drive c. You can find those reasons here.

But now I would  like to share without you how you can extend using a free third-party tool in the case that your partition is “basic” type.

Follow below steps:

  • Download MiniTool Partition Wizard Free Edition and install it.
  • Now you can just open the tool
  • Click on partition that you want to extend (in our case, drive c)
  • Right click and choose “Extend”
  • Select “Take free space from: [Drive D or your unallocated space]”, then click OK
  • Now, click ‘Apply’ and wait for several minutes to complete the operation and You’re DONE!!!

Sample screenshot:

233

1