投稿時間:2021-07-15 02:31:41 RSSフィード2021-07-15 02:00 分まとめ(34件)

カテゴリー等 サイト名等 記事タイトル・トレンドワード等 リンクURL 頻出ワード・要約等/検索ボリューム 登録日
IT 気になる、記になる… 米Amazon、Alexaを搭載した子供向けのウェアラブルデバイスを検討していた事が明らかに https://taisy0.com/2021/07/15/143031.html alexa 2021-07-14 16:16:35
ROBOT ロボスタ 本日開幕『Society 5.0科学博』見どころと体験レポート 2030年の未来社会/自動運転/空飛ぶクルマ/はやぶさ2/課題解決ロボット大集合 https://robotstart.info/2021/07/15/society50-report.html society 2021-07-14 16:05:40
AWS AWS Architecture Blog Intelligently Search Media Assets with Amazon Rekognition and Amazon ES https://aws.amazon.com/blogs/architecture/intelligently-search-media-assets-with-amazon-rekognition-and-amazon-es/ Intelligently Search Media Assets with Amazon Rekognition and Amazon ESMedia assets have become increasingly important to industries like media and entertainment manufacturing education social media applications and retail This is largely due to innovations in digital marketing mobile and ecommerce Successfully locating a digital asset like a video graphic or image reduces costs related to reproducing or re shooting An efficient search engine is critical … 2021-07-14 16:03:34
AWS AWS Game Tech Blog Join AWS Game Tech at GDC 2021 https://aws.amazon.com/blogs/gametech/join-aws-game-tech-at-gdc2021/ Join AWS Game Tech at GDC GDC is the world s largest and longest running professionals only game industry event bringing the community together to exchange ideas solve problems and shape the future of the industry across five days of education inspiration and networking And while GDC routinely fills San Francisco with thousands of game developers this year we re excited to bring the show … 2021-07-14 16:05:32
python Pythonタグが付けられた新着投稿 - Qiita UnityとPython間でのデータのやり取り https://qiita.com/sakamo1290/items/1daa8c2c2280a04c4b52 目的は機械学習の結果をUnityに反映することであるため、推定にかかる時間を考慮すると問題ない程度であると言える。 2021-07-15 01:04:13
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) JavaScript for文の配列 https://teratail.com/questions/349524?rss=all JavaScriptfor文の配列前提・実現したいことついさっき質問をしましたが、完全に丸投げの質問をしてしまったので書き直します。 2021-07-15 01:47:59
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) 親がoverflow:hiddenのときの子要素のスクロール量を測る https://teratail.com/questions/349523?rss=all 普通に考えたら、親がoverflowhiddenなので子要素をスクロールすることは不可能です。 2021-07-15 01:36:20
Program [全てのタグ]の新着質問一覧|teratail(テラテイル) blade上のfor文について質問です。valueの可変 https://teratail.com/questions/349522?rss=all valueの可変Laravelのblade上での質問です。 2021-07-15 01:32:06
AWS AWSタグが付けられた新着投稿 - Qiita オンプレ実務経験しかない私がAWS認定クラウドアーキテクト アソシエイト資格に合格した話 https://qiita.com/knakazono10111/items/fff6955cef34a4a212b2 長年勤めた企業を退職し、プログラミング以外の上流・下流工程の経験が多かったので、「自分も開発できるようになりたいな」ということで巷で有名なAWS使ってみるかと触ってみて、あまりの便利さに驚愕したのがAWSとの出会い。 2021-07-15 01:12:48
golang Goタグが付けられた新着投稿 - Qiita ebitenで画像の表示を関数化する https://qiita.com/krile136/items/36c8325641dfe4f5b480 スーパーファミコン風のゲームが作れるみたいですね設計思想にある「ミニマムなAPIで実用的なDゲームが作れるかどうか」の部分で、RigidChipsをやっていた頃を思い出し、今回手を出してみることにしましたインストールとかチュートリアル公式がとてもよくわかりやすいのでまずはこちらへサンプルの画像が回転するやつのソースコードを見てみる公式のソースコードを見てみましょう英語の解説の部分を日本語に翻訳してちょっとコメントを追加していますfuncgGameDrawscreenebitenImage画像のサイズを取得whgophersImageSize画像のオプションの準備opampebitenDrawImageOptions画像の中心をスクリーンの左上に移動させるこれは回転の準備で、ジオメトリマトリックス回転や移動の処理が適用されるときの原点が画面の左上だからであるopGeoMTranslatefloatwfloath画像を回転させる。 2021-07-15 01:14:33
海外TECH Ars Technica Auto-aim cheatmaker halts development at Activision’s request https://arstechnica.com/?p=1780140 requestdeveloper 2021-07-14 16:15:55
海外TECH DEV Community 3 simple CSS tricks to improve UX https://dev.to/melnik909/3-simple-css-tricks-to-improve-ux-4g29 simple CSS tricks to improve UX resize none vs resize verticalWhenever I see textarea with a fixed height I want to scream Give me userfriendly textarea I want to enter data comfortably Give me this I understand developers do that because textarea changing breaks the layout But we can find a more elegant solution Set a minimal comfortable height and save resizing of it but disable width changes using resize vertical And your users will not break the layout by chance don t do thistextarea height rem resize none you can use this insteadtextarea min height rem resize vertical background color helps users interact with UIDesigners love to use background images and that s a nice way to draw users attention But there is the problem of text accessibility in this case Loading of background images takes some time So while they are loading we can t read the text that s related to images and feel confusing But there is a solution We just can pick a background color and add it using the background color property for the block with the background image so that text would be readable always don t do this intro background image url example jpg you can use this instead intro background image url example jpg background color cead The start and end keywordsWhen our website becomes popular there is the important issue of translating on different languages For example I often wanted to translate the website from English to Arabic The problem is following English is a matter of languages where the beginning of the line is on the left LTR and in Arabic the beginning of the line is on the right RTL So if I use the text align left for Arabic users they will be confused because the beginning of the line will be by the left and no right like he thought It happens because the left and right values don t consider text direction i e when we use the left or right value a text is aligned to the left or right edge always But we can fix it using the start and end values that consider the text direction If a browser of our user is setting in LTR language the beginning of the line will be by left And if it s setting in RTL language then by right don t do this example text align left or example text align right you can use this instead example text align start or example text align end P S I m always open to any opportunities to share knowledge about CSS and HTML with you So I can answer any of your questions about CSS and HTML free make written code review of your projects paid ‍tell about what you should learn paid Just chat me on melnik ya ru Also you can support me one from the following ways Buy a shirt Get my new posts first P S S This post was written with the support of my sponsors Ashlea Gable Ben Rinehart Sergio Kagiema Jesse Willard Tanya Ten 2021-07-14 16:43:07
海外TECH DEV Community Learn & Implement Contest - AWS UG OSTech Conf 2021 https://dev.to/awsugjaipur/learn-implement-contest-aws-ug-ostech-conf-2021-3lfn Learn amp Implement Contest AWS UG OSTech Conf This contest is a part of AWS UG OSTech Conf Prerequisite Must have access to AWS console Step Launching EC instance In AWS Console search for EC and click on that service you will be redirected to the AWS EC page as follows and then click on Launch Instance To run EC successfully select an Amazon Machine Image AMI AMI contains all the software configurations Operating System Application Server and applications required to launch your instance In this case we will pick Amazon Linux AMI Now select the Instance Type that determines the type of CPU storage network capacity and memory needed during the installation Choose t micro and hit the next button as shown below Click the Next button until you reach the Configure Security Group page to retain the default settings A security group is a set of firewall rules that control the traffic for your instance On this page you can add rules to allow specific traffic to reach your instance For example if you want to set up a web server and allow internet traffic to reach your instance add rules that allow unrestricted access to the HTTP and HTTPS ports Enter the Security Group name and then hit the Review and Launch button After hitting the Launch button you will see a pop up page that requires you to select a Key Pair This contains both a public and private key folder that is used to connect to your EC Instance securely via SSH Click on the create a new key pair button and give a name to the key pair Go ahead and download your key pair Save your key file to a safe place on your system and then click on Launch Instances it will direct you to the launching page Hit the View Instances button to access the EC Instances page then click on connect and you will see several options to connect your instance it will only need SSH to be installed and the pem key that you have downloaded mentioned in the previous step Copy ssh command provided there and use it to connect you can use Git Bash CMD or Putty Step Install required tools and packages After connecting to the instance via SSH now run the below commands sudo su yum update y yum install docker git y systemctl start docker usermod a G docker ec user systemctl enable dockerThese commands will install Docker and Git in your AMI and enable your Docker service Now you have to clone a repository and modify a file by replacing AWS with your Full Name by using the below commands git clone cd OSTechConf contests learn and implement sed i s I am AWS g learn index html Note Don t forget to replace AWS with your name like sed i s I am Elon Musk g learn index html Step Build Image and Run ContainerFirst check that you are in the learn and implement folder and a Dockerfile is present This command will build the imagedocker build t ostechconf This command will run your docker container in which web page is hosteddocker run p d ostechconfIt s Done Step Final Steps Open the Amazon EC console and in the navigation pane choose Instances and select your instance The following information is available on the Networking tab Public IPv DNS ーThe external DNS hostname Copy the Public DNS and paste that in any browser Congratulations If you can see your webpage with your name as above screenshot Now go to EC console and copy instance Public DNS and open that in any browser and share the screenshot as given on contest page Connect with AWS UG Jaipur YouTube LinkedIn GitHub 2021-07-14 16:38:10
海外TECH DEV Community An Intro To Webpack https://dev.to/giantmachines/an-intro-to-webpack-l2n An Intro To WebpackWebpack is a tool we see often in today s web apps But what exactly does it do In this article we will go over some key concepts for understanding webpack what it does and how we can configure it We ll also build our own custom webpack plugin which can give us a better understanding of how webpack works as a whole What is webpack Webpack takes the modules and dependencies in our web applications and assembles them into an asset that is optimized for browsers It s a static module bundler This means that when we write our web application and we set up the many folders file extensions and dependencies that make up our app we can depend on webpack to take that information and assemble it into a neat bundle that the browser can retrieve in as little as one API call Webpack is a static module bundler because it expects the dependencies to be defined at compile time When we add webpack to our application we won t have to worry about organizing or ordering our dependencies in the code bundle served to the client and we even have additional options for further configuring this bundle to suit our application s needs Configuring webpackWe use webpack config files to customize the behavior of webpack A webpack config file exports an object containing our desired settings We have quite a few options we can choose from to customize our config so I ll mention a few very useful ones Entry The entry point is the file where the application starts executing With this entry point option we can designate the place where webpack will start looking for dependencies and building the bundle Output This is where we can choose the target directory for output files This must be an absolute path so it is useful to use the node path module Loaders Module Rules The module option allows us to indicate any loaders we want to use Loaders pre process files as they re imported They allow webpack to deal with various file types and they re applied on a per file basis In the config file it is important to note that they are loaded from right to left in an array of loaders Plugins Plugins are extensions for webpack that alter how webpack works Plugins are applied as the bundle is being created They hook into key events during the compilation process to change or extend the behavior of webpack Here s an example of a webpack config file and how we might choose to define the options listed above const path require path const MyPlugin require my plugin const AnotherPlugin require another plugin module exports entry src output path path resolve dirname dist filename name ready js module rules test fileextension use third loader second loader first loader for this file type test js exclude node modules use babel loader test scss use style loader css loader sass loader plugins new MyPlugin new AnotherPlugin Please note that with a few modifications it is also possible to set up our webpack config file with multiple configurations for different environments and or in a language other than JavaScript What s happening when webpack bundles our project When webpack runs it builds a dependency graph providing an interface for webpack to access our dependencies while it builds the bundle Absolute paths and other file information are gathered in the graph Webpack then creates modules from each of these dependencies and those modules are parsed into an Abstract Syntax Tree The asset that is ultimately generated for the browser is composed from boilerplate templates Your code is taken as data from the AST and inserted into these templates to become a file specially formatted for a browser If we take a look at the webpack repository on GitHub we will find files containing the definitions of some of the key classes that handle the compilation process in webpack Webpack makes use of its Tapable library to expose hooks for events during the bundle creation process Many of the classes in webpack extend Tapable in order to provide hooks to plugins so that they too can access lifecycle events The Compiler is one of these classes It is where all the higher level events for webpack are fired including the instantiation of plugins and the Compilation class The Compilation class builds a graph of the application s dependencies by recursively traversing the dependencies in the project It is the class responsible for passing dependencies to loaders for conversion parsing dependencies into an AST and interpolating the parsed code into templates to generate the final bundles Building our own custom webpack pluginNow let s take a closer look at another important part of webpack plugins Plugins alter webpack s behavior Some examples of what plugins can be used for include file compression specifying environment variables and code minification If we take a closer look at how plugins work it can give us a better understanding of how webpack works as a whole A lot of the core functionality of webpack itself is built on the same infrastructure that any custom plugins make use of As mentioned above many of the key classes that make up webpack extend the Tapable library to expose hooks into their own lifecycle events Plugins take advantage of these hooks in order to access webpack at different points in the compilation process and customize webpack s behavior To see how plugins make use of lifecycle hooks we can write a simple example plugin In this plugin which will be a JavaScript class we will need to define an apply method Webpack will use apply to install the plugin when it creates the compiler instance It will also pass down a reference to the compiler instance as an argument to the plugin Our plugin will tap into a hook on the compiler instance and pass that hook a callback that will then be executed at a certain lifecycle event class SimplePlugin apply compiler compiler hooks compilation tap SimplePlugin compilation gt compilation hooks succeedModule tap SimplePlugin module gt What we want to happen module exports SimplePlugin In the above example we can see that we take the compiler instance as an argument and are able to access a compilation hook within the compiler s hooks We can then call tap on that hook and pass it a callback to run our plugin Then inside of that first callback we are able to access any of the compilation lifecycle event hooks For this example let s use the succeedModule hook which is executed each time a module is successfully built during compilation We call the tap method once more and again pass it a second callback function Within this second callback we are able to execute code at this particular moment in the webpack lifecycleーwhen a module is successfully compiled during webpack s compilation process Webpack will pass the completed module as an argument to our second callback The compilation and succeedModule hooks that we ve chosen to tap in the above example are just two of a long list of lifecycle events that we can access using our apply method s compiler argument The webpack docs provide a list of the names and descriptions of the events accessible from the compiler here and we can use the tap method to access any of these events Finally to install our plugin we would need to include it in our webpack config const SimplePlugin require plugins simple plugin js module exports plugins new SimplePlugin Now our plugin code will be executed each time the succeedModule lifecycle event occurs during compilation ConclusionSo to wrap things up Webpack is a static module bundler It takes modules and dependencies in our web apps and assembles them into an asset that is optimized for browsers Webpack traverses the dependencies in our apps converts them into modules and parses them into an AST This information is then inserted into templates which make up the bundle created for our browser We can configure webpack s entry point output module loaders and pluginsーamong other optionsーin our webpack config file Plugins are extensions to webpack that alter how webpack works by hooking into a webpack lifecycle event and executing custom code If you re curious to learn more about webpack and how it works a great place to start is the concepts section of the webpack docs as well as webpack s GitHub repo Additional resources alternatives to webpackWebpack is not your only option when it comes to building your website One alternative tool is Snowpack which ships and caches each file individually It takes advantage of ES Modules import and export functionality which in recent years has come to be supported by many modern browsers Rollup is another choice that takes advantage of ES Modules Parcel is an alternative that can work well for small scale projects It requires less configuration than webpackーor none at all 2021-07-14 16:31:02
海外TECH DEV Community GraphQL - Why you should be using it in 2021. https://dev.to/jackbuchananconroy/graphql-why-you-should-be-using-it-in-2021-1afj GraphQL Why you should be using it in It would seem that every day more and more companies have been pushing to introduce GraphQL in their modern applications but what exactly is GraphQL and why should you be using it in your projects in What is GraphQL GraphQL is a query language for reading and mutating data in APIs It provides a complete and understandable description of the data in your API gives clients the power to ask for exactly what they need and nothing more makes it easier to evolve APIs over time and enables powerful developer tools What problems does GraphQL solve Traditionally Front End Developers have consumed APIs using REST where data entities exist on a group of URLs on a server When a request is received the API responds with the full data payload of that entity Although that sounds simple there are two big disadvantages here The first disadvantage is that we could need multiple entities at one time in which case each request is under fetching the actual data we want The second disadvantage is that we may only want a small part of that data in which case we need to over fetch from the API and that is both costly and bad for the environment GraphQL provides Back End Developer s with a type system where they can describe a schema for the data in turn this gives us Front End Developers the power to explore and request the exact data we need from the API With GraphQL instead of multiple URLs an API has a single entry point where data is queried or fetched by describing it with a syntax that replicates its return shape in JSON As Front End Developers we can describe exactly the data we want while the Back End Developer writes code to resolve the request Best of all everything happens in a syntax that can work agnostically with any programming language What is so amazing about types GraphQL APIs are organized in terms of types and fields not endpoints Using the type syntax in this way allows you to access the full capabilities of your data from a single endpoint GraphQL uses types to ensure Apps only ask for what s possible and provide clear and helpful errors Apps can use types to avoid writing manual parsing code 2021-07-14 16:24:37
海外TECH DEV Community Closure Explained! https://dev.to/duhbhavesh/closure-explained-2di3 Closure Explained Let s Define ClosureA closure is a function that makes use of variable defined in outer functions that have previously returned What does this mean Let s quickly look at an example function outer a return function inner b return a b outer In the above code snippet the function inner uses the variable a declared in a function named outer and when the function inner is called the function outer returns the function called inner and this is called as a closure A few things to note We have to return the inner function for the above example to work We can call the inner function right away by using an extra We don t have to name the inner function we just called it inner for learning purposes How Closures WorkOnly variables used in the inner function are stored Closures don t remember everything from an outer function just the variables they require Why do I need to know this Private VariablesVariables that cannot be updated externally are supported in other languages These are referred to as private variables although they are not included in JavaScript No need to be concerned closures can assist function counter let count return function count return count const counter counter counter counter const counter counter counter counter counter this is unaffected by counter console log count Uncaught ReferenceError count is not defined because it is private TL DRClosure exists when an inner function makes use of variables declared in an outer function that has previously returned Closure does not exist if you do not return an inner function and if that inner function does not make use of variables returned by an outer function JavaScript will only remember values that are being used inside of the inner function not all variables defined in the outer function Closures allow us to define private variables and write cleaner code that separates our logic from our application Thank you for making it till the end 2021-07-14 16:23:04
海外TECH DEV Community Let's build... a retro text art generator! https://dev.to/lionelrowe/let-s-build-a-retro-text-art-generator-3og2 Let x s build a retro text art generator Text art often called ASCII art is a way of displaying images in a text only medium You ve probably seen it in the terminal output of some of your favorite command line apps For this project we ll be building a fully browser based text art generator using React and TypeScript The output will be highly customizable with options for increasing brightness and contrast width in characters inverting the text and background colors and even changing the character set we use to generate the images All the code is available on GitHub and there s a live demo you can play around with too Here s what we ll be building AlgorithmThe basic algorithm is as follows Calculate the relative density of each character in the character set charset averaged over all its pixels when displayed in a monospace font For example is very sparse whereas is very dense and r is somewhere in between Normalize the resulting absolute values into relative values in the range where is the sparsest character in the charset and is the densest If the invert option is selected subtract the relative values from This way you get light pixels mapped to dense characters suitable for light text on a dark background Calculate the required aspect ratio width height in char pixels based on the rendered width and height of the characters where each char pixel is a character from the charset For example a charset composed of half width characters will need to render more char pixels vertically to have the same resulting aspect ratio as one composed of fullーwidth characters Render the target image in the required aspect ratio then calculate the relative luminance of each pixel Apply brightness and contrast modifying functions to each pixel value based on the configured options As before normalize the absolute values into relative values in the range is the lightest and is darkest Map the resulting luminance value of each pixel onto the character closest in density value Render the resulting d matrix of characters in a monospace font With the HTML Canvas API we can do all this without leaving the browser Show me the code Without further ado Calculating character densityCanvasRenderingContextD getImageData gives a UintClampedArray of channels in the order red green blue alpha For example a × cyan image would result in the following data red green blue alpha top left pixel top right pixel bottom left pixel bottom right pixel As we re drawing black on transparent we check which channel we re in using a modulo operation and ignore all the channels except for alpha the transparency channel Here s our function for calculating character density export enum Channels Red Green Blue Alpha Modulus export type Channel Exclude lt Channels Channels Modulus gt export const getRawCharDensity ctx CanvasRenderingContextD gt ch string CharVal gt const canvas ctx canvas height canvas width const width height canvas const rect Rect width height ctx font px monospace ctx clearRect rect ctx fillStyle ctx fillText ch const val ctx getImageData rect data reduce acc cur idx gt idx Channels Modulus Channels Alpha acc cur acc return ch val Next we use this function to iterate over the whole charset keeping a track of min and max export const getRawCharDensities charSet CharSet RawCharDensityData gt const canvas document createElement canvas const ctx canvas getContext d const charVals charSet map getRawCharDensity ctx let max Infinity let min Infinity for const val of charVals max Math max max val min Math min min val return charVals min max Finally we normalize the values in relation to that min and max export const getNormalizedCharDensities invert CharValsOptions gt charVals min max RawCharDensityData gt minimum of to prevent dividing by const range max min return charVals map ch val gt const v val min range return ch val invert v v sort a b gt a val b val Calculating aspect ratioHere s how we calculate aspect ratio separators and newlines don t play well with the rendering logicconst SEPARATOR REGEX n p Z uconst REPEAT COUNT const pre appendInvisible pre const getCharScalingData repeatCount number gt ch string width number height number aspectRatio AspectRatio gt pre textContent ch repeat repeatCount n repeat repeatCount const width height pre getBoundingClientRect const min Math min width height pre textContent return width width repeatCount height height repeatCount aspectRatio min width min height For performance reasons we assume all characters in the charset are equal width and height If they re not the output will be garbled anyway Calculating image pixel brightnessHere s how we calculate the relative brightness or technically the relative perceived luminance of each pixel const perceivedLuminance Channels Red Channels Green Channels Blue as constexport const getMutableImageLuminanceValues resolutionX aspectRatio img ImageLuminanceOptions gt if img return pixelMatrix flatPixels const width height img const scale resolutionX width const w h width height map x i gt Math round x scale aspectRatio i const rect Rect w h const canvas document createElement canvas canvas width w canvas height h const ctx canvas getContext d ctx fillStyle fff ctx fillRect rect ctx drawImage img rect const pixelData ctx getImageData rect data let curPix const pixelMatrix val number let max Infinity let min Infinity for const idx d of pixelData entries const channel idx Channels Modulus as Channel if channel Channels Alpha rgb channel curPix d perceivedLuminance channel else append pixel and reset during alpha channel we set ch later on second pass const thisPix val curPix ch max Math max max curPix min Math min min curPix if idx w Channels Modulus Channels Alpha first pixel of line pixelMatrix push thisPix else pixelMatrix pixelMatrix length push thisPix curPix one dimensional form for ease of sorting and iterating changing individual pixels within this also mutates pixelMatrix const flatPixels pixelMatrix flat for const pix of flatPixels pix val pix val min max min sorting allows us to iterate over the pixels and charVals simultaneously in linear time flatPixels sort a b gt a val b val return pixelMatrix flatPixels Why mutable you ask Well we can improve performance by re using this matrix for the characters to output In addition we return a flattened and sorted version of the matrix Mutating the objects in this flattened version persists through to the matrix itself This allows for iterating in O n instead of O nm time complexity where n is the number of pixels and m is the number of chars in the charset Map pixels to charactersHere s how we map the pixels onto characters export type CharPixelMatrixOptions charVals CharVal brightness number contrast number amp ImageLuminanceOptionslet cachedLuminanceInfo as ImageLuminanceOptions amp ReturnType lt typeof getMutableImageLuminanceValues gt export const getCharPixelMatrix brightness contrast charVals imageLuminanceOptions CharPixelMatrixOptions CharPixelMatrix gt if charVals length return const luminanceInfo Object entries imageLuminanceOptions every key val gt cachedLuminanceInfo key as keyof typeof imageLuminanceOptions val cachedLuminanceInfo getMutableImageLuminanceValues imageLuminanceOptions cachedLuminanceInfo imageLuminanceOptions luminanceInfo const charPixelMatrix luminanceInfo pixelMatrix as CharVal const allCharPixels luminanceInfo flatPixels as CharVal const multiplier exponential brightness const polynomialFn polynomial exponential contrast let charValIdx let charVal charVals charValIdx for const pix of allCharPixels while charValIdx lt charVals length charVal charVals charValIdx if polynomialFn pix val multiplier lt charVal val pix ch charVal ch break else charValIdx if none matched so far we simply use the last lightest character pix ch charVal ch cloning the array updates the reference to let React know it needs to re render even though individual rows and cells are still the same mutated ones return charPixelMatrix The polynomial function increases contrast by skewing values toward the extremes You can see some examples of polynomial functions at easings net ーquad cubic quart and quint are polynomials of degree and respectively The exponential function simply converts numbers in the range suitable for user friendly configuration into numbers exponentially increasing in the range giving better results for the visible output Here are those two functions export const polynomial degree number gt x number gt x lt Math pow degree Math pow x degree Math pow x degree export const exponential n number gt n fin Finally here s how we render the text art to a string export const getTextArt charPixelMatrix CharPixelMatrix gt charPixelMatrix map row gt row map x gt x ch join join n The UI for this project is built in React and mostly isn t as interesting as the algorithm itself I might write a future post about that if there s interest in it I had a lot of fun and learned a lot creating this project Future additional features in approximate order of implementation difficulty could include Allowing colorized output Moving at least some of the logic to web workers to prevent blocking of the main thread during expensive computation Unfortunately the OffscreenCanvas API is currently only available in Chromium based browsers which limits what we could do in this respect while remaining cross browser compatible Adding an option to use dithering which would improve results for small charsets or charsets with poor contrast characteristics Taking into account the sub char pixel properties of each character to give more accurate rendering For example is dense at the bottom and empty at the top rather than uniformly low density Adding an option to use an edge detection algorithm to improve results for certain types of images Allowing for variable width charsets and fonts This would require a massive rewrite of the algorithm and isn t something I ve ever seen done before but it would theoretically be possible I m not planning on implementing any of these features in the near future but those are some ideas to get you started for anyone that wants to try forking the project Thanks for reading Don t forget to leave your feedback in the comments 2021-07-14 16:13:57
Apple AppleInsider - Frontpage News AT&T to stop slowing down customers on its Unlimited Elite data plan https://appleinsider.com/articles/21/07/14/att-to-stop-slowing-down-customers-on-its-unlimited-elite-data-plan?utm_medium=rss AT amp T to stop slowing down customers on its Unlimited Elite data planAT amp T will no longer throttle speeds for customers who purchase the carrier s most expensive unlimited plan AT amp T Unlimited Elite Credit AT amp TPreviously all three of AT amp T s unlimited plans featured data slowdowns when customers hit a specific limit Now starting the week of July that will no longer be the case for AT amp T s most expensive unlimited plan Read more 2021-07-14 16:41:56
Apple AppleInsider - Frontpage News Apple releases MagSafe Battery Pack for iPhone https://appleinsider.com/articles/21/07/13/apple-releases-magsafe-battery-pack-for-iphone?utm_medium=rss Apple releases MagSafe Battery Pack for iPhoneApple has launched a new MagSafe Battery Pack for the iPhone range which automatically charges alongside the phone Following previous rumors that Apple has been developing a pair of MagSafe Battery Packs for the iPhone the company has now released one on the Apple Store Its compact intuitive design makes on the go charging easy says the Apple Store Listing The perfectly aligned magnets keep it attached to your iPhone or iPhone Pro ーproviding safe and reliable wireless charging Read more 2021-07-14 16:46:37
海外TECH Engadget The Vive Focus 3 is the best standalone VR headset and no, you should not buy it https://www.engadget.com/htc-vive-focus-3-review-standalone-vr-headset-163044765.html?src=rss The Vive Focus is the best standalone VR headset and no you should not buy it nbsp After the Oculus Rift and HTC Vive launched in bringing virtual reality into homes for the first time the two companies have gone in very different directions While Oculus leaned more toward mainstream consumers especially with last year s Quest the Vive targeted businesses and the tech savvy That strategy hasn t always worked out in Vive s favor ーthe long awaited Cosmos headset was a disappointment ーbut it probably makes more sense than competing with Facebook s practically limitless resources head on Enter the Vive Focus a standalone headset that s really only meant for businesses Because it costs more than the Oculus Quest the Focus unsurprisingly offers better hardware ergonomics and build quality than Oculus s headset It s the difference between building a device that s meant to be used throughout the day in professional settings and something you may use once in a while for gaming The Vive Focus is meant to get shit done At first glance the Focus certainly looks more like a premium VR workhorse than the Quest While the Oculus headset has flimsy cloth straps and a minimalist goggle design the Focus looks like an expensive pair of ski goggles fashioned into a VR device Its magnesium alloy frame is still technically plastic but it feels sturdier than the Quest s flimsy case HTC Vive claims it s percent lighter and five times stronger than traditional plastic As much as I liked the Quest you can instantly feel how much Oculus skimped on its materials to reach that low price While Oculus leaned into the sleek and curvy Apple gadget aesthetic HTC Vive went for sharper lines and a more elaborate design The Focus s headstrap for example looks far more involved with a plastic frame tons of cushioning and a rear dial to tighten everything up It s also angled around the sides so it never touches your ears which goes a long way toward making the VR experience feel more comfortable The rear part of the strap may look chunky but that s because it also houses the Focus s battery pack Putting a bit more junk in the trunk helps to balance its weight so it s not leaning down on your nose uncomfortably like some earlier VR headsets The Quest s Elite Strap and rear battery pack offers a similarly balanced feel so the Focus s design isn t completely innovative Devindra Hardawar EngadgetThe Focus s battery pack is removable which allows businesses to keep a single headset running continuously throughout the day One downside to this unique battery design is that the Focus charges via a proprietary AC adapter despite having a USB C port As a concession the company includes a dual USB C cable that connects to the headset and can charge both controllers simultaneously Your desk may end up looking like a sea of cables but at least you can make sure all your VR gear is charged While its design shows just how much HTC Vive has learned over the years it s what s under the hood that makes the Focus special It s powered by a Qualcomm Snapdragon XR chip similar to the Quest but it s also running at a higher clock speed To get faster and more consistent performance HTC Vive also squeezed in a heat pipe and cooling fan at the front of the headset The Focus s displays offer K resolution by pixels a smooth Hz refresh rate and a wide degree field of view In comparison the Quest s screen is close to K and has an estimated to degree field of view depending on where you position the lenses Both headsets offer LCDs with RGB sub pixels which offers a boost in sharpness and clarity compared to PenTile OLED screens from earlier models As far as VR technology goes the Focus has just about everything you d want in a modern headset But there are simple less technical upgrades that I appreciated too like its support for large mm wide glasses It usually takes a bit of effort for me to squeeze a headset over my frames and they inevitably get yanked out whenever I step out of VR But I never had to deal with that on the Focus thanks to its roomy interior There s also an IPD adjustment dial to help you fine tune exactly how its lenses hit your eyes the Quest only gives you a few options to adjust IPD The elaborate padding around the front and rear also goes a long way toward making you forget you re even wearing a VR headset Even the Focus s controllers are better than anything we ve seen from HTC Vive before They look similar to Oculus s with a round tracking ring face buttons as well as the standard grip and trigger buttons Clearly they re light years beyond the enormous controllers that the original HTC Vive came with Still Oculus has the edge when it comes to overall ergonomics The Quest s gamepads are contoured to better fit your hands especially during fast paced games Holding the Focus s controllers meanwhile feels more awkward during lengthy VR sessions Devindra Hardawar EngadgetThankfully though the headset itself is comfortable to wear for hours at a time and it delivers the most immersive standalone virtual reality experiences I ve seen yet I wandered the Louvre in Mona Lisa Beyond the Glass which let me get inches away from several classic da Vinci paintings If I tried to do that in real life I m sure some security guards would swiftly kick me out But in VR I could admire the detail in every work of art I was also surprised just how great everything looked in the Focus There was more detail than in any Quest experience I ve seen and the large field of view genuinely made me feel like I was walking through the Louvre s ornate halls instead of just peering in through a pair of VR binoculars Similarly I had a genuine sense of walking through meadows and tropical beaches in the Nature Treks VR experience The Focus s sharp display once again shined when I peered at statues and wildlife up close but the detail was limited by its mobile hardware degree YouTube videos also looked fantastic when I fired them up in Firefox VR but the experience can be hit or miss depending on the quality of the source And even though the headset doesn t have beefy near field speakers like the Valve Index and HP Reverb G I was surprised that the Focus didn t include any sort of built in multimedia app for watching VR videos but that really underscores one of its biggest problems The Focus has a far more limited software library than the Quest While Oculus has pushed for high profile exclusives and popular games like Vader Immortal and Beat Saber the HTC VivePort store feel practically anemic There are a handful of shared titles across both platforms like Last Labyrinth and Tokyo Chronos but it s clear they aren t a big focus for HTC Vive Devindra Hardawar EngadgetAt this point even installing new experiences is more of a pain on the Focus since you need to take off the headset to purchase apps and games from your web browser Meanwhile the Quest and Quest let you buy things from within the headset and a mobile app But I suppose that s not a huge problem for HTC Vive since the Focus isn t meant for consumers at all Instead IT departments will likely preload the software their workers actually need There s also going to be a Vive Business App Store eventually though it s unclear if that will offer a better purchasing experience That s one reason why we re not scoring this review This headset isn t meant to be consumer friendly And honestly I couldn t even test some of the more popular business apps like Vive Sync s virtual collaboration tool and Engage s event app HTC Vive s previous Focus headsets also gained a reputation for being easy ways to train employees using apps like Virti And while that app certainly looks cool in the Focus I can t exactly tell if it s offering effective training or not There are also features I haven t been able to effectively test out The Focus offers Vive Business Streaming which lets you connect the headset to a VR PC over a USB cable or Wi Fi But it s apparently very picky as none of the USB cables I used were even recognized by the software and some would just throw an error saying they weren t USB capable even though I knew they were You can also stream PC VR over Wi Fi but that only works if your computer is connected directly to your router over Ethernet and if you have a strong wireless connection with the headset That just wasn t possible in my basement office I m hoping HTC Vive works out its connection requirements especially since Oculus Link on the Quest is far less demanding when it comes to cables Devindra Hardawar EngadgetNo matter how you cut it the Quest is still the standalone VR headset most consumers should buy But the Focus is perfect for businesses looking for something a bit more sturdy and powerful For them a device makes more sense than investing tens of thousands on more elaborate training tools 2021-07-14 16:30:44
Cisco Cisco Blog Now is the time to secure industrial operations at scale! https://blogs.cisco.com/internet-of-things/now-is-the-time-to-secure-industrial-operations-at-scale Now is the time to secure industrial operations at scale We re seeing huge demand from industrial organizations all over the World for a new generation of OT security solutions What are the key requirements 2021-07-14 16:00:55
海外科学 NYT > Science Parts of the Amazon Go From Absorbing Carbon Dioxide to Emitting It https://www.nytimes.com/2021/07/14/climate/amazon-rainforest-carbon.html Parts of the Amazon Go From Absorbing Carbon Dioxide to Emitting ItA new study analyzing hundreds of aerial readings of emissions above the forest canopy found that forest regions in the southeast were most affected 2021-07-14 16:38:20
海外科学 NYT > Science Guillain-Barré Syndrome and the Johnson & Johnson Vaccine: What to Know https://www.nytimes.com/2021/07/12/health/covid-guillain-barre-vaccines.html Guillain BarréSyndrome and the Johnson amp Johnson Vaccine What to KnowThe link between the rare neurological disorder and the Johnson Johnson Covid vaccine may be real but the risk appears to be very small 2021-07-14 16:40:38
海外科学 NYT > Science Science Doesn’t Support Idea That Marijuana Aids Athletes’ Performance https://www.nytimes.com/2021/07/09/sports/olympics/marijuana-sports-performance-enhancing.html olympic 2021-07-14 16:13:48
ニュース ジェトロ ビジネスニュース(通商弘報) 米カリフォルニア州、干ばつによる非常事態宣言の対象が50郡に拡大 https://www.jetro.go.jp/biznews/2021/07/713fb60aad04ea00.html 非常事態宣言 2021-07-14 16:10:00
ニュース BBC News - Home Hate will never win, says Jadon Sancho https://www.bbc.co.uk/sport/football/57840951 italy 2021-07-14 16:51:04
ニュース BBC News - Home Online racists to be banned from matches, says PM https://www.bbc.co.uk/news/uk-politics-57837003 hollow 2021-07-14 16:22:54
ニュース BBC News - Home Most Covid rules set to be lifted in Wales on 7 August https://www.bbc.co.uk/news/uk-wales-57823021 augustmost 2021-07-14 16:39:47
ニュース BBC News - Home Plan to end all NI Troubles prosecutions confirmed https://www.bbc.co.uk/news/uk-northern-ireland-57829037 troubles 2021-07-14 16:53:54
ニュース BBC News - Home PMQs: What did Boris Johnson say about the booing of England players? https://www.bbc.co.uk/news/57837572 england 2021-07-14 16:30:53
ニュース BBC News - Home Pogacar wins stage 17 to extend Tour de France lead https://www.bbc.co.uk/sport/cycling/57840945 Pogacar wins stage to extend Tour de France leadDefending champion Tadej Pogacar takes a sublime victory atop the Col du Portet on stage of the Tour de France to extend his lead in the yellow jersey 2021-07-14 16:43:45
ニュース BBC News - Home Messi agrees to stay at Barcelona on reduced wages https://www.bbc.co.uk/sport/football/57836300 earnings 2021-07-14 16:32:20
ビジネス ダイヤモンド・オンライン - 新着記事 中国、一部地域がコロナワクチン接種義務化の方針 - WSJ発 https://diamond.jp/articles/-/276887 一部地域 2021-07-15 01:03:00
北海道 北海道新聞 ボルタンスキーさん死去 仏代表する現代芸術家、76歳 https://www.hokkaido-np.co.jp/article/567226/ 現代芸術家 2021-07-15 01:11: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件)