IT |
ITmedia 総合記事一覧 |
[ITmedia ビジネスオンライン] 結婚したいけど、婚活する気がない理由 「お金がない」「時間がない」を抑えた1位は? |
https://www.itmedia.co.jp/business/articles/2212/07/news058.html
|
itmedia |
2022-12-07 06:45:00 |
IT |
ITmedia 総合記事一覧 |
[ITmedia ビジネスオンライン] なぜ、「AOKI」がひとり勝ち? 会社を救った大ヒット商品と、紳士服以外の事業 |
https://www.itmedia.co.jp/business/articles/2212/07/news033.html
|
itmedia |
2022-12-07 06:30:00 |
IT |
ITmedia 総合記事一覧 |
[ITmedia ビジネスオンライン] 「派手な髪色もOK」で従業員にどんな変化が? ユニーが50年ぶりルール緩和で経験したこと |
https://www.itmedia.co.jp/business/articles/2212/07/news028.html
|
ITmediaビジネスオンライン「派手な髪色もOK」で従業員にどんな変化がユニーが年ぶりルール緩和で経験したこと従業員の髪色は黒か栗色ー。 |
2022-12-07 06:30:00 |
IT |
ビジネス+IT 最新ニュース |
ソニーPCLが挑む「バーチャルプロダクション」、映像産業メタバース革命の正体 |
https://www.sbbit.jp/article/cont1/100663?ref=rss
|
ソニーPCLが挑む「バーチャルプロダクション」、映像産業メタバース革命の正体年月、人気ヒップホップユニット「CreepyNutsクリーピーナッツ」のオンラインライブがニッポン放送の地下駐車場を舞台に開催された。 |
2022-12-07 06:40:00 |
IT |
ビジネス+IT 最新ニュース |
脱炭素に超有効、CO2を吸収するCCUS商用化の「2つの課題」とは |
https://www.sbbit.jp/article/cont1/100134?ref=rss
|
|
2022-12-07 06:10:00 |
Google |
カグア!Google Analytics 活用塾:事例や使い方 |
GA4が使いづらい人、かっこいいレポートが一発で出来るコードを試してみて |
https://www.kagua.biz/help/gatool/kakkoiireport-ga4.html
|
紹介 |
2022-12-06 21:00:37 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
コムドットのヤマト風のTwitterつぶやきを自動生成してみようと思った |
https://qiita.com/toshiki19/items/860034f8c0c45919feb4
|
chatgpt |
2022-12-07 06:59:19 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
Chrome拡張機能を作っての社内で人気者になった話 |
https://qiita.com/wataru86/items/ce461ac7f761c7b97e32
|
adventcalendar |
2022-12-07 07:00:20 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
【完走賞ゲット-7】p5.js Web Editor で JavaScript のモジュール(ES Modules)を扱う: simplex-noise.js の最新版(4.x)を CDN から import する |
https://qiita.com/youtoy/items/6f6522e2df781a200b39
|
javascript |
2022-12-07 06:44:29 |
海外TECH |
Ars Technica |
Apple’s Self Service Repair program launches in Europe |
https://arstechnica.com/?p=1902439
|
apple |
2022-12-06 21:33:51 |
海外TECH |
MakeUseOf |
20 Types of Android Apps You Can Replace With the Google App |
https://www.makeuseof.com/tag/android-apps-google-app/
|
android |
2022-12-06 21:45:16 |
海外TECH |
MakeUseOf |
How to Deactivate a WhatsApp Community |
https://www.makeuseof.com/how-to-deactivate-whatsapp-community/
|
whatsapp |
2022-12-06 21:30:15 |
海外TECH |
DEV Community |
How YOU can build a Web API in Java and Spring boot |
https://dev.to/softchris/how-you-can-build-a-web-api-in-java-and-spring-boot-56ga
|
How YOU can build a Web API in Java and Spring boot Build a Web API in Java and Spring bootIn this article you will learn to Configure your Visual Studio code environment for usage with Spring Boot Create a Spring boot project Learn how Spring enables you to create a REST API Document your API via Swagger and Open API specification Further readingDeploy spring boot on Azure As this tutorial helps you create an API with an Open API spec file you can take that and create a connector from it a building block in Microsoft Power platform PrereqsYou should have the following installed JavaMaven a building tool for building projects and maintaining dependencies Visual Studio Code Configure Visual Studio via extensionsTo make it easier to work with development of Web APIs in Java you can install a set of extensions These extensions will help you with tooling support around auto completion but also stopping starting and debugging your web apps You need these two extensions Extension pack for JavaExtension pack for Spring Bootwhich will install the following Java development kit JDKExtension Pack for JavaSpring Boot Extension Pack specific tooling around using Spring Boot To learn more on developing with Java using Visual Studio Code go to Exercise Create a Spring boot projectOnce you ve installed the extensions needed you can use the command palette in Visual Studio Code to scaffold your Spring Boot project Bring up the command pallette View gt Command Palette and choose the following command Spring Initializr Create a Maven ProjectSpecify a Spring Boot version select Specify a project language JavaInput group id for your project com example it will scaffold up a directory structure for you as well as adding this id in the pom xml file Input Artifact Id for your project DemoSpecify packaging type Jar you can change this later to War if you want if you want to run your app in application server like Tomcat for example you want a War file but for now the app will run in a built in server Specify Java versionSearch for dependencies you want to add Spring Web at minimum but might want to add other dependencies in the future like JPA Session management and more Your project so farThis scaffolded a project for you Let s go through the parts you need to know about src main java com example demo DemoApplication java resources application properties test As you can see above you have structure consisting of application files DemoApplication java under demo configuration files under resoruces and tests under test Application filesSo far you only have one application file DemoApplication java which looks like so package com example demo import org springframework boot SpringApplication import org springframework boot autoconfigure SpringBootApplication SpringBootApplicationpublic class DemoApplication public static void main String args SpringApplication run DemoApplication class args This file is the entry point to your application ConfigurationYou have a configuration file application properties that starting out is empty but will be used as you add things to your app in need of configuring for example what port to start up on if you got self documenting docs like Swagger credentials for a database if you re using one What are routes In a Web API there are logical areas of your application like customers orders products and so on When you have the user use your app you can send the user to these logical areas by specifying routes parts of the URL Imagine that you have the following URL and you have three areas in your app customers this is where you handle customers adding new ones and updating existing ones products these are products the customers can buy orders these are orders the customers can place based on these areas we can now create areas of our app addressing them like so customers productsorders so when a user then navigates to for example customers they would type in the full address but the route part would be customers a sub part of the URL We can now write code that responds to a route like the ones mentioned above Adding a routeTo add a route you need to create a class like so RestControllerpublic class HelloServiceController RequestMapping value hello method RequestMethod GET public ResponseEntity lt Object gt getHello return new ResponseEntity lt gt hello HttpStatus OK Let s break down what s going on The decorator RestController ensures the class can respond to web request RequestMapping value hello method RequestMethod GET does two things response to a specific route hello and to a specific HTTP verb GET which means to read data from the server The method getHello produces a response of type ResponseEntity lt Object gt and the specific call we make return new ResponseEntity lt gt hello HttpStatus OK produces a text response with code HttpStatus OK which means everything is ok Now that we know how we can create code to respond to route requests let s add code to handle products route in the below exercise Exercise adding a routeCreate a product directory in the same place as your DemoApplication java file and create the following files Product java ProductController java ProductRepository javaGive Product java the following content package com example demo product public class Product private String name public Product String name this name name public String getName return this name the Product class will serve as our model Give ProductRepository java the following content package com example demo product import java util ArrayList public class ProductRepository private ArrayList lt Product gt products public ProductRepository this products new ArrayList lt Product gt this products add new Product tomato public ArrayList lt Product gt getProducts return this products ProductRepository will now have one entry of type Product Give ProductController java the following content package com example demo product import org springframework http HttpStatus import org springframework http ResponseEntity import org springframework web bind annotation RequestMapping import org springframework web bind annotation RestController import java util ArrayList RestController public class ProductController return TODO query param route param RequestMapping value products public ResponseEntity lt ArrayList lt Product gt gt getProducts ProductRepository repo new ProductRepository return new ResponseEntity lt gt repo getProducts HttpStatus OK Now we have all the code needed to respond to a web request to products Next let s run our app Select Spring Boot dashboard icon on the left menu in Visual Studio Code should look like a stop icon Select the play icon to start your appIn your browser navigate to http localhost products you should see the following output http localhost products Document your API via Open API Swagger Next we want to learn how to document our API We can use Open API to do so formerly known as Swagger In our pom xml file the file Maven uses to keep track of dependencies we can add the following dependency lt dependency gt lt groupId gt org springdoc lt groupId gt lt artifactId gt springdoc openapi starter webmvc ui lt artifactId gt lt version gt lt version gt lt dependency gt this will ensure our Maven project knows how to add the capability that will give us Open API support On the command line you can now type mvn packagewhich will fetch all dependencies if not fetched already and add package your project into a Jar file Open APIThis dependency will do two things for us Create an Open API specification a JSON file that describes our API that can be used to create a connector for Microsoft Power Platform for example or in other ways help describe how to work with our API Create a a UI that we can interact with to test our interface Exercise add Open APIAdd the following XML to the dependencies section of your pom xml lt dependency gt lt groupId gt org springdoc lt groupId gt lt artifactId gt springdoc openapi starter webmvc ui lt artifactId gt lt version gt lt version gt lt dependency gt Run mvn package in the command lineIn resources directory locate application properties and add the following content springdoc api docs path docs springdoc swagger ui path swagger htmlthis will ensure we can find our Open API spec file at docs and our UI at swagger htmlStart the app again via the Spring boot dashboard icon in Visual Studio Code Navigate to http localhost docs you should see a JSON output similar to below i e our specification file openapi info title OpenAPI definition version v servers url http localhost description Generated server url paths hello get tags hello service controller operationId getHello responses description OK content schema type object products get tags product controller operationId getProducts responses description OK content schema type array items ref components schemas Product put tags product controller operationId getProducts responses description OK content schema type array items ref components schemas Product post tags product controller operationId getProducts responses description OK content schema type array items ref components schemas Product delete tags product controller operationId getProducts responses description OK content schema type array items ref components schemas Product options tags product controller operationId getProducts responses description OK content schema type array items ref components schemas Product head tags product controller operationId getProducts responses description OK content schema type array items ref components schemas Product patch tags product controller operationId getProducts responses description OK content schema type array items ref components schemas Product components schemas Product type object properties name type string Navigate to http localhost swagger html this will present you with a graphical view where you can try out your API Congrats you ve managed to build a Web API support the route products but you also managed to document it using Open API You are know well setup do extend it further and add data source to it with for example JPA Java Persistence API which we will cover in our next article |
2022-12-06 21:49:02 |
Apple |
AppleInsider - Frontpage News |
Apple CEO Tim Cook confirms the company will use chips made in Arizona |
https://appleinsider.com/articles/22/12/06/apple-ceo-tim-cook-confirms-the-company-will-use-chips-made-in-arizona?utm_medium=rss
|
Apple CEO Tim Cook confirms the company will use chips made in ArizonaAfter Apple supplier TSMC announced it would increase its Arizona investment Apple CEO Tim Cook confirmed that the company would use chips built in the state Apple CEO Tim CookIn November Cook made it clear that Apple will source at least some of its chip supply from the still unfinished TSMC plant in Arizona He reiterated the stance Tuesday at an event in Arizona according to CNBC Read more |
2022-12-06 21:00:43 |
海外TECH |
Engadget |
Apple's future iPhones and Macs will use TSMC chips made in Arizona |
https://www.engadget.com/apple-to-use-tsmc-arizona-factory-chips-214544360.html?src=rss
|
Apple x s future iPhones and Macs will use TSMC chips made in ArizonaYou didn t have to wait long for confirmation of Apple s domestic chip plans Company chief Tim Cook has revealed that Apple will buy chips made at TSMC s upcoming factory in Phoenix Arizona While Cook didn t say just how those chips will be used the and nanometer parts are expected to find their way into next generation iPhones Macs and other key products Apple is currently TSMC s largest customer The Phoenix facility is expected to start production in A follow up plant is expected in due to increased demand Combined they ll make about chip wafers per year TSMC is spending billion on the factories but they ll be partly subsidized by the government through the CHIPS and Science Act meant to incentivize US semiconductor manufacturing Intel is also building factories in Arizona and Ohio It s planning to serve as a foundry for other companies looking to outsource chip production and has expressed interest in making Apple s components Whether or not that happens may depend on Intel s ability to keep up with foundries like TSMC which frequently leads the push towards next generation chip manufacturing processes The output will represent just a tiny portion of TSMC s total capabilities CNBC notes the Taiwan firm made million wafers in alone The National Economic Council estimates that should be enough to fulfill US demand though That could alleviate chip shortages create jobs and reduce American dependence on foreign production While the plants won t come online for two years news of the expansion comes at an appropriate time Apple has warned of iPhone Pro manufacturing setbacks due to China s COVID policies In theory American facilities would have reduced the impact of those restrictions Although many parts could still be made overseas even after TSMC s expansion there could soon be a greater chance of Apple devices reaching your door in a timely fashion |
2022-12-06 21:45:44 |
海外TECH |
CodeProject Latest Articles |
KReversi, Learn to Implement Minimax Algorithm by Creating a Reversi Bot |
https://www.codeproject.com/Articles/5348843/KReversi-Learn-to-Implement-Minimax-Algorithm-by-C
|
minimax |
2022-12-06 21:17:00 |
海外科学 |
NYT > Science |
Natural History Museum Names College Leader as New Chief |
https://www.nytimes.com/2022/12/06/arts/design/natural-history-museum-sean-decatur.html
|
Natural History Museum Names College Leader as New ChiefSean M Decatur the president of Kenyon College and a biophysical chemist will become the museum s first Black leader when he succeeds Ellen V Futter |
2022-12-06 21:22:29 |
海外ニュース |
Japan Times latest articles |
Ramos bags hat-trick as Portugal crushes Switzerland to reach World Cup quarterfinals |
https://www.japantimes.co.jp/sports/2022/12/07/soccer/world-cup/portugal-switzerland/
|
Ramos bags hat trick as Portugal crushes Switzerland to reach World Cup quarterfinalsThe year old forward who started instead of Ronaldo is the youngest player to strike three times in a World Cup knockout match since Pele in |
2022-12-07 06:34:46 |
海外ニュース |
Japan Times latest articles |
Morocco shocks Spain on penalties to reach World Cup quarterfinals |
https://www.japantimes.co.jp/sports/2022/12/07/soccer/world-cup/morocco-spain/
|
world |
2022-12-07 06:20:43 |
ニュース |
BBC News - Home |
Onshore wind rules to be relaxed after Tory revolt |
https://www.bbc.co.uk/news/uk-politics-63880999?at_medium=RSS&at_campaign=KARANGA
|
england |
2022-12-06 21:22:59 |
ニュース |
BBC News - Home |
Stephen Flynn elected as new SNP leader at Westminster |
https://www.bbc.co.uk/news/uk-scotland-scotland-politics-63876993?at_medium=RSS&at_campaign=KARANGA
|
alison |
2022-12-06 21:45:09 |
ニュース |
BBC News - Home |
Portugal 6-1 Switzerland: Ronaldo replacement Ramos scores hat-trick as Portugal advance |
https://www.bbc.co.uk/sport/football/63789753?at_medium=RSS&at_campaign=KARANGA
|
Portugal Switzerland Ronaldo replacement Ramos scores hat trick as Portugal advancePortugal coach Fernando Santos drops Cristiano Ronaldo and is rewarded with a hat trick from replacement Goncalo Ramos as they beat Switzerland to reach last eight |
2022-12-06 21:13:21 |
ニュース |
BBC News - Home |
Watch Morocco fans celebrate historic World Cup win |
https://www.bbc.co.uk/news/world-63879596?at_medium=RSS&at_campaign=KARANGA
|
spain |
2022-12-06 21:21:45 |
ニュース |
BBC News - Home |
Trump Organization found guilty of tax crimes after New York trial |
https://www.bbc.co.uk/news/world-us-canada-63882140?at_medium=RSS&at_campaign=KARANGA
|
business |
2022-12-06 21:52:28 |
ニュース |
BBC News - Home |
Stephen Bear shared sex footage with ex 'for money', court told |
https://www.bbc.co.uk/news/uk-england-essex-63878201?at_medium=RSS&at_campaign=KARANGA
|
photographs |
2022-12-06 21:32:52 |
ニュース |
BBC News - Home |
Can I get a cold weather payment and how much are they? |
https://www.bbc.co.uk/news/business-55992592?at_medium=RSS&at_campaign=KARANGA
|
payments |
2022-12-06 21:06:10 |
ニュース |
BBC News - Home |
World Cup 2022: Morocco’s heroic win over Spain gets royal approval with call from the King |
https://www.bbc.co.uk/sport/football/63881031?at_medium=RSS&at_campaign=KARANGA
|
World Cup Morocco s heroic win over Spain gets royal approval with call from the KingMorocco s history making win is given the royal seal of approval with a call from their King after Achraf Hakimi s penalty proves him the coolest man in the stadium |
2022-12-06 21:45:48 |
ニュース |
BBC News - Home |
World Cup 2022: What next for Spain & Luis Enrique after shock loss to Morocco on penalties? |
https://www.bbc.co.uk/sport/football/63879153?at_medium=RSS&at_campaign=KARANGA
|
World Cup What next for Spain amp Luis Enrique after shock loss to Morocco on penalties Spain are out of the World Cup after losing on penalties to Morocco in the last so what next for the team and manager Luis Enrique |
2022-12-06 21:29:59 |
コメント
コメントを投稿