AWS |
AWS Partner Network (APN) Blog |
Automation-Driven Atos Cloud Migration Factory for Accelerated Containerization |
https://aws.amazon.com/blogs/apn/automation-driven-atos-cloud-migration-factory-for-accelerated-containerization/
|
Automation Driven Atos Cloud Migration Factory for Accelerated ContainerizationContainerization has emerged as one of the most popular choices for application deployment Some apps can be easily moved to managed container platforms but they require changes before they are ready for containerization The Atos cloud factory migration approach helps customers adopt modernization along with migration rather than do it in a two step process which starts with lift and shift and ends with modernization Atos is an AWS Advanced Consulting Partner with the Migration Competency |
2021-08-03 19:44:32 |
AWS |
AWS Machine Learning Blog |
Enghouse EspialTV enables TV accessibility with Amazon Polly |
https://aws.amazon.com/blogs/machine-learning/enghouse-espialtv-enables-tv-accessibility-with-amazon-polly/
|
Enghouse EspialTV enables TV accessibility with Amazon PollyThis is a guest post by Mick McCluskey the VP of Product Management at Enghouse EspialTV Enghouse provides software solutions that power digital transformation for communications service operators EspialTV is an Enghouse SaaS solution that transforms the delivery of TV services for these operators across Set Top Boxes STBs media players and mobile devices A … |
2021-08-03 19:57:53 |
AWS |
AWS Machine Learning Blog |
Upgrade your Amazon Polly voices to neural with one line of code |
https://aws.amazon.com/blogs/machine-learning/upgrade-your-amazon-polly-voices-to-neural-with-one-line-of-code/
|
Upgrade your Amazon Polly voices to neural with one line of codeIn Amazon Polly launched neural text to speech NTTS voices in US English and UK English Neural voices use machine learning and provide a richer more lifelike speech quality Since the initial launch of NTTS Amazon Polly has extended its neural offering by adding new voices in US Spanish Brazilian Portuguese Australian English Canadian French German … |
2021-08-03 19:06:05 |
AWS |
AWS Media Blog |
Getting started with the AWS Media Asset Preparation System (MAPS) |
https://aws.amazon.com/blogs/media/metfc-aws-media-asser-preparation-system-maps/
|
Getting started with the AWS Media Asset Preparation System MAPS Introduction In the introductory blog post for the AWS Media Asset Preparation System AWS MAPS we provided an overview of how MAPS addresses pain points involving uploading media to AWS organizing files folders file movement across AWS storage volumes media preparation permission assignment search filtering and delivery of content In this post we provide an overview … |
2021-08-03 19:45:25 |
AWS |
AWS Networking and Content Delivery |
Integrate SD-WAN devices with AWS Transit Gateway and AWS Direct Connect |
https://aws.amazon.com/blogs/networking-and-content-delivery/integrate-sd-wan-devices-with-aws-transit-gateway-and-aws-direct-connect/
|
Integrate SD WAN devices with AWS Transit Gateway and AWS Direct ConnectMany AWS customers like to use their existing Software Defined Wide Area Network SD WAN devices when connecting their on premises networks to an AWS Transit Gateway When doing this a large number of prefixes must be advertised to and from AWS Transit Gateway In this post we show how to use the Transit Gateway Connect feature … |
2021-08-03 19:14:43 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
路線ごとに物件数を集計したい |
https://teratail.com/questions/352631?rss=all
|
|
2021-08-04 04:41:46 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
React でAPIをfetchしたい |
https://teratail.com/questions/352630?rss=all
|
ReactでAPIをfetchしたいReactnbspAPInbsp初心者です。 |
2021-08-04 04:24:03 |
Program |
[全てのタグ]の新着質問一覧|teratail(テラテイル) |
アンドロイドスタジオの文字化け |
https://teratail.com/questions/352629?rss=all
|
androidnbspstudio |
2021-08-04 04:21:32 |
海外TECH |
Ars Technica |
Apple begins selling Touch ID-equipped Magic Keyboard, new Mac Pro GPUs |
https://arstechnica.com/?p=1784844
|
apple |
2021-08-03 19:35:39 |
海外TECH |
Ars Technica |
Google will kill off very old versions of Android next month |
https://arstechnica.com/?p=1784786
|
android |
2021-08-03 19:09:38 |
海外TECH |
DEV Community |
Would anyone care for some Javascript curry? (Tutorial) |
https://dev.to/miketalbot/javascript-curry-anyone-3l34
|
Would anyone care for some Javascript curry Tutorial Functional programming and currying are topics that have some of us staring at the wall and saying something like there is no spoon whilst sadly shaking our heads Yet we know that there is a powerful tool sitting there so we struggle on in a bid for mastery of the dark arts I started life as a C C programmer and over the years I ve made money in a whole bunch of languages but functional programming proved to be a very different path I ve come some way down this track so I thought I d share my understanding and one of the utilities I ve made along the way BasicsLet s start with the basics If you have a function function calculate a b c return a b c You could rewrite it as const calculate a gt b gt c gt a b cYou d call the first one like this console log calculate And you d call the second one like this console log calculate The second implementation is a function which creates a function which creates a function to calculate the answer this is moving from The Matrix into Inception huh We converted the original using Javascript arrow functions and basically replacing a with a gt The first function returns takes the parameter a and returns a function for the parameter b Thanks to closures the final function has access to all of the previous parameters and so can complete its work The benefit of this is code reuse Until the last function we are basically running a factory to create functions that have the already supplied parameters baked in const calculateTheAnswer calculate for let i i lt i console log calculateTheAnswer i Now in this case you might be saying oh nice seems ok can t see the point though The strength comes when you start making more complicated things by passing functions around as parameters and composing solutions out of multiple functions Lets take a look CurryingFor the sake of this article I want an example that is simple yet not only multiplying two numbers together So I ve come up with one that involves multiplying and taking away Seriously though I hope the that it proves to give a practical perspective Ok so imagine we are building a website for a manufacturing company and we ve been tasked with displaying the weights of the companies UberStorage containers when made in a variety of sizes and materials Some smart bloke has provided us with access to a library function to calculate the weight of a unit function weightOfHollowBox edgeThickness heightInM widthInM depthInM densityInCm return heightInM widthInM depthInM densityInCm heightInM edgeThickness widthInM edgeThickness depthInM edgeThickness densityInCm See multiplying and taking away We don t want to mess with this as it isn t our code and might change but we can rely on the contract of the parameters being passed Our website is going to need to display lots of different output like this So we are going to have to iterate over dimensions and materials and produce some output We want to write the minimum code possible so we think of functional programming and curry Firstly we could make up a wrapper to that function const getHollowBoxWeight edgeThickness gt heightInM gt widthInM gt depthInM gt densityInCm gt weightOfHollowBox edgeThickness heightInM widthInM depthInM densityInCm But immediately we start to see some problems we have to call the functions in the right order and given our problem we need to think hard to see if we can make up a perfect order that maximises reuse Should we put density first That s a property of the material edgeThickness is standard for most of our products so we could put that first Etc etc What about the last parameter we probably want that to be the thing we iterate over but we are iterating both material and dimensions Hmmmm You might be fine writing a few versions of the wrapper function you might be fine throwing the towel in saying I ll just call weightOfHollowBox but there is another option Use a curry maker to convert the weightOfHollowBox to a curried function Simple curry not too many ingredientsOk so a simple curry function would take weightOfHollowBox as a parameter and return a function that can be called with a number of the arguments If we have completed all of them calculate the weight otherwise return a function that needs the remaining parameters Such a wrapper would look a bit like this const currySimple fn provided gt fn length is the number of parameters before the first one with a default value const length fn length Return a function that takes parameters return params gt Combine any parameters we had before with the new ones const all provided params If we have enough parameters call the fn otherwise return a new function that knows about the already passed params if all length gt length return fn all else return curry fn all If we call this on weightOfHollowBox we end up with a function that is a little more flexible than the hand written one const getWeightOfBox currySimple weightOfHollowBox All of these combinations work console log getWeightOfBox console log getWeightOfBox We can pass all of the parameters or any subset and it works in those cases This does not solve our parameter ordering issue We would dearly love a version of this that allowed us to miss out interim parameters and have a function for just those e g const getWeightOfBox curry weightOfHollowBox const varyByWidth getWeightOfBox MISSING console log varyByWidth JalfreziWarning there follows some much more advanced code to create this new curry function you don t need to understand it if you don t want to You could use this implementation or one of the many others out there without needing to get the inner workings If you want to see how this is done read on otherwise skip to the next section Ok lets cook up some proper curry First we need something that uniquely identifies a missing parameter const MISSING Symbol Missing With that in our toolbox we can go ahead and write our new curry function const curry fn missingParameters Array from length fn length i gt i parameters gt return params gt Keeps a track of the values we haven t supplied yet const missing missingParameters Keeps a track of the values we have supplied const values parameters Loop through the new parameters let scan for let parameter of params If it is missing move on if parameter MISSING scan continue Update the value and the missing list values missing scan values length parameter missing splice scan Call the function when we have enough params if missing length lt return fn values else Curry again Yes please return curry fn missing values Right let s start with those parameters The fn is the function to be curried the next two we use when recursing through in the case that we need to make another intermediate function rather than call fn missingParameters defaults to the numbers n where n is the number of parameters required by fn In other words when we first call it it is the indices of all of the parameters required for fn The next parameter is an empty array that we will populate and pass down should we need to The function we return takes any number of parameters We take a copy of the missing indices and the existing parameters and then we iterate over the new parameters If the parameter value is MISSING we move on to the next missing index When it isn t MISSING we populate the correct index in the values array which we allow to take more parameters than the function as that s how you deal with any that might have be defaulted Having populated the array we remove the missing index Once that s all done if the missing list is empty then we call the function passing it the values otherwise we recurse Note we never set the length of the array Javascript arrays automatically set their length to the maximum value if you write to an index in them That s it this function allows us to create a range of templates Example Web SiteNow we have a way of wrapping weightOfHollowBox we can start to put together the elements of our web page Firstly lets code up the thing that shows the weight of an item and its material We can see that the inner item is something based on iterating over the material We have this definition of materials const materials name Aluminium density name Steel density name Oak density So we write a curried function to render the item that takes a way to calculate the weight a function we will create from our curried weightOfHollowBox and a material const material weightInKg gt material gt lt ListItem key material name gt lt ListItemText primary material name secondary lt span gt weightInKg material density toFixed tons lt span gt gt lt ListItem gt This will display any material so long as we can give it a function to calculate the weight that requires the density Let me show you a simple way this could now be used function Simple const weightInKg curriedWeight return lt List className App gt materials map material weightInKg lt List gt We create a weight calculator looking for density and then we call our material function passing that which returns a function that needs a material this will be passed by the materials map We are going to do something fancier for the site though A block for all materialsWe want to output a list of materials so let s write a function for that const materialBlock header gt weightCalculator gt materials gt dimension gt lt Fragment key dimension gt header dimension materials map material weightCalculator dimension lt Fragment gt This curried function allows us to supply something that will write a header then given a weight calculator a list of materials and a dimension it will output all of the materials for that group That s a bit trickier let s see how we might use that in an isolated way const ShowByHeight gt const heights const weightCalculator curriedWeight MISSING const outputter materialBlock height gt lt ListSubheader gt m wide x height m tall lt ListSubheader gt weightCalculator materials return lt List className App gt heights map outputter lt List gt Here we have a React component that knows the standard heights of our units It creates a weight calculator that still requires height and density and then provides materialBlock with a header to put over it For the site we can get better code reuse though const ShowBy weightCalculator gt header gt values gt lt List className App gt values map materialBlock header weightCalculator materials lt List gt We create a reusable ShowBy function which we can then use to create versions for our standard widths and heights const widths const heights const ByWidth gt ShowBy curriedWeight MISSING width gt lt ListSubheader gt m tall x width m wide lt ListSubheader gt widths const ByHeight gt ShowBy curriedWeight MISSING height gt lt ListSubheader gt m wide x height m tall lt ListSubheader gt heights Pulling it togetherOur final function is used to put the parts together const Advanced gt lt Box gt lt Box mb gt lt Card gt lt CardHeader title By Width gt lt CardContent gt lt ByWidth gt lt CardContent gt lt Card gt lt Box gt lt Box mb gt lt Card gt lt CardHeader title By Height gt lt CardContent gt lt ByHeight gt lt CardContent gt lt Card gt lt Box gt lt Box gt Here s the whole thing ConclusionI hope this has been an interesting look at currying in Javascript The area of functional programming is very deep and we ve only scratched the surface but there exist here some techniques that are practical to use in many scenarios Thanks for reading All code MIT licensed |
2021-08-03 19:07:55 |
Apple |
AppleInsider - Frontpage News |
Delta deploying iPad Pro as pilot electronic flight bag upgrade |
https://appleinsider.com/articles/21/08/03/delta-rolls-out-ipad-pro-as-pilot-electronic-flight-bag-upgrade?utm_medium=rss
|
Delta deploying iPad Pro as pilot electronic flight bag upgradeDelta Air Lines is working with AT amp T and Apple to provide its pilots with an upgraded electronic flight bag switching over to the G equipped iPad Pro The initiative launched on Tuesday will replace the existing EFB for an iPad Pro The M equipped tablet will also use the AT amp T IoT Global SIM and AT amp T Control Center to enable data connectivity and support while working in over countries The electronic flight bag is a modernized equivalent of the original flight bag which previously consisted of multiple pounds of documentation and maps required for flights The iPad Pro based EFB is considerably lighter saving weight and therefore fuel with all the information provided via custom made EFB apps Read more |
2021-08-03 19:11:56 |
海外TECH |
Engadget |
Facebook will host a paid movie premiere this month |
https://www.engadget.com/facebook-movie-premiere-paid-event-9-11-museum-documentary-193049697.html?src=rss
|
Facebook will host a paid movie premiere this monthSince the onset of the COVID pandemic many film festivals have shifted to online only or hybrid formats Later this month another movie will premiere as a paid online event This time around you ll be able to watch it on Facebook Users in any country where Facebook s paid online events are available which now number more than can watch the premiere of The Outsider a behind the scenes documentary about the National Memorial and Museum in New York City A virtual ticket costs and the film will debut on August th at PM ET It ll be available for hours As Axios reports a Facebook Live panel discussion will follow the premiere of The Outsider The doc will hit select theaters and other streaming platforms in September Facebook will run some promos for the event which is being run by distributor Abramorama but it won t take a cut of ticket sales The company is waiving commissions on creators revenue through The film has already caused controversy Officials at the museum asked the filmmakers to cut quot defamatory quot scenes from The Outsider but directors Pamela Yoder and Steven Rosenbaum said they wouldn t back down Michael Shulan the museum s former creative director and a central figure in the film reportedly claims in the movie that the museum represents the “Disneyfication of the September th terrorist attacks Film distribution is a tough nut to crack for indie studios and filmmakers especially when they try to release movies in a number of markets Much like others have had success in hosting online classes or livestreaming gameplay on Facebook they could harness the platform s enormous reach to find an audience It remains to be seen whether other filmmakers and distributors premiere their movies on Facebook Still with the company having its fingers in an ever increasing number of pies it s not hard to imagine Facebook being interested in hosting similar events in the future |
2021-08-03 19:30:49 |
海外TECH |
CodeProject Latest Articles |
A Static Analysis Tool for C++ |
https://www.codeproject.com/Articles/5246833/A-Static-Analysis-Tool-for-Cplusplus
|
automating |
2021-08-03 19:36:00 |
海外科学 |
NYT > Science |
In the Infrastructure Bill, a Recognition: Climate Is a Crisis |
https://www.nytimes.com/2021/08/03/climate/infrastructure-bill-climate-preparation.html
|
In the Infrastructure Bill a Recognition Climate Is a CrisisFor the first time both parties have acknowledged ーby their actions if not their words ーthat the United States is unprepared for global warming and will need huge amounts of cash to cope |
2021-08-03 19:58:38 |
海外科学 |
NYT > Science |
Iraq Reclaims 17,000 Looted Artifacts, Its Biggest-Ever Repatriation |
https://www.nytimes.com/2021/08/03/world/middleeast/iraq-looted-artifacts-return.html
|
Iraq Reclaims Looted Artifacts Its Biggest Ever RepatriationThe cuneiform tablets and other objects had been held by the Museum of the Bible founded by the family that owns the Hobby Lobby craft store chain and by Cornell University |
2021-08-03 19:22:04 |
海外TECH |
WIRED |
Six-Word Sci-Fi: Stories Written By You |
https://www.wired.com/story/six-word-sci-fi
|
favorites |
2021-08-03 19:30:00 |
医療系 |
医療介護 CBnews |
回リハ提供体制の地域差と差別化戦略-データで読み解く病院経営(130) |
https://www.cbnews.jp/news/entry/20210803162751
|
代表取締役 |
2021-08-04 05:00:00 |
ニュース |
BBC News - Home |
Warning of 'potential hijack' of ship under way off UAE coast |
https://www.bbc.co.uk/news/world-middle-east-58078506
|
hijack |
2021-08-03 19:27:48 |
ニュース |
BBC News - Home |
Fenwick Colchester: Child, 5, dies of head injury sustained at department store |
https://www.bbc.co.uk/news/uk-england-essex-58080163
|
family |
2021-08-03 19:42:09 |
ニュース |
BBC News - Home |
The Hundred - London Spirit v Northern Superchargers: David Willey smashes six out of Lord's |
https://www.bbc.co.uk/sport/av/cricket/58080413
|
The Hundred London Spirit v Northern Superchargers David Willey smashes six out of Lord x sDavid Willey smashes the ball out of Lord s to bring up his eventually finishing unbeaten on as Northern Superchargers make against London Spirit in The Hundred |
2021-08-03 19:05:46 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
最新理論で読み解く「グローバル・インバランス」、米中デカップリングはどこまで進むか - 政策・マーケットラボ |
https://diamond.jp/articles/-/278509
|
最新理論で読み解く「グローバル・インバランス」、米中デカップリングはどこまで進むか政策・マーケットラボ米中対立の激化で、米中経済の切り離しデカップリングの脅威が一段と高まっている。 |
2021-08-04 04:50:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「ふん便性大腸菌」が多い&「透明度」が低い海水浴場ランキング2021、上位に来るのは? - ニッポンなんでもランキング! |
https://diamond.jp/articles/-/278590
|
海水浴場 |
2021-08-04 04:45:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「ふん便性大腸菌」が多い&「透明度」が低い海水浴場ランキング2021【完全版】 - ニッポンなんでもランキング! |
https://diamond.jp/articles/-/278550
|
海水浴場 |
2021-08-04 04:45:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
中国が「ゆとり教育」に突き進むワケ、塾禁止・宿題軽減に不安も続出 - DOL特別レポート |
https://diamond.jp/articles/-/278541
|
中国政府 |
2021-08-04 04:40:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
FAX廃止、反対する霞が関こそ絶対に廃止すべき理由 - 山崎元のマルチスコープ |
https://diamond.jp/articles/-/278549
|
自分自身 |
2021-08-04 04:35:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
マスクなしクレーマーから、技アリ・一本をとるための「3段構え」とは - カスハラ撃退!クレーム対応完全マニュアル 援川聡 |
https://diamond.jp/articles/-/278432
|
職員 |
2021-08-04 04:30:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
営業トークで品質・性能よりもお客の心を動かすモノとは - 仕事ができる人は、3分話せばわかる |
https://diamond.jp/articles/-/277921
|
高品質 |
2021-08-04 04:25:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
的外れな「就活アドバイス」で子どもの信頼を失う親たちのリアル - 採用のプロが明かす「親必読」最新就活事情 |
https://diamond.jp/articles/-/278587
|
的外れな「就活アドバイス」で子どもの信頼を失う親たちのリアル採用のプロが明かす「親必読」最新就活事情年卒の就職活動が始まっている。 |
2021-08-04 04:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「21世紀型頭痛」10~40代で増加中、青魚を食べて改善を - カラダご医見番 |
https://diamond.jp/articles/-/278336
|
ついに「世紀型頭痛」という名も生まれた。 |
2021-08-04 04:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
ひろゆきが教える「死ぬまで不幸でい続ける人の思考法」ワースト1 - 1%の努力 |
https://diamond.jp/articles/-/278219
|
youtube |
2021-08-04 04:10:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
社会で活躍する女性の共通点、「品川女子学院」理事長が語る - 中学受験のキーパーソン |
https://diamond.jp/articles/-/277538
|
社会で活躍する女性の共通点、「品川女子学院」理事長が語る中学受験のキーパーソン歳の時に勤務先の私立校を辞して、生き残りを懸けた改革に動きだした父母の経営する学校に戻った漆紫穂子さん。 |
2021-08-04 04:10:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【2 on 2でやってはいけない1】 2 on 2を実施する理由が 共有されていない - 組織が変わる |
https://diamond.jp/articles/-/275583
|
慢性疾患ってうちの会社のことすべて見抜かれている」「『他者と働く』が慢性疾患の現状認識ツールなら、『組織が変わる』は慢性疾患の寛解ツールだ」「言語化できないモヤモヤの正体が形になって現れる体験は衝撃でした」職場に活気がない、会議で発言が出てこない、職場がギスギスしている、仕事のミスが多い、忙しいのに数字が上がらない、病欠が増えている、離職者が多い……これらを「組織の慢性疾患」と呼び、セルフケアの方法を初めて紹介した宇田川氏。 |
2021-08-04 04:05:00 |
ビジネス |
東洋経済オンライン |
「住みたい街上位」の常連、吉祥寺駅の紆余曲折 開業は武蔵境のほうが先、戦前は「軍都」だった | 駅・再開発 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/445325?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
吉祥寺駅 |
2021-08-04 04:30:00 |
コメント
コメントを投稿