IT |
気になる、記になる… |
「Google Pixel 6」シリーズでDJIのドローンなどを使用する場合は要注意 − ライブ映像が表示されない不具合が発生中 |
https://taisy0.com/2021/11/28/149102.html
|
androidpolice |
2021-11-28 14:33:42 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Python_デコレーター |
https://qiita.com/lupinus/items/93d935bc0f1a284891d6
|
|
2021-11-28 23:35:17 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
自分用 備忘録 |
https://qiita.com/right_engineer/items/ef9c8f5ebed657df3caf
|
jupyterlab |
2021-11-28 23:02:05 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
TypeScriptで命令型と宣言型を書き比べてみる |
https://qiita.com/read-pochon-q/items/463d635ec3bbf139fe01
|
TypeScriptで命令型と宣言型を書き比べてみる概要せっかくJavaScriptがマルチパラダイムな言語なので書き比べてみます。 |
2021-11-28 23:35:44 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
ティラノスクリプトのタグコード解析 |
https://qiita.com/kanosawa/items/b8a32cb115ecae2051d1
|
ティラノスクリプトのタグコード解析はじめにティラノスクリプトのコードからタグの詳細な処理を解析します。 |
2021-11-28 23:32:18 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
Amazonの検索結果を「Amazonが販売・発送する商品」のみに絞り込むブックマークレット |
https://qiita.com/kitaeyorozu/items/d69daec67538471d286a
|
Amazonのブラックフライデーセールが始まりましたが、Amazonでお買い物する時に損しないためにこれだけは絶対やって欲しいつのことをまとめましたpictwittercompplejPItーじゅじゅjujulifeNovemberこのつ目のパラメータ追加検索がすごく便利だったので、簡単ですがブックマークレットにしました。 |
2021-11-28 23:01:24 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
ボタンでテキスト入力欄に反映 |
https://teratail.com/questions/371394?rss=all
|
|
2021-11-28 23:49:33 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
LineBotの日時選択アクションが表示されない |
https://teratail.com/questions/371393?rss=all
|
LineBotの日時選択アクションが表示されない前提・実現したいことPythonを使ってLineBotの作成を行っております。 |
2021-11-28 23:34:07 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
[Python]ProcessPoolExecutorでBrokenProcessPoolが発生する |
https://teratail.com/questions/371392?rss=all
|
PythonProcessPoolExecutorでBrokenProcessPoolが発生する状況自作のモジュール内で、並列処理を実装したいと考えています。 |
2021-11-28 23:29:58 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
phpmyadminで、nodeコンテナ内にあるmysqlのdbにアクセスしたい。 |
https://teratail.com/questions/371391?rss=all
|
そして、dockerfileのCMDを使用して、nodeコンテナにmysqlがインストールされるようにしました。 |
2021-11-28 23:20:08 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
ターミナル pyenv:12: command not found: pyenv 起動時に3行並んでる |
https://teratail.com/questions/371390?rss=all
|
ターミナルpyenvcommandnotfoundpyenv起動時に行並んでる前提・実現したいことMacBookでpythonをインストールしようとしています。 |
2021-11-28 23:13:26 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Rのcsvファイル読み込みエラー |
https://teratail.com/questions/371389?rss=all
|
Rのcsvファイル読み込みエラー前提・実現したいこと超つくほどの初心者です。 |
2021-11-28 23:05:22 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
contact form7で独自コード作成 |
https://teratail.com/questions/371388?rss=all
|
|
2021-11-28 23:02:19 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
FactoryBot のまとめ |
https://qiita.com/TakeruWatahiki/items/e9d140086b30c35437ea
|
belongstoの関係を持っているモデルのFactoryでは、associationという機能を使うことで関連するデータを自動的に作成できるようになる書き方の例associationuserfactoryuser※associationには省略形もあり、上記の例の場合だとuserだけで足りるtraitという機能を使うことで、Factoryの場合わけをすることができる関連するモデルを持っている方を単体で呼び出せるようにすることができるということ。 |
2021-11-28 23:43:24 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
【jbuilder】部分テンプレートのオプション |
https://qiita.com/kat0/items/d1a9da06521785b19336
|
|
2021-11-28 23:19:36 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
WP Offload Media Lite for Amazon S3でS3に画像が保存されない場合に確認するべきポイント |
https://qiita.com/kyusyu_syoyu/items/a1c183e4afb59788a67a
|
画像付きで記事を作成しましたので、イメージしやすくなればと思います。 |
2021-11-28 23:42:31 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
Cypress 認証情報を保持して自動化へ Cognito編〜 |
https://qiita.com/s_taro/items/aadd886d4e9da26e1c79
|
npminstallsaveawsamplifyCognitoを利用した認証自動化Cypressでオリジナルのメソッドを生成するにあたって、CypressCommandsaddで新しく作成することができるので今回は使用時に、loginusernamepasswordとなるように作成していく。 |
2021-11-28 23:17:50 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
FactoryBot のまとめ |
https://qiita.com/TakeruWatahiki/items/e9d140086b30c35437ea
|
belongstoの関係を持っているモデルのFactoryでは、associationという機能を使うことで関連するデータを自動的に作成できるようになる書き方の例associationuserfactoryuser※associationには省略形もあり、上記の例の場合だとuserだけで足りるtraitという機能を使うことで、Factoryの場合わけをすることができる関連するモデルを持っている方を単体で呼び出せるようにすることができるということ。 |
2021-11-28 23:43:24 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
【jbuilder】部分テンプレートのオプション |
https://qiita.com/kat0/items/d1a9da06521785b19336
|
|
2021-11-28 23:19:36 |
技術ブログ |
Developers.IO |
tsconfig.jsonでfile not foundエラーが発生する場合の対処 |
https://dev.classmethod.jp/articles/what-to-do-when-a-file-not-found-error-occurs-in-tsconfigjson/
|
filenotfound |
2021-11-28 14:51:27 |
海外TECH |
Ars Technica |
We transformed a London borough into a game to get fewer people traveling by car |
https://arstechnica.com/?p=1815801
|
carhere |
2021-11-28 14:30:19 |
海外TECH |
MakeUseOf |
What Is A Processor Core? |
https://www.makeuseof.com/tag/processor-core-makeuseof-explains-2/
|
computer |
2021-11-28 14:35:25 |
海外TECH |
MakeUseOf |
The 8 Best iPad Apps to Use on Your M1 Mac |
https://www.makeuseof.com/best-ipad-apps-to-use-m1-mac/
|
macwant |
2021-11-28 14:30:21 |
海外TECH |
MakeUseOf |
How to Do an SMC and PRAM/NVRAM Reset on Your Mac |
https://www.makeuseof.com/tag/reset-macs-smc-pram/
|
intel |
2021-11-28 14:15:12 |
海外TECH |
MakeUseOf |
How to Color Categorize Your Outlook Calendar |
https://www.makeuseof.com/how-to-color-categorize-outlook-calendar/
|
outlook |
2021-11-28 14:15:11 |
海外TECH |
DEV Community |
DigitalOcean Kubernetes Challenge - MongoDB On Kubernetes |
https://dev.to/somsubhra1/digitalocean-kubernetes-challenge-mongodb-on-kubernetes-367k
|
DigitalOcean Kubernetes Challenge MongoDB On KubernetesKubernetes is an open source container orchestration system for automating computer application deployment scaling and management It was originally designed by Google and is now maintained by the Cloud Native Computing Foundation What is DigitalOcean Kubernetes DOKS DigitalOcean Kubernetes DOKS is a managed Kubernetes service that helps us to deploy Kubernetes clusters hassle free without needing to handle the control panel and containerised infrastructure Clusters are compatible with standard Kubernetes toolchains and integrate natively with DigitalOcean Load Balancers and block storage volumes Why should you use Kubernetes Here are some of the benefits of using Kubernetes Auto ScalingSelf HealingLoad BalancingAuto Rollbacks Getting StartedTo get started with DOKS first there are a few prerequisites DigitalOcean Account Ksdoctl CLI This helps to quickly spin up a Ks cluster on DigitalOcean and adds all config files to our system automaticallykubectl CLI Helps to interact with our Ks cluster by running commands against it How to create a Ks cluster On DigitalOcean Ks cluster can be created in many ways though DO dashboard doctl CLI etc Here we are going to use DigitalOcean dashboard to create the Cluster Go to the Kubernetes Create Cluster Dashboard Select the Ks version Choose your nearest datacenter locationChoose cluster capacity number of nodes machine type Then click Create ClusterThe cluster will be created within a few minutes Connecting to Ks ClusterAfter the successful creation of the cluster you will be greeted with a panel like this Scroll down to the bottom section you will find a doctl command to run which automatically saves your Ks configuration on your local machine doctl kubernetes cluster kubeconfig save use your cluster nameNow you have successfully saved your Auth config to your Ks cluster to your local machine Now let s get started with the MongoDB Deployment How to deploy MongoDB on DOKS Now we are ready to use kubectl CLI and run commands against our Ks cluster to deploy a MongoDB instance TL DRClone the following GitHub Repositorygit clone cd Digitalocean Kubernetes ChallengeRun the following command to setup everything in one go kubectl apply f Skip to the connection part by clicking here Creating MongoDB SecretsSecrets in Kubernetes are the objects used for supplying sensitive information to containers To secure our MongoDB instance we should always restrict access to the database with a password Here we will use secrets to invoke our desired passwords to the containers Create the following file and name it mongodb secrets yaml apiVersion vdata password ZGrOHNtbnbwo doksmongo username YWRtaWK adminkind Secretmetadata creationTimestamp null name mongo credsP S The above username and password are encoded in base format Now run the following command to apply the changes to our Ks cluster kubectl apply f mongodb secrets yaml Creating MongoDB Persistent VolumeWe require volumes in Ks to store the data so that data is not lost when our cluster goes down In Ks there are two objects which are required for creating volumes Persistent Volume Claims PVC Kubernetes looks for a Persistent Volume from which space can be claimed and assigned for a PVC PVC works only if the cluster has dynamic volume provisioning enabled Persistent Volume PV A storage space which is provisioned by an administrator Create the following file and name it mongodb pvc yaml apiVersion vkind PersistentVolumeClaimmetadata name mongo dataspec accessModes ReadWriteOnce resources requests storage GiRun the following command to create the PV kubectl create f mongodb pvc yamlP S If your cluster doesn t support PVC then follow the following steps Create mongodb pv yaml file and insert the following into it apiVersion vkind PersistentVolumemetadata name mongo data pvspec accessModes ReadWriteOnce capacity storage Gi hostPath path data mongoThen run the following command against your Ks kubectl create f mongodb pv yaml Deploying MongoDB imageWe are going to use the official Mongo image from Docker hub Insert the following into a file and name it mongodb deployment yaml apiVersion apps vkind Deploymentmetadata labels app mongo name mongospec replicas selector matchLabels app mongo strategy template metadata labels app mongo spec containers image mongo name mongo args dbpath data db livenessProbe exec command mongo disableImplicitSessions eval db adminCommand ping initialDelaySeconds periodSeconds timeoutSeconds successThreshold failureThreshold readinessProbe exec command mongo disableImplicitSessions eval db adminCommand ping initialDelaySeconds periodSeconds timeoutSeconds successThreshold failureThreshold env name MONGO INITDB ROOT USERNAME valueFrom secretKeyRef name mongo creds key username name MONGO INITDB ROOT PASSWORD valueFrom secretKeyRef name mongo creds key password volumeMounts name mongo data dir mountPath data db volumes name mongo data dir persistentVolumeClaim claimName mongo data Then run the following command against your Ks kubectl create f mongodb deployment yaml Running MongoDB from ShellNow that we have successfully deployed the MongoDB instance on our cluster let s access the database through shell and run commands against it Save the file below as mongodb client yamlapiVersion apps vkind Deploymentmetadata labels app mongo client name mongo clientspec replicas selector matchLabels app mongo client template metadata labels app mongo client spec containers image mongo name mongo client env name mongo client INITDB ROOT USERNAME value dummy name mongo client INITDB ROOT PASSWORD value dummy Now run the following command to deploy the client kubectl create f mongodb client yamlNow let s ssh into the client kubectl exec deployment apps mongo client it bin bashNow inside the ssh let s enter the MongoDB instance using the username and password created above mongo host mongo nodeport svc port u admin p doksmongoAnd finally execute the command in the database to verify that MongoDB has been successfully deployed show dbsIf it returns a successful response then we can be sure that the deployed instance is running successfully Connecting to MongoDB from external AppsNow that our database instance is running and we can even run commands inside our database let s move forward and see how we can connect our Backend App created using NodeJS Python etc and utilise our Database First we need to create svc for our Ks cluster Save the following into a file and name it mongodb nodeport svc yaml apiVersion vkind Servicemetadata labels app mongo name mongo nodeport svcspec ports port protocol TCP targetPort nodePort selector app mongo type NodePortNow create the svc using the command kubectl create f mongodb nodeport svc yamlWe have successfully created the service which is exposed to the globally on port Now we have the username password port of our Database But hold on we still need the IP host of our hosted Ks cluster node so that we can connect to it So to find out the IP of our node run the following command doctl compute droplet get lt cluster node id gt You should be getting a Public IP displayed after running the command Use that IP to connect to your MongoDB on Ks Cluster from external apps To connect your external app your DB URI should be like mongodb lt username gt lt password gt lt Public IP gt lt port gt authSource admin amp readPreference primary amp appname MongoDB Compass amp directConnection true amp ssl falseCongratulations you have successfully setup MongoDB on Ks Cluster using DOKS Credits How To Deploy MongoDB on Kubernetes Beginners Guide |
2021-11-28 14:53:13 |
海外TECH |
DEV Community |
Animated Profile Card Using HTML CSS & GSAP |
https://dev.to/nikhil27b/animated-profile-card-using-html-css-gsap-4p63
|
Animated Profile Card Using HTML CSS amp GSAPHello Guys Thank you guys for my last post response Today I Created an Animated profile card using HTML CSS amp GSAP Animation I use the simple card and use GSAP timeline to animate the card using gsap from you can animate a card I hope you like this also comments about your thoughts also For more content follow me on Instagram developer nikhil Thank you |
2021-11-28 14:15:26 |
Apple |
AppleInsider - Frontpage News |
Best deals Nov. 28: $100 off 13-inch M1 MacBook Pro, $108 Echo Buds, more! |
https://appleinsider.com/articles/21/11/28/best-deals-nov-28-100-off-13-inch-m1-macbook-pro-108-echo-buds-more?utm_medium=rss
|
Best deals Nov off inch M MacBook Pro Echo Buds more Sunday s best deals include discounts on a range of Razer accessories and gaming items a bundle of Echo Buds and Halo View fitness tracker and Lego Andy Warhol along with off an M inch MacBook ProBest Deals for November The internet has a plethora of deals each day but many deals aren t worth pursuing In an effort to help you sift through the chaos we ve hand curated some of the best deals we could find on Apple products tech accessories and other items for the AppleInsider audience Read more |
2021-11-28 14:41:31 |
金融 |
ニュース - 保険市場TIMES |
SOMPO Park、桑田佳祐さんのライブツアー・オンライン公演の視聴チケットをプレゼント |
https://www.hokende.com/news/blog/entry/2021/11/29/000000
|
SOMPOPark、桑田佳祐さんのライブツアー・オンライン公演の視聴チケットをプレゼントオンライン特別追加公演、開催決定SOMPOホールディングス株式会社以下、SOMPOグループと損害保険ジャパン株式会社以下、損保ジャパンは年月日、「桑田佳祐LIVETOUR『BIGMOUTHNOGUTS』」の「オンライン特別追加公演」の視聴チケットをプレゼントするキャンペーンの実施を発表した。 |
2021-11-29 00:00:00 |
ニュース |
BBC News - Home |
Covid: Sajid Javid defends 'swift action' on Omicron variant |
https://www.bbc.co.uk/news/uk-59449480?at_medium=RSS&at_campaign=KARANGA
|
christmas |
2021-11-28 14:32:14 |
ニュース |
BBC News - Home |
Omicron Netherlands: 13 air passengers test positive for new variant |
https://www.bbc.co.uk/news/world-europe-59451103?at_medium=RSS&at_campaign=KARANGA
|
omicron |
2021-11-28 14:48:50 |
ニュース |
BBC News - Home |
Formula 1 legend Sir Frank Williams dies |
https://www.bbc.co.uk/sport/formula1/59453378?at_medium=RSS&at_campaign=KARANGA
|
frank |
2021-11-28 14:45:50 |
ニュース |
BBC News - Home |
Storm Arwen: Thousands of homes remain without power |
https://www.bbc.co.uk/news/uk-scotland-59451287?at_medium=RSS&at_campaign=KARANGA
|
disruption |
2021-11-28 14:43:32 |
ニュース |
BBC News - Home |
Migrant crisis: Lack of co-operation will lead to worse scenes in Channel, warns Priti Patel |
https://www.bbc.co.uk/news/uk-59448398?at_medium=RSS&at_campaign=KARANGA
|
secretary |
2021-11-28 14:10:02 |
ニュース |
BBC News - Home |
Salisbury & Skupski send Britain into Davis Cup quarter-finals |
https://www.bbc.co.uk/sport/tennis/59450633?at_medium=RSS&at_campaign=KARANGA
|
Salisbury amp Skupski send Britain into Davis Cup quarter finalsGreat Britain are through to the Davis Cup quarter finals after Joe Salisbury and Neal Skupski win a decisive doubles rubber against the Czech Republic |
2021-11-28 14:49:11 |
コメント
コメントを投稿