AWS |
AWS News Blog |
A New AWS Console Home Experience |
https://aws.amazon.com/blogs/aws/a-new-aws-console-home-experience/
|
A New AWS Console Home ExperienceIf you are reading this blog there is a high chance you frequently use the AWS Management Console I taught AWS classes for years During classes students first hands on experience with the AWS Cloud happened on the console and I bet yours did too Until today the home page of the console showed your most … |
2022-01-12 16:01:00 |
AWS |
AWS Architecture Blog |
Using Amazon Aurora Global Database for Low Latency without Application Changes |
https://aws.amazon.com/blogs/architecture/using-amazon-aurora-global-database-for-low-latency-without-application-changes/
|
Using Amazon Aurora Global Database for Low Latency without Application ChangesDeploying global applications has many challenges especially when accessing a database to build custom pages for end users One example is an application using AWS Lambda Edge Two main challenges include performance and availability This blog explains how you can optimally deploy a global application with fast response times and without application changes The Amazon Aurora … |
2022-01-12 16:46:45 |
AWS |
AWS Startups Blog |
What Amazon CTO Werner Vogels’ predictions for 2022 mean for Startups |
https://aws.amazon.com/blogs/startups/what-amazon-cto-werner-vogels-predictions-for-2022-mean-for-startups/
|
What Amazon CTO Werner Vogels predictions for mean for StartupsWerner Vogels Amazon CTO since has observed macro trends around the technology industry giving him a unique perspective to distinguish substantive progress from mere fads He recently published his views on what he sees in store in for cloud technology and the technology world in general Let s dive into five core anticipated developments and their potential impact on the world of startups |
2022-01-12 16:32:47 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
Amazon EventBridge Events ルール → Amazon SNS トピックが上手く連携されなかった件 |
https://qiita.com/wagasa2/items/f27eee2520379c83a618
|
|
2022-01-13 01:18:12 |
golang |
Goタグが付けられた新着投稿 - Qiita |
【Goのデバッガーdelveを使えるようにするまでの苦労・プロセス】 |
https://qiita.com/Ueken3pei/items/d3f01108a30dea31cd1c
|
つまり、エラー内容としては、gogetによってdelvemoduleがGOPATHbinにinstallされ、gomodファイルにも明示的に示されているが、gomodファイルのversionはとなっているためデフォルトでvenderディレクトリ内のmoduleを参照しに行った結果、venderディレクトリには、「delvemoduleはないよ」と言われてしまっている。 |
2022-01-13 01:50:51 |
GCP |
gcpタグが付けられた新着投稿 - Qiita |
[初心者向け]Next.js+Go で環境構築からデプロイまで[フロントエンド編] |
https://qiita.com/riku0202/items/1bde1106e30e243fddab
|
そして下の画面に遷移するので、自分のGithubIDが書かれているPulldownを押し、AddGithubAccountを押します。 |
2022-01-13 01:22:01 |
海外TECH |
Ars Technica |
High-speed rail construction reveals Roman town in the UK |
https://arstechnica.com/?p=1825240
|
construction |
2022-01-12 16:10:16 |
海外TECH |
Ars Technica |
God of War on PC delivers nearly everything we’d hoped for |
https://arstechnica.com/?p=1825087
|
steam |
2022-01-12 16:00:28 |
海外TECH |
MakeUseOf |
What Is a Time Audit and Why Is It Important? |
https://www.makeuseof.com/what-is-time-audit/
|
audit |
2022-01-12 16:45:12 |
海外TECH |
MakeUseOf |
How to Contact a Reddit Mod When You Spot a Problem |
https://www.makeuseof.com/how-to-contact-reddit-moderator/
|
reddit |
2022-01-12 16:30:22 |
海外TECH |
MakeUseOf |
Just Starting Out as a Content Creator? WeVideo Should Be on Your Radar |
https://www.makeuseof.com/content-creator-wevideo/
|
editing |
2022-01-12 16:01:31 |
海外TECH |
DEV Community |
Property-Based Testing In Go |
https://dev.to/adamgordonbell/property-based-testing-in-go-48kb
|
Property Based Testing In GoHave you ever wanted your unit tests written for you Property based testing is a powerful testing technique that in a sense is just that You describe the properties you d like to test and the specific cases are generated for you Property based testing can be a bit trickier to learn and not every problem can be well tested in this manner but it s a powerful technique that s well supported by the go std lib testing quick and that is under utilized Testing csvquotecsvquote is a small program that makes it easier to deal with CSV files at the command line It does this by replacing problematic CSV characters with the controls characters xe and xf and later removing them You can use it like this csvquote head csvquote uI want to improve it a bit but first I want to add some testing to ensure I don t break it The tests will also help me document how it works Here are my initial test cases var tests struct in string out string a b a b Simple a b a xf b Comma a n b a xe b New Line To test that the in string always results in the out I do the following func TestSubstitute t testing T f substituteNonprintingChars n for tt range tests out string byte apply byte tt in f assert Equal t tt out out input and output should match substituteNonprintingChars returns a function that does the conversion and apply is a helper for applying that function over a byte Slightly simplified it looks like this func apply data byte f mapper byte count len data for i i lt count i data i f data i return data The second thing I want to test is that I can reverse this operation That is when csvquote is run with u it should always return the original input I can test this by going in reverse from output to input func TestRestore t testing T f restoreOriginalChars n for tt range tests in string byte apply byte tt out f assert Equal t tt in in input and output should match restoreOriginalChars is the function that restores the string to its original form Both these tests pass the full source is on GitHub However it s still possible there are edge cases that work incorrectly What I need is a way to generate more test cases Property Based TestingOne way I could improve my testing is to combine the two tests That is rather than testing that the substituted value matches expectations and that the restored value matches expectations I can simply test that substituting and restoring a string always results in the original string That is for almost all possible values of the string a echo a csvquote csvquote u aIn my go test I can state that property like this func doesIdentityHold in string bool substitute substituteNonprintingChars n restore restoreOriginalChars n substituted apply byte in substitute restored string byte apply substituted restore return in restored That is for a string in substituting and then restoring it should equal itself I m calling this doesIdentityHold because an identity is any function that returns the original result csvquote csvquote u should be an identity Quick CheckNow that we have that function we can use testing quick the property based testing library to test it func TestIdentity t testing T if err quick Check doesIdentityHold nil err nil t Error err By default this will cause testing quick to run iterations of my identity test using random strings as inputs You can bump that up much higher like so func TestIdentity t testing T c quick Config MaxCount lt changed if err quick Check doesIdentityHold amp c err nil t Error err And with that number of tests cases I run into a problem FAIL TestIdentity s main test go failed on input xf Ufb Ua FAILThe failing test is helpfully printed However it s found a problem in my testing method not with the code under test You see csvquote should always be able to reverse it s input except in the case that the input contains the non printable ASCII control characters and that is what this test case has found xf may not be used much outside of traditional teletype terminals but I asked csvquote to check across all possible strings and eventually it found a failing case Long term I should adjust csvquote to exit with an error condition when it receives input it can t handle but that is a problem for another day Instead let s focus on constraining the input used in the tests Writing a Property Testing GeneratorAs I ve shown above testing quick can generate test values for testing on its own but it s often valuable to write your own In this case writing my own CSV file generator will allow me to make a couple of improvements to the test First of all I can remove control characters from the test set But also I can move to generating strings that are valid CSV files rather than just random characters Testing with random characters is easy but my main concern is that csvquote can handle valid CSV files so by narrowing in on that case I ll have a better chance of catching real world issues First I write a function to generate random strings of size size and from the character set alphabet func RandString r rand Rand size int alphabet string string var buffer bytes Buffer for i i lt size i index r Intn len alphabet buffer WriteString string alphabet index return buffer String It outputs what I expect r rand Rand println RandString amp r abc println RandString amp r abc caccbcabbbThen I used that to generate a CSV files with random number or lines and rows func randCSV r rand Rand string var sb strings Builder lines r Intn rows r Intn for i i lt lines i for j j lt rows j if j sb WriteString sb WriteString fmt Sprintf s randCSVString r sb WriteString n return sb String func randCSVString r rand Rand string s RandString r ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz return strings Replace s In CSV all double quotes must be doubled up Here is what calling randCSVString will generate IWvdDEGTxlRdJZrcRa LMHcCcN DRVRsfbwIF LrZBSvFEfGFqOn vYFmzhbyRiDgYprf swuJkitIctrzaYmEO fGloXshqwC OBd eM L LDRajiwNgZNitCAQL QnqhMhzuMluqxK jtjvTlHVPUlbKue sDhVlorRRgJrKfdR W EGWYmpmTVNdBrfmU MxRdqqVUuWiOpKY IXk ctprbPrVurXiJqTg wnmagEjUDJrZCGBdmAYH EJtuqZJqzjf jvzh QqWLewZVKpEut kZJipozFOWLSxMjW BkVvtZqZk SwpOBrQ kYNaGPDmgSLAEICJtu xOH ywDDtwWUPsjgz mbexX Wl cuqVGekP uMXKuLDzZSWvwynY KJBLtRipsJyEqVHqrDx glDHHsUjyg piJGv rIaKOxe B qSEmOnTB I can then hook this up to my test method func TestIdentity t testing T c quick Config MaxCount Values func values reflect Value r rand Rand values reflect ValueOf randCSV r if err quick Check doesIdentityHold amp c err nil t Error err And now I can test csvquote against ten thousand random CSV files in under a second gt go testPASSok github com adamgordonbell csvquote cmd cvsquote sI ll leave extending this to covering Unicode values and unquoted rows for another day Property TestingProperty based testing is a powerful technique for testing your code As you can see from this real world but somewhat contrived scenario it moves the work of testing away from specific test cases and towards validating properties that hold for all values Here the property under test was that substituting and restoring are inverses of each other and therefore form an identity For me the most challenging part of property based testing is seeing how I can transform a specific test case into a testable property It s not always immediately clear what s possible to test in this manner and some tests are simply hard to state in this form But when a problem is well suited for property based testing it is a powerful tool The second most challenging thing about property based testing is writing generators for your problem domain Although once written they make testing in this style feel quite natural More ResourcesThe hardest part of this style of testing is seeing where and how it can apply The places I ve found it valuable include Verifying serialization and deserialization codeVerifying an optimization by comparing the results to the un optimized version Anywhere I have more than one representation of some data and need to test the boundaries of those representations But others have found more ways to use this paradigm If you want to learn more about property based testing then gopter the GOlang Property TestER is worth taking a look at Amir Saeid who s good at this technique recommends this book full of examples and this blog If you have any tips or suggested resources for property based testing please let me know on Twitter adamgordonbell And if you care about reliable software take a look at Earthly Earthly makes continuous integration less flakey and works with your existing workflow |
2022-01-12 16:31:08 |
Apple |
AppleInsider - Frontpage News |
New 16-inch MacBook Pro 32GB models are up to $200 off, back in stock |
https://appleinsider.com/articles/22/01/12/new-16-inch-macbook-pro-32gb-models-are-up-to-200-off-back-in-stock?utm_medium=rss
|
New inch MacBook Pro GB models are up to off back in stockWait no more for Apple s MacBook Pro inch with GB of memory Units are now up to off and in stock ready to be delivered to your door weeks ahead of Apple s prolonged backorder delay AppleCare is off as well inch MacBook Pro dealsFour popular inch MacBook Pro models are in stock at Apple Authorized Reseller Adorama including several configurations with GB of RAM Prices start at for the premium specs with discounts of up to off Read more |
2022-01-12 16:55:43 |
Apple |
AppleInsider - Frontpage News |
Apple is late to AR, but it's going to succeed the way it always does |
https://appleinsider.com/articles/22/01/12/apple-is-late-to-ar-but-its-going-to-succeed-the-way-it-always-does?utm_medium=rss
|
Apple is late to AR but it x s going to succeed the way it always doesApple was far from first to market with the smartphone the tablet and now the item tracker Despite that it s the iPhone iPad and AirTags that people buy ーand it will be the same with Apple AR If you had ever decided to make an Augmented Reality device yourself you d probably have beaten Apple to it because so has nearly everybody else It s hard to pin down just when AR started but Apple is so extraordinarily late to the party that it hasn t even arrived yet But then as parties go AR Virtual Reality and Mixed Reality are all still a bit of an anticlimax If you re into the technology you can certainly have a great time Read more |
2022-01-12 16:31:44 |
Apple |
AppleInsider - Frontpage News |
Apple grew Mac shipments & marketshare in strong fourth quarter for PCs |
https://appleinsider.com/articles/22/01/12/apple-grew-mac-shipments-marketshare-in-strong-fourth-quarter-for-pcs?utm_medium=rss
|
Apple grew Mac shipments amp marketshare in strong fourth quarter for PCsTotal PC shipments exceeded million for the second year in a row in the fourth quarter of with Apple s Mac lineup seeing solid growth in Q according to analytics firm Canalys Apple MacBook Pro and Mac ProThe latest data suggests that worldwide shipments of desktops laptops and workstations reached million in Q up year over year from million That brings total shipments for to million units up from and from Canalys reported Read more |
2022-01-12 16:06:47 |
Apple |
AppleInsider - Frontpage News |
iPhone 13 supply largely meets demand, MacBook Pro still constrained |
https://appleinsider.com/articles/22/01/12/iphone-13-supply-largely-meets-demand-macbook-pro-still-constrained?utm_medium=rss
|
iPhone supply largely meets demand MacBook Pro still constrainedAnalysis of Apple delivery estimates suggests that iPhone supply has largely met demand while there are continued constraints for the MacBook Pro according to Goldman Sachs New MacBook Pro modelsIn a note to investors seen by AppleInsider Goldman Sachs analyst Rod Hall took a look at lead times in the seventh week of availability for the iPhone and iPhone Pro and the thirteenth week of M Pro and M Max MacBook Pro availability Lead times or the time it takes for an order to be delivered can be an indication of supply demand balance Read more |
2022-01-12 16:11:41 |
海外TECH |
Engadget |
Canon forced to ship 'knockoff' ink cartridges due to chip shortage |
https://www.engadget.com/canon-printer-ink-cartridge-false-fake-claims-161752274.html?src=rss
|
Canon forced to ship x knockoff x ink cartridges due to chip shortagePrinter makers have long used chips to thwart third party ink cartridge sales and drive you toward their own products but they re now feeling the sting of those restrictions The Register and USA Today note Canon has had to ship toner cartridges without copy protection chips due to ongoing shortages That in turn has led to some ImageRunner multifunction printers incorrectly flagging official cartridges as knockoffs ーCanon has even told printer owners how to bypass the warnings and deal with broken toner level detection We ve asked Canon for comment Some users said they ve encountered similar issues with HP printers but that company wouldn t directly confirm or deny the problems in a statement to The Register Instead HP said it was using a quot globally diverse quot supply network to stay quot agile and adaptable quot in the midst of chip shortages The printer trouble illustrates one of the common complaints about digital rights management DRM and other copy protection systems they create trouble the moment their designers can t offer full support Just ask people who bought music tied to Microsoft s PlaysForSure for example It s doubtful Canon HP or others will drop their DRM chips any time soon but this incident won t exactly help their case |
2022-01-12 16:17:52 |
海外TECH |
Engadget |
'S.T.A.L.K.E.R. 2' is delayed until December 8th |
https://www.engadget.com/stalker-2-delayed-december-2022-gsc-game-world-160746289.html?src=rss
|
x S T A L K E R x is delayed until December thS T A L K E R fans will need to wait several more months than expected to get their hands on the latest game in the series Developer GSC Game World has pushed back the S T A L K E R Heart of Chernobyl release date from April th to December th pic twitter com EbdKVmzxVーS T A L K E R OFFICIAL stalker thegame January quot These additional seven months of development are needed to fulfill our vision and achieve the desired state of the game quot GSC Game World wrote in a statement quot S T A L K E R is the biggest project in the history of GSC and it requires thorough testing and polishing quot Perhaps it needs a little more time to get characters teeth just right The studio noted that although the decision to delay the survival horror game wasn t an easy one it believes quot development should take as long as necessary especially in the case of such a project quot It plans to provide more details about S T A L K E R in the coming months The first person shooter which will be the first entry in the series since will initially be available on Xbox Series X S and PC ーit ll debut on Xbox Game Pass Reports suggest Microsoft has a three month exclusivity window for S T A L K E R GSC Game World recently came under fire over its plan to include NFTs non fungible tokens in the game Just one day later the studio said it would quot cancel anything NFT related in S T A L K E R quot following a major backlash |
2022-01-12 16:07:46 |
海外TECH |
CodeProject Latest Articles |
Python Machine Learning on Azure Part 1: Creating an XGBoost Model with Python, VS Code, and Azure ML |
https://www.codeproject.com/Articles/5321611/Python-Machine-Learning-on-Azure-Part-1-Creating-a
|
azure |
2022-01-12 16:53:00 |
海外TECH |
CodeProject Latest Articles |
How To Set HTML Meta Tags In Angular |
https://www.codeproject.com/Tips/5322155/working-with-html-meta-tags-angular
|
angular |
2022-01-12 16:42:00 |
海外科学 |
NYT > Science |
Don’t Just Watch: Team Behind ‘Don’t Look Up’ Urges Climate Action |
https://www.nytimes.com/2022/01/11/climate/dont-look-up-climate.html
|
Don t Just Watch Team Behind Don t Look Up Urges Climate ActionThe satirical film about a comet hurtling toward Earth is a metaphor for climate change It has broken a Netflix record and its director hopes it will mobilize public action |
2022-01-12 16:25:03 |
金融 |
金融庁ホームページ |
金融審議会「ディスクロージャーワーキング・グループ」(第4回)の議事録を公表しました。 |
https://www.fsa.go.jp/singi/singi_kinyu/disclose_wg/gijiroku/20211201.html
|
金融審議会 |
2022-01-12 17:00:00 |
金融 |
金融庁ホームページ |
金融審議会「ディスクロージャーワーキング・グループ」(第5回)を開催します。 |
https://www.fsa.go.jp/news/r3/singi/20220119.html
|
金融審議会 |
2022-01-12 17:00:00 |
ニュース |
ジェトロ ビジネスニュース(通商弘報) |
2021年の新車登録台数は前年比1%増、EVが大幅増 |
https://www.jetro.go.jp/biznews/2022/01/0eb4c831405187f9.html
|
登録 |
2022-01-12 16:10:00 |
ニュース |
BBC News - Home |
Prince Andrew to face civil sex assault case after US ruling |
https://www.bbc.co.uk/news/uk-59871514?at_medium=RSS&at_campaign=KARANGA
|
judge |
2022-01-12 16:45:59 |
ニュース |
BBC News - Home |
Boris Johnson faces calls to quit after lockdown party apology |
https://www.bbc.co.uk/news/uk-politics-59967930?at_medium=RSS&at_campaign=KARANGA
|
downing |
2022-01-12 16:14:06 |
ニュース |
BBC News - Home |
Covid: Government's PPE 'VIP lane' unlawful, court rules |
https://www.bbc.co.uk/news/uk-59968037?at_medium=RSS&at_campaign=KARANGA
|
companies |
2022-01-12 16:55:13 |
ニュース |
BBC News - Home |
Downing Street party: Has Boris Johnson's apology won over the Conservatives? |
https://www.bbc.co.uk/news/uk-politics-59965074?at_medium=RSS&at_campaign=KARANGA
|
garden |
2022-01-12 16:46:35 |
ニュース |
BBC News - Home |
Mali beat Tunisia amid controversy as referee blows for full-time early |
https://www.bbc.co.uk/sport/football/59876378?at_medium=RSS&at_campaign=KARANGA
|
Mali beat Tunisia amid controversy as referee blows for full time earlyMali beat Tunisia at the Africa Cup of Nations in a game that ends in controversy after the referee blows for full time early |
2022-01-12 16:17:16 |
コメント
コメントを投稿