投稿時間:2022-02-23 23:26:20 RSSフィード2022-02-23 23:00 分まとめ(26件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
js JavaScriptタグが付けられた新着投稿 - Qiita 【JavaScript関数ドリル】Lodash関数の実装【勉強用】_.join関数 https://qiita.com/maruyama1991/items/1640bd8c404ed207d673 2022-02-23 22:37:37
js JavaScriptタグが付けられた新着投稿 - Qiita ワイ「Denoってなんぞや?」 https://qiita.com/Kazuryu/items/c783c09464430bb19858 2022-02-23 22:15:00
Ruby Rubyタグが付けられた新着投稿 - Qiita Ruby の rescue の注意点 https://qiita.com/kanayannet/items/bc33475241c1a91cc173 Rubyのrescueの注意点今更ながらRuby技術者認定試験のGOLDを受けようと思い模擬試験問題を解いていたところ奇妙なコードに出くわした。 2022-02-23 22:10:16
AWS AWSタグが付けられた新着投稿 - Qiita AWS EC2からS3にIAMロールでアクセスする https://qiita.com/unamu1229/items/2b25946e9654f08aff2c AWSECからSにIAMロールでアクセスするできたことECにS権限のあるIAMロールを付与すると、awsconfigureを設定しなくても、ECからAWSCLIでSにアクセスできるようになりました。 2022-02-23 22:18:45
海外TECH MakeUseOf What Is Monotony at Work? 5 Tech Tips to Overcome It https://www.makeuseof.com/what-is-monotony-tips-to-overcome/ fatigue 2022-02-23 13:45:13
海外TECH MakeUseOf 6 Social Norms Technology Created That You Follow Every Day https://www.makeuseof.com/social-norms-technology-created/ social 2022-02-23 13:30:13
海外TECH MakeUseOf The 9 Best Replacement Earbud Tips https://www.makeuseof.com/tag/best-replacement-earbud-tips/ earbud 2022-02-23 13:09:30
海外TECH MakeUseOf Samsung QN90A Product Review: The Best Samsung TV We've Ever Used https://www.makeuseof.com/samsung-qn90a-product-review-qled-display/ Samsung QNA Product Review The Best Samsung TV We x ve Ever UsedLoud proud and in your face it s a home theater experience bold enough to fill any space with life whether you re into movies music or gaming 2022-02-23 13:06:13
海外TECH DEV Community Debugging Tutorial: Java Return Value, IntelliJ Jump to Line and more https://dev.to/codenameone/debugging-tutorial-java-return-value-intellij-jump-to-line-and-more-30f4 Debugging Tutorial Java Return Value IntelliJ Jump to Line and moreI just published the rd episode of the Second Duckling tutorial series and I m getting into the rhythm of doing them I posted the nd episode last week and in this post I ll dig deeper into both I tackled a lot of basic stuff about debugging but I picked two big headliners that a surprising amount of developers aren t familiar with E g How many times did you step over a return statement and cursed The original object isn t saved anywhere and you do not know what the return statement actually returned Or worse what if you accidentally stepped over code Wait What happened Can we go back Jump to line is the exact tool that enables that At the time of this writing I can guarantee that less than thousand developers used this feature But before we proceed here are the videos the nd and rd Shai Almog debugagent Duckling the rd How do you see the value returned from the method you stepped out of Also watch expressions evaluate change state and object marking which is a pretty amazing little known feature CodeNewbie SecondDucklings PM Feb Java Return ValuePlacing the return value from the method we just stepped out of is remarkably easy Yet it s off by default We can enable the Show method return values settings option in IntelliJ and it just magically works This begs the question of why is this useful feature off by default It s something I didn t address in the video due to lack of time The reason is performance The more elements you inspect the slower the application will be This means the IDE will bind instrumentation to the return keyword the underlying bytecode and collect information every time it s hit If the application feels slow disable such instrumentations If possible invest in newer hardware Especially more RAM Also make sure we allocate enough of that RAM for the IDE IntelliJ Jump to LineSo how do I know less than thousand developers used this feature Easy It s not a part of the IDE It s a feature that requires a plugin to support it Looking at the number of installs this is a feature that could benefit from some community awareness Once installed you can literally drag the current execution location to a different location Notice the state of objects isn t changed so you might need to edit values to get everything working This is super useful if you want to re try something You step over a method observe a side effect Then you can drag execution back and do it over again with different properties This is immensely useful in narrowing down problems It s also useful for testing We can try a method with different values again and again then generate use cases for that We can understand code coverage semantics better without restarting the app Object MarkingAnother feature that s absolutely remarkable and I just don t see in the real world is marking Maybe it s because people just don t understand what it means Marking is effectively the declaration of a new reference to an object Like declaring a new global variable This is super valuable Developers often track issues where they literally write on a piece of paper the object ID or pointer value for an object they re looking at With object marking we can give an instance a specific global name We can then reference that instance out of any scope E g when you re debugging and want to make sure that the object you re looking at in a method is the one that will be sent to another method and not a cloned copy Just mark the object with a name Then in the other method compare the argument to the marked object You can use this in conditional breakpoints to stop at the right location It s an amazingly useful feature Return ImmediatelyOne of the common problems we see when we manipulate state during debugging is the side effects A method can trigger errors because of that and effectively pollute the entire chain of debugging It s a waste We can just force a return from a point before the errors occur and provide a custom own return value Thus we can skip a problematic block of code This is a pretty niche feature but when you need it it s cool Drop FrameThis is something I didn t have time for I plan to cover it in a future video It s essentially an undo of a step into operation The stack is just unwinded by it It doesn t restore the state though so it isn t an exact undo operation Eagle eyed readers will also notice a feature called Throw Exception which does exactly that Its useful for some edge cases as validating code robustness and failure behavior I ll try to address that too in the future Changing StateUnlike the other features here many developers change the state of properties during debugging It s something most developers know about but don t do enough We need to keep this in mind when debugging source code and try to use it more TL DRThere are so many features in control flow and debugging This article barely scratches the surface of what s available to us When debugging classes we need to be aware of all the tools at our disposal 2022-02-23 13:47:30
海外TECH DEV Community Why you should deploy your next serverless application with Chalice and CDK 🐍 https://dev.to/kumo/why-you-should-deploy-your-next-serverless-application-with-chalice-and-cdk-3gap Why you should deploy your next serverless application with Chalice and CDK You usually develop serverless applications with the Serverless Framework using Node js and face the challenge to develop one using Python You ve come to the right place To easily configure and deploy standard serverless patterns you should switch to Chalice as an Infrastructure as Code serverless framework Chalice natively integrates with CDK to deploy non Lambda related resources In addition leverage MyPy to preserve type safety while using AWS SDK The tooling that comes with Python serverless ecosystem is at least as mature as Node js one with packages like PynamoDB or AWS Lambda powertools Switching from Typescript to Python in a Serverless Architecture a good idea Serverless infrastructure is increasingly used Using serverless you can easily build fast and scalable web applications without wasting time managing infrastructure At Kumo we are strongly convinced that serverless is about to revolutionize the web The results of the Datadog study The State of Serverless reinforce our opinion It shows that the use of this technology is growing At the beginning of Lambda functions have been invoked times more often than two years before Our favorite stack leverages Typescript and the Serverless Framework to ship applications on AWS The whole team has good knowledge about this stack and can efficiently develop new features using familiar services and code patterns The Serverless Framework is very convenient to deploy Lambda functions However the Serverless Framework is very Lambda centric Provisioning other managed services requires relying on vanilla Cloudformation degrading considerably the developer experience Bridging the Serverless Framework with CDK the state of the art provisioning engine comes at a cost Sebastien Billes in his article gives some keys to combine the two but he concedes that “it does come with quite a bit of overhead Frédéric Barthelet also explained recently how to link the two The entire team being full stack developers the convenience to use a single language across the whole stack influenced us in using Typescript Datadog s study reveals that a vast majority of Lambda users prefer Python almost of the AWS Lambda functions are developed with Python Python is also a very good alternative as a runtime It has similar cold start durations compared to Node js ones It could be particularly relevant to use Python to develop serverless web applications in which we have to manipulate large amounts of data Let s dive into the state of the art Python serverless ecosystem and find out how it compares to our classical Typescript one Defining criteria to evaluate serverless PythonThe criteria I used to evaluate the use of Python as a runtime are based on our daily development experience I want to build a DX as convenient as the one we currently have in typescript Type safety of AWS tooling At Kumo we use typescript instead of javascript because type safety is very important to us We develop great web applications for our clients and we want these applications to be as stable as possible Boto the AWS Software Development Kit for Python is not typed well enough by itself MyPy is a good typing solution for Python and it includes better typing for boto Ease of deployment I explained before that one of the reasons why we like the Serverless Framework is its convenience in deploying our application I would like my Python application to be deployed as easily regardless of the framework I choose to use The next section explains why the Python framework Chalice paired with CDK satisfies our requirements Community maturity on AWS services The tooling provided by the community to use DynamoDB is a way to measure it We widely use the AWS NoSQL database DynamoDB in our projects We combine it with the node package dynamodb toolbox which provides abstracted interfaces additional validation parsing and data transformation features PynamoDB from the Python ecosystem matches features from its Node js counterpart Chalice A Python decorator based serverless framework What does it look like Chalice is a framework for creating serverless web applications in Python It is fully written in Python and designed only for this language Chalice provides a nice API to easily deploy Lambda functions It is a decorator based API similar to that of Flask The decorator is used to indicate the trigger of the Lambda HTTP route WebSocket Pure Lambda functions lambdas for which no trigger is defined can also be created with this framework Pure lambdas are very convenient for example when you want to integrate such lambdas in a step function where no decorator is in place to define such trigger This decorator API results in a very compact code to define the lambdas on the Chalice code As an example here is the code for three different lambdas with different triggers Lambda triggered on HTTP request POST on route apple app route apple methods POST cors cors config def create apple http create apple Lambda triggered on websocket connection app on ws connect def connect event WebsocketEvent item PK Connection SK event connection id dynamodb table put item Item item Pure lambda function app lambda function name CreateApple def create apple step function event context create apple A serverless application is even more readable using Chalice compared to the Serverless Framework The configuration code and the source code are gathered in the same file We understand the cause the trigger and the effect the code of each lambda at a glance It is worth mentioning that with Chalice only one lambda is deployed for all declared HTTP routes As a consequence all the logs will be gathered in a unique log group in CloudWatch CDK integration with Chalice the missing part of the Serverless FrameworkLet s focus on one of the main reasons why I decided to test Chalice instead of using the Python version of the Serverless Framework Chalice can be integrated with CDK more easily than with the Serverless Framework CDK resources can be used in Chalice code with environment variables and lambdas defined on the Chalice side can be referred to on the CDK side When building an application with Chalice and CDK you need a repository infrastructure for the CDK application and a runtime repository for the Chalice part To deploy your full application you will need to run the cdk deploy command in your infrastructure repository Here is the architecture of a simple project ├ーinfrastructure│├ーapp py│├ーcdk json│├ーrequirements txt│└ーstacks├ーrequirements txt└ーruntime ├ーapp py └ーrequirements txtAll the code needed to define the lambdas is written on the Chalice side Other AWS resources are deployed by directly writing CDK Constructs which is very good at defining complex resources and infrastructure Here is an example of the way we can deploy a step function which refers to lambda function defined on the Chalice side The get function is used to refer to the lambda functioncreate apple tasks LambdaInvoke self CreateApple lambda function self chalice get function CreateApple step function definition choose wait time next wait x next create apple next success state machine sfn StateMachine self CreateAppleMachine definition step function definition As you can see I simply use the get function to refer to the pure lambda CreateApple defined in the previous section This way I create the create apple step that I can integrate into the pipeline of the step function definition ConclusionIf you need to switch to Python to develop your next serverless application do not worry Chalice is a mature serverless framework with a lot of advantages configuration with decorators native CDK integration for non Lambda resources The tooling surrounding the serverless Python ecosystem has a great maturity Walking the path from Typescript to Python will not be an easy task but the destination is worth it 2022-02-23 13:38:39
海外TECH DEV Community Five Year Club at dev.to https://dev.to/nikola/five-year-club-at-devto-9oi Five Year Club at dev to TL DRToday marks years of me being on dev to In general I gotta say that I like the community I just got this nice badge so what s not to like and wish to be on the platform years from now too StatsI like stats and working towards improving them so I ll share my stats from these years Posts Total post reactions Total post views Followers Following users Top most viewed blog postsMaking AJAX calls in pure JavaScript the old way k viewsHow to make a native Android app that can block phone calls k viewsGit branching done right with Gitflow amp improving code quality with code reviews k viewsJWT authentication in an Angular application with a Go backend k viewsHow to get started with Ionic framework on Mac and Windows k views Personal favorites that IMHO could use a bit more view loveLearn Git fast as if your job depends on it k viewsHow to make it as a remote developer viewsToo many books not enough time views Daily Thought SeriesRecently I started a new daily thought series where I post a tweet like tiny blog post entry every day The post that got the most exposure in that series was Knowing Doing Please feel free to check out the rest and chime in on the discussion LearningsI shared a bunch of learnings from when I published my th blog post on my blog One thing that still holds to this day is the consistency What you re consistent with you will improve 2022-02-23 13:05:38
Apple AppleInsider - Frontpage News Apple & Big Tech may just keep paying fines instead of abiding by new laws https://appleinsider.com/articles/22/02/23/eu-chief-says-apple-big-tech-firms-tempted-to-pay-fines-ignore-laws?utm_medium=rss Apple amp Big Tech may just keep paying fines instead of abiding by new lawsEuropean antitrust head Margrethe Vestager says that Apple paying fines instead of complying with Dutch App Store laws shows how Big Tech intends to circumvent the rules Apple has yet to make any changes mandated by the Netherlands antitrust regulators and instead has paid million in fines Now European Commissioner and digital chief Margrethe Vestager says this could be how all Big Tech companies respond to changes in the law According to Reuters she said that Apple s behavior means some gatekeepers may be tempted to play for time or try to circumvent the rules Read more 2022-02-23 13:47:30
Apple AppleInsider - Frontpage News iPhone SE, iPad Air, MacBook Air, more - what to expect from Apple's spring event https://appleinsider.com/articles/22/02/23/iphone-se-ipad-air-macbook-air-more---what-to-expect-from-apples-spring-event?utm_medium=rss iPhone SE iPad Air MacBook Air more what to expect from Apple x s spring eventApple s spring event is just around the corner and is rumored to feature a G iPhone SE among several product launches Here s what you can expect to see during Apple s first event of Apple typically holds some form of special event in the spring as the first event of its kind for the year While fall s event typically features the flagship iPhone line and the mid year WWDC focuses on Apple s operating systems and software the early event can end up covering many different areas of Apple s hardware empire Rumors have already put forward guesses and speculation about what Apple s next generation of products will be like as they arrive throughout This is what AppleInsider believes will be making an appearance at the spring event Read more 2022-02-23 13:06:20
Apple AppleInsider - Frontpage News Apple still hasn't made Dutch App Store changes despite $28M in fines https://appleinsider.com/articles/22/02/21/apple-still-hasnt-made-dutch-app-store-changes-despite-28m-in-fines?utm_medium=rss Apple still hasn x t made Dutch App Store changes despite M in finesApple has yet to implement ーor even respond to ーApp Store feedback from Dutch regulators despite the country s antitrust watchdog levying a million fine for the fifth consecutive week App Store on iPhoneOn Monday the Authority for Consumers and Markets again fined Apple million euros for refusing to change its in app subscription policy to allow outside payment methods The ACM has been levying weekly fines since Apple missed a Jan deadline to make the changes Read more 2022-02-23 13:20:11
海外TECH Engadget Apple's 2021 iPad mini drops to $459 at Amazon https://www.engadget.com/apples-2021-ipad-mini-drops-to-459-at-amazon-133811915.html?src=rss Apple x s iPad mini drops to at AmazonIf you know a small tablet will fit into your life easily chances are you ve considered the iPad mini in the past Now you can grab the latest model for less at Amazon which has the GB space gray model for Unfortunately that s the only color at that price right now ーthe GB starlight model is off and down to while the purple and pink models are hovering around Discounts like these typically don t stick around very long so we recommend grabbing the mini soon if you ve had your eye on it Buy iPad mini GB space gray at Amazon The iPad mini may be small but it packs a lot of power It s even more capable than the base iPad with its A Bionic chip and Neural Engine MP ultra wide front camera with Center Stage G connectivity and USB C port for charging Apple totally redesigned the mini this time around making it look like a smaller version of the iPad Air It has an inch x resolution Liquid Retina screen that s almost edge to edge flat edges and a fingerprint toting power button Not only does the new mini feel more modern than ever before but it also handled everything we threw at it including light gaming online shopping video streaming FaceTime calls and note taking with the second generation Apple Pencil FaceTime calls are even better on the small tablet too thanks to the Center Stage feature on the front facing camera It automatically pans and zooms to keep you in the middle of the frame even while you re moving around and chatting at the same time As far as battery life goes the iPad mini lasted about hours on a single charge in our testing which is two hours longer than Apple s estimate Admittedly an inch tablet won t work for everyone but those who know that the e reader sized device is exactly what they re looking should consider grabbing one in Amazon s latest sale Follow EngadgetDeals on Twitter for the latest tech deals and buying advice 2022-02-23 13:38:11
海外TECH Engadget Tesla settles with EPA over Clean Air Act violations in California https://www.engadget.com/tesla-settles-epa-clean-air-act-violations-california-130549010.html?src=rss Tesla settles with EPA over Clean Air Act violations in CaliforniaThe US Environmental Protection Agency has reached a settlement with Tesla after the agency found that the automaker violated the Clean Air Act at its factory in Fremont California In particular the EPA determined that Tesla violated the National Emission Standards for Hazardous Air Pollutants for Surface Coating of Automobiles and Light Duty Trucks from October to September Tesla the EPA said failed to develop and implement a work practice plan to minimize air pollutants emissions from the storage and mixing of materials used in vehicle coating It also failed to correctly perform the monthly calculations needed to prove that its coating operations complied with the federal standards for hazardous air pollutants Finally Tesla apparently failed to keep required records of the calculations for its air pollutants emissions rate quot People living in communities that are near sources of hazardous air pollutants may face significant risks to their health and environment quot the agency wrote in its announcement nbsp According to CNBC the paint shop at Tesla s factory in Fremont suffered several fires within that period The news organizations talked to employees back in who claimed that the company pushed to hit production goals at the expense of fire and environmental considerations If you ll recall Tesla was struggling to hit Model production goals at the time Those employees claimed that months before a fire in April that year the shop s sprinkler heads were clogged and were coated with at least an inch of thick paint Exhaust systems that were supposed to carry clean air in and out of the building were allegedly coated with thick paint as well nbsp quot Today s enforcement action against Tesla reflects EPA s continued commitment to ensure compliance with federal clean air laws quot EPA Pacific Southwest Regional Administrator Martha Guzman said in a statement Tesla will only have to to settle its violations however which is a drop in the ocean for a company that reported a billion in net income last year 2022-02-23 13:05:49
ニュース BBC News - Home Ukraine conflict: UK leading on Russia sanctions, says Boris Johnson https://www.bbc.co.uk/news/uk-politics-60494130?at_medium=RSS&at_campaign=KARANGA putin 2022-02-23 13:31:34
ニュース BBC News - Home Ukraine conflict: Putin tells Russians security is non-negotiable https://www.bbc.co.uk/news/world-europe-60490660?at_medium=RSS&at_campaign=KARANGA ukraine 2022-02-23 13:11:46
ニュース BBC News - Home Russia Today: Regulator Ofcom asked to review channel's UK broadcasts https://www.bbc.co.uk/news/entertainment-arts-60495417?at_medium=RSS&at_campaign=KARANGA campaign 2022-02-23 13:12:30
ニュース BBC News - Home Petrol prices hit new high amid Ukraine tensions https://www.bbc.co.uk/news/business-60490749?at_medium=RSS&at_campaign=KARANGA tensions 2022-02-23 13:20:45
ニュース BBC News - Home Leeds rape: Man seen carrying victim is jailed for life https://www.bbc.co.uk/news/uk-england-leeds-60492642?at_medium=RSS&at_campaign=KARANGA leeds 2022-02-23 13:43:50
ニュース BBC News - Home Zverev thrown out of Mexican Open after attacking umpire's chair https://www.bbc.co.uk/sport/tennis/60490225?at_medium=RSS&at_campaign=KARANGA Zverev thrown out of Mexican Open after attacking umpire x s chairAlexander Zverev is thrown out of the Mexican Open for unsportsmanlike conduct after attacking the umpire s chair at the end of a doubles match 2022-02-23 13:17:58
北海道 北海道新聞 トランポリン森ひかるが現役続行 19年世界選手権個人V https://www.hokkaido-np.co.jp/article/649124/ 世界選手権 2022-02-23 22:19:00
北海道 北海道新聞 首相、米大使との広島訪問見送り ウクライナ対応を優先 https://www.hokkaido-np.co.jp/article/649123/ 岸田文雄 2022-02-23 22:07:00
北海道 北海道新聞 4県で知的障害者ほぼ終日施錠 埼玉、新潟などの公立施設 https://www.hokkaido-np.co.jp/article/649122/ 知的障害者 2022-02-23 22:04:00
海外TECH reddit ポテトは野菜だからフライドポテトはサラダって言うじゃん?油だって菜の花とかから作ってるんだからつまりサラダじゃん?草食動物の肉だって草食べて体作ってるんだから当然サラダじゃん?肉食動物も草食動物の肉(サラダ)で体作ってるから結局はサラダというのが定説じゃん? https://www.reddit.com/r/newsokunomoral/comments/szh599/ポテトは野菜だからフライドポテトはサラダって言うじゃん油だって菜の花とかから作ってるんだからつまりサ/ ポテトは野菜だからフライドポテトはサラダって言うじゃん油だって菜の花とかから作ってるんだからつまりサラダじゃん草食動物の肉だって草食べて体作ってるんだから当然サラダじゃん肉食動物も草食動物の肉サラダで体作ってるから結局はサラダというのが定説じゃんたまにはサラダ以外を食べてみたいものだな。 2022-02-23 13:11:10

コメント

このブログの人気の投稿

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