<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by One on Medium]]></title>
        <description><![CDATA[Stories by One on Medium]]></description>
        <link>https://medium.com/@onemanbro?source=rss-a80632c7e742------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by One on Medium</title>
            <link>https://medium.com/@onemanbro?source=rss-a80632c7e742------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 14:48:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@onemanbro/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Coding on WebRTC technology?]]></title>
            <link>https://onemanbro.medium.com/trying-to-webrtc-technology-1f3e226ccbf0?source=rss-a80632c7e742------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f3e226ccbf0</guid>
            <category><![CDATA[webrtc]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[communication]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[One]]></dc:creator>
            <pubDate>Sun, 19 Feb 2023 23:56:49 GMT</pubDate>
            <atom:updated>2023-02-19T23:59:05.920Z</atom:updated>
            <content:encoded><![CDATA[<p>WebRTC is used for peer-to-peer communication in browsers. However, it is now widely used in multilateral practices with one-to-many or many-to-many participants. Also, to use WebRTC in such a project, you most likely need WebRTC servers.</p><p>Whatever you are developing with WebRTC, you should know what a WebRTC server is and what it is used for. This makes your job very easy.</p><p>In this detailed post, we will introduce WebRTC servers and new concepts such as Multipoint Conferencing Unit (MCU), Selective Forwarding Unit (SFU), transcoding, and simulcasting, and we’ll explain how to use a free WebRTC server.</p><p>Let’s start with the definition of WebRTC and continue with the question of what is WebRTC server.</p><h3>What is WebRTC?</h3><p>WebRTC stands for web real-time communications. WebRTC is a very exciting, powerful, and highly disruptive cutting-edge technology and an open-source streaming protocol.</p><p>WebRTC is HTML5 compatible and you can use it to add real-time media communications directly between browsers and devices. And you can do that without the need for any prerequisite of plugins to be installed in the browser. Previously, external plugins were required in order to achieve similar functionality as is offered by WebRTC. And Webrtc is progressively becoming supported by all major modern browser vendors including Safari, Google Chrome, Firefox, Opera, and others. Thanks to WebRTC, we can experience sub-second/real-time latency in video streaming. Let’s find out what is WebRTC streaming server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*J0-0CWFOV1h-O4-9.png" /><figcaption>Web RTC</figcaption></figure><h3>What is WebRTC Server?</h3><p>A server that provides the functionality required for the proper connection of WebRTC sessions in the cloud or self-hosting in order to make your WebRTC projects work is called a “WebRTC server”.</p><h3>Types of WebRTC Server?</h3><p>There are 4 types of WebRTC servers:</p><ol><li>WebRTC application servers</li><li>WebRTC signaling servers</li><li>NAT traversal servers for WebRTC</li><li>WebRTC media servers</li></ol><h3>WebRTC application servers</h3><p>Webrtc application servers are basically, application and website hosting servers. Yes, that’s all.</p><h3>WebRTC signaling servers</h3><p>WebRTC signaling server is a server that manages the connections between devices. It is not concerned with the media traffic itself, its focus is on signaling. This includes enabling one user to find another in the network, negotiating the connection itself, resetting the connection if needed, and closing it down.</p><h3>NAT traversal servers for WebRTC</h3><p><strong>Network address translation traversal</strong> is a computer networking technique of establishing and maintaining Internet protocol connections across gateways that implement network address translation (NAT).</p><p>NAT traversal techniques are required for many network applications, such as peer-to-peer file sharing and Voice over IP.</p><h3>WebRTC media servers</h3><p>A WebRTC media server is a type of “multimedia middleware” (located in the middle of the communicating peers) through which media traffic passes as it passes from source to destination. Media servers can offer different types, including processing media streams and group communications (distributing media streams created by a peer between several receivers i.e. Multi-Conference Unit, acting as an MCU), mixing (converting several incoming streams to a single composite stream), transcoding (adapting codecs and formats between incompatible clients), recording (permanent storage of media exchanged between peers), etc.</p><p>Many popular WebRTC services are hosted today on AWS, Google Cloud, Microsoft Azure, and Digital Ocean servers. You can embed your WebRTC media into any WordPress, PHP, or another website.</p><p>Now, we know enough about the WebRTC server. It is time to dive into WebRTC Multiparty Topologies.</p><h3>WebRTC Multiparty Topologies</h3><h3>Mesh Topology</h3><p>Mesh is the simplest topology for a multiparty application. In this topology, every participant sends and receives media from all other participants. We said it is the simplest because it is the most straightforward method. Moreover, there are no tricky works and a central unit such as a WebRTC server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/0*DrZGwow5teOab5md.png" /><figcaption>Web RTC</figcaption></figure><p><em>Mesh Topology in WebRTC</em></p><p>Pros:</p><ul><li>It requires only basic WebRTC implementation.</li><li>Since each participant connects to the other peer-to-peer, no need for a central server.</li></ul><p>Cons:</p><ul><li>Only a restricted number of participants (nearly 4–6) can connect with each other.</li><li>Since each participant sends media to each other it requires N-1 uplinks and N-1 downlinks.</li></ul><h3>Mixing Topology and MCU</h3><p>Mixing is another topology where each participant sends its media to a central server and receives media from the central server. This media may contain some or all other participant’s media. This central server is called MCU.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/746/0*UsJ2SEiePxl4VvBg.png" /><figcaption>Web RTC</figcaption></figure><p><em>Mixing Topology and MCU in WebRTC</em></p><p>Pros:</p><ul><li>Client-side requires only basic WebRTC implementation.</li><li>Each participant has only one uplink and one downlink.</li></ul><p>Cons:</p><ul><li>Since the MCU server makes decoding and encoding each participant’s media, it requires high processing power.</li></ul><h3>Routing Topology and SFU</h3><p>Routing is a multiparty topology where each participant sends its media to a central server and receives all other’s media from the central server. This central server is called SFU.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/0*YylYqpYQUXFgLOK7.png" /><figcaption>Web RTC</figcaption></figure><p><em>Routing Topology and SFU in WebRTC</em></p><p>Pros:</p><ul><li>SFU requires less processing power than MCU.</li><li>Each participant has one uplink and four downlinks.</li></ul><p>Cons:</p><ul><li>SFU requires more complex design and implementation on the server-side.</li></ul><p>You can check here to get more information.</p><h3>Transcoding</h3><p>Transcoding is the process of decoding compressed media, changing something on it, and then re-encoding it. Change is the keyword of this process. What can be changed in the media?</p><p>First, you can change the codec since some codecs are compatible with protocols or players.</p><p>Moreover, transrating is one change that is on the bit rate of media. For example, changing the media bitrate from 600kbps to 300kbps.</p><p>Another change is trans-sizing which is in the size of media. For example, changing frame size of a media from 1280×720 (720p) to 640×480 (480p) is trans-sizing.</p><p>Besides, there are lots of other changes or filtering processes available in the video processing area.</p><h3>Adaptive Bitrate</h3><p>Adaptive bitrate streaming is the adjustments to video quality according to the network quality. In other words, if the network quality is low then the video bitrate is decreased by the server. This is necessary to provide uninterrupted streaming under low-quality network connections. Clearly, the different bitrates of the stream must be available to provide an adaptive bitrate technique. One way to have different bitrates of the stream is transrating. Namely, the server produces different streams with different bitrates from the original stream. However, transrating is expensive in terms of processing power.</p><h3>Simulcast</h3><p>One alternative to transrating to provide adaptive bitrate is simulcast. In this technique, the publisher sends multiple streams with different bitrates instead of one stream. The server selects the best stream for the clients by considering the network quality.</p><p>With the change and development of communication needs in the world, the curiosity and interest in WebRTC and therefore WebRTC servers are increasing.</p><h3>What made me write share?</h3><p>i’ve been working on a WebRTC stack for a while. Had crazy ups and downs. For those who dont know me, i’m Dipesh Bhoir: The guy whose building some epic stacks.</p><ul><li>If your need countless maps try <a href="https://mapwale.com/">mapwale.com</a></li><li>looking for cool palettes, gradients, patterns, shades, try <a href="https://koirang.com/">koirang.com</a></li><li>want standard icons to use in project must try <a href="https://iconwho.com/">iconwho.com</a></li></ul><p>Thanks for reading, have a good life.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f3e226ccbf0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ohio catastrophe goes viral on Chinese social media, with netizens criticizing US for withholding…]]></title>
            <link>https://onemanbro.medium.com/ohio-catastrophe-goes-viral-on-chinese-social-media-with-netizens-criticizing-us-for-withholding-b43398b6903b?source=rss-a80632c7e742------2</link>
            <guid isPermaLink="false">https://medium.com/p/b43398b6903b</guid>
            <category><![CDATA[emergency]]></category>
            <category><![CDATA[ohio-catastrophe]]></category>
            <category><![CDATA[ohio]]></category>
            <category><![CDATA[united-states]]></category>
            <category><![CDATA[disaster]]></category>
            <dc:creator><![CDATA[One]]></dc:creator>
            <pubDate>Tue, 14 Feb 2023 09:19:43 GMT</pubDate>
            <atom:updated>2023-02-14T09:19:43.033Z</atom:updated>
            <content:encoded><![CDATA[<h3>Ohio catastrophe goes viral on Chinese social media, with netizens criticizing US for withholding info; Western media blind on ‘real accident’</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sCqacEYWiLHdpf-1K1SZuA.png" /><figcaption>Ohio catastrophe</figcaption></figure><p>I just read an article in global times showcasing Cover-up of Ohio catastrophe. After proper research, realised that the article is in-fact true. If such an accident would have happened in India or any other developing democratic nation, the western media would be running to catch the balls of those nations. The negative hype they create impacts stock markets, tourism and industries of significance. This UFO cover up seems to be for reasons we could easily understand through the article below.</p><p>An Ohio train derailment accident has stirred heated discussion on Chinese social media with many labeling it “a Chernobyl-level” catastrophe. Many netizens, when criticizing the US for not properly handling the disaster, also questioned if the US government is trying to deliberately withhold information, and hype a balloon incident involving China to divert domestic media attention.</p><p>The incident occurred on February 3, when 50 cars, including 10 carrying hazardous materials, derailed in a fiery crash in East Palestine, according to rail operator Norfolk Southern and the National Transportation Safety Board. Vinyl chloride was slowly released into the air days from five of those cars before crews ignited it to get rid of the highly flammable, toxic chemicals in a controlled environment, creating a dark plume of smoke.</p><p>First responders and emergency workers had to vent the tankers, spill the vinyl chloride into a trench, and then burn it off before it turned the train into a bomb.Yet officials warned the controlled burn would send phosgene and hydrogen chloride into the air. Phosgene is a highly toxic, colorless gas with a strong odor that can cause vomiting and breathing trouble and was used as a weapon in World War I, according to AP.</p><p>By the next day, an official alert warned that local residents needed to move even further away from the disaster zone, beyond the previous 2-mile radius. Roughly half of the affected town’s 4,800 residents had to evacuate. The controlled burn worked and the evacuation order for East Palestine residents was officially lifted February 8 after real-time air and water monitoring did not find any contaminant levels above screening limits.</p><p>Two Chinese students who are currently studying in Ohio told the Global Times that they have not heard of any relevant information, nor seen the story reported by mainstream US media outlets, adding that the local government had provided no notice over the incident.</p><p>“I’ve been feeling rhinitis in recent days, which never happened to me before so I am planning to see the doctor soon,” said a Chinese student surnamed Zan. She said she was only aware of “such a horrific incident” via Chinese social media.</p><p>Another student surnamed Sun, who lives 72 kilometers from the affected area said people are stockpiling mineral water. “Although the government assured people that the any immediate danger has passed, people still remain dubious.”</p><p>The US Environmental Protection Agency has not yet responded to the Global Times as of press time.</p><p>The incident has recently triggered heated discussion on Chinese social media, with some comparing it to “a Chernobyl-level” catastrophe.</p><p>Peng Yingdeng, an expert from China’s central government supervision center for environmental protection and emergency management told media that vinyl chloride is highly inflammable, when it burns it released carbon dioxide and hydrochloric acid. The latter, when combined with precipitation will produce acid rain and make the land untillable. If the vinyl chloride is not burnt completely, it will release more toxic dioxins and phosgene.</p><p>Dioxins is very difficult to degrade naturally, and once it permeates into soil, may remain there for decades, Peng said. He noted that the grains produced from this soil will cause cancer and mutation inside human bodies.</p><p>A large number of Chinese netizens are also questioning why such a catastrophic incident has gained little exposure through the Western media, and whether the US is deliberately withholding information from the world. As of time of press, four of the 50 most searched topics on China’s Sina Weibo were related to the Ohio incident. Hashtag “release of vinyl chloride in Ohio has caused evacuation of residents” has been read on Weibo for more than 34 million times as of press time.</p><p>On Twitter, the hashtag #OhioChernobyl was trending, with one user on the platform claiming “Everything along this pathway will experience one of the world’s worst carcinogens on the planet. Areas within a 100-mile radius are reporting mass animal deaths.”</p><p>“Why on earth is the US withholding details about such a serious accident? If you look at the US media right now, it is all about Chinese balloon stories. I doubt they are deliberately hyping the balloon stories to divert people’s attention from the real catastrophe,” said a Sina Weibo user, calling the US media also playing “selectively blind.”</p><p>Chinese netizens also picked up that a US journalist trying to cover the incident was detained by police, saying “so much for the US style freedom of press. Imagine if such thing happened in China, a big accident, and stifling journalists, how would the Western media not cover this?”</p><p>US law enforcement officers interrupted NewsNation correspondent Evan Lambert as he broadcast from the disaster zone, where authorities announced they were?lifting a multiday evacuation order near the site of a fiery weekend derailment in East Palestine, Ohio.</p><p>East Palestine police officers placed Lambert under arrest on preliminary charges of criminal trespassing and resisting arrest, Columbiana County Sheriff Brian McLaughlin told CNN.</p><p>“No journalist expects to be arrested when you’re doing your job, and I think that’s really important that that doesn’t happen in our country,” Lambert told his network in an aired interview after his release.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/1*tMFsFEl47KiIHWmNNhPQ9A.png" /><figcaption>Ohio catastrophe</figcaption></figure><p>The bigger issue here is the specifics of the chemicals. It is improbable that only single chemical was carried. United States must allow other countries to send teams for investigation into matter, demands Chinese government and its allies.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b43398b6903b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 42 Angular Interview Questions and Answers]]></title>
            <link>https://onemanbro.medium.com/top-42-angular-interview-questions-and-answers-a1dec10c0a0f?source=rss-a80632c7e742------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1dec10c0a0f</guid>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[One]]></dc:creator>
            <pubDate>Wed, 04 Jan 2023 09:22:29 GMT</pubDate>
            <atom:updated>2023-01-04T09:26:30.210Z</atom:updated>
            <content:encoded><![CDATA[<p>Angular is a robust front-end JavaScript framework that is widely used for app development. With the increased popularity, there is a high demand for Angular developers. This article on Angular Interview Questions will present some commonly asked questions and how to answer them. The questions are bifurcated into two levels, beginner and advanced.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*D5gcSAomBXvacyNs5XQVFQ.jpeg" /></figure><h3>Table of Contents</h3><p>Angular Interview Questions For Beginners</p><p>Angular Interview Questions For Advanced Level</p><h3>Angular Interview Questions For Beginners</h3><h4>1. What is Angular? Why was it introduced?</h4><p>Angular was introduced to create Single Page applications. This framework brings structure and consistency to web applications and provides excellent scalability and maintainability.</p><p>Angular is an open-source, JavaScript framework wholly written in TypeScript. It uses HTML’s syntax to express your application’s components clearly.</p><h4>2. What is TypeScript?</h4><p>TypeScript is a superset of JavaScript that offers excellent consistency. It is highly recommended, as it provides some syntactic sugar and makes the code base more comfortable to understand and maintain. Ultimately, TypeScript code compiles down to JavaScript that can run efficiently in any environment.</p><h4>3. What is data binding? Which type of data binding does Angular deploy?</h4><p>Data binding is a phenomenon that allows any internet user to manipulate Web page elements using a Web browser. It uses dynamic HTML and does not require complex scripting or programming. We use data binding in web pages that contain interactive components such as forms, calculators, tutorials, and games. Incremental display of a webpage makes data binding convenient when pages have an enormous amount of data.</p><p>Angular uses the two-way binding. Any changes made to the user interface are reflected in the corresponding model state. Conversely, any changes in the model state are reflected in the UI state. This allows the framework to connect the DOM to the Model data via the controller. However, this approach affects performance since every change in the DOM has to be tracked.</p><h4>4. What are Single Page Applications (SPA)?</h4><p>Single-page applications are web applications that load once with new features just being mere additions to the user interface. It does not load new HTML pages to display the new page’s content, instead generated dynamically. This is made possible through JavaScript’s ability to manipulate the DOM elements on the existing page itself. A SPA approach is faster, thus providing a seamless user experience.</p><h4>5. Differentiate between Angular and AngularJS</h4><p>The following table depicts the aspects of Angular vs AngularJS in detail:</p><p>Feature — AngularJS | Angular</p><p>Language — JavaScript | TypeScript</p><p>Architecture Supports — Model-View-Controller | Components &amp; Directives</p><p>Mobile support — Not mobile support | Supports popular mobile browsers</p><p>Dependency Injection — Doesn’t support | Supports</p><p>Routing — @routeProvider is used to provide routing information | @Route configuration is used to define routing information</p><p>Management — Difficult to manage with an increase in source code size | Better structured, easy to create and manage bigger applications</p><h4>6. What are decorators in Angular?</h4><p>Decorators are a design pattern or functions that define how Angular features work. They are used to make prior modifications to a class, service, or filter. Angular supports four types of decorators, they are:</p><ol><li>Class Decorators</li><li>Property Decorators</li><li>Method Decorators</li><li>Parameter Decorators</li></ol><h4>7. Mention some advantages of Angular.</h4><p>Some of the common advantages of Angular are -</p><ol><li>MVC architecture — Angular is a full-fledged MVC framework. It provides a firm opinion on how the application should be structured. It also offers bi-directional data flow and updates the real DOM.</li><li>Modules: Angular consists of different design patterns like components, directives, pipes, and services, which help in the smooth creation of applications.</li><li>Dependency injection: Components dependent on other components can be easily worked around using this feature.</li><li>Other generic advantages include clean and maintainable code, unit testing, reusable components, data binding, and excellent responsive experience.</li></ol><h4>8. What are the new updates with Angular10?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qigYuYxWUgmUB5ie.PNG" /></figure><ul><li>Older versions of TypeScript not supported — Previous versions of Angular supported typescript 3.6, 3.7, and even 3.8. But with Angular 10, TypeScript bumped to TypeScript 3.9.</li><li>Warnings about CommonJS imports — Logging of unknown property bindings or element names in templates is increased to the “error” level, which was previously a “warning” before.</li><li>Optional strict setting — Version 10 offers a stricter project setup when you create a new workspace with ng new command.</li></ul><pre>ng new — strict</pre><p>NGCC Feature — Addition of NGCC features with a program based entry point finder.</p><ul><li>Updated URL routing</li><li>Deprecated APIs — Angular 10 has several deprecated APIs.</li><li>Bug fixes — With this Angular 10 version, there have been a number of bug fixes, important ones being the compiler avoiding undefined expressions and the core avoiding a migration error when a nonexistent symbol is imported.</li><li>New Default Browser Configuration — Browser configuration for new projects has been upgraded to outdo older and less used browsers.</li></ul><h4>9. What are Templates in Angular?</h4><p>Angular Templates are written with HTML that contains Angular-specific elements and attributes. In combination with the model and controller’s information, these templates are further rendered to provide a dynamic view to the user.</p><h4>10. What are Annotations in Angular?</h4><p>Annotations in Angular are used for creating an annotation array. They are the metadata set on the class that is used to reflect the Metadata library.</p><h4>11. What are Directives in Angular?</h4><p>Directives are attributes that allow the user to write new HTML syntax specific to their applications. They execute whenever the Angular compiler finds them in the DOM. Angular supports three types of directives.</p><ol><li>Component Directives</li><li>Structural Directives</li><li>Attribute Directives</li></ol><h4>12. What is an AOT compilation? What are its advantages?</h4><p>The Ahead-of-time (AOT) compiler converts the Angular HTML and TypeScript code into JavaScript code during the build phase, i.e., before the browser downloads and runs the code.</p><p>Some of its advantages are as follows.</p><ol><li>Faster rendering</li><li>Fewer asynchronous requests</li><li>Smaller Angular framework download size</li><li>Quick detection of template errors</li><li>Better security</li></ol><h4>13. What are Components in Angular?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NPRqEXAJt_Jit9ui.PNG" /></figure><p>Components are the basic building blocks of the user interface in an Angular application. Every component is associated with a template and is a subset of directives. An Angular application typically consists of a root component, which is the AppComponent, that then branches out into other components creating a hierarchy.</p><h4>14. What are Pipes in Angular?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/0*9B1lC2f3oQ4yqXwY.PNG" /></figure><p>Pipes are simple functions designed to accept an input value, process, and return as an output, a transformed value in a more technical understanding. Angular supports several built-in pipes. However, you can also create custom pipes that cater to your needs.</p><p>Some key features include:</p><ol><li>Pipes are defined using the pipe “|” symbol.</li><li>Pipes can be chained with other pipes.</li><li>Pipes can be provided with arguments by using the colon (:) sign.</li></ol><h4>15. What is the PipeTransform interface?</h4><p>As the name suggests, the interface receives an input value and transforms it into the desired format with a transform() method. It is typically used to implement custom pipes.</p><pre>import { Pipe, PipeTransform } from &#39;@angular/core&#39;;</pre><pre> @Pipe({</pre><pre>  name: &#39;demopipe&#39;</pre><pre>})</pre><pre>export class DemopipePipe implements PipeTransform {</pre><pre>  transform(value: unknown, ...args: unknown[]): unknown {</pre><pre>    return null;</pre><pre>  }</pre><pre>}</pre><h4>16. What are Pure Pipes?</h4><p>These pipes are pipes that use pure functions. As a result of this, a pure pipe doesn’t use any internal state, and the output remains the same as long as the parameters passed stay the same. Angular calls the pipe only when it detects a change in the parameters being passed. A single instance of the pure pipe is used throughout all components.</p><h4>17. What are Impure Pipes?</h4><p>For every change detection cycle in Angular, an impure pipe is called regardless of the change in the input fields. Multiple pipe instances are created for these pipes. Inputs passed to these pipes can be mutable.</p><p>By default, all pipes are pure. However, you can specify impure pipes using the pure property, as shown below.</p><pre>@Pipe({  <br>name: &#39;demopipe&#39;, <br>pure : true/false <br>})<br>export class DemopipePipe implements PipeTransform {<br>}</pre><h3>18. What is an ngModule?</h3><p>NgModules are containers that reserve a block of code to an application domain or a workflow. @NgModule takes a metadata object that generally describes the way to compile the template of a component and to generate an injector at runtime. In addition, it identifies the module’s components, directives, and pipes, making some of them public, through the export property so that external components can use them.</p><h4>19. What are filters in Angular? Name a few of them.</h4><p>Filters are used to format an expression and present it to the user. They can be used in view templates, controllers, or services. Some inbuilt filters are as follows.</p><ul><li>date — Format a date to a specified format.</li><li>filter — Select a subset of items from an array.</li><li>Json — Format an object to a JSON string.</li><li>limitTo — Limits an array/string, into a specified number of elements/characters.</li><li>lowercase — Format a string to lowercase.</li></ul><h4>20. What is view encapsulation in Angular?</h4><p>View encapsulation defines whether the template and styles defined within the component can affect the whole application or vice versa. Angular provides three encapsulation strategies:</p><ol><li>Emulated — styles from the main HTML propagate to the component.</li><li>Native — styles from the main HTML do not propagate to the component.</li><li>None — styles from the component propagate back to the main HTML and therefore are visible to all components on the page.</li></ol><h4>21. What are controllers?</h4><p>AngularJS controllers control the data of AngularJS applications. They are regular JavaScript Objects. The ng-controller directive defines the application controller.</p><h4>22. What do you understand by scope in Angular?</h4><p>The scope in Angular binds the HTML, i.e., the view, and the JavaScript, i.e., the controller. It as expected is an object with the available methods and properties. The scope is available for both the view and the controller. When you make a controller in Angular, you pass the $scope object as an argument.</p><h4>23. Explain the lifecycle hooks in Angular</h4><p>In Angular, every component has a lifecycle. Angular creates and renders these components and also destroys them before removing them from the DOM. This is achieved with the help of lifecycle hooks. Here’s the list of them -</p><ol><li>ngOnChanges() — Responds when Angular sets/resets data-bound input properties.</li><li>ngOnInit() — Initialize the directive/component after Angular first displays the data-bound properties and sets the directive/component’s input properties/</li><li>ngDoCheck() — Detect and act upon changes that Angular can’t or won’t detect on its own.</li><li>ngAfterContentInit() — Responds after Angular projects external content into the component’s view.</li><li>ngAfterContentChecked() — Respond after Angular checks the content projected into the component.</li><li>ngAfterViewInit() — Respond after Angular initializes the component’s views and child views.</li><li>ngAfterViewChecked() — Respond after Angular checks the component’s views and child views.</li><li>ngOnDestroy — Cleanup just before Angular destroys the directive/component.</li></ol><h4>24. What is String Interpolation in Angular?</h4><p>String Interpolation is a one-way data-binding technique that outputs the data from TypeScript code to HTML view. It is denoted using double curly braces. This template expression helps display the data from the component to the view.</p><p>{{ data }}</p><h4>25. What are Template statements?</h4><p>Template statements are properties or methods used in HTML for responding to user events. With these template statements, the application that you create or are working on, can have the capability to engage users through actions such as submitting forms and displaying dynamic content.</p><p>For example,</p><p>&lt;button (click)=”deleteHero()”&gt;Delete hero&lt;/button&gt;</p><p>The template here is deleteHero. The method is called when the user clicks on the button.</p><h3>Angular Interview Questions For Advanced Level</h3><h4>26. What is the difference between AOT and JIT?</h4><p>Ahead of Time (AOT) compilation converts your code during the build time before the browser downloads and runs that code. This ensures faster rendering to the browser. To specify AOT compilation, include the — aot option with the ng build or ng serve command.</p><p>The Just-in-Time (JIT) compilation process is a way of compiling computer code to machine code during execution or run time. It is also known as dynamic compilation. JIT compilation is the default when you run the ng build or ng serve CLI commands.</p><h4>27. Explain the @Component Decorator.</h4><p>TypeScript class is one that is used to create components. This genre of class is then decorated with the “@Component” decorator. The decorato’s purpose is to accept a metadata object that provides relevant information about the component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*mBDClCRZvxpoc0UZ.PNG" /></figure><p>The image above shows an App component — a pure TypeScript class decorated with the “@Component” decorator. The metadata object that gets accepted by the decorator provides properties like templateUrl, selector, and others, where the templateUrL property points to an HTML file defining what you see on the application.</p><h4>28. What are Services in Angular?</h4><p>Angular Services perform tasks that are used by multiple components. These tasks could be data and image fetching, network connections, and database management among others. They perform all the operational tasks for the components and avoid rewriting of code. A service can be written once and injected into all the components that use that service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/0*Ey54bKgT-qO8w2Lf.PNG" /></figure><h4>29. What are Promises and Observables in Angular?</h4><p>While both the concepts deal with Asynchronous events in Angular, Promises handle one such event at a time while observables handle a sequence of events over some time.</p><p>Promises — They emit a single value at a time. They execute immediately after creation and are not cancellable. They are Push errors to the child promises.</p><p>Observables — They are only executed when subscribed to them using the subscribe() method. They emit multiple values over a period of time. They help perform operations like forEach, filter, and retry, among others. They deliver errors to the subscribers. When the unsubscribe() method is called, the listener stops receiving further values.</p><h4>30. What is ngOnInit? How is it defined?</h4><p>ngOnInit is a lifecycle hook and a callback method that is run by Angular to indicate that a component has been created. It takes no parameters and returns a void type.</p><pre>export class MyComponent implements OnInit {<br><br>constructor() {}<br><br>ngOnInit(): void {}<br><br>}</pre><h4>31. How to use ngFor in a tag?</h4><p>The ngFor directive is used to build lists and tables in the HTML templates. In simple terms, this directive is used to iterate over an array or an object and create a template for each element.</p><pre>&lt;ul&gt;<br>&lt;li *ngFor = &quot;let items in itemlist&quot;&gt; {{ item }} &lt;/li&gt;<br>&lt;/ul&gt;</pre><ol><li>“Let item” creates a local variable that will be available in the template</li><li>“Of items” indicates that we are iterating over the items iterable.</li><li>The * before ngFor creates a parent template.</li></ol><h4>32. What are Template and Reactive forms?</h4><p>Template-driven approach</p><ul><li>In this method, the conventional form tag is used to create forms. Angular automatically interprets and creates a form object representation for the tag.</li><li>Controls can be added to the form using the NGModel tag. Multiple controls can be grouped using the NGControlGroup module.</li><li>A form value can be generated using the “form.value” object. Form data is exported as JSON values when the submit method is called.</li><li>Basic HTML validations can be used to validate the form fields. In the case of custom validations, directives can be used.</li><li>Arguably, this method is the simplest way to create an Angular App.</li></ul><p>Reactive Form Approach</p><ul><li>This approach is the programming paradigm oriented around data flows and propagation of change.</li><li>With Reactive forms, the component directly manages the data flows between the form controls and the data models.</li><li>Reactive forms are code-driven, unlike the template-driven approach.</li><li>Reactive forms break from the traditional declarative approach.</li><li>Reactive forms eliminate the anti-pattern of updating the data model via two-way data binding.</li><li>Typically, Reactive form control creation is synchronous and can be unit tested with synchronous programming techniques.</li></ul><h4>33. What is Bootstrap? How is it embedded into Angular?</h4><p>Bootstrap is a powerful toolkit. It is a collection of HTML, CSS, and JavaScript tools for creating and building responsive web pages and web applications.</p><p>There are two ways to embed the bootstrap library into your application.</p><ol><li>Angular Bootstrap via CDN — Bootstrap CDN is a public Content Delivery Network. It enables you to load the CSS and JavaScript files remotely from its servers.</li><li>Angular Bootstrap via NPM — Another way to add Bootstrap to your Angular project is to install it into your project folder by using NPM (Node Package Manager).</li></ol><pre>npm install bootstrap<br>npm install jquery</pre><h4>34. What is Eager and Lazy loading?</h4><p>Eager loading is the default module-loading strategy. Feature modules under Eager loading are loaded before the application starts. This is typically used for small size applications.</p><p>Lazy loading dynamically loads the feature modules when there’s a demand. This makes the application faster. It is used for bigger applications where all the modules are not required at the start of the application.</p><h4>35. What type of DOM does Angular implement?</h4><p>DOM (Document Object Model) treats an XML or HTML document as a tree structure in which each node is an object representing a part of the document.</p><p>Angular uses the regular DOM. This updates the entire tree structure of HTML tags until it reaches the data to be updated. However, to ensure that the speed and performance are not affected, Angular implements Change Detection.</p><p>With this, you have reached the end of the article. We highly recommend brushing up on the core concepts for an interview. It’s always an added advantage to write the code in places necessary.</p><h4>36. Why were client-side frameworks like Angular introduced?</h4><p>Client-side frameworks like Angular were introduced to provide a more responsive user experience. By using a framework, developers can create web applications that are more interactive and therefore provide a better user experience.</p><p>Frameworks like Angular also make it easier for developers to create single-page applications (SPAs). SPAs are web applications that only need to load a single HTML page. This makes them much faster and more responsive than traditional web applications.</p><p>Overall, client-side frameworks like Angular were introduced in order to improve the user experience of web applications. By making web applications more responsive and easier to develop, they provide a better experience for both developers and users.</p><h4>37. How does an Angular application work?</h4><p>An Angular application is a Single Page Application, or SPA. This means that the entire application lives within a single page, and all of the resources (HTML, CSS, JavaScript, etc.) are loaded when the page is first loaded. Angular uses the Model-View-Controller, or MVC, architecture pattern to manage its data and views. The Model is the data that the application uses, the View is what the user sees, and the Controller is responsible for managing communication between the Model and the View.</p><p>When a user interacts with an Angular application, the Angular framework will automatically update the View to reflect any changes in the data. This means that Angular applications are very responsive and fast, as the user does not need to wait for the page to reload in order to see updated data.</p><p>Angular applications are also very scalable, as they can be divided into small modules that can be loaded independently of each other. This means that an Angular application can be easily extended with new functionality without having to rewrite the entire application.</p><p>Overall, Angular applications are very fast, responsive, and scalable. They are easy to develop and extend, and provide a great user experience.</p><p>The following is is an example of coding from an angular.json file:</p><pre>“build”: {<br>&quot;builder&quot;: &quot;@angular-devkit/build-angular:browser&quot;,<br>&quot;options&quot;: {<br>&quot;outputPath&quot;: &quot;dist/angular-starter&quot;,<br>&quot;index&quot;: &quot;src/index.html&quot;,<br>&quot;main&quot;: &quot;src/main.ts&quot;,<br>&quot;polyfills&quot;: &quot;src/polyfills.ts&quot;,<br>&quot;tsConfig&quot;: &quot;tsconfig.app.json&quot;,<br>&quot;aot&quot;: false,<br>&quot;assets&quot;: [<br>&quot;src/favicon.ico&quot;,<br>&quot;src/assets&quot;<br>],<br>&quot;styles&quot;: [<br>&quot;./node_modules/@angular/material/prebuilt-themes/deeppurple-amber.css&quot;,<br>&quot;src/style.css&quot;<br>]<br>}<br>}</pre><h4>38. Explain components, modules and services in Angular.</h4><p>Components, modules and services are the three fundamental building blocks in Angular. Components are the smallest, self-contained units in an Angular application. They are typically used to represent a view or UI element, such as a button or a form input field.</p><p>Code example:</p><pre>import { Component, OnInit } from &#39;@angular/core&#39;;<br>@Component({<br>selector: &#39;app-test&#39;,<br>templateUrl: &#39;./test.component.html&#39;,<br>styleUrls: [&#39;./test.component.css&#39;]<br>})<br>export lass TestComponent implements OnInit {<br>constructor() {}<br>ngOnInit() {<br>}<br>}</pre><p>Modules are larger units that group together one or more related components. Services are singleton objects that provide specific functionality throughout an Angular application, such as data access or logging.</p><p>Code example:</p><pre>import { BrowserModule } from &#39;@angular/platform-browser&#39;;<br>import { NgModule } from &#39;@angular/core&#39;;<br>import { AppComponent } from &#39;./app.component&#39;;<br>import { TestComponent } from &#39;./test/text.component&#39;;<br>@NgModule({<br>declarations: [<br>AppComponent,<br>TestComponent<br>],<br>imports: [<br>BrowserModule<br>],<br>providers: [],<br>bootstrap: [AppComponent]<br>})<br>export class AppModule { }</pre><p>Each component in Angular has its own isolated scope. This means that a component’s dependencies (services, other components, etc.) are not accessible to any other component outside of its own scope. This isolation is important for ensuring modularity and flexibility in an Angular application.</p><p>Services, on the other hand, are not isolated and can be injected into any other unit in an Angular application (component, module, service, etc.). This makes them ideal for sharing data or functionality across the entire app.</p><p>Code example:</p><pre>import { Injectable } from &#39;@angular/core&#39;;<br>@Injectable({<br>providedIn: &#39;root&#39;<br>})<br>export class TestServiceService {<br>constructor() { }<br>}</pre><p>When designing an Angular application, it is important to keep these three building blocks in mind. Components should be small and self-contained, modules should group together related components, and services should provide shared functionality across the entire app. By following this design principle, you can create an Angular application that is modular, flexible, and easy to maintain.</p><h4>39. How are Angular expressions different from JavaScript expressions?</h4><p>One major difference between Angular expressions and JavaScript expressions is that Angular expressions are compiled while JavaScript expressions are not. This means that Angular expressions are more efficient since they’re already pre-processed. Additionally, Angular expressions can access scope properties while JavaScript expressions cannot. Finally, Angular expressions support some additional features such as filters and directives which aren’t available in JavaScript expressions.</p><p>Javascript expression example:</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html lang=&quot;en&quot;&gt;<br>&lt;head&gt;<br>&lt;meta charset=&quot;UTF-8&quot;&gt;<br>&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0&quot;&gt;<br>&lt;title&gt;JavaScript Test&lt;/title&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;div id=&quot;foo&quot;&gt;&lt;div&gt;<br>&lt;/body&gt;<br>&lt;script&gt;<br>&#39;use strict&#39;;<br>let bar = {};<br>document.getElementById(&#39;foo&#39;).innerHTML = bar.x;<br>&lt;/script&gt;<br>&lt;/html&gt;</pre><p>Angular expression example:</p><pre>import { Component, OnInit } from &#39;@angular/core&#39;;<br>@Component({<br>selector: &#39;app-new&#39;,<br>template: `<br>&lt;h4&gt;{{message}}&lt;/h4&gt;<br>`,<br>styleUrls: [&#39;./new.component.css&#39;]<br>})<br>export class NewComponent implements OnInit {<br>message:object = {};<br>constructor() { }<br>ngOnInit() {<br>}<br>}</pre><h4>40. Angular by default, uses client-side rendering for its applications.</h4><p>This means that the Angular application is rendered on the client-side — in the user’s web browser. Client-side rendering has a number of advantages, including improved performance and better security. However, there are some drawbacks to using client-side rendering, as well. One of the biggest drawbacks is that it can make your application more difficult to debug.</p><p>Client-side rendering is typically used for applications that are not heavily data-driven. If your application relies on a lot of data from a server, client-side rendering can be very slow. Additionally, if you’re using client-side rendering, it’s important to be careful about how you load and cache your data. If you’re not careful, you can easily end up with an application that is very slow and difficult to use. When rendered on the server-side, this is called Angular Universal.</p><h4>41. How do you share data between components in Angular?</h4><p>Sharing data between components in Angular is simple and easy. To share data, all you need to do is use the Angular CLI to generate a new service. This service can be injected into any component and will allow the components to share data.</p><p>To generate a new service, use the following Angular CLI command:</p><p>ng generate service my-data-service</p><p>This will create a new service file called <strong>my-data-service.ts</strong> in the <strong>src/app</strong> folder.</p><p>Inject the service into any component that needs to share data:</p><pre>import { MyDataService } from &#39;./my-data.service&#39;;<br>constructor(private myDataService: MyDataService) { }<br>Once injected, the service will be available in the component as this.myDataService.<br>To share data between components, simply use the setData() and getData() methods:<br>this.myDataService.setData(&#39;some data&#39;);<br>const data = this.myDataService.getData();</pre><h4>42. Explain the concept of dependency injection.</h4><p>Dependency injection is a technique used to create loosely coupled code. It allows pieces of code to be reused without the need for hard-coded dependencies. This makes code more maintainable and easier to test. Dependency injection is often used in frameworks like AngularJS, ReactJS, and VueJS. It is also possible to use dependency injection in vanilla JavaScript. To use dependency injection in JavaScript, you need a dependency injection library. There are many different libraries available, but they all work in basically the same way.</p><p>The first step is to create a dependency injection container. This is a simple object that will hold all of the dependencies that your code needs. Next, you need to register all of the dependencies that your code will need with the container. The registration process will vary depending on the library you are using, but it is usually just a matter of providing the dependency’s name and constructor function.</p><p>Once all of the dependencies have been registered, you can then inject them into your code. The injection process will again vary depending on the library you are using, but it is usually just a matter of providing the dependency’s name. The library will then take care of instantiating the dependency and passing it to your code.</p><p>Dependency injection can be a great way to make your code more modular and easier to maintain. It can also make it easier to unit test your code, as you can inject mock dependencies instead of the real ones. If you are using a framework that supports dependency injection, then it is probably already being used in your code. If you are not using a framework, then you can still use dependency injection by choosing a library and following the steps outlined above.</p><p>Code example:</p><pre>import { Injectable } from &#39;@angular/core&#39;;<br>@Injectable({<br>providedIn: &#39;root&#39;<br>})<br>export class TestService {<br>importantValue:number = 42;<br>constructor() { }<br>returnImportantValue(){<br>return this.importantValue;<br>}<br>}</pre><p>The injectable dependencies are created after adding the @Injectable decorator to a class. The dependency above is then injected into the following component:</p><pre>import { TestService } from &#39;./../test.service&#39;;<br>import { Component, OnInit } from &#39;@angular/core&#39;;<br>@Component({<br>selector: &#39;app-test&#39;,<br>templateUrl: &#39;./test.component.html&#39;,<br>styleUrls: [&#39;./test.component.css&#39;]<br>})<br>export class TestComponent implements OnInit {<br>value:number;<br>constructor(private testService:TestService) { }<br>ngOnInit() {<br>this.value = this.testService.returnImportantValue();<br>}<br>}</pre><h4>43. Explain MVVM architecture.</h4><p>MVVM architecture is an architectural pattern used mainly in software engineering. It stands for Model-View-ViewModel. MVVM is a variation of the traditional MVC (Model-View-Controller) software design pattern. The main difference between the two is that MVVM separates the user interface logic from the business logic, while MVC separates the data access logic from the business logic. This separation of concerns makes it easier to develop, test, and maintain software applications.</p><p>The Model layer in MVVM architecture is responsible for storing and managing data. It can be a database, a web service, or a local data source. The View layer is responsible for displaying data to the user. It can be a graphical user interface (GUI), a command-line interface (CLI), or a web page. The ViewModel layer is responsible for handling user input and updating the View layer accordingly. It contains the business logic of the application.</p><p>MVVM architecture is often used in conjunction with other software design patterns, such as Model-View-Presenter (MVP) and Model-View-Controller (MVC). These patterns can be used together to create a complete software application.</p><p>MVVM architecture is a popular choice for modern software applications. It allows developers to create applications that are more responsive and easier to maintain. Additionally, MVVM architecture can be used to create applications that can be easily ported to different platforms.</p><h3>Next Steps</h3><p>We hope that this article on Angular Interview Questions helped you understand the type of questions asked and how to answer them. But, if you wish to learn Angular and perhaps make a career out of it, certification will come in handy. Otherwise, you can always contribute to Masters in USA Fund via Support. ;)</p><h3>FUN FACT</h3><p><em>I READ MY OWN ARTICLES WHENEVER I MESS UP CAUSE THEY ARE SO WELL WRITTEN!</em></p><h3>Hope This Article Helped!</h3><p>Thankful? A CLAP MIGHT HELP THIS REACH MORE AUDIENCE!</p><p><a href="https://instagram.com/dipesious">Instagram </a>| <a href="https://twitter.com/dipesious">Twitter</a> | <a href="https://github.com/dipesious">Github</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1dec10c0a0f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Thumbnails & Screenshots using FFmpeg — 3 Efficient Techniques]]></title>
            <link>https://onemanbro.medium.com/thumbnails-screenshots-using-ffmpeg-3-efficient-techniques-a65c76dda2b1?source=rss-a80632c7e742------2</link>
            <guid isPermaLink="false">https://medium.com/p/a65c76dda2b1</guid>
            <category><![CDATA[ffmpeg]]></category>
            <category><![CDATA[install]]></category>
            <category><![CDATA[videos]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[One]]></dc:creator>
            <pubDate>Tue, 20 Dec 2022 02:39:24 GMT</pubDate>
            <atom:updated>2022-12-20T02:39:24.937Z</atom:updated>
            <content:encoded><![CDATA[<h3>Thumbnails &amp; Screenshots using FFmpeg — 3 Efficient Techniques</h3><p>There are several easy ways to take screenshots/thumbnails of movies using FFmpeg. But why do this in the first place?</p><ol><li>You might want to generate thumbnails for your videos and show those thumbnails to the user when he scrolls through the video.</li><li>Or, you might want to compare two videos by doing a side-by-side comparison — this is quite common in video compression research.</li></ol><p>FFmpeg offers very simple techniques to extract screenshots or thumbnails at any position of the video (or rather, a way to dump frames at any point you choose).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d0iqH1hGwsCeTOuj6XhxGQ.png" /><figcaption>FFmpeg</figcaption></figure><p>Let’s see how!</p><h3>Single Screenshot/Thumbnail Using -frames:v</h3><p>First, let’s understand how to take a single screenshot or thumbnail using FFmpeg.</p><pre>ffmpeg -i inputvideo.mp4 -ss 00:00:03 -frames:v 1 foobar.jpeg</pre><p>Understanding this is very simple! Here goes –</p><ol><li>-ss is the seek command and it can be used to seek to the right position. For accurate seeking, you need to use output seeking and not input seeking (i.e., putting -ss before the input sequence). The syntax for specifying the time is HH:MM:SS.MILLISECONDS. For example, you can tell FFmpeg to seek to 01:02:03 – i.e., the 3rd second of the 2nd minute of the 1 hour of the movie!</li><li>-frames:v 1 tells FFmpeg to take only 1 screenshot. Note that, -vframes is deprecated.</li><li>then, you mention the name of the output file (screenshot_10.jpg).</li></ol><p>Simple, wasn’t it? Now that you know how to produce a single thumbnail or screenshot, let’s move to the next section where we understand how to create regular or periodic thumbnails.</p><h3>Periodic Screenshot/Thumbnail with Resizing</h3><p>Here is another common use case that FFmpeg can solve easily — how do you take screenshots/thumbnails at regular intervals, and store them to JPG files after resizing them?</p><p>Here is a simple one-liner that can take care of creating a thumbnail and resizing it for you.</p><pre>ffmpeg -i input1080p.mp4 -r 1 -s 1280x720 -f image2 screenshot-%03d.jpg</pre><p>The -r command sets the output frame rate (=1) and image2 is an image file muxer that is used to write video frames to image files. Using the -s 1280x720 command, we can resize the video frames before writing them as images. Note, that the input video is a 1920x1080p video.</p><p>The above command will take a screenshot every 1 second. The screenshots would be named 001, 002, etc. because we have specified the formatting as %3d.</p><p>However, in my experience, I have found this technique to be not frame-accurate.</p><p>In the next section, let’s look at a more accurate way of extracting thumbnails.</p><h3>Screenshot/Thumbnail every 10 seconds</h3><p>As an extension of the previous section, let’s do a quick exercise and learn how to create a thumbnail every 10 seconds using FFmpeg.</p><pre>ffmpeg -i inputvideo.mp4 -vf &quot;select=&#39;not(mod(n,300))&#39;,setpts=&#39;N/(30*TB)&#39;&quot; -f image2 thumbnail%03d.jpg</pre><p>Here,</p><ol><li>we use the select filter to extract a frame if the expression in single-quotes evaluates to non-zero. If the expression is zero, then select filter discards that frame.</li><li>mod(A,B) returns the modulus (remainder after division) result after dividing A by B. So, if we divide 0 by 300, we get 0. Then, 1/300 is 1, and so on.</li><li>not inverts this result. So, if the modulus is zero, then the final result is 1. If the modulus is non-zero, then the result is evaluated to zero.</li><li>Based on this not operation, the select filter picks up a frame.</li></ol><p>The sequence I am using has a frame-rate of 30 fps. And, I want a frame every 10 seconds. So, I have to choose a frame out of every 300 frames, right? That is why I used select=&#39;not(mod(n,300))&#39;</p><p>This gives me very accurate thumbnails as you can see in the image gallery below. Click on the images to expand them and see the timestamps.</p><p>Depending on your sequence’s frame-rate, you can modify the command line shown. If you don’t know your video’s frame-rate, you can use ffprobe to find out.</p><pre>ffprobe -show_entries format=duration globe-with-timestamp.mp4</pre><h3>Conclusion</h3><p>There you have it — multiple easy ways to generate thumbnails and screenshots using FFmpeg. You can choose to take single screenshots or periodic ones with a highly frame-accurate technique!</p><p>Until next time, take care and don’t forget to share this article and check out my work on islesys.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a65c76dda2b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[33 DATA VISUALIZATION TECHNIQUES ALL PROFESSIONALS SHOULD KNOW]]></title>
            <link>https://onemanbro.medium.com/33-data-visualization-techniques-all-professionals-should-know-2d2b1e05055d?source=rss-a80632c7e742------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d2b1e05055d</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[study]]></category>
            <dc:creator><![CDATA[One]]></dc:creator>
            <pubDate>Tue, 20 Dec 2022 02:28:53 GMT</pubDate>
            <atom:updated>2022-12-20T02:28:53.339Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3qiwcIL8tDFJ1ykR.png" /></figure><p>There’s a growing demand for business analytics and data expertise in the workforce. But you don’t need to be a professional analyst to benefit from data-related skills.</p><p>Becoming skilled at common data visualization techniques can help you reap the rewards of data-driven decision-making, including increased confidence and potential cost savings. Learning how to effectively visualize data could be the first step toward using data analytics and data science to your advantage to add value to your organization.</p><p>Several data visualization techniques can help you become more effective in your role. Here are 17 essential data visualization techniques all professionals should know, as well as tips to help you effectively present your data.</p><h3>WHAT IS DATA VISUALIZATION?</h3><p>Data visualization is the process of creating graphical representations of information. This process helps the presenter communicate data in a way that’s easy for the viewer to interpret and draw conclusions.</p><p>There are many different techniques and tools you can leverage to visualize data, so you want to know which ones to use and when. Here are some of the most important data visualization techniques all professionals should know.</p><h3>DATA VISUALIZATION TECHNIQUES</h3><p>The type of data visualization technique you leverage will vary based on the type of data you’re working with, in addition to the story you’re telling with your data.</p><p>Here are some important data visualization techniques to know:</p><ul><li>Pie Chart</li><li>Bar Chart</li><li>Histogram</li><li>Gantt Chart</li><li>Heat Map</li><li>Box and Whisker Plot</li><li>Waterfall Chart</li><li>Area Chart</li><li>Scatter Plot</li><li>Pictogram Chart</li><li>Timeline</li><li>Highlight Table</li><li>Bullet Graph</li><li>Choropleth Map</li><li>Word Cloud</li><li>Network Diagram</li><li>Correlation Matrices</li></ul><h3>1. Pie Chart</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sAlSoKp0zaEBPrcc.png" /></figure><p>Pie charts are one of the most common and basic data visualization techniques, used across a wide range of applications. Pie charts are ideal for illustrating proportions, or part-to-whole comparisons.</p><p>Because pie charts are relatively simple and easy to read, they’re best suited for audiences who might be unfamiliar with the information or are only interested in the key takeaways. For viewers who require a more thorough explanation of the data, pie charts fall short in their ability to display complex information.</p><h3>2. Bar Chart</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PrQmOQWImo_tnyDK.png" /></figure><p>The classic bar chart, or bar graph, is another common and easy-to-use method of data visualization. In this type of visualization, one axis of the chart shows the categories being compared, and the other, a measured value. The length of the bar indicates how each group measures according to the value.</p><p>One drawback is that labeling and clarity can become problematic when there are too many categories included. Like pie charts, they can also be too simple for more complex data sets.</p><h3>3. Histogram</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CyYlTdhZ7f_aeRTS.png" /></figure><p>Unlike bar charts, histograms illustrate the distribution of data over a continuous interval or defined period. These visualizations are helpful in identifying where values are concentrated, as well as where there are gaps or unusual values.</p><p>Histograms are especially useful for showing the frequency of a particular occurrence. For instance, if you’d like to show how many clicks your website received each day over the last week, you can use a histogram. From this visualization, you can quickly determine which days your website saw the greatest and fewest number of clicks.</p><h3>4. Gantt Chart</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BPD9lIGoYUtiLIle.jpg" /></figure><p>Gantt charts are particularly common in project management, as they’re useful in illustrating a project timeline or progression of tasks. In this type of chart, tasks to be performed are listed on the vertical axis and time intervals on the horizontal axis. Horizontal bars in the body of the chart represent the duration of each activity.</p><p>Utilizing Gantt charts to display timelines can be incredibly helpful, and enable team members to keep track of every aspect of a project. Even if you’re not a project management professional, familiarizing yourself with Gantt charts can help you stay organized.</p><h3>5. Heat Map</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*beZ8fMT4ODZ7f7Db.PNG" /></figure><p>A heat map is a type of visualization used to show differences in data through variations in color. These charts use color to communicate values in a way that makes it easy for the viewer to quickly identify trends. Having a clear legend is necessary in order for a user to successfully read and interpret a heatmap.</p><p>There are many possible applications of heat maps. For example, if you want to analyze which time of day a retail store makes the most sales, you can use a heat map that shows the day of the week on the vertical axis and time of day on the horizontal axis. Then, by shading in the matrix with colors that correspond to the number of sales at each time of day, you can identify trends in the data that allow you to determine the exact times your store experiences the most sales.</p><h3>6. A Box and Whisker Plot</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nY50-ZjDrMXHqq1M.png" /></figure><p>A box and whisker plot, or box plot, provides a visual summary of data through its quartiles. First, a box is drawn from the first quartile to the third of the data set. A line within the box represents the median. “Whiskers,” or lines, are then drawn extending from the box to the minimum (lower extreme) and maximum (upper extreme). Outliers are represented by individual points that are in-line with the whiskers.</p><p>This type of chart is helpful in quickly identifying whether or not the data is symmetrical or skewed, as well as providing a visual summary of the data set that can be easily interpreted.</p><h3>7. Waterfall Chart</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IepNfHtlgvp6wbmW.png" /></figure><p>A waterfall chart is a visual representation that illustrates how a value changes as it’s influenced by different factors, such as time. The main goal of this chart is to show the viewer how a value has grown or declined over a defined period. For example, waterfall charts are popular for showing spending or earnings over time.</p><h3>8. Area Chart</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2uhIY6x3_4BBClJB.png" /></figure><p>An area chart, or area graph, is a variation on a basic line graph in which the area underneath the line is shaded to represent the total value of each data point. When several data series must be compared on the same graph, stacked area charts are used.</p><p>This method of data visualization is useful for showing changes in one or more quantities over time, as well as showing how each quantity combines to make up the whole. Stacked area charts are effective in showing part-to-whole comparisons.</p><h3>9. Scatter Plot</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4dHbK-a70FEuOjdY.png" /></figure><p>Another technique commonly used to display data is a scatter plot. A scatter plot displays data for two variables as represented by points plotted against the horizontal and vertical axis. This type of data visualization is useful in illustrating the relationships that exist between variables and can be used to identify trends or correlations in data.</p><p>Scatter plots are most effective for fairly large data sets, since it’s often easier to identify trends when there are more data points present. Additionally, the closer the data points are grouped together, the stronger the correlation or trend tends to be.</p><h3>10. Pictogram Chart</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/0*Rwe9vroyYltXv-Rw.PNG" /></figure><p>Pictogram charts, or pictograph charts, are particularly useful for presenting simple data in a more visual and engaging way. These charts use icons to visualize data, with each icon representing a different value or category. For example, data about time might be represented by icons of clocks or watches. Each icon can correspond to either a single unit or a set number of units (for example, each icon represents 100 units).</p><p>In addition to making the data more engaging, pictogram charts are helpful in situations where language or cultural differences might be a barrier to the audience’s understanding of the data.</p><h3>11. Timeline</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*muL26TvaoXLHyQNg.jpg" /></figure><p>Timelines are the most effective way to visualize a sequence of events in chronological order. They’re typically linear, with key events outlined along the axis. Timelines are used to communicate time-related information and display historical data.</p><p>Timelines allow you to highlight the most important events that occurred, or need to occur in the future, and make it easy for the viewer to identify any patterns appearing within the selected time period. While timelines are often relatively simple linear visualizations, they can be made more visually appealing by adding images, colors, fonts, and decorative shapes.</p><h3>12. Highlight Table</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*19gSFzRbunb_ASEM.jpg" /></figure><p>A highlight table is a more engaging alternative to traditional tables. By highlighting cells in the table with color, you can make it easier for viewers to quickly spot trends and patterns in the data. These visualizations are useful for comparing categorical data.</p><p>Depending on the data visualization tool you’re using, you may be able to add conditional formatting rules to the table that automatically color cells that meet specified conditions. For instance, when using a highlight table to visualize a company’s sales data, you may color cells red if the sales data is below the goal, or green if sales were above the goal. Unlike a heat map, the colors in a highlight table are discrete and represent a single meaning or value.</p><h3>13. Bullet Graph</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lcdC7xOL3ey-ut_j.jpg" /></figure><p>A bullet graph is a variation of a bar graph that can act as an alternative to dashboard gauges to represent performance data. The main use for a bullet graph is to inform the viewer of how a business is performing in comparison to benchmarks that are in place for key business metrics.</p><p>In a bullet graph, the darker horizontal bar in the middle of the chart represents the actual value, while the vertical line represents a comparative value, or target. If the horizontal bar passes the vertical line, the target for that metric has been surpassed. Additionally, the segmented colored sections behind the horizontal bar represent range scores, such as “poor,” “fair,” or “good.”</p><h3>14. Choropleth Maps</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WXFNm3Ffi0SgEaxQ.jpg" /></figure><p>A choropleth map uses color, shading, and other patterns to visualize numerical values across geographic regions. These visualizations use a progression of color (or shading) on a spectrum to distinguish high values from low.</p><p>Choropleth maps allow viewers to see how a variable changes from one region to the next. A potential downside to this type of visualization is that the exact numerical values aren’t easily accessible because the colors represent a range of values. Some data visualization tools, however, allow you to add interactivity to your map so the exact values are accessible.</p><h3>15. Word Cloud</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*U4uxQvK56FLuuDjK.jpg" /></figure><p>A word cloud, or tag cloud, is a visual representation of text data in which the size of the word is proportional to its frequency. The more often a specific word appears in a dataset, the larger it appears in the visualization. In addition to size, words often appear bolder or follow a specific color scheme depending on their frequency.</p><p>Word clouds are often used on websites and blogs to identify significant keywords and compare differences in textual data between two sources. They are also useful when analyzing qualitative datasets, such as the specific words consumers used to describe a product.</p><h3>16. Network Diagram</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fj3nLnRSK1NazTwf.png" /></figure><p>Network diagrams are a type of data visualization that represent relationships between qualitative data points. These visualizations are composed of nodes and links, also called edges. Nodes are singular data points that are connected to other nodes through edges, which show the relationship between multiple nodes.</p><p>There are many use cases for network diagrams, including depicting social networks, highlighting the relationships between employees at an organization, or visualizing product sales across geographic regions.</p><h3>17. Correlation Matrix</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oqil8hjry18JshOA.png" /></figure><p>A correlation matrix is a table that shows correlation coefficients between variables. Each cell represents the relationship between two variables, and a color scale is used to communicate whether the variables are correlated and to what extent.</p><p>Correlation matrices are useful to summarize and find patterns in large data sets. In business, a correlation matrix might be used to analyze how different data points about a specific product might be related, such as price, advertising spend, launch date, etc.</p><h3>OTHER DATA VISUALIZATION OPTIONS</h3><p>While the examples listed above are some of the most commonly used techniques, there are many other ways you can visualize data to become a more effective communicator. Some other data visualization options include:</p><ul><li>Bubble clouds</li><li>Cartograms</li><li>Circle views</li><li>Dendrograms</li><li>Dot distribution maps</li><li>Open-high-low-close charts</li><li>Polar areas</li><li>Radial trees</li><li>Ring Charts</li><li>Sankey diagram</li><li>Span charts</li><li>Streamgraphs</li><li>Treemaps</li><li>Wedge stack graphs</li><li>Violin plots</li></ul><h3>TIPS FOR CREATING EFFECTIVE VISUALIZATIONS</h3><p>Creating effective data visualizations requires more than just knowing how to choose the best technique for your needs. There are several considerations you should take into account to maximize your effectiveness when it comes to presenting data.</p><p>One of the most important steps is to evaluate your audience. For example, if you’re presenting financial data to a team that works in an unrelated department, you’ll want to choose a fairly simple illustration. On the other hand, if you’re presenting financial data to a team of finance experts, it’s likely you can safely include more complex information.</p><p>Another helpful tip is to avoid unnecessary distractions. Although visual elements like animation can be a great way to add interest, they can also distract from the key points the illustration is trying to convey and hinder the viewer’s ability to quickly understand the information.</p><p>Finally, be mindful of the colors you utilize, as well as your overall design. While it’s important that your graphs or charts are visually appealing, there are more practical reasons you might choose one color palette over another. For instance, using low contrast colors can make it difficult for your audience to discern differences between data points. Using colors that are too bold, however, can make the illustration overwhelming or distracting for the viewer.</p><h3>VISUALS TO INTERPRET AND SHARE INFORMATION</h3><p>No matter your role or title within an organization, data visualization is a skill that’s important for all professionals. Being able to effectively present complex data through easy-to-understand visual representations is invaluable when it comes to communicating information with members both inside and outside your business.</p><p>There’s no shortage in how data visualization can be applied in the real world. Data is playing an increasingly important role in the marketplace today, and data literacy is the first step in understanding how analytics can be used in business. Otherwise, you can always contribute to Masters in USA Fund via Support. ;)</p><h3>FUN FACT</h3><p><em>I READ MY OWN ARTICLES WHENEVER I MESS UP CAUSE THEY ARE SO WELL WRITTEN!</em></p><h3>Hope This Article Helped!</h3><p>Thankful? A CLAP MIGHT HELP THIS REACH MORE AUDIENCE!</p><p>Dipesh Bhoir</p><p><a href="https://instagram.com/dipesious">Instagram </a>| <a href="https://twitter.com/dipesious">Twitter</a> | <a href="https://github.com/dipesious">Github</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d2b1e05055d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Elon Musk’s father says he is not proud of his billionaire son because…]]></title>
            <link>https://onemanbro.medium.com/elon-musks-father-says-he-is-not-proud-of-his-billionaire-son-because-af95d17fcd8d?source=rss-a80632c7e742------2</link>
            <guid isPermaLink="false">https://medium.com/p/af95d17fcd8d</guid>
            <category><![CDATA[gossip]]></category>
            <category><![CDATA[elon-musk]]></category>
            <category><![CDATA[affairs]]></category>
            <category><![CDATA[viral]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[One]]></dc:creator>
            <pubDate>Sat, 06 Aug 2022 09:46:15 GMT</pubDate>
            <atom:updated>2022-08-06T09:46:15.416Z</atom:updated>
            <content:encoded><![CDATA[<h4>Elon Musk’s father, Errol Musk, says he’s not proud of his billionaire son alone because the whole Musk family has achieved remarkable things.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*seMZHJJuOZEqLI_qnVG3uQ.jpeg" /><figcaption>Elon Musk</figcaption></figure><p>Elon Musk’s father, Errol Musk, says he’s not proud of his billionaire son alone because the whole Musk family has achieved remarkable things. According to him, in fact, the Tesla and SpaceX chief is unhappy with his own career progress.</p><p>The 76-year-old Errol Musk made the remarks on Australia’s ‘The Kyle and Jackie O Show.’ During the 20-minute interview, he touched upon a wide range of subjects, including the children he fathered with his stepdaughter.</p><p>But when asked if he was proud of Elon Musk — the eldest of his three children with Maye Musk — Errol replied: “No. You know, we are a family that have been doing a lot of things for a long time, it’s not as if we suddenly started doing something.”</p><p>The elder Musk said that he and his children with his first wife — Elon, Kimbal and Tosca — have seen and done a lot of things together like travelling to China, the Amazon rainforests and other places, but admitted that Elon may have accomplished more than his siblings.</p><p>“They’ve seen a lot of things, and we’ve done a lot of things together,” said Errol Musk. “But Elon has in fact sort of really surpassed the mark.”</p><p>“Where he is now, he would have liked to have been there five years ago,” said Errol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BkZot-wP2r_k-zFnjp1XFQ.jpeg" /><figcaption>Elon Musk</figcaption></figure><p>“He is frustrated with progress and it’s understandable,” he added. “I know it sounds crazy, but we tend to think like that as a family. He’s 50 now and I still think of him as a little boy. But he’s 50, I mean that’s an old man.”</p><p>At another point in the interview, Errol said his younger son Kimbal is his “pride and joy” — referring to him as a billionaire, although Forbes estimates Kimbal’s net worth to be around $700 million.</p><p><a href="https://medium.com/u/a80632c7e742">The Mumbaikar</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=af95d17fcd8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Evolution of Elon Musk: The Good, The Bad, and the Ugly]]></title>
            <link>https://onemanbro.medium.com/the-evolution-of-elon-musk-the-good-the-bad-and-the-ugly-e88d9668ac97?source=rss-a80632c7e742------2</link>
            <guid isPermaLink="false">https://medium.com/p/e88d9668ac97</guid>
            <category><![CDATA[evil]]></category>
            <category><![CDATA[inspiration]]></category>
            <category><![CDATA[motivation]]></category>
            <category><![CDATA[elon-musk]]></category>
            <category><![CDATA[business]]></category>
            <dc:creator><![CDATA[One]]></dc:creator>
            <pubDate>Thu, 23 Jun 2022 11:54:40 GMT</pubDate>
            <atom:updated>2022-06-23T12:13:17.728Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bSjKDqCK43Ytzt6CzT7yPA.jpeg" /><figcaption>Elon Musk</figcaption></figure><p>As someone who considers themselves up-to-date with the latest news and trends on everything design and innovation, I was taken aback when I saw a Facebook post back in December. My friend was calling out Elon Musk for being a jerk (and no it wasn’t one of the those Facebook friends that rants about everything). He was referring to a Twitter battle between Musk and Jarrett Walker, a public transit policy consultant with a PhD in humanities.</p><p>Their Twitter feud began because of Elon’s <a href="https://www.wired.com/story/elon-musk-awkward-dislike-mass-transit/">comments</a> at an AI Conference. Musk had called out public transportation for being a “pain in the ass” and that you could end up sharing a ride with someone “who might be a serial killer.” This led to a <a href="http://fortune.com/2017/12/16/elon-musk-public-transport/">series of tweets by Walker</a> aimed at Musk, saying that Musk wanted to create a public transportation system designed for the protection of the elite. To which Musk simply responded, “You’re an idiot.”</p><p>Up until this point, I had always thought of Elon Musk as a great leader and an innovation guru. I had nothing but respect for him. But these comments really shook me. After a quick Google search, I saw a couple of other articles that cast him in a negative light. This made me wonder if I was the idiot for thinking he was a great guy all along. It also made me realize I didn’t really know that much about him. This left me with one burning question: <strong>Is he a jerk or an innovative leader that we should aspire to be?</strong></p><p>With Christmas quickly approaching, I added Elon’s biography, <a href="https://www.amazon.com/dp/B00KVI76ZS/ref=dp-kindle-redirect?_encoding=UTF8&amp;btkr=1"><em>Elon Musk: Tesla, SpaceX, and the Quest for a Fantastic Future</em></a>, to my wishlist. I decided that this internal debate could only be answered with thorough research. What follows is my quest to answer this question. During my journey through Ashlee Vance’s incredible book, my thoughts on Musk would swing back and forth seeing the good, the bad, and the ugly sides of him. So I decided to break down Musk’s life into 6 stages highlighting each of these different sides. Only after seeing all parts was I able to come to a conclusion to this question.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BRGT-RhbPArM8Rne.png" /><figcaption>Elon Musk</figcaption></figure><h3>Little Kid Musk</h3><ul><li><strong>The Good:</strong> As a boy, Elon had an insatiable appetite for learning. He would often read a book a day. His most remarkable achievement came after he convinced his dad to buy him a Commodore VIC-20 (an old ass computer). According to the manual it’s supposed to take about 6 months to get through the all of the BASIC lessons. He stayed up for 3 straight days and finished the whole thing. Then he <a href="http://www.businessinsider.com/elon-musk-video-game-he-coded-when-he-was-12-is-now-playable-2015-6">designed an entire video game</a> on it; the source code of which was published in a magazine netting him $500.</li><li><strong>The Bad:</strong> He was teased and bullied a lot growing up. Sometimes this went as far as physical violence. On one occasion he was beaten up so badly that he blacked out and was hospitalized for an entire week.</li><li><strong>The Ugly:</strong> His dad seems to be darkest and most private aspect of his life. It appears that he may have been abusive — maybe not physically but at least mentally. While Musk talked to the author about most topics, he refused to talk about his father saying “He’s good at making life miserable. I don’t know how someone becomes like him.”</li></ul><h3>First Business Musk</h3><ul><li><strong>The Good:</strong> He left South Africa on his own without anything or anyone. He went to Canada where he stayed for a while — without a permanent home — until his brother met up with him. They made their way to Palo Alto and started their first business. Zip2 was basically mapquest before mapquest (which was Google Maps before Google Maps). It would end up selling for $307 million. Cha-ching.</li><li><strong>The Bad:</strong> While Elon and his brother were able to create a successful company, they had problems with their investors’ powers. The investors forced the product towards Media companies as more of a business directory instead of the B2C direction that Musk had hoped. To make matters worse Elon also experienced his first canceled merger catastrophe (#foreshadowing).</li><li><strong>The Ugly:</strong> Less than a decade after being essentially homeless in Canada, Elon was now Silicon Valley’s latest rich guy. It’s here we see the first signs of Elon potentially turning into a jerk. He purchased<a href="http://www.businessinsider.com/elon-musk-mclaren-f1-supercar-before-wreck-2017-6"> one of only 62 McLarens (really expensive car) in the world</a>. He drove it around so much in the Valley that he started to get a dick reputation.</li></ul><h3>The Young and Rich Musk</h3><ul><li><strong>The Good:</strong> Aside from the McLaren purchase, Elon poured all of his money into his next venture, a company that would change the banking industry. At the time people said he was crazy and that consumers would never trust the security of the internet for online banking. His company, X.com, was more successful than anyone had ever thought possible. He even beat out his biggest competitor, PayPal, started by Peter Thiel as they agreed to merge together with Elon becoming the largest shareholder.</li><li><strong>The Bad:</strong> ‘Wait, I thought Elon founded Paypal?’ — you might be thinking to yourself. Well, while Elon was on a plane beginning his honeymoon one of the nastiest Silicon Valley coups of all time occurred. After the plane landed he headed straight back to try to save it only to be forced out as CEO. They later rebranded as PayPal.</li><li><strong>The Ugly:</strong> After another horrible merger process, Elon finally had some time to step back and go on his honeymoon. However, he ended up getting malaria in South Africa and almost died because of it. One doctor said he was a day away from dying. After 6 months and 45 pounds lost, he survived. This was just in time for eBay to purchase PayPal for $1.5 billion — netting Elon $250 million. Cha-ching! While this might sound like a great thing, a book entitled <a href="https://www.amazon.com/PayPal-Wars-Battles-Media-Planet/dp/1936488590"><em>The PayPal Wars</em></a> published right after the deal that painted Elon as the villain of the entire company.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/0*yRx-UN80bWbbyIPf.jpeg" /><figcaption>Elon Musk</figcaption></figure><p><a href="https://unsplash.com/photos/OHOU-5UVIYQ">Photo</a> by SpaceX via Unsplash</p><h3>Starting SpaceX Musk</h3><ul><li><strong>The Good:</strong> After his near-death experience, Elon revisited his childhood dreams of going to Mars. He visited NASA’s website one day and found no plan or even mention of going to Mars. Taken aback, he headed to Russia to see if he could buy a rocket himself. After being pushed around with ridiculous prices, Elon dove into books studying how rockets are built. On their plane ride home from Russia, he declared he would build the rocket himself with a spreadsheet detailing how to do it. This was how SpaceX was born.</li><li><strong>The Bad:</strong> While SpaceX was in full startup mode, Elon’s first son, Nevada, was born. Unfortunately, he died of sudden infant death syndrome.</li><li><strong>The Ugly:</strong> At SpaceX Elon quickly gained a reputation as a staunch leader. One employee said “If Elon was not happy, you knew it. Things could get nasty.” Even one of SpaceX’s greatest employees, Steve Davis, experienced Elon’s lack of caring. Davis was once assigned a task that seemed so impossible that another engineer said, ‘any other engineer at any other aerospace company would never have even attempted’. The assignment was to take a part that was quoted for $120,000 and built it on Elon’s proposed budget of $5,000. Davis spent nine months and poured his life into it. In the end, he was able to able to make it for only $3,900! Davis sent Elon an email detailing his greatest accomplishment to which Elon simply replied ‘Ok.’</li></ul><h3>‘Founding’ Tesla Musk</h3><ul><li><strong>The Good:</strong> Elon had always seen a future of all-electric cars. So when Martin Eberhard and Marc Tarpenning approached Musk to become the first investor in a company called Tesla, Elon was all in. He wanted the car to be an image of the sustainable future. He wanted it to be a luxury brand and not some ‘silly looking Prius’. Because of that, he had a lot of say with setting up the company in Silicon Valley (as opposed to Detroit) and with the visual design of the car.</li><li><strong>The Bad:</strong> As soon as Tesla created their first workable concept car, they decided to have a big press event. The event was a success with 30 high profile clients preordering the car for $90,000. The bad news for Elon was that in the press release he wasn’t listed as a founder. To make matters worse, a <a href="http://www.nytimes.com/2006/07/19/business/19electric.html">NY Times article</a> about the company also left Elon Musk out. He was pissed.</li><li><strong>The Ugly:</strong> As Tesla was beginning to work on fulfilling their first round of pre-ordered cars, things weren’t going so well. The parts for the car were way too expensive and everything was behind schedule. Musk was not happy, so it was his turn to plot a coup. He called for the board to replace Martin Eberhard as CEO. They agreed and the original founder of the company was gone. After an interim CEO, Musk took over in 2008.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2LTo-EukPAleC7d0.png" /><figcaption>Elon Musk</figcaption></figure><p><a href="https://unsplash.com/photos/1nVbppFJl-s">Photo</a> by Matt Henry via Unsplash</p><h3>Leading SpaceX, Tesla, Hyperloop, SolarCity, and the Boring Company, Musk</h3><ul><li><strong>The Good:</strong> By this point, Elon has become an expert in leading multiple companies under extreme pressure all at once. In 2008 things were not looking great for Tesla and SpaceX. By Musk’s calculations, he only had enough money to save one company. Instead of panicking, Elon was able to keep his cool for long enough for SpaceX to win a contract to become NASA’s official supplier for the ISS. A similar ‘Tesla might go out of business’ situation happened again in 2013. It was so bad that Elon actually had <a href="https://www.theguardian.com/technology/2015/apr/21/google-almost-bought-tesla-elon-musk-larry-page">a handshake deal with Google for them to buy and save Tesla</a>. This never happened as Tesla’s sales team was able to beat projections and their stock went through the roof.</li><li><strong>The Bad:</strong> Elon’s leadership style continued to stay fierce (to say the least). To crank up the pace of the Tesla Model S design, they had two sets of employees working 24 hours a day. To quote the author, “It’s just never enough for Musk.” For example, in 2010 SpaceX had just successfully launched their Dragon capsule; and right before the party Musk called in his top executives to yell at them (in tuxes in front of their significant others) because one of the parts for a future rocket was behind schedule.</li><li><strong>The Ugly:</strong> Since managing multiple companies at once, his ugly side definitely reached its ugliest heights. <a href="https://www.marieclaire.com/sex-love/a5380/millionaire-starter-wife/">Elon got divorced and his ex-wife, Justine, wrote many nasty articles</a> on her blog about him. <a href="https://www.wired.com/2009/06/eberhard/">He was sued by the original founder of Tesla, Martin Eberhard</a>, for his ouster from the company. And the crowning jewel of his ugliness came from <a href="https://www.entrepreneur.com/article/298514">the treatment of his longtime executive assistant, Mary Beth Brown</a>. She basically did everything for him at every company. She never left his side. So one day she asked to get paid like an executive. He told her to take a 2-week vacation and that he would try to see if he could do her job. When she returned he told her he didn’t need her anymore. [Note: He did deny this on Twitter 2 years after the book was published.]</li></ul><h3>THE UNIVERSAL THEORY OF MUSK</h3><p>Throughout Elon’s evolution, I struggled to find one event that would define him. There are so many ups and downs that I couldn’t just point to one moment and say ‘Yep, he’s a jerk because of this.’ or ‘Yep, he’s someone we should aspire to because of that.’ I had to look at the totality of his life in order to make sense of it all.</p><p>What was clear throughout the book is that Elon operates differently than most other successful people today. Jeff Hammerbacher, an early Facebook engineer, claims that “The best minds of our generation are thinking about how to make people click ads.” And Elon agrees with him saying “I think there are probably too many smart people pursuing internet stuff, finance, and law. That is part of the reason we haven’t seen that much innovation.” But it’s this statement that reveals Elon isn’t after these little innovations. He’s always in pursuit of his larger purpose.</p><p>I would like to die thinking that humanity has a bright future. If we can solve sustainable energy and be well on our way to becoming a multiplanetary species with a self-sustaining civilization on another planet… I think that would be really good. — Elon Musk</p><p>In the final paragraph of the biography, the author ends with “I asked Musk directly just how much he was willing to put on the line. His response? Everything that other people hold dear. I would die on Mars. If my wife and I have a bunch of kids, she would probably stay with them on Earth.”</p><p>Seeing Elon in this light connects a lot of dots. The objective of the video game he created as a kid was to save the world from an alien space freighter. In college, he wrote papers detailing his plans for sustainable energy in order to ensure that “civilization can continue to progress.” Even the founding all of his businesses were not driven by lucrative desires, but rather he was working to create a system of interconnected companies that can help our species in the short term as well as in the long term.</p><p><strong>So with this universal understanding of Musk where does that leave us with our initial question?</strong></p><p>It leads me to conclude that Elon cares about one thing above all else: saving our species. He cares so much about this that it doesn’t matter if people think he’s a jerk. To him, the greater good is more important that one individual’s feelings (even his family’s). So at the end of the day, I have to say that <strong>Elon Musk is a jerk, but he’s also an innovative jerk that we should aspire to be.</strong></p><p>Let’s see if everyone who reads this article sends a dollar on 37u5qk3aFhA23A6byKZGPGvoMMHHe2NNBV then can this article afford a Tesla? If yes, everyone who contributed get a chance to win one.</p><h4>TERMS</h4><ul><li>#Send1USD on 37u5qk3aFhA23A6byKZGPGvoMMHHe2NNBV #WinTesla on Medium’s №1 place for high-quality educational/non-intimidating content resource for you…</li><li>You Must be a Continuous Follower and Clapped on at least 10% of Articles on the account.</li><li>Comment your Email Address below any of our articles saying you have entered the competition with whatever amount. (Minimum is 1USD for 1 ticket you get tickets in accordance to the amount)</li><li>How will we verify? We will contact you via Commented email address and ask for Crypto Address.</li><li>The amount will be set in accordance Tesla Model S to your Bitcoin Address.</li></ul><p>Our Bitcoin Address: 37u5qk3aFhA23A6byKZGPGvoMMHHe2NNBV</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e88d9668ac97" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[UAE probe ‘Amal’ transmits picture of Mars’ largest volcano ‘Olympus Mons’]]></title>
            <link>https://onemanbro.medium.com/uae-probe-amal-transmits-picture-of-mars-largest-volcano-olympus-mons-5644020b25d0?source=rss-a80632c7e742------2</link>
            <guid isPermaLink="false">https://medium.com/p/5644020b25d0</guid>
            <category><![CDATA[space]]></category>
            <category><![CDATA[arab]]></category>
            <category><![CDATA[uae]]></category>
            <category><![CDATA[exploration]]></category>
            <category><![CDATA[islam]]></category>
            <dc:creator><![CDATA[One]]></dc:creator>
            <pubDate>Mon, 15 Feb 2021 12:59:37 GMT</pubDate>
            <atom:updated>2021-02-15T12:59:37.616Z</atom:updated>
            <content:encoded><![CDATA[<h4>The picture was taken on Wednesday by The United Arab Emirates’ historic Mars probe ‘Amal’ or ‘Hope.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*SXSeNR3x-0DcIdhGrXOyuQ.jpeg" /></figure><p>The United Arab Emirates on Sunday published the first image for its Mars probe now circling the red planet.</p><p>The picture, taken Wednesday, shows sunlight just coming across the surface of Mars. It shows Mars’ north pole, as well as Mars’ largest volcano, Olympus Mons.</p><p>The image comes from its “Amal,” or “Hope,” space probe. The probe swung into orbit around Mars on Tuesday in a triumph for the Arab world’s first interplanetary mission.</p><p><a href="https://medium.com/u/a80632c7e742">Utter Urban</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5644020b25d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[YOUNG STAR, ORBITING EXOPLANETS DISCOVERED IN A ‘RIVER OF STARS’ USING TESS, SPITZER DATA]]></title>
            <link>https://onemanbro.medium.com/young-star-orbiting-exoplanets-discovered-in-a-river-of-stars-using-tess-spitzer-data-928f7d03188c?source=rss-a80632c7e742------2</link>
            <guid isPermaLink="false">https://medium.com/p/928f7d03188c</guid>
            <category><![CDATA[nasa]]></category>
            <category><![CDATA[discovery]]></category>
            <category><![CDATA[exploration]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[space]]></category>
            <dc:creator><![CDATA[One]]></dc:creator>
            <pubDate>Mon, 15 Feb 2021 12:52:45 GMT</pubDate>
            <atom:updated>2021-02-15T12:52:45.592Z</atom:updated>
            <content:encoded><![CDATA[<p>Astronomers have spotted a young star called TOI 451 that has three hot planets in orbit around it. The astronomers spotted the sun using NASA’s Transiting Exoplanet Survey Satellite (TESS). The young star has a lot in common with our sun, according a <a href="https://www.nasa.gov/feature/goddard/2021/nasa-s-tess-discovers-new-worlds-in-a-river-of-young-stars/"><strong>NASA statement</strong></a> of the discovery. However, considering our sun’s age is roughly 4.6 billion years old, the star TOI 451 is relatively younger, at 120 million years old. The newly-discovered star could further the current understanding of how the solar system formed. The TOI 451 star is 95 percent the mass of the sun, 12 percent smaller, and emits only two-third the energy.</p><p>All three planets that orbit TOI 451 sit very close to the star, according to the statement. This means that the planets are hot, with temperatures ranging from 2,200 °F (innermost planet) to 840 °F (outermost). The system also has a pair of companion stars that orbit far beyond the planets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9g8IT7iJ4novGQAxlAO6kQ.jpeg" /><figcaption>The TOI 451 system. Image: NASA</figcaption></figure><p>The three planets and TOI 451 reside in a “river of stars” known as the Pisces-Eridanus stream which was discovered recently. The stream is 1,300 light-years long that covers one-third of the sky and is made up of stars that are less than 3 percent of the age of the universe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ij1nQIA1nlJhd9_-xiikqw.jpeg" /><figcaption>Yellow dots show the locations of known or suspected members, with TOI 451 circled. Image: NASA</figcaption></figure><p>Researchers had originally thought that the stream was old, as young stars can have dark spots like sunspots which cause fluctuations in their brightness. However, a closer look at the stream using the TESS observatory, researchers could observe that the stream was actually made up of very young stars that spin quickly.</p><p>The planets discovered make for an excellent point of observation for telescopes as they develop, with tools like the upcoming James Webb Space Telescope that can detect whether an exoplanet has an atmosphere.</p><p><a href="https://medium.com/u/a80632c7e742">Utter Urban</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=928f7d03188c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[This 500 Startups investor has advice for aspiring entrepreneurs]]></title>
            <link>https://onemanbro.medium.com/this-500-startups-investor-has-advice-for-aspiring-entrepreneurs-758ca4174a0d?source=rss-a80632c7e742------2</link>
            <guid isPermaLink="false">https://medium.com/p/758ca4174a0d</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[startup-lessons]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[invest]]></category>
            <dc:creator><![CDATA[One]]></dc:creator>
            <pubDate>Sun, 07 Feb 2021 11:19:28 GMT</pubDate>
            <atom:updated>2021-02-07T11:19:28.464Z</atom:updated>
            <content:encoded><![CDATA[<p>Khailee Ng has a keen nose for spotting promising start-ups.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/740/1*8d-GV82rtkoCz5XsGNa0MQ.jpeg" /><figcaption>Khailee Ng, managing partner at venture capital firm 500 Startups.</figcaption></figure><p>As a managing partner for venture capital firm <a href="https://500.co/">500 Startups</a>, he is tasked with identifying and helping cultivate some of the businesses of the future.</p><p>And he has advice for would-be founders hoping to build the next big thing: Look beyond the top segment of society.</p><p>Too often, start-ups focus on creating products and services for wealthy consumers in advanced economies, Ng said. But there are many important — and potentially lucrative — problems to be solved in poorer, developing economies.</p><p>“I don’t think a lot of people think about that,” Ng told <a href="https://www.cnbc.com/make-it/">CNBC Make It.</a> “You can actually make a lot of money by serving a population which doesn’t have that much money.”</p><h3>A start-up strategy for Asia</h3><p>Indeed, that is where Ng, who is part of the Silicon Valley firm’s Southeast Asia office, focuses much of his funding.</p><p>The investor was one of the early backers of now <a href="https://www.cnbc.com/2021/02/02/bukalapak-indonesias-multibillion-dollar-warung-e-commerce-business.html">multibillion-dollar Indonesian e-commerce marketplace Bukalapak</a>, which provides technology for the country’s traditional, family-owned street stalls.</p><p>His teams’ other regional investments include Singapore-based ride-hailing unicorn Grab and Malaysian <a href="https://www.cnbc.com/2020/10/29/this-helping-during-covid.html">on-demand work platform GoGet.</a> Unicorns are technology start-ups valued at $1 billion or more.</p><p>As such, Ng encouraged aspiring entrepreneurs to look at developing markets with a long-term view and consider some of the wider trends that are likely to occur.</p><p>“I want to encourage entrepreneurs to look at any of their markets, especially if they’re looking at large markets like Indonesia and Southeast Asia broadly, (and) think of the bigger picture and the longer horizon,” advised Ng.</p><p>500 Startups, for instance, when looking at potential investments, considers the relationship between consumption, productivity and gross domestic product in a given market and how that will evolve. More sophisticated markets tend to be productivity-focused while developing countries remain consumption-led, he said.</p><blockquote>Southeast Asia has stepped into a new phase now … start-ups which fall into increasing people’s productivity (will) be the next wave. — <strong>Khailee Ng</strong></blockquote><p>“The first wave of large unicorns, a lot of them are very consumption-centric. But later on, when a lot of people are oversaturated with consumption points, you try to think about productivity,” he said.</p><p>Those metrics can help a start-up determine the wants and needs of a particular market, Ng continued.</p><p>“Thinking along those lenses, I definitely think Southeast Asia has stepped into a new phase now, where building start-ups which fall into increasing people’s productivity (will) be the next wave,” he said. “I look forward to seeing more entrepreneurs actually build more companies that can serve the broader populations.”</p><h3>A ‘once-in-a-lifetime’ opportunity</h3><p>Ng is not alone in his mentality.</p><p>Speaking at Singapore Fintech Festival late last year, the founder of <a href="https://www.cnbc.com/2020/12/15/paytm-ceo-india-has-a-once-in-a-lifetime-technology-opportunity.html">multibillion-dollar Indian financial technology company Paytm</a> advised aspiring entrepreneurs to focus on building products and services for users in developing markets, rather than already well-served advanced economies.</p><p>“It is a once-in-a-lifetime opportunity for entrepreneurs to build this in this side of the region,” said Vijay Shekhar Sharma, noting that many advanced economies are already saturated.</p><p>“The next five billion customers in the world will be served using the technologies and the methodologies that are built in Asia,” he predicted.</p><p><a href="https://medium.com/u/a80632c7e742">Utter Urban</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=758ca4174a0d" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>