IT |
気になる、記になる… |
au Pay マーケット、2日間限定で「Apple Gift Card」購入で最大5%ポイント還元するキャンペーンを開催中 |
https://taisy0.com/2021/12/31/150247.html
|
applegiftcard |
2021-12-31 01:55:11 |
IT |
気になる、記になる… |
Google、「Pixel 6/6 Pro」向けの12月のアップデートの配信を停止 − 通話が切れる不具合報告の為 |
https://taisy0.com/2021/12/31/150245.html
|
google |
2021-12-31 01:36:49 |
ROBOT |
ロボスタ |
文章要約AI「タンテキ」どう使う? 利用事例やユーザーの声を公開、独自の自然言語処理APIも公開 バズグラフ |
https://robotstart.info/2021/12/31/ai-tanteki-user-int.html
|
株式会社 |
2021-12-31 01:00:36 |
IT |
ITmedia 総合記事一覧 |
[ITmedia PC USER] 予想を超えたApple、未来の道筋が見えたIntel、Windows 11に進んだMicrosoft 2021年のパソコン動向を振り返る |
https://www.itmedia.co.jp/pcuser/articles/2112/31/news028.html
|
apple |
2021-12-31 10:30:00 |
AWS |
lambdaタグが付けられた新着投稿 - Qiita |
Lambdaからツイートしたい(Twitter API V2対応) |
https://qiita.com/r_saiki/items/8ae6df4c808b74bd824e
|
以下は入力しないと保存できないので、何かしら入力しておきます。 |
2021-12-31 10:21:50 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
【2021年版】エンジニアがよく閲覧する情報収集サイトとは?【分析してみた】 |
https://qiita.com/kakedashiman1/items/10b4940f1c136d3d12af
|
PythonでSQLiteを利用する方法上記の流れで、「エンジニアがよく閲覧している情報収集サイト」を分析してみました。 |
2021-12-31 10:54:16 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
PythonのウェブフレームワークDashのver2.0に関して |
https://qiita.com/OgawaHideyuki/items/f7fe63294374cf56d3cf
|
Callbacksappcallbackにstateを使って渡してたら、からはinputsも指定してください公式ではinputになっていますがinputsが正しいです。 |
2021-12-31 10:07:34 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
CIFAR-10の高解像度化 |
https://qiita.com/MATEGI/items/f83b975bba47b7ff86cd
|
CIFARの高解像度化ライブラリとPSNR指標ピーク信号対雑音比PSNRを「解像度の高さ」の指標とする。 |
2021-12-31 10:02:27 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
sklearnモジュールが使えない |
https://teratail.com/questions/376171?rss=all
|
sklearnモジュールが使えない手書き文字を判別する人工知能を作っているのですが、このようなエラーコードが出てきてしまい実行できません。 |
2021-12-31 10:45:34 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
Unity:トップビューゲームの当たり判定のつけ方 |
https://teratail.com/questions/376170?rss=all
|
Unityトップビューゲームの当たり判定のつけ方今、下の画像のようなトップビューゲームを作っているのですが、当たり判定のつけ方がよくわかりません。 |
2021-12-31 10:36:39 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
UnityアプリのAndroidビルドエラーについて |
https://teratail.com/questions/376169?rss=all
|
UnityアプリのAndroidビルドエラーについて前提・実現したいことひとまず簡単なゲームを作成し、Androidビルドを行っています。 |
2021-12-31 10:24:53 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
OpenCVではない新しい顔認識ライブラリを全角パスに対応させたい |
https://teratail.com/questions/376168?rss=all
|
|
2021-12-31 10:24:52 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
モジュールなしで深いコピー |
https://teratail.com/questions/376167?rss=all
|
copydeepcopy |
2021-12-31 10:21:31 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
XAMPPが起動できない(2回目の投稿になります) |
https://teratail.com/questions/376166?rss=all
|
XAMPPが起動できない回目の投稿になります度目の投稿であるのに何も発展してないことを冒頭で謝ります。 |
2021-12-31 10:03:17 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
Docker学習備忘録 |
https://qiita.com/hiramiya/items/16925e82905d63926fb5
|
rootceedexitコンテナを確認すると、ステータスがExitedに。 |
2021-12-31 10:58:53 |
技術ブログ |
Developers.IO |
FireLens から New Relic Logs へ New Relic 謹製 Fluent Bit イメージを利用してログを保存してみた |
https://dev.classmethod.jp/articles/tried-sending-to-new-relic-logs-with-firelens/
|
awsfargate |
2021-12-31 01:26:24 |
海外TECH |
Ars Technica |
Researchers built a gecko-bot to study how geckos glide and crash land |
https://arstechnica.com/?p=1822841
|
locomotion |
2021-12-31 01:07:08 |
海外TECH |
DEV Community |
Terraform Scripting Concepts: Part 2 of 2 |
https://dev.to/serdigital64/terraform-scripting-concepts-part-2-of-2-36nl
|
Terraform Scripting Concepts Part of OverviewThis is the second part of the tutorial If not done already please read the first part Terraform Scripting Concepts Part of Using functionsAnother particular characteristic of the Terraform Language is that it doesn t support user defined functions Instead it provides groups of built in functions that can be used when assigning value to variables and attributes NumericStringCollectionEncodingFilesystemDate and TimeHash and CryptoNetworkingType conversionUse the following template for calling functions FUNCTION NAME PARAMETER PARAMETER PARAMETERN For example locals Find the maximum value from a list of numbers numeric max max Find the minimum value from a list of numbers numeric min min Conver string to lowercase string lower lower ServerX DomainY Extrat dir from path filesystem dir dirname full path to file Extrat file name from path filesystem file basename full path to file Record timestamp date time timestamp timestamp Managing infrastructureUp until now the script takes no action In order for Terraform to actually manage the target infrastructure and make changes to reach the required end state the script needs providers Terraform defines the following block types for working with the target infrastructure terraform used to set workspace wide run time options required providers used to declare what providers will be usedprovider used to define provider specific options resource used to create a logical representation of the managed resource Each provider will further specialize the resource with attributes and subtypes data optional block that is used to query infrastructure resources managed by the provider The query result is then made available for other blocks to use as variables Declare ProvidersProviders are declared by adding a required providers nested block to the terraform block Each provider will be assigned to an attribute of type map Map name used to reference the provider from other blocks Attribute version used to define version requirements Attribute source defines from where the provider will be downloaded Additional provider specific attributes can be defined by using the provider block The block will use the same label as the map name in required providers The following example declares two providers aws and azure terraform required providers aws version gt source hashicorp aws azurerm version gt source hashicorp azurerm provider aws region us east provider azurerm features Define Managed ResourcesOnce the provider has been declared it will make available additional resource and data types For example Provider AWSResource Type aws instanceData Type aws amiProvider AzureResource Type azurerm linux virtual machineData Type azurerm imageUse the following template to define blocks data RESOURCE TYPE RESOURCE LABEL ATTRIBUTE VALUE ATTRIBUTEN VALUE resource RESOURCE TYPE RESOURCE LABEL ATTRIBUTE VALUE ATTRIBUTEN VALUE The data and resource blocks can be used together to improve automation In the following example the data block is used to query AWS for a particular AMI and then the resource block will use the resulting AMI ID to create the VM instance data aws ami coreos most recent true Return the latest one if more than one result is available filter Look for fedora coreos v name name values fedora coreos filter Look for HVM virtualization name virtualization type values hvm owners CentOS Fedora account that owns AMIs resource aws instance aws test instance ami data aws ami coreos id Use the AMI that was found in the data query instance type t micro Select the instance size Next StepsExplore Terraform resources Source code GitHUB RepositoryTool documentation ManualLearn advanced features FunctionsExpresionsCustom validation rulesBuilt in FunctionsModulesUnderstand provider specific implementation details Providers Copyright informationThis article is licensed under a Creative Commons Attribution International License For copyright information on the product or products mentioned inhere refer to their respective owner DisclaimerOpinions presented in this article are personal and belong solely to me and do not represent people or organizations associated with me in a professional or personal way All the information on this site is provided as is with no guarantee of completeness accuracy or the results obtained from the use of this information |
2021-12-31 01:25:02 |
海外TECH |
DEV Community |
Terraform Scripting Concepts: Part 1 of 2 |
https://dev.to/serdigital64/terraform-scripting-concepts-part-1-of-2-484f
|
Terraform Scripting Concepts Part of OverviewTerraform is an automation tool focused on infrastructure provisioning The product is developed by HashiCorp and the command line version is provided as an Open Source Project available on GitHub Terraform has the following core components Terraform CLI stand alone app that provides the run time environment for Terraform Scripts and maintains build state information of Managed Resources Terraform Script text file with Terraform Language code used to describe the required end state of the Managed Resources Managed Resource logical representation of a real infrastructure resource in the target infrastructure Terraform Provider stand alone apps plugins that are used by the Terraform CLI to interact with Managed Resources Terraform Workspace working directory where Terraform Scripts are located and where the Terraform CLI stores data files state temporary plugins etc Using Terraform CLI InstallationThe recommended method for production environments is to add HashiCorp s package repository to the OS package manager and install it using native tools For more relaxed environments the binary package provides a simpler alternative that does not require root privilege Create the installation repositoryINSTALL PATH HOME terraform cli mkdir INSTALL PATH cd INSTALL PATH Download the binary packagecurl LO Uncompress the binary packageZIP PACKAGE terraform linux amd zip unzip ZIP PACKAGE amp amp rm f ZIP PACKAGE Running scriptsThe execution process of Terraform Scripts is divided into stages init prepares the Terraform Workspace sets run time parameters downloads and installs providers plan creates updates state information of managed resources and executes a dry run to create the change plan For already existing resources if the provider is unable to modify attributes on the fly it will propose a destructive change remove and recreate the resource with the new end state apply executes the change plan and updates resource state information The provider will modify the target infrastructure by creating updating and removing resources until the end state is reached To execute the script the Terraform CLI must be already inside the workspace directory cd WORKSPACE PATH Initialize the workspaceterraform init Prepare and review the action planterraform plan Execute the action planterraform applyNotice that the user running the process doesn t need root privilege just write permissions to the workspace path Script structureThe first thing to understand about Terraform Scripts is that the Terraform Language is not for general purpose development Based on HCL Hashicorp Configuration Language it s specifically designed to describe infrastructure resources Terraform Scripts are developed by defining blocks a complex data structure that describes a configuration object through its attributes Use the following template for declaring blocks BLOCK TYPE RESOURCE TYPE RESOURCE LABEL ATTRIBUTE VALUE ATTRIBUTE VALUE ATTRIBUTEN VALUE Nested block BLOCK TYPE RESOURCE TYPE RESOURCE LABEL ATTRIBUTE VALUE BLOCK TYPE defines what type of configuration object is going to be described Notice that Blocks can have any number of attributes and other blocks nested RESOURCE TYPE optional field used to select object subtypes Not all objects will require one RESOURCE LABEL optional field to assign a label ID to the object ATTRIBUTE name of the object s attribute VALUE value that will be assigned to the object s attribute The following list shows common built in block types variableoutputlocalterraformproviderresourcedataAdditional types and subtypes are implemented through Terraform Providers For example awsgoogleazurermkubernetesScripts can have comments anywhere single line comment Anything at the right is ignored single line comment Anything at the right is ignored multi line comment Anything between the delimiters is ignored As a good practice after the script is created updated run the built in linter and code formatter cd WORKSPACE PATHterraform fmtterraform validate Using Variables DeclarationAs everything in Teraform variables are also a block type Use the following template to declare variables locals VARIABLE NAME VALUE Data TypesBoth variables and attributes have types string a sequence of Unicode characters number integer or float numbers bool boolean values list indexed sequence of values The index is numerical and starts at cero VALUEs can be of any type map group of key value pairs VALUEs can be of any type null empty value Types are inferred from the value i e no explicit data type declaration For example locals test string abc test number integer test number float test bool true test list value test map key value key ParametersParameters are variables that are used to provide run time data to Terraform Scripts They are declared using the variable block type variable PARAMETER NAME Optional parameter attributes ATTRIBUTE VALUE They are different from regular variables as they allow attributes to further describe the parameter default value that is assigned if none is provided description text message that is used to describe the parameter type expected variable type This is not used to declare the type but rather to constrain the provided value validation validation block used to perform additional checks sensitive flag to restrict script output Used to mask sensitive values such as passwords nullable flag to indicate if the value can be null For example variable aws region type string default us west a description target AWS region nullable false sensitive false variable xaas test api secret type string description API secret for the Test API nullable false sensitive true OutputIn addition to the local and variable block types Terraform provides the output type to define variables that will be exported and made available to external apps and scripts The following attributes are available value the value assigned to the variable description describe what the value represents sensitive flag to restrict script output Used to mask sensitive values such as passwords For example output sysadmin key value secret api key description API secret for the new service sensitive true Retreive variable s valueIn general any block attribute can be referenced from within other blocks by using the following structure BLOCK TYPE ATTRIBUTE or BLOCK TYPE BLOCK LABEL ATTRIBUTEIn addition to the generic format there are special cases to consider Locals use local instead of locals local ATTRIBUTEParameters use the short form var instead of the full type name variable var ATTRIBUTEOutputs requires the module name where the output is declared module MODULE NAME OUTPUT NAMEVariables can also be used in String Templates simple programming code that can be embedded inside string declarations BLOCK TYPE ATTRIBUTE The following example shows the three variable types seen so far locals api secret seed abc variable new service name type string default new service name description What name will the new service have nullable false sensitive false output service secret value local api secret seed var new service name description API secret for the new service sensitive true Next StepsContinue reading the second part of the tutorial Terraform Scripting Concepts Part of Copyright informationThis article is licensed under a Creative Commons Attribution International License For copyright information on the product or products mentioned inhere refer to their respective owner DisclaimerOpinions presented in this article are personal and belong solely to me and do not represent people or organizations associated with me in a professional or personal way All the information on this site is provided as is with no guarantee of completeness accuracy or the results obtained from the use of this information |
2021-12-31 01:23:54 |
海外TECH |
CodeProject Latest Articles |
DbSharp -DAL Generator Tool on .NET6- |
https://www.codeproject.com/Articles/776811/DbSharp-DAL-Generator-Tool-on-NET6
|
record |
2021-12-31 01:30:00 |
ニュース |
BBC News - Home |
California Innocence Project: The man who helps people on death row |
https://www.bbc.co.uk/news/uk-england-derbyshire-57173868?at_medium=RSS&at_campaign=KARANGA
|
death |
2021-12-31 01:22:02 |
ニュース |
BBC News - Home |
Year in tech: The stories making headlines in 2021 |
https://www.bbc.co.uk/news/technology-59309768?at_medium=RSS&at_campaign=KARANGA
|
nfts |
2021-12-31 01:01:04 |
コメント
コメントを投稿