Sunday, May 19, 2024

20240519 Never Zero

1,LTCM合伙人Victor Haghani反思kelly准则在金融界至今仍被忽视- 硬币实验

https://knowen-production.s3.amazonaws.com/uploads/attachment/file/2159/Haghani-Dewey%2Bexperiment.pdf

2,kelly本人 1956年 A New Interpretation of Information Rate论文原文

https://www.princeton.edu/~wbialek/rome/refs/kelly_56.pdf

3,赛马相关论文

1)1976

https://www.journals.uchicago.edu/doi/abs/10.1086/260419?journalCode=jpe

2)2017

https://etheses.whiterose.ac.uk/17852/1/Chi%20Zhang-PhD%20Thesis.pdf

4,赛马专业数据

https://www.totalperformancedata.com/live-pr-api/

Monday, April 3, 2023

20230404 Install ruby on M1 Mac

brew update

brew upgrade

% brew --version

Homebrew 4.0.11

Homebrew/homebrew-core (git revision e9b537f0839; last commit 2023-03-12)

Homebrew/homebrew-cask (git revision a992121346; last commit 2023-03-12)

brew install rbenv

Add these two lines to .zshrc

export PATH="$HOME/.rbenv/bin:$PATH"

eval "$(rbenv init - zsh)"

brew install libyaml

brew install virtualenv

rbenv install -l

rbenv install 2.7.8

rbenv install 3.0.6

rbenv install 3.1.4

rbenv install 3.2.2

rbenv global 2.7.8

ruby --version

ruby -e "puts (1..100).reduce(:+)"

rbenv global 3.2.2

ruby --version

ruby -e "puts (1..100).reduce(:+)"

Thursday, March 9, 2023

20230308 Bamboo Build had to be cancelled: it was marked as in progress in DB

08-Mar-2023 01:34:16 Build XXXX-FPE25-JOB3-191 had to be cancelled: it was marked as in progress in DB but no agents were assigned to it.

UPDATE BUILDRESULTSUMMARY SET LIFE_CYCLE_STATE = 'Finished' where  BUILD_KEY = 'XXXX-FPE25-JOB3' and BUILD_NUMBER = 191
UPDATE BUILDRESULTSUMMARY SET BUILD_STATE = 'Unknown' where  BUILD_KEY = 'XXXX-FPE25-JOB3' and BUILD_NUMBER = 191
UPDATE BUILDRESULTSUMMARY SET BUILD_CANCELLED_DATE = '2023-03-08 17:25:44.2950000' where  BUILD_KEY = 'XXXX-FPE25-JOB3' and BUILD_NUMBER = 191
UPDATE BUILDRESULTSUMMARY SET BUILD_AGENT_ID = 0 where  BUILD_KEY = 'XXXX-FPE25-JOB3' and BUILD_NUMBER = 191
UPDATE BUILDRESULTSUMMARY SET DELTA_STATE = 'NONE' where  BUILD_KEY = 'XXXX-FPE25-JOB3' and BUILD_NUMBER = 191
UPDATE BUILDRESULTSUMMARY SET LIFE_CYCLE_STATE = 'Finished' where  BUILD_KEY = 'XXXX-FPE25' and BUILD_NUMBER = 191

Need to restart according to Atlassian support. 

Wednesday, March 8, 2023

20230308 Start Docker Desktop at the Windows Startup

https://stackoverflow.com/questions/51252181/how-to-start-docker-daemon-windows-service-at-startup-without-the-need-to-log/59467740#59467740

  • Task Scheduler
  • General
    • User: xxxx
    • Run whether user is logged on or not
    • Run with highest privilege
  • Triggers
    • At Startup
    • Delay task for 1 minute
    • Enabled
  • Action
    • Start a program
    • C:\Program Files\Docker\Docker\Docker Desktop.exe
Needed:
  • User xxxx must be in the Administrator group (edit Local Users and Groups)
  • May add xxxx to docker group

Additional:
  • Manually start Docker Desktop, accept agreements, uncheck "Open Docker Dashboard at Startup"
The agreement and dashboard may block the auto startup. 



Tuesday, January 10, 2023

20230110 Error Code 0x800F0954 Windows 10

Temporarily bypass WSUS server using the following registry edit (requires administrator privileges).

1. Right-click Start, and click Run
2. Type regedit.exe and click OK
3. Go to the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU
4. In the right-pane, if the value named UseWUServer exists, set its data to 0
5. Exit the Registry Editor
6. Restart Windows update service

Reference: https://learn.microsoft.com/en-us/answers/questions/112308/error-code-0x800f0954-on-windows-10.html

Wednesday, December 7, 2022

20221207 PowerShell auto update

 PowerShell 7.2 enables a default auto update with Windows Update. 

To disable,

$pwshRegPath = "HKLM:\SOFTWARE\Microsoft\PowerShellCore"
if (!(Test-Path -Path $pwshRegPath)) {
    throw "PowerShell 7 is not installed"
}

Set-ItemProperty -Path $pwshRegPath -Name UseMU -Value 0 -Type DWord