IT |
ITmedia 総合記事一覧 |
[ITmedia エンタープライズ] ノーコード開発ツール「kintone」ヒットの理由――サイボウズ青野社長は何を語ったか |
https://www.itmedia.co.jp/enterprise/articles/2302/27/news083.html
|
itmedia |
2023-02-27 14:45:00 |
IT |
ITmedia 総合記事一覧 |
[ITmedia News] 新規悪質ヤフコメユーザーが56%減小 ヤフー、電話番号必須化の効果を発表 |
https://www.itmedia.co.jp/news/articles/2302/27/news132.html
|
itmedia |
2023-02-27 14:30:00 |
IT |
ITmedia 総合記事一覧 |
[ITmedia News] 「ポケモンプレゼンツ」今夜11時 27日は「ポケモンデー」、増田順一さんも思いをツイート |
https://www.itmedia.co.jp/news/articles/2302/27/news137.html
|
itmedia |
2023-02-27 14:19:00 |
IT |
ITmedia 総合記事一覧 |
[ITmedia PC USER] ベンキュー、Type-C接続に対応した27型/31.5型WQHD液晶ディスプレイ |
https://www.itmedia.co.jp/pcuser/articles/2302/27/news130.html
|
itmediapcuser |
2023-02-27 14:03:00 |
TECH |
Techable(テッカブル) |
デンソーテン、ドライブレコーダーからリアルタイムに危険を検出するAI技術開発 |
https://techable.jp/archives/197560
|
交通事故 |
2023-02-27 05:00:55 |
技術ブログ |
Developers.IO |
プロジェクトの役割をメンバーに伝えるためには?運用している方法を公開してみた |
https://dev.classmethod.jp/articles/share_project_role/
|
株式会社 |
2023-02-27 05:57:59 |
技術ブログ |
Developers.IO |
Amazon QuickSightの⽉単位契約のユーザーを年間単位契約へ切り替える |
https://dev.classmethod.jp/articles/how-to-mod-amazon-quicksight-subscriptions/
|
amazonquicksight |
2023-02-27 05:33:32 |
技術ブログ |
Developers.IO |
【Security Hub修復手順】[Redshift.4] Amazon Redshift クラスターでは、監査ログ記録が有効になっている必要があります |
https://dev.classmethod.jp/articles/securityhub-fsbp-remediation-redshift-4/
|
awssecurityhub |
2023-02-27 05:08:30 |
技術ブログ |
Developers.IO |
[Update] AWS Security Hub Rolls Out 7 New Controls for Amazon ElastiCache You Need to Know |
https://dev.classmethod.jp/articles/update-aws-security-hub-rolls-out-7-new-controls-for-amazon-elasticache-you-need-to-know/
|
Update AWS Security Hub Rolls Out New Controls for Amazon ElastiCache You Need to KnowHello this is Aayush from AWS Business Devision AWS Security Hub has released seven new controls to enhance t |
2023-02-27 05:03:00 |
海外TECH |
DEV Community |
Code a responsive step progress bar with HTML, CSS, & JavaScript |
https://dev.to/michaelburrows/code-a-responsive-step-progress-bar-with-html-css-javascript-2f6l
|
Code a responsive step progress bar with HTML CSS amp JavaScriptIn this tutorial we ll be creating a responsive step progress bar These are commonly used when a large form is split into several steps They let the user know how much of the form they have completed and how much remains Here s what the completed progress bar will look like Let s get started by creating the HTML markup lt div id progress gt lt div id progress bar gt lt div gt lt ul id progress num gt lt li class step active gt lt li gt lt li class step gt lt li gt lt li class step gt lt li gt lt li class step gt lt li gt lt ul gt lt div gt You can easily add more steps here if required and the progress bar will remain responsive and functional We ll also need some buttons to control the progress through the steps as follows lt button id progress prev class btn disabled gt Prev lt button gt lt button id progress next class btn gt Next lt button gt Now for the JavaScript starting with variables for the various elements const progressBar document getElementById progress bar const progressNext document getElementById progress next const progressPrev document getElementById progress prev const steps document querySelectorAll step let active To navigate through the steps we ll add an eventListener to detect clicks on each of the buttons progressNext addEventListener click gt active if active gt steps length active steps length updateProgress progressPrev addEventListener click gt active if active lt active updateProgress This increases or decreases the active count based on the button clicked It also prevents the active count from going higher or lower than the number of steps We re also calling a updateProgress function which looks like this const updateProgress gt toggle active class on list items steps forEach step i gt if i lt active step classList add active else step classList remove active set progress bar width progressBar style width active steps length enable disable prev and next buttons if active progressPrev disabled true else if active steps length progressNext disabled true else progressPrev disabled false progressNext disabled false This does things Loops through each of the steps and toggles the active class Set s the progress bar width as a percentage based on the active and total steps Disables the appropriate button when the active step is either the first or last step Now we just need to add some CSS to see the progress bar in action progress position relative margin bottom px Relative positioning so we can use absolute position on the children elements progress bar position absolute background lightseagreen height px width top left This sets the base styles for the the progress bar we toggle it s width in the JavaScript progress num margin padding list style none display flex justify content space between This evenly distributes the numbers within the parent lt div gt no matter the width progress num before content background color lightgray position absolute top left height px width z index CSS pseudo element that represents the inactive portion of the progress bar progress num step border px solid lightgray border radius width px height px line height px text align center background color fff font family sans serif font size px position relative z index Styles each inactive steps inside a circle progress num step active border color lightseagreen background color lightseagreen color fff Styles active steps border and background color to match the progress bar That s all for this tutorial you should now have a working responsive step progress bar that can be customised to suit your needs As always you can find the full source code used in this tutorial on Github |
2023-02-27 05:30:40 |
海外TECH |
DEV Community |
Understanding MySQL EXPLAIN output - part 2 |
https://dev.to/amitiwary999/understanding-mysql-explain-output-part-2-2eg0
|
Understanding MySQL EXPLAIN output part In my last blog I wrote about how to read the output of the explain query in MySQL I provided the information for all the columns except type and extra In this blog post I will cover type column type column provides information about how the tables are joined Different types of the type are described below I used two tables student details and address table I have attached the table structure and respective index structure at the end of this blog const If the type is const it means that there is at most one matching row Since the number of matched rows is maximum one it is treated as constant When we used all the primary keys if the primary key is a composite primary key or all the unique indexes to compare to a constant value to query data then the type is const For example in below query I used both the unique index class roll no to query the data SELECT FROM student detail sd INNER JOIN address ad ON sd address key ad id WHERE roll no and class eq ref It shows that one row is fetched from this table for each combination of rows of the previous table If all the parts of the primary index or the unique not null index are used to fetch the data then the type is eq ref SELECT FROM student detail sd INNER JOIN address ad ON sd address key ad id WHERE roll no Here all the rows of the student detail tables is scanned because roll no is not indexed class roll no is indexed but not only roll no MySql can use class or class and roll no for index but not only roll no There is only one row in the address table for each combination in the student detail table We used the id of address to join and it is primary key in address table ref If there are multiple rows in the table for each combination of rows of the previous table then the type is ref If the index is not a primary index or not a unique index or the leftmost prefix of the index is used that means it is not possible to get the single row for each column then the type is ref SELECT FROM student detail sd INNER JOIN address ad ON sd address key ad id WHERE state Karnataka state is not primary or unique index so for address table type is ref because there can be multiple rows for each state one more exampleEXPLAIN SELECT FROM address ad WHERE ad state Karnataka index merge Sometimes MySQL may choose to merge the rows fetched after multiple range queries on the same table This is shown as index merge in the typerange If only the rows mentioned in the range are retrieved using the index then it appears as the range in the type index MySQL saves all the indexes separately in storage Sometimes for the query only the index need to be scanned and it satisfies all the requirement If the index is a covering index for the queries and can be used to satisfy all data required from the table only the index tree is scanned In this case the Extra column says Using index An index only scan usually is faster than ALL because the size of the index usually is smaller than the table data A full table scan is performed using reads from the index to look up data rows in index order Using index does not appear in the Extra column EXPLAIN SELECT class FROM student detail Here we query only the class column It is indexed in the student detail table and directly fetched from the index instead of going to table and fetch the data ALL A full table scan is done for each combination of rows from the previous tables This is normally not good if the table is the first table not marked const and usually very bad in all other cases Normally you can avoid ALL by adding indexes that enable row retrieval from the table based on constant values or column values from earlier tables EXPLAIN is a powerful tool for optimizing MySQL queries By understanding the output of EXPLAIN you can identify performance issues and make changes to improve query speed In my next blog I will cover how to use the output of EXPALIN to optimize the query Note student detail table structurestudent details indexesaddress table structureaddress table indexes |
2023-02-27 05:30:20 |
海外TECH |
DEV Community |
Recoil is the Samurai Sword of React State Management |
https://dev.to/codeofrelevancy/recoil-is-the-samurai-sword-of-react-state-management-5h3c
|
Recoil is the Samurai Sword of React State ManagementToday I have taken a new approach to present this article by adding a Samurai touch I sincerely hope that it adds value to your reading experience Your feedback is always welcome and appreciated so please share your thoughts in the comments section below Recoil was created to provide an alternative to Redux which is another popular state management library for React In today s adventure we will see what Recoil is how it works why you might want to use it in your React apps and much more With a spirit of the samurai let s begin our adventure Installing Recoil The Way of the SamuraiYou can install Recoil using npm or yarn by running the following command in your terminal npm install recoilComponents that use recoil state need RecoilRoot to appear somewhere in the parent tree A good place to put this is in your root component import React from react import ReactDOM from react dom client import RecoilRoot from recoil import App from App ReactDOM createRoot document getElementById root as HTMLElement render lt React StrictMode gt lt RecoilRoot gt lt App gt lt RecoilRoot gt lt React StrictMode gt This ensures that the state is available to all child components that require it and avoids any potential issues with components not being able to access the state due to missing RecoilRoot components In the way of the samurai there is no room for error So proceed with vigilance and honor What is Recoil Recoil is a state management library for React that was released by Facebook in It provides a simple and intuitive way to manage the state of a React application Recoil is built on top of React s Context API which is used to pass data down the component tree Anyway Recoil provides a more powerful and flexible way to manage the state of an application than the Context API The core idea behind Recoil is that state should be defined as a collection of atoms An atom is a piece of state that can be read and updated by components Components can subscribe to atoms to be notified when their value changes Recoil also has a secret weapon The Selectors powerful functions that derive new state from atoms or other selectors Selectors can be used to compute derived data from the state of an application How does Recoil work The art of Recoil is rooted in the samurai s keen understanding of the world around them It works by defining a collection of atoms and selectors that represent the state of an application Atoms are defined using the atom function it takes an initial value as a parameter Selectors are defined using the selector function which takes a function that computes the derived state as a parameter Together atoms and selectors form the backbone of Recoil Create an atomIn the way of the Samurai an atom in Recoil is like a sword It s an unit of state that can be read and written to by different parts of your app To create an atom you can use the atom function from the Recoil library To show you what I mean import atom from recoil export const weaponState atom key weaponState default name Katana damage Use the atom in a componentComponents can subscribe to atoms and selectors To use the weaponState atom in a component you can use the useRecoilState hook from the Recoil library To show you what I mean import React from react import useRecoilState from recoil import weaponState from atoms function WeaponDisplay const weapon setWeapon useRecoilState weaponState return lt div gt lt h gt weapon name lt h gt lt p gt Damage weapon damage lt p gt lt button onClick gt setWeapon name Nodachi damage gt Upgrade Weapon lt button gt lt div gt As per above instance we re using the useRecoilState hook to access the weaponState atom and its current value We re also providing a button that allows the user to upgrade their weapon by setting the atom to a new value Create a selectorSelectors are functions that allow you to derive state from your Recoil atoms They can be useful for computing complex values or aggregating data from multiple atoms To show you what I mean import selector from recoil import weaponState from atoms export const weaponDamageSelector selector key weaponDamageSelector get get gt const weapon get weaponState return weapon damage Use selector in a componentWe can then use selector in our components using the useRecoilValue hook same as atoms To show you what I mean import React from react import useRecoilState from recoil import weaponDamageSelector from selectors function WeaponDisplay const weaponDamage useRecoilState weaponDamageSelector return lt div gt lt p gt Weapon damage weaponDamage lt p gt lt div gt Create an atomFamilyIn the samurai world a clan may have multiple samurais and each with their own unique characteristics and abilities Similarly in a React application you may have multiple components that need to share state but with different identifiers or keys This is where atomFamily comes in handy It allows you to create a family of atoms that share the same structure but with different keys or identifiers As an instance let s say we want to create a family of atoms that represent the weapons of different samurais in a clan import atomFamily from recoil export const weaponAtomFamily atomFamily key weaponAtomFamily default id gt name Weapon id damage In above instance id argument in the default function is the unique identifier for each atom in the family So when we call weaponAtomFamily Wakizashiv the default function will be called with Wakizashiv as the id argument and will return an object representing the default weapon for that samurai Use atomFamily in a componentAn atomFamily takes almost the same options as a simple atom But the default value can also be parameterized That means you could provide a function which takes the parameter value and returns the actual default value import React from react import useRecoilState from recoil import weaponAtomFamily from atoms function WeaponDisplay const weapon setWeapon useRecoilState weaponAtomFamily Wakizashiv return lt div gt lt h gt weapon name lt h gt lt p gt Damage weapon damage lt p gt lt button onClick gt setWeapon name Weapon Nodachi damage gt Upgrade Weapon lt button gt lt div gt Why use Recoil Recoil provides several benefits over other state management libraries for React such as Redux Let s see some reasons why you might want to use Recoil in your React projects Simplified state managementRecoil provides a simpler and more intuitive way to manage the state of a React app With Recoil you can define atoms and selectors that represent the state of your app Components can subscribe to these atoms and selectors to be notified when their value changes No boilerplateRecoil also reduces the amount of boilerplate code that is required to manage the state of a React app It allows you to define atoms and selectors with minimal boilerplate code On otherside in Redux you need to define actions action creators reducers and store objects to manage the state of your app Better performanceRecoil provides better performance than other state management libraries for React This is because Recoil uses a new algorithm called the Dependency Graph which allows it to track the dependencies between atoms and selectors more efficiently The Dependency Graph ensures that only the components that need to be re rendered are re rendered when the state of an atom or selector changes which improves the performance of your app Familiar syntaxRecoil uses a syntax that is similar to React s built in hooks such as useState and useEffect This makes Recoil easy to learn and use for developers who are already familiar with React Flexible and scalableRecoil is designed to be flexible and scalable It can be used to manage the state of small or large apps with complex state requirements It allows you to define atoms and selectors that represent different parts of your app s state and it provides tools for managing the dependencies between these atoms and selectors Battle of Recoil and ReduxSo my fellow samurais let s move forward to the final chapter of our adventure together as fearless samurai warriors What is Atom Effects Atom Effects is a feature in Recoil that allows you to execute side effects when an atom s value changes Side effects are any operations that have an impact outside of the atom s state Such as network requests local storage or logging Atom effects are attached to atoms via the effects option Each atom can reference an array of these atom effect functions which are called in priority order when the atom is initialized With the help of Atom Effects you can add subscriptions to an atom that will be triggered whenever the atom s value changes The subscriptions can execute any side effects that are necessary for your app The side effects can be synchronous or asynchronous Atom Effects can be useful in situations where you need to execute side effects based on the current state of your app As instance you may want to save the user s preferences to local storage whenever they make a change to a settings page Atom Effects are the hidden forces that shape the world around us just as a samurai s sword is shaped by the unseen interactions of its atoms To show you what I mean import atom useRecoilState from recoil export const weaponState atom key weaponState default name Katana damage Atom Effects effects onSet gt onSet weapon gt console log The weapon has upgrade to weapon name function WeaponDisplay const weapon setWeapon useRecoilState weaponState return lt div gt lt h gt weapon name lt h gt lt button onClick gt setWeapon name Nodachi gt Upgrade Weapon lt button gt lt div gt The onSet callback is called whenever the value of the weaponState atom changes In above instance we re simply logging the new weapon of the atom to the console but we could just as easily execute a more complex side effect End of adventureRecoil is built on top of React s Context API and provides a more powerful and flexible way to manage the state of an application than the Context API It allows you to define atoms and selectors that represent the state of your app Components can subscribe to these atoms and selectors to be notified when their value changes Recoil provides several benefits over other state management libraries for React such as simplified state management no boilerplate better performance familiar syntax and flexibility and scalability If you re looking for a state management library for your React projects Recoil is definitely worth considering My fellow samurais let s take up the art of Recoil and master the ways of state management Motivation SupportPlease consider following and supporting us by subscribing to our channel Your support is greatly appreciated and will help us continue creating content for you to enjoy Thank you in advance for your support YouTubeGitHubTwitter |
2023-02-27 05:29:01 |
医療系 |
医療介護 CBnews |
離島の介護サービス、人材慢性的に不足し確保困難-東京都離島振興計画素案、職員宿舎借り上げ支援も |
https://www.cbnews.jp/news/entry/20230227131922
|
借り上げ |
2023-02-27 14:50:00 |
金融 |
ニッセイ基礎研究所 |
米インフレの高止まりリスク-インフレはピークアウトも低下スピードは鈍化傾向、インフレ抑制のためには景気後退不可避の可能性 |
https://www.nli-research.co.jp/topics_detail1/id=74021?site=nli
|
nbsp目次はじめに米消費者物価の動向年月の結果前年同月比で低下基調が持続も、足元で低下スピードは鈍化エネルギー・食料品価格年は物価上昇圧力の緩和が見込まれるコア財価格供給制約の解消から低下基調が持続へコアサービス価格住居費年早期にピークアウトへコアサービス価格除く住居費労働需給逼迫がインフレの高止まり要因となる可能性インフレ高止まりと景気後退リスクインフレの速やかな低下に景気後退は不可避の可能性まとめ米国の消費者物価指数CPIは前年同月比で低下基調が持続しているものの、足元では低下スピードの鈍化がみられる。 |
2023-02-27 14:21:22 |
金融 |
ニッセイ基礎研究所 |
中国の高齢者デモ、その背景は何か。 |
https://www.nli-research.co.jp/topics_detail1/id=73988?site=nli
|
その原因は、武漢市が今年の月から公的医療保険に関して新たな規定を適用するとし、基本医療保険基金から医療療保険口座への振替えの基準や比率を大幅に改定した点にある。 |
2023-02-27 14:33:03 |
ニュース |
@日本経済新聞 電子版 |
39年前の滋賀・日野町事件、大阪高裁も再審開始認める
https://t.co/857eCrzh9h |
https://twitter.com/nikkei/statuses/1630072964891955200
|
大阪高裁 |
2023-02-27 05:10:54 |
海外ニュース |
Japan Times latest articles |
How the Russia-Ukraine war has changed Japan’s economic outlook |
https://www.japantimes.co.jp/news/2023/02/27/business/economy-business/russia-ukraine-japan-economy/
|
natural |
2023-02-27 14:12:33 |
海外ニュース |
Japan Times latest articles |
Kyushu unprepared to accept evacuees from remote islands under armed attack |
https://www.japantimes.co.jp/news/2023/02/27/national/evacuees-remote-islands/
|
Kyushu unprepared to accept evacuees from remote islands under armed attackResidents on remote islands are questioning the effectiveness of evacuation drills when their potential destinations have not yet started discussing the issue |
2023-02-27 14:10:13 |
海外ニュース |
Japan Times latest articles |
Lab leak most likely caused pandemic, U.S. Energy Department says |
https://www.japantimes.co.jp/news/2023/02/27/world/us-views-china-covid-leak-likely/
|
Lab leak most likely caused pandemic U S Energy Department saysSome officials briefed on the intelligence said that it was relatively weak and that the conclusion was made with low confidence suggesting its level of |
2023-02-27 14:03:24 |
ニュース |
BBC News - Home |
Italy migrant boat shipwreck: Nearly 60 killed off Calabria coast |
https://www.bbc.co.uk/news/world-europe-64776621?at_medium=RSS&at_campaign=KARANGA
|
stormy |
2023-02-27 05:32:54 |
ニュース |
BBC News - Home |
The Papers: EU chief to meet Sunak and 'Italy tragedy' |
https://www.bbc.co.uk/news/blogs-the-papers-64780925?at_medium=RSS&at_campaign=KARANGA
|
front |
2023-02-27 05:08:42 |
ニュース |
BBC News - Home |
New Zealand v England: Jack Leach gives England chance of historic victory |
https://www.bbc.co.uk/sport/cricket/64776691?at_medium=RSS&at_campaign=KARANGA
|
wellington |
2023-02-27 05:33:48 |
ビジネス |
東洋経済オンライン |
日経平均への「下落圧力」がジワジワ強まってきた 楽観すぎたアメリカ株の調整に日本株も追随へ | 市場観測 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/655340?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
日経平均 |
2023-02-27 14:30:00 |
ビジネス |
東洋経済オンライン |
そごう・西武売却でセブンの株主が仮処分申請へ フォートレスへの株式譲渡差し止めを求める | 百貨店・量販店・総合スーパー | 東洋経済オンライン |
https://toyokeizai.net/articles/-/655297?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
差し止め |
2023-02-27 14:30:00 |
ニュース |
Newsweek |
成田氏「集団自決」発言から考える、安楽死をめぐる日本の現在地 |
https://www.newsweekjapan.jp/stories/world/2023/02/post-100965.php
|
「強制された安楽死」はもはや「安楽死」ではなく「殺人」であり、集団に対して行われれば「虐殺」だからだ。 |
2023-02-27 14:40:00 |
IT |
週刊アスキー |
『とあるIF』の公式番組が本日2月27日20時より配信!ピックアップガチャも紹介 |
https://weekly.ascii.jp/elem/000/004/126/4126443/
|
情報発信 |
2023-02-27 14:30:00 |
IT |
週刊アスキー |
Yahoo!ニュース、コメント欄の悪質ユーザーが56%減少 |
https://weekly.ascii.jp/elem/000/004/126/4126429/
|
yahoo |
2023-02-27 14:15:00 |
IT |
週刊アスキー |
データは引き継ぎ可能!ダーク三國死にゲー『Wo Long: Fallen Dynasty』最終体験版が配信中 |
https://weekly.ascii.jp/elem/000/004/126/4126430/
|
wolongfallendynasty |
2023-02-27 14:10:00 |
IT |
週刊アスキー |
CanJam 2023 NYレポート、CampfireがAndromedaやSolarisの新モデルを投入ほか |
https://weekly.ascii.jp/elem/000/004/126/4126446/
|
andromeda |
2023-02-27 14:30:00 |
コメント
コメントを投稿