投稿時間:2023-04-04 00:26:15 RSSフィード2023-04-04 00:00 分まとめ(35件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… ソニーの新型ワイヤレスイヤホン「WF-C700N」が早くも米国の量販店に登場 ー 120ドルで4月21日に発売予定 https://taisy0.com/2023/04/03/170312.html bestbuy 2023-04-03 14:08:57
python Pythonタグが付けられた新着投稿 - Qiita C++による格子ボルツマン法を用いた二次元キャビティ流れのシミュレーション https://qiita.com/shohirose/items/0b798bf1560be8ef2565 格子ボルツマン法 2023-04-03 23:50:42
python Pythonタグが付けられた新着投稿 - Qiita 身も蓋も無えprint(end="Hello, world") https://qiita.com/CURRY-AND-RICE/items/eec0a8d4cd4dd61779e9 endquothelloworldquot 2023-04-03 23:00:28
js JavaScriptタグが付けられた新着投稿 - Qiita Firebaseを使った食堂の売切れ情報管理アプリ https://qiita.com/mabupro/items/9b4adcef8019b27a8a53 firebase 2023-04-03 23:30:44
js JavaScriptタグが付けられた新着投稿 - Qiita npmコマンドよく使う集 https://qiita.com/pappychamp/items/1f9a066f9fed35e62578 packagejson 2023-04-03 23:16:05
js JavaScriptタグが付けられた新着投稿 - Qiita モジュール管理システム https://qiita.com/pappychamp/items/f4932870d8ece79c3ad0 common 2023-04-03 23:13:44
js JavaScriptタグが付けられた新着投稿 - Qiita p5.js で利用する内蔵/Webカメラ映像を特定のデバイス名のものに設定する(配列メソッドと MediaDevices.enumerateDevices() を利用) https://qiita.com/youtoy/items/a77d193fcd50a8151f17 devicesenumeratedevices 2023-04-03 23:07:34
AWS AWSタグが付けられた新着投稿 - Qiita リストファイルに記載したFQDNから、curlを実行してレスポンスを記録するbashスクリプト https://qiita.com/If_it_bleeds-we_can_kill_it/items/5aaa98d3d75b529ddab3 調べ 2023-04-03 23:59:18
AWS AWSタグが付けられた新着投稿 - Qiita AWSの請求書PDFを毎月支払い者に送付する https://qiita.com/taikis/items/fbe725688408c7c248fc 送付 2023-04-03 23:39:16
GCP gcpタグが付けられた新着投稿 - Qiita Google Cloudアップデート (3/23-3/29/2023) https://qiita.com/kenzkenz/items/b8a408e6acb42e0bcbb4 cloud 2023-04-03 23:00:58
技術ブログ Developers.IO GitHub Copilot for Pull Requests(Technical Preview)のWaitlistに登録してみた https://dev.classmethod.jp/articles/github-copilot-for-pull-requests-waitlist/ copilotfo 2023-04-03 14:54:31
技術ブログ Developers.IO クラスメソッドコリアにジョインしました大村です! https://dev.classmethod.jp/articles/cmkr_joined_omura_202304/ 自己紹介 2023-04-03 14:07:56
技術ブログ Developers.IO クラスメソッドコリアにジョインしました渡辺です! https://dev.classmethod.jp/articles/cmkr_joined_wakanabe_202304/ 自己紹介 2023-04-03 14:03:28
技術ブログ Developers.IO EventBridge のイベントパターンで AWS Health の一部イベント通知を抑止してみた https://dev.classmethod.jp/articles/filtering-health-event-on-eventbridge-with-event-pattern/ anythingbut 2023-04-03 14:00:49
海外TECH MakeUseOf How to Hide Chats on WhatsApp With Archiving https://www.makeuseof.com/how-to-hide-whatsapp-chats-archive/ messages 2023-04-03 14:30:17
海外TECH MakeUseOf What Is Apple's WWDC Event and Why Does It Matter? https://www.makeuseof.com/apple-wwdc-event-explained/ apple 2023-04-03 14:12:22
海外TECH MakeUseOf 9 Ways to Fix Instagram Reels Not Working https://www.makeuseof.com/instagram-reels-not-working-fixes/ instagram 2023-04-03 14:05:16
海外TECH DEV Community Contribute to the Python-like Nim language https://dev.to/ringabout/contribute-to-the-python-like-nim-language-36b2 Contribute to the Python like Nim language Progress choresfixes changelogfixes booting warnings create type bound operations for calls in the method dispatcher for ORCfixes create type bound operations for calls in the method dispatcher for ORCimport std optionstype Event object code stringtype App ref object of RootObj id stringmethod process self App Option Event base raise Exception new exception not impl It now works Write an RFC for adding compiler support for object construction shorthandcompiler support for object construction shorthand PR disable BareExcept warning in panics on modedisable BareExcept warning in panics on modetry raise newException CatchableError catched except discardWith panics on the compiler does not give BareExcept warnings PR warn on overloaded copy with refcfixes fixes warn on overloaded copy with refc PR implement dup hook eliminating wasMoved and copy pairsimplement dup hook eliminating wasMoved and copy pairsproc dup s ref ref dest src if src nil nimIncRef srcThe dup hook is for optimization The compiler sometimes generates wasMoved x copy x y But wasMoved is unnecessary in this case since it is going to be rewritten for sure It should be replaced by x dup y instead Weekly collection Participating in contributionsFollowing The Roadmap for community building you could join us in the matrix space where we discuss how to build a community We appreciate doable suggestions and helps such as improving the workflow implementing the roadmap suggesting doable tasks reviewing code from contributors United we stand We shall work together to make the community thrive SponsorshipMany thanks to Yepoleb lenis pietroppeter Clonkk mode Phil CxPlanner shirleyquirk elcritch geotre thinkwelltwd xrfez enthusast piertoni Dnanilem gemath for sponsoring me on GitHub 2023-04-03 14:49:37
海外TECH DEV Community How I improve my skills in Typescript #2 : Mapped Type https://dev.to/codeoz/how-i-improve-my-skills-in-typescript-2-mapped-type-dag How I improve my skills in Typescript Mapped TypeI will share with us some tips that improved my skill in Typescript Today we will learn how to use Mapped Type What is and why use Mapped Type Using mapped type is usefull when need to create a derived type from another type and keep both syncLet s check an exemple to understand type User name string age number userName string type UserPermissions canUpdateName boolean canUpdateAge boolean canUpdateUserName boolean Here we can see similar thing between User amp UserPermissions type Is there any solutions to link both type Because we don t want to add manually property in UserPermissions every time we add a new property in User type The answer is yes and the solution is named Mapped type Mapped type The basics Create the same typeBefore answering to the issue above let s see how Mapped type is working We will create a type from User type to begin let s create the EXACT SAME type type User name string age number userName string type UserCopy Property in keyof User User Property If you check Usercopy type you will see thistype UserCopy name string age number userName string But why we are doing this we create the same type as User I choose a basic example to see you how Mapped type is working I will try to explain you what the f ck is going on type UserCopy Property in keyof User User Property First We are iterate each key in the User type with the in keyof operator frequently used when using mapped type each key is contains in the variable Property name age userName After this we assign the value of each property with the dedicated value in User Property Visually we are gonna something like Start Property in keyof User User Property Iterate to the first propery of User name User name so we get the following typing name stringIterate to the second propery of User age User age so we get the following typing age numberIterate to the last propery of User userName User userName so we get the following typing userName string After iterating on each key we get a new Type that is the same type as User Edit value from type to typeWe can also edit the property value type like type UserCopy Property in keyof User boolean And get something liketype UserCopy name boolean age boolean userName boolean We begin to see the power of Mapped type If we are adding a new property in User type it will be automatically added to the UserCopy type without doing anything Don t forget developer are Lazy Mapped type mapping modifierLet s play with Mapped type from now We will use mapping modifier on mapped type If I need to create the folowing type UserReadonlyProperty that is the User type with readonly flag on each keys I can create something like type User name string age number userName string type UserCopy readonly Property in keyof User User Property type UserCopy readonly name string readonly age number readonly userName string Wow it s interesting We direclty assign readonly flag on each key We can also do the opposite thing We just need to use before readonly to remove all readonly flag from type type User readonly name string readonly age number readonly userName string type UserCopy readonly Property in keyof User User Property We Get this type UserCopy name string age number userName string This is called mapping modifier and we have another mapping modifier that I need to show you the Optional mapping modifier type User name string age number userName string type UserCopy Property in keyof User User Property We Get this type UserCopy name string undefined age number undefined userName string undefined As you can see we can add readonly and optionnal flag on key but we can also remove them By using the flags Property in keyof User User Property type User name string age number userName string type UserCopy Property in keyof User User Property We Get this type UserCopy name string age number userName string And finally we can combine both type User name string age number userName string type UserCopy readonly Property in keyof User User Property We Get this type UserCopy readonly name string undefined readonly age number undefined readonly userName string undefined Mapped type Key remaping with asWe see the mapping modifier that is a very nice feature combined with mapped type So now let s go more deeper in mapped type Literals stringWe can remaping key using literals string type User name string age number userName string type RenameKey lt Type gt Property in keyof Type as canUpdate string amp Property Type Property type UserCopy RenameKey lt User gt We Get this type UserCopy canUpdatename string canUpdateage number canUpdateuserName string Use as permits to change the key value and keep it in the new value Let s destructure the synthax step by step We iterate through Type key s so we get name age and userName In each iteration we rename the key value as canUpdate Property so we are gettingcanUpdatenamecanUpdateagecanUpdateuserName If we pay attention on the synthax we can see the string amp Property synthax Why are we needing to use string value here I will create a dedicated article on this but to summarize it we need to tell to TS that the key is a string and not a symbol because we cannot use symbol in literals string other key type like number of bingint will be corce to string As you can see remaping key is very powefull combined to mapped type But there is a little issue here we get canUpdatename not canUpdateName How can we achieve this Intrinsic stringTo help with string manipulation TypeScript includes a set of types which can be used in string manipulation and we are going to use it now in order to transform canUpdatename to canUpdateName type User name string age number userName string type Copy lt Type gt Property in keyof Type as canUpdate Capitalize lt string amp Property gt Type Property type UserCopy Copy lt User gt We Get this type UserCopy canUpdateName string canUpdateAge number canUpdateUserName string We do it Use intrinsic string allow us to Capitalize string value Here we capitalize the Key value from User type We can also use intrinsic string out of mapped type context type LowercaseGreeting hello world type Greeting Capitalize lt LowercaseGreeting gt Hello worldThere are other Intrinsic string here Type utilsI repeat it again but Mapped type are powerfull we can rename each key from a type to create another type we can use intrinsic string to manipulate string There is another things to do with them We can use Type Utils if you don t know what is this check my last article about Typescript tips or go here If we need to exclude a set of keys from a type to create a transformed type we can use mapped type combined with Type Utils type User name string age number userName string type CopyWithoutKeys lt Type Keys gt Property in keyof Type as Exclude lt Property Keys gt Type Property type UserCopyWithoutNameAndUsername CopyWithoutKeys lt User name userName gt We Get this type UserCopyWithoutNameAndUsername age number I think you get the Mapped type synthax and concept And of course we can use all features that we seen before Bonus Get all values type from a Mapped typeA bonus for all people that read until this section You can get all key s values type from mapped type and type type User name string age number userName string isAdmin boolean type CopyWithoutKeys lt Type gt Property in keyof Type Type Property type UserCopy CopyWithoutKeys lt User gt type UserCopyValueTypes UserCopy keyof UserCopy string number booleanNote that I added isAdmin key without adding it in UserCopy type this is the magic of Mapped Type Advanced concept with Mapped type Never as value in key pairLet s see what happened when you use Never as key value with mapped type Never as key with mapped typeIf you add a condition during key iteration when using mapped type with a never case it will produce something cooltype isA lt T gt T extends a never Ttype To lt T gt P in keyof T as isA lt P gt T P type Toto To lt a b c gt b c When you set a key with the never value it will be Omit from the final type Never as value with mapped typeAs we seen before using never can lead to some usefull tricks about mapped type but what is happening if you are using never as value type To lt T gt P in keyof T T P extends never never P type Toto To lt a b c never gt a a b b c never As you can see never as value is not Omit like never as key Use never as value can be used to remove some key value depending on a condition so if you need to do this use your condition at key level type PropertyKey string number symbol type isA lt T extends Record lt PropertyKey unknown gt P extends PropertyKey gt T P extends Your condition never Ptype To lt T extends Record lt PropertyKey unknown gt gt P in keyof T as isA lt T P gt T P type Toto To lt a b c gt b c In the example above we remove all key value with a value equal to we add the condition at the key level so the never value will be automatically Omit I hope you like this reading ️You can SUPPORT MY WORKS ‍ ️You can follow me on Twitter ‍Github For french developper you can check my YoutubeChannelAnd you can mark this article 2023-04-03 14:43:34
海外TECH DEV Community Laravel for Beginners #1 - Getting Started https://dev.to/ericnanhu/laravel-for-beginners-1-43kn Laravel for Beginners Getting StartedThis tutorial is based on Laravel Download source code here ️Laravel is a free open source PHP web framework that is widely used for web application development It is known for its elegant syntax tools for common tasks such as routing authentication and caching and its ability to handle high traffic Laravel follows the model view controller MVC architectural pattern and includes built in support for object relational mapping ORM and query builder making it easy to interact with databases Additionally it boasts a large and active community that provides a wealth of tutorials packages and other resources for developers to use Laravel is considered one of the most popular and powerful web frameworks for PHP and is trusted by many businesses and organizations to build robust and scalable web applications This tutorial explains the basic use of the Laravel framework by building a simple blogging system Without further ado let s get started Creating a fresh Laravel projectSetting up a PHP dev environment is not a easy task especially if you are using Linux systems But luckily since the release of Laravel it has offered us with a new tool called Sail a easy solution for running Laravel applications through Docker regardless of which operating system you are on as long as you have Docker installed First create a new work directory we ll call it laravel tutorial Open the working directory in VS Code and execute the following command to create a fresh Laravel project Make sure Docker in up and running before you execute the command This process could take to minutes to complete please be patient here curl s app name gt bashNote If you are working on Windows make sure you are running this command inside WSL Next change into the app directory and start the server cd lt app name gt vendor bin sail upThis command will start the Docker container as well as the Laravel dev server You can access the Laravel app at http localhost If http localhost doesn t work try going to instead You should see the following Laravel welcome page Exploring Laravel application structureBefore we start coding let s look at what has been created inside our project Here is an overview of the project root directory ├ーapp│├ーConsole│├ーExceptions│├ーHttp││├ーControllers││└ーMiddleware│├ーModels│└ーProviders├ーbootstrap├ーconfig├ーdatabase│├ーfactories│├ーmigrations│└ーseeders├ーpublic├ーresources│├ーcss│├ーjs│└ーviews├ーroutes├ーstorage│├ーapp│├ーframework│└ーlogs├ーtests│├ーFeature│└ーUnit└ーvendorThe app directory This directory is the core component of our project most importantly the controllers middleware and models The controller defines the core logic of the app the middleware defines what actions should be taken before the controller is called and the model provides an interface allowing us to deal with databases We ll discuss each of them in detail later The bootstrapdirectory This directory contains the app php file which bootstraps the entire project You don t need to modify anything in this directory The config directory As the name suggests it contains the configuration files We don t need to care about these configurations in this tutorial The database directory Contains migration files factories and seeds The migration files describes the structure of the database The factories and seeds are two different ways we can fill the database with dummy data in Laravel The public directory Contains index php which is the entry point of our app The resources directory Contains view files which is the frontend part of a Laravel application The routes directory Contains all URL routers for our project The storage directory A storage space for the entire project Contains logs compiled views as well as user uploaded files The tests directory Contains test files Testing is a relatively more advanced subject in Laravel so we are not going to cover it in this tutorial but you may check the linked article for more details on testing in Laravel The vendor directory Includes all dependencies Environmental variablesNext we also need to take a closer look at the environmental variables All the environmental variables are stored in the env file Since we created our project using Laravel Sail a lot of configurations are set by default but we still need to talk about what they do App URLThe APP URL variable defines the URL of the application By default it is http localhost but you might need to change it to if http localhost is giving you the apache default page APP URL APP URL http localhostDatabaseBy default Laravel Sail will installed MySQL as the database application and the database connections are defined as follows DB CONNECTION mysqlDB HOST mysqlDB PORT DB DATABASE curl demoDB USERNAME sailDB PASSWORD passwordIf you need to you may also define your own custom environmental variables and then you can access them anywhere in this project CUSTOM VARIABLE trueThis variable can be accessed like this env CUSTOM VARIABLE true The second parameter is the default value if CUSTOM VARIABLE does not exist then the second parameter will be returned instead Basic routing in LaravelIn this section we are going to look at Laravel s route and middleware In Laravel the routes are defined in the routes folder Notice that by default there are four different files inside the routes folder and for most projects we are only concerned with api php and web php If you intend to use Laravel strictly for the backend without the view you should define the routes in the api php For our tutorial we are going to use Laravel as a full stack framework so we are going to use web php instead Their difference is that api php is wrapped inside the api middleware group and web php is inside the web middleware group they provide different functions and the routes defined in api php will have the URL prefix api Meaning that in order to access an api route the URL has to be something like The most basic route in Laravel accepts a URL and then returns a value The value could be a string a view or a controller Go to routes web php and we can see there is already a pre defined route routes web phpuse Illuminate Support Facades Route Route get function return view welcome This piece of code means when the Laravel route receives it returns a view called welcome which is located at resources views welcome blade php Open the browser go to and you will get this page To verify welcome blade php is the view we are looking at try making some changes to the file and refresh your browser to see if the page changes Router methodsNow let s take a closer look at this router and understand how it works routes web phpuse Illuminate Support Facades Route Route get function return view welcome We first import the Route class and invoked the get method This get matches the GET HTTP method we talked about before There are other methods built into the Route class allowing us to match any other HTTP request methods Route get uri callback Route post uri callback Route put uri callback Route patch uri callback Route delete uri callback Route options uri callback If you want a route to match multiple HTTP methods you can use the match or any method instead match requires you to specify an array of HTTP methods that you wish to match and any simply matches all HTTP requests Route match get post function Route any function Passing data to viewNow let s look inside the get method There are two parameters the first one is the URL this router is supposed to match and the second one is a callback function that executes when the match is successful Inside the callback function a built in function view is returned This function will look for the corresponding view file based on the parameter that is passed to it Laravel offers a simple shortcut Route view if you only need to return a view This method allows you to avoid writing a full route Route view welcome welcome The first argument is the URL and the second parameter is the corresponding view There is also a third argument which allows us to pass some data to that view like this Route view welcome welcome name gt Taylor We ll talk about how to access the data when we get to the blade templates From router to controllerWe can also make the router point to a controller which then points to a view A controller is essentially an expanded version of the callback function We ll talk about controllers in detail in the next article Route get user UserController class index This line of code means if the router receives user Laravel will go to the UserController and invoke the index method Route parametersSometimes you need to use segments from a URL as parameters For example imagine we have a fully developed blog and there is a user who is looking for a blog post with the slug this is a post and he is trying to find that post by typing in his browser To make sure that the user finds the correct post we need to take the segment after posts as a parameter and send it to the backend After that our controller can use that parameter to find the correct post and return it back to the user To do that we write the following code Route get post slug PostController class show This will make sure the Laravel router matches the word after post as a parameter and give assign it to the variable slug when Laravel sends it to the backend Route parameters are always encased within   braces and should consist of alphabetic characters and may not contain a   character Since we haven t talked about the controllers we can replace the second parameter with a simple callback function and test this code Route get post slug function slug return slug Now open your browser and go to posts this is a slug It is also possible to match multiple parameters in a URL Route get category category post slug PostController class show In this case the segment after category will be assigned to the variable category and the segment after post will be assigned to slug Sometimes you don t know if a parameter will be present in the URL in this case you can make that parameter optional by appending a question mark Route get post slug PostController class show And finally you can validate the parameters using regular expressions For example we can make sure the user ID is always a number Route get user id UserController class show gt where id Named routersNamed routes allow the convenient generation of URLs or redirects for specific routes You may specify a name for a route by chaining the name method onto the route definition Route get user profile UserController class show gt name profile And now when we need to access this URL all we need to do is invoke the function route profile Group routersWhen you are building a large website it is very common for you to have a few dozen or even hundreds of routers In this case it would make more sense if we group them together For example we can group them based on the middleware Route middleware auth gt group function Route get user profile UserController class show Route get user setting UserController class setting Now both these routers will be assigned the middleware auth We can also assign prefixes to a group of routers like this Route prefix admin gt group function Route get users UserController class show All the routers defined in this group will have the prefix admin MiddlewareA middleware is something that can inspect and filter the incoming HTTP requests before it hits your application It is something that happens after the route has matched the URL but the callback function hasn t been executed it is something in the middle hence the name middleware An example of middleware would be user authentication If the user is authenticated the route will take the user to the supposed destination if not it will take the user to the login page first For this course we are not writing any middleware The only one we need to use is the built in auth middleware for authentication purposes but I d like to explain the basics of it To create a middleware run the following command php artisan make middleware EnsureTokenIsValidThis will create a new EnsureTokenIsValid class under the app Http Middleware directory lt phpnamespace App Http Middleware use Closure class EnsureTokenIsValid Handle an incoming request param Illuminate Http Request request param Closure next return mixed public function handle request Closure next if request gt input token my secret token return redirect home return next request This middleware will get the token value from the request and compare it with the secret token stored on our site and if it matches proceed to the next step if not redirect to the home page In order to use this middleware we still need to register it with Laravel Go to app Http Kernel php and find the routeMiddleware property list the middleware we just created The application s route middleware These middleware may be assigned to groups or used individually var array lt string class string string gt protected routeMiddleware auth gt App Http Middleware Authenticate class auth basic gt Illuminate Auth Middleware AuthenticateWithBasicAuth class cache headers gt Illuminate Http Middleware SetCacheHeaders class can gt Illuminate Auth Middleware Authorize class guest gt App Http Middleware RedirectIfAuthenticated class password confirm gt Illuminate Auth Middleware RequirePassword class signed gt Illuminate Routing Middleware ValidateSignature class throttle gt Illuminate Routing Middleware ThrottleRequests class verified gt Illuminate Auth Middleware EnsureEmailIsVerified class And finally you probably already know how to use middleware on a router Route get profile function gt middleware auth If you liked this article please also check out my other tutorials Django for BeginnersVue js for BeginnersCreate a Modern Application with Django and VueBeginner s Roadmap to Web Development 2023-04-03 14:40:00
海外TECH DEV Community What are your Goals for the week? https://dev.to/jarvisscript/what-are-your-goals-for-the-week-5g99 What are your Goals for the week What are your goals for this week What are you building What will be a good result by week s end Are you attending any events this week Did you meet your goals last week I ll start with how I did last week Last Week s Goals Continue Job Search Blog Things I accomplished but did put on goals list Began portfolio refactor Based on the template created by ram Maheshwari Ram Maheshwari Almost done waiting for some feedback on it Attended Virtual Coffee s Lightning Talks Read about that in this post I just wrote So I already blogged this week Restarted TIL Log Updated content to a site I manage This Week s GoalsContinue Job Search Blog Got a few ideas I need to start Short school week for Easter Finish portfolio refactor You ve read my goals so I ll throw that question back to you What are your goals for the week JarvisScript git push 2023-04-03 14:24:43
海外TECH DEV Community Ubuntu / Apache üzerinde Laravel/WebSockets Kurulumu ve Yapılandırılması. https://dev.to/baris/digitalocean-ubuntu-apache-uzerinde-laravelwebsockets-kurulumu-ve-yapilandirilmasi-82l Ubuntu Apache üzerinde Laravel WebSockets Kurulumu ve Yapılandırılması Bu blog yazısında DigitalOcean droplet ına sanal özel sunucu kurulu Ubuntu işletim sistemi üzerinde Laravel web uygulamasıkurulumu ve WebSockets yapılandırmasıadımlarınıöğreneceksiniz Dosyaların Sunucuya GönderilmesiLaravel projesi için gerekli dosyalarısunucuya göndermek için scp kullanalım Örnek olarak scp home baris app zip kullanici sunucuadresi var www htmlEğer github dan çekecekseniz ne yapmanız gerektiğini zaten biliyorsunuzdur git clone Dosya aktarımıtamamlandıktan sonra ssh ile sunucuya bağlanalımssh root ipadresiProjenin kök klasörüne geçmek için aşağıdaki komutlarıkullanalım cd cd var www htmlls komutu ile app rar dosyanızın bu klasörün içinde olduğundan emin olun ardından bu dosyayıdışarıya aktaralım unrar x app rar veyaunzip app zipveya direkt klasör adıbelirterek dosyalarıklasöre çıkartalım unrar x app rar laravelapp Proje Kurulumu ve YapılandırılmasıProjenin düzgün çalışmasıiçin gerekli izinleri verelim chown R www data www data var www html laravelappNode js ve Composer modüllerini yükleyelim gt composer install no dev gt npm install gt npm run build Apache Ayarlarıvim editorüile gerekli ayarlarıyapmak üzere config dosyamızıaçalımvim etc apache sites available default confYapılandırma dosyamız aşağıdaki gibi görünmeli aşağıdaki örnek yapılandırma dosyasınıkullanarak projeniz için virtual host ayarlarınıyapılandırabilirsiniz Ayrıca sakın adresini değiştirmeyin burasıçokomelli lt VirtualHost gt ServerAdmin webmaster localhost DocumentRoot var www html laravelapp public lt Directory var www html laravelapp gt Options Indexes FollowSymLinks AllowOverride All Require all granted lt Directory gt olarak kalmalı ProxyPass app ws app ProxyPass apps apps websockets içindi bu alan ErrorLog APACHE LOG DIR error log CustomLog APACHE LOG DIR access log combined lt IfModule mod dir c gt DirectoryIndex index php index pl index cgi index html index xhtml index htm lt IfModule gt lt VirtualHost gt Ardından gerekli Apache modüllerini yüklemek için sırayla aşağıdaki komutlarıyazalım gt aenmod rewrite gt apachectl restart Veritabanıve VeritabanıKullanıcısıOluşturmaMySQL veya MariaDB ye bağlanmak için aşağıdaki komutu kullanalımsudo mysqlBu komutla MySQL veya MariaDB istemcisini başlatabilir ve sunucuya bağlanabilirsiniz Ardından aşağıdaki komutu kullanarak yeni bir veritabanıoluşturalım CREATE DATABASE laravelapp Bu komutla laravelapp adında yeni bir veritabanıoluşturmuşoluyoruz Daha sonra bu veritabanına bağlanmak için bir kullanıcıoluşturmanız gerekiyor Aşağıdaki komutla yeni bir kullanıcıoluşturalım CREATE USER laravelappuser localhost IDENTIFIED BY password Bu komutla laravelappuser adında yeni bir kullanıcıoluşturduk Kullanıcının şifresini password olarak belirledik ancak gerçek bir uygulamada daha güçlübir şifre kullanmanız gerektiğini hatırlatmama gerek yok sanırım Son olarak yeni kullanıcının laravelapp veritabanına erişebilmesi için aşağıdaki komutla izinleri vermeniz gerekiyor GRANT ALL PRIVILEGES ON laravelapp TO laravelappuser localhost FLUSH PRIVILEGES Bu komutlarla laravelappuser kullanıcısına laravelapp veritabanıiçin tüm izinleri vermişoluyoruz Artık Laravel projemiz için laravelapp adında bir veritabanıoluşturuldu ve laravelappuser kullanıcısıbu veritabanına erişebilecek şekilde yapılandırıldı Laravel konfigürasyonunda env veritabanıbilgilerinizi güncelleyerek sunucudaki veritabanına bağlanabilirsiniz Supervisor YapılandırmasıSupervisor sistem başlatıldığında arka planda çalışan işlemleri yönetmek için kullanılan bir araçtır Bu nedenle Laravel projenizde kullanacağınız Websocket işlemcisi de Supervisor ile yönetilebilir Supervisor ükuralım apt install supervisorSupervisor yapılandırma dosyasınıoluşturalım laravel websockets adınıdeğiştirmeyin ufak ama mide bulandırıcıdetaylar var cd etc supervisor conf d touch laravel websockets confvim laravel websockets confDosyamızın içeriğini aşağıdaki gibi düzenleyelim directory ve command kısmındaki path i değiştirdiğinizden emin olun program laravel websockets directory var www html laravelappcommand php var www html laravelapp artisan websockets servenumprocs user rootautostart trueautorestart truestderr logfile var log websockets err logstdout logfile var log websockets out logSupervisor üyeniden başlatalımservice supervisor restartson olarak var www html laravelapp resources js bootstrap js dosyasında wshost değerini window location hostname olarak değiştirmeliyiz wsHost window location hostname SonuçBu yazıda DigitalOcean üzerinde Ubuntu ve Apache kullanarak Laravel projenizde Websocket leri nasıl kurabileceğinizi ve yapılandırabileceğinizi anlattım Adımlarıdoğru bir şekilde takip ederseniz Laravel projenizde Websocket leri kullanarak gerçek zamanlıbir uygulama geliştirebilirsiniz 2023-04-03 14:16:37
海外TECH DEV Community Music Monday — What are you listening to? (Classical Rock Edition) https://dev.to/music-discussions/music-monday-what-are-you-listening-to-classical-rock-edition-1a8i Music Monday ーWhat are you listening to Classical Rock Edition cover image source QueenI know we ve gone down the classic rock road once before but today we re gonna put the focus on classical rock by this I mean rock that has a classical music slant Shout out to darkterminal for this fantastic suggestion Now I realize classical rock is a pretty narrow scope so as always if you don t have suggestions that fit feel free to step outside the theme and drop us anything that you re enjoying listening to How we doIn this weekly series folks can chime in and drop links to whatever it is they ve been listening to recently browse others suggestions If you like talking about music consider following the org music discussions for more conversations about music music discussions Follow Let s talk about music Alright let s Bach and roll Note you can embed a link to your song using the following syntax embed https This should work for most common platforms Looking forward to listening to y all s suggestions 2023-04-03 14:11:21
海外TECH DEV Community How to Reduce Costs of App Development https://dev.to/uptech/how-to-reduce-costs-of-app-development-inh How to Reduce Costs of App DevelopmentTransforming an app idea into a viable product is a massive investment In the US app development can cost between depending on the features and functionalities Aside from the need to hire android developers or iOS developers for the coding and development work a branding agency may also need to be consulted for the app s design and marketing For startups these costs can be prohibitive But with a low cost mobile app development it can be easier to get an app idea off the ground With the increasing demand for mobile apps businesses and entrepreneurs are looking for ways to get low cost mobile app development Indeed there are ways to reduce app development costs without compromising on quality Current State of Startup FundingOver the years venture capital investment has become the top choice for tech startups Digital technology companies are consistently receiving the majority of funding According to a Statista report software companies in the United States attracted the most VC investment in with approximately billion raised Meanwhile the financial model for startups has evolved to various options and other sources of funding are being explored time and again They include bootstrapping crowdfunding grants incubators and accelerators In addition there is a growing trend toward impact investing Investors are seeking out startups that have a positive social or environmental impact To understand the complexities of startup funding one must have a nuanced understanding of the various factors contributing to it such as market conditions and industry trends What Determines the Price of Startup Development App featuresThe complexity and number of features in an app can affect its development time and cost For this reason the must have and nice to have features must be carefully prioritized and evaluated during the app development process This prioritization is essential not only to meet the needs of the users but also to stay within the budget for the app development Mobile operating systemAll operating systems have different design requirements development tools and compatibility issues that can affect the mobile app development cost In any case startups often choose between cross platform and native app development for Android or IOS Developing a native app for each platform can result in significant expenses since you would need to hire multiple teams of developers Thus it s worth exploring cross platform solutions if you intend to release your app on various platforms But you can as well move only with iOS or Android depending on your target audience preference Connections and server architectureThe budget for app development is incomplete without considering the number of APIs and data storage solutions needed to connect the app to other services Each API and data storage solution may come with its own cost licensing terms and technical requirements All of these must be factored into the app development budget The rule of thumb here is only to add the most suitable or necessary ones App SecurityThe security of data that will be collected and stored in a mobile app is crucial for legal compliance Besides maintaining data privacy is needed to build user trust and enhance the reputation of the app and the people behind it Drawing from my experience the security cost of an app depends on the complexity of the data collected and the expertise of security professionals involved App managementRegular updates and bug fixes are required to keep an app running smoothly with the latest OS updates and user needs Apps with more intricate and advanced features may need more maintenance impacting their overall cost Tips and Best Practices for Affordable App DevelopmentFor startups with limited resources app development can be expensive Nonetheless with the right strategies and approach it s feasible to reduce the average app development costs while still maintaining high quality and functionality Here are a few proven steps that can be helpful Provide detailed project scopeProviding a detailed brief to the app development team can help speed up the development process If the requirements are clearly stated it can save time and reduce the need for revisions An app cost calculator can help in this regard You can use it to prioritize features and make informed decisions about what to include in the app Aside from the timeline and budget The project scope should outline and include the following The features and functionalities of the app e g push notifications user registration GPS trackingTechnical specifications e g database management system operating system compatibility and the required APIsDesign requirements e g responsive design for different screen sizes color scheme and branding Look for outsourcing partners with scalable resourcesStartups can leverage outsourcing to get low cost mobile app development The software industry is replete with outsourcing partners like Uptech who can give you or your in house team access to a wider talent pool of skilled developers At Uptech we can help you reduce labor and infrastructure costs offer flexibility in scaling your development team and cut project management expenses Create a simplified MVP to test the marketTo minimize app development costs startups can follow the example of successful companies like Airbnb and Uber by building a simplified Minimum Viable Product Flexibility in product concept and development is possible with an MVP making it a cost effective approach to app development For one thing it allows you to gather feedback and add features that are in demand Choose The Right PlatformChoosing the right platform for app development can help to reduce costs and optimize the app s performance Native apps are ideal for businesses that require high performance applications but building them involves creating separate apps with different code bases for each platform On the other hand hybrid mobile app development offers a cost effective solution that allows developers to share the product on different platforms reaching a broader audience SummaryThe best ways to optimize the app development process and minimize unnecessary expenses are to prioritize essential features create a clear roadmap and project scope select the right development team through outsourcing and utilize cost effective development tools and frameworks 2023-04-03 14:11:04
Apple AppleInsider - Frontpage News Every iPhone 17 model expected to get always-on display tech https://appleinsider.com/articles/23/04/03/every-iphone-17-model-expected-to-get-always-on-display-tech?utm_medium=rss Every iPhone model expected to get always on display techApple will bring LTPO always on display technology to its entire iPhone line with the iPhone an analyst claims Variable refresh rates enable features like an always on display or ProMotion and Apple has reserved those features for the pro iPhone models so far Analyst posts on Tuesday now indicate that there could be a change on the horizon According to David Naranjo of Display Supply Chain Consultants LTPO penetration in smartphones rose from in to in Read more 2023-04-03 14:49:30
Apple AppleInsider - Frontpage News The 'Lucky You' iPhone sold for more than a college tuition https://appleinsider.com/articles/23/04/03/the-lucky-you-iphone-sold-for-more-than-a-college-tuition?utm_medium=rss The x Lucky You x iPhone sold for more than a college tuitionThe factory sealed Lucky You original iPhone sold for more expensive than some colleges ーalthough its estimated price was much higher Lucky You iPhoneWright auction house put up the unique iPhone for auction just a few days ago on March It came from Donald Gajadhar of Fox White Art Antique Appraisals who realized its unique quality Read more 2023-04-03 14:18:23
海外TECH Engadget The Apple Watch SE drops back to $219 https://www.engadget.com/the-apple-watch-se-drops-back-to-219-144032655.html?src=rss The Apple Watch SE drops back to The Apple Watch SE is back on sale for at Amazon and Best Buy bringing what was already one of the better values on the wearable market within of the lowest price we ve tracked Though we ve seen this deal a few times since the SE launched last September it s still off Apple s MSRP and about off the device s usual street price Note that this offer is for the mm model if you want the larger mm case size that variant is down to which is a slightly less significant discount nbsp We gave the second generation Apple Watch SE a review score of last year and we currently note it as the top pick for first time or budget sensitive buyers in our guide to the best smartwatches Compared to the flagship Apple Watch Series the SE lacks more advanced health tracking features like a skin temperature sensor ECG monitor and blood oxygen sensor and its slightly smaller display doesn t have an always on mode so it s more cumbersome for checking the time It also charges slower than the Series or higher end Apple Watch Ultra For the most part though it provides the usual Apple Watch feature set at a lower price with notifications heart rate monitoring crash detection and a similar looking water resistant design This second gen model runs on the same S processor as its pricier siblings too so it s just as fast in day to day use That processor bump is the biggest upgrade from the first gen Apple Watch SE but most people with that device shouldn t feel the need to upgrade here Instead this model is best for folks upgrading from an older Apple Watch say a Series or older or iPhone owners looking to buy an Apple wearable for the first time without spending more than If that describes you this deal should make the device a bit more approachable Follow EngadgetDeals on Twitter and subscribe to the Engadget Deals newsletter for the latest tech deals and buying advice This article originally appeared on Engadget at 2023-04-03 14:40:32
Cisco Cisco Blog Five essentials for software centric manufacturing https://feedpress.me/link/23532/16054900/five-essentials-for-software-centric-manufacturing Five essentials for software centric manufacturingAfter digitizing their operations today s factories are poised to take the next step in modernizing their plants They are investing in advancements that use software to control and automate manufacturing processes from design to production This software driven approach consists of using analytics aided by AI ML technologies to analyze operations data draw insights and provide feedback to control systems for more efficient and flexible production processes 2023-04-03 14:51:54
Cisco Cisco Blog Forward Thinking – Critical Infrastructure Outcomes In 2023 https://feedpress.me/link/23532/16054842/forward-thinking-critical-infrastructure-outcomes-in-2023 Forward Thinking Critical Infrastructure Outcomes In Over the past year companies operating in critical infrastructure and industrial industries have faced numerous business challenges labor shortages supply chain disruptions geopolitical conflicts cybersecurity threats extreme weather events and the urgency of implementing sustainability and net zero strategies to name more than a few 2023-04-03 14:07:14
海外科学 NYT > Science Live Updates: NASA Is Naming the 4 Astronauts of the Artemis II Moon Mission https://www.nytimes.com/live/2023/04/03/science/artemis-nasa-news artemis 2023-04-03 14:58:10
金融 金融庁ホームページ 『金融事業者リスト』の掲載要件の見直し等について公表しました。 https://www.fsa.go.jp/news/r4/kokyakuhoni/20230401/fd_20230401.html 金融事業 2023-04-03 16:00:00
金融 金融庁ホームページ つみたてNISA対象商品届出一覧を更新しました。 https://www.fsa.go.jp/policy/nisa2/about/tsumitate/target/index.html 対象商品 2023-04-03 15:00:00
ニュース BBC News - Home Rishi Sunak criticises political correctness over grooming gangs https://www.bbc.co.uk/news/uk-65160429?at_medium=RSS&at_campaign=KARANGA abuse 2023-04-03 14:42:14
ニュース BBC News - Home Oil prices surge after surprise move to cut output https://www.bbc.co.uk/news/business-65157555?at_medium=RSS&at_campaign=KARANGA prices 2023-04-03 14:19:07
ニュース BBC News - Home Chelsea staff have had 'difficult 24 hours' after Graham Potter sacking, says Bruno Saltor https://www.bbc.co.uk/sport/football/65165891?at_medium=RSS&at_campaign=KARANGA Chelsea staff have had x difficult hours x after Graham Potter sacking says Bruno SaltorChelsea interim boss Bruno Saltor says it has been a difficult hours for all of us after Graham Potter s sacking 2023-04-03 14:17:57

コメント

このブログの人気の投稿

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