投稿時間:2022-02-25 01:34:35 RSSフィード2022-02-25 01:00 分まとめ(48件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… 「iPhone XS」以降のFace IDの修理、今後は本体交換ではなく部品交換で対応へ https://taisy0.com/2022/02/25/153697.html apple 2022-02-24 15:16:07
IT ITmedia 総合記事一覧 [ITmedia Mobile] フラグシップスマホ「OPPO Find X5 Pro」発表 ハッセルブラッドカメラ搭載、約16.6万円 https://www.itmedia.co.jp/mobile/articles/2202/25/news067.html itmediamobile 2022-02-25 00:19:00
AWS AWS Startups Blog Grow Your Startup with Free Tools and Resources from AWS Activate https://aws.amazon.com/blogs/startups/reach-your-startup-goals-with-aws-activates-free-tools-resources-and-more/ Grow Your Startup with Free Tools and Resources from AWS ActivateThis year over million global founders will embark on their journey to establish their startup with big innovative ideas to solve our most pressing challenges Through our global startup program AWS Activate all startups can leverage the same technology that successful companies of all sizes are enjoying to build grow and scale their business 2022-02-24 15:02:16
AWS lambdaタグが付けられた新着投稿 - Qiita Lambdaの実行環境について(コールドスタートとウォームスタート) https://qiita.com/yoshii0110/items/18c15f7fd14ec18f8ad6 これは、これはコールドスタートとは異なり、コールドスタートされていたステップコード準備と環境作成が省略されるので、ウォームスタートとなります。 2022-02-25 00:39:28
AWS lambdaタグが付けられた新着投稿 - Qiita AWS Lambda Layersを使ったPythonライブラリーの追加 https://qiita.com/subretu/items/2a0c40326cc857e63922 AWSLambdaLayersを使ったPythonライブラリーの追加はじめにLambda関数でサードパーティのライブラリーを使用したいときは、下記のいずれかの方法を使って、対象のライブラリーを追加する必要がある。 2022-02-25 00:13:20
python Pythonタグが付けられた新着投稿 - Qiita Tkinterで画像ビューワを作る 第3回 https://qiita.com/kuwabatake/items/6266ce988d4ad80f5f19 なので全画面表示を解除したときに最前面も解除することにします普通は呼ぶ必要ないですが呼んでも特に害は無いのでそのまま載せておきます最前面解除rootattributestopmostFalse最前面解除さて画面は最大化しましたが上の方に出ている読込ボタンとかが邪魔なので最大化したときにこれを除去することにしましょうpackで設置したフレームはpackforgetで表示から消し再度packすることで表示できますただしpackは先にあるモノの後にどんどん積んで表示されるので今表示されている描画用フレームより前に挿入する必要がありますfig普通にpackするだけだと位置が変わってしまう先にpackしてあるものより前に挿入するには以下のようにしますframeの前にframeを挿入framepackfilltkinterXbeforeframe後はこれをボタンなりショートカットキーで呼び出すだけですせっかくなので他のアプリに合わせてFキーに割り当てましょうrootに新しくbindしても良いのですが前回左右キーを取得するためにをbind済みなのでこのkeyfunc関数内に継ぎ足していきましょう全画面表示機能追加rootbindltKeyPressgtselfkeyfuncdefkeyfuncselfevent前略ifeventkeysymFifselfrootattributesfullscreen全画面の時selfrootattributesfullscreenFalse全画面解除selfrootattributestopmostFalse最上位解除selfframecpackfilltkinterXbeforeselfframeb上部フレームを再表示elseselfrootattributesfullscreenTrue全画面selfframecpackforget上部フレームを除去elifeventkeysymEscapeifselfrootattributesfullscreen全画面の時selfrootattributesfullscreenFalse全画面解除selfrootattributestopmostFalse最上位解除selfframecpackfilltkinterXbeforeselfframeb上部フレームを再表示ファイルの削除ファイルの削除はosremoveで出来ますがこれでそのまま削除すると間違ったときに取り返しがつかなくなるので、通常はゴミ箱に移動させますゴミ箱に移動はsendtrashを使えば一発で出来ますファイルをゴミ箱に入れるimportsendtrashsendtrashsendtrashkarijpgsendtrashは標準モジュールではないのでpipなりcondaなりでインストールしてくださいですが私の環境でpipのインストールがなんかうまくいかなかったのでwinapiでゴミ箱に移動させてみました。 2022-02-25 00:16:41
python Pythonタグが付けられた新着投稿 - Qiita AWS Lambda Layersを使ったPythonライブラリーの追加 https://qiita.com/subretu/items/2a0c40326cc857e63922 AWSLambdaLayersを使ったPythonライブラリーの追加はじめにLambda関数でサードパーティのライブラリーを使用したいときは、下記のいずれかの方法を使って、対象のライブラリーを追加する必要がある。 2022-02-25 00:13:20
python Pythonタグが付けられた新着投稿 - Qiita クラス変数の持ち主 https://qiita.com/Nabetani/items/bbd7fc95a9f006ab9136 なので、Javaと違ってstatic変数の型にテンプレート引数が使える。 2022-02-25 00:05:00
Ruby Rubyタグが付けられた新着投稿 - Qiita includesを使ってSQLの発行件数を減らそう(N+1問題) https://qiita.com/ta-mu-_/items/4e3c7b592ff3f95f497a 今回指摘を受けた画面では、ログを見ると、他のテーブルの情報を取得するため何度もSQLが発行されていました。 2022-02-25 00:10:28
Ruby Rubyタグが付けられた新着投稿 - Qiita クラス変数の持ち主 https://qiita.com/Nabetani/items/bbd7fc95a9f006ab9136 なので、Javaと違ってstatic変数の型にテンプレート引数が使える。 2022-02-25 00:05:00
AWS AWSタグが付けられた新着投稿 - Qiita Quicksite上のVPC接続情報を削除or作成する権限は何か https://qiita.com/kusanoiskuzuno/items/de0b9e4c832df89ace8e Quicksite上のVPC接続情報を削除or作成する権限は何かQuicksiteから他アカウントのデータソースを参照しようとしました。 2022-02-25 00:54:16
AWS AWSタグが付けられた新着投稿 - Qiita Lambdaの実行環境について(コールドスタートとウォームスタート) https://qiita.com/yoshii0110/items/18c15f7fd14ec18f8ad6 これは、これはコールドスタートとは異なり、コールドスタートされていたステップコード準備と環境作成が省略されるので、ウォームスタートとなります。 2022-02-25 00:39:28
AWS AWSタグが付けられた新着投稿 - Qiita AWS認定 ソリューションアーキテクト – プロフェッショナル (AWS Certified Solutions Architect - Professional) に合格した https://qiita.com/mksamba/items/60c01fc1494bfff6e502 AWS認定ソリューションアーキテクトプロフェッショナル試験特性から導き出した演習問題と詳細解説全て問題形式となっており内容に無駄もなく、回答の解説なぜ不正解なのかなども詳細に記載されているため、非常に参考になった。 2022-02-25 00:19:06
AWS AWSタグが付けられた新着投稿 - Qiita AWS Lambda Layersを使ったPythonライブラリーの追加 https://qiita.com/subretu/items/2a0c40326cc857e63922 AWSLambdaLayersを使ったPythonライブラリーの追加はじめにLambda関数でサードパーティのライブラリーを使用したいときは、下記のいずれかの方法を使って、対象のライブラリーを追加する必要がある。 2022-02-25 00:13:20
Ruby Railsタグが付けられた新着投稿 - Qiita CGI.escape https://qiita.com/takapashi/items/70e55f9c7b0ddb576abe cgiescapeuseremail 2022-02-25 00:22:25
Ruby Railsタグが付けられた新着投稿 - Qiita Rails いいね機能の非同期を実装する際の注意するべきポイント https://qiita.com/ahuiru/items/54165e9a2e53c6e2d339 Railsいいね機能の非同期を実装する際の注意するべきポイントいいねの非同期を行う際、何回かエラーでつまづいた。 2022-02-25 00:10:57
Ruby Railsタグが付けられた新着投稿 - Qiita includesを使ってSQLの発行件数を減らそう(N+1問題) https://qiita.com/ta-mu-_/items/4e3c7b592ff3f95f497a 今回指摘を受けた画面では、ログを見ると、他のテーブルの情報を取得するため何度もSQLが発行されていました。 2022-02-25 00:10:28
Ruby Railsタグが付けられた新着投稿 - Qiita assert_matchメソッド https://qiita.com/takapashi/items/04239c34e9b33fdb846a assertmatchwfalserubular 2022-02-25 00:07:46
海外TECH Ars Technica Twitter admits it mistakenly removed Ukraine open-source intelligence accounts https://arstechnica.com/?p=1836394 russia 2022-02-24 15:51:15
海外TECH MakeUseOf What Is Automated Penetration Testing and How Does It Work? https://www.makeuseof.com/what-is-automated-penetration-testing/ possible 2022-02-24 15:45:13
海外TECH MakeUseOf The 7 Best Free Color Palette Generators for Android https://www.makeuseof.com/best-free-color-palette-generators-android/ perfect 2022-02-24 15:30:13
海外TECH MakeUseOf How to Use Narrator's New Natural Voices in Windows 11 https://www.makeuseof.com/windows-11-narrator-natural-voices/ eyesight 2022-02-24 15:15:12
海外TECH DEV Community Build a FullStack App with Next.js, Supabase & Prisma https://dev.to/gdangelo/build-a-fullstack-app-with-nextjs-supabase-prisma-5f65 Build a FullStack App with Next js Supabase amp PrismaHello everyone My first course for The Modern Dev is finally here It is composed of lessons and it is totally FREE TL DRIn this course you ll learn how to Build a React app API using Next jsAuthenticate your app using NextAuth jsModel data using PrismaPersist data into PostgreSQL and store media files with SupabaseDeploy to VercelI ve created and I m hosting the course with AlterClass io an all in one platform for creating and selling programming courses online Enroll hereReleased onFeb th PriceFREE What you will learnThe app that we ll work on in this course is called SupaVacation It is an online marketplace for vacation rentals where users can browse through all the properties for rent bookmark their favorite ones and even rent their own properties Here s a live demo of the app s final version It is what your app should look likes after completing this course Feel free to play with it to get an overview of all the features you ll be working on So in this course you ll learn how to build this full stack app using the following technologies Next js The React framework for building the UI of the app and the REST APINextAuth js For implementing passwordless and OAuth authentication Supabase For persisting the app data into a PostgreSQL database and storing media filesPrisma For making it easy to read and write data from our app from and to the database What the course will coverEven if this app is a simplified version of a more advanced rental marketplace such as Airbnb this course covers many topics and technical concepts necessary to build a modern full stack app At the end of this course you should know how to use all the technologies mentioned above but most importantly you will know how to build any full stack app using those technologies You will progress at your own pace and I ll guide you along the way My goal is to give you the tools and techniques you ll need to build a similar app by yourself after the course In other words this course will not only teach you how to use those technologies but it will give you the right balance between theory and practice to help you understand all the essential concepts so you can later build your own apps from scratch with confidence So here are all the topics we ll cover Building a React app and a REST API using Next jsPasswordless and OAuth authentication using NextAuth jsSecuring pages and API routesModeling data using PrismaPersisting data into a relational database and storing media files using SupabaseGoing to production and deploying to Vercel PrerequisitesThis course is beginner friendly but I strongly recommend at least some experience with building apps using React with hooks since we will be using Next js which is a React framework Besides that I assume you have a basic knowledge of Node js for the API implementation part but also a basic understanding of relational databases as we will use Supabase which comes with PostgreSQL as the database Of course I assume you already have some JavaScript experience Otherwise it will be like learning to run before you can walk Course content Getting started lessons Project overview and prerequisitesDevelopment environment Setting up the database lessons Create a PostgreSQL databaseInitialize Prisma in your project Creating our first schema lessons Define a data model in the Prisma SchemaGenerate the Prisma ClientCreate a table in Supabase with Prisma MigrateUse Prisma Studio to explore your data Interacting with our data from Next js lessons Query data in Next js with Server Side Rendering SSR Create data from Next js using Prisma ClientQuery data in Next js with Static Generation SSG Enable Incremental Static GenerationStore and serve files from Supabase Storage Adding authentication to a Next js app lessons Add magic link authentication using NextAuth jsCheck the current session and sign out from the appUse a custom React component to sign inCustomize the sign in email and send a welcome email to new usersAuthenticate users with an OAuth provider Google Modeling relations and performing CRUD operations lessons Define a One to Many relation in the Prisma SchemaCreate a related record using Prisma ClientQuery for data with relations with SSRUpdate and delete records with Prisma ClientInstantiate a global Prisma Client instanceChallenge Like your favorite homes Deployment lesson Deploying Next js on Vercel Wrapping Up lesson Thank you ConclusionI hope you ll enjoy following this course as much as I enjoyed creating it I d love to get your feedback on this course So feel free to leave a review by clicking the Leave a review button on the right hand side of the header from this page Thank you so much 2022-02-24 15:22:29
海外TECH DEV Community Laburanding: como trabajar para afuera https://dev.to/selene_l21/laburanding-como-trabajar-para-afuera-2ojc Laburanding como trabajar para afueraBueno la idea de esta charla surge un poco de mi experiencia trabajando remoto con una empresa de afuera y de comentarios consejos que fueron saliendo de dailys y charlas con amigos colegas Les voy a hablar de mi experiencia lo que yo hice y lo que a mi me sirvio no lo tomen como que es palabra santa Mi carrera en It comienza en febrero en una start up de aca de cba donde solo fui a la oficina dos semanas antes de encerrarme en casa donde me paséaño y medio corriendo durmiendo poco y ganándome un burn out por no saber parar A esto sumemosle que me largue a dar clases de programación gracias docta por el aguante y conseguími primer laburo para USA Ahora vamos por partes diría Jack Como con tan poca experiencia conseguítrabajar para USA Esto se dio gracias a una sumatoria de cosas Manija gt Tengo la “suerte que herede la locura de estudiar y sentarme por horas a investigar y leer de mi vieja y eso me permitióaprender bastante en poco tiempo Comunidad amigos me metíen comunidad donde hice proyectos y fui aprendiendo de pares Y mis amigos que también me pasaban cosas me incentivaron y recomendaron para encontrar trabajo OJO gt esto no quiere decir que solo porque te recomienden pum encontras el remoto Estudio y práctica A pesar de ya estar trabajando seguir haciendo proyectos propios me metíen hackatones y el enseñar un curso de programacion me permitióretomar conceptos básicos de javascript y vocabulario técnico que a la hora de las entrevistas es clave desde mi punto de vista Hablemos de trabajo remotoEl trabajo remoto es cada vez más común ya que cada vez más personas quieren tener un horario de trabajo flexible y “gracias a la pandemia más empresas se están sumando a esta modalidad PROS Y CONTRAS DEL REMOTOLos horarios y lugares de trabajo flexibles suelen aumentar la productividad y el rendimiento Te permite viajar y trabajar desde cualquier parte del mundo y convertirte en un nómada digital creando tu propio horario de trabajo No tenes que viajar al trabajo todos los días y ahorras no solo plata sino también tiempoMala conexión de internet muchos ruidos ambiente una compu no tan buena y sin servicio técnico por parte de la empresa te pueden arruinar el día Al no tener horarios y un espacio dedicado para trabajar pueden hacer que seamos más propensos que otros a procrastinar a distraerse fácilmente y no aprovechar el tiempo de manera eficienteAHORA A LO QUE VINIERONLo primero es tener claro quéqueremos hacer y en base a eso armar un plan En mi caso el remoto es porque quiero viajar y seguir trabajando de lo que me gusta Obviamente la suerte juega un papel importante en toda búsqueda pero estos puntos pueden ayudar a mostrar tus habilidades a los posibles empleadores cuando no tienes tanta experiencia Conoce tus puntos débilesSoy pésima en algoritmos y en varias entrevistas me tocóhacer un challenge técnico donde tenía problemas lógicos de algoritmos etc Si sabemos dónde fallamos podemos mejorarlo Aca les dejo algunas páginas donde pueden practicar CodewarsCodingameCodility Repasa conceptosSi bien sabemos que no vamos día a día recitando conceptos de programación tener en claro las definiciones nos pueden ayudar muchísimo No necesariamente tiene que ser con vocabulario ultra técnico pero mientras puedas expresarlo de manera simple o explicárselo a otra persona es suficiente Developer MozillaJS TipsLenguaje JSRefactoring Guru Date a conocerPara mi lo mejor es tener un github donde tengamos proyectos propios copados donde aprendimos y renegamos para mostrar en entrevistas y contar estas anécdotas Aparte permite que otros devs de las empresas en donde postulamos puedan ver nuestro código de antemano y muestra nuestro proceso de aprendizaje Podés encontrar ideas acá Codementor React ProjectsEn LinkedIn podés crear tu propio perfil en donde pones tu historial laboral destaques tus habilidades y resumas tus logros y experiencias laborales anteriores Una buena forma de destacarse es compartir cualquier artículo que hayas escrito y otros contenidos interesantes e informativos Participar en Discord junto a otras personas y comunidades también es una buena forma de hacer networking Contribuir al código abiertoAl principio cuando no tenemos tanta experiencia puede resultar difícil o incluso que nos de vergüenza meternos en un repositorio de otra persona pero esto es algo que a muchos recruiters les llama la atención Podemos empezar haciendo pequeñas contribuciones como corregir errores gramaticales y de tipeo o crear traducir documentación para proyectos que carezcan de ella Esto demuestra que sabemos comunicarnos bien y colaborar con otros desarrolladores de forma remota y asíncrona para resolver un problema Y todo eso es público Podés encontrar una guia de como empezar acá Github para Open Source Lara Díaz・Oct ・ min read Gana experiencia trabajando de forma remotaEsto no es cien por ciento necesario pero hacer trabajos freelance ayuda muchísimo a la hora de encontrar trabajo estable como contractor en comparación con alguien que no tenga esa experiencia y conocimientos WorkanaUpworkFreelancer ¿Dónde encontrar empresas que contraten remoto Yo siempre le pregunto a mis amigos si en las empresas donde trabajan están contratando y que experiencia tuvieron y con quéstack están trabajando También probéotras páginas donde encontrar varias opciones en distintos países no solo USA RemoteOKWe Work RemotlyAngelNearIndeedTodo este post lo podes encontrar en forma de charla acá BeerJS Cba Asi que si estas recien empezando y queres ganar experiencia o queres hacer el salto a remoto animate y espero te sirva el post 2022-02-24 15:08:15
海外TECH DEV Community Building an Apache ECharts dashboard with React and Cube https://dev.to/cubejs/building-an-apache-echarts-dashboard-with-react-and-cube-45i3 Building an Apache ECharts dashboard with React and CubeThis guest post was written by Osinachi Chukwujama He is a web developer and technical writer He enjoys building backend applications and utilizing cloud computing He plays the organ and creates casual animations when he isn t coding You can get in touch with him through his website In a world where every organization has big data a simplified approach to data analysis has never been more sought after Thankfully open source charting libraries like Chart js Recharts and Apache ECharts are robust enough to handle big data analytics Tools like Power BI Snowflake and Cube also help simplify analytics by making it easier for organizations to use their data to make decisions In this article you ll learn how to use Apache ECharts Cube and React to build an e commerce analytics dashboard On completing this tutorial you will have built a React application that displays charts of different metrics in an e commerce store The result should look like this You can find a live demo here or view the React app source code in this GitHub repo What Is Apache ECharts Apache ECharts is a robust JavaScript charting library It s fully packaged offering common chart types like line column and pie and even more complicated chart types like graph themeRiver and gauge ECharts is primarily used for building data applications but it also works well for applications that require a lot of visualized data points It s free to use and its source code is open source which means it s flexible and has longevity It s also incredibly customizable by allowing color and size alteration to fit your application s needs However rendering happens on the client side So if the device that renders the chart is low on memory the visualization will be slower Rendering is faster if you use Google Charts but all your data doesn t live on your own server like it does with ECharts which means it can be viewed by Google or any other third party Unlike Recharts ECharts is primarily a JavaScript library This means that you don t get React components for axes legends and other parts of a chart Instead you ll use an object to declaratively define the rendering and behavior of a chart Why Integrate with Cube ECharts integrates seamlessly with Cube offering superb visualizations for data returned by Cube s API All you need is your data and to build a few queries and feed the resulting API through an ECharts chart Implementing an ECharts Dashboard with React and CubeThe following sample project has three main components A relational database PostgresSQL in this tutorial but you can use MySQL MongoDB or any other database supported by Cube A Cube schemaSetting up ECharts in ReactTo follow along you should have Docker installed Setting Up CubeTo set up Cube using Docker change the directory into the desired location and run the following command docker run p v PWD cube conf e CUBEJS DEV MODE true cubejs cubeThis command downloads the Cube Docker image and opens port to the Cube Playground You can navigate to http localhost in your browser to see the playground From here you re supposed to select the database type and parameters This article will use a hosted Postgres database offered by Cube Choose Postgres as the database type and use the parameters below to complete your Cube instance setup Hostname demo db cube devDatabase ecomUsername cubePassword Generating a Data Schema with CubeCube comes with a schema builder that lets you build your desired queries These queries help you ask analytical questions about your data like the following How many orders were made this month What s the total number of products sold To proceed select all the tables under the public schema in the Schema tab of the Cube playground After selecting your target tables click the Generate Schema button A prompt will appear letting you know that the schema files have been created and you can start building charts Click on the Build button Overview of the Cube PlaygroundThe Cube Playground consists of three tabs The Build tab for building charts from a data schemaThe Dashboard App tab for viewing charts generated in the Build tabThe Schema tab for selecting the tables where the data will be used to build chartsThe schema generated by Cube is a JavaScript object that consists of measures and dimensions It s used to generate SQL code that will be queried against the database for analytics The code snippet below shows a data schema for a users table It contains a count measure and three dimensions that correspond to columns in the users table cube Users sql SELECT FROM users measures count sql id type count dimensions city sql city type string signedUp sql created at type time companyName sql company name type string Cube lets you combine measures and dimensions to ask questions like “Which companies do our users work for measures Users count dimensions Users companyName Or “Where are our users based measures Users count dimensions Users city Setting Up ECharts in a React ProjectTo set up ECharts in a React project create a new React project in your desired directory and start the dev server using the command below npx create react app cube echarts appcd cube echarts appnpm startNow install the required dependencies npm i save cubejs client core cubejs client react echarts echarts for react react loader spinner dayjs react bootstrap bootstrap Basic App SetupNow that you have your dependencies in place create the components folder using this command mkdir src componentsReplace the content of App js with the following import React from react import CubeProvider from cubejs client react import cubejs from cubejs client core import Navbar Container Row Col from react bootstrap export const cubejsApi cubejs process env REACT APP CUBEJS TOKEN apiUrl http localhost cubejs api v const App gt return lt CubeProvider cubejsApi cubejsApi gt lt div className bg gray gt lt Navbar gt lt Container gt lt Navbar Brand href home gt E Commerce Dashboard lt Navbar Brand gt lt Container gt lt Navbar gt lt div gt lt CubeProvider gt export default App You don t have to set the REACT APP CUBEJS TOKEN on your development environment as it is strictly used in production If you do want to set it you need to sign a JWT on or using your favorite tool with the CUBEJS API SECRET as the secret key You can find the CUBEJS API SECRET in the env file of the Cube back end set up which is automatically created by Cube The dashboard will contain four charts An area chart containing the revenue growth over the previous yearA line chart containing orders over the last thirty daysA stacked bar chart containing the orders by status over timeA bar chart containing orders by product category nameTo get started creating these charts create the necessary chart files and loader touch src components AreaChart jsxtouch src components BarChart jsxtouch src components LineChart jsxtouch src components StackedBarChart jsxtouch src components Loader jsxAdd the following to Loader jsx import Oval from react loader spinner function Loader return lt div className d flex justify content center align items center gt lt Oval heigth width color C ariaLabel loading gt lt div gt export default Loader Open AreaChart jsx and add the following import React from react import ReactECharts from echarts for react import useCubeQuery from cubejs client react import Loader from Loader import Card from react bootstrap import dayjs from dayjs function AreaChart const resultSet isLoading error progress useCubeQuery measures Users count timeDimensions dimension Users createdAt granularity year order Users createdAt asc if error return lt p gt error toString lt p gt if isLoading return lt div gt progress amp amp progress stage amp amp progress stage stage lt Loader gt lt div gt if resultSet return null const workingData resultSet loadResponse results data const userCount workingData map item gt item Users count const userCreationDate workingData map item gt dayjs item Users createdAt year format YYYY const options legend data User count tooltip trigger axis axisPointer type shadow xAxis data userCreationDate yAxis series name User count data userCount type line areaStyle return lt Card className m gt lt Card Body gt lt Card Title gt User Trend lt Card Title gt lt ReactECharts option options gt lt Card Body gt lt Card gt export default AreaChart The first part of the file contains a React hook that fetches data from the Cube back end as seen below const resultSet isLoading error progress useCubeQuery measures Users count timeDimensions dimension Users createdAt granularity year order Users createdAt asc The object within this hook can be obtained from the Cube playground as a JSON query The second part of AreaChart jsx shows the returned state being used for conditional rendering if error return lt p gt error toString lt p gt if isLoading return lt div gt progress amp amp progress stage amp amp progress stage stage lt Loader gt lt div gt if resultSet return null The third part of AreaChart jsx transforms the returned data to a form that the chart can render The chart answers the question “How many users joined each year and the userCount and userCreationDate will be isolated from the returned data const workingData resultSet loadResponse results data const userCount workingData map item gt item Users count const userCreationDate workingData map item gt dayjs item Users createdAt year format YYYY Finally the chart data and metadata are declared in an options object and fed to the ReactECharts component const options legend data User count tooltip trigger axis axisPointer type shadow xAxis data userCreationDate yAxis series name User count data userCount type line areaStyle return lt Card className m gt lt Card Body gt lt Card Title gt User Trend lt Card Title gt lt ReactECharts option options gt lt Card Body gt lt Card gt To see the chart on the browser update the content of App js to include it import AreaChart from components AreaChart const App gt lt div className bg gray gt lt Navbar gt lt Container gt lt Navbar Brand href home gt E Commerce Dashboard lt Navbar Brand gt lt Container gt lt Navbar gt lt Row gt lt Col gt lt AreaChart gt lt Col gt lt Row gt lt div gt Add the following content to the remaining files as specified below LineChart jsx import React from react import ReactECharts from echarts for react import useCubeQuery from cubejs client react import Loader from Loader import Card from react bootstrap function LineChart const resultSet isLoading error progress useCubeQuery measures Products count order Products count asc dimensions ProductCategories name if error return lt p gt error toString lt p gt if isLoading return lt div gt progress amp amp progress stage amp amp progress stage stage lt Loader gt lt div gt if resultSet return null const workingData resultSet loadResponse results data const productCategoryNames workingData map item gt item ProductCategories name const productCategoriesCount workingData map item gt item Products count const options legend data Product Categories count tooltip trigger axis axisPointer type shadow xAxis data productCategoryNames yAxis series name Product Categories count data productCategoriesCount type line return lt Card className m gt lt Card Body gt lt Card Title gt Products by Category lt Card Title gt lt ReactECharts option options gt lt Card Body gt lt Card gt export default LineChart StackedBarChart jsx import React from react import ReactECharts from echarts for react import useCubeQuery from cubejs client react import dayjs from dayjs import Loader from Loader import Card from react bootstrap function StackedBarChart const resultSet isLoading error progress useCubeQuery measures Orders count timeDimensions dimension Orders createdAt granularity month order Orders count desc Orders createdAt asc dimensions Orders status filters if error return lt p gt error toString lt p gt if isLoading return lt div gt progress amp amp progress stage amp amp progress stage stage lt Loader gt lt div gt if resultSet return null const returnedData resultSet loadResponse results data sort first second gt dayjs first Orders createdAt month diff dayjs second Orders createdAt month const filterOrderStatusBy type gt returnedData filter order gt order Orders status type map order gt order Orders count const ordersProcessing filterOrderStatusBy processing const ordersCompleted filterOrderStatusBy completed const ordersShipped filterOrderStatusBy shipped const orderMonths new Set returnedData map order gt return dayjs order Orders createdAt month format MMM YYYY const options legend data Processing Orders count Completed Orders count Shipped Orders count tooltip trigger axis axisPointer type shadow xAxis data orderMonths yAxis series name Processing Orders count data ordersProcessing type bar stack x name Completed Orders count data ordersCompleted type bar stack x name Shipped Orders count data ordersShipped type bar stack x return lt Card className m gt lt Card Body gt lt Card Title gt Orders by Status Over Time lt Card Title gt lt ReactECharts option options gt lt Card Body gt lt Card gt export default StackedBarChart BarChart jsx import React from react import ReactECharts from echarts for react import useCubeQuery from cubejs client react import Loader from Loader import Card from react bootstrap function BarChart const resultSet isLoading error progress useCubeQuery measures Orders count timeDimensions order Orders count desc dimensions ProductCategories name if error return lt p gt error toString lt p gt if isLoading return lt div gt progress amp amp progress stage amp amp progress stage stage lt Loader gt lt div gt if resultSet return null const workingData resultSet loadResponse results data const productCategoryNames workingData map item gt item ProductCategories name const orderCount workingData map item gt item Orders count const options xAxis type category data productCategoryNames yAxis type value series data orderCount type bar return lt Card className m gt lt Card Body gt lt Card Title gt Orders by Product Category Names lt Card Title gt lt ReactECharts option options gt lt Card Body gt lt Card gt export default BarChart Finally update App js to include the new charts import LineChart from components LineChart import StackedBarChart from components StackedBarChart import BarChart from components AreaChart const App gt lt div className bg gray gt lt Navbar gt lt Container gt lt Navbar Brand href home gt E Commerce Dashboard lt Navbar Brand gt lt Container gt lt Navbar gt lt Row gt lt Col gt lt AreaChart gt lt Col gt lt Col gt lt LineChart gt lt Col gt lt Row gt lt StackedBarChart gt lt BarChart gt lt div gt Adding Interactivity to Your DashboardFor a dashboard to be user friendly users should be able to sort filter and export data In this section you ll add date filters to your stacked bar chart to add some interactivity to it Navigate to the StackedBarChart jsx component and import the following import useState from react import Card Form Button from react bootstrap Then define the start date end date and JSON query hooks const startDate setStartDate useState const endDate setEndDate useState const jsonQuery setJSONQuery useState measures Orders count timeDimensions dimension Orders createdAt granularity month order Orders count desc Orders createdAt asc dimensions Orders status filters const resultSet isLoading error progress useCubeQuery jsonQuery Afterwards add a function that will handle updating the date const updateDate event gt event preventDefault setJSONQuery prevJSONQuery gt return prevJSONQuery filters member Orders createdAt operator inDateRange values startDate endDate Then update the content of Card Body with the following lt Card Body gt lt div className d flex align items center justify content between my gt lt Card Title gt Orders by Status Over Time lt Card Title gt lt Form onSubmit updateDate className d flex align items center gap gt lt div className d flex gap align items center gt lt div gt lt label htmlFor startDate gt Start Date lt label gt lt div gt lt input id startDate name start date value startDate onChange target gt setStartDate target value type date gt lt div gt lt div className d flex gap align items center gt lt div gt lt label htmlFor endDate gt End Date lt label gt lt div gt lt input id endDate name end date value endDate onChange target gt setEndDate target value type date gt lt div gt lt Button type submit gt Set date lt Button gt lt Form gt lt div gt lt ReactECharts option options gt lt Card Body gt If you check your chart in the browser you should be able to see the date form on the chart and be able to update the date yourself The video below shows a demo of the date filter Check out this guide on D or this guide on Material UI to learn more about adding interactivity to your charts ConclusionApache ECharts and Cube offer a robust way of building analytics applications and dashboards In this tutorial you learned how to build an analytics dashboard from scratch using React Apache ECharts and Cube You also learned how to add a date range form to your charts giving you a way to filter data Cube is a headless API layer that connects your database through any of APIs including REST GraphQL and SQL to your front end code so you can build data applications faster This simplifies the process of adding analytic elements to your existing applications With Cube you can create an API layer manage access control aggregate data and cache queries for increased performance and integrate Apache ECharts with ease 2022-02-24 15:02:06
Apple AppleInsider - Frontpage News Daily deals Feb. 24: $603 off LG OLED 65-inch TV; $300 off Microsoft Surface Laptop Studio; $220 off Netgear Nighthawk router, more https://appleinsider.com/articles/22/02/24/daily-deals-feb-24-603-off-lg-oled-65-inch-tv-300-off-microsoft-surface-laptop-studio-220-off-netgear-nighthawk-router-more?utm_medium=rss Daily deals Feb off LG OLED inch TV off Microsoft Surface Laptop Studio off Netgear Nighthawk router moreThursday s top deals include the Netgear Nighthawk AX Dual Band Wi Fi Router Renewed for the LG C OLED inch K Smart TV for and the inch Microsoft Surface Laptop Studio for LG OLED TVs Netgear routers and the Surface Laptop Studio are discountedEvery single day we gather some of the best deals we can find online including deals on Apple products tech accessories and other items all in a bid to save you money If an item is out of stock you may still be able to order it for delivery at a later date Many of the discounts are likely to expire soon though so be sure to grab what you can Read more 2022-02-24 15:18:26
Apple AppleInsider - Frontpage News Apple's AR headset rumored to ship with M1 chip, micro OLED https://appleinsider.com/articles/22/02/24/apples-ar-headset-rumored-to-ship-with-m1-chip-micro-oled?utm_medium=rss Apple x s AR headset rumored to ship with M chip micro OLEDThe long rumored Apple AR device is rumored to ship with a M processor and a micro OLED display ーand will face challenges by Samsung s Hologram headset As supply chain sources claim Apple is entering a second round of pre production tests on its AR headset a new report provides some details on the hardware in the unit The big news is the rumored inclusion of the M processor in the device The same report also backs up previous reports that Apple s headset will use micro OLED displays Read more 2022-02-24 15:21:46
海外TECH Engadget Samsung Galaxy S22 review: Sprucing up a solid foundation https://www.engadget.com/samsung-galaxy-s-22-review-sprucing-up-a-solid-foundation-151522033.html?src=rss Samsung Galaxy S review Sprucing up a solid foundationA lot of gadgets operate on a quot tick tock quot development cycle with the most well known being past iPhones that sported fresh designs only to be replaced months later by more refined but similar looking S variants And after Samsung ticked the box with a fresh new design for last year s S now the company has returned with the more polished Galaxy S and S While they might look a lot like last year s phones there have been some notable upgrades especially on the S s display performance and camera DesignEven though I m still not sure how much I love Samsung s Contour Cut camera design the Galaxy S very much looks and feels like a high end device The outside of the phone features Samsung s Armor Aluminum alloy that s been polished to a near mirror finish with the S also being one of the first phones equipped with Corning s Gorilla Glass Victus to protect the phone from drops and scratches ーboth in front and in back Sam Rutherford EngadgetTo add a little spice to the mixture the S s backside sports a lovely matte texture which does a surprisingly good job of resisting fingerprints And for Samsung also spruced up the S s color options with new shades of green pink and white along with good ole black Like previous Galaxy S phones the S comes with an ultrasonic in screen fingerprint reader and after years of tweaking its algorithm and improving the tech this time it feels seriously fast In my experience unlocking the phone was practically instant and I never really ran into recognition issues unless my fingers were legit wet or greasy Keep your grubby hands away from my phone if you re eating pizza k thnx Sam Rutherford EngadgetThe one thing avid movie watchers should be aware of though is the color matched frames on the pink and white models If you re the kind of person that might be bothered by a glint or sparkle around the edge of the phone while watching videos you may want to go with one of the darker color options And while it s not really a surprise at this point the S doesn t feature a microSD card slot or a headphone jack With the Galaxy S line now being three generations removed from the last device to include both of those features it s pretty clear they re not coming back DisplaySamsung has had a lock on the crown when it comes to making the best mobile displays in the business for a while now But on the S the company has outdone itself once again with displays that can hit a peak brightness of nits on the S or an astounding nits on the S Suffice to say any fears of the S s screen being hard to read even in direct sunlight are unfounded Sam Rutherford EngadgetThen to make things look even better Samsung created a new feature called Vision Booster designed to amp up things like contrast and color saturation in very bright or dim conditions While there s no indicator or pop up that lets you know it s working I found the effect most pronounced when I used the phone outdoors with more subtle changes in the dark when compared to phones like the Pixel Pro I found Vision Booster made dark scenes easier to parse but even when viewed side by side I basically had to press my face up against the phones to really see the differences But regardless of where you are the end result is a display that lives in technicolor pumping out vivid shades and hues along with the perfectly dark inky blacks that make OLED screens so enthralling Plus thanks to a x resolution and a variable Hz refresh rate everything from photos to gifs look sharp and crisp PerformanceThe Galaxy S line is one of the first phones to feature Qualcomm s new Snapdragon Gen chip which when combined with GB of RAM and GB of storage or GB if you opt for the upgrade results in a phone that feels blisteringly fast In my experience there isn t really anything you can throw at the S that makes it even sweat aside from stuff like hardcore multitasking when connected to an external monitor via Samsung Dex which is still very much a thing Sam Rutherford EngadgetAnd while some reports claim that Qualcomm s Snapdragon Gen Gen has a proclivity for running hot S s built in vapor chamber cooling system seems effective at keeping throttling to a minimum Compared to the S FE which features an older Snapdragon chip our S posted scores in Geekbench s Compute test around percent higher vs And while the gap wasn t quite as large in Geekbench s CPU test the S still posted a significantly higher single core score of compared to for the S FE As for wireless connectivity all versions of the S and S support all the important flavors of G including Verizon and AT amp T s new C band spectrum CamerasAfter recent advancements from competitors like the iPhone and Pixel Samsung is now playing catchup to Apple and Google in the camera department And while Samsung is touting a bunch of new camera features for the S and S like Adaptive Pixel and various quot Nightography quot improvements the real upgrades are the S s new sensors ーparticularly the one for its MP main cam Sam Rutherford EngadgetThanks to that significantly higher resolution up from MP on the S photos from the S s main wide angle camera are just flat out sharper than before But more importantly the S s primary camera offers wider dynamic range and big improvements for low light photos In darker scenes the S uses a four to one pixel binning technique that combines four adjacent pixels into one big pixel which allows for improved light sensitivity The result is brighter photos with richer colors especially at night And even though Google s Night Sight still has a slight advantage over Samsung s Night Mode the S has seriously narrowed the gap Elsewhere you also get a solid MP ultra wide camera with a degree field of view and a MP telephoto camera with a x optical zoom the latter of which is important because neither the standard iPhone or Pixel comes with a dedicated zoom lens So once again the base S is the most well rounded camera phone for the money And in front the MP selfie camera captured crisp pictures of my face including my many pores and blemishes though you can always play around with Samsung s beauty settings if you want to put on a smoother face for social media Where things get frustrating is that some of the S s new camera features are often hard to use or even tell when they re working ーwith the main offender being Samsung s Adaptive Pixel feature Adaptive Pixel uses multi frame image capture to shoot pics using the main sensor s full resolution along with lower res pixel binned shots before merging them together to create a higher quality composite final image The issue is that Adaptive Pixel isn t turned on by default and searching the phone s settings for it doesn t return any matches To even activate this you need to first make sure Samsung s scene optimizer is on then you have to turn on the camera app s full MP capture mode make sure the Detail Enhancer setting is disabled and then point the S at a dark scene and hope Adaptive Pixel kicks in And I do mean hope because there s no pop up or notification that lets you know when the feature is activated Even when you do get it to work while the pictures are a bit sharper and feature a more neutral color profile which is better for anyone who wants to edit their pics later Adaptive Pixel doesn t really produce magically superior images like Samsung s marketing may have led you to believe Sam Rutherford EngadgetThat s kind of a shame after all the attention Adaptive Pixel got during the S s debut at Samsung s recent Unpacked event Thankfully other new camera features like Auto Framing work as advertised allowing the phone to track up to people s faces when capturing video while Samsung s Advanced OIS ensures that your clips look smooth and shake free The company s AI Stereo Depth Map technique also makes the phone a bit better at differentiating between your subject s face and the background in portrait mode though you may have to do some serious zooming in to really see the difference In short I like a lot of the changes Samsung has made to the S s camera setup raising its general photo prowess even if some of the phone s new software don t quite live up to expectations SoftwareSam Rutherford EngadgetThe Galaxy S line comes with Samsung s One UI which is based on Android That means because it has long supported features like scrolling screenshots the main upgrades in Samsung s latest Android skin are the new Privacy Dashboard and customization options for your home screen app icons and the phone s UI Similar to what s available in Google s Pixel phones the customizations allow you to set a consistent color palette across your phone s menu while new mic and camera notifications make sure you know when apps are accessing critical hardware components Other software upgrades include Live Sharing in Google Duo which is a Samsung exclusive feature that lets you share your screen during video chats It s simple and effective even if it s not quite as full featured as Apple s SharePlay in iOS And for those looking to keep better track of digital documents like your ID credit cards and even digital car keys Samsung also made a new Digital Wallet that can securely store all those things in one place Battery lifeSam Rutherford EngadgetFeaturing and mAh batteries respectively both the S and S have respectable longevity But if lasting a long time between charges is really important for you the S is definitely the better pick as it lasted hours and minutes on our local video rundown test compared to just hours and minutes for the standard S And thanks to its W wired charging up from W charging on the S the S juices up way faster too In both cases though you ll need to make sure you have the proper power brick as neither phone comes with a charging adapter in the box S vs S Aside from the obvious differences in screen size inches vs inches and overall dimensions x x inches and ounces vs x x inches and ounces there are a few other features that separate the S and S The S is limited to watt wired charging while the S gets watt wired charging with both phones also featuring W Qi wireless charging and W reverse wireless charging aka wireless power share Other differences include slightly faster WiFi speeds on the S thanks to support for WiFi E compared to standard WiFi for the S The S also has built in UWB connectivity which isn t available on the S UWB is one of many protocols used to send files to other devices wirelessly via Nearby Share though that s not really a big deal since Nearby Share still works albeit less swiftly over WiFi and Bluetooth The other consideration is that for people looking to use digital car keys from automakers like BMW and others those often work better and have longer ranges using UWB compared to NFC which might make the S a better choice for more tech savvy new car buyers Wrap upSam Rutherford EngadgetThe Galaxy S isn t a huge improvement or departure from last year s phone but just like an quot S year quot iPhone Samsung has tweaked and elevated all the phone s most critical components You re getting a more refined design improved performance a sharper main cam with better low light photography and an even brighter screen And that s saying something from the king of mobile displays Sure some features like Vision Booster and Adaptive Pixel are more subtle or harder to use than I d like but putting all this in a chassis sporting excellent build quality and other premium features like IP dust and water resistance reverse wireless charging and more is a formula that s hard not to like And with a starting price of for the standard S you re getting more phone for the money than anything you can buy from Apple or Google 2022-02-24 15:15:22
Cisco Cisco Blog Let Full Stack Optimization Enhance your Customer and User Experiences https://blogs.cisco.com/government/let-full-stack-optimization-enhance-your-customer-and-user-experiences government 2022-02-24 15:52:51
金融 ◇◇ 保険デイリーニュース ◇◇(損保担当者必携!) 保険デイリーニュース(02/25) http://www.yanaharu.com/ins/?p=4847 三井住友海上 2022-02-24 15:01:52
金融 RSS FILE - 日本証券業協会 株券等貸借取引状況(週間) https://www.jsda.or.jp/shiryoshitsu/toukei/kabu-taiw/index.html 貸借 2022-02-24 15:30:00
金融 RSS FILE - 日本証券業協会 株主コミュニティの統計情報・取扱状況 https://www.jsda.or.jp/shiryoshitsu/toukei/kabucommunity/index.html 株主コミュニティ 2022-02-24 15:30:00
ニュース ジェトロ ビジネスニュース(通商弘報) 固定金利への借り換えで家計の利子負担軽減が可能、韓国経済研究院発表 https://www.jetro.go.jp/biznews/2022/02/f89c804fc6a48b97.html 借り換え 2022-02-24 15:40:00
ニュース ジェトロ ビジネスニュース(通商弘報) 上海市、RCEPの活用促進措置を発表、日本との協力強化もうたう https://www.jetro.go.jp/biznews/2022/02/24ea845cc1c94f8e.html 発表 2022-02-24 15:30:00
ニュース ジェトロ ビジネスニュース(通商弘報) 冬季オリンピック効果で、ウインタースポーツ参加人数は3億人超に、関連用品の売り上げも好調 https://www.jetro.go.jp/biznews/2022/02/93f74558b6ce7f18.html 冬季オリンピック 2022-02-24 15:20:00
ニュース ジェトロ ビジネスニュース(通商弘報) 2022年1月の米国向け海上貨物量は前年同月比7.5%増、対中依存が拡大傾向 https://www.jetro.go.jp/biznews/2022/02/4ad106552fc72ea2.html 対中依存 2022-02-24 15:10:00
ニュース BBC News - Home UK will not look away from Russia invasion in Ukraine - PM https://www.bbc.co.uk/news/uk-60508671?at_medium=RSS&at_campaign=KARANGA ukraine 2022-02-24 15:37:09
ニュース BBC News - Home Ukraine conflict world reaction: Sanctions, refugees and fears of war https://www.bbc.co.uk/news/world-europe-60507016?at_medium=RSS&at_campaign=KARANGA ukraine 2022-02-24 15:27:49
ニュース BBC News - Home Ukraine conflict: What we know about the invasion https://www.bbc.co.uk/news/world-europe-60504334?at_medium=RSS&at_campaign=KARANGA neighbour 2022-02-24 15:54:20
ニュース BBC News - Home Oil hits seven-year high and shares sink as Russia invades Ukraine https://www.bbc.co.uk/news/business-60502451?at_medium=RSS&at_campaign=KARANGA crude 2022-02-24 15:11:35
ニュース BBC News - Home PC Adam Zaman: Met officer accused of rape has case dismissed https://www.bbc.co.uk/news/uk-england-london-60513766?at_medium=RSS&at_campaign=KARANGA dismissedpc 2022-02-24 15:46:08
ニュース BBC News - Home Blackpool mother jailed for starving daughter to death https://www.bbc.co.uk/news/uk-england-lancashire-60507814?at_medium=RSS&at_campaign=KARANGA emaciation 2022-02-24 15:09:51
ニュース 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-02-24 15:41:16
ニュース BBC News - Home Ukraine conflict: How reliant is Europe on Russia for oil and gas? https://www.bbc.co.uk/news/58888451?at_medium=RSS&at_campaign=KARANGA europe 2022-02-24 15:49:15
ニュース BBC News - Home England's Randall to start against Wales with Lawes captain https://www.bbc.co.uk/sport/rugby-union/60507791?at_medium=RSS&at_campaign=KARANGA England x s Randall to start against Wales with Lawes captainHarry Randall will start at scrum half in England s Six Nations match against Wales at Twickenham with the returning Courtney Lawes named as captain 2022-02-24 15:50:31
北海道 北海道新聞 NY株、一時800ドル超安 ウクライナ侵攻で急落 https://www.hokkaido-np.co.jp/article/649587/ 急落 2022-02-25 00:19:00
北海道 北海道新聞 新千歳連日足止め JR運行見通し二転三転 欠航と運休に「時差」 https://www.hokkaido-np.co.jp/article/649555/ 快速エアポート 2022-02-25 00:16:57
北海道 北海道新聞 新千歳発着正常化 JR、25日も一部運休 https://www.hokkaido-np.co.jp/article/649559/ 道内 2022-02-25 00:12:53

コメント

このブログの人気の投稿

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