投稿時間:2021-11-02 18:48:18 RSSフィード2021-11-02 18:00 分まとめ(70件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… スクエニ、スマホ向けアクションRPG「聖剣伝説 エコーズオブ マナ」のクローズドβテストの参加者を募集開始 https://taisy0.com/2021/11/02/148277.html androi 2021-11-02 08:36:27
IT 気になる、記になる… SOLIDE社の抗菌&耐落下衝撃対応の「iPhone 13」シリーズ用MagSafeケース『VENUS EX MagSafe Case』発売 https://taisy0.com/2021/11/02/148272.html bubblepro 2021-11-02 08:26:00
IT 気になる、記になる… Amazonの音楽聴き放題サービス「Amazon Music Unlimited」が3ヶ月無料+700ポイント貰えるキャンペーンを開始 https://taisy0.com/2021/11/02/148268.html amazo 2021-11-02 08:14:52
TECH Engadget Japanese PayPay、決済手数料の有料化による加盟店離れは「軽微」と発表 https://japanese.engadget.com/paypay-084158678.html paypay 2021-11-02 08:41:58
TECH Engadget Japanese 「レゴ スーパーマリオ」シリーズ、「ルイージマンション」拡張セットを発表 https://japanese.engadget.com/lego-083018357.html 拡張セット 2021-11-02 08:30:18
TECH Engadget Japanese Kindle本月替わりセール:11月は「ゼロ・トゥ・ワン」「暗示大全」「インターネットの基礎」「きのこの教科書」など https://japanese.engadget.com/sale-kindle-monthly-081506468.html kindle 2021-11-02 08:15:06
TECH Engadget Japanese Pixel 6 Proの電源オフ時の画面不具合、12月にアップデートで修正へ https://japanese.engadget.com/pixel-6-pro-080019334.html google 2021-11-02 08:00:19
IT ITmedia 総合記事一覧 [ITmedia News] 都営バス、車内Wi-Fiサービスを終了 4G普及、5G登場でWi-Fi需要減 https://www.itmedia.co.jp/news/articles/2111/02/news148.html itmedia 2021-11-02 17:35:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] 時短解除で始まる“飲食店サバイバル” 酒場でスイーツや総菜パンも販売 https://www.itmedia.co.jp/business/articles/2111/02/news149.html itmedia 2021-11-02 17:33:00
IT 情報システムリーダーのためのIT情報専門サイト IT Leaders 国家戦略としてAIに臨むアイルランド、知られざるAI強国の実力:第27回 | IT Leaders https://it.impress.co.jp/articles/-/22275 国家戦略としてAIに臨むアイルランド、知られざるAI強国の実力第回ITLeaders北西ヨーロッパに位置するアイルランドは、以前から国家を挙げてIT産業を育成していることで有名である。 2021-11-02 17:23:00
AWS AWS Japan Blog [AWS Black Belt Online Seminar] VMware Cloud on AWS https://aws.amazon.com/jp/blogs/news/webinar-bb-vmwarecloudonaws-2021/ AWSBlackBeltOnlineSeminarVMwareCloudonAWS「VMwareCloudonAWS」のAWSBlackBeltOnlineSeminarについてご案内させて頂きます。 2021-11-02 08:28:40
AWS lambdaタグが付けられた新着投稿 - Qiita Github Actions(IAMロール認証)を使ったLambdaへのデプロイ https://qiita.com/subretu/items/ff23a91a2a9620c1aea3 信頼されたエンティティウェブIDIDプロバイダ上記で作成したIDプロバイダを選択AudienceIDプロバイダ作成時の対象者ポリシー上記で作成したIAMポリシー作成したIAMロールのARNは、GithubActionsの設定で必要なので控えておく。 2021-11-02 17:57:17
python Pythonタグが付けられた新着投稿 - Qiita 特徴量としての時系列カラムを活用するには https://qiita.com/Qwertyutr/items/b36c6de342f65aa3ee66 時系列データの初期でもseabornのregplotで現在データとlagの相関関係と線形性を見ましたが、それです指定した区間の各日ごととかで相関関係がどう推移しているのかを見たりします。 2021-11-02 17:35:26
python Pythonタグが付けられた新着投稿 - Qiita 就活生・転職志望者のための模擬面接100本ノック(Streamlit) https://qiita.com/kunishou/items/64138219df98de020a51 アプリの概要今回作成した模擬面接アプリは、画面上での面接質問文の表示と同時に問題文を合成音声で読み上げてくれるアプリとなっています。 2021-11-02 17:08:10
js JavaScriptタグが付けられた新着投稿 - Qiita はじめてのJavaScript⑰ 「Functionコンストラクタ」 https://qiita.com/Stack_up_Rising/items/0b3c1246da8138c477f1 はじめてのJavaScript⑰「Functionコンストラクタ」目次はじめに概要構文内容はおわりにはじめに本記事では、JavaScriptの「Functionコンストラクタ」について記載する。 2021-11-02 17:28:59
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Iphone seサイズ時の余白 https://teratail.com/questions/367413?rss=all Iphoneseサイズ時の余白前提・実現したいこと画像のように、なぜか右端に余白ができてしまうChorme発生している問題・エラーメッセージnewsのセクションにのみ右端の余白ができる試したこと該当のソースコード字数制限により、下記サイト参照いただけると幸いです。 2021-11-02 17:59:13
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 画像全体を補色に変換したい https://teratail.com/questions/367412?rss=all 画像全体を補色に変換したい前提・実現したいこと画像を読み込んで、全画素を補色に変更したく、pythonでプログラムを作っています。 2021-11-02 17:58:59
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) pythonのコードについての質問です https://teratail.com/questions/367411?rss=all mxyreturnxxyyaddxyprinty 2021-11-02 17:55:14
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) python3のpandasでindexをしていしてcsvをDataFrameとして読み込みたい。 https://teratail.com/questions/367410?rss=all pythonのpandasでindexをしていしてcsvをDataFrameとして読み込みたい。 2021-11-02 17:51:57
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) unityの3Ⅾでの自機狙いがわかりません。 https://teratail.com/questions/367409?rss=all 前提・実現したいことⅮ空間で敵が弾をプレイヤーに向かって撃ってくるいわゆる自機狙いみたいなものを作りたいです。 2021-11-02 17:50:47
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) データフレームでdf.loc(.iloc)とdf[][]の違い https://teratail.com/questions/367408?rss=all dfilocnbspnbsp 2021-11-02 17:49:18
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 'glad/glad.h' file not foundを解決したい https://teratail.com/questions/367407?rss=all xgladgladhxfilenotfoundを解決したい以下の動画を参考にしてgladをセットアップしました。 2021-11-02 17:46:53
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) centos6.1でmondorescueを使いたい。 https://teratail.com/questions/367406?rss=all centosでmondorescueを使いたい。 2021-11-02 17:43:17
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Warning: Cannot modify header information 管理画面にログインできない https://teratail.com/questions/367405?rss=all WarningCannotmodifyheaderinformation管理画面にログインできない前提・実現したいこと↑こちらの投稿の方と酷似した状況です。 2021-11-02 17:42:02
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 深層強化学習で禁止行動を設ける https://teratail.com/questions/367404?rss=all 2021-11-02 17:34:39
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) firebaseからコレクションの値を持ってきたい(flutter) https://teratail.com/questions/367403?rss=all firebaseからコレクションの値を持ってきたいflutter前提・実現したいことFirebaseからコレクションの内容をとってきたいです発生している問題・エラーメッセージエラーはないのですが、firebaseから値が引っ張って来られずnullで、nullの際の処理になってしまっています。 2021-11-02 17:34:03
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) rails jbuilder であるAPIリクエストのときだけデータの値を更新したい https://teratail.com/questions/367402?rss=all railsjbuilderであるAPIリクエストのときだけデータの値を更新したい前提・実現したいこと元々Java開発をしていましたが、現在Rails開発に携わっています。 2021-11-02 17:23:21
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) iphone se サイズresponsive https://teratail.com/questions/367400?rss=all iphoneseサイズresponsive前提・実現したいこと表題の通り、iphonenbspseサイズとで右に余白ができてしまう。 2021-11-02 17:13:47
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) C++勉強中 文字列数を上手く取得できない https://teratail.com/questions/367399?rss=all C勉強中文字列数を上手く取得できない実現したいこと文字列の数を正しく取得したいです。 2021-11-02 17:10:17
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 開始日時~終了日時に当てはまるか調べるSQLについて https://teratail.com/questions/367398?rss=all pnbspnbspnbspnbspnbspnbsp 2021-11-02 17:07:19
AWS AWSタグが付けられた新着投稿 - Qiita Github Actions(IAMロール認証)を使ったLambdaへのデプロイ https://qiita.com/subretu/items/ff23a91a2a9620c1aea3 信頼されたエンティティウェブIDIDプロバイダ上記で作成したIDプロバイダを選択AudienceIDプロバイダ作成時の対象者ポリシー上記で作成したIAMポリシー作成したIAMロールのARNは、GithubActionsの設定で必要なので控えておく。 2021-11-02 17:57:17
技術ブログ Developers.IO アライアンス統括部にジョインしました鵜澤です https://dev.classmethod.jp/articles/uzawa-joined-classmethod/ 自己紹介 2021-11-02 08:45:23
海外TECH MakeUseOf 5 Powerful Free Apps to Make Screenshots Look Better and Search Their Text https://www.makeuseof.com/free-apps-make-screenshots-look-better-and-search-their-text/ Powerful Free Apps to Make Screenshots Look Better and Search Their TextFrom beautifying screenshots to making their text searchable these free tools will help you take better screenshots then manage and edit them 2021-11-02 08:30:21
海外TECH DEV Community Express https://dev.to/codewithpom/express-52l0 ExpressSo this is my first blog and today I will show how to use express a javascript framework for making servers and maybe sometimes there would be some mistakes in this blog in my writing as I am new so comment it out IntroductionExpress is a web framework for Node js here is there website link You can know more about it by the link above How to useThere are some requirements to learn express Have Some Knowledge About Node jsHave Node js installed if you do not have installed you can install by A text editor like vscode if you do not have a text editor installed then install vscode search for it on google Good To GoOnce you have everything done we can go further Sample CodeNow open vscode and create a new project and donpm init yand then donpm install expressand then we are good to go Starter codeNow create an index js file and in it put the following code and save it Start the serverNow as we have everything done we can start our server and to do that paste the following command in the terminalnode index jsand then your server will start running and you can see your server response by going to http localhost and you will see a Hello World you van change it by changing the response text on line and this link will work only on your device So this was all this was the most simple express app and in my next blog we will learn how to deploy it so that you can see it from anywhere and if you want part try to give a comment 2021-11-02 08:44:51
海外TECH DEV Community Migrating a static Hugo blog to AWS Amplify https://dev.to/catawiki/migrating-a-static-hugo-blog-to-aws-amplify-2nnb Migrating a static Hugo blog to AWS AmplifyFond of Cloud Open Source and new technologies Aristide leads the implementation of security controls on Catawiki s Auction platform In this publication he describes the historical technical considerations that applied to his personal website architecture built on AWS since its creation in to today Blog s OriginsBack in I used to work as a Django developer and as such after starting working on AWS I decided to host a personal website as a Django blog on AWS Elastic beanstalk The blog was extremely minimalistic and configured to use two small AWS VMs one for the application and another one for a Postgres database hosted in a private subnet It also involved an S bucket to load some static content such as images Diagram An Elastic Beanstalk Tiers ArchitectureWhile this approach was convenient to start getting familiar with AWS and leveraging several of their based infrastructure services VPC CloudWatch S RDS Route it had many drawbacks such as Django framework is heavy to maintain and update for a side projectPast the AWS free tiers keeping two running VMs as small as they were wasn t cheap It simply couldn t scale for more than simultaneous users without autoscaling Going staticA bit later in I started hearing about these magic websites that could be built almost instantly using a static site generator and found that S could be configured to host them in one click Therefore I ve benchmarked the two most popular solutions at that time the Ruby engine Jekyll and the Go version called Hugo As you can deduct it from this post s title I ve gone for the second one as it was lighter and faster to build With a static website I wasn t required any longer to keep a dedicated database to host my blog posts users and their comments Instead I ve chosen to rely on external SaaS services such as Disqus for comments and Algolia for searching Both solutions allow generous free tiers usage for non commercial use As serving content outside AWS is expensive I ve also added a Cloudfront distribution in front of the S bucket and was able to add a Lambda Edge function in my website s HTTP request responses Lambda Edge allowed me to add additional security to my website such as preventing serving content from a non explicitly allowed domain with a Content Security Policy CSP HTTP header I also actively monitor the messages returned by these security headers through the excellent monitoring platform Report URI from Scott Helm The website architecture therefore was simplified as shown below Diagram Static website hosted on SThis structure is much cheaper and more scalable and can serve thousands of users for less than € per month A remaining caveat was that it was difficult to restrict access to the S website from the CloudFront service only As described here the usual AWS best practice of setting an Origin Access Identity OAI is incompatible with S website endpoints The only workaround is to set a hardcoded “password in an HTTP header supported as a condition in the S bucket policy In addition you need a few additional resources to get an automated CI CD deployment from a Git repository AWS CodePipeline or some monitoring and alerting Cloudwatch Alarms Moving to AmplifyAWS Amplify was initially a response from AWS to the popular simple web app hosting solution Firebase from Google It designates a toolset integrating many AWS services CI CD Authentication CDN hosting monitoring in a single place Let s see how it works First you create a new hosting and choose the appropriate versioning service where the Hugo website skeleton is stored in my case GitHub Then Amplify will automatically detect what framework it should use to build the project and propose an appropriate build configuration Furthermore in the advanced setting you can configure Amplify build to use a custom docker image stored in ECR Elastic Container Registry and environment variables And voila The website is now live on an amplifyapp com provided URL Another powerful feature of Amplify is that you can easily host different versions of your project based on different Git branches this enables you to run a testing version of a new feature before rolling it out to your main website However you may not want to expose this staging branch to the outside world The good news is that AWS Amplify permits to effortlessly set a Basic Authentication in front of any website s version The less good news is that for an AWS managed service I would also have expected the possibility to log in a user based on their AWS IAM identity As I already own a Route hosted zone let s change the default amplifyapp com provided URL to my usual custom domain This will create a new CloudFront distribution with a free wildcard SSL certificate for your root domain and subdomains If you follow this step you may find that the console only redirects the root domain to the www subdomain during creation For further redirection options there is an additional Rewrites and redirects menu that you can configure as follow The rationale in this configuration is that by default AWS Amplify Redirect unknown URLs to the main page so if you wish to show your own not found page it is better to advertise it as a Rewrite instead of a Redirect Also for SEO it is better to replace the default Redirect Temporary HTTP return code to Redirect Permanent A return code may confuse Search Engines that will continue to reference the wrong URL as the redirection is supposed to be temporary ending up slowing the initial loading time of visitors coming from the wrong URL Personally I highly recommend choosing either your root or www subdomain and redirecting all other site references to it Indeed Search Engines tend to get confused when they re getting the same page at different URLs Do the same for the HTTP version of your site to HTTPS as you enjoy a free AWS managed SSL certificate that will also decrease your domain spread The last screenshot is for the custom header editor that I ve particularly enjoyed there you can define your site HTTP headers in a yaml format It is much more convenient than maintaining a lambda Edge function My only catch on this menu concerns the editor that I find quite basic So I copy paste the code and edit it in a separate editor There are a few additional power user functionalities that I don t use for my relatively simple personal blog so I won t detail them here These advanced functionalities include an Admin UI to configure team access to a serverless backend direct CloudWatch monitoring and Alarm integration and Pull Request system to merge changes between different branches and the master Cost AnalysisThis study wouldn t be exhaustive without a full pricing comparison between the AWS Amplify and a custom Cloudfront S Lambda integration I will simplify it a little since I ve configured CloudFront my S costs were very low and Lambda Edge costs have remained within the Lambda Free Tiers Below is a breakdown of the different potential costs CloudFront S CodePipelineAmplifyBuild per active pipeline per month per build minute Frankfurt using general small per build minuteStorage per GET and all other requests Frankfurt per GB first TB month of storage used Frankfurt per GB stored per monthEgress per GB All data transfer out to Origin Europe per GB first TB month data transfer out per HTTPS Requests per GB servedOne of the strengths of AWS Amplify is that costs are fixed for any region you operate in This can prove more beneficial in certain geographic areas such as Asia Pacific Australia or South America where outbound traffic varies between to Here is a more literal comparison based on my website costs for July ConsumptionCloudFront S costsAmplify theoretical costsTheoretical savingsBuild active pipeline build minutes Storage GET and other requests GB of storage Egressk HTTPS requests Europe GB served k HTTPS requests US GB served Total By using AWS Amplify I got the same features for a third of the price while saving me from maintaining the underlying service components This result is biased by the cost of keeping one running pipeline and relatively low traffic during summer Conclusion AWS Amplify is a managed service shipped with CloudFront S CloudWatch CodePipeline Cognito API Gateway and even a serverless backend Therefore it perfectly fits smaller size projects based on static websites or frontend oriented frameworks such as React Vue or Next js While using AWS Amplify is convenient if you operate a high Annual Rate Return service with more than k users I would consider it more profitable to spend the additional Engineering effort to finely configure the corresponding underlying services My conclusion to this blogpost is that no matter how great a managed service such as Amplify the Return On Investment decreases as consumption goes up Therefore the main target audience of AWS Amplify is individual developers to medium sized applicative projects Cover photo by Scott Major on Unsplash I even considered at the beginning to reserve instances for years to decrease the cost and discovered that the smallest instance sizes t micro and t nano were not eligible  For the curious reader I ve detailed in a previous post how I achieved this result  AWS Content Delivery Network used to locally cache static data and thus cut down egress costs  From which the pricing model has been largely inspired  Beware I got an error at this step because the main root domain aristidebouix cloud was still attached to the old CloudFront distribution If you also migrate your website from a Cloudfront S setup to Amplify you should first remember to remove the domain redirection in your old CloudFront distribution  See the service documentation for reference  Note the cost to serve HTTP requests is actually lower on CloudFront than for HTTPS requests probably due to a slightly lower impact on server CPUs If as me you block or redirect HTTP requests then all your traffic will be billed as HTTPS requests  To the exception perhaps if your main market is located in expensive AWS regions such as South America Australia or Asia Pacific 2021-11-02 08:43:17
海外TECH DEV Community 40+ GitHub Projects for Beginners – Easy Ideas to Get Started [Beginners - Advance] https://dev.to/devv/40-github-projects-for-beginners-easy-ideas-to-get-started-beginners-advance-cml GitHub Projects for Beginners Easy Ideas to Get Started Beginners Advance There s a good chance you ve heard of GitHub if you re in the tech space even if you re not a developer by trade  You might have even stumbled across a GitHub repository or two when learning about software or web development Still GitHub can seem perplexing if you ve never used it  Is it a cloud storage site  A social networking site for programmers  A code sharing site  As it turns out the answer to all of these is yes and more  Read More   GitHub Projects for Beginners Easy Ideas to Get Started Beginners Advance 2021-11-02 08:26:06
海外TECH DEV Community CHIT-CHAT with Alumni Season II: Episode 3-Progressive Advancement in Data and Analytics https://dev.to/spectrumcetb/chit-chat-with-alumni-season-ii-episode-3-progressive-advancement-in-data-and-analytics-51co CHIT CHAT with Alumni Season II Episode Progressive Advancement in Data and AnalyticsThe SPECTRUM club is one of the core technical societies of the College of Engineering and Technology Bhubaneshwar founded in by Mr Bikram Keshari Panda graduate scrutinizing on the sole motive of Instrumentation and Electronics Engineering branch having a club of its own Apart from being involved in a plethora of competitions and technical events the club decided to start its very own Alumni Talk Series called Chit Chat with Alumni The first season of the series served as a torch bearer for the students to connect with their seniors contributing in both their personal and professional development And we have continued to strengthen the bond even further with the Second Series The third episode of Season was hosted on the th of October and the speaker for the evening was Mr Siddhant Maharana Mr Siddhant Maharana pursued his Bachelors in Technology in Instrumentation and Electronics Engineering from the year to in CET He is currently working as Data Scientist at Cardlytics with years of professional experience in data analytics statistical modelling machine learning and A B testing He has formerly worked as a Product Analyst at TATA mg and Assistant Systems Engineer in TATA Consultancy Services He specializes in Data Mining Machine Learning amp Deep Learning He started off with talking about his memories in college After college he wanted to explore other options before joining a stable company and so was more interested to work in start ups He then switched to working as Assistant Systems Engineer and then Product Analyst gaining experience before pursuing his Masters His work kind of introduced him to the essence of data and analytics out in the world which further encouraged him in diving deeper into it He stated that “One has to really understand the business and the economics of the business to really comprehend of whether it s the right direction Being involved in marketing analytics and discovering the challenges faced he decided on understanding and learning more of the data and mathematics to improve his skill set This led him to shift to USA to pursue Masters in Data Analytics After years of rigorous studies he is started working as a Data Scientist Continuing he further touched upon the topic of what actually is expected of Data Scientist in the current industry He explained it as solving business problems in various sectors whether in marketing or finance or production saying that they are all interconnected The data scientists understand and frame the problems and proceed to find a solution and remove assumption and biases The need to have a proper hypothesis to backup your data and to understand your end users serves as key to a data scientist It be bucketed to different aspects The hacking skills to write a good logic to decipher the data which require programming skills Secondly the mathematical skills where all the assumptions being removed makes the solution more robust and helps in figuring the solution Thirdly substantive experience which elaborates about how to package the solution that it aligns with the business The solution ought to have some relevancy and measurability which is very important He proceeded further with providing a list of different learning materials and skill sets for students to begin their journey to success in Data Science He concluded with reminding students to use their life skills to come up whenever they bump into problems and challenges He encouraged us to “Be realistic always take risks and push ourselves further The conference was followed by an interactive Q n A with students asking questions ranging from his decision to pursue Masters to his current experience as a data scientist to which he cleared all the queries with ease One of the attendees named Abraar Ahmad Khan asked aboutHow the work in industry for data science is different from the ones we do in college level to which he replied The knowledge provided in college are theoretical tools and techniques to understand and manipulate the data but in industry we are exposed to real life business problems where that knowledge is used It soon changed into a chit chat session with him conversing with the students about the college life and their future goals on the whole resulting in a good conversation It was an honor to have interacted with him We wish him all the best for all his future endeavors 2021-11-02 08:15:11
海外TECH DEV Community Type systems and type inference https://dev.to/csssr/type-systems-and-type-inference-42f8 Type systems and type inference IntroductionWith the stable growth of web projects developers found out that they need some tools that will lead to easier maintaining and writing new code Different ways can help you to verify and validate code tests contracts typing etc but now we are going to talk about type systems in different static typing languages useful in web development In this article we will focus on comparison by a couple of parameters We are not going to look for winners or losers because decisions taken on type systems in languages we are going to talk about didn t come from scratch If we were going to rate any of these languages objectively we would need to take into mind the whole ecosystem of language history advantages and limitations that appeared in languages because their design Parameters which we are going to compare How easily elegantly different conceptions can be expressed with the type system of chosen language elegancy is the subjective case so we can handle it this way if something needs more movements it means that this case is less elegant in this language Support of different features of static typing for example Pattern matching type algebra type inference etc If there are any places in the language where the type system doesn t give us any guarantees soundness unsoundness Soundness is an analyzer s ability to prove the absence of errors If a program is accepted by an analyzer then the program is guaranteed to be safe Important note type systems can not prove the correctness of programs generally some of them are powerful enough to use automatic theorem proving and in a certain range can prove correctness I d appreciate the reader to be distrustful not paranoic but that depends on the kind of software you are working on when someone pledge that type system of language X is sound Even if it is implementing a type system in which soundness is proven there is always some space for missimplementations bugs in type checker compiler etc Type system and type inferenceType inference is the ability of a language compiler to infer expression type with help of some rules Let s look at it from a historical perspective We can begin with lambda calculus which is a formal system for expressing computations based on functions and it s equivalent to a Turing machine It consists of a single transformation rule variable substitution β conversion and a single function definition scheme The central concept of lambda calculus are expressions that can be defined recursively as lt expression gt lt name gt lt function gt lt application gt lt function gt λ lt name gt lt expression gt lt application gt lt expression gt lt expression gt This really means that there is only operators keywords in it are λ and the dotAs a deep dive into lambda calculus is not part of this article there is a lot of information about it you can find The next step will be simply typed lambda calculus which is the simplest typed interpretation of lambda calculus In simply typed lambda calculus we explicitly state what type of argument is There is no space for polymorphism in simply typed lambda calculus so more complex type systems that allow it appeared later Two commonly known systems formalize the notion of parametric polymorphism System F and Hindley Milner type system The most valuable difference between them in the context of this article is type inference which is generally undecidable in System F and decidable in the Hindley Milner type system This difference comes from the next fact in System F polymorphism is explicit can occur anywhere and impredicative but in HM type system it is implicit can occur only on top level and predicative So you can consider the Hindley Milner system as a kind of restriction for System F which would allow you more flexibility with types but also requires more type annotations The actual difference between System F and Hindley Milner is that polymorphism of higher ranks and impredicative instantiation makes polymorphism first class in System F and only rank one polymorphism and predicative instantiation allows very restricted but inferable form in the Hindley Milner system If we look at parametrically polymorphic type like at function it takes some type and returns another one Which property functions in some languages should have to allow us to make higher order functions They should be first class citizens we need the ability to save them into variables to pass them into another function to return from functions in general we need the ability to manipulate them as other data values The same goes for polymorphic types when we need some forms of abstraction we may need higher rank types something like the polymorphic type that takes another mono or polymorphic type and returns another polymorphic type This feature is disabled in the Hindley Milner types system Let s look at some examples to get a closer touch with it they includes parametric polymorphism which we ll discuss in later parts of this article type Id lt A gt val A gt Afunction applyId id Id return id id Hello In that TypeScript example we ll get an error saying that we can t use generic polymorphic type as is and we have to pass type argument into it function id lt T gt val T T return val Function from the previous example must include its polymorphic definition as we can t use Id in its type we ll have to reduce it to monotype first so something like const id Id val gt val is invalid even there is no space to reintroduce type parameter to pass it further into Id Things like function applyId lt T gt id val T gt T return id id Hello won t work too you ll get error as you can instantiate applyId with type other than number or string at the same time it s signature compatible with id function For real there is one cheat in TypeScript to pass function type as a generic one usage of typeof but we ll take a look at it in later parts of this article Same for ReasonMLlet id x gt xlet applyId id gt id id Hello Here we ll get an error saying that incorrect type inferred for the second call of id wanted int but get string let applyId a id a gt a gt id id Hello We could imagine syntax like that but it s not allowed to introduce new type variables in let bindings and we only can help the type system to deduce the desired type by annotating with concrete type like let applyId id string gt string gt id id Hello Even if we separate applyId type definition and its realization we would not be able to properly type it without providing argument type to it type applyId a a gt a gt array a let apply applyId id gt id id Hello Would tell you that The type constructor applyId expects argument s Same goes for PureScript identity id iduseIdentity id id id Hello I d also mention that evenlet values id id Hello orvalues id id Hello Does not allowed in ReasonML and PureScript by TypeScript is ok with that let values id id Hello you can alsolet values id lt number gt id lt string gt Hello with the second example which shows us that explicit annotations for parametric polymorphism are possible in TypeScript This example will also produce an error Higher rank types are not allowed with implicit syntax Hindley Milner with extensions type system is a basis for both PureScript and ReasonML type systems so they can use its inference algorithm also with extensions if needed called Damas Milner algorithm W A simple description of the algorithm is it puts a limitation on a type being inferred until it has available information The most common type will be inferred This feature inherent in the languages of the ML family For cases that are complicated enough algorithm won t be able to infer accurate type if we didn t explicitly put type on parts of an inspected expression To achieve automatic type inference Hindley Milner type system restricts polymorphism where function arguments and elements of structures can only be monomorphic A hard description is long enough to take its article and involves the reader to at least have some knowledge of symbolic logic You can check it for example hereLet s see simple inference exampleiAmANumber let square x x x in square We can think about expressions like these as the simplest case of type inferenceLet s look at the simple example of inference in TypeScript const infered Hello world Infers literal type Hello world for variable infered const infered SomeObject someMethod Infers infered type based of return type of someMethod Examples of so simple cases may look strange but some time ago in old versions of popular languages we didn t have such abilities and it led to redundant verbosity especially in the case of generics in actual versions we can tell the compiler that it should infer the variable type based on the right part of an expression Also inference for ReasonML type a f string f string let x f Hello f World PureScript is not strictly based on some theoretical type system instead it is inspired by some researches as its author mention As result there is no proof of its soundness and its type system is a mix of ideas from some researches As one of them is HMF here and throughout the article we ll use HMF as is because there is no expanded name in research which is an extension of Hindley Milner type inference with first class polymorphism so it allows explicit polymorphism effectively taking features of System F HMF uses Damas Milner algorithm W with small extensions Valuable properties of HMF HMF is a conservative extension every program that is well typed in Hindley Milner is also a well typed HMF program and type annotations are never required for such programsIn practice few type annotations are needed for programs that go beyond Hindley Milner Only polymorphic parameters and ambiguous impredicative instantiations must be annotated Both cases can be specified and are relatively easy to apply in practiceThe type inference algorithm is very close to algorithm W It does not require unfamiliar operations which makes it relatively easy to understand and implementHMF extends Hindley Milner with regular System F types where polymorphic values are first class citizens To support first class polymorphism two ingredients are needed higher rank types and impredicative instantiation With higher rank types we ve already got acquainted while talking about the difference between System F and Hindley Milner system To generalize without support for higher rank types only definitions can be polymorphic while parameters or elements of structures cannot this is what you could see with id function examples before We can consider higher rank types as where polymorphism can occur when impredicative instantiation is about how it can occur It allows you to instantiate type variables with not only monomorphic types but with polymorphic types and even self references It s not a very complicated expression but for TypeScript in this case it would be impossible to infer types of iAmANumber TypeScript is using the structural type system and has its own set of rules to infer types In structural type systems equivalence and compatibility of types are defined by structure compared to nominative systems where those properties are defined by types names Supertype subtype relations in such systems are defined by structure too so in TypeScript some type A is considered as a supertype of B if B has at least all fields defined in A with the same types There are some design decisions in TypeScript based on its structural nature For example if you define id function like in ReasonML or PureScriptconst id val gt valIts type won t be inferred to a type with variable instead it infers any for parameter val TypeScript parametric polymorphism starts to work only when it is explicitly stated somewhere so in the example above parameter val got any type and all type information will be lost after you apply such id function to any value as return type will be any too inferred by the fact that you return val and it has type any It is a superpowered type in TypeScript it is assignable to any other type and vise versa You can access any fields of any and type checking will always pass When you are using any statically typed world is left behind and to get back to it you can apply type assertion operator as to get some new type TypeScript won t check that you are doing fine with that so it is good practice to check that value typed as any can be properly used as the value of target type There is a mechanism called type narrowing to help you with that There is a close but safer one in TypeScript unknown So if any is about everything available here unknown is about everything available here but you can do nothing with that because unknown is too general function whatToDoWithUnknown item unknown You can do nothing with unknown here Only type narrowing can help you to make something useful return item function whatToDoWithAny item any No rules zone console log item field const b item field item field field etc return b const a whatToDoWithAny a whatToDoWithUnknown a Example of type narrowing with type predicatesconst a any const isNumber val any val is number gt return typeof val number if isNumber a a has number type in this context So as with any you can pass anything where unknown type is expected but after there is nothing to do with that value it can be converted to useful type only by narrowing or assertion In presence of subtyping unknown is the supertype for everything as everything can be passed where unknown is expected and unknown itself can t be used anywhere when with any that rule works vise versa so unknown is more type safe feature There is also opposite to unknown never Never is a subtype for everything so no values of other types can be passed where never expected so practically you can t directly create values of never type There are no such special types in PureScript and ReasonML so TypeScript feels to have some more presence of set theory on its types including the set that contains all possible values and empty set into its type system and some operations with them will work exactly like on sets in set theory we ll look at them in the next chapter This is intuitive for structural type systems to be more related to set theory than nominative ones where PureScript and ReasonML both mostly nominative For example in set theory some set A will be a subset of some set B if all values from A also included in B with no respect to names of that sets or ways of creation for these set only fact of containing same values generates subset superset relations or equivalency And that is exactly close to what we said about structural type systems subtype supertype relations based only on structure not names If we consider structure as a set of possible values of that type that relation to set theory becomes more clear In the next examples we can see that there are cases where TypeScript can t infer types in cases where ReasonML and PureScript can do it On the other side type inference in TypeScript evolves and one of the fresher features the ability to infer types of class fields based on types of constructor parameters Classic example of TypeScript type inference weakness compared to ReasonML PureScript where the correct type of function will be inferred based on its parameters used in the bodyfunction first a number b number return a b function second a b return first a b second a b let add x y gt x y let someF x y gt add x y someF add a b a bsomeF a b add a bx someF Also it would be amiss not to mention TypeScript s literal types This feature does not exist in the other languages we are talking about When you are using a union of literal types it becomes pretty close to using enums variants You can use switch like a very poor version of pattern matching to properly work with concrete values and it also opens you opportunities to interop with something typed as string or number but if you know that there is a pool of concrete values that should go in you can type check it at a higher level and still pass your value into for example your literal type type a A is a subtype of string Also returning to one of the previous examples with idlet values id id Hello as constWe can apply as const assertion and much different type will be inferred for us Without it we had string number and with it we get Hello tuple and literals didn t get widened to their supertypes number and string So this is another example where literal types can do their job ReqasonML uses an extension of Standart ML which in its turn uses Hindley Milner system MLF as a basis Here are how ReasonML type inference differs from ML in general ML adds another condition into Hindley Milner system for generalization one of the typing rules in Hindley Milner so called value restriction the type of some variable is generalized only if it has no visible side effect ReasonML relaxes the value restriction It avoids scan of the type environment by implementing a level based generalization algorithm which is inspired by region based memory management In general MLF is strictly more powerful than HMF and every well typed program in HMF also well typed in MLF The drawback of MLF is that it goes beyond regular System F types which makes MLF considerablymore complicated This is the case for programmers that have to understand these types and meta theory of MLF the implementation of type inference algorithm and the translation to System F which is important for qualified types So if compared to HMF implementation in some languages should be less complex in theory andSo HMF ideas are close to MLF s one add support for first class polymorphism And they both have the same pitfall a programmer is required to make type annotations for cases of such polymorphism thus still leaving the program fully inferable when first class polymorphism didn t used because type inference still undecidable for it Both are not silver bullets they are just tools that could be helpful if you need that higher level of abstraction if you are ready for tradeoffs There is no much sense and it s very hard or impossible to show examples for all cases of type inference but it s important to understand that this instrument allows with help of a type checker us to write more expressive and less verbose code but to stay within the framework of static typing In conclusion I can say that in TypeScript there are much more limitations on which things will be inferred for you as being structurally typed and allowing explicit forms of polymorphism by design that leaves much more freedom on what different expressions can mean in terms of typing ReasonML and PureScript have very close inferring capabilities both have some features that ruin the ability to infer without additional annotations SoundnessTypeScript allows some unsound behavior on purpose You can check it out at TypeScript notes about it Also if you want to take a look at roots of type inference in TypeScript can check TypeScript spec but beware it s outdated archieved and not supported anymoreBeing based on MLF which is sound doesn t makes ReasonML fully sound in practice Here are some examples of unsound behavior in OCaml here and here According to this fact we can consider that ReasonML as being the dialect of OCaml may have unsound behavior too Here you can read more about it Example of almost the same code as we used in TypeScript s one You can see that ReasonML can properly infer types Also there is more complex case on ReasonMLI didn t found issues that mention unsoundness in PureScript but there are no proofs that it is fully sound        class property inference from constructors 2021-11-02 08:14:56
海外TECH DEV Community Laravel Accessors And Mutators https://dev.to/sharman/laravel-accessors-and-mutators-am4 Laravel Accessors And MutatorsHello artisans how s everything going Working with Laravel Eloquent ORM we often need to change or format the behavior of data Accessors and Mutators simply changed the format or the behavior of the data while retrieving and storing We ll see simple examples to understand these concepts easily Table Of ContentsSetup Project amp ModelAccessorsMutatorsDatabase SeederRoute amp ControllerOverview Setup Project amp ModelTo start the example we need to install and set up the model and database connection first I m using phpMyAdmin MySQL database To create a fresh Laravel application run this command in terminalcomposer create project laravel laravel demoappnow we have a fresh Laravel application I already created a database in PHPMyAdmin now go in the env file to set the database connectionDB CONNECTION mysqlDB HOST DB PORT DB DATABASE demoappDB USERNAME rootDB PASSWORD AccessorsAccessors is a get attribute in Laravel when getting data in a changed or dummy formatted attribute we use an accessor Suppose we have User model with data table columns with first name amp last name lt phpuse Illuminate Database Migrations Migration use Illuminate Database Schema Blueprint use Illuminate Support Facades Schema class CreateUsersTable extends Migration public function up Schema create users function Blueprint table table gt id table gt string name table gt string phone code table gt string phone number table gt string email gt unique table gt timestamp email verified at gt nullable table gt string password table gt rememberToken table gt timestamps public function down Schema dropIfExists users Now we want a full name attribute to concatenate both first name and last name to get full name let s see an example for a clear understandingGo to the app Models Users phpfile and write the Assessor method Syntext For Accessorsprotected fillable name phone code phone number email password Accessor Methodpublic function getPhoneAttribute return this gt phone code this gt phone number MutatorsMutator is a setter value attribute that transforms an Eloquent attribute value when it is set into the database To get an example lets again go back to app Models Users php to write a mutator method Syntext For Mutators Mutator Methodpublic function setNameAttribute value return this gt attributes name ucfirst value We are trying to convert the first character of a name string to uppercase that s why using the ucfirst function to transform the data while storing Database SeederTo test our methods we need to have some data in our database Using seeder to create data for exampleIn the database factories UserFactory php file write this factory seederpublic function definition return name gt this gt faker gt name this will create digit random numbers phone code gt this gt faker gt numerify this will create digit random numbers phone number gt this gt faker gt numerify email gt this gt faker gt unique gt safeEmail email verified at gt now password gt y IXUNpkjOrOQbyMi YeoKoEaRollC og at uheWG igi password remember token gt Str random Now need to add this in database factories DatabaseSeeders phpclass DatabaseSeeder extends Seeder public function run App Models User factory gt create Route amp ControllerIn the web php route file add this route to view the welcome page lt phpuse Illuminate Support Facades Route use App Http Controllers Controller Route get Controller class index In app Http Controllers Controller php write this functionpublic function index data User all return view welcome gt with data data This function will fetch all the data from the User Model in welcome blade phpBlade File lt DOCTYPE html gt lt html lang str replace app gt getLocale gt lt head gt lt meta charset utf gt lt meta name viewport content width device width initial scale gt lt title gt Demo App lt title gt lt link href wght amp display swap rel stylesheet gt lt link rel stylesheet href integrity sha GnxqQaoWXA RXPxPgfyIWvTNhEXmFcJlSAwiGgFAW dAiSJXm crossorigin anonymous gt lt head gt lt body gt lt div class container gt lt div class row gt lt div class card shadow p mb mt bg white rounded mx auto gt lt div class gt lt table class table table striped table dark gt lt thead gt lt tr gt lt th scope col gt lt th gt lt th scope col gt Name lt th gt lt th scope col gt Phone lt th gt lt tr gt lt thead gt lt tbody gt foreach data as d lt tr gt lt td gt loop gt iteration lt td gt lt td gt d gt name lt td gt lt td gt d gt phone lt td gt lt tr gt endforeach lt tbody gt lt table gt lt div gt lt div gt lt div gt lt div gt lt body gt lt html gt OverviewThis is our welcome blade php file where we can see data formations are changed according to the User php model Accessors and Mutators methods we are getting the phone code and phone number into phone attribute call also we are getting the names in formatted order Thats all stay tuned 2021-11-02 08:12:55
海外TECH DEV Community Database migrations in Scala https://dev.to/geirolz/database-migrations-in-scala-2lcl Database migrations in ScalaThe most famous library to handle database migrations in Java is for sure Flyway It works very well and the community edition has a lot of features as well ProblemFlyway APIs are written in the standard OOP paradigm so throwing exceptions manually managing resources etc SolutionFlys is a lightweight simple and functional wrapper for Flyway The aim of Flys is straightforward wrapping the Flyway APIs in order to guarantee referential transparency pureness resource handling and type safety To achieve this goal Flys use the typelevel libraries cats and cats effect Getting startedThe first step import the Flys library in our SBT project So add the dependency in your build sbt file Flys depends on Flyway so we ll have access to Flyway as well check the GitHub repo for the latest version libraryDependencies com github geirolz flys core Migrations filesAs the plain Flyway we have to create a folder that will contain our migrations scripts often in resources db In this folder we have to put all our migration We can have Baseline migrationsRepeatable migrationsUndo migrationsFor this example we are going to use a simple baseline migration to add a table to our database schema Baseline migrations are versioned and executed only when needed The version is retrieved from the script file name So in this case V create user table sql the version will be remember the double underscore after V Here we have our first migration for MySQL database resources db V create user table sqlCREATE TABLE user id bigint NOT NULL AUTO INCREMENT PRIMARY KEY name varchar NOT NULL surname varchar NOT NULL Defining database configuration optional A good practice is to create a case class to handle the database configuration this combined with PureConfig or other config libraries makes your app very robust from the configuration point of view Let s create a simple case class to achieve this case class DatabaseConfig url String user Option String password Option Array Char migrationsTable String migrationsLocations List String N B apart from the common fields such url user and password we ll use migrationsTable to define the Flyway table name used to store the migration status and migrationsLocations to specify a list of the folders that contain our migration scripts Instantiating FlysOk so now we have all our migration scripts in our folder resources db we have Flys as a dependency of our project and we have a case class that will contain the database configuration To instantiate Flys we can use make to create a new DataSource under the hood starting from the parameters or makeFor in order to create it for an already existent DataSource for example from Doobie HikariDataSource make and makeFor method returns a Resource type class that when released interrupted safely close the DataSource connection In both make and makeFor methods we can specify the parameter config FlysConfig is a trivial wrapper for flyway Configuration but instead of having a builder we have a case class val dbConfig DatabaseConfig val flysRes Resource IO Flys Flys make IO url dbConfig url user dbConfig user password dbConfig password config FlysConfig table dbConfig migrationsTable locations Location of dbConfig migrationsLocations Using FlysOk we have done with the configuration We are ready to migrate our database schema with the power of Flyway and the safety of Functional Programming We can use use or evalMap from Resource to safely access to the Flys instance In case we have multiple Resources in our application probably evalMap allow us to better combine them using and release them all together at the same time We can create a simple utility method to do this private def migrateDb dbConfig DatabaseConfig Resource IO Unit Flys make IO url dbConfig url user dbConfig user password dbConfig password config FlysConfig table dbConfig migrationsTable locations Location of dbConfig migrationsLocations evalMap flys gt for lt logger debug s Applying migration for dbConfig name migrationResult lt flys validateAndMigrate IO result lt logger info s Applied migrationResult migrationsExecuted migrations to dbConfig name database yield ConclusionsWe have done it So to recap we have Created a folder under resources to put our migrations db Imported Flys as a dependency in our projectCreated a configuration case class to describe our database configurationInstantiated a Flys instance creating a new DataSourceMigrated our database using validateAndMigrateAt the application shutdown interruption Resource from cats effect will safely release the DataSourceWith a few lines we have migrated our database safely handling the connection and the configuration As flyway Flys provides multiple methods such as validateAndMigratemigrateundovalidatecleaninfobaselinerepair Useful links 2021-11-02 08:12:19
海外TECH DEV Community What is AWS IoT Core and how do I use it? https://dev.to/mjudeikis/what-is-aws-iot-core-and-how-do-i-use-it-3ilj What is AWS IoT Core and how do I use it Synpse is an end to end platform to manage your device fleet that can grow to hundreds of thousands of devices perform OTA software updates collect metrics logs deploy your containerized applications and facilitate tunnel based SSH access to any of your device You can find a Quick Start here Intro into AWS IoT CoreWe often get questions about how Synpse is compared or competes with the AWS IoT Core service The short answer is that they operate in slightly different domains AWS IoT Core focuses on application connectivity of the devices while Synpse targets deployment of the applications that may or may not be using services such as IoT Core The best results are achieved when solutions are used together For example when you build an application locally that utilizes AWS IoT Core message broker or device state services and then use Synpse to distribute your application to thousands of devices Disclaimer While the AWS landing page says Easily and securely connect we found that it s not true Setup is quite complicated so buckle up backaroo Example applicationIn this tutorial we will deploy a simple open source application that collects metrics and send them to AWS IoT Core for further processing All code for this blog post can be found at Sample metrics application AWS IoT Core exampleSteps Set up AWS IoT CoreConfigure rules to forward data into the S bucketCreate AWS device Thing for SynpseDeploy a demo Synpse application from microservices Metrics collector NATS broker example Python app that forwards data to AWS IoT Core Technologies usedSynpse manage devices and deploy applications to themNATS a lightweight message broker that can run on premAWS IoT Core message broker between all devices and AWS AWS IoT CoreFor this application to work we need to setup AWS IoT Core and its pre requisites AWS uses certificate authentication by default for all IoT devices AWS IoT Core pageInside AWS IoT Core page navigate to Manage sub page Create a Thing with AWS generated certificates Download certificates to your workstation We will need them later AWS IoT S pageInside the AWS IoT S page create an S bucket for metrics to be stored We gonna use it later Create Act RuleGo back on the IoT Core page navigate to the ACT subpage We will create a new Rule for our metrics Rule creation involved multiple steps like creating the rule itself granting access with policy and finalizing the setup Create policy and attachWe will need to create a policy to publish events and attach it to the certificate we generatedThe policy document is as below yaml Version Statement Effect Allow Action iot Connect iot Receive iot Publish iot Subscribe Resource Attach the policy to a certificate used by Thing Get endpointYou will need an endpoint for your IoT Core You can get it via CLI bashaws iot describe endpointOr navigate via UI Deploy an applicationWe have downloaded certificates in the first step Let s create Synpse secret with those certificatesbashsynpse secret create aws cert file fbabbfbadfacdacadfcdbdcecefae certificate pem crtsynpse secret create aws key file fbabbfbadfacdacadfcdbdcecefae private pem keysynpse secret create aws root ca file AmazonRootCA pemDeploy Synpse application Modify application yaml with your thing endpoint and messaging topic synpse deploy f synpse aws example yamlwhere synpse aws example yaml is yamlname AWS IoT Coredescription AWS IoT Core Synpse examplescheduling type Conditional selectors aws iotspec containers name natsimage natsname appimage quay io synpse metrics nats example appname aws iotimage quay io synpse aws iot core exampleforcePull trueargs endpoint apuiwfnw ats iot us east amazonaws com cert server gateway certificate pem key server gateway certificate key root ca server gateway AmazonRootCA pem topictest topiccommand server aws pysecrets name aws certfilepath server gateway certificate pemname aws keyfilepath server gateway certificate keyname aws root cafilepath server gateway AmazonRootCA pem Once running you should see the application running and data coming into the AWS S accountAt this point you might thing This was not as hard as you told us We did all the steps using AWS Console UI Github repository contains more detail steps how to achieve same result via CLI Good luck Things to look forAWS CLI was a disaster years ago and it still is Either API is consistent or CLI should be advanced enough to abstract inconsistencies In AWS case API documentation is very poor and if it is there it just doesn t work But if you are comfortable clicking UI you are good In my personal opinionAWS still does a good job to keep their things proprietary Wrapping upThis is a simple way to use AWS IoT Core with Synpse When it comes to consuming and managing a lot of data constructing complex applications and integrating seamlessly into your current infrastructure nothing can beat public cloud But where the cloud is lacking IoT device and application management Public cloud providers are built on assumption that they will manage infrastructure for you When it comes to devices itself hardware is owned by you so there s little incentive for them to manage fleets of machines that they can t be properly billing for If you have any questions or suggestions feel free to start a new discussion in our forum or drop us a line on DiscordOriginally published at 2021-11-02 08:11:35
海外TECH DEV Community Top Resources to Learn About WordPress Block Theme for Developers https://dev.to/wpmetabox/top-resources-to-learn-about-wordpress-block-theme-for-developers-47a3 Top Resources to Learn About WordPress Block Theme for DevelopersAs we mentioned in the article about Full Site Editing and others in this series before block themes or block based themes and the Full Site Editing FSE feature are changing the way we build WordPress sites In each WordPress version the block editor is updated with new features until it s completely integrated with the core So users developers and theme makers surely need to prepare themselves and keep updated every day for this revolution That s why finding resources to learn about block themes is important We re going to show you the most prestigious comprehensive and accurate resources to learn about block themes in this article But first let s dig into how building block based themes are different from traditional WordPress themes Building a Block Theme vs a Traditional ThemeUnlike traditional themes when switching to WordPress block themes developers have to learn a totally different method First and foremost developers have to use HTML files for templates instead of PHP files For example this is the page template of TT block theme You can see the comment wrapper lt gt with the inside attributes It s the blocks of the theme The template files of this block theme are built completely from these blocks Therefore block themes are faster lighter and more performative than traditional themes You can see more details in the comparison between page builders and Gutenberg here Secondly in block based themes all the website settings are concentrated in one area named Global Styles instead of different areas like Customizer Widget Menu Developers need to use theme json file to set up the Global Styles which can be the substitute feature of Customizer Right now the Global Styles feature is still under development and was partially integrated into WordPress Finally with block themes all the features to build your desired appearance are already built in within the WordPress core So users don t need to install a lot of rd party plugins extensions and widgets like in the past In that way you won t need to care if you forget to update any plugin or whether you deactivate them then your website will be affected or not Block themes will give users more power especially for those who do not know much about code or don t want to use code Through the drag and drop blocks the user experience becomes much easier and more enjoyable If you want to learn more about block themes and building block themes here are very useful resources on the Internet that we have collected selected and of course also learned a lot from News About Block ThemesGutenbergtimes comAs said by name Gutenberg Times is the Gutenberg focused news website The one behind this site is a famous person Birgit Pauli Haack a member of the Southwest Florida WordPress Meetup organizers and WordPress Global Community Team Since November she has been the representative of the Block Editor End User Documentation team with many contributions to the community Following closely the WordPress block editor project from the early days Gutenberg Times provides multidimensional information from many different sources This is a reputable address for those interested in block themes whenever they need to update news This Gutenberg specific news channel provides information in a variety of formats You can watch the Live Q amp A where Birgit Pauli Haack interacts online with developers Automattic staff and key people on Gutenberg related projects If you love podcasts Gutenberg Times has a Gutenberg Changelog program This podcast discusses the changes in the updated version of Gutenberg In addition you can also find many news tutorials and resources on block themes and full site editing that are always updated in time WPTavernWP Tavern is a WordPress news site that is followed by a lot of developers WP Tavern s news section is updated constantly about articles a week If you want to keep up with the wave of WordPress development in general and block themes in particular this is an address that you need to visit every day What makes WP Tavern attractive is the updated information and the sharp views of writers Under each article you can see many comments from developers in the community From there you can even understand more about current views in the WordPress community Here are the valuable articles on block themes of WP Tavern we highly recommend  Automattic Releases Quadrat a Block Based Podcasting WordPress Theme We have a review of Quadrat block theme in our blog here  The WordPress org Block Pattern Directory Is Now Live Full Page Patterns Are Still the Missing Piece of Block WordPress Theme Development Theme Creation Will Be Easier But We Are Not There YetBlock Patterns Will Change Everything Part Headers and Footers Block Patterns Will Change Everything You can find all the WordPress theme related content in WP Tavern here WPTavern also has a Podcast channel as well as an Events section for upcoming events in the WordPress community Perhaps you can get a lot of information about block themes here next month Make wordpress orgIt would be a pity to skip the make wordpress org site This is a place where anyone can contribute to WordPress by participating in discussions helping with translations spotting bugs etc Whether you are an expert in programming or just a newbie in WordPress you are always welcome here For a general overview of WordPress projects you can check out the Roadmap page It annually updates the information about WordPress in general and Gutenberg editor block themes in particular There are also quarterly or monthly weekly updates in Make WordPress As for block based themes Make WordPress has its own chat group called Block Based Themes Chat on Slack for people to discuss Here you will find developers from all over the world discussing block themes at all times of the day Furthermore you can keep track of the weekly meeting notes in the group chat here Documentation to Learn About Block ThemesThere is no need to spend too much time looking for resources to learn about block themes when you have wordpress org There is a guide to block editor including a detailed guide on block themes here You will find the most accurate concepts of block themes and learn about them in an essential way It s especially suitable for beginners to learn about block themes from scratch here However because the knowledge in this section is highly academic you may find it a bit difficult at first I think it would be better to combine learning with the other resources I mentioned above GithubWordPress developers are already so familiar with Github The repository for the Gutenberg projects has pretty clear instructions in the README md section so you can easily know how to use develop and contribute to the project In the Issues section you can also find the following labels for real time updates on the block theme   Feature Full Site Editing  Feature Themes  Feature Patterns Global StylesCourses and Tutorials For Block ThemesWpdevelopment coursesThe WP Development Courses site was built by Fränk Klein a programming engineer in Luxembourg He has participated in many big projects and is the author of the Block based Bosco theme Bosco theme is one of the block themes developed at the very beginning of the Gutenberg project This theme is popularly used by developers to test the new features of Full Site Editing On his website Fränk shares many in depth knowledge and tutorials on how to make and develop a block theme Fränk also helps readers apply that knowledge directly to his Block based Bosco as an effective and practical case study Besides Fränk also has the course Building Block Based Themes on his website In this course you ll get hands on instruction on building block themes You only need to buy this course once for Whenever there is a new change from Gutenberg you will be updated in this course as well This price may be quite high for many people But the course is promising to be worth your money because you can receive knowledge from a leading block theme expert The course consists of sections  Section Building a Basic Blog Theme Section Template Parts Section Navigation Menus Section Templates Section Styling Blocks amp TemplatesFullsiteediting comIf you follow the Yoast team you will know Carolina Nymark This web developer is the woman behind Fullsiteediting com She is also a core WordPress contributor and has a passion for the development theme and the Gutenberg project On this site Carolina has built Full Site Editing courses for both developers and site editors who don t have much experience Currently the number of documents and guides about block themes on the Internet is not many so the sufficient course as Carolina is valuable In the course for developers Carolina provides very detailed and easy to understand knowledge including instructions on how to create an environment for theme development explaining basic concepts like FSE Block Grammar Block Properties Block styles Block Variations Block Patterns At the end of the course you will know how to write a basic block theme and how to work with templates template parts and theme json Furthermore fullsiteediting com has many useful articles and referrals to other block themes development resources Themeshaper comAs the site of Automattic theme s team members themeshaper com is a reputable source of information worth checking out The articles in themeshaper com are quite in depth They help you understand better the process of building a block theme from the insiders from designing to forming a full featured theme While the Gutenberg project is still under development themeshaper com has many specialized articles related to block themes such as  Getting Started with Block Themes Patterns Getting Started with Block Themes Global Styles Getting Started with Block Themes Templates Getting Started with Block ThemesYou can find all articles about block themes on themeshaper com here In addition to the courses and tutorials listed above there are many other resources on Google or Youtube that you can find Please comment to let us know some additional resources that you think should be added to this list Well there is another cool part which is the block themes that you can download to experience and learn Sample Block Themes to ExperienceHere are the block themes on WordPress repository that are used and experienced widely by developers  Blockbase by Automattic vàcác child theme Mayland Blocks Seetled Blocks Quadrat TT Block the block based version of Twenty Twenty one Armando by Carolina Nymark Block Based Bosco by Frank Klein Naledi vàClove by Anariel Design Hansen by uxlDid you notice that there are two authors that we mentioned above Carolina Nymark and Fränk Klein You can also download the trial versions of the block theme on Github here Final WordsFull Site Editing and block themes are still under development and they can change rapidly If you don t want to be outdated or left behind you should learn about block themes and block editors from now on The resources that I have compiled above can help you keep up with the changes and new trends of WordPress Whether you want to develop block themes or just start to learn and explore them follow us so that you won t miss the upcoming interesting articles 2021-11-02 08:06:35
海外TECH DEV Community How to pull yourself out of the tutorial hell? https://dev.to/swastikyadav/how-to-pull-yourself-out-of-the-tutorial-hell-4nm2 How to pull yourself out of the tutorial hell In a nutshell tutorial hell is the process of watching tutorials endlessly and getting a false sense of knowledge I have been there watching tutorials after tutorials thinking I got this ending up with a blank screen and then watching more tutorials This is a vicious cycle Today I will share my experience how I got out of the tutorial hell and how you can too So let s discuss the problems with the tutorial hell and why it should be avoided at all costs The ProblemsIt feels that tutorial hell exists mainly in the field of programming Because you don t get false confidence to ride a bicycle by watching how to ride a bicycle tutorials You need to get on a bicycle fall a few times and eventually you build your muscle memory How do people get better at their skills With practise right Runners run Writers write Public speakers speak Dancers dance Players play But Programmers Watch Tutorials Tutorial hell appears to trouble self taught developers the most Because unlike boot camps they don t have a defined curriculum and deadlines Tutorials don t challenge you They just give you solutions right away You need to be in the Goldilock zone to be productive and actually learn something The SolutionsThe first step to get out of tutorial hell is to accept that you are in there A lot of beginners don t want to accept this because this way they can be in their comfort zone and getting out of their comfort zone takes some effort So accept it Get yourself a mentor A mentor can keep you in the goldilocks zone and provide guidance whenever needed It is far better than relying on tutorials Reach out to your favorite dev online most people are humble enough to guide you Build your own projects You don t have to build a full stack app at once Start small start with what you know Let me share a few of my projects that I build to get out of the tutorial hell Twitter home page UI cloneYoutube home page UI cloneKnowledge Library A simple JS crud appEmbeddable Twitter Profile A JS app using twitter APIA basic social media app Build with React and NodeYou can see how I increased the difficulty level for each project None of the above project is perfect but they helped me learn a lot and build my confidence not the false confidence that tutorials build Teach others The best way to learn is to teach others This will solidify your learnings to the optimal level If you don t have anyone to teach take notes and start writing blogs Read Documentation Get into the habit of reading documentation Sometimes instead of watching tutorials try reading docs docs won t put you in the tutorial hell As a developer you must develop the habit of reading docs anyways That s all I wanted to share Hopefully this will help you get out of the tutorial hell I am building a platform to help beginners learn to code without the tutorial hell by helping them build real world projects If you are interested please check out the project at Lessons And subscribe to the NewsLetter Thank You Originally Written at 2021-11-02 08:02:10
海外科学 NYT > Science Biden Administration Moves to Limit Methane, a Potent Greenhouse Gas https://www.nytimes.com/2021/11/02/climate/biden-methane-climate.html Biden Administration Moves to Limit Methane a Potent Greenhouse GasA new rule will be announced at a U N summit where the United States is facing skepticism about its commitment to climate change aides said 2021-11-02 08:17:19
海外科学 BBC News - Science & Environment COP26: World leaders promise to end deforestation by 2030 https://www.bbc.co.uk/news/science-environment-59088498?at_medium=RSS&at_campaign=KARANGA brazil 2021-11-02 08:52:52
金融 RSS FILE - 日本証券業協会 グリーン/ソーシャルボンド・コンファレンス(2021年11月12日)の開催について https://www.jsda.or.jp/about/international/green_socialbondconference2021.html 年月日 2021-11-02 09:00:00
金融 RSS FILE - 日本証券業協会 国際資本市場協会(ICMA)主催「エグゼクティブ研修コース」(2021年11月11日)の開催について https://www.jsda.or.jp/about/international/executivetrainingcourse2021.html 資本市場 2021-11-02 08:59:00
海外ニュース Japan Times latest articles Nippon Ishin faces fundamental hurdles to further electoral success https://www.japantimes.co.jp/news/2021/11/02/national/politics-diplomacy/nippon-ishin-key-hurdles/ coalition 2021-11-02 17:46:44
ニュース BBC News - Home COP26: World leaders promise to end deforestation by 2030 https://www.bbc.co.uk/news/science-environment-59088498?at_medium=RSS&at_campaign=KARANGA brazil 2021-11-02 08:52:52
ニュース BBC News - Home Fishing row: France delays sanctions as talks over access continue https://www.bbc.co.uk/news/uk-politics-59127717?at_medium=RSS&at_campaign=KARANGA access 2021-11-02 08:20:20
ニュース BBC News - Home MPs call for five year delay in all-lane smart motorways https://www.bbc.co.uk/news/uk-england-59125133?at_medium=RSS&at_campaign=KARANGA permanent 2021-11-02 08:49:20
ビジネス ダイヤモンド・オンライン - 新着記事 日経平均株価は、衆院選を無事通過したことで、25日 移動平均線を割るまで「強気」でOK! 数十兆円規模が 見込まれる岸田首相の「大型の経済対策」にも期待大! - 成り上がり投資術 https://diamond.jp/articles/-/286538 2021-11-02 17:45:00
ビジネス ダイヤモンド・オンライン - 新着記事 JALUX(2729)、株主優待の廃止と無配を発表! TOB価格は本日終値の1.5倍に決定して、夜間取引では 株価が23%超も上昇、祝日明けもストップ高は確実か - 株主優待【新設・変更・廃止】最新ニュース https://diamond.jp/articles/-/286531 JALUX、株主優待の廃止と無配を発表TOB価格は本日終値の倍に決定して、夜間取引では株価が超も上昇、祝日明けもストップ高は確実か株主優待【新設・変更・廃止】最新ニュース双日グループの商社で、空港内売店の運営などを手掛けるJALUXが、株主優待を廃止することを年月日の時に発表した。 2021-11-02 17:30:00
ビジネス ダイヤモンド・オンライン - 新着記事 住友精化(4008)、「増配」を発表して、配当利回りが 3.0%⇒3.6%に! 年間配当額は1年で1.2倍に増加、 2022年3月期は前期比20円増の「1株あたり120円」に - 配当【増配・減配】最新ニュース! https://diamond.jp/articles/-/286533 住友精化、「増配」を発表して、配当利回りが⇒に年間配当額は年で倍に増加、年月期は前期比円増の「株あたり円」に配当【増配・減配】最新ニュース住友精化が、年月期の配当予想の修正増配を発表し、配当利回りがに住友精化は、年月期の年間配当を前回予想比で「円」の増配、前期比でも「円」の増配となる「株あたり円」に修正すると発表した。 2021-11-02 17:20:00
ビジネス ダイヤモンド・オンライン - 新着記事 ダウ3万6000ドル、20年前の「予言」現実に - WSJ発 https://diamond.jp/articles/-/286557 現実 2021-11-02 17:01:00
ビジネス 不景気.com ピクセルカンパニーズが取立不能おそれ、「アラインジャパン」破産で - 不景気.com https://www.fukeiki.com/2021/11/pixel-companyz-debt-collection.html 太陽光発電 2021-11-02 08:20:24
ビジネス 不景気.com 秋田の劇団「わらび座」が民事再生法申請、負債14億円 - 不景気.com https://www.fukeiki.com/2021/11/warabiza.html 株式会社 2021-11-02 08:07:11
サブカルネタ ラーブロ 香辣居 8号店@西大島この日は、コッチ方面に用事で来たので、西大島のコチラヘオーダ... http://feedproxy.google.com/~r/rablo/~3/_Q_YInCwRQU/single_feed.php instagram 2021-11-02 08:14:44
GCP Google Cloud Platform Japan 公式ブログ BigQuery Omni が AWS と Azure で利用可能になり、クロスクラウド データ分析が実現 https://cloud.google.com/blog/ja/products/data-analytics/analyze-data-across-clouds-with-bigquery-omni/ 年には、新しい機能としてクロスクラウド転送と承認された外部テーブルが追加され、データアナリストは管理されたクロスクラウドのシナリオとワークフローをすべてBigQueryインターフェースから操作できるようになります。 2021-11-02 10:00:00
北海道 北海道新聞 鳥インフル警戒引き上げ 韓国で発生、監視強化 https://www.hokkaido-np.co.jp/article/607254/ 引き上げ 2021-11-02 17:19:00
北海道 北海道新聞 台湾「日本が出兵協力」58% 中国の武力攻撃に対して https://www.hokkaido-np.co.jp/article/607253/ 武力攻撃 2021-11-02 17:19:00
北海道 北海道新聞 「新しいヒグマ」どう向き合う? ヒグマの会、6日にフォーラム https://www.hokkaido-np.co.jp/article/607252/ 道内 2021-11-02 17:19:00
北海道 北海道新聞 ソフトB、藤本新体制がスタート 「土台つくる」 https://www.hokkaido-np.co.jp/article/607243/ 全体練習 2021-11-02 17:12:00
北海道 北海道新聞 原油高で相談窓口、道内66カ所 道経済産業局 https://www.hokkaido-np.co.jp/article/607241/ 中小企業 2021-11-02 17:12:00
北海道 北海道新聞 奈良の橿考研博物館リニューアル 3日再開、藤ノ木古墳の馬具展示 https://www.hokkaido-np.co.jp/article/607242/ 藤ノ木古墳 2021-11-02 17:12:00
IT 週刊アスキー フレンチ料理長とベーカーシェフのコラボパン! 横浜ベイシェラトン ホテル&タワーズで「黒トリュフとローストビーフの贅沢サンド」が発売中 https://weekly.ascii.jp/elem/000/004/073/4073942/ 贅沢 2021-11-02 17:20:00
マーケティング AdverTimes ポケットカード、日常に溢れるクリエイティブを表現した動画を募集/BOVA 2022 https://www.advertimes.com/20211102/article367567/ 2021-11-02 08:24:06
海外TECH reddit “若い世代”ほど自民党支持 https://www.reddit.com/r/newsokuexp/comments/qkziyn/若い世代ほど自民党支持/ tornewsokuexplinkcomments 2021-11-02 08:14:21
ニュース THE BRIDGE 理髪店特化SaaS「Squire」CEOが語る、〝トランザクション×Fintech〟の重要性 http://feedproxy.google.com/~r/SdJapan/~3/5YAL0HKlFVs/squire-fintech-all-star-saas-fund 理髪店特化SaaS「Squire」CEOが語る、〝トランザクション×Fintech〟の重要性本稿はベンチャーキャピタル、ALLSTARSAASFUNDが運営するサイトに掲載された記事からの一部を転載したもの。 2021-11-02 08:00:49
GCP Cloud Blog JA BigQuery Omni が AWS と Azure で利用可能になり、クロスクラウド データ分析が実現 https://cloud.google.com/blog/ja/products/data-analytics/analyze-data-across-clouds-with-bigquery-omni/ 年には、新しい機能としてクロスクラウド転送と承認された外部テーブルが追加され、データアナリストは管理されたクロスクラウドのシナリオとワークフローをすべてBigQueryインターフェースから操作できるようになります。 2021-11-02 10:00: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件)