Gaming forums (and forums in general) are pretty much dead…

On other forums I visit, there’s only like 2 or so users who contribute posts. Some of these message boards are used more like news sites or a blog. Yet on busier forums like GameSpot where the activity is dependable enough, you just get arseholes taken the piss whenever you post. Lesser known forums tend to be more relaxed.
SEMrush

Radge pots have certainly ruined the Internet. I remember back in 2003, when you looked at the active users list, there would be dozens of members signed in at once. Man, those were the days. Now you only really get that on YouTube videos.

Personally, I have always preferred forums to Facebook, Twitter and and all of that shite. But if they’re truly dead now, I would be as well to just quit posting.

 

microsoft – Create a flow that covers pretty complex tasks

I am pretty new to this website so please be kind and mindful of that. I am seeking help since I am trying to create a flow that covers pretty complex tasks since I do not know if this can work with a single Microsoft flow or multiple flows will need to be involved, Here my scenario:

I need to create an email that contains information from a website (Servicenow) the data will need to be inputted into the email, there are 3 different pieces of data that I need to pull from this website. The way I download the data manually at the moment is like this.

  • Go to ServiceNow
  • open the report
  • download into excel sheet
  • copy and paste the excel sheet
  • add emails in excel sheet to email

After this part is done then I need to extract more data that is in outlook from another email, this email also include an excel sheet with data that also need to be pasted in the same email template. the way I pull this data manually is the following.

  • Open email
  • open excel sheet in the email
  • copy and paste data from excel to the email template.

After that the email can be send, is there a way someone can tell me if this is even possible in MS flow? or what other tools can I use?

finder – How does macOS get “pretty” hostnames in Network view?

In computer networking, “hostnames” are limited to alphanumeric characters, with dashes (no whitespace or other punctuation).

However, when I open the “Network” in Finder…

Finder - Locations - Network

I can see some devices (usually macOS) show up with spaces, punctuation, and UTF-8 characters in the name:

Network devices. MacBook has spaces

Ultimately, I’m looking to have the Raspberry Pi on my network show up with a pretty name. However, in my searching on how to do this, I’m finding I’m not even clear on how macOS gets these pretty names to show up. Searching for this yields too many results of articles explaining to people how to change the hostname of their mac, which I don’t need help with.

On my Raspberry Pi, I can run hostnamectl and set the “pretty” name, but that doesn’t seem to affect anything.

Anyone know how this is achieved?

WordPress Multisite pretty links stop working when changing dns of a network site to point to its own domain

I’m having an issue with the permalinks of my multisite. When my team works on creating network sites that are part of one multisite, they use pretty links, something like /about-us.

When we have said network site url pointing to a subfolder of our own multisite like so:

https://multisite.com/network-site/about-us

it works perfectly fine.

However as part of our process, once the network site is completed and we need to launch it to go live for our client to its own domain address like:

https://network-site.com/about-us

suddenly pretty links stop working and every internal URL begins giving us 404 errors.

I can fix this by changing our permalinks from any of the pretty link options to plain, and the links in the menu will be fixed, but obviously every spot where our designers linked to a page within the body of the content on the site by linking to a relative /about-us for example, it breaks.

I’ve been googling around and I can’t seem to find anything about how to fix this specific problem

I’m wondering if it has something to do with the fact that in the wp_blogs table, the path column gets updated from network-site to / ?

for example, before going live the table might look like:

domain          | path
---------------------------------------
multisite.com     | /network-site/
                

Then after going live it looks like:

domain           | path
---------------------------------------
network-site.com    | /
                 

I assume that is the case, but I am not sure how to solve this. Does anyone have any advice? Thank you!

artificial intelligence – Is it true that machine learning is pretty much math than actual programming?

I have recently started reading books about AI and machine learning and this is what
I think of it so far:

A lot of people have the assumption that AI is just a bunch if if else or switch statements.
Others think it’s a type of software which write its own algorithms (i.e a computer that programs itself).

I have come the understanding that there isn’t actually much programming involved in AI at all.
It’s mostly math, probability and statistics.

Traditionally if you asked a programmer to code something which reads an image containing a number and output the actual number, the program would probably read each pixel in a loop, try to match them with some pre defined variables and come up with an answer.

Machine learning doesn’t actually do anything like that. There is no code which reads pixel in a loop with some switch statements. Computer doesn’t magically come up with an algorithm on it’s own either.

What really happens is you build a neuron network and run a bunch of pre tested data on it.
Matrices and Calculus is heavily used here. At its core, your network readjusts its internal links based on your data and learns. So once you have given it say a thousand different samples of the same problem, the internal links have readjusted in a way to be able to predict the outcome of a new input. It could still be wrong if it has never seen anything like it before and can’t predict the output.

Now your data could be anything if its turned into digital format. Pictures, audio, email, news and more. And the more you have the better.

You don’t actually program each node of the neuron network. The computer doesn’t do it either. It’s just a mathematical model written in a programming language which predicts an output given a bunch of input first as training data.

Am I correct about all this?

javascript – Pretty print directory structure in a JSON recursively

I am trying to pretty print the folder structure defined in a JSON. I do have a solution using recursion but I’m looking for feedback on how this solution can be improved or if there’s any better approach.

Problem Statement

A deeply nested directory contains following information:

  1. Name
  2. Data (can be an array of sub directories or file content)

Desired output: Print the directory structure in below format:

root_dir
|__dir_a
|____file_00.txt
|____dir_b
|______dir_c
|________file_01.txt
|________file_02.txt
|________file_03.txt
|________file_04.txt
|______file_05.txt
|______file_06.txt
|____dir_d
|______file_07.txt
|______file_08.txt

Solution:

My idea is to traverse data recursively till a file is not found (because beyond it there is no further nesting) and keep pushing directories and files in an array which would then be pretty printed with help of template literals.

P.S. I don’t want to reverse the arrays twice, how can I fix that?

const indentation = 2;
const flatDirStructure = ();

const dirStructure = (
  {
    name: 'root_dir',
    data: (
      {
        name: 'dir_a',
        data: (
          { name: 'file_00.txt', data: 'file_00 content' },
          {
            name: 'dir_b',
            data: (
              {
                name: 'dir_c',
                data: (
                  { name: 'file_01.txt', data: 'file_01 content' },
                  { name: 'file_02.txt', data: 'file_02 content' },
                  { name: 'file_03.txt', data: 'file_03 content' },
                  { name: 'file_04.txt', data: 'file_04 content' }
                )
              },
              { name: 'file_05.txt', data: 'file_05 content' },
              { name: 'file_06.txt', data: 'file_06 content' }
            )
          },
          {
            name: 'dir_d',
            data: (
              { name: 'file_07.txt', data: 'file_07 content' },
              { name: 'file_08.txt', data: 'file_08 content' }
            )
          }
        )
      }
    )
  }
);

const flattenDirStructure = (data, depth) => {
  if (typeof data === 'string') {
    return true;
  } else {
    data.reverse().forEach(({ name, data }) => {
      const isFile = flattenDirStructure(data, depth + indentation);

      flatDirStructure.push({
        name,
        depth,
        isFile,
      });
    });

    return false;
  }
};

const prettyPrint = () => {
  const output = ();

  flatDirStructure.reverse().forEach(({ name, depth }) => {
    const indentation = new Array(depth).fill('_').join('');
    output.push(`${indentation ? '|' : ''}${indentation}${name}`);
  });

  console.log(output.join(`n`));
}

flattenDirStructure(dirStructure, 0);
prettyPrint();

Error en consola intentando ejecutar script en MongoDB syntax error near unexpected token `.pretty’

estoy arrancando con MongoDB y luego de crear una collection, no puedo ingresar dicho script ya que me tira el siguiente error. Como puedo solucionarlo?

Last login: Fri Sep 25 21:50:43 on ttys001
MBP-de-Usuario:~ usuario$ db.inventario.find().pretty()
-bash: syntax error near unexpected token .pretty' MBP-de-Usuario:~ usuario$ cd Desktop/MongoDB MBP-de-Usuario:MongoDB usuario$ mongoimport --db autos --collection inventario --type json --file autos.json --jsonArray 2020-09-25T21:55:13.206-0300 connected to: mongodb://localhost/ 2020-09-25T21:55:13.273-0300 100 document(s) imported successfully. 0 document(s) failed to import. MBP-de-Usuario:MongoDB usuario$ db.inventario.find().pretty() -bash: syntax error near unexpected token .pretty’
MBP-de-Usuario:MongoDB usuario$