投稿時間:2021-05-03 03:13:26 RSSフィード2021-05-03 03:00 分まとめ(19件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
js JavaScriptタグが付けられた新着投稿 - Qiita Chrome Extension クロスドメイン(XMLHttpRequest)で困った話(POST) https://qiita.com/take-2405/items/8012b81f7df865c64004 もともとapplicationxwwwformurlencodedと設定していたのですが、この状態だとリクエストを飛ばすことができても送ったRequestBodyをWebAPI側で取得できませんでした。 2021-05-03 02:21:13
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 【VBA】同一マクロブックからの連続したシートのコピーをするとマクロブックが落ちる。 https://teratail.com/questions/336323?rss=all 【VBA】同一マクロブックからの連続したシートのコピーをするとマクロブックが落ちる。 2021-05-03 02:45:10
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) [HTML/CSS/JS]画像を自動でスライドさせつつクリックしたら進ませたい https://teratail.com/questions/336322?rss=all HTMLCSSJS画像を自動でスライドさせつつクリックしたら進ませたい前提・実現したいこと画像枚を秒ごとに自動でスライドさせつつ、秒以内にクリックしたら次の画像に行くようにしたいです。 2021-05-03 02:32:47
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Javascript 攻撃ゲームの作成。関数が実行されない。 https://teratail.com/questions/336321?rss=all hitPointsがzeroになるとshipは破壊完了として作成していこうと思ってます。 2021-05-03 02:23:41
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 【ruby on rails】railsserverを実行してもlocalhostへ接続できません https://teratail.com/questions/336320?rss=all railsサーバーを実行し、ブラウザやクラウドIDEで結果を表示しようとしたところlocalhostnbspにより、接続が拒否されました。 2021-05-03 02:03:33
海外TECH DEV Community ReactQuill with NextJS https://dev.to/a7u/reactquill-with-nextjs-478b ReactQuill with NextJSHey everyone just wanted to share this with you So I ve been trying to find rich editors that were compatible with NextJS Couldn t find any but I found a way to get ReactQuill working Import dynamicimport dynamic from react dynamic After that import ReactQuill using dynamicconst ReactQuill dynamic gt import react quill ssr false Now you can easily use it Example import useState from react import dynamic from next dynamic const ReactQuill dynamic gt import react quill ssr false import react quill dist quill snow css function App const value setValue useState return lt ReactQuill value value onChange setValue gt export default App I hope this helps 2021-05-02 17:32:34
海外TECH DEV Community Automatic Configuration Reloading in Java Applications on Kubernetes https://dev.to/frosnerd/automatic-configuration-reloading-in-java-applications-on-kubernetes-1li7 Automatic Configuration Reloading in Java Applications on Kubernetes IntroductionApplications developed for Kubernetes following the twelve factor methodology are typically straightforward to operate The third factor governs application configuration Twelve factor apps should strictly separate configuration from code making it easy to deploy them to different environments without code changes They should also store configuration as environment variables since they are language and OS agnostic If there are special quality requirements however you might want to deviate from that principle Let s take a stateful highly available application such as a distributed database for example Since Linux assigns environment variables to a process on startup it is not easily possible to change them without restarting the process In Kubernetes terms this means any change to the environment variables of a deployment will roll its pods If your application is stateful this can be costly since state has to be migrated when pods get restarted making a configuration change a non trivial operation Luckily there are other ways to implement configuration changes that do not require pod restarts One of them is to store your application configuration in a config map and mount it into your containers When you update the config map Kubernetes will eventually update the mounted files as well and your application can read the updated configuration In this blog post we want to take a look at how to implement that mechanism inside a Java application The remainder of the post is structured as follows First we will implement our Java application which supports automatic configuration reloading The following section describes how to deploy it to Kubernetes We are closing the post by discussing and summarizing the findings The source code is available on GitHub ImplementationWhen it comes to configuration management on the JVM there are many options One of the old hands in the business is Apache Commons Configuration It provides a generic configuration interface to manage Java application configuration coming from various sources since Apache Commons Configuration also supports automatic reloading of configuration sources which is what we are going to use to reload the changes to our configuration file which will be mounted inside the container First let s define a ConfigReloader class that encapsulates the periodic configuration reloading and exposes a method to retrieve the latest configuration To accomplish periodic reloading we need two components A ReloadingFileBasedConfigurationBuilder and a PeriodicReloadingTrigger The ReloadingFileBasedConfigurationBuilder is responsible for reloading the configuration file and we will set it up to work with a given properties file The PeriodicReloadingTrigger triggers the builder to check for modifications on the file and reload it if necessary at a given interval The following code snippet shows our implementation of the ConfigReloader class import java io File import java util concurrent TimeUnit import org apache commons configuration Configuration import org apache commons configuration FileBasedConfiguration import org apache commons configuration PropertiesConfiguration import org apache commons configuration builder ReloadingFileBasedConfigurationBuilder import org apache commons configuration builder fluent Parameters import org apache commons configuration ex ConfigurationException import org apache commons configuration reloading PeriodicReloadingTrigger public class ConfigReloader implements AutoCloseable private final PeriodicReloadingTrigger trigger private final ReloadingFileBasedConfigurationBuilder lt FileBasedConfiguration gt builder public ConfigReloader String configFilePath Parameters params new Parameters File propertiesFile new File configFilePath builder new ReloadingFileBasedConfigurationBuilder lt FileBasedConfiguration gt PropertiesConfiguration class configure params fileBased setFile propertiesFile trigger new PeriodicReloadingTrigger builder getReloadingController null TimeUnit SECONDS trigger start public Configuration getConfig try return builder getConfiguration catch ConfigurationException cex throw new RuntimeException cex Override public void close trigger stop Note that in order to return the latest configuration we must query the builder on each request Internally it will keep a reference to the current configuration that gets updated atomically after a successful reload This way we guarantee to the callers of ConfigReloader getConfig that the returned configuration does not update while it is in use Next let s implement a main class that will print something to the standard output stream based on the current configuration value First we initialize the ConfigReloader with a path to a properties file that will later be mounted inside the container Then we endlessly print a greeting message to a configurable user at a configurable interval Here goes the code import java util Date import org apache commons configuration Configuration public class App public static void main String args throws InterruptedException try ConfigReloader configReloader new ConfigReloader config config properties while true Configuration config configReloader getConfig String name config getString name int sleepInterval config getInt sleepIntervalMillis System out println String format Hello s it is s name new Date Thread sleep sleepInterval DeploymentIn order to deploy our application to Kubernetes we first need to bake it into a Docker image We are going to utilize the Jib Maven plugin lt plugin gt lt groupId gt com google cloud tools lt groupId gt lt artifactId gt jib maven plugin lt artifactId gt lt version gt lt version gt lt configuration gt lt to gt lt image gt ks java config reload lt image gt lt to gt lt configuration gt lt plugin gt To test it we can start a minikube cluster and build the image directly with the minikube Docker daemon minikube starteval minikube docker env mvn compile jib dockerBuildNext we create a new config map manifest containing the properties file apiVersion vkind ConfigMapmetadata name ks java config reload configmapdata config properties name Frank sleepIntervalMillis We then create a pod manifest and tell Kubernetes to mount the config map into the container Note that in production you probably want to use a more sophisticated mechanism to deploy your application such as a deployment But for the sake of this example a pod is perfectly fine apiVersion vkind Podmetadata name ks java config reload podspec containers image ks java config reload name ks java config reload imagePullPolicy IfNotPresent volumeMounts name config volume mountPath config volumes name config volume configMap name ks java config reload configmap restartPolicy AlwaysWe can then deploy both resources using kubectl and the application should load the configuration file and start greeting Frank When following the container logs and updating the config map we can observe how the greetings change Discussion and SummaryAs you can see from the demo it takes a bit of time until the config change is propagated entirely The reason for this is that kubelet syncs the mounted config maps in the pod once every minute see sync frequency It also caches existing config map data which has to be invalidated before the new value becomes visible to the container Additionally we have the periodic reloading delay inside our Java program Note that you can trigger an immediate reload of the config map by updating one of the pod s annotations e g by storing a hash of the config map contents in a pod annotation If you need your configuration changes to be rolled out more immediate there are other options as well Rather than reading from a properties file you could use a key value store such as Consul etcd or AWS Systems Manager Parameter Store While this gives you more direct control of configuration changes it introduces new challenges First managing your configuration as code might require additional tooling such as defining them as Terraform resources Additionally your application will have to know how to speak to the configuration services including a proper authentication mechanism Another use case where the mounted configmap approach falls short is when you want to reload application secrets such as credentials without restarting the pod In this case using a central configuration store secrets manager in combination with an application internal cache is a good option The cache can be invalidated once a is hit This way rotating the secret inside the secrets manager will eventually propagate to all pods and you do not have to store your secrets in files To summarize I would suggest following the twelve factor methodology and passing your configuration as environment variables if possible If you need to support hot reloading of configuration and you are fine that this happens with a bit of delay choosing the config map file mount based solution described in this post is a good option It relies only on Kubernetes internal mechanisms and basic file system operations from within your application without the need for special protocols or authentication Central configuration stores are a viable alternative as well especially when managing application secrets Cover image by Guillaume Bolduc on Unsplash 2021-05-02 17:29:36
海外TECH DEV Community Weekly Digest 17/2021 - Top of the Week https://dev.to/worldindev/weekly-digest-17-2021-4a69 Weekly Digest Top of the WeekWelcome to my Weekly Digest which is the first one for May This weekly digest contains a lot of interesting and inspiring articles videos tweets podcasts and designs I consumed during this week   GiveawayWe are giving away any course you need on Udemy Any price any course To enter you have to do the following React to this post️Subscribe to our newsletterYou will receive our articles directly to your inbox   Interesting articles to read CSS HellCollection of common CSS mistakes and how to fix them CSS Hell To Hell with bad CSS Faster builds for large sites on Netlify with On demand BuildersLearn how On demand Builders improve build times for large sites on Netlify They help the Jamstack support larger websites and more dynamic apps across any JavaScript framework Get Faster Builds for Large Sites on Netlify On demand Builders What Questions Should You Ask in a Software Engineer Interview Often we focus on acing the interview however we need to remember that the process is a two way street What Questions Should You Ask in a Software Engineer Interview JavaScript Temporal API A Fix for the Date APIJavaScript has a bad date handling API because the Date object implementation was copied directly from Java s Date Class Java maintainers eventually deprecated many of Date class methods and created the Calendar Class in to replace it JavaScript Temporal API A Fix for the Date API Some great videos I watched this week Console is more than just log We re going to cover console count assert table time group and trace by Leigh Halliday CSS Container Queries Polyfillby LevelUpTuts Sass in SecondsLearn the basics of Sass SCSS or syntactically awesome stylesheets Sass is a language and compiler the can make your CSS code more efficient and programmaticby Fireship Let s defer generating pages in our build using Eleventy Cloud and On demand Buildersby Zach Leatherman Using Context to Build a Light Dark ThemeIn this lesson we ll leverage context and hooks to build a global light dark theme in our app by React Native School Is This The Best JavaScript Extension Quokka js is an extension available for multiple editors that allows you to write JavaScript code on a scratchpad This scratchpad will auto update whenever you make changes which makes it the perfect tool for learning writing or debugging code I highly recommend you give it a shot by Web Dev Simplified Useful GitHub repositories Design Resources for DevelopersA curated list of design and UI resources from stock photos web templates CSS frameworks UI libraries tools and much more bradtraversy design resources for developers Curated list of design and UI resources from stock photos web templates CSS frameworks UI libraries tools and much more Please read contributing guidelines before submitting new resources Table of ContentsUI GraphicsFontsColorsIconsLogosFaviconsIcon FontsStock PhotosStock VideosStock Music amp Sound EffectsVectors amp ClipartProduct amp Image MockupsHTML amp CSS TemplatesCSS FrameworksCSS MethodologiesCSS AnimationsJavascript AnimationsUI Components amp KitsReact UI LibrariesVue UI LibrariesAngular UI LibrariesSvelte UI LibrariesReact Native UI LibrariesDesign Systems amp Style GuidesOnline Design ToolsDownloadable Design SoftwareDesign InspirationImage CompressionChrome ExtensionsOthersUI GraphicsWebsites and resources with modern UI components in different formats such as PSD Sketch Figma etc They are great for ideas for web components UIWebsite              DescriptionUI Design DailyAwesome UI Components of all types Daily UIFree Figma library of products elements and screensSketch App SourcesSketch UIs wireframes icons and much moreHumaaansCool illustrations of people with… View on GitHub React Navigation Routing and navigation for your React Native apps react navigation react navigation Routing and navigation for your React Native apps React Navigation Routing and navigation for your React Native apps Documentation can be found at reactnavigation org If you are looking for version the code can be found in the x branch Package VersionsNameLatest Version react navigation core react navigation native react navigation routers react navigation stack react navigation drawer react navigation material top tabs react navigation material bottom tabs react navigation bottom tabs react navigation devtoolsContributingPlease read through our contribution guide to get started Installing from a fork on GitHubSince we use a monorepo it s not possible to install a package from the repository URL If you need to install a forked version from Git you can use gitpkg First install gitpkg yarn global add gitpkgThen follow these steps to publish and install a forked package Fork this repo to your account and clone the forked repo to your local machineOpen a Terminal and cd to the location of the cloned repoRun yarn to install any dependenciesIf you… View on GitHub The Algorithms PythonAll Algorithms implemented in Python TheAlgorithms Python All Algorithms implemented in Python The Algorithms Python          All algorithms implemented in Python for education These implementations are for learning purposes only Therefore they may be less efficient than the implementations in the Python standard library Contribution GuidelinesRead our Contribution Guidelines before you contribute Community ChannelWe re on Gitter Please join us List of AlgorithmsSee our directory View on GitHub dribbble shots Job Finder Appby Andri Crypter NFT marketplaceby Tran Mau Tri Tam Educora Web UI Kitby Yousuf Saymon Learner appby Asish Sunny Delivery Food Mobile Appsby Indah Ratna Sari Tweets StackBlitz stackblitz Browsers are awesome lt input type file gt permits a user to select only a single file at a time but that s only its default behavior You can also allow selecting multiple files and even specify the supported file types Just add multiple and accept attributes PM Apr Julia Evans brk I just learned that there s a terminal version of Wireshark called termshark this is incredible termshark io PM Apr Addy Osmani addyosmani Introducing Image Optimization a fresh page Print eBook on modern formats compression automation and more bit ly smashing images ️ years in the making With thanks to smashingmag colinbendell arinne bibydigital jonsneyers amp countless others PM Apr GitHub github Something changed No worries we ve just made it a bit easier to view a single file in history PM Apr Josh W Comeau joshwcomeau My CSS course features a nifty tool that helps you find the perfect font size value for fluid headings I used to solve this through trial and error with semi random numbers Now I have a system for it Context in the tweets below PM Apr Tomek Sułkowski sulco The gap CSS property is a convenient way to set the spacing between not only the grid but also flex items And now with the just released Safari you can use it in every major browser PM Apr Addy Osmani addyosmani The lt img gt element now supports lazy loading async decoding and many other features bit ly img cwv I wrote about how to optimize UX amp the Core Web Vitals with it AM Apr Picked Pens iPhone purpleby Mina Apple Keynote animationby Louis Hoebregts Make the web less boringby Andy Bell Peter s Blinds with CSSby Jhey Podcasts worth listening Kent C Dodds Software Engineer Educator at Kent C Dodds TechKent goes through his journey from full time software engineer to full time SE educator the mindset of a junior dev ways to solidify one s knowledge and best ways to get a job Hasty Treat Git Rebase ExplainedIn this Hasty Treat Scott and Wes talk about Git Rebase ーwhat it is and how and when to use it The CSS Podcast font faceIn this episode Una and Adam talk about font adjustments when being used within font face When fonts are loaded there s an opportunity to provide default values and fine tunings TypeScript Fundamentals ーGetting a Bit DeeperIn this episode of Syntax Scott and Wes continue their discussion of TypeScript Fundamentals with a deeper diver into more advanced use cases Thank you for reading talk to you next week and stay safe  Make sure to subscribe to our newsletter to receive our weekly recap directly on your email and react to this post to automatically participate in our giveaway If you would like to join our discussions you can find us on Discord 2021-05-02 17:16:31
海外TECH DEV Community Logging to a Docker Container stdout from a Background Process https://dev.to/ara225/logging-to-a-docker-container-stdout-from-a-background-process-3dkg Logging to a Docker Container stdout from a Background ProcessBackground processes in Docker containers can be a bit of a pain for logging however they can t always be avoided For instance I was working on a container for a legacy CGI application at work recently which required both a FastCGI wrapper and a Nginx webserver in the same container with Nginx running as the foreground process and logging to the container s stdout The CGI application does a lot of logging and we didn t really want to have to manage those logs separately from the Nginx logs The CGI wrapper we were stuck with doesn t pass on stderr with CGI stdout goes to the browser so that s pointless also so we had to resort to more devious means Linking a file logging to dev stdout or dev stderr doesn t work because these are merely references to the current process s stdout stderr and logging to a terminal device similarly doesn t work because in production there won t really be a terminal So I was stuck and gave up on the idea for a bit until I realized that in Linux process can write to other processs stdin and stderr There are files in proc TARGET PROCESS PID fd that represent stdin and stderr for that process and you can write to them just like any other file if you have the right permissions Processes can only write to these files if they re running under the same user and group as the target process and if the user is not root you might have to change the permissions of the files further down the link chain Of course in in my situation the master nginx process was owned by root and the CGI scripts were running under an unprivileged user However I worked around this by writing to the stdout of a nginx worker processes which would then be picked up by the master process Unfortunately due to the way we set up the container in the end this solution hasn t found it s way into production but I hope it s useful to you 2021-05-02 17:05:13
海外TECH DEV Community Get an Awesome website! 😄️ https://dev.to/cristoferk/get-an-awesome-website-kjd Get an Awesome website ️Get an Awesome website ️The Fiverr link 2021-05-02 17:01:51
Apple AppleInsider - Frontpage News Apple's M1 MacBook Pro with 512GB SSD gets record-breaking $200 discount https://appleinsider.com/articles/21/04/29/apples-m1-macbook-pro-with-512gb-ssd-gets-record-breaking-200-discount?utm_medium=rss Apple x s M MacBook Pro with GB SSD gets record breaking discountAmazon has done it again with a hidden discount on Apple s M MacBook Pro delivering the lowest price on record for the GB model M MacBook Pro The discount at Amazon is in the form of a instant rebate stacked with a bonus discount at checkout making the price of the M GB GB model a record low in your choice of Silver or Space Gray Read more 2021-05-02 17:14:00
海外TECH Engadget You can drill a keyring hole in Apple's AirTags (but you probably shouldn't) https://www.engadget.com/apple-airtags-teardown-172434026.html You can drill a keyring hole in Apple x s AirTags but you probably shouldn x t A teardown of Apple s AirTags has shown that you can drill a keyring hole in the item tracker but there will be consequences 2021-05-02 17:24:34
海外TECH CodeProject Latest Articles The Intel Assembly Manual https://www.codeproject.com/Articles/1273844/The-Intel-Assembly-Manual-3 additions 2021-05-02 17:07:00
金融 生命保険おすすめ比較ニュースアンテナ waiwainews 墨磨職人 http://seiho.waiwainews.net/view/12345 newsallrightsreserved 2021-05-03 02:56:22
海外ニュース Japan Times latest articles ‘We’re back’: Biden uses first 100 days in office to send message to Asian allies https://www.japantimes.co.jp/news/2021/05/02/asia-pacific/politics-diplomacy-asia-pacific/biden-100-days-asia/ We re back Biden uses first days in office to send message to Asian alliesOfficials in Tokyo have breathed a sigh of relief at the White House s renewed attention to the region with some lauding Washington s renewed Asia focus 2021-05-03 02:50:31
海外ニュース Japan Times latest articles New COVID-19 cases in Tokyo dip below 1,000 as serious infections rise nationwide https://www.japantimes.co.jp/news/2021/05/02/national/japan-coronavirus-may2/ New COVID cases in Tokyo dip below as serious infections rise nationwideJapan saw a record high COVID patients with severe symptoms on Saturday up from the previous day the health ministry said Sunday 2021-05-03 03:08:59
海外ニュース Japan Times latest articles Takuma Asano terminates Partizan contract over unpaid salary https://www.japantimes.co.jp/sports/2021/05/02/soccer/asano-partizan-contract/ Takuma Asano terminates Partizan contract over unpaid salaryJapan forward Takuma Asano has terminated his contract with Serbian side Partizan due to unpaid salary he revealed in a blog post on Sunday After struggling 2021-05-03 02:20:04
ニュース BBC News - Home Manchester Utd v Liverpool postponed after protest https://www.bbc.co.uk/sport/football/56960091 glazers 2021-05-02 17:42:23
北海道 北海道新聞 共同住宅で火災、2人重体 札幌・白石区 https://www.hokkaido-np.co.jp/article/540006/ 共同住宅 2021-05-03 02:16:58

コメント

このブログの人気の投稿

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