AWS |
AWSタグが付けられた新着投稿 - Qiita |
SageMaker Autopilot のアルゴリズム選択方法 |
https://qiita.com/ishidahra/items/cffe7484102dac9997da
|
automl |
2023-03-11 19:22:01 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
iot-app-kitのuseTimeSeriesData関数を使って、オリジナルな可視化部品を作る |
https://qiita.com/ShotaOki/items/d3d19fee9636cd1a65df
|
nodejs |
2023-03-11 19:20:26 |
Docker |
dockerタグが付けられた新着投稿 - Qiita |
[WordPress][Docker]インストール直後のおまじない |
https://qiita.com/otamaninja/items/28eca98169086c144c95
|
wordpress |
2023-03-11 19:20:19 |
Azure |
Azureタグが付けられた新着投稿 - Qiita |
Azure で ChatGPT × Cognitive Search を使ったエンタープライズサーチを実現 |
https://qiita.com/nohanaga/items/803c09b5a3a4e2d1776f
|
chatgpt |
2023-03-11 19:03:08 |
海外TECH |
DEV Community |
✨ETH Dubai 2023 MetaMask SDK Developer Guide✨ |
https://dev.to/metamask/eth-dubai-2023-metamask-sdk-developer-guide-e9a
|
ETH Dubai MetaMask SDK Developer GuideAs your team works on ConsenSys and MetaMask bounties for the ETH Dubai Conf we have prepared the following resources you can also contact our ConsenSys and MetaMask SDK team members with the links below ️Guillaume Bibeau MetaMask SDK DevRelEric Bishard MetaMask DevRel🪩Lauren Dutton Infura DevRel TOC🪙Hackathon Bounty🪄Hackathon TipsStart Here️ExamplesBuilding with Infura Truffle or Ganache Hackathon BountyFor the ETH Dubai Hackathon we have k max for up to winners k each or k for one team We are looking for submissions that cover one of the four following ideas which utilize at least the MetaMask SDK Use MetaMask SDK along with other products like our MetaMask API Infura Truffle and or Ganache to deploy a dApp for hackathon project submissions and smart tagging that is based on code or description Issuing NFTs or POAPs to participants and winners is a feature that could take your idea to the next level Build a Web dApp to provide tooling for DAOs utilizing the MetaMask SDK and any other ConsenSys products Make a fun and interactive Unity game or platform MVP that utilizes MetaMask SDK to connect to MetaMask Mobile and have in game web experiences Create a Web dApp platform maybe DAO or DeFi related that utilizes the MetaMask SDK and other ConsenSys products We judge our bounties based on the number of ConsenSys products used utility technical sophistication fundability and scalability The project s that keep those attributes in mind and take their submission to the highest level will emerge victorious Hackathon Tips 🪄We seek new and exciting use cases made possible only via the Snaps platform Beyond our normal judging criteria communication of your idea and its features and explaining what your project does and what products and bounties you are applying for is just as important Check out Ultimate Hackathon Survival Guide if you are new to hackathons Start Here To start building a Snap follow this workshop which implements MetaMask SDK manages React state for the MetaMask wallet and uses Truffle and Ganache to build locally MetaMask Workshop Examples ️Want to see how to implement MetaMask SDK There are a few React repositories here with basic implementation MetaMask SDK Iplementation Demo Building with Infura Truffle or GanacheIf you are building with ConsenSys products outside of MetaMask SDK we have provided the docs below Infura DocsTruffle Suite DocsGanache Docs |
2023-03-11 10:26:39 |
海外TECH |
DEV Community |
Custom Converters in DynamoDB: Building Robust Data Models with Ease |
https://dev.to/manojlingala/custom-converters-in-dynamodb-building-robust-data-models-with-ease-4a5c
|
Custom Converters in DynamoDB Building Robust Data Models with EaseDynamoDB s custom converters feature allows you to define custom mappings between your application s data model and DynamoDB s attribute value data model This is particularly useful when working with complex or custom data types such as enums or value objects that may not be natively supported by DynamoDB By using custom converters you can simplify your application s code and reduce the amount of boilerplate code required for mapping between your application and DynamoDB Custom converters can also improve performance by reducing the amount of data that needs to be transferred between your application and DynamoDB and by allowing you to optimize the way data is stored and retrieved The purpose of this article is to demonstrate how to use two specific types of custom converters in DynamoDB Enum Converter and Value Object Converter These converters are particularly useful for mapping enums and value objects to and from DynamoDB attribute values respectively We will provide code examples and discuss some advanced topics related to custom converters in DynamoDB DynamoDB s Enum Converter allows you to map between dotnet or any other supported language specific enums and DynamoDB attribute values This is useful because DynamoDB natively supports only a limited set of data types such as strings numbers and binary data With Enum Converter you can map your application s enums to these native data types and store them in DynamoDB as attributes Here s an example of how to create and use an Enum Converter in DynamoDB using Amazon DynamoDBv DataModel using Amazon DynamoDBv DocumentModel public enum PaymentMethod CreditCard PayPal Bitcoin public class PaymentMethodConverter IPropertyConverter public DynamoDBEntry ToEntry object value return new Primitive value as PaymentMethod ToString public object FromEntry DynamoDBEntry entry return Enum Parse typeof PaymentMethod entry AsString We can then use this converter in our data model as follows DynamoDBTable Orders public class Order DynamoDBProperty paymentMethod DynamoDBTypeConverter typeof PaymentMethodConverter public PaymentMethod PaymentMethod get set other properties and methods Value objects are a concept in software development that represent an immutable value or set of values with a specific behavior They can be used to encapsulate complex or custom data types that don t fit into the simple data types supported by databases like DynamoDB Value objects are typically implemented as immutable classes that expose their data through getters and don t have any setters or other mutators The benefits of using value objects over primitives or simple types include increased type safety better encapsulation and more expressive code By using value objects you can reduce the likelihood of errors due to incorrect types or values and you can make your code more readable and maintainable DynamoDB s Value Object Converter allows you to map between value objects and DynamoDB attribute values Here s an example of how to create and use a Value Object Converter in DynamoDB using Amazon DynamoDBv DataModel using Newtonsoft Json public class Address public string Street get set public string City get set public string State get set public string ZipCode get set public class AddressConverter IPropertyConverter public DynamoDBEntry ToEntry object value return new Primitive JsonConvert SerializeObject value public object FromEntry DynamoDBEntry entry return JsonConvert DeserializeObject entry AsString typeof Address We use the Newtonsoft Json System Text to convert the value object to from JSON string We can then use this converter in our data model as follows DynamoDBTable Customers public class Customer DynamoDBProperty address DynamoDBTypeConverter typeof AddressConverter public Address Address get set other properties and methods Handling nested objectsSometimes your data model may contain nested objects where one object contains another object as a property In these cases you can use a combination of custom converters to handle the nested objects For example suppose we have the following data model using Amazon DynamoDBv DataModel using Newtonsoft Json using System Collections Generic public class Address public string Street get set public string City get set public string State get set public string ZipCode get set public class Customer public string CustomerId get set public Address Address get set public class Order public string OrderId get set public Customer Customer get set public class AddressConverter IPropertyConverter public DynamoDBEntry ToEntry object value return new Primitive JsonConvert SerializeObject value public object FromEntry DynamoDBEntry entry return JsonConvert DeserializeObject entry AsString typeof Address public class CustomerConverter IPropertyConverter public DynamoDBEntry ToEntry object value var customer Customer value var address new AttributeValue new AddressConverter ToEntry customer Address var map new Dictionary lt string AttributeValue gt CustomerId new AttributeValue customer CustomerId Address address return new AttributeValue map public object FromEntry DynamoDBEntry entry var map entry M return new Customer CustomerId map CustomerId S Address Address new AddressConverter FromEntry map Address S public class OrderConverter IPropertyConverter public DynamoDBEntry ToEntry object value var order Order value var customer new AttributeValue new CustomerConverter ToEntry order Customer var map new Dictionary lt string AttributeValue gt OrderId new AttributeValue order OrderId Customer customer return new AttributeValue map public object FromEntry DynamoDBEntry entry var map entry M return new Order OrderId map OrderId S Customer Customer new CustomerConverter FromEntry map Customer M In summary we have explored how to use custom converters in DynamoDB to map between your application s data model and DynamoDB attribute values Specifically we have looked at Enum Converter and Value Object Converter as ways to map C enums and value objects respectively to DynamoDB attribute values We have also covered some advanced topics such as handling nested objects and using custom serialization deserialization libraries Thank you for reading ️ |
2023-03-11 10:04:32 |
海外科学 |
NYT > Science |
Inside One of the World’s Biggest Green Hydrogen Projects |
https://www.nytimes.com/2023/03/11/climate/green-hydrogen-energy.html
|
Inside One of the World s Biggest Green Hydrogen ProjectsHundreds of billions of dollars are being invested in a high tech gamble to make hydrogen clean cheap and widely available In Australia s Outback that starts with million new solar panels |
2023-03-11 10:00:55 |
海外ニュース |
Japan Times latest articles |
Japan marks 12 years since quake and tsunami prompted Fukushima crisis |
https://www.japantimes.co.jp/news/2023/03/11/national/march-11-disasters-12th-anniversary/
|
Japan marks years since quake and tsunami prompted Fukushima crisisRecovery from the magnitude earthquake and resultant tsunami has progressed but some people remain displaced as of November |
2023-03-11 19:04:10 |
ニュース |
BBC News - Home |
Hemsby: Cliff-top homes due to be demolished as collapse risk grows |
https://www.bbc.co.uk/news/uk-england-norfolk-64924782?at_medium=RSS&at_campaign=KARANGA
|
norfolk |
2023-03-11 10:38:13 |
ニュース |
BBC News - Home |
The Wild West-style ghost town hidden in an alley |
https://www.bbc.co.uk/news/uk-scotland-edinburgh-east-fife-64891714?at_medium=RSS&at_campaign=KARANGA
|
morningside |
2023-03-11 10:06:05 |
ニュース |
BBC News - Home |
Gary Lineker: Players and managers won't be asked to do interviews for Match of the Day |
https://www.bbc.co.uk/sport/football/64925373?at_medium=RSS&at_campaign=KARANGA
|
Gary Lineker Players and managers won x t be asked to do interviews for Match of the DayThe Premier League has informed the teams playing on Saturday that players and managers will not be asked to do interviews for Match of the Day |
2023-03-11 10:00:44 |
コメント
コメントを投稿