投稿時間:2021-12-21 23:42:38 RSSフィード2021-12-21 23:00 分まとめ(52件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… 次期「iPhone SE」、量産に向けた試作が近いうちに開始されるとの噂 https://taisy0.com/2021/12/21/150007.html iphone 2021-12-21 13:00:29
AWS AWS Database Blog Run SQL Server Reporting Services reports against Babelfish for Aurora PostgreSQL https://aws.amazon.com/blogs/database/run-sql-server-reporting-services-reports-against-babelfish-for-aurora-postgresql/ Run SQL Server Reporting Services reports against Babelfish for Aurora PostgreSQLEnterprises running their application workload on Microsoft SQL Server want to migrate to license free databases like Amazon Aurora PostgreSQL Compatible Edition but they rely on SQL Server Reporting Services SSRS for analytics and dashboards Customers are looking for options where they can migrate application databases to Aurora PostgreSQL Compatible and continue to use SSRS AWS provides tools … 2021-12-21 13:39:18
AWS AWS Database Blog Modernize and containerize a legacy MVC .NET application with Entity Framework to .NET Core with Entity Framework Core: Part 3 https://aws.amazon.com/blogs/database/part-3-modernize-and-containerize-a-legacy-mvc-net-application-with-entity-framework-to-net-core-with-entity-framework-core/ Modernize and containerize a legacy MVC NET application with Entity Framework to NET Core with Entity Framework Core Part This post is part three of a series and shows the steps to modernize a legacy SQL Server database to Amazon Aurora PostgreSQL Compatible Edition using Babelfish Babelfish is a capability of Amazon Aurora that allows it to understand the SQL Server dialect In Part we walked you through a step by step approach to re architect a … 2021-12-21 13:30:59
python Pythonタグが付けられた新着投稿 - Qiita [python] OpenCVを用いた動画の時間トリミング https://qiita.com/flcn-x/items/fe7738e3938cfc371b0e OpenCVでOpenHを必要としているのもこれが理由です。 2021-12-21 22:58:53
python Pythonタグが付けられた新着投稿 - Qiita Flickr APIでコーギーの画像を集めてみた https://qiita.com/shoku-pan/items/992d34986aa7becddaf0 保存フォルダの指定keywordinput検索キーワードを入力してくださいsavedirinput保存先のディレクトリを入力してくださいflickrFlickrAPIkeysecretformatparsedjsonresultflickrphotossearchtextkeyword検索キーワードperpage取得するデータ数perpage取得するデータ数テストmediaphotos検索するデータの種類画像sortrelevanceデータのソート順関連度順safesearch有害コンテンツは表示しないextrasurlqlicence取得したいデータphotosresultphotospprintphotos以下のような出力結果が得られました。 2021-12-21 22:55:55
python Pythonタグが付けられた新着投稿 - Qiita 数値流体力学9~1次元拡散方程式~ https://qiita.com/vardia/items/2d8b616e97623d917405 gltであるためには、leqqmucosthetaleqqtagLeftrightarrowleqqmusinfracthetaleqqtag任意のthetaについて安定であるためには、leqqmuleqqfractagでは、実際に次元拡散方程式を数値計算してみましょう。 2021-12-21 22:33:34
python Pythonタグが付けられた新着投稿 - Qiita Raspberry PiをつかってNASアクセス式高解像度デジタルフォトフレームをつくろう. https://qiita.com/Yurix/items/7b9a9f38ba17c0e45b4a 思いのほか高解像度であり、またNASの大容量写真フォルダの中からはるか彼方に忘れていた写真が表示されたときなどは、懐かしくもあり話のタネにもなるので大いに役立っています。 2021-12-21 22:31:34
python Pythonタグが付けられた新着投稿 - Qiita 【Django】makemigrations しようとしたら query が clash したよというエラーが出た【Python】 https://qiita.com/c0ba1t_coke/items/939270c9b874793bc00e 【Django】makemigrationsしようとしたらqueryがclashしたよというエラーが出た【Python】【Django】makemigrationsしようとしたらclashしたよというエラーが出た原因究明できてないけど一応回避はできたのでメモ試行錯誤しながらmodelを作成していて、makemigrationsしようとしたら、↓のようなエラーが。 2021-12-21 22:12:19
python Pythonタグが付けられた新着投稿 - Qiita 「django.db.utils.ProgrammingError: relation "accounts_user" does not exist」の解決法 https://qiita.com/Rujuu/items/9da7342a1a9b50567010 「djangodbutilsProgrammingErrorrelationquotaccountsuserquotdoesnotexist」の解決法原因カスタムユーザーを作成したこと。 2021-12-21 22:08:24
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) SQL文の評価をお願いします。 https://teratail.com/questions/374950?rss=all SQL文の評価をお願いします。 2021-12-21 22:55:31
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) カメラが小刻みに揺れるのを防止したい https://teratail.com/questions/374949?rss=all カメラが小刻みに揺れるのを防止したいここに言語を入力ここに言語を入力コードnbsp前提・実現したいことカメラが小刻みに揺れるため最低速度を設定して揺れないようにしたい発生している問題・エラーメッセージunityのstandardasset内のrigidbodyFirstPersonControllerを少し改造したもののコードのどこを直せば最低速度を設定できるようになるかわからない。 2021-12-21 22:37:38
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) sns認証 アカウント未登録時 https://teratail.com/questions/374948?rss=all sns認証アカウント未登録時前提・実現したいことdeviseを利用し、sns認証機能を実装しているのですがログイン画面にgoogleでサインインのリンクを配置し、クリックしてgoogleアカウントを選択した時、サイトにアカウント登録がされていればそのままログイン、されていなければ新しくクリエイトされるようにしたいのですがgoogleから必要な情報をひっぱって来れていないようで何も入力されていない新規会員登録が表示されてしまいます。 2021-12-21 22:37:35
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) あるデータを正規化してRadarChartにプロットしたい。 https://teratail.com/questions/374947?rss=all 前提・実現したいことRadarChartを作成し個々の能力を評価しようとする段階で、評価するデータを正規化したいと考えております。 2021-12-21 22:31:22
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 1列ずつ取り出すにはどうすればいいのでしょうか? https://teratail.com/questions/374946?rss=all 2021-12-21 22:28:31
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) PHPで最初のカンマで区切りたいです https://teratail.com/questions/374945?rss=all PHPで最初のカンマで区切りたいです前提・実現したいこと最初のカンマで区切りたいです例文字列aposabcaposから、配列aposaaposnbspaposbcaposを得たい発生している問題最適な書き方がわかりません該当のソースコードexplodeとpregsplitが思い浮かびますが、次のようにしても「最初のカンマ」とはなりません。 2021-12-21 22:18:52
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) wordpressでcssやjQueryをfunction.phpで読み込みたいのですが、出来ません https://teratail.com/questions/374944?rss=all wordpressでcssやjQueryをfunctionphpで読み込みたいのですが、出来ませんWordPressでCSSやjQueryを読み込む時はfunctionphpが便利とネットでかいていたので、下記サイト通り行っても上手くいきませんローディングバーがぐるぐる回ってjQueryのプラグインが読み込まないのですがどこか間違っていますでしょうかご教授お願いいたします。 2021-12-21 22:08:34
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) プログラマー・SEの職業に英語力は必要か https://teratail.com/questions/374943?rss=all 2021-12-21 22:05:39
golang Goタグが付けられた新着投稿 - Qiita goyacc で生成したコードに VSCode で Go to Definition できない場合の対処 https://qiita.com/grove_twtr/items/a8eb5cd80a218fe2a4cd goyaccで生成したコードにVSCodeでGotoDefinitionできない場合の対処下記のようなファイルを入力としてparsergoypackageparserimportbytesfmtiostrconvstringsunicodefuncDoSomethingsioRuneScannerstringerrorgoyaccを下記のように実行するとgoyaccoparsergoparsergoy下記のようなGoのコードが出力されますがparsergoCodegeneratedbygoyaccoparsergoparsergoyDONOTEDITlineparsergoypackageparserimportyyfmtfmtlineparsergoyimportbytesfmtiostrconvstringsunicodefuncDoSomethingsioRuneScannerstringerror上記DoSomething関数を呼ぶコードを書いてVSCodeで開き、GoGotoDefinitionメニューで同関数に移動しようとしてもNodefinitionfoundforDoSomethingと表示されて移動できません。 2021-12-21 22:43:08
Git Gitタグが付けられた新着投稿 - Qiita コードレビュー時に使用する略称一覧 https://qiita.com/kanda_t/items/5345b0cab3d1fe8a1deb 自分は良いと思いますという時に使用する。 2021-12-21 22:11:51
Ruby Railsタグが付けられた新着投稿 - Qiita Railsにおける秘密情報の管理をざっくり掴む https://qiita.com/kensuke_kumaki/items/45dc5a5cba68f92b51ff それ以前では、RailsseretsymlRailsencryptedsecretsなどが使用されていました。 2021-12-21 22:40:25
技術ブログ Mercari Engineering Blog アプリの入り口となるホーム画面開発を支えるメルカリのPersonalization Coreチーム #TeamInterview https://engineering.mercari.com/blog/entry/20211221-mercari-personalization-core-interview/ hellip 2021-12-21 13:24:48
技術ブログ Developers.IO Coc.nvimを触ってみようアドベントカレンダー 21日目 – coc-flutter https://dev.classmethod.jp/articles/cocnvim-adventcalendar-day21/ adventcalendar 2021-12-21 13:16:24
海外TECH MakeUseOf Every Programmer Who Uses OneNote Needs This Add-On ASAP https://www.makeuseof.com/tag/programmer-onenote-coding-add-on/ Every Programmer Who Uses OneNote Needs This Add On ASAPIf you re a programmer tired of ugly code formatting in OneNote you need to download this tool It makes adding code to OneNote books a cinch and sets up in seconds 2021-12-21 13:45:11
海外TECH MakeUseOf How to Report Inappropriate Content on YouTube https://www.makeuseof.com/youtube-how-to-report-content/ youtube 2021-12-21 13:30:24
海外TECH MakeUseOf Last-Minute Holiday Deals: The Plex Pass Year-End Sale Is Officially On https://www.makeuseof.com/holiday-deals-2021-plex-pass/ season 2021-12-21 13:22:38
海外TECH MakeUseOf How to Change The Default Screenshot Format and Other Details on a Mac https://www.makeuseof.com/tag/how-to-change-the-default-screenshot-image-format-other-properties-mac/ default 2021-12-21 13:15:22
海外TECH DEV Community Top 8 Programming Languages For Game Developers https://dev.to/codewhiteweb/top-8-programming-languages-for-game-developers-1e27 Top Programming Languages For Game DevelopersThe choice of programming language depends on factors including the game type console computer game or mobile game and the extent of interactivity Here s a list of top eight programming languages for game development original article source C Despite its high entry barrier C is one of the most popular and commonly used programming languages for game designers It offers a high abstraction level for both fine object oriented programming and generic programming providing direct control over hardware and graphical processes Additionally C allows the optimisation of special parts to a very high level a feature almost impossible to achieve with other languages C is used to build most big console and Windows games Apart from that popular games built using C include Counter Strike Football Pro Starcraft Master of Orion III JavaGiven Java s versatility and rich collection of open source material it is popularly used for the development of indie and mobile games It is easy to use is beginner friendly and can write a range of reusable system agnostic code When compared with C Java offers easy writing debugging learning and compiling Games including the likes of Mission Impossible III Minecraft FIFA and Ferrari GT WOrld Track have all been created using Java HTMLHTML is one of the top choices by game developers to build cross platform and cross browser apps and games Further it can be interchangeably used with JavaScript HTML is widely preferred for game development for its ultimate gaming engines Game Frameworks including Construct ImpactJS Phaser Turbulenz and Booty have taken the responsibility of the HTML Game Development process Some popular games built with HTML include Cookie Clicker Gods Will Be Watching World Cup Penalty JavaScriptJavaScript is one of the best programming languages for interactive online games It integrates with web technologies including CSS and HTML allowing the development of cross platform mobile games JavaScript is often used along with HTML since the latter cannot create animation or interactivity Additionally contributing to its popularity is JavaScript s humongous online community and large number of frameworks Some popular games made with JavaScript include Hangman HexGI Little Alchemy Swoop and Polycraft PythonAlthough not as popular as Java or C Python is used for game development Its PyGame library is developer friendly easy to use for building games and enables developers to prototype games quickly Additionally just like Java and C Python also runs on OOP principles Its simple learning curve makes Python a go to option for many game developers Some popular games built using Python include Battlefield Disney s Toontown Online Eve Online and Frets on Fire UnrealScriptUnreal Engine has developed the programming language UnrealScript or UScript Like Java UnrealScript is object oriented without multiple inheritance Major gaming platforms including the likes of Microsoft Windows Android Linux and Playstation use UnrealScript However in Epic Games had announced that Unreal Engine would not be supporting UnrealScript Some popular games developed using UnrealScript include Advent Rising America s Army The Wheel Of Time Batman Arkham Knight and its series LuaLua is a light weight high level and multi platform programming language that is easy to run making it fun and efficient to be used for video game development It can be designed to embed into many applications making it convenient for developers and players to alter the game Game engines including the likes of Gideros mobile Corona SDK and CryEngine use Lua as its primary programming language Some popular games developed using Lua are Age of Conan American Girl Angry Birds and Aquaria C Despite considered easier than C C is a powerful language Its XNA framework makes it perfect for building games on Windows and Xbox Additionally C s game engine UnityD and Xamarin enables developers to build games on all platforms including iOS Android PlayStation and Windows C is as popular in the gaming industry due to its efficiency and scalability Popular games developed using C include Pokemon Go and Super Mario Run What I use Javascript C very less and UnrealscriptComment down what you guys mostly Use Happy Coding 2021-12-21 13:50:00
海外TECH DEV Community What I Learned About the Log4j Vulnerability https://dev.to/lacework/what-i-learned-about-the-log4j-vulnerability-17l4 What I Learned About the Logj VulnerabilityI was excited to join Lacework for many reasons but one of the most important was that it provided me with an opportunity to teach developers about security Developers complete many different courses and training to prepare them for their careers but security is often an afterthought There is a subset of us writing lines and lines of code each day without the background knowledge to ensure that code is secure You ve likely heard the Logj vulnerability mentioned over the past few days or seen the memes floating around the internetーand if you re like me or not a Java dev you may be wondering what it is and why so many people are concerned about it Distinguished Cloud Strategist Mark Nunnikhoven broke it down in an easy to understand minute video which helped bring things into perspective Logj is an open source library that developers use to help figure out what s going on with their applications that are written in the Java programming language The reason why you re hearing about it now is because there was a serious security issue and attackers could easily use one of the library s features to run their code on your systems and those attackers want to do that to profit from your resources and data I ve heard so much information about this over the past few daysーto narrow it down for you here the things that I think are most important for developers to know You re likely only affected if your projects are written in Java If you use Java you should go through your Github repositories and check to see if they include LogJ Use an open source vulnerability scanning tool to figure out if specific systems are affected Jfrog released a tool that can help you determine if your code includes Logj and a script that helps you find where Logj is within your code It s important to understand why this vulnerability is a big deal The attack is so damaging because it s constantly changingーit s not a one time thing Even when you think you ve resolved it there are updates to the software and therefore more vulnerabilities and attacks We know what it takes to maintain software Especially during a vulnerability Our team believes in the power and benefits of open source softwareーwe recently donated to the Logj project committers and the Apache Foundation to support those maintainers working tirelessly behind the scenes Hopefully this additional backing along with the support of other developers and companies who are committed to finding a resolution will help us reach the end of this challenge sooner rather than later If you re interested in learning more about the Logj vulnerability this post about the human toll of Logj maintenance provides a helpful overview and timeline of what s occurred over the past few days Join Lacework s DevRel today as we host a Logj Vulnerability AMA at am PT Lacework lacework Join our Logj Vulnerability AMA Twitter Space tomorrow at am PT with Lacework s DevRel team and security experts to learn about the vulnerability twitter com i spaces gqxv… AM Dec 2021-12-21 13:37:49
海外TECH DEV Community Php Constant https://dev.to/irfankhan177/php-constant-1i Php Constant ConstantsConstants are similar to variables except that they cannot be changed or undefined after they ve been defined Begin the name of your constant with a letter or an underscore To create a constant use the define function lt phpdefine name value case insensitive gt Parameters name Specifies the name of the constant value Specifies the value of the constant case insensitive Specifies whether the constant name should be case insensitive Default is false The example below creates a constant with a case sensitive name Example lt phpdefine fruit Apple echo fruit output is Apple gt The example below creates a constant with a case insensitive name lt phpdefine fruit Apple true echo fruit output is Apple gt 2021-12-21 13:33:36
海外TECH DEV Community Level Up Your JavaScript With These 60 Quick Fixes for VS Code https://dev.to/lgrammel/level-up-your-javascript-with-these-60-quick-fixes-for-vs-code-5390 Level Up Your JavaScript With These Quick Fixes for VS CodeWhen programming we often edit text directly to achieve our goals Such manual editing can be slow and error prone For behavior preserving changes refactorings automation can save you time ensure the transformation is executed correctly and warn about potential breakages You can communicate your intention e g I want to extract this expression into a variable more directly and let the machine figure out the details I ve written an extension for Visual Studio Code called P JavaScript Assistant that adds automated refactorings quick fixes and cleanups for JavaScript and TypeScript to make your life easier This blog post provides an overview of the different code actions and their categories But first here is an example of how P works to give you an idea of how it can help you Core RefactoringsVisual Study Code already contains basic refactorings such as Rename and Extract Function P adds additional refactorings or extended functionality such as safety checking Extract VariableExtract Substring into VariableInline VariableInline into TemplateInline Return React Refactorings and Quick FixesIn React components often contain JSX a syntax extension for JavaScript P provides code actions that make working with JSX and React easier Extract React Function ComponentAdd to JSX Attribute amp Remove from JSX AttributeCollapse JSX Element amp Expand JSX ElementSurround with lt gt lt gt amp Remove Unnecessary lt gt lt gt ECMAScript ModernizationsThe Javascript ecosystem is progressing rapidly thanks to the great work of TC However it is hard to keep codebases up to date with the newer JavaScript features and codemods are not always an option due to their significant churn and potential for breakages P supports both codemod like mass code refactoring and more opportunistic code modernization for the following upgrades ESCollapse Object Property into ShorthandConvert apply to Use Spread SyntaxConvert Function to Arrow FunctionConvert Function to Object MethodConvert Loop to For OfConvert Var to Let amp ConstLift Default into ParameterUse String startsWith amp Use String endsWith Use Template Literal ESConvert Math pow to Exponentiation OperatorUse Array includes ESUse Nullish Coalescence in Default ExpressionUse Optional Chaining ESAdd Numeric SeparatorPush Operator into Assignment for short circuiting expressions Actions for Logical ExpressionsBoolean logic can be challenging to read especially as expressions get more complex P provides several refactorings that can help you simplify and tease apart logical expressions to make them easier to understand Flip OperatorInvert ConditionPull Up Negation amp Push Down NegationSimplify Binary ExpressionRemove Double NegationUse null ComparisonExtract VariableUse Optional Chaining Actions for If Else StatementsIf else statements are a central element in many programs Restructuring them can increase the readability of your programs often in combination with refactoring their conditions Lift Statement Out Of If ElseMerge Nested If StatementsMerge Nested If Inside Else into Else IfSeparate Condition into Nested IfRemove Empty If Block amp Remove Empty Else BlockRemove Redundant ElseConvert If Else to Guard ClauseConvert Conditional Expression to If Else amp Convert If Else into Conditional ExpressionConvert If Else to Switch Syntax ConversionIt is often annoying to make small syntactical changes by editing text Often more than one position needs to be edited and the code is broken during the edit leading to incorrect errors and auto completions that get in the way You can execute the following syntax conversions with a single P quick fix Add to Arrow Function amp Remove from Arrow FunctionAdd to JSX Attribute amp Remove from JSX AttributeCollapse JSX Element amp Expand JSX ElementCollapse Object Property into Shorthand amp Expand Shorthand PropertyConvert Property Access to Dot Notation amp Convert Property Access to Bracket Notation Split Variable Declaration Convert Language ElementsSometimes you want to switch to a language element that is a better fit for what you are doing For example a for of loop is more concise and can replace a regular for loop in many situations Convert Conditional Expression to If Else amp Convert If Else into Conditional ExpressionConvert Function to Arrow Function amp Convert Function to Object MethodConvert If Else to SwitchConvert Loop to For Of amp Convert Loop to ForEachPush Operator into Assignment amp Pull Operator Out of AssignmentConvert Var to Let amp Const amp Convert Let to Const Code CleanupsCode cleanups remove unnecessary code Such code can result from code churn e g by applying other refactorings adding new features or fixing bugs P shows hints and automates the cleanup for the following situations Remove Double NegationRemove Empty If Block amp Remove Empty Else BlockRemove Redundant ElseRemove Unnecessary Conditional ExpressionRemove Unnecessary Expression StatementRemove Unnecessary JSX FragmentRemove Unnecessary Template LiteralSimplify Binary Expression Other ActionsInsert console log for VariableSurround with Try CatchIf you find these refactorings amp actions useful you can install the P JavaScript Assistant from the VS Code marketplace For feedback and updates you can find P on Twitter or LinkedIn Cheers 2021-12-21 13:33:35
海外TECH DEV Community I Ran Away From Open Source https://dev.to/louistiti/i-ran-away-from-open-source-c2a I Ran Away From Open SourceHey all I mentioned in the previous blog posts that I d share the reasons of my missing over the last few years the vision I have for Leon your open source personal assistant and more about what is going through my mind So now is the time let s get started I Lost FocusIn June I released the second beta version of Leon On that moment I was in a dynamic mindset that I wanted to build anything I had in mind It was not exclusive to Leon I went to bed keep thinking about solutions to solve problems I was facing in life I discovered the IoT world via my work on that time It was fascinating I love the whole concept of it Building scalable architecture and most of all pressing virtual or physical buttons to trigger actions that create physical impact on the other side of the globe Back in time I created our own IoT pipeline using Microsoft Azure I built the PKI to deliver and verify devices certificates It was possible to control devices send messages invoke methods etc from a web browser to the device And it was also possible for devices to request the cloud and handle millions of connections thanks to the IoT hub and device provisioning service All the data were handled via a stream analytics processor and landed into a data lake like CosmosDB and can also replicate important data to a PostgreSQL one if necessary The main protocol between our cloud and devices was AMQP but MQTT was also supported At that time I wanted to build anything that was going through my mind everyday Well we can say I lost focus In such interesting and noisy world where there are infinite of possibilities staying focus is maybe one of the hardest thing to do My MissingOn top of that I was questionning my career I wanted to explore new horizons Also having a girlfriend with an entrepreneurship mindset does not help I wanted to show her real results We all know how challenging it is to express what we are doing or share what we are able to do with someone who isn t in the tech industry So I got trapped into the ego building circle Here is a list of the major things I did during my missing and the benefits I got for each of them aud ioI built a SaaS that converts URLs web scraping documents and text files into audio It was supporting types of voice and languages I launched the private alpha version collected feedback got emails on the waiting list Then I stopped for whatever reason What s cool here is I may inject the core of aud io into a Leon module So Leon could read any resource for us like a podcast Benefits strengthen my A to Z building skill YouTube Videos CommunityI published web development videos on my French YouTube channel started a Node js course by going in depth but with a language that everyone can understand etc Around that I put together a community with a Discord server Today there are still applications lining up In that community people started to build projects together to learn more about web development I d say of the people where changing their career path to software engineering It was composed of people with good experience and newcomers in the tech industry This variety of profiles created interesting discussions People were sharing their projects progress during monthly calls we were organizing We were warmly welcoming new fellows with proper calls too And we were working on our own projects during some immersive call sessions The idea was to work during an hour in a row by muting microphones Then we enabled back the mic to share our last hour progress and help each other if necessary for a few minutes Then we kept going Stay tuned because I d love to recreate the same model of community but around Leon If you are interested in that then feel free to subscribe to the newsletter Benefits Learned how to build a private and active community from the green grass Learned video making and video animation Computer VisionIn December I challenged myself to learn a bit about computer vision within two days To get started with this field that was new to me I trained a deep learning model that was recognizing rubik s cubes Then I created a PoC that was recognizing shapes on a whiteboard in the purpose of generating a UIDL to automatically create web components Well waaay more data were needed and my time was very limited so the model wasn t super accurate Benefits Improved my learning skill Today Leon has ears and mouth why not add eyes later on Every benefit listed above will definitely help in my Leon journey In I also ran a French web agency with a friend on the side of my job and mainly worked on a streaming platform with a customer who is managing French celebrities Then I started to create a mobile application with React Native to help a relative Here too my React Native experience will help Leon growth I let you think of the possibilities Hence by coming back on Leon I migrated nodes docs from VuePress to Docusaurus the website from Nuxt js to Next js and this blog from Hexo to Gatsby to the React ecosystem I tried and learned many new things along the way However I knew my ultimate goal was to get back on track with Leon and make sure that I m not missing anything I would like to explore more You know what my biggest fear is It is to be on my death bed look back and regret to not even try and accomplish my goals Sooner I realized it is not by focusing on so many things like this that I m gonna escape that fear Today I m glad to say that I joined the Alibaba Group on the Lazada business several months ago Don t worry this does not mean I will have less time to work on Leon Back in time I was able to release the first beta version of Leon by having my full time job Organization is key I Found Back my WhysI needed to refocus on the why of Leon before to refocus on the technical part Why am I creating Leon Why did I even get started at the first place Here is how I see it there is a practical why and a deep why Practical WhyThis why is specific to the project itself What problems is Leon solving The answer of this why is the value result of what the outside world will see and use You can take a look at the motivations here And you can continue to read to the next section to know more Deep WhyThis one is a bit more personal It is my source of energy to solve the practical why It is the fuel of my practical why To answer I d say I like solving problems but most importantly the how I solve them is what makes me move forward This is not specific to programming It also requires talking with people doing some so called marketing designing overall thinking and more Sharing your creations with the world is so exciting because you can let your blueprint behind you The tech industry is very pleasant for that you face an issue you think of a way to solve it then you can quickly build something to fix it and share it Having my own vision and driving towards the direction that I have chosen allows me to discover and learn new fields Vision for LeonEarlier this year I questionned myself to get back on track What I dream of for Leon is that we can interact with him via different clients mobile desktop customized hardware etc Today with the growth of voice and NLP technologies it becomes way more accessible to create powerful personal virtual assistant With my IoT experience I will also bring this field to Leon so we can do home automation and more I d like to bring a social aspect too At the moment I prefer not to disclose this part We can even imagine of using AR and or VR but that is a long term thing The whole idea is that Leon becomes your virtual brain so he can handle all your virtual troubles and makes you feel that the technology disappears somehow FocusTo do so here are the big lines The core of Leon needs to be more powerful So I will be focusing on this part from now on Like a way to easily support multi languages create widgets add support of JavaScript modules etc Check the roadmap to see more Leon needs to cover most of the basic use cases of existing closed source assistants Growing the community I paused the project for too long And without an active community Leon cannot grow fast I want to put together a special community of creative people like I mentioned earlier in this post I have some ideas in mind that will make Leon smarter But I will keep those in the private roadmap at the moment and disclose them when the time comes Along with the vision a rebranding was necessary to have a atmosphere that aligns with the vision of Leon You can take a look at a preview of the new landing page here In a next blog post I ll talk more about this rebranding Explaining the reasons behind the outter space atmosphere and more Wrap UpWith all that said the direction of Leon is quite clear I ve been missing working on Leon so much Today we can start again and move forward in a healthy way Also I d like to use this moment to thanks all the sponsors and Vercel for recently sponsoring Leon It feels good to be back I recently opened my GitHub Sponsor so you can now sponsor me on GitHub and get some perks 2021-12-21 13:33:24
海外TECH DEV Community Optional: Handling NullPointer Graciously https://dev.to/yashsugandh/optional-handling-nullpointer-graciously-107j Optional Handling NullPointer GraciouslyWe all know about a billion dollar mistake known as the NullPointer Reference we all have regular encounters with Null Pointer and sometimes even had to face the wrath of NullPointer Exception The topic we are going to look into today Optional is going to provide us a way to handle this issue much more graciously What is Optional and why was it introduced Optional is class introduced in Java under java util package that allows us to avoid NullPointer Exception that we encounter a lot of times Optional provides us a way to check and use whether a value is null or not This way we can save ourself from the wrath of NullPointers and handle them in a way that is elegant easy to use and maintain i e without using a ton of if else everywhere to check if an object is null or not Where can we find Optional being used Now we all know that we should never return null from a method right If you are one of those people who return null from a method and you know who you are don t hide it please refrain from doing so Jokes aside there are other scenarios where we are not sure if we will receive a value or not such as when we use Streams findfirst method i e a method that returns the first value of a Stream if the Stream is non empty so there is possibility a value may not be returned in case the Stream is empty hence an Optional is returned Another example that we generally use is the findById method which is used to get the data from database on the bases of an id so the method may not return a value in case Id is not found in database hence provides us with an optional How do we create an Optional There are three different ways of creating an Optional Creating an empty OptionalOptional empty The above method creates an empty Optional i e an optional with no value inside Creating an Optional some non null value Optional of Optional of abcd and so onWe can create Optional with different type of values integer string or an object For the cases where values can also be null we have the following Creating an Optional which can also contain null valueOptioanl ofNullable Optional ofNullable null and so on The Optional ofNullable can be used in the cases where there is a possibility of the value being a null reference Now that we know how to create Optionals the next step is to check whether an Optional contains a value or not isPresent In Java the best way to check whether an Optional has a value or not is to use the method isPresent This method structure is as follows public boolean isPresent return value null The method return us a boolean after checking if a value is present inside an Optional or not It returns a true if a value is present otherwise it returns false Let s look at example on how to use the method final Optional lt Integer gt optionalInteger Optional of final Optional lt Object gt emptyOptional Optional empty System out println emptyOptional isPresent System out println optionalInteger isPresent The output for emptyOptional is be false and the optionalInteger is true isEmpty In Java another method was introduced for checking whether optional contains a value or not This method structure is as follows public boolean isEmpty return value null If a value is not present it returns true otherwise it returns false Let s look at example on how to use the isEmpty method final Optional lt Integer gt optionalInteger Optional of final Optional lt Object gt emptyOptional Optional empty System out println emptyOptional isEmpty System out println optionalInteger isEmpty The output for emptyOptional is be true and the optionalInteger is false From what we can see from examples both the isPresent and isEmpty work in kind of similar manner except that one checks whether the value is present in Optional and other checks for whether the Optional is empty or not So based on the requirement we have we can use either or those There are cases where we want to perform an operation if the value is present In this scenario we can of course use the combination of if isPresent but this will just lead us back to how we use to deal with null references before Optional using if else statement which we don t want to do So for use cases like this we have a method ifPresent The ifPresent method will only execute the operation if the Optional contains some non null value This method structure is as follows public void ifPresent Consumer lt super T gt action if value null action accept value The method does not return anything and what it takes as a parameter is a Consumer Let s take an example on how to use ifPresent final Optional lt Integer gt optionalInteger Optional of optionalInteger ifPresent integer gt System out println integer In the example above we can see that the output will only be printed if the value is present and in other cases no output will be printedWhat if we want to print something or execute a different function if Optional does not contain any value ifPresentOrElse Introduced in Java the ifPresentOrElse allows us to provide an alternative in which even if the Optional is empty we can perform an actionThis method structure is as follows public void ifPresentOrElse Consumer lt super T gt action Runnable emptyAction if value null action accept value else emptyAction run So if a value is present it will perform the given action with the value otherwise it will perform the given empty based action Let s take an example on how to use ifPresentOrElse final Optional lt Object gt emptyOptional Optional empty emptyOptional ifPresentOrElse val gt System out println The value present inside the optional is val gt System out println The optional is empty In the above example we can see that the method will print the value if it is present else it will print The optional is empty Till now we have various methods that help us in checking whether the value is present or not bu what if we want to use the value get NEVER USE THIS METHODThe get as the name suggest tries to get the value from the Optional and if the value is not present it will throw a NoSuchElementException Using this method after checking if the value is present or not is still considerable but using it without even checking defeats the whole purpose of using the Optional in the first place The method structure is as follows public T get if value null throw new NoSuchElementException No value present return value Methods that can be used instead of get if you just want to access the value inside the Optional are orElse One of the way is that we can provide a default value to be used in case no value is found inside the Optional The method structure is as follows public T orElse T other return value null value other As the name suggests the method orElse will return the value if a value is present inside the Optional if no value is present we can provide a default value i e other parameter to be returned Let s look at an example on how to use orElse final Optional lt Object gt emptyOptional Optional empty System out println emptyOptional orElse System out println emptyOptional orElse generateRandomNumber In the above example the first output will display as the Optional we used is an emptyOptional so the default value we passed in orElse will be used and for the second print statement a default value will be provide from the method generateRandomNumber Another way we can get value without worrying about NoSuchElementException is orElseGet The method orElseGet is very similar to the method we saw above orElse We can provide both a default value directly as well call a function to provide us with a value The method structure is as follows public T orElseGet Supplier lt extends T gt supplier return value null value supplier get As we can see that the method orElseGet takes in a Supplier as an input which is used in cases where Optional does not contain any value The difference between the structure of orElse and orElseGet is clear that orElse method accepts a generic parameter T where as orElseGet method accepts a supplier Let s look at an example on how to use orElseGet final Optional lt Object gt emptyOptional Optional empty System out println emptyOptional orElseGet gt System out println emptyOptional orElseGet gt generateRandomNumber In the above example the first output will display as the Optional we used is an emptyOptional so the default value we passed in orElseGet will be used and for the second print statement a default value will be provide from the method generateRandomNumber The difference between orElse and orElseGet We were able to see that on the surface both the methods look and works almost the same but structure wise orElse uses the generic parameter where as the orElseGet uses the Supplier The major difference between the two method which impacts the performance is when we use orElse even in the cases where the default value is not used it will be created and stored in memory but in case of orElseGet it will only be created if and when needed If the default value is a simple int it may not such a big difference but imagine the cases where a method is being called it will not only take a place in call stack but also has the ability to affect the performance Another case that may be possible is when we do not want to provide a default value but we want to throw an error in case a value is not present in Optional orElseThrow There are different variants of orElseThow Default variantIntroduced in Java the default variant of orElseThrow works similar to how get works i e if will check whether an element is present or not and if an element is not present it will throw and NoSuchElementException The structure is as follows public T orElseThrow if value null throw new NoSuchElementException No value present return value The difference between theget and orElseThrow method is that even though internally both will throw the same NoSuchElementException exception when a value is not present the person going through the code will be able to understand that method orElseThrow can throw an error by just looking at its name where as in the method get it will be a side effect Let s look at an example on how to use orElseThrow final Optional lt Object gt emptyOptional Optional empty emptyOptional orElseThrow In the above example we can see that an NoSuchElementException will be thrown Parameterized variantIntroduced in Java in this variant we can define the error we want to throw if no value is present inside the Optional The structure is as follows public lt X extends Throwable gt T orElseThrow Supplier lt extends X gt exceptionSupplier throws X if value null return value else throw exceptionSupplier get Let s look at an example on how to use orElseThrow final Optional lt Object gt emptyOptional Optional empty emptyOptional orElseThrow IllegalStateException new emptyOptional orElseThrow gt new IllegalStateException Data Not Found In the above example we can see that an IllegalStateException will be thrown if value is not present in Optional We can either create an exception with default constructor or we can also pass in a message Now we have gone through How to create an OptionalHow to check if an Optional contains any value or notHow to proceed if an Optional has a value How to provide a default valueWhat if we want to transform a value inside an OptionalFor the purpose of transformation Optional provides us with various functions such as map flatmap and filter When To Use an Optional Return ValueOptional is suitable to be a return value where expected that a value may or may not be present For example the findById method or the findFirst method When Not To Use an Optional As a parameterI have seen some cases where someone has used Optional as a parameter of a methodFor example public void function Optional lt Integer gt val if val isPresent function val else function In the example above we can see that optional is being misused Issues in the above example Single Responsibility Principle is being violatedThe parent function should have handled the choice instead of the child functionWhy would you want to check if a parameter exists or not instead why not create separate functions for each use case Wrapping a collection such as ArrayList in OptionalI have seen some cases where an ArrayList is being passed wrapped inside an Optional and later is being checked where it is empty or notI don t know why would someone do it if you want to check a collection is empty or not than there are already methods created for it so why would you need to wrap a collection in Optional Let me know if you have some more use cases of when and when not use an Optional See you in the funny papers 2021-12-21 13:30:53
海外TECH DEV Community Php variable and string. https://dev.to/irfankhan177/php-variable-and-string-1f7k Php variable and string PHP VARIABLEPhp variable start with dollar symbol lt php var gt STRINGPhp string start with etc Every program end you need add lt php var Hello World var int this integerecho var output is Hello World gt 2021-12-21 13:15:21
Apple AppleInsider - Frontpage News Best deals Dec. 21: $1400 27-inch iMac, $300 off 1TB microSD card, more! https://appleinsider.com/articles/21/12/21/best-deals-dec-21-1400-267-inch-imac-300-off-1tb-microsd-card-more?utm_medium=rss Best deals Dec inch iMac off TB microSD card more Alongside off a K iMac Tuesday s best deals include savings on the DJI Mavic Mini HomeKit security accessories The Lord of the Rings in K and more Best Deals for December To help you search through the holiday deal chaos we ve curated some of the best deals we could find on Apple products tech accessories and other things for the AppleInsider audience Read more 2021-12-21 13:49:52
Apple AppleInsider - Frontpage News Apple begins trial production of iPhone 13 in India https://appleinsider.com/articles/21/12/21/apple-begins-trial-production-of-iphone-13-in-india?utm_medium=rss Apple begins trial production of iPhone in IndiaApple is trialling an expansion to the range of iPhones it manufactures in India with the company starting a program of producing the iPhone at Foxconn s Chennai plant Despite protests over food poisoning at the Foxconn factory near Chennai the manufacturer is reportedly not only able to continue production but also to expand it The move follows previous attempts to produce more iPhones in India and the problems that has caused with China According to India s The Economic Times trial production of the iPhone has begun in the factory Reportedly Apple intends to move from a trial to full commercial production of the model by February Read more 2021-12-21 13:12:31
海外TECH Engadget Amazon kids bundle offers a Fire 7 tablet and Echo Dot for just $80 https://www.engadget.com/amazon-kids-bundle-fire-7-tablet-echo-dot-80-130508358.html?src=rss Amazon kids bundle offers a Fire tablet and Echo Dot for just If you re still looking for a last minute Christmas gift ーor a post holiday one ーfor the kids in your life Amazon has a bundle you may want to check out The e commerce giant is selling a Fire Kids tablet and an Echo Kids speaker bundle for just which is percent off their original retail prices together You can get the inch tablet in purple pink or blue while the Echo Dot speaker that it comes with has a panda design nbsp Buy Amazon Fire Kids Tablet Echo Dot Kids Bundle at Amazon The Fire Kids tablet alone normally costs though Amazon has been selling it for since the beginning of December As for the fourth gen Echo Dot for Kids its original retail price is but it s been listed for since November Even taking the discounted prices into account you ll still save if you get the bundle instead of getting each item on its own nbsp Amazon s bundle comes with one year of access to Amazon Kids along with all of its apps games books audiobooks and video You or the kid s parents or guardian can give the recipient access to apps like Netflix or games like Minecraft via the Amazon Parent Dashboard That s also where the child s guardian can set time limits for usage filter out explicit songs and review activity for the Echo Dot Of course the bundle s recipient can also ask Alexa to play kid friendly Audible books or interactive games from the Kids subscription service on their panda Echo Dot speaker The deal is a time limited offer and only available for more hours as of this writing After that the price for the bundle will likely go back to nbsp Follow EngadgetDeals on Twitter for the latest tech deals and buying advice All products recommended by Engadget are selected by our editorial team independent of our parent company Some of our stories include affiliate links If you buy something through one of these links we may earn an affiliate commission 2021-12-21 13:05:08
Cisco Cisco Blog The Best is Yet to Come – Looking Ahead to 2022 https://blogs.cisco.com/wearecisco/the-best-is-yet-to-come-looking-ahead-to-2022 aishwarya 2021-12-21 13:00:47
海外TECH CodeProject Latest Articles Improving User Experience with Document APIs https://www.codeproject.com/Articles/5320317/Improving-User-Experience-with-Document-APIs grapecity 2021-12-21 14:00:00
金融 RSS FILE - 日本証券業協会 外務員必携の購入申込み https://www.jsda.or.jp/gaimuin/hikkei/moushikomi.html 購入 2021-12-21 13:07:00
金融 RSS FILE - 日本証券業協会 SDGs特設サイトのトピックスと新着情報(リダイレクト) https://www.jsda.or.jp/about/torikumi/sdgs/sdgstopics.html 特設サイト 2021-12-21 14:07:00
金融 ニュース - 保険市場TIMES ソニー生命、東京大学が発行するソーシャルボンドへの投資決定 https://www.hokende.com/news/blog/entry/2021/12/21/230000 2021-12-21 23:00:00
ニュース BBC News - Home Covid: Chancellor announces £1bn fund for businesses https://www.bbc.co.uk/news/uk-59742884?at_medium=RSS&at_campaign=KARANGA covid 2021-12-21 13:43:19
ニュース BBC News - Home Sir David Amess: Ali Harbi Ali pleads not guilty to murdering MP https://www.bbc.co.uk/news/uk-59739947?at_medium=RSS&at_campaign=KARANGA october 2021-12-21 13:11:54
ニュース BBC News - Home Robertson 'lucky he's still walking' - Clattenburg criticises officiating on Kane challenge https://www.bbc.co.uk/sport/football/59736316?at_medium=RSS&at_campaign=KARANGA Robertson x lucky he x s still walking x Clattenburg criticises officiating on Kane challengeFormer Premier League referee Mark Clattenburg criticises the officiating of Sunday s draw between Tottenham and Liverpool saying Andy Robertson is lucky to be walking 2021-12-21 13:06:22
LifeHuck ライフハッカー[日本版] 着色汚れ対策に。スイスの歯科医が開発した音波電動歯ブラシがmachi-yaに登場 https://www.lifehacker.jp/2021/12/248383-machi-ya-megasmile-start.html machiya 2021-12-21 23:00:00
LifeHuck ライフハッカー[日本版] 神アプリの噂は本当だった。もっと早く買えば良かった『GoodNotes 5』|これ買ってよかった2021 https://www.lifehacker.jp/2021/12/247873best-buy-in-2021-goodnotes-app.html goodnotes 2021-12-21 22:05:00
北海道 北海道新聞 首相「年末年始に牛乳飲んで」 大量廃棄懸念し協力呼び掛け https://www.hokkaido-np.co.jp/article/625853/ 岸田文雄 2021-12-21 22:13:00
北海道 北海道新聞 容疑者、逃げる被害者阻む 大阪ビル火災、防犯カメラに映像 https://www.hokkaido-np.co.jp/article/625828/ 大阪ビル 2021-12-21 22:10:52
北海道 北海道新聞 首里城の「扁額」、朱から黄に 新たな知見で復元方針 https://www.hokkaido-np.co.jp/article/625851/ 首里城 2021-12-21 22:07:00
北海道 北海道新聞 通学路安全に500億円計上へ 自賠責特会へ54億円返済 https://www.hokkaido-np.co.jp/article/625850/ 安全対策 2021-12-21 22:06:00
北海道 北海道新聞 NATO不拡大で条約必要 ロシア大統領、軍事的対抗も https://www.hokkaido-np.co.jp/article/625849/ 北大西洋条約 2021-12-21 22:06:00
海外TECH reddit What exactly is an “American joke?” https://www.reddit.com/r/japanlife/comments/rlesfw/what_exactly_is_an_american_joke/ Whatexactlyisan “ A m e r i c a n j o k e I v e h e a r d t h i s m a n y m a n y t i m e s a s a n A m e r i c a n w h o t r i e s t o m a k e j o k e s i n J a p a n e s e E v e n w h e n a j o k e l a n d s I t h i n k i c a n t e l l b y n o w w h e n l a u g h t e r i s g e n u i n e B e e n h e r e a r o u n d y e a r s p e o plewilloftensaythingslike “ それ は アメリカン ジョーク だ ね 。 2021-12-21 13:33:57

コメント

このブログの人気の投稿

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