2017-05-21

Use Weka data mining software to analyze Odoo ERP data


Use Weka data mining software to analyze Odoo ERP data:
Export Odoo data to .csv file and then imprt it from the Weka.

Odoo>Leads Analysis

Weka>Open File

Weka>
Weka>Visualize





Sales>Opportunities
Export Data>










Weka>Open File>Uisualize

Odoo>Report>Entries Analysis

Weka>Open File>Visualize

2017-05-09

Create a disk in the FreeCAD


Start FreeCAD:
內嵌影像

select "Part Design"
內嵌影像

Click "Create a new empty document":
內嵌影像
Click "Tasks>Create Geometry>Create sketch":
內嵌影像

Select XY0Plane, Click OK:
內嵌影像

Click "Create a circle in the sketcher":
內嵌影像

Click center:
內嵌影像

Extend the circle:
內嵌影像

Click again at the correct location:
內嵌影像
Right click to exit the circle mode.

Click "Task>Close":

Click "Tasks>Sketch tools>Pad":
內嵌影像
Set the "Pad parameters>Length" and click "Task>OK":
內嵌影像
Click "Set To front view(1)":
內嵌影像
Click "Set to axonometric view(0)":
內嵌影像


內嵌影像





2017-03-15

Weka Data Mining example 1- Regression with autoMpg.arff

Waikato Environment for Knowledge Analysis (WEKA):

Start Weka GUI.


Click Explorer Button to start the Weka Explorer.


Download regression data from the Weka DataSet page:

Copy and unzip it to the data directory under the directory where the Weka was installed, like "C:\Program Files\Weka-3-8\".

Click Open file Button to open a data file
Find the directory "C:\Program Files\Weka-3-8\data\datasets-numeric\numeric\"
Then select the "autoMpg.arff" to find out a regression model to predict the miles per gallon (MPG) for a car.



Weka loads the data and shows Attributes of this data file.
Click the "Classify" tab on upper side of the window.
Click "Choose" button within the Classifier area.
Select LinearRegression under the branch of the tree  "weka-classifiers-functions".




Click the Start button. 



We can see the result of the Linear Regression.





2016-07-27

CubicPower 3D Taipei Street VR Viewer has got to the Taiwan Open Data competition final

CubicPower 3D Taipei Street VR Viewer has got to the Taiwan Open Data competition final. This service combines the OpenStreetMap and Taipei city marks data to produce a virtual 3D view on the browser.

2016-06-28

Raise or Lower Terrain by the Unity Terrain Editor

 Steps of building terrain by the Unity Terrain Editor:


1. Start

GameObject> 3D Object> Terrain


Hierarchy> Terrain
Inspector> Terrain> Raise/Lower Terrain

Use the selected brush to raise terrain in the scene view.

Inspector> Terrain>  Paint Height
Inspector> Terrain>  Settings>  Height>   20


 Brush inner lower area.

Inspector >  Terrain>  Settings>   Height>   50

Brush outer higher area.




















2016-06-15

Debug the Odoo in Ubuntu with different user name

Once we've installed the Odoo as a service in Ubuntu, Odoo will be started up automatically. If we want to debug the Odoo, we should stop the Odoo service first. Also, we will encounter the "Peer authentication failed for user "odoo"" error if our login user name is not odoo. In order to conquer these problems we should do the following steps:

1. Stop service:
sudo service odoo stop

2. set the user odoo as a trusted user to all databases from local:
sudo nano /etc/postgresql/9.3/main/pg_hba.conf
 
then add the following line into the file:
local all odoo trust
 
then restart the postgresql:
sudo service postgresql restart

3. Start odoo with the db user odoo:
cd /usr/bin
./odoo.py -r odoo


Reference:

Peer authentication failed for user "odoo"

2016-05-30

Build our own Linux Web Server with XAMPP

If we want to set up our own web server on the Linux platform,  installing an XAMPP (Apache+MariaDB+PHP+Perl on the different platforms) will be the easiest way.  Here I show the basic installation procedures as follows:

1. Download a copy of an  XAMPP Linux version from the site Download XAMPP   . For example,  we can download the file
https://www.apachefriends.org/xampp-files/5.5.35/xampp-linux-x64-5.5.35-0-installer.run

2. Run cd command to go to your directory and execute the installation file:
sudo chmod +x xampp-linux-x64-5.5.35-0-installer.run
sudo ./xampp-linux-x64-5.5.35-0-installer.run

We will see a newly generated pop-up window. Just click the Next button and uncheck the  “Learn more about BitNami for XAMPP” checkbox. We'll install the XAMPP and run it.

To stop the XAMPP, we can:
sudo /opt/lampp/lampp stop
 
To strat  the XAMPP, we can:
sudo /opt/lampp/lampp start

We can try the url http://localhost from our browser to see the page on our server.

And then one important thing to do- set the Security settings:
sudo /opt/lampp/lampp security
 
Always say yes by pressing Enter key and key in our password.


References:
1. How to Install XAMPP 1.8.3 for Linux in Ubuntu Desktop 
2. Setting Security for XAMPP

2016-05-21

the Muscular Robot-SkinSuitBotM shows the 180 degree Roundhouse Kick

Let's take a look at the Muscular Robot-SkinSuitBotM. It is capable to do lots of the physical fitness movements. He it shows 180 degree Roundhouse Kick:


We can swing the right leg only.

Or we can lift the left knee first,

and swing the right leg.

 Also, we can swing the left leg
 and followed by a right leg swing.