投稿時間:2021-10-09 05:23:34 RSSフィード2021-10-09 05:00 分まとめ(25件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS AWS Feature Demo Video: Dynamic Partitioning with Amazon Kinesis Data Firehose | Amazon Web Services https://www.youtube.com/watch?v=HcOVAFn-KhM Feature Demo Video Dynamic Partitioning with Amazon Kinesis Data Firehose Amazon Web ServicesKinesis Data Firehose now offers dynamic partitioning to simplify the ingestion of streaming data into Amazon S data lakes by automatically partitioning data in transit before it s delivered to Amazon S This makes the datasets immediately available for analytics tools to run their queries efficiently and enhances fine grained access control for data This demo video will show you how dynamic partitioning works and how you could leverage it to meet your business needs Learn more about Amazon Kinesis Data Firehose at Subscribe More AWS videos More AWS events videos ABOUT AWSAmazon Web Services AWS is the world s most comprehensive and broadly adopted cloud platform offering over fully featured services from data centers globally Millions of customers ーincluding the fastest growing startups largest enterprises and leading government agencies ーare using AWS to lower costs become more agile and innovate faster AWS AmazonWebServices CloudComputing 2021-10-08 19:46:24
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Laravelで1モデル内に同一のモデルに対する複数のmorphリレーションを持ちたい。 https://teratail.com/questions/363532?rss=all Laravelでモデル内に同一のモデルに対する複数のmorphリレーションを持ちたい。 2021-10-09 04:58:18
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 基底クラスのコンストラクタの複数回の呼び出し https://teratail.com/questions/363531?rss=all 2021-10-09 04:28:33
Docker dockerタグが付けられた新着投稿 - Qiita DockerにてWordPressを構築する(リバースプロキシの学習も) https://qiita.com/sa9ra4ma/items/94e7f3feb400eac8095d うまくいかないWordPressコンテナ内のApacheで何か設定がしてあるっぽいから、これを飛ばして直接アクセスするのは微妙じゃあホスト側のApacheをプロキシとして、localhostの番に飛ばせばいいのではこんな感じになります。 2021-10-09 04:33:33
海外TECH DEV Community Building server-rendered search for static sites with 11ty Serverless, Netlify, and Algolia https://dev.to/algolia/building-server-rendered-search-for-static-sites-with-11ty-serverless-netlify-and-algolia-13e2 Building server rendered search for static sites with ty Serverless Netlify and AlgoliaProgressive enhancement is an important topic when creating any web site or app What happens when a user s browser isn t able to handle any JavaScript or the specific JavaScript you re using If you re front end fails you need a fallback to allow basic functionality to keep working What s so hard about that When you re working on the Jamstack that can be much harder than in traditional stacks Since the Jamstack is dedicated to serving HTML from a CDN we don t have a traditional server only static files and serverless functions Because of that we might find ourselves rewriting our rendering code for both the frontend and the server Three years and a redesign go by and suddenly you re in a time machine looking at search results in last year s design With ty s new Serverless package and Netlify functions we can quickly start from the server From there we can progressively enhance the experience using libraries like InstantSearch js What is ty Serverless ty is a static site generator written in Node js It offers multiple template languages and multiple methods for ingesting data It s built with flexibility in mind  Historically it does all of its work during the build process and generates HTML that can be stored on a CDN This creates speedy websites that work incredibly well on the Jamstack  For any dynamic content it has relied on front end JavaScript to fetch data This works in many situations but provides no clear path toward progressive enhancement If your front end code fails the dynamic aspects of your site will fail with it With the upcoming release of ty that won t be a concern any more ty will come bundled with the optional ty Serverless plugin This will allow a developer to specify routes that can handle user input That input can come from query parameters or from the URL structure itself What we re buildingIn this demo we ll take a very simple ty site and add a dynamic search route That search route will use ty and a template filter to create HTML in a serverless function all from within the ty code we re used to This will be used for the fallback in our progressive enhancement While we won t go into building out a JavaScript based search in this demo creating a real time search with InstantSearch js is a great basis for a solid user experience How we ll build this Install the plugin and configure the serverless function Create the search page Create a getResults template filter to query our Algolia Index SetupWe ll start from a basic ty template with just a little HTML to get us going To get started clone this repository and install the dependencies ty and dotenv Want to see the finished product Check out the final branch of the repository or see this demo site npm install amp amp npm startThe structure of our project follows the basic structure of an ty site The individual pages are in the root of the project currently only the index html file The templates are in the includes directory The configuration file is eleventy js in the root The site templates are also relatively simplistic a base template that includes a header and footer Once the install is done we ll have a working ty site running locally It s not very interesting yet just an index page with a little HTML Let s add a search page to bring in some content Install and configure the ty Serverless pluginIn its latest canary versions ty ships with the plugin ty Serverless This helps generate the serverless function we ll need to run ty on demand To install it in our project we need to update the eleventy js configuration file  require dotenv config const EleventyServerlessBundlerPlugin require ty eleventy module exports function eleventyConfig Configuration rules eleventyConfig addPlugin EleventyServerlessBundlerPlugin    name search The serverless function name for the permalink object    functionsDir netlify functions   Since ty is creating files in our project that we don t want to track in version control update your gitignore with the following items netlify functions search netlify functions search index jsWhen we rerun npm start ty will now create a serverless function and all necessary bundle files in the directory specified by functionsDir with a name specified by the name property  For most uses you won t modify these files The plugin generates the index js file which can be edited for more advanced use cases ty will override the other files in this directory on each run Create a page to use the serverless functionNow that ty has created the function we can add a page to use it Start by creating a new file in the root of the project named search html In the file we can configure the page s data with frontmatter layout base html title Search Page permalink  search search The layout variable will indicate which template in includes to use for display The title variable will display in the HTML s lt title gt element The permalink object is where we specify what the final URL for this page should be  If you re familiar with ty you may remember the permalink variable being a string You can still use a string for simple use cases but for Serverless it will be an object The object s keys will be the name we specified in the configuration for our serverless function You can also specify different serverless functions to run based on the URL in this way If you want the page generated at build time AND request time you can specify a build key for the permalink as well Once added the page will render at search It doesn t have any content yet other than the header and footer Let s grab some dynamic content from query parameters layout base html title Search Pagepermalink search search lt h class is size mb gt This list is built at request from the query eleventy serverless query query lt h gt  This will create a headline that will look at the query parameters of our route and insert whatever value the query parameter contains If you visit the page with query ty at the end of the URL the string ty will appear in the headline So how do we take that query and get results from Algolia Create a getResults template filterTo get the data we need to render our template we need to create a template filter The filter will accept the query string from the serverless page run a query against an Algolia Index and return an array of articles to our search page Before we dive into the code you ll need to have an Algolia app and a few environment variables If you already have an Algolia Index feel free to use that We ll be using an Index that has blog posts with titles descriptions and URLs If you don t have an Algolia Index create an account and app and use this data to manually create your first Index title Creating an omnibar with Autocomplete description In this tutorial we ll walk through setting up Autocomplete to fire interactions with JavaScript Specifically we ll build an omnibar to toggle light and dark mode for our website An omnibar is a search field that has both search and actions that can be taken A strong example of this is the Chrome or Firefox search and URL bar url title Building a Store Locator in React using Algolia Mapbox and Twilio Part description These days ecommerce shoppers expect convenience and want the physical and online worlds to mesh allowing them to conduct their business on whichever channel they want For example users may choose to url title Introducing Algolia Recommend The next best way for developers to increase revenue description Now with the introduction of Algolia Recommend Algolia further enables developers to unleash the component of the experience that drives the remaining part of the product discovery experience product recommendations url Once you have an Index create a env file and add the following variables The app idALGOLIA APP The search only API keyALGOLIA SEARCH KEY The index nameALGOLIA INDEX Once those are in place we can submit queries via the Algolia JavaScript client to get results Since our query is accessible in our template we ll create a new template filter to use the query and return the results To create a new filter we need to extend ty in the eleventy js configuration file First we ll install the algoliasearch NPM package npm install algoliasearchrequire dotenv config const EleventyServerlessBundlerPlugin require ty eleventy const algoliasearch require algoliasearch const client algoliasearch process env ALGOLIA APP process env ALGOLIA SEARCH KEY const index client initIndex process env ALGOLIA INDEX module exports function eleventyConfig eleventyConfig addPlugin EleventyServerlessBundlerPlugin name search The serverless function name from your permalink object functionsDir netlify functions eleventyConfig addFilter getResults function query return index search query attributesToRetrieve title url date description then res gt return res hits At the top of the file we ll set up the Algolia search client with the API keys app name and index name After that inside of the exported function we ll use ty s addFilter method to add a filter This method accepts two arguments a string to use as the filter and a function to execute when used The function will receive the data passed from the page file In this case it will be the user entered query In this simple example we pass the query into the index search method and request back only the attributes we need to keep our response small When that returns we can return the results back to our page for use in a template loop layout base html title Search Pagepermalink search search lt h class is size mb gt This list is built at request from the query eleventy serverless query query lt h gt assign results eleventy serverless query query getResults lt div class card grid gt for result in results include article html endfor lt div gt In the page we use the built in assign tag in Liquid to assign the data to a variable Then we can loop through the returned array and pass that information into an include This include can be used for these results as well as ANY article display on the site The article html file should be created in the includes directory lt article class card column gt lt h class title gt lt a href result url gt result title lt a gt lt h gt lt p class content gt result description lt p gt lt article gt We now have a working server rendered search in a statically generated site thanks to ty Serverless What are some other patterns in static sites that ty Serverless can help us overcome 2021-10-08 19:20:04
海外TECH DEV Community How To Manage Open edX® Environment Variables Using Doppler and Automating The Deployment https://dev.to/corpcubite/how-to-manage-open-edx-environment-variables-using-doppler-and-automating-the-deployment-4c5e How To Manage Open edXEnvironment Variables Using Doppler and Automating The DeploymentSecrets are a pain to manage and If you are using Ansible to maintain your application and its components there is a better way to do it In this article we see how Doppler can help us to simply and quickly manage environment variables for a complex system called Open edX By default to install and maintain the Open edX we use Ansible For example in order to change SMTP credentials you need to modify an Ansible variables file Then you should deploy it to your target machine and manually restart services in your server to apply the change The automation of this process will allow us to speed up the tedious work and save time By hosting our variables in Doppler reading them via API in our codebase and automating the deployment using Doppler webhook Introduction What is Open edX Open edX is an open source platform you can use to create and host online courses It was originally developed in by MIT and Harvard University and has since been adopted by organizations of all shapes and sizes to power a wide range of online learning use cases It has been used by organizations and universities like Microsoft IBM MIT and ASU How do we handle environment variables by default in Open edX We use Ansible to provision and maintain our platform If you are not familiar with Ansible it s an open source Devops tool that automates the software provisioning and configuration It building blocks are Ansible Playbooks which has or multiple roles Imaging Playbook as full instructions on how to install your software it s components and how the set them up to work properly Ansible Roles Each component in your stack has it s own role for example if your are using Django Nginx and MySQL in your application each one of them has it s own role Variables Each role has it s own variables For example you should provide variables for MySQL role to define root username and password What is the workflow to change an environment variable We have our playbooks roles and their variables in a GitHub repo and we used Ansible vault to encrypt the variables to prevent exposing our credentials in GitHub After encrypting it using vault it looks like the following ANSIBLE VAULT AES After Open edX got provisioned by Ansible all of it s environment variables live as a plain text in the file system on Ubuntu server The file calledlms yml and it contains all the environment variables for our Learning Management System for example EMAIL BACKEND django core mail backends smtp EmailBackendEMAIL HOST smtp elasticemail comEMAIL HOST PASSWORD EMAIL HOST USER EMAIL PORT EMAIL USE TLS true Deploy our change to the serverTo change a variable we need to Decrypt the variables file in our repo Change a variable there and Encrypt the file again and deploy it using Ansible after a successful deployment the equivalent variable get changed in the lms yml on the server One extra step to apply this change is to SSH to the server and restart all the services manually The Problem with env filesThere are multiple issues with this implementation If an unauthorized person have access to our server they can see all the critical credentials of our platform Deployment process includes too many steps specially decrypting and encrypting the variables file which a developer can easily forget to encrypt back the file and push it to GitHub in this case all the secrets get exposed in the GitHub repository After successful deployment to the server we need to manually restart services How can Doppler help Doppler can help us to address all these issues We inject secrets in our codebase directly using Doppler instead of creating local plain text variables file in the serverThere is no need to decrypt and encrypt the variables file for each deployment all the secrets are hosted safely in DopplerWe can use Doppler webhook so as soon as a variable changes there we triggers CircleCI deployment to the server New secret management design and architectureBefore using Doppler this is how the environment management looks likeAfter integrating Doppler with our platform this is how the secrets management look like Create environment variables in DopplerIn this article we create one environment variable in Doppler but the process is the same for all of our environment variables that we want to manage in from Doppler In my account I created a project called openedx with environmentsI created one environment variable called EMAIL HOST PASSWORD to manage the SMPT password The value starts with aohRj This is not my real SMTP password it s only an example Integrating Doppler into the codebaseOur application is written in Python Django so I used Doppler API for this integration I integrated our codebase with Doppler So instead of reading the EMAIL HOST PASSWORD from the local environment variables file it makes a call to Doppler API and gets the value for EMAIL HOST PASSWORD I added the following to our codebase in the edx platform lms envs production py file Getting Environment Variables From Doppler url querystring project openedx config dev DOPPLER TOKEN AUTH TOKENS get DOPPLER TOKEN Authorization Basic DOPPLER TOKEN format DOPPLER TOKEN DOPPLER TOKEN headers Accept application json accepts application json Authorization Authorization doppler response requests request GET url headers headers params querystring EMAIL HOST PASSWORD doppler response json secrets EMAIL HOST PASSWORD raw and removed EMAIL HOST PASSWORD AUTH TOKENS get EMAIL HOST PASSWORD from our code to prevent reading the value from local environment variables You can see the git diff here Let s test it gt gt gt from django conf import settings gt gt gt settings EMAIL HOST PASSWORD aohRj As you can see Django settings is returning the Value we set in Doppler for EMAIL HOST PASSWORD Automate Deployment using Doppler Webhooks and CircleCIAfter integrating our codebase with Doppler we improved the security of our platform by hosting our variables in safe way but when we change a variable in Doppler we still need to SSH to our server and manually run a command like sudo edx bin supervisorctl restart all to restart all the services to get up to date values for our secrets from Doppler To remove this manual step we can use Doppler webhooks so as soon as there is a change in one of our variables we make a call to CircleCI to restart all the services in our server CircleCI ConfigurationIn CircleCI I created a project called doppler openedx deployer This project has a config yml file like following version jobs build working directory doppler openedx deployer docker image circleci python steps checkout run name Deploy to Open edX command doppler openedx deployer scripts deploy sh no output timeout mBy running deploy sh we download the latest version of our Ansible Playbooks and it deploys a command to Open edX server to update configuration and restart all the services Doppler ConfigurationIn Doppler we can go to the webhooks section in projects and our endpoint there The endpoint here is a lambda function that is using CircleCI API to trigger a build Let s See How It Works 2021-10-08 19:19:38
Apple AppleInsider - Frontpage News Crash testing popular MagSafe car vent mounts for iPhone 12 and iPhone 13 https://appleinsider.com/articles/21/10/08/crash-testing-popular-magsafe-car-vent-mounts-for-iphone-12-and-iphone-13?utm_medium=rss Crash testing popular MagSafe car vent mounts for iPhone and iPhone Now that both the iPhone lineup and the newly released iPhone lineup support MagSafe in car mounts using the technology have risen in popularity We took four of the most popular ones and subjected them to an impact test to see which ones held our phones safe Testing popular MagSafe vent mountsWhen editor Mike Wuerthele was in a relatively low speed crash his iPhone in a MagSafe case designed to add the feature to the older device sprung free Given that failure we decided to test the feature with iPhones that have full MagSafe support with a series of dashboard MagSafe adapters that clip onto a vent Read more 2021-10-08 19:05:41
海外TECH Engadget Facebook and Instagram are down for the second time this week https://www.engadget.com/facebook-and-instagram-are-down-for-the-second-time-this-week-193257623.html?src=rss Facebook and Instagram are down for the second time this weekFacebook and its apps are down yet again according to the company The extent of the latest outage wasn t immediately clear but Facebook and Instagram both acknowledged that quot some quot users are having trouble accessing their services nbsp We re aware that some people are having trouble accessing our apps and products We re working to get things back to normal as quickly as possible and we apologize for any inconvenience ーFacebook Facebook October We know some of you may be having some issues using Instagram right now 🥲 We re so sorry and are working as quickly as possible to fix ーInstagram Comms InstagramComms October Facebook s latest issues come just days after the company s worst outage in years when every Facebook owned service went down for more than six hours The company later attributed the issue to a quot faulty configuration change quot that interfered with its DNS servers quot We ve spent the past hours debriefing how we can strengthen our systems against this kind of failure quot Mark Zuckerberg wrote in a statement on Tuesday nbsp But technical issues aren t the only problems plaguing Facebook this week Monday s massive outage was also raised on the floor of the U S Senate this week where lawmakers heard testimony from a whistleblower who said the company has routinely ignored researchers to prioritize profits and growth over users safety Though Facebook has tried to downplay and discredit these claims the resulting scrutiny has already forced the company to quot pause quot work on an Instagram Kids app and slow down work on other new projects nbsp Developing 2021-10-08 19:32:57
ニュース BBC News - Home Energy prices: Steel boss says government offers no solution https://www.bbc.co.uk/news/business-58846999?at_medium=RSS&at_campaign=KARANGA action 2021-10-08 19:32:44
ニュース BBC News - Home Facebook apologises as services including Instagram hit again https://www.bbc.co.uk/news/technology-58850041?at_medium=RSS&at_campaign=KARANGA whatsapp 2021-10-08 19:52:37
ニュース BBC News - Home Ashes to go ahead 'subject to conditions', says ECB https://www.bbc.co.uk/sport/cricket/58788750?at_medium=RSS&at_campaign=KARANGA cricket 2021-10-08 19:42:51
ビジネス ダイヤモンド・オンライン - 新着記事 エムスリー・メルカリ・楽天…増収率推移で分かる驚異の「コロナ勝ち組」ぶり - ダイヤモンド 決算報 https://diamond.jp/articles/-/284203 2021-10-09 04:55:00
ビジネス ダイヤモンド・オンライン - 新着記事 「ヤフコメ」が栄える4つの理由、 異例の注意喚起で見直すネットとの付き合い方 - 井の中の宴 武藤弘樹 https://diamond.jp/articles/-/284375 yahoo 2021-10-09 04:50:00
ビジネス ダイヤモンド・オンライン - 新着記事 「男性向け眉毛サロン」が急増、中高年こそ行くべき理由とは - News&Analysis https://diamond.jp/articles/-/281639 「男性向け眉毛サロン」が急増、中高年こそ行くべき理由とはNewsampampAnalysis顔の印象の割を決めると言われている眉毛。 2021-10-09 04:45:00
ビジネス ダイヤモンド・オンライン - 新着記事 北朝鮮の武器取引に10年間潜入した「スパイ」が初告発、数々の修羅場とは? - from AERAdot. https://diamond.jp/articles/-/284009 北朝鮮の武器取引に年間潜入した「スパイ」が初告発、数々の修羅場とはfromAERAdot国際社会が経済制裁を科す裏で、今も武器取引で外貨を稼ぎ続けている北朝鮮。 2021-10-09 04:40:00
ビジネス ダイヤモンド・オンライン - 新着記事 短時間でコロナを検出し感染力も判定する「DNAセンサー」を米大学が開発 - ヘルスデーニュース https://diamond.jp/articles/-/284226 anapeinetti 2021-10-09 04:35:00
ビジネス ダイヤモンド・オンライン - 新着記事 ムーミン原作者の素顔を描く映画『TOVE/トーベ』、大人も楽しめるワケ - 地球の歩き方ニュース&レポート https://diamond.jp/articles/-/283955 公開予定 2021-10-09 04:30:00
ビジネス ダイヤモンド・オンライン - 新着記事 若作りオジサンに見えない休日カーゴパンツ3選 - 男のオフビジネス https://diamond.jp/articles/-/283894 骨太 2021-10-09 04:25:00
ビジネス ダイヤモンド・オンライン - 新着記事 【精神科医が明かす!】メンタルが不安定な人が陥りがちな思考とは? - 世界のエリートがやっている 最高の休息法 https://diamond.jp/articles/-/283132 精神科医 2021-10-09 04:20:00
ビジネス ダイヤモンド・オンライン - 新着記事 【ひろゆきブーム徹底解剖】「自らが語る『ひろゆき現象』の正体」 - 1%の努力 https://diamond.jp/articles/-/283702 過言 2021-10-09 04:15:00
ビジネス ダイヤモンド・オンライン - 新着記事 お菓子の食べ方ひとつで、育ちがわかる - もっと!「育ちがいい人」だけが知っていること https://diamond.jp/articles/-/284025 諏内えみ 2021-10-09 04:10:00
ビジネス ダイヤモンド・オンライン - 新着記事 雇用統計、低調でも緩和縮小のハードルはクリア - WSJ発 https://diamond.jp/articles/-/284414 雇用統計 2021-10-09 04:08:00
ビジネス ダイヤモンド・オンライン - 新着記事 【いつの間にか、お金が消える】実は怖い「ラテマネー」って知ってる? - そのままやるだけ! お金超入門 https://diamond.jp/articles/-/283766 新進気鋭 2021-10-09 04:05:00
北海道 北海道新聞 「新しい旅」15日再開 知事表明 札幌時短要請解除も https://www.hokkaido-np.co.jp/article/598147/ 助成事業 2021-10-09 04:17:00
ビジネス 東洋経済オンライン 首都圏大地震、「海に近い路線」津波対策は万全か 鶴見線の避難どうする、満員状態の訓練も必要 | 通勤電車 | 東洋経済オンライン https://toyokeizai.net/articles/-/461188?utm_source=rss&utm_medium=http&utm_campaign=link_back 津波の心配 2021-10-09 04: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件)