投稿時間:2022-02-12 02:20:45 RSSフィード2022-02-12 02:00 分まとめ(22件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
AWS AWS Open Source Blog Sustainability with Rust https://aws.amazon.com/blogs/opensource/sustainability-with-rust/ Sustainability with RustRust is a programming language implemented as a set of open source projects It combines the performance and resource efficiency of systems programming languages like C with the memory safety of languages like Java Rust started as a research project at Mozilla in and Rust launched in In support for Rust … 2022-02-11 16:57:03
python Pythonタグが付けられた新着投稿 - Qiita mayaの環境を構築していく 4日目 https://qiita.com/9boz/items/c38ac87c4d29d1b1cbd0 mayaの環境を構築していく日目さてpythonでツールを作っていきます。 2022-02-12 01:37:33
python Pythonタグが付けられた新着投稿 - Qiita pythonで外れ値を可視化して除外する https://qiita.com/yoshinosatoshi/items/fc747b0c43be1cbdf8f5 指定した中央値の値を求めてみるqdataCRIMquantileqが中央値として表示されたので指定した値が取れているか再度統計量を表示して確認してみる記述統計量を確認してみるとが中央値と同じ値になっていることが確認できた。 2022-02-12 01:26:55
AWS AWSタグが付けられた新着投稿 - Qiita MLSを受ける https://qiita.com/ichimura/items/8a1f3621df2de71cbdfe テキストの言語を識別しますAmazonRekognition機械学習による画像とビデオの分析AmazonTranscribe音声をテキストにすばやく正確に変換するAmazonSageMaker素早くプロセスを回せるようにするためのサービス機械学習のインフラ構築・運用を自動化するだけなく、様々な機能がある機械学習の流れ開発学習に使うコードを記述、小規模データ動作確認、学習ライブラリ郡がインストール済みのインスタンスを提供学習大量のGPU、大規模データの処理、試行錯誤の繰り返し推論大量のCPUやGPU、継続的なデプロイ開発amp学習データサイエンティストが開発環境で作業開発・学習を同じ代のインスタンスで実施DeepLearningであればGPUインスタンスを使用問題環境構築が大変複数の学習ジョブを並列で実行するのが大変複数マシンを使った分散不学習をいzつげんするのが大変学習結果を管理するのが大変推論エンジニアがプロダクション環境に構築問題推論用のAPIサーバ構築とメンテが大変エッジデバイスへのデプロイが大変バッチ推論の仕組みを構築するのが面倒機械学習である問題を解決するのがSageMakerJuupyterNotebook開発環境パイプラインモードデータがコンテナに直接ストリーミングされます。 2022-02-12 01:50:21
海外TECH MakeUseOf Easily Create Slideshows With the Photos App on an iPhone or iPad https://www.makeuseof.com/how-to-create-slideshows-iphone/ favorite 2022-02-11 16:46:50
海外TECH MakeUseOf How to Browse the Gopher Network on Linux https://www.makeuseof.com/how-to-browse-gopher-network-linux/ linux 2022-02-11 16:30:12
海外TECH MakeUseOf What Can You Learn From an Email Header (Metadata)? https://www.makeuseof.com/tag/what-can-you-learn-from-an-email-header-metadata/ What Can You Learn From an Email Header Metadata Did you ever get an e mail and really wondered where it came from Who sent it How could they have known who you are Surprisingly a lot of that information can be from from the e mail header or by using info from the email header to do some detective work Today we re just going to focus on how to unhide the header in Gmail and then look at what we can glean from the header 2022-02-11 16:17:56
海外TECH MakeUseOf APFS vs. Mac OS Extended: Which Should You Pick? https://www.makeuseof.com/apfs-vs-mac-os-extended/ explanation 2022-02-11 16:01:12
海外TECH DEV Community How to version Docker images with GitLab CI/CD https://dev.to/nelsoncode/how-to-version-docker-images-with-gitlab-cicd-3j3n How to version Docker images with GitLab CI CDFor this example we will use GitLab Container Registry and we will version the images by commit Variables of GitLabCI REGISTRY USER User actually of GitLabCI REGISTRY PASSWORD Password actually of GitLabCI REGISTRY registry gitlab com CI PROJECT PATH gitlab example my project CI COMMIT SHORT SHA Recent commit ID Docker Login GitLab Container registry docker login u CI REGISTRY USER p CI REGISTRY PASSWORD CI REGISTRY Build image with ID COMMIT SHAdocker build t CI REGISTRY CI PROJECT PATH IMAGE NAME CI COMMIT SHORT SHA Get ID from previous imageIMAGE ID docker images grep CI REGISTRY CI PROJECT PATH IMAGE NAME awk print Retag image latest with digest from previous imagedocker tag IMAGE ID CI REGISTRY CI PROJECT PATH IMAGE NAME latest Push image latest and commit shadocker push CI REGISTRY CI PROJECT PATH IMAGE NAME CI COMMIT SHORT SHAdocker push CI REGISTRY CI PROJECT PATH IMAGE NAME latest Pipelinebuild image docker stage build services docker dind rules if CI PIPELINE SOURCE push variables IMAGE NAME my app script docker login u CI REGISTRY USER p CI REGISTRY PASSWORD CI REGISTRY BUILD IMAGE WITH COMMIT SHA docker build t CI REGISTRY CI PROJECT PATH IMAGE NAME CI COMMIT SHORT SHA RETAG IMAGE LATEST WITH DIGEST FROM PREVIOUS IMAGE IMAGE ID docker images grep CI REGISTRY CI PROJECT PATH IMAGE NAME awk print docker tag IMAGE ID CI REGISTRY CI PROJECT PATH IMAGE NAME latest PUSH IMAGE COMMIT SHA and LATEST docker push CI REGISTRY CI PROJECT PATH IMAGE NAME CI COMMIT SHORT SHA docker push CI REGISTRY CI PROJECT PATH IMAGE NAME latest Images in Docker RegistryThe latest image will always point to the latest versionc Published minute ago MiB Digest fdalatest Published minute ago MiB Digest fda 2022-02-11 16:29:43
海外TECH DEV Community Make A Simple Voice Assistant with JavaScript https://dev.to/stcollier/make-a-simple-voice-assistant-with-javascript-3lle Make A Simple Voice Assistant with JavaScriptHey everyone Ever since I started programming for some reason I always thought it would be so cool to program my very own voice assistant As it turns out it s not that hard and I ll show you how to very easily create one Disclaimer the browser compatibility for this project has only been tested on Chrome so there may be some compatibility issues on other browsers and mobile devices Okay so first let s start with a basic setup of our project Let s create files index html style css and script js If your re using Replit for this project which I highly recommend these three files should already be created with the HTML CSS JS template The style css and script js file should be empty for now but put this HTML snippet in the HTML file if it s not there already lt DOCTYPE html gt lt html gt lt head gt lt meta charset utf gt lt meta name viewport content width device width gt lt title gt Voice Assistant lt title gt lt link href style css rel stylesheet type text css gt lt head gt lt body gt lt script src script js gt lt script gt lt body gt lt html gt Next let s setup the frontend elements we need for this voice assistant Since a voice assistant is mainly backend JS we won t need much We ll only need elements A button for the user to click to have the voice assistant start listening with an id of listen button When the user clicks on the button we will call the function listen which we have not defined yet but I ll talk about that later An input area to display the speech to text text that we are speaking with an id of input area An output area to display the result of the voice assistant with an id of output area We ll put all of these elements inside a div and the finished HTML file should look like this lt DOCTYPE html gt lt html gt lt head gt lt meta charset utf gt lt meta name viewport content width device width gt lt title gt Voice Assistant lt title gt lt link href style css rel stylesheet type text css gt lt head gt lt body gt lt div id main container gt lt p id input area gt lt p gt lt p id output area gt lt p gt lt button id listen button onclick listen gt Listen lt button gt lt div gt lt script src script js gt lt script gt lt body gt lt html gt Since the items are a little jumbled together with no styling let s just put this basic piece of the code in the CSS file main container text align center border px solid black padding em This should be your result so far I get that the page still looks trashy without proper CSS styling but I m not going to get into that in this tutorial I m sure there are plenty of CSS tutorials out there if you would like to make your voice assistant look better Now that the HTML is out of the way let s get into the fun stuff actually making the voice assistant work The first part of the voice assistant that we need is some way to get the computer to listen to us receive microphone input then turn that speech into text This would normally be very complicated but thankfully we have an API Application Programming Interface that can do this very easily for us called the Web Speech API So to use this let s first create a function in the script js file that we can call listen We ll call this function when the user clicks the Listen button that we created earlier in the HTML function listen Inside of that function we ll create an easy way to access our HTML elements function listen let inputArea document getElementById input area let outputArea document getElementById output area And setup our speech recogntion function listen let inputArea document getElementById input area let outputArea document getElementById output area var recognition new webkitSpeechRecognition recognition lang en GB recognition start Then we will check for a result and when the recognition gets a result we ll store that data inside a variable called transcript and then display that data to the inputArea that we created in the HTML Here s what that would look like function listen let inputArea document getElementById input area let outputArea document getElementById output area var recognition new webkitSpeechRecognition recognition lang en GB recognition start recognition onresult function event let transcript event results transcript inputArea innerHTML event results transcript Now let s run this program and see what happens But please note the program will not run properly in an iframe or something other that s not a browser window The API needs to access your microphone through the browser so please open it in a new tab Okay so here s what should happen if you did everything correctly If you open project in a new tab and click the Listen button you should get this prompt Click Allow and then try speaking Say Hello The program should display the result like so Awesome The program can show what we re saying on the screen However this is only half of the voice assistant The voice assistant should take the information of what we said and then do something reply to us give us information etc This is very easy to add Since we have the text stored in the transcript variable let s just create a simple if statement let s say to check if we said hello like this if transcript hello outputArea innerHTML Hello User Now we can place that code right here in the the recognition onresult function recognition onresult function event let transcript event results transcript if transcript hello outputArea innerHTML Hello User inputArea innerHTML event results transcript So now if we say hello the program should output Hello User This is great but what if someone said Hello voice assistant or something that included the word hello Our voice assistant wouldn t understand becuase it s only programmed to respond if the user says only hello However JavaScript has a handy function called includes that can check if a variable includes something Thus instead we can do this if transcript includes hello outputArea innerHTML Hello User Now if the user says something that includes the word hello the program will output Hello User Great right Now with what we ve learned so far let s create two more conditionals one to give us the weather and another one to alert us if the program doesn t know what we re trying to say because currently the program just does nothing if it doesn t know what we re saying For the weather conditional we ll use an else if statement below the if statement to open a weather website if the user wants the weather We can do that like so if transcript includes hello outputArea innerHTML Hello User else if transcript includes weather window open else outputArea innerHTML I don t know what you mean This voice assistant is really coming along However I m going to end the tutorial here There s still a lot of things you can do though Here s a list of features you can add Add more conditionals so that the voice assistant can do more Add better CSS styling Add randomized responses by storing an array of responses and getting a random element from them Turn this into a real voice assistant by having the program respond with a synthesis voice with another API like this one Thanks for reading this tutorial and I hope you learned something Happy Coding 2022-02-11 16:19:06
海外TECH DEV Community Django Templates with React https://dev.to/kozlovzxc/django-templates-with-react-4hko Django Templates with React Django Templates with ReactI m relatively new to the Django world and I love it for the amount of ready to use solutions The only thing I don t quite like is Django Templates After using React for a while these templates feels a bit cumbersome and inelegant I found a few articles recommending creating full blown React SPA and using Django just as a REST API But there are few issues with this solution which makes it not that attractive If you create full blown React SPA you will have code duplication right away because there is routing here and there there is authentication and authorization there are error pages there are states amp data models For some applications teams companies it is an acceptable and even desirable outcome but not for me and my small application So how do we use React just as a template engine IdeaThere is a nice thing about React it doesn t just mount to the DOM body or somewhere random it mounts to the exact element you specify ReactDOM render lt h gt Hello world lt h gt document getElementById root So the idea is to try to implement routing using one mounting point just for one page At this point an attentive reader will notice that for each page we will actually load JavaScript for every other page because it s the same bundle but please bear with me for a while RoutingSo we can specify multiple mounting points in index js ReactDOM render lt h gt Page lt h gt document getElementById page ReactDOM render lt h gt Page lt h gt document getElementById page If there is lt div id page gt on the page then the user will see the first page but if there is lt div id page gt then the user will see the second page On the Django side you will just need to render lt div gt block with the right ID extends base html load static block content lt div id element id gt lt div gt lt script src static index js gt lt script gt endblock def index view request if request method GET return render request react page html element id todos index Bundle sizeNow it s the time to figure out how not to load JavaScript for pages which aren t used right now There is actually a built in React feature which is called Code Splitting You can load pages only when you actually need them which will improve user experience So our pages routing will start looking something like this let Page React lazy gt import page let Page React lazy gt import page ReactDOM render lt Suspense fallback lt gt lt gt gt lt Page gt lt Suspense gt document getElementById page ReactDOM render lt Suspense fallback lt gt lt gt gt lt Page gt lt Suspense gt document getElementById page Context dataAt this point we can implement guards and routing on Django side and render static pages using React Now it s time to figure out how to pass data We can use Django built in called json script which takes some data escapes dangerous characters and dumps it to the JSON which is readable by JavaScript Let s try to leverage it extends base html load static block content lt div id element id gt lt div gt page context json script page context lt script src static index js gt lt script gt endblock And get this data on React side custom hookexport let usePageContext lt T any gt gt let pageContext setPageContext useState lt T undefined gt undefined useEffect gt let pageContext document getElementById page context textContent setPageContext JSON parse pageContext return pageContext as T interface Todo id number title string const TodosIndexPage memo gt let pageContext usePageContext lt todos Todo gt let todos pageContext todos return lt gt lt h gt React todos page lt h gt lt ul gt todos map todo gt lt li key todo id gt todo title lt li gt lt ul gt lt gt export default TodosIndexPage Final notesThat s basically it there are only few steps to make it work Separate mounting points for React Optional but good for performance Setup code splitting for React Return target mounting point on Django side Send page context on Django side Get page context on React side You can find a working example on my GitHub github com kozlovzxc djangoReactTemplates but I encourage you to play with it yourself because you probably will come up with something better p s You can also try to duplicate Django routes using React Router instead of multiple mounting point but I m not sure about benefits though Btw let s be friends here and on twitter 2022-02-11 16:12:25
Apple AppleInsider - Frontpage News Apple AirPods return to $99 for Valentine's Day https://appleinsider.com/articles/22/02/11/apple-airpods-return-to-99-for-valentines-day?utm_medium=rss Apple AirPods return to for Valentine x s DayAmazon s latest AirPods price drop marks the return of Black Friday pricing thanks to a cash discount AirPods are backDelivering the cheapest AirPods price available Amazon has dropped the second generation model down to while supplies last Read more 2022-02-11 16:19:20
海外TECH Engadget Amazon's Kindle Paperwhite is up to $45 off, plus the rest of the week's best tech deals https://www.engadget.com/amazons-kindle-paperwhite-is-up-to-45-off-best-tech-deals-this-week-164529627.html?src=rss Amazon x s Kindle Paperwhite is up to off plus the rest of the week x s best tech dealsMany of Amazon s gadgets went on sale at the start of this week and continue to be discounted today Key among them are both new Kindle Paperwhites ーthe standard version and the Signature Edition ーalong with the second generation Echo Show and the Fire TV Cube On top of that Apple s AirPods Pro are on sale for and the Apple TV K remains discounted to Here are the best tech deals from this week that you can still get today Kindle Paperwhite Signature EditionNathan Ingraham EngadgetThe Kindle Paperwhite Signature Edition is on sale for which is an all time low We called this the best e reader available right now and it earned a score of for its bigger more responsive screen USB C charging wireless charging support and automatic brightness and warm light settings The standard Kindle Paperwhite is also on sale for or percent off its normal price Buy Kindle Paperwhite Signature Edition at Amazon Buy Kindle Paperwhite at Amazon AirPods ProBilly Steele EngadgetThe AirPods Pro are down to right now or percent off their normal price We gave them a score of for their solid sound quality strong ANC and more comfortable fit Buy AirPods Pro at Amazon Apple TV KDevindra Hardawar EngadgetThe latest Apple TV K is on sale for or off its normal price While the version isn t drastically different from the previous model its new Siri remote is a big selling point We gave it a score of for its speedy performance HomeKit integration and the easy of use that comes with the improved Siri remote Buy Apple TV K at Amazon Google Nest ThermostatGoogleGoogle s Nest Thermostat is down to right now and the device with a trim kit will set you back This version has a mirrored display and a touch sensitive edge and it can be controlled with the Google Home app It also has features like Savings Finder which suggests ways you can tweak your home system to conserve energy Buy Nest Thermostat at Amazon Buy Nest Thermostat trim kit at Amazon for video game saleMinecraftThe latest for sale on Amazon includes a number of Nintendo Switch and PlayStation games so now s a good time to pick up a few while you can get one for free Some of the best games of the bunch include Shin Megami Tensei V Minecraft Spider Man Miles Morales and Mario Rabbids Kingdom Battle Shop for sale at AmazonNintendo SwitchEngadgetPrime members can get off the Nintendo Switch at Woot right now While the discount isn t on the OLED model it s a good sale on a console that rarely sees sales like this Just make sure to check out Woot s return policy before buying Buy Nintendo Switch at Woot Echo Show nd gen Nicole Lee EngadgetThe latest Echo Show is on sale for which is percent off and an all time low price We gave the mid sized smart display a score of for its lovely screen solid sound quality and minimalist design Buy Echo Show at Amazon Fire tabletsValentina Palladino EngadgetMost of Amazon s Fire tablets are up to percent off right now making it a good time to pick one up for yourself or your kids The Fire HD is half off and down to or you can spring for the larger more powerful Fire HD and spend All of the Fire Kids Pro bundles have been discounted too so you can get one for as low as Buy Fire HD at Amazon Buy Fire HD at Amazon Buy Fire Kids Pro at Amazon Blink camerasAmazonBlink home security cameras are up to percent off meaning you can get a one camera Blink Outdoor kit for In addition to being weatherproof these cams are wireless and support p video night vision two way audio and motion alerts The wired Blink Mini is also on sale and down to only Buy Blink Outdoor at Amazon Buy Blink Mini at Amazon Fire TV CubeNicole Lee EngadgetAmazon s Fire TV Cube is down to a new record low of which is percent off its normal price Despite being a few years old it remains the most powerful streaming device in Amazon s lineup We gave it a score of for its speedy performance ease of handling voice commands and support for HDR and Dolby Vision content Buy Fire TV Cube at Amazon Amazon smart thermostatAmazonAmazon s smart thermostat has returned to an all time low price that we last saw during the holiday shopping season It s a budget friendly alternative to devices like the Nest Thermostat and it supports voice commands with Alexa provided you have an Alexa enabled device in your home or use the Alexa app and lets you set schedules and control your home s temperature from anywhere Buy smart thermostat at Amazon Chromecast with Google TVGoogleGoogle s Chromecast with Google TV is off right now bringing it down to We gave the streaming device a score of for its support for K Dolby Vision and Dolby Atmos content handy remote control and good execution of Google Assistant commands Buy Chromecast with Google TV at Best Buy New tech dealsBeats Studio BudsThe Beats Studio Buds are off and down to ーnot a record low but a decent sale for this time of year We gave them a score of for their balanced sound comfortable fit and quick pairing with both iOS and Android devices Buy Beats Studio Buds at Amazon Apple MagSafe battery packApple s magnetic battery pack for iPhones is down to which is percent off its normal price We have seen it cheaper in the past but this is the best price we ve seen since December The accessory attaches magnetically to the back of the latest iPhones and provides up to W of wireless charging Buy MagSafe battery pack at Amazon inch Lenovo Smart Digital Picture FrameThis large smart picture frame from Lenovo is half off and down to In addition to showcasing your favorite photos the frame uses AI to make collages of your images and the built in ambient light sensor adjusts the screen s brightness according to the light in the room Buy inch Lenovo Smart Frame at Amazon Alo MovesThe on demand fitness service Alo Moves has an offer few new members that knocks percent off the price of a one year membership bringing it down to The platform has dozens of yoga pilates barre and strength training classes along with guided meditations and series that help you master specific skills over the course of longer periods of time Subscribe to Alo Moves year Follow EngadgetDeals on Twitter for the latest tech deals and buying advice 2022-02-11 16:45:29
ニュース BBC News - Home Cressida Dick: New Met chief must tackle policing culture, says Priti Patel https://www.bbc.co.uk/news/uk-england-60345334?at_medium=RSS&at_campaign=KARANGA confidence 2022-02-11 16:43:46
ニュース BBC News - Home Flamur Beqiri: Swedish hitman guilty of doorstep murder https://www.bbc.co.uk/news/uk-england-london-60352830?at_medium=RSS&at_campaign=KARANGA beqiri 2022-02-11 16:50:44
ニュース BBC News - Home Trucker protests: Ontario calls state of emergency https://www.bbc.co.uk/news/world-us-canada-60352980?at_medium=RSS&at_campaign=KARANGA illegal 2022-02-11 16:27:39
ニュース BBC News - Home Lassa fever: Patient dies at Bedfordshire hospital https://www.bbc.co.uk/news/uk-england-beds-bucks-herts-60353207?at_medium=RSS&at_campaign=KARANGA africa 2022-02-11 16:36:59
ニュース BBC News - Home Ukraine tensions: Joe Biden says US citizens should leave Ukraine now https://www.bbc.co.uk/news/world-europe-60342814?at_medium=RSS&at_campaign=KARANGA action 2022-02-11 16:46:11
ニュース BBC News - Home Macron refused to take Russian Covid test https://www.bbc.co.uk/news/world-europe-60346300?at_medium=RSS&at_campaign=KARANGA covid 2022-02-11 16:51:13
ビジネス ダイヤモンド・オンライン - 新着記事 【カンタンなのに極上! レンチンレシピ】 これは本当にハマる料亭茶漬け! - 銀座料亭の若女将が教える 料亭レベルのレンチンレシピ https://diamond.jp/articles/-/294328 【カンタンなのに極上レンチンレシピ】これは本当にハマる料亭茶漬け銀座料亭の若女将が教える料亭レベルのレンチンレシピ『銀座料亭の若女将が教える料亭レベルのレンチンレシピ』から、煮ない・焼かない・炒めない【つの具材】と【つのステップ】で、すぐ美味しいレシピを紹介。 2022-02-12 01:50:00
ビジネス ダイヤモンド・オンライン - 新着記事 元外交官が語る、ロシアが西ヨーロッパから「アジア」だと見做される理由 - ビジネスエリートの必須教養 「世界の民族」超入門 https://diamond.jp/articles/-/295482 元外交官が語る、ロシアが西ヨーロッパから「アジア」だと見做される理由ビジネスエリートの必須教養「世界の民族」超入門「人種・民族に関する問題は根深い…」。 2022-02-12 01:45:00
北海道 北海道新聞 ウクライナ選手、平和メッセージ スケルトン競技後、カメラに https://www.hokkaido-np.co.jp/article/644819/ 軍事侵攻 2022-02-12 01:06:00

コメント

このブログの人気の投稿

投稿時間:2021-06-17 22:08:45 RSSフィード2021-06-17 22:00 分まとめ(2089件)

投稿時間:2021-06-20 02:06:12 RSSフィード2021-06-20 02:00 分まとめ(3871件)

投稿時間:2021-06-17 05:05:34 RSSフィード2021-06-17 05:00 分まとめ(1274件)