投稿時間:2023-06-07 21:25:06 RSSフィード2023-06-07 21:00 分まとめ(27件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… ソニーの新型ワイヤレスイヤホン「WF-1000XM5」の製品画像が流出 https://taisy0.com/2023/06/07/172711.html winfuture 2023-06-07 11:24:06
IT ITmedia 総合記事一覧 [ITmedia News] コカ・コーラの自販機、15種以上のQRコード決済に対応 インバウンド需要で https://www.itmedia.co.jp/news/articles/2306/07/news203.html itmedia 2023-06-07 20:46:00
IT ITmedia 総合記事一覧 [ITmedia News] 待望のAppleシリコン化なのに…… 「Mac Pro」の実物を見て感じてしまった“チグハグ”さ https://www.itmedia.co.jp/news/articles/2306/07/news201.html apple 2023-06-07 20:30:00
AWS AWS Mobile Blog AWS AppSync Merged APIs Best Practices: Part 1 – Cross Account Merged APIs with AWS Resource Access Manager https://aws.amazon.com/blogs/mobile/aws-appsync-merged-apis-best-practices-part-1-cross-account-merged-apis-with-aws-resource-access-manager/ AWS AppSync Merged APIs Best Practices Part Cross Account Merged APIs with AWS Resource Access ManagerAWS AppSync is a serverless GraphQL service which makes it easy to create manage monitor and secure your GraphQL APIs In the previous blog post we announced the launch of Merged APIs for AWS AppSync Merged APIs enable teams to merge resources including types data sources functions and resolvers from multiple source AppSync APIs into … 2023-06-07 11:45:25
AWS AWS Government, Education, and Nonprofits Blog AWS and Halcyon announce climate resilience fellowship cohort https://aws.amazon.com/blogs/publicsector/aws-halcyon-announce-climate-resilience-fellowship-winners/ AWS and Halcyon announce climate resilience fellowship cohortAWS announced the cohort of the Halcyon Climate Resilience in Latin America and the Caribbean Fellowship AWS is sponsoring this fellowship with Halcyon a Washington DC based nonprofit supporting impact driven startups to accelerate solutions that address the compounding effects of climate change The focus of this fellowship is to help innovative startups address the intersection of climate change and social determinants of health to provide more equitable health and life outcomes 2023-06-07 11:57:12
AWS AWSタグが付けられた新着投稿 - Qiita RDS for Oracleの非CDB構成のCDB構成への変更 https://qiita.com/asahide/items/31e27ab7c77a7139dad7 dbcdb 2023-06-07 20:57:52
Git Gitタグが付けられた新着投稿 - Qiita [Git] 動作を試す 実行例53:pushでタグ情報をリモートリポジトリに送信 https://qiita.com/dl_from_scratch/items/1290584a3589bb8d8717 送信 2023-06-07 20:35:01
技術ブログ Developers.IO QuickSightのグループ名変更をしたいときの代替案を考えてみた https://dev.classmethod.jp/articles/quicksight-change-group-name/ kariya 2023-06-07 11:45:52
技術ブログ Developers.IO API GatewayとS3を使ってメンテナンスページをホスティングしてみた https://dev.classmethod.jp/articles/api-gateway-proxy-s3-maintenance-page/ apigat 2023-06-07 11:28:32
海外TECH DEV Community How to Use Sinatra to Build a Ruby Application https://dev.to/appsignal/how-to-use-sinatra-to-build-a-ruby-application-3me How to Use Sinatra to Build a Ruby ApplicationIn this article we ll introduce Ruby on Rails lesser known but powerful cousin Sinatra We ll use the framework to build a cost of living calculator app By the end of the article you ll know what Sinatra is and how to use it Let s go Our ScenarioImagine this you ve just landed a job as a Ruby developer for a growing startup and your new boss has agreed to let you work remotely for as long as you like You start dreaming of all the cool cities where you could move to begin your digital nomad life You want to go somewhere nice but most importantly affordable And to help you decide you hit upon an idea to build a small app that shows cost of living data for almost any city or country you enter With so many languages frameworks and no code tools available today what will you use to go from idea to app Enter Sinatra Overview of SinatraCompared to Ruby on Rails a full stack web framework Sinatra is a very lean micro framework originally developed by Blake Mizerany to help Ruby developers build applications with minimal effort With Sinatra there is no Model View Controller MVC pattern nor does it encourage you to use convention over configuration principles Instead you get a flexible tool to build simple fast Ruby applications What Is Sinatra Good For Because of its lightweight and Rack based architecture Sinatra is great for building APIs mountable app engines command line tools and simple apps like the one we ll build in this tutorial Our Example Ruby AppThe app we are building will let you input how much you earn as well as the city and country you d like to move to Then it will output a few living expense figures for that city PrerequisitesTo follow along ensure you have the following Ruby development environment at least version already set up Bundler and Sinatra installed on your development environment If you don t have Sinatra simply run gem install Sinatra A free RapidAPI account since we ll use one of their APIs for our app project You can also get the full code for the example app here Before proceeding with our build let s discuss something very important the structure of Sinatra apps Regular Classical Vs Modular Sinatra AppsWhen it comes to structure in Sinatra apps you can have regular ーsometimes referred to as classical ーapps or modular ones In a classical Sinatra app all your code lives in one file You ll almost always find that you can only run one Sinatra app per Ruby process if you choose the regular app structure The example below shows a simple classical Sinatra app main rbrequire sinatra require json get do here we specify the content type to respond with content type json item Red Dead Redemption price status Available to jsonendThis one file contains everything needed for this simplified app to run Run it with ruby main rb which should spin up an instance of the Thin web server the default web server that comes with Sinatra Visit localhost and you ll see the JSON response As you can see it is relatively easy to extend this simple example into a fairly complex API app with everything contained in one file the most prominent feature of the classical structure Now let s turn our attention to modular apps The code below shows a basic modular Sinatra app At first glance it looks pretty similar to the classic app we ve already looked at ーapart from a rather simple distinction In modular apps we subclass Sinatra Base and each app is defined within this subclassed scope main rbrequire sinatra base require json require relative lib fetch game data main module class defined hereclass GameStoreApp lt Sinatra Base get do content type json item Red Dead Redemption price status Available to json end not found do content type json status message Nothing Found to json endendHave a look at the Sinatra documentation in case you need more information on this Let s now continue with our app build Structuring Our Ruby AppTo begin with we ll take the modular approach with this build so it s easy to organize functionality in a clean and intuitive way Our cost of living calculator app needs A root page which will act as our landing page Another page with a form where a user can input their salary information Finally a results page that displays some living expenses for the chosen city The app will fetch cost of living data from an API hosted on RapidAPI We won t include any tests or user authentication to keep this tutorial brief Go ahead and create a folder structure like the one shown below ├ーapp rb├ーconfig│└ーdatabase yml├ーconfig ru├ーdb│└ーdevelopment sqlite├ー env├ーGemfile├ーGemfile lock├ー gitignore├ーlib│└ーuser rb├ーpublic│└ーcss│├ーbulma min css│└ーstyle css├ーRakefile├ーREADME md├ーviews│├ーindex erb│├ーlayout erb│├ーnavbar erb│├ーresults erb│└ーstart erbHere s what each part does in a nutshell we ll dig into the details as we proceed with the app build app rb This is the main file in our modular app In here we define the app s functionality Gemfile Just like the Gemfile in a Rails app you define your app s gem dependencies in this file Rakefile Rake task definitions are defined here config ru For modular Sinatra apps you need a Rack configuration file that defines how your app will run Views folder Your app s layout and view files go into this folder Public folder Files that don t change much ーsuch as stylesheets images and Javascript files ーare best kept here Lib folder In here you can have model files and things like specialized helper files DB folder Database migration files and the seeds rb will go in here Config folder Different configurations can go into this folder for example database settings The Main File app rb app rb is the main entry point into our app where we define what the app does Notice how we ve subclassed Sinatra Base to make the app modular As you can see below we include some settings for fetching folders as well as defining the public folder for storing static files Another important note here is that we register the Sinatra ActiveRecordExtension which lets us work with ActiveRecord as the ORM app rb Include all the gems listed in Gemfilerequire bundler Bundler requiremodule LivingCostCalc class App lt Sinatra Base global settings configure do set root File dirname FILE set public folder public register Sinatra ActiveRecordExtension end development settings configure development do this allows us to refresh the app on the browser without needing to restart the web server register Sinatra Reloader end endendThen we define the routes we need The root which is just a simple landing page A Start here page with a form where a user inputs the necessary information A results page app rbclass App lt Sinatra Base root route get do erb index end start here where the user enters their info get start do erb start end results get results do erb results end endYou might notice that each route includes the line erb lt route gt which is how you tell Sinatra the respective view file to render from the views folder Database Setup for the Sinatra AppThe database setup for our Sinatra app consists of the following A database config file ーdatabase yml ーwhere we define the database settings for the development production and test databases Database adapter and ORM gems included in the Gemfile We are using ActiveRecord for our app Datamapper is another option you could use Registering the ORM extension and the database config file in app rb Here s the database config file config database ymldefault amp default adapter sqlite pool timeout development lt lt default database db development sqlitetest lt lt default database db test sqliteproduction adapter postgresql encoding unicode pool host lt ENV DATABASE HOST db gt database lt ENV DATABASE NAME sinatra gt username lt ENV DATABASE USER sinatra gt password lt ENV DATABASE PASSWORD sinatra gt And the ORM and database adaptor gems in the Gemfile Gemfilesource Ruby versionruby gem sinatra gem activerecord gem sinatra activerecord ORM gemgem sinatra contrib gem thin gem rake gem faraday group development do gem sqlite Development database adaptor gem gem tux gives you access to an interactive console similar to rails console gem dotenv endgroup production do gem pg Production database adaptor gemendAnd here s how you register the ORM and database config in app rb app rbmodule LivingCostCalc class App lt Sinatra Base global settings configure do register Sinatra ActiveRecordExtension end database settings set database file config database yml endend Connecting to the Cost of Living APIFor our app to show relevant cost of living data for whatever city a user inputs we have to fetch it via an API call to this API Create a free RapidAPI account to access it if you haven t done so We ll make the API call using the Faraday gem Add it to the Gemfile and run bundle install Gemfilegem faraday With that done we now include the API call logic in the results method app rb get results do city params city country params country if country or city names have spaces process accordingly esc city ERB Util url encode country e g St Louis becomes St Louis esc country ERB Util url encode country e g United States becomes United States url URI esc city amp country esc country conn Faraday new url url headers X RapidAPI Key gt ENV RapidAPIKey X RapidAPI Host gt ENV RapidAPIHost response conn get code response status results response body erb results end Views and Adding StylesAll our views are located in the views folder In here we also have a layout file ーlayout erb ーwhich all views inherit their structure from It is similar to the layout file in Rails views layout erb lt DOCTYPE html gt lt html lang en gt lt head gt lt meta charset UTF gt lt meta name viewport content width device width initial scale gt lt meta http equiv X UA Compatible content ie edge gt lt title gt Cost of living calc app lt title gt lt link rel stylesheet href css bulma min css type text css rel stylesheet gt lt link rel stylesheet href css style css rel stylesheet gt lt head gt lt body gt lt navbar partial gt lt erb navbar gt lt navbar gt lt div gt lt yield gt lt div gt lt body gt lt html gt We also add a local copy of Bulma CSS and a custom stylesheet in public css to provide styling for our app Running the Sinatra AppTo run a modular Sinatra app you need to include a config ru file where you specify The main file that will be used as the entry point The main module that will run remember that modular Sinatra apps can have multiple apps config rurequire File join File dirname FILE app rb run LivingCostCalc App Deploying Your Sinatra App to ProductionA step by step guide for deploying a Sinatra app to production would definitely make this tutorial too long But to give you an idea of the options you have consider Using a PaaS like Heroku Using a cloud service provider like AWS Elastic Cloud or the likes of Digital Ocean and Linode If you use Heroku one thing to note is that you will need to include a Procfile in your app s root web bundle exec rackup config ru p PORTTo deploy to a cloud service like AWS s Elastic Cloud the easiest method is to Dockerize your app and deploy the container Monitoring Your Sinatra App with AppSignalAnother thing that s very important and shouldn t be overlooked is application monitoring Once you ve successfully deployed your Sinatra app you can easily use Appsignal s Ruby APM service AppSignal offers an integration for Rails and Rack based apps like Sinatra When you integrate AppSignal you ll get incident reports and dashboards for everything going on The screenshot below shows our Sinatra app s memory usage dashboard Wrapping Up and Next StepsIn this post we learned what Sinatra is and what you can use the framework for We then built a modular app using Sinatra You can take this to the next level by building user authentication functionality for the app Happy coding P S If you d like to read Ruby Magic posts as soon as they get off the press subscribe to our Ruby Magic newsletter and never miss a single post 2023-06-07 11:16:03
Apple AppleInsider - Frontpage News Hands on with Apple's new 15-inch MacBook Air at WWDC https://appleinsider.com/articles/23/06/07/hands-on-with-apples-new-15-inch-macbook-air-at-wwdc?utm_medium=rss Hands on with Apple x s new inch MacBook Air at WWDCApple unveiled the long rumored inch MacBook Air at WWDC and I was on hand at Apple Park to take the new portable laptop for a spin Editing on the inch MacBook AirThe New MacBook Air doesn t look dissimilar from the existing MacBook Air Just you know larger Read more 2023-06-07 11:13:32
Apple AppleInsider - Frontpage News Vision Pro prescription lenses to start at $300, guesses Gurman https://appleinsider.com/articles/23/06/07/vision-pro-prescription-lenses-to-start-at-300-guesses-gurman?utm_medium=rss Vision Pro prescription lenses to start at guesses GurmanWith no apparent supply chain information Bloomberg s Mark Gurman says that Vision Pro s Zeiss prescription lenses will cost between and Apple has already revealed that it is in partnership with Zeiss to produce vision correction lenses for the Vision Pro specifically for users who wear glasses Pointing to the very long development of the new device that partnership was originally reported back in However neither Apple nor Zeiss have yet announced pricing It s unlikely that a company that sells wheels for the Mac Pro will make a low cost Vision Pro accessory Read more 2023-06-07 11:08:41
Apple AppleInsider - Frontpage News iPadOS 17 feature roundup: Interactive widgets, USB webcam support, Health app, more https://appleinsider.com/articles/23/06/07/ipados-17-feature-roundup-interactive-widgets-custom-lock-screen-health-app-more?utm_medium=rss iPadOS feature roundup Interactive widgets USB webcam support Health app moreApple didn t spend much time on iPadOS but there are several new features coming to the platform plus almost everything from iOS is included too Here s everything coming in iPadOS iPadOS has several new featuresThe WWDC keynote spent a lot of time on Apple Vision Pro and visionOS but iPadOS did get a few minutes of stage time Despite the short segment iPad got several features that will benefit users and developers alike Read more 2023-06-07 11:41:52
海外TECH Engadget Volvo officially unveils the EX30, its compact electric SUV https://www.engadget.com/volvo-officially-unveils-the-ex30-its-compact-electric-suv-113500803.html?src=rss Volvo officially unveils the EX its compact electric SUVAfter a few teases Volvo is finally revealing the EX its more affordable all electric premium SUV Designed to have the lowest carbon footprint of all its offerings Volvo s fourth EV brings the company s plan to go all electric by one step closer to becoming a reality nbsp The EX includes all of Volvo s typical safety features and an updated Park Pilot Assist that will help you find parking spaces along with getting into them It also comes in five exterior colors and ambient light offerings inspired by Scandinavia including a northern lights setting with paired ambient soundscapes It comes off more like what you d get in a spa than a car but as long as you don t get too cozy while driving it should be nice nbsp The EX is available as a Single Motor Extended Range or Twin Motor Performance They charge from to percent in and a half minutes have kWh of usable battery and rear horsepower Plus there s cubic feet of luggage space nbsp Now where they differ The Single Motor is real wheel drive offering an estimated range of miles going to in seconds and with lbs ft of torque The Twin Motor is all wheel drive with a slightly shorter range at miles goes to in seconds and has lbs ft of torque Built with performance in mind the Twin Motor delivers more horsepower a total of HP than its single motor sibling The Volvo EX is available for pre order in the US starting at with a cross country variant launching next year In a statement about the EX s release Volvo s chief executive Jim Rowan commented on the frequent financial barrier to buying an EV “We know that price and cost of ownership is still one of the biggest challenges when people consider switching to an electric car he said “With the Volvo EX we aim to bring premium fully electric mobility to a much broader audience helping to advance and speed up the transition to full electrification that our industry and society needs nbsp The EX is significantly cheaper than Volvo s C and XC EVs ーboth with a starting price around and the upcoming EX which Volvo says will be “under nbsp VolvoThis article originally appeared on Engadget at 2023-06-07 11:35:00
海外TECH Engadget The Morning After: iOS 17 offers better protection for unsolicited images https://www.engadget.com/the-morning-after-ios-17-offers-better-protection-for-unsolicited-images-111504471.html?src=rss The Morning After iOS offers better protection for unsolicited imagesReceiving an unsolicited image is an unpleasant experience at the best of times and one that technology has made all too common At WWDC Apple announced iOS will use an on device machine learning model to scan both images and videos for nudity When detected you ll get a pop up telling you the system thinks the file may be inappropriate I wonder how much of this is a response to the practice of AirDropping inappropriate images to an unsuspecting person s phone One notable incident from saw a person removed from a flight after they had shared an image of themselves with other passengers That AirDrop images have visible previews too currently makes it harder for people to avoid catching an eyeful Dan CooperThe Morning After isn t just a newsletter it s also a daily podcast Get our daily audio briefings Monday through Friday by subscribing right here The biggest stories you might have missedPasskey support for Password arrives in beta todayThe best gaming gifts for dads this Father s DayStudy finds sleep coaching app can help recover an extra hour of restGoogle brings its predictive smart compose feature to ChatUbisoft s Rocksmith guitar learning app is finally coming to iOS and Android on June thApple bought the AR company behind the tech in Nintendo s Mario Kart rideMira also had several military contracts Universal Studios NintendoApple has bought Mira the company that built the AR headsets used in Super Nintendo World s Mario Kart themed ride It had previously built its own smartphone based headset which we tried in Back then it garnered some praise despite its low price and low tech As well as the Mario headsets the startup was also supplying heads up display gear for the US military It s not clear when the deal happened or if any of Mira s technology went into the Vision Pro But it s likely if it hasn t already Apple will be quietly scooping up plenty of small AR and VR startups in the coming years Continue Reading Twitter s ad sales have reportedly dropped by percent since last yearAdvertisers are nervous about the content Twitter is happy to host Twitter has reportedly seen ad revenue fall by percent in the last year as brands flee the platform After Elon Musk bought the company to remake it in his own image advertisers have backed off due to the surge in hate speech and adult content In under the old regime Twitter cleared annual revenue of billion while the first year of Musk s tenure is expected to make just billion Maybe just maybe gutting the moderation and ad sales staff of a platform reliant on moderation and ad sales wasn t the smartest business move Continue Reading Western Digital s first Xbox Series X S storage cards start at No more are users locked into Seagate s storage options Western DigitalIf you wanted to expand the storage of your Xbox Series X or S you had the choice of any manufacturer you wanted so long as it was Seagate Now however Western Digital has launched its own range of expansion cards to boost the size of your local library The WD Black C starts at for a GB model with a TB card costing a fair bump cheaper than Seagate s offerings Not to mention it s just nice to have a choice Continue Reading Chinese startup says its new EV battery doesn t lose range in the coldIt says the Phoenix cell has a top range of miles EVs have countless benefits over their gas powered rivals but battery degradation in low temperatures isn t one of them It s an issue Chinese company Greater Bay Technology says it s now fixed claiming its new Phoenix battery can reach ideal temperature in six minutes It added Phoenix has a potential range of km miles and will be in a new EV made by Chinese manufacturer Aion at some point next year If true this could be the quantum leap that will see EVs trounce the competition once and for all Continue Reading This article originally appeared on Engadget at 2023-06-07 11:15:04
海外科学 NYT > Science Birth Control for Cats? Gene Therapy May Offer a Method https://www.nytimes.com/2023/06/06/science/cats-birth-control.html feline 2023-06-07 11:22:27
海外TECH WIRED Volvo EX30 2023: Price, Specs, Release Date https://www.wired.com/story/volvo-ex30-electric-suv/ range 2023-06-07 11:30:00
海外科学 BBC News - Science & Environment Crocodile found to have made herself pregnant https://www.bbc.co.uk/news/science-environment-65834167?at_medium=RSS&at_campaign=KARANGA crocodile 2023-06-07 11:30:45
医療系 医療介護 CBnews 物価高と患者負担抑制への対応を併記、骨太原案-24年度のトリプル改定で https://www.cbnews.jp/news/entry/20230607193243 介護報酬 2023-06-07 20:08:00
ニュース BBC News - Home Heathrow security officers announce summer strikes https://www.bbc.co.uk/news/business-65831998?at_medium=RSS&at_campaign=KARANGA august 2023-06-07 11:15:23
ニュース BBC News - Home Crocodile found to have made herself pregnant https://www.bbc.co.uk/news/science-environment-65834167?at_medium=RSS&at_campaign=KARANGA crocodile 2023-06-07 11:30:45
ニュース BBC News - Home Sgt Matiu Ratana: Murder accused pointed gun at police officer, trial told https://www.bbc.co.uk/news/uk-england-london-65833109?at_medium=RSS&at_campaign=KARANGA hears 2023-06-07 11:30:45
ニュース BBC News - Home Probe into 14-year-old boy's death in school grounds 'incident' https://www.bbc.co.uk/news/uk-scotland-edinburgh-east-fife-65831563?at_medium=RSS&at_campaign=KARANGA lothian 2023-06-07 11:32:15
ニュース BBC News - Home Dementia patient failed by safeguarding system in Northern Ireland https://www.bbc.co.uk/news/uk-northern-ireland-65701486?at_medium=RSS&at_campaign=KARANGA stanley 2023-06-07 11:42:30
ニュース BBC News - Home World Test Championship final: India take wicket of David Warner for 43 https://www.bbc.co.uk/sport/av/cricket/65833191?at_medium=RSS&at_campaign=KARANGA World Test Championship final India take wicket of David Warner for Watch as David Warner is caught down the leg side by KS Bharat of the bowling off Shardul Thakur for as India make an important breakthrough on day one of the World Test Championship final at The Oval 2023-06-07 11:39:15
ニュース BBC News - Home The Ukraine dam breach rescue... in 61 seconds https://www.bbc.co.uk/news/world-europe-65832665?at_medium=RSS&at_campaign=KARANGA recent 2023-06-07 11:21:44
ニュース Newsweek 「オンニが嫌い!」 韓国女子ユーチューバー、ライブ配信中にフォークで先輩ユーチューバーを襲撃 https://www.newsweekjapan.jp/stories/world/2023/06/post-101819.php 「オンニが嫌い」韓国女子ユーチューバー、ライブ配信中にフォークで先輩ユーチューバーを襲撃韓国で代の女性ユーチューバーがライブ配信を行っているさなか、別の女性ユーチューバーの顔をフォークで刺し、倒れた相手の頭を足で蹴るなどの暴行して警察に拘束された。 2023-06-07 20:41:29

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)