text:
Q: c - output is not changing after being put through a function This is an extension of a homework question I submitted last night. The program got too messy for me so I took a step back and am starting over with some new knowledge of returns and pass bys. The entire program is meant to take any number of integers, and first find the sum and average, then print the square root of each integer, then print a boolean true or false if any integer is less than 20 and finally print a boolean true or false if any integer is between 10 and 90.
But right now all I need to do is to get my head wrapped around this. Currently I am only going to tackle the sum and average portion of this. It must be done using pass by references which, to my knowledge, is what I have been using in the code shown below:
#include <stdio.h>
#include <stdlib.h>
#include <math.h>

int functionSumAvg(int sumAvgInput);

void main()
{
  int amountOfNumbers,number,x,output;

  output = 0;

  printf("Enter how many numbers you want: ");
  scanf("%d",&amountOfNumbers);
  printf("Input each number, separated by a space: ");

  for(x = 0; x < amountOfNumbers; ++x){
    scanf("%d",&number);
    int output = functionSumAvg(number);

  }
  printf("output: %d",output);
}

int functionSumAvg(int sumAvgInput){
  int sum =+ sumAvgInput;
  return sum;
}

The idea that I was getting is that you put in the amount of integers you want, then it goes through summing one, adding that sum to the output, and repeating until it's all done. Afterwards it would print out the final output, the result of all the integers summed up. But instead it prints zero. Originally it printed out what I assumed was the memory address, some big trash number, so I set it to zero. But that was only a band aid solution, and didn't solve the problem itself.

A:    int output = functionSumAvg(number);

creates a new temporary output
do
 output = functionSumAvg(number);

A: Your problem, is that you are not passing by reference. You are passing by value.
You need to pass-in a reference (a pointer in C) to the sum, and pass-in (by value) the new value to be added to the sum. The calling routine would then be responsible for initialising the sum to zero.
int functionSumAvg(int *sum_pt, int input){…}

I won't tell you the rest, because it will get in the way of your learning.
Note: I use a _pt post-fix for my pointers, I don't use any other Hungarian notation.

A: fuctionSumAvg doesn't compute the sum or average of anything. It just sets the local variable sum to the number that it received, and returns that same number. It's not adding it to a previous total. And calculating an average requires dividing the sum by the count of elements, but you never sum or count anything.
You can use static variables to hold the running sum and count. But since a function can only return one value, you'll need to use a pointer parameter to return a second value.
int functionSumAvg(int sumAvgInput, int *avg){ // return value is sum
  static int sum = 0;
  static int count = 0;
  sum += sumAvgInput;
  count++;
  *avg = sum/count;
  return sum;
}

Then you call it like this:
int sum, average;
sum = functionSumAvg(number, &average);
printf("Sum = %d Average = %d\n", sum, average);


text:
Q: How can i find treeview node by which label equals string variable? I would like to start by saying thanks to everyone who takes some time to view this thread and try to help.
I have searched the Internet, and couldn't find an example of selecting tree view node that has label text as same as text of a string variable.
On MSDN I have found message TVM_GETISEARCHSTRING but I don't know if it can be used to solve my problem. Even if it can, I still don't know how to use it.
I have a string variable that holds text from database.
When program loads, tree view should have a node with the same text selected.
Please help with some instructions or code snippets, since I have no clue how to even start coding this.
I work in MS Visual Studio Express 2008, on Windows XP, in C++, using pure WIN32 API.
That would be all, again I thank everyone who tries to help.Thank you very very much!
EDIT:
Both answers are good for me, but I don't know how to mark them both, it seems that on this site only one answer can be accepted.
I couldn't have just neglected all the work both of them invested to help me, so I write this in order to try to repay to the Jonathan at least by officially stating that his solution is acceptable for me too, it is just that Tim's solution suits my coding style better.I will also upvote both answers.

A: Unfortunately there is no documented way to search a treeview by item label.
The TVM_GETISEARCHSTRING message returns the search string that the user has typed into the tree (incremental search mode) but it doesn't trigger a search or let you supply your own search string.
The only way to do it is by manually iterating the tree nodes and comparing the labels yourself. Below is an example function, beware that it is recursive and will use about half a KB of stack for every child level.
HTREEITEM TreeView_FindLabel(HWND hWnd, HTREEITEM hItemParent, LPCWSTR pszLabel)
{
    TVITEM tvi;
    wchar_t wchLabel[256];

    for (tvi.hItem = TreeView_GetChild(hWnd, hItemParent); tvi.hItem;
        tvi.hItem = TreeView_GetNextSibling(hWnd, tvi.hItem))
    {
        tvi.mask = TVIF_TEXT | TVIF_CHILDREN;
        tvi.pszText = wchLabel;
        tvi.cchTextMax = _countof(wchLabel);
        if (TreeView_GetItem(hWnd, &tvi))
        {
            if (_wcsicmp(tvi.pszText, pszLabel) == 0)
                return tvi.hItem;
            if (tvi.cChildren)
            {
                HTREEITEM hChildSearch = TreeView_FindLabel(hWnd, tvi.hItem, pszLabel);
                if (hChildSearch) return hChildSearch;
            }
        }
    }
    return 0;
}

This is not a particularly fast way of searching the tree. If you need to do lots of searches you would be better using a std::map to keep track of the labels and tree items yourself. For example,
std::map<std::wstring, HTREEITEM> mapTreeItems;

// whenever you add an item
HTREEITEM hItem = ListView_InsertItem(...);
mapTreeItems[strLabel] = hItem;

Then you can lookup tree items by label using the map. You just have to remember to update the map and erase labels whenever an item is deleted from the tree.

A: The treeview control does not provide an API to search for a label. You will have to manually traverse the items and compare them to your string.
If your treeview is more than one level deep you will have to decide how to traverse the items (either depth first or breadth first). In case there are multiple items with the same label these strategies may return different items.
An implementation might look something like this:
// Helper function to return the label of a treeview item
std::wstring GetItemText( HWND hwndTV, HTREEITEM htItem )
{
    static const size_t maxLen = 128;
    WCHAR buffer[ maxLen + 1 ];

    TVITEMW tvi = { 0 };
    tvi.hItem = htItem;         // Treeview item to query
    tvi.mask = TVIF_TEXT;       // Request text only
    tvi.cchTextMax = maxLen;
    tvi.pszText = &buffer[ 0 ];
    if ( TreeView_GetItem( hwndTV, &tvi ) )
    {
        return std::wstring( tvi.pszText );
    }
    else
    {
        return std::wstring();
    }
}

This is where the actual traversal takes place. The function is called recursively until no more items can be searched or a match has been found. This implementation uses a case-sensitive comparison (wstring::operator==( const wstring& )). If you need a different predicate you will have to modify the implementation as you see fit.
HTREEITEM FindItemDepthFirstImpl( HWND hwndTV, HTREEITEM htStart, const std::wstring& itemText )
{
    HTREEITEM htItemMatch = NULL;

    HTREEITEM htItemCurrent = htStart;
    // Iterate over items until there are no more items or we found a match
    while ( htItemCurrent != NULL && htItemMatch == NULL )
    {
        if ( GetItemText( hwndTV, htItemCurrent ) == itemText )
        {
            htItemMatch = htItemCurrent;
        }
        else
        {
            // Traverse into child items
            htItemMatch = FindItemDepthFirstImpl( hwndTV, TreeView_GetChild( hwndTV, htItemCurrent ), itemText );
        }
        htItemCurrent = TreeView_GetNextSibling( hwndTV, htItemCurrent );
    }

    return htItemMatch;
}

The following function wraps the recursion and passes the root element as the starting point. This is the function you would call in your code. It will return an HTREEITEM if one is found, NULL otherwise.
HTREEITEM FindItem( HWND hwndTV, const std::wstring& itemText )
{
    HTREEITEM htiRoot = TreeView_GetRoot( hwndTV );
    return FindItemDepthFirstImpl( hwndTV, htiRoot, itemText );
}

redpajama_set_name: RedPajamaStackExchange


text:
Q: .jar files created with maven do not open I just faced problem I can not get rid off, like in title, when I build .jar from maven project using netbeans it just do not open outside of IDE.
Using run button in IDE runs application perfectly and without problems, but builded .jar's just do not open. Other .jar's from other projects works normally, it is first time I am building something with maven so I think the problem is there.
This is my pom file, hope the problem is somewhere here:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.bbzoftware</groupId>
    <artifactId>HDiSED</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>jar</packaging>

    <properties>
        <springframework.version>4.0.6.RELEASE</springframework.version>
        <hibernate.version>4.3.5.Final</hibernate.version>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.source>1.7</maven.compiler.source>
        <maven.compiler.target>1.7</maven.compiler.target>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-entitymanager</artifactId>
            <version>${hibernate.version}</version>
        </dependency>
        <dependency>
            <groupId>org.hibernate</groupId>
            <artifactId>hibernate-core</artifactId>
            <version>${hibernate.version}</version>
        </dependency>

        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>5.1.31</version>
        </dependency>
        <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>
            <version>1.9</version>
        </dependency>
        <dependency>
            <groupId>commons-dbcp</groupId>
            <artifactId>commons-dbcp</artifactId>
            <version>1.4</version>
        </dependency>
        <dependency>
            <groupId>com.itextpdf</groupId>
            <artifactId>itextpdf</artifactId>
            <version>5.5.2</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <version>${springframework.version}</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-tx</artifactId>
            <version>${springframework.version}</version>
        </dependency>
        <dependency>
            <groupId>org.aspectj</groupId>
            <artifactId>aspectjweaver</artifactId>
            <version>1.7.2</version>
        </dependency>
        <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-orm</artifactId>
            <version>${springframework.version}</version>
        </dependency>
        <dependency>
            <groupId>javax</groupId>
            <artifactId>javaee-web-api</artifactId>
            <version>7.0</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-shade-plugin</artifactId>
              <version>2.3</version>
              <executions>
                <execution>
                  <phase>package</phase>
                  <goals>
                    <goal>shade</goal>
                  </goals>
                  <configuration>
                    <transformers>
                      <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                        <manifestEntries>
                          <Main-Class>com.bbzoftware.hdised.controller.Main</Main-Class>
                          <Build-Number>123</Build-Number>
                        </manifestEntries>
                      </transformer>
                    </transformers>
                  </configuration>
                </execution>
              </executions>
            </plugin>
        </plugins>
    </build>
</project>

A: Locate your jar file and try opening it with for example 7zip.
Jar file is just an archive file.


text:
Q: Почему не работает PayPal на сервере? PayPal работает на localhost нормально, а на сервере нет. Тестовые деньги снимает, но не идет редирект после оплаты. Что это может быть ?

A: Причин может быть море. Пару подсказок:

*

*Если обрабатываете запросы через cURL, убедитесь что указан User Agent. И какой-то реальный.

*Для возврата на сайт можете указывать в форме запроса result url (backurl)вот так:

<input type="hidden" name="notify_url" value="https://mysite.com/paypal/result/">
<input type="hidden" name="return" value="https://mysite.com/paypal/success/">
<input type="hidden" name="cancel_return" value="https://mysite.com/paypal/fail/">

После успешной оплаты вернется на return, после неуспешной на cancel_return.


text:
Q: Unit tests pass when I change the order of tests In my unit tests, I am using the following getDataSet method to set up DB. the test class extends from extends PHPUnit_Extensions_Database_TestCase
It looks like the framework is not deleting the and re inserting the rows before each test. The reason I feel that way is because my tests are passing when I change the order of some of the tests, which should never happen.
So Can anyone suggest what am I doing wrong .. or where should I look further to gain more insight ?
Also, I had to use composite Data Set as some of the older fixtures are in xml format, while new fixtures are in array format. Although no xml fixtures needs  for this one.
public function getDataSet()
{

    $compositeDs = new PHPUnit_Extensions_Database_DataSet_CompositeDataSet();
    /** @var  PHPUnit_Extensions_Database_DataSet_FlatXmlDataSet $ds */
    $arrayDS = new ArrayDataSet([
        __DIR__ . '/seed-data/companies.php',
    ]);

    $compositeDs->addDataSet($arrayDS);

    return $compositeDs;
}

Could it be because I save pdo connection and reuse it ? as in follows
final public function getConnection()
{
    if ($this->conn === null) {
        if (self::$pdo == null) {
            self::$pdo = new PDO($GLOBALS['DB_DSN'], $GLOBALS['DB_USER'], $GLOBALS['DB_PASSWD']);
        }
        $this->conn = $this->createDefaultDBConnection(self::$pdo, $GLOBALS['DB_DBNAME']);
    }

    return $this->conn;
}

A: getDataSet is called before every test, so every test your database-tables will be truncated and inserted with the provided data.
That's why the order of your tests doesn't matter.


text:
Q: Por que el el programa manda el correo multiples veces al destinatario en funcion al valor de X? Cuando entra el ciclo for el programa le manda un solo correo a la primera posicion del arrelgo $lista, luego cuando el ciclo se repite por segunda vez el programa le manda el mensaje dos veces al correo en la 2da posicion del arreglo. Cuando entra por 3era vez en el ciclo, el programa el manda 3 mensajes al correo en la 3era posicion del arreglo. Me pregunta es porque? Aqui les dejo el codigo
<?php
$asunto = $_POST["asunto"];
$mensaje = $_POST["mensaje"];
$lista = array("gerardo.topete@outlook.com","gerardotopete7@gmail.com","suscripcion.punkconleche@gmail.com");
$i = count($lista);

use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;

require 'PHPMailer/Exception.php';
require 'PHPMailer/PHPMailer.php';
require 'PHPMailer/SMTP.php';

// Instantiation and passing `true` enables exceptions
$mail = new PHPMailer(true);

for($x = 0; $x < $i; $x++){
    try {
        //Server settings
        $mail->SMTPDebug = 0;                                       // Enable verbose debug output
        $mail->isSMTP();                                            // Set mailer to use SMTP
        $mail->Host       = 'smtp.gmail.com';                       // Specify main and backup SMTP servers
        $mail->SMTPAuth   = true;                                   // Enable SMTP authentication
        $mail->Username   = '********';   // SMTP username
        $mail->Password   = '********';                         // SMTP password
        $mail->SMTPSecure = 'tls';                                  // Enable TLS encryption, `ssl` also accepted
        $mail->Port       = 587;                                    // TCP port to connect to

        //Recipients
        $mail->setFrom('suscripcion.punkconleche@gmail.com');
        $mail->addAddress($lista[$x]);     // Add a recipient

        // Content
        $mail->isHTML(true);                                       // Set email format to HTML
        $mail->Subject = $asunto;
        $mail->Body    = $mensaje;

        $mail->send();
        echo 'Tu correo se ha enviado';
    } catch (Exception $e) {
        echo 'Error al intentar suscribirte: ', $mail->ErrorInfo;
    }
}
?>

A: El error se debe a que cada vez que se llama al método addAddress() se  agrega un nuevo destinatario (To:), pero al finalizar cada ciclo no lo eliminas.
Es decir, al finalizar el ciclo n, en la lista de destinatarios tendrás n destinatarios y al destinatario en la posición x le habrás enviado n - x mails.
Más gráficamente sería:
// $x = 0
addAddress(mail1);
send();            // [mail1] destinatario

En el próximo ciclo:
// $x = 1
addAddress(mail2);
send();            // [mail1, mail2] destinatarios

Como se puede ver, a mail1 se le envío 2 veces (en la primera y en la segunda vuelta).
Y así sucesivamente hasta que $x < $i
Solución:
Deberías llamar a clearAddresses() para eliminar todos los destinatarios que fueron agregados. Ejemplo:
    //... código anterior
    $mail->send();
    $mail->clearAddresses();
    //...


text:
Q: Configuração do htaccess para subdomínio coringa por gentileza, tenho uma entrada coringa no meu domínio,  ou seja, qualquerNome.meudomino.com.br redireciona para meudomino.com.br. Preciso configurar o meu htaccess para redirecionar todas entradas parar um arquivo, no qual, conforme o subdomínio, redireciono adequadamente. Como ficaria este arquivo htaccess, considerando que o arquivo que vai avaliar este subdomínio vai receber da seguinte forma: arquivo.php?domain=Xxx. Onde XXX é o subdomínio requisitado.
Fiz a segunite regra abaixo, que funciona a princípio, porém, não consigo padronizar o comportamento da regra quando é requisitado com o "www" e sem o "www".
RewriteCond %{HTTP_HOST} ^(.*)\.dominio\.com\.br
RewriteRule (.*) http://dominio.com.br/domain.php?id=%1 [R=301,L]

Muito obrigado por antecipação.


text:
Q: Select Query Min and Max in one column based on other column value I have an employee table with a name, salary, HRA, DA,Status
I want to print these salary, HRA, DA,Status columns with only 2 records in them, the name of my highest and lowest salary,HRA,DA based on Status Column  where Active from employee.
It should look something like this:

SELECT
    salary, MIN(salary), MAX(salary) AND
    HRA, MIN(HRA), MAX(HRA) AND
    DA, MIN(HRA), MAX(HRA) AND Where Status = 'Active'FROM employee

A: you need to do so :
SELECT
     MIN(salary) salary,  MIN(HRA) HRA, MIN(DA) DA
FROM employee
Where Status = 'Active'
UNION
SELECT
     MAX(salary),  MAX(HRA), MAX(DA)
FROM employee
Where Status = 'Active'


text:
Q: Does there exist an infinite sequence of complex numbers $\{a_i\}$, all of whose powers sum to zero? Does there exist an infinite sequence $a_1, a_2, \dots \in \mathbb{C}$ such that for all integers $k \ge 1$, we have $$\sum_{i = 1}^{\infty} a_i^k = 0?$$
The statement is true if the $a's$ are absolutely convergent, but this question is about if we relax absolute convergence and only have conditional.
If we instead take a finite sequence and sufficiently many powers are zero, then indeed they are all zero, but this method can't work in the infinite case. [If you truncate the series at $a_1\dots a_n$ and only have $n$ equations, there is no guarantee the RHS will be small, and even if there was, there is no guarantee that the coefficients $e_i$ of the polynomial will be small, and even if there was, a polynomial with small coefficients can still have large roots that do not approach zero (eg. $x^n - 1/2^n$ has roots $x = 1/2$.)]
In the style of this excellent video, you could ask if the set of vectors $v_2 = (a_2^1, a_2^2, \dots), v_3 = (a_3^1, a_3^2, \dots)$, each of which is in  $l_2$, can be linearly combined to produce $v_1 = (-a_1^1, -a_1^2, \dots)$. Per the video the answer is indeed yes! - but this does not guarantee that the linear combination will be of equal weights $v_1 = 1\cdot v_2 + 1\cdot v_3 + \dots$. [Actually, an equal weight sum of vectors in $l_2$ is not necessarily even in $l_2$ itself - eg., if $v_i$ is the vector of all zeros except for position $i$ which is 1, then $v$ is a vector of all 1s, which is not in $l_2$.]
To try to use complex analysis, it's pretty clear that for any analytic (on the unit disc?) function $f(z) = \sum_{j = 1}^{\infty} c_j z^j$ for which $f(0) = 0$, then $\sum_i^{\infty} f(a_i) = 0$. Or, if you want to remove the $f(0) = 0$ condition, for all analytic functions $g$, we have $\sum_{i=0}^{\infty}a_i g(a_i) = 0$. This works for ANY g! Surely at this point it should be obvious that the $a_i$s must be zero, but alas I can't see it.
The same would hold if $a_i$ was replaced with $\overline{a_i}$, so that $\sum_{i=0}^{\infty}\overline{a_i} g(\overline{a_i}) = 0$. But I don't think this gets us anywhere, since we already know that $a_i$ converges to zero, so we can't use some trick to show that for some $s$, then $g(s) = 0$ for all $s$, contradiction, so all $a_i$ are zero. And we have a fixed set of $a_i$, so we can't move them around to such an $s$ and obtain that $g(s) = 0$.
And we have to use analytic functions - the Unit Disc Stone Weierstrass theorem says that $f(z)$ can be approximated by a polynomial $p(z, \overline{z})$, a polynomial in two variables $z, \overline{z}$. This makes things hard - because we don't have any information on the magnitudes of $a_i$ other than that (WLOG) they are less than 1.
Actually, if the $a_i$s were real numbers (and we eschew the trivial inequality to finish our proof immediately, haha), the  usual Stone Weierstrass would almost give a slick proof, but not quite. If we use the same polynomial $p$ to approximate an arbitrary continuous function $f$, so that $|p(x)-f(x)| \le \epsilon$ for all $x$, we'd have the same absolute error bound but an infinite number of terms, so the infinite sum $0 = \sum_{i=0}^{\infty} p(a_i)$ would not be close to $\sum_{i=0}^{\infty} f(a_i)$ as is true in the finite case. If we ignore this issue anyway and assume that $\sum_{i=0}^{\infty} f(a_i)$ is small, then we can construct a neighborhood $[-\epsilon, \epsilon]$ around zero which contains all but a finite nonzero number of the $a_i$ at the beginning of the sequence; then we can construct a continuous function which is zero on this neighborhood but equal to one everywhere else, and we'd obtain a contradiction (the sum would be strictly positive and more than one, vs close to 0), showing that no such interval exists, and thus all the $a_i$ have to be equal, and then it follows that $a_i = 0$ for all $i$.
I wonder if there is a nonzero solution where the $a_i$ are only conditionally convergent but not absolutely. On the other hand, from the vectors idea above, I think a nonzero solution is impossible because we have a uniform summation of the powers of $a_i$, which would prevent the resulting sum from lying in $l_2$ like $v_1 = (-a_1^1, -a_1^2, \dots)$ does.

A: We will construct such a sequence in three steps.
First let's have $f: \mathbb N^* \to \mathbb N^*, f(1)=1$  st $n|f(n)$ and that grows so fast so $\sum_{m=1}^{n-1}f(m) \le f(n)/n^{2n}$, so in particular $f(2) \ge 16$. Then we pick some $|r_1| \le 1, r_1 \ne 0$ arbitrary and inductively we construct $r_n \in \mathbb C$ st $$\sum_{d|n, d<n}f(d)r_d^n+f(n)r_n^n=0$$ and we claim that $|r_n| \le 1/n^2$ since $|r_2|^2=|r_1|^2f(1)/f(2) \le 1/16$ so $|r_2| \le 1/4$ and then inductively we have $$|r_n|^n \le \frac{\sum_{d|n, d<n}f(d)|r_d^n|}{f(n)} \le \frac{\sum_{m<n}f(m)}{f(n)} \le \frac{1}{n^{2n}}$$
We note that if $\omega_{n1}=1,..\omega_{nn}$ are the roots of unity of order $n \ge 2$, then $\sum_{m=1}^n\omega_{nm}^k=0$ if $k \ne an$ and $\sum_{m=1}^n\omega_{nm}^{an}=n$. Also we notice that any partial sums of the $\omega^k$'s is at most $n$ in absolute value, since they are roots of unity.
Now for every $n \ge 1$ we define the $a$ in blocks of $f(n)$ where each consecutive block of $n$ consists of the roots of order $n$ multiplied by $r_n$, and we repeat this precisely $f(n)/n$ times; so $a_1=r_1, a_{21}=r_2, a_{22}=-r_2,a_{23}=r_2, a_{24}=-r_2,..a_{2(15)}=r_1, a_{2(16)}=-r_2$ etc if say $f(2)=16$ which is lowest such allowable (and of course note that any $r_p \ne 0$ for prime $p$ so $a_n \ne 0$ for infinitely many $n$)
So in general $a_{nl}=\omega_{nl}r_l$ where $l=1,..f(n)$ and the roots of unity are extended by periodcity so $\omega_{nl}=\omega_{n(l+n)}$ when $l >n$.
Then we put together the $a_{nl}, l=1,..f(n)$ in one sequence in the order of $n$ and then of $l$ so we have $a_1, a_{21}, a_{22}, a_{23},..a_{28}, a_{31},...a_{3f(3)},...$ and we claim that
$$\sum_{n \ge 1}a_n=a_1, \sum_{n \ge 1} a_n^k=0, k \ge 2$$
Then we choose another sequence $b_n$ as above where $b_1=-a_1$ and it will follow that the sequence $c_n$ where we alternate $c_{2n-1}=a_n, c_{2n}=b_n$ will satisfy $\sum c_n^k=0$ for all $k \ge 1$
Note first that by construction $\sum_{l=1}^{f(n)}a_{nl}^k=0, k \ne qn$ and  $\sum_{l=1}^{f(n)}a_{nl}^{qn}=f(n)r_n^{qn}$
So first let $k=1$ and look at the partial sums $s_N=a_1+\sum_{2 \le m \le N}a_m$. Since for all $n \ge 2$ we have that $1$ is not a multiple of $n$, any complete block of $f(n)$ of roots of unity of order $n$ vanishes so $s_N \to a_1$ if it converges. But any partial sums vanishes on all complete blocks so we just in general remain with the sum of the $a_m$ within the last block consisting of roots of unity of order $n<N$ that may not be complete, but even there any consecutive $n$ terms vanish so actually we remain with a sum of at most $n-1$ terms which is at most $n|r_n| \le 1/n$ in absolute value and since $N \to \infty$ means $n \to \infty$ as $f(n)$ while very large is still finite, we get that $s_n \to a_1$
Now let's have $k \ge 2$ and note that again for $n >k$ all the blocks of roots of unity of order $n$ vanish, so we have that if $s_{Nk}=\sum_{1\le m \le N}a_m^k$ converges it does so to $S_k$ which is the sum of the terms up to the end of the block $f(k)$ of roots of unity of order $k$ (multiplied by $r_k^k$). But by construction, this sum is precisely $$\sum_{d|k, d<k}f(d)r_d^k+f(k)r_k^k=0$$
And now for the convergence of $s_{Nk}$ again we need to look only at the terms for which the blocks are of order $n>k$ and any complete such vanishes, while any incomplete such again has at most $n-1$ terms since any block of $n$ consecutive terms vanishes too; so any such partial sums $\sum_{N_1 \le m \le M_1}a_m^k, N_1>f(1)+..f(k)$ is at most $n|r_n|^k$ in absolute value so goes to zero with $n \to \infty$ since $|r_n| \le 1/n^2$. This shows that $\sum a_n^k \to S_k=0$ and we are done since $n \to \infty $ as $N_1, M_1 \to \infty$.
Choosing $b_n$ with $b_1=-a_1$ and mixing them, clearly doesn't alter the argument since now for any partial sum we can split it into the partial sums on the $a_n$ and the $b_n$'s respectively and apply the arguments above to each with of course the appropriate changes.
Hence there are indeed $a_m \ne 0$ st $\sum a_m^k=0$ for all $k \ge 1$ while clearly $\sum |a_m|= \sum f(n)|r_n|$ is wildly divergent

A: As ho boon suan said in a comment, an example of such a sequence has been given in

*

*Andrew Lenard, A nonzero complex sequence with vanishing power-sums, Proceedings of the American Mathematical Society 108 (1990), 951–953.

They construct a sequence of non-zero complex numbers $(a_n)$ such that $\sum_{n=1}^\infty a_n^k = 0$ for all positive integers $k$.
Here is a sketch of that construction. First, finite sequences $s_0, s_1, s_2, \ldots$ are recursively defined as follows

*

*$s_0 = 1$.

*$s_1$ is $s_0$, followed by a copy of $s_0$ multiplied with $\alpha_1 = \exp(i\pi) = -1$:
$$
 s_1 = 1, -1 \, .
$$

*$s_2$ is $s_1$, followed by $2^2 = 4$ copies of $s_1$ where each term is multiplied with $\alpha_2 = \exp(i\pi/2)/2 = i/2$:
$$
 s_2 = 1, -1, i/2, -i/2, i/2, -i/2, i/2, -i/2, i/2, -i/2 \, .
$$

*$s_3$ is $s_2$, followed by $3^3 = 27$ copies of $s_2$ where each term is multiplied with $\alpha_3 = \exp(i\pi/3)/3$, that are $10 \cdot (1+27) = 280$ terms, starting with
$$
 s_3 = 1, -1, i/2, -i/2, i/2, -i/2, i/2, -i/2, i/2, -i/2 \\
 \exp(i\pi/3)/3, -\exp(i\pi/3)/3, \exp(i\pi/3)/3 \cdot i/2, \ldots
$$

*...

*$s_j$ is $s_{j-1}$, followed by $j^j$ copies of $s_{j-1}$ where each term is multiplied with $\alpha_j = \exp(i\pi/j)/j$.
The construction is such that

*

*The sum of all terms in $s_1$ vanishes, and the same is true for the sum of all terms in $s_j$, $j \ge 1$.

*The sum of the squares of all terms in $s_2$ vanishes, and the same is true for the sum of squares of all terms in $s_j$ with $j \ge 2$.

*...

*Generally, the sum of the $k$-th powers of all terms in $s_j$ vanishes for $j \ge k$.

Each of these sequences is an extension of the previous ones, so that one can define $a_n$ as the $n$-th term in $s_j$ for sufficiently large $j$.
For each $k \ge 1$, the sequence $(a_n)$ can be viewed as the concatenation of infinitely many copies of $s_k$, scaled with complex factors of decreasing modulus. It follows that $\sum_{n=1}^\infty a_n^k = 0$ for all positive integers $k$


text:
Q: How to De-Authenticate a Windows Auth user with PHP If a user logged in to my site with windows auth, how do I log the person out so that they will have to be authenticated again? (this is with IIS)
For example the user logs in like this:

Then the $_SERVER variable contains:
[REMOTE_ADDR] => 172.34.567.891
[REMOTE_HOST] => 172.34.567.891
[REMOTE_PORT] => 44601
[REMOTE_USER] => DOMAIN\username

And the user is not asked again for his username or password with windows auth unless the computer is restarted, or he uses a different browser.
How do I force the user to be authenticated again with PHP?

Update:
I found a way to do this, but it only works in chrome (all other browsers just throw a 401 unauthorized, even if the login is correct):
My code:
logout.php
    //clear session
    //then:
    $user = isset($_SESSION['userName']);
    $userNotSet = (!$user || (is_array($user) && count($user) == 0));

    if(!isset($_SESSION['401']) && $userNotSet) {
        $_SESSION['401'] = true;
        $realm = 'mysite';
        header('HTTP/1.1 401 Unauthorized');
        header('WWW-Authenticate: Digest realm="'.$realm.
           '",qop="auth",nonce="'.uniqid().'",opaque="'.md5($realm).'"');
        exit;
    }
    elseif($userNotSet) {
        header('HTTP/1.1 401 Unauthorized');
        list($domain, $user) = explode("\\", $_SERVER['REMOTE_USER']);
        $_SESSION['userName'] = $user;
        $_SESSION['LoggedIn'] = true;
    }
    else    {
        header('Location: '.WEBROOT.INDEX);
    }
    exit;

Why doesn't this work in any other browser aside from Chrome? Is there a cross-browser solution?

A: If you are using PHP with HTTP Basic Auth, then there are two $_SERVER variables you need to be using and testing: $_SERVER['PHP_AUTH_USER'] & $_SERVER['PHP_AUTH_PW'].
To force the display of the browser's HTTP basic auth login dialog, you send a 401 header. It doesn't matter if the user is logged in or not, you can send the 401 header at any time to force the user to re-enter their credentials.
This code shows the basics:
<?php

// If the force_login request variable exists, then we want the user to
// re-enter their login details.
if (isset($_GET['force_login']) && $_GET['force_login'] == 1) {
    header('WWW-Authenticate: Basic realm="realm"');
    header('HTTP/1.0 401 Unauthorized');
    exit;
}

// Login process
if (!$_SERVER['PHP_AUTH_USER']) {
    // The browser has not supplied $_SERVER['PHP_AUTH_USER'], so we need
    // the user to log in
    header('WWW-Authenticate: Basic realm="realm"');
    header('HTTP/1.0 401 Unauthorized');
    exit;

} else {
    // Test that the username/password combination are correct
    $expectedUsername = 'test';
    $expectedPassword = '1234';
    if ($_SERVER['PHP_AUTH_USER'] != $expectedUsername
            && $_SERVER['PHP_AUTH_PW'] != $expectedPassword ) {
        // not valid username/password - try again!
        header('WWW-Authenticate: Basic realm="realm"');
        header('HTTP/1.0 401 Unauthorized');
        exit;
    }
}
// End login process

// The user is logged in here. we can display the page content
echo 'Force login';

(As a side note, if you're using HTTP basic auth, ensure you're using SSL too!)


text:
Q: Flutter 2: Run app: Execution failed for task ':location:compileDebugKotlin' I am trying to build my app but I have encountered a problem that I do not success to resolve. I've tried many stackoverflow solution without any success (like this one Execution failed for task ':location:compileDebugKotlin').
Here the building error:
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
Running Gradle task 'assembleDebug'...
e: C:\Users\Da2ny\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\location-4.3.0\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (124, 1): Class 'FlutterLocationService' is not abstract and does not implement abstract member public abstract fun onRequestPermissionsResult(p0: Int, p1: Array<(out) String!>, p2: IntArray): Boolean defined in io.flutter.plugin.common.PluginRegistry.RequestPermissionsResultListener
e: C:\Users\Da2ny\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\location-4.3.0\android\src\main\java\com\lyokone\location\FlutterLocationService.kt: (258, 5): 'onRequestPermissionsResult' overrides nothing

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':location:compileDebugKotlin'.
> Compilation error. See log for more details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 6s

Here my flutter doctor:
C:\lib\flutter\bin\flutter.bat doctor --verbose
[√] Flutter (Channel beta, 2.13.0-0.1.pre, on Microsoft Windows [Version 10.0.22000.613], locale fr-FR)
    • Flutter version 2.13.0-0.1.pre at C:\lib\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 13a2fb10b8 (5 days ago), 2022-04-12 15:34:25 -0500
    • Engine revision 499984f99c
    • Dart version 2.17.0 (build 2.17.0-266.1.beta)
    • DevTools version 2.12.1

[√] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
    • Android SDK at C:\lib\flutter-android
    • Platform android-32, build-tools 32.0.0
    • Java binary at: C:\Program Files\Android\Android Studio1\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.1.4)
    • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
    • Visual Studio Community 2022 version 17.1.32407.343
    • Windows 10 SDK version 10.0.19041.0

[√] Android Studio (version 2020.3)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)

[√] Android Studio (version 2021.1)
    • Android Studio at C:\Program Files\Android\Android Studio1
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+9-b60-7590822)

[√] VS Code (version 1.66.2)
    • VS Code at C:\Users\Da2ny\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension can be installed from:
       https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[√] Connected device (4 available)
    • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64    • Android 12 (API 32) (emulator)
    • Windows (desktop)            • windows       • windows-x64    • Microsoft Windows [Version 10.0.22000.613]
    • Chrome (web)                 • chrome        • web-javascript • Google Chrome 100.0.4896.88
    • Edge (web)                   • edge          • web-javascript • Microsoft Edge 100.0.1185.29

[√] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
Process finished with exit code 0

My kotlin version: ext.kotlin_version = '1.6.10'
The added perms:
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

Could you please help me ?

A: if you recently upgrade your flutter you need to upgrade gradle and kotllin version in your app
download latest version of gradle and include it in your project like this:
in the following folder : andoid->geadle->wrapper-> in file grdle-wrapper.properites edit last line
distributionUrl=https://services.gradle.org/distributions/gradle-7.4.1-all.zip
then upgrade kotlin version in build.gradle
buildscript {
ext.kotlin_version = '1.6.10'
repositories {
    google()
    mavenCentral()
}

dependencies {
    classpath 'com.android.tools.build:gradle:7.0.4'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}

}

A: I fixed it:

*

*Updating compileSdkVersion to 32 in Android->App->build.gradle

*Adding android:exported="true" to <activity in android->app->src->main->AndroidManifest.xml

*Doing the modification of @AHMAD_AR
andoid->geadle->wrapper-> in file grdle-wrapper.properites edit last
line
distributionUrl=https://services.gradle.org/distributions/gradle-7.4.1-all.zip
then upgrade kotlin version in build.gradle
buildscript {
  ext.kotlin_version = '1.6.10'
  repositories {
    google()
    mavenCentral()
  }

  dependencies {
    classpath 'com.android.tools.build:gradle:7.0.4'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  }
}

*Reinstalling the last version of Flutter - Stable Channel


text:
Q: netty epoll native throw java.lang.IllegalArgumentException in linux(debian) When start application, the following exception is thrown from netty
Caused by: java.lang.IllegalArgumentException
    at sun.misc.Unsafe.allocateMemory(Native Method)
    at io.netty.util.internal.PlatformDependent0.allocateMemory(PlatformDependent0.java:627)
    at io.netty.util.internal.PlatformDependent.allocateMemory(PlatformDependent.java:262)
    at io.netty.channel.epoll.IovArray.<init>(IovArray.java:64)
    at io.netty.channel.epoll.EpollEventLoop.<init>(EpollEventLoop.java:62)
    at io.netty.channel.epoll.EpollEventLoopGroup.newChild(EpollEventLoopGroup.java:130)
    at io.netty.channel.epoll.EpollEventLoopGroup.newChild(EpollEventLoopGroup.java:35)
    at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:84)

A: The reason is caused by another library which contains the android-2.3.3.jar. Netty EPOLL native try to detect the system by checking the functions & class. In the PlatformDependent::isAndroid0(), because of the android jar, it will believe itself is running in android.
 private static boolean isAndroid0() {
    boolean android;
    try {
        Class.forName("android.app.Application", false, getSystemClassLoader());
        android = true;
 ...

So the function hasUnsafe0() will wrongly believe there is no sun.misc.Unsafe.
private static boolean hasUnsafe0() {
    if(isAndroid()) {
        logger.debug("sun.misc.Unsafe: unavailable (Android)");
        return false;

Because of this, the exception is thrown when it is calling the native memory allocation. Its parameter is negative value!!!


text:
Q: java.lang.IllegalStateException: Could not locate PropertySource and the fail fast property is set, failing with microservices I am new to the microservices + Spring Boot combinations and getting the below error while running the code from the link: https://github.com/sqshq/PiggyMetrics . Please guide me what is the nissue ?
java.lang.IllegalStateException: Could not locate PropertySource and the fail fast property is set, failing
    at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.locate(ConfigServicePropertySourceLocator.java:110) ~[spring-cloud-config-client-1.1.0.RELEASE.jar:1.1.0.RELEASE]
    at org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:89) ~[spring-cloud-context-1.1.0.RELEASE.jar:1.1.0.RELEASE]
    at org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:640) [spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE]
    at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:343) [spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) [spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1191) [spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1180) [spring-boot-1.3.5.RELEASE.jar:1.3.5.RELEASE]
    at com.piggymetrics.statistics.StatisticsApplication.main(StatisticsApplication.java:34) [classes/:na]
Caused by: org.springframework.web.client.ResourceAccessException: I/O error on GET request for "http://config:8888/statistics-service/default": config; nested exception is java.net.UnknownHostException: config
    at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:607) ~[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:557) ~[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:475) ~[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.getRemoteEnvironment(ConfigServicePropertySourceLocator.java:130) ~[spring-cloud-config-client-1.1.0.RELEASE.jar:1.1.0.RELEASE]
    at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator.locate(ConfigServicePropertySourceLocator.java:81) ~[spring-cloud-config-client-1.1.0.RELEASE.jar:1.1.0.RELEASE]
    ... 7 common frames omitted
Caused by: java.net.UnknownHostException: config
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_144]
    at java.net.PlainSocketImpl.connect(Unknown Source) ~[na:1.8.0_144]
    at java.net.SocksSocketImpl.connect(Unknown Source) ~[na:1.8.0_144]
    at java.net.Socket.connect(Unknown Source) ~[na:1.8.0_144]
    at java.net.Socket.connect(Unknown Source) ~[na:1.8.0_144]
    at sun.net.NetworkClient.doConnect(Unknown Source) ~[na:1.8.0_144]
    at sun.net.www.http.HttpClient.openServer(Unknown Source) ~[na:1.8.0_144]
    at sun.net.www.http.HttpClient.openServer(Unknown Source) ~[na:1.8.0_144]
    at sun.net.www.http.HttpClient.<init>(Unknown Source) ~[na:1.8.0_144]
    at sun.net.www.http.HttpClient.New(Unknown Source) ~[na:1.8.0_144]
    at sun.net.www.http.HttpClient.New(Unknown Source) ~[na:1.8.0_144]
    at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source) ~[na:1.8.0_144]
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source) ~[na:1.8.0_144]
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) ~[na:1.8.0_144]
    at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) ~[na:1.8.0_144]
    at org.springframework.http.client.SimpleBufferingClientHttpRequest.executeInternal(SimpleBufferingClientHttpRequest.java:80) ~[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48) ~[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53) ~[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    at org.springframework.http.client.InterceptingClientHttpRequest$InterceptingRequestExecution.execute(InterceptingClientHttpRequest.java:93) ~[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    at org.springframework.cloud.config.client.ConfigServicePropertySourceLocator$BasicAuthorizationInterceptor.intercept(ConfigServicePropertySourceLocator.java:179) ~[spring-cloud-config-client-1.1.0.RELEASE.jar:1.1.0.RELEASE]
    at org.springframework.http.client.InterceptingClientHttpRequest$InterceptingRequestExecution.execute(InterceptingClientHttpRequest.java:85) ~[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    at org.springframework.http.client.InterceptingClientHttpRequest.executeInternal(InterceptingClientHttpRequest.java:69) ~[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:48) ~[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:53) ~[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:596) ~[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    ... 11 common frames omitted

2017-09-09 19:19:34.861  INFO 4968 --- [           main] .b.l.ClasspathLoggingApplicationListener : Application failed to start with classpath: [file:/C:/Learnings/micro-services/PiggyMetrics/statistics-service/target/classes/, file:/C:/Users/pashtikar/.m2/repository/org/springframework/boot/spring-boot-starter-security/1.3.5.RELEASE/spring-boot-starter-security-1.3.5.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/boot/spring-boot-starter/1.3.5.RELEASE/spring-boot-starter-1.3.5.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/boot/spring-boot/1.3.5.RELEASE/spring-boot-1.3.5.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/boot/spring-boot-autoconfigure/1.3.5.RELEASE/spring-boot-autoconfigure-1.3.5.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/yaml/snakeyaml/1.16/snakeyaml-1.16.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/spring-aop/4.2.6.RELEASE/spring-aop-4.2.6.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/security/spring-security-config/4.0.4.RELEASE/spring-security-config-4.0.4.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/security/spring-security-web/4.0.4.RELEASE/spring-security-web-4.0.4.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/spring-expression/4.2.6.RELEASE/spring-expression-4.2.6.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/cloud/spring-cloud-starter-config/1.1.0.RELEASE/spring-cloud-starter-config-1.1.0.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/cloud/spring-cloud-starter/1.1.0.RELEASE/spring-cloud-starter-1.1.0.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/cloud/spring-cloud-context/1.1.0.RELEASE/spring-cloud-context-1.1.0.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/security/spring-security-rsa/1.0.1.RELEASE/spring-security-rsa-1.0.1.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/bouncycastle/bcpkix-jdk15on/1.47/bcpkix-jdk15on-1.47.jar, file:/C:/Users/pashtikar/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.47/bcprov-jdk15on-1.47.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/cloud/spring-cloud-config-client/1.1.0.RELEASE/spring-cloud-config-client-1.1.0.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.6.6/jackson-annotations-2.6.6.jar, file:/C:/Users/pashtikar/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.6.6/jackson-databind-2.6.6.jar, file:/C:/Users/pashtikar/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.6.6/jackson-core-2.6.6.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/security/oauth/spring-security-oauth2/2.0.9.RELEASE/spring-security-oauth2-2.0.9.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/spring-beans/4.2.6.RELEASE/spring-beans-4.2.6.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/spring-core/4.2.6.RELEASE/spring-core-4.2.6.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/spring-context/4.2.6.RELEASE/spring-context-4.2.6.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/spring-webmvc/4.2.6.RELEASE/spring-webmvc-4.2.6.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/security/spring-security-core/4.0.4.RELEASE/spring-security-core-4.0.4.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/commons-codec/commons-codec/1.9/commons-codec-1.9.jar, file:/C:/Users/pashtikar/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.9.13/jackson-mapper-asl-1.9.13.jar, file:/C:/Users/pashtikar/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.9.13/jackson-core-asl-1.9.13.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/boot/spring-boot-starter-web/1.3.5.RELEASE/spring-boot-starter-web-1.3.5.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/boot/spring-boot-starter-tomcat/1.3.5.RELEASE/spring-boot-starter-tomcat-1.3.5.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/apache/tomcat/embed/tomcat-embed-core/8.0.33/tomcat-embed-core-8.0.33.jar, file:/C:/Users/pashtikar/.m2/repository/org/apache/tomcat/embed/tomcat-embed-el/8.0.33/tomcat-embed-el-8.0.33.jar, file:/C:/Users/pashtikar/.m2/repository/org/apache/tomcat/embed/tomcat-embed-logging-juli/8.0.33/tomcat-embed-logging-juli-8.0.33.jar, file:/C:/Users/pashtikar/.m2/repository/org/apache/tomcat/embed/tomcat-embed-websocket/8.0.33/tomcat-embed-websocket-8.0.33.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/boot/spring-boot-starter-validation/1.3.5.RELEASE/spring-boot-starter-validation-1.3.5.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/hibernate/hibernate-validator/5.2.4.Final/hibernate-validator-5.2.4.Final.jar, file:/C:/Users/pashtikar/.m2/repository/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar, file:/C:/Users/pashtikar/.m2/repository/org/jboss/logging/jboss-logging/3.3.0.Final/jboss-logging-3.3.0.Final.jar, file:/C:/Users/pashtikar/.m2/repository/com/fasterxml/classmate/1.1.0/classmate-1.1.0.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/spring-web/4.2.6.RELEASE/spring-web-4.2.6.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/cloud/spring-cloud-starter-feign/1.1.0.RELEASE/spring-cloud-starter-feign-1.1.0.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/cloud/spring-cloud-netflix-core/1.1.0.RELEASE/spring-cloud-netflix-core-1.1.0.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/cloud/spring-cloud-commons/1.1.0.RELEASE/spring-cloud-commons-1.1.0.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/security/spring-security-crypto/4.0.4.RELEASE/spring-security-crypto-4.0.4.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/com/netflix/feign/feign-core/8.16.2/feign-core-8.16.2.jar, file:/C:/Users/pashtikar/.m2/repository/org/jvnet/animal-sniffer-annotation/1.0/animal-sniffer-annotation-1.0.jar, file:/C:/Users/pashtikar/.m2/repository/com/netflix/feign/feign-slf4j/8.16.2/feign-slf4j-8.16.2.jar, file:/C:/Users/pashtikar/.m2/repository/com/netflix/feign/feign-hystrix/8.16.2/feign-hystrix-8.16.2.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/cloud/spring-cloud-starter-ribbon/1.1.0.RELEASE/spring-cloud-starter-ribbon-1.1.0.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/com/netflix/ribbon/ribbon/2.1.5/ribbon-2.1.5.jar, file:/C:/Users/pashtikar/.m2/repository/com/netflix/ribbon/ribbon-transport/2.1.5/ribbon-transport-2.1.5.jar, file:/C:/Users/pashtikar/.m2/repository/io/reactivex/rxnetty-contexts/0.4.9/rxnetty-contexts-0.4.9.jar, file:/C:/Users/pashtikar/.m2/repository/io/reactivex/rxnetty-servo/0.4.9/rxnetty-servo-0.4.9.jar, file:/C:/Users/pashtikar/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar, file:/C:/Users/pashtikar/.m2/repository/io/reactivex/rxnetty/0.4.9/rxnetty-0.4.9.jar, file:/C:/Users/pashtikar/.m2/repository/io/netty/netty-codec-http/4.0.27.Final/netty-codec-http-4.0.27.Final.jar, file:/C:/Users/pashtikar/.m2/repository/io/netty/netty-codec/4.0.27.Final/netty-codec-4.0.27.Final.jar, file:/C:/Users/pashtikar/.m2/repository/io/netty/netty-handler/4.0.27.Final/netty-handler-4.0.27.Final.jar, file:/C:/Users/pashtikar/.m2/repository/io/netty/netty-transport-native-epoll/4.0.27.Final/netty-transport-native-epoll-4.0.27.Final.jar, file:/C:/Users/pashtikar/.m2/repository/io/netty/netty-common/4.0.27.Final/netty-common-4.0.27.Final.jar, file:/C:/Users/pashtikar/.m2/repository/io/netty/netty-buffer/4.0.27.Final/netty-buffer-4.0.27.Final.jar, file:/C:/Users/pashtikar/.m2/repository/io/netty/netty-transport/4.0.27.Final/netty-transport-4.0.27.Final.jar, file:/C:/Users/pashtikar/.m2/repository/com/netflix/ribbon/ribbon-core/2.1.5/ribbon-core-2.1.5.jar, file:/C:/Users/pashtikar/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar, file:/C:/Users/pashtikar/.m2/repository/com/netflix/ribbon/ribbon-httpclient/2.1.5/ribbon-httpclient-2.1.5.jar, file:/C:/Users/pashtikar/.m2/repository/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar, file:/C:/Users/pashtikar/.m2/repository/com/netflix/netflix-commons/netflix-commons-util/0.1.1/netflix-commons-util-0.1.1.jar, file:/C:/Users/pashtikar/.m2/repository/com/netflix/ribbon/ribbon-loadbalancer/2.1.5/ribbon-loadbalancer-2.1.5.jar, file:/C:/Users/pashtikar/.m2/repository/com/netflix/netflix-commons/netflix-statistics/0.1.1/netflix-statistics-0.1.1.jar, file:/C:/Users/pashtikar/.m2/repository/io/reactivex/rxjava/1.1.5/rxjava-1.1.5.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/cloud/spring-cloud-starter-archaius/1.1.0.RELEASE/spring-cloud-starter-archaius-1.1.0.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/com/netflix/archaius/archaius-core/0.7.4/archaius-core-0.7.4.jar, file:/C:/Users/pashtikar/.m2/repository/com/google/code/findbugs/jsr305/3.0.1/jsr305-3.0.1.jar, file:/C:/Users/pashtikar/.m2/repository/commons-configuration/commons-configuration/1.8/commons-configuration-1.8.jar, file:/C:/Users/pashtikar/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/cloud/spring-cloud-starter-eureka/1.1.0.RELEASE/spring-cloud-starter-eureka-1.1.0.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/cloud/spring-cloud-netflix-eureka-client/1.1.0.RELEASE/spring-cloud-netflix-eureka-client-1.1.0.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/com/netflix/eureka/eureka-client/1.4.6/eureka-client-1.4.6.jar, file:/C:/Users/pashtikar/.m2/repository/org/codehaus/jettison/jettison/1.3.7/jettison-1.3.7.jar, file:/C:/Users/pashtikar/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar, file:/C:/Users/pashtikar/.m2/repository/com/netflix/netflix-commons/netflix-eventbus/0.3.0/netflix-eventbus-0.3.0.jar, file:/C:/Users/pashtikar/.m2/repository/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar, file:/C:/Users/pashtikar/.m2/repository/com/netflix/servo/servo-core/0.10.1/servo-core-0.10.1.jar, file:/C:/Users/pashtikar/.m2/repository/com/netflix/servo/servo-internal/0.10.1/servo-internal-0.10.1.jar, file:/C:/Users/pashtikar/.m2/repository/com/sun/jersey/jersey-core/1.19.1/jersey-core-1.19.1.jar, file:/C:/Users/pashtikar/.m2/repository/com/sun/jersey/jersey-client/1.19.1/jersey-client-1.19.1.jar, file:/C:/Users/pashtikar/.m2/repository/com/sun/jersey/contribs/jersey-apache-client4/1.19.1/jersey-apache-client4-1.19.1.jar, file:/C:/Users/pashtikar/.m2/repository/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar, file:/C:/Users/pashtikar/.m2/repository/org/apache/httpcomponents/httpcore/4.4.4/httpcore-4.4.4.jar, file:/C:/Users/pashtikar/.m2/repository/com/google/inject/guice/4.0/guice-4.0.jar, file:/C:/Users/pashtikar/.m2/repository/com/netflix/governator/governator-api/1.12.10/governator-api-1.12.10.jar, file:/C:/Users/pashtikar/.m2/repository/com/netflix/eureka/eureka-core/1.4.6/eureka-core-1.4.6.jar, file:/C:/Users/pashtikar/.m2/repository/com/amazonaws/aws-java-sdk-core/1.10.30/aws-java-sdk-core-1.10.30.jar, file:/C:/Users/pashtikar/.m2/repository/com/amazonaws/aws-java-sdk-ec2/1.10.30/aws-java-sdk-ec2-1.10.30.jar, file:/C:/Users/pashtikar/.m2/repository/com/amazonaws/aws-java-sdk-autoscaling/1.9.3/aws-java-sdk-autoscaling-1.9.3.jar, file:/C:/Users/pashtikar/.m2/repository/com/amazonaws/aws-java-sdk-sts/1.9.3/aws-java-sdk-sts-1.9.3.jar, file:/C:/Users/pashtikar/.m2/repository/com/amazonaws/aws-java-sdk-route53/1.9.3/aws-java-sdk-route53-1.9.3.jar, file:/C:/Users/pashtikar/.m2/repository/com/netflix/governator/governator/1.12.10/governator-1.12.10.jar, file:/C:/Users/pashtikar/.m2/repository/com/netflix/governator/governator-core/1.12.10/governator-core-1.12.10.jar, file:/C:/Users/pashtikar/.m2/repository/org/ow2/asm/asm/5.0.4/asm-5.0.4.jar, file:/C:/Users/pashtikar/.m2/repository/org/codehaus/woodstox/woodstox-core-asl/4.4.1/woodstox-core-asl-4.4.1.jar, file:/C:/Users/pashtikar/.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar, file:/C:/Users/pashtikar/.m2/repository/org/codehaus/woodstox/stax2-api/3.1.4/stax2-api-3.1.4.jar, file:/C:/Users/pashtikar/.m2/repository/com/netflix/ribbon/ribbon-eureka/2.1.5/ribbon-eureka-2.1.5.jar, file:/C:/Users/pashtikar/.m2/repository/com/thoughtworks/xstream/xstream/1.4.2/xstream-1.4.2.jar, file:/C:/Users/pashtikar/.m2/repository/xmlpull/xmlpull/1.1.3.1/xmlpull-1.1.3.1.jar, file:/C:/Users/pashtikar/.m2/repository/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/boot/spring-boot-starter-data-mongodb/1.3.5.RELEASE/spring-boot-starter-data-mongodb-1.3.5.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/mongodb/mongo-java-driver/2.13.3/mongo-java-driver-2.13.3.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/data/spring-data-mongodb/1.8.4.RELEASE/spring-data-mongodb-1.8.4.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/spring-tx/4.2.6.RELEASE/spring-tx-4.2.6.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/data/spring-data-commons/1.11.4.RELEASE/spring-data-commons-1.11.4.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/slf4j/jcl-over-slf4j/1.7.21/jcl-over-slf4j-1.7.21.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/boot/spring-boot-starter-actuator/1.3.5.RELEASE/spring-boot-starter-actuator-1.3.5.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/boot/spring-boot-actuator/1.3.5.RELEASE/spring-boot-actuator-1.3.5.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/cloud/spring-cloud-starter-bus-amqp/1.1.0.RELEASE/spring-cloud-starter-bus-amqp-1.1.0.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/cloud/spring-cloud-starter-stream-rabbit/1.0.0.RELEASE/spring-cloud-starter-stream-rabbit-1.0.0.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/cloud/spring-cloud-stream-binder-rabbit/1.0.0.RELEASE/spring-cloud-stream-binder-rabbit-1.0.0.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/cloud/spring-cloud-stream-codec/1.0.0.RELEASE/spring-cloud-stream-codec-1.0.0.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/boot/spring-boot-starter-amqp/1.3.5.RELEASE/spring-boot-starter-amqp-1.3.5.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/amqp/spring-rabbit/1.5.6.RELEASE/spring-rabbit-1.5.6.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/amqp/spring-amqp/1.5.6.RELEASE/spring-amqp-1.5.6.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/com/rabbitmq/http-client/1.0.0.RELEASE/http-client-1.0.0.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/com/rabbitmq/amqp-client/3.5.7/amqp-client-3.5.7.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/integration/spring-integration-amqp/4.2.5.RELEASE/spring-integration-amqp-4.2.5.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/integration/spring-integration-jmx/4.2.5.RELEASE/spring-integration-jmx-4.2.5.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/cloud/spring-cloud-bus/1.1.0.RELEASE/spring-cloud-bus-1.1.0.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/integration/spring-integration-core/4.2.5.RELEASE/spring-integration-core-4.2.5.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/cloud/spring-cloud-netflix-hystrix-stream/1.1.0.RELEASE/spring-cloud-netflix-hystrix-stream-1.1.0.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/boot/spring-boot-starter-logging/1.3.5.RELEASE/spring-boot-starter-logging-1.3.5.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/ch/qos/logback/logback-classic/1.1.7/logback-classic-1.1.7.jar, file:/C:/Users/pashtikar/.m2/repository/ch/qos/logback/logback-core/1.1.7/logback-core-1.1.7.jar, file:/C:/Users/pashtikar/.m2/repository/org/slf4j/jul-to-slf4j/1.7.21/jul-to-slf4j-1.7.21.jar, file:/C:/Users/pashtikar/.m2/repository/org/slf4j/log4j-over-slf4j/1.7.21/log4j-over-slf4j-1.7.21.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/cloud/spring-cloud-stream/1.0.0.RELEASE/spring-cloud-stream-1.0.0.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/spring-messaging/4.2.6.RELEASE/spring-messaging-4.2.6.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/spring-tuple/1.0.0.RELEASE/spring-tuple-1.0.0.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/com/esotericsoftware/kryo-shaded/3.0.3/kryo-shaded-3.0.3.jar, file:/C:/Users/pashtikar/.m2/repository/com/esotericsoftware/minlog/1.3.0/minlog-1.3.0.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/integration/spring-integration-tuple/1.0.0.RELEASE/spring-integration-tuple-1.0.0.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/org/springframework/retry/spring-retry/1.1.2.RELEASE/spring-retry-1.1.2.RELEASE.jar, file:/C:/Users/pashtikar/.m2/repository/com/netflix/hystrix/hystrix-core/1.5.2/hystrix-core-1.5.2.jar, file:/C:/Users/pashtikar/.m2/repository/org/hdrhistogram/HdrHistogram/2.1.7/HdrHistogram-2.1.7.jar, file:/C:/Users/pashtikar/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar, file:/C:/Users/pashtikar/.m2/repository/org/objenesis/objenesis/2.1/objenesis-2.1.jar, file:/C:/Users/pashtikar/.m2/repository/org/slf4j/slf4j-api/1.7.21/slf4j-api-1.7.21.jar]

A: Anatoly above sums it pretty clearly and nicely as to what you need to do.
If you are looking for a quick and dirty test try changing the hostnames  from
http://config:8888 to http://localhost:8888
in the bootstrap.yml files, for the service you are trying to run.

A: If you build and run project modules manually (e.g. from IDE) you should rename all "config" hostnames in bootstrap.yml files to "localhost".
The issue is, this project uses Docker Compose to run things

Development mode
If you'd like to build images yourself (with some changes in the code, for example), you have to clone all repository and build artifacts with maven. Then, run docker-compose -f docker-compose.yml -f docker-compose.dev.yml up
docker-compose.dev.yml inherits docker-compose.yml with additional possibility to build images locally and expose all containers ports for convenient development.

and Docker Compose allows you to use service name as hostname.

A: Setting failsafe to false will just not throw the exception , this is something I would not recommend since this means even if you are not connected to your config server and unable to fetch the configuration your application will run which leads to an uncertain behavior (since you do not know where your properties are loaded), always better to fail fast.
The original cause of the problem is an exception or failing during fetching the remote environment from your config server, probably a timeout issue.

A: Your configuration is not setup properly. It thinks the hostname is 'config'.

A: I got something similar, an 500 internal error from a micro service! No cause given.
I looked at the config server, for the service my application was attempting to contact.  It had given a parse error when attempting to read a yml file at start up, with the result the entire process was hanging.
So if you get an error, look in the logging data from your config server, there might be some extra information there.

A: For me it was because the Jhipster Registry was not running

A: I met this issue as the same, i resolved it by updated configuration below:
cloud:
    config:
        fail-fast: false

A: After changing Active profiles to local in "Edit configuration" it started working.
1)

2)

A: For Jhipster...
The focus is on http://localhost:8761/config, and then I saw that there is a bootstrap-prod.yml based on the production environment in the project. The reason is that the configuration in the production environment is the same as the dev, which leads to an error.
So replace the produced localhost with the domain name/IP of the project registration center


text:
Q: Struggling to reduce Looking for some help on the best way to combine or reduce all bills into an array of objects if the 'startDate' are equal.
From this:
{
    "id": 0,
    "startDate": "2020-01-10T07:00:00.000Z", //Same
    "endDate": "2020-01-24T07:00:00.000Z",
    "bills": {
      "name": "Bill 1",
    }
},
{
    "id": 1,
    "startDate": "2020-01-10T07:00:00.000Z", //Same
    "endDate": "2020-01-24T07:00:00.000Z",
    "bills": {
      "name": "Bill 2",
    }
}

to this:
{
    "id": 0,
    "startDate": "2020-01-10T07:00:00.000Z",
    "endDate": "2020-01-24T07:00:00.000Z",
    "bills": [
               {"name": "Bill 1",},
               {"name": "Bill 2",}
             ]
}

A: Go over data each item and Build an object with keys as startDate.

If key does not exist, add key and value.

If key already exist, append the bills.

const update = data => {
  const res = {};
  data.forEach(item => {
    if (!res[item.startDate]) {
      res[item.startDate] = { ...item, bills: [] };
    }
    res[item.startDate].bills.push(item.bills);
  });
  return Object.values(res);
};

const data = [
  {
    id: 0,
    startDate: "2020-01-10T07:00:00.000Z", //Same
    endDate: "2020-01-24T07:00:00.000Z",
    bills: {
      name: "Bill 1"
    }
  },
  {
    id: 1,
    startDate: "2020-01-10T07:00:00.000Z", //Same
    endDate: "2020-01-24T07:00:00.000Z",
    bills: {
      name: "Bill 2"
    }
  }
];

console.log(update(data));


text:
Q: Convert mysql value into columns I am new to this community but if my question doesn't follow the rules, please feel free to close this. Thanks!
This is my php database query
$sql = "
SELECT meta_key
     , meta_value
  FROM " . $wpdb->prefix . "postmeta
 WHERE post_id = " . $value->post_id . "
   AND meta_key LIKE '_field_%'";

This is the output so far
| meta_key  | meta_value |
| --------- | ---------- |
| _field_11 | Rosenie    |
| _field_30 | Tagarda    |
| _field_12 | Talibo     |
| _field_11 | Rondeo     |
| _field_30 | Soroysoroy |
| _field_12 | Balos      |

But I want it to be like this
| _field_11  | _field_30  | _field_12 |
| ---------- | ---------- | --------- |
| Rosenie    | Tagarda    | Talibo    |
| Rondeo     | Soroysoroy | Balos     |

Is there anyway to do this? Thanks in advance.
My temporary solution: https://pastebin.com/e5rF3ZQe

A: You can pivot your dataset. Assuming that you have a column that defines how rows should be combined, say some_id, you can do something like this
SELECT some_id,
    max(case when meta_key = '_field_11' then meta_value end) as field_11,
    max(case when meta_key = '_field_30' then meta_value end) as field_30,
    max(case when meta_key = '_field_12' then meta_value end) as field_12
FROM t_postmeta
WHERE post_id = ? AND meta_key LIKE '_field_%'
GROUP BY some_id

If you don't have that some_id column, then you need at least one column to order the rows, which we can use with row_number() - say ordering_id:
SELECT
    max(case when meta_key = '_field_11' then meta_value end) AS field_11,
    max(case when meta_key = '_field_30' then meta_value end) AS field_30,
    max(case when meta_key = '_field_12' then meta_value end) AS field_12
FROM (
    SELECT t.*, ROW_NUMBER() OVER(PARTITION BY meta_key ORDER by ordering_id) AS rn
    FROM t_postmeta t
    WHERE post_id = ? AND meta_key LIKE '_field_%'
) t
GROUP BY rn


text:
Q: Need help understanding the behavior of solar charger and Inverter I want to understand what happens when a solar charger is charging the battery while the inverter is also drawing a load from the battery. Say theoretically the charge controller supplies 10A and the inverter needs 50A for its load. The way I see it, with the Inverter off, the 10A from the charge controller is going directly to the positive terminal of the battery. But when turn on the inverter and draw 50A, current cant flow both ways on the positive line from the switch to the batttery so I assume that the 10A from the solar charger goes to the inverter and the battery makes up the difference sending 40A. Is my thinking wrong? Also does it matter if positive lines meet at the isolation switch vs at the battery terminal?
This is a basic diagram without fuses ect of what I describe

A: The solar charge controller would likely be designed to push as much power as available, up to the limit of 10 amps until the battery approaches full charge.  The charge controller would likely monitor battery voltage, current and temperature and reduce current fed toward the battery as necessary based on these conditions and based on the battery rate of charge.
The load demands 50 amps of current, independent of the source of this current (the battery or the charging controller) and the battery sinks or sources any remaining current.
With the charge controller acting as a current source (in this condition) and the load operating as a current sink, the battery would provide the remaining current needed by the load.  So, yes, 10 amps of current would be flowing from the charge controller to the load and 40 amps of current would be flowing from the battery to the load.


text:
Q: Why is size_type in std::array size_t and in std::vector usually size_t? The documentation says, that size_type of std::vector is /usually/ size_t, which is reasonable, since an implementation can choose to use different.
But why is size_type = size_t in std::array. Especially here, as std::array is used on small µC a lot, it would be better to let the implemenatation have some freedom.
Is this a doc-defect?

A: It's defined to be that way because size_t is defined to be sufficient for all arrays. If you want a smaller type for smaller arrays, you can always narrow when appropriate based on constexpr values.
template <typename Array>
struct small_array_size
{
    using type = size_t
};

template <typename T, size_t N, typename = std::enable_if_t<N < 256>>
struct small_array_size<std::array<T, N>>
{
    using type = uint8_t;
};

template <typename T, size_t N, typename = std::enable_if_t<N < 65536>>
struct small_array_size<std::array<T, N>>
{
    using type = uint16_t;
};

template <typename Array>
using small_array_size_t = typename small_array_size<Array>::type;


text:
Q: Distributing a Java console program I have created  a Java console application using Netbeans.  In the Netbeans dist directory I have the class file of the project.  Now I need to give the executable files to someone else
who will run them on another PC.
Which file I should send? How can he run them on his PC?  Is there any way to create an exe type file?
Both PCs have the JDK installed.

A: Build a jar file with a main class specified in it.
If he has Java installed and .jar is associated with that, he should be able to just double-click on it.
Alternatively from a command line he'd be able to run:
java -jar program.jar

There are programs around to create executable wrappers around this, but a jar file is a simpler solution in terms of packaging - it's worth trying that to start with.

A: In additon to Jons answer:
If you have a runnable jar to start with, it is frequently much easier to package it up in an EXE file.  If you have the need search Stackoverflow for JSmooth and one-jar.

A: NetBeans actually answers your question. If I do a Clean/Build, the output says:
To run this application from the command line without Ant, try:
java -jar "insert_your_project_name_here.jar"

A: theres a handy page about this here:
java tools tutorial
It describes creating jar files a little further down the page

A: You can go to run menu and select clean and build project or shift+f11 after this go to dist folder in project folder and use .jar file and run that by hint say in over .


text:
Q: Packer post process AMI to virtualbox? I have packer configured to use the amazon-ebs builder to create a custom AMI from the Red Hat 6 image supplied by Red Hat. I'd really like to packer to post process the custom AMI into a virtualbox image for local testing. I've tried adding a simple post processor to my packer json as follows:
  "post-processors": [
      {
        "type": "vagrant",
        "keep_input_artifact": false
      }
  ],

But all I end up with is a tiny .box file. When I add this to vagrant, it just seems to be a wrapper for my original AMI in Amazon:
$ vagrant box list
packer                                                (aws, 0)

I was hoping to see something like this:
rhel66                                                (virtualbox, 0)

Can packer convert my AMI into a virtualbox image?

A: Post-processor in your example just gives you the vagrant for that image. That image was aws, so no it didn't change anything. To change it to virtualbox you'd have to convert it.
Per the docs have you tried:

      {
        "type": "virtualbox",
        "only": ["virtualbox-iso"],
        "artifact_type": "vagrant.box",
        "metadata": {
          "provider": "virtualbox",
          "version": "0.0.1"
        }
      }

The above is untested. AWS provides some docs on exporting here


text:
Q: How can I split a text based on every n.th words? I am trying to split a text file for every 1000th word.
awk -v RS='[[:space:]]+' 'END{print NR+0}' filename

with awk I can count the words in a file but I don't know how I can split it.
final output= filename(1).txt, filename(2).txt

A: This totally sick solution should work for files which are less than 10000 words:
. <(echo -e 'uno due tre\nquattro\ncinque sei sette otto\nnove dieci undici dodici tredici' | sed -zE '
s/^/\x0/
:a
y/012345678/123456789/
s/\x0(([^ \n]+[ \n]+){4})/cat > file0 <<EOF\n\1\nEOF\n\x0/
ta
s/\x0(.*)/cat > file0 <<EOF\n\1\nEOF\n\x0/
s/\n+/\n/g')

Essentially, it intersperses some code at the points where the splits have to occur in such a way that the outcoming file is a bash script which is a sequence of cat commands which read from a heredocument and write to a file (a maximum of 10 files is allowed!). This script is sourced (. file is just source file, just uglier). You can see the script by removing the leading . <( and the trailing ).
The nice thing is that it splits the big file in the middle of lines if necessary, without altering the lines where no split occurs.
The ugliest thing is that it numbers the files backward.
The limitation on the number of words is because I am implementing only a one-digit addition on the filenames; it can be removed by implementing an addition in a similar way as done here or here.

A: You can do it with awk without too much trouble. It helps keep the clutter down if you write a function to actually handle outputting the words from an array to your file. Keep a counter to number the output file names, e.g. wordsfile_1 (first 1000 words), wordsfile_2 (next 1000 words) and so on. Then it is just a matter of keeping track of how many words you add to your array and call your output function when you hit 1000 words. Then delete the array, to make it ready to hold the next 1000 words, reset your word counter and keep going.
For example you could do something like:
awk '
    function writefile() {
        fname="wordsfile_" ++c + 0
        for (j=1; j<=n; j++)
            print a[j] > fname
        delete a
        n = 0
    }
    {
        for (i=1; i<=NF; i++) {
            a[++n] = $i
            if (n == 1000)
                writefile()
        }
    }
END {
    writefile()
}' input_file

The function writefile() handles writing the output to your 1000 word files and deleting the array and resetting the counter n. The END rule just calls the function once more to output any words collected since the last output.
Let me know if you have further questions.

A: #!/bin/bash
for FILE in *.txt
do
#FILE="FILENAME.txt"
read -p "HOW MANY WORDS SHOULD BE IN YOUR FILES? (~ APPROXIMATE) " BUFFER
#BUFFER=1000 # APPROXIMATE NUMBER OF WORDS IN A FILE

NW=$(wc -w $FILE | awk '{print $1}') #NW=NUMBER OF WORDS IN YOUR FILE

if [[ $NW -gt $BUFFER ]]
then

LINENUMBER=$(wc -l $FILE | awk '{print $1}')
WCOUNT=0
FL=1 #FIRST LINE NUMBER OF EVERY NEW FILE
FN=1 #FILE NUMBER

for j in $(eval echo "{1..$LINENUMBER}")
do
    INC=$(sed -n "${j}p" $FILE | wc -w)
    WCOUNT=$(( WCOUNT + INC ))
    if [[ $WCOUNT -gt $BUFFER ]];
    then
        sed -n "${FL},${j}p" $FILE >  ${FILE%%.*}_${FN}.txt
        FL=$(( j + 1))
        (( FN++ ))
        WCOUNT=0
    fi
done
sed -n "${FL},\$p" $FILE >  ${FILE%%.*}_${FN}.txt
fi
done

I found a different solution, It generates files that have roughly 1000 words in each.


text:
Q: Sorting XML by Attribute and Modifying First a little context: I use a collection management software, GCStar, to manage my digital library (comics/manga/films, you name it - it's pretty awesome except for books). Problem is, it doesn't let me sort the shelf by multiple keys, say by Series AND Episode number. Episodes added later will always show up lower in the shelf, grouped by Series.
I pattered around the configurations and found that the .gcs file it uses is nothing but an XML (which I am only cursorily familiar with). Goes like this:
<?xml version="1.0" encoding="UTF-8"?>
<collection type="GCTVepisodes" items="101" version="1.6.1">
 <information>
  <maxId>101</maxId>
 </information>

 <item
  id="1"
  name="The Vice President Doesn't Say Anything about the Possibility of
        Him Being the Main Character"
  series="Baccano"
  season="1"
  episode="1"
  ...
 >
  <synopsis>It's 1931 and...</synopsis>
 ...
 </item>
 <item ...

The program, far as I understand, will always order descending by ID (which increases whenever I add an episode). So I need a transform on this which will:

*

*Sort the XML by series, then season, then episode

*Change the id attributes accordingly, starting from 1 to end (also reset maxId based on that)

*Write it all out into identical format to another XML.

How to do this (not talking about cut-pasting code here, obviously)? Can XSLT do all this stuff? Should I look into a tree-based parser in Perl? This is the weekend and I'm on a Linux machine, so open-source solutions running on UNIX would be nice - something in Perl would probably be best. What should I read up on?
If I can't do this at home, well, I can always design a small datastage job at the office, but I'd seriously like a simpler solution.
Thanks! :)

A: The maxId (and items in collection) value should not change, because you are not removing or adding ids.
If you want an easy commandline open-source XSLT transformator use XSLTProc from libxml2/libxslt. It is available on nearly every standard linux. http://xmlsoft.org/XSLT/xsltproc2.html
Use this command xsltproc transform.xsl input.xml >output.xml
And here is a solution, the XSLT transform stylesheet, that should work ;-) (I had enough free time to code it)
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:output method="xml" encoding="UTF-8" indent="yes"/>

<xsl:strip-space elements="*"/>

<!-- Default: copy everything -->
<xsl:template match="@*|node()">
  <xsl:copy>
    <xsl:apply-templates select="@*|node()"/>
  </xsl:copy>
</xsl:template>

<!-- remove items, they will be sorted and inserted later -->
<xsl:template match="/collection/item"/>

<!-- remove id -->
<xsl:template match="/collection/item/@id"/>

<xsl:template match="/collection">
    <xsl:copy>
        <xsl:apply-templates select="@*|node()"/>
        <!-- copy and sort item by series, then season, then episode -->
        <xsl:for-each select="item">
            <xsl:sort select="@series" data-type="text"/>
            <xsl:sort select="@season" data-type="number"/>
            <xsl:sort select="@episode" data-type="number"/>
            <xsl:copy>
                <xsl:attribute name="id">
                    <xsl:value-of select="position()"/>
                </xsl:attribute>
                <!-- copy the rest of item -->
                <xsl:apply-templates select="@*|node()"/>
            </xsl:copy>
        </xsl:for-each>
    </xsl:copy>
</xsl:template>

</xsl:stylesheet>

I used this simplified data to test it:
<?xml version="1.0" encoding="UTF-8"?>
<collection type="GCTVepisodes" items="5" version="1.6.1">
 <information>
  <maxId>5</maxId>
 </information>

 <item
  id="1"
  name="The Vice President Doesn't Say Anything about the Possibility of
        Him Being the Main Character"
  series="Baccano"
  season="1"
  episode="1"/>

 <item
  id="2"
  name="blabla"
  series="c"
  season="1"
  episode="2"/>

 <item
  id="3"
  name="abc"
  series="Baccano"
  season="2"
  episode="1"/>

 <item
  id="4"
  name="blabla2"
  series="Baccano"
  season="1"
  episode="2"/>

 <item
  id="5"
  name="first of c"
  series="c"
  season="1"
  episode="1"/>

</collection>

And this is the result (look at how the position and id changed):
<?xml version="1.0" encoding="UTF-8"?>
<collection type="GCTVepisodes" items="5" version="1.6.1">
  <information>
    <maxId>5</maxId>
  </information>
  <item id="1" name="The Vice President Doesn't Say Anything about the Possibility of    Him Being the Main Character" series="Baccano" season="1" episode="1"/>
  <item id="2" name="blabla2" series="Baccano" season="1" episode="2"/>
  <item id="3" name="abc" series="Baccano" season="2" episode="1"/>
  <item id="4" name="first of c" series="c" season="1" episode="1"/>
  <item id="5" name="blabla" series="c" season="1" episode="2"/>
</collection>

A: You can get the same result using two simple templates:

*

*In the first template (the identity) we can just slightly "orient" the apply templates mechanism in order to sort item elements.

*In the second template we can override each item element, and use the position() function to recompute the id attribute. We will leave every other descendant node as is, but excluding the original id of the item.

XSLT 1.0 transform tested with Saxon 6.5.5
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output indent="yes"/>
    <xsl:strip-space elements="*"/>

    <xsl:template match="@*|node()">
        <xsl:copy>
            <xsl:apply-templates select="@*|node()[not(self::item)]"/>
            <xsl:apply-templates select="item">
                <xsl:sort select="@series"/>
                <xsl:sort select="@season" data-type="number"/>
                <xsl:sort select="@episode" data-type="number"/>
            </xsl:apply-templates>
        </xsl:copy>
    </xsl:template>

    <xsl:template match="item">
        <item id="{position()}">
            <xsl:apply-templates select="@*[name()!='id']|node()"/>
        </item>
    </xsl:template>

</xsl:stylesheet>

When the above transform is applied to the following input (@therealmarv a bit modified to include children elements):
<collection type="GCTVepisodes" items="5" version="1.6.1">
    <information>
        <maxId>5</maxId>
    </information>
    <item
        id="1"
        name="The Vice President Doesn't Say Anything about the Possibility of
        Him Being the Main Character"
        series="Baccano"
        season="1"
        episode="1">
        <synopsis>It's 1931 and...</synopsis>
    </item>
    <item
        id="2"
        name="blabla"
        series="c"
        season="1"
        episode="2">
        <synopsis>It's 1931 and...</synopsis>
    </item>
    <item
        id="3"
        name="abc"
        series="Baccano"
        season="2"
        episode="1">
        <synopsis>It's 1931 and...</synopsis>
    </item>
    <item
        id="4"
        name="blabla2"
        series="Baccano"
        season="1"
        episode="2">
        <synopsis>It's 1931 and...</synopsis>
    </item>
    <item
        id="5"
        name="first of c"
        series="c"
        season="1"
        episode="1">
        <synopsis>It's 1931 and...</synopsis>
    </item>
</collection>

The following output is produced:
<collection type="GCTVepisodes" items="5" version="1.6.1">
   <information>
      <maxId>5</maxId>
   </information>
   <item id="1" name="The Vice President Doesn't Say Anything about the Possibility of    Him Being the Main Character" series="Baccano" season="1" episode="1">
      <synopsis>It's 1931 and...</synopsis>
   </item>
   <item id="4" name="blabla2" series="Baccano" season="1" episode="2">
      <synopsis>It's 1931 and...</synopsis>
   </item>
   <item id="3" name="abc" series="Baccano" season="2" episode="1">
      <synopsis>It's 1931 and...</synopsis>
   </item>
   <item id="5" name="first of c" series="c" season="1" episode="1">
      <synopsis>It's 1931 and...</synopsis>
   </item>
   <item id="2" name="blabla" series="c" season="1" episode="2">
      <synopsis>It's 1931 and...</synopsis>
   </item>
</collection>

A:
Can XSLT do all this stuff?

Yes.  See the sub-answers below

*

*Sort the XML by series, then season, then episode

Yes you can use XSLT to sort XML.
http://www.w3schools.com/xsl/xsl_sort.asp

*

*Change the id attributes accordingly, starting from 1 to end (also reset maxId based on that)

You can also use it to write any text you want.  Which means you can replace data in your transform.
It also can assign variables, do if statements, loops, do XPath queries, has a built-in function library, etc, so it will be more than powerful enough for what you want to do.

*

*Write it all out into identical format to another XML

...Which also means you can use it to write XML

What should I read up on?

XSLT :)
The w3schools links (all the links above) were plenty for me, but I was already familiar with the XML structure, in general (attributes, elements, root element, inner text, etc).  If you are familiar with that, just read up on XSLT.
You could also look into XmlStarlet, which is a tool designed to query and transform XML from the command line or shell scripts/batch files (though for transformations, it might use XSLT anyhow).

A: I would also do this with XSLT. However, my stylesheet is a little different than therealmarv's stylsheet.
This XML input:
<collection type="GCTVepisodes" items="101" version="1.6.1">
  <information>
    <maxId>101</maxId>
  </information>

  <item
    id="1"
    name="The Vice President Doesn't Say Anything about the Possibility of
    Him Being the Main Character"
    series="Baccano"
    season="1"
    episode="2"
    >
    <synopsis>Blah blah blah...</synopsis>
    ...
  </item>

  <item
    id="2"
    name="some name"
    series="Alpha"
    season="2"
    episode="1"
    >
    <synopsis>Blah blah blah...</synopsis>
    ...
  </item>

  <item
    id="3"
    name="The Vice President Doesn't Say Anything about the Possibility of
    Him Being the Main Character"
    series="Baccano"
    season="1"
    episode="1"
    >
    <synopsis>It's 1931 and...</synopsis>
    ...
  </item>

  <item
    id="4"
    name="some name"
    series="Alpha"
    season="1"
    episode="1"
    >
    <synopsis>Blah blah blah...</synopsis>
    ...
  </item>

</collection>

with this stylesheet:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output indent="yes"/>
  <xsl:strip-space elements="*"/>

  <xsl:template match="node()|@*">
    <xsl:copy>
      <xsl:apply-templates select="node()|@*"/>
    </xsl:copy>
  </xsl:template>

  <xsl:template match="collection">
    <collection>
      <xsl:apply-templates select="@*"/>
      <xsl:apply-templates select="information"/>
      <xsl:apply-templates select="item">
        <xsl:sort select="@series" data-type="text"/>
        <xsl:sort select="@season" data-type="number"/>
        <xsl:sort select="@episode" data-type="number"/>
      </xsl:apply-templates>
    </collection>
  </xsl:template>

  <xsl:template match="item">
    <item id="{position()}">
      <xsl:apply-templates select="@*[not(name()='id')]|node()"/>
    </item>
  </xsl:template>

</xsl:stylesheet>

produces this output:
<collection type="GCTVepisodes" items="101" version="1.6.1">
   <information>
      <maxId>101</maxId>
   </information>
   <item id="1" name="some name" series="Alpha" season="1" episode="1">
      <synopsis>Blah blah blah...</synopsis>
    ...
  </item>
   <item id="2" name="some name" series="Alpha" season="2" episode="1">
      <synopsis>Blah blah blah...</synopsis>
    ...
  </item>
   <item id="3" name="The Vice President Doesn't Say Anything about the Possibility of      Him Being the Main Character" series="Baccano" season="1" episode="1">
      <synopsis>It's 1931 and...</synopsis>
    ...
  </item>
   <item id="4" name="The Vice President Doesn't Say Anything about the Possibility of      Him Being the Main Character" series="Baccano" season="1" episode="2">
      <synopsis>Blah blah blah...</synopsis>
    ...
  </item>
</collection>

with the input from therealmarv's answer it produces:
<collection type="GCTVepisodes" items="5" version="1.6.1">
   <information>
      <maxId>5</maxId>
   </information>
   <item id="1" name="The Vice President Doesn't Say Anything about the Possibility of      Him Being the Main Character" series="Baccano" season="1" episode="1"/>
   <item id="2" name="blabla2" series="Baccano" season="1" episode="2"/>
   <item id="3" name="abc" series="Baccano" season="2" episode="1"/>
   <item id="4" name="first of c" series="c" season="1" episode="1"/>
   <item id="5" name="blabla" series="c" season="1" episode="2"/>
</collection>


text:
Q: Positioning footer at the bottom of the page PLEASE help me to make this footer appear at the bottom of the page without "external" CSS
CSS
 #exefixedfooterdiv {
  background-color: yellow;
  overflow:none;
  width:100%;
  height:80px;
  position:fixed;
  bottom:0%;
  left:0%;}

HTML

A: you can write the inline CSS like mentioned below code :-

DEMO

A: Write in-line styles.

or according to your styles:

Demo here

A: You can describe the styling inside the div:

A: Like this
DEMO
CSS
*{
    margin:0;
    padding:0;
}
#exefixedfooterdiv {background-color: yellow;
 overflow:none; width:100%; height:80px; position:fixed; bottom:0;
 }

HTML

A: you have to add z-index for position:fixed elements :
#exefixedfooterdiv {
   background-color: yellow;
   overflow:none;
   width:100%;
   height:80px;
   position:fixed;
   bottom:0;
   left:0;
   z-index: 999;
}