海外TECH |
Ars Technica |
Report: Microsoft is “experimenting” with ways to work AI into bedrock Windows |
https://arstechnica.com/?p=1962570
|
chatgpt |
2023-08-23 18:12:21 |
海外TECH |
DEV Community |
Consuming a Standard .NET API: An MVC Real Estate Example |
https://dev.to/josemariairiarte/consuming-a-standard-net-api-a-real-estate-example-5hm9
|
Consuming a Standard NET API An MVC Real Estate ExampleIn this tutorial we will survey the process of consuming a NET API service using a real estate application as an example Throughout this guide we will delve into the integration of a NET MVC application with an existing API a NET API app which is included in the repository tigerbluejay MVC App Consuming BARE API NET MVC App consuming the Buenos Aires Real Estate API The application displays Apartment Complex and Apartment Unit information allows for CRUD operations and implements NET Identity for registration and login MVC App Consuming Buenos Aires Real Estate BARE APIAn MVC application consuming the BARE API Service able to perform CRUD operations on the data retrieved and able to send data to the API The application works with the Buenos Aires Real Estate API which is a a real state API service exposing Apartment Unit Rental Information in the City of Buenos Aires DisclaimerNote There is another repository containing the standalone implementation of the Buenos Aires Real Estate API It can be found here Note that the standalone implemnetation has some differences with the Buenos Aires Real Estate API that is part of this project This is so as changes were made during the development of the MVC App in the Buenos Aires Real Estate API that is part of this Repo to make the MVC Application compatible with that API Note however that the API in the… View on GitHubThe MVC application will facilitate actions such as reading creating updating and deleting information via API service calls all within a user friendly UI Let s break down the components and steps involved in this integration Project StructureThe MVC API Consuming Service Solution comprises three essential projects MVC Web Project This houses the core functionality of the application Models Project This project contains the models and DTOs Data Transfer Objects that mirror those of the API Utilities Project This project provides auxiliary code to support object mapping functionalities using the AutoMapper package Integration OverviewThe MVC app communicates with the API endpoints to perform CRUD Create Read Update Delete operations on information related to Apartment Complexes and Apartment Units Notably this information is not stored directly in the MVC app s database Instead it is available through the API endpoints of the API app which does itself then communicate with its own database User Interface and OperationsUsers access the application from the main menu on the home page They can visualize information about Apartment Complexes and Apartment Units Interaction with the API occurs through a set of services defined within the MVC app Users can perform CRUD operations after registering and logging in Authentication and AuthorizationThe MVC app incorporates an Authentication Service responsible for sending user credentials and login tokens to authenticate users for API consumption Communication is managed through LoginRequestDTO and LoginResponseDTO The implementation of sessions enables the MVC app to recognize and maintain user login status API endpoints are restricted to logged in users with the admin role which is the default role for all users Similarly certain pages within the MVC app for performing CRUD operations are restricted to admin role users MVC App ComponentsThe MVC app consists of three main pillars Authentication Functionality Handles user registration and login Apartment Complex Functionality Manages CRUD operations for apartment complexes Apartment Unit Functionality Manages CRUD operations for apartment units Each pillar Auth ApartmentComplex ApartmentUnit is supported by components Controllers These direct traffic between views and services invoked based on the requested URL There s a controller for each pillar Views User interfaces that display information and receive input Views gather information such as login credentials or data for updating creating apartment complexes DTOs These mirror the DTOs defined in the API project facilitating seamless communication between views controllers and services Services Each pillar has a dedicated service and they inherit from a base service Services configure requests handle serialization deserialization and interact with API endpoints Relationship with the API ProjectThe API Project is integrated into the solution as four separate projects A detailed discussion of the API Project can be found in its own repository s readme file that is there exists a near duplicate repository containing only API related code tigerbluejay Buenos Aires Real Estate API A real estate API service exposing apartment complex and apartment unit related CRUD endpoints The service also integrates NET identity for login registration and authentication Buenos Aires Real Estate APIA real state API service exposing Apartment Unit Rental Information in the City of Buenos Aires Project StructureThe API Service Solution is comprised of four core projects The API which houses core functionality a Data Project which handles data access a Models Project which contains the Models and DTOs for the Solution and a Utilities Project with ancilliary code to assist BuenosAiresRealEstate APIControllersThe API Project houses the two core sections of the Project One is the Controllers which are defined in different version folders Version of the ApartmentComplexController serves to show how you can work with in memory data But the core controllers are the ApartmentComplexController and the ApartmentUnitController Each apartment complex has units associated to it and both can be retrieved Get All and Get by Id created updated and deleted with the methods defined in these controllers There is also a UsersController which implements… View on GitHubMinor discrepancies exist between the standalone API Repository and the one integrated into the one with the MVC App primarily related to data types within DTOs and Models Despite these differences approximately of the projects remain consistent so reading the standalone API s documentation will be of great use The standalone GitHub repo s readme md file offers comprehensive descriptions of the components within the Solution Feel free to explore this file as well as the standalone project to gain a deeper understanding of the API integration Also if you wish you may check out my post dealing with this project Navigating a Standard NET API A Real Estate Example In ClosingBy exploring the github repo linked at the beginning of the article the MVC App and its corresponding API you can gain insights into effectively consuming a NET API service within a real world context |
2023-08-23 18:24:27 |
海外TECH |
DEV Community |
Rebasing: The Scariest Git Command? |
https://dev.to/mustafahashmani/rebasing-the-scariest-git-command-439i
|
Rebasing The Scariest Git Command Why do we need Rebasing I m working on a collaborative projectI make a feature branch I do some work on the branch and some more work on the branchMeanwhile Master has new work on it and my feature branch doesn t have this work I merge master into feature and this results in a new merge commitI keep working on my feature branch and a coworker adds new work to masterI merge master in to my feature branch and this results in yet another merge commit The feature branch has a bunch of merge commits If the master branch is very active my feature branch s history is muddied Why Rebase We get a much cleaner project history No unnecessary merge commits We end up with a linear project history RebasingWe can instead rebase the feature branch onto the master branch This moves the entire feature branch so that it BEGINS at the tip of the master branch All of the work is still there but we have re written history Instead of using a merge commit rebasing rewrites history by creating new commits for each of the original feature branch commits It is not going to change the master branch instead it is going to rewrite history by taking the feature branch commits and creating new ones that are based on the originals and putting them all at the tip of the master branchWe are BASING that branch on the tip of the master branchgit switch featuregit rebase masterThere are two main ways to use the git rebase command as an alternative to mergingas a cleanup tool WarningNever rebase commits that have been shared with others If you have already pushed commits up to Github DO NOT rebase them unless you are positive no one on the team is using those commits You do not want to rewrite any git history that other people already have It s a pain to reconcile the alternate histories Interactive RebaseSometimes we want to rewrite delete rename or even reorder commits before sharing them We can do this using git rebase Running git rebase with the i option will enter the interactive mode which allows us to edit commits add files drop commits etc Note that we need to specify how far back we want to rewrite commits Also notice that we are not rebasing onto another branch Instead we are rebasing a series of commits onto the HEAD they currently are based on git rebase i HEAD go back four commitsIn our text editor we ll see a list of commits alongside a list of commands that we can choose from Here are a couple of the more commonly used commands pick use the commitreword use the commit but edit the commit messageedit use commit but stop for amendingfixup use commit contents but meld it into previouscommit and discard the commit messagedrop remove commit |
2023-08-23 18:12:49 |
海外TECH |
DEV Community |
Top 10 VSCode Extensions for Flutter Developers |
https://dev.to/yatendra2001/top-10-vscode-extensions-for-flutter-developers-4am3
|
Top VSCode Extensions for Flutter DevelopersIf you re diving into the world of Flutter you probably know how essential a good set of tools can be And if you re using Visual Studio Code VSCode as your primary IDE you re in for a treat Today I m going to walk you through the top VSCode extensions that every Flutter developer should consider adding to their toolkit So buckle up and let s get started FlutterLink to Extension Benefits Provides a fully fledged development environment Offers Flutter specific commands like Hot Reload and Hot Restart Integrated Flutter widget inspector With this extension you can streamline your Flutter app development process It s like having a Flutter bazooka right in your VSCode void main gt runApp MyApp DartLink to ExtensionBenefits Enhanced Dart language support Intelligent code completion and real time error highlighting Integrated debugging and profiling tools This extension is the backbone of Flutter development in VSCode It makes writing Dart code a breeze Flutter IntlLink to Extension Benefits Simplifies internationalization in in Flutter apps Auto generates localization files If you re aiming for a global audience this extension is a must have Say goodbye to manual localization Awesome Flutter SnippetsLink to Extension Benefits Speeds up coding with handy snippets Covers a wide range of Flutter widgets and functionalities Just type a few characters and voilà A chunk of code magically appears Flutter TreeLink to Extension Benefits Visual representation of your widget tree Helps in understanding the structure of complex UIs A picture is worth a thousand words and this extension proves it Flutter ColorLink to Extension Benefits Visualizes color codes in the gutter Supports various color formats No more guessing games See the color directly in your code Pubspec AssistLink to Extension Benefits Easily add dependencies to your pubspec yaml Auto completion for Flutter packages Managing dependencies has never been this easy Flutter FilesLink to Extension Benefits Quickly scaffold Flutter BLoC templates Generate data classes copy with methods and more Boost your productivity with this nifty extension Bracket Pair Colorizer Link to Extension Benefits Color codes matching brackets Makes code more readable and navigable Especially useful when dealing with deeply nested widgets Error LensLink to Extension Benefits Highlights errors and warnings in real time Provides instant feedback without waiting for a full build Spot and fix errors as you type It s like having a guardian angel for your code Wrapping UpThere you have it folks These are the top VSCode extensions that can supercharge your Flutter development journey Remember the right tools can make a world of difference So give these extensions a try and watch your productivity Before We Go Hey thanks for sticking around If this post was your jam imagine what s coming up next I m launching a YouTube channel and trust me you don t want to miss out Give it a look and maybe even hit that subscribe button Tap to subscribe Until we meet again code on and stay curious Got any doubt or wanna chat React out to me on twitter or linkedin |
2023-08-23 18:08:33 |
Apple |
AppleInsider - Frontpage News |
How to clean Apple Watch bands |
https://appleinsider.com/inside/apple-watch/tips/heres-how-to-clean-apple-watch-bands?utm_medium=rss
|
How to clean Apple Watch bandsIf you have an Apple Watch band you wear on the regular you may want to take some time and follow the steps below to make sure you give it a proper clean every once in a while Several different Apple Watch bandsTurns out the band on your Apple Watch can be a hotbed for bacteria especially for the folks who wear their device every single day We re here to let you know how you can keep the band clean and avoid bacteria buildup Read more |
2023-08-23 18:19:44 |
海外TECH |
ReadWriteWeb |
Keep Risks at Bay and Enjoy an Accident-Free Summer Season |
https://readwrite.com/keep-risks-at-bay-and-enjoy-an-accident-free-summer-season/
|
Keep Risks at Bay and Enjoy an Accident Free Summer SeasonFor most people summer rather than the winter holidays is the most wonderful time of the year With its warm The post Keep Risks at Bay and Enjoy an Accident Free Summer Season appeared first on ReadWrite |
2023-08-23 18:32:29 |
海外科学 |
NYT > Science |
India Moon Landing: In Latest Moon Race, India Lands First in Southern Polar Region |
https://www.nytimes.com/live/2023/08/23/science/india-moon-landing-chandrayaan-3
|
India Moon Landing In Latest Moon Race India Lands First in Southern Polar RegionDays after a Russian lunar landing failed India s Chandrayaan mission is set to begin exploring an area of the moon that has yet to be visited and has water ice that could be a resource for future missions |
2023-08-23 18:04:43 |
海外科学 |
NYT > Science |
Atop an Underwater Hot Spring, an ‘Octopus Garden’ Thrives |
https://www.nytimes.com/2023/08/23/science/biology-octopus-garden.html
|
study |
2023-08-23 18:34:52 |
海外科学 |
NYT > Science |
Gender Surgeries Nearly Tripled From 2016 Through 2019, Study Finds |
https://www.nytimes.com/2023/08/23/health/transgender-surgery.html
|
findsthe |
2023-08-23 18:14:04 |
ニュース |
BBC News - Home |
Russia: Video shows plane crash in Kuzhenkino |
https://www.bbc.co.uk/news/world-europe-66597449?at_medium=RSS&at_campaign=KARANGA
|
crash |
2023-08-23 18:44:10 |
ニュース |
BBC News - Home |
Wilko: Jobs to go as attempts to find a buyer fail |
https://www.bbc.co.uk/news/business-66599804?at_medium=RSS&at_campaign=KARANGA
|
administrator |
2023-08-23 18:49:37 |
ニュース |
BBC News - Home |
Louis Theroux: Anxious TV bosses should stop playing it safe |
https://www.bbc.co.uk/news/entertainment-arts-66596026?at_medium=RSS&at_campaign=KARANGA
|
difficult |
2023-08-23 18:26:25 |
ニュース |
BBC News - Home |
Sara Sharif murder inquiry: Girl was home schooled, says neighbour |
https://www.bbc.co.uk/news/uk-england-surrey-66593116?at_medium=RSS&at_campaign=KARANGA
|
inquiry |
2023-08-23 18:30:35 |
ニュース |
BBC News - Home |
Watkins scores hat-trick as Villa hit Hibs for five |
https://www.bbc.co.uk/sport/football/66573659?at_medium=RSS&at_campaign=KARANGA
|
Watkins scores hat trick as Villa hit Hibs for fiveOllie Watkins devastating hat trick helps ruthless Aston Villa mark their return to European football with a first leg Europa Conference League play off demolition of Hibernian |
2023-08-23 18:38:16 |
ニュース |
BBC News - Home |
Hibernian 0-5 Aston Villa: Highlights of Europa Conference League play-off first leg |
https://www.bbc.co.uk/sport/av/football/66600560?at_medium=RSS&at_campaign=KARANGA
|
Hibernian Aston Villa Highlights of Europa Conference League play off first legWatch highlights as Aston Villa thump Hibernian at Easter Road in the first leg of their Europa Conference League play off tie |
2023-08-23 18:48:02 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
フリーランス必読! 家にこもって仕事をしていても 一瞬でパフォーマンスが上がる方法を伝授 - 脳の外で考える |
https://diamond.jp/articles/-/327961
|
集中力 |
2023-08-24 03:51:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
電子たばこの米ジュール、30%人員削減へ - WSJ発 |
https://diamond.jp/articles/-/328150
|
人員削減 |
2023-08-24 03:07:00 |
コメント
コメントを投稿