投稿時間:2022-11-16 01:21:24 RSSフィード2022-11-16 01:00 分まとめ(25件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS AWS Compute Blog Better together: AWS SAM CLI and HashiCorp Terraform https://aws.amazon.com/blogs/compute/better-together-aws-sam-cli-and-hashicorp-terraform/ Better together AWS SAM CLI and HashiCorp TerraformThis post is written by Suresh Poopandi Senior Solutions Architect and Seb Kasprzak Senior Solutions Architect Today AWS is announcing the public preview of AWS Serverless Application Model CLI AWS SAM CLI support for local development testing and debugging of serverless applications defined using HashiCorp Terraform configuration AWS SAM and Terraform are open source frameworks for … 2022-11-15 15:33:03
python Pythonタグが付けられた新着投稿 - Qiita [Django/Python]requestsモジュールでよく使うところ。 https://qiita.com/kuri_Django/items/46c039a1e9a07a69ef9a djangopythonrequests 2022-11-16 00:57:14
Azure Azureタグが付けられた新着投稿 - Qiita 1つの自動スケールプロファイル内に複数の規則が構成されている場合の判定方法 https://qiita.com/ss12345/items/7fcc5d170f700af3ea63 規則 2022-11-16 00:54:09
海外TECH DEV Community All about Enum in Typescript https://dev.to/urstrulyvishwak/all-about-enum-in-typescript-356l All about Enum in TypescriptEnums are used to define named constants in Typescript It s the typescripts own feature which is not a type level extension of javascript It is defined using enum keyword Typescript has three types of enums Namely Numeric EnumsString EnumsHeterogeneous Enums Numeric Enums enum Numeric First Second Third Fourth console log Numeric Second A numeric enum s first member is not initialized then it starts from and Second becomes enum Numeric First Second Third Fourth console log Numeric Second Numeric enum is now initialized with hence starts from and Second becomes String EnumsAn enum which is initialized with string literal is called String enum enum StringEnum A a B b C c D d Heterogeneous enumsMix of numeric and string enums enum HeterogeneousEnum No Yes YES Duplicate Identifier is not allowed in Enum Using an enumi Access any member as the property of enum itself console log Numeric Second ii Declare types using the name of the enum function myFunc word number Numeric console log word direction word Numeric Second word Enum without initializers need to be first function getConstantValue return enum Numeric first second getConstantValue first amp second shouldn t be upside down Enums without initializers should come after initialized enums with numeric constants or other enum constants like below enum Numeric first second A third But not like below enum Numeric first second getConstantValue third Each enum member has a value associated with it which can be either constant or computed enum constNComputeEnum first second first reference to previously defined constant enum member third parenthesized constant enum expression fourth true Unary operator applied fifth amp binary operator applied In All other cases enum member considered computed Computed values are not permitted in an enum with string valued members like below enum constNComputeEnum first second second third constNComputeEnum first not allowed It is a compile time error for constant enum expressions to be evaluated to NaN or Infinity Ideally below is not accepted but somehow not throwing any error I checked with latest typescript and is not throwing any error enum NaNNInfinity first Result in NaN second Result in Infinity Reverse MappingNumeric enum members can get a reverse mapping from enum values to enum names enum reverseMappingEnum first const firstItem reverseMappingEnum first console log reverseMappingEnum firstItem first const enums To avoid generating extra js code we can declare any enum as const These are completely removed after compilation and can t have computed members It is recommended to not use const enums at all const enum constEnum first Compile above and check its corresponding js file and you find nothing Ambient EnumsRegular Enums Member that doesn t have initializer will be considered const if its preceding enum member considered const Ambient Enums Member that doesn t have initializer will be considered as computed enum AmbientEnum first second third Object vs EnumsTypescript Enum exactly equal to object with as const const enum Numeric first second third fourth const Numeric first second third fourth as const Literal EnumA literal enum member is a constant enum member with no initialized value or with values that are initialized toany string literal e g first second any numeric literal e g to a unary minus applied to any numeric literal e g Enum members also become types as well enum Numeric thirty forty interface Person age Numeric thirty id number let c thirty age Numeric forty id Shows compilation error as Type Numeric forty is not assignable to type Numeric thirty Enum types themselves effectively become a union of each enum member enum Numeric first second function myFunc type Numeric if type Numeric first type Numeric second Shows compilation error as This condition will always return true since the types Numeric first and Numeric second have no overlap 2022-11-15 15:51:10
海外TECH DEV Community Approaches in Cloud Development Ergonomics https://dev.to/eyalb/approaches-in-cloud-development-ergonomics-5967 Approaches in Cloud Development ErgonomicsThe advent of microservice architectures and cloud native has taken some pretty severe tolls on developer ergonomics It feels as if the tools cloud developers have at their disposal haven t evolved fast enough to keep up with the rapid progress in infrastructure and this tool debt is readily apparent in the day to day of the modern developer The clearest example of this is that it s now really hard to just run your application Not the one microservice you re currently working on but your actual entire application which you ultimately deploy to the cloud and serves your customers You used to be able to fire up your monolith right there on your laptop from within your IDE crash change some code run it again but architectures today have become resource intensive reliant on third party services and mostly just plain convoluted to the point where local execution is no longer a viable option When we talk about something as elementary as running your application it naturally applies to many aspects of the developer s day to day debugging testing even just writing new code to see if it works Therefore solutions that make your application even a little easier to run provide significant value just by affecting so many routine activities In this article we re going to discuss today s dominant approaches to making microservice applications easier for developers to run and we re also going to make the case for our own thing namely a single shared environment in the cloud that the organization maintains and that developers can plug in and out of non intrusively as they develop their microservices Contemporary Cloud Development WorkflowsIn the frictionless microservice utopia the development workflow goes something along these lines Microservices are independent and new functionality can be developed one microservice at a time Microservices talk to each other via well defined contracts which can be tested in isolationDatabases queues and third party services consumed by a microservice also expose a consistent and well defined contract and as such can be mocked for testing purposesIn other words a service can be tested on its own and then deployed to the production environment where it would play nicely with all the other components However let s assume you re a microservice developer who doesn t work in an organization where everyone designs perfect contracts and writes rigorous tests or they do but the third party managed services you rely on don t When writing new code you probably make as much progress as you can within the scope of the one or two microservices you re working on at the moment but then you do one or more of the following Wrangle your entire application microservices databases and all to run on your local machineDeploy your new code to a personal persistent ephemeral development environment in the cloud Deploy your new code to a shared staging environment and test it there Run LocallyThis approach works great when it s feasible which is usually at a very early stage in the life of the application where it s still small and tenable There s some tooling that lets you extend this honeymoon phase by letting you do it more easily like docker compose Skaffold or Tilt However at a certain point even if you ve written whatever scriptage is needed to actually configure and run the latest stable version of all of your components together you re going to hit some sort of ceiling if you ve got a large database or some CPU heavy computations or you re relying on some managed service that can t be containerized this approach soon becomes untenable Pros Convenient development on your local machineNo reliance on network or external servicesCons Difficult impossible for large applications ones with e g many microservices a large database high bandwidth usage Doesn t support hard to containerize components like managed services Personal Cloud EnvironmentWith Infrastructure as Code at its current state of maturity it s now easier than ever to replicate microservice environments in the cloud This unlocked a new approach of having a personal production like cloud environment for every developer which they can use freely and in isolation It comes in two flavors persistent environments or ephemeral environments created on demand with products like Okteto or Bunnyshell also sometimes called Environment as a Service This approach overcomes the resource limitations of the local environment but substitutes them for some new difficulties For persistent environments cost determined by the size of the environment times the number of developers becomes a factor As the company grows so do its architecture and the number of developers leading to soaring cloud billsTo generate state database seed files are used These need to be maintained so they don t become staleYou have to work against a cloud environment which isn t always fun though some tools make it easier like GitHub Codespaces or Gitpod Same as with running your application locally having hard to containerize components in your architecture like managed services can make this approach unfeasible Pros Not capped by the hardware limitations of your development machineBetter simulation of your production environmentCons No production like database stateLocal changes have to be synced to the cloudDoesn t support hard to containerize components like managed services Shared Cloud EnvironmentA lot of organizations have already put in the effort of setting up a single shared production like environment for testing the staging environment It s persistent and has already been set up manually to include all components including third party services databases with full state some companies even automatically stream data from production and all the microservices In terms of simulating production it s hard to do much better However since this environment is shared by multiple developers some measures are usually in place to keep it stable for example you can only actually deploy new code through the CI often meaning you have to wait for a code review and your entire suite of automated tests to run not to mention the deployment script itself before it actually gets there Even then the tests aren t perfect and sometimes you end up deploying broken code and corrupting the environment much to the chagrin of your fellow developers This is where shared environment tools like Telepresence and CodeZero can help They assume you re only working on one or two microservices anyway and running them locally is not an issue These tools let you connect your local service to the staging environment replacing the service currently running in the cluster without deployment The code you re working on runs locally and its dependencies run in the cloud Not only can you keep working on your local environment you can iterate on testing against your cloud environment without waiting for lengthy CI and deployment processes Pros Leverage a single shared environment making it feasible for you to manually set up database state and managed services since you only have to do it once for one environment You can still work locally within your IDECode changes happen locally so iterations are fast no need to deploy to the cloud Cons One developer can break the environment for the othersIf the environment is corrupted it s hard to recover The SellSo local setups are easy to use but don t support large deployments personal cloud environments support large deployments but don t really reflect production don t support components that can t be containerized and cost a lot and shared environments reflect production for cheap but don t really support concurrency without sacrificing stability mirrord lets you have all of these cakes and eat them too We essentially took the shared environment approach and tacked on isolation We do this by Letting developers mirror incoming traffic rather than just intercept it This lets multiple developers work on the same service in the cloud while the service is still running and handling requests Giving developers fine grained control over what happens locally and what happens remotely This way for example incoming traffic mirroring and file reads can happen remotely but outgoing traffic and file writes can be local Future versions of mirrord will include more advanced modes of configuration letting users filter by e g hostname or protocol In future versions supporting advanced features like copy on write for databases In our upcoming cloud solution providing RBAC letting the organization control which teams have access to which parts of the staging environment By using mirrord developers can run the one service they re working on locally without juggling configurations or straining their development machine they can run it against a full environment with mature database state and managed services and they can do it quickly easily and without risk We ve recently released our first stable version and would love to hear your thoughts on GitHub or Discord It can also be supplemented with a cloud development environment as provided by products like Gitpod or Codespaces For a comprehensive survey of the non localhost space see this excellent article 2022-11-15 15:47:30
海外TECH DEV Community How Singula team helped develop an analytical system for a tire manufacturer https://dev.to/elizabethlvova/how-singula-team-helped-develop-an-analytical-system-for-a-tire-manufacturer-40on How Singula team helped develop an analytical system for a tire manufacturerPirelli amp C is one of the world s largest manufacturers of premium car tires The company owns factories in countries all over the world In the Tire Plant owned by Pirelli amp C decided to develop a manufacturing analytics and IIoT system for analyzing the enterprise s production processes But ready made solutions out of the box could not offer the necessary functionality So the company turned to Singula with a request to help them develop a unique data analytics system for manufacturing production which would allow the data to be analyzed and visualized and let them see bottlenecks The challenge collect data from hundreds of machines in one placeThe plant has hundreds of machines that perform millions of operations every day At the time all the raw data on them were sent to one large common system Each department unloaded and processed it manually which took a very long time While they could unload data from the system via SQL this had to be done by specially hired specialists Then each department prepared a report according to its profile planning quality assessment etc As a result top management collected several different reports and based on the data received a certain general picture of production But thousands of such reports were collected for a shift a day a month etc To create the annual report employees in each department had to manually process huge amounts of data This took up most of their work time The plant needed to develop an industrial analytics platform that would increase the efficiency of operational processes take over the primary analysis and processing of data and issue it in an easy to understand form using graphs tables and diagrams Basic system requirements Ability to work with different data sourcesIntegration with enterprise information systemsReporting platformFlexible output of results in the form of graphs and tablesAuthentication and authorization of system usersDeployment within the international corporate standards of PirelliThe solution analytics and cluster structureBusiness analyticsWe had to come up with a unique industrial data management platform so we did a lot of preparatory work before beginning the manufacturing monitoring system development In the first months two Singula team business analysts worked on the project studying architecture and use cases of existing databases and user requests for a future product The technical team also visited the enterprise and got acquainted with the technological cycle and equipment in order to understand how production works and the existing internal bases and systems Currently one analyst is working on the project He is engaged in clarifying the needs of the client collecting feedback on ready made solutions and formulating tasks for developers All communication with the client s technical team most of which is located in Italy goes through him Big data in industryWe needed to develop an application for the collection and primary processing of big data in manufacturing The company has an industrial Internet of Things IIoT system In addition to data on the direct operations of the equipment operating times and types the number and duration of cycles and failures the machines also send data about various rubber compound formulations and tire models to the databases This information flows into local databases and then accumulates in the general Data Lake Pirelli Management and access to data occur through the internal system of the corporation We taught the application to quickly find the necessary data in the storage filter it according to the specified criteria and then build tables graphs and charts based on it But the application does not just collect archived data it is also a real time production monitoring system allowing users to monitor current processes and report failures and violations In addition users can correct the results in which case the edited version is saved separately Technology stackThe main platform for launching and managing running applications is Kubernetes We chose this platform for several reasons One of the main ones is the ability to flexibly and quickly scale environment resources when the load on services increases especially when the number of analytical modules in the system increases Built in isolation mechanisms allowed us to work with data safely and accurately Colleagues from Italy have already transferred some of their services to this platform and we quickly optimized our deployment processes to work in the global Kubernetes environment thanks to unified approaches and tools supported by the global DevOps community The distribution of the application is implemented through Docker which allows us to quickly deliver changes to the production environment using the optimal development languages ​​for specific tasks as well as to flexibly switch between releases The entire process of building and delivering releases is automated using CI CD tools and services which eliminates the influence of the human factor in these processes The application is written in Python using Django and React is used on the frontend To work with databases a layer in the form of a Query Engine is used which allows you to flexibly manage access to tables as well as optimize and parallelize queries when working with big data Caching of frequently accessed data is implemented using Amazon ElastiCache DesignThe request for the interface design of the BI tool came from our development team not from the client as is usually the case The client was not satisfied with the initial prototype using ready made solutions ーthere are too many different forms of data in the project and it was extremely difficult to find the information of interest in the final graphs using existing BI tools in the manufacturing industry It was necessary to take into account some conventions that are already accepted in the company For example color coding Conditional colors are used to indicate different groups of data There are also preferences for chart types ーmost often Pareto and waterfall charts are used We have written scripts for different user groups to make the system more convenient for different specialists to work with You can choose the period for displaying statistics the number of machines production cycles and so on The most useful buttons have quick access so that interface elements do not interfere with the perception of basic information Result MVP release by modulesThe implementation of this analytics system is divided into modules responsible for different aspects of production which we are implementing in priority order for the customer There are parts in the project and three of them have already been released into production New sizesThe first module is responsible for monitoring the Phase In processes ーthe transition of equipment to new tire size and the production of that size In this case there are two types of Phase In ーBU and CU for which the sets of control points are different To analyze these processes and optimize the performance of production we taught the application to collect control points for all stages of production assembly vulcanization and finalization and compare them with normal indicators so that any deviations are immediately noticeable Equipment efficiencyNext we implemented an OEE system that allows us to evaluate the performance of the equipment It operates with data on the operation of machines directly without reference to models and recipes Data can be filtered by dates shifts types of machines specific machines or you can reset all filters and see a general summary table Working cyclesThe third module allows you to track equipment cycles and the performance of operators The system generates statistics on the time of work cycles for machines rubber models and operators ConclusionIf you are also looking for custom manufacturing analytics solutions or production intelligence apps for big data and industrial processes send us a message our experts will help you to develop a custom product based on your requirements 2022-11-15 15:38:54
Apple AppleInsider - Frontpage News Tim Cook talks privacy, hiking, and investing for the long term https://appleinsider.com/articles/22/11/15/tim-cook-talks-privacy-hiking-and-investing-for-the-long-term?utm_medium=rss Tim Cook talks privacy hiking and investing for the long termApple CEO Tim Cook says as a hiker he appreciates the company s new Emergency SOS and that investing in new features like this is how to get through tough economic times CBS Mornings has released an expanded version of its Tim Cook interview in which he answers wide ranging questions about about Emergency SOS hiring freezes Twitter and the economy EXCLUSIVE Apple is launching a new feature today in the U S and Canada that allows iPhone users to send emergency texts when there is no cell service or wifi using a satellite We keep asking ourselves how can we help Tim Cook tells nateburleson pic twitter com dAYZaEーCBS Mornings CBSMornings November Read more 2022-11-15 15:22:29
Apple AppleInsider - Frontpage News Today's best early Black Friday deals on Apple, software & more https://appleinsider.com/articles/22/11/15/todays-best-early-black-friday-deals-on-apple-software-more?utm_medium=rss Today x s best early Black Friday deals on Apple software amp moreWith Black Friday a mere days away discounts on Apple gear are hitting a fever pitch with deals on hardware ーand even some closeout steals Early Black Friday deals are live on Apple products Many of the deals below offer record low prices on Apple products But there s no guarantee inventory will last or the prices will not change because Apple product sales can fluctuate drastically during the holidays If you re in need of a new device now or want to ensure your holiday shopping is done ahead of the big rush the offers below provide excellent gift ideas Read more 2022-11-15 15:13:17
Apple AppleInsider - Frontpage News How to use Emergency SOS via Satellite on iPhone 14 https://appleinsider.com/inside/iphone-14/tips/how-to-use-emergency-sos-via-satellite-on-iphone-14?utm_medium=rss How to use Emergency SOS via Satellite on iPhone If you re off the grid can t see wireless and need help and have an iPhone you can use Emergency SOS via Satellite Here s how to use it Emergency SOS via SatelliteThe iPhone has been a fantastic tool for people in trouble in a variety of ways including its most basic of allowing users to call for emergency services However while the United States has a lot of its land covered by some form of cellular signal sometimes it s just not available Read more 2022-11-15 15:11:51
Apple AppleInsider - Frontpage News Report shows macOS had the least malware infections in 2022 https://appleinsider.com/articles/22/11/15/report-shows-macos-had-the-least-malware-infections-in-2022?utm_medium=rss Report shows macOS had the least malware infections in A new global threat report paints an ugly picture for Microsoft as Windows continues to have the most malware infections while macOS had the least malware Macs continue to be safe from malwareElastic Security Labs published a cybersecurity report on Tuesday that examines popular operating systems and the threats they have received The company also includes forecasts and recommendations for enterprise customers Read more 2022-11-15 15:05:02
海外TECH Engadget Ableton drops Live and Push prices by 20 percent for Black Friday https://www.engadget.com/ableton-live-11-push-controller-good-deal-154036521.html?src=rss Ableton drops Live and Push prices by percent for Black FridayBudding beatmakers or musicians looking to add to their toolset might be interested in checking out Ableton s Black Friday deals The company has slashed the price of its Live packages the Push controller and sound packs by percent While that isn t quite as generous as the percent discounts we ve seen from Ableton in the past the company doesn t often run sales So if you ve been eyeing Live one of the most popular digital workstations DAWs around for a while now might be the time to take the leap You ll have some time to think about it though as the deals run through January th The base Live Intro option is down from to for the time being It has what you need to get started with the DAW including more than sounds audio effects and MIDI effects If you re ready for something more full featured consider the Live Standard package the price of which Ableton has lowered from to The bundle includes unlimited audio and MIDI tracks as well as unlimited scenes and more than sounds At the top end is the Live Suite which is down from to You ll get access to more than sounds along with more audio and MIDI effects and extra software instruments Current Live users can get percent off upgrades too Meanwhile it s rare to see Ableton offering a discount on the Push controller which has deep integration with Live In fact the company confirmed to Engadget this is the first time it has cut the price of the controller since You ll be able to use Push to play and tweak samples step sequence your creative ideas and record your creations If you don t already own Live but want to pick up Push you ll need to buy them as a bundle The Live Intro and Push package costs down from Live and the controller will set you back was As for the bundle of Live Suite and Push that will run you down from Current Live owners will see their Push price after logging into their account but based on the bundle prices it should be around Ableton allows customers to spread the cost of Live or Push over six months at the discounted rate Meanwhile students and teachers can save up to percent off the standard price 2022-11-15 15:40:36
海外科学 NYT > Science Colombia Leads a New Latin American Left Into the Climate Fight https://www.nytimes.com/2022/11/15/climate/colombia-climate-latin-america.html Colombia Leads a New Latin American Left Into the Climate FightThe country s first leftist president says oil is his economy s worst addiction Phasing it out would be a global first for a major oil producer 2022-11-15 15:47:16
海外科学 NYT > Science World Population Reaches 8 Billion, UN Says https://www.nytimes.com/2022/11/15/world/world-population-8-billion.html countries 2022-11-15 15:37:30
金融 RSS FILE - 日本証券業協会 株式投資型クラウドファンディングの統計情報・取扱状況 https://www.jsda.or.jp/shiryoshitsu/toukei/kabucrowdfunding/index.html 株式投資 2022-11-15 15:30:00
金融 金融庁ホームページ 金融審議会「顧客本位タスクフォース」(第4回)を開催します。 https://www.fsa.go.jp/news/r4/singi/20221115.html 金融審議会 2022-11-15 17:00:00
金融 金融庁ホームページ 金融審議会「顧客本位タスクフォース」(第2回)議事録を公表しました。 https://www.fsa.go.jp/singi/singi_kinyu/kokyakuhoni_tf/gijiroku/20221024.html 金融審議会 2022-11-15 17:00:00
金融 金融庁ホームページ 金融安定理事会による「ノンバンク金融仲介(NBFI)の強靭性向上:進捗報告書」について掲載しました。 https://www.fsa.go.jp/inter/fsf/20221115/20221115.html 金融安定理事会 2022-11-15 17:00:00
金融 金融庁ホームページ 金融庁職員の新型コロナウイルス感染について公表しました。 https://www.fsa.go.jp/news/r4/sonota/20221114.html 新型コロナウイルス 2022-11-15 17:00:00
ニュース BBC News - Home Awaab Ishak: Mould in Rochdale flat caused boy's death, coroner rules https://www.bbc.co.uk/news/uk-england-manchester-63635721?at_medium=RSS&at_campaign=KARANGA family 2022-11-15 15:38:08
ニュース BBC News - Home Ukraine war: Kyiv attacked as world leaders meet at G20 https://www.bbc.co.uk/news/world-europe-63638859?at_medium=RSS&at_campaign=KARANGA chernihiv 2022-11-15 15:13:27
ニュース BBC News - Home Matt Hancock: Covid campaigners fly banner over I'm A Celebrity jungle https://www.bbc.co.uk/news/entertainment-arts-63634006?at_medium=RSS&at_campaign=KARANGA celebrity 2022-11-15 15:37:51
ニュース BBC News - Home Lost dog 'hands itself in' at Loughborough Police Station https://www.bbc.co.uk/news/uk-england-leicestershire-63633683?at_medium=RSS&at_campaign=KARANGA rosie 2022-11-15 15:03:57
ニュース BBC News - Home Women's Rugby League World Cup: England coach Craig Richards leaves role https://www.bbc.co.uk/sport/rugby-league/63640488?at_medium=RSS&at_campaign=KARANGA Women x s Rugby League World Cup England coach Craig Richards leaves roleThe RFL confirm England head coach Craig Richards has left his role following his side s Women s World Cup semi final defeat by New Zealand on Monday 2022-11-15 15:38:17
ニュース BBC News - Home Tyson Fury says he 'needs to fight Anthony Joshua' before he retires https://www.bbc.co.uk/sport/boxing/63636073?at_medium=RSS&at_campaign=KARANGA briton 2022-11-15 15:31:06
サブカルネタ ラーブロ 手打ちそば 美並:豚せいろ http://ra-blog.net/modules/rssc/single_feed.php?fid=204548 手打ちそば 2022-11-15 15:05:32

コメント

このブログの人気の投稿

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