投稿時間:2022-05-20 17:28:18 RSSフィード2022-05-20 17:00 分まとめ(32件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
ROBOT ロボスタ 写真や動画をAIが自動で整理・バックアップ 「artron UTO」Amazonで発売開始 CAMPFIREで377%を達成 https://robotstart.info/2022/05/20/artron-uto-amazon.html 2022-05-20 07:48:07
IT ITmedia 総合記事一覧 [ITmedia PC USER] デル、13型プレミアムノート上位モデル「XPS 13 Plus」の販売を開始 税込み25万8980円から https://www.itmedia.co.jp/pcuser/articles/2205/20/news152.html itmediapcuser 2022-05-20 16:40:00
IT ITmedia 総合記事一覧 [ITmedia News] ヤフー“完全オンライン”の就業型インターン 検索サジェスト機能改善など91コース https://www.itmedia.co.jp/news/articles/2205/20/news150.html itmedia 2022-05-20 16:38:00
IT 情報システムリーダーのためのIT情報専門サイト IT Leaders 脆弱性を検知して通知するサービス「yamory」、公開前の緊急脆弱性を速報として通知可能に | IT Leaders https://it.impress.co.jp/articles/-/23193 itleaders 2022-05-20 16:46:00
python Pythonタグが付けられた新着投稿 - Qiita aku https://qiita.com/Saripudin/items/8a7a5c386469bdb29869 akuprint 2022-05-20 16:41:37
python Pythonタグが付けられた新着投稿 - Qiita python https://qiita.com/Roj/items/01d146226ffb71bfd937 after 2022-05-20 16:41:13
python Pythonタグが付けられた新着投稿 - Qiita .ipynbをのぞいてみよう【シリーズ:ファイルの中身1】 https://qiita.com/bored_funuke/items/41207826a5d9002b0ec6 ipynb 2022-05-20 16:39:47
Ruby Rubyタグが付けられた新着投稿 - Qiita Ruby技術者認定試験silver受験記 https://qiita.com/1024_ichika/items/07ed125f9c26964d7229 silver 2022-05-20 16:59:12
Docker dockerタグが付けられた新着投稿 - Qiita docker+php5系でxdebugを使う方法 https://qiita.com/kamikita/items/73152090d9f90463994a vscodedockerph 2022-05-20 16:30:27
技術ブログ Developers.IO Amazon Managed GrafanaへAuth0を使ってSAMLログインしてみた https://dev.classmethod.jp/articles/login-with-auth0-saml-for-amazon-managed-grafana/ amazonmanagedgrafana 2022-05-20 07:44:49
海外TECH MakeUseOf Save Over 35% on the Proscenic T22 Smart Air Fryer Now https://www.makeuseof.com/proscenic-t22-air-fryer-deal/ fryer 2022-05-20 07:45:13
海外TECH DEV Community Reduce your tests cognitive complexity with AutoFixture https://dev.to/sfeircode/reduce-your-tests-cognitive-complexity-with-autofixture-2dm4 Reduce your tests cognitive complexity with AutoFixtureWhen unit testing your components you may often be in a situation when you must provide several parameters but only one is relevant Ensuring that your test is still readable and not bloated by the setup of those variables may be quite a challenge but hopefully no more with AutoFixture let s see how SetupIf you want to you can make the same manipulations as I am doing like a small hands on lab on AutoFixture If not you may skip this chapter and head directly to the case study The setup here is really minimal just create a new test project I ll be using xUnit but NUnit should be fine too dotnet new xunit o AutoFixtureExampleYou can now open your new project in an editor of your choice and delete the generated UnitTest cs file Case studyFor us to understand why AutoFixture might be an asset in your projects we will work on a simple case study considering a warehouse and an order for clothes we want to either confirm or refuse to process the order In a new file Warehouse cs let s first add our entities Warehouse cspublic record Cloth string Name public record Order Cloth cloth int UnitsOrdered double Discount public class Warehouse Finally append our simple ordering validation inside the Warhouse class Warehouse cspublic bool IsValid Order order if order UnitsOrdered lt return false Some more checks on the stocks return true Now that we have our logic we can test it in a new WarehouseTest cs file WarehouseTest cspublic class WarehouseTest Fact public void OrderingWithAnInvalidUnitsCount var order new Order new Cloth sweat var result new Warehouse IsValid order Assert False result You may now ensure that our test is passing by running the tests Some problemOur test may pass but it may not be as well written as we would like Readability and intentLet s tackle the first issue here which might be readability In our example the test is fairly simple but a newcomer on the project might not know what the really means and maybe not that the kind of cloth we are creating here is irrelevant We may want to clarify it by naming our variables WarhouseTest cspublic class WarehouseTest Fact public void OrderingWithAnInvalidUnitsCount var order new Order new Cloth sweat var invalidUnitsCount var cloth new Cloth This does not matter for the test var irrelevantDiscount var order new Order cloth invalidUnitsCount irrelevantDiscount var result new Warehouse IsValid order Assert False result Variables that are purposely created to indicate that they does not matter are also sometimes referred as anonymous variables in AutoFixture It s now a bit more verbose but the intent of the test is clearer and might help someone new to grasp what the parameters are for Notice that strings can hold their intents ex My value does not matter but other types may not such as int double etc That s why we had to name our variable holding the discount with this explicit name Surviving refactoringAnother issue that you may face is the classes used in your tests evolving Let s say that our Cloth class now also contains its marketing date we will have to update our test in consequence Warehouse cs public record Cloth string Name public record Cloth string Name DateTime MarketingDate WarehouseTest cspublic class WarehouseTest Fact public void OrderingWithAnInvalidUnitsCount var invalidUnitsCount var cloth new Cloth This does not matter for the test var cloth new Cloth This does not matter for the test DateTime Now var irrelevantDiscount var order new Order cloth invalidUnitsCount irrelevantDiscount var result new Warehouse IsValid order Assert False result Having this change already impacted our test even with our example that is minimal If we had more tests or objects using Cloth we would have a lot more refactoring to do You may also notice that we are passing DateTime Now here which is yet not very readable regarding its intent Introducing AutoFixtureOur test is slowly getting more and more bloated with those initialization and may be even more if either of our classes evolve Hopefully using AutoFixture we can greatly simplify it AutoFixture is a NuGet that can generate variables that can be seen as explicitly not significant Having a glance at their README it appears that it is exactly what we would need AutoFixture is designed to make Test Driven Development more productive and unit tests more refactoring safe It does so by removing the need for hand coding anonymous variables as part of a test s Fixture Setup phase Let s add AutoFixture and see what s changing AutoFixtureExample dotnet add package AutoFixture WarehouseTest cspublic class WarehouseTest private static readonly IFixture Fixture new Fixture Fact public void OrderingWithAnInvalidUnitsCount var invalidUnitsCount var cloth Fixture Create lt Cloth gt var discount Fixture Create lt double gt var order new Order cloth invalidUnitsCount discount var result new Warehouse IsValid order Assert False result That s a little bit better since now we do not have to specify which value is relevant and which one is not However the test is still pretty long and we can take advantage of AutoFixture s builder to create our order in an even more straightforward way WarehouseTest cspublic class WarehouseTest private static readonly IFixture Fixture new Fixture Fact public void OrderingWithAnInvalidUnitsCount var invalidUnitsCount var cloth Fixture Create lt Cloth gt var discount Fixture Create lt double gt var order new Order cloth invalidUnitsCount discount var order Fixture Build lt Order gt With order gt order UnitsOrdered Create var result new Warehouse IsValid order Assert False result We now have a test where only the variable that matters is explicitly set and that does not need to be modified if any class changes Take awaysUsing AutoFixture we have greatly improved our test s readability and clarify its intents while also ensuring that it will not break whenever a class s definition changes Of course there is much more to learn about this library such as how to customize the objects generations creating sequences and more and for that you can refer to their GitHub and the associated cheat sheet that can be a good starting point for using AutoFixture 2022-05-20 07:47:45
海外TECH DEV Community Getting started with testing DynamoDB code in Python https://dev.to/aws-builders/getting-started-with-testing-dynamodb-code-in-python-dif Getting started with testing DynamoDB code in PythonTesting is one of the most critical activities in software development and from my experience also one of the first things thrown overboard when the deadline gets close Using third party APIs like DynamoDB in your code comes with challenges when writing tests Today I ll show you how you can start writing tests for code that accesses DynamoDB from Python We ll begin by installing the necessary dependencies to write our tests To access DynamoDB we ll use the AWS SDK for Python boto The library moto helps with mocking AWS services for tests and pytest is a widespread module that allows writing tests in Python We can install all of them like this pip install boto moto pytestNext we ll begin by creating a demo project that we will test I m opting for a simple Lambda function that accepts an event queries some data from DynamoDB and stores an aggregate in DynamoDB The general idea is to include a few ways of accessing DynamoDB to see how we can test them This is what our project structure looks like you can find all of the code on Github ├ーdev requirements txt├ーrequirements txt├ーsetup py├ーsrc│└ーlambda handler py└ーtests └ーtest lambda handler pyHere s the Lambda handler from src lambda handler py It lists all transactions for a client sums them up and finally stores a summary item in DynamoDB import osimport botoimport boto dynamodb conditions as conditionsENV TABLE NAME TABLE NAME def get table resource dynamodb resource boto resource dynamodb table name os environ ENV TABLE NAME return dynamodb resource Table table name def get transactions for client client id str gt list table get table resource Get all items in the partition that start with TX response table query KeyConditionExpression conditions Key PK eq f CLIENT client id amp conditions Key SK begins with f TX return response Items def save transaction summary summary item dict Add key information summary item PK f CLIENT summary item clientId summary item SK SUMMARY store the item table get table resource table put item Item summary item def lambda handler event context client id event clientId client transactions get transactions for client client id total sum sum tx total for tx in client transactions summary item clientId client id totalSum total sum save transaction summary summary item return summary itemThere are now different approaches to testing this This code tries to access DynamoDB to query and put data We could write an integration test that uses a real DynamoDB table to test this but that has a significant drawback We re using a shared resource which complicates this subject Another approach is to mock DynamoDB without insulting it which is what we ll do today A mock is a form of a test double To our code it looks like DynamoDB and behaves like DynamoDB but it s not DynamoDB The Python package moto bundles mocks for many AWS services including DynamoDB The DynamoDB mock behaves mainly like the service we can create tables add data query data remove data and much more Not all features are supported though the documentation lists the available API calls We can use this in combination with pytest to create a simple test setup We begin by creating two fixtures A fixture provides context for a test That means it can do something before and optionally after the test ends In our case the Lambda code needs the table name to be passed in from an environment variable so we need to set this up this is what lambda environment does The code also assumes that the DynamoDB table already exists so we need to create one The data table fixture sets up a DynamoDB mock and then enlists the regular boto library to create a table The yield keyword says that the setup is done and the test can run now After the yield we could write code that runs after the test but moto automatically tears down the data structures pytest fixturedef lambda environment os environ lambda handler ENV TABLE NAME TABLE NAME pytest fixturedef data table with moto mock dynamodb client boto client dynamodb client create table AttributeDefinitions AttributeName PK AttributeType S AttributeName SK AttributeType S TableName TABLE NAME KeySchema AttributeName PK KeyType HASH AttributeName SK KeyType RANGE BillingMode PAY PER REQUEST yield TABLE NAMEThe fixtures themselves don t test anything They help us set up the actual tests Below you can see an example of a test As parameters we pass in the names of our fixtures which tells pytest to initialize them Then we invoke the lambda handler function with an event clientId ABC Since our table is empty we expect the total sum to be because we don t have any transactions for this client def test lambda no tx client lambda environment data table Tests the lambda function for a client that has no transactions response lambda handler lambda handler clientId ABC expected sum assert response totalSum expected sum assert get client total sum ABC expected sumThis works smoothly Next we want to make sure our code works when there are transactions in the table to sum up That means we need to add data to our table No problem we create a new fixture that builds upon the data table You can see that the new fixture refers to the data table fixture and then puts items into the table pytest fixturedef data table with transactions data table Creates transactions for a client with a total of table boto resource dynamodb Table data table txs PK CLIENT SK TX a total PK CLIENT SK TX b total PK CLIENT SK TX c total for tx in txs table put item Item tx Next we can write a test that asserts the sum of the transactions is correctly calculated as def test lambda with tx client lambda environment data table with transactions Tests the lambda function for a client that has some transactions Their total value is response lambda handler lambda handler clientId expected sum assert response totalSum expected sum assert get client total sum expected sumThe get client total sum function is a helper function that queries the summary item in the table Usually this would be part of your data access layer and you could reuse it here We can now run these tests from the console and measure the test coverage which is pretty good These tests are a good start that will allow you to begin refactoring the code in the Lambda function They also provide coverage of the critical code paths The unit it tests here is relatively large because it covers the whole module You can also add additional tests for the individual functions making it easier to focus on one particular function when you want to refactor it You can find the code I ve shown here on Github Hopefully this has been helpful to you and will allow you to start testing your own code I m looking forward to your questions and feedback ーMauriceFurther reading The Practical Test Pyramid Cover Photo by Glenn Carstens Peters on Unsplash 2022-05-20 07:22:46
海外TECH DEV Community THE AMAZING WORKS DONE BY MASAKHANE IN NLP SPACE https://dev.to/tonyloyt/the-amazing-works-done-by-masakhane-in-nlp-space-4fph THE AMAZING WORKS DONE BY MASAKHANE IN NLP SPACEHi once again welcome to this new informative article about an awesome community doing really amazing work on strengthening  Natural Language Processing  NLP research in African languages for Africans Africa has over languages Despite this African languages account for a tiny portion of available resources and publications in Natural Language Processing  NLP This is due to multiple factors including a lack of focus from government and funding discoverability a lack of community sheer language complexity difficulty in reproducing papers and no benchmarks to compare techniques About MasakhaneMasakhane is a research effort originally for Machine translation focused on African languages that are open source continent wide distributed online It aimed to build a community of Natural Language Processing researchers connect and grow it spurring and sharing further research to enable language preservation tool building and increasing its global visibility and relevance Masakhane pushing to build datasets and tools to facilitate Natural Language Processing in African languages and pose new research problems to enrich the NLP  research landscape Also to build a community that will help to discover best practices for distributed research to be applied by other emerging research communities The best about Masakhane it uses smooth methodologies which don t require any experience of NLP to be connected with the community If you are passionate about solving African challenges based on NLP Masakhane is barrier free open access to first hands on NLP experience with African languages Enable anyone to train Machine translation models on a parallel corpus of their own choice and the results shared online It requires no academic prerequisites to conduct research or contribute to the Masakhane community Guess what have a question in your mind about how I can connect with this awesome community Awesome images Adobe StockWant to be Masakhanian Don t worry here you go Masakhane has their active slack workspace and mailing list group where you can find all the updates and research at hand Works are done by MasakhaneConnecting people from different perspectives on solving research problems based on African language  It is simple for any researcher in the Masakhane community to start research on any language he she could prefer simply because the support from the native language speaker is there you don t want to worry about learning the African language that you what to solve a challenge with I have seen many people from abroad interested in Swahili research and supported to complete their project by native Swahili speakers in the Masakhane community this is awesome and helps people across the world to understand different cultures and languages Machine Translation for African languages  Masakhane has an open source online web for machine translation services for solely African languages  Masakhane Web is the platform that aims at hosting the already trained machine translation models from the Masakhane community and allows contributions from users to create new data for retraining and improving the models If you would like to contribute to this project train a model in your language or want to collaborate and work with Masakhane find out how in  or reach out to any of the Masakhane Web contributors The machine translation for the African language project now has African languages with benchmarks which can be seen on the Masakhane project s Github page Language models for African Languages  The Masakhane community is able to publish different papers about African language modeling this is among amazing initiatives on breaking the barrier of African language model availability You can find the publication here Data Gathering  One of the data collection projects done by the Masakhane community is Text amp Speech for East Africa which was aimed to deliver open accessible and high quality text and speech datasets for low resourced East African languages from Uganda Tanzania and Kenya The project was focused on data for the languages Luganda Runyankore Rukiga Acholi Swahili and a subset of Luhya Languages which are cross border between Uganda and Kenya Read more about the project here Named Entity Recognition for African Names  The project goes with the name MasakhaNER  The project focused on information extraction and identifying African names places and people from information retrieval Since the majority of existing NER datasets for African languages are WikiNER which are automatically annotated and are very noisy since the text quality for African languages is not verified Only a few African languages have human annotated NER datasets You can find the project on the Masakhane Github page How you can contribute Training a model  depending on the research problem you want to contribute you can just take part in training different models as a Masakhane community member Documentation  You can opt to be part of members that help in documenting projects and writing progress about ongoing projects Analysis  If you really like to perform analysis of models and data through Masakhane you can take part in analyzing datasets of African languages to solve various problems Data  People are interested in using new technology to advance their own languages No one is happy seeing their languages are framed in a wrong way on various platforms this is a chance for you to contribute through data collection activities in the Masakhane community to increase the accessibility of data for researchers data scientists software developers and others to solve African challenges Mentorship  You can contribute by providing advice or help to tune models for the languages you prefer or you had experience with and help people get started This can be applied to members that want to apply research on the language of your origin so providing support and compliment to their work is the great way to make the best practice of addressing specific challenges of the African language Computation infrastructure  If you have computing infrastructures and your really love to support Masakhane initiatives but you don t have time to focus on training kinds of NLP models just help the community with the infrastructures or you can just donate Brainstorm  You can just join weekly meetings and contribute with suggestions ideas or advice depending on the topic Also if you have an existing challenge within your community that can be solved by NLP technologies feel free to share with the Masakhane community to find the best way of solving that challenge CurrentlyMasakhane is gaining momentum in the world right now Research institutions are heavily investing in Masakhane as a central platform for any needed resources to include one or more African languages in their works Masakhane has many research collaborations with Google Facebook as well as institutions in Africa Organizations companies and investors are joining too by working together with Masakhane members on several projects which are at the core of African languages There is much to gain from investing in Masakhane right now as it is the hottest thing when we talk about natural language processing for African languages Thank you for taking your time to read this article hope helps you to understand the progress of Natural language processing in the African language context and how you can take part in contributing to the initiatives started by the Masakhane community 2022-05-20 07:05:07
金融 RSS FILE - 日本証券業協会 公社債投資家別条件付売買(現先)月末残高 (旧公社債投資家別現先売買月末残高) https://www.jsda.or.jp/shiryoshitsu/toukei/jyouken/index.html 条件 2022-05-20 09:00:00
金融 RSS FILE - 日本証券業協会 公社債店頭売買高 https://www.jsda.or.jp/shiryoshitsu/toukei/tentoubaibai/index.html 店頭 2022-05-20 09:00:00
金融 金融資本市場分析 | 大和総研グループ 内外経済とマーケットの注目点(2022/5/20) https://www.dir.co.jp/report/research/capital-mkt/securities/20220520_023038.html 個人消費 2022-05-20 16:15:00
金融 日本銀行:RSS NGFSによる「信用格付と気候変動 ― 中央銀行業務に関する課題」 の公表について http://www.boj.or.jp/announcements/release_2022/rel220520b.htm 中央銀行 2022-05-20 17:00:00
海外ニュース Japan Times latest articles Suspect admits guilt over attack against Thai monarchy critic in Kyoto home https://www.japantimes.co.jp/news/2022/05/20/national/crime-legal/pavin-chachavalpongpun-kyoto-court-case/ Suspect admits guilt over attack against Thai monarchy critic in Kyoto homePavin Chachavalpongpun whose criticisms of the monarchy have garnered him a large social media following has linked the July attack to the Thai government 2022-05-20 16:09:11
ニュース BBC News - Home Platinum Jubilee: Eight towns to be made cities for Platinum Jubilee https://www.bbc.co.uk/news/uk-61505857?at_medium=RSS&at_campaign=KARANGA wrexham 2022-05-20 07:54:28
ニュース BBC News - Home Retail sales jump in April driven by food stores https://www.bbc.co.uk/news/business-61519378?at_medium=RSS&at_campaign=KARANGA trend 2022-05-20 07:10:26
ニュース BBC News - Home Patrick Vieira: Crystal Palace boss involved in altercation with pitch invader after Everton defeat https://www.bbc.co.uk/sport/football/61517333?at_medium=RSS&at_campaign=KARANGA Patrick Vieira Crystal Palace boss involved in altercation with pitch invader after Everton defeatCrystal Palace manager Patrick Vieira is involved in an altercation with a supporter during a pitch invasion following the club s dramatic Premier League defeat at Everton 2022-05-20 07:40:07
ニュース BBC News - Home What is monkeypox and how do you catch it? https://www.bbc.co.uk/news/health-45665821?at_medium=RSS&at_campaign=KARANGA cases 2022-05-20 07:24:16
サブカルネタ ラーブロ SOBA HOUSE 金色不如帰 新宿御苑本店 @新宿御苑前この日は、世界で3店目のミ... http://ra-blog.net/modules/rssc/single_feed.php?fid=199268 instagram 2022-05-20 08:39:40
サブカルネタ ラーブロ 博多長浜らーめん 六角堂 堀之内店@八王子市<定番長浜らーめん> http://ra-blog.net/modules/rssc/single_feed.php?fid=199267 京王堀之内駅 2022-05-20 08:24:20
北海道 北海道新聞 東証反発、終値は336円高 前日下げの反動で買い戻し優勢 https://www.hokkaido-np.co.jp/article/683257/ 日経平均株価 2022-05-20 16:04:28
北海道 北海道新聞 誤給付事件で容疑者宅捜索 山口・阿武町 https://www.hokkaido-np.co.jp/article/683245/ 山口県阿武町 2022-05-20 16:02:05
マーケティング MarkeZine チーターデジタル、ロイヤルティマーケティング支援専門チーム発足 齋藤 修氏がチームをけん引 http://markezine.jp/article/detail/39035 齋藤修 2022-05-20 16:30:00
IT 週刊アスキー PS Storeとニンテンドーeショップで『リサーチアンドデストロイ』の無料体験版を配信中! https://weekly.ascii.jp/elem/000/004/092/4092101/ esxsxboxonepcwindowssteam 2022-05-20 16:35:00
IT 週刊アスキー Google、発話障がいに対応する音声認識研究「Project Euphonia」に日本語を新たに追加 https://weekly.ascii.jp/elem/000/004/092/4092099/ google 2022-05-20 16:30:00
IT 週刊アスキー ミニストップの「ソフト」専門店で「いちごミルク」&「カフェラテフ」2種の冷んやりフロート https://weekly.ascii.jp/elem/000/004/092/4092054/ minisof 2022-05-20 16:15:00
IT 週刊アスキー 本日より映画が公開!タクティカルRPG『鋼の錬金術師 MOBILE』公式Twitterで劇場公開記念キャンペーンを開催 https://weekly.ascii.jp/elem/000/004/092/4092096/ mobile 2022-05-20 16:15:00

コメント

このブログの人気の投稿

投稿時間: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件)