text:
Q: Repeating an Array in C I was wondering how to repeat an array in C any number of times.
Let's say I have an array like: int Array[4] = [1, 2, 3, 4]
Is there a simple way to get an array: int Array2[8] = [1, 2, 3, 4, 1, 2, 3, 4]
by doing some operation on Array[4]?

A: I'm pretty sure this is a bad idea, which will hit you in the foot later, but maybe try
#define VALUES 1, 2, 3, 4

int a[] = { VALUES, VALUES, VALUES, VALUES };

A: You can try this...to get an idea on how you can do it.
for(int i=0;i<8;i++) {
  array2[i]=array[i%4];
}

A: This should be a good way to repeat an array in C any number of times because your explanation is not a good one. The modulo operation returns integers from [0,REPEAT) so doing +1 you have integers in [1,REPEAT].
Here is the code:
#define N 5
#define REPEAT 2
int main(){
    int arr[N];
    for(int i = 0;i<N;i++){
        arr[i] = (i % REPEAT) + 1;
        printf("%d\n",arr[i]);
    }

    return 0;
}

Output:

1
  2
  1
  2
  1

A: The simplest way to do this might be to use a VLA, sized to whatever you require, and filled by using the modulus operator. Disadvantages include the inability to return such an array from a function, and silent failure when the VLA can't be allocated for some reason. Of course, VLA's were introduced in C99, and then made optional in C11. Though they are commonly available, you may opt for the next method.
Perhaps a more reliable approach uses a function that allocates space for the new array. If malloc() fails, a null pointer is returned, so it is the responsibility of the caller to check this. It is also the callers responsibility to free the allocation when through with it.
#include <stdio.h>
#include <stdlib.h>

void print_arr(size_t, int *);
int * expand_array(size_t, int *, size_t);

int main(void)
{
    int input_arr[] = {1, 2, 3, 4};
    size_t input_arr_sz = sizeof input_arr / sizeof *input_arr;
    size_t new_arr_sz = 17;

    /* Method 1: VLA */
    int new_arr_1[new_arr_sz];
    for (size_t i = 0; i < new_arr_sz; i++) {
        new_arr_1[i] = input_arr[i % input_arr_sz];
    }

    print_arr(new_arr_sz, new_arr_1);

    /* Method 2: function with malloc() */
    int *new_arr_2 = expand_array(input_arr_sz, input_arr, new_arr_sz);

    if (new_arr_2) {
        print_arr(new_arr_sz, new_arr_2);
    }

    free(new_arr_2);

    return 0;
}

void print_arr(size_t sz, int *arr)
{
    for (size_t i = 0; i < sz; i++) {
        printf("%3d", arr[i]);
    }
    putchar('\n');
}

int * expand_array(size_t input_sz, int *arr, size_t output_sz)
{
    int *new_arr = malloc(sizeof *new_arr * output_sz);
    if (new_arr) {
        for (size_t i = 0; i < output_sz; i++) {
            new_arr[i] = arr[i % input_sz];
        }
    }

    return new_arr;
}

Program output:
  1  2  3  4  1  2  3  4  1  2  3  4  1  2  3  4  1
  1  2  3  4  1  2  3  4  1  2  3  4  1  2  3  4  1

A: I figured it out!
So if I have an array: int Array[4] = [1, 2, 3, 4];
To repeat it I used two for loops as such:
int Array2[8];
for (int i = 0; i < 2; i++)
{
    for (int j = 0; j < 4; j++)
    {
         Array2[i*4 + j] = Array[j];
    }
}

The i*4 + j made it so I could count past four in the assignment of Array2


text:
Q: How to revert back to default ubuntu interface? I wanted to make my ubuntu 17.04 look like Mac. It worked but now I want to revert to original ubuntu interface. The commands I used are:

*

*Docky:
add-apt-repository ppa:docky-core/stable && apt-get update
apt-get purge docky
apt-get install docky

*Mac OS X Lion Theme, Icons and cursors:
sudo add-apt-repository ppa:noobslab/macbuntu
sudo apt-get update
sudo apt-get install macbuntu-os-icons-lts-v7
sudo apt-get install macbuntu-os-ithemes-lts-v7

*Slingscold (Alternative to Launchpad)
sudo add-apt-repository ppa:noobslab/macbuntu
sudo apt-get update
sudo apt-get install slingscold

*Replace 'Ubuntu Desktop' text with 'Mac' on the Panel:
cd && wget -O Mac.po http://drive.noobslab.com/data/Mac/ch...
cd /usr/share/locale/en/LC_MESSAGES; sudo msgfmt -o unity.mo ~/Mac.po;rm ~/Mac.po;cd

*Albert Spotlight (Alternative to Mac Spotlight)
sudo add-apt-repository ppa:noobslab/macbuntu
sudo apt-get update
sudo apt-get install albert

*Enter following commands to install Apple Logo:
wget -O launcher_bfb.png http://drive.noobslab.com/data/Mac/la... sudo mv launcher_bfb.png /usr/share/unity/icons/
gsettings set com.canonical.unity-greeter draw-grid false;exit

*Unity Tweak Tool to change Themes & Icons:
sudo apt-get install unity-tweak-tool
sudo apt-get install gnome-tweak-tool

*Install Monochrome icons for Libreoffice:
sudo apt-get install libreoffice-style-sifr

After installation go to LibreOffice menu select "Tools" - "Options" - "LibreOffice" - "View" and select "Sifr" under "Icon size and style". See following screenshots

*install compizconfig-settings-manager
sudo apt-get install compizconfig-settings-manager
sudo apt-get install compiz-plugins compiz-plugins-extra
sudo apt-get install gconf-editor

A: Using the Unity Tweak Tool you can go to "Theme" and "Icons" under "Appearance".

Under Themes you can select "Ambiance" thats the theme thats installed by default.

Under Icons, select "Unity-icon-theme".

redpajama_set_name: RedPajamaStackExchange


text:
New French Art – The Distaff Side from South America
The youngest artist of all these foreigners is the charming, Monica Santander, from Santiago, Chile, and living in New York since 1979. Her abstract watercolors and other media on paper at Arch Gallery, 644 Broadway at Bleecker till July 3, display skill and a lyric gift, sensitivity of tone and grace of rhythm. The works are pleasing without abandoning her individuality of abstract imagcry.
Santander's larger works, acrylics or mixed media on canvas, are much harsher in color, characterized by bold reds, and include bravura handling of the brush. Imaginary in "Red Dragon" and "Back to New York" allude to figurative forms, yet remain undefined and ambiguous. The composition and the paint stroke, jowever, are bold and unequivocal.
This young newcomer has exhibited internationally and had success in entering private, corporation and museum collections. Her success will grow in New York as well. In fact, the quality of the foreign art, from France to Chile, shows that foreign artists take the New York market very seriously.
Casa De La Infancia Art by Monique Santander July 1921

redpajama_set_name: RedPajamaCommonCrawl


text:
Giving Back to Aspiring Post-Secondary Entrepreneurs
TORONTO (March 2019) – Smoke's Poutinerie announces the official launch of their national franchising EDU-TAINMENT Program benefiting Canadian post-secondary graduates by providing them with an opportunity to jump aboard the Smoke's Poutinerie Rock 'n' Roll Gravy Train with a 50% discount off all franchise related fees.*
This original franchising initiative is the brain-child of Ryan Smolkin, Founder and CEO of Smoke's Poutinerie who remembers the challenges faced when starting out as a serial entrepreneur. "I'm excited to inspire young, ambitious students with aspirations to own their own businesses. I can't wait to bring this unique partnership coast-to-coast. My main goal is to pave the way for students who are in the same position I was when I was finding my way in university," said Ryan. "I am totally stoked to be the first in this industry to support students in their journey toward entrepreneurship – I really want to give them opportunities I didn't have."
About Smoke's Poutinerie
Founded in 2009 by creative genius Ryan Smolkin, Smoke's Poutinerie is the World's Largest & Original Poutinerie. Representing 80's Canadiana Culture, known for the signature lumberjack plaid, and glam rock music, Smoke's Poutinerie serves over 30 varieties of its famous Poutine. With locations across North America and International expansion into the Middle East, Europe and the UK, the Brand is on course for GLOBAL DOMINATION!
*Regular franchise approval process applies. Offer must be completed within two years of post-secondary graduation.
Mark Cunningham – The Global Dominator
mark@smokespoutinerie.com