投稿時間:2022-04-03 21:22:50 RSSフィード2022-04-03 21:00 分まとめ(21件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
js JavaScriptタグが付けられた新着投稿 - Qiita 特許庁が作成したmultimulticheckerに機能を追加した https://qiita.com/kenichiro_ayaki/items/4db13f061dcd4ecbd342 「請求項に記載の…」⇒「請求項に記載の…」「請求項に記載の…」⇒「請求項に記載の…」「請求項またはに記載の…」⇒「請求項に記載の…」「請求項からの何れかに記載の…」⇒「請求項のに記載の…」「請求項およびの何れかに記載の…」⇒「請求項ampのに記載の…」そして、sreplaceから呼び出されるreplacefunctionにより、値の範囲を示すは、数字とカンマに羅列に変換されます。 2022-04-03 20:44:18
Linux Ubuntuタグが付けられた新着投稿 - Qiita 【環境構築】UbuntuにMySQL環境を作ろうとして激ハマりした https://qiita.com/moririnBass/items/0c62045a5bc40b5380b2 【環境構築】UbuntuにMySQL環境を作ろうとして激ハマりしたVirtualBoxのUbuntuにて、MySQLを使おうとしたところ環境構築中にエラーでハマった。 2022-04-03 20:00:42
AWS AWSタグが付けられた新着投稿 - Qiita Amazon EC2にJavaアプリをデプロイする方法(war&jar) https://qiita.com/katsu0511/items/812341b105b062c57dbc 、 EC に Java を インストール EC に Java を インストール し ます 。 2022-04-03 20:58:31
AWS AWSタグが付けられた新着投稿 - Qiita AWS公式資料で挑むSCS認定(29)-こんな時どうする(全分野その6) https://qiita.com/mingchun_zhao/items/b9fab772e1e4558a7026 AWS公式資料で挑むSCS認定こんな時どうする全分野その前回AWS公式資料で挑むSCS認定こんな時どうする全分野そのはじめに引き続き、「こんな時どうする」です。 2022-04-03 20:25:33
golang Goタグが付けられた新着投稿 - Qiita Go1.18でジェネリクスが追加されたので、5年ぶりにGolangを覚えなおし、GenericListとマルチキャスト可能Channelの実装をした https://qiita.com/YukiMiyatake/items/40fa9cce9a831563648d Goでジェネリクスが追加されたので、年ぶりにGolangを覚えなおし、GenericListとマルチキャスト可能Channelの実装をしたはじめにGoがにリリースされました以前Goの開発陣はジェネリクスは不要とか言ってたような気がするがでもお試しが出来たと思いますが今回正式に導入されたので、年ぶりにGoのお勉強ですジェネリクス以外に年間のUpdateを調べましたがツールやライブラリは変わったものの言語じたいはたいした変化はなかったのでジェネリクスだけですジェネリクスとはCでいうテンプレートですD言語、Java、C、Haskell・・・今では様々な言語に導入されている概念です引数の型が異なる関数やメソッド、メンバ、クラスに対して、一つの実装で複数の型に対応出来ます具体的には、例えばint型の入るリストクラスIntListを作ったとしますfloat型のリストも必要となったのでコピペしてFloatListクラスを作成string型のリストも欲しいからStringListクラスを作成自作したMyClassを保存するMyClassListを作成・・・メンテできませんね。 2022-04-03 20:24:19
海外TECH DEV Community Images and words (Image detection sample) - MR Tutorial for Nreal Light https://dev.to/kara_d_en/images-and-words-image-detection-sample-mr-tutorial-for-nreal-light-2j03 Images and words Image detection sample MR Tutorial for Nreal LightThis sample displays the message Detected when the prepared image comes into view Learn how to detect images by creating a very simple sample Sample Repositorymr tutorials for nreal light ImagesAndWords at main ·karad mr tutorials for nreal light Run the sampleClone sample repository Change current directory to ImagesAndWords And Open with Unity If you don t have NRSDK Download NRSDK from Open Build Setting change Platform to AndroidOpen Project select Assets gt import package gt Custom Package and import NRSDKForUnityAndroid unitypackage Check Build Settings gt Player Settings by referring to Configure Build SettingsPress Build form Build Settings panelInstall apk on Android or DevKit Tutorial Setting up the project for Nreal developmentSee Quickstart for Android NRSDK Documentation and configure the build settings If you don t have NRSDK Download NRSDK from Open Project select Assets gt import package gt Custom Package and import NRSDKForUnityAndroid unitypackage Prepare tracking imagesPrepare a sample image for image detection Multiple images can be set for image detection The sample is provided as an image named “ImageDetect png Put it to Assets gt Scene Create TrackingImageDatabaseImage detection requires a database with registered images for image detection Select yout tracking Images and display context menu with right click Select Create gt NRSDK gt TrackingImageDatabase Then a TrackingImageDatabase will be created Create SessionConfigRegister the database you just created in SessionConfig Move to Assets gt Scene and select Create gt NRSDK gt SessionConfig then create SessionConfig Select the NRKernalSessionConfig you just created and open Inspector Enable Image Tracking Mode Drag TrackingImageDatabase to Tracking Image Database Set SessionConfig to NRCameraRigThe place to register SessionConfig is in NRCameraRig Select Hierarchy gt NRCameraRig Drag NRKernalSessionConfig to Session Config on Inspector gt NR Session Behaviour Create C Script for image detectionCreate C Script in the asset with the file name IconDetect cs Write the code as follows using NRKernal using NRKernal NRExamples using System Collections using System Collections Generic using UnityEngine using UnityEngine UI lt summary gt Icon Detect class using Trackable Images lt summary gt public class IconDetect MonoBehaviour lt summary gt Trackable image list lt summary gt private List lt NRTrackableImage gt m NewMarkers new List lt NRTrackableImage gt lt summary gt Display trackable status lt summary gt public Text text Start is called before the first frame update void Start text text Searching Update is called once per frame void Update NRFrame GetTrackables lt NRTrackableImage gt m NewMarkers NRTrackableQueryFilter New if m NewMarkers Count gt NRTrackableImage image m NewMarkers Debug Log image GetCenterPose ToString If you use NRAnchor uncomment the following NRAnchor anchor image CreateAnchor text text Detected Put Canvas and Text on the scenePut Text object for displaying the cube rotation value Put Canvas from Create gt UIPut Text as a child of CanvasChange Text to “Info on Inspector panel Attach IconDetect cs on Inspector panel of Canvas Set Text to Text Text Object BuildPress Build form Build Settings panelInstall apk on Android or DevKit Test your application by displaying images for image detectionDisplay the image for image detection on your own smartphone or PC and view the image in Nreal Light Make sure the text displayed in Nreal Light goes from Searching to Detected 2022-04-03 11:43:16
海外TECH DEV Community Writing Custom Migrations in Django https://dev.to/koladev/writing-custom-migrations-in-django-3eli Writing Custom Migrations in DjangoMigrations in Django are auto generated files from the models of an application that apply changes to a stricture of a Table whether it s the creation the modification or the deletion of a field There are some situations when you are adding a new field or doing some modifications that we ll require you to write custom migrations Let s see ProblemWe have an e commerce application selling shoes and computers Weird example but that will do the work In the database we have the two following tables from django db import modelsclass Shoe models Model name models CharField max length brand models CharField max length color models CharField max length price models IntegerField in stock models BooleanField default True description models TextField image models ImageField upload to images def str self return self nameclass Computer models Model name models CharField max length brand models CharField max length color models CharField max length price models IntegerField in stock models BooleanField default True description models TextField image models ImageField upload to images def str self return self nameWe have the Computer table and the Shoe table with basically the same fields A way to improve this and avoid DRY will be to create an AbstractModel class but well in the database that won t count that much Let s create a class called Product that will have the same fields and a product type field to know the type of product computer or shoe class Product models Model PRODUCT TYPE CHOICES shoe shoe computer shoe name models CharField max length brand models CharField max length color models CharField max length price models IntegerField in stock models BooleanField default True description models TextField image models ImageField upload to images product type models CharField max length choices PRODUCT TYPE CHOICES def str self return self nameThe Product class is created Now what You will probably run the python manage py makemigrations and the python manage py migrate command to apply the changes in the database The Product table will be created but we also want to have the Shoe and the Computer table data in this new table so we can get rid of them This will require writing custom migrations Supposing that we have created a separated Django application called product in the Django project we can use the following command to generate a new empty migrations file in the product application python manage py makemigrations product empty We ll have a file similar to this Generated by Django on from django db import migrationsclass Migration migrations Migration dependencies product initial operations Great We need now to import the Shoe and Computer models and write a function to migrate Shoe and Computer table data to Product table def migrate to product model apps schema editor Product apps get model product Product Shoes apps get model shoe Shoes Computer apps get model computer Computer for shoe in Shoes objects all Product objects create name shoe name brand shoe brand color shoe color in stock shoe in stock description shoe description image shoe image product type shoe for computer in Computer objects all Product objects create name computer name brand computer brand color computer color in stock computer in stock description computer description image computer image product type computer And here s the final migration code Generated by Django on from django db import migrationsdef migrate to product model apps schema editor Product apps get model product Product Shoes apps get model shoe Shoes Computer apps get model computer Computer for shoe in Shoes objects all Product objects create name shoe name brand shoe brand color shoe color in stock shoe in stock description shoe description image shoe image product type shoe for computer in Computer objects all Product objects create name computer name brand computer brand color computer color in stock computer in stock description computer description image computer image product type computer class Migration migrations Migration dependencies product initial operations migrations RunPython migrate to product model This is an example of a custom migration No need to worry about if the migrations fail and the database is messed up Migrations transactions are atomic by default then if something goes south the changes won t be committed to the database For more reading check the official documentation of migrations in Django Article posted using bloggu io Try it for free 2022-04-03 11:25:01
海外TECH DEV Community EC2 - Elastic Compute Cloud https://dev.to/aws-builders/ec2-elastic-compute-cloud-l91 EC Elastic Compute CloudElastic Compute Cloud is a web service by AWS which provides scalable computing capacity Here Computing refers to processing power memory networking storage and other resources It offers infrastructure as a service IaaS Amazon EC eliminates your need to invest in hardware up front so you can develop and deploy applications faster It is highly scalable and pay as you go model Benefits of EC Features of EC Instances It is a virtual server for running applications on AWS infrastructure AMI Amazon Machine Image is a template that provides information required to launch instances Instance types Amazon EC provides a total of instance types which are classified according to their use cases Instance types comprise varying combinations of CPU memory storage and networking capacity to give the client a flexibility to choose the appropriate mix of resources for your applications Secure Login It allow secure login for your instances using key pairs Regions and Availability Zones It is a physical location around the world where data centers are clustered Each group of logical data centers are called Availability Zone VPCs Virtual Private Clouds It enables you to launch AWS resources into a virtual network that you ve defined Amazon Machine ImageAn Amazon Machine Image AMI is a template prototype that contains a software configuration for example an operating system server and applications From an AMI we can launch an instance which is a copy of the AMI running as a virtual server in the cloud It includes EBS Launch permissions a block device mapping that specifies the volumes to attach to the instance when it s launched In the below diagram it shows how we can create and register an AMI which includes EBS snapshot or template that can be used to launch new instance or to create another copy of AMI within same region or different AWS region If we want any changes then we can deregister AMI and then launch it again In simple words AMI is a base image it can include different OS using which we can launch instances Creating an EC Instance Hands onOpen the Amazon EC console at click hereTo launch an instance click on ecClick on instances to see the instances and their running statusIf there is no instance created you will see this Click on new Launch instances and then it will show you all the AMIs that are available for different use cases We will select windows Microsoft Windows Server Base ami faacf to launch an instance of windows OS On choosing the AMI you will select the instance type according to your usage of CPU RAM Storage bandwidth if you are having free tier then only t micro is available Then you will choose the number of instances to be created from the AMI which is the configure instance details this is the part where you can choose if you want to create a VPC Add Storage Here you will decide the size and volume type according to your requirements Add Tags We can add tags for our convenience it will be easier to identify and manage our instances like name department etc Configure Security group Here we can decide how we want to access our instances we can choose the protocol type RDP HTTP HTTPS SSH RDP stands for Remote Desktop Protocol which will allow us to create remote desktop for windows We can also decide who can access our instance As you will see this warning WarningRules with source of allow all IP addresses to access your instance We recommend setting security group rules to allow access from known IP addresses only Review and Launch will allow you to check your instance launch details You can go back to edit changes for each section Click Launch to assign a key pair to your instance and complete the launch process On clicking launch AWS asks for a key which you download and use to access via RDP download and keep the key safe as it only can be downloaded once You can also select a previous key if you have a key generated already As you can see your instance is in running state Select the instance you want to connect and click on connect buttonDownload the remote desktop file Click on get password which you will need while login to the Remote desktop Now upload the download pem file or the key pair value that you have generated while launching the instance After uploading click on decrypt password and copy the password so that you can use it to login the Remote Desktop Connection Go to the downloaded remote desktop file and use the password to login Here you go with the remote desktop connection create your application and it is totally independent from your personal computer having it s own property Likewise you can create an instance for different AMIs If you want to create a template of your instance then stop the instance from running and then you can create templates of launched instances Likewise you can create an image of your instance to launch another instance using your saved image my AMIs instead of using AMI That s all for this blog Next I will be creating a blog on Instances and their types 2022-04-03 11:18:38
海外TECH CodeProject Latest Articles A Polynomials Math Parser in VB.NET https://www.codeproject.com/Articles/5328919/A-Polynomials-Math-Parser-in-VB-NET evaluator 2022-04-03 11:45:00
ニュース @日本経済新聞 電子版 独電力大手が石炭火力回帰 RWE、ロシア産ガス代替へ https://t.co/AG54Im2PuE https://twitter.com/nikkei/statuses/1510584156564115457 電力 2022-04-03 11:45:02
ニュース @日本経済新聞 電子版 日産「シーマ」今夏生産終了へ 「スカイラインHV」も https://t.co/lWWoEj7AUi https://twitter.com/nikkei/statuses/1510580394105651208 終了 2022-04-03 11:30:05
ニュース @日本経済新聞 電子版 バンダイナムコ、品薄「ガンプラ」1割増産 転売対策も https://t.co/Xx9YMX5oJi https://twitter.com/nikkei/statuses/1510576603557998592 転売 2022-04-03 11:15:02
ニュース BBC News - Home War in Ukraine: Johnson congratulates Volodymyr Zelensky over Kyiv pushback https://www.bbc.co.uk/news/uk-60970114?at_medium=RSS&at_campaign=KARANGA conference 2022-04-03 11:08:38
ニュース BBC News - Home Sunflower oil: UK bottler has a few weeks' supply left https://www.bbc.co.uk/news/business-60941091?at_medium=RSS&at_campaign=KARANGA meals 2022-04-03 11:01:29
ニュース BBC News - Home Pakistan heads for early election amid move to remove PM Imran Khan https://www.bbc.co.uk/news/world-asia-60972186?at_medium=RSS&at_campaign=KARANGA decisions 2022-04-03 11:11:13
ニュース BBC News - Home Dover cross-Channel ferry disruption begins to ease https://www.bbc.co.uk/news/uk-england-kent-60972017?at_medium=RSS&at_campaign=KARANGA channel 2022-04-03 11:21:17
北海道 北海道新聞 ロシア軍、キーウ周辺から撤退 市民の深刻な犠牲判明 https://www.hokkaido-np.co.jp/article/664981/ 首都 2022-04-03 20:30:00
北海道 北海道新聞 パキスタン総選挙へ、下院解散で カーン首相、不信任を回避 https://www.hokkaido-np.co.jp/article/664980/ 首相 2022-04-03 20:26:00
北海道 北海道新聞 女子ゴルフ、西郷が2週連続V 今季5戦3勝 https://www.hokkaido-np.co.jp/article/664946/ 女子ゴルフ 2022-04-03 20:05:50
北海道 北海道新聞 松野氏、沖縄振興アピール 知事選見据え、てこ入れ https://www.hokkaido-np.co.jp/article/664964/ 名護市役所 2022-04-03 20:14:06
北海道 北海道新聞 安倍氏「防衛費当初予算6兆円を」 敵基地の中枢攻撃も https://www.hokkaido-np.co.jp/article/664973/ 安倍晋三 2022-04-03 20:05:26

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)