AWS |
AWS Database Blog |
Introducing Graph Store Protocol support for Amazon Neptune |
https://aws.amazon.com/blogs/database/introducing-graph-store-protocol-support-for-amazon-neptune/
|
Introducing Graph Store Protocol support for Amazon NeptuneAmazon Neptune is a fast reliable fully managed graph database service that makes it easy to build and run applications that work with highly connected datasets Neptune s database engine is optimized for storing billions of relationships and querying with millisecond latency The WC s Resource Description Framework RDF model and the popular Labeled Property Graph model … |
2021-08-02 18:04:36 |
Google |
Official Google Blog |
Express yourself and connect with others on Chromebooks |
http://feedproxy.google.com/~r/blogspot/MKuf/~3/NleiYiwam7g/
|
Express yourself and connect with others on ChromebooksMany people this past year used Chromebooks to keep in touch with family and friends stay entertained and work or learn from home Today we re introducing a few new features that make connecting and communicating with others ーon video chat or through text ーeven easier Improved video calls on your ChromebookWith more people now relying on video calls we ve improved the experience to help make sure you ll have smooth conversations on any Chromebook and your favorite app With Chrome OS s latest update Google Meet will be pre installed on all Chromebooks so it s easy to launch into the app and get on a video call right from the Launcher Google Meet includes exciting features like video backgrounds that make meetings more inclusive and fun We ve also made performance improvements like adapting video calls to different network conditions and adjusting video performance during screen sharing The new Google Meet app on ChromebookRecently we partnered with Zoom to launch an improved version of the app for Chromebooks on the Google Play Store This new version delivers faster performance takes up less storage and includes latest features such as breakout rooms live transcription and a new background masking feature for privacy Plus you can find other apps for video calling to suit your specific needs For example you can connect with teams remotely on Jitsi Meet or hang out with friends and family on Houseparty And to make your video calls even better you can add Works With Chromebook certified accessories to your setup including web cameras and headsets from partners like Logitech EPOS and Lenovo Express yourself with emoji Earlier this month Google celebrated World Emoji Day by announcing more shareable and inclusive emoji Now we ve made it even easier to express yourself with emoji on Chromebooks with a new shortcut and emoji picker On your Chromebook use the new keyboard shortcut Search or Launcher key Shift Space to bring up the compact emoji picker From there you can see your recently used emoji and scroll to discover others With a click the perfect emoji is inserted into a conversation document or any text field on your Chromebook We ve also made it easier to search for an emoji currently only available in English and view related options Setting up a calendar invitation for coffee Open the picker type “coffee then select the emoji you want ️ Search for emoji then add them to text fields with Chromebook s new emoji picker Keep in touch from anywhereChrome OS now supports eSIM for cellular connectivity With eSIM you can download and switch between carrier profiles without having to insert or remove a physical SIM card from your laptop This will be particularly helpful if you need to connect to a cellular network but can t run to the store for a SIM card and for international travelers who frequently switch between networks This feature is only available on eSIM compatible Chromebooks like the Acer Chromebook Spin and Acer Chromebook To get started on these devices go to Settings then Mobile data in the Network section and add a connection You can use a QR Code to help set up the new cellular network on your Chromebook Celebrate togethernessThis month we re also introducing a new collection of wallpapers from three Black artists Aurelia Durand Sabrena Khadija and Meech Boakye Each artist created wallpapers inspired by the concept of togetherness Their lively designs reflect connections between family and friends empowering and uplifting one s community and the experience of being in nature To try them out just right click your desktop and choose “Set wallpaper then select “Togetherness Four animated people in bright clothing dancing on an orange backgroundAurelia Durand s wallpaper “Joy Three animated people pose in colorful clothing on a lime green backgroundAurelia Durand s wallpaper “Kindness An animated woman in a dark green hijab holds a white cat A white flower is on either side of them Meech Boakye s wallpaper “Affection Four animated people with different skin tones embrace One person is in a wheelchair and another is making a peace sign Meech Boakye s wallpaper “Friendship An animated woman with brown skin is wearing big sunglasses and a hat The background has many lush green leaves Sabrena Khadija s wallpaper “Greenhouse An animated woman in a pink dress stands on a blue and white striped hill An orange sun peaks above the hill and the sky is blue with pink clouds Sabrena Khadija s wallpaper “Sky Discover new ways to create and play on your ChromebookFor parents looking to keep their kids entertained and engaged the Explore app on Chromebooks now includes a digital magazine curated for kids and families Each issue will be packed with educational apps to help kids discover new ways to create and play on their Chromebooks The first issue focuses on game design and in addition to suggesting apps to help kids learn how to design and code their own games it also features an interview with game creator Jesse Schell Keep an eye out for future updates with more expert interviews and other themes to inspire kids creativity This digital magazine is currently only available for Family Link users in the United States Find it in the Explore app under “Discover The digital magazine exclusive to Chromebook within the Explore appWe ll be back soon to share more new Chromebook features |
2021-08-02 19:00:00 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
WordPressとdjangoとjavascripts全部使う場合のレンタルサーバーの扱い |
https://teratail.com/questions/352478?rss=all
|
ブログをしつつ、ホームページを作ったり、djangoでWebアプリの勉強をアップしていきたいなと思っています。 |
2021-08-03 03:26:44 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
GmailでAPIから署名付きでメールを送る方法 |
https://qiita.com/moffu2mohu/items/b1f66b17de5a7c022026
|
railsでは、htmltextというhtmlをいい感じにプレーンテキストに変換してくれるgemがあったため、こちらを利用しました。 |
2021-08-03 03:28:07 |
海外TECH |
DEV Community |
10 Awesome Chrome Extensions [Guaranteed To Make Your Day] |
https://dev.to/cleancodestudio/10-best-chrome-extensions-guaranteed-to-make-your-day-better-5g43
|
Awesome Chrome Extensions Guaranteed To Make Your Day ltag user id follow action button background color d important color ffffff important border color d important Clean Code StudioFollow Clean Code Clean Life Simplify The right chrome extension will save you thousands of hours improve your workflow speed and fill up your heart with pure happiness and an abundance of pure joy Here are of the Best Chrome Extensions guaranteed to make your day Note Links to all chrome extensions listed in this article found at bottom of the post Octotree GitHub Code TreeIf you re constantly on GitHub then Octotree is an absolute must have when it comes to chrome extensions A tab will show on the left side of your web page when you re looking at any git repo Clicking the tab slides open a file sidebar with the file tree for the entire git project You can search find and analyze the files for the git project like you re using the sidebar in any popular text editor or IDE Last Pass Password ManagerLastPass an award winning password manager saves your passwords and gives you secure access from every computer and mobile device LastPass puts you in control of your online life making it easy to keep your critical information safe and secure so you can access it whenever you want wherever you are Save all your passwords addresses credit cards and more in your secure vault and LastPass will automatically fill in your information when you need it Stop wasting time getting locked out of accounts or filling passwords and forms online LastPass simplifies your daily online tasks while keeping you and your family secure Greenlight This extension is just Whoa If I had to pick a single chrome extension that blows my mind away then I m choosing this Greenlight chrome extension hands down It hasn t blown up yet but that s because it s extremely new In my opinion this chrome extension is going to be a huge tool used by tons of software teams across the country within a year or two What s it do Once you have greenlight installed go to any websiteClick the greenlight extension icon Click add comment Click anywhere on the page to pin a commentAdd your comment and click post to pin it to the pageOpen up the extension tab and click on the settings iconClick members from the settings menuInvite people to join your greenlight project via emailCheckout comments pinned to any given website or add more comments to the siteCheck out when and where a given comment was pinned reply to any pinned comments look at whether the comment was made while viewing the site via desktop tablet or mobile Click resolve to close comments out like closing git issues close them out As shown in the example images above Greenlight is an extension that lets you create a project on any given site select anywhere on that site and pin comments wherever noting something You can invite team members and use this as a more efficient way to communicate between qa testers developers and product owners or you can do what I do and simply use greenlight to make personal notes on any website highlighting the specific thing you were looking at when making your personal notes Greenlight is a powerful powerful chrome extension Don t let the newness of the extension make you think it isn t one of the best if not the best extensions on this list I love green light and recommend JSONViewJSONView is a simple chrome extension that validates and beautifies JSON content loaded in the browser Example of JSONView doing its thing Color Eye Dropper Chrome ExtensionAnother simple chrome extension is this color code analyzer Like the JSONView extension there s plenty of extensions out there that do the same thing through trial and error and personal experience the Color Eye Dropper Chrome Extension is my favorite for analyzing the color codes on any website You get the hex code and rgb codeIt follows your mouse to analyze the color codesWhen you click it automatically copies the currently hovered color code to your clipboard making it quick for development This is my favorite color code finder chrome extension it s simple but that s why I personally love it WhatFont Chrome ExtensionChrome extension to get the typography breakdown from the content on any website WhatFont Description of their extension The easiest way to identify fonts on web pages What is the easiest way to find out the fonts used in a webpage Firebug and Webkit Inspector are easy enough to use for developers However for others this should not be necessary With this extension you could inspect web fonts by just hovering on them It is that simple and elegant It also detects the services used for serving the web fonts Supports Typekit and Google Font API Autofill Chrome ExtensionAs developers we ve all been in the position where we have to fill out the SAME FU FORM TIMES OVER It s frustrating annoying and over all just kinda sucks after the th time or so This chrome extension Autofill saves us from that night mirror of re filling out the same form over and over again The Autofill extension serves one purpose fill form fields automatically on page load without any user interaction This is its primary function but it can do so much more Chrome has a built in autofill feature but it doesn t work on all fields and requires you to select from a drop down menu Even if you re happy with Chrome s autofill give this extension a try for more automation and power at your fingertips Some of my favorite features of the autofill chrome extension include Multiple profiles to fill out the same forms in differing default ways Multiple profiles meaning that we can create one profile that will fill out these three application forms with this default data while our other autofill profile will fill out these same three application forms using different data We can generate random form data base on the form field types to populate dummy data The form dummy data is populated automatically based on the given autofill profile we re currently using ON PAGE LOAD We don t even need to re click the populate form button Once we have our dummy form data generation configuration set up for a given autofill profile the form will be populated automatically whenever the page with that form is re loaded If you want to get advanced with your form autofill rules and settings you can autofill is easy set up by default but provides you with the ability to dive deep into the settings and configure tons of more advanced options settings for auto populating your forms with data Download All Images Chrome ExtensionThis is one of my newer chrome extensions that I m starting to love It lets you download all images on a page set the dimensions for the downloads determine the type of picture you want to save the photos as and apply regex file size keyword and other types of filters to define the constraints for the kinds of images you want downloaded out of all of the images on a page Another awesome feature of this chrome extension is that it shows you the statistical breakdown of the images and what you will be downloading before you download the photos You get to format the title your saving each image under define your zip file name and create a directory to store them into You can also choose to copy or save to a directory so the options are pretty plentiful for downloading all of the images on any given page Just be careful with image rights mass downloading images may leave you open to getting into trouble if you aren t careful about the image licensing rights Grammarly for ChromeBeing as popular as it is you may already know of Grammarly If you don t know of it I highly recommend it From grammar and spelling to style and tone Grammarly helps you eliminate writing errors and find the perfect words to express yourself You ll get real time feedback from Grammarly on Gmail Google Docs Twitter LinkedIn and nearly everywhere else you find yourself writing Grammarly is a writing assistant that offers you specific suggestions to help you improve your writing ーand it goes way beyond grammar You can be confident that your writing is not only correct but clear and concise too Be sure to register your account to receive a personalized writing report each week to help you track your progress and identify improvement areas Light shot screenshot chrome extensionSimple and convenient screenshot tool Select an area edit your screenshot and upload it to the server Lightshot is the fastest way to take a customizable screenshot Simple interface nothing useless and light weight Lightshot screenshot Features take screenshot and share it in few clicksselect any part of the pageedit screenshot in placesave on a disk or upload to the cloudsearch for similar screenshotscopy screenshot in clipboardA cool note here is that I ve been using light shot screenshot for years but until literally minutes ago had no idea it was a chrome extension I didn t think litshot screenshot was usable on windows and although I ve been using it for years on mac and ubuntu always use snippet on while on windows Since I m on windows while writing this blog I used the snippet desktop app that comes default with windows If I wouldn ve known about this light shot screen shot chrome extension two hours ago we could ve made this blog even better using it But hey now I know it s there and I m sharing it with you Light shot screen shot if you re on mac or linux is also a great desktop screenshot tool While one windows I m highly recommending this extension via the chrome browser instead That being said both the desktop and chrome extension versions of lightshot screen shot are so far seemingly identical having the desktop tool lets you use the light shot screen shot services whenever where as the chrome extension will only let you use the screen shot tool while chrome is open So if you are on Mac or Linux I recommend the desktop version of light shot screen shot where as if you re on windows than this chrome extension is also awesome Links to Top Chrome Extensions from this PostOctotree GitHub Code TreeLast PassGreenlightJSONView Chrome ExtensionColor Eye Dropper Chrome ExtensionWhatFont Chrome ExtensionForm Autofill Chrome ExtensionDownload all images chrome extensionGrammarly Chrome ExtensionLightshot screenshot tool Other Honorable Mentions Chrome ExtensionsAwesome Drive for Google DriveMoz Bar SEO and on page website analyzation in the eyes of Google Markdown DownloaderSave to Google DriveQuick Search for Google Drive ltag user id follow action button background color d important color ffffff important border color d important Clean Code StudioFollow Clean Code Clean Life Simplify Clean CodeClean Code Studio |
2021-08-02 18:37:44 |
海外TECH |
DEV Community |
How to Hit the Ground Running as CTO/VPE |
https://dev.to/devinterrupted/how-to-hit-the-ground-running-as-cto-vpe-1b7l
|
How to Hit the Ground Running as CTO VPEThe article below was written by Aviv Ben Yosef for devinterrupted com When starting a new role as a tech executive it is common to feel slightly disoriented at first That s because in most startups you re not going through a ready made orientation process More often than not you have to carve your own path forward without a lot of guidance Having aided many CTOs and VPs of Engineering during their onboarding I have thoughts about this Your personal onboarding can feel overwhelming especially when you are taking over an organization that is already up and running However once you acknowledge that you are supposed to take charge and organize this for yourself you should already be better off Remember you have agency here Now what should you do with it Let us cover the things you should keep in mind over your first days on the job Listen to the full episode What s So Special About the First Days Anyway In my book The Tech Executive Operating System I lay out a framework for designing your onboarding over your first days Why It might seem an arbitrary number but the truth is that there are sundry reasons for it First it has become the general grace period one is given in new roles Like it or not the CEO is probably looking to see improvement within that time frame there s no way around it Further the first few months are one of the precious windows of malleability that we are granted A window of malleability is when people are more susceptible to change and fresh perspective This is a scenario where you have a two sided window The first side is yours you still obtain a beginner s mind and can use that fresh perspective to ask questions that you wouldn t voice later you ll get used to things being the way they are The opposite side is the organization s people expect things to change when management changes and are less likely to begrudge significant change in the beginning However if you wait too long you might miss the boat and find that kicking off change initiatives is a lot harder Understanding this there are two main objectives for your first days research and taking the initiative Customer ResearchWhen a new startup is formed the team spends hours in customer research learning the lay of the land and talking to potential users You should treat the initial phase of your role similarly This is a period where you should conduct a lot of research and establish rapport with your reports and peers I recommend having a lot of one on ones where you hear what people are thinking what they think should be changed which areas are considered the organization s current strengths and similar Maybe the team itself is pleased but other departments feel neglected Perhaps it is the opposite where the team is delivering but ICs will report burnout and high stress Without establishing relationships with people throughout the ranks of your organization and the rest of the company you ll be operating with a dense fog of war The other aspect of your research should be to create a personal crash course where you acquire Product Mastery That is you must become proficient in the company s product business and environment What problem is the product solving and how Who are your users What kind of competition is out there Looking forward what s the strategy What are people writing about your product on Facebook As we all know context is king Without understanding the environment you re in you are not likely to make the right long term decisions and weigh in the crucial aspects when deciding on different trade offs Taking the InitiativeIn chess taking the initiative often means moving from defense to offense During your onboarding period knowing that it is a precious window of malleability you should aim to do the same Don t be mistaken I m not encouraging you to rush into things or come up with a reorg for reorg s sake Nevertheless working with my clients it is often clear within the first couple of months what are the important and urgent issues at hand Once you ve gathered enough information and have a reasonable level of product mastery it is time to set your next steps For example you don t have to declare what process changes are required if there are quality or efficiency issues You can start by declaring improving those metrics as your goals and kicking off the effort of forming a plan to address it It might feel premature but hitting the ground running and starting to improve things quickly is necessary to gain traction Frequently it also does wonders to your own self esteem by starting to operate and taking charge you will shed the impostor syndrome that makes a common appearance during these times Go get em Originally published at devinterrupted com on July and written by Aviv Ben Yosef |
2021-08-02 18:35:17 |
海外TECH |
DEV Community |
This branch is out-of-date |
https://dev.to/ankitxg/this-branch-is-out-of-date-1hb6
|
This branch is out of dateWhen you are working by yourself or with a small school project team the source control requirements are pretty low You do not have to worry about keeping builds healthy all the time or the impact broken builds may have on others But the story is very different when one is working in large engineering teams Therefore most engineering teams rely on Github protected branch rules to ensure stability of the application One of the most common restrictions that developers use in Github protected branches is to require status checks to pass before merging This ensures that the CI is completed successfully before merging the changes into the protected branch typically master or main There s one additional restriction that requires branches to be up to date before merging This ensures that the pull requests have been tested with the latest code before merging in the protected branch This prompt typically shows up in the Pull Request asking developers to update their branch This setting is less commonly used today and we will look into why ExampleSo what s the point of having branches up to date before merging I recently ran into this scenario so let me explain with an example Let s say Joseph and Ashley are working on a web application for food ordering service They are working on a feature to offer a discount for users who would order ahead PR Joseph made the following change to calculate the discount offered to the users PR Ashley adds a new API endpoint that will be used to charge users As you can imagine the changes independently look pretty safe and pass the test but when combined together will break the build as the signature of charge order has changed These types of scenarios are very common in large teams where multiple engineers would be working on the same code base In those cases it is safer to enable the restriction that requires branches to be up to date before merging Side effectBefore you go and turn on that knob in Github you should understand one side effect from using this configuration I remember after we turned it on engineers started spending a bunch of time playing rebase athon So in the above example let s say both Ashley and Joseph are ready to merge the changes Now if they do not communicate with each other they may both rebase their branches with the latest master and wait for CI to finish Whoever notices a finished CI would merge the changes leaving the other developer to start the rebase process from scratch This can be optimized using a custom Github action to keep branches up to date Every time a PR is merged a Github action can be triggered to update the rest of the branches Some companies have internally built a system to manage this whole process for example SubmitQueue at Uber or Merge Queue at Shopify There are also some plug and play versions of similar concepts the one I ve used in the past is called MergeQueue The bottom line is that as your team grows optimizing the code merging process may become critical This Github setting to restrict branches to be up to date before merging may seem a bit of an overhead but would pay off to give you and your team peace of mind |
2021-08-02 18:17:57 |
海外TECH |
DEV Community |
Implementation of a Distributed LRU Cache Using ZooKeeper |
https://dev.to/zakariamaaraki/implementation-of-distributed-lru-cache-using-zookeeper-159b
|
Implementation of a Distributed LRU Cache Using ZooKeeperIn this tutorial we are going to see how to create a distributed cache LRU Least recently used using ZooKeeper for leader election Before starting you can find the source code of the project at the following link What is ZooKeeperApache ZooKeeper is an open source volunteer project under the Apache Software Foundation It s essentially a service for distributed systems offering a hierarchical key value store ZooKeeper is used to provide a distributed configuration service leader election mechanism and service discovery registry for large distributed systems To build our distributed cache we are going to use two features provided by ZooKeeper Leader election to elect the master leader we need only one instance to talk with Why we are going to see that after Service discovery registry to be able to forward requests to the master leader Why Leader election Suppose we have two instances A and B with which we communicate we suppose also that both instances are alwayse synchronized If we send the request Set x to instance A then to instance B request Set x there is no guarantee that request is executed before request for several reasons maybe instance A crash and restart or maybe because of the latency So the solution to this problem is to have only one instance to talk to we can solve this problem by choosing one instance to be the master leader and we are allowed to talk only to the master Ok but what happens if this instance does down this is a single point of failure this is not good to solve this problem we need an automatic mechanism that elect a leader whenever the leader instance goes down There is a lot of algorithms for doing leader election for example Paxos algorithmRaft algorithmZab protocol this one is used by ZooKeeper Leader Election with ZooKeeperDoing leader election with ZooKeeper is very simple A simple way of doing that is to use the sequence amp ephemeral flags when creating znodes that represent proposals of clients The idea is to have a znode say cache election such that each znode creates a child znode cache election p X With both flags sequence and ephemeral With the sequence flag ZooKeeper automatically appends a sequence number that is greater than any one previously appended to a child of cache election The instance that created the znode with the smallest appended sequence number is the leader Service DiscoveryAt the same time we re using ZooKeeper as Service Discovery using Spring Cloud Zookeeper that leverages this extension for service registration and discovery Consistency vs AvailabilityNote that according to the CAP theorem ZooKeeper is a CP system This implies that it sacrifices availability in order to achieve consistency and partition tolerance In other words if it cannot guarantee correct behaviour it will not respond to queries Using a Service Discovery with a CP system is not a good idea so it might be better if we use Eureka which is a AP system as a service discovery registry instead of ZooKeeper to guarantee availability but in this case we ll need to set up another cluster Implementation CRUD Operations Cache Data structureThe java util LinkedHashMap removeEldestEntry method in Java is used to keep a track of whether the map removes any eldest entry from the map So each time a new element is added to the LinkedHashMap the eldest entry is removed from the map This method is generally invoked after the addition of the elements into the map by the use of put and putall method public class Cache lt K V gt public boolean isLeader public Long startUpTime private Map lt K V gt map public Cache int capacity this startUpTime System currentTimeMillis map new LinkedHashMap capacity f true protected boolean removeEldestEntry Map Entry eldest return size gt capacity public V get K key return map get key public boolean containsKey K key return map containsKey key public V remove K key return map remove key public V set K key V value return map put key value public String toString return map toString Leader Election code snippetprivate void attemptForLeaderPosition final List lt String gt childNodePaths zooKeeperService getChildren LEADER ELECTION ROOT NODE false Collections sort childNodePaths int index childNodePaths indexOf processNodePath substring processNodePath lastIndexOf if index log info Process nodeId I am the new leader cache isLeader true else final String watchedNodeShortPath childNodePaths get index cache isLeader false watchedNodePath LEADER ELECTION ROOT NODE watchedNodeShortPath log info Process nodeId Setting watch on node with path watchedNodePath zooKeeperService watchNode watchedNodePath true There is a lot of things to talk about so i suggest you to see the whole code of the system by visiting this link |
2021-08-02 18:15:36 |
海外TECH |
DEV Community |
Filtro simples em Laravel 🔎 |
https://dev.to/dannrocha/filtro-simples-em-laravel-2cdn
|
Filtro simples em Laravel FerramentasComposer v Insomnia v Laravel v MariaDB v PHP v Preparando a tabela e dados TabelaCom uma aplicação laravel básica iniciada vamos definir uma migrate para criar a tabela agency php artisan make migration agency lt phpuse Illuminate Database Migrations Migration use Illuminate Database Schema Blueprint use Illuminate Support Facades Schema class Agency extends Migration Run the migrations return void public function up Schema create agency function Blueprint table table gt id table gt integer number table gt integer bank number table gt string name table gt boolean active gt default true Reverse the migrations return void public function down Schema dropIfExists agency Vamos redefina e execute novamente todas as migraçõesphp artisan migrate refresh Dados Vamos adicionar alguns dados para estáusando para os testes Não vou criar uma rota método para adicionar AGENCYINSERT INTO agency bank number number name VALUES Agência número do banco Banco do Brasil S A Agência número do banco Banco do Brasil S A Agência número do banco Banco do Brasil S A Agência número do banco Banco do Brasil S A Agência número do banco Banco ItaúS A Agência número do banco Banco ItaúS A Agência número do banco Banco ItaúS A Agência número do banco Banco Bradesco S A Agência número do banco Banco Bradesco S A Agência número do banco Banco Bradesco S A Agência número do banco Banco Bradesco S A Agência número do banco Caixa Econômica Federal Agência número do banco Caixa Econômica Federal Agência número do banco Caixa Econômica Federal Agência número do banco Caixa Econômica Federal Agência número do banco Caixa Econômica Federal Agência número do banco Caixa Econômica Federal Preparando Controller e Model Modelphp artisan make model AgencyModel lt phpnamespace App Models use Illuminate Database Eloquent Factories HasFactory use Illuminate Database Eloquent Model class AgencyModel extends Model use HasFactory protected table agency Controlllerphp artisan make controller AgencyController lt phpnamespace App Http Controllers use App Models AgencyModel use Illuminate Http Request class AgencyController extends Controller public function filter Request request agencyModel new AgencyModel gt orderBy bank number where this gt applyFilter request gt all if empty where return agencyModel gt get foreach where as filter agencyModel gt where filter return agencyModel gt get private function applyFilter array params array where name gt fn data gt name like data number gt fn data gt number data bank number gt fn data gt bank number data active gt fn data gt active data params array filter params fn where gt empty where filters foreach params as key gt data if array key exists key where filters where key data return filters Na definição da rota lt phpuse App Http Controllers AgencyController use Illuminate Http Request use Illuminate Support Facades Route API Routes Here is where you can register API routes for your application These routes are loaded by the RouteServiceProvider within a group which is assigned the api middleware group Enjoy building your API Route middleware auth api gt get user function Request request return request gt user Route prefix v gt group function Route get agency AgencyController class filter Testando Exemplo de URLhttp localhost api v agency name Caixa Econmmmmica Federal GIF DemoA implementação acima não éa melhor forma de fazer por desconhecer outra solução e ter pouca experiência não posso fazer afirmações incorretas mas acho que émelhor que a repetição de ifs |
2021-08-02 18:09:41 |
海外TECH |
DEV Community |
Important GIT commands you'll need to know 🔥 [Part 1] (for the major part of your work) |
https://dev.to/sohamderoy/important-git-commands-you-ll-need-to-know-part-1-for-the-major-part-of-your-work-139e
|
Important GIT commands you x ll need to know Part for the major part of your work NOTE This blog will be a bit longer as I will be explaining all the commands Thus I will divide the blog into two parts this being the first one I will update this part with a link to part once I publish it Both parts will also contain a summary which will contain a list of all the commands mentioned in the blog for a quick revision Summarygit init To initialise a local directory with git git status To check the status of your repo i e to see if any file has been edited deleted added It also shows all the tracked and untracked files Stashed changes will not be reflected in git status git add lt file name gt git add Adds changes in a particular file all changes in the staging area git commit m commit message describing in short what changes are made To commit the changes git remote add origin lt remote repo url gt Connects local repo to a remote repo git push u origin lt Local repo name gt Pushes all the committed changes from the local repo to the remote repo git remote v Will list down all the remote repos that are linked to the local repo git branch a To see all the branches in your repo local remote git checkout lt branch name gt To checkout see the code in a branch git checkout b lt branch name gt Create a new branch with the name lt branch name gt and check out the same branch GIT is a very powerful tool or shall I say a very elegant solution ever built to tackle a very complex challenge of version control As one of my friends once said that the idea of multiple people working on the same product and that too remotely is in itself a very complicated job GIT helps us to ease just that And that is why it becomes so important to know GIT and all its useful commands What this blog is not about and what it rather actually is about To get this straight this blog is not to introduce you to GIT or what it is meant to do Rather I assume that you know what is GIT and its basic and thus I ll jump right into the main point of this blog i e what are the most common and important GIT commands that will help you sail through more than of your daily job Now there are mainly two possibilities that we should discuss here before moving forward One possibility is that you might want to start a new project This case mainly arises when a developer starts thinking of starting a side project or want to do a POC or simply follow along with some tutorial The second possibility is that you want to contribute to an existing codebase This case can arise when you either want to contribute to an open source project or you are in a team that is developing an application many folks working in a tech company can relate to this use case What to do when you want to start a new project Create a folder for your project Navigate to that folder initially the folder will be empty and open the git bash terminal in that same location and type git init You will notice that a git folder got created in that directory This way you can initialise the directory with git and it will now track any changes like file viz edit delete add happening in that directory and all its direct children How to track any change in files new file added edited deleted add it to stage and commit it Now that you have initialized a directory with git it will create a default master branch or main branch as it s called in current versions for you We will learn about how to make other branches later For the time being let s make some changes in the master branch itself To check what is the current status of your local git repo execute the command git status Initially if there is no change to show then the following message should be displayed Create a new file in the project root directory by using the command touch new txt You can also create a file by the normal method of right clicking in the directory and creating the desired file Now execute git status and it will show you that a new file has been added to the directory It will be shown in red as the change is still not in the staging area of git To add any new change in the staging area execute the command git add lt file name gt You can also do git add to add all the changes in the staging area Once added if you run git status it will show the change in a green colour denoting that the change is now in the staging area To commit any change to the branch you have to execute the command git commit m your commit message describing in short what changes are made Doing a git status at this point after committing will show that there is no more change to commit provided that you have added all the changes to staging are and then committed them and the working tree master branch in this case is clean Please note that staging is a way of us saying to git to keep a track of a particular file So in case a completely new file is added we HAVE to add it to the staging area at least once using git add lt filename gt or by git add Before we add the file in the staging area git status will show the file in the Untracked file section as shown in the image below But once the file has been added to the staging area at least once any further change in the file will make it show in the Changes not staged for commit section but the file is being tracked So to commit any subsequent change of the file in the working tree we can directly run the command git commit am Commit message For eg if I edit the previous file new txt and also create a new file say newfile txt in the root then git status will show the following As you can see that new txt is in the Changes not staged for commit section as I had already git add this file previously and have just edited it now whereas on the other hand I added a completely new file which is now showing in the Untracked file section Running git commit am Commit message command will only commit the changes in the tracked file new txt and will NOT commit the newfile txt as that is not tracked We need to add it using git add newfile txt first and then commit it How do I connect a remote repository repo to my local git repo In collaborative teamwork chances are that more than one person is working on a project In that case you have to connect your local repo to a remote repo so that everyone can access it Currently our repo is in our local and no one can access it Let connect it to a remote Github repo Create a new Github repo and copy the repo URL as shown in the image below In the git bash terminal run the command git remote add origin lt url gt This will now connect our local repo to the remote repo Here origin is the shortcut name that we assign to the remote Github URL Thus origin lt remote Github url gt It is not compulsory though but advised to name the base repo as origin How to push all the changes from local to remote Run the command git push u origin lt Local repo name gt i e in this case git push u origin master This will push all the committed changes from the local repo to the remote repo The changes will now get reflected in the remote Github repo as shown below Thus git push u origin repo example name will create a new branch in the remote repo with a name repo example name if it is not present already and push all the committed changes from the local branch you ran the command to the remote branch Please note that in a subsequent execution of git push u origin repo example name a new branch in the remote repo with name repo example name is not created as it is already present in the remote repo It also sets the local branch to track the remote branch at the origin Another handy command to keep in your toolbox is the following What are all the remote repo you have linked to your local repo Run the command git remote v and it will list down all the remote repos that are linked to the local repo as shown in the image below It denotes that for all the push and fetchcommands with origin git will use the URL How to create a new branch And why should I create a new branch Branches in git is an elegant way for a user to switch between different kinds of tasks Let s say I have to add two new features in my application viz a login signup screen and a dark mode feature For both the features let s say I need to work with different sets of files and might have to add totally different sets of logic In that case it is advised to create two new branches out of the main branch and work on both the feature separately If there is a third new feature to add create another branch for that Later once the feature is developed merge that sub branch into the main branch or the branch where your team prefers to keep the latest code like a develop or release branch for many companies git branch a Run this command to see all the branches in your repo local remote The branches shown in the form lt branch name gt is are the local branch es in the local repo Similarly the branches shown in the form remotes origin lt branch name gt is are the remote branch s from the remote repo origin connected to the local repo git checkout lt branch name gt Use this command to checkout see the code in a branch git checkout b lt branch name gt Create a new branch with the name lt branch name gt and check out the same branch As seen in the image above initially there were only two branches master local branch and remotes origin master remote branch After running the command git checkout b new branch a new local branch with the name new branch is created To get this branch on the remote branch run command git push u origin new branch NOTE It is advised to keep the name of the local and remote branches the same so that both can be recognised and linked easily Keep the name of your branch short and descriptive so that anyone can get an idea of what that branch was created for without even looking at the code just by looking at the name Always create a separate branch for different feature implementation puff that s a lot of branches don t worry read the section again and I am sure you ll catch the drift To be continued I ll end Part of this blog here I hope that the content provided in this part will be helpful to all the readers In the next part I ll cover the rest of the git commands which are worth keeping in your toolbelt so stay tuned in Thanks for reading If you like this blog and feel it s useful do consider hitting the link button and share it with your friends I d really appreciate that Stay tuned |
2021-08-02 18:03:37 |
Apple |
AppleInsider - Frontpage News |
Apple Arcade two years later: a value that keeps on growing |
https://appleinsider.com/articles/21/08/02/apple-arcade-two-years-later-a-value-that-keeps-on-growing?utm_medium=rss
|
Apple Arcade two years later a value that keeps on growingAs Apple Arcade approaches its second anniversary AppleInsider examines how the service has grown and the potential future of this game subscription service Examining Apple Arcade after two years of playGaming is Apple s most lucrative business on the App Store so it was an obvious target for services revenue For only per month customers get access to every game in Apple Arcade ーad free and no in app purchases Read more |
2021-08-02 18:47:39 |
Apple |
AppleInsider - Frontpage News |
Master & Dynamic MW08 Sport review: Premium earbuds for your hardest workouts |
https://appleinsider.com/articles/21/08/02/master-dynamic-mw08-sport-review-premium-earbuds-for-your-hardest-workouts?utm_medium=rss
|
Master amp Dynamic MW Sport review Premium earbuds for your hardest workoutsThe Master Dynamic MW is still one of our favorite sets of true wireless earbuds but the new MW Sport has topped it thanks to a few notable improvements MW Sport DesignThe MW Sport sport roughly has the same design as the original MW From the side you see a capital D shape with the Master Dynamic logo emblazoned in the center Our model is black but they re blue green and silver colorways as well Read more |
2021-08-02 18:08:52 |
Apple |
AppleInsider - Frontpage News |
New AirPods with updated design slated for fall launch |
https://appleinsider.com/articles/21/08/02/airpods-refresh-with-updated-design-slated-for-fall-launch?utm_medium=rss
|
New AirPods with updated design slated for fall launchAn update to the AirPods line is anticipated to launch this fall according to a newsletter with a refreshed model expected to arrive alongside the iPhone Apple is expected to launch a number of new products in the fall including revisions to its AirPods family of devices In a report it will feature an updated design that will overhaul the appearance of the earwear According to Mark Gurman s Power On newsletter for Bloomberg Apple s redesign will be the biggest change to how the earbuds appear since their original launch It is thought that the design changes will largely consist of making them more like the AirPods Pro Read more |
2021-08-02 18:56:09 |
海外TECH |
Engadget |
Amazon's Lord of the Rings series arrives on September 2, 2022 |
https://www.engadget.com/amazon-lord-of-the-rings-series-release-date-184156740.html?src=rss
|
Amazon x s Lord of the Rings series arrives on September Amazon s long awaited The Lord of the Rings series has a release date but don t go rushing to stake out the best spot in your living room just yet The show will premiere on September nd with new episodes dropping on Prime Video each week nbsp Filming on the as yet untitled series wrapped up today Production began in February but it was disrupted by the COVID pandemic nbsp On September a new journey begins pic twitter com tnRWqDoAーThe Lord of the Rings on Prime LOTRonPrime August The series takes place thousands of years before the events of The Hobbit and The Lord of the Rings A cast of old and new characters will have to resist a newly resurgent evil during the Second Age of Middle earth Along with the release date Amazon revealed the first proper image from the show It depicts a figure looking at a vista with a white city and much further away the outline of two curious trees With no sign of a trailer yet expect the internet to analyze every pixel of the image for hints Even before filming started Amazon renewed the series for a second season So whatever happens in this first batch of episodes you can be rest assured that there will be much more of the story to come |
2021-08-02 18:41:56 |
海外TECH |
Engadget |
Twitter adds Google and Apple ID as log-in and sign-up options |
https://www.engadget.com/twitter-google-apple-id-log-in-sign-in-183018484.html?src=rss
|
Twitter adds Google and Apple ID as log in and sign up optionsTwitter is adding two additional ways for people to log in to their accounts Starting today you can use your Google ID to access the service through its web client and mobile app On iOS meanwhile Sign in with Apple now works with the Twitter app with the company planning to support the service for web logins “soon It s also possible to use both services to create a new Twitter account Sign on with ease and start scrolling your timeline Now when you log in or sign up to join the conversation on Twitter you have the option to use ️Your Google Account on the app and on web ️Or your Apple ID on iOS and soon on web pic twitter com NfHghmYーTwitter Support TwitterSupport August Of the two options Sign in with Apple is the more intriguing one Apple introduced it at WWDC as an alternative to login services from Facebook and Google The company claims Sign in with Apple prevents tracking and it allows you to hide your email by generating secondary addresses that then forward any messages from apps and services to your regular inbox Either way Twitter adding support for both Google and Apple IDs should make life a bit easier for new users But we ll note here one of the usual things about this feature rollout is that Twitter offers its own login service you can use to access some websites The internet can sometimes be a weird place |
2021-08-02 18:30:18 |
海外TECH |
Engadget |
The next 'Rainbow Six Siege' event is a teaser for 'Extraction' |
https://www.engadget.com/rainbow-six-siege-event-extraction-aliens-free-weekend-180523263.html?src=rss
|
The next x Rainbow Six Siege x event is a teaser for x Extraction x Ubisoft has revealed the next limited time event for Tom Clancy s Rainbow Six Siege and it could whet your appetite for Rainbow Six Extraction The Containment event features a new game mode called Nest Destruction in which you ll attempt to destroy or defend an alien nest on a revamped version of the Consulate map The attackers play as a team of REACT agents who are tasked with destroying nests They ll square off against quot a team of Proteans a deadly Archæan variant that can adopt the form of REACT operators quot Ubisoft said These creatures can mimic the behavior of operators and they ll move fast but they can only use melee attacks such as Aruni s punch and Oryx s special abilities The attacking team can only use a standard loadout with no modifiers and there s a limited roster of operators Along with successfully destroying or defending the nest teams can win by wiping out their opponents The event sounds intriguing but the timing of it is slightly odd The mode was inspired by R Extraction which was supposed to arrive in September Last month Ubisoft pushed back the release date to January Still Nest Destruction might give you a taste of the next game in the Rainbow Six series The Containment event will be available from August rd to August th Between August th and th R Siege will be free to play so anyone can hop in and check out the event Ubisoft will grant double bonus Battle Pass points during that weekend |
2021-08-02 18:05:23 |
海外TECH |
Network World |
BrandPost: Taking Zero Trust to the Edge |
https://www.networkworld.com/article/3627284/taking-zero-trust-to-the-edge.html#tk.rss_all
|
BrandPost Taking Zero Trust to the Edge No one can deny that networks have changed With the rise in remote working and multi cloud adoption the traditional idea of the enterprise perimeter has changed The move to cloud and hybrid networks made traditional leased line networks used for routing traffic back to data centers less relevant Now networks are distributed and complex with more edges Instead of a data center as a hub of the network now software defined wide area networks SD WAN are characterized by application aware dynamic routing and security To save bandwidth and reduce latency computation and data storage is being moved to the enterprise edge so it is as close to users as possible But creating these additional network edges results in increased levels of complexity Today s networks have edges from IoT edges home edges branch office edges headquarters edges enterprise data center edges and a multitude of cloud edges To read this article in full please click here |
2021-08-02 18:40:00 |
ニュース |
BBC News - Home |
Covid-19: 'Amber watch-list' travel idea scrapped |
https://www.bbc.co.uk/news/uk-58064470
|
light |
2021-08-02 18:50:48 |
ニュース |
BBC News - Home |
Bridgend river death: Boy, 5, named as Logan Mwangi |
https://www.bbc.co.uk/news/uk-wales-58049509
|
williamson |
2021-08-02 18:17:18 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
堀江貴文が収監中に願っていた「たった一つのこと」 - マンガ版 ゼロ──なにもない自分に小さなイチを足していく |
https://diamond.jp/articles/-/278305
|
堀江貴文が収監中に願っていた「たった一つのこと」マンガ版ゼローなにもない自分に小さなイチを足していく万部を突破した堀江貴文の大ヒット作『ゼロ』がついにマンガ化された。 |
2021-08-03 03:55:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
世界の投資家、中国投資で7月に数千億ドル失う - WSJ PickUp |
https://diamond.jp/articles/-/278392
|
wsjpickup |
2021-08-03 03:50:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
待たれるコロナワクチン正式承認、米FDAに重圧 - WSJ PickUp |
https://diamond.jp/articles/-/278393
|
wsjpickup |
2021-08-03 03:45:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
米石油協会の「脱炭素」転換、誰も喜ばず - WSJ PickUp |
https://diamond.jp/articles/-/278394
|
wsjpickup |
2021-08-03 03:40:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【転職名言】いつでも転職できるような人間がそれでも転職しない会社。それが最強だ - マンガ転職の思考法 |
https://diamond.jp/articles/-/277223
|
|
2021-08-03 03:35:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
部下にとって「一番最悪な上司」の1つの特徴 - スタンフォードの権力のレッスン |
https://diamond.jp/articles/-/277214
|
人を動かす |
2021-08-03 03:30:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
元気が出ないときは、ズバリ、こうすればいいのよ! - 精神科医Tomyが教える 1秒で元気が湧き出る言葉 |
https://diamond.jp/articles/-/277534
|
人気シリーズ |
2021-08-03 03:25:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
宮本亞門氏、衝撃の前立腺がん発覚!「でも心は混乱しなかった」 - がん治療選択 |
https://diamond.jp/articles/-/277814
|
前立腺がん |
2021-08-03 03:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
医師が断言する「糖質制限ダイエットが医学的に優れている理由」 - 医者が教えるダイエット 最強の教科書 |
https://diamond.jp/articles/-/278053
|
思い込み |
2021-08-03 03:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「自分は凡人だ」と落ち込んだ日に読みたいマンガ、究極の4冊 - 独学大全 |
https://diamond.jp/articles/-/277689
|
自分 |
2021-08-03 03:10:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【火曜日は記憶力アップ】瞬読トレーニングvol.20 - 瞬読式勉強法 |
https://diamond.jp/articles/-/278449
|
記憶力 |
2021-08-03 03:05:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
米のインフレ圧力、市場が織り込む収束シナリオ - WSJ発 |
https://diamond.jp/articles/-/278526
|
市場 |
2021-08-03 03:03:00 |
GCP |
Cloud Blog |
8 ways Google Cloud elevates agility and security for financial services |
https://cloud.google.com/blog/products/vmware-engine/how-google-cloud-vmware-engine-can-help-financial-services-firms/
|
ways Google Cloud elevates agility and security for financial servicesThe COVID pandemic brought dramatic changes to the financial services industry Already under pressure from nimble young fintechs to modernize established banks and insurers were undergoing incremental digital transformation But in they hit the gas pedal Branches closed and remote work became the norm Almost overnight employees needed secure remote access to corporate systems and customers expected to be able to complete even complex transactions whenever they wanted on whatever device Even as things return to normal many of these shifts are likely to be permanent According to Forrester Research nearly of global financial services CIOs and SVPs believe that improving their application portfolio is key to improving customer experience and driving revenue The problem Replacing legacy systems with cloud based SaaS enterprise software is a massive time and resource intensive process IDG s recently completed white paper Financial Services Spotlight Elevating agility and security in the cloud highlights an alternative to the all or nothing approach to replatforming “lifting and shifting on premises applications and workloads to the cloud without rewriting them In this way you keep your organization s familiar architecture but give it the scalability and cutting edge technology of a modern cloud environment That s the promise of Google Cloud VMware Engine brings to the financial services industry Here s a quick overview of the insights that the IDG study uncovers Download the complete white paper Simpler migration rich rewardsGoogle Cloud VMware Engine helps financial services companies seamlessly migrate and run VMware workloads natively on Google Cloud Once in the cloud firms can take advantage of Google Cloud services access a robust third party cloud ecosystem and use the same VMware tools processes and policies their teams already know The IDG study found that migrating to Google Cloud with Google Cloud VMware Engine offers multiple benefits Create new customer experiences Migrating to Google Cloud puts modern cloud native architectures and technologies ーsuch as containers and microservices ーeasily within reach These make it possible for financial institutions to quickly and securely launch new applications and update them on a continuous basis using DevOps pipelines They also allow firms to craft more personalized customer experiences across channels using Google Cloud s native AI and data analytics Deliver new services After migrating financial services organizations can connect to multiple third party service providers via cloud based APIs to bring new diverse services to their customers ーwithout having to build from scratch Make the best use of IT resources When your data and applications reside in Google Cloud you re no longer constrained by the physical storage and compute limits of on premises infrastructure This means your company can match capacity to demand ーeven during unexpected peaks You also gain more visibility into your hybrid cloud environment with Google Cloud s operations suite which offers intelligent analysis and easier troubleshooting for your platform and applications Gain fresh insights The key to understanding what customers need and when they need it resides within your data and data analytics in the cloud help you uncover those insights Your company can connect to Google Cloud s serverless data warehouse BigQuery which leverages data to deliver valuable insights for personalized customer experiences rich compliance reporting new product development intelligent fraud detection and more Choose what to move Data governance regulations and requirements specific to the financial services industry mean that some data must remain on premises Google Cloud VMware Engine lets you easily manage a hybrid cloud on premises environment to keep sensitive data fully under your control Become more resilient Google Cloud VMware Engine gives financial services firms a distributed architecture and centralized control for their applications to support vital business continuity functions such as backup and disaster recovery This is on top of the performance and availability of Google Cloud s global infrastructure Improve security Using cloud native application frameworks administrators can issue patches and software updates centrally and automatically across their organizations This reduces the risk of errors and security vulnerabilities Firms also tap into the security features and capabilities of Google Cloud including always on encryption and AI powered threat detection Redirect IT resources Migrating virtualized workloads to the cloud can free up talent and budget to develop new products and services ーtime that was previously spent on maintaining complex on premises infrastructure That means less effort spent keeping the lights on and more resources directed toward creating innovative and differentiating customer experiences IDG research concluded that migrating business applications to Google Cloud with Google Cloud VMware Engine can help financial services companies stay ahead of change without incurring further technical debt from their legacy IT systems Working with cloud based systems can give your financial services company much of the scale speed and agility of a startup while still enjoying the benefits of being an established organization Read the complete white paper to learn more about the ways in which Google and VMware work together to accelerate digital transformation for financial services firms Vmware forrester financial services modern app report pdf A commissioned study conducted by Forrester Consulting on behalf of VMware Related ArticleNew in Google Cloud VMware Engine autoscaling Mumbai expansion etc A review of the latest updates to Google Cloud VMware Engine Read Article |
2021-08-02 18:30:00 |
コメント
コメントを投稿