IT |
気になる、記になる… |
M2チップ搭載「MacBook Pro 13インチ」は高負荷時にCPU温度が108度に達し、サーマルスロットリングが発生 |
https://taisy0.com/2022/06/30/158630.html
|
macbookpro |
2022-06-30 12:53:20 |
IT |
気になる、記になる… |
Amazon、子供向け定額サービス「Amazon Kids+」を3ヶ月99円で利用出来るキャンペーンを開催中 |
https://taisy0.com/2022/06/30/158626.html
|
amazon |
2022-06-30 12:00:16 |
IT |
ITmedia 総合記事一覧 |
[ITmedia ビジネスオンライン] ロッテ、「クイッククエンチ-Cガム」を発売 “懐かしの味”で勝負 |
https://www.itmedia.co.jp/business/articles/2206/30/news095.html
|
itmedia |
2022-06-30 21:50:00 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
【Python】open()、withを使ってファイルに文字列を書き込もう |
https://qiita.com/wantan0423/items/1727c97196bdc0c3100a
|
lstestpy |
2022-06-30 21:35:37 |
python |
Pythonタグが付けられた新着投稿 - Qiita |
Oh My Posh インストール方法 (PowerShell, MobaXterm, Visual Studio Code) |
https://qiita.com/s059ff/items/5f1c59183ae28376436b
|
mobaxtermvisualstudiocode |
2022-06-30 21:16:01 |
Git |
Gitタグが付けられた新着投稿 - Qiita |
Git pushコマンド |
https://qiita.com/Haya-uji/items/15be5baac70f51555b57
|
gitpush |
2022-06-30 21:11:30 |
Git |
Gitタグが付けられた新着投稿 - Qiita |
Git commitコマンド |
https://qiita.com/Haya-uji/items/8cc909a92c8a3386808d
|
gitcommit |
2022-06-30 21:03:45 |
技術ブログ |
Developers.IO |
停止保護を有効にしたEC2インスタンスで再起動できるか検証してみた |
https://dev.classmethod.jp/articles/enable-stop-protection-for-ec2-reboot/
|
inomasoinomasosan |
2022-06-30 12:05:12 |
海外TECH |
MakeUseOf |
How to Open ISO, TAR, ZIP, and 7z Files on a Chromebook |
https://www.makeuseof.com/access-iso-tar-zip-7z-on-chromebook/
|
chrome |
2022-06-30 13:00:14 |
海外TECH |
MakeUseOf |
The 10 Most Essential Tech Gadgets for Music Festivals |
https://www.makeuseof.com/tag/essential-music-festival-tech/
|
festival |
2022-06-30 12:02:25 |
海外TECH |
DEV Community |
How to Change TextField Height and Width in Flutter? |
https://dev.to/kuldeeptarapara/how-to-change-textfield-height-and-width-in-flutter-4f57
|
How to Change TextField Height and Width in Flutter What is the TextField field The most popular text input widget that enables users to import keyboard inputs into an app is TextField in Flutter An input element called a TextField or TextBox stores alphanumeric information such as name password address etc It is a GUI control element that lets users enter text using programmable code The problem faces in TextFieldWhen you add a TextField to your page its default width and height are configured to cover the maximum lines of text its parent enabled By default the TextField height is dependent on the text font size And its width is your device s screen width Checkout the latest guide on how to use hexadecimal color strings in Flutter Set the height of TextFieldThere are three different ways to adjust the height of a TextField You can use the MaxLines MinLines property to increase TextField s total height when new text is input and you can use the Font Size and Content Padding to increase the height and enable single line content Change the font size to increase TextField s height In TextField there is a property style TextStyle Inside the textstyle there is a property called font size Then give the appropriate font size TextField decoration InputDecoration border OutlineInputBorder labelText Please search here style TextStyle fontSize Output Add padding of text to increase TextField s heightIn InputDecoration there is a property called contentPadding TextField decoration InputDecoration labelText Please search here contentPadding EdgeInsets all border OutlineInputBorder style TextStyle fontSize OutputMaxine s MinLines property to increase TextField s heightIf you want to increase the height of the TextField with the extended text entered you can use the MaxLines and MinLines properties TextField decoration InputDecoration labelText Please search here contentPadding EdgeInsets all border OutlineInputBorder style TextStyle fontSize maxLines minLines OutputChanging TextField WidthTo set the TextField width you can wrap your TextField inside the SizedBox widget and give the width SizedBox width child TextField decoration InputDecoration labelText Please search here contentPadding EdgeInsets all border OutlineInputBorder style TextStyle fontSize maxLines minLines Output ConclusionSo far we have learned that how you can change height and width in Flutter with the help of the TextField widget We learned a use of TextField widget that is specially using to set a height and width of the text field where user fill their input |
2022-06-30 12:50:14 |
海外TECH |
DEV Community |
Re2j instead of default regEx in Java: when and how to use it |
https://dev.to/daniilroman/re2j-instead-of-default-regex-in-java-when-and-how-to-use-it-5bgn
|
Rej instead of default regEx in Java when and how to use itHi everyone I m Daniil and I m a Java developer at Just AI In this article I m going to tell you how we faced a backtracking issue for regex and how we solved this problem using rej But most importantly I ll cover both advantages and disadvantages of this library Here s what you ll learn How we got a problem with backtracking in a regular expression How we dealt with it using rej What not obvious issues can you face while using this library What is backtracking There s been a lot of discussions around this problem And for sure I m not the first or the last person to raise this question In a few words this problem appears under specific circumstances and causes regex matching to run for a really long time Also the real problem starts when you have no control over the regex your customers create and handling customer data is a very sensitive task You can checkout this article for more details and dive deeper into the subject How we addressed this issueWe re developing JAICP is a conversational AI platform that helps users create chatbots and often have to deal with customer information in conversations with bots Of course customer data can be quite sensitive But we really care about privacy and obfuscate confidential information It looks like this The key moment here is that customers can set their own regex to obfuscate data and create a string as a substitution Let s catch problem firstNow that we know what our task is let s first take a look at a rather obvious solution with the standard Java regex We have quite a common example of obfuscation and it s also a basic pattern for our case It is an email obfuscation Let s substitute them with xxxx xxxx xx for example Here is an email regex pattern for substitution a z amp a z amp a z a z a z a z a z a z Instead of this regex customers can write whatever they want Let s see how long the following code will run with the standard java engine String inputText TestUtils getRandomLongWord test test com Matcher matcher Pattern compile TestUtils emailRegex matcher inputText matcher replaceAll XXX XXX XX In this and the following examples we ll generate random text with target injections In the example above it s an email address It should look something like the following UUID randomUUID test test com UUID randomUUID We call randomUUID times and inject target text every calls I used an i U CPU GHz × machine and jdk Execution time ms It s quite fast But let s see what happens when the target text hasn t been injected The text is the same but now it looks like this UUID random UUID random String inputText TestUtils getRandomLongWord Matcher matcher Pattern compile TestUtils emailRegex matcher inputText matcher replaceAll XXX Execution time ms We seem to have a backtracking problem now SolutionTo fix it we ll use the Rej library This library allows for running regexes in linear time And it doesn t use a standard NFA approach for a regex engine but DFA instead There are articles like this and this one to help you find your way around it It s important to note that this library was invented exactly for the situations when we don t know the regex to execute If you re facing the same issue you definitely should give it a go But is Rej so good that it can fix the seconds issue Let s see To check it we should just substitute our Pattern with com google rej Pattern and that s it com google rej Pattern compile emailRegex matcher TestUtils getRandomLongWord replaceAll XXX The new execution time is ms Amazing I m sure you are with me in wanting to call it a silver bullet and start to use this library everywhere But first let s take a closer look at a few more things What about the performance To measure performance we will use the JMH benchmark It s a popular open source tool for such purposes The benchmark body looks the same as in the example above Benchmark BenchmarkMode Mode AverageTime Fork value Warmup iterations Measurement iterations public void standartRegexWithEmailDataBenchmark MyState myState Blackhole blackhole myState standartEmailRegex matcher myState emailInputTextWords replaceAll XXX standartEmailRegex is java util regex Pattern compile TestUtils emailRegex The average replaceAll execution time for the pattern with email injection is Default java pattern secondRej pattern secondWe can see little performance advantages of the rej over the default pattern But the main thing is the rej result wasn t worse then the default one And that means we can use it even for call intensive parts of our program What about the big dictionary The rej performs well in practice But it s worth checking a case where we have a big dictionary of words to match with the target text Let s take a look at an example with the US cities Boston Chicago Washington It transfers to regex like Boston Chicago Washington Of course we use different data at work But as an example I took a list of the US cities from this website I got it using the following js code Array from document getElementsByClassName topic content pt sm getElementsByTagName section slice flatMap x gt Array from x children children map x gt x outerText This resulted in a dictionary with items It s smaller than the one we have in production but it s still quite big So we have a default java util regex Pattern java util regex Pattern compile String join TestUtils usCitiesAndTowns And com google rej Pattern com google rej Pattern compile String join TestUtils usCitiesAndTowns We will use the JMH again An average replaceAll execution time for the pattern with cities injection is Default java pattern secondRej pattern secondIt means Rej is times slower then the default java regex But what about the pattern size It s not an obvious one but let s check compiled size of our pattern Could something like Pattern compile d be a problem To see we ll use ObjectSizeCalculator getObjectSize from nashorn package It s not available in versions newer than JDK but in version it s quite a good way to measure an object size in runtime So we ll measure the following code Pattern compile String join TestUtils usCitiesAndTowns Where TestUtils usCitiesAndTowns is that big dictionary from the example above The final result should be something like ObjectSizeCalculator g etObjectSize Pa ttern compile String join TestUtils usCitiesAndTowns com google rej Pattern bytes mb java util regex Pattern bytes mb We got a five fold difference The rej pattern spends x more memory then the default one Even our big but not gigantic dictionary uses up to mb of memory But the real life dictionary for such cases could be much bigger And it could be duplicated to several services and instances So our pattern could take a lot of memory ConclusionWe ve discussed the rej from different sides and mentioned some obscure but important disadvantages To sum it all up The main goal of this library is to solve long execution issues for cases with regex coming from the outside When using this library make sure to test it on your data and for your cases because There could be opposite performance results The Compiled Pattern could use more memory which may cause problems Rej doesn t support all sets of regex abilities from the default java implementation P S The entire piece of code is available on github |
2022-06-30 12:21:43 |
海外TECH |
DEV Community |
Tailwind CSS —How to Design Custom Animations |
https://dev.to/canopassoftware/tailwind-css-how-to-design-custom-animations-4hpk
|
Tailwind CSS ーHow to Design Custom Animations Wanna learn how to design custom animations using TailwindCSS Here s the detailed guide by our team that will help you learn to design custom animations Days are gone when web designers were using gif files to show some animations It s easy to use CSS animations instead of using external files you never know gifs can make your site slow However CSS provides the facility to apply animations we will discuss how to add custom animations using Tailwind CSS in this blog Here s the list of all animations you will learn in this guide wiggleheartBeatflip horizontalflip verticalswingrubberBandflashheadShakewobblejelloFor detailed implementation navigate to blog canopas com |
2022-06-30 12:19:57 |
海外TECH |
DEV Community |
Trying my hands on Neo4j with some IoT data |
https://dev.to/networkandcode/trying-my-hands-on-neo4j-with-some-iot-data-28g7
|
Trying my hands on Neoj with some IoT data IntroductionHello time for some GraphDB Neoj is a Graph DB written in Java the j in j at the end stands for Java I like the variety of self placed courses and the certifications offered by them all for free wow Cypher is the declarative query language we would be using to interact with the Neoj database We can run Cypher queries directly on the Neoj browser and can use one of the drivers to make calls to the database from our application In this post we shall focus on running certain Cypher queries from the browser and see some key GraphDB concepts along the way Let s get started SandboxHead over to this link signup signin and create a sandbox gt create a project choose Blank Project We have choosen blank project cause we can also load our own data instead of working with some pre built data Click on the Open button to open the project with the Neoj browser Delete allI have already added some data to the blank project before so I m going to delete all the nodes and their relationships first you may not need this yet however you may come back to this step later on when needed MATCH n DETACH DELETE nDeleted nodes deleted relationship completed after ms In the command above the parentheses pair represents a node and n is a variable that represents a node so we are matching all nodes as there are no conditions and subsequently deleting those including their relationships using DETACH DELETE NodeA node is a discrete entity for our IoT use case it could be an Edge device power source etc Refer to this github repo for a sample IoT data modeling In Cypher a Node is enclosed in parantheses for ex e refers to a node represented by a variable e LabelsAnd then comes label s which are denoted by colon that we could use to tag a node for instance if it s an edge device we could label it EdgeDevice So now our node becomes e EdgeDevice Note that labels are usually written in PascalCase We could add multiple labels to a node so let s also label our edge device as a thing making our node look like e EdgeDevice Thing PropertiesProperties are key value pairs defining the actual object Let s say we want to give some names to our edge devices says Edge Device etc and another property to identify the floor in which they are installed like GF F F etc The properties for our first device would then be like name Edge Device floor GF Create nodesOur node should finally look like e EdgeDevice Thing name Edge Device floor GF Note that the variable name is only optional and is required only if we reuse the variable in our query Let s create the node on the browser CREATE e EdgeDevice Thing name Edge Device floor GF RETURN eYou should now see a graph output like And the respective table should be identity labels EdgeDevice Thing properties name Edge Device floor GF Note that the identity was auto generated ConstraintsWhat if we create another node with the same properties CREATE e EdgeDevice Thing name Edge Device floor GF RETURN eIt would get created and we would now have two similar nodes MATCH e EdgeDevice Thing name Edge Device RETURN COUNT e let s say we want the name of the device to be unique in such case we could create a constraint to set the name as unique But before doing so we should get rid of the duplicates as otherwise it would throw an error Let s first get the IDs of the nodes MATCH e EdgeDevice Thing RETURN ID e So there are two nodes with IDs and we can delete one let s go with Note the numbers may vary in your case MATCH e WHERE ID e DELETE eDeleted node completed after ms Let s now create the constraint CREATE CONSTRAINT unqiue edge device name FOR e EdgeDevice REQUIRE e name IS UNIQUEAdded constraint completed after ms Now if we try to create another device with the same name it should fail CREATE e EdgeDevice Thing name Edge Device floor GF RETURN eNeo ClientError Schema ConstraintValidationFailedNode already exists with label EdgeDevice and property name Edge Device The above error denotes ClientError as the error classification Schema as the error category and ConstraintValidationFailed as the error title Import nodesSo far we have added only one edge device we could add other devices as required in a similar manner However it s common to import many such nodes from a CSV as it would be faster than executing CREATE statements individually I am just going to add some data in Google sheets as follows There are devices in the table from device to I then published it with the following settings Let s now create nodes LOAD CSV WITH HEADERS FROM lt google spreadsheet link gt AS rowCREATE EdgeDevice Thing name row name floor row floor Added labels created nodes set properties completed after ms Awesome so we have successfully created the edge device nodes Manufacturer nodesLet s do a similar exercise to add nodes for the manufacturers We would add only one property which is name Note that I got the companies list from hereLet s create those But this time let s go with a loop as we would only add companies WITH Cooler Screens Farmer s Fridge Simplisafe Inspire Enovo Tive Xage Security Samsara Arm Clearblade AS manufacturersFOREACH manufacturer IN manufacturers CREATE m Manufacturer name manufacturer Added labels created nodes set properties completed after ms Let s also add a constraint for the name CREATE CONSTRAINT unqiue manufacturer name FOR m Manufacturer REQUIRE m name IS UNIQUE Sensor typesLet s add few other nodes for the sensor type I obtained the info form this linkWITH Temperature Humidity Pressure Proximity Level Accelerometers Gyroscope Gas Infrared Optical AS sensorTypesFOREACH sensorType IN sensorTypes CREATE SensorType name sensorType Added labels created nodes set properties completed after ms RelatioshipsSo far we have been adding nodes for now these nodes are isolated data entities with out any relationships to other nodes Let s now add a relationship between the nodes Edge Device and Cooler Screens Relationships are represented by arrows and square brackets They are unidirectional gt or lt They also have a label like node but it s only one label for a relationship unlike a node and the relationship label is also called a relationship type Like a node we can also add properties to a relationship So if we use r as the variable and IS MANUFACTURED BY as the label it should now become r IS MANUFACTURED BY gt Just like nodes using a variable is optional here too and is useful when there is a need to reuse it Ok so now let s put the source and target nodes in the relation so the final Cypher would be Edge Device Thing name Edge Device gt Manufacturer name Cooler Screens We have formed the cypher we just need to put CREATE before it to create the relation Match e EdgeDevice Thing name Edge Device m Manufacturer name Cooler Screens CREATE e r IS MANUFACTURED BY gt m RETURN e r mLet s use MATCH to get the graph MATCH e Edge Device Thing name Edge Device r IS MANUFACTURED BY gt m Manufacturer name Cooler Screens RETURN e r mThe graph should look like Note that we can drag the graph objects for desired visibility SensorTo say Edge device device supports Temperature sensor Match e EdgeDevice Thing name Edge Device s SensorType name Temperature CREATE e r HAS SENSOR TYPE gt s RETURN e r sThe returned graph should beLet s now see the final graph of Edge device with both relationships MATCH e EdgeDevice Thing r gt n RETURN e r nThus we have put some minimal data relevant to IoT and explored some fundamental concepts functionalities of GraphDB Cypher and the Neoj browser Thank you for reading |
2022-06-30 12:17:44 |
海外TECH |
DEV Community |
MERN Stack Project Series☀ |
https://dev.to/himanshupal0001/mern-stack-project-series-2i3o
|
happy |
2022-06-30 12:11:17 |
海外TECH |
DEV Community |
Would you like to know how people are building products? |
https://dev.to/pavelkeyzik/would-you-like-to-know-how-people-are-building-products-2n54
|
Would you like to know how people are building products Hey guys I ve always had a questions like How this product build What was the process What issues products were facing And my plans now is to build a small pet project with the idea in mind to share with people the progress plans so anyone can see how I move forward step by step and what I learn I ve created an account on Twitter and started to add tweets like We ve added an ability to switch theme We re planning to write some tests using Cypress and so on At the moment this Twitter is more like a place to share small details that I m working on and to be able read this in the future I don t have plans to grow the audience or something like this but I do have a question for you Do you know any Twitter account that have same idea Like someone who build product share their stories knowledge and so on I do want to share something that will be helpful not only for me but for other people as well Or if you re interesting in some specific topic that I can cover please let me know I d like to share everything about the project The project s Twitter lives here and if you have any suggestion just let me know I d love to share more engineering details or how I plan something Just everything that can be helpful P S I hope that some day I ll publish this as an Open Source project that you can work on to gain experience because I really love when people share their products and let anyone to add something they can use in future I even happy when people fix something because everyone wants to implement new feature but not a lot of people want to fix something old |
2022-06-30 12:11:11 |
海外TECH |
DEV Community |
Visualizing Supabase Data using Metabase |
https://dev.to/supabase/visualizing-supabase-data-using-metabase-5a43
|
Visualizing Supabase Data using MetabaseData helps organizations make better decisions With a programming language like Python to analyze your data and transform data into visual representations you can effortlessly tell the story of your business One way to create customized visuals from your data would be to use data visualization libraries in Python like Matplotlib Seaborn Ggplot Plotly or Pandas When you want to accomplish this task with little or no code not even SQL you might consider using tools like Metabase With Metabase a powerful visualization tool you can quickly turn your data into easy to understand visuals like graphs pie charts flow diagrams and much more Then using Metabase s intuitive interface you can cut through the data noise and focus on what s essential for your business In the previous blog of this series we explained how to use Python to load data into Supabase In this blog we will create different kinds of charts out of the data stored in Supabase using Metabase PrerequisitesBefore we dive in let s look at some prerequisites that you will need Supabase project with dataBased on our previous article we assume we already have a Supabase project setup and have data loaded into it Metabase Docker ContainerTo take advantage of the open source version of Metabase you can use the Metabase docker container here Visualizing data in Supabase with Metabase Launching MetabaseTo launch Metabase simply go to http localhost setup which is the default port that the Metabase server will be listening to After Metabase is launched select your preferred language and add your contact information In the Add your data markdown you will need to choose PostgreSQL You will be prompted to add the necessary connection information to your Supabase project Go to your Supabase project and hit Settings gt Database to get the database info Enter the necessary information on Metabase and hit next Finally select your data preference after which you will land on the Metabase homepage View Database and TablesWe can now see the Supabase DB Supabase project under Our data To view the tables go to SupabaseDB gt public View Table Data InsightsGo back to the home page and select public schema under Try these x rays based on your data Here is the output of the product table As you can see we can get some handy information from this like How many products are present with a given range of inventory count How many products are present for a given range of price The ratio between the number of employees to the number of products How many products each vendor has created If you have column specific views you can select the zoom in option under More x rays For example let s select the total employees field With information like this you will be able to answer some key questions likeWhat are some common statistics for company employees like average minimum maximum and standard deviation What is the distribution of the employees across different geo locations What is the distribution of the employees across different vendors Using custom SQL queriesWe can also use custom queries to set up our dashboards To do this go to New gt SQL query Next under the database select SupabaseDB We will be using the following SQL query SELECT Vendor vendor name product name Vendor total employeesFROM Product LEFT JOIN Vendor on Product vendor id Vendor vendor idWHERE Vendor total employeesThis query should fetch us the vendor name and the product where the number of employees for a given vendor is less than To run the SQL query hit the play button This will be shown below in the output window To visualize the data hit the visualization button Next select the type of visualizer you want Let us choose Bar Choose the appropriate x axis and y axis fields and you will be able to view the data in bar format ConclusionData visualization empowers organizations to turn unused data into actionable insights leading to faster and better decision making Why wait With our free tier Supabase account you can start a new project today and use Metabase to visualize your app data If you have any questions please reach out via Twitter or join our Discord |
2022-06-30 12:08:21 |
海外TECH |
DEV Community |
How Digital Video as a Technology Works |
https://dev.to/forasoft/how-digital-video-as-a-technology-works-50b1
|
How Digital Video as a Technology WorksBy Nikolay S In this article we ll try to explain what digital video is and how it works We ll be using a lot of examples so even if you wanna run away before reading something difficult fear not we ve got you So lean back and enjoy the explanation on video from Nikolay our CEO Analog and digital videoVideo can be analog and digital All of the real world information around us is analog Waves in the ocean sound clouds floating in the sky It s a continuous flow of information that s not divided into parts and can be represented as waves People perceive exactly analog information from the world around them The old video cameras which recorded on magnetic cassettes recorded information in analog form Reel to reel tape and cassette recorders worked on the same principle Magnetic tape was passed through the turntable s magnetic heads and this allowed sound and video to be played Vinyl records were also analog Such records were played back strictly in the order in which they were recorded Further editing was very difficult So was the transfer of such recordings to the Internet With the ubiquity of computers almost all video is in digital format as zeros and ones When you shoot video on your phone it s converted from analog to digital media and stored in memory and when you play it back it s converted from digital to analog This allows you to stream your video over a network store it on your hard drive and edit and compress it What a digital video is made ofVideo consists of a sequence of pictures or frames that as they change rapidly make it appear as if objects are moving on the screen This here is an example of a how a video clip is done What is Frame RateFrames on the screen change at a certain rate The number of frames per second is the frame rate or framerate The standard for TV is frames per second and frames per second for IMAX in movie theaters The higher the number of frames per second the more detail you can see with fast moving objects in the video Check out the difference between and FPS What is pixelAll displays on TVs tablets phones and other devices are made up of little glowing bulbs pixels Let s say that each pixel can display one color technically different manufacturers implement this differently In order to display an image on a display it is necessary for each pixel on the screen to glow a certain color Thanks to this technical device of screens in digital video each frame is a set of colored dots or pixels The number of such dots horizontally and vertically is called the picture resolution The resolution is recorded as × The first number is the number of pixels horizontally and the second number vertically The resolution of all frames in a video is the same and this in turn is called the video resolution Let s take a closer look at a single pixel On the screen it s a glowing dot of a certain color but in the video file itself a pixel is stored as digital information numbers With this information the device will understand what color the pixel should light up on the screen What are color spacesThere are different ways of representing the color of a pixel digitally and these ways are called color spaces Color spaces are set up so that any color is represented by a point that has certain coordinates in that space For example the RGB Red Green Blue color space is a three dimensional color space where each color is described by a set of three coordinates each of them is responsible for red green and blue colors Any color in this space is represented as a combination of red green and blue Here is an example of an RGB image decomposed into its constituent colors There are many color spaces and they differ in the number of colors that can be encoded with them and the amount of memory required to represent the pixel color data The most popular spaces are RGB used in computer graphics YCbCr used in video and CMYK used in printing CMYK is very similar to RGB but has base colors Cyan Magenta Yellow Key or Black RGB and CMYK spaces are not very efficient because they store redundant information Video uses a more efficient color space that takes advantage of human vision The human eye is less sensitive to the color of objects than it is to their brightness On the left side of the image the colors of squares A and B are actually the same It just seems to us that they are different The brain forces us to pay more attention to brightness than to color On the right side there is a jumper of the same color between the marked squares so we i e our brain can easily determine that in fact the same color is there Using this feature of vision it is possible to display a color image by separating the luminosity from the color information Subsequently half or even a quarter of the color information can simply be discarded in compression representing the luminosity with a higher resolution than the color The person will not notice the difference and we will essentially save on storage of the information about color About how exactly color compression works we will talk in the next article The best known space that works this way is YCbCr and its variants YUV and YIQ Here is an example of an image decomposed into components in YCbCr Where Y is the luminance component CB and CR are the blue and red color difference components It is YCbCr that is used for color coding in video Firstly this color space allows compressing color information and secondly it is well suited for black and white video e g surveillance cameras as the color information CB and CR can simply be omitted What is Bit DepthThe more bits the more colors can be encoded and the more memory space each pixel occupies The more colors the better the picture looks For a long time it has been standard for video to use a color depth of bits Standard Dynamic Range or SDR video Nowadays bit or bit High Dynamic Range or HDR video is increasingly used It should be taken into account that in different color spaces with the same number of bits allocated per pixel you can encode a different number of colors What is Bit RateBit rate is the number of bits in memory that one second of video takes To calculate the bit rate for uncompressed video take the number of pixels in the picture or frame multiply by the color depth and multiply by the number of frames per second pixels X pixels X bits X frames per second bits per secondThat s bytes megabytes or gigabytes per second Those minute videos would take up gigabytes or terabytes of memory This brings us to why video compression methods are needed and why they appeared Without compression it s impossible to store and transmit that amount of information over a network YouTube videos would take forever to download ConclusionThis is a quick introduction in the world of video Now that we know what it consists of and the basics of its work we can move on to the more complicated stuff Which will still be presented in a comprehensive way |
2022-06-30 12:03:51 |
Apple |
AppleInsider - Frontpage News |
CarPlay's forthcoming fuel app will let drivers buy gas from the car |
https://appleinsider.com/articles/22/06/30/carplays-forthcoming-fuel-app-will-let-drivers-buy-gas-from-the-car?utm_medium=rss
|
CarPlay x s forthcoming fuel app will let drivers buy gas from the carInitially believed to be a guide for drivers to gas stations future CarPlay apps will be able to pay for fuel right from the dash ーand they may arrive as soon as the launch of iOS Apple s sneak peek at the future of CarPlay included the news that it was adding two new categories of apps Specifically fuel apps and what the company called driving task ones Fuelling ones are tied to Apple Maps and provide an extended version of the current ability to find nearby gas stations In this version of CarPlay not expected in cars until late the app would include filtering gas stations by price Read more |
2022-06-30 12:43:46 |
Apple |
AppleInsider - Frontpage News |
iPad finally has a Weather app, but there are better options |
https://appleinsider.com/articles/22/06/30/ipad-finally-has-a-weather-app-but-there-are-better-options?utm_medium=rss
|
iPad finally has a Weather app but there are better optionsApple has finally ported the Weather app to the iPad twelve years after its debut Of course it has stiff competition but the company will also work with developers by introducing WeatherKit Apple Weather on iPadThe original iPhone included weather during its launch powered by Yahoo and then The Weather Channel until Read more |
2022-06-30 12:30:25 |
Apple |
AppleInsider - Frontpage News |
Apple gives in to South Korea, enables third-party payments for app developers |
https://appleinsider.com/articles/22/06/30/apple-gives-in-to-south-korea-enables-third-party-payments-for-app-developers?utm_medium=rss
|
Apple gives in to South Korea enables third party payments for app developersApps that are distributed solely in South Korea can now include their own in app payment system but Apple will block certain App Store features if they do ーand will still take a cut Following South Korea s introduction of new laws regarding app stores Apple has now formally allowed developers to adopt their own in app payment systems Instead of all payments going via Apple and its own App Store developers can choose alternatives ーbut with conditions In a new support document for developers Apple says qualifying developers can use what it calls its StoreKit External Purchase Entitlement feature Read more |
2022-06-30 12:24:14 |
海外TECH |
Engadget |
The Apple Watch Series 7 drops to $312 at Amazon |
https://www.engadget.com/the-apple-watch-series-7-drops-to-312-at-amazon-124641088.html?src=rss
|
The Apple Watch Series drops to at AmazonAmazon has brought back a great price on the Apple Watch Series The mm blue model is on sale for right now or off its normal price That s close to the all time low price we ve seen on the Series but the best prices vary depending on your choice of color If blue isn t your style the midnight starlight and green models are on sale for each at the moment too Buy Series mm blue at Amazon The Series wasn t a huge departure from the Series that came before it but Apple did make a few key updates First and foremost the Series has more screen space making it easier to see text and graphics It s also the first Apple Watch that s IPX dust resistant so it s a bit more durable than previous models Finally it supports faster charging that can power up the wearable from to in less than an hour Otherwise the Series shares most of the same features with the previous edition It has an always on display built in GPS heart rate monitor ECG tool and blood oxygen measurement capabilities along with things like fall detection Emergency SOS and more Our biggest gripe with it is that its sleep tracking abilities are a bit lackluster It mostly tracks how long you slept the night before as well as respiration rate but you ll get much more information from competing devices from the likes of Fitbit Garmin and others Nevertheless we still consider the Apple Watch Series to be the best smartwatch available right now nbsp Follow EngadgetDeals on Twitter and subscribe to the Engadget Deals newsletter for the latest tech deals and buying advice |
2022-06-30 12:46:41 |
海外TECH |
Engadget |
Amazon discounts Blink Indoor and Outdoor cameras ahead of Prime Day |
https://www.engadget.com/amazon-discounts-blink-indoor-and-outdoor-cameras-ahead-of-prime-day-122556497.html?src=rss
|
Amazon discounts Blink Indoor and Outdoor cameras ahead of Prime DayIf you ve had any Blink cameras on your to buy list you re in luck Amazon has discounted both the Indoor and Outdoor versions of its compact wireless security cameras for Prime members so you can get a Blink Indoor one camera pack for and a Blink Outdoor one camera bundle for The wired Blink Mini has also dropped in price to while the Blink Video Doorbell has been discounted to only Buy Blink Indoor Prime exclusive at Amazon Buy Blink Outdoor Prime exclusive at Amazon Buy Blink Mini Prime exclusive at Amazon Buy Blink Video Doorbell Prime exclusive at Amazon Blink cameras are affordable options for those that want some kind of security camera network keeping watch over their home Blink Indoor and Outdoor cameras share most of the same features they record p video and support infrared night vision two way audio motion alerts and temperature monitoring As the name suggests the Blink Outdoor devices have a weather resistant design so you can mount them over your front door above your garage and in any other outdoor space you want to monitor Arguably the best thing about Blink cameras is their wireless design Neither the Indoor nor Outdoor devices need to be plugged in rather they run on two AA batteries each and communicate wirelessly to the Blink Sync Module That gives you much more freedom when it comes to placing these gadgets around your home Plus the batteries should last up to two years before you need to replace them If you d rather try the system out before fully diving in the Blink Mini is a good way to do that It has all of the features the standard Blink cameras do but it s wired rather than wireless While that makes it a bit less versatile it s hard to argue with a capable security camera that comes in at only As for the Video Doorbell it combines the features of a Blink camera with smart doorbell features Along with two way audio and motion alert support it ll record videos in p and you can choose to hardwire it to your existing doorbell system or keep it wireless Get the latestAmazon Prime Dayoffers by following EngadgetDeals on Twitter and subscribing to the Engadget Deals newsletter |
2022-06-30 12:25:56 |
海外TECH |
Engadget |
Apple now lets apps use third-party payment providers in South Korea |
https://www.engadget.com/apple-now-allows-third-party-payments-for-apps-in-south-korea-120524308.html?src=rss
|
Apple now lets apps use third party payment providers in South KoreaApple has started allowing developers to use alternative payment systems for apps in South Korea it announced It made the move to comply with a new law in the nation requiring major app stores to allow alternative payment methods Apple is still taking a cut from app transactions though albeit with a slight reduction in the fee nbsp To use alternatives to Apple s own payment system developers must create a special version of their apps for the Korean App Store Apple has approved four South Korean payment providers KCP Inicis Toss and NICE and any others must be approved by Apple via a request on its developer website Certain features like Ask to Buy and Family Sharing won t be available and Apple takes no responsibility for subscription management or refunds nbsp Apple originally appealed the law but eventually agreed to reduce its usual percent commission to percent That effectively matches Google which unveiled its Play Store compliance plans shortly after the law was announced with a four percent discounts on its usual commission nbsp Apple has faced attacks on its policies over the past few years kicked off after Epic Games sued it for removing Fortnite from the App Store In the US proposed Senate bills would force Apple to allow app sideloading on iOS and other measures Last year Apple published a page report explaining why it should be able to keep its ecosystem closed nbsp |
2022-06-30 12:05:24 |
Cisco |
Cisco Blog |
Cisco CX was All In at Cisco Live 2022 |
https://blogs.cisco.com/customerexperience/cisco-cx-was-all-in-at-cisco-live-2022
|
Cisco CX was All In at Cisco Live Take a look back at the Cisco Customer Experience CX presence at Cisco Live in Las Vegas See what it was like to be back at a live and in person event with CX for the first time in years |
2022-06-30 12:00:56 |
海外科学 |
NYT > Science |
An Excavation in the Sea Depths Recovers Hercules From the Afterlife |
https://www.nytimes.com/2022/06/30/science/shipwreck-ancient-roman-hercules.html
|
An Excavation in the Sea Depths Recovers Hercules From the AfterlifeAn ancient shipwreck off the coast of Greece is yielding secrets as an archaeological exploration project dives deeper The effort relies on technological innovation |
2022-06-30 12:27:48 |
ニュース |
@日本経済新聞 電子版 |
「日銀の守り」避け、国債売り拡大 緩和修正観測根強く
https://t.co/XdYxB8kpup |
https://twitter.com/nikkei/statuses/1542481988921475073
|
緩和 |
2022-06-30 12:15:38 |
ニュース |
BBC News - Home |
Logan Mwangi murder: Mum, stepdad and teen sentenced |
https://www.bbc.co.uk/news/uk-wales-61952430?at_medium=RSS&at_campaign=KARANGA
|
catastrophic |
2022-06-30 12:56:02 |
ニュース |
BBC News - Home |
Post Office scandal victims victims to get more money |
https://www.bbc.co.uk/news/business-61992764?at_medium=RSS&at_campaign=KARANGA
|
interim |
2022-06-30 12:53:42 |
ニュース |
BBC News - Home |
Pride: Stay at home if you have monkeypox symptoms |
https://www.bbc.co.uk/news/health-61994873?at_medium=RSS&at_campaign=KARANGA
|
director |
2022-06-30 12:01:03 |
ニュース |
BBC News - Home |
England v India: Ben Stokes says hosts will maintain aggressive approach |
https://www.bbc.co.uk/sport/cricket/61994867?at_medium=RSS&at_campaign=KARANGA
|
England v India Ben Stokes says hosts will maintain aggressive approachEngland will try to operate in the same way in the delayed fifth Test against India despite trailing in the rearranged series says Ben Stokes |
2022-06-30 12:07:06 |
ニュース |
BBC News - Home |
Wimbledon 2022: Watch Alastair Gray celebrates too soon as Taylor Fritz wins an unlikely set point |
https://www.bbc.co.uk/sport/av/tennis/61995473?at_medium=RSS&at_campaign=KARANGA
|
Wimbledon Watch Alastair Gray celebrates too soon as Taylor Fritz wins an unlikely set pointWatch Britain s Alastair Gray celebrate too soon as Taylor Fritz dives to win an unlikely set point at Wimbledon |
2022-06-30 12:32:05 |
ニュース |
BBC News - Home |
Snake Island: Why Russia couldn't hold on to strategic Black Sea outcrop |
https://www.bbc.co.uk/news/world-europe-61992491?at_medium=RSS&at_campaign=KARANGA
|
defeat |
2022-06-30 12:27:43 |
北海道 |
北海道新聞 |
ネット中傷対策、法制化で開示も IT大手対象、総務省会議 |
https://www.hokkaido-np.co.jp/article/700228/
|
有識者会議 |
2022-06-30 21:48:00 |
北海道 |
北海道新聞 |
観光船やフェリーの安全対策、道HPで公開 出航基準や連絡体制示す |
https://www.hokkaido-np.co.jp/article/700219/
|
安全対策 |
2022-06-30 21:38:16 |
北海道 |
北海道新聞 |
そば店「かし和家」95年の歴史ひもとく 浦幌町立博物館が企画展 |
https://www.hokkaido-np.co.jp/article/700152/
|
町立 |
2022-06-30 21:44:32 |
北海道 |
北海道新聞 |
食材高騰、給食にも影響 帯広市教委 献立工夫、交付金充当も |
https://www.hokkaido-np.co.jp/article/700154/
|
値上がり |
2022-06-30 21:39:20 |
北海道 |
北海道新聞 |
タイの証券会社を買収へ 三菱UFJ、野村から |
https://www.hokkaido-np.co.jp/article/700222/
|
三菱ufj |
2022-06-30 21:37:00 |
北海道 |
北海道新聞 |
鍵山、新SPの曲はロック 「どんどんチャレンジ」 |
https://www.hokkaido-np.co.jp/article/700221/
|
北京冬季五輪 |
2022-06-30 21:37:00 |
北海道 |
北海道新聞 |
ソロプチミスト根室、43年の歴史に幕 図書寄贈やスポーツ大会運営…地域に貢献 |
https://www.hokkaido-np.co.jp/article/700129/
|
働く女性 |
2022-06-30 21:37:21 |
北海道 |
北海道新聞 |
中国艦3隻が日本一周 沖縄を北上、防衛省公表 |
https://www.hokkaido-np.co.jp/article/700213/
|
中国海軍 |
2022-06-30 21:28:00 |
北海道 |
北海道新聞 |
シャッターにピノキオ!? 夏の朝限定の影絵出現 美幌・沖田香露園 |
https://www.hokkaido-np.co.jp/article/700133/
|
香露園 |
2022-06-30 21:24:19 |
北海道 |
北海道新聞 |
実験で小6女児重いやけど、群馬 メタノールが引火し計4人けが |
https://www.hokkaido-np.co.jp/article/700212/
|
群馬県沼田市西倉内町 |
2022-06-30 21:23:00 |
北海道 |
北海道新聞 |
ほんこんさんに東京地裁が賠償命令 室井佑月さんの「社会的評価低げた」 |
https://www.hokkaido-np.co.jp/article/700209/
|
室井佑月 |
2022-06-30 21:22:09 |
北海道 |
北海道新聞 |
北見市とサハリンの友好都市 50年記念事業困難 軍事侵攻後連絡不能に |
https://www.hokkaido-np.co.jp/article/700163/
|
軍事侵攻 |
2022-06-30 21:22:05 |
北海道 |
北海道新聞 |
「同性愛は精神障害か依存症」 自民党の会合で差別的文書配布 |
https://www.hokkaido-np.co.jp/article/700206/
|
国会議員 |
2022-06-30 21:10:39 |
北海道 |
北海道新聞 |
飲食25店入居、異業種から挑戦も 杉村太蔵さん企画「旭川はれて」完成祝う |
https://www.hokkaido-np.co.jp/article/700201/
|
商業施設 |
2022-06-30 21:20:11 |
北海道 |
北海道新聞 |
おたる潮まつり ねりこみに太鼓3年ぶり 保存会が練習に熱、小学生隊員募集 |
https://www.hokkaido-np.co.jp/article/700150/
|
隊員 |
2022-06-30 21:03:40 |
北海道 |
北海道新聞 |
ロシア軍、黒海重要拠点を撤退 ウクライナがミサイル攻撃 |
https://www.hokkaido-np.co.jp/article/700205/
|
重要 |
2022-06-30 21:01:00 |
北海道 |
北海道新聞 |
ヤクルト石川が通算3千投球回 三浦以来、プロ野球28人目 |
https://www.hokkaido-np.co.jp/article/700204/
|
石川雅規 |
2022-06-30 21:01:00 |
北海道 |
北海道新聞 |
夕張メロン食べ放題盛況 好天で収穫順調 ツアーバス復活も追い風 |
https://www.hokkaido-np.co.jp/article/700138/
|
夕張メロン |
2022-06-30 21:00:47 |
コメント
コメントを投稿