投稿時間:2023-05-04 19:15:29 RSSフィード2023-05-04 19:00 分まとめ(17件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
TECH Techable(テッカブル) Galaxy S23シリーズ対応!透明感が長く続くクリアケースが登場 https://techable.jp/archives/205195 casetify 2023-05-04 09:00:32
AWS lambdaタグが付けられた新着投稿 - Qiita スプラトゥーン3のスケジュール情報を定期的にLINEで通知できるようにした(AWS Lambda × Ruby × LINE messaging API) https://qiita.com/a16111k/items/1d156db0656559cdb27a lambda 2023-05-04 18:28:11
Ruby Rubyタグが付けられた新着投稿 - Qiita スプラトゥーン3のスケジュール情報を定期的にLINEで通知できるようにした(AWS Lambda × Ruby × LINE messaging API) https://qiita.com/a16111k/items/1d156db0656559cdb27a lambda 2023-05-04 18:28:11
Ruby Rubyタグが付けられた新着投稿 - Qiita [Ruby3.0]型推論、型検査(Typeprof、Steep)を試してみる https://qiita.com/_akira19/items/34dbcb1246fbf1a6cf62 steep 2023-05-04 18:27:14
AWS AWSタグが付けられた新着投稿 - Qiita スプラトゥーン3のスケジュール情報を定期的にLINEで通知できるようにした(AWS Lambda × Ruby × LINE messaging API) https://qiita.com/a16111k/items/1d156db0656559cdb27a lambda 2023-05-04 18:28:11
AWS AWSタグが付けられた新着投稿 - Qiita AWSIAM Identity Centerで、AWS Toolkit for Visual Studio Codeを使う https://qiita.com/a_b_/items/33bd649c085ccfb687be awsiamidentit 2023-05-04 18:20:19
Ruby Railsタグが付けられた新着投稿 - Qiita [Ruby3.0]型推論、型検査(Typeprof、Steep)を試してみる https://qiita.com/_akira19/items/34dbcb1246fbf1a6cf62 steep 2023-05-04 18:27:14
海外TECH DEV Community How to Use VSCode with Raspberry Pi Pico W and MicroPython https://dev.to/shilleh/how-to-use-vscode-with-raspberry-pi-pico-w-and-micropython-43op How to Use VSCode with Raspberry Pi Pico W and MicroPythonYoutube VideoThis tutorial demonstrates how to start coding on the Raspberry Pi Pico or Pico W using Visual Studio Code Connecting to the Raspberry Pi Pico W in VScode can help you write and debug code more efficiently and improve your development workflow for embedded systems projects This integration can help you streamline your development workflow and reduce the time it takes to get your code up and running on the Raspberry Pi Pico W Step Install MicroPython on PicoPlugin the device into the computer while holding the bootsel button Go to and download the latest version for the Pico or Pico WDrag the UF file onto your Pico once it is done downloading It should show up on your Desktop as RP RP Once it is done the RP RP will disappear Unplug and replug the Pico without holding the bootsel You need to do this so VSCode can find the device Step Download Pico W Go ExtensionMake sure you have Python installed on your computer It is one of the requirements for the extension Go to extensions in VSCode and install the extension Search “Pico Note that it was previously called Pico Go Step Write CodeCreate a directory on your local computer and open the empty directory on VSCodeConfigure the Pico W Go environment Run Pico W Go gt Configure Project command via Ctrl Shift P or the equivalent on your platform VS Code command palette This will import stubs for autocompletion and the settings into your project folder For the auto completion to work the extension prompts you after project configuration to install recommended extensions mentioned Create a Python file in the directory and add the following code from machine import Pinfrom time import sleeppin Pin LED Pin OUT while True pin toggle sleep Make sure the Pico is connected shown on the bottom of the screen Run the current file by right clicking the file name and selecting Run current file You should see the LED start blinking If you did congrats You can use other operations in the library such as deleting all code on your device or downloading files from the Pico which will help you develop your projects faster Overall developing on VSCode has several advantages over Thonny and may be your preferred IDE for developing on the Raspberry Pi Pico ConclusionHope I saved you some time if I did please subscribe to the channel for more useful tips that will help you in your coding endeavors 2023-05-04 09:34:35
海外TECH DEV Community Simplifying Account Abstraction for the Web3 World https://dev.to/buildbear/simplifying-account-abstraction-for-the-web3-world-53l5 Simplifying Account Abstraction for the Web WorldQuick note This article has been written by our Guest Author Aprit Kumar Twitter Linkedin and we would like to thank him for this The journey towards widespread adoption of cryptocurrencies and the web world has been met with numerous challenges One of the biggest obstacles is the lack of user friendly interfaces and security issues Account Abstraction is an innovative solution that can revolutionize the way we manage our accounts in Ethereum making it more accessible and secure for the average user Understanding Ethereum Accounts Ethereum has two types of accounts Externally Owned Accounts EOA and Contract Accounts EOAs are typically used with wallets like MetaMask and Coinbase while Contract Accounts are associated with smart contracts EOAs are secured by a private key which is crucial to prevent unauthorized access Losing this key means losing access to the account and all its assets Introducing Account AbstractionAccount Abstraction is a groundbreaking concept that transforms EOAs into smart contracts making them programmable by users This enables transaction authorization without the need for a private key offering a more streamlined and secure experience Some of the key benefits of Account Abstraction include Enhanced security with multiple signersBatch transactions for approving and transferring tokensRecovery of funds without private keysTemporary halt of fund transfers during recovery effortsPaying gas fees in any token and allowing projects to cover costs for usersPlug ins for increased flexibility and modularitySteps Involved in Account Abstraction ImplementationAccount Abstraction s implementation can be quite complex but let s break it down into simpler steps to understand how it works The process involves transforming an EOA into a smart contract enabling users to program custom transaction authorization rules and features Step Deploying a Smart Contract WalletTo start a user deploys a smart contract wallet This wallet acts as a proxy between the user and the Ethereum network Unlike an EOA this wallet can contain custom logic and rules for transaction authorization effectively abstracting the account Step Defining Custom Rules and FeaturesOnce the smart contract wallet is deployed the user can define custom rules and features for their account This includes multiple signers for enhanced security social recovery methods and more The smart contract code will determine how transactions are authorized and executed based on these rules Step Interacting with the Ethereum NetworkWhen the user wants to interact with the Ethereum network they initiate a transaction through their smart contract wallet The wallet processes the transaction applying the custom logic and rules defined by the user If the transaction meets the necessary criteria it is authorized and sent to the network Step Paying Gas FeesWith Account Abstraction users can pay gas fees in any token not just ETH This is achieved by implementing a mechanism within the smart contract wallet that converts the desired token to ETH to cover the gas fee Additionally projects can choose to cover the gas fees on behalf of their users further simplifying the user experience Step Adding and Removing FeaturesAccount Abstraction allows users to add or remove features from their smart contract wallet as needed For example they can integrate plug ins developed by third parties essentially creating an app store for their account This modularity ensures that users have access to the latest features and can customize their account as desired Challenges in ImplementationImplementing Account Abstraction on Ethereum Layer is challenging due to compatibility issues with the current ecosystem built around EOAs As a result most Dapps are not compatible with smart contract wallets However Layer solutions like StarkNet are working to incorporate Account Abstraction in their ecosystem to overcome these challenges and bring the benefits of Account Abstraction to a wider audience This is the best collection of resources on Account Abstraction from understanding to implementation with latest discussions on the topic Mafia AAAThe Future of Account AbstractionThe implementation of Account Abstraction can significantly enhance the web experience making it more accessible for the average user With better user experience mass adoption of web and cryptocurrencies becomes more attainable As Layer solutions continue to develop we can expect to see Account Abstraction playing a crucial role in the future of the web ecosystem And please give us a clap if you like our work and please do share this article Thank you About BuildBear BuildBear is a platform for testing dApps at scale for teams It provides users with their own private Testnet to test their smart contracts and dApps which can be forked from any EVM chain It also provides a Faucet Explorer and RPC for testing purposes BuildBear aims to build an ecosystem of tools for testing dApps at scale for the teams If you appreciate what we are doing please follow us on Twitter and LinkedIn and Join the Telegram group if you haven t done yet We would like to thank our Guest Author Aprit Kumar Twitter Linkedin 2023-05-04 09:17:44
海外TECH DEV Community Server-side rendering in Rust - a Dall.E use-case https://dev.to/nfrankel/server-side-rendering-in-rust-a-dalle-use-case-33jp Server side rendering in Rust a Dall E use caseLast week I decided to see the capabilities of OpenAI s image generation However I noticed that one has to pay to use the web interface while the API was free even though rate limited Dall E offers Node js and Python samples but I wanted to keep learning Rust So far I ve created a REST API In this post I want to describe how you can create a webapp with server side rendering The contextTokio is a runtime for asynchronous programming for Rust Axum is a web framework that leverages the former I already used Axum for the previous REST API so I decided to continue A server side rendering webapp is similar to a REST API The only difference is that the former returns HTML pages and the latter JSON payloads From an architectural point of view there s no difference from a development one however it plays a huge role There s no visual requirement in JSON so ordering is not an issue You get a struct you serialize it and you are done You can even do it manually it s no big deal though a bit boring On the other hand HTML requires a precise ordering of the tags if you create it manually maintenance is going to be a nightmare We invented templating to generate order sensitive code with code While templating is probably age old PHP was the language to popularize it One writes regular HTML and when necessary adds the snippets that need to be dynamically interpreted In the JVM world I used JSPs and Apache Velocity the latter to generate RTF documents Templating in AxumAs I mentioned above I want to continue using Axum Axum doesn t offer any templating solution out of the box but it allows integrating any solution through its API Here is a small sample of templating libraries that I found for Rust handlebars rust based on Handlebarsliquid based on LiquidTera based on Jinja as the next twoaskamaMiniJinjaetc As a developer however I m lazy by essence and I wanted something integrated with Axum out of the box A quick Google search lead me to axum template which seems pretty new but very dynamic The library is an abstraction over handlebars askama and minijinja You can use the API and change implementation whenever you want axum template in shortSetting up axum template is relatively straightforward First we add the dependency to Cargo cargo add axum templateThen we create an engine depending on the underlying implementation and configure Axum to use it Here I m using Jinja type AppEngine Engine lt Environment lt static gt gt derive Clone FromRef struct AppState engine AppEngine tokio main async fn main let mut jinja Environment new jinja set source Source from path templates let app Router new route get home with state AppState engine Engine from jinja Create a type aliasCreate a dedicated structure to hold the engine stateCreate a Jinja specific environmentConfigure the folder to read templates from The path is relative to the location where you start the binary it shouldn t be part of the src folder I spent a nontrivial amount of time to realize it Configure Axum to use the engineHere are the base items Engine is a facade over the templating libraryTemplates are stored in a hashtable like structure With the MiniJinja implementation according to the configuration above Key is simply the filename e g home htmlThe final S parameter has no requirement The library will read its attributes and use them to fill the template I won t go into the details of the template itself as the documentation is quite good The impl returnIt has nothing to do with templating but this mini project allowed me to ponder the impl return type In my previous REST project I noticed that Axum handler functions return impl but I didn t think about it It s indeed pretty simple If your function returns a type that implements MyTrait you can write its return type as gt impl MyTrait This can help simplify your type signatures quite a lot Rust by exampleHowever it has interesting consequences If you return a single type it works like a charm However if you return more than one you either need a common trait across all returned types or to be explicit about it Here s the original sample async fn call engine AppEngine Form state Form lt InitialPageState gt gt impl IntoResponse RenderHtml Key home html to owned engine state If the page state needs to differentiate between success and error we must create two dedicated structures async fn call engine AppEngine Form state Form lt InitialPageState gt gt Response let page state PageState from state if page state either is left RenderHtml Key home html to owned engine page state either left unwrap into response else RenderHtml Key home html to owned engine page state either right unwrap into response Cannot use impl IntoResponse need to use the explicit Response typeExplicit transform the return value to Response Using the applicationYou can build from the source or run the Docker image available at DockerHub The only requirement is to provide an OpenAI authentication token via an environment variable docker run it rm p e OPENAI TOKEN nfrankel rust dalle Enjoy ConclusionThis small project allowed me to discover another side of Rust HTML templating with Axum It s not the usual use case for Rust but it s part of it anyway On the Dall E side I was not particularly impressed with the capabilities Perhaps I didn t manage to describe the results in the right way I ll need to up my prompt engineering skills In any case I m happy that I developed the interface if only for fun The complete source code for this post can be found on GitHub nfrankel rust dalle Rust facade to call the OpenAI API Rust DALL EThe project is a facade that allows calling the OpenAI API You can build from source or use the Docker image docker run it rm p e OPENAI TOKEN nfrankel rust dalle View on GitHubTo go further Axumaxum templateMiniJinjaDall E webappImage generation APIOriginally published at A Java Geek on April th 2023-05-04 09:02:00
海外TECH Engadget Slack is getting in on the GPT AI trend https://www.engadget.com/slack-is-getting-in-on-the-gpt-ai-trend-090054594.html?src=rss Slack is getting in on the GPT AI trendAt its World Tour NYC event Salesforce has introduced Slack GPT which it describes as a three pronged vision that integrates AI features into the business messaging app Slack GPT is comprised of AI powered features built natively into the app a new AI ready platform that was recently made available to developers and the availability of Einstein GPT in the app that will power its ability to instantly generate insights and summaries Einstein GPT was developed by Salesforce as a generative AI for customer relationship management CRM and could assist businesses with tasks related to sales nbsp The integrated AI features will give users access to a workflow builder that doesn t require them to know how to code In it they can automatically create or update a canvas which is Slack s tool designed for collaboration Users can also summon Einstein GPT to summarize Huddle calls and create canvases from those calls simply by clicking a button That said companies don t have to stick to using Einstein GPT only They can integrate large language models of their choice into the new AI ready Slack platform including OpenAI s In fact a Claude Anthropic app is now available for Slack while the ChatGPT app for the messaging service is currently in beta Salesforce assures customers that Anthropic and OpenAI will not take data from their Slack apps to train their language models nbsp Salesforce said Slack GPT is being developed to boost users productivity and gave several examples of how its features could be used For sales teams could use those features to auto generate account channel summaries create canvases for investors and create customer recommendations Customer service agents can use AI generated solutions and responses to quickly resolve issues and auto generate case summaries Developers can use the features to scan for channel activities and summarize root cause analysis when identifying solutions for issues in their software The AI tools could also auto generate image and copy for blogs email campaigns and social media posts for marketers At the moment Slack GPT s native AI capabilities the new AI ready platform and the Einstein GPT app for Slack are still in development and it s unclear when they re going to roll out nbsp In addition to Slack GPT Salesforce has also announced its plans to collaborate with Accenture quot to accelerate the deployment of generative AI for CRM quot The companies are apparently planning to provide businesses and organizations with the technology and help they need to be able to adopt Einstein GPT to increase productivity and improve customer experiences This article originally appeared on Engadget at 2023-05-04 09:00:54
海外科学 NYT > Science Why Does This Cannibalistic Fish Keep Washing Ashore? https://www.nytimes.com/2023/05/04/us/lancetfish-oregon-beaches.html ocean 2023-05-04 09:30:05
海外ニュース Japan Times latest articles A ghostly ‘fairy lantern’ plant in Hyogo, back from the dead https://www.japantimes.co.jp/news/2023/05/04/national/science-health/thismia-kobensis-rediscovery-lazarus-species/ A ghostly fairy lantern plant in Hyogo back from the deadFor over two decades scientists thought Thismia kobensis was extinct but it s now being called a “Lazarus species following a discovery by Kobe University researchers 2023-05-04 18:35:13
海外ニュース Japan Times latest articles Almost half of young people in Japan have had suicidal thoughts, survey finds https://www.japantimes.co.jp/news/2023/05/04/national/half-young-people-suicidal-thoughts/ Almost half of young people in Japan have had suicidal thoughts survey findsAbout of those who had suicidal thoughts did not speak to anyone about it while of people said they opened up to friends 2023-05-04 18:02:08
ニュース BBC News - Home Israel says it killed Palestinian gunmen who shot dead British-Israelis https://www.bbc.co.uk/news/world-middle-east-65479662?at_medium=RSS&at_campaign=KARANGA nablus 2023-05-04 09:48:40
ニュース BBC News - Home Pioneering actress killed in Sudan cross-fire https://www.bbc.co.uk/news/world-africa-65467934?at_medium=RSS&at_campaign=KARANGA performances 2023-05-04 09:57:07
IT 週刊アスキー セブンプレミアムならぬヒカキンプレミアム! HIKAKIN初のカップラーメン「みそきん」セブンイレブンで発売へ https://weekly.ascii.jp/elem/000/004/135/4135261/ hikakin 2023-05-04 18:45: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件)