投稿時間:2022-03-01 23:40:58 RSSフィード2022-03-01 23:00 分まとめ(43件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… Amazon、対象のNintendo Switch用ダウンロードソフトと同時購入でmicroSDカードが10%オフになるキャンペーンを実施中 https://taisy0.com/2022/03/01/153906.html amazon 2022-03-01 13:07:31
ROBOT ロボスタ ソニーの最新映像技術「バーチャルプロダクション」って何?6人組グループ「SixTONES」が「共鳴」を公開 https://robotstart.info/2022/03/01/sixtones-vp-resonance.html 2022-03-01 13:00:55
AWS lambdaタグが付けられた新着投稿 - Qiita LambdaPermissionとは何か https://qiita.com/mizuno_jin/items/60ba2e8b546d065ebb6b 関数のレベルでポリシーを適用するか、修飾子を指定して単一のバージョンまたはエイリアスにアクセスを制限することができます。 2022-03-01 22:28:53
python Pythonタグが付けられた新着投稿 - Qiita AtCoder ABC241 B - Pasta 最大流やmapや総当たりで解いたり、unordered_mapは気を付けないと検証したり https://qiita.com/recuraki/items/909815a702cb2b1da828 解法は今回の問題に対してはtoomuchですし計算量も良くないですが、こういう問題で練習しておくと条件が複雑になったとき今はBはAがxというか同じ時に条件を満たすが、BはAがxあるいはyでいいよという条件になったりしたときにも対応できて良いかもしれません。 2022-03-01 22:00:34
js JavaScriptタグが付けられた新着投稿 - Qiita HTML5プロフェッショナル認定 レベル1 試験対策 https://qiita.com/KotaYoneda/items/cab0ee6f666fb099fbe2 htmlcssjavascript 2022-03-01 22:03:20
Ruby Rubyタグが付けられた新着投稿 - Qiita Rails c 似てテーブル情報を取得するには https://qiita.com/fuwa_satoko/items/ffb141a018a3289ac50b 2022-03-01 22:58:58
Ruby Rubyタグが付けられた新着投稿 - Qiita Ruby で 数独 の2 https://qiita.com/superrino130/items/d9c83ee3b1b3876688a5 castrburamenNArraycastArraynewhArraynewwtoaNArraycastを使用するとRubyの配列から行列を生成することができます。 2022-03-01 22:10:56
AWS AWSタグが付けられた新着投稿 - Qiita LambdaPermissionとは何か https://qiita.com/mizuno_jin/items/60ba2e8b546d065ebb6b 関数のレベルでポリシーを適用するか、修飾子を指定して単一のバージョンまたはエイリアスにアクセスを制限することができます。 2022-03-01 22:28:53
AWS AWSタグが付けられた新着投稿 - Qiita 【AWS】WordPressでSite Guardの設定が効かない対処法 https://qiita.com/pike3/items/4ac1d2ae13c0d8103964 対処法htaccessを有効にするには、httpdconfファイルでWordPressのディレクトリに対して、AllowOverrideAllの設定をする必要があります。 2022-03-01 22:10:21
golang Goタグが付けられた新着投稿 - Qiita Golangによるパスワードの保存 https://qiita.com/wifecooky/items/fb598372d1d6e1bf7e44 importcryptoshahshaNewioWriteStringhmypasswordfmtPrintfxhSumnilより良い方法大抵の場合は、暗号化時に使用されたハッシュアルゴリズムが上記のような公開されているものであることが原因で、かつ技術の進歩によりパソコンの計算力も上がり、ハッカーがrainbowtableを使用することで上記の方法でハッシュされたパスワードをクラックすることが時間的に難しく無くなってきたのが現状です。 2022-03-01 22:48:51
golang Goタグが付けられた新着投稿 - Qiita Golang-構造体にあるパスワードなどのセキュリティ情報をログに出力しないようにする方法 https://qiita.com/wifecooky/items/4abfe03914da13e653fd Golang構造体にあるパスワードなどのセキュリティ情報をログに出力しないようにする方法titleGolang構造体にあるパスワードなどのセキュリティ情報をログに出力しないようにする方法datecategoriesProgrammingtagsGolangパスワードログ構造体をログに出力する際に、パスワードとかのようなセキュリティ情報を出力したくない場合は、方法の一つは構造体の埋め込みEmbedded特性を利用することです。 2022-03-01 22:45:33
Git Gitタグが付けられた新着投稿 - Qiita Git ローカルリポジトリに紐付いているリモートリポジトリを紐付け解除する https://qiita.com/miriwo/items/7237459d34bc8340d4a3 Gitローカルリポジトリに紐付いているリモートリポジトリを紐付け解除する概要Gitにてローカルリポジトリに紐付いているリモートリポジトリの紐付けを解除する方法をメモ的にまとめる。 2022-03-01 22:45:24
Ruby Railsタグが付けられた新着投稿 - Qiita Rails c 似てテーブル情報を取得するには https://qiita.com/fuwa_satoko/items/ffb141a018a3289ac50b 2022-03-01 22:58:58
技術ブログ Developers.IO DataGrid コンポーネントに Global Style Overrides を適用しようとしたら MuiDataGrid がないよ、と怒られた時の対処法 https://dev.classmethod.jp/articles/how-to-apply-datagrid-global-style-overrides/ datagrid 2022-03-01 13:28:48
技術ブログ Developers.IO ファイルや環境変数を読むように Cloud Functions から Secret Manager にアクセスしてみた。 https://dev.classmethod.jp/articles/cloud-functions-access-secret-manager-as-file-or-envvar/ cloudfunctions 2022-03-01 13:09:34
海外TECH DEV Community We are back! Hackathon - New prizes, Dates & Donations for Ukraine https://dev.to/vue-storefront/we-are-back-hackathon-new-prizes-dates-donations-for-ukraine-3642 We are back Hackathon New prizes Dates amp Donations for Ukraine“Peace is always beautiful Walt Whitman Love peace and smiles are the best ways to create a world where everybody can live in peace and harmony We are living in the calmest era in human history Some of us are not even aware of the actual damage and hardships ongoing war is causing in society Because of this we started our event with two great quotes from two geniuses of music and life Bob Marley and Jimmy Hendrix We added an extra topic dedicated to helping those suffering in the war in Ukraine With this addition we want to create an opportunity so you can help others with one of the most priceless assets out there your knowledge Extra prize poolIn the launch event we announced a new extra event topic for the TechForUkraine This topic is dedicated to helping those in need in these challenging times in Ukraine Europe There is a new USD prize dedicated to this matter making our total prize pool of USD Event extendedAlso in our launch event we announced that we added another week to the event making it officially from February th to March th DonationsVue Storefront will donate of the total prize pool to support Ukraine As a Polish company we do our civil part by helping on site and providing support to our Ukrainian brothers and sisters by all means How can you support Ukrainian civil society All help is needed If you are not able to help locally you can also Support the Ukraine Armed forces directly by sending funding to the special accounts NBU Special Account to Raise Funds for Ukraine s Armed ForcesHelp the ICRC Red Cross with donations Ukrainian Red Cross SocietyDonate to the United Help Ukraine United Help UkraineDonate to Voices of Children Voices of ChildrenIf you are not yet registered for our hackathon joining is straightforward You need to chat with our event bot on Discord and complete your registration within the Discord  pretty simple hum Register here in our Discord Steps to register Join in our Discord Go to register channelUse the command user profile create to register The Discord will ask for your Name Email GitHub Use the command team create to create your teamTo create a team use the command team addmemberAnd check the original blog post announcer of our hackathon for more information on the event 2022-03-01 13:41:46
海外TECH DEV Community Most used DateUtils in Javascript https://dev.to/urstrulyvishwak/most-used-dateutils-in-javascript-b7i Most used DateUtils in JavascriptJavascript has coolest Date object which has many methods to work with date All those methods are used to extract specific parts of date modifies given date supports different time conversions etc There are many javascript libraries outside to deal with date amp time like moment js Date fns Day js etc Not everytime we need these libraries Ok Let s start Javascript date object will use the browser s time zone and returns the date Like shown below Type in new Date browser console Tue Mar GMT India Standard Time Don t expect the same result Here are the util functions we need for day to day work getToday function getTodayObj return new Date Returns date obj on which you can apply all date methods gt Tue Mar GMT India Standard Time function getTodayString return Date Returns Date in String format gt Tue Mar GMT India Standard Time function getTodayMilliSeconds return Date now gt function getTodayUtcString return new Date toUTCString gt Tue Mar GMTfunction getTodayUtcTZFormat return new Date toISOString gt T Z getDateDifference Before getting into code we need to understand few basics here When you apply on date object it will be coerced to number and returns date in milliseconds Say new Date gt We can create date object using new Date date string as well Say new Date gt Sun Jul GMT India Standard Time Must provide in MM DD YYYY format Generally how do we calculate milliseconds per day hrs mins sec ms ms per day Now we can easily grasp what are we doing to get date difference const date new Date const date new Date function getDateDifference date date return date date gt Again there are several cases we need to cover here Just in case your date lt date and you still want positive result then use Math abs getDateDifference Hey man I just need difference in milliseconds itself Oh Thatz so easy just do date date hmm I want to the difference including time as well Again use the same Get your time in milliseconds with date amp time and pass to that function Done I don t know how to get my date amp time in milliseconds Hmm ok Here is another Util which helps you getDateTimeInMilliseconds function getDateTimeInMilliseconds return new Date getTime gt getUnixTimeStamp It is just the getDateTimeInMilliseconds function getUnixTimeStamp return new Date getTime gt getUTCMilliseconds function getUtcInMilliseconds return Date UTC gt getDayName function getDayName return new Date toLocaleDateString en US weekday short gt TueHere toLocaleDateString locales options contains first param as locales which basically represents geographical region And options can be weekday long year numeric month long day numeric Also we mentioned weekday short in above snippet that gives dayName as Tue where as weekday narrow gives T weekday long gives TuesdayYes based on locale day names will change You can provide configurable locales based on the region that application is running navigator language can give client language Default value is en US Again the same in case of month names as well So the minor change will be instead of sending weekday short we need to send as month short Yes narrow long options also applicable for month as well getMonthName function getMonthName return new Date toLocaleDateString en US month short gt Mar getDateOnly You can replace with to get in dd mm yyyy formatfunction getDateOnly const date new Date return date getFullYear date getMonth date getDate gt Format mm dd yyyyfunction getDateOnly return new Date toLocaleDateString en US day digit month digit year numeric gt Format dd mm yyyyfunction getDateOnly return new Date toLocaleDateString en GB gt Using localeString format mm dd yyyyfunction getDateOnly return new Date toLocaleString split gt Using toISOString format yyyy mm ddfunction getDateOnly return new Date toISOString split T gt getTimeOnly function getTimeOnly const date new Date return date getHours date getMinutes date getSeconds gt by default locale considered as en US function getTimeOnly return new Date toLocaleTimeString gt PMfunction getTimeOnly return new Date toLocaleTimeString en GB gt You can also use above toLocaleString and toISOString to get time only same as like date only getTimeInHrsMins function getTimeInHrsMins return Intl DateTimeFormat en US hour numeric minute numeric hour true format new Date gt PM getTimezoneName function getTimezoneName return Intl DateTimeFormat resolvedOptions timeZone gt Asia Calcutta addDay function addDay const today new Date const tomorrow new Date tomorrow setDate today getDate return tomorrow gt Wed Mar GMT India Standard Time subtractDay function subtractDay const today new Date const yesterday new Date yesterday setDate today getDate return yesterday gt Mon Feb GMT India Standard Time Similarly addMonth amp subtractMonth works addMonth function addMonth const today new Date const nextMonthToday new Date nextMonthToday setMonth today getMonth return nextMonthToday Just replace with in above snippet to subtract month So far I came across these util functions Comment below if you required any more functions I would love to update this Thanks Love to see your responseLike You reached here means I think I deserve a like Comment We can learn together Share Makes others also find this resource useful Subscribe Follow to stay up to date with my daily articles Encourage me You can buy me a Coffee Let s discuss further Just DM urstrulyvishwak Or mention urstrulyvishwak For further updates Follow urstrulyvishwak 2022-03-01 13:09:10
海外TECH DEV Community Online photoshop Image Editing service https://dev.to/mutkisa/online-photoshop-image-editing-service-33ep Online photoshop Image Editing servicePhotoshop near me To solve your picture We are all worshipers of beauty We are on the whole like See wonderful things And remember the beautiful moments We can t find people in the world who don t love beautiful things However not everyone likes the same thing Someone loves to sing Someone loves to listen to music Someone likes sports a lot Someone loves to dance Someone loves to eat and Someone loves to travel But everyone loves to take pictures You will find very few people in the world who don t love taking pictures We all want a beautiful photo that we present to our people for example friends relatives and neighbor s A beautiful view is desirable to everyone We keep this picture as our memory That we put in our albums we present these photos of the collection to our closest relatives Later these pictures reach our future generation and they leave these pictures with great care By looking at pictures of this album they can find out the identity of their next descendants Many times we use these pictures in our various places Such as its organization On your social pages And hangs it in the drawing room Such a picture that the picture will have a beautiful place A good quality camera sweet dressing Essential good lighting and a beautiful location We are all trying to take a beautiful picture which we will hold as a memory for future generations But many times it is not possible After taking pictures many problems are seen in the photo such as the poor of light Ambiguity Presence of unnecessary people or things dark shadow and the difference of color Having these problems makes an image look unattractive Then we try to eliminate all these problems in various ways to make the picture beautiful And that s why we are finding the photo editor for photo editing service We use many types of software for photo editing Such Adobe Photoshop Adobe Lightroom Skylum Luminar Capture One ON Photo RAW Corel PaintShop Pro ACDSee Photo Studio Ultimate Gimp Canva PicMonkey Pixlr Editor Snappa PortraitPro Fotor Inkscape DxO Optics Pro and Serif Affinity Photo With this software we can solve all the problems of our image For example possible to remove the poor lighting possibly to clear the image by blurring it out remove Unnecessary people Animals cars electric wire Background Electric pole And by removing any object or spot it can be arranged as a mind It is possible to make many years old and damaged pictures look like new ones Adobe Photoshop is one of the best software for a raster graphics editor This software was created in by Thomas Knoll and John Knoll American software engineer Thomas Knoll produced this software Thomas Knoll he starts first initiated the development of image processing routines in After making the first core routines Thomas Knoll then gave them to his brother Knoll and encouraged them Then John worked in the lighting and magic art John Choicen what he saw and then give him suggested new features According to history Adobe Photoshop is the world s first raster graphics editor software With that software it is possible to solve a whole picture problem If anyone can use this software properly it is possible to answer all your image problems successfully For example it is possible to remove the lousy lighting eliminate the opacity of the image It is possible to remove the dark shadow on top of the picture It is possible to remove the color of the damaged photo and revert to the neutral color It is possible to bring images to different sizes It is possible to make many years of old and damaged photo restoration By Photoshop software can do Portrait Retouching Background Removing Service Body retouching and reshaping Clipping Path Selection Color change or correction Old Photo Restoration Photomontage Photo manipulation Photo editing old Photo repairing Product photo editing Product photo retouching Product Photo Manipulation Face Reshaping body reshaping body retouching and editing You can do these things in your own choice But for this you need to know precisely how to use this software There are many trusted organizations online that provide adobe Photoshop service These companies have been providing this service online for many years These organizations solve the problems of customers images with confidence from efficient design prophotoshopexpart is such a trusted institution This company has been working faithfully online for over four years 2022-03-01 13:08:29
海外TECH DEV Community An open source ecommerce platform for Nuxt.js https://dev.to/medusajs/an-open-source-ecommerce-platform-for-nuxtjs-fnl An open source ecommerce platform for Nuxt js IntroductionMedusa is an open source headless commerce engine in Node js that allows you to build online stores through its API with just a few commands link to repo On the other hand  Nuxt js is a front end framework built on top of Vue js that includes some features out of the box such as server side rendered sites static sites file system routing data fetching meta tags SEO and much more Through this guide you will learn how to set up a starter storefront with Nuxt js for the frontend part and link it with a Medusa server To do that first you will create a Nuxt js project and set up some simple components pages and layout Then you will link the Nuxt js project with the Medusa server to get some products from the API and display them on the home page a product s page and a product detail page You can find the final code at this GitHub repository If you have any problems underway in the setup please reach out in the Medusa Discord PrerequisitesTo follow along with this tutorial you need the following Node js it is recommended to have the latest LTS version installed One of the following package managers installed npm yarn or npx included by default with npm v A Medusa server is seeded with some dummy data to work with so if this is not the case please first read the QuickStart guide to set up a Medusa server and after that come back to continue Setting up the storefront️This tutorial uses Nuxt v because at the time of writing this article there are two versions of Nuxt but the newer one Nuxt v is yet in beta state Install a Nuxt js projectTo install a Nuxt project you can get started quickly with create nuxt app Open your terminal and run the following command npx create nuxt app lt project name gt npx create nuxt app nuxtjs storefrontIt will ask you some questions You can choose the options that best fit your development workflow but to keep this tutorial simple I recommend installing the project using the following options Run Nuxt js projectOnce the Nuxt js project is created change to the directory of the storefrontcd nuxtjs storefrontAnd then run the following commandyarn devThis command will run the storefront app by default at http localhost To test it open your browser and go to http localhost You will get something like this Later on you will change the default port to learn how to integrate your frontend with the Medusa server in a port that is not the default Make the storefront layoutBefore you go into connecting the Medusa server with the storefront you need to add some components and pages to the storefront Open the storefront s project in your preferred IDE You should see the following directories You will be focusing mainly on the components and pages directories to design the layout for the storefront ComponentsComponents are what make up the different parts of your page They can be reused and imported into your pages layouts and even other components The storefront you are creating will have the following components LogoNavbarFooterProduct cardGo to the components directory and delete the default components that come with the Nuxt js installation Then add the following filesLogo → components App Logo vue lt template gt lt div class h flex items center gt lt div class ml flex lg ml lg mr gt lt nuxt link to gt lt img class h w auto src alt gt lt nuxt link gt lt div gt lt div gt lt template gt lt script gt export default name AppLogo lt script gt Navbar → components App Navbar vue lt template gt lt div class sticky top z gt lt header class relative bg white gt lt nav class px sm px lg px border b border ui medium flex items center justify between gt lt div class flex items center gt lt app logo gt lt div class hidden lg flex lg items center gt lt div class hidden flex grow items center justify center lg flex text sm font medium gt lt nuxt link to class block mt mr lg inline block lg mt text gray hover text gray last mr gt Home lt nuxt link gt lt nuxt link to products class block mt mr lg inline block lg mt text gray hover text gray last mr gt Products lt nuxt link gt lt div gt lt div gt lt div gt lt div class flex items center justify end gt lt div class hidden lg flex gt lt div class inline block relative text left gt lt div gt lt button class inline flex justify center w full px py bg white text sm font medium text gray hover text gray type button gt USA USD lt button gt lt div gt lt div gt lt div class relative inline block text left gt lt div gt lt button class inline flex justify center w full px py text sm font medium text gray hover text gray type button gt Account lt button gt lt div gt lt div gt lt div gt lt div class relative inline block text left gt lt div gt lt button class inline flex items center justify center w full py bg white text sm font medium hover opacity type button gt lt svg width height viewBox fill none xmlns gt lt path fill rule evenodd clip rule evenodd d M C C C C C C C C HC L C HC L C HZM C C C C C C C C HZM HC L C HC L C ZM C C C C ZM C C C C Z fill black gt lt svg gt lt span gt lt span gt lt button gt lt div gt lt div gt lt div gt lt nav gt lt header gt lt div gt lt template gt lt script gt export default name NavBar lt script gt Footer → components App Footer vue lt template gt lt footer gt lt div class bg white px pt pb sm px lg px border t border ui medium flex items center justify between text sm gt lt div class flex items center gt lt a class mr last mr text ui dark hover text gray href gt Create return lt a gt lt a class mr last mr text ui dark hover text gray href gt FAQ lt a gt lt a class mr last mr text ui dark hover text gray href gt Terms amp amp Conditions lt a gt lt div gt lt div class flex items center gt lt a href class mr last mr text ui dark hover text gray gt GitHub lt a gt lt a href class mr last mr text ui dark hover text gray gt Twitter lt a gt lt a href class mr last mr text ui dark hover text gray gt Discord lt a gt lt div gt lt div gt lt footer gt lt template gt lt script gt export default name AppFooter lt script gt ProductCard → components ProductCard vue lt template gt lt div gt lt nuxt link to products item id gt lt div class group relative gt lt div class w full min h auto bg gray aspect w aspect h rounded md overflow hidden group hover opacity lg h lg aspect none gt lt div class w auto h full object center object cover bg gray gt lt img alt src item thumbnail gt lt div gt lt div gt lt div class mt flex justify between gt lt h class text sm text gray font normal gt item title lt h gt lt p class text sm font semibold text gray gt from lowestPrice amount lowestPrice currency code toUpperCase lt p gt lt div gt lt div gt lt nuxt link gt lt div gt lt template gt lt script gt export default name ProductCard props item type Object default return id title Kitchen Table thumbnail variants prices amount computed lowestPrice const lowestPrice this item variants reduce acc curr gt return curr prices reduce lowest current gt if lowest amount gt current amount return current return lowest amount return lowestPrice amount currency code usd lt script gt Pay extra attention to the Logo Navbar and Footer components They need to be inside a folder called App PagesThe pages directory contains your storefront views and routes For this tutorial you will need only pages Home pageProducts pageProduct detail pageOn the pages directories open the index vue file and replace the code that is already there with this oneIndex → pages index vue lt template gt lt div gt lt div class bg ui light pb lg pb w full px sm px lg px gt lt div class flex flex col lg flex row items center max w screen xl mx auto gt lt div class w auto h full object center object cover p gt lt img width alt src gt lt div gt lt div gt lt h class text xl gt CLAIM YOUR MERCH lt h gt lt p class mt text lg font normal gt Contribute to Medusa and receive free merch lt br gt as a token of our appreciation lt p gt lt button class btn ui mt min w full lg min w gt Learn more lt button gt lt div gt lt div gt lt div gt lt div v if products length class container mx auto px py gt lt div class flex items center justify between mb gt lt p class text xl font semibold text gray gt Featured lt p gt lt nuxt link class text ui dark flex items center to products gt lt span class mr text ui dark gt Browse all products lt span gt lt svg width height viewBox fill none xmlns gt lt path d M C L C C L L C C L ZM HVHVZ fill C gt lt svg gt lt nuxt link gt lt div gt lt div class grid grid cols gap gt lt ProductCard v for product in products key product id item product gt lt div gt lt div gt lt div gt lt template gt lt script gt export default name IndexPage data return products id title Kitchen Table thumbnail variants prices amount currency code usd lt script gt lt style gt btn ui apply py px bg ui dark text white text sm font medium rounded md shadow apply focus outline none focus ring focus ring ui dark focus ring opacity disabled bg ui medium lt style gt This page will be the home for your storefront It is composed of a hero header and a grid configured to show only four products The only thing to do here once you connect the storefront to the Medusa server will be to put the ProductCard component in a v for loop to display the products Now you need to create a new directory called products which will hold inside the products page pages products index vue and the product detail page pages products id vue Add the following code to these pages Products page → pages products index vue lt template gt lt div class container mx auto p gt lt div class w full border b border ui medium pb mb lg mb flex items center justify between gt lt h class font semibold text xl gt All Products lt h gt lt div gt lt div v if products length class grid grid cols gap gt lt ProductCard v for product in products key product id item product gt lt div gt lt div gt lt template gt lt script gt export default name ProductsIndex data return products id title Kitchen Table thumbnail variants prices amount currency code usd lt script gt This page is similar to the home page but without the hero header Here you will show a grid with all the products sent by the Medusa server Product detail page → pages products id vue lt template gt lt div class container mx auto p gt lt div class flex flex col lg flex row gt lt div class lg w lg pr gt lt div class flex gt lt div class hidden lg flex flex col items center mr gt lt div class w auto h full object center object cover px space y gt lt img v for image in product images key image id width alt src image url class cursor pointer click imageToShow image id gt lt div gt lt div gt lt div class h auto w full flex flex flex col rounded lg overflow hidden gt lt div class w auto h full gt lt div v for image in product images key image id gt lt div v if image id imageToShow gt lt img alt src image url class w full gt lt div gt lt div gt lt div gt lt div gt lt div gt lt div gt lt div class mt lg mt lg w lg max w xl gt lt h class font semibold text xl gt product title lt h gt lt p v if product variants class text lg mt mb gt product variants prices amount product variants prices currency code lt p gt lt p v else gt USD lt p gt lt p class font light gt product description lt p gt lt div v for option in options key option id class mt gt lt div class text sm gt lt p class font medium mb gt option title lt p gt lt div gt lt button v for value in option values key value id class bg ui dark text white inline flex items center justify center rounded sm text xs h w mr last mr hover bg ui dark hover text white gt value value lt button gt lt div gt lt div gt lt div gt lt div class inline flex mt gt lt button class btn ui mr px gt Add to bag lt button gt lt div class flex items center rounded md px py shadow gt lt button gt lt button gt lt span class w text center gt lt span gt lt button gt lt button gt lt div gt lt div gt lt div class mt gt lt div class border t last border b border ui medium py gt lt h class my flow root gt lt button class py bg white w full flex items center justify between text sm text gray hover text gray type button click showDetails showDetails gt lt span class font medium text gray gt Details lt span gt lt span class ml flex items center gt lt span gt ー lt span gt lt span gt lt button gt lt h gt lt div v if showDetails class pt gt lt div class space y text ui dark text sm gt lt ul class list inside list disc space y gt lt li gt Weight product weight product weight g Unknown lt li gt lt li gt Width product width product width cm Unknown lt li gt lt li gt Height product height product height cm Unknown lt li gt lt ul gt lt div gt lt div gt lt div gt lt div gt lt div gt lt div gt lt div gt lt template gt lt script gt export default name ProductDetail data return showDetails false imageToShow default image product id title Medusa Coffee Mug description Every programmer s best friend thumbnail variants prices amount currency code usd images id default image url id another image url computed lowestPrice const lowestPrice this product variants reduce acc curr gt return curr prices reduce lowest current gt if lowest amount gt current amount return current return lowest amount return lowestPrice amount currency code usd options if this product options return this product options map option gt option values option values reduce acc curr gt if acc find val gt val value curr value return acc curr return acc return option lt script gt On this page you will display all the information related to a specific product For example sizes images price description variants etc ️The three pages include a product object on the data function to showcase the design while there isn t a server to send requests Once you connect the storefront with the Medusa server the data coming from the server will replace the data in the product object LayoutsLayouts are a great help when you want to have a basic structure for your Nuxt app For example to include a navbar and footer that will be shown on all the pages of the app By default a Nuxt project doesn t come with layouts but it is easy to add them to your project To have a default layout on your storefront create a layouts directory in the root of the project and inside it add a new file called default vue with the following code lt template gt lt div class min h screen flex flex col gt lt app navbar gt lt main class flex gt lt Nuxt gt lt main gt lt app footer gt lt div gt lt template gt lt script gt export default name DefaultLayout lt script gt Because the layout file was named default vue the layout will automatically be applied to all the pages on the storefront StylingReplace the content of windi config ts in the root of your Nuxt js project with the following import defineConfig from windicss plugin utils export default defineConfig Write windi classes in html attributes see attributify true theme extend fontSize xs rem maxWidth maxHeight review calc vh rem boxShadow DEFAULT px px rgba px rgba px px rgba error px px rgba px rgba px px rgba colors green DEFAULT FBB blue DEFAULT A ui light FFFA DEFAULT EEFF medium DDFE dark C Change the Default PortNow you will change the port where the storefront app runs by default port To do that open the nuxt config js file and add the following right after the ssr propertyserver port After that run the following command to see in the browser what you have achieved with the components pages and layout that you just set up until this part of the tutorial yarn devOpen your browser and go to the URL localhost You should see something like this The storefront just shows static data for now You will link the storefront with the Medusa server in the next section Link Medusa server with storefrontTo link the server with the storefront first open up your Medusa project in your IDE then open the env file where all your environment variables are set up Add the variable STORE CORS with the value of the URL where your storefront will be running Remember that you changed the default port on the storefront therefore the URL is http localhost STORE CORS http localhost After this your Medusa server will be ready to receive a request from your storefront and send back responses if everything works as expected ️The medusa server is running by default in port so the URL to use on the storefront to send requests is http localhost Testing connection with Medusa serverTo be able to list the products on the home page you need to test if you can send requests from your storefront to the Medusa server and receive some data to show on the front end ️Be sure the nuxtjs axios module is installed in your storefront project If it s not then you need to install it following these instructions Once the project has the axios module you need to change the base URL for the axios module that you ll use to make the requests to the server Open the nuxt config js file and look for the axios property Change the baseURL property to match the URL where the medusa server will be running axios baseURL http localhost With this change you don t have to type the full URL each time you need to make an HTTP request to the Medusa server So instead of this axios get http localhost store products You will do this axios get store products If the server URL changes in the future you only need to come back to one place and update that just one time and everything will be working fine To fetch data from the API this tutorial uses the fetch function that Nuxt js offers as part of the core Open the file pages index vue and add the fetch function in the script section async fetch try const products await this axios get store products console log products this products products catch e eslint disable next line no console console log The server is not responding This function receives just one parameter axios which is a service that allows making an HTTP request to the Medusa server So inside the function a request is sent to the endpoint store products to obtain the list of products from the Medusa server Then the list of products is returned To test this out run the following command in the terminal to start the medusa server medusa developAnd start the storefront server yarn devOpen your browser and go to the URL localhost Then open the Web Developer Tools If you find something like this in the console tab then your connection to the Medusa server is working Otherwise check that you follow all the steps and are not missing anything Remember the URL where your storefront app is running has to be the same that was set up on STORE CORS variable on the medusa server Display Products on the Home PageNow is time to render the products result returned from the Medusa server on the storefront In the same file pages index vue update the fetch function to the following async fetch try const products await this axios get store products this products products splice catch e eslint disable next line no console console log The server is not responding With this update the data coming back from the server replaces the products array with only four products to display on the homepage The v for applied on the ProductCard iterates the products array and passes to the component as a prop a product with all the properties specified on the Medusa API for that endpoint If you check the storefront on the browser it should look something like this Display Products on The Products PageIn the navigation bar there is a “Products link If you click on it you will be redirected to the products page but there will be only one static product Let s fix that to display all the products in your Medusa server on the page Open the pages products index vue file go to the script section and add the following fetch functionasync fetch try const products await this axios get store products this products products catch e eslint disable next line no console console log The server is not responding Check the products page in your browser and you should get something like this Display Product DetailsThe last page to update is the product detail page If you click on any product on the home page or the products page it will take you to the product s details page but you won t see any details at all To fix it you need to request a specific product to the Medusa server so you can get all the product info Open the file pages products id vue and add the following fetch functionaasync fetch try const product await this axios get store products this route params id this product product this imageToShow this product images id catch e eslint disable next line no console console log The server is not responding If you go again to your browser and click on any product you will be taken to the product details page like before but this time you ll see all details rendered on the page ConclusionAs you learned in this tutorial it is very easy to make a storefront from zero with Nuxt js and integrate it with your Medusa server The next steps for you would be to check the Medusa API to learn about all the different requests that you can call from your storefront to turn your Nuxt js storefront into a full fledged online store For example you can implement the Cart functionality The process would involve making the pages or components on the Nuxt js app and then making the respective requests to the Medusa server to get the data to render on the storefront If you have any issues or questions related to Medusa then feel free to reach out to the Medusa team via Discord 2022-03-01 13:00:34
Apple AppleInsider - Frontpage News How to make the most of iCloud's collaboration and sharing tools https://appleinsider.com/articles/22/03/01/how-to-make-the-most-of-iclouds-collaboration-and-sharing-tools?utm_medium=rss How to make the most of iCloud x s collaboration and sharing toolsIf you re using an app that supports iCloud for work chances are you ll need to collaborate with a teammate or coworker Here s how to get started with iCloud s sharing tools to help you effectively share your work with your coworkers and collaborate together You might need to share your work with your co workers and get a collaborative effort done in real time You might need to present and provide copies to your colleagues to make sure work is done properly Or simply you might have to send out a file or to add a note Whatever your collaborative needs are iCloud has got you covered Share File and collaborate in real time with iCloud Drive Read more 2022-03-01 13:50:03
Apple AppleInsider - Frontpage News Camera comparison: iPhone 13 Pro versus Galaxy S22 Ultra https://appleinsider.com/articles/22/03/01/camera-comparison-iphone-13-pro-versus-galaxy-s22-ultra?utm_medium=rss Camera comparison iPhone Pro versus Galaxy S UltraIn this battle of the flagships we compare Apple s iPhone Pro against Samsung s brand new Galaxy S Ultra to test which camera setup is best iPhone Pro and Galaxy S UltraFor this comparison we took both devices out on the town for a weekend to test in several real world scenarios While each had its strengths users will likely walk away with a favorite Read more 2022-03-01 13:13:19
海外TECH Engadget Apple's Mac Mini M1 drops back down to an all-time low of $570 https://www.engadget.com/apples-mac-mini-m1-drops-back-down-to-an-all-time-low-of-570-135002983.html?src=rss Apple x s Mac Mini M drops back down to an all time low of If you missed the sale earlier this month now s your chance to grab Apple s Mac Mini M at its best price yet The compact desktop has returned to a record low of thanks to a discount and a coupon that knocks an additional off the sale price You ll get the best deal on the GB version but the GB model is also cheaper than usual it s on sale for but an automatically applied coupon will bring the final price down to Buy Mac Mini M GB at Amazon Buy Mac Mini M GB at Amazon The Mac Mini M was already the most budget friendly M machine in Apple s lineup so it s a steal at this sale price You can expect performance similar to that of the MacBook Air M which is to say speedy and efficient with near instantaneous wake times and even zippy iOS app performance The Mac Mini M has an eight core CPU an eight core GPU and a core Neural Engine and both models on sale have GB of RAM If you want to future proof your machine a bit consider springing for the extra storage model But most people will likely find their needs met by the base GB version The small desktop s exterior will look familiar if you ve had a Mac Mini in the past Apple focused its efforts updating the inside so the outside is mostly unchanged The compact silver box should be able to fit into even the most cramped desk setups and it has a number of ports on its back edge including two Thunderbolt ports two USB A ports an HDMI connector an Ethernet port and a mm headphone jack While we re still waiting to hear whether Apple will have a hardware event in March there s no guarantee an updated Mac Mini will make an appearance at such an event So if you ve been on the hunt for a powerful desktop upgrade Amazon s latest sale on the Mac Mini M is one to consider Follow EngadgetDeals on Twitter for the latest tech deals and buying advice 2022-03-01 13:50:02
海外TECH Engadget Reddit hides r/Russia from search and recommendations due to misinformation https://www.engadget.com/reddit-quarantines-r-russia-134600419.html?src=rss Reddit hides r Russia from search and recommendations due to misinformationReddit has made r Russia harder to find and stumble across in a move meant to minimize misinformation on the website It has added the group to the list of quot quarantined subreddits quot which means it won t show up in search and recommendations as well as in non subscription based feeds Also anyone who loads an r Russia URL it will go through a portal where they ll have explicitly agree to visit the subreddit before seeing its content Those who do choose to visit will see a warning at the top of the page that says quot This Community contains a high volume of information not supported by credible sources quot EngadgetAccording to Mashable the Russia subreddit mostly contained posts that justified or supported the country s invasion of Ukraine Some accused Ukraine of being the one to spread misinformation and some reportedly likened Ukrainian soldiers to Nazis While there were some verifiable posts in the group it also had a lot of content that could be quickly debunked quot We are clear in our policies that moderators and users may not attempt to manipulate and interfere with the conversations or communities on our platform quot a Reddit spokesperson told the publication nbsp Over the past few days a number of tech companies have blocked access to Russian state owned media in Europe following the EU s decision to ban them so they could quot no longer be able to spread their lies to justify Putin s war quot Facebook restricted access to RT s and Sputnik s pages across EU territories in addition to blocking them in Ukraine Microsoft banned them from its ad network and de ranked them in Bing search results YouTube blocked access to their channels across Europe and even TikTok made their accounts inaccessible within the EU 2022-03-01 13:46:00
海外TECH Engadget ‘Cat Burglar’ works as a cartoon, but fails to nail the whole 'game' part https://www.engadget.com/cat-burglar-netflix-game-charlie-brooker-133017501.html?src=rss Cat Burglar works as a cartoon but fails to nail the whole x game x partI grew up in the era of VHS board games and later DVD special features that occasionally included little trivia games or interactive fiction the Home Movies box sets have some particularly good ones I find them sort of interesting in a “car crash sort of a way because they never really worked Today s streaming platforms would seem ripe for a revival of the “game video concept but even with better technology and storytelling available to creators the examples are still few and far between The one that s made the biggest splash thus far is probably “Bandersnatch the interactive episode of Black Mirror I “played it and like many I found it somewhat underwhelming Your choices were somewhat limited and the story fell rather flat and I never found the scene where you the main character fights his therapist to my infinite and everlasting sadness Still it was an intriguing effort Last week Charlie Brooker tries his hand at the format once again on Netflix but in a decidedly different genre old school cartoons Cat Burglar is a minute showdown between a cat trying to steal a painting from an art museum and the dog that works as the night guard As a cartoon it s a fairly pitch perfect copy of a Looney Tunes short down to the exaggerated expressions physical humor and occasional fourth wall breaking It could in fact stand alone without the interactive elements but if you really wanted an old school cartoon both Warner Bros and Disney make dozens of their best animated shorts available on HBO Max and Disney respectively There s also the Cuphead show on Netflix ーwhich doesn t interest me as I have never played the game and never will because I m just not that good at platformers NetflixSo the real draw of Cat Burglar is its interaction and it even bills itself as a “trivia game instead of just an “experience How does it fare as a game The gameplay consists of various quicktime events in which you must answer three quiz questions in a short period of time When you answer correctly the cat succeeds and the scene continues if you answer incorrectly the cat dies and you are sent back to make the choice again If you re looking for tricky trivia this isn t it as most of the questions are easily guessed by anyone over the age of eight There s clearly a “right answer and a “wrong answer and the game gives you three lives to lose before you get sent to heaven As such it feels even more restrictive than “Bandersnatch since you don t really get to make choices However while I said “most of the questions are meant to be easily answered the game will occasionally try to trick you up I ve died a few times in the game because my thumb twitched or I misread the answers there s one sequence full of double negatives or in one particular case I just hated the question I still maintain that an Emperor Penguin is more powerful than the Emperor of Japan I knew what answer the game wanted but it just made me mad for being so dumb The game will throw three questions at you each time but even getting one wrong will lose you the scene and thus a life But dying just means going back to the beginning and doing it all again and even then it s not everything ーthe game will skip over short bits of animation you ve seen before that aren t relevant to the overall plot NetflixWhen you beat the game by successfully stealing a painting your new acquisition goes on display in a gallery that carries over to subsequent playthroughs There s six of them but so far I ve only played enough to get half When you win ーor even when you lose ーthe game lets you start over with the characters promising a “completely new experience That in my evening of playing is decidedly not true as I ve already seen certain interchangeable scenes more than once Either there aren t that many options or I just have weird luck But you d hope the game would be programmed to avoid repeats at first Ultimately I think Cat Burglar works better as an experience than “Bandersnatch did because it s just much shorter if I wanted to replay “Bandersnatch I have to ask myself if I have an hour or more to kill just to see one or two story paths Knowing that Cat Burglar is going to be quick certainly makes it less daunting and it s not even a bad option for kids as long as you don t mind gratuitous cartoon violence 2022-03-01 13:30:17
海外TECH Engadget ESA says ExoMars launch this year is 'very unlikely' https://www.engadget.com/esa-exomars-launch-this-year-very-unlikely-131533428.html?src=rss ESA says ExoMars launch this year is x very unlikely x We most likely won t see the ExoMars mission blast off and start its journey to the Red Planet this year The European Space Agency has announced that it s fully implementing sanctions imposed on Russia by its member states following the country s invasion of Ukraine and it expects the move to affect its joint projects with Roscosmos One of those joint projects is ExoMars which is being developed to search for past life on the Red Planet as well as to assess its water and atmospheric trace gases The ESA is working on the rover that will travel across the Martian surface while the Russian space agency is in charge of its lander and some instruments the rover will use In the ESA s announcement it said quot the sanctions and the wider context make a launch in very unlikely quot The agency still has to analyze all its options before it can finalize a decision on how to proceed nbsp ExoMars was supposed to launch in before it was rescheduled for but the COVID pandemic and multiple technical failures during testing prompted the space agencies to postpone it yet again To be able to reach Mars from Earth a spacecraft has to leave our planet within day launch windows that only occur every two years when the two planets are properly lined up If ExoMars is missing the this year s window then it will definitely be delayed for another couple of years at the very least The ESA has also acknowledged that Roscosmos halting Soyuz launches and withdrawing its workforce from the vehicle s usual launchpad in Kazakhstan will affect some of its projects and payloads In addition as The New York Times notes the war calls the fate of the ISS into question At the moment NASA and Roscosmos are working together to maintain the space station But Roscosmos Director General Dmitry Rogozin recently said that US sanctions against his country could degrade its space program and destroy its partnership with NASA He said quot If you block cooperation with us who will save the International Space Station ISS from an uncontrolled deorbit and fall into the United States or Europe There is also the possibility of a ton structure falling on India and China Do you want to threaten them with such a prospect The ISS does not fly over Russia therefore all the risks are yours Are you ready for them quot While the US side of the ISS provides life support and power the Russian side provides propulsion to maintain its altitude NASA s human spaceflight program head Kathy Lueders said operations are going well thus far but that Northrop Grumman and SpaceX have offered to help look for ways to add capability to the US side of the space laboratory 2022-03-01 13:15:33
海外TECH CodeProject Latest Articles Create a Digital Ocean Droplet for .NET Core Web API with a real SSL Certificate on a Domain https://www.codeproject.com/Articles/5326406/Create-a-Digital-Ocean-Droplet-for-NET-Core-Web-AP Create a Digital Ocean Droplet for NET Core Web API with a real SSL Certificate on a DomainI want to host some simple applications under a real HTTPS domain This article describes my foray into doing exactly this with a Digital Ocean Droplet 2022-03-01 13:31:00
金融 ニュース - 保険市場TIMES SOMPOひまわり生命、「健康をサポートするがん保険 勇気のお守り」が10万件を突破 https://www.hokende.com/news/blog/entry/2022/03/01/230000 2022-03-01 23:00:00
ニュース BBC News - Home Ukraine: Vladimir Putin using barbaric tactics, Boris Johnson says https://www.bbc.co.uk/news/uk-60565392?at_medium=RSS&at_campaign=KARANGA barbaric 2022-03-01 13:25:16
ニュース BBC News - Home Ukraine conflict: Shares fall and oil rises as Russian attacks continue https://www.bbc.co.uk/news/business-60557077?at_medium=RSS&at_campaign=KARANGA russia 2022-03-01 13:46:19
ニュース BBC News - Home Southend: Prince Charles presents city status document https://www.bbc.co.uk/news/uk-england-essex-60568792?at_medium=RSS&at_campaign=KARANGA amess 2022-03-01 13:05:15
ニュース BBC News - Home Ukraine: What sanctions are being imposed on Russia? https://www.bbc.co.uk/news/world-europe-60125659?at_medium=RSS&at_campaign=KARANGA ukraine 2022-03-01 13:39:45
ニュース BBC News - Home Ukraine crisis: Is the UK doing enough to help refugees? https://www.bbc.co.uk/news/60555166?at_medium=RSS&at_campaign=KARANGA ukraine 2022-03-01 13:11:48
ニュース BBC News - Home Ukraine maps: Tracking Russia's invasion https://www.bbc.co.uk/news/world-europe-60506682?at_medium=RSS&at_campaign=KARANGA invasionrussia 2022-03-01 13:38:57
ニュース BBC News - Home Russia set for Paralympics decision as Ukraine squad travels to Beijing https://www.bbc.co.uk/sport/disability-sport/60572242?at_medium=RSS&at_campaign=KARANGA Russia set for Paralympics decision as Ukraine squad travels to BeijingA decision over Russia s involvement at the Paralympics will be made on Wednesday says the International Paralympic Committee 2022-03-01 13:41:56
北海道 北海道新聞 男女格差、日本103位に急降下 世銀、経済的な権利で調査 https://www.hokkaido-np.co.jp/article/651587/ 世界銀行 2022-03-01 22:19:00
北海道 北海道新聞 空知94人感染 新型コロナ https://www.hokkaido-np.co.jp/article/651581/ 新型コロナウイルス 2022-03-01 22:04:43
北海道 北海道新聞 後志管内55人感染 小樽で1人死亡 新型コロナ https://www.hokkaido-np.co.jp/article/651379/ 新型コロナウイルス 2022-03-01 22:07:26
北海道 北海道新聞 胆振50人、日高4人感染 新型コロナ https://www.hokkaido-np.co.jp/article/651567/ 胆振管内 2022-03-01 22:07:00
北海道 北海道新聞 道南で122人感染 新型コロナ https://www.hokkaido-np.co.jp/article/651396/ 新型コロナウイルス 2022-03-01 22:05:15
北海道 北海道新聞 中川監督がパリ・パラ出場へ抱負 5人制ブラインドサッカー代表 https://www.hokkaido-np.co.jp/article/651584/ 記者会見 2022-03-01 22:03:00
北海道 北海道新聞 小樽青果市場を物流拠点に 競り停止で再スタート https://www.hokkaido-np.co.jp/article/651566/ 卸売業者 2022-03-01 22:02:57
北海道 北海道新聞 対ロシア漁業交渉に懸念 釧根管内の関係者「輸入停止なら大打撃」 https://www.hokkaido-np.co.jp/article/651580/ 根室管内 2022-03-01 22:01:53
北海道 北海道新聞 時差通勤定期、来春の導入目指す JR東、早期認可求める https://www.hokkaido-np.co.jp/article/651583/ 通勤 2022-03-01 22:01: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件)