投稿時間:2021-10-29 03:37:59 RSSフィード2021-10-29 03:00 分まとめ(41件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
js JavaScriptタグが付けられた新着投稿 - Qiita WebAssemblyを使ってJavaScriptからC++を動かしてみよう! https://qiita.com/Shio_3001/items/56938511a0cdfccd8e80 WebAssemblyを使ってJavaScriptからCを動かしてみようみなさんこんにちは、こんばんは今回はWebAssemblyを使ってJavaScriptからCを動かしてみますなおこの記事を書いた人はただの高校生です最近はライブラリに頼らず自力で図形描画してたりします初投稿記事です認識が間違ってるよ、とかあればコメント欄で連絡してくれるとありがたいです。 2021-10-29 02:27:26
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) spleeterで音源分離をしたがどこに保存されたかわからない https://teratail.com/questions/366736?rss=all spleeterで音源分離をしたがどこに保存されたかわからない前提・実現したいことreplyこちらのエラーは解決し、エラーは起こらなくなったのですがその後の保存先がわかりません。 2021-10-29 02:56:49
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) C言語のファイル操作がよくわからないです https://teratail.com/questions/366735?rss=all 2021-10-29 02:17:29
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) Vector3.SignedAngleでX軸の角度を取る方法 https://teratail.com/questions/366734?rss=all 2021-10-29 02:15:33
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 正規表現について教えてください https://teratail.com/questions/366733?rss=all gtwindowonloadfunctiona 2021-10-29 02:07:21
海外TECH Ars Technica Mario Party Superstars is the “Greatest Hits album” the series deserves https://arstechnica.com/?p=1808438 chaotic 2021-10-28 17:15:53
海外TECH MakeUseOf How to Use the YouTube Studio App to Check Your Earnings and Analytics https://www.makeuseof.com/how-to-check-youtube-analytics/ youtube 2021-10-28 17:45:22
海外TECH MakeUseOf Should You Enable Windows 10's Ultimate Performance Power Plan? https://www.makeuseof.com/should-you-enable-ultimate-performance-power-plan-windows-10/ power 2021-10-28 17:30:12
海外TECH MakeUseOf How to Enable the Ultimate Performance Power Plan in Windows 10 https://www.makeuseof.com/how-to-enable-ultimate-performance-power-plan/ windows 2021-10-28 17:15:22
海外TECH DEV Community DevNews Season 6 is Here! https://dev.to/devteam/devnews-season-6-is-here-3l7d DevNews Season is Here We re back with an all new season of DevNews ーand we can t wait for you to hear it S E VS Code in the Browser Facebook Internal Documents and Corporate Open Source DevNews Your browser does not support the audio element x initializing × Hosts saronyitbarek amp joshpuetz Guests Brigit Murtaugh Microsoft Visual Studio Code team Program Manager IIJoão Moreno Principal Software Engineer on the Visual Studio Code team at MicrosoftIn this episode we talk about the explosive Facebook internal documents a merger between Ruby Central and Ruby Together and the short lived removal of NET s Hot Reload feature which had a lot of developers frustrated and confused by the decision Then we speak with Brigit Murtaugh Program Manager II at Microsoft and João Moreno Principal Software Engineer for VS Code about how they created a new lightweight version of VS Code that can run fully in the browser We hope you enjoy the season premiere of DevNews You can follow DevNews to get episode notifications and listen right in your feed ーor subscribe on your platform of choice Plus if you leave us a review we ll send you a free pack of thank you stickers Details here Quick Listening LinksApple PodcastsSpotifyGoogleStitcherListen NotesTuneInRSS FeedDEV Pods website Acknowledgements levisharpe for producing amp mixing the show We hope you enjoy this kickoff to a new season of DevNews 2021-10-28 17:56:48
海外TECH DEV Community Best Coding app for beginners https://dev.to/jcc/best-coding-app-for-beginners-ajm Best Coding app for beginnersProgramming skills open doors to dozens of lucrative tech careers And there s never been a better or easier time to learn Just like learning any other language coding requires regular practice to master But it s not always easy for people to find time to practice in front of a computer That s why coding apps are so helpful In this article we ll cover the best coding apps on iOS and Android for those who want to learn to code  Read More Best Coding App For Beginners 2021-10-28 17:56:36
海外TECH DEV Community 15 Must-Have Browser Extensions for Web Developers https://dev.to/jcc/15-must-have-browser-extensions-for-web-developers-504f Must Have Browser Extensions for Web DevelopersBrowsers are increasingly incorporating more extensions plugins and add ons which are often developed by their users making the browser more powerful and helping us increase our productivity Here at Awwwards our mission is to share with you the best resources and tools on the web so we re writing a series of blog articles on the best extensions and plugins for major browsers To kick off we re focusing on extensions that are offered in the Chrome Web Store available for free and easy to install Among the tools we ll highlight those that are most useful for web designers and developers We hope you find them useful and get you better results  Read More Must Have Browser Extensions for Web Developers 2021-10-28 17:56:07
海外TECH DEV Community Build a custom video chat app with Daily and Vue.js https://dev.to/trydaily/build-a-custom-video-chat-app-with-daily-and-vuejs-4952 Build a custom video chat app with Daily and Vue jsAt Daily we ve specifically built our video and audio APIs to be frontend framework agnostic This is to make sure developers can implement real time video calls ーa big feature in itself ーwith whichever JavaScript framework they prefer or no framework at all We ve spent a lot of time discussing React demos and sample code in our blog posts but React is not your only option for a framework Vue js for example is another great option that you can use with daily js Recently on the blog we looked at how to embed Daily Prebuilt in a Vue app Daily Prebuilt is our plug and play option for video calls which makes it the fastest and most convenient way to add video to your app In some cases however you may need more control over the video call designs or you might even be building something more custom like an audio only call app In cases like these using Daily s custom call object option gives you total control over the video and audio experience including the video call design and functionality In today s tutorial we ll look at building a custom video call app in Vue using Daily s call object Planning our app s featuresIn terms of functionality video call participants will be able to Join the call with video and audioControl their own video and microphones while in the call e g to mute themselves Share their screen on any browser that supports screen sharing We ll only let one person share at a time to keep things simple for nowSet their username for the call before joiningLeave the call whenever they wantBe notified when device permissions are blocked by the browser with instructions on how to permit device accessCommunicate via text chat in a custom chat box The details for this will be covered in a follow up post As is required for any app we also need to manage our feature scope In this case we won t worry about managing large calls in terms of performance optimization or the UI layout Those are big topics in themselves as demonstrated by this whole series on them Getting set up with DailyTo use this demo you will need a Daily room to join To get your own Daily room URL you ll need to create a Daily account Once you have an account and are logged into the Daily Dashboard you can create a new Daily room and copy its URL Note You can also create Daily rooms via the REST API Setting up your local dev environmentAs always we ve already built this app for you so ーif you like spoilers ーfeel free to clone and use the demo app via Github To run it locally enter the following commands in your terminal window yarnyarn startOpen the app at whichever port it s running which is likely http localhost More spoilers Looking at our component structureIt s often helpful to know the structure of what we re going to be building before diving in The App component is our entry point for our Vue app It will always render the AppHeader component and conditionally render either Call or Home depending on whether the user has joined a call Call is where daily js will be imported and where all the call s logic will be defined It is also the parent component for the rest of the components in the app Let s briefly define what each of these components does Loading This component contains an svg with a loading animation It shows when the user is joining a call i e in a loading state VideoTile This component is rendered for each participant in the call It will either render a lt video gt element or a NoVideoTile component depending on whether the participant has their video on An tag is rendered for each participant For local participants Controls is also a child component of the VideoTile That means everyone gets device controls for their own tile WaitingCard If you are alone in a call this component is rendered to let you know you are waiting for others to join ScreenshareTile When a screen share is started this component is added for the screen share track PermissionsErrorMsg If camera or microphone permissions are blocked locally this card is rendered instead of the call view so you know to update your browser permissions Chat This is where our chat messages will be sent and displayed Now let s see how these actually work Taking advantage of Vue s data objectOne thing you might notice looking at the code for this demo is that there s no state management library or dedicated backend instead we rely on Vue s data object to keep any information handy that needs to be referenced throughout the code base As you review each component in the rest of this tutorial be sure to look at each component s data method to see which values are being stored Okay get to the code alreadyNow that we know what we re building we can actually start coding it The App component Determining our in call stateThe main conditional we have in App is whether to show our home screen or the call UI The home screen is the default view when you visit the demo site It renders a form to join a specific Daily room The call UI is everything you see once you submit the form on the home screen to join a Daily room In App s template we represent this conditional by checking the value of appState a value on our data object lt template gt lt app header gt lt call v else if appState incall leaveCall leaveCall name name roomUrl roomUrl gt lt home v else joinCall joinCall gt lt template gt If appState equals incall we show our Call component otherwise we render our Home component Looking at the data object and methods in App the appState is initially set to idle on render When you join a call through the home screen s form appState gets set to incall Any time the call is left or refreshed appState gets reset to idle bringing the local user back to the home screen data return appState idle name Guest roomUrl null methods joinCall name url this name name this roomUrl url this appState incall leaveCall this appState idle joinCall gets called in Home and passes the two input values name and url as function parameters These are then set in App s data object and will get passed as props to Call to be used later by daily js That is really all that happens in App and Home so let s jump right to Call to understand how our video call functionality works Video call the radio star Letting participants join with video and audioWhen using Daily s call object like we are in this demo we need to manually add any elements we want present in our UI This is in contrast to Daily Prebuilt where it s all done for you That means we ll need to handle the following in our Call component Creating lt video gt and lt audio gt elements for any call participants who might have video or audio on In this demo that s everyone who joins If someone turns off their video we ll show a placeholder to avoid shifting the layout when video isn t available Creating a lt video gt element specifically for screen shares Adding a control panel for the local participant to toggle their camera and microphone share their screen or leave the call We ll also add some basic styling for group call layout management though we ll prioritize one on one calls to keep our CSS styles simpler to start The first step in the Call component is to initialize the call instance with daily js and to join the call so let s look at what happens when the Call component is mounted in the mounted lifecycle method data return callObject null participants null count messages error false loading false showPermissionsError false screen null mounted const option url this roomUrl Create instance of Daily call object const co daily createCallObject option Assign in data obj for future reference this callObject co Join the call with the name set in the Home vue form co join userName this name Add call and participant event handler Visit for more event info co on joining meeting this handleJoiningMeeting on joined meeting this updateParticpants on participant joined this updateParticpants on participant updated this updateParticpants on participant left this updateParticpants on error this handleError camera error device permissions issue on camera error this handleDeviceError app message handles receiving remote chat messages on app message this updateMessages Our three major tasks in the mounted method is to Initialize a new Daily call object using the Daily URL provided in the home screen formconst option url this roomUrl const co daily createCallObject option Join the Daily call using the username also provided in the home screen formco join userName this name Add our Daily event listeners to know when to update our call UI co on joining meeting this handleJoiningMeeting Daily events and their callbacksBefore moving on let s look at each of the callbacks attached to the Daily events mentioned above to understand how they impact our app s state The joining meeting eventjoining meeting gets called when the local participant is still joining the call This is like a loading state before being officially in the call co on joining meeting this handleJoiningMeeting handleJoiningMeeting this loading true In the handleJoiningMeeting callback we set loading in our data object to true so we know when to show our loading spinner in the UI The joined meeting participant joined participant updated participant left eventsIn this demo we keep an array of the current participants in our data object to iterate through in our UI That means we need to update our participant list whenever the participants have an event that will affect our list co on joined meeting this updateParticpants on participant joined this updateParticpants on participant updated this updateParticpants on participant left this updateParticpants All four of these events are handled by the same callback updateParticipants e Note In apps with large meetings you will likely need to set up separate methods for these events to avoid any unnecessary re renders updateParticpants e if this callObject return const p this callObject participants this count Object values p length this participants Object values p const screen this participants filter p gt p screenVideoTrack if screen length amp amp this screen this screen screen else if screen length amp amp this screen this screen null this loading false Here we get all the participants from the Daily call object with the participants method and convert it from an object to an array We also assign that array to our participants key in the data object for future reference If any participants have a screenVideoTrack it means they are screen sharing We then set the screen share in our data object to be accessed in our HTML Lastly we make sure we re not in a loading state which is technically only necessary the first time this method gets called The error eventThis is only called if the video call gets stuck in an unrecoverable state In an ideal world it would never get called but like all good programmers we cover every possibility co on error this handleError handleError e this error e errorMsg this loading false Here we set our error data object key to the error message provided by daily js and make sure we re not in a loading state The camera error eventFor daily js to access call participants devices like their camera and microphone it requires that call participants give it explicit browser permissions Without these permissions either at the start of a call or mid call the camera error event will get triggered co on camera error this handleDeviceError handleDeviceError this showPermissionsError true When a camera error i e device error happens we update the data object so that showPermissionError is true This will let us know when to tell our local participant to update their permission settings The app message eventco on app message this updateMessages app message gets called when a participant sends a message in the call via the sendAppMessage Daily instance method updateMessages e this messages push e data We ll discuss how chat works in more detail in a follow up post but for now it s important to know every chat message sent by a call participant is saved to the messages array in the data object That array can then be iterated over to display our full chat history in the chat box How our stored data impacts our rendered Call UIEach of these values we set in the data object are used to conditionally render different views in our call UI To start let s look our Call s template lt template gt lt main gt lt loading is true when the call is in the joining meeting meeting state gt lt template v if loading gt lt div class loading spinner gt lt loading gt lt div gt lt template gt lt template v else gt lt div class wrapper gt lt template v if error gt lt p class error text gt error lt p gt lt refreshing will leave the call and reset the app state gt lt button class error button click leaveAndCleanUp gt Refresh lt button gt lt template gt lt template v if showPermissionsError gt lt permissions error msg reset leaveAndCleanUp gt lt template gt lt template v else gt lt div class screen tile container tile container full height gt lt template v if screen gt lt screenshare tile participant screen gt lt template gt lt div class participants container v if participants gt lt template v for p in participants key p session id gt lt video tile participant p handleVideoClick handleVideoClick handleAudioClick handleAudioClick handleScreenshareClick handleScreenshareClick leaveCall leaveAndCleanUp disableScreenShare screen amp amp screen local gt lt template gt lt template v if count gt lt waiting card url roomUrl gt lt template gt lt div gt lt div gt lt template gt lt chat sendMessage sendMessage messages messages gt lt div gt lt template gt lt main gt lt template gt There are quite a few conditions here so let s break it down a bit When loading is true we show a loading spinner whereas when loading is false we show the call UI lt template v if loading gt lt div class loading spinner gt lt loading gt lt div gt lt template gt Next once we ve officially joined the call we conditionally show an error message and refresh button when error is truthy This is so the local participant can refresh the page if something goes wrong lt template v if error gt lt p class error text gt error lt p gt lt refreshing will leave the call and reset the app state gt lt button class error button click leaveAndCleanUp gt Refresh lt button gt lt template gt lt template v if error gt lt p class error text gt error lt p gt lt refreshing will leave the call and reset the app state gt lt button class error button click leaveAndCleanUp gt Refresh lt button gt lt template gt Next we want to show a message in our UI if the device permissions are blocked In some cases you may not want to prevent your users from seeing the video call just because their permissions are blocked but we do because we consider device permissions a requirement to use this app lt template v if showPermissionsError gt lt permissions error msg reset leaveAndCleanUp gt lt template gt Iterating over our participants arrayThe next block of elements in our template is where we render actual video tiles lt template v else gt lt div class screen tile container tile container full height gt lt template v if screen gt lt screenshare tile participant screen gt lt template gt lt div class participants container v if participants gt lt template v for p in participants key p session id gt lt video tile participant p handleVideoClick handleVideoClick handleAudioClick handleAudioClick handleScreenshareClick handleScreenshareClick leaveCall leaveAndCleanUp disableScreenShare screen amp amp screen local gt lt template gt lt template v if count gt lt waiting card url roomUrl gt lt template gt lt div gt lt div gt lt template gt The first section here renders a screen share tile anytime screen is truthy lt template v if screen gt lt screenshare tile participant screen gt lt template gt Next we render a VideoTile component for each participant in our participants array on the data object and pass any relevant information as a prop to be used in that component lt template v for p in participants key p session id gt lt video tile participant p handleVideoClick handleVideoClick handleAudioClick handleAudioClick handleScreenshareClick handleScreenshareClick leaveCall leaveAndCleanUp disableScreenShare screen amp amp screen local gt lt template gt Lastly we render an extra card if there s only one participant so they don t feel lonely while waiting lt template v if count gt lt waiting card url roomUrl gt lt template gt The very last component that gets rendered in our call UI is the Chat component which is included whenever you have officially joined the call It handles sending and displaying chat messages lt chat sendMessage sendMessage messages messages gt That was a lot to go through but we now officially have all our call UI included in our app Our next steps will be to take a closer look at VideoTile and ScreenshareTile to see how we turn the media tracks provided by daily js into actual video tiles in our app Call me a mason because we re about to lay some tilesOur VideoTile component is rendered for each participant and includes an lt audio gt element and a lt video gt element or NoVideoTile placeholder component For the local participant it also renders the Controls element When VideoTile mounts we do the following data return videoSource null audioSource null username Guest mounted this username this participant user name this handleVideo this participant this handleAudio this participant Set the username in our data object so we can display it in our tile UIHandle updating the video and audio elements with the tracks for this tile s participant methods handleVideo if this participant video return const videoTrack this participant tracks video persistentTrack const source new MediaStream videoTrack this videoSource source To get the participant s video playing in the component s lt video gt element we need to create a new MediaStreamby passing the participant s video persistentTrack and setting that as the lt video gt s srcObject For the participant s audio we do the same thing but with the participant s audio persistentTrack handleAudio if this participant local return if this participant tracks audio persistentTrack return const audioTrack this participant tracks audio persistentTrack const source new MediaStream audioTrack this audioSource source Once that is managed we can toggle our video and audio using the controls Adding a ScreenshareTileThe ScreenshareTile is almost identical to the regular VideoTile except it uses the screenVideoTrack instead of a persistentTrack handleVideo if this participant screen return const videoTrack this participant screenVideoTrack const source new MediaStream videoTrack this videoSource source We ve set up the ScreenshareTile to always show on top of the participants tiles but how you want to style it is completely up to you Wrapping upIf you re wondering about how Chat works we ll be sharing a follow up post soon that will do a deeper dive into how to quickly build the custom chat box included in this demo And remember this demo is just a jumping off point for all the custom UI you can build for video or audio only apps using Daily s call object mode It really can be as creative and custom as you d like If you want to expand on this app even more you could Add prejoin UI to test devices and see your local video before joiningAllow users to create rooms via the app UI using Daily s REST APIManage meeting permissions via room settings like making the call a broadcast call Time for a webinar anyone 2021-10-28 17:36:50
海外TECH DEV Community Lexus Announces Lexus Design Award 2022 Jury https://dev.to/maxampilov/lexus-announces-lexus-design-award-2022-jury-fh8 Lexus Announces Lexus Design Award JuryPaola Antonelli and Simon Humphries will be joined by Indian architect Anupamu Kundoo and Canadian designer Bruce Mau The main criteria for evaluating the work will be their compliance with three key principles of the Lexus brand to anticipate innovate and intrigue as well as the ability to create a better future through design After determining the composition of the finalists four well known designers will become their mentors and help create working prototypes of each project and in the spring of the judges will consider the work submitted by the finalists to determine the winner of the Grand Prix The Lexus Design Award held for the ninth time is a global platform to support and develop a new generation of creators Until October the site is open to accepting applications for the Russian stage of the Lexus Design Award Russia Top Choice Source 2021-10-28 17:19:43
海外TECH DEV Community Análisis de sentimientos en una aplicación web con ML.NET https://dev.to/esdanielgomez/analisis-de-sentimientos-en-una-aplicacion-web-con-mlnet-223n Análisis de sentimientos en una aplicación web con ML NET¡Hola Un gusto saludarte En este articulo tutorial aprenderemos paso a paso a generar un modelo de Machine Learning personalizado desde ML NET para el análisis de sentimientos en texto y luego aprender a consumir ese modelo desde una aplicación web sobre ASP NET con el patrón MVVM Modelo Vista VistaModelo ¿Quées ML NET y cómo funciona ML NET es una plataforma de Machine Learning open source que nos permite transformar datos de entrada en un modelo ML para luego poder integrarlo en cualquier tipo de aplicación sobre el ecosistema de NET ya sean aplicaciones web móviles de escritorio o cualquier otro tipo de aplicación Estos son los tipos de modelos que podemos generar en ML NET Tipo de modeloObjetivoClasificación CategorizaciónDividir automáticamente los comentarios de los clientes en categorías positivas y negativas Regresión Predicción de valores continuosPredecir el precio de las casas en función del tamaño y la ubicación Detección de anomalías Detectar transacciones bancarias fraudulentas RecomendacionesSugerir productos que los compradores en línea quieran comprar en función de sus compras anteriores Series temporales datos secuencialesPronosticar el clima ventas Clasificación de imágenesCategorizar patologías en imágenes médicas En nuestro caso nos enfocaremos en la clasificación categorización de comentarios de texto Análisis de sentimientos en textoPara el análisis de sentimientos la intención es poder clasificar entradas de texto en dos grupos comentarios positivos y comentarios negativos Para lograr este objetivo realizaremos tres actividades en este articulo Cumplir con los requisitos necesarios y preparar nuestra solución en Visual Studio Crear nuestro modelo de Machine Learning con ML NET Consumir el modelo generado desde ASP NET Con esto mencionado ¡comencemos Parte Requisitos previos y preparación de la solución en Visual StudioPara poder generar nuestro modelo de Machine Learning utilizaremos el intérprete Model Builder de ML NET Para esto es necesario que contemos con la siguiente carga de trabajo en Visual Studio Desarrollo multiplataforma de NET Con esta carga de trabajo ahora podemos crear nuestra solución En este caso la intención es consumir el modelo ML que vayamos a generar desde una aplicación web para este propósito utilizaremos el framework DotVVM que nos permite trabajar con páginas HTML y clases C sobre ASP NET con el patrón MVVM Modelo Vista VistaModelo Parte Construcción del modelo de Machine Learning¡Llegóel momento de ver a ML NET en acción Como en cualquier otro proceso en el mundo del Machine Learning para generar un modelo los pasos para construir el modelo de análisis sentimientos son los siguientes Establecer el escenario ML Preparar el entorno para el entrenamiento de los datos Cargar el dataset Entrenar el modelo Evaluar el modelo Consumir el modelo Para empezar en el proyecto principal de nuestra solución agregaremos un componente de tipo Machine Learning Con esta opción el interprete de ML NET Model Builder se inicializaráy podremos comenzar a personalizar el modelo Escenario El primer paso es seleccionar el escenario con el que deseamos trabajar en este caso seráText classification Ambiente Ahora debemos seleccionar los recursos de cómputo para el entrenamiento de nuestro modelo Para la clasificación de texto en particular solo podemos utilizar la CPU de nuestra computadora Fuente de datos Esta es una de las partes más importantes ya que con los datos podremos personalizar nuestro modelo Para ello podemos seleccionar dos tipos de fuentes ya sea realizando una conexión y a la vez una consulta hacia una base de datos SQL Server o por medio de un archivo CSV En este caso utilizaremos un archivo CSV con dos columnas la primera con el texto en cuestión y la segunda columna con el tipo de comentario negativo positivo Este es un ejemplo de dataset wikipedia detox line data tsv Al cargarlo podremos tener una previsualización de los datos y seleccionar la columna que queremos predecir posteriormente Entrenamiento Con todo lo que ya hemos establecido hasta este momento ya podemos realizar el proceso de entrenamiento y generar finalmente el modelo deseado En esta sección lo único que podemos personalizar es el tiempo máximo en el que ML NET puede buscar el modelo ideal para la clasificación de texto Al finalizar el proceso de entrenamiento podemos visualizar cuantos modelos evaluóML NET y la exactitud del mejor modelo encontrado Evaluación Hasta este punto ya tenemos el modelo establecido de todas maneras desde el Model Builder de ML NET podemos evaluar el modelo con un ejemplo en particular Consumir Finalmente el intérprete nos brindaráopciones para consumir el modelo creado ya sea creando otros proyectos por consola o con una web api o indicándonos las llamadas que debemos hacer desde nuestra propia aplicación En este caso ya podemos consumir el modelo desde nuestra aplicación web con DotVVM sobre ASP NET con el nuevo paquete generado MLModel mbconfig Parte Consumir el modelo generado desde ASP NETPara consumir el modelo debemos hacer referencia a la clase MLModel la cual fue generada por ML NET en el grupo MLModel mbconfig En este sentido es necesario establecer una instancia de ModelInput con el comentario que queremos predecir para luego llamar al método Predict y obtener un objeto de tipo ModelOutput con la predicción correspondiente positivo negativo y su probabilidad ViewModel Para este propósito y para poder establecer una página web con DotVVM en un ViewModel en este caso el DefaultViewModel cs definiremos tres atributos o variables globales public string InputText get set public string Result get set null public decimal Score get set null Estas variables nos permitirán almacenar el texto ingresado por el usuario en InputText y representar los resultados de la predicción en los atributos Result y Score Luego podemos establecer un método en esta clase de tal manera que represente la acción de un botón para realizar la predicción public void Predict var sampleData new MLModel ModelInput Col InputText Load model and predict output var output MLModel Predict sampleData if int output Prediction Result Negative else Result Positive Score decimal Round decimal output Score int output Prediction En este código tenemos tres partes importantes Inicializar un MLModel ModelInput con el comentario ingresado por parte del usuario Llamar al MLModel Predict con el ModelInput como parámetro obteniendo asíel ModelOutput con los resultados Preparar el Result para visualizar el resultado posteriormente positivo o negativo y su exactitud en la predicción View Muy bien ahora podemos construir la vista al hacer referencia a los atributos y al método creado en el ViewModel Esta vista la codificaremos en el archivo Default dothtml de la siguiente manera lt table style border hidden gt lt tbody style border hidden gt lt tr style border hidden gt lt td style border hidden align center gt lt dot TextBox Text value InputText placeholder Write your text gt lt td gt lt td style border hidden align center gt lt dot Button Click command Predict Text Predict gt lt td gt lt td style border hidden align center gt lt b gt value Result lt b gt value Score lt td gt lt tr gt lt tbody gt lt table gt Aquílo más importante es el control TextBox para que el usuario ingrese su comentario y se almacene en el atributo InputText la llamada al método Predict con un Button y la visualización de los resultados al mostrar los valores de las variables Result y Score Ejemplos en ejecución Con esta View y su ViewModel nuestra página web se encuentra lista Aquípodemos ver dos ejemplos en tiempo de ejecución El código fuente del ejemplo mostrado se puede encontrar en el siguiente repositorio github com esdanielgomez MLNET SentimentAnalysis ¡Gracias Muchas gracias por leer espero que este demo pueda serte de utilidad Si tienes alguna pregunta o alguna idea que necesites discutir seráun gusto poder colaborarte y juntos intercambiar conocimientos entre sí ¡Nos vemos en Twitter O si gustas también puedes escribirme por Facebook o por correo daniel esdaniel gomez com 2021-10-28 17:04:49
Apple AppleInsider - Frontpage News It's time to drop apps that don't support Apple Silicon natively https://appleinsider.com/articles/21/10/28/its-time-to-drop-apps-that-dont-support-apple-silicon-natively?utm_medium=rss It x s time to drop apps that don x t support Apple Silicon nativelyDevelopers have had a year from the first shipments of Apple Silicon hardware and even longer than that if you consider the changes Apple has made over the last several years so if they haven t yet made native software it s time to question just how much you can rely on any Mac support from them in the future You can look but you still won t find every Mac app running natively on Apple SiliconThe time to cut your losses is before you have to At some point Apple is going to cease supporting Rosetta on Apple Silicon and when it does all non native apps will cease to work Read more 2021-10-28 17:38:31
Apple AppleInsider - Frontpage News Apple issues first developer beta of macOS Monterey 12.1 https://appleinsider.com/articles/21/10/28/apple-issues-first-developer-beta-of-macos-monterey-121?utm_medium=rss Apple issues first developer beta of macOS Monterey Following the release of macOS Monterey on Monday Apple has commenced a new beta round with macOS s first build testable by developers The latest builds can be downloaded by developers in the beta testing scheme via the Apple Developer Center or as an over the air update for hardware already using earlier beta builds A public beta version of the releases is expected to start arriving soon and will be available through the Apple Beta Software Program website Version s first beta arrives after the release of macOS Monterey on October That release arrived after a lengthy beta testing process of rounds including two Release Candidates Read more 2021-10-28 17:19:23
Apple AppleInsider - Frontpage News iFixit takes a closer look at Apple's $19 polishing cloth https://appleinsider.com/articles/21/10/28/ifixit-takes-a-closer-look-at-apples-19-polishing-cloth?utm_medium=rss iFixit takes a closer look at Apple x s polishing clothThe repair specialists at iFixit have completed a tongue in cheek teardown of Apple s thinnest product its now sold out polishing cloth Credit ApplePreviously a repair component for the Pro Display XDR Apple made the polishing cloth available for direct purchased earlier in October It quickly sold out Read more 2021-10-28 17:08:18
海外TECH Engadget 'Grand Theft Auto: San Andreas' is coming to VR on Oculus Quest 2 https://www.engadget.com/gta-san-andreas-vr-oculus-quest-2-174846796.html?src=rss x Grand Theft Auto San Andreas x is coming to VR on Oculus Quest One of the most loved entries in Rockstar s Grand Theft Auto series is coming to VR On Thursday Facebook CEO Mark Zuckerberg announced a port of s GTA San Andreas is in development for the company s Quest VR headset quot This new version of what I think is one of the greatest games ever made will offer players an entirely new way to experience this iconic open world in virtual reality quot Zuckerberg said during the event Zuckerberg didn t go on to say when Quest owners can expect to play the game and the blog post the company published after the event didn t provide many other details either quot This is a project many years in the making and we can t wait to show you more of it quot the company said Whatever form the final product takes it s likely to look a lot like the Resident Evil remake Facebook and Capcom released last week nbsp nbsp 2021-10-28 17:48:46
海外TECH Engadget Oculus Quest 2 gets a new living room, Slack and more apps https://www.engadget.com/oculus-quest-horizon-home-2d-apps-173602748.html?src=rss Oculus Quest gets a new living room Slack and more appsOculus Quest users will see a new living space Horizon Home a more social version of the virtual living room that pops up when you slip on your headset Instead of just being a pretty and sterile virtual environment you ll be able to invite friends to hang out in your Horizon Home space The idea is that you ll be able to do things together like dive into VR videos or play multiplayer games Eventually you ll be able to build and customize your Horizon Home space too It s all part of the company s drive to focus on the metaverse something Mark Zuckerberg talked about at length during today s Facebook Connect conference For the first time Facebook is also opening the Oculus Store to D apps like Slack and Dropbox You ll be able to access them from within Horizon Home so you won t have to take off your headset to keep tabs on your work chat And of course there will be apps for Facebook and Instagram as well 2021-10-28 17:36:02
海外TECH Engadget Facebook will invest $150 million in VR learning experiences https://www.engadget.com/facebook-150-million-vr-learning-fund-171537678.html?src=rss Facebook will invest million in VR learning experiencesVirtual reality can be a powerful teaching tool but it s only as good as the content available for the medium Facebook is looking to grow the availability of content for VR learning as part of its efforts to shift its focus on the metaverse and it has created a US million fund to achieve that goal The social network has announced that it s spending that much to reach its VR learning goals over the next three years at its Connect event nbsp Since Facebook is hoping to build a robust ecosystem for learning in the metaverse it plans to do more than just create immersive educational experiences Part of the money will go towards training augmented reality and virtual reality creators so they can make their own experiences Facebook is working with Unity to teach people the skills necessary to create educational VR content ーmainly it s using Unity s quot Create with VR for Educators quot tool with Quest devices to teach nonprofits and educational institutions In addition it s working with several educational institutions including historically Black colleges and universities as well as non profits to create immersive experiences for them Finally Facebook says it s taking steps towards increasing people s access to educational VR materials After all all that work will go to waste if nobody ends up using them to learn new things Mark Rabkin VP of Oculus said in a statement quot VR isn t all fun and games If you ve ever traveled the world with Wander explored Japan with Tokyo Origami or admired the heavens in Titans of Space PLUS then you know that VR can be a powerful tool for education as well A lot of work exists between where we re at now and where we see the metaverse in the future We re excited and we hope you ll come with us on the journey quot 2021-10-28 17:15:37
海外TECH Engadget Facebook's Polar app will let anyone design AR objects and effects https://www.engadget.com/facebook-polar-app-simple-ar-effects-objects-171536043.html?src=rss Facebook x s Polar app will let anyone design AR objects and effectsAs part of its broad vision of becoming a metaverse focused company Facebook announced Polar a free iOS app that makes it easy for just about anyone to create AR filters effects and D objects Think of it like an easy to use implementation of the company s Spark AR platform for developers The goal is to give creators a simple tool to design custom AR effects ーperhaps glowing demonic eyes or D text of your personal hashtag or slogan ーthat they can deploy across the web or share with their followers nbsp nbsp nbsp The company plans to launch a closed beta program later this year so it ll likely be a while before it s open to everyone But if Facebook wants the metaverse to thrive it ll need to loop in creators to help make some meme worthy content Let s just hope there s also a way to pay people for this free labor nbsp 2021-10-28 17:15:36
海外TECH Engadget Oculus' Active Pack makes your Quest 2 headset more fitness-friendly https://www.engadget.com/oculus-quest-2-active-pack-171531130.html?src=rss Oculus x Active Pack makes your Quest headset more fitness friendlyYou can soon use an Oculus Quest headset for VR workouts without it being quite so grimy Oculus has previewed an Active Pack for the Quest that will make it easier to use the headset as part of your fitness routine New grips for the Touch controller should keep them from flying out of your sweaty hands while an exercise ready quot facial interface quot will be easier to wipe down after an intense session The Active Pack won t be available until sometime in Quest fitness apps will get some meaningful updates before then though FitXR will get a new fitness studio before the end of while Player by Rezzil will offer hand tracked bodyweight exercises in a similar time frame Oculus fitness shift isn t completely surprising The pandemic led many people to shift their workouts to VR and not all of those people will return to the gym If Oculus can pitch the Quest as a fitness tool it could boost adoption among people who wouldn t have previously considered a VR headset Developing 2021-10-28 17:15:31
海外TECH Engadget Facebook Messenger on Oculus will soon handle audio calls https://www.engadget.com/facebook-messenger-oculus-audio-calling-171524999.html?src=rss Facebook Messenger on Oculus will soon handle audio callsSince the start of the year Oculus Quest and Quest owners have had the ability to use Messenger to chat with their Facebook friends When using the app today you can type out a message send pre written phrases or use voice to text to communicate Soon you ll also be able to call your friends nbsp At its Connect conference Facebook announced it plans to bring audio calling to the platform Later this year the app will allow you to call contacts on any other Messenger enabled platform In the future it will also allow you to invite your friends to hang out in VR destinations together Facebook is likely to share more details about voice calling soon nbsp 2021-10-28 17:15:24
海外TECH Engadget Facebook says it doesn’t want to own the metaverse, just jumpstart it https://www.engadget.com/facebook-connect-metaverse-zuckerberg-171507437.html?src=rss Facebook says it doesn t want to own the metaverse just jumpstart itHere s what Facebook s metaverse isn t It s not an alternative world to help us escape from our dystopian reality a la Snow Crash It won t require VR or AR glasses at least not at first And most importantly it s not something Facebook wants to keep to itself Instead as Mark Zuckerberg described to media ahead of today s Facebook Connect conference the company is betting it ll be the next major computing platform after the rise of smartphones and the mobile web After spending the last decade becoming obsessed with our phones and tablets ーlearning to stare down and scroll practically as a reflex ーthe Facebook founder thinks we ll be spending more time looking up at the D objects floating around us in the digital realm Or maybe you ll be following a friend s avatar as they wander around your living room as a hologram It s basically a digital world layered right on top of the real world or an quot embodied internet quot as Zuckerberg describes Before he got into the weeds for his grand new vision though Zuckerberg also preempted criticism about looking into the future now as the Facebook Papers paint the company as a mismanaged behemoth that constantly prioritizes profit over safety While acknowledging the seriousness of the issues the company is facing noting that it ll continue to focus on solving them with quot industry leading quot investments Zuckerberg said nbsp Devindra Hardawar Engadget quot The reality is is that there s always going to be issues and for some people they may have the view that there s never really a great time to focus on the future From my perspective I think that we re here to create things and we believe that we can do this and that technology can make things better So we think it s important to to push forward quot Given the extent to which Facebook and Zuckerberg in particular have proven to be untrustworthy stewards of social technology it s almost laughable that the company wants us to buy into its future But like the rise of photo sharing and group chat apps Zuckerberg at least has a good sense of what s coming next And for all of his talk of turning Facebook into a metaverse company he s adamant that he doesn t want to build a metaverse that s entirely owned by Facebook He doesn t think other companies will either Like the mobile web he thinks every major technology company will contribute something towards the metaverse He s just hoping to make Facebook a pioneer quot Instead of looking at a screen or today how we look at the Internet I think in the future you re going to be in the experiences and I think that s just a qualitatively different experience quot Zuckerberg said It s not quite virtual reality as we think of it and it s not just augmented reality But ultimately he sees the metaverse as something that ll help to deliver more presence for digital social experiences ーthe sense of being there instead of just being trapped in a zoom window And he expects there to be continuity across devices so you ll be able to start chatting with friends on your phone and seamlessly join them as a hologram when you slip on AR glasses A simulated preview of Horizon Home FacebookBut of course the metaverse won t be built in a day At Facebook Connect today the company announced several ways it s moving towards making it more accessible For one Facebook will be transforming the Oculus Quest s Home interface into quot Horizon Home quot a more fully featured environment where you can invite friends and hang out virtually Eventually you ll also be able to build and customize your home space The Venues app is also becoming quot Horizon Venues quot where it ll continue to serve as Facebook s prime spot for live virtual events The company also says NBA games are coming back to Venues in early November The company is also making a major push for developers its new Presence Platform offers through APIs that ll allow devs to make more inventive VR apps The Insight SDK will let them take advantage of the Quest s cameras to bring the real world into VR the Interaction SDK opens up the door for more hand tracking interactions and the Voice SDK will ーyou guessed it ーlet you use your words in more ways The Insight SDK in particular could reshape what Quest VR experiences could look like It includes Spatial Anchors which will let virtual objects persist across sessions in a space So if you placed a VR pet bunny on your coffee table it should always be there every time you logged into an app Additionally there s a Scene Understanding feature which can help developers get a better sense of your physical space A character talking to you in VR could for example wander around your living room without bumping into furniture FacebookWhen it comes to augmented reality Facebook also has plenty of upgrades in store for its Spark AR platform For one it s planning to launch an iOS app called Polar that ll let people design their own AR effects and objects without any coding It s aimed at creators who could use it to build unique D signage or makeup effects that their followers can apply More experienced devs will also be able to create Geo anchored objects which are tied to specific locations in the real world as well as AR effects that track your hands and body They can also try out building group video chats for Messenger something that ll eventually be supported in other apps nbsp nbsp Like HoloLens and HTC Vive Facebook plans to make a bigger push into enterprises with Quest for Business It s a way for employees to log into Quest headsets with secure work accounts it s probably not great for your boss to see how often you re playing Beat Saber after all Since they re meant for office environments IT departments will also be able to manage work accounts specific devices and integrate their own security features The key is that it s all going to be accessible on consumer grade Quest headsets Facebook won t have to make entirely new hardware for work environments The company plans to take it slow with Quest for Business It s currently being tested with a few companies now and a wider beta is expected to come next year At this point Facebook isn t planning to officially roll it out to every company until Quest for Business will replace the previous Oculus for Business program which required a special Quest headset Facebook already showed off one way remote meetings could be handled better with Horizon Workrooms and that app is going to get better later this year with customizable workrooms And when it comes to productivity the company is also opening up the Oculus Store to D apps like Slack Dropbox Instagram and Facebook You ll be able to dive into those apps right from your Horizon Home screen It s convenient but it s also a cheeky way to keep you from taking off your headset just to answer a Slack message Not everyone would want to spend a whole workday wearing a VR headset but it s not hard to imagine how future AR glasses could let you dive into Slack and Office apps just about anywhere They ll just be D projections floating around you things that nobody else would be able to see That may seem like science fiction today but years ago so did the idea of having a touchscreen enabled supercomputer in your pocket with blazing fast wireless internet nbsp As Zuckerberg sees it the metaverse will ultimately lead to a more natural relationship with technology while of course giving us another way to buy digital goods quot It s not about you spending more time on screens quot he told press before making a hasty retreat quot It s about making the time we spend better and I think you know screens can t really convey the full sense of presence quot 2021-10-28 17:15:07
海外TECH Engadget Google Fi will soon offer end-to-end encrypted calls https://www.engadget.com/google-fi-end-to-end-encrypted-calling-170044627.html?src=rss Google Fi will soon offer end to end encrypted callsIf you re a Google Fi subscriber the next time you phone someone your call may be protected by end to end encryption The MVNO will start rolling out support for the privacy minded feature to Android phones in the coming weeks Once it s available on your device it will kick in automatically anytime you call another Fi subscriber You ll know you re about to make an encrypted call thanks to the special audio and visual cues Google has added to the phone app A lock icon will appear on your screen as you re about to be connected to your contact and it will remain on screen during the call You ll also hear a different ring tone when you re dialing someone who has a compatible device If it wasn t already clear how much value you will get out of encrypted calling will depend on how many of your friends and family also happen to be Fi subscribers and they re using Android phones As things stand there s a chance you may never hear the ringtone that indicates your call is secure In that way encrypted calling on Fi is much like RCS was a few years ago It s a protocol without support from carriers If you re concerned about keeping your calls private your best bet is to look elsewhere That said it s a nice to have and way for Google to differentiate its wireless service nbsp 2021-10-28 17:00:44
海外科学 NYT > Science China’s New Climate Pledge Changes Little, in Bad Omen for Global Talks https://www.nytimes.com/2021/10/28/climate/china-climate-pledge.html China s New Climate Pledge Changes Little in Bad Omen for Global TalksChina s updated targets for cutting emissions to fight climate change reiterate what its leader pledged nearly a year ago That doesn t bode well for progress at next week s global climate summit 2021-10-28 17:46:21
海外科学 NYT > Science Polio and Measles Vaccines Lag for Children Across the World https://www.nytimes.com/2021/10/28/health/polio-measles-vaccinations-covid.html measles 2021-10-28 17:04:13
海外科学 NYT > Science Oil Executives Testify on Industry’s Role in Climate Disinformation https://www.nytimes.com/2021/10/28/climate/oil-executives-house-disinformation-testimony.html Oil Executives Testify on Industry s Role in Climate DisinformationIn a historic hearing the leaders of some of the most powerful energy companies in the world are appearing before a House panel to face questioning on climate change 2021-10-28 17:23:12
ニュース BBC News - Home Covid: All countries to be removed from England's travel red list https://www.bbc.co.uk/news/uk-59063818?at_medium=RSS&at_campaign=KARANGA cases 2021-10-28 17:51:26
ニュース BBC News - Home Angela Rayner: Man sentenced for threats to Labour deputy leader https://www.bbc.co.uk/news/uk-england-59079392?at_medium=RSS&at_campaign=KARANGA angela 2021-10-28 17:47:41
ニュース BBC News - Home Open letter signed by 16,000 calls for BBC apology over trans article https://www.bbc.co.uk/news/entertainment-arts-59074096?at_medium=RSS&at_campaign=KARANGA online 2021-10-28 17:16:55
ニュース BBC News - Home 'Major incident' declared in Hawick as heavy downpours hit https://www.bbc.co.uk/news/uk-scotland-glasgow-west-59071373?at_medium=RSS&at_campaign=KARANGA levels 2021-10-28 17:17:40
ニュース BBC News - Home England face Northern Ireland at 2022 Women's Euros https://www.bbc.co.uk/sport/football/59077966?at_medium=RSS&at_campaign=KARANGA euros 2021-10-28 17:16:07
ニュース BBC News - Home Warner leads the way as Australia cruise to victory over Sri Lanka https://www.bbc.co.uk/sport/cricket/59082242?at_medium=RSS&at_campaign=KARANGA lanka 2021-10-28 17:38:36
ビジネス ダイヤモンド・オンライン - 新着記事 チーム作りには あえて「混乱する時期」が あったほうがよい理由 - テレワーク時代のマネジメントの教科書 https://diamond.jp/articles/-/284528 2021-10-29 02:50:00
ビジネス ダイヤモンド・オンライン - 新着記事 【この三字熟語わかりますか?】好□家 (ヒント)風流を好む方。読みを間違えがちなので、ご注意を - 世にも美しい三字熟語 https://diamond.jp/articles/-/285823 三字熟語 2021-10-29 02:45:00
ビジネス ダイヤモンド・オンライン - 新着記事 【強運体質になる!】運のいい人、成功する人だけが持っている思考法、成功を逃す人の思考法とは? - 龍神とつながる強運人生 https://diamond.jp/articles/-/285345 龍神 2021-10-29 02:40:00
ビジネス ダイヤモンド・オンライン - 新着記事 「妬んでいる人のちょっとした仕草」意外な共通点 - 武器としての組織心理学 https://diamond.jp/articles/-/285413 人間関係 2021-10-29 02:35:00
ビジネス ダイヤモンド・オンライン - 新着記事 漫画『ワンピース』のビッグマムの必殺技「天満大自在天神」はみんなが知っている「学問の神」? - 最強の神様100 https://diamond.jp/articles/-/286019 漫画『ワンピース』のビッグマムの必殺技「天満大自在天神」はみんなが知っている「学問の神」最強の神様「仕事運」「金運」「恋愛運」「健康運」アップ「のご利益」の組み合わせからあなたの願いが叶う神様が必ず見つかる八百万やおよろずの神様から項目にわたって紹介。 2021-10-29 02:30:00
ビジネス ダイヤモンド・オンライン - 新着記事 ストレスを減らすカンタンな方法 - 精神科医Tomyが教える 1秒で悩みが吹き飛ぶ言葉 https://diamond.jp/articles/-/283502 voicy 2021-10-29 02:25: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件)