投稿時間:2023-01-05 23:41:09 RSSフィード2023-01-05 23:00 分まとめ(42件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT InfoQ Sustainability for Software Companies: Reducing Impact by Deciding What Not to Do https://www.infoq.com/news/2023/01/sustainability-software-impact/?utm_campaign=infoq_content&utm_source=infoq&utm_medium=feed&utm_term=global Sustainability for Software Companies Reducing Impact by Deciding What Not to DoSmall and medium sized companies can contribute to sustainability with emissions reduction mental health offerings and inclusion To support sustainability software engineers can think about “what not to do to reduce complexity and make solutions smaller resulting in a smaller carbon footprint By Ben Linders 2023-01-05 13:10:00
IT ITmedia 総合記事一覧 [ITmedia News] 一緒に“寝落ち”する照明ロボット「ライトニー」、ユカイ工学が開発中 https://www.itmedia.co.jp/news/articles/2301/05/news154.html itmedia 2023-01-05 22:28:00
AWS AWS DevOps Blog The most visited AWS DevOps blogs in 2022 https://aws.amazon.com/blogs/devops/the-most-visited-aws-devops-blogs-in-2022/ The most visited AWS DevOps blogs in As we kick off I wanted to take a moment to highlight the top posts from Without further ado here are the top AWS DevOps Blog posts of Integrating with GitHub Actions CI CD pipeline to deploy a Web App to Amazon EC Coming in at Mahesh Biradar Solutions … 2023-01-05 13:55:57
Ruby Rubyタグが付けられた新着投稿 - Qiita 【Ruby】クラス変数ではなくインスタンス変数を使う場合 https://qiita.com/yamaBBB/items/043a3355584a8054f088 変数 2023-01-05 22:33:42
AWS AWSタグが付けられた新着投稿 - Qiita AWS WAF と CloudWatch だけで国別の BLOCK 数を可視化する https://qiita.com/misc_map/items/d837617c87d0e56d1b98 awswaf 2023-01-05 22:19:00
海外TECH MakeUseOf Sleep Better With the Amazon Halo Rise, Save $30 With Amazing Deal https://www.makeuseof.com/amazon-halo-rise-deal/ great 2023-01-05 13:40:15
海外TECH MakeUseOf 5 Best Online Communities for Mountain Bikers to Connect and Ride https://www.makeuseof.com/moutain-bikers-best-online-communities/ communities 2023-01-05 13:30:16
海外TECH MakeUseOf Xbox Series X Controller Keeps Disconnecting? How to Fix It https://www.makeuseof.com/fix-xbox-series-x-controller-disconnecting/ controller 2023-01-05 13:30:16
海外TECH MakeUseOf The Top 6 Accessories to Always Keep in Your Vehicle https://www.makeuseof.com/top-accessories-to-keep-in-vehicle/ assistance 2023-01-05 13:16:15
海外TECH MakeUseOf How to Enable or Disable Password Expiration in Windows 11 https://www.makeuseof.com/enable-disable-password-expiration-windows-11/ security 2023-01-05 13:01:15
海外TECH DEV Community How to create a Steps Progress Bar https://dev.to/jolamemushaj/how-to-create-a-steps-progress-bar-4m2b How to create a Steps Progress BarRecently I had to facilitate the work of the users of a web page that I am maintaining The best way to make the process as simple as possible was to create a Steps Progress Bar A multi step progress bar is a powerful tool used to show your customers the progress of work in a step format It is very useful because it lets users know how close they are to a completed action To create a basic Progress Bar you need to use Html CSS and JavaScript Let s start with Html The following format requires the use of Font Awesome lt div class main gt lt ul gt lt li gt lt i class icons awesome fa solid fa user gt lt i gt lt div class step first gt lt p gt lt p gt lt i class awesome fa solid fa check gt lt i gt lt div gt lt p class label gt Profile lt p gt lt li gt lt li gt lt i class icons awesome fa solid fa coins gt lt i gt lt div class step second gt lt p gt lt p gt lt i class awesome fa solid fa check gt lt i gt lt div gt lt p class label gt Finances lt p gt lt li gt lt li gt lt i class icons awesome fa solid fa house gt lt i gt lt div class step third gt lt p gt lt p gt lt i class awesome fa solid fa check gt lt i gt lt div gt lt p class label gt Property lt p gt lt li gt lt li gt lt i class icons awesome fa regular fa star half stroke gt lt i gt lt div class step fourth gt lt p gt lt p gt lt i class awesome fa solid fa check gt lt i gt lt div gt lt p class label gt Evaluation lt p gt lt li gt lt li gt lt i class icons awesome fa solid fa thumbs up gt lt i gt lt div class step fifth gt lt p gt lt p gt lt i class awesome fa solid fa check gt lt i gt lt div gt lt p class label gt Approval lt p gt lt li gt lt ul gt lt div gt Below is the code for styling the elements The code includes CSS for active and inactive buttons margin padding box sizing border box main width height vh display flex justify content center align items center flex direction column ul display flex ul li list style none display flex flex direction column align items center justify content center margin px ul li icons font size px color bb margin px ul li label font family sans serif letter spacing px font size px font weight bold color bb ul li step height px width px border radius background color ddc margin px px display grid place items center color ghostwhite position relative cursor pointer step after content position absolute width px height px background color ddc right px first after width height ul li step awesome display none ul li step p font size px ul li active background color bb li active after background color bb ul li active p display none ul li active awesome display flex JavaScript code is required for product functionality The following code explains how the steps are initially inactive and then become active through clicks on each step and event listeners const first document querySelector first const second document querySelector second const third document querySelector third const fourth document querySelector fourth const fifth document querySelector fifth const steps first second third fourth fifth function nextStep currentStep steps forEach step gt step classList remove active steps forEach step index gt if index lt currentStep step classList add active else step classList remove active steps forEach step index gt step addEventListener click gt nextStep index The final product would look like this 2023-01-05 13:52:44
海外TECH DEV Community From Zero to Hero... Send AWS SES Emails Like a Pro! https://dev.to/kumo/from-zero-to-hero-send-aws-ses-emails-like-a-pro-4nei From Zero to Hero Send AWS SES Emails Like a Pro This article assumes the reader has basic knowledge of AWS SES Simple Email Service like being able to send simple emails using SES and Lambda or to verify an identity TL DRThis article is structured in three independent parts three problems and their solutions If you have a short timing cover what seems the most important to you first Handling AWS sender reputationAvoiding to end up in spamsDesigning responsive emails that display well on every mail client ️AWS SES ️As you may already know AWS SES offers a great way to send emails with your AWS serverless app Coupled with the AWS SDK and Lambda functions it allows you to programmatically send emails to your users with minimal setup However this ease of use comes at the price of potential mistakes and pitfalls that can happen at every step of your coding journey Let me guide you through three of these issues and help you design beautiful emails that never end up in your users spam Three obstacles on your road to clean email communicationA few months ago I went through the implementation of transactional emails sending on the project I was working on and identified three major pitfalls that every developer should be aware of these pitfalls are also relevant when sending promotional emails Using only minimal configuration to send your emails You will be prevented from sending messages if your sender reputation goes down Your emails will probably end up in some of your users spams Your emails will probably look bad on some clients ️gmail is one of them or not display at all in some cases for security reasons This article tries to bring solutions to these three problems that are simple and easy to implement There is a lot of content and no specific order if one of the issues is more important than the others do not hesitate to read it s part first and tackle it quick Maintain your sender reputation with AWSFirst step on your way to success is to make sure that your emails are even sent to your recipients It may seem trivial but AWS enforces strict rules that may affect the sender reputation attached to your domain In order to monitor this sender reputation two metrics are mostly used Bounces soft bounces are events happening because of a temporary issue like recipient mailbox full hard bounces happen because of permanent ones like a non existing recipient address Over bounce rate your SES account will be placed under review by AWS Over bounce rate you will be prevented from sending emails until investigation Complaints events that happen when your recipient manually reports your emails as undesired basically spam Over complaint rate your SES account will be placed under review by AWS Over complaint rate you will be prevented from sending emails until investigation Obviously you don t want your account to be blacklisted but I would also advise you to act before being put under review To prevent all this bad stuff from happening to you here are two of my personal tips Set up alarms to be warned before its to lateCloudwatch alarms can be set up to monitor both the bounce and complaint rates and send you notifications take actions when they reach a dangerous level These cloudwatch alarms can be set up at account level or configuration set level Allowing you to either monitor your whole accounts reputation or the reputation linked to specific SES identities Let me advise you to create a configuration set linked to the SES Identity you send emails from and monitor it specifically It will allow you to identify faster where problems are coming from and possibly shut down only parts of your messaging infrastructure if needed Quick example of alarm configuration that could be used to monitor bounce rate It will trigger an alarm if bounce rate breached during the last minutes MetricName Reputation BounceRate Namespace AWS SES Statistic Average Dimensions Name ses configuration set Value lt your configuration set name gt Period EvaluationPeriods DatapointsToAlarm Threshold ComparisonOperator GreaterThanThreshold TreatMissingData notBreaching Next step is to plug a SNS Simple Notification Service topic into both reputation metrics alarms and to either Subscribe your devs email address to the topic to be warned in case of issue Subscribe a lambda automatically shutting down email sending in your configuration set Disabling a configuration set using Typescript and the AWS SDK v const client new SESClient await client send new UpdateConfigurationSetSendingEnabledCommand Enabled false ConfigurationSetName lt your configuration set name gt Avoid sending emails to problematic recipientsWith these alarms you already have a way to quickly react to issues concerning reputation But you can do more to avoid sending multiple emails to addresses harming your reputation One way to achieve this is to add bouncing or complaining addresses to a suppression list Three types of suppression lists exist Global level AWS as a whole Account levelConfiguration set levelLike for your alarm I advise you to be as specific as possible and to setup a a configuration set level suppression list Sample of configuration set config enabling suppression list of bounces and complaints This configuration will automatically blacklist bouncing and complaining email addresses from your configuration set You will be able to remove them manually from the list later SuppressionOptions SuppressedReasons BOUNCE COMPLAINT Great You are now sure that your mails will be sent But will your users receive them in their inbox Probably not all of them if you don t customize your configuration a bit Make sure you don t end up in your users spamsWhen sending a user receives an email there are many factors at stake that will determine if the email ends up in the mailbox or in the spams During my experience developing an email sending service I discovered mail tester a great tool to evaluate the probability of emails ending up in a inbox Just send a test email to the address they give you and it will analyze the likelihood of your message being well received This first mark is terrible but you can fix it using the tips given by the website Many factors determine if your email will be considered suspicious let me cover the most important ones Email contentThe easiest to fix it may already be OK on your app but also the most important Mail clients will often automatically classify your email as spam if you don t comply Your email should absolutely have a subject and a body Your email shouldn t be too short especially if it contains images If your email contains links prefer using full links instead of minified ones Also check that every link included in your email is healthy and redirects to a working website Finally a List Unsubscribe header would improve your reputation especially if you plan to send promotional emails You will see in part of this post how to implement it Sender domainThe second thing checked by mail clients is the web domain where the email originates from There are three major things checked by clients to ensure that the sender is safe SPF and IP sending pool By default SES uses a common pool of IPs that have accumulated over time a quite bad reputation Good practice is to have your own domain to be able to configure SPF to reference a private pool of IP configured on SES DKIM email signing Providing proof that the MAIL FROM header is really the sender DMARC specify how to behave if MAIL FROM and sender are different in order to avoid other people acting on your domainIn this part of the article I will guide you through using your own domain name to send emails to your users and I will show you how to set up DKIM and DMARC on your emails If you don t already own a domain name you can easily buy it for a fair price on AWS Route Working with your own domain name will allow you to fine tune its DNS to become a trusted sender Let s then create a new identity in AWS SES you want to create a domain identity with the domain name corresponding to what you just reserved on AWS Route Let s also assign your configuration set that is linked to the cloudwatch alarms and suppression list previously set up Then a key feature of domain based identities is the ability to specify a custom MAIL FROM domain that will increase the mailing clients trust Choose a subdomain of your domain like notifications lt your domain gt Using a subdomains adds clarity and trust for end readers but it also allows you to separate sender reputations by subdomains and thus avoid affecting your whole domain you do not impact your transactional emails if for example you screw up your promotional emails You can leave default behavior on MX failure and if your domain is hosted on Route click the last checkbox to let AWS automatically do the job of updating the domain s DNS Finally for maximal trust let s set up DKIM on your SES identity It is an authentication method guarantying to your recipients the ownership of your sender domain Just choose easy DKIM RSA BIT and check every checkboxes to set up a strong authentication Time to end with the icing on the cake go to your domain s DNS either on AWS Route or on your own provider and add a dmarc TXT record to it with value v DMARC p none This dmarc record indicates to your recipients that you properly set up DKIM and that they are allowed to refuse your email if there is an authentication failure Here you are You can now be quite certain that your users will see your emails But it s not over yet by default AWS SES does little to nothing to help you send beautiful and responsive emails If you want your emails to look like professional content you will have to handle it yourself Design responsive emails that look good in any mail client Templated vs raw emailsAWS SES supports two different modes to send emails from your Lambda functions raw and templated emails Each of these solutions has its benefits and drawbacks Templated emails Offer a quick win to design good looking emails Technically limited For example as of January you can t add custom headers or attachments to your messages Even using simple html css in your templates may lead to some unexpected visual results Raw emails ️Harder to handle you have to take care of everything Allow great customization Coupled with the right libraries they become the better solution in my opinion These two options allow you to send emails containing html content which are nicer to read on the user s end Templated emails are directly based on a html template while a raws email can parse a html template s content to include it in the email you ll see how to do this later Templates often give this feeling of controlling the UI of the mail you are going to send but compatibility issues are so common that you should use external tools to generate all clients compatible templates A picture is worth thousand words so let me show you a common template situation I designed a simple html css template to send templated credentials emails to my users On some email clients like macOS Mail my template is perfectly displayed But on gmail everything falls apart Why is it happening Every email client has different compatibilities with html and css An awesome website to visualize that is caniemail It is the email counterpart of can i use and has information on every compatibility issues regarding emails On caniemail you can see that flex direction column isn t supported on gmail desktop but is on macOS mail everything becomes a little clearer Furthermore looking at the global ranking everything on macOS usually works well while it isn t the case on windows and web native counterparts Let s figure out a solution Design responsive email templates with MJMLEvery mail client has different compatibilities relative to displaying html css and images That s why my advice is to use MJML a framework allowing you to create design mail templates with a markup language close to html that will be compiled to respect most compatibility issues on most clients The output template can either be used to send templated or raw emails with SES Here it what the MJML code for my email template looks like lt mjml gt lt mj head gt lt mj raw gt lt meta name color scheme content light gt lt meta name supported color schemes content light gt lt mj raw gt lt mj style gt a color F text decoration none lt mj style gt lt mj head gt lt mj body background color FAFAFA gt lt mj wrapper border radius px padding px gt lt mj section background color F border radius px px gt lt mj section gt lt mj section background color FFFFFF border radius px px gt lt mj column gt lt mj text font family Trebuchet MS color font size px font weight align center gt Welcome to my app lt mj text gt lt mj spacer gt lt mj spacer gt lt mj text font family Trebuchet MS color font size px align center gt Hello username here is your temporary password lt mj text gt lt mj text font family Trebuchet MS color font size px font weight align center gt password lt mj text gt lt mj text font family Trebuchet MS color font size px align center gt Click the button bellow to log in lt mj text gt lt mj button background color F border radius px font size px font weight href gt Join my app lt mj button gt lt mj column gt lt mj section gt lt mj wrapper gt lt mj wrapper border radius px padding px gt lt mj section background color FFFFFF border radius px gt lt mj column gt lt mj text font family Trebuchet MS color font size px align center gt Ran into a problem Do not hesitate to contact me at lt a href mailto help pchol fr gt lt b gt help pchol fr lt b gt lt a gt lt mj text gt lt mj column gt lt mj section gt lt mj wrapper gt lt mj body gt lt mjml gt The lt mj head gt part allows me to Specify my preferred color scheme only light Advanced MJML tricks include light and dark display compatibility Check it out Write some css to further style my contact email address I try to keep it minimal as it won t be covered by MJML compatibility features and may not work on some clients The lt mj body gt part describes what will be displayed It s not html but it remains fairly easy to understand Check the documentation to learn more about this syntax By compiling your MJML template into html css you can use it in a SES template or later in raw emails To compile either use the hands on live editor or go with npm npm run mjml myTemplate mjml output myTemplate htmlLet s have an look on the result No more big differences between email clients Except for the contact email address I warned you the result is just what was expected The power of raw emails attachments images custom headers and moreEverything that was covered until now can be implemented using either templated or raw SES emails But from now you will be diving into the unique possibilities offered by raw emails to push your messages to their limit Let s say I want to add a logo in my email s header Using templated emails it will be impossible to have it displayed on every mail client The solution is to send a raw email with your image as attachment and to reference it in the message s body using contentID I modified my email s header MJML code to include an image lt mj section background color F border radius px px padding gt lt mj column gt lt mj image width px src cid my logo pchol fr alt My logo gt lt mj column gt lt mj section gt Then in the lambda I use to send my emails I can use the Nodemailer library to translate my MJML template into a raw email and to add attachments to my message import as aws from aws sdk client ses import nodemailer from nodemailer import myHtmlTemplate from myHtmlTemplate imported as a stringexport const handler async gt const sesClient new aws SESClient const transporter nodemailer createTransport SES ses sesClient aws await transporter sendEmail from notifications pchol fr my domain name to lt recipient gt subject This a raw email test text This a raw email test html myHtmlTemplate replace username Pchol replace password very secret password manually replace parameters attachments filename pchol logo png path opt pchol logo png image stored in a Lambda layer cid my logo pchol fr same as in the template return OK The files that are attached to my mails come from a Lambda layer These layers can be easily set on the different available frameworks Using additional parameters like list or headers you can specify custom headers for your emails which is impossible using templated emails For instance to add a List unsubscribe header the last obstacle to your mail tester perfect score you can add the following code to your handler list unsubscribe url comment Unsubscribe from this notifications Here is the final result containing the logo as an attachment and the List unsubscribe header The full mail with html styles attachment and custom headers obtains a score on mail tester when I send it from my custom domain based SES identity Mail tester is happy too SES raw emails allow you to send MIME emails that can have multiple content type sections text html text plain If you open the source of the email you received you can see these different sections and their content You can also the the List unsubscribe header you just added List Unsubscribe lt gt Unsubscribe Date Wed Jan MIME Version NmP cbdadfe Part Content Type text plain charset utf Content Transfer Encoding bitThis a raw email test NmP cbdadfe Part Content Type text html charset utf Content Transfer Encoding quoted printable my html This is important because if a client simply refuses to display your html content it will fallback to the text plain one ConclusionHere is a little check list of everything I covered in this article and that you should check when developing emails sending on AWS SES Alarms monitoring my AWS sender reputationConfiguration set level suppression listsCustom domain name SES identityDKIM on my domainDMARC on my domainTemplated VS Raw emails argumentResponsive email templates using MJMLRaw emails allowing to send MIME emails attachments custom headers For each of these problems I tried to show you simple yet effective counter measures that are easy and quick to implement 2023-01-05 13:21:28
海外TECH DEV Community AWS open source newsletter - 2022 in review https://dev.to/aws/aws-open-source-newsletter-2022-in-review-5dhp AWS open source newsletter in reviewThe AWS open source newsletter review of I wanted to kick off by sharing some data points and things of interest that came up in as part of writing and putting together this open source newsletter Given the nature of the newsletter and that transparency and openness is core to open source I hope these might be interesting to some of you In I published newsletters over the course of the year These were enjoyed I hope by over K readers from across the world and clicked on an average of five of the posts I share each week I actually post across two sites dev to and my personal blog Readers came from all over the world with over countries accessing the newsletter The top five countries where U S A India United Kingdom Australia and Germany Over K words were written with nearly K open source related articles shared across code blog posts videos and more We featured over a thousand authors actual number is including many first time authors AWS Heroes AWS Community Builders and the broader AWS and open source community See below for the top ten posts of In the newsletter introduced you to new open source projects with K clicks throughs so I hope you were able to check and use a few of these See below for the top projects I transitioned to using Hugo to build my personal blog and introduced tagging as a way of being able to better find the favourite open source technologies you like Over different tags were used to cover the various open source projects Most viewed projectsWhat were the most popular projects that readers found interesting in this newsletter I thought I would share what have been the most popular projects this year measured by folks that have clicked on the links These are just too good to miss so check this list out and let me know what you think What were your favourite projects of What is missing that you are surprised about querypal the most viewed project provides a nice WebUI for Amazon Athenacfn diagram is CLI tool to visualise CloudFormation SAM CDK stacks as visjs networks draw io or ascii art diagramsdriftctl helps you detect track and alert on infrastructure driftinfracost shows cloud cost estimates for Terraformaws sdk client mock provides AWS JavaScript SDK v mocks for easy unit testingcfn nag is a linting tool for CloudFormation templatessteampipe ise SQL to instantly query AWS resources across regions and accountskeycloak is an open source Identity and Access Management solutiongnuradio is a free amp open source software development toolkit that provides signal processing blocks to implement software radioseventcatalog helps you discover explore and document your Event Driven Architectures powered by Markdown ddb local provides a Python wrapper for DynamoDB Localcloudquery policies aws is an open source cloud asset inventory powered by SQLkronicle is an open source tool and dashboard for documenting and visualising a tech stackmemq is an efficient scalable cloud native PubSub system from PintrestMost viewed blog posts and articlesIt was not just code that readers were interested in Here is a list of the most viewed blog posts of If you missed them the first time around here is your chance to catch up Prestoon Apache KafkaAt Uber ScaleDashboards as Code with HCL SQLThe Art of Building Open Data Lakes with Apache Hudi Kafka Hive and DebeziumMonitor AWS resources created by Terraform in Amazon DevOps Guru using tfdevopsProgressive Delivery using AWS App Mesh and FlaggerParallel CDK stack deployments with GitHub ActionsUse CDKS To Create AWS Controllers for Kubernetes Custom ResourcesHow Prime Video updates its app for more than device typesFirst Look at Lambda Powertools TypeScriptAWS CDK v Tutorial How to Create a Three Tier Serverless Application Feedback and looking forward to Thanks for reading this short post to recap As I look forward to I am thinking about what themes to cover what open source technologies to focus on and ensure that I work back from our customers To help I have a very short survey that I would like you to complete The survey link is here and completing the survey will give you the chance to win some SWAG in the Raffle After completing the survey you will get a Raffle ticket code Please ignore the link below this saying you can redeem this in the AWS Console These are not AWS Credit codes KEEP THE CODE SAVEDI will publish the winning code in a future edition of the AWS Open Source newsletter 2023-01-05 13:19:47
海外TECH DEV Community How to verify a successful website migration to 11ty - test every sitemap link https://dev.to/robole/how-to-verify-a-successful-website-migration-to-11ty-test-every-sitemap-link-2b5f How to verify a successful website migration to ty test every sitemap linkI migrated my website from Jekyll to eleventy ty recently I wanted to preserve the same URLs for the vast majority of my webpages Since Jekyll and ty have different schemes for creating URLs out of file paths I had to do a bit of work to get ty to replicate what Jekyll does I wanted to test that I did this successfully Here is how I did that How can you test that the URLs of a website have not changed I was producing a sitemap for my website A sitemap is kind of like a public directory of your website It is an XML file that lists the URLs for a website It is used to tell search engines which pages they can crawl If you don t have a sitemap you could use a crawler to discover the URLs of your website Some SEO tools will crawl your website and check the links of your website You may be able to generate a list of links from the report It is a challenge to find a free SEO tool that does not some signup shenanigans Also SEO tools often require you to verify ownership of the website For those reasons I skipped that route altogether Here is an example of a sitemap lt xml version encoding UTF gt lt urlset xmlns gt lt url gt lt loc gt lt loc gt lt lastmod gt T lt lastmod gt lt url gt lt url gt lt loc gt lt loc gt lt lastmod gt T lt lastmod gt lt url gt lt urlset gt The loc field contains the URL of each webpage of the website There are ways you can use this to test if your new website and old website have the same URLs You can compare the sitemap of both versions of your website You could do this manually using a visual diff tool or programmatically to check the XML fields of both files for equivalency of URLs I will do the former in the next section You could wait until you have published the new version of your site and then execute HTTP requests on the URLs sourced from the old sitemap to see they are active webpages Manual visual verificationYou can use a file diff tool to compare files side by side to do a visual comparison I used Meld on Linux to do this If you are a Windows user winmerge is a good open source visual diff tool The order of the url nodes do not have to be the same in both files Meld is smart enough to scan both files to see if there is a match Also you need not worry about whitespace One interesting thing that this revealed to me was that the filename of a few of my blog posts had a blank space in them This was not intentional The reason I did not notice is because when Jekyll creates a URL for a file it will replace a blank space with a hyphen ty on the hand puts a character in the URL wherever the filename has a blank space is the URL encoded equivalent of a blank space So I needed to replace the blank spaces in filenames myself to get the same outcome Aside from that all of the URLs looked good So I did not need to do more on this front If my website was a lot bigger or if this was a messier process I would of needed to be more methodical I would have written a script to generate a list of the divergent URLs Some diff tools have shell integrations that can be used to create a list of differences on the command line if you need to go down that route Testing every link from the sitemap xml fileSince I was happy with the outcome from the visual inspection I was happy to publish the ty version of my website Before I hit publish I wrote a bash script that would test that the live website had all of the URLs I expected A sanity check if you will Here is the script which I named as sitetest bin bashfunction help echo Description Test the links in a sitemap XML file to see if they are active webpages It produces a CSV file with the URL and HTTP status code of each link By default it will write to a file named output csv echo echo Usage sitetest sitemap file output file optional function test echo Testing your website now infile outfile output csv if n then outfile fi remove outputfile if exists already if f outfile then rm outfile gt dev null fi output xmllint xpath local name loc text infile errors counter echo URL HTTP Status Code gt gt outfile for link in output do echo n code curl o dev null silent head write out http code n link echo link code gt gt outfile counter if code then errors fi if counter then wait wait if background tasks curl commands have not finished echo n fi sleep s done printf nLinks d counter printf nErrors d n errors case in help test test esacTo give a brief background there are command line tools I use to do the heavy lifting xmllint xmllint is a XML tool It parses XML files and can be used to extract fields from the XML document curl curl is a tool to transfer data from or to a server using one of the supported protocols such as HTTP We can use curl to issue HTTP requests to see if the webpage exists Both of these tools are typically installed by default on unix like systems such as Linux I don t want to step through the entire script It may be beneficial to point out how I use the tools mentioned above It is probably more illuminating to show the results from a short excerpt of the sitemap xml of my website Don t spam my website please lt xml version encoding UTF gt lt urlset xmlns gt lt url gt lt loc gt lt loc gt lt lastmod gt T lt lastmod gt lt url gt lt url gt lt loc gt lt loc gt lt lastmod gt T lt lastmod gt lt url gt lt url gt lt loc gt lt loc gt lt lastmod gt T lt lastmod gt lt url gt lt urlset gt With xmllint you can use an XPath expression to select parts of an XML document If you are not familiar with XML this is similiar to the JavaScript Document querySelectorAll function to extract parts of a HTML document I use an xpath expression to retieve all of the loc nodes and extract the text content The output from xmllint can be added to an array and used later to process the links You can try the command below to see the result of the xmllint command on a sitemap xml file xmllint xpath local name loc text sitemap xmlThis is the outcome of the command on my sitemap example xmllint xpath local name loc text sitemap xmlWith curl I will issue a HTTP request to each of the links recieved from xmllint There is a nice trick with curl that you can write out just the HTTP Status Code it is discussed in this stackoverflow question curl o dev null silent head write out http code n This HTTP response returns a status code of Therefore this URL is no longer a live webpage That s the core of the script To run the script you must provide a sitemap file as the first parameter Optionally you can name the output file by providing a second parameter If the second parameter is not provided the output file will be named output csv and will be written to the directory that the script is run in sitetest sitemap xmlTesting your website now Links Errors When you run the script you will see a series of dots indicating each HTTP request Every tenth HTTP request is indicated by a comma I included a sleep s command in the script so that it waits one second after each request When you are issuing a server with requests in succesion you do not want to do it too quickly Some servers will limit the rate you can request and may ban your IP for a fixed time Generally it is good etiquiette not to hit a server with quickfire requests The output file looks like this URL HTTP Status Code You can open the CSV file in a spreadsheet application such as LibreOffice Calc to explore the data Final wordsThere isn t always a clear process for migrating a website or data It can be useful to write a simple tool to test your actions By using a visual diff tool and writing a script I was able to migrate my website with confidence I had assurance that I did not break links to my website and can maintain the SEO juice for my webpages I hope that this helps you if you are doing a similar thing Thanks for reading 2023-01-05 13:01:00
Apple AppleInsider - Frontpage News Apple hasn't cut iPhone orders, says Foxconn source https://appleinsider.com/articles/23/01/05/apple-hasnt-cut-iphone-orders-says-foxconn-source?utm_medium=rss Apple hasn x t cut iPhone orders says Foxconn sourceA source inside Foxconn claims that December iPhone orders were unchanged refuting claims that Apple is cutting back after weak demand A Foxconn facilityRecent reports including one from Wedbush have said that Apple has asked suppliers to reduce production of iPhones MacBooks and AirPods The reports contributed to Apple s market value slipping below trillion Read more 2023-01-05 13:29:54
Apple AppleInsider - Frontpage News Kensington launches silent mechanical keyboard, ergonomic trackpads https://appleinsider.com/articles/23/01/05/kensington-launches-silent-mechanical-keyboard-ergonomic-trackpads?utm_medium=rss Kensington launches silent mechanical keyboard ergonomic trackpadsA pair of Pro Fit Ergo Trackballs and a QuietType Pro mechanical keyboard have been unveiled by Kensington at the Consumer Electronics Show The two trackballs the Pro Fit Ergo TB and TB resemble Kensington s recent SlimBlade Pro Trackball but aims to be a lower more ergonomic device Ideal for users who want to improve wrist and forearm alignment or work in tight spaces with limited desktop space says Kensington the unique design and low price points make the Pro Fit Ergo Trackballs ideal solutions for people who want to try trackballs for the first time Read more 2023-01-05 13:01:38
Apple AppleInsider - Frontpage News OWC's Thunderbolt Go Dock has built-in power supply & 11 ports https://appleinsider.com/articles/23/01/05/owcs-thunderbolt-go-dock-has-built-in-power-supply-11-ports?utm_medium=rss OWC x s Thunderbolt Go Dock has built in power supply amp portsThe OWC Thunderbolt Go Dock claims to be the world s first Thunderbolt dock with a built in power supply complete with ports and W power delivery OWC Thunderbolt Go Dock with built in power supplyCES is underway and OWC is rushing out of the gate with the Thunderbolt Go Dock It is an port Thunderbolt dock with a built in power supply Read more 2023-01-05 13:01:17
Apple AppleInsider - Frontpage News SECURAM launches smart light and smart dimmer switches https://appleinsider.com/articles/23/01/05/securam-launches-smart-light-and-smart-dimmer-switches?utm_medium=rss SECURAM launches smart light and smart dimmer switchesSECURAM has unveiled a smart Wi Fi light switch and dimmer switch that acts as a night light with hands free voice control and other helpful features New switches from SECURAMThe company has designed and manufactured products since It offers home security systems safe locks and smart home technology Read more 2023-01-05 13:04:13
Apple AppleInsider - Frontpage News Apple will announce crucial holiday quarter earnings on Feb. 2 https://appleinsider.com/articles/23/01/04/apple-to-announce-first-quarter-earnings-on-february-2?utm_medium=rss Apple will announce crucial holiday quarter earnings on Feb Apple has revealed it will be announcing details of its earnings for the first fiscal quarter of on February with its typical results accompanied by an investor conference call featuring CEO Tim Cook and CFO Luca Maestri Apple CEO Tim Cook left with CFO Luca MaestriApple will hold its investor call on Thursday February to discuss its first fiscal quarter earnings release from the same day the corporate giant said via its investor webpage The call is set to start at PM Pacific PM Eastern Read more 2023-01-05 13:42:37
海外TECH Engadget Apple's new audiobook narration service uses AI voices https://www.engadget.com/apple-ai-audiobook-narration-service-131059426.html?src=rss Apple x s new audiobook narration service uses AI voicesWhen you browse Apple Books for your next audiobook you might come across a few titles with a note that says they were quot Narrated by Apple Books quot That s because the tech giant has released a catalogue of titles that make use of its new AI powered digital narration service The company said the service uses the advanced speech synthesis technology it developed quot to produce high quality audiobooks from an ebook file quot nbsp According to The Guardian Apple approached independent publishers who may be interested in teaming up for the project s launch in recent months Authors were reportedly told that the company behind the technology would shoulder the costs of turning their books into audiobooks and that they would be earning royalties Apple as secretive as ever apparently remained unnamed at that point of the process and required partners to sign non disclosure agreements nbsp In its announcement Apple touched on how commissioning voice actors and producing audiobooks could cost writers and publishers thousands of dollars For independent authors especially those just starting out it s not always possible to spare that much money But thing is the audiobook market has grown tremendously in recent years ーit earned billion in sales in and experts reportedly believe the market could be worth over billion by Authors wouldn t only be missing out on potential income by not creating audiobook versions of their titles but also the opportunity to build their brand and following while the market is still growing nbsp The tech giant said its digital narration technology will make audiobook creation more accessible There is truth in that and if the project turns out to be successful it could change the future of audiobooks Books narrated by a digital voice aren t exactly new though and they re typically hard to listen to due to how robotic they sound David Caron a co producer at a large audiobook publisher in Canada also raised an important point in his statement to The Guardian quot The narrator brings a whole new range of art in creating audiobook They re creating something that is different from the print book but that adds value as an art form quot At the moment Apple offers authors two digital voices to choose from One soprano and one baritone They sound pretty human based on the samples the company shared but the sound clips were short and might not be a genuine representation of the whole audiobook s quality Apple is only accepting books in the romance and a limited number of other fiction genres for now The books must already be available on Apple Books must be in English and must pass and editorial review It s working to expand AI narration s availability however and will soon offer it to nonfiction and self development authors The company will also launch two more digital voices for those genres For now you can listen to audiobooks that use Apple s AI by searching for quot AI narration quot in Apple Books 2023-01-05 13:10:59
ニュース BBC News - Home Prince Harry accuses Prince William of physical attack in book - report https://www.bbc.co.uk/news/uk-64170469?at_medium=RSS&at_campaign=KARANGA guardian 2023-01-05 13:45:03
ニュース BBC News - Home Harry will not say if he will attend coronation https://www.bbc.co.uk/news/uk-64174909?at_medium=RSS&at_campaign=KARANGA dispute 2023-01-05 13:56:49
ニュース BBC News - Home Keir Starmer embraces Brexit slogan with 'take back control' pledge https://www.bbc.co.uk/news/uk-politics-64173370?at_medium=RSS&at_campaign=KARANGA westminster 2023-01-05 13:42:10
ニュース BBC News - Home ASB Classic: Emma Raducanu retires in tears with ankle injury 11 days before Australian Open https://www.bbc.co.uk/sport/tennis/64171976?at_medium=RSS&at_campaign=KARANGA ASB Classic Emma Raducanu retires in tears with ankle injury days before Australian OpenEmma Raducanu criticises the slippery courts as she retires early with an ankle injury against Viktoria Kuzmova days before the Australian Open 2023-01-05 13:49:25
北海道 北海道新聞 12日ごろから道内高温 https://www.hokkaido-np.co.jp/article/783975/ 札幌管区気象台 2023-01-05 22:39:00
北海道 北海道新聞 稲葉GM「勝利が恩返し」 日本ハム球団竣工式 市民も期待 https://www.hokkaido-np.co.jp/article/783960/ 北海道日本ハム 2023-01-05 22:32:00
北海道 北海道新聞 「まちの成長引き継ぐ」 千歳市長選 横田氏が立候補表明 https://www.hokkaido-np.co.jp/article/783962/ 千歳市長選 2023-01-05 22:34:00
北海道 北海道新聞 ササラ電車の絵本人気 札幌のイラストレーター、色鉛筆で柔らか描写 https://www.hokkaido-np.co.jp/article/783961/ 路面電車 2023-01-05 22:34:00
北海道 北海道新聞 アイヌ民族の工芸家、CFで教育資金 文様のストール商品化 https://www.hokkaido-np.co.jp/article/783971/ 教育資金 2023-01-05 22:32:00
北海道 北海道新聞 水道管凍結相次ぐ 関連火災も発生 オホーツク管内 https://www.hokkaido-np.co.jp/article/783943/ 冷え込み 2023-01-05 22:26:27
北海道 北海道新聞 ウクライナ、岸田首相の訪問招請 大統領府長官が大使と会談 https://www.hokkaido-np.co.jp/article/783957/ 大統領府長官 2023-01-05 22:25:19
北海道 北海道新聞 <道東ものがたりの舞台>映画「起終点駅 ターミナル」=釧路 夕日と幣舞橋、作品彩る https://www.hokkaido-np.co.jp/article/783560/ 鷲田 2023-01-05 22:20:00
北海道 北海道新聞 <道東ものがたりの舞台>映画「抱きしめたい―真実の物語―」=網走 恋人たち包む優しい光 https://www.hokkaido-np.co.jp/article/783942/ 優しい光 2023-01-05 22:22:09
北海道 北海道新聞 中国春節、海外旅行が6・4倍に コロナ緩和、日本は行き先3位 https://www.hokkaido-np.co.jp/article/783968/ 海外旅行 2023-01-05 22:19:00
北海道 北海道新聞 明大・佐藤、4回転ルッツ決めV 日本学生氷上選手権第1日 https://www.hokkaido-np.co.jp/article/783967/ 北海道苫小牧市 2023-01-05 22:19:00
北海道 北海道新聞 阿部、男子500初優勝 日本学生氷上選手権スピードスケート https://www.hokkaido-np.co.jp/article/783964/ 苫小牧市 2023-01-05 22:14:00
北海道 北海道新聞 観光回復、消費拡大に期待 函館の卸売市場で初競り https://www.hokkaido-np.co.jp/article/783951/ 卸売市場 2023-01-05 22:13:43
北海道 北海道新聞 道南4市町で首長選 議員選は12市町 統一地方選 https://www.hokkaido-np.co.jp/article/783952/ 統一地方選 2023-01-05 22:12:59
北海道 北海道新聞 十勝バス、帯広卸売市場の買い受け人に 路線バスで商品運び販売 https://www.hokkaido-np.co.jp/article/783941/ 十勝バス 2023-01-05 22:06:40
北海道 北海道新聞 中国、3兆円フィリピン投資約束 南シナ海資源交渉は議論の余地 https://www.hokkaido-np.co.jp/article/783959/ 南シナ海 2023-01-05 22:04:00
北海道 北海道新聞 首相「支部長早く選任を」 10増10減巡り自民・森山氏に https://www.hokkaido-np.co.jp/article/783958/ 岸田文雄 2023-01-05 22:02:00
海外TECH reddit Did he just confirm MeGain made Kate cry??? https://www.reddit.com/r/SaintMeghanMarkle/comments/103yps4/did_he_just_confirm_megain_made_kate_cry/ Did he just confirm MeGain made Kate cry “Prince Harry will reveal the details of a sensational row between Meghan and Kate in his new book the Mail has learned During the run up to Harry and Meghan s wedding in May Harry writes that Meghan told Kate that she must have baby brain because of her hormones Kate who gave birth to her third child Prince Louis a month before Meghan and Harry s wedding was understandably upset by the accusation But Meghan also became offended because she was reprimanded for her comments Harry says that Meghan was told she wasn t close enough to Kate to make such remarks about her hormones A well placed source said In the book Harry says that there was a discussion about the timing of the wedding rehearsal and the flower girl dresses and Kate was very upset Meghan said that Kate must have baby brain because of her hormones It caused a huge row because Meghan was told that she wasn t close enough to her sister in law to discuss her hormones and it wasn t the way people spoke to each other within the Royal family The book makes clear that Meghan felt the fall out wasn t her fault but it doesn t exactly make her look very good either “ submitted by u MyTeaWig to r SaintMeghanMarkle link comments 2023-01-05 13:17:02

コメント

このブログの人気の投稿

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