Posts

ubuntu 24.04 build from source install newest arbitrum chain nightly node

  Title ubuntu 24.04 build from source install newest arbitrum chain nightly node see: https://docs.arbitrum.io/run-arbitrum-node/nitro/build-nitro-locally $ sudo apt install git curl build-essential cmake npm golang make python3 -y $ sudo apt install clang gotestsum wabt lld-19 -y $ npm install --global yarn $ ln -s /usr/bin/wasm-ld-13 /usr/local/bin/wasm-ld $ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash $ nvm install 23 $ nvm use 23 $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh $ source "$HOME/.cargo/env" $ rustup install 1.86.0 $ rustup default 1.86.0 $ rustup install nightly-2025-05-08 $ rustup target add wasm32-unknown-unknown --toolchain 1.86.0 $ rustup target add wasm32-wasi --toolchain 1.86.0 $ rustup target add wasm32-wasip1 --toolchain 1.86.0 $ rustup target add wasm32-unknown-unknown --toolchain nightly-2025-05-08 $ rustup target add wasm32-wasi --toolchain nightly-2025-05-08 $ rustup target add wasm32-w...

how vmware player run or develop with f-stack(dpdk)

Image
  f_stack  office here what is this:     I develop in windows 11, wsl2 and hyper can not support virtual net interface for dpdk, so i installed VMware Workstation 17 Player in windows, and it installed ubuntu 22.04 in vmware to develop my c++ project with f-stack(dpdk). ide is vscode. why select f_stack:    no found ipv6 keywords in mtcp, so selected f_stack. 1. for my ubuntu 22.04 in VMware Workstation 17 Player install 2 virtual net interfaces, 1 for normal, 2 bind for dpdk develop > modify vmware net driver profile in windows file: {your vm os installed path}\Ubuntu 64.vmx ethernet0.virtualDev = "vmxnet3" ethernet1.virtualDev = "vmxnet3" 2. check out f-stack(with dpdk) in ubuntu 22.04 $ sudo -i   $ git clone https://github.com/F-Stack/f-stack.git 2. prepare install tools for first timer:  $ apt-get install libnuma-dev python3 python3-pip meson -y && pip3 install pyelftools gawk gcc make libssl-dev pkg-config   3. build...

txt2rss software publish

txt to rss software, it can start one rss server to response rss style content from txt file.  useage  put your multiple content to html/txt/{fileName}.txt, txt template your can see html/txt/1.txt,  then access your url: http://127.0.0.1:28081/rss/?file={fileName} if your want random access rss item: http://127.0.0.1:28081/rss/?random=1&file={fileName} startup  $ ./txt2rss or custom bind address: $ ./txt2rss -addr=127.0.0.1:28081 advance usage this tool with pkrss: https://sourceforge.net/projects/pkrss/ add http://127.0.0.1:28081/rss/?file=1 to your custom rss source, then listen and see lyric in windows. download in here: https://github.com/pkrss/txt2rss/releases

china futures ctp realtime server docker image description

what used this docker image,to receive china futures ctp realtime data. How 1. docker: docker image see: https://hub.docker.com/r/pkrss/ctp-market/ docker template:     image: docker.io/pkrss/ctp-market:latest     environment: (change below values if your need)       - users.simnow.mdInvesterID="{your account id, liked 065206}"       - users.simnow.mdInvesterPassword="{your simnow password}"       - users.simnow.mdBrokerID="9999"       - users.simnow.mdFrontAddr="tcp://218.202.237.33:10012"       - users.simnow.mdInvesterPassword="tcp://218.202.237.33:10002"       - sys_log_filePath=       - sys_wsSrv_port=8086 2. web socket client: websocket client docker ip:8086, send json string to regist realtime data: {"cat": "quote","oper": "realtime", "data", {"stk":"*"}} you can change * to your want symbol, liked: "rb1809". After that your can ...

Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found

error: root@DESKTOP-OLCMPRJ:/mnt/d/setup/download/0xbtcminer-linux_2.10.2$ ./0xbitcoin-miner pkg/prelude/bootstrap.js:1172       throw error;       ^ Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /mnt/d/setup/download/0xbtcminer-linux_2.10.2/hybridminer.node)     at Object.Module._extensions..node (module.js:668:18)     at Module.load (module.js:558:32)     at tryModuleLoad (module.js:501:12)     at Function.Module._load (module.js:493:3)     at Module.require (module.js:583:17)     at Module.require (pkg/prelude/bootstrap.js:1153:31)     at require (internal/module.js:11:18)     at Object.<anonymous> (/snapshot/0xbitcoin-gpuminer/0xbitcoinminer-accel.js:0:0)     at Module._compile (pkg/prelude/bootstrap.js:1243:22)     at Object.Module._extensions..js (module.js:650:10) How: Ubuntu: wget http...

how to get cpp boost ptree json array root json string

Why because default cpp boost ptree json not support root array json format. there is so many other json parse engine on internet. buy i want to reused boost ptree. my code: ptree r, r0, p1, p2; ptree p0, p, c1, c2; c1.put("c1a", "a"); c1.put("c1b", "b"); c2.put("c2a", "a"); c2.put("c2b", "b"); p.push_back(std::make_pair("", c1)); p.push_back(std::make_pair("", c2)); p0.push_back(std::make_pair("", p)); std::string s; std::stringstream ss; write_json(ss, p0); s = ss.str(); i want to get below string format: [    {...},    {...}   ] but boost ptree generate string like this: {   "":[    {...},    {...}   ] } How : remove string above of '[' and after ']': std::string getJArrayString(const ptree& p) { ptree p0; p0.push_back(std::make_pair("", p)); std::stringstream ss; write_json(ss, ...

fixed error to get the value of VCTargetsPath:

Error: E:\work\git\third\grpc\grpc\.build>cmake .. -G "Visual Studio 14 2015" -DCMAKE_BUILD_TYPE=Release CMake Error at CMakeLists.txt:31 (project):   Failed to run MSBuild command:     MSBuild.exe   to get the value of VCTargetsPath:     system can not find the file specified. How fixed it: open "Developer Command Prompt for VS 2017" in start menu. or it's content is: %comspec% /k "D:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat" Last:  can run now.