python |
Pythonタグが付けられた新着投稿 - Qiita |
Python参考サイト |
https://qiita.com/hiro_hiro_0425/items/e7c03d18c18c93b05589
|
参考 |
2022-12-01 22:03:08 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
JavaScript |
https://qiita.com/renbowroad/items/8576b0234be0e9530a95
|
javascript |
2022-12-01 22:55:10 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
Node.js + ExpressでTwitterBot作成 #2 『実装』 |
https://qiita.com/H_Tsukamoto/items/48a5e13dba3c79911fa5
|
nodejsexpress |
2022-12-01 22:52:55 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
Node.js + ExpressでTwitterBot作成 #1 『事前準備』 |
https://qiita.com/H_Tsukamoto/items/b2a76f8dcc3fd2995e28
|
express |
2022-12-01 22:36:14 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
Lexicalで数式エディタを作りたい(1日目) |
https://qiita.com/okmtyuta/items/52fb8004aaecdf14ce74
|
lexical |
2022-12-01 22:20:34 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
sinatra-contribのgem入れたけど動作しないなぁと思ったけど、時間が経ったら動いた件 |
https://qiita.com/Ktsuki16/items/f340b4620c483eafa9e6
|
sinatracontrib |
2022-12-01 22:27:37 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
Can't connect to MySQL server on 'xx' (115)エラーの解決方法と思わぬ落とし穴 |
https://qiita.com/taguchi_study/items/bc55873575025c37b92c
|
kercomposerunwebrailsdb |
2022-12-01 22:55:38 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
Can't connect to MySQL server on 'xx' (115)エラーの解決方法と思わぬ落とし穴 |
https://qiita.com/taguchi_study/items/bc55873575025c37b92c
|
kercomposerunwebrailsdb |
2022-12-01 22:55:38 |
技術ブログ |
Developers.IO |
psycopg2を使ってcreate databaseをしようとしたら”CREATE DATABASE cannot run inside a transaction block”とエラーが出た |
https://dev.classmethod.jp/articles/psycopg2-create-database-cannot-run-inside-a-transaction-block/
|
psycopgを使ってcreatedatabaseをしようとしたらCREATEDATABASEcannotruninsideatransactionblockとエラーが出たこんにちは、CX事業本部の夏目です。 |
2022-12-01 13:45:34 |
技術ブログ |
Developers.IO |
[レポート]What’s new with Amazon Redshift #ANT201 #reinvent |
https://dev.classmethod.jp/articles/reinvent2022-report-ant201/
|
antwhat |
2022-12-01 13:41:04 |
技術ブログ |
Developers.IO |
pandasのDataFrameで整数型に欠損値を追加したくて〜2022年冬〜 |
https://dev.classmethod.jp/articles/add-na-on-integer-from-pandas/
|
shiro |
2022-12-01 13:29:34 |
海外TECH |
DEV Community |
Using Kubectl Logs | How to view Kubernetes Pod Logs? |
https://dev.to/danielfavour/using-kubectl-logs-how-to-view-kubernetes-pod-logs-1op8
|
Using Kubectl Logs How to view Kubernetes Pod Logs This article was written by me for SignozInformation about the containers and pods on your cluster may be obtained using the kubectl logs command These logs allow you to know the performance of your applications whether they are failing or healthy and are particularly useful for debugging and troubleshooting purposes In this article we will see how to use the kubectl logs command to get information from existing resources in a Kubernetes cluster Before we dive in let s first take a quick look at what Kubectl is and how exactly it works What is kubectl Kubectl is pronounced Kube c t l Kube control or as kube cuttle It is a command line tool for Kubernetes that lets you control or communicate with Kubernetes clusters or resources you create by using the Kube API Take a look at how this works in the background You issue a kubectl command for example kubectl logs Kubectl connects to the Kube API server which verifies and authenticates the request you made The Kube API server in return responds to you as a client user with the requested data or information after it has completed authentication and validation This requested data is obtained from the etcd server which serves as the Kubernetes database Etcd server stores information regarding the cluster such as the nodes pods configs secrets etc Every information presented to you when you run a kubectl command is gotten from the etcd server The Kube API server acts as a messenger for delivering your requests This is how kubectl as a command line tool lets you interact with your cluster or resources For more insight it would be beneficial to look at the Kubernetes architecture What is a log Simply put a log is a text record of an event or incident that took place at a specific time There are few possibilities of figuring out what went wrong when your software crashes and you need logging information This is why logs are very important What is kubectl log command An integrated tool for reading logs is kubectl log It might not be the greatest choice for production scenarios because this is a manual process Your business needs will determine which tool is best for viewing your Kubernetes logs The kubectl log command is the command that displays information about the background activities or events completed or ongoing in your resources It is used to view container logs for debugging Because container applications are packaged in pods if an application is failing or misbehaving the next line of action would be to check the logs of the container s in that pod to know why Debugging your Kubernetes resources depends on your logs With the knowledge provided by this command you can restart your pod by making the necessary adjustments or repairs Using kubectl logsTo access the logs for a specific resource you can first get a list of the resources that are part of your cluster To get a list of available pods in your cluster run the below command kubectl get podsevent simulator Running mnginx dcbc fm Running spod ContainerCreating spod example ImagePullBackOff msample flask ddd tt ErrImageNeverPull msample flask dfb vbztg ErrImageNeverPull mwebapp Running d ago dwebapp release Running d ago dAfter getting a list of all existing pods the logs of those pods can be seen individually by running This returns a snapshot of the logs from the podkubectl logs pod name If you want to stream or follow the logs in a pod you can use the below command kubectl logs f event simulator INFO in event simulator USER is viewing page INFO in event simulator USER logged out INFO in event simulator USER is viewing page INFO in event simulator USER is viewing page INFO in event simulator USER logged out WARNING in event simulator USER Failed to Login as the account is locked due to MANY FAILED ATTEMPTS INFO in event simulator USER is viewing page INFO in event simulator USER is viewing page INFO in event simulator USER is viewing page WARNING in event simulator USER Order failed as the item is OUT OF STOCK INFO in event simulator USER logged out INFO in event simulator USER is viewing page WARNING in event simulator USER Failed to Login as the account is locked due to MANY FAILED ATTEMPTS INFO in event simulator USER is viewing page INFO in event simulator USER logged outThe f flag helps you to stream the log s life As events happen in that resource it is streamed on your screen If you do not want to follow the logs you can administer the command without the f flag as shown previously If there are multiple containers running in a pod it is advisable to specify the name of the container you need logs from in your kubectl logs command otherwise the command will fail To follow the logs for a particular container in a pod use the below syntax kubectl logs POD name c CONTAINER name follow flags You can refer to the Kubernetes log documentation to learn more about different flags that can be used To display all containers logs in a pod use the below commandkubectl logs pod name all containers trueThe container name is not required if the pod only contains one container By adding the p flag you can obtain logs for a Pod that was previously running kubectl logs p pod name ConclusionAs discussed you can get logs of containers using the kubectl log command this is a manual log inspection that happens mostly locally In production environments when you have a stable cluster deployed and running it s possible to forget the logs and assume everything is working fine easily Also since containers in pods are ephemeral in situations where the pods get restarted you lose logs for those containers which may contain critical data to be analyzed later A helpful solution to this problem would be to use a distributed logging solution like Signoz Collecting Kubernetes logs in SigNozSigNoz is a full stack open source Application Performance Monitoring tool that you can use for monitoring logs metrics and traces Having all the important telemetry signals under a single dashboard leads to less operational overhead Users can also access telemetry data with richer context by correlating these signals SigNoz uses a columnar database ClickHouse to store logs which is very efficient at ingesting and storing logs data Columnar databases like ClickHouse are very effective in storing log data and making it available for analysis Big companies like Uber have shifted from the Elastic stack to ClickHouse for their log analytics platform Cloudflare too was using Elasticsearch for many years but shifted to ClickHouse because of limitations in handling large log volumes with Elasticsearch SigNoz uses OpenTelemetry for instrumenting applications OpenTelemetry backed by CNCF is quickly becoming the world standard for instrumenting cloud native applications Kubernetes also graduated from CNCF The logs tab in SigNoz has advanced features like a log query builder search across multiple fields structured table view JSON view etc You can also view logs in real time with live tail logging With advanced Log Query Builder you can filter out logs quickly with a mix and match of fields Getting started with SigNozSigNoz can be installed on macOS or Linux computers in just three steps by using a simple install script The install script automatically installs Docker Engine on Linux However on macOS you must manually install Docker Engine before running the install script git clone b main cd signoz deploy install shYou can visit our documentation for instructions on how to install SigNoz using Docker Swarm and Helm Charts If you liked what you read then check out our GitHub repo Related PostsSigNoz A Lightweight Open Source ELK alternativeOpenTelemetry Logs A complete introduction |
2022-12-01 13:08:15 |
Apple |
AppleInsider - Frontpage News |
Japanese fashion house Wacko Maria reveals new Beats Flex collaboration |
https://appleinsider.com/articles/22/12/01/japanese-fashion-house-wacko-maria-reveals-new-beats-flex-collaboration?utm_medium=rss
|
Japanese fashion house Wacko Maria reveals new Beats Flex collaborationApple s Beats Flex entry level wireless earbuds will very soon be available in a limited leopard print design made for Wacko Maria Beats by Dre is continuing its partnering with worldwide celebrities and fashion brands this time with Japan s Wacko Maria house Intended to match Wacko Maria s Hawaiian style shirts and clothing the limited edition Wacko Maria x Beats Flex comes with leopard print earbuds and a two tone cable Read more |
2022-12-01 13:51:14 |
Apple |
AppleInsider - Frontpage News |
Apple may see $8 billion holiday revenue drop over iPhone delays |
https://appleinsider.com/articles/22/12/01/apple-may-see-8-billion-holiday-revenue-drop-over-iphone-delays?utm_medium=rss
|
Apple may see billion holiday revenue drop over iPhone delaysInvestment bank Piper Sandler expects Apple and Foxconn to catch up with iPhone Pro production in December but will still fall short by around nine million iPhones Although China has now lifted its latest COVID lockdown in Zhengzhou Foxconn s major iPhone factory there is significantly behind on its production of the iPhone range In a note to investors seen by AppleInsider Piper Sandler says that overall it continues to believe that Apple remains a formidable brand While it is cutting its estimates for Apple s December quarter revenue by billion it still rates the company as Overweight despite our temporary reduction from unforeseen events Read more |
2022-12-01 13:09:08 |
Apple |
AppleInsider - Frontpage News |
Zendure SuperBase V is the ultimate power station |
https://appleinsider.com/articles/22/12/01/zendure-superbase-v-is-the-ultimate-power-station?utm_medium=rss
|
Zendure SuperBase V is the ultimate power stationZendure has launched the most impressive power station yet with up to W of solar input EV charging and can be stacked for up to kWh of total power Zendure SuperBase VThe SuperBase V from Zendure is a massive power station that is expandable portable and has successfully raised more than five million dollars during its crowdfunding campaign And it s available to preorder now Read more |
2022-12-01 13:25:46 |
Apple |
AppleInsider - Frontpage News |
A new LastPass hack was caused by August's stolen data |
https://appleinsider.com/articles/22/12/01/a-new-lastpass-hack-was-caused-by-augusts-stolen-data?utm_medium=rss
|
A new LastPass hack was caused by August x s stolen dataThe developers of the LastPass security app and service say that it is investigating a new security incident leading to some user data theft just three months after the last one LastPass is one of the most high profile apps and services for keeping users passwords safe The company has openly disclosed a new security investigation that stemmed from the one in August We recently detected unusual activity within a third party cloud storage service which is currently shared by both LastPass and its affiliate GoTo wrote Karim Toubba LastPass CEO in a blog post We immediately launched an investigation engaged Mandiant a leading security firm and alerted law enforcement Read more |
2022-12-01 13:06:04 |
海外TECH |
Engadget |
Netflix is reportedly expanding its pool of 'preview viewers' |
https://www.engadget.com/netflix-expanding-pool-of-preview-viewers-134525251.html?src=rss
|
Netflix is reportedly expanding its pool of x preview viewers x Starting next year a lot more Netflix viewers will reportedly be able to watch its originals before they become available for streaming According to The Wall Street Journal the streaming service is expanding its pool of preview viewers early next year to include as many as tens of thousands of subscribers around the world from its current group of around people nbsp When Variety reported about the company s focus group earlier this year the publication said that Netflix has been asking subscribers if they want to join a community of members to view and give feedback on upcoming movies and series since at least May It s simple but an incredibly important part of creating best in class content for you and Netflix members all around the world the email reportedly said Apparently Netflix asks members of the group to watch several unreleased shows and movies over the course of six months They then have to fill out a survey form to tell the company what they liked and what they didn t nbsp In The Journal s newer report it said the streaming service calls the group the Netflix Preview Club and that the Leonardo DiCaprio Jennifer Lawrence starrer Don t Look Up was one of the movies that benefited from its feedback The movie was initially too serious the preview group s members reportedly told Netflix and the film s creators chose to listen to them and ratcheted up its comedic elements nbsp As The Journal notes Netflix is known for giving creators a lot of creative freedom ーeven if it doesn t always lead to great content ーso running a preview group has been tricky The company has apparently been careful when it comes to sharing feedback with creators and has not been forcing changes It s still the creators decision whether to incorporate changes based on the previewers response nbsp |
2022-12-01 13:45:25 |
海外TECH |
Engadget |
Valve's Steam Deck brought PC gaming back into my life after fatherhood |
https://www.engadget.com/valve-steam-deck-portable-pc-gaming-133008285.html?src=rss
|
Valve x s Steam Deck brought PC gaming back into my life after fatherhoodValve s Steam Deck is a great way to get PC games out of your office and on to your couch back patio or anywhere As we said in our review it s worth having around even if you just play it a few times a month for a couple hours at a time But I wound up using mine a little differently I play the Steam Deck several times a day for just a few minutes per session And it s almost the only reason I play video games at all anymore I m no less interested in games than I used to be but since becoming a father I ve found I have a lot less time For the first year of my daughter s life setting aside an hour to play a game felt impossible Then Metroid Dread came out and I found myself using the Nintendo Switch s sleep mode in short bursts minutes while the baby played with a new toy minutes as I waited for her to fall asleep Sean Buckley EngadgetAs I chipped away at Metroid Dread s short hour story I found myself thinking about the Steam Deck Not only was Valve s gaming handheld a portable gaming system like the Switch but it promised to give my Steam library something I had never experienced from PC gaming before the ability to quickly suspend and resume a game It s a standard quality of life feature on home consoles but trying to resume a game after putting a PC to sleep is hit or miss When my Steam Deck arrived four months later and the feature actually worked it changed everything I spent my first day with the handheld slowly playing through the Deck s showcase demo Valve s Desk Job casually picking the handheld up for just minutes every few hours When that worked I got more ambitious ーfinishing Star Wars Jedi Fallen Order over the course of two weeks I started using the Steam Deck to play games in the margins of my day Picking it up for a few random battles in Final Fantasy IV after the baby fell asleep on my chest doing a deep space cargo run in Rebel Galaxy Outlaw as I watched her nap on the baby monitor or sneaking in a few puzzles in Baba is You before turning in for the night Suddenly I was finishing games I never thought I would have time for The suspend trick even works with non Steam games and older titles I spent hours experimenting in Lutris an alternative Linux game launcher getting the year s Star Trek Voyager Elite Force to run smoothly on Steam Deck A week or two later I finally finished a game I abandoned when I was years old EngadgetThat isn t to say I haven t had longer play sessions on Steam Deck Online only games like Final Fantasy XIV or Knockout City tend to disconnect the player when thrown into suspend mode ーbut I often still prefer playing them on Valve s portable than on my big gaming desktop Yes an AMD Ryzen X with GB of RAM and a GTX GPU can soundly outperform the Deck s custom AMD APU It runs games at higher resolution with better graphic settings but it s wasted power I ve grown to love having my library of PC games detached from the writing and video editing workstation that lives at my desk You might say that s what more powerful traditional game consoles are for but the Deck s Switch like portability makes all the difference Playing games on the couch in bed or while rocking the baby to sleep beats out having maxed out graphics settings every time I m not even sure if I m going to upgrade that aging graphics card anymore The Steam Deck may be less powerful but at today s GPU prices it s a far better value Not all of my games work smoothly on Steam Deck but it turns out that s a plus for me as well I love tinkering with gadgets and fiddling around with power user settings So when I m forced to drop into the Deck s desktop mode to manually install a non Steam game which inevitably involves configuring alternative Wine compatibility layers I enjoy the challenge almost as much as the game I ll eventually play And when I do get those games running they almost always work with Steam OS suspend and resume feature It feels a little silly to laud the Steam Deck for what s an otherwise standard feature on most modern gaming devices but I can t help it Sometimes one good feature can change everything Before the Steam Deck playing a game from my PC library was a chore that required sitting at a desk booting up Windows launching Steam and finally loading up a game When you might only have minutes of free time during an entire day that simply doesn t work Add in the possibility that a crying baby might call you away from that hard earned game session at a moment s notice and you can start to see the appeal of a gaming device you can take anywhere one that lets you instantly stop and start a high end PC game with the touch of a single button EngadgetSuspend and resume had a rough start on the Xbox One and PS but eventually they became kind of an expected fare Even so it s a killer feature that PC gamers have largely been missing out on I never really appreciated how much of a game changer it could be until I really needed it The Steam Deck brings that feature to the PC crowd in a natural user friendly package that we ve never had before And being a portable system is just the icing on the cake The Steam Deck is certainly pricey but being able to catch up on PC games with a baby in my arms is priceless |
2022-12-01 13:30:08 |
海外科学 |
NYT > Science |
Physicists Create ‘the Smallest, Crummiest Wormhole You Can Imagine’ |
https://www.nytimes.com/2022/11/30/science/physics-wormhole-quantum-computer.html
|
black |
2022-12-01 13:41:55 |
金融 |
金融庁ホームページ |
つみたてNISA対象商品届出一覧、つみたてNISA取扱金融機関一覧について更新しました。 |
https://www.fsa.go.jp/policy/nisa2/about/tsumitate/target/index.html
|
対象商品 |
2022-12-01 15:00:00 |
金融 |
金融庁ホームページ |
「違法な金融業者に関する情報について」を更新しました。 |
https://www.fsa.go.jp/ordinary/chuui/index.html
|
Detail Nothing |
2022-12-01 14:40:00 |
ニュース |
BBC News - Home |
Ngozi Fulani: Lady Susan Hussey's race comments were abuse, says charity boss |
https://www.bbc.co.uk/news/uk-63819482?at_medium=RSS&at_campaign=KARANGA
|
hussey |
2022-12-01 13:31:35 |
ニュース |
BBC News - Home |
Ian Blackford to stand down as SNP leader at Westminster |
https://www.bbc.co.uk/news/uk-scotland-63821836?at_medium=RSS&at_campaign=KARANGA
|
group |
2022-12-01 13:36:24 |
ニュース |
BBC News - Home |
Mark Brown guilty of murdering Alexandra Morgan and Leah Ware |
https://www.bbc.co.uk/news/uk-england-sussex-63676588?at_medium=RSS&at_campaign=KARANGA
|
alexandra |
2022-12-01 13:28:46 |
ニュース |
BBC News - Home |
Archbishop of Canterbury flies out to Ukraine |
https://www.bbc.co.uk/news/uk-63822189?at_medium=RSS&at_campaign=KARANGA
|
ukrainian |
2022-12-01 13:52:00 |
サブカルネタ |
ラーブロ |
吉祥寺 武蔵家@笹塚 「家系油そば」 |
http://ra-blog.net/modules/rssc/single_feed.php?fid=205376
|
続きを読む |
2022-12-01 13:31:13 |
仮想通貨 |
BITPRESS(ビットプレス) |
日本暗号資産ビジネス協会(JCBA)、12/14に「12月度勉強会」開催(会員対象) |
https://bitpress.jp/count2/3_15_13478
|
開催 |
2022-12-01 22:33:19 |
仮想通貨 |
BITPRESS(ビットプレス) |
bitFlyer・クリプタクト、12/19に「暗号資産の確定申告セミナー」開催 |
https://bitpress.jp/count2/3_15_13477
|
bitflyer |
2022-12-01 22:20:31 |
コメント
コメントを投稿