IT |
ITmedia 総合記事一覧 |
[ITmedia News] ポケモンGO、11日に「エピックレイド」開催 初登場「レジドラゴ」が1日3回出現 |
https://www.itmedia.co.jp/news/articles/2303/10/news206.html
|
itmedia |
2023-03-10 20:52:00 |
IT |
ITmedia 総合記事一覧 |
[ITmedia News] 「Yahoo! MAP」、ダウンロードした防災地図の自動更新機能を追加 |
https://www.itmedia.co.jp/news/articles/2303/10/news207.html
|
itmedia |
2023-03-10 20:48:00 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
ゲームボーイで「あ・い・う・え・お」の母音を喋らせる |
https://qiita.com/beinosuke01/items/53bebe4de3bdbc25266e
|
波形メモリ |
2023-03-10 20:05:47 |
js |
JavaScriptタグが付けられた新着投稿 - Qiita |
bootstrap5 ドロップダウンにホバー時処理追加 |
https://qiita.com/tetora/items/1eeea0c6338d00503296
|
toralldropdownitemforleti |
2023-03-10 20:29:12 |
Linux |
Ubuntuタグが付けられた新着投稿 - Qiita |
Ubuntu22で仮想NICを作成すると別のNodeとMACアドレスが重複する |
https://qiita.com/nakamiri/items/19cf289b31eca13aeee2
|
bridgeif |
2023-03-10 20:11:34 |
技術ブログ |
Developers.IO |
SageMaker Studio 共有スペースで共同編集を行ってみた |
https://dev.classmethod.jp/articles/sagemaker-studio-shared-spaces/
|
reinvent |
2023-03-10 11:38:49 |
海外TECH |
DEV Community |
The Truth About CloudWatch Pricing |
https://dev.to/cast_ai/the-truth-about-cloudwatch-pricing-1pgk
|
The Truth About CloudWatch PricingAmazon CloudWatch pricing can get tricky CloudWatch s pricing is based on three parts just like any other observability tool a data ingest pipeline a place to store data and a management console When using it you ll face costs related to ingesting data into the data store retaining data there and using the visualization and management tools that help you derive insights from data But how exactly does CloudWatch pricing work And how can you keep tabs on it so the charges don t spiral out of control Keep reading to find outーor jump directly to CloudWatch pricing best practices What is Amazon CloudWatch Amazon CloudWatch is a built in AWS tool that keeps an eye on all of your AWS resources and applications Head over to the CloudWatch home page and you ll see metrics for every single AWS service you re using You can also build custom dashboards to display stats about your custom apps and metric groups CloudWatch lets you set up alarms that notify you when a threshold is exceeded or even adjust the monitored resources automatically EC Auto Scaling and Amazon Simple Notification Service actions For example you can use CloudWatch to monitor different aspects of your EC instances such as CPU utilization and disk reads and writes Once you gather enough data you can decide whether to deploy more instances to handle the increasing load or stop underutilized instances to save money How do you access Amazon CloudWatch Head over to your AWS account and use one of the following methods to access CloudWatch Amazon CloudWatch consoleAWS Command Line InterfaceCloudWatch APIAWS SDKsHow does CloudWatch work Amazon CloudWatch works like a metrics repository where services like EC can add their metrics allowing you to retrieve statistics based on those metrics at any time This graph helps to understand this Source AWS documentationCloudWatch stores metrics separately per region but thanks to the cross region feature it lets you aggregate statistics from different regions Now that we ve gotten the fundamentals out of the way let s focus on pricing CloudWatch pricing tiersIn general CloudWatch charges for its Metrics service based on the number of metrics submitted to it and the frequency with which the API is called to transmit or fetch a metric The higher your cost the more metrics you provide to CloudWatch and the more frequently you access the API This is vital to remember since the more metrics you track the easier it is to analyze particular problems in your system And the faster you submit data the more detailed and exact you can be when troubleshooting service issues CloudWatch is mostly priced based on how accurate the data it collects and stores is The more accurate the data the more Cloudwatch costs FreeThe CloudWatch free tier is applied to your service automatically before you receive any charges based on the tool s paid tier It comes with small allowances for every CloudWatch service such as Metrics Logs and Dashboards AWS offers three types of free tier Always free this option doesn t have an expiry data and is available to all users months free available for months from the sign up Trial trials are short term offers counted from the moment of activating the service The Amazon CloudWatch free tier gives you access to Basic monitoring metrics detailed monitor metrics million API requests alarm metrics GB of log data ingestion and archive dashboards with up to metrics per monthThe free plan gives you a great opportunity to try out CloudWatch and check if the paid plan is a worthwhile investment Still don t forget that basic monitoring metrics are well pretty basic We re talking about a few core metrics per service to make sure that you can monitor a service for availability and high level performance Most AWS services like EC EBS RDS or S offer basic monitoring none of the tracked metrics here will be billed to your account PaidThe CloudWatch paid tier charges differ by region and are subject to change To check the pricing for your region go to the CloudWatch pricing page or use the AWS pricing calculator to check the costs for your unique use case In general CloudWatch pricing will be calculated based on the features you use like MetricsAlarmsDashboardsEventsLogsContributor insightsNote that every feature is priced differently and some are way pricier than others Consider this example Pricing for the US East Ohio region is as follows First metrics Next metrics Next metrics Over metrics API per metrics requestedDashboards per dashboardAlarm per alarm metric at a standard resolution of secondsLogs per GB of data collected per GB for data stored best practices for CloudWatch costs Monitor EC like a proRemember about memory The basic monitoring metrics for EC instance are CPU load disk I O and network I O metrics What about memory Well you need to set up a custom metric to track this Choose detailed monitoring when needed By default Amazon EC sends data to CloudWatch in mi intervals If this level of monitoring isn t enough for you go for detailed monitoring which delivers metrics in min intervals to help you act faster Note from a price standpoint detailed monitoring charges all of the basic monitoring measures as specialized metrics For instance let s say you run EC instances and set them up for detailed monitoring You ll have to pay for your CloudWatch Metric each month The common EC instance types have built in metrics tracked for them by default So metrics per instance instances metrics in total Sure you get metrics for free as part of the CloudWatch free tier so AWS will charge you for metrics And for the first k metrics the charge per metric is month metrics per month Don t get fooled by custom metrics they re tracked differently from built in metrics as you pay for the amount of custom metrics tracked as well as the number of API calls made So if you want to monitor memory use at a resolution faster than minute your API calls will grow too For example if you want to track memory use at a second resolution you ll have to pay four times the amount in API expenses because the API request will be performed four times every minute Consider dimensionsEvery metric has unique qualities that define it and dimensions work like categories for those traits A metric might be CPU usage while a dimension could be CPU core On multi core devices this might result in CloudWatch tracking a large number of CPU metrics Dimensions are part of a metric s unique identifier adding a unique name value combination to one of your metrics creates a new variant of that metric Even though the metrics have the same name CloudWatch interprets each unique combination of attributes as a different measure When deciding whether to track certain dimensions of a metric it s critical to consider the dimension s cardinality High cardinality metrics like an IP address or a unique identifier can cause the number of CloudWatch metrics collected to grow which can cause your AWS costs to go up by a large amount Remove custom metrics you don t needMetrics strike a balance between data precision and cost The more data you gather the more information you ll have that will come in handy when you need to understand what went wrong when a service fails Internal services and less essential external services can withstand some amount of service disruption Prioritizing the importance and impact of a service correctly will help you to choose which services need additional monitoring expenditures Mission critical services should record the most metrics with the highest resolution while less important services can record the fewest metrics and have the lowest resolution to keep costs down Don t forget that Custom Metrics and EC Detailed Monitoring are premium monitoring options Excessive or too comprehensive monitoring won t improve your system s performance but drives costs Before monitoring a metric consider whether it will help diagnose a specific issue If a metric is already being recorded check to see if it has been useful in the past and should be watched again Can Basic Monitoring be sufficient if a service is not a high priority Lower the resolution of metrics when you don t need high resolution Address the metric resolution too High resolution metrics might be useful during an analysis to discover a needle in a haystack but they come at a cost If a service is so critical that learning about a problem within seconds is critical then use a high resolution measure If a minute delay in sending metrics and not being able to make metrics more detailed are fine for the service limiting the resolution of metrics will save you money on Cloudwatch costs |
2023-03-10 11:43:03 |
海外TECH |
DEV Community |
Two React Apps in a same S3 Bucket. |
https://dev.to/jorgeagoiz/two-react-apps-in-a-same-s3-bucket-4ado
|
Two React Apps in a same S Bucket These days ago I had to search for information and investigate whether two React applications could coexist in the same S bucket without using any other AWS service except the S bucket I will say that this is not a good practice and only in certain cases like the one that has been presented to me would it be a solution The idea is to be able to jump between the two applications once both have been deployed to the bucket To do this the first step would be to create a folder structure that facilitates understanding as much as possible react apps original app Original react app nested app Nested react appFor both projects original app and nested app we will use Vite React So inside the react apps folder npm create vite latest original app template reactnpm create vite latest nested app template reactWithin each project we will find the file vite config js which we have to adjust in both cases First we ll go with the configuration file of the original app project import react from vitejs plugin react swc import defineConfig from vite export default defineConfig plugins react base build outDir dist emptyOutDir true Basically we are indicating where you have to build the project and that it does not show us any warning when doing it outside the root directory We will build both projects in our root directory react apps In nested app our configuration file should look like this import react from vitejs plugin react swc import defineConfig from vite export default defineConfig plugins react base nested app build outDir dist nested app emptyOutDir true Here are two differences The first is that we are indicating that nested app will be the public route where the application will serve us both in development and in production The second is that we are telling it to build the project in a subdirectory of the original app build Once we have the configuration files as we have seen the next step would be to install React Router in both projects npm install react router dom localforage match sorter sort bySo that the two applications can coexist and we can go from one to the other once they are in our bucket or we are simply serving the static ones through npm serve we will need to use the HashRouter component You can read the official documentation to understand how works this component To understand the behavior at a basic level let s take a look at the App jsx components of both the original app and nested app applications In both applications we have configured two routes Home page gt Page about gt about This would be the component of our original app project Path react apps original app App jsximport HashRouter Route Routes from react router dom const App gt return lt HashRouter basename gt lt Routes gt lt Route path element lt div gt lt a href nested app about gt About Nested App lt a gt lt a href about gt About Original App lt a gt lt div gt gt lt Route path about element lt div gt lt a href nested app gt Home Nested App lt a gt lt a href gt Home Original App lt a gt lt div gt gt lt Routes gt lt HashRouter gt export default AppAnd this would be the component of our nested app project Path react apps nested app App jsximport HashRouter Route Routes from react router dom const App gt return lt HashRouter basename gt lt Routes gt lt Route path element lt div gt lt a href nested app about gt About Nested App lt a gt lt a href about gt About Original App lt a gt lt div gt gt lt Route path about element lt div gt lt a href gt Home Original App lt a gt lt a href nested app gt Home Nested App lt a gt lt div gt gt lt Routes gt lt HashRouter gt export default AppRight now we could move between the two routes of both applications Jumping from one application to another with the only peculiarity that the HashRouter component works by adding Hash to the routes You could share information between the two applications either through the URL or through the SessionStorage or LocalStorage Once with all this structure we would execute the build of original project and then the build of nested app Path react apps original appnpm run build Path react apps nested appnpm run buildThe dist folder will be generated in our root directory and we should see something like this react apps original app Original react app nested app Nested react app dist Folder with both buildsInside of dist folder dist index html Index of original app assets Assets of original app nested app Folder with nested app index html Index of nested app assets Assets of nested appNow we could upload the contents of the dist folder and have the two applications coexist within the same S bucket We could also serve our statics by running the serve command from the original app folder which would be our root application Path react apps original appnpm run serveFinally just remember that this is not a good practice and that the React Router documentation itself currently advises against the use of the HashRouter component But for a certain case it can be a temporary solution to a problem since with this it would not be necessary to use AWS CloudFront only the S bucket Thanks to my partner Victor and the community of Daniel Primo who helped me with this experiment Greetings |
2023-03-10 11:29:43 |
海外TECH |
DEV Community |
This Week In Python |
https://dev.to/bascodes/this-week-in-python-47jn
|
This Week In PythonFri March This Week in Python is a concise reading list about what happened in the past week in the Python universe I have received some good suggestions for this week s content Thank you Did I miss anything from the Python universe this week What did you read or tried out Python ArticlesAn opinionated Python boilerplate Overhead of Python Asyncio tasks Python Is Much Faster But Pyston amp PyPy Still Show Advantages Elixir for Humans Who Know Python Using OpenAI and Python to Enhance Your Resume A Step by Step Guide ProjectsRustPython A Python Interpreter written in Rustpybroker Algorithmic Trading in Python with Machine Learningfastkafka a powerful and easy to use Python library for building asynchronous web services that interact with Kafka topicstheine high performance in memory cachenosqlapi a library for building standard NOSQL python libraries Did I miss anything from the Python universe this week What did you read or tried out |
2023-03-10 11:11:12 |
Apple |
AppleInsider - Frontpage News |
UAG Standard Issue Backpack review: Rugged, roomy, bad zippers |
https://appleinsider.com/articles/23/03/10/uag-standard-issue-backpack-review-rugged-and-roomy?utm_medium=rss
|
UAG Standard Issue Backpack review Rugged roomy bad zippersThe UAG Standard Issue backpack offers great protection and storage for your tech and gear but be wary of the side pocket zippers that may break easily The Standard Issue has a clamshell body that defines its ruggedness The top zipper reveals a large pocket that runs the length of the bag where most of the space is contained Weighing pounds we received the liter backpack for review UAG also sells an liter option of the Standard Issue With such large sizes the Standard Issue utilizes its space by creating a sizeable primary pocket and supplementing it with smaller specialized compartments Read more |
2023-03-10 11:23:37 |
Apple |
AppleInsider - Frontpage News |
Apple will launch HomePod with 7-inch screen in 2024, says Kuo |
https://appleinsider.com/articles/23/03/10/apple-will-launch-homepod-with-screen-in-2024-says-kuo?utm_medium=rss
|
Apple will launch HomePod with inch screen in says KuoAnalyst Ming Chi Kuo predicts that revamped HomePod will ship in the first half of and feature a built in inch screen from a new supplier currently making Android displays Apple has been reportedly working on HomePods with screens before perhaps bringing together the smart speaker with Apple TV Kuo doesn t detail what the screen could be used for but he does now put a date on its launch AppleApple Tianma is set to debut in Apple s supply chain becoming a new beneficiary of Apple s revamped smart home strategyー Ming Chi Kuo mingchikuo March Read more |
2023-03-10 11:08:14 |
医療系 |
医療介護 CBnews |
病床確保料を半減、コロナ5類移行で-9月末まで、政府決定 |
https://www.cbnews.jp/news/entry/20230310201335
|
位置付け |
2023-03-10 20:25:00 |
医療系 |
医療介護 CBnews |
診療報酬のコロナ特例、5月8日に見直し-24年度からウィズコロナの報酬体系へ |
https://www.cbnews.jp/news/entry/20230310194233
|
感染拡大 |
2023-03-10 20:05:00 |
金融 |
RSS FILE - 日本証券業協会 |
新規公開に際して行う株券の個人顧客への配分状況 |
https://www.jsda.or.jp/shiryoshitsu/toukei/shinkikoukai/index.html
|
新規公開 |
2023-03-10 13:00:00 |
ニュース |
BBC News - Home |
Hamburg shooting: Seven killed in attack on Jehovah's Witness hall |
https://www.bbc.co.uk/news/world-europe-64910415?at_medium=RSS&at_campaign=KARANGA
|
group |
2023-03-10 11:35:58 |
ニュース |
BBC News - Home |
King Charles grants Prince Edward Duke of Edinburgh title |
https://www.bbc.co.uk/news/uk-64913224?at_medium=RSS&at_campaign=KARANGA
|
birthday |
2023-03-10 11:37:45 |
ニュース |
BBC News - Home |
UK economy: Schools and football boost January growth |
https://www.bbc.co.uk/news/business-64904333?at_medium=RSS&at_campaign=KARANGA
|
prospects |
2023-03-10 11:20:44 |
ニュース |
BBC News - Home |
Small boats: France to get more money, says James Cleverly |
https://www.bbc.co.uk/news/uk-politics-64909510?at_medium=RSS&at_campaign=KARANGA
|
paris |
2023-03-10 11:08:46 |
ニュース |
BBC News - Home |
Largest Scotland teaching union backs pay deal to end strikes |
https://www.bbc.co.uk/news/uk-scotland-64906111?at_medium=RSS&at_campaign=KARANGA
|
backs |
2023-03-10 11:37:33 |
ニュース |
BBC News - Home |
Boots cuts Advantage Card points earned per pound |
https://www.bbc.co.uk/news/business-64899536?at_medium=RSS&at_campaign=KARANGA
|
loyalty |
2023-03-10 11:50:54 |
IT |
週刊アスキー |
マイクロソフト、量子と古典コンピューターを統合「Azure Quantum」新ハイブリッド機能を公開 |
https://weekly.ascii.jp/elem/000/004/128/4128208/
|
azure |
2023-03-10 20:15:00 |
IT |
週刊アスキー |
特別感謝生放送「発表! 全メガドライブミニ2メガ投票」が3月24日20時より配信決定 |
https://weekly.ascii.jp/elem/000/004/128/4128225/
|
youtube |
2023-03-10 20:10:00 |
IT |
週刊アスキー |
2023年3月12日まで!スマホ版『ドラゴンクエストIV 導かれし者たち』が33%オフセールを実施 |
https://weekly.ascii.jp/elem/000/004/128/4128226/
|
通常 |
2023-03-10 20:05:00 |
海外TECH |
reddit |
So that means…Zaion is fired? |
https://www.reddit.com/r/Nijisanji/comments/11nm5xl/so_that_meanszaion_is_fired/
|
So that means…Zaion is fired submitted by u BrittanyOtakuGirl to r Nijisanji link comments |
2023-03-10 11:06:49 |
コメント
コメントを投稿