IT |
ITmedia 総合記事一覧 |
[ITmedia ビジネスオンライン] 部下にストレスを感じる理由 3位「指示に従わない」、2位「やる気がない」、1位は? |
https://www.itmedia.co.jp/business/articles/2208/19/news047.html
|
itmedia |
2022-08-19 06:30:00 |
AWS |
AWS Machine Learning Blog |
Run PyTorch Lightning and native PyTorch DDP on Amazon SageMaker Training, featuring Amazon Search |
https://aws.amazon.com/blogs/machine-learning/run-pytorch-lightning-and-native-pytorch-ddp-on-amazon-sagemaker-training-featuring-amazon-search/
|
Run PyTorch Lightning and native PyTorch DDP on Amazon SageMaker Training featuring Amazon SearchSo much data so little time Machine learning ML experts data scientists engineers and enthusiasts have encountered this problem the world over From natural language processing to computer vision tabular to time series and everything in between the age old problem of optimizing for speed when running data against as many GPUs as you can get has … |
2022-08-18 21:58:25 |
AWS |
AWS |
Vyaire Uses AWS Data Exchange to Keep the World Breathing Better | Amazon Web Services |
https://www.youtube.com/watch?v=9lpOjdZp56E
|
Vyaire Uses AWS Data Exchange to Keep the World Breathing Better Amazon Web ServicesGlobal medical company Vyaire had grown through multiple mergers and acquisitions over its year history As a result the company s employees were using more than ERP and CRM systems which combined with increasing use of advanced analytics and machine learning created a large and complex data ecosystem To be able to make better data based decisions utilizing both first and third party data Vyaire runs its analytics on Amazon Web Services AWS and utilizes AWS Data Exchange to find subscribe to and use third party data Learn more at Subscribe More AWS videos More AWS events videos ABOUT AWSAmazon Web Services AWS is the world s most comprehensive and broadly adopted cloud platform offering over fully featured services from data centers globally Millions of customers ーincluding the fastest growing startups largest enterprises and leading government agencies ーare using AWS to lower costs become more agile and innovate faster Vyaire AWSDataExchange DataExchange AWS AmazonWebServices CloudComputing |
2022-08-18 21:27:12 |
海外TECH |
DEV Community |
Proxy Objects in JavaScript |
https://dev.to/kadeesterline/proxy-objects-in-javascript-1ajo
|
Proxy Objects in JavaScriptProxy objects were unknown territory for me just a little while ago I had never even heard of them until I was asked to explain how to use them over on TikTok I ve spent some time now reading up on how to create proxy objects and how they can be used I m going to try my best to keep this brief so this won t be a comprehensive guide on how to use proxy objects This will however show you some of the basic ways you can use them as well as provide a few examples Creating a Proxy ObjectTo create a proxy object you ll need two things first a target object and a handler object The target is the object you re wanting to make the proxy for and the handler is where you define what behavior to change and how it should be changed After defining both of those objects you can create the proxy by creating a variable set equal to new Proxy target handler replacing target and handler with whatever you ve named them const target greetingOne hello greetingTwo world const handler const proxy new Proxy target handler I ve left the handler empty for now meaning that there won t be any changes in behavior This isn t very useful so next we ll start looking at how we can change some of the behavior of the proxy Changing The Get MethodLet s say that we want our proxy to change greetingTwo to dev to if target greetingTwo is equal to world To do this we ll redefine the get method in our handler object to overwrite the normal behavior We ll need to pass target prop and receiver into a get function and then use those parameters to change the behavior const target greetingOne hello greetingTwo world const handler get target prop receiver if prop greetingTwo return dev to return Reflect get arguments const proxy new Proxy target handler console log proxy greetingTwo dev toUsing Reflect we can keep the original behavior for some of the accessors and only change the values we re wanting to change Changing The Set MethodWhat if we only want certain values to be valid on an object In order to accomplish this we can use set in our handler This time we ll pass in an object prop and value and use the parameters to make sure our data is valid const target value const handler set obj prop value if prop value amp amp value lt console log value cannot be lower than handle error else return Reflect set arguments const proxy new Proxy target handler proxy value value cannot be lower than console log proxy value proxy value console log proxy value Again using Reflect let s us keep the normal behavior if we want it Attempting to set proxy value to a number less than will result in a warning being console logged and the value not being set Values and higher are still valid Intercepting other methodsIn hopes of keeping this post short and concise I m not going to cover each individual handler trap There are eleven more but I ll only be showing a few MDN has examples for all of them and I would reccomend giving the docs a quick read if you re looking for more examples and a more thorough explanation apply Using apply traps function calls Using a function as your target object and calling apply like this apply function target thisArg argList you can add onto existing functions changing how a function behaves construct Using construct target args traps the new keyword You re then able the change the behavior of constructing new objectshas Using has target key is a trap for the in operatorYou re then able to change the behavior of how keys are accessed through the in operator like this if key keyOne return false return key in target deleteProperty Using deleteProperty target property traps the delete operatorThis will allow you to change how properties get deleted allowing for conditions to be set delete proxy keyOne gets trapped in the handler objectThat s going to do it for this post If you have any questions I ll do my best to answer them in the comments |
2022-08-18 21:58:29 |
海外TECH |
DEV Community |
Testing out Serverless Stack |
https://dev.to/m_nevin/testing-out-serverless-stack-4je9
|
Testing out Serverless StackA serverless approach can be really powerful Developing software with serverless architectures and services can speed up development time make managing infrastructure pain free and typically are cheaper more flexible solutions But it s not without its challenges local testing and mocking can be a pain debugging systems is more trawling logs than anything else and monitoring and maintenance of dozens of small runtimes can be overly complex To alleviate these pains people have been building a range of platforms and tools to help with Serverless Framework being one of the best known they allow you to build on the serverless promise and avoid some of the challenges Some newer platforms are being developed leaning on lessons from earlier ones and leveraging some developments from cloud providers since A new challenger appears Serverless Stack SST is one of the newer players that pitches itself to be the easiest way for your projects to go from idea to IPO selling itself as an end to end serverless development deployment and monitoring tool for building on AWS It s pretty similar to the Serverless Framework but instead of relying on terraform or specialised languages it s standing on the shoulders of CDK allowing you to write and maintain your infrastructure in the same languages you re developing with and push them to AWS as configured stacks Key FeaturesServerless Stack has a few key features worth digging into ConstructsServerless Stack uses CDK one of AWS better IaC tools which allows you to write and persist your cloud infrastructure in familiar languages a key feature of CDK and SST is its use of high level components called constructs These are preconfigured infrastructure components and structures that allow you to build faster by leveraging predefined configurations boilerplates and pre written glue logic SST then builds on these constructs refining them even further although currently it only supports a few services into an even more concise version Allowing for building out of several components that go into making something like an API in a few lines They currently have a load of constructs supporting A few key patterns you can see the full list here Live LambdasNormally when developing serverless functions you ve got to either deploy and test your changes with live invocations or locally run the lambda with heavy mocking using libraries or manual stubs and time SST proposes a novel solution to this Live Lambdas For testing and debugging they ve built functionality that creates a local dev environment that you can invoke from a testing stack the CLI deploys meaning invocations to a live stack are directed to your local environment rather than a hosted lambda This allows for local testing debugging and live reloads by creating a stub in debug stack that s deployed which redirects invocations of the stub to a local WebSocket and then our Lambda code This allows us to edit watch and debug it live with native support for a few major editors such as VSC allowing you to set and observe breakpoints in your editor There s a diagram from their docs that helps explain the flow SST DashboardAnother feature one you see with similar tools is a browser based console for observation and monitoring of your local and deployed stacks It allows you to inspect various aspects of your application seeing real time logs in your app shows you all resources in your stacks and allows you to manually invoke and replay invocations to your services It also allows you to explore different resources such as Databases and Cognito pools allowing you to see and query the data users and configuration of components in your app It can be connected to local and live remote environments allowing you to see test and debug data or live data from CloudWatch and other services Making it pretty useful in developing your application preloading any data for testing and teasing out any issues when connecting services together Spiking the ServiceSST sounded promising so to test it out I spiked those key features aiming for a quick test I aimed to build out a serverless tier application using it building a simple React frontend an API accepting form data and a table storing the form data Since SST is built around a series of NPM packages the only prerequisites it has is NPM and making sure you ve the AWS CLI already configured From there we can use SST and its templates to create our project structure navigate into the created folder and kick off the project npx create sst latest template starters typescript starter react app cd react app npm install This uses an SST template to generate the structure we need for a TypeScript React app in seconds from there we can start our stack from NPX and it ll deploy the basic structure for the first time within minutes npx sst start From this point we ve deployed a basic app that s observable from the SST console and we can build on towards our goal it s fairly straight forward Rather than repeating SST s tutorials and “getting started content here it makes more sense to direct you to their a great guide covering a simple counter React App using the same services I used that you can check that out here Rather than abridging their guides I ve pulled out a sample to show just how concisely it allows you to build The stacks MyStack ts file allows you to implement the new resources in one line so at the end of that guide the top of that file has import StackContext Api ReactStaticSite Table from serverless stack resources With a few lines for defining each for example an API with a POST endpoint is defined with const api new Api stack API defaults function Allow the API to access the table permissions table Pass in the table name to the API environment tableName table tableName routes POST functions lambda handler This defined most of the bare bones of the API in a few lines an API gateway with an endpoint directed at a Lambda Handler the environment variables setup for the table you want to use accessible for it It s easily extended allowing you to add more routes or features to get it production ready fairly easily Overall its surprisingly painless to work with the constructs enabled rapid standing up of services the live debugging was useful for testing and trying different requests and the console allowed us to monitor the debug stack and check invocations locally without having to constantly redeploy the stacks It had a surprising amount of utility in the time we used it living up to the simplicity and speed promises of the website LimitationsAfter spiking it there s still some broader benefits and limitations worth addressing NPM It s the devilPackage management was a challenge there was a torrent of version clashes between libraries and dependencies that had no easy solution without diving into the weeds which was beyond the scope for me I imagine with some time you could untangle the knots of dependencies but a major issue or vulnerability logged with an old version could throw this all up again creating a maintenance overhead Live Lambdas are Live Live lambdas are pretty effective but they are still live and how easy they were to deploy seems like we could easily accidentally leave some resources running and lead to a wave of security confusion or unplanned cloud spend without any awareness Security given you might have unprotected and poorly configured endpoints live and spend from leaving resources running accidentally There s very clearly easy remediations here but in reading the docs it wasn t something jumping out seems like an easy way to burn yourself on the tool Console SyncThe console and the CLI tool are pretty great fairly easy to use and straightforward Unless you manage to have a change in the stack that isn t reflected in the SST Console when they end up out of sync fixing them wasn t as simple as turning them off and on it lead to a lot of manual stack task killing and console reviews until finally killing off enough that the console accepted something had went wrong and it was able to successfully tear down its own provisioned stack Recommendation here would be making sure whatever IAM role you setup to use with SST is configured that you can manage its resources and add separate monitoring BenefitsFrustratingly a lot of the places SST struggled where also the places with the most utility and hope NPM Package management for the whole teamAs much as dependency issues are a nightmare when working in a team a lot of people have had some interactions with NPM so they re often somewhat familiar with how it works how to use it and working with it in a team It feels lightweight and familiar to a lot of people and familiarity would make adopting something like SST into your team a lot more straightforward Local Debugging and TestingWorking in VSC and setting breakpoints without having to worry about stubs and mocks was a dream it sped up the process of chasing down any issues in the course of this spike and it seems like scaling this out to a full scale project it d pay dividends for larger features Detailed DashboardsA lot of similar tools have UIs and consoles like this and much like those it has a fair amount of utility being able to inspect and review different aspects of requests to the API replay them and trace locally would be invaluable Being able to inspect and review Cognito setups or data in a DB locally would save time trawling through the AWS console even to those well acquainted It was a big time saver and generally just improved the Developer Experience DevEx SummarySST is an interesting tool it feels like it s still maturing but it s got a lot of potential and if you can afford make an early adoption of it on a project I think you ll be able to see fairly big payoff for DevEx and time saving down the line at the cost of some granular control and power Overall I think a small team who want to move fast and build an early version of an AWS backed application could do some great things with it early Personally I m going to try it out on something larger scoped next and see about working with it more in a collaborative setting before looking at a larger adoption Cover Image Credit Photo by Ryan Stone on UnsplashImage Credit ServerlessStack |
2022-08-18 21:41:00 |
海外TECH |
Engadget |
NASA's Nicole Aunapu Mann will be the first Native American woman to visit space |
https://www.engadget.com/first-native-american-woman-to-visit-space-214509960.html?src=rss
|
NASA x s Nicole Aunapu Mann will be the first Native American woman to visit spaceNASA is breaking new ground for astronauts As Indian Country Todayreports the agency recently confirmed that Marine Corps Col Nicole Aunapu Mann will be the first Native American woman to travel to space The Wailacki tribe member will serve as the mission commander for the SpaceX powered Crew mission heading to the International Space Station as soon as September th When she arrives Mann will be ISS Expedition s flight engineer during a six month stay The Crew mission will also ferry NASA s Josh Cassada Japan s Koichi Wakata and Russia s Anna Kikina to the ISS Chickasaw Nation member John Herrington was the first Native American of any gender to visit space flying aboard the Space Shuttle Endeavour in Mann has a background well suited to spaceflight She started her career as a Navy aviator and has flown the F A Hornet while supporting missions operations in Afghanistan and Iraq She also earned her master s degree in mechanical engineering from Stanford NASA chose Mann as one of eight astronaut candidates in That group has since become influential producing influential figures like Anne McClain Jessica Meir and Crew Dragon pilot Victor Glover Some of them including Mann have made NASA s shortlist for the first crewed Artemis missions to the Moon For Mann this first spaceflight isn t just historic In her interview with ICT she saw the trip as smashing quot barriers quot for Native American children who didn t think they could become astronauts It won t be surprising if more follow her before long |
2022-08-18 21:45:09 |
海外TECH |
Engadget |
Janet Jackson's 1989 mega-hit 'Rhythm Nation' sonically smashes old hard drives |
https://www.engadget.com/janet-jacksons-1989-mega-hit-rhythm-nation-sonically-smashes-old-hard-drives-211432203.html?src=rss
|
Janet Jackson x s mega hit x Rhythm Nation x sonically smashes old hard drivesThe quot brown noise quot is a legendary tone purportedly capable of causing people to lose control of their bowels when subjected to its gut punching harmonic resonance South Park did a whole thing on it Turns out that the RPM hard drives from a number of old Windows era laptops possess a brown note of their own Janet Jackson s mega hit Rhythm Nation According to Microsoft Software Engineer Raymond Chen who recounted the tale in a Microsoft Developers Blog nbsp post earlier this week quot a major computer manufacturer discovered quot that playing the music video above would not only crash the hard drive of the laptop it was running on but also any other similar model within earshot The Mitre Corporation was not amused by this newfound vulnerability issuing it an entry in the CVE database After a thorough investigation the device manufacturer confirmed that the song contained one of the natural resonant frequencies of the hard drives playing the song essentially rattled the devices apart Rather than recall untold numbers of decades old drives the manufacturer instead opted to develop a workaround by quot adding a custom filter in the audio pipeline that detected and removed the offending frequencies during audio playback quot according to Chen nbsp |
2022-08-18 21:14:32 |
海外科学 |
NYT > Science |
How Chewing Shaped Human Evolution |
https://www.nytimes.com/2022/08/17/science/chewing-human-evolution.html
|
How Chewing Shaped Human EvolutionAn experiment revealed that chomping on slightly tougher material requires markedly more energy Spending less time on mastication may go hand in hand with human evolution |
2022-08-18 21:02:11 |
海外科学 |
NYT > Science |
Racial Disparities Have Marked the Monkeypox Vaccine Rollout |
https://www.nytimes.com/2022/08/18/nyregion/monkeypox-vaccine-racial-disparities.html
|
Racial Disparities Have Marked the Monkeypox Vaccine RolloutNew York City has released new data showing that Black men have received far fewer monkeypox vaccines than their share of the at risk population |
2022-08-18 21:42:49 |
海外TECH |
WIRED |
Spyware Hunters Are Expanding Their Toolset |
https://www.wired.com/story/spyware-hunting-tools-mac-pc-black-hat/
|
algorithms |
2022-08-18 21:42:26 |
ニュース |
@日本経済新聞 電子版 |
国連事務総長、ウクライナ南部原発の非武装化訴え
https://t.co/7Fx3wQVcCk |
https://twitter.com/nikkei/statuses/1560381956080418816
|
国連事務総長 |
2022-08-18 21:43:43 |
ニュース |
@日本経済新聞 電子版 |
スタートアップへの支援策を政府が拡充。大企業と組んで実施する事業を公共調達の対象に。ストックオプションの税優遇拡大も検討。ディープテックと呼ぶ新産業を長期的に育成し、成長力の底上げをめざします。
https://t.co/IvZJP8Tfpp |
https://twitter.com/nikkei/statuses/1560379788639993856
|
スタートアップへの支援策を政府が拡充。 |
2022-08-18 21:35:06 |
ニュース |
BBC News - Home |
Ukraine war: Damage to nuclear plant would be suicide - UN chief |
https://www.bbc.co.uk/news/world-europe-62595474?at_medium=RSS&at_campaign=KARANGA
|
damage |
2022-08-18 21:48:58 |
ニュース |
BBC News - Home |
Covid pass app working again, says NHS Digital, after disruption |
https://www.bbc.co.uk/news/uk-62599489?at_medium=RSS&at_campaign=KARANGA
|
status |
2022-08-18 21:55:11 |
ニュース |
BBC News - Home |
European Championships Munich 2022: Medals for GB's Jake Heyward, Eilish McColgan and Jazmin Sawyers |
https://www.bbc.co.uk/sport/athletics/62595490?at_medium=RSS&at_campaign=KARANGA
|
European Championships Munich Medals for GB x s Jake Heyward Eilish McColgan and Jazmin SawyersGreat Britain s Jake Heyward takes silver in the m and Eilish McColgan wins m bronze at the European Championships in Munich |
2022-08-18 21:48:32 |
ニュース |
BBC News - Home |
Cristiano Ronaldo: Manchester United forward wants to leave but where would he go? |
https://www.bbc.co.uk/sport/football/62599299?at_medium=RSS&at_campaign=KARANGA
|
Cristiano Ronaldo Manchester United forward wants to leave but where would he go Cristiano Ronaldo doesn t have an obvious next destination as he considers his Manchester United future according to the BBC Radio Live Euro Leagues podcast team |
2022-08-18 21:35:14 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
米国のテレビ視聴、動画配信が初めてケーブルTV上回る - WSJ発 |
https://diamond.jp/articles/-/308312
|
動画配信 |
2022-08-19 06:17:00 |
北海道 |
北海道新聞 |
中国・新疆で少数民族に強制労働 国連報告者「奴隷状態の可能性」 |
https://www.hokkaido-np.co.jp/article/719401/
|
国連人権理事会 |
2022-08-19 06:23:00 |
ビジネス |
東洋経済オンライン |
露のウクライナ原発占拠でフランスが存在感の訳 世界2位の原子炉保有国は防衛、テロ対策も入念 | ウクライナ侵攻、危機の本質 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/612293?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
東洋経済オンライン |
2022-08-19 06:30:00 |
コメント
コメントを投稿