投稿時間:2023-02-22 19:28:01 RSSフィード2023-02-22 19:00 分まとめ(32件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT ITmedia 総合記事一覧 [ITmedia News] マイナカードでキャッシュレス決済、災害時のオフライン環境でも 横須賀市など実証実験 https://www.itmedia.co.jp/news/articles/2302/22/news196.html 実証実験 2023-02-22 18:40:00
IT ITmedia 総合記事一覧 [ITmedia ビジネスオンライン] 楽天、金子國義画伯による「猫の日」を記念したNFTを発売 狙いは? https://www.itmedia.co.jp/business/articles/2302/22/news071.html itmedia 2023-02-22 18:18:00
IT ITmedia 総合記事一覧 [ITmedia News] 名前に“猫”がつく交差点、全国にいくつある? ゼンリンが調査 https://www.itmedia.co.jp/news/articles/2302/22/news193.html itmedia 2023-02-22 18:12:00
TECH Techable(テッカブル) 設置環境に合わせてスッキリ!180度角度調整が可能なエレコム製スイング式LANケーブル登場 https://techable.jp/archives/196904 配線 2023-02-22 09:00:11
python Pythonタグが付けられた新着投稿 - Qiita 🤖Transformer学習ロードマップ https://qiita.com/ktakumi_fish/items/1d388a757696c8ae10a4 chatgpt 2023-02-22 18:52:06
python Pythonタグが付けられた新着投稿 - Qiita sentence-bertを使って映画レビューの類似度を比較してみた https://qiita.com/Amby/items/39d2ff4a75b14aeb0316 sentencebert 2023-02-22 18:45:26
python Pythonタグが付けられた新着投稿 - Qiita テキスト分類をpyLDAvisでやってみる https://qiita.com/hima2b4/items/9767deb17102c62b07bc pyldavis 2023-02-22 18:25:58
python Pythonタグが付けられた新着投稿 - Qiita 【コンピュータサイエンス入門】初心者のためのデータ構造(連結リスト) https://qiita.com/JimSoftwareEng/items/772236d0f05b4c247e84 連結リスト 2023-02-22 18:06:05
Program CodeZine Webアプリケーションフレームワーク「Laravel 10.0」がリリース http://codezine.jp/article/detail/17405 laravel 2023-02-22 18:15:00
Program CodeZine インフラエンジニアの約4割、システム設計・構築と音楽との共通点を実感 http://codezine.jp/article/detail/17406 音楽 2023-02-22 18:15:00
js JavaScriptタグが付けられた新着投稿 - Qiita 【manifest.json / Service Worker】スマホでブックマークしたときのホーム画面用画像設定 https://qiita.com/Ryuki4648/items/15145d45de4739138576 ltlinkrelmanifesthrefass 2023-02-22 18:41:05
AWS AWSタグが付けられた新着投稿 - Qiita 今さら聞けないAWS ECSとは?Fargateとは? https://qiita.com/K5K/items/0d8dbdb39fbb0375e2bd fargat 2023-02-22 18:30:18
技術ブログ Developers.IO [Python] 不正な名前のモジュールを頑張ってimportする方法 https://dev.classmethod.jp/articles/invalid-name-module-import/ import 2023-02-22 09:41:34
技術ブログ Developers.IO Amazon Omics Analytics の Annotation Store で定義可能なスキーマの型の確認方法 https://dev.classmethod.jp/articles/how-to-check-schema-in-amazon-omics/ longint 2023-02-22 09:21:38
海外TECH DEV Community Role of AI in Software Development https://dev.to/shivamthakre/role-of-ai-in-software-development-2c54 Role of AI in Software DevelopmentIn the st Century we were introduced to the concept of automation Data and machine intelligence are powering this automation Data simply means a collection of values In the per day Data generation stats stand at a staggering quintillion bytes the unit conversion of which to Gigabytes becomes a head spinning task Now you may wonder why a collection of odd values is important in this era where people label Data as the new oil Here comes into the picture the concept of data science Data science is a collection of various analytical descriptive and predictive techniques to extract knowledge and useful insights from data The demand for data scientists is always surplus in the market compared to the no Of skilled data scientists and data analysts This shows the importance of data and how powerful a random set of data like an array say can become This data has been fuelling the automation industry with the help of artificial intelligence This brings us to an important question What is AI The capability of an artificial machine to think and act like a human can be called Artificial Intelligence Artificial intelligence is a subset of Data Science responsible for giving life to a machine The scope of AI is unrestricted and even the sky s not the limit as we have AI powered Satellites launched by SpaceX in space The use of AI is increasing and advancing in every sector and every field of industry The algorithm based machine learning which is further a subset of Artificial intelligence is the basis for predictive analysis of data by data scientists Machines learn through various methods and apply their learnings while deciding or performing a task Role of AI in Software DevelopmentWell established SaaS companies like Netflix Spotify Amazon Prime Youtube etc use AI extensively on their platform to cater the customer needs and provide satisfactory service to their users There has been a growing shift toward AI in Software development and AI is definitely the future of Software Development Here are some ways Artificial intelligence can help you create your next wow software product Increased User experienceEvery software must provide a platform for a user to communicate his queries and get a solution A platform isn t all but rather an AI powered platform AI Chatbots that replies to every query instantly and gives a top notch quality experience to users Almost every customer service website like IRCTC BookMyShow MakeMyTrip etc is powered by AI chatbots to help customers AI backed Alexa and other intelligent voice assistants have also been helping users with a wide range of activities at the tip of their voices Increased speed of developmentMachine Learning and deep learning techniques can help DevOp reduce several software testing processes The quality assurance analysts would no longer be needed to manually test the software as AI would test your software automatically at every stage Fintech companies are adopting AI powered trading bots to automate the trades of their books Enhanced Security and PrivacyThe stronger deep learning models can classify and identify almost everything in a frame Hence AI can enhance security by giving access to only identified and verified individuals while maintaining privacy at the user level by giving different access to different users as defined by the admin Banking applications exclusively use AI to keep secure the data of their customers Recommender systemIf your product is a video streaming service or a podcast music streaming service then powering the software with a recommender system would boost user experience and user stay time on your application The recommender system works by understanding the user s interests and predicting their next best option Companies like Netflix and Facebook extensively curate users content with AI s help Error eliminationThe AI can help diagnose and treat an error without human intervention which also reduces maintenance costs AI can use reinforcement learning to deal with errors with the concept of reward and punishment The data is then retrained to avoid the same errors in the future This way it ensures that an error dealt with is an error eliminated forever Decision Making and Time estimationThe ability of AI includes the ability to make decisions Under defined constraints and criteria the machine can make the most suitable and accurate decision Different regression models can help predict the estimated time frame and cost estimation for the current project when trained with past project timelines and cost estimations The supervised and unsupervised learning algorithms can significantly help a developer with advanced services The scope of AI in Software Development is huge and the list goes on with other applications such as automated coding automated UI design etc This is the reason why it is believed that of businesses are investing in AI and around of these businesses have already started defining their AI strategies The role of AI is not only limited to software development but also helps developers to deploy their software in the most cost effective way Surveys can be conducted to know the user interests and needs and the Machine Learning algorithms can deal with the data to select the best region and the best time to deploy the product Post deployment AI can be used in sentimental analysis to understand user feedback and help developers bring in new updates for user satisfaction Sentimental analysis can be done using natural language processing which helps extract the scope of improvements from every feedback the user provides 2023-02-22 09:52:06
海外TECH DEV Community Edgy Firmware: The Only Edge Detection Solution You'll Ever Need https://dev.to/dariocasciato/edgy-firmware-the-only-edge-detection-solution-youll-ever-need-1ma6 Edgy Firmware The Only Edge Detection Solution You x ll Ever Need My first experienceI think this topic is a very classic when you are writing your first more complex Arduino program rather than a blinking LED E g You want to count how many times a button has been pressed This was one of my first tasks I was ever given when I was learning firmware development I thought that it was as easy as if digitalRead BUTTON counter But this method resulted in the counter incrementing infinitely in a matter of seconds because it checked if the button was pressed and not if there was a positive edge In my apprenticeship as an electronics engineer I had a teacher that spoke more about his political opinions than coding But the few times he talked about coding he really taught us something He once taught me five lines of code that changed the way I see the world and how I write code These are the following btn old btn act btn act INPUT btn edge btn act btn old btn edge pos btn edge amp btn act btn edge neg btn edge amp btn OLD I know this does not look like much but after you read this article you will realize that this is the perfect edge detection method How to set it up StructTo make it as much clean code as possible it s very nice to use a struct for this case typedef struct uint t act uint t old uint t edge uint t edge pos uint t edge neg edge t DetectionNow the five sacred lines of code follow They are inserted at the top of the while or infinite program loop Don t forget to initialize the edge t struct int main edge t btn while btn old btn act btn act digitalRead BUTTON btn edge btn act btn old btn edge pos btn edge amp btn act btn edge neg btn edge amp btn OLD Inifinite loop user code In this example I am reading the input from a button that is connected to one of the digital pins on an Arduino Now we are set At the beginning it looks a bit clunky but you will understand how easy it works below How to use it If you only have one button in your circuit project it s going to be incredibly easy to use this edge detection We have the possibility to detect get the following properties of the button The current stateThe state it had in the previous cycleChange of statePositive edgeNegative edgeHere is how you can detect get these properties The current stateif btn act Serial println Button is pressed Detects if the button is pressed equivalent of if digitalRead BUTTON The button state in the previous cycleif btn old Serial println Button was pressed last cycle Detects if the button was pressed the cycle before Change of stateif btn edge Serial println Button State changed Detects if the button changed from not pressed to pressed and vice versa Positive Edgeif btn edge pos Serial println Button pressed down Detects if the button changed from not pressed to pressed Positive Edge Negative Edgeif btn edge neg Serial println Button released Detects if the button changed from not pressed to pressed Positive Edge How does it work Now follows the explanation of these code lines btn old btn act btn act digitalRead BUTTON btn edge btn act btn old btn edge pos btn edge amp btn act btn edge neg btn edge amp btn old To illustrate the states of the boolean values I will be using Level Diagrams where each square represents one iteration of the infinite program loop btn actbtn act digitalRead BUTTON In this example we are again reading a button input that is connected to a digital pin of an Arduino The act value is straightforward to understand as it always has the same value as digitalRead BUTTON Throughout the rest of the explanation I will refer to the current button state as act btn oldbtn old btn act btn act digitalRead BUTTON The old value refers to the state of the button in the previous iteration of the program loop It is always the state of the button in the previous cycle We save the value act into old and then first we get the new value for act btn edgebtn edge btn act btn old Now it gets interesting The operator also known as the XOR operator detects whether two values are different It returns true if the values are different and false if the values are the same So now we have the possibility to detect a change in the state of the button if we compare act and old btn edge posbtn edge pos btn edge amp btn act So the edge pos is the one we are all looking for This detects the positive edge or the change from not pressed to pressed We compare the value edge and act with an AND operator The AND operator returns true if both values are true If edge is true we know that we had a change in the button state The change is detected if act and old are unequal If we have a change from not pressed to pressed act is true and old is false If we have a change from pressed to not pressed act is false and old is true That s why we can compare edge and act with the AND operator to get the positive edge btn edge negbtn edge neg btn edge amp btn old There are cases where you have to read the negative edge of a signal As I explained before if we have a change from pressed to not pressed act is false and old is true So now we can compare edge and old with the AND operator to get the negative edge More than one button So you have more than one button in your project and every button needs edge detection Don t think that you have to do this edge t btn edge t btn edge t btn edge t btn Since every value in the struct is declared as uint t we have bits to use in every value The only thing we have to do to have more than just one button is to redefine the act value I m going to make an example where I have buttons and every button is connected to one digital pin of an Arduino from pin to btn act digitalRead digitalRead lt lt digitalRead lt lt digitalRead lt lt digitalRead lt lt digitalRead lt lt digitalRead lt lt digitalRead lt lt In my next blog post I m going to explain bit manipulation Now every bit of act corresponds to one button We can t use if btn edge pos anymore We need to specify which button we want to detect This can be done with a bit mask I like to create Defines for every button HEX BINARY define BUTTON x define BUTTON x define BUTTON x define BUTTON x define BUTTON x define BUTTON x define BUTTON x define BUTTON x Every value I gave the defines represents one bit for the uint t act From here it is straightforward If we want to detect for example the positive edge of the third button we can do this if btn edge pos amp BUTTON With this bit mask we allow it to detect changes only for the specific bit FinaleThank you for reading I encourage you to continue exploring this topic further and see how you can apply it in your projects I am excited to announce that I will be continuing this series on Firmware Basics Feel free to leave any comments or questions below and I ll do my best to help you out May your code be bug free 2023-02-22 09:49:30
海外TECH DEV Community Top 20 ASP.NET Web API Interview Questions https://dev.to/bookerrjanee/top-20-aspnet-web-api-interview-questions-3l05 Top ASP NET Web API Interview QuestionsWhen you re preparing for an interview for a position that involves working with ASP NET Web API it s important to be familiar with the technology and its features In this post we ll go through some of the most common interview questions you might encounter along with the best ways to answer them Top ASP NET Web API Interview Questions What is ASP NET Web API ASP NET Web API is a framework that allows you to build HTTP services that can be accessed by different clients It s a lightweight platform for creating RESTful services which can be used to provide data to web and mobile applications What are some of the benefits of using ASP NET Web API ASP NET Web API is easy to use and configure it s extensible and flexible and it provides a good level of performance It also supports a wide range of media types and can be used with a variety of web technologies making it a great choice for building web applications What is the difference between ASP NET Web API and WCF While both ASP NET Web API and Windows Communication Foundation WCF can be used to create web services they have some fundamental differences Web API is more lightweight and is designed to work with HTTP services while WCF is more heavyweight and can be used with a range of communication protocols What is REST REST stands for Representational State Transfer which is a style of software architecture that is used to create web services RESTful services are designed to be simple scalable and flexible and they use HTTP to exchange data between clients and servers What is HTTP HTTP stands for Hypertext Transfer Protocol which is the protocol used by the World Wide Web to exchange data between web servers and clients It s the foundation of the modern web and is used by web browsers servers and other applications to communicate with each other What is a GET request A GET request is an HTTP request that is used to retrieve data from a web server It s one of the most common types of requests used by web browsers and can be used to retrieve information from a range of web resources What is a POST request A POST request is an HTTP request that is used to submit data to a web server It s often used to create new resources or to update existing ones and can be used to send data in a variety of formats including JSON and XML What is a JSON JSON stands for JavaScript Object Notation which is a lightweight data interchange format that is easy to read and write It s used to transmit data between a client and a server and is commonly used in web applications What is XML XML stands for Extensible Markup Language which is a markup language that is used to store and exchange data in a format that is both human readable and machine readable It s commonly used in web services and other applications that require structured data What is a Model in ASP NET Web API A model is a class that is used to represent the data that is being exchanged between a client and a server in an ASP NET Web API application It s used to serialize and deserialize data and can be used to perform validation and other tasks What is a Controller in ASP NET Web API A controller is a class that is used to define the actions that can be performed by an ASP NET Web API application It s used to handle requests from clients and can be used to perform a wide range of tasks including data validation and error handling What is an Action in ASP NET Web API An action is a method on a Web API controller that handles HTTP requests Each action corresponds to a specific HTTP verb such as GET or POST and URL path When a request is made to an API endpoint Web API maps the request to the appropriate action based on the request s HTTP verb and URL path Actions can return any type of data including strongly typed objects HttpResponseMessage objects and IHttpActionResult objects What is the role of a message handler in ASP NET Web API A message handler is responsible for processing incoming HTTP requests and outgoing HTTP responses Message handlers can modify the request or response headers add content to the response body or perform any other processing necessary to handle the request or response Message handlers are executed in a pipeline where each handler in the pipeline has an opportunity to process the request or response What is the difference between IQueryable and IEnumerable in ASP NET Web API IQueryable is used to build a LINQ query that can be executed against a data source while IEnumerable is used to represent a collection of objects in memory IQueryable allows you to create a query that is executed by a data source such as a SQL Server database which can result in improved performance for large data sets What is the purpose of Web API filters Web API filters are used to apply cross cutting concerns to Web API actions Filters can be used to perform authentication validation logging and other common tasks that need to be applied to multiple actions Filters can be applied at the global level to all actions at the controller level to all actions in a specific controller or at the action level to a specific action What is the difference between IHttpActionResult and HttpResponseMessage in ASP NET Web API IHttpActionResult is a return type that allows you to create a strongly typed HTTP response that can be returned from an action IHttpActionResult is a more flexible and testable way to return HTTP responses from Web API actions because it allows you to encapsulate the response logic in a separate class that can be easily unit tested HttpResponseMessage on the other hand is a more low level way to create HTTP responses and is typically used when you need to have full control over the response headers and content What is attribute routing in ASP NET Web API Attribute routing is a feature in ASP NET Web API that allows you to define your API routes using attributes on your controller actions Attribute routing gives you more control over your routing and can be more expressive and readable than convention based routing With attribute routing you can define multiple routes for the same action and you can also use route parameters to define dynamic segments in your URLs What is the role of a formatter in ASP NET Web API A formatter is responsible for serializing and deserializing data between the Web API controller and the HTTP request or response Formatters can handle a variety of data formats including XML JSON and other media types Web API includes several built in formatters and you can also create your own custom formatters if you need to handle a specific data format What is dependency injection in ASP NET Web API Dependency injection is a design pattern that allows you to decouple the creation of an object from its dependencies In ASP NET Web API dependency injection can be used to inject dependencies such as data repositories or logging components into your Web API controllers message handlers or other components Dependency injection allows you to create more modular and testable code and can make it easier to swap out components or modify your application s behavior What is the role of middleware in ASP NET Web API Middleware plays an important role in ASP NET Web API by providing a way to extend and customize the request response processing pipeline Middleware components are responsible for performing tasks such as authentication logging compression caching and more They can be used to modify the request or response add headers or status codes and even short circuit the pipeline by returning a response directly ConclusionIn conclusion the ASP NET Web API is a powerful tool for building web services and APIs in the NET framework Its flexibility and compatibility with various platforms make it a popular choice among developers Whether you are a beginner or an hire dedicated NET developer it is essential to prepare well for ASP NET Web API interviews Knowing the answers to commonly asked questions can help you demonstrate your knowledge and expertise in the field The questions listed in this article cover some of the most important concepts and features of the framework By studying and practicing these questions you can boost your confidence and increase your chances of success in your ASP NET Web API interviews 2023-02-22 09:43:57
海外TECH DEV Community Debounce Input in React https://dev.to/manishkc104/debounce-input-in-react-3726 Debounce Input in ReactDebouncing an input is a technique used to improve web application performance and user experience When a user types into an input field the application may perform several operations such as filtering a list fetching data from an API or performing other processes based on the user s input These operations can be computationally expensive and slow down the application or even cause it to crash if performed too frequently Debouncing an input in React involves setting a delay between when a user types into an input and when the input s value is updated To create a debounce input in react you can use the following steps Solution First we use the useState hook provided by React to store the input variable in a state const inputValue setInputValue React useState Then we create a function called handleInputChange which will handle the input changes and then update the input value with setInputValueconst handleInputChange event gt setInputValue event target value Moving forward we again use the useState hook provided by React to store the debounced input valueconst debouncedInputValue setDebouncedInputValue React useState Now we use the useEffect hook and perform a delay before we update the debouncedInputValue React useEffect gt const delayInputTimeoutId setTimeout gt setDebouncedInputValue inputValue return gt clearTimeout delayInputTimeoutId inputValue milliseconds is used as the delay time to update the deboucedInputValue We can add the time according to our requirements The useEffect will run every time the inputValue changes after which the delay of milliseconds will happen and then the deboucneInputValue get updated with the inputValueNow we can use the debounceInputValue while calling the API or wherever needed Here the full solutionimport React from react const DebounceInput gt const inputValue setInputValue React useState const debouncedInputValue setDebouncedInputValue React useState const handleInputChange event gt setInputValue event target value React useEffect gt const timeoutId setTimeout gt setDebouncedValue inputValue return gt clearTimeout timeoutId inputValue return lt input type text value inputValue onChange handleInputChange gt Solution For this solution we will be using the debounce function from use debounce Firstly we will need to install lodash in our application by running the following commandnpm install use debounceThen we import the debounce function from use debounce in out React componentimport useDebounce from use debounce After the import is done state is declared for storing the input valueconst inputValue setInputValue React useState Then we create a function called handleInputChange which will handle the input changes and then update the input value with setInputValueconst handleInputChange event gt setInputValue event target value Then we will use the useDebounce hook to debounce the input value The first argument of useDebounce takes the input value and the second argument takes the time for the delay Then the hook will return debounced value which is debouncedValue const debouncedValue useDebounce inputValue Now we can use the debouncedValue wherever necessary Here is the full solutionimport React from react import useDebounce from use debounce const DebounceInput gt const inputValue setInputValue React useState const debouncedValue useDebounce inputValue const handleInputChange event gt const value event target value setInputValue value return lt input type text value inputValue onChange handleInputChange gt 2023-02-22 09:10:50
海外TECH DEV Community Power Platform Connectors - Go Custom https://dev.to/wyattdave/power-platform-connectors-go-custom-47if Power Platform Connectors Go CustomThere are so many connectors provided It s over now with new ones coming on line almost daily But I have a cautionary word You may think these are all created by software providers yet anyone can create connectors in fact I hear from Microsoft a lone developer had delivered of them Secondly for some business these are very small volumes meaning there is no motivation in updating and maintaining them Therefore using these out of the box connectors isn t always the right solution especially if the API its built on has good documentation The example that made me go feel this was Service Now I wanted to use the out of the box Connector Provided by Service Now the first thing I noticed was the icon logo it s the old one And I don t mean just old I mean very old ConnectorWebsite IconNow I know an icon doesn t impact the connector but if they haven t update it it makes me think that it s not been updated in a long time or they don t care about it Second thing I noticed was the list of APIs in the connector pretty much just the Table API Now the Table API is by far the most powerful and useful API but it is far from the only one Example there is no way to use Attachment or Email APIs The final thing I found and this was the deal break was how unuser friendly it was In trying to be helpful the connector pulled the schema and showed all of the fields But in some tables there are over fields far too many to navigate through in a long list Yes it really is that long So I decided to make my own Service Now connector which would have all the APIs I need and be a lot user friendly and use the latest icon Before I started I wanted to create some design principles for all my custom connectors My Approach was simple start with CRUD and keep them very flexible in other words have one body input that way I can create my own object Once established I can extend the base connectors with specific use cases these would have set inputs An example would be correspondence emails in Service Now this is based on a table so the Table API would be used but as its a specific use case I will set the parameters to subject body important parent caseThis approach ensures that all requirements can be covered and then over time introduce simpler parameters to make high use actions more user friendly Creating a custom connector is a lot easier than it sounds you have very easy ways to create the connector Import OpenAPI file Swagger Create From Blank there are more including Import a Postman Collection but I always seem to have issues when I tried it the first always work Using OpenAPI Swagger is by far the best and simplest way Extract the API from its swagger page Import OpenAPI file add icon descriptions and authentication and you are done What s great about swagger files is references reusable parameters and response schemas allow different schemas for successful and failed responses are easily added Creating From Blank is more like a wizard then actually from blank Setting up API s is often as simple as entering an example query and response from this the custom connector creates the actions for you I won t go into exact detail on how to create a custom connector there are already load of great guides including from MS learn see links at the bottom of the page Though one top tip is to leverage the swagger view of the connector this allows for quick edits of the connector So after a small amount of work I was able to create my own Service Now connector fully functional to all my requirements easier to use and better looking As you can see there are many benefits to going custom and I would recommend it but there are a couple of caveats You own the life cycle so any updates to the api you have to do this can also be a benefit if the conenctor owner is slow to do updates The connector has to be added to all environments it is used in not too challenging but another admin task including pushing out uupdates to the connector to all environments Further Reading 2023-02-22 09:01:30
海外TECH DEV Community How to install Symfony with Flowbite and Tailwind CSS https://dev.to/themesberg/how-to-install-symfony-with-flowbite-and-tailwind-css-1o06 How to install Symfony with Flowbite and Tailwind CSSSymfony is one of the definitive web application frameworks in the PHP ecosystem offering over standalone PHP components and a MVC framework for your web application that you can use to build complex applications website pages and even API services The Symfony PHP framework was first launched as an open source software back in by SensioLabs SAS and it is currently used by numerous companies and frameworks including Laravel Spotify BlaBlaCar Trivago Dailymotion and more Follow the steps from this guide to learn how to create a new Symfony project on your local computer install and configure the Tailwind CSS framework and finally install Flowbite and leverage the open source UI components to build websites even faster RequirementsMake sure that before you get started you have both PHP v or higher Composer and Node js installed on your local environment so that Symfony Tailwind CSS and Flowbite can be properly set up and configured Create a Symfony projectThe most straightforward approach for creating a new Symfony project is to use the official Symfony CLI installer which you can easily install on macOS and Linux devices using Homebrew brew install symfony cli tap symfony cliFor devices running on Windows you can also install the Symfony CLI using Scoop scoop install symfony cliNow that you have the CLI available you can proceed by creating a new project Create a new Symfony project by running the following command inside your terminal symfony new webapp my applicationThis command will create a new folder with a fresh Symfony project installation inside Install the recommended Symfony Webpack Encore bundle to enable front end integration via Composer composer require symfony webpack encore bundleRun the following command in your terminal to start a local web server symfony server startThis command will make the web application accessible via the browser on http localhost To deploy your application on a server we recommend you to check out the official production deployment tools and bundlers that Symfony provides out of the box such as Deployer Ansistrano or Fabric Now that you have a working Symfony application on your local computer we can proceed with installing and setting up Tailwind CSS Install Tailwind CSSTailwind CSS is a popular and open source utility first CSS framework that allows you to code styles directly inside your HTML based on preconfigured classes that will speed up your UI front end development Run the following command to require and install Tailwind CSS and PostCSS via NPM npm install save dev tailwindcss postcss autoprefixer postcss loaderGenerate the Tailwind CSS configuration files by running the following command npx tailwindcss init pThis will create two new tailwind config js and postcss config js configuration files Update the template paths to indicate where Tailwind CSS utility classes will be used tailwind config jsmodule exports content assets js templates html twig theme extend plugins Import the base Tailwind directives inside the default assets styles app css file tailwind base tailwind components tailwind utilities Enable the PostCSS loader plugin by adding it to the Webpack config file webpack config jsEncore other plugins enablePostCssLoader more pluginsRun the following command to compile the front end assets via Webpack npm run watchLet s create a new homepage entry file by configuring the Symfony routes file config routes ymlindex path controller App Controller DefaultController indexCreate a new DefaultController and set up the path for a new Twig template file lt php src Controller DefaultController phpnamespace App Controller use Symfony Bundle FrameworkBundle Controller AbstractController class DefaultController extends AbstractController return Symfony Component HttpFoundation Response public function index return this gt render index html twig Create a new index html twig inside the templates folder and add a couple of header and hero sections from the Flowbite Blocks collection extends base html twig block body lt header gt lt nav class bg white border gray px lg px py dark bg gray gt lt div class flex flex wrap items center justify between max w screen xl mx auto gt lt a href class flex items center gt lt img src class h mr sm h alt Flowbite Logo gt lt span class self center text xl font semibold whitespace nowrap dark text white gt Flowbite lt span gt lt a gt lt div class flex items center lg order gt lt a href class text gray dark text white hover bg gray focus ring focus ring gray font medium rounded lg text sm px lg px py lg py mr dark hover bg gray focus outline none dark focus ring gray gt Log in lt a gt lt a href class text white bg blue hover bg blue focus ring focus ring blue font medium rounded lg text sm px lg px py lg py mr dark bg blue dark hover bg blue focus outline none dark focus ring blue gt Get started lt a gt lt button data collapse toggle mobile menu type button class inline flex items center p ml text sm text gray rounded lg lg hidden hover bg gray focus outline none focus ring focus ring gray dark text gray dark hover bg gray dark focus ring gray aria controls mobile menu aria expanded false gt lt span class sr only gt Open main menu lt span gt lt svg class w h fill currentColor viewBox xmlns gt lt path fill rule evenodd d M a ha Ha zM a ha Ha zM a ha Ha z clip rule evenodd gt lt path gt lt svg gt lt svg class hidden w h fill currentColor viewBox xmlns gt lt path fill rule evenodd d M a L l a L l a L l a L a z clip rule evenodd gt lt path gt lt svg gt lt button gt lt div gt lt div class items center justify between hidden w full lg flex lg w auto lg order id mobile menu gt lt ul class flex flex col mt font medium lg flex row lg space x lg mt gt lt li gt lt a href class block py pl pr text white bg blue rounded lg bg transparent lg text blue lg p dark text white aria current page gt Home lt a gt lt li gt lt li gt lt a href class block py pl pr text gray border b border gray hover bg gray lg hover bg transparent lg border lg hover text blue lg p dark text gray lg dark hover text white dark hover bg gray dark hover text white lg dark hover bg transparent dark border gray gt Company lt a gt lt li gt lt li gt lt a href class block py pl pr text gray border b border gray hover bg gray lg hover bg transparent lg border lg hover text blue lg p dark text gray lg dark hover text white dark hover bg gray dark hover text white lg dark hover bg transparent dark border gray gt Marketplace lt a gt lt li gt lt li gt lt a href class block py pl pr text gray border b border gray hover bg gray lg hover bg transparent lg border lg hover text blue lg p dark text gray lg dark hover text white dark hover bg gray dark hover text white lg dark hover bg transparent dark border gray gt Features lt a gt lt li gt lt li gt lt a href class block py pl pr text gray border b border gray hover bg gray lg hover bg transparent lg border lg hover text blue lg p dark text gray lg dark hover text white dark hover bg gray dark hover text white lg dark hover bg transparent dark border gray gt Team lt a gt lt li gt lt li gt lt a href class block py pl pr text gray border b border gray hover bg gray lg hover bg transparent lg border lg hover text blue lg p dark text gray lg dark hover text white dark hover bg gray dark hover text white lg dark hover bg transparent dark border gray gt Contact lt a gt lt li gt lt ul gt lt div gt lt div gt lt nav gt lt header gt lt section class bg white dark bg gray gt lt div class max w screen xl px py mx auto text center lg py lg px gt lt a href class inline flex items center justify between px py pr text sm text gray bg gray rounded full mb dark bg gray dark text white hover bg gray dark hover bg gray role alert gt lt span class text xs bg blue rounded full text white px py mr gt New lt span gt lt span class text sm font medium gt Flowbite is out See what s new lt span gt lt svg class w h ml fill currentColor viewBox xmlns gt lt path fill rule evenodd d M a L a l a l a z clip rule evenodd gt lt path gt lt svg gt lt a gt lt h class mb text xl font extrabold leading none tracking tight text gray md text xl lg text xl dark text white gt We invest in the world s potential lt h gt lt p class mb text lg font normal text gray lg text xl sm px xl px dark text gray gt Here at Flowbite we focus on markets where technology innovation and capital can unlock long term value and drive economic growth lt p gt lt div class flex flex col mb space y lg mb sm flex row sm justify center sm space y sm space x gt lt a href class inline flex items center justify center px py text base font medium text center text white bg blue rounded lg hover bg blue focus ring focus ring blue dark focus ring blue gt Learn more lt svg class w h ml mr fill currentColor viewBox xmlns gt lt path fill rule evenodd d M a l a l a L Ha hl a z clip rule evenodd gt lt path gt lt svg gt lt a gt lt a href class inline flex items center justify center px py text base font medium text center text gray border border gray rounded lg hover bg gray focus ring focus ring gray dark text white dark border gray dark hover bg gray dark focus ring gray gt lt svg class w h mr ml fill currentColor viewBox xmlns gt lt path d M a ha va Ha VzM A va l A Va l z gt lt path gt lt svg gt Watch video lt a gt lt div gt lt div class px mx auto text center md max w screen md lg max w screen lg lg px gt lt span class font semibold text gray uppercase gt FEATURED IN lt span gt lt div class flex flex wrap items center justify center mt text gray sm justify between gt lt a href class mb mr lg mb hover text gray dark hover text gray gt lt svg class h viewBox fill none xmlns gt lt path d M C C C C C C C C C C C C Z fill currentColor gt lt path d M VL L Z fill white gt lt path d M C C VC C C C C C VC C C C ZM C VC C C C VC C C Z fill currentColor gt lt path d M VC C C C C L C C C C C VC C C C C VHVZM C C VHVC C C C Z fill currentColor gt lt path d M L HL C HC L HL VHVHZ fill currentColor gt lt path d M VHL HC C C VHVC C C C VHZ fill currentColor gt lt path d M VHL HC C C VHVC C C C VHZ fill currentColor gt lt path d M HVHVHVHVZ fill currentColor gt lt path d M C C C C HVHVHL HC C C C VC ZM C C C C C VC C C C C VHZ fill currentColor gt lt svg gt lt a gt lt a href class mb mr lg mb hover text gray dark hover text gray gt lt svg class h viewBox fill none xmlns gt lt path d M C C C C Z fill currentColor gt lt path d M HVHC C C C C C C C ZM HVHVHC C Z fill white gt lt path d M C HVHC HZM VHC C HVHHZM VHVC VC C VHHZM C C C C HZM C C C C ZM VC C C C VZM VC C C C VHVHZM VC C VHVC C VHVHZM C C L C C C C L C C ZM VHVHVHVHVHVC C L C C ZM VHVHVHVHVHVHZM VC C VHVC C VHVHZM VC C VHVHVC C VHHZM VHVHVHVHVHVC C L C C fill currentColor gt lt svg gt lt a gt lt a href class mb mr lg mb hover text gray dark hover text gray gt lt svg class h viewBox fill none xmlns gt lt path d M C C C C Z fill currentColor gt lt path d M C C C L L C C C C L C C L C C C C C C C C C ZM C C C C ZM C C C C C C C C ZM C C C C Z fill white gt lt path d M C C C C Z fill currentColor gt lt path d M C C C C C C C C C C HVZM C HC ZM C C VC C VC C VC HC ZM C C VC C VZM C C VC C C C C C VZM C C C C ZM C C VC C C C C C VZM C C C C ZM VHC C HVC C VHC C HVC C Z fill currentColor gt lt svg gt lt a gt lt div gt lt div gt lt div gt lt section gt endblock A brand new header and hero section should now be visible on the homepage of your Symfony application s local development server supporting Tailwind CSS Let s now proceed by installing Flowbite to enable interactive UI components Install FlowbiteFlowbite is a free and popular open source UI component library built on top of the utility classes from Tailwind CSS featuring interactive UI elements such as dropdowns navbars modals and also an ecosystem of website sections templates plugins tools and more that you can leverage to build websites even faster Install the Flowbite package via NPM in your terminal npm install flowbiteRequire the Flowbite plugin and set up the template paths inside the configuration file tailwind config jsmodule exports content assets js templates html twig node modules flowbite js set up the path to the flowbite package theme extend plugins require flowbite plugin add the flowbite plugin Inside the assets app js file you can import the Flowbite package to enable interactivity of the UI components Welcome to your app s main JavaScript file We recommend including the built version of this JavaScript file and its CSS file in your base layout base html twig any CSS you import will output into a single css file app css in this case import styles app css start the Stimulus applicationimport bootstrap enable the interactive UI components from Flowbiteimport flowbite This will enable all of the interactive and dynamic UI components such as the dropdowns modals navbars and other to work out of the box Webpack will automatically bundle the final JavaScript file which improves speed and performance Check out the Flowbite Quickstart guide to learn about the different ways you can set up the JS interactivity whether that s via CDN using the data attributes interface leveraging TypeScript or programmatically working with the UI components and object classes Flowbite componentsNow that you have all of the technologies successfully set up in your Symfony project you can finally start building websites quickly and efficiently leveraging both the utility classes from Tailwind CSS the pre built UI components from Flowbite and the framework structure from Symfony Let s start by adding a simple modal authentication component from the Flowbite Library when clicking on the login button from the header lt button type button data modal target authentication modal data modal toggle authentication modal class text gray dark text white hover bg gray focus ring focus ring gray font medium rounded lg text sm px lg px py lg py mr dark hover bg gray focus outline none dark focus ring gray gt Log in lt button gt lt div id authentication modal tabindex aria hidden true class fixed top left right z hidden w full p overflow x hidden overflow y auto md inset h modal md h full gt lt div class relative w full h full max w md md h auto gt lt Modal content gt lt div class relative bg white rounded lg shadow dark bg gray gt lt button type button class absolute top right text gray bg transparent hover bg gray hover text gray rounded lg text sm p ml auto inline flex items center dark hover bg gray dark hover text white data modal hide authentication modal gt lt svg aria hidden true class w h fill currentColor viewBox xmlns gt lt path fill rule evenodd d M a L l a L l a L l a L a z clip rule evenodd gt lt path gt lt svg gt lt span class sr only gt Close modal lt span gt lt button gt lt div class px py lg px gt lt h class mb text xl font medium text gray dark text white gt Sign in to our platform lt h gt lt form class space y action gt lt div gt lt label for email class block mb text sm font medium text gray dark text white gt Your email lt label gt lt input type email name email id email class bg gray border border gray text gray text sm rounded lg focus ring blue focus border blue block w full p dark bg gray dark border gray dark placeholder gray dark text white placeholder name company com required gt lt div gt lt div gt lt label for password class block mb text sm font medium text gray dark text white gt Your password lt label gt lt input type password name password id password placeholder •••••••• class bg gray border border gray text gray text sm rounded lg focus ring blue focus border blue block w full p dark bg gray dark border gray dark placeholder gray dark text white required gt lt div gt lt div class flex justify between gt lt div class flex items start gt lt div class flex items center h gt lt input id remember type checkbox value class w h border border gray rounded bg gray focus ring focus ring blue dark bg gray dark border gray dark focus ring blue dark ring offset gray dark focus ring offset gray required gt lt div gt lt label for remember class ml text sm font medium text gray dark text gray gt Remember me lt label gt lt div gt lt a href class text sm text blue hover underline dark text blue gt Lost Password lt a gt lt div gt lt button type submit class w full text white bg blue hover bg blue focus ring focus outline none focus ring blue font medium rounded lg text sm px py text center dark bg blue dark hover bg blue dark focus ring blue gt Login to your account lt button gt lt div class text sm font medium text gray dark text gray gt Not registered lt a href class text blue hover underline dark text blue gt Create account lt a gt lt div gt lt form gt lt div gt lt div gt lt div gt lt div gt After setting up the data modal target modalId and data modal toggle modalId data attributes for the button component and copy pasting the modal example clicking on the login button will now show a modal element with a user sign in form that you can use to authenticate users directly from your homepage You can check out the full collection of UI components by visiting Flowbite Blocks and Flowbite Library Symfony starter projectThe awesome open source community from Flowbite created a Symfony and Tailwind CSS starter project that you can use to skip this integration guide and use it as starting point for your future Symfony Tailwind CSS and Flowbite projects 2023-02-22 09:01:20
海外TECH Engadget Twitter will now alert you if a tweet you interacted with gets a Community Note https://www.engadget.com/twitter-will-now-alert-you-if-a-tweet-you-interacted-with-gets-a-community-note-095039327.html?src=rss Twitter will now alert you if a tweet you interacted with gets a Community NoteFake news can travel fast on Twitter when amplified by likes and retweets but now you ll be alerted if you ve been an accessory to one of those lies Starting today you ll be notified if a tweet you ve liked replied to or retweeted receives a Community Note showing possible misinformation the company said in a tweet spotted by TechCrunch nbsp quot Starting today you ll get a heads up if a Community Note starts showing on a Tweet you ve replied to Liked or Retweeted This helps give people extra context that they might otherwise miss quot Twitter s Community Notes account tweeted CEO Elon Musk lauded the effort in a quote tweet calling Community Notes a quot game changer for combating wrong information quot nbsp Starting today you ll get a heads up if a Community Note starts showing on a Tweet you ve replied to Liked or Retweeted This helps give people extra context that they might otherwise miss pic twitter com LIcGglzdJーCommunity Notes CommunityNotes February Community Notes launched in as Birdwatch a quot community driven approach quot that crowdsources fact checks directly from other Twitter users Twitter now relies on it more than ever though as it has laid off a large number of content moderators Notes are viewable by all users across the globe but only people from the US UK Ireland Australia and New Zealand can contribute them at the moment nbsp Since they re crowdsourced Community Notes are far from reliable In a recent example a researcher investigating Twitter Blue noted that a number of high profile accounts including Tesla had halted their subscriptions to the service A Community Note insisted that was wrong because Tesla was already a verified business so it couldn t also be subscribed to Twitter Blue However Twitter s own data via its official API showed that Tesla did indeed unsubscribe from Twitter Blue and the Community Note was subsequently removed nbsp 2023-02-22 09:50:39
ラズパイ Raspberry Pi Supporting beginner programmers in primary school using TIPP&SEE https://www.raspberrypi.org/blog/teaching-programming-in-primary-school-tippsee/ Supporting beginner programmers in primary school using TIPP amp SEEEvery young learner needs a successful start to their learning journey in the primary computing classroom One aspect of this for teachers is to introduce programming to their learners in a structured way As computing education is introduced in more schools the need for research informed strategies and approaches to support beginner programmers is growing Over The post Supporting beginner programmers in primary school using TIPP amp SEE appeared first on Raspberry Pi 2023-02-22 09:27:39
金融 金融庁ホームページ 入札公告等を更新しました。 https://www.fsa.go.jp/choutatu/choutatu_j/nyusatu_menu.html 公告 2023-02-22 11:00:00
海外ニュース Japan Times latest articles Japan accepted over 2,300 Ukrainians last year. Is its refugee policy finally changing? https://www.japantimes.co.jp/news/2023/02/22/national/tokyo-refugee-policy/ Japan accepted over Ukrainians last year Is its refugee policy finally changing Many were surprised with Prime Minister Fumio Kishida s decision to accept Ukrainians into the country given Tokyo has long held a strict definition of who 2023-02-22 18:25:23
ニュース BBC News - Home JK Rowling dismisses backlash over trans comments: 'I don't care about my legacy' https://www.bbc.co.uk/news/entertainment-arts-64729304?at_medium=RSS&at_campaign=KARANGA backlash 2023-02-22 09:06:18
ニュース BBC News - Home Train firms sorry after information systems outage https://www.bbc.co.uk/news/business-64729314?at_medium=RSS&at_campaign=KARANGA journey 2023-02-22 09:43:41
ニュース BBC News - Home Liverpool 2-5 Real Madrid: Jurgen Klopp says Champions League last-16-tie 'is over' https://www.bbc.co.uk/sport/av/football/64730455?at_medium=RSS&at_campaign=KARANGA Liverpool Real Madrid Jurgen Klopp says Champions League last tie x is over x Liverpool manager Jurgen Klopp says at the moment he feels that his side s Champions League last tie against Real Madrid is already over after the European champions won at Anfield 2023-02-22 09:47:36
マーケティング MarkeZine 【BtoBマーケターにおすすめ】リード獲得からナーチャリングの効率化につなげるMA活用法 http://markezine.jp/article/detail/41463 獲得 2023-02-22 18:30:00
IT 週刊アスキー 桜をモチーフにした和風スイーツが優雅なティータイムを演出! 「桜といちごの和風アフタヌーンティー」 https://weekly.ascii.jp/elem/000/004/126/4126065/ 和風スイーツ 2023-02-22 18:45:00
IT 週刊アスキー マネーフォワード IT管理クラウド、「マネーフォワード Admina(アドミナ)」にサービス名称を変更 https://weekly.ascii.jp/elem/000/004/126/4126064/ admina 2023-02-22 18:30:00
IT 週刊アスキー 開梱や片付けが非常にラク!PlayStation VR2(PS VR2)発売直前の先行プレイレビュー https://weekly.ascii.jp/elem/000/004/125/4125695/ playstationvr 2023-02-22 18:15:00
IT 週刊アスキー 中小企業から電気代削減の相談が昨年同時期比3.5倍以上増加 エネクラウド発表 https://weekly.ascii.jp/elem/000/004/126/4126061/ 中小企業 2023-02-22 18:10:00

コメント

このブログの人気の投稿

投稿時間: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件)