Dia is a free open-source app for creating diagrams as flowcharts, UML diagrams, database and all sort of diagrams.
It can be installed on Windows, Linux, and macOS. However, on macOS it does not run as it easily does on Windows and Linux.
So, in this quick post, we will explain how you can make it run on your macOS system.
The problem dated to older versions of macOS, It is reported that it does not run on:
- 2.12 Version 10.10: "Yosemite"
- 2.13 Version 10.11: "El Capitan"
- 2.14 Version 10.12: "Sierra"
- 2.15 Version 10.13: "High Sierra"
- 2.16 Version 10.14: "Mojave"
- 2.17 Version 10.15: "Catalina"
- 2.18 Version 11: "Big Sur"
- 2.19 Version 12: "Monterey"
First, I thought it is the matter of install, So, I removed Dia that I installed using the package on its official website, then I used the MacPort, and Homebrew, and the same issue.
But thanks to, an old post that is dated to 2014, I fixed the issue and make it run, so here are the steps:
After you install your Dia, do the following
- Head to your Dia install app at the /Applications directory
- Open the app package by right-clicking on it and: Show Package content, from the menu.
- Browse to this directory: Dia.app/Contents/Resources/bin
- Edit the
dia
binary file in any text editor - After the line 39, add this line:
export DISPLAY=:0
- Save the file and exit
- Restart your XQuartz application, or close it: CMD+Q
- Run the Dia application as run any other app, and you should see the main screen.
If these steps didn't work let us know
It is unfortunate that the Dia community didn't fix the problem yet, but hopefully, these steps will help anyone to run their Dia install.
Resources
Related Articles in Tutorial
In JavaScript, reverse a string is not also a common task but a fundamental operation for building logical and conditional statements. By reversing a string, we can implement powerful algorithms such as checking whether a string remains the same when read forwards or backwards, also known as a palindrome. This
On average, fewer than 2% of all visits to ecommerce websites result in a sale — the goal of many an online seller, of course, is to convert as big a chunk of the remaining 98% of purchase-shy consumers from ‘window shoppers’ to paying customers as they can.
Of course, an
On macOS Apple Silicon, you may get a strange error while pushing your updates to GitHub, here is the fix:
git config --global core.compression 4
Web scraping is a process of extracting useful information from web pages. Node.js is a popular backend language that can be used for web scraping. In this tutorial, we will learn how to use Node.js for web scraping.
Prerequisites
Before we start, make sure you have the following
If you are using Flutter on Linux, and you installed Google Chrome using Flapak, you may face the problem when installing and running Flutter:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.7, on Manjaro Linux 5.15.102-1-MANJARO, locale en_US.UTF-8)
TextField widget is an essential widget for every Flutter developer. It is a simple basic widget, yet a powerful tool that allows many customization options, and useful functions.
In this post, we will explore a collection of TextField snippets and tricks.
1- Basic setup
The basic TextField setup looks like
Previously, people could only obtain a computer by going to a store and selecting one that suited them. However, with people wanting to customize their computers to their tastes, computer assembly jobs are now a thing. Building custom PC is also becoming more popular as more people embrace a greener
Websites have evolved a lot over time. They're now much more than just information and text. Although it is correct for all websites, it especially stands for e-commerce websites. Anyone who visits an e-commerce website expects a comfortable, high-quality experience. For this, what you need to do is improve your
Meteor is a fancy JavaScript platform and full-stack development environment for building web and mobile apps.
I have been using Meteor for years, with Blaze, Angular, Vue and React. I also use it for web scrapping, and data manipulation on various projects for my clients.
In some of my projects
I came a cross an amazing Python code snippet that convert PDF e-books into an audiobook with a minimal code.
The code snippet uses two Python packages:
1. PyPDF2: a free and open-source pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. It can