IT |
ITmedia 総合記事一覧 |
[ITmedia News] 「Yes! プリキュア5」YouTubeで全話無料配信 続編「オトナプリキュア」放送を前に |
https://www.itmedia.co.jp/news/articles/2303/22/news156.html
|
itmedia |
2023-03-22 16:35:00 |
IT |
ITmedia 総合記事一覧 |
[ITmedia ビジネスオンライン] 「サントリーウイスキー 角瓶」値上げ 1590円→1910円 |
https://www.itmedia.co.jp/business/articles/2303/22/news157.html
|
itmedia |
2023-03-22 16:33:00 |
IT |
ITmedia 総合記事一覧 |
[ITmedia Mobile] 「モバイルICOCA」を使い始めるにはどうすればいい? 手順をチェック! |
https://www.itmedia.co.jp/mobile/articles/2303/22/news154.html
|
android |
2023-03-22 16:30:00 |
IT |
ITmedia 総合記事一覧 |
[ITmedia ビジネスオンライン] 仏プジョー、侍ジャパン応援キャンペーン 「ペッパーミル」認知拡大へ |
https://www.itmedia.co.jp/business/articles/2303/22/news135.html
|
itmedia |
2023-03-22 16:07:00 |
IT |
ITmedia 総合記事一覧 |
[ITmedia PC USER] エイサー、フルHD表示に対応したスタンダード23.8型/27型液晶ディスプレイ |
https://www.itmedia.co.jp/pcuser/articles/2303/22/news150.html
|
ekhbi |
2023-03-22 16:07:00 |
IT |
ビジネス+IT 最新ニュース |
米アマゾンが9000人削減へ / CA藤田社長3年後に後任と社長交代 |
https://www.sbbit.jp/article/cont1/110053?ref=rss
|
関連 |
2023-03-22 17:00:00 |
TECH |
Techable(テッカブル) |
「ChatGPT」が歯科医師国家試験に挑戦!GPT-3.5とGPT-4でどんな結果の違いがあった? |
https://techable.jp/archives/201486
|
chatgpt |
2023-03-22 07:30:43 |
TECH |
Techable(テッカブル) |
手の甲から10~600cmまですばやくスキャン!マルチレンジ搭載のウェアラブルスキャナ |
https://techable.jp/archives/200317
|
proglove |
2023-03-22 07:00:30 |
IT |
情報システムリーダーのためのIT情報専門サイト IT Leaders |
日立Sol、ランサムウェア被害対策の「データ回復ソリューション」を機能強化、被害をファイル単位で特定 | IT Leaders |
https://it.impress.co.jp/articles/-/24605
|
日立Sol、ランサムウェア被害対策の「データ回復ソリューション」を機能強化、被害をファイル単位で特定ITLeaders日立ソリューションズは年月日、ランサムウェア被害対策サービス「データ回復ソリューション」の機能を強化すると発表した。 |
2023-03-22 16:09:00 |
IT |
情報システムリーダーのためのIT情報専門サイト IT Leaders |
クラウド型データ統合サービス「SAP Datasphere」、複数のデータソースを仮想統合 | IT Leaders |
https://it.impress.co.jp/articles/-/24607
|
クラウド型データ統合サービス「SAPDatasphere」、複数のデータソースを仮想統合ITLeadersSAPジャパンは年月日、クラウド型データ統合サービス「SAPDatasphereデータスフィア」を提供開始した。 |
2023-03-22 16:07:00 |
AWS |
AWS Japan Blog |
Wraptas とペライチにおける AWS App Runner の採用 |
https://aws.amazon.com/jp/blogs/news/app-runner-case-study-by-peraichi/
|
awsapprunner |
2023-03-22 07:23:53 |
AWS |
AWS Japan Blog |
ハノーバーメッセ 2023: AWSによる現代的な産業データ戦略を見出す |
https://aws.amazon.com/jp/blogs/news/aws-at-hannover-messe-a-modern-industrial-data-strategy/
|
ediscoveramodernindustri |
2023-03-22 07:06:56 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
演算子**と<< 速度比較 python |
https://qiita.com/hiro1729/items/11cb4eb0606b216852fc
|
mtimeitpythonmtimeitltlt |
2023-03-22 17:00:05 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
boto3.Sessionを利用した場合のGSIに対するクエリの書き方 |
https://qiita.com/reserpine/items/5dc0ebd0a96b9b6821ae
|
nameprofilenameclient |
2023-03-22 16:32:30 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
【Publisher】Try executing the scheduled task on Sharperlight instance B from Sharperlight instance A |
https://qiita.com/Miki_Yokohata/items/1ffa7755a1637fb46f07
|
create |
2023-03-22 16:15:42 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
小道具:文字コードの変換と確認など |
https://qiita.com/ikiuo/items/ac08dd33bc49f9ae7263
|
seethepen |
2023-03-22 16:03:21 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
Rubyの二次元配列がわからなかったからくそコード書いたから見て! |
https://qiita.com/emioiso/items/6eae6e13609ddf728d09
|
sgetsputsscount |
2023-03-22 16:40:46 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
AlexaとChatGPT APIを組み合わせて質問に回答するスキルを開発しよう! |
https://qiita.com/bonjiko/items/54af3f36a3714aba7f6d
|
alexa |
2023-03-22 16:59:10 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
【AWS-ゼロトラストモデル】AWSが考えるゼロトラスト指針 |
https://qiita.com/shigetaka-m777/items/d1fdf0781177eef6a09f
|
指針 |
2023-03-22 16:45:38 |
海外TECH |
DEV Community |
useMemeffect |
https://dev.to/golam_mostafa/usememeffect-1a9k
|
useMemeffectIf you want to avoid unnecessary re renders of your component when only some of the dependencies change you can use the useMemo hook to memoize the values that are derived from the dependencies This way the values will only be re computed when the dependencies they depend on change In the above example we re using useMemo to compute two derived values based on the dependencies We then pass these derived values as dependencies to the useEffect hook This means that the useEffect hook will only re run when the derived values actually change not when any of the original dependencies change but the derived values remain the same By using useMemo in this way you can avoid unnecessary re renders of your component and ensure that it only re renders when it actually needs to |
2023-03-22 07:53:39 |
海外TECH |
DEV Community |
What's the best stack for building web based AI applications? |
https://dev.to/amyliumaiyi/whats-the-best-stack-for-building-web-based-ai-applications-506i
|
What x s the best stack for building web based AI applications OpenAI chatGPT DALL E have excellent APIs but what are the best tools for building SaaS products based on them and offering services to end users Products with a free tier are preferred |
2023-03-22 07:40:45 |
海外TECH |
DEV Community |
Efficiently Manage Your GraphQL API with API Gateway |
https://dev.to/apisix/efficiently-manage-your-graphql-api-with-api-gateway-20p1
|
Efficiently Manage Your GraphQL API with API GatewayGraphQL is a powerful query language for APIs that allows developers to define the structure of the data they need from the server and the server responds with only that data This makes it much more efficient and flexible than traditional REST APIs which often require multiple requests to retrieve the same data However managing GraphQL APIs can be complex and time consuming especially at scale This is where an API Gateway comes in One of the key features of modern API Gateways such as Apache APISIX is its support for GraphQL APIs APISIX makes it easy to manage and scale GraphQL APIs using its flexible configuration system and powerful plugins One such plugin is the degrapghql plugin which allows us to convert the GraphQL API into a REST API In this post we will explore this feature with an example Learning objectivesYou will learn and find out answers to the following questions throughout the article What is the DeGraphQL plugin What are the use cases and features of the DeGraphQL plugin How to use the DeGraphQL plugin How to transform REST to GraphQL How to manage GraphQL API traffic Why use DeGraphQL plugin This plugin is able to transform APIs exposed by a GraphQL upstream backend service into a traditional REST endpoint by mapping URIs into GraphQL queries Calling REST APIs from a typical client opens the benefits of GraphQL for more people consider the following use cases Use case Your existing customers are used to consuming REST APIs and are not too familiar with how to write GraphQL queries In order to keep things simple for them you can use Apache APISIX API Gateway to convert GraphQL API to a REST API Use case You are in a front end development team that wants to try existing GraphQL API functionalities through REST API without asking for the back end team to implement a new GraphQL server Use case You have no access to change the backend because it s an existing set of GraphQL APIs potentially managed by a rd party Use case You have an existing REST API infrastructure but you re looking to evaluate whether GraphQL can work for your needs Use case You have a large codebase and the GraphQL migration is happening on the backend but you want to use GraphQL now without waiting Use case You have multiple microservices and they use the combination of both approaches You want to enable smooth communication between them What are the DeGraphQL plugin features DeGraphQL plugin provides a number of useful features that make it easy to configure and manage your GraphQL API including Request Validation It can validate incoming GraphQL requests to ensure they meet certain criteria This can include checking the structure of the query enforcing input type constraints and more By validating requests you can ensure that your API is always receiving valid and well formed requests Query Parsing It can also parse GraphQL queries allowing you to extract specific information from the query and use it to inform your API s behavior This can include things like selecting the appropriate backend service based on the requested data or modifying the response based on certain query parameters Response Transformation Finally it can transform GraphQL responses before they are returned to the client This can be useful for things like normalizing data structures removing sensitive information or adding additional data to the response With this capability Apache APISIX not only makes it easy to use REST and GraphQL together but you can also define rate limits enforce authentication and authorization block clients that attempt to misuse an API and ensure APIs work seamlessly as they are updated with help of other built in plugins How to use DeGraphQL plugin Demo With enough theoretical knowledge in mind now we can jump into a practical demo of DeGraphQL plugin DeGraphQL needs a GraphQL endpoint to query As an example we are going to use one of the free public GraphQL APIs that retrieve information about countries continents and languages If you navigate to the above Countries API link it will open a playground where you can write some queries against GraphQL API on the UI You can also build your own GraphQL API using StepZen or ApollographQL provided GraphQL studios that helps you build and deploy your own GraphQL API by combining prebuilt APIs such as Accuweather Airtable GitHub Twitter Trello and more For example you compose two Accuteweather and Countries APIs together to collect the weather information provided by a country city name and put APISIX at the front to query the API from REST Now our task is to transform the above query definition to a simple REST call and send it as JSON data As an outcome the Apache APISIX API Gateway exposes the REST endpoint and should be able to route all requests to the GraphQL API For example all REST requests to API Gateway country info URI path with an underlining query by a country code should be converted and passed to GraphQL countries API An example curl command that looks something like this curl i country info X POST d code EE And we should get a response from the API as follows data country code EE capital Tallinn currency EUR languages name Estonian In the next sections we will learn how to achieve this step by step Let s get Apache APISIX up and runningBefore you can use the degrapghql plugin you ll need to install Apache APISIX You can follow the installation instructions on the Apache APISIX website to get started PrerequisitesDocker is used to installing the containerized etcd and APISIX curl is used to send requests to APISIX for validation You can also use easy tools such as Postman to interact with the API APISIX can be easily installed and started with the following quickstart script curl sL shThis will create two Docker containers a etcd to store configuration and APISIX Gateway itself Once you see the “APISIX is ready message we can configure an upstream plugin and route via APISIX s Admin API that proxies requests to GraphQL API Create an UpstreamNext we will create an Upstream object to register our Countries GrapghQL API in the API Gateway curl apisix admin upstreams X PUT d name GraphQL API upstream desc Register Countries GraphQL API as the upstream type roundrobin scheme https nodes countries trevorblades com Create a Plugin ConfigNext a set up new plugin config object We will use two transformation plugins proxy rewrite and degraphql to rewrite the host and URI of the request and make a query to GraphQL API respectively curl apisix admin plugin configs X PUT d plugins proxy rewrite uri graphql host countries trevorblades com degraphql query query Country code ID country code code code capital currency languages name variables code In the above DeGraphQL plugin configuration we set two attributes such as query and variables GraphQL query variables can be defined on the Post request body or URIs in a REST call The query we re executing in this case looks like the following and you can replace it with your own query code ID country code code code capital currency languages name Create a Route with DeGraphQL pluginThis step involves setting up a new route that uses the plugin config and configuring the route to work with the upstream by referencing their IDs we created in the previous steps curl i apisix admin routes X PUT d name GraphQL API route desc Create a new route in APISIX for the Countries GraphQL API uri country info upstream id plugin config id Test DeGraphQL plugin activationNow let s test this new setup with the following curl command curl i country info X POST d code EE We will get response from APISIX data country code EE capital Tallinn currency EUR languages name Estonian The same code variable can also be provided as GET arguments curl i country info code EE Response TransformationWith the help of Apisix s response rewrite plugin it is possible to transform GraphQL responses before they are returned to the client Let s use this plugin to remove the currency key and value from the response JSON to show only everything else To do so we need to add the response rewrite plugin to the existing plugin configuration curl apisix admin plugin configs X PATCH d plugins response rewrite filters regex currency scope once replace vars status After this plugin is installed you can make a request to country info once again and see the transformed response data country code EE capital Tallinn languages name Estonian SummaryOverall the DeGraphQL plugin is an essential tool for any developer building a GraphQL API with APISIX It has powerful features and easy to use configuration making it a breeze to integrate into your existing API gateway while it supports GraphQL specific functionality ensures that your API is performant reliable and scalable Related resourcesWhat is GraphQL Apache APISIX DeGraphQL Plugin Recommended contentWhy Is Apache APISIX the Best API Gateway How to choose the right API Gateway CommunityJoin the Apache APISIX CommunityFollow us on TwitterFind us on SlackHow to contribute page About the authorVisit my personal blog www iambobur com |
2023-03-22 07:32:24 |
海外TECH |
DEV Community |
Hashmaps |
https://dev.to/codeninjausman/hashmaps-4p7
|
Hashmaps DefinitionHashmaps also known as hash tables or dictionaries are a fundamental data structure in computer science used to efficiently store and retrieve key value pairs In a hashmap each key is mapped to a specific value through a hash function which converts the key into a numeric index that is used to store and retrieve the associated value in an array like data structure called a bucket The process of adding a key value pair to a hashmap involves the following steps The hash function takes the key as input and produces a hash code which is an integer value that represents the key in a more compact and standardized form The hash code is then used to compute an index into the array like bucket structure where the value associated with the key can be stored If there is already a value stored at the computed index a collision has occurred and a collision resolution strategy is used to handle the collision and store the new value in a different bucket If there is no value stored at the computed index the new key value pair is stored in the bucket at that index When retrieving a value from a hashmap the process is similar The hash function is applied to the key to compute the hash code The hash code is used to compute the index into the bucket structure where the value should be stored The value at the computed index is returned or if there is no value stored at that index the key is not in the hashmap Hashmaps have several advantages over other data structures for storing key value pairs First they offer fast average case performance for accessing and retrieving values with a time complexity of O for both operations Second they can handle a large number of key value pairs without requiring significant amounts of memory Finally hashmaps are dynamic data structures that can be resized and rehashed as needed to accommodate changes in the number of key value pairs Implementationclass HashTable def init self size self size size self hash table self create buckets def create buckets self return for in range self size def set val self key val hashed key hash key self size bucket self hash table hashed key found key False for index record in enumerate bucket record key record val record if record key key found key True break if found key bucket index key val else bucket append key val def get val self key hashed key hash key self size bucket self hash table hashed key found key False for index record in enumerate bucket record key record val record if record key key found key True break if found key return record val else return No record found def delete val self key hashed key hash key self size bucket self hash table hashed key found key False for index record in enumerate bucket record key record val record if record key key found key True break if found key bucket pop index return def str self return join str item for item in self hash table Disadvantages However hashmaps also have some disadvantages The most significant issue is the possibility of collisions which can degrade the performance of the data structure if not handled properly Additionally hashmaps can be vulnerable to certain types of attacks such as hash collision attacks which can be used to overwhelm the bucket structure with intentionally crafted keys To address these issues hashmaps use various techniques for collision resolution such as chaining where multiple values are stored in the same bucket as a linked list or open addressing where additional buckets are probed until an empty bucket is found Additionally hash functions can be designed to minimize the likelihood of collisions or to be resistant to collision attacks |
2023-03-22 07:21:07 |
海外TECH |
Engadget |
Meta 'quests' give you more to do in its Horizon Worlds VR social network |
https://www.engadget.com/meta-quests-give-you-more-to-do-in-its-horizon-worlds-vr-social-network-073029493.html?src=rss
|
Meta x quests x give you more to do in its Horizon Worlds VR social networkTo have any hope of making its Horizon Worlds VR social network catch on Meta has to give potential users a reason to go and stay there Its latest attempt to do that is something called quests that lets users complete in game missions to earn virtual swag like clothing the company announced in an update spotted by The Verge nbsp The feature which doesn t appear related to the Quest headset branding is in beta testing via a game called Giant Mini Paddle Golf Those in the test group will see a new Quests icon in their Identity Panel which will open the new quests board to show quests e g Get a Hole in one and the rewards to be earned e g Sea Captain Costume With one click travel to the world to get started according to the description Meta plans to roll it out to more users over time nbsp While limited to just a single experience for now it s easy to imagine Meta offering quests in other corners of Horizon World as a way to give Quest VR headset users more to do Last month the company said it planned to release new Horizon experiences built by third party studios so perhaps the quests feature will be part of these nbsp The Horizon Worlds user base was reportedly around at the end of well short of the goal it originally set Meta recently announced plans to open Horizon World up to children between years old prompting criticism from two US senators concerned over Meta s track record on protecting younger users nbsp This article originally appeared on Engadget at |
2023-03-22 07:30:29 |
金融 |
JPX マーケットニュース |
[JPX総研]株価指数算出上の取扱いについて(アサヒ衛陶) |
https://www.jpx.co.jp/news/6030/20230322-01.html
|
株価指数 |
2023-03-22 16:20:00 |
海外ニュース |
Japan Times latest articles |
‘Rikuryu’ take pairs lead at world championships |
https://www.japantimes.co.jp/sports/2023/03/22/figure-skating/isu-worlds-2023-day-1/
|
current |
2023-03-22 16:01:01 |
ニュース |
BBC News - Home |
Inflation in surprise jump to 10.4% in February |
https://www.bbc.co.uk/news/business-65026231?at_medium=RSS&at_campaign=KARANGA
|
figures |
2023-03-22 07:41:31 |
ニュース |
BBC News - Home |
Bafta TV Awards 2023: This is Going to Hurt and The Responder lead nominations |
https://www.bbc.co.uk/news/entertainment-arts-65026718?at_medium=RSS&at_campaign=KARANGA
|
nominations |
2023-03-22 07:34:58 |
ニュース |
BBC News - Home |
Boris Johnson to vote against Sunak's NI Brexit deal |
https://www.bbc.co.uk/news/uk-politics-65034260?at_medium=RSS&at_campaign=KARANGA
|
ireland |
2023-03-22 07:23:34 |
ニュース |
BBC News - Home |
UK inflation rate calculator: How much are prices rising for you? |
https://www.bbc.co.uk/news/business-62558817?at_medium=RSS&at_campaign=KARANGA
|
calculator |
2023-03-22 07:16:12 |
IT |
週刊アスキー |
メタ科学アドベンチャー『ANONYMOUS;CODE』のSteam版が9月9日に配信決定! |
https://weekly.ascii.jp/elem/000/004/129/4129527/
|
anonymouscode |
2023-03-22 16:50:00 |
IT |
週刊アスキー |
マイクロソフト、GPT-4で医療用文書を作成するサービス ニュアンスと共同発表 |
https://weekly.ascii.jp/elem/000/004/129/4129524/
|
ambientexperienceexpress |
2023-03-22 16:45:00 |
IT |
週刊アスキー |
JavaScriptライブラリー「SpreadJS」、すべてのイニシャルライセンスを期間限定で35%オフで提供 |
https://weekly.ascii.jp/elem/000/004/129/4129507/
|
javascript |
2023-03-22 16:40:00 |
IT |
週刊アスキー |
ドコモ、本人確認書類として健康保険証の取り扱い終了 不正契約の多さが理由 |
https://weekly.ascii.jp/elem/000/004/129/4129534/
|
健康保険証 |
2023-03-22 16:40:00 |
IT |
週刊アスキー |
MSX2版『ロードス島戦記 灰色の魔女』が「プロジェクトEGG」で本日リリース! |
https://weekly.ascii.jp/elem/000/004/129/4129517/
|
配信サービス |
2023-03-22 16:15:00 |
コメント
コメントを投稿