投稿時間:2022-06-04 09:30:05 RSSフィード2022-06-04 09:00 分まとめ(39件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… Satechi、「iMac 24インチ」専用設計でSSDも内蔵可能な新型USB-Cドック「USB-C Slim Dock」を海外で発売 https://taisy0.com/2022/06/04/157645.html satechi 2022-06-03 23:53:48
IT 気になる、記になる… 新型「MacBook Air」のカラーラインナップはブルーが追加されて4色に?? https://taisy0.com/2022/06/04/157641.html bloomberg 2022-06-03 23:32:17
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] 「ウェスティンホテル横浜」の開業日が6月13日に決定 設備点検で当初予定から延期に https://www.itmedia.co.jp/business/articles/2206/04/news029.html itmedia 2022-06-04 08:30:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] タブレット端末出荷台数、シェア2位は「NECレノボ」 1位は? https://www.itmedia.co.jp/business/articles/2206/03/news112.html itmedia 2022-06-04 08:26:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] 週休3日制 給与と労働時間どちらを優先? お金に関する意識調査 https://www.itmedia.co.jp/business/articles/2206/03/news199.html itmedia 2022-06-04 08:22:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] 群馬県にグランピング施設が誕生 客室の特徴は? https://www.itmedia.co.jp/business/articles/2206/04/news045.html itmedia 2022-06-04 08:05:00
IT ITmedia 総合記事一覧 [ITmedia PC USER] RTX 3080が10万円台! RTX 3090が8万円引きで買える週末 https://www.itmedia.co.jp/pcuser/articles/2206/04/news044.html itmediapcuserrtx 2022-06-04 08:01:00
AWS AWS Why am I being charged for AWS KMS keys? https://www.youtube.com/watch?v=Lz19JEbnCes Why am I being charged for AWS KMS keys For more details see the Knowledge Center article with this video Hassan shows you why you are being charged for AWS KMS keys Start Opening Notes Demo Start Demo End Ending Notes EndingSubscribe More AWS videos More AWS events videos ABOUT AWSAmazon Web Services AWS is the world s most comprehensive and broadly adopted cloud platform offering over fully featured services from data centers globally Millions of customers ーincluding the fastest growing startups largest enterprises and leading government agencies ーare using AWS to lower costs become more agile and innovate faster AWS AmazonWebServices CloudComputing 2022-06-03 23:39:22
AWS AWSタグが付けられた新着投稿 - Qiita Terraform でAWS 環境にDockle + git-secrets を組み込んだCIを構築する https://qiita.com/okubot55/items/6cb2dccdd00dfb0b3335 docklegitsecrets 2022-06-04 08:55:36
海外TECH Ars Technica Critical Atlassian 0-day is under active exploit. You’re patched, right? https://arstechnica.com/?p=1858307 atlassian 2022-06-03 23:41:13
海外TECH DEV Community Simple REST API Android App in Kotlin - Various HTTP Client Library Implementations https://dev.to/vtsen/simple-rest-api-android-app-in-kotlin-various-http-client-library-implementations-11i2 Simple REST API Android App in Kotlin Various HTTP Client Library ImplementationsHow to use Retrofit Moshi Gson Kotlin Serialization and Ktor client libraries to connect the REST API web service in Android app This article was originally published at vtsen hashnode dev on May I created this simple Android App written in Kotlin and Jetpack Compose to help me to understand different ways to connect to REST API web service using different HTTP Client libraries I also tried to measure the memory and performance of using these libraries This is the REST API Meals Categories from TheMealDB the app tries to retrieve It returns in JSON format The app is implemented with MVVM but the following only highlights the steps you need to do to build these HTTP client libraries If you want to know the details please refer to the source code provided at the end of this article Retrofit MoshiThis is the first method I learned while creating this Asteroid Rader App in one of my Android Kotlin Developer Nanodegree Projects Retrofit is the HTTP client library to connect to REST API web service Moshi is the library to parse JSON response into Kotlin data object Import Retrofit Moshi Converter Librariesdef retrofit version implementation com squareup retrofit retrofit retrofit version implementation com squareup retrofit converter moshi retrofit version def moshi version implementation com squareup moshi moshi moshi version implementation com squareup moshi moshi kotlin moshi version Create Data Class for Moshidata class MoshiMealCategoriesResponse val categories List lt MoshiMealCategory gt data class MoshiMealCategory Json name idCategory val idCategory String val strCategory String val strCategoryDescription String val strCategoryThumb String Json is Moshi annotation and only is needed if your val name is different from the JSON string Define Retrofit Moshi API Interfaceinterface RetrofitMoshiMealsApi GET categories php suspend fun getMealCategories MoshiMealCategoriesResponse Build Retrofit Moshi APIclass RetrofitMoshiMealsWebService private val api RetrofitMoshiMealsApi by lazy createMealsApi suspend fun getMealCategories MoshiMealCategoriesResponse return api getMealCategories private fun createMealsApi RetrofitMoshiMealsApi val moshi Moshi Builder add KotlinJsonAdapterFactory build val retrofit Retrofit Builder baseUrl MainRepository BASE URL addConverterFactory MoshiConverterFactory create moshi build return retrofit create RetrofitMoshiMealsApi class java Retrofit GsonSimilar to Moshi Gson is an open source Java library to serialize and deserialize JSON to Kotlin data objects Since Moshi import has already shown above I m not going to show here again Import Gson Converter Libraryimplementation com squareup retrofit converter gson retrofit version Create Data Class for Gsondata class GsonMealCategoriesResponse val categories List lt GsonMealCategory gt data class GsonMealCategory SerializedName idCategory val idCategory String val strCategory String val strCategoryDescription String val strCategoryThumb String SerializedName is Gson annotation which is similar to Json in Moshi annotation if your JSON string is different from the val name Technically I can share the same data class for all these different JSON parser implementation but I think it is cleaner to separate as it requires different annotations for different parser libraries Define Retrofit Gson API Interfaceinterface RetrofitGsonMealsApi GET categories php suspend fun getMealCategories GsonMealCategoriesResponse Build Retrofit Gson APIclass RetrofitGsonMealsWebService private val api RetrofitGsonMealsApi by lazy createMealsApi suspend fun getMealCategories GsonMealCategoriesResponse return api getMealCategories private fun createMealsApi RetrofitGsonMealsApi val gsonConverterFactory GsonConverterFactory create val retrofit Retrofit Builder baseUrl MainRepository BASE URL addConverterFactory gsonConverterFactory build return retrofit create RetrofitGsonMealsApi class java Retrofit Kotlin SerializationSimilar to Moshi and Gson Kotlin Serialization is an official Kotlin library which can be used to serialize and deserialize JSON to Kotlin data objects One of the recommendations I got in the Android Kotlin Developer NonoDegree is to use Kotlin Serialization The memory and performance are better because it doesn t use reflection Add Kotlin Serialization PluginAdd this in app build gradleplugins import project id org jetbrains kotlin plugin serialization version kotlin version Make sure you update the build gradle at the app level and not at the project level If you see this warning below it is likely you update the wrong build gradle file i e project level Warning kotlinx serialization compiler plugin is not applied to the module so this annotation would not be processed Make sure that you ve setup your buildscript correctly and re import project It took me a while to figure out I updated wrong build gradle It compiled fine but failed at run time Don t make the same mistake I did Import Kotlin Serialization Libraryimplementation org jetbrains kotlinx kotlinx serialization json Import Kotlin Serialization Converter okhttp LibrariesThere is no official Kotlin Serialization Converter for Retrofit from squareup and we re using the one from Jake Wharton implementation com jakewharton retrofit retrofit kotlinx serialization converter implementation com squareup okhttp okhttp okhttp is required for application json toMediaType usage see below Create Data Class for Kotlin Serialization Serializable data class KotlinSerdesMealCategoriesResponse val categories List lt KotlinSerdesMealCategory gt Serializable data class KotlinSerdesMealCategory SerialName idCategory val idCategory String val strCategory String val strCategoryDescription String val strCategoryThumb String Similar to Json Moshi and SerializedName Gson SerialName is used for Kotlin Serialization Please note that you need to annotate the class with Serializable in order to use the Kotlin Serialization Define Retrofit Kotlin Serialization API Interfaceinterface RetrofitKotlinSerdesMealsApi GET categories php suspend fun getMealCategories KotlinSerdesMealCategoriesResponse Build Retrofit Kotlin Serializationclass RetrofitKotlinSerdesMealsWebService private val api RetrofitKotlinSerdesMealsApi by lazy createMealsApi suspend fun getMealCategories KotlinSerdesMealCategoriesResponse return api getMealCategories OptIn ExperimentalSerializationApi class private fun createMealsApi RetrofitKotlinSerdesMealsApi val contentType application json toMediaType val retrofit Retrofit Builder baseUrl MainRepository BASE URL addConverterFactory Json asConverterFactory contentType build return retrofit create RetrofitKotlinSerdesMealsApi class java Please note that you need to add OptIn ExperimentalSerializationApi class in order to use the converter library You also need to add the opt in compiler argument in your build gradle module level file android tasks withType org jetbrains kotlin gradle tasks KotlinCompile configureEach kotlinOptions freeCompilerArgs Xopt in kotlin RequiresOptIn Ktor Client Kotlin SerializationKtor client is a multiplatform HTTP client library Import Ktor Client with Kotlin Serialization Librariesdef ktor version implementation io ktor ktor client core ktor version implementation io ktor ktor client cio ktor version implementation io ktor ktor client serialization ktor version Create Ktor Client and Implement API InterfaceThe data class is exactly the same with the Kotlin Serialization data class above So I m not going to show here again To use Ktor Client we don t really need to define the interface as required by Moshi You can just call ktorHttpClient get URL here API directly class KtorKotlinSerdesMealsWebService private val ktorHttpClient HttpClient install JsonFeature serializer KotlinxSerializer suspend fun getMealCategories KotlinSerdesMealCategoriesResponse return ktorHttpClient get MainRepository BASE URL categories php Memory and PerformanceI added this Enable Performance Test check box to the main screen When it is checked it will call the API times for performance testing I ran some memory and performance tests and here are the results I ran a couple of times and took the average I also restarted the app to run HTTLP client library independently so the results won t be overlapped HTTP Client LibraryMemory UsagePerformanceRetrofit Moshi M bytes secondsRetrofit Gson M bytes secondsRetrofit Kotlin Serialization M bytes secondsKtor Client Kotlin Serialization M bytes secondsMemory and performance for Retrofit Gson and Retrofit Kotlin Serialization are similar Retofit Moshi uses slightly more memory with similar performance but it could be just false positive But what happen to Ktor Cilent Ktor Client s performance is around x slower ConclusionBefore I ran the memory and performance I had an impression Ktor Client Kotlin Serialization must be the best option but it turned out to be worst Maybe it is because of multiplatform overhead Also the claim for Kotlin Serialization use less memory and faster is probably not true It is about the same as Moshi and Gson or I did not run the test right It is very obvious the choice is Retrofit Personally I will probably choose Moshi over Gson because Moshi is a newer library than GsonMoshi over Kotlin Serialization because Retrofit Kotlin Serialization Converter is NOT an official library not part of the squareup libraries Given this little research that I have done my go to is Retrofit Moshi Source CodeGitHub Repository Demo SimpleRestAPI See AlsoAndroid Development Tips and Tricks 2022-06-03 23:32:07
海外TECH DEV Community Daily.dev, an article feed service developers need https://dev.to/drift_dev/dailydev-an-article-feed-service-developers-need-2904 Daily dev an article feed service developers needI ve been using daily dev for quite a while now it is an amazing news article feed service for software developers or every tech worker to keep up what s happening in the tech world and recommending cool apps The UI of daily dev is straight forward with a nav bar on the left side Here you can choose to only show your feed or filter categories including the most popular articles most upvoted and best discussions There s also bookmarks and reading history My personal favorite feature on daily dev is the DevCard It s a cool graphic card shows multiply status of your activities and achivement during the time you spend on daily dev The system will generate a embed lt a href gt link for you to added to your portfolio or github readme page which is pretty neat Another cool feature from daily dev is that you can added it to your chrome homepage through an extension It has a star rating on chrome app store and it s been used by users I had it on my browser for the last few month although I enjoy been able to always have stuff to checkout but did feel bombarded with full screens of information it s rather distracting Overall daily dev is an awesome tool for but personally I recommend using as a dialy news feed but not to use the extension and been slaped with news every single time you open a new tab Happy coding 2022-06-03 23:30:00
金融 金融総合:経済レポート一覧 内外経済とマーケットの注目点(2022/6/3)~FRBの金融引き締め観測が続き、中国の景気回復は遅れる可能性も:金融・証券市場・資金調達 http://www3.keizaireport.com/report.php/RID/498348/?rss 大和総研 2022-06-04 00:00:00
金融 金融総合:経済レポート一覧 FX Daily(6月2日)~ドル円、129円台後半に下落 http://www3.keizaireport.com/report.php/RID/498349/?rss fxdaily 2022-06-04 00:00:00
金融 金融総合:経済レポート一覧 日経平均採用銘柄のうちPBR1割れは半数超 望ましい自社株買い:Market Flash http://www3.keizaireport.com/report.php/RID/498350/?rss marketflash 2022-06-04 00:00:00
金融 金融総合:経済レポート一覧 次期制度改正に向けた動き:ニッセイ年金ストラテジー http://www3.keizaireport.com/report.php/RID/498353/?rss 研究所 2022-06-04 00:00:00
金融 金融総合:経済レポート一覧 公的年金への信頼が低いと早く引退してお金は貯めない:ニッセイ年金ストラテジー http://www3.keizaireport.com/report.php/RID/498354/?rss 公的年金 2022-06-04 00:00:00
金融 金融総合:経済レポート一覧 日本のバリュー株に「本当の値打ちがある」のか:ニッセイ年金ストラテジー http://www3.keizaireport.com/report.php/RID/498355/?rss 研究所 2022-06-04 00:00:00
金融 金融総合:経済レポート一覧 「不動産取引サイクル」でみる不動産投資市場の動向:ニッセイ年金ストラテジー http://www3.keizaireport.com/report.php/RID/498356/?rss 不動産投資 2022-06-04 00:00:00
金融 金融総合:経済レポート一覧 ポスト・コロナを見据えた「脱炭素」の実現に向けて(3)~「地域脱炭素」の推進に向けた信用金庫への期待:産業企業情報 http://www3.keizaireport.com/report.php/RID/498370/?rss 中小企業 2022-06-04 00:00:00
金融 金融総合:経済レポート一覧 大和証券株式会社のNPSをドライバーとした営業改革:ニュース&トピックス http://www3.keizaireport.com/report.php/RID/498371/?rss 中小企業 2022-06-04 00:00:00
金融 金融総合:経済レポート一覧 J-REIT市場 現状と今後の見通し(2022年6月号)~2022年5月の東証REIT指数は、前月末比+1.53%の2,006.03ポイントで引けました。 http://www3.keizaireport.com/report.php/RID/498380/?rss jreit 2022-06-04 00:00:00
金融 金融総合:経済レポート一覧 マーケットフォーカス(欧州市場)2022年6月号~株式市場は売りが先行... http://www3.keizaireport.com/report.php/RID/498381/?rss 三井住友トラスト 2022-06-04 00:00:00
金融 金融総合:経済レポート一覧 DeFi(分散型金融)の拡大と指摘される金融リスク:リサーチ・フォーカス No.2022-009 http://www3.keizaireport.com/report.php/RID/498383/?rss 日本総合研究所 2022-06-04 00:00:00
金融 金融総合:経済レポート一覧 投信指数 MAB-FPIパフォーマンス・サマリーVol1 2022年6月号(2022年5月末基準) ファンド大分類編 http://www3.keizaireport.com/report.php/RID/498386/?rss mabfpi 2022-06-04 00:00:00
金融 金融総合:経済レポート一覧 投信指数 MAB-FPIパフォーマンス・サマリーVol2 2022年6月号(2022年5月末基準) ファンド分類詳細編 http://www3.keizaireport.com/report.php/RID/498387/?rss mabfpi 2022-06-04 00:00:00
金融 金融総合:経済レポート一覧 【石黒英之のMarket Navi】景気後退局面前後で米国株はどう動く?~景気後退入り後は株価は上昇傾向... http://www3.keizaireport.com/report.php/RID/498392/?rss marketnavi 2022-06-04 00:00:00
金融 金融総合:経済レポート一覧 マーケットフォーカス(米国市場)2022年6月号~NYダウは、月間では概ね横ばい推移... http://www3.keizaireport.com/report.php/RID/498393/?rss 三井住友トラスト 2022-06-04 00:00:00
金融 金融総合:経済レポート一覧 投資INSIDE-OUT vol.198「投資対象として注目される「アート市場」~経済キーワード(13)~」 http://www3.keizaireport.com/report.php/RID/498394/?rss insideoutvol 2022-06-04 00:00:00
金融 金融総合:経済レポート一覧 海外のステーブルコインのユースケース及び関連規制分析に関する調査 報告書 http://www3.keizaireport.com/report.php/RID/498396/?rss 調査報告書 2022-06-04 00:00:00
金融 金融総合:経済レポート一覧 地域銀行の令和4年3月期決算の概要~2022年3月期の当期純利益は、前年同期に比べ、20.6%の増益。 http://www3.keizaireport.com/report.php/RID/498402/?rss 前年同期 2022-06-04 00:00:00
金融 金融総合:経済レポート一覧 AHCグループ(東証グロース)~障害者向けの福祉事業を中心に介護事業や外食事業を展開。22年11月期は新型コロナウイルス禍の影響からの回復で営業黒字を目指す:アナリストレポート http://www3.keizaireport.com/report.php/RID/498409/?rss 介護事業 2022-06-04 00:00:00
金融 金融総合:経済レポート一覧 【注目検索キーワード】分散型金融 http://search.keizaireport.com/search.php/-/keyword=分散型金融/?rss 検索キーワード 2022-06-04 00:00:00
金融 金融総合:経済レポート一覧 【お薦め書籍】世界2.0 メタバースの歩き方と創り方 https://www.amazon.co.jp/exec/obidos/ASIN/4344039548/keizaireport-22/ 宇宙開発 2022-06-04 00:00:00
ニュース BBC News - Home DR Congo: 'My life has changed thanks to coffee' https://www.bbc.co.uk/news/world-africa-61269602?at_medium=RSS&at_campaign=KARANGA fighters 2022-06-03 23:07:30
ニュース BBC News - Home Nilambur Ayisha: The Muslim actor who survived a bullet on stage https://www.bbc.co.uk/news/world-asia-india-61679980?at_medium=RSS&at_campaign=KARANGA shouldn 2022-06-03 23:06:32
ニュース BBC News - Home From jelly to hummus: a history of street party food https://www.bbc.co.uk/news/uk-61636665?at_medium=RSS&at_campaign=KARANGA parties 2022-06-03 23:25:23
ニュース BBC News - Home Platinum Jubilee: The royal superfan with 13,000 bits of memorabilia https://www.bbc.co.uk/news/uk-england-london-61659712?at_medium=RSS&at_campaign=KARANGA souvenirs 2022-06-03 23:10:01
ビジネス 東洋経済オンライン 迫る参院選で「優勢」の岸田自民党、実は死角だらけ コロナ対策や景気対策、防衛費増額など難題山積 | 国内政治 | 東洋経済オンライン https://toyokeizai.net/articles/-/594372?utm_source=rss&utm_medium=http&utm_campaign=link_back 国内政治 2022-06-04 08:30:00

コメント

このブログの人気の投稿

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

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

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)