TECH |
Engadget Japanese |
魔王の復活を食い止める!見下ろし視点アクション『魔法少女物語:魔王プロジェクトのキャプチャー』:発掘!スマホゲーム |
https://japanese.engadget.com/magic-girl-story-211028040.html
|
魔法少女 |
2022-03-24 21:10:28 |
Google |
カグア!Google Analytics 活用塾:事例や使い方 |
クリエイター支援プラットフォームを選ぶのが難しい |
https://www.kagua.biz/social/tredns/20220325a1.html
|
課金 |
2022-03-24 21:00:39 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
AIトレードシステムのMT4埋め込み(2) |
https://qiita.com/EasyCording/items/158c9a09a3f4db1efacc
|
datetimecurrentiTimeNULLPERIODM前のティックでの形成開始時刻と比較。 |
2022-03-25 06:57:28 |
海外TECH |
Ars Technica |
North Korean hackers unleashed Chrome 0-day exploit on hundreds of US targets |
https://arstechnica.com/?p=1843401
|
korean |
2022-03-24 21:20:52 |
海外TECH |
MakeUseOf |
How to Bookmark All Tabs in Chrome, Firefox, Edge, Brave, and Safari |
https://www.makeuseof.com/bookmark-all-tabs-chrome-firefox-edge-brave-safari/
|
How to Bookmark All Tabs in Chrome Firefox Edge Brave and SafariWhen you end up with multiple tabs open on one topic it would be handy to bookmark them all in one folder Here s how to do so on all browsers |
2022-03-24 21:30:14 |
海外TECH |
MakeUseOf |
How to Get Google Docs to Check Your Spelling & Grammar |
https://www.makeuseof.com/get-google-docs-to-check-spelling-grammar/
|
google |
2022-03-24 21:15:13 |
海外TECH |
DEV Community |
What are Microservices? |
https://dev.to/scc33/what-are-microservices-21d4
|
What are Microservices Microservices are a type of software engineering architecture They are the stand in replacement for the older architecture known as monolithic The problem with monolithsA monolith is where one codebase contains the entire program Since the whole program is within one codebase it often follows one specific stack and accesses only one database This architecture can work well for individuals or small teams However as the amount of code grows it can quickly become hard for teams to coordinate development Deployment and testing are also a challenge Even small changes require the entire application to be rebuilt and redeployed Monolith s drawbacks are fixable by changing architectural strategies and creating microservices MicroservicesA microservice is a style of architecture where independently deployable codebases work together to form an application A microservices analogySay I want to build a cube I want my cube to be of a specific size and shape Making a small cube is probably trivial but what if I need a meter by meter cube That large size will be difficult to manufacture or transport Instead of creating one solid piece I could take a bunch of smaller cubes and put them together All these smaller cubes put together would look like a Rubik s cube Now let s apply our analogy to programming It would be trivial to build a simple website but what if that website is Google That is an enormously challenging problem We can simplify the problem by breaking it into smaller pieces One of our smaller blocks could handle searching One block could form the user interface and one could show advertising etc Each of these smaller blocks is called a microservice While this is a simplified idea of how a complex service like Google operates the general principle is the same Benefits of microservicesSmall services are easier to understand and can be owned by a single team They can also be rewritten quickly if technologies change Microservices offer more flexibility because you can choose the right tool for each problem and adopt new technologies as required Deploying is lower risk and faster because microservices don t share codebases making them independently deployable Scaling is easier and overall the architecture is more adaptable which benefits agile development Drawbacks of microservicesSeparately monitoring every microservice is challenging Additional software is required to centralize logs and monitoring Setting new developers up to work on the application could be difficult because there are multiple codebases to work on Deploying and testing will likely require more automation because there are more points of failure More to learnThis article is just an overview of microservices There is so much more to learn hosting options messaging buses securing network calls API gateways and more are all great topics to look into if you are interested in applying microservices to your next project |
2022-03-24 21:44:13 |
海外TECH |
DEV Community |
Using Managed Identities to authenticate with Azure Cosmos DB |
https://dev.to/willvelida/using-managed-identities-to-authenticate-with-azure-cosmos-db-23ga
|
Using Managed Identities to authenticate with Azure Cosmos DBIn Azure Managed Identities provide our Azure resources with an identity within Azure Active Directory We can use this identity to authenticate with any service in Azure that supports Azure AD authentication without having to manage credentials In Azure Cosmos DB we can use managed identities to provide resources with the roles and permissions required to perform actions on our data depending on what role we provide the identity without having to use any connection strings or access keys to do so In this post I ll show you how we can use Managed Identities to access our data in Azure Cosmos DB via an Azure Function In this article we will cover Why we would use a Managed Identity over a connection string How we can create a Cosmos DB account with a System Assigned Managed Identity with BicepHow we can create an Azure Function with a System Assigned Managed Identity with BicepCreate role assignments in BicepConfigure our CosmosClient to use our Managed Identity Test our Function to add and read data using the Managed IdentityIf you want to see the full code sample for this post check out this GitHub repo You can also deploy the sample directly to your Azure Subscription by clicking on the button below Why Managed Identities As I mentioned earlier we can use Managed Identities to provide our applications with an identity that uses Azure Active Directory to authenitcate to other resources that support Azure AD authentication By using managed identities we don t need to manage credentials such as managed connection strings in Cosmos DB and there is no additional cost in using Managed Identities In Azure we can create two types of managed identities System assigned and User assigned When we create a system assigned managed identity we create an identity within Azure AD which is tied to the lifecycle of that service When we delete our service the identity is also deleted User assigned indentities are standalone resources which we can assign to one or more resources This identity is managed seperately from our resources Bringing this back to Azure Cosmos DB we can use built in Azure roles or custom roles to grant or deny access to resources in our Cosmos DB account This provides us with a mechanism to create granular access to specific identities with the access that they require rather than using the admin connection string Allowing our clients to use the connection string to our Cosmos DB accounts carries a lot of risk Let s illustrate this with an example using the C SDK If we have the connection string we can create a connection to our Cosmos DB account like so builder Services AddSingleton sp gt IConfiguration configuration sp GetService lt IConfiguration gt CosmosClientOptions cosmosClientOptions new CosmosClientOptions MaxRetryAttemptsOnRateLimitedRequests MaxRetryWaitTimeOnRateLimitedRequests TimeSpan FromSeconds return new CosmosClient configuration CosmosDBConnectionString cosmosClientOptions Since we ve connected to Cosmos DB using our admin connection string our client can create databases in our accounts read details about our Cosmos DB accounts and more As developers we need to ensure that clients that are making operations against our Cosmos DB accounts only perform operations that they are authorized to To that end we will create our Cosmos DB account with a System Assigned identity which will allow us to assign granular roles and permissions for any clients that will perform operations in Cosmos DB Creating our Cosmos DB account with a System Assigned Managed IdentityWe can create an Azure Cosmos DB account with a system assigned identity like so resource cosmosAccount Microsoft DocumentDB databaseAccounts name cosmosDbAccountName location location properties databaseAccountOfferType Standard locations locationName location failoverPriority isZoneRedundant false consistencyPolicy defaultConsistencyLevel Session identity type SystemAssigned When we deploy our Cosmos DB account we should see that a System Assigned Identity for our account has been created by navigating to Identity in the sidebar We ll see that an Object Id or Principal Id has been generated for our Cosmos DB account I ve blanked it out in the below picture but it will be a randomly generated GUID The Object Id is a unique value for an application object that uniquely identifies the object in Azure AD This Object Id that we have generated will uniquely identify our Azure Cosmos DB account Creating our Azure Function with a System Assigned Managed IdentityWe ll be performing operations against our Cosmos DB account via an Azure Function To do this we ll need to create an Azure Function that also has a System Managed Identityresource functionApp Microsoft Web sites name functionAppName location location kind functionapp properties serverFarmId appServicePlanId siteConfig appSettings name AzureWebJobsStorage value DefaultEndpointsProtocol https AccountName storageAccount name EndpointSuffix environment suffixes storage AccountKey listKeys storageAccount id storageAccount apiVersion keys value name WEBSITE CONTENTAZUREFILECONNECTIONSTRING value DefaultEndpointsProtocol https AccountName storageAccount name EndpointSuffix environment suffixes storage AccountKey listKeys storageAccount id storageAccount apiVersion keys value name APPINSIGHTS INSTRUMENTATIONKEY value appInsightsInstrumentationKey name APPLICATIONINSIGHTS CONNECTION STRING value InstrumentationKey appInsightsInstrumentationKey name FUNCTIONS WORKER RUNTIME value functionRuntime name FUNCTIONS EXTENSION VERSION value name DatabaseName value databaseName name ContainerName value containerName name CosmosDbEndpoint value cosmosDbEndpoint httpsOnly true identity type SystemAssigned Again in our Bicep code we are using the identity block and creating a managed identity of type SystemAssigned Similar to our Cosmos DB account we can find the Object Id of our Azure Function by navigating to Identity in the sidebar Now that we have enabled our System assigned identities for both our Cosmos DB and Azure Function we can now create our role assignments that will allow our Function to perform operations against our Cosmos DB account without having to use the connection string Creating Role AssignmentsAzure Cosmos DB provides a number of built in roles that allow us to authorize and authenticate data requests using Azure AD identities in a granular manner We provide our identities with role definitions that allow them to perform a certain list of allowed accounts We can apply these roles at the account database or container level The list of these built in role definitions can be found here For the purposes of this article we re going to be creating a Custom Role that includes the following actions that we will allow our role to perform over our data var dataActions Microsoft DocumentDB databaseAccounts readMetadata Microsoft DocumentDB databaseAccounts sqlDatabases containers items When we make calls to Cosmos DB using the NET SDK the SDK issues read only metadata requests to serve specific data requests This includes metadata like the partition key you ve set on your containers the list of Azure regions that the account is set in etc Since we are using the NET SDK to make calls to our Cosmos DB account we ll need to grant the System Assigned identity the ability to perform actions that need this permission enabled We ll also be performing operations on our items in our containers so we grant the Microsoft DocumentDB databaseAccounts sqlDatabases containers items permission to our Function so it s able to do so We can define our sql roles in Bicep like so var roleDefinitionId guid sql role definition functionAppPrincipalId cosmosDbAccount id var roleAssignmentId guid roleDefinitionId functionAppPrincipalId cosmosDbAccount id var roleDefinitionName Function Read Write Role var dataActions Microsoft DocumentDB databaseAccounts readMetadata Microsoft DocumentDB databaseAccounts sqlDatabases containers items resource cosmosDbAccount Microsoft DocumentDB databaseAccounts preview existing name cosmosDbAccountName resource sqlRoleDefinition Microsoft DocumentDB databaseAccounts sqlRoleDefinitions preview name cosmosDbAccountName roleDefinitionId properties roleName roleDefinitionName type CustomRole assignableScopes cosmosDbAccount id permissions dataActions dataActions dependsOn cosmosDbAccount resource sqlRoleAssignment Microsoft DocumentDB databaseAccounts sqlRoleAssignments preview name cosmosDbAccountName roleAssignmentId properties roleDefinitionId sqlRoleDefinition id principalId functionAppPrincipalId scope cosmosDbAccount id Configuring our CosmosClient to use Managed IdentitiesYou may have noticed earlier in our App Settings for our Function I ve added a setting called CosmosDbEndpoint Instead of using our App Setting CosmosDbConnectionString which contained our connection string earlier we can now just use our endpoint return new CosmosClient configuration CosmosDbEndpoint new DefaultAzureCredential cosmosClientOptions Our Cosmos DB endpoint will look like this https lt account name gt documents azure com Making an unauthorized call to this endpoint returns the following response code Unauthorized message Required Header authorization is missing Ensure a valid Authorization token is passed r nActivityId aceb bcb eeaa Microsoft Azure Documents Common In order to make an authorized call we pass in a new DefaultAzureCredential into our CosmosClient This provides a default authentication flow for our application In other words this will attempt to authenticate our Azure Function to Azure Cosmos DB using the managed identity that we have assigned it Since we have created a role assignment for our Azure Function our Function will be authorized to perform operations against our Cosmos DB account Testing our FunctionNow that everything has been set up we can test our Function and make sure that it can perform operations against our Cosmos DB account For this test I have a simple Function that uses a HTTP Trigger to make a POST request and add a simple Todo Item into our Cosmos DB container In the Azure Portal we can navigate to this Function and test it out I pass in the below JSON payload that represents the item that I want to persist to Cosmos DB We should receive a OK response along with our Todo Item that we ve just created in Azure Cosmos DB Let s navigate to our Container in Cosmos DB In the Bicep template I created a todos container in a TodoDB database Navigate to the container and we should see that the Todo item that we created has been successfully persisted to Azure Cosmos DB ConclusionAs we ve seen in this post we can use a combination of managed identities and role assignments to authenticate to Azure Cosmos DB without having to use the connection string in our applications In this post we used Azure Functions as an example but we could do this for any Azure resource that supports managed identities If you have any questions feel free to reach out to me on twitter willvelidaUntil next time Happy coding ️ |
2022-03-24 21:04:15 |
海外TECH |
DEV Community |
echo3D graduates from Intel Ignite--Building the backend of the Metaverse |
https://dev.to/echo3d/echo3d-graduates-from-intel-ignite-building-the-backend-of-the-metaverse-3fj2
|
echoD graduates from Intel Ignite Building the backend of the MetaverseechoD officially graduated from Intel Ignite Intel s startup growth program Chosen out of hundreds of applicants only companies including echoD made the final cut and participated in the week intensive program focused on innovative deep tech startups echoD offers a cloud platform for D AR VR that provides tools and network infrastructure to help developers amp companies quickly build and deploy D apps games and content With Intel Ignite s support echoD is working to build and support the backend of the Metaverse and streamline the D development process by providing a way to manage store and stream D data echoD s D first content management system CMS and delivery network CDN and a scalable BaaS infrastructure enable developers to build and deploy real time D AR VR applications across platforms headsets and mobile devices by connecting them to the cloud Intel Ignite s commitment to authentic mentorship collaboration and giving back is like noting I ve seen before in any other program I ve encountered Said Koren Grinshpoon founder and COO of echoD It what makes the impossible possible Intel Ignite provides startups with access to global experts in technology and business as well as a preferred path to seasoned investors Applications for Intel Ignite s next cohorts in Tel Aviv and Munich are now open echoD www echoD co Techstars is a cloud platform for D AR VR that provides tools and network infrastructure to help developers amp companies quickly build and deploy D apps games and content |
2022-03-24 21:01:31 |
海外TECH |
Engadget |
MIT's new simulation reveals crucial insights into the birth of the universe |
https://www.engadget.com/mit-thesan-simulation-reveals-crucial-insights-into-the-birth-of-the-universe-212240075.html?src=rss
|
MIT x s new simulation reveals crucial insights into the birth of the universeSpontaneously generating reality is a messy affair Our Big Bang for example unleashed a universe s worth of energy and matter in an instant then flung it omnidirectionally away at the speed of light as temperatures throughout the growing cosmos exceeded trillion degrees Celsius in the first few nanoseconds of time s existence The following couple hundred million years during which time the universe cooled to the point that particles beyond quarks and photons could exist ーwhen actual atoms like hydrogen and helium came into being ーare known as the dark ages on account of stars not yet existing to provide light Eventually however vast clouds of elemental gasses compressed themselves enough to ignite bringing illumination to a formerly dark cosmos and driving the process of cosmic reionization which is why the universe isn t still just a whole bunch of hydrogen and helium atoms The actual process of how the light from those new stars interacted with surrounding gas clouds to create the ionized plasma that spawned heavier elements is not fully understood but a team of researchers at MIT have just announced that their mathematical model of this turbulent epoch is the largest and most detailed devised to date The Thesan simulation named in honor of the Etruscan goddess of dawn simulates the period of cosmic reionization looking at the interactions between gasses gravity and radiation in a million cubic light year space Researchers can scrub through a synthetic timeline extending from years to billion years after the Big Bang to see how changing different variables within the model impacts the generated outcomes “Thesan acts as a bridge to the early universe Aaron Smith NASA Einstein Fellow in the MIT Kavli Institute for Astrophysics and Space Research told MIT News “It is intended to serve as an ideal simulation counterpart for upcoming observational facilities which are poised to fundamentally alter our understanding of the cosmos It boasts higher detail at a larger volume than any previous simulation thanks to a novel algorithm tracking light s interaction with gas that dovetails with separate galaxy formation and cosmic dust behavior models “Thesan follows how the light from these first galaxies interacts with the gas over the first billion years and transforms the universe from neutral to ionized Rahul Kannan of the Harvard Smithsonian Center for Astrophysics which partnered with MIT and the Max Planck Institute for Astrophysics on this project told MIT News “This way we automatically follow the reionization process as it unfolds Powering this simulation is the SuperMUC NG supercomputer in Garching Germany Its computing cores run the equivalent of million CPU hours in parallel to crunch the numbers needed by Thesan The team has already seen surprising results from the experiment as well “Thesan found that light doesn t travel large distances early in the universe Kannan said “In fact this distance is very small and only becomes large at the very end of reionization increasing by a factor of over just a few hundred million years nbsp That is light at the end of the reionization period traveled further than researchers had previously figured They have also noticed that the type and mass of a galaxy may influence the reionization process though the Thesan team was quick to point out that corroborating real world observations will be needed before that hypothesis is confirmed |
2022-03-24 21:22:40 |
海外科学 |
NYT > Science |
Methane Leaks Plague New Mexico Oil and Gas Wells |
https://www.nytimes.com/2022/03/24/climate/methane-leaks-new-mexico.html
|
Methane Leaks Plague New Mexico Oil and Gas WellsAn analysis found leaks of methane a potent greenhouse gas from oil and gas drilling in the Permian Basin were many times higher than government estimates |
2022-03-24 21:40:28 |
ニュース |
BBC News - Home |
Bale double fires Wales into play-off final |
https://www.bbc.co.uk/sport/football/60775091?at_medium=RSS&at_campaign=KARANGA
|
Bale double fires Wales into play off finalGareth Bale scores two brilliant goals to take Wales a step closer to qualifying for their first World Cup since with victory over Austria in their play off semi final |
2022-03-24 21:40:17 |
ニュース |
BBC News - Home |
England in West Indies: Jack Leach and Saqib Mahmood spare tourists' top order |
https://www.bbc.co.uk/sport/cricket/60864699?at_medium=RSS&at_campaign=KARANGA
|
England in West Indies Jack Leach and Saqib Mahmood spare tourists x top orderJack Leach and Saqib Mahmood are England s unlikely saviours after the tourists top order collapsed on day one of the decisive third Test against the West Indies |
2022-03-24 21:39:57 |
ニュース |
BBC News - Home |
North Macedonia stun Italy as European champions miss out on World Cup |
https://www.bbc.co.uk/sport/football/60869125?at_medium=RSS&at_campaign=KARANGA
|
palermo |
2022-03-24 21:51:11 |
ニュース |
BBC News - Home |
Fernandes close to signing new Man Utd deal |
https://www.bbc.co.uk/sport/football/60869404?at_medium=RSS&at_campaign=KARANGA
|
manchester |
2022-03-24 21:33:53 |
サブカルネタ |
ラーブロ |
らーめん たきび@上溝(神奈川県) 「辛みそらーめん、生たまご2個」 |
http://ra-blog.net/modules/rssc/single_feed.php?fid=197522
|
神奈川県 |
2022-03-24 21:31:02 |
北海道 |
北海道新聞 |
首相「国際秩序守る決意」 G7会合巡り |
https://www.hokkaido-np.co.jp/article/660901/
|
国際秩序 |
2022-03-25 06:33:00 |
北海道 |
北海道新聞 |
フィギュア、三浦・木原組が銀 世界選手権、日本人で初のメダル |
https://www.hokkaido-np.co.jp/article/660900/
|
世界選手権 |
2022-03-25 06:23:00 |
北海道 |
北海道新聞 |
金谷は競り勝ち1勝1敗 世界マッチプレーゴルフ |
https://www.hokkaido-np.co.jp/article/660899/
|
世界選手権 |
2022-03-25 06:13:00 |
北海道 |
北海道新聞 |
NY株反発、349ドル高 米経済の先行き楽観視 |
https://www.hokkaido-np.co.jp/article/660898/
|
経済 |
2022-03-25 06:03:00 |
ビジネス |
東洋経済オンライン |
ファミマ、ようやく整った「トップ挑戦」への土台 細見社長が宣言「もう2番手ではいられない」 | コンビニ | 東洋経済オンライン |
https://toyokeizai.net/articles/-/541375?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
伊藤忠商事 |
2022-03-25 06:30:00 |
ビジネス |
東洋経済オンライン |
韓国の新大統領が直面「不動産高騰と失業」の難題 政策に新鮮味ないが、高まる現政権への不満 | 韓国・北朝鮮 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/541127?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
東洋経済オンライン |
2022-03-25 06:30:00 |
マーケティング |
MarkeZine |
NewsPicksが抱えていた「解約率」問題を解決 CSO杉野氏が取り組んだ2つのこと |
http://markezine.jp/article/detail/38577
|
そしてこの課題を解決したのが、年月より同社にCSO最高戦略責任者としてジョインした杉野幹人氏だ。 |
2022-03-25 06:30:00 |
コメント
コメントを投稿