投稿時間:2021-12-30 20:29:19 RSSフィード2021-12-30 20:00 分まとめ(30件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
TECH Engadget Japanese 歌える来果が、話せるようにもなるために。「来果A.I.VOICE Junior化プロジェクト」 https://japanese.engadget.com/likea-ai-voice-junior-103535289.html そこで、皆さんと一緒に来果が表現できる世界を広げるべく、真っ先に思いついたのは「話すこと」でした。 2021-12-30 10:35:35
TECH Engadget Japanese 将来版Apple Watchのクラウンは光学センサー化、より頑丈で機能も多彩に? 新特許出願 https://japanese.engadget.com/aplewatch-without-digital-crown-patent-100549265.html applewatch 2021-12-30 10:05:49
python Pythonタグが付けられた新着投稿 - Qiita blackで始める妥協のないPythonコードフォーマッティング https://qiita.com/84zume/items/ac969931b5f08fef0841 これでOKコードフォーマット自体の設定が無いので、ここから自分に合うようなカスタマイズをする必要はもちろんありません。 2021-12-30 19:25:39
python Pythonタグが付けられた新着投稿 - Qiita 【Project Euler】Problem 94: 正三角形に近いヘロンの三角形 https://qiita.com/masa0599/items/d83b1744ceadf23ea91d 今回は「【ProjectEuler】Problemディオファントス方程式」の中の「ペル方程式の解を平方根の連分数展開から求める」でやったように平方根の連分数から求める方法で作ったコードをもとにして作って行きます。 2021-12-30 19:07:48
js JavaScriptタグが付けられた新着投稿 - Qiita C++の非同期ライブラリを作る(JavascriptライクなPromiseとRxCppの代替) https://qiita.com/terukazu/items/b2f23ffd8f2de1c9f951 anotherrxcppRxCppで生成されるシンボルが巨大過ぎてデバッガが死ぬという原因は、間違いなくテンプレートパラメータの第引数以降にある主に上流のソースobservableの型と考え、上流の型を関数オブジェクトでくるんでしまう手法で実装してみました。 2021-12-30 19:35:42
js JavaScriptタグが付けられた新着投稿 - Qiita JavaScript while文とfor文について(初学者向け) https://qiita.com/saraarai5454/items/75e2edcb9ad7f17b32d4 又、for文と同じでより大きい値が出力されていませんので、正しくwhile文の条件式を処理し終了したことがわかります。 2021-12-30 19:30:59
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Glutch というサイトの使い方 https://teratail.com/questions/376118?rss=all glutch 2021-12-30 19:58:11
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Why Python? https://teratail.com/questions/376117?rss=all 2021-12-30 19:53:24
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) ajaxでレコードを新規追加できなくなった https://teratail.com/questions/376116?rss=all ajaxでレコードを新規追加できなくなったyoutube動画のタイトルやurl等を同画面のモーダルで登録し、テーブルに一覧表示したものから選択すると、テーブル下にビデオフレームが表示されて閲覧できるアプリを作成しています。 2021-12-30 19:49:07
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Custom URL Shchemeでアプリにリダイレクトされた際に、ルートのビューを再描画したい https://teratail.com/questions/376115?rss=all CustomURLShchemeでアプリにリダイレクトされた際に、ルートのビューを再描画したい前提現在、SwiftnbspNodejsnbspFirebaseを利用して、MacOS用メニューバーアプリを開発しており、Authの判定に関しての質問です。 2021-12-30 19:39:59
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 管理画面利用者の情報とアプリ利用者の情報を同じテーブルへ格納することについて https://teratail.com/questions/376114?rss=all 管理画面利用者の情報とアプリ利用者の情報を同じテーブルへ格納することについてDjangoを用いた会員制のWEBアプリケーションの開発を行う際のUserモデルの取り扱いに疑問があり質問させて頂きました。 2021-12-30 19:20:31
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Input.GetAxisRawの挙動がおかしい https://teratail.com/questions/376113?rss=all InputGetAxisRawの挙動がおかしいUnityのDゲームで、プレイヤーを左右移動させるために以下のスクリプトを作ったのですが、時々、キーボードを離してもプレイヤーがそのまま動き続けてしまうことがあります。 2021-12-30 19:16:40
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 円周上に要素を配置したい、配置はできたが傾いているのでバランスを整えたい https://teratail.com/questions/376112?rss=all 円周上に要素を配置したい、配置はできたが傾いているのでバランスを整えたいefbcbddbbfafcpngプログラム初心者です。 2021-12-30 19:12:37
golang Goタグが付けられた新着投稿 - Qiita Goのリリースアセットの配置を自動化したい https://qiita.com/tingtt/items/c775750ec0ea59d17d2d パッケージを作成するときの必要なファイルをコピーする部分だけ各々書き換えて貰えれば使えると思うので参考にしてもらえれば嬉しいです。 2021-12-30 19:53:52
golang Goタグが付けられた新着投稿 - Qiita [Go] slack-go/slackによるメッセージ一括削除 https://qiita.com/DaikichiDaze/items/97a1228579ce1df7a2d8 躓いたポイントslackgoslackのドキュメントには、各メソッドの説明がほぼないverなので仕方ない点ではありますが、今回用いた各メソッドの説明は最低限のみでしたそれぞれの引数の意味を知るためには、公式SlackAPIドキュメントから、slackgoslackが呼ぶ先のAPI仕様を確認する必要がりましたGetConversationHistoryParametersメソッドの上限は件より大きい数値を実行すると、デフォルトの件に戻されます以上となります。 2021-12-30 19:13:44
Azure Azureタグが付けられた新着投稿 - Qiita Azure FunctionsのDurable Functions/Entity と戯れる https://qiita.com/krdhrk/items/169dcdc5b5284af3b62f カウンターアプリの実装DurableEntityにカウントを保持させ、それをHttpTriggerからGETしたりカウントアップ・ダウンできるようなアプリを作ります。 2021-12-30 19:22:14
Ruby Railsタグが付けられた新着投稿 - Qiita Heroku(PostgreSQL)のDBリセット方法 https://qiita.com/kat_log/items/2394ec51cbd6345b1c3e HerokuPostgreSQLのDBリセット方法はじめにプログラミング初学者のkatlogと申します。 2021-12-30 19:33:19
海外TECH DEV Community A 2021 Reflection Journal: My Tech Writing Journey, Learning, and More https://dev.to/balapriya/a-2021-reflection-journal-my-tech-writing-journey-learning-and-more-36dg A Reflection Journal My Tech Writing Journey Learning and MoreWith the COVID pandemic bringing about a paradigm shift to virtual a lot of us got to explore and unleash new opportunitiesーdespite all the odds I got into technical content writing roughly a year ago And has helped me etch a good growth curve in writing Getting started with writingIn late I had started writing tech tutorials on Medium All my tutorials were summaries of what I was learning back then So writing those posts really helped me fill my gaps in understanding and the feedback from the readers motivated me to keep going However as Medium was a paid platform with articles on all things life work and beyondーI was looking to start writing on a free platform where I d also get to read more developer focused contentーand get inspired by experienced developers In November I joined the writing team at OpenMined an open source organization working in the realm of Privacy Preserving AI There I started learning more about the privacy principles guiding ML and the like I also started summarizing talks from their Privacy Conference in the form of blog posts for the community Thus ended To new beginnings Hello Leading the writing team at OpenMinedIn January I got the opportunity to lead the writing team at OpenMined Leading a team of over writers from over time zonesーwas a challenging yet rewarding experience I led the writing team for a over months from January through June During this period I coordinated efforts to ensure consistent content on the OpenMined blog that members of the community could learn from And I continued to write a few posts as well If you re interested in reading my posts on privacy and privacy preserving AI I ve linked to my author profile here Joining DEV communityI had also started writing on dev to in early I liked the fact that I could now read a lot of well written tutorials on a wide variety of tech stacks and loved how DEV community is run by the devs for the devs I spent my first few weeks reading more and writing less I found features like creating a series being able to include the canonical URL writing in Markdown and the fact that all of the content was accessible for free super cool And I continued writing I was following writers like Chris Bongers dailydevtips and could only get inspired more Writing for freeCodeCampI was trying to code my way through freeCodeCamp s Responsive Web Design curriculum when I got to know that I can apply to become a writer for freeCodeCamp s publication I was super happy when Abbey Abigail Rennemeyer who is the managing editor onboarded me as a contributor shortly after From June to November I wrote around tutorialsーpredominantly covering topics in core Python You can find all posts that I ve written for freeCodeCamp in my author profile And according to stats from Google Analytics readers spend hours every month reading my beginner friendly tutorials Joining AI Time Journal as an associate editorI came across another interesting volunteering opportunity at the AI Time Journal while scrolling through my LinkedIn feed It was regarding an associate editor role with their team As an associate editor I had the opportunity to interview guestsーwho were all thought leaders and experts in data science and subsequently publish interview posts featuring them The guests that I got to interview include startup founders in the data driven decision making and privacy space and engineering and program managers at Google Meta then Facebook and the like In case you re interested in data science you can find all the interviews in this link A much needed breakAs a grad student who was and still is trying hard to get past the finish line I had a burnout And I decided to stay off the social media radar for a few weeksーdeleting a couple of accounts permanently and checking even school emails sparingly This much needed break indeed helped me get back on track and regain the lost momentum Ending on a high noteDuring one of the conversations atapas Tapas Adhikary ーone of the best content creators we haveーhad suggested that I should also consider writing on Hashnode for there s a vibrant and supportive community around it And I had made my decision at once Inspired by great and consistent writers like Tapas and Chris I decided to join Hashnode It has been a little over a week and I love the community already And I certainly look forward to a great experience I m super thankful to wonderful communities like OpenMined freeCodeCamp dev to and Hashnode for having me in This year has indeed been a great year The road ahead Though I m happy with my progress there s a lot of scope for improvement and there s a lot I could have done better But I m going to be easy on me and try to get them all right in the coming year I d like to code and write more consistently on Hashnode and dev to complete the DaysofCode challenge and help others in their coding journey And many congratulations to each of you for staying courageous and pulling through another difficult year Do take a moment to reflect on your journey and be thankful for how far you ve come For they say The more thankful you are for what you haveーthe more you ll have to be thankful for Thanks again for reading and have a great year ahead 2021-12-30 10:49:40
海外TECH DEV Community First Mocked Unit Test Generated by DDTJ - Building DDTJ Day 9 https://dev.to/codenameone/first-mocked-unit-test-generated-by-ddtj-building-ddtj-day-9-36lo First Mocked Unit Test Generated by DDTJ Building DDTJ Day Yesterday I ran into some snags but I m glad to report that this is all behind me We finally have the first DDT generated test in history I d like to proclaim victory but the road ahead is still long and the result is “underwhelming at this point We have generated code but it still doesn t compile right away and at least for POJOs it doesn t inject the mocks although it creates them I think those are surmountable problems that we can solve moving forward But I m running a bit ahead Let s talk about what s happening with the code right now…Or at least in the current PR that s still waiting for more test coverage Right now I m running a super trivial application public class BasicApp private BasicDependency dependency new BasicDependency public static void main String args throws InterruptedException new BasicApp run public void run throws InterruptedException System out println This is the first testable method System out println dependency otherMethod This prints three Which invokes public class BasicDependency public String otherMethod String key int counter throws InterruptedException System out println otherMethod return key counter To generate a test for this I used the following process Run the Backend ServerThe server process collects the execution data from the app java jar target Backend SNAPSHOT jar Run the AppThe next stage is getting the server to run debug the application This replaces the standard java command line with something like this java jar target CLI SNAPSHOT shaded jar run dev ddtj backend testdata BasicApp classpath Backend target test classesNotice this command is asynchronous since it runs in the backend server context Find and Generate the TestFirst we need to list the classes on which we have instrumentation java jar target CLI SNAPSHOT shaded jar cWhich prints out Class Name Method Count Execution Count dev ddtj backend testdata BasicDependency dev ddtj backend testdata BasicApp Next we need to see the methods we can test in a specific class java jar target CLI SNAPSHOT shaded jar m dev ddtj backend testdata BasicAppWhich prints out Method Name Total Execution main Ljava lang String V run V Now we need to find the tests available When we have one test it seems redundant but it makes sense when we have more java jar target CLI SNAPSHOT shaded jar t dev ddtj backend testdata BasicApp run V Prints out Test ID Test Hour of the Day JuZlJXERAKXZQRCpYgiA Thu Dec IST We can now generate a test based on these results java jar target CLI SNAPSHOT shaded jar g dev ddtj backend testdata BasicApp run V JuZlJXERAKXZQRCpYgiA Which prints out Generated by lt a href gt ddtj lt a gt package dev ddtj backend testdata test import org junit jupiter api Test import org junit jupiter api extension ExtendWith import org mockito Mock import org mockito Mockito import org mockito junit jupiter MockitoExtension import dev ddtj backend testdata BasicApp import dev ddtj backend testdata BasicDependency ExtendWith MockitoExtension class class BasicAppTests Test void runTest BasicDependency BasicDependencyMock Mockito mock BasicDependency class Mockito lenient when BasicDependencyMock otherMethod This prints three thenReturn This prints three BasicApp myObjectInstance new BasicApp myObjectInstance run What Isn t Working There are several problems in the code above First we don t detect checked exceptions so this code won t compile As a short term workaround I m adding a “throws Exception to the test method This ensures it compiles properly and fails as expected The bigger problem is that the mock isn t properly bound I expected this since I didn t write the code for that and also there s technically no way to bind that mock I hope this will work more reasonably when testing on “real world code The code doesn t use the Mock or InjectMocks annotations I think that s something that I can improve on I d like to have multiple styles of test generation to support various personal tastes Since the mock isn t invoked the test would fail on that but I added the lenient call as a short term workaround so we can move forward What s Working I m so pleased it generated the mock code correctly and implemented the mock Object creation and dependencies included a lot of hairy code but it s coming together now and I think the basis is very good I m very pleased with the data collection code and the basic architecture Now the key challenge is fine tuning and scaling this so it works correctly for more “real world workloads I think I ll go into greater details on this in my postmortem blog post next week I think I need to give this some time to see how everything fits together TomorrowRight now I have two big challenges ahead of me Merge the PR this will be hard especially testing all this code I wroteScale and improve to use casesAt this stage I m pretty happy that I accomplished the basic goal But I want to build a proper MVP so I hope I can get a real world application running I think blue sky initiatives like a web interface would have to wait until after this stage If you want to keep up with the latest updates on this series and the many other things I work on then follow me on twitter 2021-12-30 10:48:27
海外TECH DEV Community Guess The Die : Javascript Game https://dev.to/fidalmathew/guess-the-die-javascript-game-3g8j Guess The Die Javascript GameHi guys hope you are doing good In this post we are going to make a game using Javascript The game involves the following functionalities The user has to guess a number on the die while it gets rolled in a span of secs If the guess is right then the score will be incremented by one There is a second wait countdown between rolls during which we have to guess the number on the die When the user select his her guess the roll happens immediately and the result is displayed If the seconds on the roll expires it simply resets and there is no impact to the score First let us look at the HTML structure Index html lt DOCTYPE html gt lt html lang en gt lt head gt lt meta charset UTF gt lt meta http equiv X UA Compatible content IE edge gt lt meta name viewport content width device width initial scale gt lt title gt Roll the Dice Game lt title gt lt link rel stylesheet href css style css gt lt link href wght amp display swap rel stylesheet gt lt head gt lt body gt lt div class container gt lt h gt ROLL THE DICE lt h gt lt div class info gt lt div gt lt div style display inline block gt Selected lt br gt variable lt div gt lt span id SV gt lt span gt lt div gt lt div class image dice gt lt img id dice src img load gif alt gt lt div gt lt div gt Score lt span id CV gt lt span gt lt div gt lt div gt lt div class number gt lt button gt lt button gt lt button gt lt button gt lt button gt lt button gt lt button gt lt button gt lt button gt lt button gt lt button gt lt button gt lt div gt lt div id report gt lt div gt lt div id h gt Dice will change in lt span id timeS gt lt span gt seconds lt div gt lt div id result gt lt div gt lt div gt lt script src index js gt lt script gt lt body gt lt html gt And here s the index js Index js use strict let score let randomVar let buttonVal document getElementsByTagName button let result document getElementById result let report document getElementById report let timeS document getElementById timeS let dice document getElementById dice const Clicked e gt let selectVar e target innerText dice src img randomVar png To change the dice picture document getElementById SV innerHTML selectVar if randomVar selectVar result style color CEBE result innerHTML Guess was right score document getElementById CV innerHTML score else result style color FFDE result innerHTML Guess was wrong Array from buttonVal forEach element gt element disabled true element classList toggle disabled const load gt report innerHTML loading game will start in a few seconds document getElementById h style display none document getElementById result style display none Array from buttonVal forEach element gt element addEventListener click Clicked added event click element disabled false element classList add disabled setTimeout gt document getElementById report style display none document getElementById h style display block document getElementById result style display block const DisplayTime gt let timesecond setInterval gt timeS innerHTML timesecond timesecond if timesecond timesecond const addNewRandom gt setInterval gt randomVar Math floor Math random dice src img load gif dice style width result innerHTML document getElementById SV innerHTML Array from buttonVal forEach element gt element disabled false element classList remove disabled window onload gt load DisplayTime addNewRandom Game DescriptionBefore moving to Javascript part do take a look at index html and game UI It will help you understand the game better DeclarationDeclare all necessary variables in index jslet score let randomVar to select a random value from to let buttonVal document getElementsByTagName button let result document getElementById result let report document getElementById report let timeS document getElementById timeS let dice document getElementById dice The game mainly comprises sections we call these functions after the browser window loadswindow onload gt load DisplayTime addNewRandom Load The load function involves Setting up report element loading game will start in a few seconds Setting display of id “h and “result as none Add event listener to all the buttons numbers element addEventListener click Clicked and add class “disabled which disables pointer events I will tell you about Clicked later on in the tutorial disabled background color gray pointer events none disabled hover background color gray color white Add a set timeout of secs after which “report is not displayed meanwhile “h amp “result are displayed DisplayTime DisplayTime function is used to Display time which is denoted by timeS innerHTML timesecond Timesecond value is updated each sec using setInterval addNewRandom addNewRandom function consists of a set interval of secs It sets a new random value to randomVal between and randomVar Math floor Math random After updating randomVar we remove class disabled from each of the keys buttons Clicked Last but not least let s look at Clicked function It s functionalites include Set the picture of die depending on randomVar Compare the selected button and randomVar and display the result and score accordingly Source Code Note Some additional features have been added to the gameThank you all for reading have a great day Connect with me on TwitterGithubLinkedin 2021-12-30 10:22:32
海外科学 NYT > Science J. & J. Booster Protects Against Severe Omicron, Study Says https://www.nytimes.com/2021/12/30/health/johnson-vaccine-booster-omicron.html clinical 2021-12-30 10:45:18
ニュース BBC News - Home Ashraf Ghani: Ex-Afghan president describes moment he fled the Taliban https://www.bbc.co.uk/news/world-asia-59807737?at_medium=RSS&at_campaign=KARANGA taliban 2021-12-30 10:02:29
ニュース BBC News - Home Africa Cup of Nations coverage 'tinged with racism' - Wright https://www.bbc.co.uk/sport/football/59825904?at_medium=RSS&at_campaign=KARANGA wright 2021-12-30 10:27:57
ニュース BBC News - Home MMA fights we want to see in 2022 https://www.bbc.co.uk/sport/mixed-martial-arts/59756889?at_medium=RSS&at_campaign=KARANGA cyborg 2021-12-30 10:40:04
ニュース BBC News - Home Chelsea announce annual losses of £145m https://www.bbc.co.uk/sport/football/59827141?at_medium=RSS&at_campaign=KARANGA annual 2021-12-30 10:20:25
北海道 北海道新聞 オミクロン22都府県に拡大 都市部で市中感染相次ぐ https://www.hokkaido-np.co.jp/article/628967/ 新型コロナウイルス 2021-12-30 19:12:00
北海道 北海道新聞 香港、民主派メディア幹部ら起訴 扇動出版罪で初公判 https://www.hokkaido-np.co.jp/article/628966/ 香港 2021-12-30 19:03:00
北海道 北海道新聞 中国AIの商湯集団、香港上場 SBG出資、米制裁対象 https://www.hokkaido-np.co.jp/article/628965/ 制裁対象 2021-12-30 19:03:00
北海道 北海道新聞 東京円、115円20銭 1年で12円余り円安進行 https://www.hokkaido-np.co.jp/article/628964/ 円安進行 2021-12-30 19:03:00
海外TECH reddit 12月31日の21時ぐらいからなんか配信します https://www.reddit.com/r/newsokunomoral/comments/rrycsm/12月31日の21時ぐらいからなんか配信します/ ewsokunomorallinkcomments 2021-12-30 10:08:03

コメント

このブログの人気の投稿

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