投稿時間:2023-08-12 07:07:56 RSSフィード2023-08-12 07:00 分まとめ(11件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS AWS Partner Network (APN) Blog Realize Faster Time to Value with IBM’s Modern Data Accelerators on AWS https://aws.amazon.com/blogs/apn/realize-faster-time-to-value-with-ibm-modern-data-accelerators-on-aws/ Realize Faster Time to Value with IBM s Modern Data Accelerators on AWSMany organizations still are managing expensive single use case data environments however and IBM s Modern Data Accelerators on AWS can help build modern implementation of a data fabric architecture enabling customers to realize faster time to value Learn how IBM s Modern Data Accelerators can help build modern implementation of a data fabric architecture which standardizes data integration across the enterprise 2023-08-11 21:16:50
AWS AWSタグが付けられた新着投稿 - Qiita EventBridge SchedulerでAuroraの定期的な再起動 https://qiita.com/zenden/items/8e014a69bc02b804f21f aurora 2023-08-12 06:04:18
海外TECH DEV Community Build a Chrome Extension using Manifest V3 https://dev.to/nazmulidris/build-a-chrome-extension-using-manifest-v3-2oid Build a Chrome Extension using Manifest VA guide on how to build a Chrome Extension using Manifest V that replaces the use of bookmarks in a way allowing you to create your own names for a URL or a set of URLs rbl org shortlink This Chrome extension provides a browser action that simply allows the user to create a shortlink for all the selected tabs in the current window It can be activated via a keyboard shortcut Alt L To use it in the omnibar type go then press Tab then type the phrase you have created a shortlink for earlier amp it will open the tab s IntroductionIn this tutorial we will create a new Chrome Extension using Manifest V that allows us to create our own names for a URL or a set of URLs This is useful when you have a set of URLs that you want to open at once or you want to create a name for a URL that is hard to remember Or if you just don t want to use bookmarks We will also save these shortlinks to the Chrome Sync key value pair store This extension will also allow the user to type commands when it is activated in its popped up state And we will use Typescript and React to build it Before we get started here are some good references to take a look at Official Chrome docs on writing an extensionTemplate to build a Chrome extension without having to configure Typescript and ReactPlease star and fork clone the Shortlink repo Install the Chrome Extension ️ Step Create a new Chrome ExtensionThe first thing to is to create a new repo on GitHub using this template repo You can do this in two ways Using github com and a web browser Here are the instructions on how to do this Using the GitHub CLI You must have the GitHub CLI installed and be logged in to github com using gh auth login More info gh repo create shortlink public template rbl org chrome extension typescript react template More info gh repo clone shortlink Step Build and load the Chrome ExtensionAt this point we have a shortlink git repo on our local machine that is setup to build a Chrome Extension You can run the following command to build it npm installnpm run buildThis will generate a dist directory that contains the Chrome Extension You can load this into Chrome by Type chrome extensions in the URL bar Turn on Developer Mode Then click on Load unpacked and select the dist directory Your extension will be loaded into Chrome Step Add functionalityIn our extension we will ask for the minimum of permissions from the user This ensures that our extension doesn t have access to anything more than it needs All of this is specified in the public manifest json file Here s an example of what this file might look like when we are done building our extension manifest version name RBL Shortlink description Make go links version icons icon png icon png icon png icon png action default title Click to make go link for URL default popup popup html default icon icon png icon png icon png icon png omnibox keyword go background service worker js background js commands execute action suggested key default Alt L mac Alt L description Make a go link for URL in address bar permissions activeTab tabs storage clipboardWrite Now that we have our permissions sorted we can start by adding functionality to the extension When we activate the extension by clicking its icon in the Chrome toolbar or by pressing the shortcut Alt l the popup tsx file will be run which itself is loaded by popup html You can learn more about activating the extension and the popup in the chrome browserAction docs This popup tsx file will be the entry point for our extension It is the main function in a node program or the App top level component in a React app It sets up the UI and handles the user input events key presses This is what the UI looks like on Linux on my machine This is what the file looks like in the real Shortcut extension popup tsx If you go through this code these are some of the things you will notice The main function just sets up the main React component Popup and mounts it to the DOM div with id root There are some useEffect hooks which ensures that when chrome storage changes the global state is updated and the component is re rendered Learn more about chrome storage in the API reference here Another hook is responsible for painting the badge on the extension icon in the toolbar when the Shortlink in the state changes The Popup function component returns some JSX that is used to render the global state which are two things Shortlink and string The Shortlink is used to render the list of shortcuts and the string is used to render the input field The handleOnChange and handleEnterKey function is where the user input that is typed is interpreted into a command and then executed There are some other files of note Please take a look at their linked source code command ts The main logic for parsing a string into a command is handled by this file The parseUserInputTextIntoCommand function does all the work of converting a given string into a Command and has a very Rust vibe Please check out how this works It makes it very easy to add or change commands in the future storage ts This is where all the functions to manipulate the storage that syncs w Chrome accounts is located Functions that handle shortlinks to be deleted or added or updated can all be found here The Chrome storage API is async which is why the code in this file is written in the way that it is omnibox ts This file works w background ts to handle the omnibox functionality The omnibox is the address bar in Chrome When the user types go and then a space the omnibox will be activated and the user can type in a shortcut When the user presses Enter the background ts file will be run and the shortcut will be expanded to the full URL Step Publish itPlease read this guide on how to publish the extension You will have to get a developer account and then upload the extension binaries There s a make distro zip sh script provided in this repo that will create a zip file that you can upload to the Chrome Web Store As part of publishing a version you have to provide justification for why you are requesting the permissions that you are The fewer the permissions that you use the better for the end user and also for the review process to take less time Next steps Contribute to the Shortlink projectPlease star and fork clone the Shortlink repo Install the Chrome Extension ️If you would like to get involved in an open source project and like Chrome extensions please feel free to contribute to the Shortlink repo There are a lot of small features that need to be added And they can be a nice stepping stone into the world of open source contribution rbl org shortlink This Chrome extension provides a browser action that simply allows the user to create a shortlink for all the selected tabs in the current window It can be activated via a keyboard shortcut Alt L To use it in the omnibar type go then press Tab then type the phrase you have created a shortlink for earlier amp it will open the tab s 2023-08-11 21:37:42
海外TECH DEV Community How to build a URL Shortener with Go https://dev.to/envitab/how-to-build-a-url-shortener-with-go-5hn5 How to build a URL Shortener with GoSay you ve created a Google doc or saw a link to a video and want to share it with your friend but the link needs to be shorter That s where URL shorteners help Some even go a step further and allow you to customise the link I often shorten and customise my links using bitly In my previous article I shared that I ll focus on two things Go for backend development and Technical writing This is to show I m committed What better way to learn than to apply and teach We ll be building a simple URL shortener with Go my fave programming language Shall we Yes PrerequisitesGo installed on your system download hereA code editor try VS CodeThe willingness to be a gopher DesignThe URL shortener will be a basic web application that handles HTTP requests shortens URLs and redirects users to the original URLs using unique shortened keys We will us an in memory map to store the relationships between the shortened keys and original URLs The Build FlowLet s start by writing the code for our URL shortener We ll break down the implementation into the following steps Step Set up the ProjectOpen your termial and create a new directory for the project then initialize a Go module to manage dependencies mkdir go url shortcd go url shortgo mod init go url shortgo mod init is to create a new go mod file which will be a module in the project folder You can open up the folder from VS Code or while in your terminal enter code Step Import the PackagesGo is all about packages they re the core of every Go program Create a filed named main go in the project directory and enter the code below package mainimport fmt math rand net http time In this initial step we import the necessary packages for our Go program We re using fmt for formatting and printing math rand for generating random keys net http for handling HTTP requests and time for seeding the random number generator Step Define the URL Shortener Structtype URLShortener struct urls map string string We create a URLShortener struct to manage the mapping between original URLs and their shortened versions This struct will have a urls field which is a map with shortened keys as keys and original URLs as values Step Implement URL Shorteningfunc us URLShortener HandleShorten w http ResponseWriter r http Request if r Method http MethodPost http Error w Invalid request method http StatusMethodNotAllowed return originalURL r FormValue url if originalURL http Error w URL parameter is missing http StatusBadRequest return Generate a unique shortened key for the original URL shortKey generateShortKey us urls shortKey originalURL Construct the full shortened URL shortenedURL fmt Sprintf http localhost short s shortKey Render the HTML response with the shortened URL w Header Set Content Type text html responseHTML fmt Sprintf lt h gt URL Shortener lt h gt lt p gt Original URL s lt p gt lt p gt Shortened URL lt a href s gt s lt a gt lt p gt lt form method post action shorten gt lt input type text name url placeholder Enter a URL gt lt input type submit value Shorten gt lt form gt originalURL shortenedURL shortenedURL fmt Fprintf w responseHTML Here we define a HandleShorten method for the URLShortener struct This method handles POST requests validates the input URL generates a unique short key and displays the original and shortened URLs in an HTML response along with an input form for users to enter more URLs Step Implement URL Redirectionfunc us URLShortener HandleRedirect w http ResponseWriter r http Request shortKey r URL Path len short if shortKey http Error w Shortened key is missing http StatusBadRequest return Retrieve the original URL from the urls map using the shortened key originalURL found us urls shortKey if found http Error w Shortened key not found http StatusNotFound return Redirect the user to the original URL http Redirect w r originalURL http StatusMovedPermanently Step Generate Short Keysfunc generateShortKey string const charset abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ const keyLength rand Seed time Now UnixNano shortKey make byte keyLength for i range shortKey shortKey i charset rand Intn len charset return string shortKey We create a generateShortKey function to generate unique short keys for the original URLs This function generates a random alphanumeric key of length characters ensuring the uniqueness of the keys Step Main Function and Server Setupfunc main shortener amp URLShortener urls make map string string http HandleFunc shorten shortener HandleShorten http HandleFunc short shortener HandleRedirect fmt Println URL Shortener is running on http ListenAndServe nil In the main function we create an instance of the URLShortener struct and set up the HTTP handlers for URL shortening and redirection We listen on port and the server starts running Running the URL ShortenerTo run the URL shortener follow these steps Save the provided Go code in a file named main go Open a terminal or use the one in your code editor an navigate to the directory where the main go file is located Run this go build command go build o go url short main goThe o flag is used to specify the output binary s name which is named go url short Open a web browser and go to the URL http localhost You should see the URL shortener web page with an input form Enter a long URL click Shorten and the page will display the original and shortened URLs Here s a GIF that shows the app running The full code can be accessed on this GitHub repo ConclusionBuilding a URL shortener with Go is a great way to learn about web development HTTP handling and working with data structures Our simple implementation includes the essentials URL shortening redirection and a basic HTML form for user interaction This project can be a starting point for enhancing the user interface adding analytics and exploring more advanced features Happy coding 2023-08-11 21:16:14
海外科学 NYT > Science W. Jason Morgan, 87, Dies; Developed the Theory of Plate Tectonics https://www.nytimes.com/2023/08/11/science/jason-morgan-dead.html earthquakes 2023-08-11 21:46:47
ニュース BBC News - Home Crypto firm founder Bankman-Fried heads to jail as bail revoked https://www.bbc.co.uk/news/business-66481020?at_medium=RSS&at_campaign=KARANGA charges 2023-08-11 21:38:06
ニュース BBC News - Home Man City start title defence with Burnley win https://www.bbc.co.uk/sport/football/66402155?at_medium=RSS&at_campaign=KARANGA burnley 2023-08-11 21:29:51
ニュース BBC News - Home Special counsel to investigate President Biden's son Hunter https://www.bbc.co.uk/news/world-us-canada-66480353?at_medium=RSS&at_campaign=KARANGA additional 2023-08-11 21:01:17
ニュース BBC News - Home Harry Kane to Bayern Munich: Tottenham striker's move 'imminent' as medical due https://www.bbc.co.uk/sport/football/66276899?at_medium=RSS&at_campaign=KARANGA Harry Kane to Bayern Munich Tottenham striker x s move x imminent x as medical dueHarry Kane arrives for a medical at Bayern Munich with the England captain s move from Tottenham to the German giants imminent 2023-08-11 21:35:47
ニュース BBC News - Home The Hundred 2023: Ross Whiteley's stunning catch leads plays of the day https://www.bbc.co.uk/sport/av/cricket/66480008?at_medium=RSS&at_campaign=KARANGA The Hundred Ross Whiteley x s stunning catch leads plays of the dayWatch the plays of the day from Headingley in The Hundred after two matches between Oval Invincibles and Northern Superchargers in the men s and women s competitions 2023-08-11 21:28:04
ビジネス 東洋経済オンライン 「アメリカ国債格下げは間違いだ」と言い切れるか このままではせっかくの強いカードが台なしだ | 新競馬好きエコノミストの市場深読み劇場 | 東洋経済オンライン https://toyokeizai.net/articles/-/694121?utm_source=rss&utm_medium=http&utm_campaign=link_back 東洋経済オンライン 2023-08-12 06:30:00

コメント

このブログの人気の投稿

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

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

投稿時間:2020-12-01 09:41:49 RSSフィード2020-12-01 09:00 分まとめ(69件)