AWS |
AWS Machine Learning Blog |
Getting started with the Amazon Kendra Box connector |
https://aws.amazon.com/blogs/machine-learning/getting-started-with-the-amazon-kendra-box-connector/
|
Getting started with the Amazon Kendra Box connectorAmazon Kendra is a highly accurate and easy to use intelligent search service powered by machine learning ML Amazon Kendra offers a suite of data source connectors to simplify the process of ingesting and indexing your content wherever it resides For many organizations Box Content Cloud is a core part of their content storage and lifecycle management … |
2022-04-08 16:10:06 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
argparseのノート |
https://qiita.com/TomokiYamashit3/items/269d92e044fd1d3f56c8
|
rgparseargumentparserpars |
2022-04-09 01:29:08 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
【LINE Messaging API】複雑な単語検索ができるLINE Botを作った |
https://qiita.com/probabilityhill/items/d3ae1c862bad592cd28c
|
linebot |
2022-04-09 01:53:33 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
【Recoil入門】Selectorの使い方 |
https://qiita.com/itachi/items/02688096bc5734396e8e
|
recoil |
2022-04-09 01:27:07 |
golang |
Goタグが付けられた新着投稿 - Qiita |
Goのcontext実装にお手本のようなDouble-Checked Lockingが利用されていた話 |
https://qiita.com/behiron/items/05ef5ad206c918e12f55
|
contextco |
2022-04-09 01:30:34 |
海外TECH |
Ars Technica |
Google Maps brings traffic-light and stop-sign icons to navigation |
https://arstechnica.com/?p=1846789
|
navigation |
2022-04-08 16:39:34 |
海外TECH |
MakeUseOf |
What's an IP Conflict and How Do You Resolve It? |
https://www.makeuseof.com/tag/whats-ip-conflict-resolve/
|
address |
2022-04-08 16:30:13 |
海外TECH |
MakeUseOf |
5 Ways to Fix the Windows 10 On-Screen Keyboard When It's Not Working |
https://www.makeuseof.com/windows-10-on-screen-keyboard-not-working/
|
Ways to Fix the Windows On Screen Keyboard When It x s Not WorkingFixing a physical keyboard is simple enough but what about a digital one Here s how to fix a malfunctioning Windows on screen keyboard |
2022-04-08 16:15:13 |
海外TECH |
DEV Community |
🧑💼Profile Card | html & CSS✨ |
https://dev.to/robsonmuniz16/profile-card-html-css-1o81
|
Profile Card html amp CSSCreate a Profile Card using HTML amp CSS step by step from scratch Markup lt DOCTYPE html gt lt html lang en gt lt head gt lt meta charset UTF gt lt title gt Profile Card HTML CSS lt title gt lt link rel stylesheet href style css gt lt link rel stylesheet href gt lt head gt lt body gt lt section gt lt div class personal gt lt span class pro gt Pro lt span gt lt img src img Avatar jpg alt gt lt h class name gt Sarah Smith lt h gt lt p class country gt UK lt p gt lt p class stack gt Full Stack Developer lt p gt lt button class primary gt Message lt button gt lt button class secondary gt Following lt button gt lt div class social gt lt a href gt lt i class fa brands fa linkedin in gt lt i gt lt a gt lt a href gt lt i class fa brands fa twitter gt lt i gt lt a gt lt a href gt lt i class fa brands fa instagram gt lt i gt lt a gt lt a href gt lt i class fa brands fa github gt lt i gt lt a gt lt a href gt lt i class fa brands fa youtube gt lt i gt lt a gt lt div gt lt div gt lt div class skills gt lt h gt Skills lt h gt lt ul gt lt li gt HTML lt li gt lt li gt CSS lt li gt lt li gt JavaScript lt li gt lt li gt React lt li gt lt li gt NodeJS lt li gt lt li gt Express lt li gt lt li gt Mongodb lt li gt lt ul gt lt div gt lt section gt lt body gt lt html gt CSS import url wght amp display swap padding margin webkit box sizing border box moz box sizing border box box sizing border box body font Poppins sans serif background color f display flex justify content center ms align items center align items center min height vh color bbcd section width rem position absolute box shadow px px px px rgba personal background color e padding rem rem text align center personal name margin top rem personal country font size rem margin rem personal stack font size rem margin top rem personal button border px solid bfcb padding rem rem border radius rem font size rem cursor pointer margin rem personal button primary background color bfcb color e personal button secondary background color transparent color c personal pro background color febbb color e border radius rem font size rem padding rem rem position absolute top rem left rem personal img width rem height rem border radius border rem solid bfcb social i font size rem margin rem rem color bbcd transition color s fa linkedin in hover color ac fa twitter hover color daf fa instagram hover color caa fa github hover color fa youtube hover color ff skills background color fa padding rem rem skills h text transform uppercase font size rem margin bottom rem skills ul li display inline block list style type none font size rem border px solid padding rem border radius rem margin rem rem Follow me on for more like this️ Youtube ️Facebook |
2022-04-08 16:44:10 |
海外TECH |
DEV Community |
Laravel 9 - Open-Source Full-Stack Starters |
https://dev.to/sm0ke/laravel-9-open-source-full-stack-starters-4be9
|
Laravel Open Source Full Stack StartersHello Coders This article presents a curated list of open source starters and templates crafted on top of Laravel the latest version All mentioned products can be downloaded from Github MIT License and used for commercial projects or eLearning activities For newcomers Laravel is a leading PHP web framework used to code secure blazing fast backend projects Thanks for reading Content provided by Admin DashboardsSoft Dashboard Laravel Livewire Product pageWhite Dashboard Laravel Product pageMaterial Dashboard Laravel Product pageArgon Dashboard Laravel Product pageVue Paper Dashboard Laravel Product pageMore Free Laravel Templates crafted by Creative Tim Laravel Update SummaryLaravel is now released and includes many new features including a minimum PHP v version controller route groups a refreshed default Ignition error page Laravel Scout database engine Symfony mailer integration Flysystem x Improved Eloquent accessors mutators and many more features Update Summary Laravel x requires a minimum PHP version of Symfony Mailer is used instead of Swift Mailer libraryFlysystem dependency updated to Flysystem x Improved Eloquent Accessors MutatorsController Route Groups improvementsAnd many more For the complete information and migration guide please access the official release page Soft UI Laravel LivewireSoft UI Dashboard Laravel comes with dozens of handcrafted UI elements tailored for Bootstrap and an out of the box Laravel backend The Livewire integration allows you to build dynamic interfaces easier without leaving the comfort of your favorite framework If you combine this even further with Alpine js you get the perfect combo for kickstarting your next project Soft Dashboard Laravel Livewire Product pageSoft Dashboard Laravel Livewire LIVE demo White Dashboard LaravelWhite Dashboard Laravel combines colors that are easy on the eye spacious cards and beautiful typography making it a great tool for managing and visualizing data White Dashboard Laravel Product pageWhite Dashboard Laravel LIVE DemoWhite Dashboard Laravel comes with a ready to use login register and profile editing a must have for any app you re going to build Instead of investing time in doing the integration you have a boilerplate which lays the foundation for you Material Dashboard LaravelMaterial Dashboard FREE Laravel comes with implemented frontend components which you can combine and modify to your liking using SASS files Every element has multiple states for color style hover and focus Material Dashboard Laravel Product pageMaterial Dashboard Laravel LIVE DemoExample pages Whether you are looking for inspiration or simply want to offer your clients a quick glimpse the pre built example pages can jump start your next project Switching from the pre built examples to a real web app has never been easier Argon Dashboard LaravelArgon Dashboard is built with over frontend individual components giving you the freedom of choosing and combining All components can take variations in color that you can easily modify using SASS files Argon Dashboard Laravel Product pageArgon Dashboard Laravel LIVE Demo Vue Paper Dashboard LaravelVue Paper Dashboard Laravel combines Vue js components and plugins with a clean design and an API powered Laravel backend Vue Paper Dashboard Laravel Product pageVue Paper Dashboard Laravel LIVE DemoPaper Dashboard is built on top of Bootstrap so it fully supports it Most of the elements from the dashboard are re designed to resemble sheets of paper and color pastels If they are elements that we have not touched they will gracefully fall back to the Bootstrap default Thanks for reading For more resources feel free to access More Free Dashboards crafted in Django Flask and ReactMore Admin Dashboards a huge index with products |
2022-04-08 16:37:47 |
海外TECH |
DEV Community |
Securing Containers with Seccomp: Tutorial |
https://dev.to/gitguardian/securing-containers-with-seccomp-a-primer-421h
|
seccomp |
2022-04-08 16:33:45 |
海外TECH |
DEV Community |
2FA Login Plugin Featuring TOTP |
https://dev.to/backendless/2fa-login-plugin-featuring-totp-1hcd
|
FA Login Plugin Featuring TOTPThe FA Login plugin enables applications built with Backendless to provide an authentication option where a user can log in using the TOTP Time based One Time Password form of two factor authentication FA With this approach users of your Backendless powered app can use a TOTP authenticator app such as Google Authenticator Twilio s Authy and Microsoft Authenticator apps to login with a password generated by those apps The FA Login plugin introduces a workflow with the APIs to coordinate the login process which you can explore further in the docs FA provides one more layer of security for your app and the plugin is a powerful additional to our comprehensive suite of User Management tools What is Factor Authentication FA Two factor authentication FA is an authentication process that requires two factors to login something you know like a password and something you have like a phone or security token factor authentication is a designed to improve app data security Adding FA support to your app can help protect your data from unauthorized access in case a user s login identity username email etc and password are compromised What is TOTP TOTP is a method of authentication that uses an app on the user s mobile device to confirm the user s login before allowing access to their account TOTP can be used to protect accounts that hold sensitive information such as bank accounts cloud storage accounts and email accounts TOTP is a type of two factor authentication that uses a six digit code or one time passcode OTP or one time tokens generated by an authenticator app The code changes every seconds so it s unique for each login attempt How Does TOTP Work TOTP is based on the time and a secret key so the server can generate the same code as the authenticator app To complete the login process the user manually enters the time based code from the authenticator app into the app built with Backendless which confirms the code before authenticating the user Codes generated by the authentication process become inactive after the time lapses acting as an additional layer of security There are multiple TOTP apps in both the Google Play Android and Apple App Store iOS Some examples of these are Google Authenticator Microsoft Authenticator and Twilio Authy Using an authenticator app along with TOTP further enables Backendless developers to restrict access to sensitive data making Backendless even more secure for enterprise level applications How to Enable FA in Your Backendless AppTo enable two factor authentication in your application you ll need to use the FA Login plugin and its APIs You can add the plugin for free by visiting Backend gt Marketplace gt API SERVICES gt All Services in your Backendless app To verify the installation visit the Cloud Code section of your backend and you should see the TOTP service in your list of API services The FA plugin supports FA at the individual user level You can enable FA for the entire app or individual users can individually enable it through your app Implementing TOTP With FAIn a TOTP app the user needs to scan a QR code or enter a “secret code to add your application to the TOTP app The FA plugin in Backendless provides both a QR code as well as a “secret code as a part of the user registration process The API supported by the FA Login plugin can be used either via REST using a Backendless SDK or with Codeless Supported frontend languages include Android Java JavaScript Objective C Swift Flutter NETYou can generate the client side library for the API using the Code Generator as shown below This will enable you to use the API with the corresponding SDK If your frontend language is not available you can access the plugin via REST API Comparing Top Authenticator App Providers Google AuthenticatorGoogle Authenticator is a popular two factor authentication app that s available on both Android and iOS The technology behind Google Authenticator began as an open source project but when Google created a proprietary version it became known as the familiar and simple alternative to newer FA systems For individuals who use the Google suite of services Google Authenticator has become a popular choice Google Authenticator is available for free on the Google Play Store and Apple App Store Microsoft AuthenticatorMicrosoft Authenticator is another popular two factor authentication app that s available on both Android and iOS It supports a wide range of applications most notably including the complete Microsoft suite of products such as Office Azure AD and many more Microsoft Authenticator supports PIN and biometric authentication like TouchID tied to the user s device adding an additional layer of security to the login process Microsoft Authenticator is available for free on the Google Play Store and Apple App Store Twilio AuthyTwilio Authy is a popular two factor authentication app that s available on both Android and iOS While Authy may not connect with as many third party apps as Google Authenticator it supports many devices other than Android and iOS devices Authy also works with Apple Watches and desktop computers running Windows Linux or macOS It is easy to set up since one account easily links to multiple devices Like Microsoft Authenticator Authy also supports PIN and biometric authentication providing addition security compared to Google Authenticator Twilio Authy is available for free on the Google Play Store and Apple App Store ClosingThe FA Login plugin from Backendless is a great way to enable two factor authentication for your app by enabling you to interact with a variety of authenticator apps The plugin enables FA via TOTP for increased data and account security It is just one more tool from Backendless to protect yourself and your uses from unauthorized account access Download and install the plugin for free from the Marketplace section of your Backendless backend today FAQs What is TOTP Authenticator A TOTP authenticator is an app used for user authentication to allow access to a secure account The authenticator uses a phone app which receives and validates a code generated by a server before allowing access to the account For example Google Authenticator is a TOTP app that can be used to protect a Google account including Google drive Google email etc How Do I Set Up TOTP To set up TOTP for your Backendless app using the FA Login plugin follow the instructions laid out in the plugin s documentation HOTP vs TOTPHOTP stands for HMAC based One Time Password It is the original standard that TOTP was based on One of the inputs to both methods is a secret key but TOTP uses the system time for the other input whereas HOTP utilizes a counter that increments with each new validation Both parties increment the counter and use it to compute one time passwords using HOTP Does the FA Plugin support push notifications with the TOTP code Many authenticator apps provide features such as one tap push authentication for easier access These notifications originate from the authenticator app not Backendless itself Many authenticator apps also include cloud backup for your accounts via platforms such as Google Drive This is also controlled by the authenticator service not hosted within Backendless This article was originally published on backendless com on April th |
2022-04-08 16:25:08 |
海外TECH |
DEV Community |
#day 18 of solving [51/480] |
https://dev.to/hesoyamm/day-18-of-solving-51480-59ao
|
day of solving sum of two integersAs explain in previous post why python can t handle carry reverse integer myAtoi Algo |
2022-04-08 16:21:06 |
海外TECH |
DEV Community |
🌱 What was the most exotic codebase you had ever worked on? |
https://dev.to/hunghvu/what-was-the-most-exotic-codebase-you-had-ever-worked-on-43ie
|
What was the most exotic codebase you had ever worked on My acquaintance works for a company specialized in processing flight data in real time I m not certain about the detail but apparently the common backend solutions like Java Node Ruby etc are not sufficient In the end they built everything using C You heard it right the backend was built with C that was mind blowing to me With that said what was the most exotic codebase you had ever worked on What led you and your team to the decision How was your experience with that solution |
2022-04-08 16:19:50 |
海外TECH |
DEV Community |
The Deepgram x DEV Hackathon ends soon! Don't miss your chance to join the fun ⏰ |
https://dev.to/devteam/the-deepgram-x-dev-hackathon-ends-soon-dont-miss-your-chance-to-join-the-fun-228n
|
The Deepgram x DEV Hackathon ends soon Don x t miss your chance to join the fun Hey DEV Community I wanted to pop into your feeds with a quick reminder that the Deepgram x DEV hackathon that s been running since March closes this upcoming Tuesday April at PM UTC This contest is unlike any other we ve held here on DEV in the past because there are many different ways for you to participate and possibly win a big prize Join us for a new kind of hackathon on DEV ーbrought to you by Deepgram dev to staff for The DEV Team・Mar ・ min read hackwithdg deepgram deeplearning ai Build ChallengeFor starters you can build an application using Deepgram s speech to text technology There are four intriguing categories for you to pick from if you go this route •Accessibility Advocates Use Deepgram to improve user accessibility Think about user input accessing media or live events and improving understanding •Analytics Ambassadors Use Deepgram to analyze one or many pieces of audio You may analyze a single call to help understand what happened or analyze hundreds of media files all at once •Gram Gamers Use Deepgram in a game You may build an entirely voice or text based game a D or D game or more novel playable experiences •Wacky Wildcards If it doesn t fit into the categories above Build an app using Deepgram that s totally out of the box random and fun Innovative Ideas Writing ChallengeNot feeling the Build challenge Instead you can participate in the Innovative Ideas writing challenge by coming up with an interesting use case for Deepgram and telling us all about it Your submission will cover the big ideas and story of what you ve come up with and any mock ups you ve created in a thoughtful blog post Whether you choose the Build or Innovative Ideas Challenge or both you ll be using this template for your submission If you don t have time to participate in either the Build or Innovative Ideas challenge of the Deepgram Hackathon on DEV there s yet another way for you to join the fun We re inviting both hackathon participants and DEV Community Members who are cheering them on from the sidelines to earn limited edition badges in exchange for their encouragement of participants Participants will earn a unique profile badge Prizes Grand Prize Winners ーone in each category of the Build challenge and one in the Innovative Ideas challenge will receive USD gift card or equivalent USD credit to the Forem ShopDeepgram swag packDEV sticker packDEV “Deepgram Hackathon Grand Prize winner profile badge unique to the category selectedRunner Up Prizes Total across all categories and challenges USD gift card or equivalent USD credit to the Forem ShopDEV and Deepgram sticker packsDEV “Deepgram Hackathon Runner Up profile badge unique to the category selectedParticipants with a valid project DEV sticker packDEV “Deepgram Hackathon participant profile badgeCommunity Engagement PrizesIn addition to the special profile badges we ll be awarding for Community Engagement we ll also be randomly selecting one winner for each of the four Community Engagement categories to win USD in cash DEV will double the sticker credit prize for all participants who submit under the Build and Innovative Ideas categories with valid projects for a total of to the DEV shop Just remember to house all your submission posts under the same series More on that in the templates above We hope you ll consider joining this fun challenge while you can in whatever way you choose Deadline April PM UTC gt gt Full rules and details for participating here |
2022-04-08 16:18:45 |
海外TECH |
DEV Community |
[Conceito] - Modelagem Relacional com NoSQL |
https://dev.to/zanfranceschi/conceito-modelagem-relacional-com-nosql-3mdg
|
Conceito Modelagem Relacional com NoSQLConteúdo original nessa thread do TwitterEi dev Vocêjádeve ter ouvido falar que NoSQL significa NOT ONLY SQL E isso quer dizer que vocêpode sim também fazer relacionamentos com bancos NoSQL Éum pouco diferente poucos falam mas épossível E pode ser muito bom em alguns casos Vou abordar um conceito que deve ser facilmente aplicável em bancos NoSQL do tipo documento e chave valor ok MongoDB DynamoDB p e Os exemplos aqui usam JSON pq éfácil de entender e pode ser análogo a esses dois tipos de bancos NoSQL Suave Frequentemente vi times com pouca experiência em NoSQL aplicarem o padrão tipo por tabela coleção no caso do mongo Ou seja vai existir uma tabela pra usuário outra pra produtos etc E as relações um para muitos ficam aninhadas Como nesse exemplo de usuários que podem ter mais de um endereço Pra alguns casos isso pode ser ruim Vocêfica sem ângulo fácil para acessar as coleções aninhadas Vocêteria que acessar os itens raiz e extrair suas coleções aninhadas Ainda por cima por ex o DynamoDB comporta itens de até KB não serve para itens muito grandes Para fazer relacionamentos nesses tipos de bancos NoSQL vocêprecisar quebrar esse padrão de uma tabela colação por tipo Suas tabs cols passarão a comportar mais de um tipo de item registro e que se referenciam Ésuper simples Algumas vantagens dessa abordagem relacional intra tabela coleção Evita duplicidade imagina uma modelagem livro autor Vocêpode economizar I O projetando apenas aquilo que lhe interessa no mundo cloud isso éespecialmente importante Aqui estão referências sobre o assunto para DynamoDB Example of Modeling Relational Data in DynamoDBE para MongoDB Model One to Many Relationships with Document ReferencesÉesse o Tweet Obrigado por ter lido atéaqui e pense melhor sobre seus relacionamentos se éque me entende Comente suas dúvidas contribuições aqui pra gente discutir |
2022-04-08 16:18:32 |
海外TECH |
DEV Community |
What was your win this week? |
https://dev.to/devteam/what-was-your-win-this-week-59da
|
What was your win this week Hey there Looking back on this past week what was something you were proud of accomplishing All wins count ーbig or small Examples of wins include Starting a new projectFixing a tricky bugMeeting up with an old friend or whatever else might spark joy ️Happy Friday |
2022-04-08 16:17:41 |
海外TECH |
DEV Community |
Online Virginia Network |
https://dev.to/mskellyc/online-virginia-network-16l2
|
virginia |
2022-04-08 16:16:49 |
海外TECH |
DEV Community |
JavaScript closure in 2 minutes.. |
https://dev.to/muhammad_asif/javascript-closure-in-2-minutes-2346
|
JavaScript closure in minutes IntroClosure is one of the most important tricky concepts of JavaScript Many people s heads hang when they hear the name of Closure but in this post I will prove that your fears were unfounded A common question on the interview board is Closure So it is very important for us to know this The smart concept of JavaScript is Closure Smart means there is something in it which is not in others Closure really does something that others cannot do Before talking about Closure I would like to ask you to know Scope Lexical Scope Context Variable Life Cycle a little better Let s Start We know that the JavaScript engine normally executes all code in the default global context except for a single function call Because the function itself creates a context which is called functional context The life cycle of the variables that are used in a function lasts until the function is executed As soon as the function is executed the variables die Example function counter var count return count counter counter counter Here times counter function was called amp times result came This means that if you call a function its internal variable cannot store the previous data If we want this to come then it is not going to be done through a function But it is possible to do this by creating closures Because he Closure remembers a lot like a lover who gets deception We know that all the parameters of OuterFunc get Variable InnerFunc Access through lexical scope and even if it returns the function Take a closer look at the code below function counter var count return function return count var counter counter counter counter counter Same How did this happen Let me tell you what happened hereA function is declared named counter a variable named count is taken and it is returned by adding to InnerFunc Since the function in JavaScript is a fastclass function the function can be returned in the form of value Here since Counter is placed in the variable we get the result only by calling Counter as a function Well understood But the second time I called the function the count increased by how did it happen Um of course yes I know this why it s something known in advance This means that even after a function is executed it is the job of the Closure Viber to keep the internal variables and parameters alive I hope if you can understand this much better then you will get effortlessly at If you want to get out of you can read the book Scope amp Closures By Kyle Simpson And I the student will be wrong so I hope you will do a little constructive criticism without swearing Wrapping UpI hope you enjoyed the article if yes then don t forget to press ️and Subscribe You can also bookmark it for later use It was fun to create this article and If you have any queries or suggestions don t hesitate to drop them See you You can extend your support by giving me stars on GitHub Profile G i t h u bP o r t f o l i oL i n k e d i n SupportBuy me a Coffee |
2022-04-08 16:16:03 |
海外TECH |
DEV Community |
GitHub Action You Need to Publish VS Code Extensions |
https://dev.to/sourishkrout/the-github-action-you-need-to-publish-vs-code-extensions-1n8
|
GitHub Action You Need to Publish VS Code ExtensionsThe term continuous integration and continuous delivery short CI CD is a common best practice for software developers including the ones building VS Code extensions With the VS Code update from last November users have now access to pre releases that allow developers to ship regular updates and offer testing out the latest cutting edge features from their extension to receive early feedback In this blog post we d like to share how Stateful releases its Marquee extension to the VS Code Marketplace and OpenVSX Registry through GitHub Actions You can find a full example in the Marquee repository feel free to copy and adapt it for your own extension While this release workflow doesn t seem to look much different from other release pipelines and contains common steps like setup build test compile push you will see some interesting details we d like to highlight that are very specific to VS Code developers The first section of the workflow definition contains next to the workflow name the trigger event for the workflow In our case we ve decided to have our maintainers manually trigger the release through the GitHub UI This allows us to define a set of handy parameters to define the release type e g patch minor or major the release channel and whether we release should be published to the marketplace The first workflow steps are pretty common they checkout the repository setup the environment and install all dependencies jobs release runs on ubuntu latest steps name Clone Repository uses actions checkout v with fetch depth name Setup Node version uses actions setup node v with node version name Install dependencies run yarn install frozen lockfile Most of the steps that come next are dependent on whether we run a stable or edge release Both are fairly similar but differ when it comes to compiling TypeScript and environment variables This will become clear after looking at the next steps that build the extension code name Build Package run yarn build dev env NODE ENV development MARQUEE INSTRUMENTATION KEY secrets MARQUEE INSTRUMENTATION KEY if github event inputs releaseChannel edge name Build Package run yarn build prod env NODE ENV production MARQUEE INSTRUMENTATION KEY secrets MARQUEE INSTRUMENTATION KEY if github event inputs releaseChannel stable Behind the build command is a set of calls that compile our TypeScript code and runs Webpack either in development or production mode depending on the release channel we picked in the beginning After this step you can either run your automated tests or jump directly into the release process We first generate a changelog based on the commit messages between the last release and last commit If you create pull requests for every bigger change set and squash these the changelog becomes fairly comprehensive name Create Changelog run git log git describe tags abbrev HEAD oneline amp gt github workspace CHANGELOG txt cat github workspace CHANGELOG txt In the next steps we define the new release version This version depends again on the release type e g stable release v or edge release v edge Given that the VS Code Marketplace currently doesn t support edge release versions we ve built a little script that updates the version to something like v in which we replace the patch version number with a timestamp This ensures that pre releases will have a higher version than stable ones and that we can continuously make new pre releases name Setup Git run git config global user name stateful wombot git config global user email christian github bot stateful com name Get Current Version Number run CURRENT VERSION cat package json jq version cut d f echo CURRENT VERSION CURRENT VERSION gt gt GITHUB ENV name Compile New Version Edge run RELEASE VERSION npx semver CURRENT VERSION i pre github event inputs releaseType preid edge echo RELEASE VERSION RELEASE VERSION gt gt GITHUB ENV echo Bump to RELEASE VERSION if github event inputs releaseChannel edge amp amp contains env CURRENT VERSION edge name Compile New Version Edge run RELEASE VERSION npx semver CURRENT VERSION i prerelease echo RELEASE VERSION RELEASE VERSION gt gt GITHUB ENV echo Bump to RELEASE VERSION if github event inputs releaseChannel edge amp amp contains env CURRENT VERSION edge name Compile New Version Stable run RELEASE VERSION npx semver CURRENT VERSION i github event inputs releaseType echo RELEASE VERSION RELEASE VERSION gt gt GITHUB ENV echo Bump to RELEASE VERSION if github event inputs releaseChannel stable name Version Package run npm version RELEASE VERSION git tag a RELEASE VERSION m RELEASE VERSION Lastly we will package and publish our extension using the Visual Studio Code Extension Manager and a GitHub Action called HaaLeo publish vscode extension The advantage of having the packaging and publishing step separated is that we can attach the compiled vsix file as an artifact to the workflow and offer it as download Make sure to generate a token named in the workflow as VSC MKTP PAT and OPEN VSX TOKEN to allow GitHub to publish your extension name Package Extension Edge if github event inputs releaseChannel edge run node github scripts updateEdgeVersion js yarn vsce package pre release yarn no git tag version no update package json o marquee RELEASE VERSION vsix github event inputs additionalFlags name Package Extension Stable run yarn vsce package RELEASE VERSION yarn no git tag version no update package json o marquee RELEASE VERSION vsix github event inputs additionalFlags if github event inputs releaseChannel stable name Publish to Visual Studio Marketplace Edge run yarn vsce publish packagePath marquee RELEASE VERSION vsix pre release yarn no git tag version no update package json p secrets VSC MKTP PAT github event inputs additionalFlags if github event inputs publishMarketplace yes amp amp github event inputs releaseChannel edge name Publish to Visual Studio Marketplace Stable run yarn vsce publish packagePath marquee RELEASE VERSION vsix yarn no git tag version no update package json p secrets VSC MKTP PAT github event inputs additionalFlags if github event inputs publishMarketplace yes amp amp github event inputs releaseChannel stable name Publish to Open VSX Registry Edge uses HaaLeo publish vscode extension v if github event inputs publishOpenVSX yes amp amp github event inputs releaseChannel edge with preRelease true pat secrets OPEN VSX TOKEN extensionFile marquee env RELEASE VERSION vsix name Publish to Open VSX Registry Stable uses HaaLeo publish vscode extension v if github event inputs publishOpenVSX yes amp amp github event inputs releaseChannel stable with preRelease false pat secrets OPEN VSX TOKEN extensionFile marquee env RELEASE VERSION vsix To conclude our release workflow we push our release commit and the new git tag back to GitHub as well as attach the compiled extension file to the workflow using the ncipollo release action GitHub Action This is intentionally done at the end of the workflow so that in case something went wrong during the process we don t mark it as a new release name Push Tags run git log stat git push origin main tags run export GIT TAG git describe tags abbrev echo GIT TAG GIT TAG gt gt GITHUB ENV name GitHub Release uses ncipollo release action v with artifacts marquee bodyFile github workspace CHANGELOG txt tag env GIT TAG prerelease github event inputs releaseChannel edge And that s it A fairly easy to adopt GitHub workflow that you can adapt to make continuous stable and pre releases Please find us on GitHub Discord or Gitter if you have questions or suggestions Don t forget to follow us on Twitter |
2022-04-08 16:12:29 |
Apple |
AppleInsider - Frontpage News |
Second season of Apple TV+ 'Greatness Code' sports series streams on May 13 |
https://appleinsider.com/articles/22/04/08/second-season-of-apple-tv-greatness-code-sports-series-streams-on-may-13?utm_medium=rss
|
Second season of Apple TV x Greatness Code x sports series streams on May Apple TV Greatness Code has been renewed for a second season that will debut on May continuing its unscripted look at elite athletes As Apple TV ramps up its sports coverage with live baseball and many new documentary series it s also looking back to its roots with the renewal of Greatness Code Originally streamed in July it was among the service s earliest commissions but it s taken until to get a second run In Greatness Code iconic athletes pull back the curtain on a pivotal career moment when they touched greatness said Apple in a press release A stylized hybrid of live action and visual effects this short form docuseries sheds new light on the sports legends you thought you knew Read more |
2022-04-08 16:53:47 |
Apple |
AppleInsider - Frontpage News |
Google's self-repair program for Pixel launches, Apple's program is nowhere to be seen |
https://appleinsider.com/articles/22/04/08/googles-self-repair-program-for-pixel-launches-apples-program-is-nowhere-to-be-seen?utm_medium=rss
|
Google x s self repair program for Pixel launches Apple x s program is nowhere to be seenGoogle is teaming up with iFixit to provide customers with repair parts for Pixel phones And five months after announcement there have been no updates on own Apple s repair program Repair programAs part of the partnership between iFixit and Google genuine repair parts for Pixel devices will become available from iFixit starting later in The available parts will include everything from batteries to displays to cameras Read more |
2022-04-08 16:50:54 |
海外科学 |
NYT > Science |
Highlights From SpaceX and NASA’s First Private Launch to the Space Station |
https://www.nytimes.com/live/2022/04/08/science/axiom-nasa-spacex
|
Highlights From SpaceX and NASA s First Private Launch to the Space StationThe Ax mission is carrying three paying passengers and a retired NASA astronaut to the orbital outpost for the company Axiom Space |
2022-04-08 16:32:09 |
海外科学 |
NYT > Science |
As Gas Prices Went Up, So Did the Hunt for Electric Vehicles |
https://www.nytimes.com/2022/04/08/climate/gas-prices-electric-vehicles.html
|
As Gas Prices Went Up So Did the Hunt for Electric VehiclesPrices at the pump have apparently given some Americans second thoughts But two practical problems remain not enough cars and relatively few charging stations |
2022-04-08 16:54:14 |
海外TECH |
WIRED |
DJI's Action 2 Camera and Mavic 3 Drone Are on Sale |
https://www.wired.com/story/dji-action-2-mavic-3-deal-april-2022
|
pocketable |
2022-04-08 16:06:23 |
金融 |
金融庁ホームページ |
「マネー・ローンダリング・テロ資金供与・拡散金融対策の現状と課題」(2022年3月)について公表しました。 |
https://www.fsa.go.jp/news/r3/20220408/20220408.html
|
資金供与 |
2022-04-08 17:00:00 |
金融 |
金融庁ホームページ |
「全資産担保を活用した米国の融資・再生実務の調査」報告書について公表しました。 |
https://www.fsa.go.jp/common/about/research/20220408/20220408.html
|
資産 |
2022-04-08 17:00:00 |
ニュース |
BBC News - Home |
Chancellor Rishi Sunak held US green card until last year |
https://www.bbc.co.uk/news/uk-politics-61044847?at_medium=RSS&at_campaign=KARANGA
|
returns |
2022-04-08 16:54:48 |
ニュース |
BBC News - Home |
Boris Becker guilty of four charges under Insolvency Act |
https://www.bbc.co.uk/news/uk-61043018?at_medium=RSS&at_campaign=KARANGA
|
unpaid |
2022-04-08 16:32:12 |
ニュース |
BBC News - Home |
Queen hands over to Charles for Maundy Service |
https://www.bbc.co.uk/news/uk-61043074?at_medium=RSS&at_campaign=KARANGA
|
ceremony |
2022-04-08 16:13:13 |
ニュース |
BBC News - Home |
Kramatorsk station attack: What we know so far |
https://www.bbc.co.uk/news/world-europe-61036740?at_medium=RSS&at_campaign=KARANGA
|
russia |
2022-04-08 16:31:08 |
ニュース |
BBC News - Home |
Thomas Tuchel holds 'honest' meeting with Chelsea players after defeats |
https://www.bbc.co.uk/sport/football/61042937?at_medium=RSS&at_campaign=KARANGA
|
thomas |
2022-04-08 16:31:51 |
ニュース |
BBC News - Home |
Election 2022: Is there an election in my area? |
https://www.bbc.co.uk/news/uk-politics-60695244?at_medium=RSS&at_campaign=KARANGA
|
elections |
2022-04-08 16:23:20 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
試着室で育ちがわかる! どこが見られている? - 育ちがいい人だけが知っていること |
https://diamond.jp/articles/-/301016
|
内容は、マナー講師として活動される中で、「先生、これはマナーではないのですが……」と、質問を受けることが多かった、明確なルールがないからこそ迷ってしまう、日常の何気ないシーンでの正しいふるまいを紹介したもの。 |
2022-04-09 02:00:00 |
北海道 |
北海道新聞 |
兵庫県警警部が実弾を一時紛失 通行人が路上で拾う、全て回収 |
https://www.hokkaido-np.co.jp/article/667499/
|
兵庫県警 |
2022-04-09 01:21:00 |
北海道 |
北海道新聞 |
日ロ、サケ・マス漁業交渉へ調整 来週開催案、経済制裁で難航も |
https://www.hokkaido-np.co.jp/article/667469/
|
経済制裁 |
2022-04-09 01:14:21 |
北海道 |
北海道新聞 |
<Fノート>新庄監督の「生」の言葉 試合後に聞きたい |
https://www.hokkaido-np.co.jp/article/667492/
|
零封 |
2022-04-09 01:05:04 |
北海道 |
北海道新聞 |
北見柏陽高美術部。新入生迎える大作 黒板アート 入学式に彩り |
https://www.hokkaido-np.co.jp/article/667497/
|
黒板アート |
2022-04-09 01:01:00 |
コメント
コメントを投稿