TECH |
Engadget Japanese |
掌におさまる男の秘密道具。コンパクトで超軽量な「チタン製多機能マルチツール」 |
https://japanese.engadget.com/confidence-studio-061021161.html
|
掌におさまる男の秘密道具。 |
2022-02-20 06:10:21 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
JSONデータの構成をツリー構造で出力する |
https://qiita.com/naozo-se/items/2eaea276110119266f60
|
JSONデータの構成をツリー構造で出力するはじめにタイトルの通りです。 |
2022-02-20 15:35:44 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
docker コンテナ作成後にmysql接続できなかくて苦戦しました |
https://qiita.com/_NNN_/items/a27efec26659ac160fc3
|
dockerコンテナ作成後にmysql接続できなかくて苦戦しました内容dockercomposeexecdbmysqlurootpコマンドでmysqlに接続ができない実行環境・windows・docker・mysqlVerDistribMariaDB・debian・Pythonエラー内容ERRORHYCantconnecttolocalMySQLserverthroughsocketrunmysqldmysqldsock各種ディレクトリ構成、内容├ーDockerfile├ーdockercomposeyml├ーmysql│├ーDockerfile│├ーmycnf│└ーsqls││└ーinitializesql│└ーmysqldata├ーsrc│├ーinitpy│├ーsamplepy│└ーDockerfile├ーdockercomposeyml├ーREADMEmd└ーrequirementstxtdockercomposeymlversionservicesdatabasecontainerdbimagemysqlportsexposerestartalwayscontainernamepythondbbuildmysqlvolumesmysqlmysqldatavarlibmysqlmysqlsqlsdockerentrypointinitdbdmysqlmycnfetcmysqlconfdmycnfenvironmentuserパスワードMYSQLDATABASEtestdatabaseMYSQLUSERuserMYSQLPASSWORDdockerTZAsiaTokyorootパスワードMYSQLROOTPASSWORDrootMYSQLALLOWEMPTYPASSWORDyesMYSQLRANDOMROOTPASSWORDnostdinopentrueapplicationcontainerpythonportscontainernamepythonbuildcontextsrclinksdbstdinopentrueデータベースFROMmysqlEXPOSERUNtouchvarlogmysqlmysqldlogRUNtouchrunmysqldmysqlsockADDmysqlmycnfetcmysqlconfdmycnfRUNchmodetcmysqlmycnfCMDmysqldアプリケーション本体FROMpythonARGprojectdirsrcWORKDIRprojectdirRUNaptgetupdateRUNaptgetyinstalllocalesampamplocaledeffUTFijaJPjaJPUTFENVLANGjaJPUTFENVLANGUAGEjaJPjaENVLCALLjaJPUTFENVTZJSTENVTERMxtermRUNaptgetinstallyvimlessRUNpipinstallupgradepipRUNpipinstallupgradesetuptoolsRUNpythonmpipinstalljupyterlabmyconfmysqldcharactersetserverutfmbcollationserverutfmbunicodecimysqldefaultcharactersetutfclientdefaultcharactersetutfmbuserdockerpassworddocker試したこと・dockerexecitpythondbshでコンテナに入りmysqlconfigsocketでmysqldsockがあることは確認済み・psaxgrepmysqlでプロセスを確認してみた所ptsSgrepmysqlとありおそらくmysqlがうまく起動できてないみたいです。 |
2022-02-20 15:11:02 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
javaScript82_Math |
https://qiita.com/merikento/items/3f8cea2067b1d246e275
|
javaScriptMathMathは構造関数ではない。 |
2022-02-20 15:20:23 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
ActiveModel::MissingAttributeError: can't write unknown attribute `` に悩まされた【Rails】 |
https://qiita.com/Damin3927/items/23b232a426d7929e6e45
|
問題のMissingAttributeErrorこのエラーは、uniquenesstrueとidfalseとprimarykey指定忘れをフルコンボしていた時に出てきました。 |
2022-02-20 15:26:28 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
docker コンテナ作成後にmysql接続できなかくて苦戦しました |
https://qiita.com/_NNN_/items/a27efec26659ac160fc3
|
dockerコンテナ作成後にmysql接続できなかくて苦戦しました内容dockercomposeexecdbmysqlurootpコマンドでmysqlに接続ができない実行環境・windows・docker・mysqlVerDistribMariaDB・debian・Pythonエラー内容ERRORHYCantconnecttolocalMySQLserverthroughsocketrunmysqldmysqldsock各種ディレクトリ構成、内容├ーDockerfile├ーdockercomposeyml├ーmysql│├ーDockerfile│├ーmycnf│└ーsqls││└ーinitializesql│└ーmysqldata├ーsrc│├ーinitpy│├ーsamplepy│└ーDockerfile├ーdockercomposeyml├ーREADMEmd└ーrequirementstxtdockercomposeymlversionservicesdatabasecontainerdbimagemysqlportsexposerestartalwayscontainernamepythondbbuildmysqlvolumesmysqlmysqldatavarlibmysqlmysqlsqlsdockerentrypointinitdbdmysqlmycnfetcmysqlconfdmycnfenvironmentuserパスワードMYSQLDATABASEtestdatabaseMYSQLUSERuserMYSQLPASSWORDdockerTZAsiaTokyorootパスワードMYSQLROOTPASSWORDrootMYSQLALLOWEMPTYPASSWORDyesMYSQLRANDOMROOTPASSWORDnostdinopentrueapplicationcontainerpythonportscontainernamepythonbuildcontextsrclinksdbstdinopentrueデータベースFROMmysqlEXPOSERUNtouchvarlogmysqlmysqldlogRUNtouchrunmysqldmysqlsockADDmysqlmycnfetcmysqlconfdmycnfRUNchmodetcmysqlmycnfCMDmysqldアプリケーション本体FROMpythonARGprojectdirsrcWORKDIRprojectdirRUNaptgetupdateRUNaptgetyinstalllocalesampamplocaledeffUTFijaJPjaJPUTFENVLANGjaJPUTFENVLANGUAGEjaJPjaENVLCALLjaJPUTFENVTZJSTENVTERMxtermRUNaptgetinstallyvimlessRUNpipinstallupgradepipRUNpipinstallupgradesetuptoolsRUNpythonmpipinstalljupyterlabmyconfmysqldcharactersetserverutfmbcollationserverutfmbunicodecimysqldefaultcharactersetutfclientdefaultcharactersetutfmbuserdockerpassworddocker試したこと・dockerexecitpythondbshでコンテナに入りmysqlconfigsocketでmysqldsockがあることは確認済み・psaxgrepmysqlでプロセスを確認してみた所ptsSgrepmysqlとありおそらくmysqlがうまく起動できてないみたいです。 |
2022-02-20 15:11:02 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
【PostgreSQL】サーバーを起動時にエラーが発生 |
https://qiita.com/1400cm/items/f822acc7a5694d9f0360
|
【PostgreSQL】サーバーを起動時にエラーが発生エラーの発生内容ActiveRecordConnectionNotEstablishedPGConnectionBadcouldnotconnecttoserverNosuchfileordirectoryIstheserverrunninglocallyandacceptingconnectionsonUnixdomainsockettmpsPGSQLやったことPC自体を再起動→NGだったpsqlVを実行バージョンがpsqlPostgreSQLbrewserviceslistを実行postgresql がerrortailnusrlocalvarlogpostgreslogを実行JSTFATALdatabasefilesareincompatiblewithserverJSTDETAILThedatadirectorywasinitializedbyPostgreSQLversionwhichisnotcompatiblewiththisversionJSTFATALdatabasefilesareincompatiblewithserver以下省略解決方法PostgreSQLのメジャーアップデートが原因でデータベースが読めないケースと推察。 |
2022-02-20 16:00:15 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
ActiveModel::MissingAttributeError: can't write unknown attribute `` に悩まされた【Rails】 |
https://qiita.com/Damin3927/items/23b232a426d7929e6e45
|
問題のMissingAttributeErrorこのエラーは、uniquenesstrueとidfalseとprimarykey指定忘れをフルコンボしていた時に出てきました。 |
2022-02-20 15:26:28 |
海外TECH |
DEV Community |
Create Custom Templates in Monokle🚀 |
https://dev.to/vrukshali26/create-custom-templates-in-monokle-3af9
|
Create Custom Templates in Monokle What is Kubernetes Kubernetes sometimes shortened to Ks with the standing for the number of letters between the K and the s is an open source system to deploy scale and manage containerized applications anywhere What are Kubernetes Resources A resource is an endpoint in the Kubernetes API that stores a collection of API objects of a certain kind for example the built in pods resource contains a collection of Pod objects More information can be found here What is Monokle Monokle helps you to Quickly get a high level view of your manifests their contained resources and relationships Easily edit resources without having to learn or look up yaml syntax Refactor resources with maintained integrity of names and references Preview and debug resources generated with Kustomize or Helm Diff resources against your cluster and apply changes immediately Visualize and navigate resources in your clusters And much more More information can be found here Today s blog is about How can we create our custom Monokle Template What are Monokle Templates A Monokle Template is a mechanism for creating visual forms and interpolating the data from those forms into one or multiple manifests More information can be found here I have created a custom template for Kubernetes Service What is a Kubernetes Service An abstract way to expose an application running on a set of Pods as a network service With Kubernetes you don t need to modify your application to use an unfamiliar service discovery mechanism Kubernetes gives Pods their own IP addresses and a single DNS name for a set of Pods and can load balance across them More information can be found here Let s startStep Create a package json file name Monokle Custom Templates Plugin author Vrukshali Torawane version description This plugin provides the custom resource templates for Monokle repository monoklePlugin id com github Vrukshali plugin templates helpUrl modules type template path service template In this name author version description monoklePlugin helpUrl and modules are required to specify also we are specifying where we have the template plugin folder e g in my case service templateStep Create a folder named service template and add the following content In monokle template json file name Basic Kubernetes Service id com github Vrukshali plugin templates basic service template author Vrukshali version description Creates a Kubernetes Service repository type vanilla forms name Service Settings description Specify the settings for your Service schema form schema json uiSchema form ui schema json manifests filePath template yaml resultMessage Service resource created successfully helpUrl In form schema json file type object required name podSelector targetPort properties name type string default my custom service namespace type string podSelector type string default app my app servicePort type number default targetPort type number serviceType type string default LoadBalancer enum LoadBalancer NodePort ClusterIP In form ui schema json file name ui title Name ui help The name of Service namespace ui title Namespace ui help The target namespace for the created Service ui widget namespaceSelection podSelector ui title Pod Selector ui help The label name value pair to use for selecting target Pod s for this Service ui widget podSelectorSelection targetPort ui title Target Port ui help The port exposed by the target Pod servicePort ui title Service Port ui help The port to expose the Service on serviceType ui title Service Type ui help The type of Service to create In template yaml file apiVersion vkind Servicemetadata name forms name forms namespace namespace forms namespace n spec ports port forms servicePort protocol TCP targetPort forms targetPort selector forms podSelector type forms serviceType Push this code to GitHub Download Monokle Now after installation we will use our custom template plugin Step Welcome to Monokle Step Install Pluginyou can see a plugin button at top right cornerClick on Install and enter the github URL You can see the plugin is installedStep Now on Dashboard click Start from a Template Step Enter Project Name Click Next Select a TemplateNow Click Create ProjectClick Submit and Resource is Created Successfully We have created our custom Template successfully Thanks for Reading Keep Learning Keep Sharing Feel free to connect with me LinkedIn GitHub Twitter |
2022-02-20 06:05:52 |
海外ニュース |
Japan Times latest articles |
Once, he kept Russia at a distance. Now, he is a docile Putin satrap. |
https://www.japantimes.co.jp/news/2022/02/20/world/politics-diplomacy-world/alexander-lukashenko-docile-putin-satrap/
|
Once he kept Russia at a distance Now he is a docile Putin satrap Alexander Lukashenko played East and West against each other for years all while keeping Belarus firmly in his grip but those days are over |
2022-02-20 15:31:47 |
海外ニュース |
Japan Times latest articles |
Japan’s top COVID-19 adviser says worth discussing new isolation rules |
https://www.japantimes.co.jp/news/2022/02/20/national/close-contacts-isolation/
|
Japan s top COVID adviser says worth discussing new isolation rulesOmi suggested the isolation period currently seven days for most people and five days for essential workers could be cut down further as the omicron |
2022-02-20 15:16:42 |
ニュース |
BBC News - Home |
The Papers: West 'to arm' resistance, and cyber-attack warning |
https://www.bbc.co.uk/news/blogs-the-papers-60449886?at_medium=RSS&at_campaign=KARANGA
|
front |
2022-02-20 06:08:56 |
ニュース |
BBC News - Home |
Winter Olympics: Women's curling team win Great Britain's only gold - highlights |
https://www.bbc.co.uk/sport/av/winter-olympics/60450960?at_medium=RSS&at_campaign=KARANGA
|
Winter Olympics Women x s curling team win Great Britain x s only gold highlightsWatch highlights as Great Britain have a golden finish to the Beijing Winter Olympics with Eve Muirhead s women s curlers crushing Japan in Sunday s final |
2022-02-20 06:05:33 |
ニュース |
BBC News - Home |
Storley eyes title shot after beating Gracie at Bellator 274 |
https://www.bbc.co.uk/sport/mixed-martial-arts/60451357?at_medium=RSS&at_campaign=KARANGA
|
bellator |
2022-02-20 06:37:08 |
ニュース |
BBC News - Home |
Self-funded British team finish sixth in four-man bobsleigh |
https://www.bbc.co.uk/sport/winter-olympics/60446003?at_medium=RSS&at_campaign=KARANGA
|
Self funded British team finish sixth in four man bobsleighGreat Britain s four man bobsleigh team feel their sixth place finish at Beijing is like a medal after having to self fund their Olympic dream |
2022-02-20 06:07:09 |
北海道 |
北海道新聞 |
デジタル田園都市構想に応援団 産官学連携で後押し |
https://www.hokkaido-np.co.jp/article/647962/
|
一般社団法人 |
2022-02-20 15:16:00 |
北海道 |
北海道新聞 |
K―POP研修に「韓流ビザ」 年内導入で海外人材発掘 |
https://www.hokkaido-np.co.jp/article/647960/
|
韓流 |
2022-02-20 15:05:00 |
IT |
週刊アスキー |
東京のセブンに手軽な「チーズロール」登場 パリッと皮×チーズ |
https://weekly.ascii.jp/elem/000/004/084/4084013/
|
食感 |
2022-02-20 15:30:00 |
海外TECH |
reddit |
Friend has gone no contact since last night |
https://www.reddit.com/r/japanlife/comments/swue8t/friend_has_gone_no_contact_since_last_night/
|
Friend has gone no contact since last nightHello good afternoon everyone I was wondering if anyone has been in a similar situation and what did you do My friend has gone to a bar last night and can t be contacted ever since This is very uncharacteristic of her her last time of contact was in the evening last night I am her emergency contact in Japan too I contacted her apartment but they left me on read in their LINE She s not responding to calls and text messages or read them If she s been arrested by the police is she not allowed to use her phone to call her emergency contact Thank you submitted by u vlackgermont to r japanlife link comments |
2022-02-20 06:05:23 |
コメント
コメントを投稿