Month: July 2022

  • 10 Tools to Generate and Have Fun With ASCII Art in Linux

    10 Tools to Generate and Have Fun With ASCII Art in Linux

    Linux terminal is not as scary as you think.

    Of course, it could be intimidating in the beginning but once you know the terminal better, you start loving it.

    You are likely to use the terminal for serious work. But there are many fun stuff you can do in the terminal as well.

    One of them is experimenting with ASCII art. You can display predefined or random messages, play games, or run some animation in ASCII format in the Linux terminal using various command line tools.

    My teammate Sreenath likes to explore such unusual CLI tools and share his findings with me. I am sharing those findings with you.

    ascii art tools linux

    Most of these programs should be available in the repositories of your Linux distribution. You can use your system’s package manager to install them. To keep the article concise, I have only included the installation instructions for Ubuntu.

    1. lolcat: Add colors to your terminal

    Alright! lolcat doesn’t have anything to do with ASCII art. At least not directly.

    Still, I included it at the beginning of this article because you can combine other ASCII tools with lolcat.

    So, what does it do? It is similar to the cat command but it adds random gradient colors to its output.

    lolcat

    It may not look useful at the moment but you’ll see its impact when the outputs of other ASCII tools are piped through lolcat.

    Install lolcat with the apt command:

    sudo apt install lolcat

    2. Aewan: Display ASCII text beautifully

    Aewan is a multi-layered ASCII graphics/animation editor. It produces stand-alone cat-able ASCII art files and an easy-to-parse format for integration into terminal applications.

    It has two tools: aewan, an ASCII editor and aecat, for viewing the created file.

    I am not going to discuss the editor part here.

    aewan initial layout
    Aewan ASCII editor

    To display any text in pretty ASCII format, you need the aecat command. Notice the use of letters in the screenshot below.

    aewan output

    To install aewan use the following command:

    sudo apt install aewan

    And then use it like this:

    aecat hello

    3. Cowsay: Make an ASCII cow say whatever you want

    What does the cow say? Whatever you want it to say.

    The cowsay is already a popular tool among seasoned Linux users. It shows an ASCII cow that repeats the text you provide it.

    cowsay

    But you are not restricted to cows only. You can change it to several other characters as well. Like a dragon (burning King’s landing):

    cowsay

    Did you notice the colored output in the above screenshot? That’s the magic of the lolcat command I mentioned earlier.

    To install cowsay, use:

    sudo apt install cowsay

    Once installed, you can use it like this:

    cowsay hello

    You can refer to its man page for additional configuration and options.

    4. jp2a: Convert images into ASCII art

    jp2a is a command-line tool that converts images to ASCII art in the Linux terminal. It works with JPEG and PNG files. It also allows colored output and your selection of character set to appear as ASCII image.

    jp2a

    You can install it using the following command:

    sudo apt install jp2a

    You can get the colorful output and save the ASCII text like this:

    jp2a --output=ascii.txt --colors input.png

    It’s not the only program of this kind. There is ascii-image-converter and several other tools that could be used for the same purpose. I won’t discuss all of them in this list.

    5. linuxlogo: Display the ASCII logo your Linux distro

    The name says it all. It displays the Linux logo in ASCII format.

    No, not our beloved Linux logo, Tux but the logo of your Linux distribution. It also shows a few additional information like Linux kernel version, CPU, RAM, hostname, etc.

    linux logo

    You can install it using the apt command:

    sudo apt install linuxlogo

    Just enter linuxlogo to use the command.

    6. Neoftech: Display the Linux logo along with system info

    The above linuxlogo command is too simplistic. You can amp it up by using Neofetch.

    It displays the distribution in a more pretty way along with several system information like kernel, uptime, desktop environment, theme, icons, etc.

    neofetch

    You can also parse it through lolcat to get rainbow-colored output.

    Install Neoftech using this command:

    sudo apt install neofetch

    And then just enter neoftech to run the command.

    There is also screenfetch, a similar tool to Neofetch. You can use either of them.

    7. fortune: Get your fortune told

    Just kidding! There’s no such thing.

    However, fortune cookies are still fashionable and apparently, people like to read random predictions or teachings.

    You can get a similar feature in the Linux terminal with the fortune command:

    fortune cookie linux

    You can install it using the following command:

    sudo apt install fortune

    Once installed, just enter fortune in the terminal to get a random message.

    8. pv: Make things animated

    This is a classic example of the unintended use of a Linux command. The pv command is used to monitor the progress of data through pipe.

    But you can use it to animate the output of any command. Combine it with some of the above-mentioned commands and you can see the ASCII art appearing on your screen as if it is being typed.

    Don’t get it? Watch this video:

    Install it using the following command:

    sudo apt install pv

    And then use it in the following manner:

    neofetch | pv -qL 200 | lolcat

    The higher the number, the higher will be the speed.

    9. cmatrix: Matrix like animation in ASCII

    Remember the cult geek move Matrix? The green falling code is synonymous with Matrix and hacking.

    You can run an ASCII simulation of the falling code in the Linux terminal with cmatrix command.

    I am sharing a screenshot instead of animation here.

    cmatrix

    You can install it with apt command:

    sudo apt install cmatrix

    Once installed, you can run it with:

    cmatrix

    It starts the animation immediately and it keeps on generating random green text falling and disappearing from the screen. The command keeps on running. To stop the running application, use the Ctrl+C keys.

    10. cbonsai: Grow a bonsai in your terminal

    Got a green thumb? How about growing an ASCII bonsai tree in the terminal?

    cbonsai is a fun Linux command that lets you run bonsai tree growing animation in ASCII format.

    I shared a YouTube Shorts of cbonsai command a few days ago.

    You can install cbonsai using:

    sudo apt install cbonsai

    And then to run the animation, use this command:

    cbonsai -l

    Try some more

    There are many more such fun CLI tools. Heck, there are ASCII games as well. It’s fun to use them at times to amuse people around you.

    Can you put these commands to some good use? Not certain about the usability, but you can add some of them in your .bashrc file so that the command is run as soon as you open a terminal session.

    Many sys-admins do that on shared Linux systems. A program like cowsay or figlet can be used to display a message or system info in a pretty way.

    You may also use some of these programs in your bash scripts, especially if you have to highlight something.

    There could be other usages of ASCII art in Linux. I let you share them with the rest of us here.

     

    5 reasons to use sudo on Linux

  • Apple (almost) says, ‘If you want to collaborate, stay apart’

    Apple (almost) says, ‘If you want to collaborate, stay apart’

    [ad_1]

    Apple has made a decision that should show most enterprises that, when it comes to COVID-19, it’s not over till it’s over. The company has reportedly deferred plans to get staff back in the office three days a week because of increasing infection rates.

    Living with COVID means taking it seriously

    A weekend Bloomberg report tells us the full implementation of Apple’s originally mandated three-days-a-week-in-person plan is probably “not imminent.” The report suggests the company is experiencing rising infection rates across its workforce. If Apple is experiencing this, then it is not alone.

    Way back at the beginning of the pandemic, Apple’s retail stores became seen as guides to local infection rates. The company’s planetary network of stores gave Apple’s HR teams global insight into disease outbreaks. Reporters followed Apple store closures as a guide to the disease clusters.

    Apple still has access to those insights today, which means its decision to suspend its return-to-the-office diktat should be seen for what it is: a signal that the sickness has not abated.

    Of course, we must identify some way to live with COVID, but doing so also means taking it seriously. Magical thinking will not make the disease go away, but smart working practices, staggered commuting patterns, and investment in air filtration systems might help blunt its impact.

    Apple’s decision to suspend progress on the return to the office shows the company is coming to terms with that reality. At least, I think it does.

    A warning you should heed

    Apple had chosen to adopt a hybrid work pattern in which employees attend the office three days a week and work remotely for two. It began requesting workers return to the office for one day a week on April 11, two days from May 4, and had intended attendance to rise to three days by May 23. Employees are currently expected to be present for two days a week, but the move to three has been delayed.

    In common with everyone else, not every Apple employee has been able to work remotely during the pandemic. Some of its teams have continued working in person across most of the last couple of years.

    But the decision to delay the company-wide return must surely be taken seriously by businesses hoping to get employees back to the office, as it suggests Apple’s data shows the risk of doing so remains high. As colleague Steven J. Vaughan-Nichols points out, that’s broadly in line with what health professionals are telling us, from epidemiologist Michael Osterholm’s warning to the Washington Post to this observation from Independent SAGE, a group of scientists in the UK: “Closing our eyes and pretending it’s not there, that’s the most dangerous strategy of all.”

    If you value collaboration, stay apart

    Given that the risks of COVID-19 can include months of mental and physical debilitation that leave sufferers unable to work effectively for months, a company that values collaboration and creative intelligence cannot logically insist its teams expose themselves to such risk.

    The last thing Apple, or anyone else, needs is for key personnel to be out of action for months — particularly when the consequences of a forced return are so evident and any company with commitment to corporate social responsibility also has a duty to protect staff’s psychological and physical health.

    Think about it. What is to be gained in mythical ‘water cooler conversations’ if there’s no one around to put those ideas into motion? Just ask the Society of Academic Emergency Medicine. It means that if your workplace values collaboration, it’s way past time to figure out how to collaborate effectively when apart.

    Please follow me on Twitter, or join me in the AppleHolic’s bar & grill and Apple Discussions groups on MeWe.

    Copyright © 2022 IDG Communications, Inc.



    [ad_2]

  • Cookie conundrum: The loss of third-party trackers could diminish your privacy

    Cookie conundrum: The loss of third-party trackers could diminish your privacy

    [ad_1]

    Third-party cookies may be going away in 18 months, but will that achieve Google’s stated intentions of creating a “more privacy-first web?”

    Chris Matty doesn’t think so.

    In fact, he believes the death of the invasive little trackers could paradoxically make our online identities less secure.

    And he believes the motivations of Apple and Google, which have advocated for an end to this form of passive surveillance, are motivated by goals that are less altruistic than they may seem.

    Matty is the founder and chief revenue officer of Versium, a business-to-business omnichannel marketing firm that profiles online visitors without using cookies. Instead, it harvests data from various third-party sources in a process that complies with the California Consumer Privacy Act and then uses deterministic algorithms to make what is essentially an educated guess about the identity of visitors.

    Matty believes the end of third-party cookies will be a windfall for technology giants whose reach spans multiple properties.

    The losers will be everyone else.

    On their own

    With third-party cookies out of the picture, marketers will be forced to double down on the data they collect on their own web properties through first-party cookies, which will still be with us.

    Those are the trackers you permit to install on your computer when you arrive at a website and are presented with one of those “this site uses cookies” messages.

    The thousands of small website owners that now rely on third-party cookies to identify visitors will have to start collecting more data for themselves.

    That means more registration pages, paywalls, and prompts to give up information about yourself.

    The result will be that “the loss of cookies will actually diminish privacy,” Matty says. “Publishers are going to have to start using gated logins, so they capture an email address.”

    This isn’t a problem for the few giants with a vast web footprint.

    Think about this: How often do you sign in to Google or Facebook? Almost never.

    Once you log in to Google, the company can follow you across its search engines, email service, office productivity applications, media sites, and other outposts in its empire.

    Theoretically, it can track you on other properties as well, as long as you’re signed in.

    However, independent ad networks won’t have access to this information soon, so Google and Facebook will become even more powerful online advertising brokers.

    Meanwhile, independent sites will be pressured to lock down their content more tightly to encourage registration.

    The result will be less free information, more walled gardens, and a greater need for people to keep track of usernames and passwords for all the places they visit.

    “It will cost marketers more because [the cost per thousand visitors] will grow,” Matty says. “The cost of marketing will go up because information will be controlled by fewer companies.”

    An unpopular alternative

    Google has proposed an alternative called Federated Learning of Cohorts that replaces third-party cookies with anonymized information about groups of people stored in the browser.

    Not everyone thinks that’s such a good idea.

    “That approach would put the browser at the center of the advertising equation, and Google, not coincidentally, makes Chrome, the world’s most popular browser,” wrote Adam Tanner, an author of two books about online privacy, in a recent article in Consumer Reports.

    Versium and many other identity technology firms are finding ways to reverse engineer identities without using cookies or compromising privacy.

    The firm gathers data from multiple sources about people who have given their permission to share it and then uses predictive algorithms to infer identities.

    Matty calls this technique “match logic. There are literally hundreds of match codes we can assign with high confidence,” he said. “We can increase match rates from 10% to 90%.”

    In a B2B context, that’s valuable in harmonizing personal and business email addresses. About 70% of LinkedIn profiles are tied to personal email addresses; matching them to a list of business addresses can be a shot in the dark.

    Matty says that adding third-party, opt-in data can resolve most of those mysteries.

    If a marketer has a personal email address, it can be matched to a business address by factoring in other data points like a home address and the nearby population of people with similar names.

    “We can look for a physical address and deduce how far they are from a business and so infer that the person works at that business,” Matty says. “There are literally hundreds of match codes we can assign with high confidence.”

    This means the end of cookies could trigger an explosion in big data analytics. And guess who owns the most popular suite of analytics tools in the cloud?

    Yup, it’s Google.

    Copyright © 2022 IDG Communications, Inc.

    [ad_2]