Indentation style edit on Eclipse

Window > Preference > Java > Formatter > edit

Braces tab, chose “Next line”.

👍

Advertisements

Canker Sore

I’m suffering canker sore for several years.

Vitamin B12 was helpful to me, but not enough.

Most B Vitamins and vitamin C function typically as coenzymes.

 

 

#vitamin #coenzyme #food #stress

DTM Error

What I met errors today.

1. Cables length lacks

2. Traktor 2 ratency problem on my DIY PC

3. S3000XL “cannot deleted loaded flash sample” problem
Vol problem? Certainly in the past I could delete.
=> It was item delete, from “edit sample” I could delete samples!!!

4. My PC software doesn’t receive Midi keyboard outputs.

Hmmm.
 

 

Import youtube-dl package in Python

*package -> A module that contains other modules. Like directory to the files.
*module -> A file that contains a collection of related  functions and other definitions. Maybe like class file in Java. One unit of programs.

One resolution is add path to module search path.

This thread seems helpful.
https://stackoverflow.com/questions/33893610/correct-way-of-absolute-import-in-python-2-7
#from #import #singleton #virtualenv #builtin-modules #module_object #

@ThinkPython @Python Language Reference Manual @Python in a nutshell

>>> import sys
>>> print sys.path
[”, ‘/usr/local/lib/python2.7/dist-packages/pip-9.0.1-py2.7.egg’, ‘/usr/lib/python2.7’, ‘/usr/lib/python2.7/plat-x86_64-linux-gnu’, ‘/usr/lib/python2.7/lib-tk’, ‘/usr/lib/python2.7/lib-old’, ‘/usr/lib/python2.7/lib-dynload’, ‘/usr/local/lib/python2.7/dist-packages’, ‘/usr/lib/python2.7/dist-packages’, ‘/usr/lib/python2.7/dist-packages/PILcompat’, ‘/usr/lib/python2.7/dist-packages/gtk-2.0’, ‘/usr/lib/python2.7/dist-packages/wx-3.0-gtk2’]

Error: Couldn’t open cd-rom of “MAKING MUSIC WITH SAMPLES” by Daniel Duffell

First it was recognized as protected Audio cd.
But actually it is files and directories.

Path of track 8 was
‘/run/user/1000/gvfs/cdda:host=sr0/Track 8.wav’

If I could resolve this I will keeping continue.😘

 

180401 add

I tried to install Traktor 2 in Ubuntu but CD-ROM didn’t recognized.
I guess that caused by change mount settings when modified it to use dvd-shrink on wine in Ubuntu.

#cd-rom for wine
#/dev/sr0 /mnt/dvd auto ro,user,noauto,unhide 0 0

I commented out 2nd line at /etc/fstab resolved this error to read Traktor Installer CD-ROM.

used

sudo gvim /etc/fstab

command.

And Logout cleared this setting and resolved.

Vim key bindings

I googled default key bindings of vim.
This is vi’s one but helpful.

I temporary use Ctrl + x + [some alphabet] to avoid conflict to default key bindings.

Example

"Open new tab
command Ta :tabnew 
"Open new tab
map ^Xt :Ta 

map ^S :w "Ctrl s to write"
map! ^S :w

<CAUTION> You have to Ctrl + v to express ^X or ^S in vim’s map statement.
Copy and paste of these code won’t work. Type Ctrl + v then Ctrl + [some key].

 

Reference site
https://hea-www.harvard.edu/~fine/Tech/vi.html

bind — band, bundle

Maven, jzy3d, javafx

I wanted to plotting in Java and I found jzy3d.
This api required Maven.
mvn install generated error,

[INFO] 100 errors
[INFO] ————————————————————-
[INFO] ————————————————————————
[INFO] Reactor Summary:
[INFO]
[INFO] Jzy3d Master Project …………………………. SUCCESS [ 0.706 s]
[INFO] JDT core (fork of https://github.com/yonatang/JDT) . SUCCESS [ 11.891 s]
[INFO] Jzy3d API …………………………………… SUCCESS [ 14.137 s]
[INFO] Jzy3d Depth Peeling Extension …………………. SUCCESS [ 0.648 s]
[INFO] Jzy3d|FX ……………………………………. FAILURE [ 0.520 s]
[INFO] Jzy3d LibSVM ………………………………… SKIPPED
[INFO] Jzy3d SVM Mapper …………………………….. SKIPPED
[INFO] Jzy3d SWT Tools ……………………………… SKIPPED
[INFO] Jzy3d Tutorials ……………………………… SKIPPED
[INFO] ————————————————————————
[INFO] BUILD FAILURE
[INFO] ————————————————————————
[INFO] Total time: 29.089 s
[INFO] Finished at: 2018-03-14T14:07:39+09:00
[INFO] Final Memory: 24M/285M
[INFO] ————————————————————————
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:compile (default-compile) on project jzy3d-javafx: Compilation failure: Compilation failure:
[ERROR] /home/masa/Downloads/jzy3d-api-master/jzy3d-javafx/src/main/java/org/jzy3d/javafx/controllers/mouse/JavaFXCameraMouseController.java:[3,20] package javafx.event does not exist

Maybe I need JavaFX.

This stackoverflow thread seems suggest the answer.

I did #sudo apt-get install openjfx

NEW packages  installed:
libopenjfx-java libopenjfx-jni openjfx

Openjfx installed at /usr/share/java/openjfx
and fixed this problem.

[INFO] ————————————————————————
[INFO] Reactor Summary:
[INFO]
[INFO] Jzy3d Master Project …………………………. SUCCESS [ 0.931 s]
[INFO] JDT core (fork of https://github.com/yonatang/JDT) . SUCCESS [ 20.053 s]
[INFO] Jzy3d API …………………………………… SUCCESS [ 8.399 s]
[INFO] Jzy3d Depth Peeling Extension …………………. SUCCESS [ 0.230 s]
[INFO] Jzy3d|FX ……………………………………. SUCCESS [ 2.516 s]
[INFO] Jzy3d LibSVM ………………………………… SUCCESS [ 2.255 s]
[INFO] Jzy3d SVM Mapper …………………………….. SUCCESS [ 0.873 s]
[INFO] Jzy3d SWT Tools ……………………………… SUCCESS [ 5.412 s]
[INFO] Jzy3d Tutorials ……………………………… SUCCESS [ 14.148 s]
[INFO] ————————————————————————
[INFO] BUILD SUCCESS
[INFO] ————————————————————————
[INFO] Total time: 56.589 s
[INFO] Finished at: 2018-03-15T09:39:56+09:00
[INFO] Final Memory: 30M/255M
[INFO] ————————————————————————

🖒