投稿時間:2022-06-01 21:26:04 RSSフィード2022-06-01 21:00 分まとめ(29件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT ITmedia 総合記事一覧 [ITmedia News] 富士通の“政府認定クラウド”への不正アクセス、ユーザーのメール本文なども盗まれた可能性 復号されたパケットがロードバランサーを通過 https://www.itmedia.co.jp/news/articles/2206/01/news181.html fjcloudv 2022-06-01 20:14:00
python Pythonタグが付けられた新着投稿 - Qiita Python環境構築[Mac(M1)] https://qiita.com/kitahide12123/items/e2929d4aeb303fcecc37 visualstudio 2022-06-01 20:55:41
Ruby Railsタグが付けられた新着投稿 - Qiita Railsのenumをstringで使う方法 https://qiita.com/minty/items/cbbc884d76d419fe21fe rails 2022-06-01 20:37:27
技術ブログ Developers.IO Sumo Logic セキュリティApp紹介 vol.2 https://dev.classmethod.jp/articles/sumo-logic_security-app-vol-2/ logic 2022-06-01 11:23:20
海外TECH MakeUseOf 5 Streaming Services With Ad-Supported Tiers https://www.makeuseof.com/streaming-services-with-ad-supported-tiers/ affordable 2022-06-01 11:45:13
海外TECH MakeUseOf The Basics of Coding and Programming That You Need to Know https://www.makeuseof.com/coding-and-programming-basics/ The Basics of Coding and Programming That You Need to KnowUnless you re a programmer coding can seem like a bit of a mystery Find out just what s going on in those dark editors with their monospaced fonts 2022-06-01 11:30:13
海外TECH MakeUseOf 7 Apple Music Features You Probably Don't Know About https://www.makeuseof.com/apple-music-features-you-dont-know/ haven 2022-06-01 11:15:13
海外TECH MakeUseOf How to "De-AMP" the Web With Privacy-Focused Browser Brave https://www.makeuseof.com/brave-de-amp-explained/ brave 2022-06-01 11:02:37
海外TECH DEV Community How we used Go 1.18 when designing our Identifiers https://dev.to/encore/how-we-used-go-118-when-designing-our-identifiers-597h How we used Go when designing our IdentifiersWhen building any system distributed or not you end up dealing with many identifiers for your data From database rows all the way to identifiers for the version of your system in production Unsurprisingly Encore s own systems are no different We need to uniquely identify and track things from individual API endpoints in your applications traces from runtime calls to the variousinfrastructure resources provisioned in one of our supported clouds such as an AWS security group Deciding how to generate your identifiers can sometimes be very simple For instance you might just put an auto incrementing number as your primary key in your database Boom you have your type of identifier and way to generate it just like magic However it s much harder in a distributed system to just have a number start at and slowly increase You could build a system that elects a leader and that leader is in charge of incrementing the number but this adds a lot of complexity to your system design it doesn t scale indefinitely as you will still be limited by the throughput of the leader You could still suffer from a split brain issue where the same number is generated twice by two different leaders Getting this decision right early on in your project is always important as it s one of the hardest things to change in a system once you re in production Starting from our requirementsWhen we started to think about how we wanted to represent identifiers in Encore s platform we wrote down what we wanted as core requirements from an identifier SortableWe want to be able to order the identifiers such that an A lt B when A was created first However we don t need total sorting being k sortable is acceptable Being sortable allows us better indexing performance in the database will enable us to easily iterate through records in order and improves our ability to debug as the order of events can be determined from the event identifiers ScalableWe want a system that will scale with us without bottlenecks We ll be using this system to generate identifiers for traces and spans in which we ll be creating a vast number of them No Collision RiskBecause we run a distributed system we don t want the risk of two of our processes creating the same identifier Zero ConfigurationWe don t want to have to do any level of configuration when using this system on either a per machine or per process level Type SafetyWe want a system where an identifier for one resource can t accidentally be passed or returned as an identifier for another type of resource As a bonus we also wanted identifiers to be Reasonably SmallBoth in memory and on the wire Human readableThis is related to type safety However we want the string representation to allow a human us to understand what the identifier was created for This seems like quite a list of asks but it s pretty manageable when we break it down Existing OptionsIf we temporarily ignore the type safety and human readability requirements then what we re asking for has been solved a thousand times before and we don t need to re invent the wheel here Let s look at some existing battled tested options Database powered auto incrementing keys ✘The first port of call for most people is an auto incrementing primary key This solves being sortable and has no collision risk However it can only scale as far as your database server will process writes It also adds a new requirement that every identifier you generate must have a matching database row Given we wanted to use this system for things we don t store in our database we ruled this out pretty quickly UUIDs ✘There are various versions of UUIDs and they are all bits At first glance versions seem perfect from a scalability zero configuration and collision risk angle However when you dig deeper the different versions of UUIDs start to show warts Versions amp Even though they can generate approximately billion identifiers per second they use the machine s MAC address which means two processes on the same machine could generate the same identifier if called simultaneously Version Generates completely random identifiers with bits of randomness This means we re very unlikely to have a collision and can infinitely scale out without a bottleneck However we lose the ability to sort the identifiers chronologically Snowflake ✘Snowflake identifiers were first developed by Twitter and typically are bits although some variants use bits This scheme encodes the time the ID was generated as the first bits then encodes an instance ID for the next bits and finally a sequence number for the final bits This gives us pretty good scalability as the instance set of bits allows us to run different processes simultaneously while knowing they can not generate the same identifier as the process s own identifier is encoded within It gives us our k sorting as the upper bits are the time the ID was generated Finally we have a sequence number within the process which allows us to generate identifiers per second per process However Snowflake misses our zero configuration requirement because the instance ID must be configured per process KSUID ✘KSUID s are sort of a cross between UUID Version and Snowflake They are bits where the first bits are the time the identifier was generated to the second and then bits of random data This makes them almost ideal for us They are k sortable require no configuration and have no collision risk because of the large amount of entropy in the random part of the id However we discovered something interesting during our research of KSUID The string encoding of KSUID uses Base encoding and so has both uppercase and lowercase letters This means depending on your string sorting you might sort the identifiers differently i e we lose our requirement for sortability depending on the system For instance Postgres sorts lowercase before uppercase whereas most algorithms sort uppercase before lowercase which could lead to some very nasty amp hard to identity bugs It s worth noting that this impacts any encoding scheme which uses both upper and lower case letters so it isn t just limited to KSUID XID ✓XID s are bits The first bits are the time which means we get our k sorting immediately The next bits are a machine identifier and a process identifier However unlike the other systems these are calculated automatically using the library and don t require us to configure anything ourselves The final bits are a sequence number which allows a single process to generate identifiers per second XID gives us all our core requirements and its string encoding uses base no upper case letters to break our sorting This string encoding is always characters which means we can use that fact for validation purposes in any marshalling code such as a Postgres CHECK constrainton the database type Our IdentifiersOnce we had settled on using XID as the basis for our ID types we switched focus back to our last two requirements type safety and human readability For the former requirement we could have solved this as simply as import github com rs xid type AppID xid IDtype TraceID xid IDfunc NewAppID AppID return AppID xid New func NewTraceID TraceID return TraceID xid New And thanks to Go s type system both AppID and TraceID would concretely be different types such that the followingwould become a compile error var app AppID NewTraceID this won t compileThis would have worked However we would have to implement all the marshalling functions encoding TextMarshaler json Marshaler sql Scanner etc for each concrete type like AppID To minimise boilerplate writing for our team this would mean using a code generator to write it for us Note We could have written the marshalling functions once using type aliases type AppID xid ID but the compiler would have treated the ID types as interchangeable Another downside here is our system isn t just Go We also have a Typescript frontend and a Postgres database This means once we encode the ID into a wire format we ve lost all guarantees of type safety and now in another system it s possible to mistakenly use one form of ID for another Before Go we could have solved this by adding a wrapper struct containing the type information import fmt github com rs xid type EncoreID struct ResourceType string ID xid ID type AppID EncoreIDtype TraceID EncoreIDfunc NewAppID AppID return amp EncoreID app xid New func NewTraceID TraceID return amp EncoreID trace xid New Now we can update our marshalling functions to prefix the EncoreID ResourceType at the beginning of the string Oneslight downside here is that aside from passing around a lovely byte array which is how xid is encoded in memory we would also be passing around a struct with string instances Not super inefficient but not as nice Enter Go GenericsWith Go we can create a single abstract ID type and then create different concrete types based on a ResourceType but really are just xid s So conceptually we started with this import fmt github com rs xid type ResourceType struct type App ResourceTypetype Trace ResourceTypetype ID T ResourceType xid IDfunc New T ResourceType ID T return ID T xid New This gave us an excellent starting point as the memory format of these identifiers had not changed from XID s underlying byte However the compiler will treat ID App and ID Trace as two distinct types We also don t need to use code generation for all the marshalling functions as we can write them once for the generic type The one requirement we ve not solved with this generic version is our type safety for both the wire formats and the humanreadability i e it s still possible for us to json Marshal an application ID and json Unmarshal that into a trace ID To solve this we can utilise the ability for generics in Go to create the default instance of a type Then we can call a method on it For example our string method looks a little like this func id ID T String string var resourceType T create the default value for the resource type return fmt Sprintf s s resourceType Prefix Extract the prefix we want from the resource type xid ID id String Use XID s string marshalling However we ve skipped a tiny bit how do we make our App and Trace resource types have a Prefix method we can call Well we need to change ResourceType into an interface type ResourceType interface Prefix string type App struct func u App Prefix return app type Trace struct func a Trace Prefix return trace All of our marshalling and unmarshalling code can now include and verify the identifiers type prefix which means wecan easily validate if due to a typo we pass trace ncidrirfkbchhld as an argument to an API expecting an application ID PS Postgres is hereAs I alluded to earlier these strongly typed wire formats mean we can create matching types in other systems without losing any of the type safety guarantees we wanted For instance we use code generation to automatically create newPostgres domain types for each of our ResourceTypes in our database so we can strongly type the database columns CREATE DOMAIN application id AS TEXT CHECK VALUE app a z We then use SQLC to generate type safe Go code to read and write to our database taking our custom ID types and passing them through all the layers to the database without losing our type safety We ll talk about how we use SQLC and other code generation in a future blog post to give us type safety into and out of the database I ll leave you with a little sneak peek of a generated helper func GetMembersForApp q db Querier id eid ID eid App db AppMembers error Final wordsWhile generics have been a long time coming in Go there has been excellent code generation tooling to fill that gap The two are not mutually exclusive and can be used simultaneously to reduce the cognitive load and the boilerplate code you have to write It s easy to overuse and abuse generics but if you take your time and use them carefully you ll be thinking with Generics You can use all the Go features including Generics with Encore We d love it if you d try out Encore and join Slack to give us feedback This article was originally published on the Encore Blog on 2022-06-01 11:40:24
海外TECH DEV Community Write and deploy blogs in seconds with comments support https://dev.to/kekdadabest/write-and-deploy-blogs-in-seconds-with-comments-support-18h1 Write and deploy blogs in seconds with comments supportA few days ago I wrote my first blog and wanted to make a website for it So I made one using Next js and MDX While making it I got an idea What if you could just write a blog in github and it will appear automatically in a website So I did just that created a Github app which listens for push events and automatically updates the website and also added comments support using giscusThis blog will teach you how to set it up First create a repository its need to be public then go the website and log in with github then pick the repo u created and install the app and there you go u can see your blog here github username gt AttributesYou can add attributes like thisdata title Blog Title dsc Blog Description date year month day format ISO meta title Meta Title description Meta Description image Meta Image Make sure to add after the attributes even if there are no attributes CommentsNow at the bottom of the blog u might see an errorgiscus not installed on this repositorythis is because giscus is not setted up First install the giscus app then enable discussion on the repository Settings gt Scroll Down gt Enable Discussion After that go back to the blogs and You should see the comments If you like this app you considering starring the repo 2022-06-01 11:17:39
海外TECH DEV Community What is the best way to prepare for the MS-900 Exam? https://dev.to/makendrang/what-is-the-best-way-to-prepare-for-the-ms-900-exam-562b What is the best way to prepare for the MS Exam Skills measuredDescribe cloud concepts Describe core Microsoft services and concepts Describe security compliance privacy and trust in Microsoft Describe Microsoft pricing and support PrerequisitesBusiness decision makers and IT professionals who want to deploy cloud services in their organization can take this course The students should have the following background General knowledge of networking computing and cloud concepts Two methods of PreparationOnline FreeMicrosoft Fundamentals Describe Microsoft core services and conceptsWhat is Microsoft Describe productivity solutions in Microsoft Describe collaboration solutions in Microsoft Describe endpoint modernization management concepts and deployment options in Microsoft Describe analytics capabilities in Microsoft Microsoft Fundamentals Demonstrate fundamental knowledge of Microsoft security and compliance capabilitiesDescribe security and compliance conceptsDescribe identity conceptsDescribe threat protection with Microsoft DefenderDescribe the Service Trust Portal and privacy at MicrosoftMicrosoft Fundamentals Demonstrate knowledge of Microsoft licensing service and supportIdentify licensing options available in Microsoft Describe support offerings for Microsoft servicesDescribe the service life cycle in Microsoft Instructor Lead PaidBelow is the Instructor Lead Training this is supplied through Microsoft Course MS T Microsoft FundamentalsAfter mastering the above modules from Microsoft Learn beneath is the Github repository which incorporates lab commands for the course MS Lab ContentExam dumps for SC are handy in the under linkMicrosoft MS ExamThanks for reading my article till end I hope you learned something special today If you enjoyed this article then please share to your friends and if you have suggestions or thoughts to share with me then please write in the comment box If you have any questions about the Azure Concept or have doubts about the exam you can contact me on LinkedIn You can view my badges here 2022-06-01 11:02:28
Apple AppleInsider - Frontpage News Mac delays, iPod's demise, and Musk hesitates over Twitter - Apple's May 2022 in review https://appleinsider.com/articles/22/06/01/mac-delays-ipods-demise-and-musk-hesitates-over-twitter---apples-may-2022-in-review?utm_medium=rss Mac delays iPod x s demise and Musk hesitates over Twitter Apple x s May in reviewFor a month that could otherwise be known as just the one before WWDC May proved to be a volatile time for Apple and the whole technology industry with moves like unionization that will have long lasting effects Back in April which seems so long ago we had started that month wondering if the rumors were true and Elon Musk would buy Twitter By the end of April it was happening and we moved to thinking about what Twitter would be like under his ownership For May it all reversed and we ended the month figuring the odds that he was backing out of the deal Or we thought about that when we weren t deep into the usual pre WWDC rumors Read more 2022-06-01 11:38:34
Apple AppleInsider - Frontpage News Apple Watch remains the best seller as smartwatch market grows https://appleinsider.com/articles/22/06/01/apple-watch-remains-the-best-seller-as-smartwatch-market-grows?utm_medium=rss Apple Watch remains the best seller as smartwatch market growsNew research claims that global sales of smartwatches were up in the first quarter of compared to last year and that Apple Watch continues to have the largest share The Apple Watch previously dominated smartwatch sales in and now new figures for Q claim to show that its lead is growing According to Counterpoint Research Apple sold times as many smartwatches as its nearest rival Samsung It sold more than its closest six rivals too Read more 2022-06-01 11:39:34
海外TECH Engadget The Morning After: The French government bans English gaming terms, including ‘eSports’ https://www.engadget.com/the-morning-after-the-french-government-bans-english-gaming-terms-including-e-sports-and-streaming-111519163.html?src=rss The Morning After The French government bans English gaming terms including eSports Not satisfied with trying to replace “WiFi with “l access sans fil àinternet which didn t work nbsp l Académie française set its sights on gaming terms in It s now gained traction with the government and France s Ministry of Culture has announced it ll ban terms including streamer and esports according to AFP Going forward government communications must use terms like“joueur animateur en direct for “streamer and “jeu video en nuage for “cloud gaming The Ministry of Culture told the AFP it s concerned that English terms could become a barrier to understanding for non gamers Which is fair But at least make the terms a little pithier ーMat SmithThe biggest stories you might have missedGarmin updates its midrange running watch for the first time in three yearsWhat we bought My first tube amp…about years lateInvestors in gun detection tech tested at NYC City Hall donated to mayor s PACAmazon no longer offers in app Kindle and Music purchases on AndroidRazer s new Barracuda headsets work with any phone or PC Fujifilm s flagship X HS camera offers K video and fps burst shootingOrba adds a sampler and more to an excellent musical fidget toyWatch NASA s Mars helicopter complete a record setting flightIngenuity flew its fastest and longest flight in April NASANASA has shared video of Ingenuity s milestone th flight on April th when it broke duration and speed records The robotic helicopter flew at MPH for just over two minutes and seconds providing footage of the Red Planet s rippling sands as part of the foot journey Don t worry The footage has been sped up Watch here Sonos Ray review A soundbar that nails the basicsIt gets the most important things right including sound quality Sonos Doing affordable soundbars Are they any good The Ray may be Sonos most affordable soundbar but don t consider it a budget device For you get the excellent sound quality Sonos is known for along with multi room audio features in all Sonos speakers It s not the loudest soundbar out there and the compact design means its soundstage isn t as wide as you ll get from bigger speakers But if you have a smaller living room the Ray is a huge upgrade over built in TV speakers Read on for the full review Continue reading China s military scientists call for development of anti Starlink measuresThey re looking into the capability to destroy the satellites China must develop capabilities to disable and maybe even destroy Starlink internet satellites the country s military researchers said in Chinese journal Modern Defense Technology The authors highlighted the possibility of Starlink being used for military purposes that could aid other countries and threaten China s national security According to South China Morning Post the scientists are calling for the development of anti satellite capabilities including both hard missiles or even lasers and soft kill methods that target satellite software Continue reading Microsoft Surface Laptop Go leaks in retail listingThe latest model could go on sale this week It appears Microsoft will soon reveal its next gen Surface Laptop Go The successor to the would be Chromebook competitor popped up in a Korean retailer listing that appears to have gone live a little too early The Surface Laptop Go will shift from a th gen Intel Core CPU to an th gen Intel processor with support for up to GB of RAM and as much as GB of storage according to the listing The listing also suggests pre orders will open on June nd Continue reading Blizzard won t release Diablo Immortal in countries with loot box lawsThe company would rather cut off access than change the game s business model Don t expect to play Diablo Immortal in Belgium or the Netherlands when it launches this week GamesIndustry biz and Tweakers have learned Blizzard won t release the free to play game in both countries due to their gambling restrictions ーthat is their legislation banning loot boxes Continue reading Evercade s new retro handheld includes a vertical mode for shoot em upsIt also looks much nicer than the company s past devices EngadgetRetro console maker Evercade has just announced its latest device a new handheld called the EXP If you re not familiar with Evercade its products are a bit different from your standard retro fare Instead of purchasing a device with a limited library of preloaded games Evercade sells cartridges with a selection of games The EXP also has a Tate mode which makes the handheld a better fit for playing games designed around vertical scrolling like classic shmups Continue reading 2022-06-01 11:15:19
海外TECH CodeProject Latest Articles Building an Angular 13 Application with .NET 6 (Global Market) - Part 2 https://www.codeproject.com/Articles/5332007/Building-an-Angular-13-Application-with-NET-6-Gl-2 angular 2022-06-01 11:11:00
医療系 医療介護 CBnews かかりつけ医の制度化、国民視点による検討を要望-日医、財政審の建議に見解 https://www.cbnews.jp/news/entry/20220601201420 本末転倒 2022-06-01 20:30:00
海外ニュース Japan Times latest articles U.S. Ambassador Rahm Emanuel praises Japan’s decision to ‘invest in its own defense’ https://www.japantimes.co.jp/news/2022/06/01/national/rahm-emanuel-japan-invest-defense/ U S Ambassador Rahm Emanuel praises Japan s decision to invest in its own defense In an attempt to strengthen both Japan s deterrence capabilities and its ties with Washington Tokyo is breaking a long standing taboo on hiking defense spending 2022-06-01 20:15:25
ニュース BBC News - Home Partygate: Dominic Raab plays down Tory leadership challenge to PM https://www.bbc.co.uk/news/uk-politics-61657209?at_medium=RSS&at_campaign=KARANGA partygate 2022-06-01 11:05:01
ニュース BBC News - Home Zouma given community service for kicking cat https://www.bbc.co.uk/sport/football/61657176?at_medium=RSS&at_campaign=KARANGA community 2022-06-01 11:22:20
ニュース BBC News - Home Ukraine war: US to send longer-range rockets in latest aid package https://www.bbc.co.uk/news/world-us-canada-61655577?at_medium=RSS&at_campaign=KARANGA officials 2022-06-01 11:00:47
ニュース BBC News - Home Germans get €9-a-month travel in response to energy price rises https://www.bbc.co.uk/news/world-europe-61656639?at_medium=RSS&at_campaign=KARANGA costs 2022-06-01 11:05:17
ニュース BBC News - Home French Open: Rafael Nadal and Novak Djokovic say quarter-final was 'too late' https://www.bbc.co.uk/sport/tennis/61655175?at_medium=RSS&at_campaign=KARANGA French Open Rafael Nadal and Novak Djokovic say quarter final was x too late x Rafael Nadal and Novak Djokovic say their French Open quarter final started too late after a four hour match ended at am local time in Paris 2022-06-01 11:11:35
ニュース BBC News - Home Paul Pogba: Manchester United confirm midfielder will leave on free transfer https://www.bbc.co.uk/sport/football/61659836?at_medium=RSS&at_campaign=KARANGA manchester 2022-06-01 11:23:34
北海道 北海道新聞 日系社員、事業の遅れに焦り 都市封鎖解除、市場冷え込み懸念 https://www.hokkaido-np.co.jp/article/688379/ 冷え込み 2022-06-01 20:02:00
北海道 北海道新聞 国内2万2768人コロナ感染 36人死亡 https://www.hokkaido-np.co.jp/article/688378/ 新型コロナウイルス 2022-06-01 20:02:00
ビジネス 東洋経済オンライン 「レクサスRX」守りより変革の超モデルチェンジ PHEVや高性能モデルも設定した進化の中身 | 新車レポート | 東洋経済オンライン https://toyokeizai.net/articles/-/593842?utm_source=rss&utm_medium=http&utm_campaign=link_back 東洋経済オンライン 2022-06-01 20:05:00
IT 週刊アスキー OCN モバイル ONE、6月7日からプライベートIPアドレスの利用が可能に https://weekly.ascii.jp/elem/000/004/093/4093381/ 月日 2022-06-01 20:30:00
IT 週刊アスキー スマホRPG『BD ブリリアントライツ』に「ミネット」が登場!「チームレイド」と「チャレンジクエスト」も開催 https://weekly.ascii.jp/elem/000/004/093/4093368/ 金元寿子 2022-06-01 20:20:00
IT 週刊アスキー スマホアプリ『機動戦士ガンダムUCE』で新作ストーリー「ザ・ファーストニュータイプ」が公開! https://weekly.ascii.jp/elem/000/004/093/4093373/ ucengage 2022-06-01 20:20:00

コメント

このブログの人気の投稿

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