python |
Pythonタグが付けられた新着投稿 - Qiita |
カーネルリッジ回帰をnumpyで実装 |
https://qiita.com/nmmg0031785/items/48ea1e27123f65d4e21b
|
カーネルリッジ回帰をnumpyで実装カーネルリッジ回帰をnumpyのみで実装必要ライブラリのインポートkernelRidgePredictpyimportnumpyasnpnprandomseedimportmatplotlibpyplotaspltfromitertoolsimportproductサンプルデータの生成sin関数次関数に、正規分布のノイズを加える。 |
2022-01-28 00:29:14 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
VS Codeで*.js, *.ts, *.jsx, *.tsxのみにデフォルトフォーマッタとしてPrettierを設定する |
https://qiita.com/sakichan_td/items/feb5ea5937c3c3bec277
|
VSCodeでjstsjsxtsxのみにデフォルトフォーマッタとしてPrettierを設定するデフォルトフォーマッタや自動フォーマッティングの設定を言語ごとに変えたいときがある。 |
2022-01-28 00:07:57 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
rubocop で inheritance を利用しルールや設定が重複してしまった際に設定を統合する方法 |
https://qiita.com/mziyut/items/2e7f5cd2dba59f0b5a30
|
rubocopでinheritanceを利用しルールや設定が重複してしまった際に設定を統合する方法これはなにrubocopにはInheritanceというオプションがあり、設定を複数ファイルに記述またはリモートのファイルを参照し、読み込むことができるInheritanceの設定をしても、ルールが重複している場合、意図したルールが適用されなかったため対応した際のメモを記事にしましたInheritanceとはRubocopのルールはrubocopymlに設定を記載することが多いが、共通の設定を読み込む場合remoteURLを指定したり、Gemfile等に定義しているgemの中から定義を参照できますrubocopautogenconfigのコマンドを実行して生成するrubocoptodoymlもinheritfromで読み込むため、自然に利用している人も多いはずですinheritfromの詳細については、以下URLの「InheritingconfigurationfromaremoteURL」を確認してくださいinheritmodeを指定するInheritanceで複数設定を参照しつつ、定義が重複したときにどのように振る舞うか設定をinheritmodeで定義することができますinheritmodeはoverrideとmergeを設定することができデフォルトはoverrideになっています以下はrubocopymlとrubocoptodoymlの各ルールで定義されているExclude条件をmergeする場合に利用しますrubocopymlinheritfromrubocoptodoymlinheritmodemergeExclude最後になるべくルールや設定の重複は避け上書きしていくべきと考えていますが、プロジェクトの方針や状況に応じて柔軟な適用を必要とされるケースもあることを実感しました。 |
2022-01-28 00:36:42 |
Git |
Gitタグが付けられた新着投稿 - Qiita |
ubuntuでコマンドラインからgitのブランチ名を取得する(アスタリスクは除きたい) |
https://qiita.com/seigot/items/700c47968b30c06eb5a3
|
ubuntuでコマンドラインからgitのブランチ名を取得するアスタリスクは除きたいubuntuでコマンドラインからgitのブランチ名を取得するアスタリスクは除きたい通常のgitbranchだと、が含まれてしまう。 |
2022-01-28 00:56:56 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
【個人開発】おもしろTikTok動画とにらめっこするアプリを作りました |
https://qiita.com/slmk/items/6e0a8879fd5dc80ccdbb
|
主な使用技術フロントエンドNuxtjsvfaceapijsvvuechartjsvバックエンドRubyonRailsvomniauthgemvER図メインのテーブルusersユーザー情報videosTikTokビデオ情報ゲーム関連gameresultsゲーム結果laughedvideosどのユーザーがどの動画を見てどのくらい笑ったかを格納hiddenvideos非表示設定動画情報ユーザー通知関連usernotificationsユーザー通知内容latesttoprecords最新ベスト入りした動画の投稿ユーザーにスコアを付与する用その他contactsご意見・ご要望技術面の工夫TikTok動画の表示切り替えゲームで次のTikTok動画を表示する際にTikTok埋め込み用JSを再読み込みしないとうまく表示されませんでした。 |
2022-01-28 00:09:07 |
海外TECH |
MakeUseOf |
The 6 Best Search Engines to Search for Photos on Flickr |
https://www.makeuseof.com/tag/top-5-search-engines-find-photos-flickr/
|
available |
2022-01-27 15:45:40 |
海外TECH |
MakeUseOf |
8 Tech DIY Projects You’ve Never Thought of That You Should Try in 2022 |
https://www.makeuseof.com/tech-diy-projects-you-should-try/
|
never |
2022-01-27 15:30:12 |
海外TECH |
MakeUseOf |
What Is AT&T's New Multi-Gig Fiber and Where Is It Available? |
https://www.makeuseof.com/what-is-att-multi-gig-fiber/
|
What Is AT amp T x s New Multi Gig Fiber and Where Is It Available AT amp amp T just rolled out its new multi gig fiber option Here s everything you need to know about it and where the plans are available |
2022-01-27 15:15:11 |
海外TECH |
DEV Community |
Getting Started with Kubernetes as a Developer |
https://dev.to/okteto/getting-started-with-kubernetes-as-a-developer-2jea
|
Getting Started with Kubernetes as a DeveloperAre you tired of listening to everyone in DevOps talk about “Kubernetes while you re still struggling with how to pronounce it Unless you started programming today I m pretty sure you have heard the word but most likely as a developer you haven t gotten the chance to learn about it maybe because it seems intimidating or maybe because you aren t sure how it s useful for you Let me take you on a journey from being a developer clueless about Kubernetes to one who can understand all the mumbo jumbo the infra team talks about In the process you ll also start appreciating its beauty and usefulness in increasing developer productivity We ve got a lot to cover over the course of this series so let s jump right in The Death Of “It Works On My Machine It s important to have an understanding of containers before talking about Kubernetes Containers are executable packages of software that contain all the code and dependencies necessary to run an application anywhere And by anywhere I literally mean anywhere my laptop your laptop or even on “the cloud Are containers starting to sound similar to virtual machines Well they re not and in fact they re even better Why Because unlike VMs containers do not contain operating system images This means they re much more lightweight To create and run containers locally you would use a container engine like Docker Containers grew in popularity because they truly embraced the ideology of write once run anywhere Because of how fast and easy it is to deploy containers they increased developer productivity significantly A fun fact is that Okteto also utilizes these containers to give you a live preview of the changes you make while developing locally But as more and more companies started using containers a new problem arose How do you manage thousands of containers running on distributed systems And that s where Kubernetes saved the day Kubernetes To The Rescue Kubernetes often abbreviated as Ks is a container orchestration platform Let me explain this in very simple terms Let s say you have your app which you have containerized So you run a bunch of containers to serve your app to users But how do you manage these different containers The situation is complicated even more by the fact that these containers needn t necessarily be running on the same machine This is where Ks comes to the rescue It makes deploying managing and scaling containerized workloads a breeze I want to explicitly call out here that Ks is NOT a container engine like Docker Rather it is a container orchestrator As a developer you won t need to worry about “how Ks does all this orchestration You probably also will not have to set up a Ks cluster for your application But what you would mostly be doing is interacting with a cluster set up for you by the infrastructure team So it becomes important to be familiar with the Ks objects you ll be interacting with That s what we ll be focusing on in the articles in this series Before we do that let s have a high level idea about the architecture of Kubernetes so that you re not totally clueless about what is happening under the hood Kubernetes Under The HoodIn the Kubernetes world a machine is called a node A Ks “cluster is nothing but a group of nodes that run your containerized application These nodes may be bare metal servers in your home or instances you re running on a cloud provider These nodes are also of two types worker and master The worker nodes are the ones where your application s containers would actually be running Kubernetes actually uses an object called Pod to run these containers but more on that in the next article Three essential things running on a worker node in a Kubernetes cluster are Container runtime This should be no surprise since a container runtime is what is actually responsible for running containers Kubernetes supports multiple container runtimes including Docker and containerd kubelet This is the agent which is responsible for communicating with the Kubernetes control plane running on the master node It is responsible for executing any instructions it receives from the control plane It also makes sure that containers are running in the pods properly kube proxy This is a network proxy running on each node Not going into much detail you can think of it as being responsible for network communications within the cluster as well as outside the cluster We ll be exploring how all these communications happen between pods in a future article The master node is the one which has all the components of the Kubernetes control plane running on it You can also set up multiple master nodes for high availability Following are some important control plane components you should be familiar with kube apiserver This exposes the Kubernetes API which we can use to talk to our Ks cluster This can be thought of as the frontend for the Kubernetes control plane etcd This is the distributed key value store where all cluster related data is stored For security reasons it is only accessible through the API server This also helps ensure that the data stored in etcd is consistent kube scheduler This is responsible for scheduling pods on available worker nodes While scheduling it takes into consideration resource requirements of the pod and any other constraints that we specify kube controller manager A controller in Ks is responsible for observing an object and making sure that the current state of that object matches the desired state that we specified There are various controllers in Ks for different objects All these are combined into a single binary which is the kube controller manager cloud controller manager This is the component which lets you link your cluster to a cloud provider This binary contains all the cloud provider specific controllers So when something like a node termination happens in the cloud provider then this component will be responsible for handling that ConclusionAnd this covers all the basics of the Kubernetes architecture The really cool thing is that while it s good to have this knowledge as a Developer you probably won t have to worry about any of this at all especially if your team is using development environments like those provided by Okteto When you use Okteto you re able to develop from the comfort of your favorite IDE while at the same time you re able to see changes you make to your app live without having to commit build push or deploy You get to see a deployed preview of your changes exactly as users would see in production since Okteto deploys on an actual Kubernetes cluster In the next article we ll start diving deeper into common Kubernetes objects We will explore the Pods I mentioned briefly here and see how they can be managed using a Deployment which is another important Kubernetes object So while you wait for the next article in the series why don t you go give Okteto a try and see the magic for yourself The Kubernetes for Developers blog series has now concluded and you can find all the posts in this series here |
2022-01-27 15:45:00 |
Apple |
AppleInsider - Frontpage News |
Master and Dynamic MW07 Plus True Wireless Earphones are 40% off today |
https://appleinsider.com/articles/22/01/27/master-and-dynamic-mw07-plus-true-wireless-earphones-are-40-off-today?utm_medium=rss
|
Master and Dynamic MW Plus True Wireless Earphones are off todayMaster Dynamic is slashing off its MW Plus earbuds bringing the cost of all color options down to off Master Dynamic MW PlusMaster Dynamic s month end sale delivers the cheapest price on the high end earbuds Now marked down to with promo code TAKE this deal is at least cheaper than Amazon s price with all color options discounted including these Lamborghini designs whereas Amazon only stocks a handful of finishes Read more |
2022-01-27 15:50:36 |
Apple |
AppleInsider - Frontpage News |
Best deals Jan. 27: $100 off AirPods Max, $200 discount on GoPro Hero10, more! |
https://appleinsider.com/articles/22/01/27/best-deals-jan-27-100-off-airpods-max-200-discount-on-gopro-hero10-more?utm_medium=rss
|
Best deals Jan off AirPods Max discount on GoPro Hero more Thursday s best deals include off Beats Solo off the Belkin in Magsafe charger off a digital picture frame and off the Level Lock smart lock with HomeKit Best deals January As we do every day we ve collected some of the best deals we could find on Apple products tech accessories and other items for the AppleInsider audience If an item is out of stock it may still be able to be ordered for delivery at a later date Read more |
2022-01-27 15:29:24 |
Apple |
AppleInsider - Frontpage News |
Apple wants to shrink MacBook Pro by removing speaker grills |
https://appleinsider.com/articles/22/01/27/apple-wants-to-shrink-macbook-pro-by-removing-speaker-grills?utm_medium=rss
|
Apple wants to shrink MacBook Pro by removing speaker grillsApple has been researching how to embed a speaker underneath a MacBook Pro keyboard which would meaning being able to reduce the device s footprint First they came for the bezels and Apple isn t done reducing those and now it wants to cut back on the speaker grill Apple s ideal for the MacBook Pro appears to be one where the device is no wider than the keyboard and no taller than the screen Apple s ideal for the MacBook Pro is apparently the beloved inch PowerBook But that model wasn t known for having great audio not even with its hidden subwoofer inside the chassis Read more |
2022-01-27 15:15:41 |
Apple |
AppleInsider - Frontpage News |
Sophisticated Mac attack targeted pro-democracy activists in Hong Kong |
https://appleinsider.com/articles/22/01/27/sophisticated-mac-attack-targeted-pro-democracy-activists-in-hong-kong?utm_medium=rss
|
Sophisticated Mac attack targeted pro democracy activists in Hong KongSecurity researchers have analyzed a now patched malware attack that was used to compromise Mac devices belonging to Hong Kong pro democracy activists in November Malware illustrationThe attacks took place in and relied on a watering hole technique which involves compromising websites that potential targets might be interested in Google identified the threat in November after Apple had patched it in September of that year Read more |
2022-01-27 15:13:54 |
海外TECH |
Engadget |
Strange Milky Way object sends radio bursts a minute at a time |
https://www.engadget.com/strange-milky-way-transient-object-radio-burst-155654094.html?src=rss
|
Strange Milky Way object sends radio bursts a minute at a timeAstronomers are still finding strange objects that defy expectations According to BBC News researchers from the Curtin University node of the International Centre for Radio Astronomy Research ICRAR have discovered a strange spinning Milky Way object about light years away The repeating transient sent a giant burst of polarized radio energy for a full minute every minutes and was appearing and disappearing over the course of a few hours of observations ーfor context a pulsar s burst lasts a few seconds or less The curiosity is smaller than the Sun but is one of the brightest radio objects in the sky during its bursts The disappearances were also unique according to team lead Dr Natasha Hurley Walker Curtin student Tyrone O Doherty first spotted the object using the combination of Australia s Murchison Widefield Array and a new observation method There might be an existing explanation Hurley Walker said the data matched a predicted but as yet undiscovered object known as an ultra long period magnetar That is it s a neutron star spinning at a relatively lethargic pace Even if that s the case though scientists want to know why the object is converting magnetic energy to radio waves at such an efficient rate It could also be a white dwarf with an unusually strong magnetic field or something else altogether The frenzy appears to have subsided but Hurley Walker is still tracking the object in case it exhibits the odd behavior again She also plans to sift through the Murchison array s archives to learn if there were similar objects before Whatever this entity might be the findings are significant ーthey could shape our understanding of stars and the universe at large |
2022-01-27 15:56:54 |
Cisco |
Cisco Blog |
Silicon Photonics Explained: Cisco Optics Podcast Episode 17 notes |
https://blogs.cisco.com/sp/silicon-photonics-explained-cisco-optics-podcast-episode-17-notes
|
Silicon Photonics Explained Cisco Optics Podcast Episode notesJoin us for Episode of the Cisco Optics Podcast where we continue a conversation with Ron Horan who runs Product Management for the Cisco Client Optics Group |
2022-01-27 15:08:29 |
金融 |
◇◇ 保険デイリーニュース ◇◇(損保担当者必携!) |
保険デイリーニュース(01/28) |
http://www.yanaharu.com/ins/?p=4820
|
新サービス |
2022-01-27 15:45:34 |
金融 |
RSS FILE - 日本証券業協会 |
株券等貸借取引状況(週間) |
https://www.jsda.or.jp/shiryoshitsu/toukei/kabu-taiw/index.html
|
貸借 |
2022-01-27 15:30:00 |
金融 |
金融庁ホームページ |
「銀行法施行規則等の一部を改正する内閣府令(案)」等について公表しました。 |
https://www.fsa.go.jp/news/r3/sonota/20220127/20220127.html
|
内閣府令 |
2022-01-27 17:00:00 |
金融 |
金融庁ホームページ |
外国監査法人等の廃業等の届出について公表しました。 |
https://www.fsa.go.jp/news/r3/sonota/20220127-haigyo.html
|
監査法人 |
2022-01-27 17:00:00 |
金融 |
金融庁ホームページ |
IOSCOによる報告書「グローバル監督カレッジの活用から得られた教訓」について掲載しました。 |
https://www.fsa.go.jp/inter/ios/20220127/20220127.html
|
iosco |
2022-01-27 17:00:00 |
ニュース |
BBC News - Home |
Sue Gray's No 10 parties report will be published in full, says Boris Johnson |
https://www.bbc.co.uk/news/uk-politics-60153808?at_medium=RSS&at_campaign=KARANGA
|
inquiry |
2022-01-27 15:32:39 |
ニュース |
BBC News - Home |
Chris Whitty assault: Second man pleads guilty over park attack |
https://www.bbc.co.uk/news/uk-england-london-59746659?at_medium=RSS&at_campaign=KARANGA
|
attackengland |
2022-01-27 15:53:43 |
ニュース |
BBC News - Home |
US economy grows at fastest pace in decades |
https://www.bbc.co.uk/news/business-60158934?at_medium=RSS&at_campaign=KARANGA
|
activity |
2022-01-27 15:50:37 |
ニュース |
BBC News - Home |
Covid vaccines: The unvaccinated NHS workers facing the sack |
https://www.bbc.co.uk/news/uk-60104140?at_medium=RSS&at_campaign=KARANGA
|
deadline |
2022-01-27 15:08:56 |
ニュース |
BBC News - Home |
Talks for Joshua to step aside from Usyk rematch to allow Fury unification fight break down |
https://www.bbc.co.uk/sport/boxing/60156818?at_medium=RSS&at_campaign=KARANGA
|
Talks for Joshua to step aside from Usyk rematch to allow Fury unification fight break downTyson Fury is unlikely to fight Oleksandr Usyk next with both sides blaming the other for a breakdown in step aside talks with Anthony Joshua |
2022-01-27 15:33:00 |
ニュース |
BBC News - Home |
What are the latest rules for face coverings and masks? |
https://www.bbc.co.uk/news/health-51205344?at_medium=RSS&at_campaign=KARANGA
|
england |
2022-01-27 15:30:09 |
コメント
コメントを投稿