2015/12/07

How to resolve macbook cannot erase Macintosh HD

1.Press "Command+R" keys while boot.
2.Go to "Utilities" and select "Terminal" to open it.
3.Type "diskutil cs list" to show all of storage volume group.
4.Type "diskutil cs delete UUID" to erase storage volume group which you want.
5.Close "Terminal" and go back "Disk Utility" GUI.
6.Now you can recovery or install your mac os x system.

Reference Link
Can't erase Macintosh HD (FileVault active)

2015/11/06

How to install Oracle Java on Ubuntu 12.04

Open Terminal.
Type the commands as below:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer

2015/10/29

VMware - Install Android ADB on Ubuntu 12.04 LTS x64

[Android ADB Install]
1. sudo su
2. apt-get update (for update system)
3. apt-get install android-tools-adb android-tools-fastboot (for install minimal package)
4. apt-get install default-jdk (for install java development kit)
5. apt-get install ia32-libs (for support 32bit)
6. Download Android SDK and extract it.
7. cd ./tools (Go to Android SDK Tool path)
8. ./android sdk (Launch and install Android SDK compoments)
9. adb version (Check ADB version)
10. adb devices (Check Android device is attached)
11. lsusb (Check USB device list)
12. gedit /etc/udev/rules.d/99-vmware-scsi-udev.rules (Edit Google device rules)
# Google Inc. Device
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="d011", MODE="0666", OWNER="adb"    # MTP mode with USB debug on
13. service udev restart

2015/08/21

How to install Windows Store Apps Manually


1.Double click certificate file to open Certificate Import Wizard.
2.Select "Local Machine" then click Next.
3.Select "Place all certificates in the following store." and click Browse.
4.Select "Trusted People" to add it.
5.Open Windows Powershell
6.Type "Set-ExecutionPolicy RemoteSigned" and tap Enter to allow execution policy.
7.Type "Show-WindowsDeveloperLicenseRegistration" and tap Enter to enable developer mode.
8.Type "Add-Appxpackage D:\app.appx" and tap Enter to install your app.

2015/07/28

How to remove OS options on Windows boot menu

1.Press "Win+R" and type "cmd" to open Windows Command Prompt.
2.Type "bcdedit" and enter, you'll see all of OS options.
3.Type "bcdedit /delete {identifier}" to remove it which you want.
4.It will show "The operation completed successfully." message after finished.

2015/07/23

How to merge many .swm files to one .wim file

1.Download the Assessment and Deployment Kit (ADK) from MSDN subscribers download.
2.Install ADK by running adksetup.exe, and make sure that Windows Preinstallation Environment is selected (selected by default).
3.Copy your .swm files to path D:\
4.Open "Deployment and Image Tools Environment" as administrator.
5.Type "imagex /ref D:\xxx*.swm /check /export D:\xxx.swm * D:\install.wim Windows /compress maximum".
6.It will be exporting to install.wim file now.

2015/07/16

Windows 10 Pro RTM (Build 10240) Autounattend.xml

 For x64:

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
        <component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <SetupUILanguage>
                <UILanguage>en-us</UILanguage>
            </SetupUILanguage>
            <InputLocale>en-us</InputLocale>
            <SystemLocale>en-us</SystemLocale>
            <UILanguage>en-us</UILanguage>
            <UILanguageFallback>en-us</UILanguageFallback>
            <UserLocale>en-us</UserLocale>
        </component>
        <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <UserData>
                <ProductKey>
                    <Key>W269N-WFGWX-YVC9B-4J6C9-T83GX</Key>
                    <WillShowUI>Never</WillShowUI>
                </ProductKey>
            </UserData>
        </component>
    </settings>
</unattend>

2015/05/11

職涯二三事

今天突然很想寫點什麼
所以就來記錄一下最近的心得感想


這陣子給了自己一個課題,事實上也跟一些朋友聊過這件事
當我們聽到一句話or發生了一件事(無論好壞),第一個反應是什麼?
大部份都是個人情緒先上來(至少我也是會這樣XD)
其實人都有情緒,也需要有個出口發洩
但在這之後呢? 是否有思考過這一句話or一件事帶給你的影響是什麼?

2015/02/06

Install Boxroom file sharing website on Ubuntu

Download Boxroom
Extract, checkout or clone Boxroom into a new folder
Open  Terminal and cd into the new folder
Run the commands as below:
[user@localhost ~]$ sudo apt-get install nodejs
[user@localhost ~]$ bundle install
[user@localhost ~]$ bundle exec rake install
[user@localhost ~]$ bundle exec rails server
Then open your browser to http://localhost:3000/
Now you can start to configure your website

Install Ruby on Rails for Ubuntu

[user@localhost ~]$ sudo su
[root@localhost ~]$ "enter your root password"
[root@localhost ~]$ apt-get update
[root@localhost ~]$ apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
[root@localhost ~]$ apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
[root@localhost ~]$ apt-get install curl
[root@localhost ~]$ gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
[root@localhost ~]$ curl -sSL https://rvm.io/mpapis.asc | gpg --import -
[root@localhost ~]$ curl -sSL https://get.rvm.io | bash -s stable --ruby
[root@localhost ~]$ source /etc/profile.d/rvm.sh
[root@localhost ~]$ rvm use 2.2.0 --default
[root@localhost ~]$ ruby -v
[root@localhost ~]$ rvm requirements
[root@localhost ~]$ gem install rails

2015/02/05

Install Ruby on Rails for Windows

1. Download and install RubyInstaller
2. Open cmd.exe and type "ruby -v" to check version.
3.  Download DevKit
4. Copy it to C:\
5. Open cmd.exe and tpye "cd C:\DevKit" to go to this path.
6. Type "ruby dk.rb init" to dump "config.yml" file.
7. Open config.yml to check Ruby info.
8. Type "ruby dk.rb install" to install DevKit.
9. Type "gem update --system 2.0.3" to upgrade RubyGems.
10. Type "gem install sqlite3 --no-ri --no-rdoc" to install SQLITE3.
11. Type "gem install json --platform=ruby --verbose" to install json.
12. Type "gem install json -v 1.6.1 --platform=ruby --verbose" to upgrade json.
13. Type "gem install rails --no-ri --no-rdoc" to install Rails.
14. Type "rails -v" to check Rails version.