TECH |
Engadget Japanese |
指輪物語インスパイアの暗号通貨『JRR Token』登場。全てを統べる一つのトークン(自称) |
https://japanese.engadget.com/jrr-token-120936450.html
|
jrrtoken |
2021-08-12 12:09:36 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
scikit-learnの学習結果をpickleしない |
https://qiita.com/nonbiri15/items/d78613a1ab7bd515d867
|
そのため、sckitlearnで作った学習済みの識別器をpickleして、それをpicklloadspickle済みのファイルして使ってしまうということをしてしまいやすい。 |
2021-08-12 21:13:46 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
AWSのec2インスタンス内にてyum installでエラーが出る |
https://teratail.com/questions/354018?rss=all
|
AWSのecインスタンス内にてyuminstallでエラーが出る下記のUdemyの講座通りにAWSのハンズオンを行っているのですが、表題の通りにecインスタンス内にてyumnbspinstallコマンドを打つとエラーが表示されます。 |
2021-08-12 21:55:43 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
スクロール時の画像の表示についての質問です。 |
https://teratail.com/questions/354017?rss=all
|
連絡 |
2021-08-12 21:54:56 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
PHP写真配列で出力したい |
https://teratail.com/questions/354016?rss=all
|
PHP写真配列で出力したい前提・実現したいこと写真のバイナリデータと写真のタイプを配列に入れてimgに入れて出力をするというもので配列の使い方がいまいちうまくいかなくて、配列を挿入すると出力がされない事態が続いているのでこの場合の配列の入れ方を教えていただきたいです。 |
2021-08-12 21:44:08 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
なぜエラーが出るのか。あと改善策など教えてくださると大変うれしいです |
https://teratail.com/questions/354015?rss=all
|
なぜエラーが出るのか。 |
2021-08-12 21:38:22 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
IF文の条件分岐をもっと簡潔にしたい |
https://teratail.com/questions/354014?rss=all
|
IF文の条件分岐をもっと簡潔にしたいPygameを用いた将棋プログラムを作成しています。 |
2021-08-12 21:33:35 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
Amazon workspace とは |
https://qiita.com/miyuki_samitani/items/0e542ede42ff51e5e213
|
Amazonworkspaceとは勉強前イメージ仮想のデスクトップなんだけど、特徴とか知りたい調査Amazonworkspaceとはフルマネージドなデスクトップの仮想化サービスになります。 |
2021-08-12 21:36:11 |
GCP |
gcpタグが付けられた新着投稿 - Qiita |
GCPのリージョンってわかりづらいって話 |
https://qiita.com/santasan1224/items/e63ecf2335d023873252
|
なぜわかりづらいのかGCPのネットワークアーキテクチャの概念は、VPCの中にリージョンが存在して、リージョンの中にAZが存在しているのでAWSとAzureのネットワークアーキテクチャでは逆になっていますね。 |
2021-08-12 21:36:50 |
海外TECH |
DEV Community |
2 Uses of concat method when working with arrays in JavaScript |
https://dev.to/kritikapattalam/2-uses-of-concat-method-when-working-with-arrays-in-javascript-3lhi
|
Uses of concat method when working with arrays in JavaScriptLet s see two ways in which concat method can be used while working with arrays in JavaScript Merging two or more arraysLet s now see how we can use the concat method to merge two given arrays array and array const array const array merge array into array and store it in a new variable const newMergedArray concat array array console log newMergedArray console log array console log array const newMergedArray concat array array In the above line creates a new array and the concat methods combine both array array This can also accept more than arrays for concatenation by just adding them one next to the otherconst newMergedArray concat array array array arrayN Another alternative for merging two arrays is belowconst newMergedArray array concat array array arrayN Flatten single level nested arraysLet s assume there is a nested array as below and we would want to flatten it in such a way that the output is this can be achieved by using concat method with the help of spread operator const array const flattened concat array console log flattened P S The above code flattens just a single level nested array References concat spread operator Check out my other blog posts Getting Started with JavaScript Ultimate Free Resources Things you can do in Chrome Developer Tools Simple ways you can truncate text using CSS Follow me on Twitter LinkedIn for more web development tips |
2021-08-12 12:33:02 |
海外TECH |
DEV Community |
What is an API? |
https://dev.to/whitep4nth3r/what-is-an-api-587c
|
What is an API If you ve read the Contentful docs you ll have seen that we provide a REST API and a GraphQL API to access and manage your content But what is an API API stands for “Application Programming Interface which is a way to communicate between different software services Different types of APIs are used in programming hardware and software including operating system APIs remote APIs and web APIs ーlike the APIs that Contentful provides A web API is a set of tools that allow developers to send and receive instructions and data to and from web servers ーusually in JSON format ーto build applications Read more about JSON on MDN APIs are everywhereTo look at how APIs work in ordinary life let s look at the APIs involved in posts You read a post on the internetWhen you land on the page the web application contains instructions to request the data for the post via the API by a unique identifier ーsuch as the URL slug of the postIf the data requested exists it is sent back to the web page from the database via the API as JSON such as the title the published date the article text and so on The data is then slotted into the appropriate HTML structure as programmed by the developer for you to readThis post will cover the fundamentals of what makes an API and how APIs communicate over the internet But first let s take a look at the history of where it all began Where did it all start The concept of APIs has been around since the evolution of the first computers in when British computer scientists Marice Wilkes and David Wheeler worked on a software library for the Electronic Delay Storage Automatic Calculator EDSAC The EDSAC was programmed to accept a variety of instructions including add subtract print load and store This is similar to how modern web APIs interface with data for example “add blog post “delete blog post or “get blog post information The functionality of EDSAC was documented via a catalog of notes about its functionality and how to integrate it with other programs This was the first example of the type of API documentation we know today What is a web API A web API is a set of tools that allow web developers to send and receive instructions and data over an internet connection to web servers Many of the modern websites and web applications we use today are powered by APIs Think Twitter Instagram Facebook and your favorite shopping websites In modern web applications front end code does not interact with a database directly Instead the data is sent and received via an API layer APIs act as a middle layer or contract between backend logic and database operations and the front end application that a user interacts with An API layer ensures that the web page is allowed to make the request to send or receive dataconfirms the request is in the correct format before sending it to the backendreturns the data in the expected format along with some additional informationtells the web page if and why there is no data returnedSo far we ve discussed how an API provides a middle layer to send data back and forth between backend databases and front end applications But what powers this data exchange Let s take a look at the foundation of data exchange on the web HTTP A look at HTTPHTTP ーan acronym for HyperText Transfer Protocol ーis a protocol that allows fetching resources such as HTML documents and JSON data over an internet connection A protocol is defined as a system of rules that defines how data is exchanged within or between computers HTTP defines a set of request methods that perform different actions when called The most frequently used HTTP request methods are GET and POST As the verbs of the HTTP methods describe a GET request allows you to retrieve data via a URLa POST request allows you to send additional information with a request via a URL to perform certain actionsOther HTTP methods that we won t explore in this post include PUT DELETE HEAD CONNECT OPTIONS TRACE and PATCH To learn more about HTTP in depth check out this article on MDN Before we get started with looking into GET and POST HTTP methods let s go over some HTTP terminology Sending information over HTTPWhen you ask for data from an API you make a request When you receive data from an API you receive a response Request and response bodyIn some HTTP methods you will be required to send additional data inside a request body Successful HTTP responses will contain a response body that contains the data you requested via the API HTTP headersIn addition to using different HTTP methods you will often be required to send specific HTTP headers with a request and you may find specific HTTP headers accompanying a response HTTP headers let the front end client and the backend server pass additional information with an HTTP request or response An HTTP header is formatted as a key value pair separated by a colon case insensitive header name value as a string When making a request to the Contentful GraphQL API you will be required to send an HTTP header with the request as follows authorization Bearer your contentful access token value This header ensures that the web page is authorized to make the request to receive data from the API and is detailed in the relevant documentation HTTP response status codesHave you ever seen a web page that says “ page not found That code ー ーis an HTTP response status code In a browser you ll receive a response status code if a URL is unrecognized by an application From an API you ll receive a response status code to indicate that the data you are requesting does not exist You can find the HTTP response status codes returned to a browser in the browser network tab HTTP response status codes are delivered with HTTP responses as a number When requesting data from the Contentful GraphQL API using fetch in JavaScript the HTTP status code is available as a status property on your response The example code below requests the total number of blog posts available on my Next js Contentful starter blog Notice the HTTP headers and request body sent with the request When you run the code below you ll receive an HTTP response and will be logged to the console A HTTP response code means the request was successful ーand everything is “Ok const data await fetch method POST headers authorization Bearer IfuuLbVFUVplpDGkfLsicTPDZAKUbFjA content type application json body query blogPostCollection total then response gt console log response status return response json There are five groups of HTTP response status codes that are categorized by the starting digit Informational responses Successful responses Redirects Client errors Server errors Open the network tab in your browser and look for the HTTP response status code for this web page And if you d like to explore a full list of HTTP response codes including the silly response code check out this article on MDN Now we ve explored how you can send and receive with HTTP methods let s look at the two most common HTTP methods ーGET and POST ーin more detail HTTP GETAn HTTP GET request allows you to retrieve data via a URL GET requests do not send a request body with the call to the API Here s the Contentful Content Delivery API URL which requests information about a single Contentful space A Contentful space is like a bucket for your Contentful content which has a name and unique ID Notice the spaces part of the URL which defines that we re asking for space information space id access token access token The URL requires two pieces of data The space id which is part of the URL is the unique identifier of the space we d like to get information about from the database The access token which is a URL query parameter prefixed with is an authentication token that tells the API that we re allowed to make this request This token will be verified by the backend when it receives the request When you set up a Contentful space you are instructed to generate an access token via the web app to communicate with the Contentful APIs You may hear authentication tokens or similar credentials referred to as API Keys See the Contentful Delivery API at work by navigating to this URL in your browser This particular URL requests information about the Contentful space that powers the Next js starter blog using the appropriate space ID and access token You should see the following data returned to your browser The API has successfully returned the data you requested via the URL as JSON sys type Space id zlqdwore name Live nextjs blog starter locales code en US default true name English United States fallbackCode null code fr default false name French fallbackCode en US Making an HTTP GET request using JavaScriptHere s the same GET request above being made in JavaScript via fetch GET is the default HTTP method in fetch so it doesn t need to be specified in the code const response await fetch then data gt data json console log response Here s the output in the browser console which matches what we saw in the browser above Just as in the early example of the EDSAC a good API has great documentation API documentation describes the functionality of each API URL or endpoint how to send data in the correct format and what data to expect from the API in return Here s a screenshot from the Contentful Content Delivery API documentation showing how to request information about a Contentful space Notice that the documentation specifies the parameters needed to perform a successful request the type of HTTP request GET POST etc the URL for the requestthe expected response of a successful callThe documentation also provides you with examples of how requests should be formatted in different programming languages and using different Contentful tools such as SDKs and client libraries Use the dropdown on this documentation page to see your options HTTP POSTPOST requests require data to be sent via the request body rather than as URL parameters For this reason POST requests cannot be made using the address bar in a browser This makes POST requests more secure than GET requests and should always be used for API operations that deal with sensitive data such as sending a login request Making an HTTP POST request using JavaScriptHere s an example of a POST request using fetch in JavaScript This example posts a request to the Contentful GraphQL API asking for the total number of blog posts in the Contentful space with space ID zlqdwore You may think it s strange to request data by sending data ーbut GraphQL allows you to create change and fetch data in a single HTTP call That s why the POST method is the prefered way because you definitely don t want to update data with a GET request This is also an example of sending extra HTTP headers with a request using JavaScript fetch see authorization and content type in the example below const response await fetch method POST headers authorization Bearer IfuuLbVFUVplpDGkfLsicTPDZAKUbFjA content type application json body query blogPostCollection total then response gt response json console log response If you d like more information on how GraphQL works it s pretty cool ーcheck out our GraphQL video course on our developer portal That s a wrap Now you know what an API is how APIs work over HTTP and what you send and receive via GET and POST requests have a go at putting your knowledge into practice by exploring the Contentful REST API and Contentful GraphQL API using your preferred programming language If you ve got any questions come and join the Contentful Community Slack where we ll be happy to help you out And finally if you ve built something with Contentful that you re proud of let us know on Twitter using the hashtag BuiltWithContentful Happy building |
2021-08-12 12:09:07 |
Apple |
AppleInsider - Frontpage News |
Foxconn will build electric vehicle manufacturing plants in US, Thailand |
https://appleinsider.com/articles/21/08/12/foxconn-will-build-electric-vehicle-manufacturing-plants-in-us-thailand?utm_medium=rss
|
Foxconn will build electric vehicle manufacturing plants in US ThailandStarting in Apple s biggest iPhone assembler Foxconn will begin building electric vehicle plants to help offset the slowing smartphone industry EV company Fisker is one of Foxconn s early partners for EV manufacturingThe Taiwanese company seeks to build factories in the United States Thailand and possibly in Europe too Foxconn expects to supply components for EV startups and accelerate production Read more |
2021-08-12 12:53:50 |
海外TECH |
Engadget |
Honor’s new Magic3 heralds the company’s glorious return |
https://www.engadget.com/honor-magic3-flagship-125020517.html?src=rss
|
Honor s new Magic heralds the company s glorious returnHonor the smartphone manufacturer that was until late last year Huawei s budget division is back Not that it ever really went away you understand since it s already released the View and Honor in its homeland while under its new owners But today marks the first time that it is launching a flagship phone to the global market as an independent company Free from the US sanctions that rocked its former parent Honor is once again able to use American software hello Android and silicon hello Qualcomm This then is the start of Honor s second life which is beginning with the launch of the Magic its first ーwell “first ーflagship Historically Honor was Huawei s budget play offering a surprising level of quality and tech for relatively low prices The Honor for instance was the sort of phone that made you forget about the need to buy a flagship handset despite its modest sticker Now of course with the freedom read obligation to create high end handsets Honor is shuffling its brands The high end will now be dominated by Magic branded handsets while the numbered line like the Honor will sit in the middle and the low end now the domain of the X Series Design wise Honor s apple did not fall far from Huawei s tree From several angles the Magic looks like a Huawei Mate and this is not the only time I ll bring this up Given the sharing of IP and technology between the two companies before the split this is not a huge surprise I m sure that many of the handsets Honor releases over the next couple of years will have that whiff of shared DNA and like the Mate this phone has a waterfall display with an degree curve down both sides of the screen HonorThere are three Magic handsets in the range the vanilla Magic Magic Pro and the Magic Pro Every member of this trio is packing a inch x always on flexible OLED display with a Hz refresh rate and HDR There s a screen to body ratio the ideal fact to wheel out when you need to impress folks in bars too The cut out for imaging plays host to a megapixel f wide camera with a degree wide angle lens no matter what model you opt for Although the higher end Pro and Pro models are the only ones that pair it with a D Time of Flight sensor for face unlocking nbsp The real interest however is in the lenses on the back of the phone and Honor is throwing all but the dishwasher at this phone Arranged in a setup the company is calling quot The Eye of Muse quot the regular handsets get a megapixel f lens with Sony s IMX image sensor a megapixel f monochrome camera and a megapixel degree f ultra wide camera nbsp The Pro meanwhile adds a megapixel f OIS telephoto camera with a x optical zoom x hybrid zoom and x digital zoom The Pro meanwhile swaps out that IMX for the larger f inch IMX with OIS You ll get that megapixel monochrome camera with an f aperture a megapixel degree f ultra wide camera and that same telephoto lens You ll also get a TOF sensor and color temperature sensor for more accurate imaging Honor also said that this IMAX enhanced camera can be used to shoot your own cinema quality films a boast previously used to sell Huawei s Mate and Mate told you I d mention this again Honor says that unlike those handsets it has developed a custom mobile friendly version of the filming standard Log dubbed MagicLog which is designed to shoot high quality video Broadly speaking Log is a way of recording footage that preserves as much of the dynamic range and tone as possible When viewed straight from the camera the footage looks weird and it requires a lot of post processing and grading In order to save ordinary users from that agony Honor teamed up with professional colorist Bryan McMahan to create eight pre set grades which work like Instagram filters Honor said that one minute of MagicLog footage will take up around MB of memory so if you want to shoot a film with one of these invest in one with lots of storage And this is a feature that we d love to test in depth in future because if this in some crazy way does turn out to work it could be a very big deal Beyond imaging Honor wanted to talk up the various software engines that it has designed to help squeeze better performance out of the Qualcomm Snapdragon G SoC found in the Pro and Pro The regular Magic is using Qualcomm s Snapdragon Long story short Honor and Huawei before it uses an AI layer which has been trained to monitor for challenging processes and adjust power to compensate It says that for the Magic you can expect to see faster and more stable G and gaming performance when using the phone Then there is OS Turbo X Apple s lawyers I m sure will be taking notes which it s claimed will be able to keep the system running at peak performance for longer Honor s representatives said that this system alone will ensure that after using it for months you ll only experience a percent drop in performance compared to the day you bought the phone And then there s “Smart RAM which sounds like the sort of RAM doubling scamware that we saw back in the days of Windows Honor s representatives said that in times of need the Magic can bounce some of the data from its RAM to the phone s flash memory Now it s not clear if the company is trying to pass virtual memory off as some sort of new fangled innovation or if there s some clever new implementation here Honor says that no matter if you have the GB or GB variant you can expect this system to offer you an additional GB of headroom when required I have no idea if file transfer speeds between the SoC and flash memory are fast enough to make this a viable boastworthy feature for a new flagship handset The company has also offered some smart privacy features like obscuring message notifications when you cast video to a TV as well as the ability to strip metadata from images before you share them to social media nbsp Honor hasn t said how long this device will last on a single charge but that mAh battery should have plenty of staying power All three variants support W wired SuperCharge and you can get up to percent of your battery re juiced with just minutes of connection In addition the Pro and Pro models both support W wireless charging should you feel the need Magic is available in four colors Black White quot Golden Hour quot and quot Blue Hour quot the latter pair are a pinkish orangey hue and a deep royal blue The standard colors are available in Honor s usual coating while the two hours are available in vegan leather The Pro meanwhile comes in either a ceramic black or white ceramic body with pinstripe texturing which at first blush looks extraordinary All of the handsets are IP rated for water and dust resistance which is about the minimum you can expect from a phone these days nbsp The Honor Magic series will make its debut in Mainland China with news about arrivals in western markets coming in short order CEO George Zhao did however reveal pricing for the handset when it reaches Europe at the very least The Magic with GB RAM and GB storage will retail for € while the Magic Pro GB GB will set you back € Flagship lovers looking to grab the Magic Pro with GB RAM and GB Storage meanwhile will have to fork over at least € nbsp |
2021-08-12 12:50:20 |
海外TECH |
Engadget |
Activision Blizzard loses three senior designers amid sexual harassment lawsuit |
https://www.engadget.com/activision-blizzard-loses-designers-121905544.html?src=rss
|
Activision Blizzard loses three senior designers amid sexual harassment lawsuitThree senior designers pivotal to Diablo and World of Warcraft are no longer at Activision Blizzard Kotaku nbsp confirmed the trio of abrupt departures after initially learning about them from internal sources They include Diablo game director Luis Barriga lead designer Jesse McCree and World of Warcraft designer Jonathan LeCraft Insiders told the publication that the three developers names had been removed from Blizzard s internal directory and Slack nbsp News of the shakeup arrives as Activision Blizzard is grappling with allegations of systemic gender discrimination and sexual harassment The incendiary accusations which were revealed in a lawsuit filed by the California Department of Fair Employment and Housing DFEH have already led to damaging repercussions for the publisher Blizzard is facing an internal outcry with workers staging walkouts and demanding corrective action Earlier this month the company lost its president and was hit with a lawsuit by investors irked by its handling of the crisis Activision Blizzard CEO Bobby Kotick has admitted that the publisher s original response to the DFEH filing was quot tone deaf quot While the company did not give a specific reason for the latest departures two of the designers namely McCree and LeCraft were reportedly pictured in photos of the infamous quot Cosby Suite quot This was the hotel room explicitly mentioned in the DFEH lawsuit where male employees allegedly harassed women at company events As Overwatch fans may know the battle royale game features a cowboy called Jesse McCree named after the now ex Blizzard employee It remains to be seen if the publisher changes the character s name “We have a deep talented roster of developers already in place and new leaders have been assigned where appropriate quot a spokesperson for Blizzard told Kotaku quot We are confident in our ability to continue progress deliver amazing experiences to our players and move forward to ensure a safe productive work environment for all |
2021-08-12 12:19:05 |
ニュース |
BBC News - Home |
UK police involved for months in embassy spy case - Met boss |
https://www.bbc.co.uk/news/uk-58185952
|
russia |
2021-08-12 12:55:21 |
ニュース |
BBC News - Home |
Olympic Gadirova twins 'thrilled' at school grades |
https://www.bbc.co.uk/news/uk-england-beds-bucks-herts-58187027
|
sport |
2021-08-12 12:38:24 |
ニュース |
BBC News - Home |
NHS waiting list in England hits record 5.45 million |
https://www.bbc.co.uk/news/health-58186708
|
millionhospitals |
2021-08-12 12:50:33 |
ニュース |
BBC News - Home |
Berlin embassy arrest: A case of old-school spying? |
https://www.bbc.co.uk/news/uk-58185957
|
berlin |
2021-08-12 12:42:04 |
ニュース |
BBC News - Home |
Electric cars: Do ministers put their motor where their mouth is? |
https://www.bbc.co.uk/news/uk-politics-58170665
|
plunge |
2021-08-12 12:06:16 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
ケイアイスター不動産、2期連続の「増配」を発表し、 配当利回り4.8%に! 年間配当は2年で3倍超に急増、 2022年3月期は前期比91円増の「1株あたり230円」に - 配当【増配・減配】最新ニュース! |
https://diamond.jp/articles/-/279413
|
ケイアイスター不動産、期連続の「増配」を発表し、配当利回りに年間配当は年で倍超に急増、年月期は前期比円増の「株あたり円」に配当【増配・減配】最新ニュースケイアイスター不動産が、年月期の配当予想の修正増配を発表し、配当利回りがにケイアイスター不動産は、年月期の年間配当を前回予想比で「円」の増配、前期比では「円」の増配となる「株あたり円」に修正すると発表した。 |
2021-08-12 21:30:00 |
北海道 |
北海道新聞 |
道内20日から高温に 札幌管区気象台が見通し |
https://www.hokkaido-np.co.jp/article/577708/
|
札幌管区気象台 |
2021-08-12 21:10:00 |
北海道 |
北海道新聞 |
荒賀選手 迫力の組手 札幌で指導 東京五輪・銅メダル |
https://www.hokkaido-np.co.jp/article/577705/
|
東京五輪 |
2021-08-12 21:09:00 |
北海道 |
北海道新聞 |
東京パラ採火式、道内各地でも 16日まで21市町村で |
https://www.hokkaido-np.co.jp/article/577704/
|
東京パラリンピック |
2021-08-12 21:08:29 |
北海道 |
北海道新聞 |
聖火の炎 願いともす 石狩管内でパラ採火式 |
https://www.hokkaido-np.co.jp/article/577703/
|
東京パラリンピック |
2021-08-12 21:08:00 |
北海道 |
北海道新聞 |
東京パラ、各地で採火式 静岡は公道リレー縮小へ |
https://www.hokkaido-np.co.jp/article/577702/
|
東京パラリンピック |
2021-08-12 21:01:00 |
IT |
週刊アスキー |
ヤマダデンキから新ブランド「TSUKUMO PC」が誕生! 新ケースのミニタワーモデル3種を発売 |
https://weekly.ascii.jp/elem/000/004/065/4065810/
|
tsukumopc |
2021-08-12 21:30:00 |
コメント
コメントを投稿