Tuesday, October 31, 2017

Wonder if Windows 10 Creator Breaks Asus Laptop

Just wonder if Win 10 Creator breaks my Asus laptop*

My laptop broke down for the 1st time after forced Win 10 Assistant Update
A few days ago, should be before Oct 29, 2017,
forced Win 10 Assistant Update again; breaks down on Nov 1, 2017

Asus laptop breaks down again on Nov 1, 2017

Asus laptop 1st break-down on Oct 11, 2017; Repair back on Oct 22


*
Asus A555 UQ-DM044T
i7-6500U
120 SSD + 1TB HDD
Purchase Date: Dec 08, 2016
1st Break-Down: Oct 11, 2017
1st Repair: Oct 22, 2017
2nd Break-Down: Nov 01, 2017

Monday, October 30, 2017

Sunday, October 29, 2017

FireFox Force English Interface Regardless Of Location

FireFox Force English Interface Regardless Of Location

Check this out:
https://addons.mozilla.org/en-US/firefox/addon/google-ncr/

FireFox Custom Installation

This link provides custom installation of FireFox.

Need to install on D drive instead of default C drive; also need to change the profile location.

Otherwise, the FireFox profile still sits inside %appdata%Firefox in C drive

https://support.mozilla.org/en-US/kb/custom-installation-firefox-on-windows

Wednesday, October 18, 2017

Counting Stock Trend With Numpy Array

Just shot a video to help me memorize how to do trend count with Numpy array:

a = np.array([0,0,0,1,1,1,0,0,1,0,1,1,0])

value_to_count = 1
value_to_reset = 0

no_reset = (a == value_to_count).cumsum()

reset = (a == value_to_reset)

excess = np.maximum.accumulate(no_reset*reset)

result = no_reset - access



Tuesday, October 17, 2017

Test iOS 11.0.3 Screen Recording On iPhone SE 2017

Test iOS 11.0.3 Screen Recording On iPhone SE 2017

Testing the iOS 11.0.3 update - screen recording feature
Device : iPhone SE (16 GB); Rendering platform: Facebook

Setup steps:
1) General ... Control Center ... add screen recording
2.1) General ... Restrictions ...type code to get in...
2.2) turn 'Screen Recording' to green ...Screen Recording inside 'Game Center'...

Recording Steps: ...starting from the main screen...
1) swipe the phone from the bottom
2) press the button ...screen recording button...
3) When you see flashing red ...see video start of this video..., you're recording
4) Once you finish recording, go back to step1... and press the button to stop


Thursday, August 24, 2017

Setup Python 3.6.2 Virtual Environment For Trade + Machine Learning Setup| Windows 10 Sublime Text 3

00:00 - 01:20 | Install Python
01:27 - 02:02 | Install virtualenv to system Python
02:06 - 03:02 | Create virtual environment
03:13 - 03:58 | Download Sublime Text 3
04:02 - 06:28 | Setup Sublime Text 3 Python path
06:29 - 07:31 | Setup Sublime Texxt 3 layout
07:38 - 08:36 | Install Python packages for trade
08:37 - 09:56 | Example reading stock data



Part 1

Part1

In this video
I'll be showing how to setup Python on Windows 10

Look up for the Python installation from your browser
and install the one that fits your system

Here I'm downloading the 64-bit Windows version

Save it to your download folder
and double click to install

Untick things that are not needed
and custom install to the drive you want

Untick the optional features
and set the destination folder

In this case
I'll be installing Python to F drive folder "py362"

Hit "OK" and start installation

You can now remove the Python installer

Now we're going to install virtualenv

Open command prompt

Navigate to the system Python location
which is F:\py362\Scripts

from there
we pip install virtualenv

Hit [Enter]
and wait for the process

you can type pip list to check whether virtualenv is installed to the system

Part 2

We're now creating a folder in F drive to hold our virtual environment

Go to command prompt
Go to F drive and type md space "Trade"
We'll be using this folder to hold our Python trade projects

Part 3

Open a new command prompt

and navigate to our system Python location
which is F:\py362\Scripts

hit [Enter] and install a new virtual environment
to the path
F:\Trade\TradeEnv
then hit [Enter] to start installation

Exit command prompt
and go to the path to see whether the virtual environment is installed

Jump back to browser
and download Sublime Text 3
Click to download the one that fits your system

Once it's downloaded
extract all files
then cut and paste the Sublime Text folder
to your destination folder

Open up the Sublime Text folder
and doubleclick the execute file to start programming

Let's start typing some Python code
Save it as a Python file

Before you run the code
you go to Tools -> Build System and tick Python

But when you hit [Ctrl] [B] to run the code
you get error message

That's why we need to create new build
to point to our virtual environment

From the untitled sublime build file
we need to paste some codes

We can look up for these codes from web

Before we save
we need to change the "python" path
to our virtual environment

I just name it with my environment's name
so that I can easily remember

Go back to your Python file
and tick the Sublime build we've just created
and run the Python code to check if it works

Yeah! It works

Part 4

If you want to move the output panel
from bottom to right

simply hit [Ctrl], [Shift], [P]
and type "install package"

Hit [Ctrl], [Shift], [P] again
and type "install"
Hit it and you'll be able to type "buildview"

click the only selection
and wait for the installation

Now you can hit [Alt] [Shift] [2]
and see a split in between

Simply run the code again
and drag the result panel
to the right

Then you can now see the right side
displays the code result

Now
we're going to pip install several packages for trade

Open command prompt

Navigate to the virtual environment's Scripts folder
pip install pandas
This is a popular package to read and process data

We then pip install xlrd
to let us read and write Excel file with Python

Pip install matplotlib
We use this one to plot graph

We also need beautifulsoup 4 to grab web data

exit command prompt

I'm going to create a new Python file to test these packages
Before saving, make sure you're coding in the virtual environment

Save the file

We're going to read this csv file with Python packages

Let me type and run the code

Ooops I type the wrong file format excel instead of csv

Go back to change to csv in our code
and press [Ctrl] [B] to run it

There we go!

Thanks for watching


Please note that you can also install numpy + mkl, scipy, and sklearn for machine learning




Feel free to discuss trade algo at
www.facebook.com/clueple