投稿時間:2023-06-15 00:34:31 RSSフィード2023-06-15 00:00 分まとめ(36件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… ソニーの新型ワイヤレスイヤホン「WF-1000XM5」の一部仕様が明らかに https://taisy0.com/2023/06/14/173009.html winfuture 2023-06-14 14:45:58
AWS AWS Architecture Blog Disaster Recovery for Oracle Database on Amazon EC2 with Fast-Start Failover https://aws.amazon.com/blogs/architecture/disaster-recovery-for-oracle-database-on-amazon-ec2-with-fast-start-failover/ Disaster Recovery for Oracle Database on Amazon EC with Fast Start FailoverHigh availability is non negotiable for organizations today to prevent business critical application disruptions Enterprises must prioritize database scalability and availability to avoid downtime in their databases network servers or storage environments For organizations that want to avoid required application changes Oracle Real Application Clusters RAC is an option for providing high availability and scalability to the … 2023-06-14 14:15:42
python Pythonタグが付けられた新着投稿 - Qiita Semantic Kernel(Python版)でログを出力する https://qiita.com/suzuki_sh/items/66f73fbe9cbd169b4a3f ickerneldevgooglecolab 2023-06-14 23:47:16
python Pythonタグが付けられた新着投稿 - Qiita 【Python】Wordcloudによる文章の可視化 https://qiita.com/grapefruit1030/items/dd5e9af26fd3a5f3c8e0 importrew 2023-06-14 23:14:06
python Pythonタグが付けられた新着投稿 - Qiita 【Python】scikit-learnの分類器の比較の備忘録 https://qiita.com/grapefruit1030/items/8f1286bf0079a7adb83f scikitlearn 2023-06-14 23:03:47
python Pythonタグが付けられた新着投稿 - Qiita IT系サイトから特定のキーワードを含む記事を収集し、teamsに送信するツールの作成 https://qiita.com/engishoma/items/f6ee8bf0afb49cda2d28 teams 2023-06-14 23:01:56
js JavaScriptタグが付けられた新着投稿 - Qiita 二重否定について調べました https://qiita.com/makoto-ogata@github/items/93cd708ff230c41f35b3 foobar 2023-06-14 23:37:55
js JavaScriptタグが付けられた新着投稿 - Qiita CORS問題についてまとめてみた https://qiita.com/pappy/items/85cff2a1ef6e617617bb corserror 2023-06-14 23:13:45
AWS AWSタグが付けられた新着投稿 - Qiita RDS for Oracle 21cへのインプレースアップグレードを実施してみた https://qiita.com/asahide/items/39abcafe12a7e6669195 rdsfororacle 2023-06-14 23:16:18
海外TECH MakeUseOf Amazon Fire, Roku, or Apple TV: Which Streaming TV Device Should You Get? https://www.makeuseof.com/amazon-fire-roku-apple-tv-which-device-should-you-get/ amazon 2023-06-14 14:45:17
海外TECH MakeUseOf The Top 4 Raspberry Pi 400 Alternatives https://www.makeuseof.com/raspberry-pi-400-alternatives/ alternativeswith 2023-06-14 14:30:18
海外TECH MakeUseOf What to Consider When Buying an Electric Motorbike https://www.makeuseof.com/buying-an-electric-motorbike-considerations/ delivers 2023-06-14 14:30:18
海外TECH MakeUseOf Get Spotless Floors for Less: Get the Best Robot Vacuum Deals https://www.makeuseof.com/best-robot-vacuum-deals/ deals 2023-06-14 14:24:18
海外TECH MakeUseOf The 10 Best Windows File Explorer Alternatives and Replacements https://www.makeuseof.com/tag/best-windows-file-explorer-replacements/ explorer 2023-06-14 14:15:17
海外TECH DEV Community Let's Learn Django #1 Init https://dev.to/dilutewater/lets-learn-django-1-init-g87 Let x s Learn Django InitThis is a blog series about Django from the very basics Installing amp initialising a projectDjango is a really powerful Python based web framework with the philosophy batteries included It means it gives you everything you need to build a full stack web application Django s Tag line is The web framework for perfectionists with deadlines It s because it allows you to create professional grade web apps very quickly However learning it may seem a bit complex but believe me it is not And to help with that I m writing this blog series So let s start from the very basics installation amp initialising a project InstallationInstalling Django is pretty straightforward You just need to use pip to install Django However it s always recommended to use a virtual environment for a project So we will start by creating a virtual environment python m venv venvThis will create a virtual environment in the venv folder To use this environment we need to activate it Activating it is different in Windows Linux amp MacOS Bash Shell Linux source venv bin activateFish Shell Linux source venv bin activate fishCMD Windows venv Scripts activate batPowershell Windows venv Scripts Activate psMacOSsource venv bin activateAfter activating the virtual environment we can install Django using pip pip install DjangoOf this we have successfully installed Django on our systems So what are we waiting for Let s start a project Initialising a projectTo start a project we will use the django admin command It will help us generate the boilerplate code django admin startproject lt projectname gt For eg django admin startproject triviaquizThis will generate a boilerplate code for you It will include a lot of files like manage py settings py models py urls py etc Now to organise our code we divide our Django web app into several smaller sub apps To create a sub app we will again use the django admin command django admin startapp lt app name gt For eg django admin startapp quizThis will create a new folder with several other files like models py views py admin py etc You can try exploring all these files yourself as Django provides comments in the boilerplate code for easy understanding However I will also explain each of them in detail in my next blog Running the projectTo run the project we will use the following command python manage py runserverThis will start the server with your project at And by going to this url you will a default Django page like this If you are seeing this then congrats you have successfully set up amp started your project In the next blog I will explain all the different Django files in detail Stay Tuned Follow my journey on Twitter notnotrachit 2023-06-14 14:38:22
海外TECH DEV Community This Week In React #148: Remix Routing, Hydration, React.FC, Vite + RSC, Astro, Valhalla, Reanimated, Expo-Apple-Targets... https://dev.to/sebastienlorber/this-week-in-react-148-remix-routing-hydration-reactfc-vite-rsc-astro-valhalla-reanimated-expo-apple-targets-o29 This Week In React Remix Routing Hydration React FC Vite RSC Astro Valhalla Reanimated Expo Apple Targets Hi everyone Well Dan Abramov is on holiday which is probably why there hasn t been much happening this week in our beloved ecosystem We do however have a few interesting articles and a potential official package for integrating React Server Components with Vite Subscribe to the official newsletter to receive an email every week SponsorTina io is a headless CMS for Markdown powered sitesEditing UI for your Markdown filesUI for MDX componentsSupports static SSG and server side rendering SSR Option for visual editing live preview Build with reusable blocksTest a starter siteDocusaurus Github Next js Tailwind with visual editing Github Or run  npx create tina app latest then visit localhost adminWatch the min demo video ️ReactColocate your routes into feature folders with Remix Custom RoutesExplains how Remix v s flat file routing will improve featured based code colocation This can be activated from Remix v with a feature flag With Remix you can create your own routing conventions Jacob proposes to improve colocation even further with remix custom routes and a naming convention using the route tsx suffix Hydration is a tree Resumability is a mapGives an interesting mental model for understanding the difference between hydration React and resumability Qwik With resumability all components are considered static and event handlers are the entry point for interactivity There is no need to traverse a tree O n with resumability scalability is good like the lookup in a hashmap O react server dom vite WIP React core PR being reviewed to add an official Vite integration package for React Server Components supporting the lazy and ESM nature of the bundler Sophie Alpert looking for a job unique opportunity to hire one of the top React contributors of all time You Can Stop Hating React FC for Matt Pocock React FC is no longer an anti pattern starting with TypeScript and React but he recommends sticking to annotating props Better Images in Astro Astro v brings a new optimised image component experimental It uses webp avoids layout shifts supports Markdown relative paths and external image services Zedux Is this the one introduction to Zedux a new React state manager based on atoms and composition There are a lot of React state managers out there and I thought this one stood out and was worth taking a look at impressive list of features polished documentation and takes the best of existing solutions React how to debug the source code a few setup tips if you want to debug Jest tests of the React codebase Netlify Connect integration of the Gatsby Valhalla GraphQL data layer into Netlify following the acquisition of the React framework Add Drizzle ORM to a Remix appA Visual Guide to the new App Router in Next js Thinking in React Query slides from React Summit talk React Query is an Async State Manager not just a data fetching solution Shadcn UI CLI new configurable CLI for the Radix Tailwind Shadcn UI component collection Hiber D new framework for creating interactive D worlds based on React NakedJSX simple CLI tool to generate static sites in JSX rad event listener alternative API for adding listeners Returns a cleanup function useful for reducing the React boilerplate Tremor v React library to build dashboardsReact Redux ️This Month in React May our monthly podcast with Reactiflux Does Lock In Even Matter Anymore interesting reflection on the potential lock in or not of Vercel when using certain Next js features Is Next js App Router Slow Performance Deep DiveFrom Pages to the App Directory in Next js Nested Layouts High school student makes React a million times faster SponsorReact Bricks is a CMS with visual editing for Next js Remix and Gatsby It s flexible for Developers with React components you can create your own design system Add true inline Visual editing to your JSX and add sidebar controls to edit props like the background color You can choose Next js Remix or Gatsby and any CSS framework Content editors can easily edit content inline without breaking the design system It s as easy as using Word or Pages allowing them to create landing pages in minutes without relying on developer resources It s enterprise ready with Collaboration Time machine Single Sign on GDPR compliant datacenters Global CDN for optimized images E commerce integration Fine grained permissions Scheduled publishing and more Get started here   React NativeReact Native RC new Golden RC fixing bugs and bringing XCode support React Native XCode support also available for v and v Reanimated supports React Native v and React Native Web v Expo Apple Targets Config Plugin to create Apple targets Share Extension Widgets Watch App It only handles target generation and linking and is not a way to develop those targets with React Native Running Maestro UI Tests in an Expo Development Build️React Native Radio Embarking on Expo SDK Building a MacOS App with React Native Is it Possible What s the best cross platform technology in nice retrospective of cross platform from to and the main players in React Native Shared Element Transitions with Reanimated ‍Jobs‍Passionfroot Senior Full stack Engineer Remix €k Berlin remotePassionfroot s mission is to empower the independent businesses of tomorrow via YouTube Podcasts Social Media and Newsletters Join us in building a tool that will empower creators globally to build scalable sustainable businesses ‍Callstack Senior React Native Developer Fully Remote PLN k net on BB monthlyDo you want to work on the world s most used apps Would you like to co create the React Native technology Join the Callstack team of React amp React Native leaders Check our website for more details We are looking forward to seeing your application show us what you ve got ‍Gi Remote React Native JobsWe have several roles open for developers focused on React Native Pay is k plus bonus You must have production experience with RN and be based in the US DM gabe gi to learn more and don t forget to mention This Week in React How to publish an offer OtherPolywasm A polyfill for WebAssemblyWasmati a TypeScript library to write Wasm at the instruction levelEzno compiler typechecker open sourcedWhy We Should Stop Using JavaScript According to Douglas CrockfordWeb Apps on macOS Sonoma BetaModern CSS in Real LifeModern CSS For Dynamic Component Based ArchitectureLightning CSS ts patterns What s New in DevTools Chrome FunSee ya 2023-06-14 14:32:19
海外TECH DEV Community Kubernetes for the poor https://dev.to/mrgoonie/kubernetes-for-the-poor-2ne Kubernetes for the poorKubernetes is great since the last few years it has proved that it is the best container orchestration software on the market However there is problems though It is difficult to learn and pronouce lol Successfully managing Kubernetes clusters requires a deep understanding of so many concepts definitions and practices involved With so much to consider it can be difficult for developers to know how to deploy apps in the most effective way To deploy apps on Kubernetes you will need a CI CD process so you have to learn a little bit about building container images pushing it to the container registry telling the cluster to pull amp run a container monitoring the logs … It s not cheapGoogle Cloud AWS Azure …they are all providing well managed Kubernetes engine service And they are not cheap you will be charged for the control plan and also for the compute engine usage for each nodes of a cluster separately Not counting other network amp storage costs If you re thinking about running your own managed Kubernetes cluster on your infrastructure then you will back to deal with the first problem Kubernetes complexity But that s not it if you don t monitor your workloads well such as control and analyze your resource usage you may end up having to pay huge Kubernetes bills at the end of the month Another issue is deployment to deploy on KS you need to go through many steps as I mentioned earlier in the section or you can use CI CD services like Github Actions or Bitbucket Pipeline to automate the tasks That brings you to find the DevOps engineers for doing such a job And trust me human resources are much expensive than any infrastructure resources Additionally CI CD services are not free At first you might think a thousand build minutes per month is a large number and that you would never reach it However in reality it often ends up being a much higher number Just do a quick math if you have four people working on a project and each of them builds three times a day on average and each build takes three minutes by the end of the month you will have spent minutes on builds x x x minutes see Note that you will likely have more than one project per month and not all project builds will take less than three minutes And guess what If you want to build app faster or your app requires more compute resource to build you need to pay more money for extra resource quotas How did I deal with these problems I learned Kubernetes so you don t have toKubernetes is hard Pushing developers to learn it even harder and cruel their life is already really tough nowadays So I learned Kubernetes and I ve tried to train my team to use it a few times After more than years of working with Kubernetes for my clients partners and my own teams I have realized that the most difficult aspect is training others on how to use Kubernetes and deploy applications onto it Developers should not have to be frustrated by deploying their apps to the infrastructure or having to bother DevOps engineers to help with deployment They should be able to fully focus on developing their apps without needing to understand complex concepts or definitions of servers domains and infrastructure related topics So I started building tools to help my team deploying apps to Kubernetes cluster Why not using Jenkin Because I don t like Jenkins Just that lol Actually because Jenkins can solve the deployment but I want more than that I want to take more control automation amp monitoring my KS clusters It went well…until I started losing control of monitoring workloads when it started growing Then I still needed someone with DevOps Kubernetes knowledge to help out but… I m poor and I still want to keep adopting Kubernetes…I faced the challenge by keep evolving the tool I made recently My goals are simply summarized in Simplify those Kubernetes concepts amp definitions to something our developers can understand Enhance our developer experience with easy to remember commands Centralized monitoring our KS clusters no matter where it is and what is its cloud provider Build and deploy apps on our own server so it can take the full compute resource for faster build time Manage our cloud resources other than KS clusters such as databases health check …Automate whatever tasks I want…It took me months to build this tool luckily we ve been working with a lot of clients who have multiple Cloud resources across cloud providers so I got opportunities to fix and improve the tool day by day Until now my companies have been using this tool for years I really want to add more features but as I ve become increasingly busy the release of new features has been slowing down Well I started considering open sourcing this project because I believe it can significantly improve the efficiency of those working with multiple Kubernetes clusters and other cloud resources as it has for me and also being poor just like me lol And there it is… Diginextis the web app server and command line interface CLI client to help developers deploy their projects amp interact with their cloud resources easily Think of it like your own “Vercel platform which is running on your own infrastructure and managing your cloud resources Wanna try out I have a small KS cluster for free on so you can get your hands dirty right away Just follow these steps Before creating a new workspace you will need a key get one here no worries it s FREE Create a new Diginext workspace with your DX key in the previous step at Connect your Github to that workspace Connect your Docker Hub to the workspace to store the container image Install Diginext CLI on your computer npm i topgroup diginext location globalConnect your Diginext CLI with that workspaceCreate new app with this CLI command dx newFor example Project SomethingApp Static SiteFramework pick “Static Site Framework Git provider select the one you have connected recently Deploy it cd something amp amp dx deployCluster pick “Default Cluster Container registry pick “Your Docker Hub Use generated domain YESPort Watch the build process at When it s finished…Boom There you go your website is live at Notes Since this “hobby workspace is FREE and I m poor I cannot provide any uptime guarantee or SLA plus that it will have some limited quotas on number of concurrent builds amount of apps …So please don t use it as a production environment deployments on this cluster are subjected to be deleted to free up the resources at any time By validating DX API keys I would be able to limit resources in the workspace just to make sure my server is having enough rooms for everyone who wanna try out If you want to get rid of these limits set up your self hosted workspaces by following this instruction Wanna set up your own workspace I wrote some articles to help you getting started below I turn my company s PC into my own “Vercel like platform ConclusionAny feedbacks are welcome If you are looking for other features or wanna give me a hand below is where you can start Roadmap Getting Started Contributing Thank you It s a long article thanks for getting here If you find any difficulties or bugs please let me know I m happy to help 2023-06-14 14:20:11
海外TECH DEV Community Integrating the WebContainer API with Node.js https://dev.to/logrocket/integrating-the-webcontainer-api-with-nodejs-49o4 Integrating the WebContainer API with Node jsWritten by Antonello Zanini️Node js is a popular and powerful platform for building scalable and efficient web applications However in some cases it may be necessary to build a Node js application for a quick proof of concept or in collaboration with other developers Creating local environments can be a major inconvenience particularly when attempting to prototype ideas quickly experiment with open source libraries collaborate with colleagues or reproduce bugs This is where the browser based WebContainers come into play This article will discuss how to create full stack Node js environments that can be launched within seconds and are immediately accessible and shareable via a single click We ll cover What are WebContainers About our sample project Initial setup Setting up WebContainers with Express js Creating the Express js application Integrating WebContainers Creating a file autoloader Running WebContainers Installing dependencies Running an Express js service inside WebContainers Editing the Express js application inside the WebContainer Adding pretty logging with xterm What are WebContainers Browser based WebContainers also known as web based containers are runtime environments that allow developers to execute code and run applications within a web browser without the need for installing additional software or infrastructure These WebContainers are typically powered by technologies like Docker Kubernetes or WebAssembly and provide a consistent and secure runtime environment for web development With browser based WebContainers developers can build test and deploy applications directly in the browser without the need for setting up a local development environment or relying on cloud based virtual machines Instead a WebContainer creates an isolated environment within the browser which includes all of the dependencies libraries and system resources required to run an application This environment is separate from the developer s local machine or any cloud based infrastructure providing a consistent and secure runtime environment for the application Developers can interact with the application running in the WebContainers using a web based interface which provides a GUI for interacting with the application and its associated files The WebContainer API alsos provide a command line interface for running system commands and executing code directly within the browser About our sample project This article will guide you through the steps necessary to create a new Express js application and configure it as a WebContainer for efficient deployment and management of web applications Whether you are an experienced web developer or just starting with WebContainers this practical guide will provide a comprehensive understanding of how to get started with WebContainers in Node js You can find the entire source code for this project on my GitHub Initial setupTo begin we will create a new folder to store our project mkdir WebContainerscd WebContainersInitialize a new npm project npm initMake sure that Node js is installed on your system node versionIf Node js is not installed please follow the official guide to install it or use Node version manager npm init is a command used to initialize a new Node js project When you run this command in your terminal npm will prompt you to enter some information about your project such as the Project name Version Description Entry point Author LicenseOnce you have provided this information npm will generate a package json file in your project directory with all the metadata and configuration for your project The package json file is a key component of Node js development because it contains the dependencies and scripts required to build test and deploy your application By running npm init and filling out the necessary information you can create a new Node js project and easily manage its dependencies and configuration with npm Add the next content to your index html file lt DOCTYPE html gt lt html lang en gt lt head gt lt meta charset UTF gt lt title gt node js WebContainers lt title gt lt link rel stylesheet href styles css gt lt head gt lt body gt lt div class container gt lt div class editor gt lt textarea gt Editor lt textarea gt lt div gt lt div class preview gt lt iframe src placeholder html gt lt iframe gt lt div gt lt div gt lt div class terminal gt lt div gt lt script type module src index js gt lt script gt lt body gt lt html gt Add the placeholder html file to show the initial content in iframe lt DOCTYPE html gt lt html lang en gt lt head gt lt meta charset UTF gt lt title gt Loading placeholder lt title gt lt head gt lt body gt Installing dependencies lt body gt lt html gt We ll use Vite to construct and operate our application install it below npm install vite Add a script to run our application in package json name WebContainers version description node js WebContainers application main index js scripts start vite dependencies vite Now we can run our initial application with this command npm startYou should see the simple application in your browser The default location in the browser is http localhost Let s enhance the visual appeal of our application Include the file styles css box sizing border box body margin height vh container display grid grid template columns fr fr gap rem height width textarea width height resize none border radius rem background black color greenyellow padding rem rem iframe height width border radius rem Restart the application you should see the following Setting up WebContainers with Express js Express js is a web application framework for Node js that allows developers to build fast and scalable web applications with features such as middleware routing and templating engines It is simple and flexible making it a popular choice among developers For demonstration purposes I have integrated it within our app but in the actual production environment our Express js application will be separate from our main application Later you can connect any Express js application to WebContainers Creating the Express js application Create a new folder called app mkdir appcd appInside the app folder we need two files index js and package json index js is a straightforward Express js application that returns “Hello World text on the root route import express from express const app express const port app get req res gt res send Hello World app listen port gt console log The application can be accessed at http localhost port as it is now live To run the application we should install dependencies Add the following in the app package json file name example app type module dependencies express latest nodemon latest scripts start nodemon watch index js And install your dependencies inside the app folder npm installNow you can run your Express js application with the following command npm startAnd see the result on http localhost Integrating WebContainersOnce we are done with the Express js application we can move back to the root folder and continue working on WebContainers cd First things first let s install WebContainers in our application npm install webcontainer api We ll create a file named index js where we declare constants to manipulate HTML elements and create a WebContainers instance import WebContainer from webcontainer api const iframe document querySelector iframe const textarea document querySelector textarea let WebContainersInstanceAdd a load event listener for the window object window addEventListener load async gt console log Window is loaded Creating a file autoloader Let s create a file autoloader to ensure that our Express js files are loaded into our WebContainers Create a new file autoloader js and put the following content inside const fs require fs const INPUT app const OUTPUT files js List of files to include into WebContainersconst files index js package json const exportLine export const files const content files forEach file gt const buffer fs readFileSync INPUT file content file file contents buffer toString fs writeFileSync OUTPUT exportLine JSON stringify content null It is advisable to prepare our scripts so that this code is executed prior to commencing project Change the script section in the package json file scripts start npm run prepare amp amp vite prepare node autoloader js The last changes should be done in the index js file import the data from the created file and attach it to our editor window …import files from files …window addEventListener load async gt textarea value files index js file contents console log Window is loaded Now you can run the application npm startMake sure that the content from your app index js appears in the editor window Running WebContainers Now we will instantiate a new WebContainers instance window addEventListener load async gt textarea value files index js file contents WebContainersInstance await WebContainer boot await WebContainersInstance mount files console log Window is loaded With most popular browsers you may meet an error with a blocking frame We should include headers to match the Vite configuration Create a vite config js file with the next content export default server port headers Cross Origin Embedder Policy require corp Cross Origin Opener Policy same origin Then hard reload the page Control Command R on macOS Control Shift R on Windows to prevent caching and restart the Vite server Installing dependenciesIt is time to install our Express js project dependencies inside our WebContainer Add another function to the index js file async function installDependencies const installProcess await WebContainersInstance spawn npm install installProcess output pipeTo new WritableStream write data console log data return installProcess exit Run this function in the load callback window addEventListener load async gt textarea value files index js file contents WebContainersInstance await WebContainer boot await WebContainersInstance mount files await installDependencies console log Window is loaded After running the application you can see the entire dependency installation process within the browser s console Running an Express js service inside WebContainers We are ready to run the Express js application inside WebContainers Add a function in the index js file async function startDevServer const serverProcess await WebContainersInstance spawn npm run start serverProcess output pipeTo new WritableStream write data console log data WebContainersInstance on server ready port url gt iframe src url Execute this function inside the load callback window addEventListener load async gt textarea value files index js file contents WebContainersInstance await WebContainer boot await WebContainersInstance mount files await installDependencies startDevServer console log Window is loaded After all dependencies are installed you can see the express js app response in the iframe window Editing the Express js application inside the WebContainer Merely reading the Express js application would be futile we should have the ability to modify it Add a function into index js file async function writeIndexJS file content await WebContainersInstance fs writeFile file content We would like to catch all input events from the editor window and reflect them in the iframe window Add an event listener inside the load callback window addEventListener load async gt textarea value files index js file contents textarea addEventListener input e gt writeIndexJS index js e currentTarget value … Adding pretty logging with xterm In essence we have integrated our basic Express js application into a WebContainer However we aim to incorporate elegant logging instead of relying on the console within the browser This will provide a more convenient way to access log files and dig into the complete dependency installation process when needed Let s install a new dependency npm install xterm xterm is a JavaScript library that provides a web based terminal emulator with ANSI escape sequences Unicode characters and other features It is easy to use and customize making it a popular choice for adding a terminal interface to web applications We have to capture the HTML element with the class terminal and attach the terminal to it Import xterm and its styles into index js …import Terminal from xterm import xterm css xterm css …And add a variable for terminal HTML element const iframe document querySelector iframe const textarea document querySelector textarea const terminalElement document querySelector terminal Initialize the terminal in the load callback window addEventListener load async gt … const terminal new Terminal convertEol true terminal open terminalElement … We have to pass the terminal instance in all functions where we need output and replace the console log Refactor the installDependencies function async function installDependencies terminal const installProcess await WebContainersInstance spawn npm install installProcess output pipeTo new WritableStream write data terminal write data return installProcess exit The same for the startDevServer function async function startDevServer terminal const serverProcess await WebContainersInstance spawn npm run start serverProcess output pipeTo new WritableStream write data terminal write data WebContainersInstance on server ready port url gt iframe src url Pass the terminal instance to the functions in the load callback await installDependencies terminal startDevServer terminal Restart the application The end result should look like this The entire source code can be found on my GitHub ConclusionBrowser based WebContainers are a powerful tool for web developers when combined with Node js especially if you re looking to streamline your development process and improve your workflow These containers offer a lightweight and scalable solution for building and deploying web applications allowing developers to easily test and deploy their code in a secure and isolated environment As Node js remains popular in web development browser based WebContainers provide an innovative and efficient way to leverage its capabilities in new settings By incorporating this technology into your workflow you can enhance your productivity and create high performance web applications with ease Overall browser based WebContainers with Node js are a valuable addition to any web development toolkit and their potential for innovation and optimization is only set to increase in the future Get setup with LogRocket s modern Node error tracking in minutes Visit to get an app ID Install LogRocket via NPM or script tag LogRocket init must be called client side not server side NPM npm i save logrocket Code import LogRocket from logrocket LogRocket init app id Script Tag Add to your HTML lt script src gt lt script gt lt script gt window LogRocket amp amp window LogRocket init app id lt script gt Optional Install plugins for deeper integrations with your stack Redux middleware ngrx middleware Vuex pluginGet started now 2023-06-14 14:08:09
Apple AppleInsider - Frontpage News Sonos slashes jobs and shrinks real estate presence in cost-cutting drive https://appleinsider.com/articles/23/06/14/sonos-slashes-jobs-and-shrinks-real-estate-presence-in-cost-cutting-drive?utm_medium=rss Sonos slashes jobs and shrinks real estate presence in cost cutting driveSonos has revealed plans to lay off of its workforce and downsize its real estate presence as the latest tech company to eliminate jobs Sonos announces layoffsThe company which specializes in designing and manufacturing smart speakers and audio products announced the layoffs in a filing with the SEC according to Seeking Alpha The process of eliminating positions must comply with specific legal obligations and consultation requirements in particular countries Read more 2023-06-14 14:56:32
Apple AppleInsider - Frontpage News Apple is better at converting people to iPhone than Google for Android https://appleinsider.com/articles/23/06/14/apple-is-better-at-converting-people-to-iphone-than-google-for-android?utm_medium=rss Apple is better at converting people to iPhone than Google for AndroidWhile there is a small number of iPhone users who switch to Android iPhone owners have a greater level of brand loyalty compared to Android users Not many people actually switch between smartphone brandsIn the past decade there has been an increasing trend among Android users to switch to iPhones For example people with a specific reason to switch cited battery life or connectivity issues Read more 2023-06-14 14:19:46
Apple AppleInsider - Frontpage News Daily deals: 15" MacBook Air $1,234, $500 off M1 MacBook Pro, Fire HD 8 Tablet for $30, more https://appleinsider.com/articles/23/06/14/daily-deals-15-macbook-air-1234-500-off-m1-macbook-pro-fire-hd-8-tablet-for-30-more?utm_medium=rss Daily deals quot MacBook Air off M MacBook Pro Fire HD Tablet for moreToday s top deals include off an M Mac mini AppleCare kit off a TCL QLED K Smart Mini LED TV up to off TP Link Smart plugs with Echo devices and a Google Nest thermostat for Save on a M MacBook ProThe AppleInsider team scours the internet for high quality discounts at ecommerce stores to curate a list of top notch deals on popular tech gadgets including discounts on Apple products TVs accessories and other products We share the most valuable bargains each day to help you save money Read more 2023-06-14 14:09:54
海外TECH Engadget Amazon's Freevee is adding free MGM and Warner Bros. Discovery channels https://www.engadget.com/amazons-freevee-is-adding-free-mgm-and-warner-bros-discovery-channels-144339161.html?src=rss Amazon x s Freevee is adding free MGM and Warner Bros Discovery channelsAmazon s Freevee is continuing to expand its lineup of cable style streaming channels The platform currently has more than free ad supported TV FAST channels and it s adding more from MGM and Warner Bros Discovery Twelve MGM channels are coming to the service over the next few months including one called MGM Presents and others dedicated to action and sci fi shows and movies There will be channels focused on individual shows including The Pink Panther Stargate Green Acres and The Outer Limits There are already dedicated channels for the likes of Paternity Court In the Heat of the Night The Addams Family and Teen Wolf Amazon bought MGM last year and spinning up FAST channels to monetize the studio s wealth of films and TV shows makes a lot of sense Perhaps there ll be a James Bond one at some point too Meanwhile Freevee is adding FAST channels from Warner Bros Discovery WBD this month They ll include reality and documentary shows such as Cake Boss Extreme Couponing Ghost Brothers Paranormal Lockdown Say Yes to the Dress and Long Lost Family WBD has made a push into FAST channels in recent months in an attempt to generate more revenue It pulled shows such as Westworld and The Nevers from its own Max streaming service to offer those titles and others for free on FAST channels on the likes of Roku and Tubi You ll be able to access all of these channels through the Freevee app Fire TV and Prime Video you don t need an Amazon Prime subscription to watch them Earlier this year Amazon said it would make more than Prime Video shows and movies available for free through Freevee s channels This article originally appeared on Engadget at 2023-06-14 14:43:39
海外TECH Engadget Amazon's Echo Dot comes with a smart plug for less than the speaker on its own https://www.engadget.com/amazons-echo-dot-comes-with-a-smart-plug-for-less-than-the-speaker-on-its-own-142920470.html?src=rss Amazon x s Echo Dot comes with a smart plug for less than the speaker on its ownThis is one of your best chances to set up a smart home on a budget or expand the one you have Amazon is bundling the latest generation Echo Dot with a Kasa Smart Plug Mini for only or a whopping off That s less than the smart speaker by itself and even undercuts the price of the brand new Echo Pop The Echo Dot is our favorite budget smart speaker for a good reason it sounds better than you d expect at its regular price let alone on sale It s loud enough to fill a large room and clear enough to do justice to your music The Alexa ecosystem is also robust so you won t have problems finding services and smart home devices including the smart plug of course you can control with your voice Toss in a temperature sensor and an Eero network extender and you might not feel the need to buy much more at least if you re committed to Amazon s ecosystem We re also fond of Kasa smart plugs They offer broad compatibility you won t be locked into Amazon s world and are generally easy to set up That makes the Echo Dot bundle a good choice for turning on household devices especially on schedules without reaching for a switch You might appreciate that if you need to run a light or appliance while you re on summer vacation Follow EngadgetDeals on Twitter and subscribe to the Engadget Deals newsletter for the latest tech deals and buying advice This article originally appeared on Engadget at 2023-06-14 14:29:20
海外TECH CodeProject Latest Articles MultiClass Logistic Classifier in Python https://www.codeproject.com/Articles/821347/MultiClass-Logistic-Classifier-in-Python class 2023-06-14 14:45:00
海外TECH CodeProject Latest Articles EspMon Reboot https://www.codeproject.com/Articles/5362592/EspMon-Reboot espmon 2023-06-14 14:22:00
海外科学 NYT > Science Tensions Rise Over Big Oil’s Role at COP28 Climate Talks https://www.nytimes.com/2023/06/14/climate/oil-fossil-fuel-climate-cop28.html objections 2023-06-14 14:45:22
海外科学 NYT > Science Black Rhinos, Horns Cut Off, Lose Some of Their Gusto https://www.nytimes.com/2023/06/12/climate/black-rhinos-horns.html networks 2023-06-14 14:52:41
金融 金融庁ホームページ 適格機関投資家等特例業務届出者に対する行政処分について公表しました。 https://www.fsa.go.jp/news/r4/shouken/20230614.html 行政処分 2023-06-14 15:00:00
ニュース BBC News - Home Nottingham attacks: CCTV shows suspect outside homeless hostel https://www.bbc.co.uk/news/uk-england-nottinghamshire-65906687?at_medium=RSS&at_campaign=KARANGA caretaker 2023-06-14 14:53:46
ニュース BBC News - Home Ramarni Crosby: Four guilty of teenager's manslaughter https://www.bbc.co.uk/news/uk-england-gloucestershire-65752375?at_medium=RSS&at_campaign=KARANGA crosby 2023-06-14 14:54:07
ニュース BBC News - Home Grenfell Tower: Community considers future of building six years on https://www.bbc.co.uk/news/uk-england-london-65894129?at_medium=RSS&at_campaign=KARANGA london 2023-06-14 14:46:02
ニュース BBC News - Home Supermarket cuts toilet paper prices as pulp drops https://www.bbc.co.uk/news/business-65901733?at_medium=RSS&at_campaign=KARANGA dropsretailers 2023-06-14 14:41:19
ニュース BBC News - Home The Ashes 2023: Stuart Broad in England team for first Test against Australia https://www.bbc.co.uk/sport/cricket/65906467?at_medium=RSS&at_campaign=KARANGA The Ashes Stuart Broad in England team for first Test against AustraliaEngland have preferred Stuart Broad over Mark Wood to join James Anderson and Ollie Robinson in their pace attack for the first Ashes Test 2023-06-14 14:12:18
ニュース BBC News - Home Chelsea legend Hollins dies aged 76 https://www.bbc.co.uk/sport/football/65904644?at_medium=RSS&at_campaign=KARANGA announces 2023-06-14 14:03:44
ニュース BBC News - Home What we know so far https://www.bbc.co.uk/news/uk-65890403?at_medium=RSS&at_campaign=KARANGA nottingham 2023-06-14 14:55:53
ニュース BBC News - Home In pictures: Attack shakes city to core https://www.bbc.co.uk/news/uk-65899897?at_medium=RSS&at_campaign=KARANGA investigation 2023-06-14 14:46:05

コメント

このブログの人気の投稿

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)