V-antena and Tanimoto's page

谷本の備忘録・雑記帳・work

>

カテゴリー: tips information and links

CATEGORY ARCHIVE

1.Remote debug
'http://labs.timedia.co.jp/2011/03/jvm-eclipse-remotedebug.html
'http://qiita.com/san_yamagami/items/12864f6c1a134261072a
2.Heap memory monitor
// visualVM and jstatd
'http://qiita.com/maaru/items/7abdda94f69fbf029e17
'https://x1.inkenkun.com/archives/780

jmx経由はcatalina.shに
export
CATALINA_OPTS=”-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.por
t=7777
-Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremot
e.ssl=false
-Djava.rmi.server.hostname=192.168.2.102″
を追加したらできた

Excelの散布図で、「1.レコード(行)数が可変でも自動で散布図作成」、「2.特定
(先頭)のレコードのプロットを違う色で表示」、「3.プロットがどのレコードに対応
しているかを表示」を行う。

This article explains methods of [1. automatic build scatter chart independent f
rom record size (# of rows)], [2. display the plot of a specific record (top r
ow) with a different color], [3. Identification and indication about the record
of the selected plot]

data sheet
――――+―――――+―――――-+――――-+――――-+
=COUNTA($A$3:$A$10000) | |
|
――――+―――――+―――――-+――――-+――――-+
record | dat1 | dat2 | dat3 | dat4 |
――――+―――――+―――――-+――――+――――+
id1 | 1.18 | 2.11 | 0.97 | 1.63 |
id2 | 1.26 | 1.41 | 1.27 | 4.71 |
id3 | 1.24 | 2.52 | 1.38 | 2.26 |
id4 | 1.47 | 2.02 | 1.29 | 3.92 |
――――-+―――――+―――――-+―――――+―――+

scatter sheet ( two scatter charts)

1.レコード(行)数が可変でも自動で散布図作成

  1. automatic build scatter chart independently from record size

a) register names columns by using CTL+F3 and OFFSET function
e.g. name: val1
ref. range : =OFFSET(data!$B$3,0,0,data!$A$1,1)
name: val2
ref.range : = OFFSET(data!$c$3,0,0,data!$A$1,1)

b) create scatter chart with data range settings like as following e.g.
x series value: =data!val1
y series value: =data!val2

2.特定(先頭)のレコードのプロットを違う色で表示

  1. display the plot of top row with a different color

This method is simple.
Just add a data series with top record row , then overwrite the graph with this
graph.
e.g. series name: = “head_object”
x series value: =data!$b$3
y series value: =data!$c$3

3.プロットがどのレコードに対応しているかを表示

  1. Identification and indication about the record of the selected plot

I implemented this functionality with VBA.
a) create a class module
e.g. chart_event
b) write code in the chart_event module.
e.g.

Option Explicit
Public WithEvents scatterchart As Chart
Private Sub scatterchart_Select(ByVal ElementID As Long, ByVal x As Long, ByVal
y As Long)
‘ I don’t know ,but getChartElement was not necessary
‘ x is series index, y is plot index
If (ElementID = xlSeries) And (y <> -1) Then MsgBox Worksheets(“Data”).Cells(2 +
y, 1).Value()
End Sub

c) write code in a standard module
e.g. (in this case : enableplot is a macro activated by a button)

Dim scattercharts(1) As New chart_event
‘ don’t forget “new”
Sub enableplot()
‘ Keep the order of “dim” senetense and “sub” sentense
‘ if “sub” ? “dim” order, events are not captured
Set scattercharts(0).scatterchart = Worksheets(“scatter_chart”).ChartObjects(1).
Chart
Set scattercharts(1).scatterchart = Worksheets(“scatter_chart”).ChartObjects(2).
Chart
End Sub

d) put a button as control on scatterchart sheet and bind this button to the “en
ableplot” sub procedure

Remmina経由のリモートデスクトップ接続は接続先でキーボードが動かなかったので、RaspiのVPNサーバー経由でWindows10にリモートデスクトップ接続した

In case of remote desktop connection by using Remmina key board didn’t work. So I connect a windows10 PC by remote desktop via VPN server on Raspi.

http://hila335.blog136.fc2.com/blog-entry-604.html

Teraterm 経由で接続するというもの
Remte desktop is established via Teraterm terminal software

step1: VPN接続  
step2:TeratermでVPNサーバーにSSH接続 
step3:設定タブでSSH転送を選択 
step4:追加で転送ポート番号(13389)リモートデスクトップ先のIP、ポート番号3389を設定し、OK 
step5:リモートデスクトップ接続で、localhost:13389で接続可能になる

step1: connect VPN
step2: connect to your VPN server by SSH with a teraterm teminal software.
step3: select setup and SSH Forwarding.
step4: click add and set forward local port(e.g. 13389), to remote machne(I address) and port(3389), then OK
step5:remote desktop connection wtth localhost:13389

V-antena and Tanimoto's page

あなたはIPv4でアクセスしています