Fact Tables Vs. Dimension Tables: Power BI

https://static1.makeuseofimages.com/wordpress/wp-content/uploads/2023/07/power-bi-tables.jpg

In Power BI, fact and dimension tables play a crucial role in organizing and analyzing data. With a clear understanding of the difference between these two types of tables, you can build an effective data model and make more informed business decisions from your data.

In this article, we’ll start by establishing a solid understanding of fact and dimension tables and then explore the differences between them.

What Is a Fact Table?

A fact table serves as the central table in your data model. This table holds foreign keys that reference primary keys in your dimension tables. Each foreign key corresponds to specific primary key values in a dimension table.

Fact tables can also contain numeral data you can use to perform calculations within your analysis. Such calculations help with making informed business decisions. For instance, you can include sales orders and log tables in a fact table.

What Is a Dimension Table?

Dimension tables contain data that provide context and descriptions to fact tables. These tables are typically smaller than the fact table and contain primary keys as well as distinct item values. Primary keys are specific items that allow for the unique identification of each row in your table.

For instance, you might have a dimension table that includes product names and their labels, the data table for your Power BI model, store locations, or even pin codes.

Difference Between Fact Tables and Dimension Tables

Fact and dimension tables differ in more ways than just their size. Here are the key difference between the two tables:

  1. Regarding the data they contain, fact tables provide information about the granularity of the data, such as daily sales at a store. In contrast, dimension tables offer context about the fact table data. For example, information about the customer making the purchases.
  2. Fact tables are the foundation of your data analysis metrics, such as the total daily sales. The dimension tables complement this and serve as useful filters. For instance, you can use them to determine if sales are evenly spread between the stores or if they come from only 70% of them.
  3. Fact table lack hierarchy. Dimension tables, however, have a hierarchy. For example, the customer dimension table can link to lower levels with details like names, emails, and phone numbers.
  4. Primary keys in fact tables are mapped as foreign keys to dimensions. However, each dimension table has a distinct primary key uniquely identifying each record.

Fact Tables and Dimension Tables Are Important

Clearly defining the difference between fact and dimension tables in Power BI is crucial in building an effective data model. Understanding the distinctions between the two will also help you decide which table best suits data aggregation and which is best for filtering.

A solid grasp of Power BI’s various components can make all the difference in your data analysis.

MakeUseOf

Things That Don’t Suck: The Gunzee for Concealed Carry Holsters

https://cdn0.thetruthaboutguns.com/wp-content/uploads/2023/07/PXL_20230724_234322145-scaled.jpg

Next Post Coming Soon…▶

It’s supposed to be comforting, not comfortable! How many times have we heard that in the gun world? I get the idea behind the phrase, but I want it to be comfy too.

What’s the main reason we carry small guns these days? Modern , well-designed holsters have made it fairly easy to conceal larger guns, but comfort is still a big factor. Bigger guns have bigger holsters, especially if you add accessories like lights. These holsters tend to poke, prod, and rub.

It’s bearable most of the time, but when you hit the 13th hour on your feet, anything can become uncomfortable. With that in mind, when I ran across the Gunzee, I was cautiously curious.

A simple pad makes a big difference. (Travis Pike for TTAG)

The Gunzee offers a simple solution to your comfort problems. It’s a soft, foam-like pad that attaches a holster you already own with hook and loop patches. Once attached, it provides a pad between the holster and you. The goal is prove that a holster can be comfy regardless of the gun, accessories, position carried, or the amount of time you carry it. It’s a design you’d think someone would have come up with by now. Gunzee sent me several models to test and review.

I installed the standard Gunzee pad on my Alien Gear Photon and have been carrying around a GLOCK 19 equipped with a 550XL light. I’ve been waking up and getting strapped as soon as I put my pants on and carrying them around all day, every day until the pants come off.

What Exactly is the Gunzee?

According to Gunzee, the pad is a 3-layer industrial-grade memory foam cushion. It’s certainly nice and thick. The pads come in various sizes that correspond to typical firearm sizes.

The Gunzee Mini is for micro and subcompacts, the Gunzee Original is for compacts, and the Gunzee Max is for the full-size guns some carry.

The Gunzee is easy to install and position. (Travis Pike for TTAG)

I’m using the original on my Photon with the GLOCK 19. The pads are soft foam and can be cut and trimmed to better fit your particular gun and holster if you choose. I didn’t see a need to do so, so I left it as is.

Attaching the Gunzee to your holster involves using some strong, very sticky velcro. Make sure you get it where you want it because moving the hook side isn’t going to be easy once it’s in place.

The Velcro hook and loop attachments stay put nicely. It grips and locks itself in place without much difficulty. The Gunzee pad attached with ease to my holster, and I had no problems with the pad shifting or moving during the many, many hours I’ve carried the gun and holster combination.

Carrying With The Gunzee

With the Gunzee attached to my holster and my holster on my belt, I went about my day. At first, I had some concerns about printing. The Gunzee adds a roughly half-inch pad between you and your rig.

It pressed everything outward a fair bit and caused some printing issues at first. However, after being carried around for the day, the problem disappeared. The pad compressed a little, conformed to my body, and the printing problem disappeared. I’m not sure when or how long it took exactly, but it was within the first eight hours of wearing the holster and Gunzee.

It fits, stays comfy, and makes life easy. (Travis Pike for TTAG)

Did the Gunzee make the holster more comfortable? You bet your bum it did. Most of the time, I have no comfort issues when carrying appendix until it comes to sitting for long periods of time. Sure, it pokes and rubs a little, but it doesn’t drive me crazy.

With the Gunzee pad, the poking and rubbing disappeared. In fact, several times, I realized, “Oh yeah, I’m carrying a GLOCK 19 with a weapon light.” I had totally forgotten about it.

When it comes to sitting, the same thing occurs. I can sit and drive for long periods without having to adjust my holster or position. The Gunzee helps erase those feelings of discomfort entirely. I can’t quite forget I’m packing appendix when it comes to sitting, but I’m not uncomfortable. I’m sitting right now and wearing my gun and holster, and I have no inclination to move, wiggle, or adjust the gun.

Throwing Lead

Okay, so comfort is great. We love being comfortable. However, the Gunzee could be a dealbreaker if it negatively affects your draw. If it gets in the way or somehow prevents me from achieving a good grip on the gun, that would be a non-starter for me.

Printing was an initial concern, but the pad compressed after a little carry time. (Travis Pike for TTAG)

Luckily, I had zero problems with the Gunzee getting in the way of my draw. The fact you can trim it (a utility knife does the trick) to fit ensures this shouldn’t be an issue with any holster.

Looking online, I’ve seen the Gunzee cut to fit a wide variety of holsters. This includes sidecar holsters, minimalist designs, and standard Kydex rigs.

Is It For You?

The Gunzee costs between $30 and $40, depending on size. That seem pricey to me for what it is, but I don’t know what memory foam costs.. That said, the comfort it adds is well worth the cost.

The Gunzee stays out of the way, and for over a week and at least twelve hours a day, I’ve carried my gun with the Gunzee. It hasn’t failed me yet. It hasn’t moved or sagged. It hasn’t flaked or torn in any way. Other than being slightly more compressed (a good thing), it hasn’t changed.

The Gunzee is a great addition to IWB rigs. (Travis Pike for TTAG)

I think it’s a great way to make IWB carry a bit comfier. If you carry appendix, it’s most certainly an excellent investment to make your life just a little bit better. It’s too hot out here to deal with both the heat and the rub and prod of a holster. Check it out here.

Next Post Coming Soon…▶

The Truth About Guns

How to Clean Your Dirty iPhone Speakers

https://static1.makeuseofimages.com/wordpress/wp-content/uploads/wm/2023/07/dirty-iphone-speaker.jpg

No matter how often you clean your iPhone, your iPhone’s speakers and other ports will likely collect dust, dirt, lint, and other particles over time.

Because of this, you might notice poor speaker audio quality and have trouble connecting your charging cable to your device.

Fortunately, you can easily fix these issues by cleaning your iPhone’s speaker grilles and other ports. Let’s walk through the best ways to clean your iPhone’s speakers.

1. Use a Toothbrush

Using a toothbrush or any soft brush to gently clean your iPhone’s speakers is one of the best ways to get rid of the dirt clogged into the top speaker above the screen. However, try to brush out the dust at an angle that you won’t push the particles further inside.

While it might not be ideal for clearing the bottom grille, as it risks ruining the speakers if you accidentally apply too much pressure, you can use a toothbrush to remove dust from the earpiece speaker.

Start by gently bruising from side to side and slowly start scraping in a circular motion, like you’d while brushing your teeth (but not as aggressively), to pull out dust. Repeat the process several times for the best result.

2. Use Cotton Swabs

While brushing out the dust is one of the best ways to keep your iPhone clean, this method might not clean the speaker grilles thoroughly. After all, gently scrubbing a toothbrush won’t remove stubborn debris or lint build-up into your iPhone’s speakers.

Therefore, you should use cotton swabs next to go deeper without having to worry about ruining your iPhone’s speakers. To get the best results, remove your iPhone’s case so that you can easily deep clean the speaker grille.

Point a cotton swab straight over the speaker holes and gently apply pressure to ensure it collects all the debris clogged inside. Slowly roll the cotton back and forth over the mesh. It’s also one of the best fixes when your iPhone’s speakers aren’t working.

3. Use a Toothpick

Use a toothpick to go even deeper to clear out the lint from your iPhone’s speakers. However, be cautious while using it to do this job, as it can damage the internals if not used correctly.

A toothpick isn’t as sharp as a SIM ejector tool, tweezers, or paper clip, but it can still pierce through the mesh. We recommend using this method only to clean the bottom speakers and avoid using it on the earpiece.

To do this, point the toothpick at each speaker opening while being gentle. Then slowly slide the toothpick over each gap, scratching it lightly, and pull it out. Use a flashlight if necessary to have a clear vision of where you’re moving the toothpick. You can also use this method to clean your iPhone’s charging port.

4. Get Rid of Dust With Painter’s Tape

If you aren’t comfortable using a toothpick to clean your iPhone’s speakers, you can use painter’s tape instead to remove stubborn dust particles stuck deep inside the grille. You can also use this after the aforementioned methods to extract the remaining tiny dust particles.

To use painter’s tape to clear your iPhone’s speakers, cut off a small portion of the tape and roll it into a cylinder shape, sticky side out. Insert the tape into the iPhone speaker after wrapping it around your index finger.

Use the tape to collect all the dirt and debris gathered in the speaker grilles. Check the tape’s surface after each application. Throw the used tape and roll another small piece of tape if necessary. Repeat the process until you notice no dirt and lint adhering to it.

5. Use an Air Blower

You can also use a soft tip air blower to clean your iPhone’s speakers, as they provide less pressure than compressed air in a can. After using the soft bristle brush to remove any dirt, you might want to use an air blower to help clear the area if you aren’t comfortable using a toothpick or don’t have access to painter’s tape.

To clear your speakers of any debris, blow short bursts of air. Also, maintain a close gap to the speakers while using the air blower.

Clean Your iPhone’s Speakers Effectively

Using these methods, you can easily clean your iPhone’s dirty speakers. However, there are a few other methods that you should avoid using to clear the grille. You shouldn’t use sharp objects like needles, tweezers, or pins to clean the speakers.

Also, avoid using any kind of cleaning liquid, such as rubbing alcohol or water, to remove dirt from your iPhone’s speakers. Apple also officially advises not to use canned, compressed air to clean your iPhone’s speakers as it might force the dust further into the device.

MakeUseOf

How to Clean Your Dirty iPhone Speakers

https://static1.makeuseofimages.com/wordpress/wp-content/uploads/wm/2023/07/dirty-iphone-speaker.jpg

No matter how often you clean your iPhone, your iPhone’s speakers and other ports will likely collect dust, dirt, lint, and other particles over time.

Because of this, you might notice poor speaker audio quality and have trouble connecting your charging cable to your device.

Fortunately, you can easily fix these issues by cleaning your iPhone’s speaker grilles and other ports. Let’s walk through the best ways to clean your iPhone’s speakers.

1. Use a Toothbrush

Using a toothbrush or any soft brush to gently clean your iPhone’s speakers is one of the best ways to get rid of the dirt clogged into the top speaker above the screen. However, try to brush out the dust at an angle that you won’t push the particles further inside.

While it might not be ideal for clearing the bottom grille, as it risks ruining the speakers if you accidentally apply too much pressure, you can use a toothbrush to remove dust from the earpiece speaker.

Start by gently bruising from side to side and slowly start scraping in a circular motion, like you’d while brushing your teeth (but not as aggressively), to pull out dust. Repeat the process several times for the best result.

2. Use Cotton Swabs

While brushing out the dust is one of the best ways to keep your iPhone clean, this method might not clean the speaker grilles thoroughly. After all, gently scrubbing a toothbrush won’t remove stubborn debris or lint build-up into your iPhone’s speakers.

Therefore, you should use cotton swabs next to go deeper without having to worry about ruining your iPhone’s speakers. To get the best results, remove your iPhone’s case so that you can easily deep clean the speaker grille.

Point a cotton swab straight over the speaker holes and gently apply pressure to ensure it collects all the debris clogged inside. Slowly roll the cotton back and forth over the mesh. It’s also one of the best fixes when your iPhone’s speakers aren’t working.

3. Use a Toothpick

Use a toothpick to go even deeper to clear out the lint from your iPhone’s speakers. However, be cautious while using it to do this job, as it can damage the internals if not used correctly.

A toothpick isn’t as sharp as a SIM ejector tool, tweezers, or paper clip, but it can still pierce through the mesh. We recommend using this method only to clean the bottom speakers and avoid using it on the earpiece.

To do this, point the toothpick at each speaker opening while being gentle. Then slowly slide the toothpick over each gap, scratching it lightly, and pull it out. Use a flashlight if necessary to have a clear vision of where you’re moving the toothpick. You can also use this method to clean your iPhone’s charging port.

4. Get Rid of Dust With Painter’s Tape

If you aren’t comfortable using a toothpick to clean your iPhone’s speakers, you can use painter’s tape instead to remove stubborn dust particles stuck deep inside the grille. You can also use this after the aforementioned methods to extract the remaining tiny dust particles.

To use painter’s tape to clear your iPhone’s speakers, cut off a small portion of the tape and roll it into a cylinder shape, sticky side out. Insert the tape into the iPhone speaker after wrapping it around your index finger.

Use the tape to collect all the dirt and debris gathered in the speaker grilles. Check the tape’s surface after each application. Throw the used tape and roll another small piece of tape if necessary. Repeat the process until you notice no dirt and lint adhering to it.

5. Use an Air Blower

You can also use a soft tip air blower to clean your iPhone’s speakers, as they provide less pressure than compressed air in a can. After using the soft bristle brush to remove any dirt, you might want to use an air blower to help clear the area if you aren’t comfortable using a toothpick or don’t have access to painter’s tape.

To clear your speakers of any debris, blow short bursts of air. Also, maintain a close gap to the speakers while using the air blower.

Clean Your iPhone’s Speakers Effectively

Using these methods, you can easily clean your iPhone’s dirty speakers. However, there are a few other methods that you should avoid using to clear the grille. You shouldn’t use sharp objects like needles, tweezers, or pins to clean the speakers.

Also, avoid using any kind of cleaning liquid, such as rubbing alcohol or water, to remove dirt from your iPhone’s speakers. Apple also officially advises not to use canned, compressed air to clean your iPhone’s speakers as it might force the dust further into the device.

MakeUseOf

How to Connect MySQL to Tableau: A Guide for BI Professionals

It is necessary to have a reliable and efficient way to transfer data from databases to the BI tool. MySQL, one of the most popular open-source relational database management systems, comes in here. This article will explore how to connect MySQL to Tableau and share data seamlessly between the two.

The post How to Connect MySQL to Tableau: A Guide for BI Professionals appeared first on Devart Blog.

Planet MySQL

You Should Enable Gmail’s New ‘Enhanced Safe Browsing’

https://i.kinja-img.com/gawker-media/image/upload/c_fill,f_auto,fl_progressive,g_center,h_675,pg_1,q_80,w_1200/3f8164b4ea7d53007743bee156ca7d42.jpg

Google’s had an Enhanced Safe Browsing feature in Chrome since 2019—a set of privacy features to help protect against phishing and malware attacks. Basically, if a link doesn’t seem quite right, Google will warn you about it. Recently, they finally brought the feature directly into Gmail.

Here’s how Enhanced Safe Browsing mode works

Enhanced Safe Browsing checks the links and attachments in your Gmail account with its own database of known scam links, where a website pretends to be real to steal your personal information (also known as phishing). Google has a massive database of such bad actors, and it’s updated every 30 minutes. Once the feature is enabled, Gmail will scan incoming emails and attachment downloads against that database and warn you if something looks suspicious.

How to enable Enhanced Safe Browsing on Gmail

If you’re already logged in to your Google account, simply open this link in a new tab and enable the Enhanced Safe Browsing feature from there. Alternatively, you can open your Google Account page and go to Security > Manage Enhanced Safe Browsing.

When you enable this feature in your Google account, it will be enabled across other Google products as well, like Chrome. And in Chrome, this feature extends to Chrome extensions and file downloads.

The downsides of using Enhanced Safe Browsing

The only big downside to using Enhanced Safe Browsing is the sheer amount of personal data that Google will be able to access. It’ll be able to check all the links that come through your Gmail account, and if you use Chrome, that includes links clicked, files downloaded, and extensions installed.

Of course, Google says this data is used only to improve your data security when you’re logged in, and after a short time, the data is fully anonymized. But anonymizing data isn’t perfect—it can still be linked to social media profiles, as one Princeton study illustrates.

If you’re okay with that potential risk, go ahead and enable the feature. It might also be worth recommending to others in your life too, if you think they’re the type of user particularly susceptible to things like phishing scams and malware attacks.

[ZDNET, CNET]

Lifehacker

Introduction to PandasAI: The Generative AI Python Library

https://static1.makeuseofimages.com/wordpress/wp-content/uploads/2023/07/manipulating-datasets-and-dataframes-with-pandasai-featured-image.jpg

Pandas is the most predominant library for manipulating datasets and dataframes. This has been the norm for a long time. But with the advancement in artificial intelligence, a new open-source library called PandasAI is developed that adds generative AI capabilities to Pandas.

PandasAI does not replace Pandas. Instead, it gives its generative AI capabilities. In this way, you can perform data analysis by chatting with PandasAI. It then abstracts what is happening in the background and provides you with the output of your query.

Installing PandasAI

PandasAI is available via PyPI (Python Package Index). Create a new virtual environment if you are using a local IDE. Then use the pip package manager to install it.

 pip install pandasai 

You may encounter a dependency conflict error similar to the one shown below if you are using Google Colab.

Do not downgrade the IPython version. Just restart your runtime and run the code block again. This will resolve the issue.

Understanding the Sample Dataset

The sample dataset you will manipulate with PandasAI is the California Housing Prices dataset from Kaggle. This dataset contains information about housing from the 1990 California census. It has ten columns that provide statistics about these houses. The data card to help you learn more about this dataset is available on Kaggle. Below are the first five rows of the dataset.

Each column represents a single statistic of a house.

Connecting PandasAI to the Large Language Model

To connect PandasAI to a large language model (LLM) like that of OpenAI, you need access to its API key. To obtain one, proceed to the OpenAI platform. Then log in to your account. Select API under the options page that appears next.

After that, click on your profile and select the View API keys option. On the page that appears next click Create new secret key button. Lastly, name your API key.

OpenAI will generate your API key. Copy it as you will need it while connecting PandasAI with OpenAI. Make sure you keep the key secret as anyone with access to it can make calls to OpenAI on your behalf. OpenAI will then charge your account for the calls.

Now that you have the API key, create a new Python script and paste the code below. You won’t need to change this code as most of the time you will be building on it.

 import pandas as pd
from pandasai import PandasAI


df = pd.read_csv("/content/housing.csv")


from pandasai.llm.openai import OpenAI
llm = OpenAI(api_token="your API token")

pandas_ai = PandasAI(llm)

The above code imports both PandasAI and Pandas. It then reads a dataset. Finally, it Instantiates the OpenAI LLM.

You are now set to converse with your data.

Performing Simple Tasks Using PandasAI

To query your data, pass your dataframe and your prompt to the instance of PandasAI class. Start by printing the first five rows of your dataset.

 pandas_ai(df, prompt='What are the first five rows of the dataset?') 

The output of the above prompt is as follows:

This output is identical to that of the dataset overview earlier. This shows that PandasAI produces correct results and is reliable.

Then, check the number of columns present in your dataset.

 pandas_ai(df, prompt='How many columns are in the dataset? ') 

It returns 10 which is the correct number of columns in the California Housing dataset.

Checking whether there are missing values in the dataset.

 pandas_ai(df, prompt='Are there any missing values in the dataset?') 

PandasAI returns that the total_bedrooms column has 207 missing values, which is again correct.

There are a lot of simple tasks that you can achieve using PandasAI, you are not limited to the ones above.

Performing Complex Queries Using PandasAI

PandasAI does not only support simple tasks. You can also use it to carry out complex queries on the dataset. For example, in the housing dataset, if you want to determine the number of houses that are located on an island, have a value of more than 100,000 dollars, and have more than 10 rooms you can use the prompt below.

 pandas_ai(df,prompt= "How many houses have a value greater than 100000,"
                    " are in an island and total bedrooms is more than 10?")

The correct output is five. This is the same result that PandasAI outputs.

Complex queries might take a data analyst some time to write and debug. The above prompt only takes two lines of natural language to accomplish the same task. You just need to have in mind exactly what you want to accomplish, and PandasAI will take care of the rest.

Drawing Charts Using PandasAI

Charts are a vital part of any data analysis process. It helps the data analysts visualize the data in a human-friendly manner. PandasAI also has a chart drawing feature. You just have to pass the dataframe and the instruction.

Start by creating a histogram for each column in the dataset. This will help you visualize the distribution of the variables.

 pandas_ai(df, prompt= "Plot a histogram for each column in the dataset") 

The output is as follows:

PandasAI was able to draw the histogram of all the columns without having to pass their names in the prompt.

PandasAI can also plot charts without you telling it explicitly which chart to use. For example, you may want to find out the correlation of the data in the housing dataset. To achieve this you can pass a prompt as follows:

 pandas_ai(df, prompt= "Plot the correlation in the dataset") 

PandasAI plots a correlation matrix as shown below:

The library chooses a heatmap and plots a correlation matrix.

Passing in Multiple Dataframes to the PandasAI Instance

Working with multiple dataframes can be tricky. Especially for a person who is new to data analysis. PandasAI bridges this gap as all you need to do is pass both dataframes and start using prompts to manipulate the data.

Create two dataframes using Pandas.

 employees_data = {
   'EmployeeID': [1, 2, 3, 4, 5],
   'Name': ['John', 'Emma', 'Liam', 'Olivia', 'William'],
   'Department': ['HR', 'Sales', 'IT', 'Marketing', 'Finance']
}

salaries_data = {
   'EmployeeID': [1, 2, 3, 4, 5],
   'Salary': [5000, 6000, 4500, 7000, 5500]
}

employees_df = pd.DataFrame(employees_data)
salaries_df = pd.DataFrame(salaries_data)

You can ask PandasAI a question that cuts across both of the dataframes. You only have to pass both dataframes to the PandasAI instance.

 pandas_ai([employees_df, salaries_df], "Which employee has the largest salary?")

It returns Olivia which is again the correct answer.

Performing data analysis has never been easier, PandasAI lets you chat with your data and analyze it with ease.

Understanding the Technology That Powers PandasAI

PandasAI simplifies the process of data analysis hence saving a lot of time for data analysts. But it abstracts what is happening in the background. You need to familiarize yourself with generative AI so that you can have an overview of how PandasAI is operating under the hood. This will also help you keep up with the latest innovations in the generative AI domain.

MakeUseOf

What Is Plex? A Beginner’s Guide

https://static1.makeuseofimages.com/wordpress/wp-content/uploads/2023/07/plex-on-an-iphone-ipad-and-mac.jpg

Not as popular as Netflix or as specific as Crunchyroll, Plex is a not-so-well-known but versatile entertainment platform that serves many core functions. It’s a cross-platform media streaming service you can use to watch live TV, find titles, stream music, and broadcast your own media on a server.

Plex might be a little difficult to navigate as a new user, but we’ve got you covered. Keep reading to learn how to use Plex’s core features to work and understand its pricing plans.

What Is Plex?

On the surface, Plex looks like another Netflix alternative, but don’t be deceived. While it’s a streaming platform, most of the titles you’ll find here to stream are old or low-budget films and TV shows. But they’re all free.

You could also find newer titles that aren’t available for streaming on Plex. After finding them, add them to your Watchlist, and see where you can currently stream them in its Watch from these locations section in the film description. If you have a Plex Media Server with the movie in its catalog, you’ll find the server with the movie listed as a source.

You can also stream music from Plex by clicking Music on the side menu. However, you will need a Tidal subscription since all the music on Plex is from Tidal.

However, most people commonly use Plex for its media server. With a Plex Media Server, you can create a server that will source videos, photos, and music from the host device and broadcast it online for all other devices using your account.

Plex Also Has Live TV Channels

Similar to cable TV, Plex has “channels” you can connect to and watch. These channels number over a hundred in various niches, categories, and languages. This is the only way you can watch certain shows like The Joy of Painting with Bob Ross; it’s not in the Free On Demand category—you’ll only find it only on the Bob Ross Channel.

The Live TV section is in the left-side menu. After you select it, you can use the tabs to choose what categories you would like, such as Entertainment, Movies, Reality, News, Kids, etc. Learn more in our dedicated guide on how to watch free live TV channels on Plex.

Much like traditional cable TV, you can’t rewind or pause Plex’s Live TV channels. They also have break times and airing times, so you might not be able to watch your favorite channel every time you’d like.

Most Plex veterans use it primarily for its server function. You can download a Plex Media Server on your laptop, choose what folders you would like it to access, and all your devices will be able to access it.

Here’s a quick way to get started:

  1. Download a Plex Media Server from Plex’s website, install it, and launch it.
  2. Open Settings in the Plex app by clicking the wrench in the top-right.
  3. Scroll to the Manage section and click Libraries.
  4. Select Add Library, choose your category of media, click Next, and select Add Library.

Anytime you want to watch something from your media server, click More in the side menu to see your linked device’s media.

But this is only a rudimentary way to turn a computer into a Plex server; there’s a way to convert an old computer to a dedicated Plex Media Server.

Plex helps organize your media after it scans them and adds them to your collection. Based on the available metadata, it will add artwork, descriptions, and song lyrics. It’s a pretty good way to organize your media.

You can also connect a tuner or antenna to your Plex Media Server to tap into over-the-air signals in your location.

How Much Does Plex Cost?

Plex takes pride in the fact that most of its core features are completely free—no subscriptions required. That said, it has a Plex Pass, which could cost you $4.99/month, $39.99/year, or a lifetime cost of $119.99.

But we’re sure you’re wondering why you would ever have to pay for a Plex Pass. Here are some of the more interesting features you get when your pay for Plex:

  • Better playback through hardware acceleration and transcoding for media on your server with a Plex Pass. That means you could have more devices streaming from your Plex Media Server without compromising your video quality.
  • Plex also restricts your media playback and watermarks photos on the Android and iOS apps, but getting a Plex Pass removes all such restrictions (this doesn’t apply to TV apps or the web app).
  • The song lyrics feature we discussed earlier is locked behind Plex’s paywall.
  • You get to skip credits and intros in movies in your library with a Plex Pass.
  • Get extra content for movies in your libraries, such as interviews and behind-the-scenes.

The people who stand to gain the most from the Plex Pass are those with multiple devices and users who would like to stay connected to the Plex Media Server without compromising too much. However, more casual users who plan to mostly use this individually might not see any need for investing in a Plex Pass.

What Devices Can You Use to Stream Plex?

As you may have guessed, Plex has a versatile cross-platform ecosystem. Here are all the places you can access Plex:

  • Browsers (Chrome, Firefox, Edge, and Safari) via the web app.
  • Laptops and desktops running macOS, Windows, or Linux.
  • Android phones and tablets.
  • iPhones and iPads.
  • Smart TVs (Samsung, LG, Hisense, Vizio, etc.).
  • Android TVs.
  • Apple TVs.
  • Chromecast.
  • Roku.
  • Sonos.
  • Amazon Alexa.
  • PS4, PS5, Xbox 360, Xbox One, and Xbox X|S.

However, some of these might require you to have a Plex Pass. If you don’t want that, you may have to pay a one-time $5 fee to activate the device to have full access to your Plex Media Server.

Use Plex to Watch Anything Anywhere

If you have most of your favorite movies, songs, and films on a PC somewhere, and you’re tired of lugging a hard drive around, it’s time to invest in Plex. You could bite the bullet and buy a lifetime Plex subscription or use its free version, but you can now set up a media server to connect to wherever you are.

MakeUseOf

Laravel Herd

https://laravelnews.s3.amazonaws.com/images/laravel-herd-featured.png

Laravel Herd is a blazingly fast, native Laravel and PHP development environment for macOS. It includes everything you need to start Laravel development, including PHP and nginx. Once you install Herd, you’re ready to start developing with Laravel:

Herd will install tools you need for development, like Composer, the Laravel installer, and more. You can also seamlessly migrate to Herd from Valet—Herd will automatically migrate existing Valet preferences:

Laravel Herd Valet migration prompt

Herd is a native macOS application so it will not work with Windows or Linux. It also uses static binaries and comes with a lot of PHP extensions that should fit most projects, but unfortunately, there’s no way to install additional extensions. Here’s a list of supported extensions at this time:

intl, pdo_sqlite, sqlite3, curl, openssl, tokenizer, bcmath, bz2, calendar, dba, ftp, iconv, mysqli, mbstring, xml, simplexml, ctype, dom, pdo, filter, session, zlib, fileinfo, pdo_mysql, posix, sockets, shmop, sodium, sysvmsg, sysvsem, sysvshm, gd, zip, gmp, redis, xmlwriter, phar, exif, xmlreader, readline, pcntl, soap, imagick, ffi, opcache

Is Valet going away? According to Matt Staufer, the short answer is no; currently, Herd is using a Valet fork and will soon be powered by Valet:

Get started with Herd today at herd.laravel.com. Also, there’s documentation to help you get started and troubleshoot things if you run into any issues.

Laravel News

How to Use pstree to Display Running Linux Processes as a Tree

https://static1.makeuseofimages.com/wordpress/wp-content/uploads/2023/07/tree-branches.jpg

If you use Linux, you’ve most likely used ps, top, or htop to view currently running processes on the system. While these programs are useful, they don’t show the relationship of processes to each other.

pstree is a program that visualizes Linux processes as a tree. Here’s how you can install and use it on Linux.

What Is pstree?

pstree is a program that shows the processes as a tree-like structure. The parent processes are the “trunk” and the child processes are branches.

Using pstree for the first time reveals how Linux processes work. All Linux processes have the init process, which is systemd on most major mainstream distros, as their common ancestor.

How to Install pstree on Linux

pstree is such a useful utility that there’s a good chance it’s already installed on your system. If you try to run it and it isn’t, it’s available through your package manager. It’s part of the psmisc suite of utilities.

To install it on Debian and Ubuntu, type:

 sudo apt install psmisc 

To install pstree on Arch Linux:

 sudo pacman -S psmisc 

And on the Red Hat family of distros:

 sudo dnf install psmisc 

Use pstree to View Linux Processes as a Tree

Running pstree is simple. Just type pstree at the command line. You’ll see a tree of all the processes running on your system.

Supplying a username as an argument will show all the processes that the user owns. For example, to see a tree of the superuser’s processes:

 pstree root 

As with many other Linux programs, pstree has command-line options. You can see the PIDs of the processes with the -p option:

 pstree -p 

To highlight the current process, that is, your current shell, use the -h option.

 pstree -h 

You can highlight a certain PID with the -H (capital H) option, followed by the PID number:

 pstree -H [PID] 

You can get a color-coded representation of the age of the processes with the -C option, followed by the age value. This is currently the only argument that this option takes.

Processes spawned in the last 60 seconds will be displayed in green. Similarly, yellow represents processes that were started an hour ago. The remaining processes will be in red.

 pstree -C age 

pstree gives you a hierarchical tree-like view of your running Linux processes, true to its name. You can see how your processes flow out of the init process, and you can customize your view with different options.

Linux’s procfs also lets you see information on Linux processes right from the file system.

MakeUseOf