IT |
ITmedia 総合記事一覧 |
[ITmedia ビジネスオンライン] 2022年に最も売れた中古スマホ 3位「iPhone SE(第2世代)」、2位「iPhone 7」、1位は? |
https://www.itmedia.co.jp/business/articles/2302/22/news170.html
|
iphone |
2023-02-23 06:52:00 |
IT |
ビジネス+IT 最新ニュース |
踊り場を迎える「定額制動画配信」、邦画の多様性が「瀕死」のワケ |
https://www.sbbit.jp/article/cont1/106808?ref=rss
|
|
2023-02-23 06:10:00 |
Google |
カグア!Google Analytics 活用塾:事例や使い方 |
「YouTube作家的思考」レビュー~個人ユーチューバー必読のおすすめ本 |
https://www.kagua.biz/review/book/20210524.html
|
youtube |
2023-02-22 21:00:58 |
AWS |
AWS Partner Network (APN) Blog |
DXC Technology’s Plug-and-Play API-Based AWS Object Storage Accelerator Solution |
https://aws.amazon.com/blogs/apn/dxc-technology-plug-and-play-api-based-aws-object-storage-accelerator-solution/
|
DXC Technology s Plug and Play API Based AWS Object Storage Accelerator SolutionAmazon S is ideal when you want to store documents images and videos and render with faster performance Learn about the object storage accelerator built by DXC Technology a serverless solution that automatically creates code repository CI CD pipeline and S storage APIs with security best practices in a two step deployment process The solution is technology agonistic which means any customer project can consume these services after deployment |
2023-02-22 21:29:45 |
AWS |
AWS Big Data Blog |
How Ruparupa gained updated insights with an Amazon S3 data lake, AWS Glue, Apache Hudi, and Amazon QuickSight |
https://aws.amazon.com/blogs/big-data/how-ruparupa-gained-updated-insights-with-an-amazon-s3-data-lake-aws-glue-apache-hudi-and-amazon-quicksight/
|
How Ruparupa gained updated insights with an Amazon S data lake AWS Glue Apache Hudi and Amazon QuickSightThis post is co written with Olivia Michele and Dariswan Janweri P at Ruparupa Ruparupa was built by PT Omni Digitama Internusa with the vision to cultivate synergy and create a seamless digital ecosystem within Kawan Lama Group that touches and enhances the lives of many Ruparupa is the first digital platform built by Kawan Lama … |
2023-02-22 21:10:39 |
AWS |
AWS Machine Learning Blog |
Boomi uses BYOC on Amazon SageMaker Studio to scale custom Markov chain implementation |
https://aws.amazon.com/blogs/machine-learning/boomi-uses-byoc-on-amazon-sagemaker-studio-to-scale-custom-markov-chain-implementation/
|
Boomi uses BYOC on Amazon SageMaker Studio to scale custom Markov chain implementationThis post is co written with Swagata Ashwani Senior Data Scientist at Boomi Boomi is an enterprise level software as a service SaaS independent software vendor ISV that creates developer enablement tooling for software engineers These tools integrate via API into Boomi s core service offering In this post we discuss how Boomi used the bring your own container BYOC approach … |
2023-02-22 21:04:28 |
AWS |
AWS Media Blog |
Combining dynamic ad insertion and A/B watermarking |
https://aws.amazon.com/blogs/media/combining-dynamic-ad-insertion-and-a-b-watermarking/
|
Combining dynamic ad insertion and A B watermarkingFor video service providers delivering a personalized ad experience with A B forensic watermarking can create interoperability challenges because both require dynamic manipulation of the manifest used for playback In this blog post we explore this potential conflict and recommend a system architecture that delivers a personalized ad experience along with A B watermarking so that you … |
2023-02-22 21:01:52 |
AWS |
AWS Open Source Blog |
Validating OpenTelemetry Configuration Files with the otel-config-validator |
https://aws.amazon.com/blogs/opensource/validating-opentelemetry-configuration-files-with-the-otel-config-validator/
|
opentelemetry |
2023-02-22 21:50:25 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Microsoft Azure: Apple Silicon から Python で SQLDatabase へ接続する |
https://qiita.com/KenjiOtsuka/items/6743d056b734641ed5f4
|
environmento |
2023-02-23 06:42:48 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
迷路の最短距離問題(BFS)〜Javascriptでの解法〜 |
https://qiita.com/kzy83/items/e2de678e5008c39f9e07
|
bfsjavascript |
2023-02-23 06:20:27 |
Azure |
Azureタグが付けられた新着投稿 - Qiita |
Microsoft Azure: Apple Silicon から Python で SQLDatabase へ接続する |
https://qiita.com/KenjiOtsuka/items/6743d056b734641ed5f4
|
environmento |
2023-02-23 06:42:48 |
海外TECH |
DEV Community |
ReductStore Client SDK for C++ v1.3.0 with Labels Support |
https://dev.to/reductstore/reductstore-client-sdk-for-c-v130-with-labels-support-3ej9
|
ReductStore Client SDK for C v with Labels SupportWe are excited to announce the release of ReductStore Client SDK for C v This release includes support for the ReductStore API v with labels and content type LabelsSince ReductStore v you can attach labels to data when writing and querying Labels are key value pairs that can be used to classify and categorize data For example you might use labels to store metadata about a record such as its md sum or class auto bucket err client gt CreateBucket kBucketName IBucket Time ts IBucket Time std chrono microseconds std string blob some blob of data bucket gt Write entry IBucket WriteOptions timestamp ts labels IBucket LableMap label value amp blob auto rec rec gt WriteAll blob This labels can be used to filter the results of a query auto err bucket gt Query entry ts ts us IBucket QueryOptions include IBucket LabelMap label value amp all data auto record std cout lt lt record gt ReadAll lt lt std endl Content TypeYou can now specify the content type of the data you are writing to the ReductStore database This could be useful for example when you are writing a file to the database and want to store the file extension as the content type or keep information about the image format bucket gt Write entry I Bucket WriteOptions content type image png amp blob auto rec rec gt WriteAll image as blob Read more about labels and content type in the ReductStore documentation I hope you find this release useful If you have any questions or feedback don t hesitate to reach out in Discord or by opening a discussion on GitHub Thanks for using ReductStore |
2023-02-22 21:53:43 |
海外TECH |
DEV Community |
Welcome Mastodon to Fast Forward! |
https://dev.to/fastly/welcome-mastodon-to-fast-forward-11g4
|
Welcome Mastodon to Fast Forward We re thrilled to announce that Mastodon is now a member of Fast Forward We believe things are better when they re a little closer to you ーwhen you have a say over your data your safety and your community If we ve learned anything over the past few years we re stronger when we stay connected Welcome Mastodon to Fast ForwardWe are super excited about this project because of what Mastodon represents ーnot only the power of community but also the power to build communities to own and control your data to leave a digital space and take your data and your friends with you when and wherever you go Helping a project like Mastodon is why we have a program like Fast Forward in the first place ーit truly delivers on the promise of the open web that drew so many people to ActivityPub and the fediverse In some ways the motivation that led Eugen Rochko to create Mastodon is similar to what led our founders to create Fastly They found something about the internet that was broken so they set out to build something that would fix it And the community that Eugen has helped lead around Mastodon has succeeded beyond anyone s wildest imagination At Fastly we can help the open web thrive by providing scale and security And we can help an open source project whose biggest challenge is being available for and welcoming to everyone around the world who wants to take advantage of this new platform How we re helpingMastodon was created long before the most recent news cycle but it has certainly seen people joining at a much faster rate over the last few months That means more people hitting the joinmastodon org domain more activity throughout each hr cycle and more load on the mastodon social and mastodon online instances The increased attention has been both positive and negative On January st Mastodon and its flagship instances were hit by a significant DDoS attack img alt a toot Eugen Rochko lt br gt Gargron mastodon social quot mastodon social mastodon online and joinmastodon org were hit by a DDoS yesterday thankfully joinmastodon org was already behind Fastly so it didn t have any impact on it We ve now moved mastodon online behind Fastly and will do the same with mastodon social soon quot height src dev to uploads s amazonaws com uploads articles frhpwjxbttgg png width To understand the magnitude of such an attack we generated a graph representing the relative trend between average traffic to joinmastodon org and the requests per second RPS during the attack What s more application layer Layer of the OSI Model DDoS attacks like those directed at Mastodon are typically very short lived meaning it was difficult for the Mastodon team to react in the moment Right now the team administering the mastodon social and mastodon online instances as well as the rest of Mastodon s infrastructure such as joinmastodon org consists of Eugen Renaud Chaput and the excellent community of contributors sponsors and instance admins that support the nonprofit By the way ーMastodon is hiring a full time DevOps Engineer And while that might work for one off attacks or uninspired hackers anyone persistent enough can easily switch tactics to get by those quick fixes Fastly absorbed the attack on joinmastodon org ーwe ve got automation to respond to such attacks Given our place as a frontline operator sitting between systems and the people that use them we re constantly monitoring the threat landscape evolving our defense and mitigation stance and what s more empathizing with victims While DDoS attacks continue to grow larger and faster the industry s ability to respond is growing even faster still We re glad to be able to protect Mastodon and to be an option for anyone else who wants to scale and protect their community with integrity see our trust and community policies We re also mindful of not wanting to centralize the infrastructure of a social network that is decentralized by design Mastodon can easily migrate to another CDN or a multi CDN approach Put simply we re handling the network ーdelivering and securing content ーso Mastodon can handle the stuff that matters most to them ーencouraging healthy communities with effective community management and brilliantly creative participants Because we believe… The future is federatedMastodon is a growing project and community and they need help We already mentioned that they re hiring a DevOps Engineer They re hiring a Software Engineer and a Product Designer too You can also join the community discussion suggest a feature for their roadmap and get set up to contribute to the codebase And Mastodon is one platform within a world ーa fediverse ーof projects platforms clients and apps built to intercommunicate It s a whole fediverse party We can t wait to see all the new and innovative stuff that s yet to come Speaking of are you building for the fediverse We want to support you We re already supporting some incredible projects building for the new web I can t wait to tell you about them in the coming weeks and we want to support you too If you need help scaling your project apply to Fast Forward here Or if you want us to signal boost your project need advice or want to show us what you re building reach out to us on fedi haubles fosstodon org glitchdotcom mastodon socialWe can t wait to see what you re working on Now let s go build the good internet ーtogether |
2023-02-22 21:48:41 |
海外TECH |
DEV Community |
Understanding React Hooks: How to Use useRef, useMemo, and useCallback for More Efficient Code |
https://dev.to/michael_osas/understanding-react-hooks-how-to-use-useref-usememo-and-usecallback-for-more-efficient-code-3ceh
|
Understanding React Hooks How to Use useRef useMemo and useCallback for More Efficient CodeReact Hooks are a feature in React that allows developers to use state and other React features without needing to write a class component They have revolutionized the way developers write React components making them more reusable and maintainable These hooks provide a simpler way to use state and other React features without requiring a class component This post explores the details of three built in hooks in React useRef useMemo and useCallback They make it easier to reuse the same stateful logic across different components which makes code more maintainable and easier to understand It took me the whole day to come up with this detailed explanation of these hooks so get ready to take breaks while reading this post There are different built in hooks in React such as useState useEffect useRef useMemo and useCallback These hooks are functions that can be used inside functional components to manage state perform actions and access context useRef is a hook that provides a way to store a mutable value that persists across renders It is commonly used to access or modify the properties of DOM elements like the value of an input or the scroll position of a container Unlike useState updating the value of a useRef does not trigger a re render of the component Instead the value can be accessed or modified directly by using the current property of the returned object useMemo is a hook that memoizes the result of a function and returns a cached value unless one of the dependencies has changed This can be useful for expensive computations or when a component s rendering depends on the value of a complex data structure The second argument of useMemo is an array of dependencies and the function is only re executed when one of the dependencies changes useCallback is a hook that memoizes a function and returns a cached value unless one of the dependencies has changed This can be useful for optimizing the performance of a component by avoiding unnecessary re renders caused by passing a new function reference to child components The second argument of useCallback is an array of dependencies and the function is only re created when one of the dependencies changes In general React Hooks make it easier to write more reusable and maintainable code by breaking down stateful logic into smaller composable functions Using hooks can simplify the process of writing components reduce repetitive code and make it easier to understand the behavior of a component Alright Let s Take a Deeper Dive into These Hooks useRefIn React the useRef hook is used to create a mutable reference that can persist across re renders It is similar to the ref attribute in class components but with some differences The useRef hook takes an initial value as an argument and returns a mutable ref object with a current property The current property can be set and accessed directly without triggering a re render of the component This is useful for storing a value or a reference to a DOM element that needs to be accessed later Here s an example of how to use useRef to store a reference to an input element and focus it when a button is clicked import useRef from react function Example const inputRef useRef null function handleClick inputRef current focus return lt div gt lt input type text ref inputRef gt lt button onClick handleClick gt Focus Input lt button gt lt div gt This is a React functional component called Example that uses the useRef hook to create a reference to an input element in the component Let s take a closer look at the code The useRef hook is a built in React hook that creates a mutable reference to an element or a value that persists across component renders In this example the useRef hook is used to create a reference to an input element by calling useRef null The inputRef variable is then initialized to this reference The handleClick function is called when the user clicks the Focus Input button The function uses the current property of the inputRef object to get a reference to the input element and then calls the focus method to focus the input element The return statement of the Example component renders a lt div gt element that contains an input element and a button The ref attribute of the input element is set to inputRef which creates a reference to the input element The onClick attribute of the button is set to handleClick which calls the handleClick function when the button is clicked In summary this example demonstrates how to use the useRef hook in a React functional component to create a reference to an input element and then use that reference to focus the input element when a button is clicked By using the useRef hook the reference to the input element persists across component renders which can be useful for accessing and modifying the input element in other parts of the component or application useMemouseMemo is a React Hook that is used for performance optimization by memoizing the result of a computationally expensive function Memoization is the process of caching the result of a function based on its arguments so that if the function is called again with the same arguments the cached result is returned instead of recomputing the result The useMemo Hook takes two arguments a function that returns the memoized value and an array of dependencies The function is only re executed when one of the dependencies changes If the dependencies are the same between renders the previously memoized value is returnedHere is a detailed example of the useMemo hook import React useMemo from react function MyComponent a b const memoizedValue useMemo gt Compute the result only when a or b changes return a b a b return lt div gt Memoized Value memoizedValue lt div gt In the code example above useMemo is being used to cache or remember the result of a calculation involving a and b This means that if the values of a or b don t change between renders the memoized value will be returned instead of re computing it which can improve performance by saving computation time However it s important to note that using useMemo is not always necessary If the calculation being cached is not very time consuming or if the component re renders frequently regardless of the memoized value the performance benefits of using useMemo may not be significant or it may even make the performance worse It s also important to keep in mind that memoization is not always the best approach especially when the value being cached is likely to change frequently In such cases it may be better to calculate the value directly in the render function Overall useMemo is a useful tool for optimizing the performance of a React application but it should be used thoughtfully and with an understanding of the potential benefits and tradeoffs useCallbackuseCallback is a built in React hook that is used to optimize performance by reducing unnecessary re rendering of components The hook memoizes a function which means that it returns the same function instance on re renders unless any of its dependencies change Here is the basic syntax of useCallback javascriptconst memoizedCallback useCallback gt function body dependency array It looks like the useEffect hook the first argument of useCallback is the function that you want to memoize The second argument is an optional array of dependencies that are used to determine whether the memoized function should be recomputed If any of the dependencies change the memoized function will be re computed otherwise the cached function will be returned The primary benefit of useCallback is that it helps to prevent unnecessary re renders of child components Let s take a simple application as case study function ParentComponent const count setCount useState const handleClick gt setCount count return lt div gt lt button onClick handleClick gt Increment count lt button gt lt ChildComponent gt lt div gt function ChildComponent const value setValue useState const expensiveFunction gt do some expensive computation here useEffect gt expensiveFunction expensiveFunction return lt div gt value lt div gt This is an example of a React functional component that consists of two components ParentComponent and ChildComponent Let s take a closer look at each component The ParentComponent This component defines a state variable called count using the useState hook which is initialized to zero It also defines a click event handler function called handleClick which increments the count state variable using the setCount function When the component is rendered it returns a lt div gt element with a button that when clicked calls the handleClick function to increment the count variable It also renders another component called ChildComponent The ChildComponent This component defines a state variable called value using the useState hook which is initialized to zero It also defines a function called expensiveFunction which simulates some expensive computation This component uses the useEffect hook to call the expensiveFunction function when the component is mounted The useEffect hook takes two arguments a function and a dependency array In this case the function is expensiveFunction and the dependency array is expensiveFunction By specifying expensiveFunction as a dependency array the useEffect hook will only re run the expensiveFunction function when the expensiveFunction reference changes Finally the component returns a lt div gt element with the value state variable rendered inside it This example demonstrates how to use the useState and useEffect hooks in React functional components to manage state and side effects respectively The ParentComponent component updates its count state variable in response to a button click while the ChildComponent component uses the useEffect hook to run some expensive computation when the component mounts To optimize this code we are going to use useCallback to memoize the expensive function and only recompute it when its dependencies change function ParentComponent const count setCount useState const handleClick gt setCount count const memoizedFunction useCallback gt do some expensive computation here return lt div gt lt button onClick handleClick gt Increment count lt button gt lt ChildComponent expensiveFunction memoizedFunction gt lt div gt function ChildComponent expensiveFunction const value setValue useState useEffect gt expensiveFunction expensiveFunction return lt div gt value lt div gt In this code example the ParentComponent is similar to the previous example except that it uses the useCallback hook to define a memoized function called memoizedFunction The useCallback hook is used to memoize a function so that it doesn t get recreated on every render This can be useful when passing a function as a prop to a child component as it can prevent unnecessary re renders When the component is rendered it returns a lt div gt element with a button that when clicked calls the handleClick function to increment the count variable It also renders another component called ChildComponent and passes the memoizedFunction as a prop The ChildComponent is also similar to the previous example except that it receives a prop called expensiveFunction and uses it to run the expensive computation using the useEffect hook Since the expensiveFunction is passed as a prop it is also passed down from the ParentComponent which memoizes the function using the useCallback hook In this case the useEffect hook is set up to run the expensive Function when the component is mounted or when the expensive Function reference changes By memoizing the function in the ParentComponent the expensive Function reference will not change on every render which can prevent unnecessary re renders of the ChildComponent Finally the component returns a lt div gt element with the value state variable rendered inside it To put it simply this example shows how to use a technique called useCallback in React functional components to make sure that a function is not re run unnecessarily It also shows how to use a function that has been optimized in this way as a prop to a child component and how to run a time consuming task using the useEffect technique My final thoughtsIn conclusion React Hooks provide developers with an easier way to write and manage stateful logic in functional components The useRef hook creates a mutable reference to an element or a value that persists across renders allowing for direct access and modification without re rendering the component The useMemo hook is used for performance optimization by caching the result of a computationally expensive function only re executing the function when the dependencies have changed The useCallback hook is useful for optimizing the performance of a component by memoizing a function and returning a cached value unless one of the dependencies has changed With built in hooks such as useRef useMemo and useCallback developers can manage state perform actions and access context more efficiently By breaking down stateful logic into smaller composable functions hooks make it simpler to write components reduce repetitive code and make component behavior easier to understand The useRef hook can create a mutable reference to an element or value that persists across component renders The useMemo hook can optimize performance by memoizing the result of a computationally expensive function and the useCallback hook can memoize a function to optimize the performance of a component Overall using React Hooks is a great way to make code more reusable and maintainable Thank you for reading I hope you found this little article helpful Please share it with your friends and colleagues Connect with me on my socials to read more about JavaScript React Node js and more… |
2023-02-22 21:03:57 |
海外TECH |
Engadget |
FCC chair proposes rules to reduce scam robotexts |
https://www.engadget.com/fcc-chair-proposes-rules-to-reduce-scam-robotexts-212705467.html?src=rss
|
FCC chair proposes rules to reduce scam robotextsThe chair of the Federal Trade Commission has proposed new rules to tackle the scourge of text message scams If the agency s commissioners approve the rules at a meeting in March providers would have to block robotexts that are quot highly likely to be illegal quot chair Jessica Rosenworcel said in a statement The FCC has yet to publish the full text of Rosenworcel s proposal If adopted it will force providers to block text messages that appear to be from numbers on a do not originate list They include unused invalid and unallocated numbers as well as those that government agencies and quot other well known entities quot say they don t send texts from Messages from these numbers quot are highly likely to be illegal and no consumer would want to receive them quot an FCC statement reads Moreover providers would have to block texts from entities that the FCC flags for sending illegal robotexts The proposed rules state that providers would additionally need to expand National Do Not Call Registry protections to include texts to prevent consumers from receiving unwanted marketing messages “Missing packages that don t exist confirmation of payments that didn t happen links to shady websites and truncated wrong number messages from strangers These scam robotexts are a part of everyday life for too many of us Rosenworcel said “I m asking my colleagues to join me in adopting the first FCC rules to focus on shutting down scam texts But we re not stopping here Because we are going to keep at it and develop more ways to take on this growing consumer threat The robotext proposal follows measures the FCC has taken to stamp out robocalls Both issues are on the agenda for the FCC s open meeting next month along with other items like a proposed framework quot for increased collaboration between terrestrial mobile network operators and satellite service providers quot to bolster phone service in areas where it is lacking That could could come in useful for life or death situations in remote areas Certain devices such as the iPhone now offer satellite connectivity for emergency use |
2023-02-22 21:27:05 |
海外TECH |
WIRED |
Alphabet Layoffs Hit Trash-Sorting Robots |
https://www.wired.com/story/alphabet-layoffs-hit-trash-sorting-robots/
|
clean |
2023-02-22 21:10:24 |
ニュース |
BBC News - Home |
Omagh: Off-duty police officer shot |
https://www.bbc.co.uk/news/uk-northern-ireland-64736670?at_medium=RSS&at_campaign=KARANGA
|
tyrone |
2023-02-22 21:53:09 |
ニュース |
BBC News - Home |
Asylum claims for 12,000 to be considered without face-to-face interview |
https://www.bbc.co.uk/news/uk-64736123?at_medium=RSS&at_campaign=KARANGA
|
seekers |
2023-02-22 21:07:55 |
ニュース |
BBC News - Home |
Ukraine war: Big mistake for Russia to suspend nuclear arms treaty, Biden says |
https://www.bbc.co.uk/news/world-europe-64735708?at_medium=RSS&at_campaign=KARANGA
|
start |
2023-02-22 21:12:15 |
ニュース |
BBC News - Home |
Rapper Nipsey Hussle's killer Eric R Holder Jr gets 60 years in prison |
https://www.bbc.co.uk/news/world-us-canada-64726726?at_medium=RSS&at_campaign=KARANGA
|
grammy |
2023-02-22 21:14:27 |
ニュース |
BBC News - Home |
Why is there a shortage of tomatoes and other fruit and veg? |
https://www.bbc.co.uk/news/business-64718826?at_medium=RSS&at_campaign=KARANGA
|
limit |
2023-02-22 21:17:02 |
ニュース |
BBC News - Home |
England 6-1 Belgium: Lionesses retain Arnold Clark Cup with win over Belgium |
https://www.bbc.co.uk/sport/football/64718305?at_medium=RSS&at_campaign=KARANGA
|
England Belgium Lionesses retain Arnold Clark Cup with win over BelgiumEngland successfully defend the Arnold Clark Cup after a thumping victory over Belgium makes it three wins from three games in the tournament |
2023-02-22 21:44:52 |
ニュース |
BBC News - Home |
Conor Benn: British boxer back in WBC rankings after failed drugs test not 'intentional' |
https://www.bbc.co.uk/sport/boxing/64734190?at_medium=RSS&at_campaign=KARANGA
|
Conor Benn British boxer back in WBC rankings after failed drugs test not x intentional x Conor Benn is reinstated to the WBC rankings as it rules his failed drugs test was not intentional and could have been caused be the overconsumption of eggs |
2023-02-22 21:30:56 |
ビジネス |
東洋経済オンライン |
維新・馬場代表「統一地方選は600議席を目標に」 「大阪モデルの成功を堂々と全国に訴えていく」 | 国内政治 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/652644?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
国内政治 |
2023-02-23 06:20:00 |
コメント
コメントを投稿