投稿時間:2023-08-15 03:17:17 RSSフィード2023-08-15 03:00 分まとめ(24件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS AWS News Blog AWS Weekly Roundup – Amazon MWAA, EMR Studio, Generative AI, and More – August 14, 2023 https://aws.amazon.com/blogs/aws/aws-weekly-roundup-amazon-mwaa-emr-studio-generative-ai-and-more-august-14-2023/ AWS Weekly Roundup Amazon MWAA EMR Studio Generative AI and More August While I enjoyed a few days off in California to get a dose of vitamin sea a lot has happened in the AWS universe Let s take a look together Last Week s Launches Here are some launches that got my attention Amazon MWAA now supports Apache Airflow version Amazon Managed Workflows for Apache Airflow … 2023-08-14 17:22:05
AWS AWS Big Data Blog The art and science of data product portfolio management https://aws.amazon.com/blogs/big-data/the-art-and-science-of-data-product-portfolio-management/ The art and science of data product portfolio managementThis post is the first in a series dedicated to the art and science of practical data mesh implementation for an overview of data mesh read the original whitepaper The data mesh shift The series attempts to bridge the gap between the tenets of data mesh and its real life implementation by deep diving into the functional … 2023-08-14 17:00:47
AWS AWS Database Blog Data consolidation for analytical applications using logical replication for Amazon RDS Multi-AZ clusters https://aws.amazon.com/blogs/database/data-consolidation-for-analytical-applications-using-logical-replication-for-amazon-rds-multi-az-clusters/ Data consolidation for analytical applications using logical replication for Amazon RDS Multi AZ clustersAmazon Relational Database Service Amazon RDS Multi AZ deployments provide enhanced availability and durability for your RDS database instances You can deploy highly available durable PostgreSQL databases in three Availability Zones using Amazon RDS Multi AZ DB cluster deployments with two readable standby DB instances With a Multi AZ DB cluster applications gain automatic failovers in typically under … 2023-08-14 17:31:50
AWS AWS Database Blog Deploy multi-Region Amazon RDS for SQL Server using cross-Region read replicas with a disaster recovery blueprint – Part 2 https://aws.amazon.com/blogs/database/deploy-multi-region-amazon-rds-for-sql-server-using-cross-region-read-replicas-with-a-disaster-recovery-blueprint-part-2/ Deploy multi Region Amazon RDS for SQL Server using cross Region read replicas with a disaster recovery blueprint Part In our previous post we deployed multi Region disaster recovery blueprint using Amazon Route Amazon Relational Database Service Amazon RDS for SQL Server and Amazon Simple Storage Service Amazon S In this post we walk you through the process of promoting RDS for SQL Server in the AWS secondary Region and performing a cross Region failover … 2023-08-14 17:13:50
AWS AWS Database Blog Deploy multi-Region Amazon RDS for SQL Server using cross-Region read replicas with a disaster recovery blueprint – Part 1 https://aws.amazon.com/blogs/database/deploy-multi-region-amazon-rds-for-sql-server-using-cross-region-read-replicas-with-a-disaster-recovery-blueprint-part-1/ Deploy multi Region Amazon RDS for SQL Server using cross Region read replicas with a disaster recovery blueprint Part Disaster recovery and high availability planning play a critical role in ensuring the resilience and continuity of business operations When considering disaster recovery strategies on AWS there are two primary options in Region disaster recovery and cross Region disaster recovery The choice between in Region and cross Region disaster recovery depends on various factors including the criticality of the … 2023-08-14 17:13:01
AWS AWS Machine Learning Blog Zero-shot and few-shot prompting for the BloomZ 176B foundation model with the simplified Amazon SageMaker JumpStart SDK https://aws.amazon.com/blogs/machine-learning/zero-shot-and-few-shot-prompting-for-the-bloomz-176b-foundation-model-with-the-simplified-amazon-sagemaker-jumpstart-sdk/ Zero shot and few shot prompting for the BloomZ B foundation model with the simplified Amazon SageMaker JumpStart SDKAmazon SageMaker JumpStart is a machine learning ML hub offering algorithms models and ML solutions With SageMaker JumpStart ML practitioners can choose from a growing list of best performing and publicly available foundation models FMs such as BLOOM Llama Falcon B Stable Diffusion OpenLLaMA Flan T UL or FMs from Cohere and LightOn In this post and … 2023-08-14 17:07:28
AWS AWSタグが付けられた新着投稿 - Qiita AWS CDK で Infrastructure as Code する: VPC編 https://qiita.com/masatomix/items/fc414e98d6d0091db90d awscdkclo 2023-08-15 02:46:06
技術ブログ Developers.IO AWS IP 주소 범위 알림 받아 보기 https://dev.classmethod.jp/articles/jw-get-aws-ip-address-range-notifications/ AWS IP 주소범위알림받아보기안녕하세요클래스메소드김재욱 Kim Jaewook 입니다 이번에는AWS IP 주소범위의알림을받아보는방법에대해서정리해봤습니다 AWS IP 주소범위AWS가사용하는IP 주소 2023-08-14 17:13:20
海外TECH MakeUseOf Mobile Hotspot Not Working in Windows 10? Here’s How to Fix It https://www.makeuseof.com/windows-10-mobile-hotspot-not-working/ windows 2023-08-14 17:15:21
海外TECH DEV Community Protected Routes in React https://dev.to/sundarbadagala081/protected-routes-in-react-47b1 Protected Routes in React INTRO As a frontend developer it is very important to know that routing and particularly private routing for user authentication For example some applications are public i e any one can see and modify content in it but some other applications are not allowed all the users to modify the content inside the application like posting new data deleting and modifying the data etc For that we have to use protected routes in ReactJS In this post we will discuss how to create protected routes in ReactJS in simple and efficient way without any confusion APPROACH I hope you people already created ReactJS application Otherwise please follow this link to create react applicationNOTE To handle protected routes in ReactJS we have to install library react router domnpm i react router domreact router dom is the famous library which helps to routing in ReactJs After install the library check the package json file whether that library was installed or not NOTE This routing method will works only the library react router dom having the version gt not for the version lt Now we have to create one helper file useAuth to check whether a token is preset or not NOTE Token is specific key response provided from the backend when user logged in successfully By using token we can check whether the user is logged in or logged out useAuth jsexport const useAuth gt getting token from local storage const user localStorage getItem token checking whether token is preset or not if user return true else return false Now we have to create two files named privateRoute and publicRoute privateRoute file will execute when the user is logged in state and publicRoute file will execute when the user is logged out state privateRoute jsimport Outlet Navigate from react router dom import useAuth from useAuth function PrivateRoutes const token useAuth return token lt Outlet gt lt Navigate to login gt export default PrivateRoutes publicRoute jsimport Outlet Navigate from react router dom import useAuth from useAuth function PrivateRoutes const token useAuth return token lt Navigate to gt lt Outlet gt export default PrivateRoutesThe routing setup completed successfully Now we have to use this setup in our application to handle private routing App js importing from react router dom libaryimport Routes Route from react router dom importing previously created privateRoute js fileimport PrivateRoutes from privateRoute importing previously created publicRoute js fileimport PublicRoutes from publicRoute let s import some private componentsimport Home from home import ErrorComp from error let s import some public componentsimport Login from login function App return lt Routes gt lt Route element lt PrivateRoutes gt gt lt Route element lt Home gt path gt lt Route element lt ErrorComp gt path gt lt Route gt lt Route element lt PublicRoutes gt gt lt Route element lt Login gt path login gt lt Route gt lt Routes gt export default AppFinally the protected routes in ReactJS completed successfully Now we can check those private routes and public routes by providing the token let s take any string manually in chrome devtools gt inspect gt application Otherwise we can create login and home files to handle the routing in client side Create login public component page to log the user in and redirect to home private component page after setting the token in local storage successfully the app can redirect to home when only token is preset in local storage login jsimport useNavigate from react router dom function Login const navigate useNavigate const onSubmit gt const res login api call const token res data token let s take some string dev as token localStorage setItem token JSON stringify token navigate return lt gt lt button onClick handleLogin gt Login lt button gt lt gt export default LoginCreate home private component page to view the user personal details and to log the user out home jsimport useNavigate from react router dom function Home const navigate useNavigate const handleLogout gt localStorage removeItem token navigate login return lt gt lt button onClick handleLogout gt log out lt button gt lt div gt home page lt div gt lt div gt hello user lt div gt lt gt export default HomeCreate error page optional to display while doing wrong routing error jsfunction Error return lt gt this is error page lt gt export default ErrorFinally the whole routing setup and checking done successfully NOTE In the same way we can create multiple components and add them in to App js page SOURCE CODE For the source code you can check my git hub link here CONCLUSION I hope you people understand how to setup protected routes in ReactJS by using React Router Dom having version and above We will meet next time with another post Peace 2023-08-14 17:41:27
海外TECH DEV Community Build your own custom AI CLI tools https://dev.to/wesen/build-your-own-custom-ai-cli-tools-195 Build your own custom AI CLI toolsOriginally posted on scapegoat devI am notoriously distracted and both my long and short term memories are less reliable than a hobbyist s kubernetes cluster After years of python I still can t remember what the arguments to split are Thankfully these days are now over as I can ask a just as clueless LLM to answer the myriad of questions I would otherwise have to google everyday please don t use google use kagi you ll thank me later Being part of a secret society of robo scientists I have been building some visionary software over the last couple of months drawing inspiration from many sources because writing software is about being in touch with the universe More prosaically I have been writing some LLM powered command line tools as many people have before me and many people will after my bones are dust and my ideas forgotten All the tools I present in this blog post have been written in a single day because that s the world we now live in Some preliminary examplesHere is a little taste of the things that are possible with these tools All of these examples were built in a couple of hours altogether By the end of the article you will be able to build them too with no code involved You might see a a mix of pinocchio commands and llmX commands The llmX commands are just aliases to pinocchio prompts code X the llmX are aliases to use the gpt turbo model pinocchio prompts code X openai engine gpt turbo Reversing a string in goLet s start with a simple interview question reverse a string in go Getting some ffmpeg helpToo lazy for manpages Extremely reliable LLM to the rescue Getting some vim helpSome more reliable trusted help Creating a script to help us convert these goddamn videosRecording these little screencast videos is tedious let s get some help Explaining a terraform fileWhat the heck did I do months ago Writing a bandcamp search clientToo lazy to read API docs Just paste a curl request in there Documentation is for chumps Code review that genius codeI m sure this won t miss a single thing It sure is more annoying than my colleague Janine Give the intern some adviceBut don t be so blunt Create some slides for the weekly reviewTufte said slides shouldn t have bullet points We disagree Installing pinocchioIn order for you dear reader to follow along on this adventure you first need to install pinocchio Nothing could be easier as we provide binaries for linux and mac x and arm as well as RPM and deb packages All the GO GO GADGETS are also published on homebrew and as docker images if that s your jam After configuring your OpenAI API key you should be all set to go For more precise instructions check out the installation guide Geppetto LLM frameworkOver the last couple of months like every other developer out there I have been working on a LLM framework that will make it trivial to build AMAZING CRAZY STUFF The core architecture of this very advanced framework boils down to take input valuesinterpolate them into a big string using the go templating enginesending the string over HTTPprint out the response This is why they call me senior engineer The framework s claim to fame besides having a cool name geppetto is a client for GPT and pinocchio the puppet borne of geppetto s woodworking is the CLI tool used to run applications built with the framework Of course LLMs being what they are pinocchio often lies Declarative commandsJokes aside general consensus amongst the GO GO GOLEMS has it that geppetto and pinocchio are pretty cool They are both based on the glazed framework more precisely based on the Command abstraction This groundbreaking abstraction of a general purpose command consists of a set of input flags and parameters which can be grouped into layers because having flags tends to get overwhelming each having a type a default value and a descriptiona Run function that executes the commandsome kind of output either structured tabular data which is what glazed is built for or just a sequence of bytes in our case Most of the actual engineering in glazed focuses on making it easy to define flags declaratively usually as YAML parsing flags at runtime usually using the cobra framework running the actual Command by calling Runprocessing the tabular output in a myriad of ways none of which matter todayAfter handling r n and n converting between strings and integers is the second hardest engineering problem known to man This is why this framework is senior principal staff engineer grade For example the flags for the go command shown in the first video look like this flags name additional system type string help Additional system prompt default name additional type string help Additional prompt default name write code type bool help Write code instead of answering questions default false name context type stringFromFiles help Additional context from files name concise type bool help Give concise answers default false name use bullets type bool help Use bullet points in the answer default false name use keywords type bool help Use keywords in the answer default falsearguments name query type stringList help Question to answer required trueglazed provides a variety of standard types strings list of strings objects strings from files booleans integers you name it These declarative flags as well as layers added by the application all get wired up as CLI flags Because this is user first development the output is colored If we were to use something like parka these flags would be exposed as REST APIs HTML forms and file download URLs For example sqleton can be run as a webserver for easy querying of a database flags name today type bool help Select only today s orders default true name from type date help From date name to type date help To date name status type stringList help Batch status name limit help Limit the number of results type int default name offset type int help Offset default name order by type string default id DESC help Order byBut that is a story for another time GeppettoCommand look ma no codeNow that we know how to define a command s input parameters let s get to what a geppetto command is actually made of A geppetto command uses its input parameters to interpolate a set of messages system prompt user messages assistant messages fills out the parameters for a request to OpenAI s completion APIfires off a HTTP request streams the output back to the standard output Geppetto supports specifying functions too but I ve never used them because I try to use boring technology not the latest fancy shiny new thing None of this requires massive amounts of clever computation which is why we can also fit all of this into the same YAML file For example the go command from before looks like this name goshort Answer questions about the go programming languagefactories openai client timeout completion engine gpt temperature max response tokens stream trueflags snip snip system prompt You are an expert golang programmer You give concise answers for expert users You give concise answers for expert users You write unit tests fuzzing and CLI tools with cobra errgroup and bubbletea You pass context Context around for cancellation You use modern golang idioms prompt if write code Write go code the following task Output only the code but write a lot of comments as part of the script else Answer the following question about go Use code examples Give a concise answer end query join additional if context context end if concise Give a concise answer answer in a single sentence if possible skip unnecessary explanations end if use bullets Use bullet points in the answer end if use keywords Use keywords in the answer end You can see here how we we first specify the OpenAI API parameters we are using the gpt model per default try using gpt turbo for programming I dare you with a reasonably low temperature Of course all these settings can be overridden from the command line After the omitted flags definition from before we get to the special sauce a system prompt template telling the LLM exactly who it is or giving it a special SYS token followed by some offputtingly prescriptive tokens with the hope that all this conjuring will cause future tokens to be tokens that are USEFUL TO ME a message prompt template that will be passed as a user message to the LLM again with the hope that this little preamble will cause the model to generate something at least remotely useful I think of it as having a fortune reader draw some language shaped cards that tell me what code to write nextWhile what pinocchio does borders on magic as all things having to do with LLMs it is not too complicated to follow it interpolates the templatesit collects the system prompt and the prompt as messagesit sends off those messages to the openAI APIit outputs the streaming responses if streaming is enabled YAML is niceThe nice part the really nice part about being able to create rich command line applications using glazed and geppetto is that you can now experiment with prompt engineering by using command line flags instead of having to write custom test runners and data tables This simple example driven template is usually enough to reproduce most papers from and as shown by various datasets used in the Chain Of Thought paper name example drivenshort Show a chain of thought exampleflags name question type string help The question to ask required true name problem type string help The problem to solve required false name instructions type string help Additional instructions to follow required false name examples type objectListFromFile required trueprompt if problem Problem problem end range i example examples Q example question A example answer end if instructions Instructions instructions end Q question A And of course it is entirely possible to generate GeppettoCommands using GeppettoCommands as shown by this example which can be used to generate SqletonCommands the same concept but for SQL Using a GeppettoCommand that generates GeppettoCommands to generate itself risks immanentizing the eschaton and bringing singularity into being so use these new found powers with caution name quineshort Generate yourself flags name example goal short Example goal type string default Generate a program to generate itself name instructions type string help Additional language specific instructions required false name example type stringFromFile help Example program required true name goal type string help The goal to be generated default Generate a program to generate itself prompt Write a program by generating a YAML describing a command line application with flags and a prompt template using go template expansion The flags are used to interpolate the prompt template Here is an example GOAL example goal START PROGRAM example indent END Generate a program to goal if instructions instructions end GOAL goal START PROGRAM SQLETON excursion generating SQL queries using generated SQL queriesLet s imagine that we want to generate SqletonCommands using the schema from a table in the database but we are so lazy that we don t want to copy that schema Wouldn t it be nice if we had a SqletonCommand to introspect a schema pinocchio examples code sqleton topic Create a command to output the schema of a table in mysql It should take flags tables tables like columns columns like type Output the table name as column as well To which the LLM responds Here is an example of a command that outputs the schema of a table in MySQL using the provided YAML template name schemashort Output the schema of a table in MySQL flags name tables type stringList help List of table names name tables like type stringList help List of table name patterns to match name columns type stringList help List of column names name columns like type stringList help List of column name patterns to match name type type string help Column data typequery SELECT TABLE NAME AS table name COLUMN NAME AS column name COLUMN TYPE AS column type IS NULLABLE AS is nullable COLUMN KEY AS column key COLUMN DEFAULT AS column default EXTRA AS extra FROM INFORMATION SCHEMA COLUMNS WHERE if tables AND TABLE NAME IN tables sqlStringIn end if tables like AND range index table tables like TABLE NAME LIKE table if not last index tables like OR end end end if columns AND COLUMN NAME IN columns sqlStringIn end if columns like AND range index column columns like COLUMN NAME LIKE column if not last index columns like OR end end end if type AND COLUMN TYPE type end ORDER BY table nameIn this example the tables flag accepts a list of table names the tables like flag accepts a list of table name patterns to match using the LIKE operator the columns flag accepts a list of column names the columns like flag accepts a list of column name patterns to match using the LIKE operator and the type flag accepts a column data type The query uses the INFORMATION SCHEMA COLUMNS table to retrieve the schema information The WHERE clause is dynamically generated based on the provided flags The ORDER BY clause orders the results by the table name Note that the sqlStringIn function is used to generate the IN clause for string values and the last function is used to determine if it is the last element in a list during iteration Storing that command as mysql schema we can now easily introspect various tables leveraging all the affordances provided by glazed ❯sqleton mysql schema tables giftcards table name column name column type is nullable column key column default extra giftcards active tinyint NO MUL giftcards amount decimal NO giftcards balance decimal NO giftcards code varchar NO lt nil gt giftcards created at datetime YES MUL lt nil gt giftcards expired int YES MUL lt nil gt giftcards expires at datetime YES MUL lt nil gt giftcards free shipping tinyint NO MUL giftcards id int unsigned NO PRI giftcards note mediumtext YES lt nil gt giftcards open amount decimal NO giftcards order date date YES MUL lt nil gt giftcards order id bigint unsigned YES MUL giftcards order number longtext YES MUL lt nil gt giftcards redeemed decimal NO giftcards TYPE varchar NO MUL Or slightly smaller ❯sqleton mysql schema tables giftcards columns like order output yaml filter extra column default table name giftcards column name order date column type date is nullable YES column key MUL table name giftcards column name order id column type bigint unsigned is nullable YES column key MUL table name giftcards column name order number column type longtext is nullable YES column key MULWe can easily use our new mysql schema command to create new SqletonCommands say one to query our giftcards table ❯sqleton mysql schema tables giftcards fields column name column type is nullable output yaml pinocchio examples code sqleton ddl topic Giftcards from an ecommerce database used as giftcards but also warranty and courtesy refunds instructions Don t create flags for individual amounts Create a codes like flag To which the LLM responds Here is the updated YAML template for querying the giftcards table name giftcardsshort Get giftcards from the database flags name id type intList help List of giftcard ids name code type stringList help List of giftcard codes name active type bool help Giftcard active status name expired type bool help Giftcard expired status name expires at type date help Giftcard expiration date name order id type int help Order ID associated with the giftcard name order number type string help Order number associated with the giftcard name redeemed type float help Giftcard redeemed amount name type type string help Giftcard type name codes like type stringList help List of giftcard codes to filter by using LIKE queries name limit type int help Limit the number of results default name offset type int help Offset default name order by type string default created at DESC help Order byquery if explain EXPLAIN end SELECT id code active expired expires at order id order number redeemed type FROM giftcards WHERE if id AND id IN id sqlIntIn end if code AND code IN code sqlStringIn end if active AND active active end if expired AND expired expired end if expires at AND expires at expires at sqlDate end if order id AND order id order id end if order number AND order number order number end if redeemed AND redeemed redeemed end if type AND type type end if codes like AND range index code codes like code LIKE code if not last index codes like OR end end end ORDER BY order by if limit LIMIT limit if offset OFFSET offset end end In this template I have added flags for the different columns in the giftcards table and modified the WHERE clause to include the new flags I have also added support for the codes like flag which takes a list of giftcard codes and generates a filter statement with multiple LIKE queries joined by OR The order by flag is used instead of sort by to specify the order of the results We can now of course run this command and benefit from all the cool glazed bells and whistles ❯sqleton run command tmp giftcards yaml limit id code active expired expires at order id order number redeemed type WRHL KSKD SZZ lt nil gt lt nil gt coupon NHDC YF VP lt nil gt lt nil gt coupon DAB XZ KAV XXWF lt nil gt lt nil gt warranty WFFT BXEU WGT E lt nil gt lt nil gt warranty VCCC FEBP KP UP lt nil gt lt nil gt coupon Storing and sharing commandsOnce you get ahold of such powerful AI programs W W Wcrude word templates you can stash them in what is called a repository A repository is a directory containing YAML files plans exist to have repositories backed by a database but that technology is not within our reach yet The directory structure is mirrored as verb structure in the CLI app or URL path when deploying as an API and the individual YAML represent actual commands These repositories can be configured in the config file as well as described in the README You can also create aliases using the create alias NAME flag The resulting YAML has to be stored under the same verb path as the original command So an alias for prompts code php will have to be stored under prompts code php in one of your repositories Let s say that we want to get a rundown of possible unit tests ❯pinocchio prompts code professional use bullets Suggest unit tests for the following code Don t write any test code but be exhaustive and consider all possible edge cases create alias suggest unit testsname suggest unit testsaliasFor professionalflags use bullets true arguments Suggest unit tests for the following code Don t write any test code but be exhaustive and consider all possible edge cases By storing the result as suggest unit test yaml in prompts code professional we can now easily suggest unit tests ❯pinocchio prompts code professional suggest unit tests context tmp reverse go concise Test with an empty string to ensure the function handles it correctly Test with a single character string to check if the function returns the same character Test with a two character string to verify the characters are swapped correctly Test with a multi character string to ensure the string is reversed correctly Test with a string that contains special characters and numbers to ensure they are reversed correctly Test with a string that contains Unicode characters to verify the function handles them correctly Test with a string that contains spaces to ensure they are preserved in the reversed string Test with a string that contains repeated characters to ensure the order is reversed correctly Test with a very long string to check the function s performance and correctness Of course all these commands can themselves be aliased to shorter commands using standard shell aliases for i in aws bash emacs go php python rust typescript sql unix professional do alias llm i pinocchio prompts code i alias llm i pinocchio openai engine gpt turbo prompts code i done What does this all mean An earth shattering consequence of this heavenly design is that you can add repositories for various GO GO GADGETS such as sqleton escuse me geppetto or oak to your projects codebases point to them in your config file and BAM you now have a rich set of CLI tools that is automatically shared across your team and kept in source control right along the rest of your code This is especially useful in order to encode custom refactoring or other rote operations say scaffolding the nth API glue to import data into your system Whereas you would have to spend the effort to build a proper AST AST transformer output template you can now write refactoring tools with basically the same effort as writing well actually wouldn t it be nice if… on slack Remember the words that once echoed through these desolate halls WHEN LIFE GIVES YOU STYLE GUIDES DON T NITPICK IN CODE REVIEWS MAKE EXECUTABLE STYLE GUIDES DEMAND TO SEE TECHNOLOGY S MANAGER MAKE IT RUE THE DAY WHERE IT GAVE US EXECUTABLE SPEECH DO YOU KNOW WHO WE ARE WE ARE THE GO GO GOLEMS THAT ARE GOING TO BURN YOUR CODEBASE DOWN This can look as follows to convert existing classes to property promotion constructors in PHP name php property promotionshort Generate a class with constructor property promotionfactories openai client timeout completion engine gpt temperature max response tokens stop End Output stream trueflags name instructions type string help Additional language specific instructions name readonly type bool default true help Make the class readonlyarguments name input file type stringFromFile help Input file containing the attribute definitions required trueprompt Write a if readonly readonly end PHP class with constructor property promotion for the following fields if instructions instructions end For example Input public int productId Internal product ID for reference public string itemId The ID of the item End Input Output public function construct Internal product ID for reference public int productId null The ID of the item public string itemId null End Output Now create a constructor for the following fields Input input file End Input OutputThis I think is the most exciting aspect of LLMs They make it possible to build ad hoc tooling that is able even if stochastically hitting or missing to do rote but complex ill defined time consuming work that is very specific to the problem and situation at hand I have been using tools like the above to cut through unknown codebases add unit tests clean up READMEs write CLI tools generate reports and much more The ones I built today are quite useful and make for cool demos but the real value comes lies in being able to do very fuzzy ad hoc work that needs to be repeated at scale Where do we go from here I hope to make it easier to share and package these custom prompts and slowly start advertising GO GO GOLEMS and its ecosystem more in order to get community contributions A second project that is underway is building agent tooling Single prompt applications are useful but often suffer from limited context sizes and lack of iteration I have been working on a step abstraction that should make it possible to run complex agent workflows supporting iteration error handling user interaction caching A third project underway is a prompt context manager to make it easy to augment the LLM applications with additional information coming either from external documents live queries against a codebase external APIs saved snippets and summaries from past conversations etc…Finally I have a currently closed source framework that makes it possible to deploy any glazed command i e a single YAML file as a web API a lambda function or a WASM plugin I hope to be able to port this part to opensource as it makes the tools exponentially more useful 2023-08-14 17:31:11
海外TECH DEV Community FLaNK Stack Weekly for 14 Aug 2023 https://dev.to/tspannhw/flank-stack-weekly-for-14-aug-2023-boa FLaNK Stack Weekly for Aug August FLiPN FLaNK Stack WeeklyTim Spann PaaSDev tspannhw tspann subscribeA lot is going on and it s starting the fast rush towards Fall when there are Flink Kafka Apache and other conferences through out North America Get your new Apache NiFi for Dummies CODE COMMUNITYPlease join my meetup group NJ NYC Philly Virtual This is Issue ReleasesEFM CEM MiNiFi C Agent CEM MiNiFi Java Agent Docs utm medium email Videos t s amp ab channel DataScienceFestival t s amp ab channel DatainMotion ab channel DatainMotion Articles tspann using apache nifi to backup and restore minifi flows from cloudera efm fbebd tspann no code sentiment analysis with hugging face and apache nifi for article summaries cfddf tspann hbase to hbase via apache nifi dddeab cem using script to integrate custom code samuel vanackere linked data event streams explained in minutes ecdbb Free StuffFor anyone who needs to upgrade Java or escape from potential liabilities this is the guide It s also provides some helpful insights for any Java developer or anyone developing on top of current or future JVMs Throw Back Articles nifi notes building an effective nifi flow replacetext adc EventsAugust NYC AI September Current Event San Jose California October Halifax CA Community over Code October Streaming Track Room Oct SG SGOctober Internet of Things Track Room Oct IOTOctober Hours to Data Innovation Data FlowNovember Evolve NYC registerNovember Flink Forward Seattle November Big Data Conference HybridCloudera EventsMore Events Code Tools installation Tim Spann 2023-08-14 17:25:45
海外TECH DEV Community How to pass parameters from child commponent to parent component in React? https://dev.to/saurav181229/how-to-pass-parameters-from-child-commponent-to-parent-component-in-react-9im How to pass parameters from child commponent to parent component in React Lets say we have a parent component Appimport React from react import useState useEffect from react import Search from Search const App gt const SearchData SetSearchData useState Enter text const ReceiveText txt gt console log txt SetSearchData txt return lt div gt lt Search HandleSearch ReceiveText gt lt h gt SearchData lt h gt lt div gt export default App and we have a child component Searchconst Search HandleSearch gt return lt div classs search gt lt label gt Search lt label gt lt input placeholder Search for movies onChange e gt HandleSearch e target value gt lt br gt lt br gt lt button gt Search lt button gt lt div gt export default Search App js is a simple react component which has a child component Search js In app js I have created a method which take an arguement text and print the text that we will be passing from child also I have declared a usestate hook searchdata which would have initial text enter text and also we will be setting the state based on the input from child In search js file we are grabbing the method that is passed from App js Also it has a simple input tag from where we can input our text it has an event handler onchange inside which iam calling handlesearch method which would get the text that we are entering from the input element and this text will be passed on to the handlesearch method of the parent component App js As a result Searchdata would be updated which is in the App js And that is how you can pass property from child to parent Thank you 2023-08-14 17:15:43
海外TECH DEV Community 5 Extensões do VSCode para facilitar sua vida https://dev.to/noriuki/5-extensoes-do-vscode-para-facilitar-sua-vida-3mim Extensões do VSCode para facilitar sua vidaNeste post vou apresentar a vocês cinco extensões fantásticas do VSCode que podem aumentar significativamente sua produtividade Code Spell CheckerO Code Spell Checker éum salva vidas para pegar aqueles erros de ortografia sorrateiros do seu código Com um dicionário embutido e listas de palavras personalizáveis ele garante que seu código não seja apenas funcional mas também que esteja escrito corretamente O Code Spell Checker vem com o dicionário para inglês porém épossível instalar para outras línguas como Português Espanhol etc Tabnine AIDiga adeus àdigitação interminável e oláàmágica do preenchimento de código Esta extensão de preenchimento automático conta com uma inteligência artificial que aprende seus padrões de codificação e contexto oferecendo sugestões de códigos que economizam tempo e reduzem erros Color HighlightTrabalhando com CSS SASS ou qualquer outra linguagem de folha de estilo O Color Highlight vem para ajudar exibindo visualmente as cores diretamente no seu editor de código Esta extensão torna incrivelmente conveniente identificar e ajustar a paleta de cores no seu projeto Indent RainbowA indentação do código pode parecer um assunto trivial mas écrucial para manter a legibilidade O Indent Rainbow serve como um auxilio visual adicionando um toque de cor aos níveis de indentação do seu código Facilitando a identificação de aninhamentos e a compreensão da estrutura do seu código Auto Rename TagSe vocêestátrabalhando linguagens baseadas em tags vai apreciar a conveniência do Auto Rename Tag Esta extensão atualiza automaticamente a tag de fechamento correspondente sempre que vocêrenomeia uma tag de abertura poupando o do incômodo de ajustes manuais de tags e garantindo que seu código permaneça livre de erros O VSCode tem a configuração linkedEditing porém atualmente não étão funcional quanto a extensão citada ConclusãoEssas cinco extensões do VSCode podem levar a um aumento significativo na produtividade e na qualidade do código Vocêconhece alguma extensão que facilita o seu fluxo de trabalho e não foi mencionada na lista Compartilhe nos comentários abaixo 2023-08-14 17:06:44
海外TECH Engadget Netflix starts testing game streaming on select devices, smart TVs and desktop browsers https://www.engadget.com/netflix-starts-testing-game-streaming-on-select-devices-smart-tvs-and-desktop-browsers-175241762.html?src=rss Netflix starts testing game streaming on select devices smart TVs and desktop browsersNetflix is officially bringing its games to more devices So far the company s impressive library of games has only been available on iOS and Android Now though Netflix is starting to use its streaming tech to publicly test its titles on TVs and computers quot Our goal has always been to have a game for everyone and we are working hard to meet members where they are with an accessible smooth and ubiquitous service quot Mike Verdu Netflix s vice president of games wrote in a blog post quot Today we re taking the first step in making games playable on every device where our members enjoy Netflix quot The test appears to be very limited for now Just two games will be available at the outset Oxenfree Netflix just released the sequel as its first game from an in house studio and gem mining arcade title Molehew s Mining Adventure The beta is only open to a small number of Netflix subscribers in the UK and Canada on Amazon Fire TV streaming media players Chromecast with Google TV LG TVs NVIDIA Shield TV Roku devices and TVs Samsung smart TVs and Walmart ONN The company will add support for more devices later To play Netflix games on a TV you can use a controller app that the company just released When you select a game your TV will display a QR code Scan this with your phone to use it as your controller The games will also be available to try on Netflix s website via supported desktop browsers in the next few weeks You ll be able to use your keyboard and mouse to control them on PCs and Macs Netflix says the goal of the test is to put its game streaming tech and controller app through their paces Given the complex nature of rights agreements with various publishers it s not yet clear whether Netflix will bring all of the games in its library to TVs and web browsers For instance you ll need a Netflix subscription to play Kentucky Route Zero Teenage Mutant Ninja Turtles Shredder s Revenge nbsp or Immortality natively on your phone but those games are all available on other platforms In any case there s a big new player coming to the cloud gaming space This article originally appeared on Engadget at 2023-08-14 17:52:41
海外TECH Engadget The best budget gaming laptops for 2023 https://www.engadget.com/best-budget-gaming-laptop-130004199.html?src=rss The best budget gaming laptops for Not everyone needs an NVIDIA RTX or a blazing fast Hz screen These days you can find plenty of affordable gaming notebooks that can easily hit decent frame rates in modern games Cheaper machines are ideal for high school or college students who don t need the absolute best performance And they re also great options for younger gamers who may not be ready for the responsibility of a premium notebook What is a budget gaming laptop To get a high end gaming experience you can easily spend on a fully tricked out notebook like the Razer Blade But when it comes to the best budget gaming laptops we re focusing on the other end of the pricing spectrum laptops under It used to be tough to find a decent gaming option at that price point but as PC prices have fallen they no longer seem like unicorns Stepping up a bit to systems between and puts you firmly in mid range territory which is beyond the scope of this guide Still it s worth keeping an eye out for sales that can push those PCs below Be sure to check out our guide to the best gaming laptops for a general overview of what to look out for in these more expensive systems Are budget gaming laptops worth it Cheap gaming laptops are definitely worth it if you re trying to save money and are being realistic about what you can get at this price range You can expect to find Intel and AMD s latest but not greatest CPUs as well as entry level GPUs like NVIDIA s RTX Budget models are also typically paired with p screens running at Hz or beyond There are some exceptions though Dell s G currently discounted to is notable for its inch quad HD screen Many cheap gaming laptops also skimp on specs like RAM and storage We d recommend getting at least GB of RAM and a GB SSD Modern games need a decent chunk of memory to run and they also tend to be large so you wouldn t be able to fit much alongside Windows on a B SSD You might be tempted to jump on one of those dirt cheap gaming laptop deals from Walmart or Best Buy but it s just not worth it if you re stuck with GB of RAM or a tiny SSD As for build quality expect to find more plastic than metal on budget systems Still the best cheap gaming laptops we re recommending should be sturdy enough to last a few years Affordable systems will also be heavier and thicker than mid range and premium models and they typically don t have great battery life These are worthwhile trade offs if you re looking to save money though and even the priciest gaming laptops struggle with battery life Best overall Dell GDell was one of the first PC makers to combine a decent amount of gaming power in a sub system The latest G builds on that experience It starts at with Intel s th gen i HX an RTX GPU and GB of RAM We d recommend bumping up to the model with GB of RAM a GB SSD and a Hz p screen with NVIDIA s G SYNC technology While it s no Alienware the G carries over some of that premium brand s design cues with a sharp angular case and LED backlit keys There s a distinct lack of gamer bling which for some may also be a plus If you re looking for something larger consider the inch screen version mentioned above which funny enough is also slightly lighter than the G Runner up Acer Nitro The Acer Nitro is another great option though we ve yet to see it get Intel s th gen chips Still the th gen model is no slouch It s equipped with GB of RAM NVIDIA s RTX and GB of storage At the time of writing it s also on sale for at Best Buy though it typically sells for Just like Dell Acer has plenty of experience building gaming laptops so this will likely survive years of extreme play The Nitro s multi colored backlit keyboard and rear red accents also give off a stronger gamer vibe than the G Side note Acer s Nitro may also be worth considering if it dips below since it features newer CPUs and GPUs A more understated option HP Victus The HP Victus is the ideal gaming laptop for someone who doesn t want to be seen with a gaming laptop Its all black design is wonderfully understated and its edge to edge screen is impressive for such an affordable system It also has enough power to handle today s games including an AMD Ryzen CPU NVIDIA s RTX Ti graphics GB of RAM and a Hz p display And best of all it s almost always on sale somewhere In fact at the time of writing it s on Amazon This article originally appeared on Engadget at 2023-08-14 17:15:32
海外TECH Engadget Assassin’s Creed Mirage will arrive one week early on October 5th https://www.engadget.com/assassins-creed-mirage-will-arrive-one-week-early-on-october-5th-170039341.html?src=rss Assassin s Creed Mirage will arrive one week early on October thUbisoft is shaking up a busy calendar of big fall game releases by bringing forward one of several games it has on the docket Assassin s Creed Mirage will now arrive on October th one week earlier than previously expected The move gives the game a bit more distance from another major open world action adventure game in Marvel s Spider Man which is set to hit PS on October th However Assassin s Creed Mirage will now be going up against Detective Pikachu Returns which will debut on Switch on October th Assassin s Creed Mirage has gone gold and is coming out a week early On behalf of the entire team we can t wait for you to explore th Century Baghdad with Basim Your journey now starts on October Save the new date AssassinsCreedpic twitter com eWAZttvjIXーAssassin s Creed assassinscreed August Ubisoft is taking Assassin s Creed back to its roots with Mirage It has a smaller scope than recent entries the last of which Assassin s Creed Valhalla can take around hours to beat ーfully completing that game typically takes well over hours Ubisoft s internal playtests indicate that Mirage takes around hours to beat and roughly hours to fully complete Mirage is set two decades before Valhalla and it takes place primarily in ninth century Baghdad There will be a bigger focus on stealth and parkour than in recent Assassin s Creed games while main character Basim Ibn Ishaq can slow down time to help you plan assassinations Additionally Mirage will have a full Arabic language dub and subtitles which could help the game feel more immersive Ubisoft has a busy few months ahead Along with Mirage The Crew Motorfest will arrive on September th while Avatar Frontiers of Pandora is dated for December th XDefiant Assassin s Creed Nexus VR and mobile title Tom Clancy s The Division Resurgence are all slated to arrive by the end of the year too Skull and Bones still exists somewhere This article originally appeared on Engadget at 2023-08-14 17:00:39
ニュース BBC News - Home PSNI data breach: Details of NI police in hands of dissident republicans https://www.bbc.co.uk/news/uk-northern-ireland-66479818?at_medium=RSS&at_campaign=KARANGA officers 2023-08-14 17:35:40
ニュース BBC News - Home Woking murder inquiry: Girl, 10, found dead in house named locally https://www.bbc.co.uk/news/uk-england-surrey-66503514?at_medium=RSS&at_campaign=KARANGA surrey 2023-08-14 17:37:20
ニュース BBC News - Home Clapham stabbing: Two men injured in homophobic attack https://www.bbc.co.uk/news/uk-england-london-66500712?at_medium=RSS&at_campaign=KARANGA london 2023-08-14 17:28:17
ニュース BBC News - Home Gay couple win damages from Italy's ruling party over ad https://www.bbc.co.uk/news/world-europe-66502936?at_medium=RSS&at_campaign=KARANGA campaign 2023-08-14 17:51:14
ニュース BBC News - Home Moises Caicedo transfer news: Chelsea sign Brighton midfielder for £100m https://www.bbc.co.uk/sport/football/66504891?at_medium=RSS&at_campaign=KARANGA british 2023-08-14 17:51:15
ニュース BBC News - Home Moises Caicedo: Why Chelsea are spending up to British record £115m on Brighton midfielder https://www.bbc.co.uk/sport/football/66028998?at_medium=RSS&at_campaign=KARANGA Moises Caicedo Why Chelsea are spending up to British record £m on Brighton midfielderBBC Sport looks at what has prompted Chelsea to pay such a vast fee for the year old and where he will fit in to Mauricio Pochettino s side this season 2023-08-14 17:46:04
ニュース BBC News - Home The Hundred 2023: Welsh Fire's Tammy Beaumont hits first century in women's competition https://www.bbc.co.uk/sport/cricket/66503534?at_medium=RSS&at_campaign=KARANGA The Hundred Welsh Fire x s Tammy Beaumont hits first century in women x s competitionTammy Beaumont becomes the first women s batter to hit a century in The Hundred with a spectacular for Welsh Fire against Trent Rockets 2023-08-14 17:44:02

コメント

このブログの人気の投稿

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