木曜日, 1月 11, 2018

Plot in Julia ; How to set mesh sizes in marginalhist of StatPlot.

To plot data in marginal histogram by marginalhist() of StatPlot.jl in Julia,

The iris example in default setting, it displays as follows.

using RDatasets, StatPlots
iris = dataset("datasets","iris")

@df iris marginalhist(:PetalLength, :PetalWidth)




To set mesh sizes more fine using by bins.

@df iris marginalhist(:PetalLength, :PetalWidth, bins=30)




Another examples.

The default one.

using StatPlots
c=10000; marginalhist(randn(c), randn(c))



To set mesh sizes more fine using by bins.

using StatPlots
c=100000; marginalhist(randn(c), randn(c), bins=50)



月曜日, 10月 03, 2016

The method to open a custom dir(storing the Jupyter's notebooks) within the iCloud Drive(macOS Sierra) by command '$jupyter nootebook'.

Enviroment : macOS 10.12.4(.3~) Sierra , Jupyter client 5.0, Jupiter-core 4.3.0(4.2.0~) ,  anaconda client 1.6.2(1.5.1~)


 1. iCloud Drive's path of the macOS Sierra can get path with terminal by  
 /Users/(user's home dir)/Library/Mobile\ Documents/com\~apple\~CloudDocs/ 
 2. Let's make new dir (folder) in it and set a new name ('Notebook').
 3. then this dir can get path with terminal by 
  /Users/(user's home dir)/Library/Mobile\ Documents/com\~apple\~CloudDocs/Notebook
 4. To generating config file for Jupyter's custom setting, type $jupyter notebook --generate-config and return.
 5. Open this config file named 'Jupiter_notebook_config.py'. (included under /Users/(user's home dir)/.jupyter/) by the text editor you like.
 6. In your text editor, find some line including "## The directory to use for notebooks and kernels." or "#c.NotebookApp.notebook_dir = ''".
 7. Copy and paste #c.NotebookApp.notebook_dir = '' to next line and comment out this line by removing '#in your editor.
 8. Copy path text between '' just like following: c.NotebookApp.notebook_dir = '/Users/(user's home dir)/Library/Mobile Documents/com~apple~CloudDocs/Notebook' in your text editor.
 9. Then you save this file and close the editor.
10. Open Jupyter's notebook  with terminal by command '$jupyter notebook'. Then it shows the notebook dir in the iCloud drive customized above in your default Web browser.

木曜日, 1月 24, 2008

Apple MacBook 2.2GHz SuperDrive (Late 2007) Tracking 

Apple MacBook 2.2GHz SuperDrive (Late 2007)を注文した。所有中のiBook 600MHz ComboDrive(Late 2001)のHDDの異音、液晶ディスプレイバックライト電源の不安定等が出て半年、通常使用には耐えなくなってきていて、MacBook次期モデルの出る二、三ヶ月先までは持たないと思い、購入を決めました。

AppleStoreでの注文成立が2008/1/21。
KeyboardはUSにしたため国外でカスタマイズ後の出荷ですが、AppleStoreご注文詳細も、ほどなく出荷準備中から出荷完了へ変り、
出荷日:: 2008/01/23 
配送業者: EXPEDITORS SINGAPORE PTE LTD
お届け予定日: 2008/01/29 - 2008/01/31
となりました。
納品日に三日間も幅があるし、妙に先だなと思ったので、ここでもう一押し。

上記配送業者名をGoogle検索した所、そのWEB SiteがExpeditors International of Washington, Inc. 。
そのサイト左側のexp.o® Guest Searchのボックスに enter a reference number とあり、説明に Displays general shipment information. For more details, log in to exp.o とあります。ここに今回のApple管理番号を入力。するとこの国際配送のトラッキング情報が表示されました! 現地(上海)時間で書いてありますが、右下にあるボタンで日本時間に設定もできます。そして、なんと日本到着は、ちょうど今日なのでした!

この飛行貨物便はJALなのでFlghit #/Voyageの記号JL6522の当日の運行状況を、JALCARGOというサイトで調べる事もできます。
その中の e-CARGO 国際線便・発着案内に行きます。「本日の便案内」の「空港コード」には’成田’を意味する「NRT」、「フライト」には「到着便」、「国際線発着案内」の「フライト番号」には「JL6522」、出発地は省略し、当日の日付を入れれば、予定/発着日付が表示されます(実際、下の成田到着時間1/24,19:41 JSTとぴったり一致!)。

以降の国内配送はクロネコヤマトで確認できます…ん…できるはず。なのに伝票番号が来ない?!
国内便の方が掴みにくいなんて。アップルに問い合わせたら番号は判明したのですが、今度はヤマト運輸がまだ番号未登録状態の模様。まあ、いずれにしても意外に早目の到着かな。

以下は上の国際配送の情報(最終版)。すごく便利ですね。