python |
Pythonタグが付けられた新着投稿 - Qiita |
TensorFlow Recommendersはいいぞってこと! |
https://qiita.com/TsuchiyaYutaro/items/d5f90cb10b490ef9f223
|
izationfactorizationm |
2022-09-18 18:30:39 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
戻るボタンを押した時に、ページトップではなく元の位置に戻るようにしたい |
https://qiita.com/ken___/items/f6be204691310aa00aae
|
記事一覧ページ |
2022-09-18 18:52:59 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
slice!メソッドの備忘録 |
https://qiita.com/mrshouuge/items/11d678dd2e40296a608a
|
slice |
2022-09-18 18:55:46 |
Linux |
Ubuntuタグが付けられた新着投稿 - Qiita |
KVM仮想マシンにVitisをインストールすることを諦めた話 |
https://qiita.com/Panda_chan8989/items/d37d78e4998eaa10585f
|
vitis |
2022-09-18 18:04:08 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
【S3Select】列名がないCSVファイルの調べ方【Tips】 |
https://qiita.com/one-data_anl/items/0b73ab0a205b6b6c0128
|
sselect |
2022-09-18 18:26:51 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
ソリューションアーキテクト対策_RDS篇 |
https://qiita.com/sosat/items/0f7872e9fb294f8ae79e
|
blackbelt |
2022-09-18 18:01:24 |
Git |
Gitタグが付けられた新着投稿 - Qiita |
Gitの基本の「キ」 part3 gitの基本的なコマンド |
https://qiita.com/YuukiYoshida/items/8c8e5717390814121480
|
partgit |
2022-09-18 18:52:33 |
技術ブログ |
Developers.IO |
Amazon FSx for Windows File Server 설정 – 전송 중 암호화 관리 |
https://dev.classmethod.jp/articles/amazon-fsx-for-windows-file-server-settings-manage-encryption-during-transfer/
|
Amazon FSx for Windows File Server 설정 전송중암호화관리안녕하세요클래스메소드김재욱 Kim Jaewook 입니다 이번에는Amazon FSx for Windows File Server에서전송중암호과관리를하는벙법에대해정리해봤습니다 |
2022-09-18 09:26:55 |
技術ブログ |
Developers.IO |
Terraform의 Failed to install provider 에러에 대해 |
https://dev.classmethod.jp/articles/failed-to-install-provider-error-in-terraform-kr/
|
Terraform의Failed to install provider 에러에대해안녕하세요 컨설팅부의수재입니다 그룹에서테라폼을이용하여인프라를작성하다보면terraform init을했을때다음과같은에러가발생할때가있습니다 이번글에서는해당내용에대해 |
2022-09-18 09:26:28 |
海外TECH |
DEV Community |
How to easily make Wordpress & WooCommerce work with ngrok |
https://dev.to/getmellowhq/how-to-easily-make-wordpress-woocommerce-work-with-ngrok-3fn2
|
How to easily make Wordpress amp WooCommerce work with ngrokNgrok is a super useful CLI tool which enables you to expose your localhost HTTP servers to an internet facing HTTPS endpoint for free You can get it here I ve been struggling to find a good short tutorial on how to make it work properly with my local WooCommerce store so hopefully you will find this helpful Install the Relative URL pluginFirst off make sure that your Wordpress website issues relative URLs by installing this plugin Relative URL Make WP serve itself via your tunneled hostnameAdd the following lines at the end of your wp config php file define WP SITEURL http SERVER HTTP HOST define WP HOME http SERVER HTTP HOST Instruct ngrok to rewrite the host headerAdd host header rewrite to your ngrok command For example ngrok http host header rewrite http localhost Done P S If you re a WooCommerce store owner and would like to easily sync it with your Google Sheets check out our quick guide on how to do it Originally posted here |
2022-09-18 09:26:27 |
海外TECH |
DEV Community |
Update Cheat Sheet for Developers |
https://dev.to/smartscanner/update-cheat-sheet-for-developers-4gmc
|
Update Cheat Sheet for DevelopersThis is a cheat sheet for updating critical web software Using an outdated application is a high risk vulnerability that has an easy fix This guide provides easy to follow instructions for different applications to fix security vulnerabilities ️The goal of this guide is to eliminate vulnerabilities by updating applications Sometimes updates can break things or lead to unexpected behaviors It is up to you to perform enough checking and testing before using commands in this cheat sheet in the production environment RHEL CentOS Oracle LinuxRun below command in terminal ssh sudo yum update Debian Ubuntu LinuxRun below command in terminal ssh sudo apt update amp amp sudo apt upgrade OpenSUSE SUSE LinuxRun below command in terminal ssh sudo zypper up NodeJs npm Run the below command in your NodeJs project directory npm audit fixNote that some vulnerabilities cannot be fixed automatically and will require manual intervention or review Some fixes can be forced using the below command but please make sure it doesn t break anything in your project npm audit fix force Python pip You have to update packages one by one Run the below command to get a list of outdated packages pip list outdatedFor each package run the below command to update it pip install package name upgrade NuGetFrom the command line you can update packages in the solution to the latest version available from nuget org nuget update YourSolution slnNote that this will not run any PowerShell scripts in any NuGet packages From within Visual Studio you can use the Package Manager Console to also update the packages This has the benefit that any PowerShell scripts will be run as part of the update whereas using NuGet exe will not run them The following command will update all packages in every project to the latest version available from nuget org Update Package PHP Composer Navigate to the root of your application where your composer json file is and run the below command php composer phar updateIn Windows composer update Go golang To update all packages in your GOPATH run the below command go get u all Ruby gem To update all gems gem updateRubyGems keeps old versions of gems Run cleanup to remove old gems after an update gem cleanup Maven mvn Run the below command to force an update of dependencies mvn clean install U Rust cargo For updating all dependencies of your Rust project you need to install a third party crate Install cargo update cargo install cargo updateThen run the below command to check for newer versions and update all installed packages cargo install update a WordPressWordPress lets you update with the click of a button You can launch the update by clicking the link in the new version banner if it s there or by going to the Dashboard gt Updates screen Once you are on the “Update WordPress page click the button “Update Now to start the process off You shouldn t need to do anything else and once it s finished you will be up to date WindowsRun the below command on cmd to open the Windows update screen control updateYou can use SmartScanner for finding outdated components in your application Referencesnpm auditUpdating WordPressstackoverflow comstackoverflow comstackoverflow com |
2022-09-18 09:24:25 |
海外TECH |
DEV Community |
Javascript - Inheritance ⬆ |
https://dev.to/urstrulyvishwak/javascript-inheritance-26c3
|
Javascript Inheritance Inheritance Mechanism which acquires properties and methods from the parent Let s achieve class Parent parentProperty constructor parentProperty this parentProperty parentProperty parentMethod return I am parent class method class Child extends Parent constructor super parent property setting parent property from child childMethod console log this parentMethod accessing parent methods console log this parentProperty accessing parent property const child new Child child childMethod gt I am parent class method gt parent propertyHere super refers to parent class constructor and extends is the key word used to inherit Overridingchild class has same properties amp methods like parent class Parent property I am parent property method return this property class Child extends Parent same parent property name property I am child property same parent method name method console log I am a child method const child new Child child method overrides parent method and logs child details console log child property overrides parent property and logs child property gt I am a child method gt I am parent property Accessing Staticchild can also access static properties and methods class Parent static property I am parent class static property static method return I am parent class static method class Child extends Parent We can call static entity with Class name directly console log Child property console log Child method gt I am parent class static property gt I am parent class static method Inherit Built in classesJavascript allows us to inherit from built in classes like Array String Map etc class MyArray extends Array find console log This is my array find method const myArray new MyArray myArray find gt This is my array find methodIn above case find is the method of built in Array whereas it is overridden in MyArray class UseCode reusability |
2022-09-18 09:20:06 |
海外TECH |
DEV Community |
Kubeconfig nedir? |
https://dev.to/aciklab/kubeconfig-nedir-4be4
|
Kubeconfig nedir Kubeconfig kubectl gibi uygulamalar ile kubernetes kümelerine uzaktan erişebilirliği sağlayan yapılandırma dosyasıdır Dosya formatı yaml olarak belirlenmiştir Kubeconfig içerisinde ana başlık vardır Bunlar Clusters kümeler Users kullanıcılar Contexts bağlamlar Bu içerikler kubectl veya Kubernetes Lens gibi uygulamalarıkullanabilmek için yani Kubernetes Kümenize uzaktan bağlantıyapabilmek için gerekli yapılardır Kubeconfig içeriği Clusters kümeler Elimizdeki kubeconfig dosyasıile hangi kümelere erişebileceğimiz belirlenmektedir Tek bir kümeye erişilebileceği gibi birden fazla küme de belirtilebilmektedir Aşağıda örnek bir ks kümesinin kubeconfig üzerinde tanımıbulunmaktadır Küme nin adı sunucu adresi ve sertifika otoritesi sertifika verisi bulunmaktadır clusters name yerelkume cluster server certificate authority data LStL tLS Bu veriler kubeconfig üzerinde tanımlıkümeleri belirtmektedir Users kullanıcılar Kubeconfig dosyasıiçerisinde çeşitli kümelere girişyapmak için gerekli kullanıcılar da tanımlıdır Kullanıcılar token üzerinden girişyapabileceği gibi kullanıcıadıve parola ile de tanımlanabilmektedir Tabi ki tüm bunlar kümeyi oluştururken veya küme içerisinden belirlemeniz gerekmektedir Aşağıda bu iki duruma örnek sunulmaktadır users name yerelhesap user token kubeconfig user jltpvsvzxk bwdtdfsdfsdsfsdf dsfsdsdfh name yerelhesap user username hesap password Parola Contexts bağlamlar Kubeconfig içerisindeki bağlam context larıDiğer iki bölümün birleştiricisi olarak düşünülebiliriz Aşağıda örneğini görebileceğimiz şekilde bir kümenin içerisinde yukarıda tanımladığımız gibi kullanıcıyıatayabilirsiniz contexts name bir context user yerelhesap cluster yerelkume name iki context user yerelhesap cluster yerelkume Ve tabi ki istediğiniz kombinasyon ile bu yapılarıkullanabilirsiniz kubectl ile kubeconfig dosyasının kullanımıGenellikle kubectl ile birlikte kendi ev dizininizdeki kube config dosyasıkullanılmaktadır Fakat isterseniz aşağıdaki şekilde her komut içerisinde yapılandırma dosyasınıvererek de çalıştırabilirsiniz kubectl cluster info kubeconfig istenilen dizin dosyaBu yapının bir alternatifi olarak da aşağıdaki gibi KUBECONFIG BASH değişkeni olarak yapılandırma dosyasınıverebilirsiniz export KUBECONFIG istenilen dizin dosyaFakat bu çevre değişkenini değiştirdiğinizde sadece bulunduğunuz oturumda değiştiğini bilmeniz gerekir Gerekirse bu çevre değişkenini bash profilinize ekleyecek şekilde otomatikleştirebilirsiniz Rancher üzerindeki küme yapılandırma dosyasıRancher kullanıyorsanız ve çoklu küme kullanıyorsanız ilgili kümenin kubeconfig içeriğine rahatlıkla erişebilirsiniz Bunun için öncelikle sol üstteki hamburger menü den Cluster Management Küme YÖnetimi içerisinde kümelerin listelendiği ekrana gelmeniz gerekiyor Bu ekranda kümeyi seçip Download KubeConfig diyebileceğiniz gibi en sağdaki üçnoktaya basarak da aynıişlemi yapabilirsiniz Bu sayede Rancher üzerindeki kümenizi uzaktan kubectl veya Kubernetes Lens ile de yönetebilirsiniz |
2022-09-18 09:12:40 |
海外TECH |
DEV Community |
How to include external resources into your executables in C++ |
https://dev.to/atimin/how-to-include-external-resources-into-your-executables-in-c-3cpm
|
How to include external resources into your executables in C Very often we need to include into our programs some resources like textures sounds static data etc Usually we distribute them with the programs as files However if you want to distribute the application as a single executable it may become a bit tricky Classical approach for GCCThe most elegant way to do it was described here It works perfectly but only on Linux with GCC Portable approachIf you want a portable approach for including your resources you can use cmake and generate a header file with the resources as strings Let s create a template with name resource h in ifndef RESOURCE H define RESOURCE H include lt string view gt namespace app static std string view kResource RESOURCE DATA endif RESOURCE HIn your CMakeLists txt you should read the resource from its file and use configure file to generate a header file READ CMAKE CURRENT BINARY DIR path to resource data RESOURCE DATA HEX configure file resource h in CMAKE BINARY DIR app resource h ONLY We need to represent our data as hex digits overwise your binary data breaks the C strings It isn t a big deal you can later convert it into a normal string in your C code auto hex str to str std string hex auto len hex length std transform hex begin hex end hex begin toupper std string new string for int i i lt len i auto byte hex substr i char chr byte byte lt A x x lt lt byte byte lt A x x new string push back chr return new string auto data hex str to str std move hex Unfortunately if your resources are big you may meet this error on Windows C string too big trailing characters truncatedIt happens if your string is bigger than chars Annoying…but it s possible to work around the problem We can reformat the strings in Python Script to reformat long string for Windows import sysSTEP if name main filename sys argv split with open filename r as file while True chunk file read STEP split append chunk if len chunk lt STEP break with open filename w as file file write n join split and run it in our CMakeLists txt file READ CMAKE CURRENT BINARY DIR path to resource data RESOURCE DATA HEX configure file resource h in CMAKE BINARY DIR app resource h ONLY execute process COMMAND python CMAKE SOURCE DIR cmake split string py CMAKE BINARY DIR app resource h Of course you need Python on your machine now If it is an issue you can find out how to do it in pure CMake as well |
2022-09-18 09:03:34 |
海外ニュース |
Japan Times latest articles |
Kishida Cabinet support rate continues to plummet, survey shows |
https://www.japantimes.co.jp/news/2022/09/18/national/politics-diplomacy/fumio-kishida-cabinet-survey-lowest/
|
Kishida Cabinet support rate continues to plummet survey showsThe latest poll comes as the ruling LDP struggles to defuse jitters over its controversial links to the Unification Church and a planned state funeral |
2022-09-18 18:35:54 |
海外ニュース |
Japan Times latest articles |
The U.K.’s masses descend on London to say goodbye |
https://www.japantimes.co.jp/opinion/2022/09/18/commentary/world-commentary/queen-elizabeth-funeral-2/
|
The U K s masses descend on London to say goodbyeWhile it fits with a national stereotype the orderly hour km queue for the lying in state of Queen Elizabeth II is about more than just lining |
2022-09-18 18:08:16 |
ニュース |
BBC News - Home |
Ukraine war: Grave sites prompt calls for tribunal over Russian killings |
https://www.bbc.co.uk/news/world-europe-62945155?at_medium=RSS&at_campaign=KARANGA
|
ukraine |
2022-09-18 09:20:09 |
ニュース |
BBC News - Home |
Police call for calm amid Leicester disorder |
https://www.bbc.co.uk/news/uk-england-leicestershire-62943952?at_medium=RSS&at_campaign=KARANGA
|
dispersal |
2022-09-18 09:11:26 |
ニュース |
BBC News - Home |
Lady Gaga forced to stop show amid lightning storm |
https://www.bbc.co.uk/news/entertainment-arts-62946148?at_medium=RSS&at_campaign=KARANGA
|
miami |
2022-09-18 09:33:41 |
北海道 |
北海道新聞 |
75歳以上、初の15%超え 「高齢者」最多3627万人 |
https://www.hokkaido-np.co.jp/article/732994/
|
高齢者 |
2022-09-18 18:28:00 |
北海道 |
北海道新聞 |
レバンガ敗退、3位決定戦へ 東北カップ |
https://www.hokkaido-np.co.jp/article/732993/
|
東北カップ |
2022-09-18 18:26:00 |
北海道 |
北海道新聞 |
巨1―3D(18日) DeNAが連敗止める |
https://www.hokkaido-np.co.jp/article/732992/
|
適時打 |
2022-09-18 18:22:00 |
北海道 |
北海道新聞 |
還付金詐欺か、200万円だまし取られる 札幌の60代女性 |
https://www.hokkaido-np.co.jp/article/732990/
|
札幌市白石区 |
2022-09-18 18:16:00 |
北海道 |
北海道新聞 |
東芝再建へ日本企業が出資検討 オリックス、投資会社が打診 |
https://www.hokkaido-np.co.jp/article/732987/
|
国内投資 |
2022-09-18 18:04:00 |
コメント
コメントを投稿