2020-02-11 07:00 分まとめ(18件)

カテゴリー サイト名 記事タイトル リンクURL 頻出ワード・要約等 登録日
金融 金融庁ホームページ 「違法な金融業者に関する情報について」を更新しました。 https://www.fsa.go.jp/ordinary/chuui/index.html 2020-02-10 17:00:00
金融 金融庁ホームページ 「違法な金融業者に関する情報について」を更新しました。 https://www.fsa.go.jp/ordinary/chuui/index.html 2020-02-10 17:00:00
TECH Engadget Japanese 5分でわかる昨日のニュースまとめ:2月10日に注目を集めたのは「au PAY祭り開始も2日で10億円を使い果たす」 https://japanese.engadget.com/jp-2020-02-10-5-2-10-au-pay-2-10.html 日々、何十も記事を掲載しているEngadget日本版ですが、「結局どれが注目なのか」「重要なニュースが埋もれちゃう」なんて声もちらほら。そんなわけで昨日注目を集めたトピックスをピックアップしてお届けします。 2020-02-10 21:30:00
TECH Techable(テッカブル) ボタンひとつで音色を変えられる電子和太鼓「TAIKO-1」、ローランドが今夏発売 https://techable.jp/archives/116732 taiko 2020-02-10 21:00:49
Google カグア!Google Analytics 活用塾:事例や使い方 完全ワイヤレスイヤホンにコスパを求める僕がANKERを選んだ3つの理由 https://www.kagua.biz/review/smartphone/anker-kosupa.html anker 2020-02-10 21:00:40
AWS AWS Partner Network (APN) Blog Enabling AWS Single Sign-On Service (SSO) Integration with Databricks Control Plane https://aws.amazon.com/blogs/apn/aws-single-sign-on-service-integration-with-databricks-control-plane/ AWS Single Sign On makes it easy to centrally manage SSO access to multiple AWS accounts and business applications You can use AWS SSO to create and manage users centrally and grant access to AWS accounts and business applications such as Databricks Instead of having to sign in separately to Databricks Control Plane and other business applications with this configuration enabled users can access Databricks with their corporate credentials using AWS SSO 2020-02-10 21:26:06
Ruby Rubyタグが付けられた新着投稿 - Qiita メタプログラミング理解の覚書 https://qiita.com/niki_cat_0714/items/69dff593e47dfe1d6c0b 追加だけではなく、既にあるメソッドと同名を定義すれば上書きできますこれがモンキーパッチ。本当は、このモンキーパッチを使ってdefVの中で計算結果にを足したかった。 2020-02-11 06:47:46
海外TECH DEV Community Running Linux Programs as Unikernels on macOS https://dev.to/eyberg/running-linux-programs-as-unikernels-on-macos-9dd Someone emailed me the other day and was having some trouble gettingtheir program to work under OPS He had downloaded a binary release from github and knowing that OPS only runs linux binaries chose the linux version Further there are numerousexamples of people running linux programs under ops on osx Hell just do aops pkg listfor a short list However for some reason it just wasn t working for him user users MacBook Pro Desktop ops run solana validator errors errorString libstdc so file does not exist Users eyberg go src github com nanovms ops lepton ldd darwin go xc Users eyberg go src github com nanovms ops lepton ldd darwin go xcd Users eyberg go src github com nanovms ops lepton image go xcde Users eyberg go src github com nanovms ops lepton image go xcff Users eyberg go src github com nanovms ops cmd run go xca Users eyberg go src github com nanovms ops cmd run go xcaf Users eyberg go pkg mod github com spf cobra v command go xcbfe Users eyberg go pkg mod github com spf cobra v command go xccbb Users eyberg go pkg mod github com spf cobra v command go xcad Users eyberg go pkg mod github com spf cobra v command go xcad usr local go src runtime proc go xfc main return usr local go src runtime asm amd s xa goexit GLOBL shifts lt gt SB RODATA panic libstdc so file does not existAfter I saw the word mac and then libstdc I knew immediately what was wrong but I also realized that it might not be readily apparent to many people and so this is what this blogpost is about The binary in question is dynamically linked What this means is thatthere are several libraries that the dynamic loader ld will try andload at runtime versus statically linked where all the libraries arepackaged inside the binary This leads to a fatter binary but you can beassured that everything is present when needed I won t jump into astatic dynamic flamewar as they each have their own usecases I should also point out that normally you can t run linux binaries directly on a mac this is actually a uniquely interesting unikernel aspect as we don t need to boot up vagrant or a linux vm Traditional virtualization software virtualizes the operating system You can see using a tool like OPS as virtualizing the application instead One of the reasons I decided to write this post was not just the email but I ve noticed in the past few years I ve seen quite a lot of people that use containers and go to refer to their programs as statically linked when it is in fact absolutely not Let s look at this example go webserver package mainimport fmt net http func main http HandleFunc func w http ResponseWriter r http Request fmt Fprintf w Welcome to my website fs http FileServer http Dir static http Handle static http StripPrefix static fs http ListenAndServe nil Fairly simple all it does is listen on and serve up requests If we compile it go buildWe see that by default it will be dynamically linked against a few libs eyberg box z ldd z linux vdso so xffebdb libpthread so gt lib x linux gnu libpthread so xfef libc so gt lib x linux gnu libc so xfee lib ld linux x so xfe eyberg box z file zz ELF bit LSB executable x version SYSV dynamically linked interpreter lib l not strippedVDSO gives us a fast clock Libpthread gives us threads Libc contains everything you d find in section of the man pages and finally LD is our loader You can link your go programs statically via something like this eyberg box z go build buildmode pie ldflags linkmode external extldflags static home eyberg z tmp go link o In function cgo ebcabcd Cfunc getaddrinfo tmp go build cgo gcc prolog warning Using getaddrinfo in statically linked applications requires at runtime the shared libraries from the glibc version used for linkingeyberg box z ldd z not a dynamic executableeyberg box z file zz ELF bit LSB executable x version GNU Linux statically linked for GNU Linux BuildID sha debafedfadeebce not strippedBoth ldd amp amp file now report that it is statically linked However you ll notice at least in go it now outputs a message stating that getaddrinfo is still required That s cause even though ldd output and file is telling us that it is indeed static we still rely on libnss for dns You can force go to use its built in resolver instead Getaddrinfo is found here eyberg box s solana release bin readelf dyn syms lib x linux gnu libc so grep getaddr bc FUNC GLOBAL DEFAULT getaddrinfo GLIBC c FUNC GLOBAL DEFAULT inet rth getaddr GLIBC You ll note that your libraries are probably stripped which means you can t use something like nm to find the symbols but readelf surfaces them up in the dynsym section Also even that is not enough you ll probably make use of various functions found in these files as well eyberg box z ls lib x linux gnu libnss files so lib x linux gnu libnss files so eyberg box z ls lib x linux gnu libnss dns so lib x linux gnu libnss dns so The point here is that just sticking a go program in a container does not inherently make your binary statically linked and the problem is that that is not what a lot of people have been stating and this source ofconfusion is probably what leads to misunderstandings such as this So let s go back to our example at the beginning of the article The program in question is the solana blockchain You can download and unzip like so wget bunzip solana release x unknown linux gnu tar bztar xf solana release x unknown linux gnu tarYou can see from the ldd output that it is trying to load a library that is dynamically linked libstdc and that s what our error in the trace was eyberg box s solana release bin ldd solana linux vdso so xffedf libc so gt lib x linux gnu libc so xfa lib ld linux x so xfa libdl so gt lib x linux gnu libdl so xfa librt so gt lib x linux gnu librt so xfc libpthread so gt lib x linux gnu libpthread so xfd libgcc s so gt lib x linux gnu libgcc s so xfe libm so gt lib x linux gnu libm so xfac As you can see this program works out of the box on linux eyberg box s solana release bin ops run c config json solana validator solana validator ledger booting home eyberg ops images solana validator img qemu system x warning TCG doesn t support requested feature CPUID H ECX vmx bit assigned solana validator log file solana validator w g Z y o z T R y v LtRNoXhmaEvEoXBxPyPfaCnyt logeyberg box s solana release bin cat config json Args solana validator ledger This is all fine but if you want to run it on osx you ll need to do oneof two things Either build from source and statically link it so ldd doesn t showoutput or Download the libraries it s linked to and manually add them to thefilesystem The reason this works out of the box on linux   is that OPS looks at andtry to load the libraries as we build the disk image This isn tpossible on a mac cause mac uses mach o which is a different format that Nanos does not and probably won t ever support as nanos is explicitly designed to run linux server side programs For example when we build common packages like nginx you ll see from the ops output that all required libraries are placed on the filesystem in a known location ➜ ops pkg contents node v File nodeFile package manifestDir sysrootDir sysroot libDir sysroot lib x linux gnuFile sysroot lib x linux gnu libc so File sysroot lib x linux gnu libdl so File sysroot lib x linux gnu libgcc s so File sysroot lib x linux gnu libm so File sysroot lib x linux gnu libnss dns so File sysroot lib x linux gnu libnss files so File sysroot lib x linux gnu libpthread so Dir sysroot libFile sysroot lib ld linux x so Dir sysroot procFile sysroot proc meminfoDir sysroot usrDir sysroot usr libDir sysroot usr lib x linux gnuFile sysroot usr lib x linux gnu libstdc so Without getting into the semantics of building your own package which you can find here the easiest way to do this with your own app is in your project directory you can create a directory mkdir p usr libthen include it in your config json that you pass to ops when it builds your image Dirs usr ops run c config json myprogramAfter that you can always grab the image that was created in ops images Hope this clears up any confusion 2020-02-10 21:17:34
海外TECH Engadget The first crewed SpaceX flight could happen around May 7th https://www.engadget.com/2020/02/10/spacex-crew-dragon-crewed-flight-may-2020/ Last month Elon Musk said he expected the SpaceX Crew Dragon to launch with astronauts onboard sometime between April and June Now Ars Technica s Eric Berger reports that first crewed flight could take off on May th Though due to quot a number of 2020-02-10 21:03:00
海外科学 NYT > Science Coronavirus: Live Updates and Coverage https://www.nytimes.com/2020/02/10/world/asia/coronavirus-china.html?emc=rss&partner=rss beijing 2020-02-10 21:29:33
ニュース @日本経済新聞 電子版 @nikkei 米司法省、中国軍関係者4人を起訴 米個人情報盗難で ... https://twitter.com/nikkei/statuses/1226987204079022080 nikkei 2020-02-10 22:52:00
海外ニュース Japan Times latest articles Eddie Jones unimpressed with plans to expand Six Nations tournament https://www.japantimes.co.jp/sports/2020/02/10/rugby/eddie-jones-unimpressed-plans-expand-six-nations-tournament/ organizers 2020-02-11 06:24:22
ビジネス ダイヤモンド・オンライン - 新着記事 アマゾン、トランプ大統領の証言求める 国防クラウド訴訟 - WSJ発 https://diamond.jp/articles/-/228509 証言 2020-02-11 06:13:00
北海道 北海道新聞 トランプ氏が不当指示と主張 アマゾン、法廷証言を要請 https://www.hokkaido-np.co.jp/article/392036/ 国防総省 2020-02-11 06:03:00
北海道 北海道新聞 取締役会経ず巨額報酬と主張 ゴーン被告訴訟で日産・三菱自 https://www.hokkaido-np.co.jp/article/392035/ 三菱自動車 2020-02-11 06:03:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2024-02-12 22:08:06 RSSフィード2024-02-12 22:00分まとめ(7件)