text:
Q: Как задать класс элементу списка при клике? Есть такой компонент, который отвечает за динамическое отображение списка. Как при клике задать активный класс элементу, по которому кликнули. У меня пока получается, что все
 получают данный класс.

<template>

        id-{{ itemProxy.id }}. host: {{itemProxy.host}}

</template>

A:

new Vue({
  el: '#app',
  name: "listProxyTypeItem",
  data () {
    return {
      proxyCountry: [{id: 1, host: 'host 1'}, {id: 2, host: 'host 2'}, {id: 3, host: 'host 3'}, {id: 4, host: 'host 4'}, {id: 5, host: 'host 5'}]
    };
  },
  methods: {
    viewCurrentProxy(id, e) {
  var options = document.querySelectorAll("li");
  options.forEach(function(o){
   o.className = "";
  });
  e.target.className = e.target.className =="active"?"":"active";
      // this.$store.dispatch("setProxyInfo", itemProxy.id);
    }
  }

})
.active {
  color: green;
}

        id-{{ itemProxy.id }}. host: {{itemProxy.host}}

A: Вы использовали одну переменную на все элементы. У каждого элемента должно быть свое isActive, которое можно легко изменить при клике. В viewCurrentProxy передаете itemProxy(это объект, он передается по ссылке, то есть в параметре у нас точно такой же объект что и отображается) и меняете лично его свойство isActive.

new Vue({
  el: '#app',
  name: "listProxyTypeItem",
  data () {
    return {
      proxyCountry: [{id: 1, host: 'host 1', isActive: false }, {id: 2, host: 'host 2', isActive: false }, {id: 3, host: 'host 3', isActive: false }, {id: 4, host: 'host 4', isActive: false }, {id: 5, host: 'host 5', isActive: false }]
    };
  },
  methods: {
    viewCurrentProxy (itemProxy) {
      // две строчки ниже если надо чтобы активным был максимум 1 элемент
      // const active = this.proxyCountry.find(i => i.isActive)
      // active && (active.isActive = false)

      itemProxy.isActive = !itemProxy.isActive
      // this.$store.dispatch("setProxyInfo", itemProxy.id);
    }
  }
})
.active {
  color: blue;
}

      id-{{ itemProxy.id }}. host: {{itemProxy.host}}

Также обратите внимание, если нужно использовать класс не зависящий от пременной data, который нужен по умолчанию, то не нужно писать два раза class как в Вашем вопросе, нужно вот так: :class="{active: itemProxy.isActive, 'list-group-item': true}"

A: Не обратил внимание что данные у вас из хранилища. У Вас же isActive не нужно сохранять в бд?
Если Вам надо менять isActive во всем хранилище, то можно сделать так: использовать computed где Вы указали getter и менять состояние state который возвращает этот геттер(то есть у Вас proxyCountry должен возвращать модифицированную переменную из state, эту переменную и надо менять). По идее Ваш dispatch("setProxyInfo", itemProxy.id) и должен менять isActive, не знаю что он у Вас делает. Вы можете переделать setProxyInfo чтобы он принимал id и объект данных которые изменились: dispatch("setProxyInfo", {id: itemProxy.id, changed: {itemProxy.isActive}}). Дальше в этом действии делаете поиск исходя из id, извлекаете нужный элемент, применяете измененные данные через мутацию. Последний шаг могу описать более подробно, но может Вам этот вариант и не нужен.
Есть еще более простой вариант, хранилище при этом не затрагивается, но isActive будет меняться для itemProxy, нужно на этапе created скопировать из геттера в data:
created () {
  this.proxyCountryData = this.proxyCountry
}

И заменить у Вас в коде proxyCountry на proxyCountryData
Если Вам достаточно просто переключать класс, то можете так и оставить.


text:
Q: Route is not calling rest webservice I have started a simple example using the fixture Adapter. When I navigate to my route /teams, I can see all Teams i have registered in my adapter.
Now I changed my code to register the Default restadapter:
Football.ApplicationAdapter = DS.RESTAdapter.reopen({
    host: "http://localhost:8080/MatchService.svc/json"
});

When I now navigate to my route /Teams, I can see no Errors, the site looks as it should, just without no Teams listed in the list.
Then I started to have a look at the Network-Traffic: No calls are being sent, nothing.
But: When I try to add a team (I havent implemented this Method in rest service yet), I can see that there is a call going to
    localhost:8080/MatchService.svc/json...
and offcourse, I get a 404.
But why dont I get a call against
    localhost:8080/MatchService.svc/json/teams
when I navigated to my Teams-route?
Here is my route:
Football.TeamsRoute = Ember.Route.extend({
  model: function() {
    return this.store.all('team');
  }
});

I changed it already from this.store.find .... to this.store.all... because after using the restadapter I got an "error while loading the route : undefined".
I also added the current ember.js -Version as reference from the ember site.
Thats the json which gets returned by the Server:
{"TeamsResult":[
    {"ID":1,"Name":"Deutschland"},
    {"ID":2,"Name":"Frankreich"}
]}

I also tried a a not wrapped json result from the WebService:
{[{"ID":1,"Name":"Deutschland"},{"ID":2,"Name":"Frankreich"}]}

A: all doesn't make a call to the server, it just returns all of the records already fetched client side.  you should use this.store.find('team')
Additionally you should define your adapter using extend:
Football.ApplicationAdapter = DS.RESTAdapter.extend({
    host: "http://localhost:8080/MatchService.svc/json"
});

reopen applies it to every instance created of the rest adapter, which may not be appropriate.
Here's a small example that shows the basic structure of your app:
Football = Ember.Application.create();

Football.Router.map(function() {
  this.resource('teams', {path:'/teams'});
});

Football.TeamsRoute = Ember.Route.extend({
  model: function() {
    return this.store.find('team');
  }
});

Football.ApplicationAdapter = DS.RESTAdapter.extend({
    host: "http://localhost:8080/MatchService.svc/json"
});

Football.Team = DS.Model.extend({
    name: DS.attr()
});

For convenience sake I mocked the call to http://localhost:8080/MatchService.svc/json/teams with what Ember Data is expecting as a response:
  {
    teams:[
      {
        id: 1,
        name: "Miami Heat"
      },
      {
        id: 2,
        name: "Seattle Seahawks"
      },
      {
        id: 3,
        name: "Texas Longhorns"
      }
     ]
  }

http://emberjs.jsbin.com/OxIDiVU/425/edit

redpajama_set_name: RedPajamaStackExchange


text:
Q: using row_number with no unique key I want to get the record number from my select data.
At present I am aware of something like this:
SELECT max(ROW_NUMBER() OVER(ORDER BY aUniqueField)) FROM aTable

But this assumes that aUniqueField is a unique field and that it is the order I am returning it in.  Unfortunately, this is not the case for me. I need a way to 'affix' a row number that is independent of the values of any fields in my select statement.
Is there a way to do this?
These are my 2 tables:

This is my SQL:
SELECT
    FeatureName,
    GF.[Enabled] AS [Enabled],
    GroupId
FROM
    Feature F
    JOIN GroupFeature GF ON GF.FeatureId = F.FeatureId
WHERE
    GroupId = 1
OR
    GroupId = 4
OR
    GroupId = 2
Order By
    Case GroupId
        When 1 Then 1
        When 4 Then 2
        When 2 Then 3

By popular request :) I attach more info. I really should have done this from the beginning.
Data output as it stands:
Feature1, true, 1
Feature2, true, 4
Feature3, true, 4
Feature4, true, 4
Feature5, true, 2

What I would like is:
1,Feature1, true, 1
2,Feature2, true, 4
3,Feature3, true, 4
4,Feature4, true, 4
5,Feature5, true, 2

I have found if I remove the Order By/When clause then using the many suggestions here it works. When I reinstate it I get something like this:
1,Feature1, true, 1
3,Feature2, true, 4
4,Feature3, true, 4
5,Feature4, true, 4
2,Feature5, true, 2

A: The ORDER BY in the windowing function doesn't need to be unique, and if it's not you will still get a unique ROW_NUMBER() for each row:
DECLARE @t TABLE (id int)

INSERT INTO @t
VALUES
    (1)
    ,(1)
    ,(1)
    ,(1)

SELECT ROW_NUMBER() OVER (ORDER BY id), id
FROM @t

Returns:
1   1
2   1
3   1
4   1

A: Not fully clear to me what you are looking for
Affix a row number that is independent of the values of any fields is odd and you have correct answers that you state are are not working
DECLARE @map table(mapIn int primary key, mapout int)
insert into @map values (1,1), (4,2), (2,3)
select * from @map
SELECT FeatureName, GF.[Enabled] AS [Enabled], GroupId,
       ROW_NUMBER() OVER(ORDER BY map.mapout, GF.GroupFeatureID) RowNum
  FROM Feature F
  JOIN GroupFeature GF
    ON GF.FeatureId = F.FeatureId
  join @map map
    on map.mapIn = GF.GroupId
 order by map.mapout, GF.GroupFeatureID

A: You can use
ROW_NUMBER() over (order by (Select 1))

to get an independent row number

A: You can use a NewID() to get the row number without reordering the data:
SELECT max(ROW_NUMBER() OVER(ORDER BY NewID())) FROM aTable


text:
Q: \newcommand for short notation for a \multicolumn Many times is handy to define \newcommand for short notation for \multicolumn. For this purposes I test two definition for such commands:
\newcommand\my[2]{\multicolumn{1}{#1}{#2}}
\newcommand\mx[2][c]{\multicolumn{1}{#1}{#2}}

Meanwhile first definition works fine, the second throw error:
! Misplaced \omit.
\multispan ->\omit
                   \@multispan
l.9 \mx{A}
                &   \mx[c|]{B}  \\

at testing with the following MWE:
\documentclass[margin=3mm]{standalone}
\newcommand\mx[2][c]{\multicolumn{1}{#1}{#2}}
\newcommand\my[2]{\multicolumn{1}{#1}{#2}}

\begin{document}
\begin{tabular}{|c|c|}
  \hline
\mx{A}      &   \mx[c|]{B}  \\
\my{c}{A}   &   \my{c|}{B}  \\
  \hline
\end{tabular}
\end{document}

Is there a way to fix definition for \mx?

A: \multicolumn works by inserting an \omit to ignore the table column template, and it works because at the start of a table cell TeX expands tokens (thus expanding \multicolumn) until it finds an unexpandable token or \omit.
The problem is that commands defined with LaTeX's \newcommand aren't expandable if they have an optional argument, so TeX doesn't find the \omit when it's looking for one. Later, when it does find \omit it's too late, and you get a Misplaced \omit error.
Using xparse's \NewExpandableDocumentCommand you can make a command that has an optional argument and is expandable:
\documentclass[margin=3mm]{standalone}
\usepackage{xparse}
\NewExpandableDocumentCommand\mx{O{c}m}
  {\multicolumn{1}{#1}{#2}}
\newcommand\my[2]{\multicolumn{1}{#1}{#2}}

\begin{document}
\begin{tabular}{|c|c|}
  \hline
\mx{A}      &   \mx[c|]{B}  \\
\my{c}{A}   &   \my{c|}{B}  \\
  \hline
\end{tabular}
\end{document}


text:
Q: Best practice making an AjaxRequest from domain A to domain B in ExtJs4 So I'm currently implementing a mobile app (Sencha Touch 2.3.1 + PhoneGap 3) that uses JSONP proxies to connect to a Java Jersey REST application so far so good (or kinda...) with that I can load my stores...
But what if let's say I don't want to load anything into a store I just want to call to myBusinessMethodFoo(param1, param2) what are my options in that case?
If it were a web application one option would be to make an Ajax request to my own back-end and then consume a service in another domain and then send data back to my front-end, but since I'm talking about a mobile app that's not an option ...
So, what is the best practice in this case?

A: JSONP technique http://es.wikipedia.org/wiki/JSONP
There is also a JSONP request in Ext (this worked)
    Ext.data.JsonP.request({
        url: "http://10.1.50.66:7001/Simulador/webresources/hello",
        callbackKey: 'callback1',
        params: {
        },
        success : function(response) {
            console.log("Spiffing, everything worked");
            // success property
            console.log(response.success);
            // result property
            console.log(response.result);
            console.log(response.msj);
         },
         failure: function(response) {
              console.log(response);
              Ext.Msg.alert('Error', 'Please try again.', Ext.emptyFn);
          }
    });

I'll have to compare thi approach to CORS.
best regards @code4jhon


text:
Q: Are there finitely-presented astral monoids? We say a semigroup $S$ is $k$-astral if there exists a finite set $F \subset S$ such that
whenever $s_1, s_2, ..., s_k \in S$ there exists $s \in S$ such that $\forall i: s_i \in sF$. Say $S$ is astral if it is $k$-astral
for all $k$.
I'm interested in general information about this definition: does it have an existing name, has it been studied, connections to other notions; you can also suggest a better name if you have one. Some concrete questions

Is there an infinite finitely-presented astral monoid/semigroup?

and (interpret as you wish)

Do infinite finitely-generated astral monoids/semigroups "occur in nature"?

I don't have a particular application, just curiosity, this seems like a very strange property so I'd like to know more about it. (This did arise from a research problem, but I already found another way around it.)
Some observations below.
Obviously every monoid is $1$-astral (pick $F = \{1_S\}$), and in general a semigroup is $1$-astral if and only if there is a finite set $F \subset S$
such that $SF = S$. If to every finite $F \subset S$ we associate the Cayley graph with nodes $S$ and directed edges $\{(s, sf) \;|\; f \in F\}$
(no connectedness assumption), then  by fixing $s_1$ and changing $s_2$, we see easily that if a semigroup is $k$-astral for $k \geq 2$ then the
in-degrees of all nodes in some Cayley graph are infinite.
A semigroup is $k$-astral if in its Cayley graph, every $k$-tuple of elements forms the
leaves of a (not necessarily induced) directed star graph (directed $K_{1,k}$): $s$ will be the center of the star and $s_i = sf_i$ for some choices $f_i \in F$.
Directly from the definition you only obtain this for possibly degenerate stars (that is, you may have $s = s_i$ for some $i$), but if $S$ is infinite and
$k \geq 2$, it is easy to show that if $F$ satisfies $k$-astrality then $F^2$ satisfies $k$-astrality with non-degenerate directed stars.
(The fact all tuples are the points of stars is why I call these astral, it was a nice and short name and didn't seem to be in use.)
If $S$ is a group, $2$-astrality would mean that you can find for any two elements $s_1, s_2$ some $s \in S$ such that $s_1$ and $s_2$
are at a uniformly bounded distance from $s$ in the path metric w.r.t. $F \cup F^{-1}$. This is clearly impossible unless $G$ is locally finite. Thus, no
infinite finitely-generated group is $k$-astral for any $k \geq 2$.
Finitely-generated astral monoids do exist. Let $A$ be a finite alphabet. Write $A^*$ for the free monoid over $A$ consisting of (possibly empty) words. Write $|w|$ for the length of a word. Say a set of words $C \in A^*$ has no overlaps if $uv, vw \in C$ implies $|v| = 0$ or $uv = vw$.

Lemma. Let $C \subset A^*$ have no overlaps and $\phi : C \to A^*$ satisfies $|\phi(w)| < |w|$ for all $w \in C$. Consider the monoid presentation
  $M_\phi = \langle A \;|\; \forall w \in C: \phi(w) \approx w \rangle$. If $a \in A$ and $a^* \cap C = \emptyset$ then $M_\phi$ is infinite.

Proof. The system of rewrite rules $uvw \rightarrow u\phi(v)w$ is locally confluent because $C$ has no overlaps. and terminating because the rule makes words shorter.
Newman's lemma says that it is confluent and that its repeated application puts elements in a unique normal form. Under the assumption on $C$, the normal form of
$a^n$ is $a^n$, so $M_\phi$ is infinite.

Proposition. There exists an infinite finitely-generated astral monoid.

Proof. Let $A = \{a,b,c,d\}$ and for each tuple $(w_1, ..., w_k) \in (A^*)^k$ pick (distinct) $n > \max_i |w_i|$, let $ab^nc^id \in C$ for all $1 \leq i \leq k$ and define $\phi(ab^nc^id) = w_i$ for all $1 \leq i \leq k$. By the previous lemma, $M_\phi$ is infinite, and it is clearly astral: given $k$, pick
$F = \{c^id \;|\; 1 \leq i \leq k\}$; then given $w_1, ..., w_k$ we have $\phi(ab^nc^id) = w_i$ for all $i$, so $m = ab^n$ satisfies $mF \supset \{w_1,...,w_k\}$.


text:
Q: Difference between HttpApplication.User (in Global.asax) and Controller.User (in an MVC Controller) We're using a third-party authentication mechanism (CAS, via the .NET CAS Client). As part of this, we need to extract some data about the logged in user.
We have achieved this by accessing the HttpApplication.User instance from Global.asax (a DotNetCasClient.Security.CasPrincipal in our scenario). However, we need it to work from a controller.
The problem is that from a controller we have access to Controller.User, the instance of which is a plain old System.Web.Security.RolePrincipal, which is not what we need.
So:

*

*Why are these instances not the same?

*Is it possible to get the HttpApplication.User from within a controller?

A: I know there has got to be a better way to do this -- but in the meantime, I would suggest using HttpContext.Current.Items["YourKey"] and then accessing the Context.Item in your controller.
See HttpContext.Items in MSDN for more information.

A: Have you tried to inherit from Controller and override OnAuthorization?
protected override void OnAuthorization(AuthorizationContext filterContext)
{
    filterContext.HttpContext.ApplicationInstance.User   // CasPrincipal ???
......


text:
Q: How to enable Auto Complete in PHPStorm for CakePHP templates How to enable Auto Complete in PHPStorm for CakePHP templates.
For example $this and its functions, Helpers ... etc in the *.ctp files

A: Just add a type hint comment on top of your view code:
<?php
/* @var $this \App\View\AppView */

For the records, in pre-namespaced CakePHP/2.x it used to be:
<?php
/* @var $this View */


text:
Q: Plot bar coordinates along a x axis with ggplot2 I have a dataframe such as
Seq start end
S1  20    30
S2  25    35
S3  40    45
S4  41    60
S5  20    60
S6  10    30

And I would like to create with ggplot a figure such as :

Where I plot each bar coordinates within the X axis.
There is no preference about the order of the bars within the y axis, but they need to not overlap.
Here is the dput dataframe if it can helps
structure(list(Seq = c("S1", "S2", "S3", "S4", "S5", "S6"), start = c(20L,
25L, 40L, 41L, 20L, 10L), end = c(30L, 35L, 45L, 60L, 60L, 30L
)), class = "data.frame", row.names = c(NA, -6L))

A: With geom_segment:
ggplot(data) + geom_segment(aes(x = start,
                                y = Seq,
                                xend = end,
                                yend = Seq),
                                size = 3)

A: Colored by sequences;
Sample code:
library(ggplot2)

ggplot(df, aes(y = seq, x = start, colour = seq)) +
  geom_segment(aes(yend = seq, xend = end), size = 3) +
  labs(x = "Position", y="", color="Sequences")+
  theme_minimal()

Plot:

Sample data:
df<-structure(list(seq = c("S1", "S2", "S3", "S4", "S5", "S6"), start = c(20L,
25L, 40L, 41L, 20L, 10L), end = c(30L, 35L, 45L, 60L, 60L, 30L
)), class = "data.frame", row.names = c(NA, -6L))


text:
Q: Why can not I access many telegram groups? And it shows "There is no Telegram account with the username you provided." error As an example, I know this account exists "https://t.me/everexio" but when I click view, it fails with "There is no Telegram account with the username you provided."
I have seen this issue many times and with different groups.
And I know that it is not only my problem.
Tying mobile app, desktop app, or web base program without success.
edit
A lot of global projects, companies and organizations are using this app to communicate with their audience, if this kind of restrictions exist then their group is not available everywhere and by using it as a main tool they won't be able to connect all of their community members.
So it is important for both parties to know clearly about this restrictions.

A: It's not your problem, it's all Iranians problem(At least). Telegram servers didn't allow Iranian Phone number to join this groups. You can join to this groups using a (not Iranian) virtual number while your VPN is turned on.

A: You maybe temporary banned this function of Telegram, check @SpamBot for your status and more information.
If @SpamBot say you are free, contact support team, them should have permission to help you.

Please contact in-app Support if you have more questions (Settings — Ask a question).
  Notice that we rely on volunteers support in Telegram
  (so please be nice).

A: Iranians cannot join telegram group with short link by their own phone number. We are banned from inside and restricted from outside. Hope Telegram team remove this restriction or at least explain why they did this to us.https://twitter.com/yoosofan/status/1001923754950381569. If you are in Iran you can test it by clicking on https://t.me/publictestgroup which is the official group of telegram represented in https://telegram.org/faq#q-what-makes-telegram-groups-cool.
If you have any doubt about this, you can easily get an mobile phone number from Iran (starting with 98 9) and create a telegram account on it. Then try to join groups like @PangeaBitnation, you will not able to join them. You cannot even find them by search on your telegram application.
I checked it by my own Irancell phone number (starting by 98 938).


text:
Q: httpuv fails to compile on Azure HDI cluster Context
I'm working on Rstudio Server on an HDI cluster to work faster on large datasets but i encountered a problem.
When i'm trying to install packages, i get this error (example with package sparklyr)
> install.packages("sparklyr", repos = "http://cran.us.r-project.org")
Warning in install.packages :
  unable to access index for repository https://mran.microsoft.com/snapshot/2017-03-15/src/contrib:
  Line starting '<head><title>Documen ...' is malformed!
Installing package into '/home/sshuser4/R/x86_64-pc-linux-gnu-library/3.3'
(as 'lib' is unspecified)
also installing the dependencies 'httpuv', 'jsonlite', 'shiny'

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0100  417k  100  417k    0     0  2838k      0 --:--:-- --:--:-- --:--:-- 2840k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0100 1071k  100 1071k    0     0  6323k      0 --:--:-- --:--:-- --:--:-- 6337k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0100 2276k  100 2276k    0     0  10.6M      0 --:--:-- --:--:-- --:--:-- 10.6M
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0 13 2637k   13  360k    0     0  2422k      0  0:00:01 --:--:--  0:00:01 2417k100 2637k  100 2637k    0     0  12.1M      0 --:--:-- --:--:-- --:--:-- 12.0M
* installing *source* package 'httpuv' ...
** package 'httpuv' successfully unpacked and MD5 sums checked
** libs
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I./libuv/include -I./http-parser -I./sha1 -I./base64 -DU_STATIC_IMPLEMENTATION -I"/home/sshuser4/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"      -c RcppExports.cpp -o RcppExports.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:141: recipe for target 'RcppExports.o' failed
make: [RcppExports.o] Error 127 (ignored)
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I./libuv/include -I./http-parser -I./sha1 -I./base64 -DU_STATIC_IMPLEMENTATION -I"/home/sshuser4/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"      -c filedatasource-unix.cpp -o filedatasource-unix.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:141: recipe for target 'filedatasource-unix.o' failed
make: [filedatasource-unix.o] Error 127 (ignored)
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I./libuv/include -I./http-parser -I./sha1 -I./base64 -DU_STATIC_IMPLEMENTATION -I"/home/sshuser4/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"      -c filedatasource-win.cpp -o filedatasource-win.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:141: recipe for target 'filedatasource-win.o' failed
make: [filedatasource-win.o] Error 127 (ignored)
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I./libuv/include -I./http-parser -I./sha1 -I./base64 -DU_STATIC_IMPLEMENTATION -I"/home/sshuser4/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"      -c http.cpp -o http.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:141: recipe for target 'http.o' failed
make: [http.o] Error 127 (ignored)
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I./libuv/include -I./http-parser -I./sha1 -I./base64 -DU_STATIC_IMPLEMENTATION -I"/home/sshuser4/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"      -c httpuv.cpp -o httpuv.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:141: recipe for target 'httpuv.o' failed
make: [httpuv.o] Error 127 (ignored)
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I./libuv/include -I./http-parser -I./sha1 -I./base64 -DU_STATIC_IMPLEMENTATION -I"/home/sshuser4/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"   -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c md5.c -o md5.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I./libuv/include -I./http-parser -I./sha1 -I./base64 -DU_STATIC_IMPLEMENTATION -I"/home/sshuser4/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"   -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c register.c -o register.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I./libuv/include -I./http-parser -I./sha1 -I./base64 -DU_STATIC_IMPLEMENTATION -I"/home/sshuser4/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"   -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c set_invalid_parameter.c -o set_invalid_parameter.o
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I./libuv/include -I./http-parser -I./sha1 -I./base64 -DU_STATIC_IMPLEMENTATION -I"/home/sshuser4/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"      -c uvutil.cpp -o uvutil.o
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:141: recipe for target 'uvutil.o' failed
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I./libuv/include -I./http-parser -I./sha1 -I./base64 -DU_STATIC_IMPLEMENTATION -I"/home/sshuser4/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"      -c websockets-base.cpp -o websockets-base.o
make: [uvutil.o] Error 127 (ignored)
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:141: recipe for target 'websockets-base.o' failed
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I./libuv/include -I./http-parser -I./sha1 -I./base64 -DU_STATIC_IMPLEMENTATION -I"/home/sshuser4/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"      -c websockets-hixie76.cpp -o websockets-hixie76.o
make: [websockets-base.o] Error 127 (ignored)
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:141: recipe for target 'websockets-hixie76.o' failed
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I./libuv/include -I./http-parser -I./sha1 -I./base64 -DU_STATIC_IMPLEMENTATION -I"/home/sshuser4/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"      -c websockets-hybi03.cpp -o websockets-hybi03.o
make: [websockets-hixie76.o] Error 127 (ignored)
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:141: recipe for target 'websockets-hybi03.o' failed
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I./libuv/include -I./http-parser -I./sha1 -I./base64 -DU_STATIC_IMPLEMENTATION -I"/home/sshuser4/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"      -c websockets-ietf.cpp -o websockets-ietf.o
make: [websockets-hybi03.o] Error 127 (ignored)
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:141: recipe for target 'websockets-ietf.o' failed
I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I./libuv/include -I./http-parser -I./sha1 -I./base64 -DU_STATIC_IMPLEMENTATION -I"/home/sshuser4/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"      -c websockets.cpp -o websockets.o
make: [websockets-ietf.o] Error 127 (ignored)
sh: I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
/usr/lib64/microsoft-r/3.3/lib64/R/etc/Makeconf:141: recipe for target 'websockets.o' failed
make --directory=libuv \
    CC="gcc -std=gnu99" CFLAGS="-DU_STATIC_IMPLEMENTATION -O2 -g  -fpic" AR="ar" RANLIB="ranlib" \
    HAVE_DTRACE=0 \
    libuv.a
make: [websockets.o] Error 127 (ignored)
make[1]: Entering directory '/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv'
mkdir -p src/unix
touch src/unix/.buildstamp
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/unix/async.c -o src/unix/async.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/unix/core.c -o src/unix/core.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/unix/dl.c -o src/unix/dl.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/unix/error.c -o src/unix/error.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/unix/fs.c -o src/unix/fs.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/unix/getaddrinfo.c -o src/unix/getaddrinfo.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/unix/loop.c -o src/unix/loop.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/unix/loop-watcher.c -o src/unix/loop-watcher.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/unix/pipe.c -o src/unix/pipe.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/unix/poll.c -o src/unix/poll.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/unix/process.c -o src/unix/process.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/unix/signal.c -o src/unix/signal.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/unix/stream.c -o src/unix/stream.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/unix/tcp.c -o src/unix/tcp.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/unix/thread.c -o src/unix/thread.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/unix/threadpool.c -o src/unix/threadpool.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/unix/timer.c -o src/unix/timer.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/unix/tty.c -o src/unix/tty.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/unix/udp.c -o src/unix/udp.o
mkdir -p src
touch src/.buildstamp
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/fs-poll.c -o src/fs-poll.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/uv-common.c -o src/uv-common.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/inet.c -o src/inet.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/version.c -o src/version.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/unix/linux-core.c -o src/unix/linux-core.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/unix/linux-inotify.c -o src/unix/linux-inotify.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/unix/linux-syscalls.c -o src/unix/linux-syscalls.o
gcc -std=gnu99 --std=c89 -pedantic -Wall -Wextra -Wno-unused-parameter -D_GNU_SOURCE -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/include/uv-private -I/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv/src -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c src/unix/proctitle.c -o src/unix/proctitle.o
ar rcs libuv.a src/unix/async.o src/unix/core.o src/unix/dl.o src/unix/error.o src/unix/fs.o src/unix/getaddrinfo.o src/unix/loop.o src/unix/loop-watcher.o src/unix/pipe.o src/unix/poll.o src/unix/process.o src/unix/signal.o src/unix/stream.o src/unix/tcp.o src/unix/thread.o src/unix/threadpool.o src/unix/timer.o src/unix/tty.o src/unix/udp.o src/fs-poll.o src/uv-common.o src/inet.o src/version.o src/unix/linux-core.o src/unix/linux-inotify.o src/unix/linux-syscalls.o src/unix/proctitle.o
make[1]: Leaving directory '/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/libuv'
make --directory=http-parser \
    CC="gcc -std=gnu99" CFLAGS="-DU_STATIC_IMPLEMENTATION -O2 -g  -fpic" AR="ar" RANLIB="ranlib" \
    http_parser.o
make[1]: Entering directory '/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/http-parser'
gcc -std=gnu99 -I. -DHTTP_PARSER_STRICT=0  -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -O3  -c http_parser.c
make[1]: Leaving directory '/tmp/RtmpPak08O/R.INSTALL692e63c7b08a/httpuv/src/http-parser'
(cd sha1 && gcc -std=gnu99 -DU_STATIC_IMPLEMENTATION -O2 -g  -fpic -c sha1.c -o sha1.o)
(cd base64 &&   -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -I./libuv/include -I./http-parser -I./sha1 -I./base64 -DU_STATIC_IMPLEMENTATION -I"/home/sshuser4/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"      -c base64.cpp -o base64.o)
sh: -I/usr/lib64/microsoft-r/3.3/lib64/R/include: No such file or directory
Makevars:47: recipe for target 'base64.o' failed
make: *** [base64.o] Error 127
ERROR: compilation failed for package 'httpuv'
* removing '/home/sshuser4/R/x86_64-pc-linux-gnu-library/3.3/httpuv'
Warning in install.packages :
  installation of package 'httpuv' had non-zero exit status
* installing *source* package 'jsonlite' ...
** package 'jsonlite' successfully unpacked and MD5 sums checked
** libs
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c base64.c -o base64.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c collapse_array.c -o collapse_array.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c collapse_object.c -o collapse_object.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c collapse_pretty.c -o collapse_pretty.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c escape_chars.c -o escape_chars.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c integer64_to_na.c -o integer64_to_na.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c is_datelist.c -o is_datelist.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c is_recordlist.c -o is_recordlist.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c is_scalarlist.c -o is_scalarlist.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c modp_numtoa.c -o modp_numtoa.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c null_to_na.c -o null_to_na.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c num_to_char.c -o num_to_char.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c parse.c -o parse.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c prettify.c -o prettify.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c push_parser.c -o push_parser.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c r-base64.c -o r-base64.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c register.c -o register.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c row_collapse.c -o row_collapse.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c transpose_list.c -o transpose_list.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c validate.c -o validate.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c yajl/yajl.c -o yajl/yajl.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c yajl/yajl_alloc.c -o yajl/yajl_alloc.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c yajl/yajl_buf.c -o yajl/yajl_buf.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c yajl/yajl_encode.c -o yajl/yajl_encode.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c yajl/yajl_gen.c -o yajl/yajl_gen.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c yajl/yajl_lex.c -o yajl/yajl_lex.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c yajl/yajl_parser.c -o yajl/yajl_parser.o
gcc -std=gnu99 -I/usr/lib64/microsoft-r/3.3/lib64/R/include -DNDEBUG -Iyajl/api -DU_STATIC_IMPLEMENTATION    -fpic  -DU_STATIC_IMPLEMENTATION -O2 -g  -c yajl/yajl_tree.c -o yajl/yajl_tree.o
ar rcs libstatyajl.a yajl/yajl.o yajl/yajl_alloc.o yajl/yajl_buf.o yajl/yajl_encode.o yajl/yajl_gen.o yajl/yajl_lex.o yajl/yajl_parser.o yajl/yajl_tree.o
gcc -std=gnu99 -shared -L/usr/lib64/microsoft-r/3.3/lib64/R/lib -o jsonlite.so base64.o collapse_array.o collapse_object.o collapse_pretty.o escape_chars.o integer64_to_na.o is_datelist.o is_recordlist.o is_scalarlist.o modp_numtoa.o null_to_na.o num_to_char.o parse.o prettify.o push_parser.o r-base64.o register.o row_collapse.o transpose_list.o validate.o -L. -lstatyajl -L/usr/lib64/microsoft-r/3.3/lib64/R/lib -lR
installing to /home/sshuser4/R/x86_64-pc-linux-gnu-library/3.3/jsonlite/libs
** R
** inst
** preparing package for lazy loading
Error in unloadNamespace(pkg_name) :
  namespace 'jsonlite' is imported by 'RevoScaleR', 'MicrosoftML', 'CompatibilityAPI' so cannot be unloaded
* removing '/home/sshuser4/R/x86_64-pc-linux-gnu-library/3.3/jsonlite'
Warning in install.packages :
  installation of package 'jsonlite' had non-zero exit status
ERROR: dependency 'httpuv' is not available for package 'shiny'
* removing '/home/sshuser4/R/x86_64-pc-linux-gnu-library/3.3/shiny'
Warning in install.packages :
  installation of package 'shiny' had non-zero exit status
ERROR: dependency 'shiny' is not available for package 'sparklyr'
* removing '/home/sshuser4/R/x86_64-pc-linux-gnu-library/3.3/sparklyr'
Warning in install.packages :
  installation of package 'sparklyr' had non-zero exit status

The downloaded source packages are in
    '/tmp/RtmpgVHekU/downloaded_packages'

I don't know why it takes so long and why it doesn't work.
To fix this problem, i have to first install curl and httr and then use devtools install.version and fine which version is available. For information, i'm working with Rstudio server 3.3 installed on an Azure HDI cluster.
Update
I'm able to install some packages but some are still failing to be installed. i got something like this sometimes:
In file included from /home/sshuser/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include/RcppCommon.h:70:0,
             from /home/sshuser/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include/Rcpp.h:27,
             from XlsxWorkBook.cpp:1:
/home/sshuser/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include/Rcpp/utils/tinyformat.h:136:0: warning: "TINYFORMAT_NO_VARIADIC_TEMPLATES" redefined
 #define TINYFORMAT_NO_VARIADIC_TEMPLATES
 ^
<command-line>:0:0: note: this is the location of the previous definition

Sometimes i get something like this:
ERROR: dependencies 'RJDBC', 'rJava' are not available for package 'RH2'
* removing '/home/sshuser/R/x86_64-pc-linux-gnu-library/3.3/RH2'


text:
Q: Register users by e-mail I want to use an email address instead of username to register and login my members. I've got the login part working using some of the code in this answer. Works fine but as expected wordpress still wants a username on the register page (custom, not the default).
This line of code registers the user: $user_signup = wp_insert_user( $user_data );, and when registering I get the following error:

Cannot create a user with an empty login name.

I'm guessing this can be solved by removing the appropriate filter, but I'm new to wordpress. What's the code to remove the username requirement?

A: This is a required field (http://codex.wordpress.org/Function_Reference/wp_create_user) and I think that more than one function in the core of Wordpress relies on that. So I would not recommend to code around it or alter any other WP core files as the next update could render all these changes back to the default values.


text:
Q: JQuery permission denied error in IE7 There are many question asked with this subject but no question is similar to this. Please do not mark as duplicate.
I am using JQuery-Steps for wizard.I am getting permission denied error for following JQuery selector code in IE7
<div id="wizards-p-1">
 <input>......
</div>

$("#wizards-p-"+currentIndex+" input[type='text'], #wizards-p-"+currentIndex+" input[type='checkbox']").each(function(){
                var input = $(this).get(0);
                if(input.validators){
                    validators = validators.concat(input.validators);
                }
            });

It is working fine in all the browser including IE8.
JQuery version is 1.8.3.
Could anyone suggest what is the issue here?

A: There is a large number of reasons you can get a "permission denied". Your post does not provide enough information to narrow down the cause therefore I would recommend you to take a look at the JQUERY list of issue to see if any is the one you are experiencing:
http://bugs.jquery.com/search?q=PERMISSION+DENIED+ie7&noquickjump=1&ticket=on


text:
Q: Problems with the DbMigrator class and Entity Framework 5.0 update Hi I'm working in a MVC3 application and with Code First Migrations to manage my DB. Yesterday I just update my EF library to the 5.0 version. I used to ran in my Global.asax file, specifically in the method Application_Start(), so when the application starts the update-database command will run. It was something like this:
var configuration = new Configuration();
var migrator = new DbMigrator(configuration);
migrator.Update();

But since the update I keep getting this exception, at the Migrator.Update() line.

I don't have any column with that name. I can understand this error. I check the Entity Framework 5.0 details and I didn't get any clue. And by the way If I run the Update-Database with the power-shell command prompt I don't get any error, my db updates correctly. Thanxs.

A: Looks like your site doesn't use EF 5 because CreatedOn column was part of __MigrationHistory table (in system tables) in 4.3.1 but was removed in EF 5.


text:
Q: kubernetes flexvolume plugin for cifs 2.4 / coreos
I've instructed the kubelet to read plugins from a writable dir ( in coreos the default destination is read-only ):
--volume-plugin-dir=/etc/kubelet-plugins/volumeplugins

I've placed this handmade flexplugin
https://gist.github.com/fvigotti/65dc24b7f93074f1c59f81d0e3f31d04
 (also
contain pod for usage sample )
here:
/etc/kubelet-plugins/volumeplugins/fv~cifs/cifs

reloaded the kubelet ( done various tests, also restarted the node multiple times )
during kubelet bootstrap no message gets logged about loaded/errors-on volume plugins ( it is normal? )
anyway, when i create a pod that use the plugin I get this message logged :
volumes.go:132] Could not create volume builder for pod 98377409-3e1a-11e6-bb39-fa163e111b06: can't use volume plugins for test: no volume plugin matched

I don't know if the plugin is missing or the logged message isn't enought descriptive for the problem, also the documentation for the plugin is scarce,
I suppose was an easy integration but at this point I don't know where to look to debug..
Thank you,
Francesco

A: this can help someone ,
(there was serious bug in my first attempt, the biggest blocking probably was wrong args parsing for the mount command.. )
I've made a version of the plugin that works on kubernetes cluster 1.6.x
https://github.com/fvigotti/cifs_k8s_plugin
have a nice day,
Francesco


text:
Q: Salvar uma imagem colada em planilha Excel por meio do VBA O código abaixo copia uma faixa de células de uma planilha que é colada como imagem em outra planilha, mas não encontrei uma forma de salvá-la como um arquivo de imagem em uma pasta, ou mesmo selecioná-la para trabalhar com esta imagem pelo VBA.
Range("D19:H25").Select

Application.CutCopyMode = False

Selection.CopyPicture Appearance:=xlScreen, Format:=xlBitmap

Sheets("Imagem").Activate

Range("A1").Select

ActiveSheet.Paste

'a instrução     Selection.CopyPicture Appearance:=xlScreen, Format:=xlBitmap
'coloca a imagem na área de transferência (imagem originada de uma faixa de células selecionadas)

'... como salvar esta imagem em uma pasta a partir da área de transferência?

'... ou como salvá-la se já estiver colada na planilha?

'... como colocar esta imagem em um objeto image, tem como?

Se esta imagem colada (que está na área de transferência) pudesse ser salva em uma pasta, mais tarde ela poderia ser lida para um objeto image do VBA.
Caso haja como pegar esta imagem da área de transferência e colocar direto em um objeto image, também resolveria, mas de qualquer forma é importante poder salvar esta imagem.
Tem como fazer isso?

A: Uma possível solução é a seguinte:
1 - Use o objeto Shape para acessar diretamente o objeto da imagem. O nome da imagem (no meu exemplo "Imagem 1") é o nome que você pode dar diretamente no Excel, no campo existente próximo à barra de ferramentas:

BTW, a imagem minimalista de exemplo que eu usei foi tirada
  daqui. :)

2 - Então, copie o objeto para a área de transferência. Você pode fazer da forma como já fez, mas usando o objeto pelo nome é mais fácil porque independe do posicionamento dele na planilha.
3 - Finalmente, adicione um objeto de gráfico temporário no Excel, e cole a imagem nele. Esse "truque" é necessário para você utilizar o recurso de salvar como imagem dos objetos gráficos. (Very clever, Watson!). A fonte original dessa parte é essa resposta do SOen.
Pronto! A sua imagem foi gravada no disco no arquivo solicitado. Eis um exemplo de código:
Dim oImage As Shape
Dim oSheet As Worksheet
Dim oTemp As ChartObject
Dim oChartArea As Chart

Set oSheet = ActiveSheet
Set oImage = oSheet.Shapes.Item("Imagem 1")

oImage.CopyPicture

Set oTemp = oSheet.ChartObjects.Add(0, 0, oImage.Width, oImage.Height)
Set oChartArea = oTemp.Chart
oTemp.Activate
With oChartArea
    .ChartArea.Select
    .Paste
    .Export ("C:\Temp\Teste.jpg")
End With
oTemp.Delete


text:
Q: Fastest/safest file finding/parsing? On c:, I have tens of thousands of *.foobar files. They're in all sorts of places (i.e. subdirs). These files are roughly 1 - 64 kb in size, and plaintext.
I have a class Foobar(string fileContents) that strongly types these .foobar files.
My challenge to is get a list of all the *.foobar files on c:, represented as an array of Foobar objects. What's the quickest way to do this?
I'm interested to find out if there's a better way (undoubtedly) than my first approach, which follows, and if this approach of mine has any potential problems (e.g. I/O concurrency issues throwing exceptions?):
var files = Directory.EnumerateFiles
                (rootPath, "*.foobar", SearchOption.AllDirectories);

Foobar[] foobars =
(
    from filePath in files.AsParallel()
    let contents = File.ReadAllText(filePath)
    select new Foobar(contents)
)
.ToArray();

A: Because permission errors (or other errors) can apparently stop the enumeration dead in its tracks, you may want to implement your own enumerator something like this:
class SafeFileEnumerator : IEnumerable<string>
{
  private string root;
  private string pattern;
  private IList<Exception> errors;
  public SafeFileEnumerator(string root, string pattern)
  {
     this.root = root;
     this.pattern = pattern;
     this.errors = new List<Exception>();
  }

  public SafeFileEnumerator(string root, string pattern, IList<Exception> errors)
  {
     this.root = root;
     this.pattern = pattern;
     this.errors = errors;
  }

  public Exception[] Errors()
  {
     return errors.ToArray();
  }
  class Enumerator : IEnumerator<string>
  {
     IEnumerator<string> fileEnumerator;
     IEnumerator<string> directoryEnumerator;
     string root;
     string pattern;
     IList<Exception> errors;

     public Enumerator(string root, string pattern, IList<Exception> errors)
     {
        this.root = root;
        this.pattern = pattern;
        this.errors = errors;
        fileEnumerator = System.IO.Directory.EnumerateFiles(root, pattern).GetEnumerator();
        directoryEnumerator = System.IO.Directory.EnumerateDirectories(root).GetEnumerator();
     }
     public string Current
     {
        get
        {
           if (fileEnumerator == null) throw new ObjectDisposedException("FileEnumerator");
           return fileEnumerator.Current;
        }
     }

     public void Dispose()
     {
        if (fileEnumerator != null)
           fileEnumerator.Dispose();
        fileEnumerator = null;
        if (directoryEnumerator != null)
           directoryEnumerator.Dispose();
        directoryEnumerator = null;
     }

     object System.Collections.IEnumerator.Current
     {
        get { return Current; }
     }

     public bool MoveNext()
     {
        if ((fileEnumerator != null) && (fileEnumerator.MoveNext()))
           return true;
        while ((directoryEnumerator != null) && (directoryEnumerator.MoveNext()))
        {
           if (fileEnumerator != null)
              fileEnumerator.Dispose();
           try
           {
              fileEnumerator = new SafeFileEnumerator(directoryEnumerator.Current, pattern, errors).GetEnumerator();
           }
           catch (Exception ex)
           {
              errors.Add(ex);
              continue;
           }
           if (fileEnumerator.MoveNext())
              return true;
        }
        if (fileEnumerator != null)
           fileEnumerator.Dispose();
        fileEnumerator = null;
        if (directoryEnumerator != null)
           directoryEnumerator.Dispose();
        directoryEnumerator = null;
        return false;
     }

     public void Reset()
     {
        Dispose();
        fileEnumerator = System.IO.Directory.EnumerateFiles(root, pattern).GetEnumerator();
        directoryEnumerator = System.IO.Directory.EnumerateDirectories(root).GetEnumerator();
     }
  }
  public IEnumerator<string> GetEnumerator()
  {
     return new Enumerator(root, pattern, errors);
  }

  System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
  {
     return GetEnumerator();
  }
}

A: Great work, here is an extension to your code to return FileSystemInfo's instead of string paths.
Some minor changes in line, like adding in SearchOption (like the native .net one has), and error trapping on initial directory get in case the root folder is access denied.  Thanks again for the original posting!
public class SafeFileEnumerator : IEnumerable<FileSystemInfo>
{
    /// <summary>
    /// Starting directory to search from
    /// </summary>
    private DirectoryInfo root;

    /// <summary>
    /// Filter pattern
    /// </summary>
    private string pattern;

    /// <summary>
    /// Indicator if search is recursive or not
    /// </summary>
    private SearchOption searchOption;

    /// <summary>
    /// Any errors captured
    /// </summary>
    private IList<Exception> errors;

    /// <summary>
    /// Create an Enumerator that will scan the file system, skipping directories where access is denied
    /// </summary>
    /// <param name="root">Starting Directory</param>
    /// <param name="pattern">Filter pattern</param>
    /// <param name="option">Recursive or not</param>
    public SafeFileEnumerator(string root, string pattern, SearchOption option)
        : this(new DirectoryInfo(root), pattern, option)
    {}

    /// <summary>
    /// Create an Enumerator that will scan the file system, skipping directories where access is denied
    /// </summary>
    /// <param name="root">Starting Directory</param>
    /// <param name="pattern">Filter pattern</param>
    /// <param name="option">Recursive or not</param>
    public SafeFileEnumerator(DirectoryInfo root, string pattern, SearchOption option)
        : this(root, pattern, option, new List<Exception>())
    {}

    // Internal constructor for recursive itterator
    private SafeFileEnumerator(DirectoryInfo root, string pattern, SearchOption option, IList<Exception> errors)
    {
        if (root == null || !root.Exists)
        {
            throw new ArgumentException("Root directory is not set or does not exist.", "root");
        }
        this.root = root;
        this.searchOption = option;
        this.pattern = String.IsNullOrEmpty(pattern)
            ? "*"
            : pattern;
        this.errors = errors;
    }

    /// <summary>
    /// Errors captured while parsing the file system.
    /// </summary>
    public Exception[] Errors
    {
        get
        {
            return errors.ToArray();
        }
    }

    /// <summary>
    /// Helper class to enumerate the file system.
    /// </summary>
    private class Enumerator : IEnumerator<FileSystemInfo>
    {
        // Core enumerator that we will be walking though
        private IEnumerator<FileSystemInfo> fileEnumerator;
        // Directory enumerator to capture access errors
        private IEnumerator<DirectoryInfo> directoryEnumerator;

        private DirectoryInfo root;
        private string pattern;
        private SearchOption searchOption;
        private IList<Exception> errors;

        public Enumerator(DirectoryInfo root, string pattern, SearchOption option, IList<Exception> errors)
        {
            this.root = root;
            this.pattern = pattern;
            this.errors = errors;
            this.searchOption = option;

            Reset();
        }

        /// <summary>
        /// Current item the primary itterator is pointing to
        /// </summary>
        public FileSystemInfo Current
        {
            get
            {
                //if (fileEnumerator == null) throw new ObjectDisposedException("FileEnumerator");
                return fileEnumerator.Current as FileSystemInfo;
            }
        }

        object System.Collections.IEnumerator.Current
        {
            get { return Current; }
        }

        public void Dispose()
        {
            Dispose(true, true);
        }

        private void Dispose(bool file, bool dir)
        {
            if (file)
            {
                if (fileEnumerator != null)
                    fileEnumerator.Dispose();

                fileEnumerator = null;
            }

            if (dir)
            {
                if (directoryEnumerator != null)
                    directoryEnumerator.Dispose();

                directoryEnumerator = null;
            }
        }

        public bool MoveNext()
        {
            // Enumerate the files in the current folder
            if ((fileEnumerator != null) && (fileEnumerator.MoveNext()))
                return true;

            // Don't go recursive...
            if (searchOption == SearchOption.TopDirectoryOnly) { return false; }

            while ((directoryEnumerator != null) && (directoryEnumerator.MoveNext()))
            {
                Dispose(true, false);

                try
                {
                    fileEnumerator = new SafeFileEnumerator(
                        directoryEnumerator.Current,
                        pattern,
                        SearchOption.AllDirectories,
                        errors
                        ).GetEnumerator();
                }
                catch (Exception ex)
                {
                    errors.Add(ex);
                    continue;
                }

                // Open up the current folder file enumerator
                if (fileEnumerator.MoveNext())
                    return true;
            }

            Dispose(true, true);

            return false;
        }

        public void Reset()
        {
            Dispose(true,true);

            // Safely get the enumerators, including in the case where the root is not accessable
            if (root != null)
            {
                try
                {
                    fileEnumerator = root.GetFileSystemInfos(pattern, SearchOption.TopDirectoryOnly).AsEnumerable<FileSystemInfo>().GetEnumerator();
                }
                catch (Exception ex)
                {
                    errors.Add(ex);
                    fileEnumerator = null;
                }

                try
                {
                    directoryEnumerator = root.GetDirectories(pattern, SearchOption.TopDirectoryOnly).AsEnumerable<DirectoryInfo>().GetEnumerator();
                }
                catch (Exception ex)
                {
                    errors.Add(ex);
                    directoryEnumerator = null;
                }
            }
        }
    }
    public IEnumerator<FileSystemInfo> GetEnumerator()
    {
        return new Enumerator(root, pattern, searchOption, errors);
    }

    System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
    {
        return GetEnumerator();
    }
}


text:
Q: Slick slider breaks after tab change and slider nav doesn't sync I'm using multiple slick sliders inside a Bootstrap 4 tab navigation.
After a great answer from Rory McCrossan (https://stackoverflow.com/a/48400449/1788961), the slider works well inside an hidden container.
But I need it to work in combination with two tab content areas.
If I'm using two content areas, the slider breaks again. I guess it has something to do with the line .first().trigger('shown.bs.tab'); and the argument .first?!
The next problem is, that the sync between the sliders doesn't work.
In the first example, the sync works fine. In the second example with two content areas it doesn't work. Is it because of the Divs around the two sliders or is it because of the selection of the active tabs/sliders?
Strangely, the sync works on my site (not JSFiddle) if I navigate with the dots in the first slider of the second example. If I use the arrows of the second slider, it doesn't work?!
Is there any way to solve the problem? I tried a lot of stuff but couldn't get it to work.
Here is the example on JSFiddle: http://jsfiddle.net/vv4j3uz2/9/
Here is my code:
HTML:

   Working sync between the two sliders

test 1

test 2

test 3

test 4

  Sync between sliders not working

home

profile

contact

home 1

home 2

home 3

home 4

profile 1

profile 2

profile 3

profile 4

profile 5

contact 1

contact 2

contact 3

JS:
$('a[data-toggle="tab"]').on('shown.bs.tab', function() {
    $($(this).attr('href')).find('.slider').slick({
        prevArrow: '<button type="button" class="slick-prev"></button>',
        nextArrow: '<button type="button" class="slick-next"></button>',
  })
}).first().trigger('shown.bs.tab');

$('.slider-test-images').slick({
    asNavFor: '.slider-test',
    dots: true,
    arrows: false,
});

    $('.slider-test').slick({
        asNavFor: '.slider-test-images',
    });

$('.slider-home-images').slick({
    asNavFor: '.slider-home',
    dots: true,
    arrows: false,
});

    $('.slider-home').slick({
        asNavFor: '.slider-home-images',
    });

$('.slider-profile-images').slick({
    asNavFor: '.slider-profile',
    dots: true,
    arrows: false,
});

    $('.slider-profile').slick({
        asNavFor: '.slider-profile-images',
    });

$('.slider-contact-images').slick({
    asNavFor: '.slider-contact',
    dots: true,
    arrows: false,
});

    $('.slider-contact').slick({
        asNavFor: '.slider-contact-images',
    });


text:
Q: MPXJ in .NET converting java Date to .NET DateTime I'm using the MPXJ library in .NET for parsing MS Project (MPP) files, and it's working great.  The one issue I'm having is trying to translate the task Start and Finish date into .NET DateTime to use with my data models.
I am going through all the tasks and calling task.getFinish() and task.getStart() that both return javva.util.Date objects.
When I use task.getFinish().getYear(), task.getFinish().getMonth(), etc. to build up a new DateTime object it warns me that they are obsolete.
What is the best way to get the start and finish dates from MPXJ into a .NET DateTime object?
Thanks.

A: I know I'm over two years late on this one, but in case it's useful to you or anyone else reading this thread, here's a simple little extension method I threw together (in C#) to handle this conversion:
internal static DateTime ToDateTime(this java.util.Date javaDate)
{
    var cal = java.util.Calendar.getInstance();
    cal.setTime(javaDate);

    // note that the Month component of java.util.Date
    // from 0-11 (i.e. Jan == 0)
    return new DateTime(cal.get(java.util.Calendar.YEAR),
                        cal.get(java.util.Calendar.MONTH) + 1,
                        cal.get(java.util.Calendar.DAY_OF_MONTH),
                        cal.get(java.util.Calendar.HOUR_OF_DAY),
                        cal.get(java.util.Calendar.MINUTE),
                        cal.get(java.util.Calendar.SECOND));
}

A: I am also using MPXJ and had the same issue. There are a couple of ways to deal with this. I'll outline two ways below (I have used both and am not sure which is better):
Dim cal As New GregorianCalendar()
cal.setTime(task.getStart())

'have to add one to month value because it is 0 - 11
Dim startDate as New Date(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH) + 1, cal.get(Calendar.DAY_OF_MONTH), cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE), cal.get(Calendar.SECOND))

This is the way that they want you to do it when they say that .getYear is obsolete.
The other way I've done it is to convert the Java date to a string and then use Date.Parse to get it into a .NET Date variable. I use a nullable type because the Java Date could be null.
Dim d as java.util.Date = t.getStart()
Dim startDate As New Nullable(Of Date)

If d IsNot Nothing Then
    Dim dateString As String = New java.text.SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(d)

    startDate  = Date.Parse(dateString)
End If

You can use a different date format string if you don't need all the parts, or if you want to include timezone info. Here's a list of the format string choices for Java.
Update
Another, perhaps more performant way of doing this (than string parsing) is the following:
Dim startDate = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc).AddMilliseconds(d.getTime()).ToLocalTime();


text:
Q: extended events blocked process report missing from sys.dm_xe_objects Trying to create SERVER EVENT SESSION to capture blocked_process_report & xml_deadlock_report events to a file for later analysis with the following statement;
CREATE EVENT SESSION [blocked_process] ON SERVER
ADD EVENT sqlserver.blocked_process_report(
    ACTION(sqlserver.client_app_name,
           sqlserver.client_hostname,
           sqlserver.database_name)) ,
ADD EVENT sqlserver.xml_deadlock_report (
    ACTION(sqlserver.client_app_name,
           sqlserver.client_hostname,
           sqlserver.database_name))
ADD TARGET package0.asynchronous_file_target
(SET filename = N'c:\temp\XEventSessions\blocked_process.xel',
     metadatafile = N'c:\temp\XEventSessions\blocked_process.xem',
     max_file_size=(65536),
     max_rollover_files=5)
WITH (MAX_DISPATCH_LATENCY = 5SECONDS)

Receive the following error try to execute this statement;

Msg 25623, Level 16, State 1, Line 1
  The event name, "sqlserver.blocked_process_report", is invalid, or the object could not be found**

A query in name order of sys.dm_xe_objects
SELECT * FROM sys.dm_xe_objects
order by name;
Goes from binary_data to boolean, no "blocked_process_report" found, hence the error.
Current version: Microsoft SQL Server 2008 R2 (SP2) - 10.50.4000.0 (X64)   Jun 28 2012 08:36:30   Copyright (c) Microsoft Corporation  Express Edition (64-bit) on Windows NT 6.1  (Build 7601: Service Pack 1)
I see other references to questions regarding this missing event but no responses.
What am I doing wrong?

A: Unfortunately, the blocked_process_report was added as a traceable extended event in SQL Server 2012.
Since the extended events wizard(s) weren't added until SQL Server 2012, I would use the following query to view the available extended events:
SELECT *
FROM sys.dm_xe_objects AS Events
WHERE Events.object_type = 'event' AND Events.name LIKE '%blocked%'
ORDER BY Events.name;

Or even better read this EXCEPTIONALLY good article by Jonathan Kehayias.

A: Spent good chunk of time on the same issue and then finally managed to fix it. This error can occur due to two reasons:

*

*Trying to create an extended event session on a SQL Server version that does not support that event i.e extended event add_xact_outcome exists in SQL Server 2019 but not in SQL Server 2012 so trying to create extended with add_xact_outcome in SQL Server 2012 will return this error.

*This is tricky one. There is column in sys.dm_xe_objects called capabilities_desc and extended event session can ONLY be created for non-private extended events. Trying to create an extended event session for a private event will return this error too.
So, we need to add another WHERE condition:
SELECT *
FROM sys.dm_xe_objects AS Events
WHERE
Events.object_type = 'event'
AND
Events.name LIKE '%blocked%'
AND
(Events.capabilities_desc <> 'private' OR Events.capabilities_desc is null)
ORDER BY Events.name;

Yes, Events.capabilities_desc is null is special case to handle null values as these values are not handled under 'private'.
Importantly, if we try to create an extended event session via Wizard then list available of extended events does not show the private extended events for the same reason.
Private extended events in SQL Server 2019, note events starting with vdw_
Now if we search, say, starting with vdw_ and none of the event is shown
Searching extended events while creating extended event via wizard
Found the same on Microsoft documentation:
sys.dm_xe_objects (Transact-SQL)

Private. The only object available for internal use, and that cannot
be accessed via the CREATE/ALTER EVENT SESSION DDL. Audit events and
targets fall into this category in addition to a small number of
objects used internally.


text:
Q: Como simular um resultado baseado em uma dada probabilidade (ex: 8%) em javascript Estou montando um simulador de resultado de jogo de futebol a partir de algumas variáveis.
A lógica é a seguinte:
A cada minuto ambos times tem uma probabilidade de fazer um gol. Essa probabilidade é calculada usando algumas variáveis como nota dos jogadores, tática usada, dentre outros.
Supondo que o Time A tem 8% de probabilidade de fazer um gol a cada minuto, como posso fazer para calcular essa probabilidade e retornar valores 1 para gol ou 0 para nenhum gol?
Algo assim:

//VARIÁVEIS
var gol = 0;
var probabilidade = 0.8;
var tempo = 0;
var fimdejogo = 45;

//FUNÇÃO DE TEMPO E GOL
function TempoDeJogo() {
  while (tempo < fimdejogo) {
    tempo++;
    //FUNÇÃO DA PROBABILIDADE
    if (retorno_da_probabilidade == 1) {
      gol++;
      console.log(tempo, gol);
    }
  }
  console.log("Fim de Jogo");
}
TempoDeJogo();


text:
Q: Circe failed to decode JSON containing list I have a situation
  abstract class Abc
  final case class JsonRecord(payload: Json) extends Abc
  final case class Record(subj: String, record: JsonRecord)

I have API endpoint that takes in
final case class Bulk(records: Seq[Record])

Circe is not able to decode this when I send a json like
    {"records": [
      {
"subj": "dsf",
        "record": {
          "payload": {
            "value": "xxx",
            "age": 3
          }
        }
      }
    ]
    }

It complains like this
DecodingFailure(Attempt to decode value on failed cursor, List(DownField(payload)))


text:
Q: How to use field calculator in QGIS to calculate new coordinates, and use that new columm to geolocate a layer's points In a separate question, at How to shift a CRS by an observed offset,
I asked about shifting a CRS to align the problems aligning data points with a satellite image obtained from OpenLayers.  (They were off by 20 feet, more or less, way larger than the data collection accuracy for the points)
One suggestion was to use the field calculator for the layer.   The layer has three original columns: text, lat and long.
I used that calculator to create a (virtual) field, making the adjustment for the observed offset of .0000125 longitude
Having done that, how do I force QGIS to use the new column to geolocate the points, in lieu of the original longitude column?
Is the only way to overwrite the original data column, making sure to preserve the original data somewhere?   I assumed (hoped) that there was some method that says to QGIS: "Use -this- column as a coordinate" -- does it not exist, or am I missing something...?

A: Since you mentioned in the prev question that your input file is a Shapefile, it should be noted that QGIS is not using the data in the attribute table at all! Instead it reads the coordinates from the .shp binary file part. You can use affine transformation to move the geometries.
https://gis.stackexchange.com/questions/tagged/affine-transformation+qgis


text:
Q: Make Rhythmbox access a subfolder of MTP-drive I am trying to sync my Rhythmbox library to an Android phone. Since the mass storage mode has been removed from Android, im fiddling around with MTP. Unlike others, it is no problem for me to access the files on the phone using the file browser. The only problem seems to be to tell Rhythmbox where to put the data. Many hints suggest putting a .is_audio_player-file into the root directory of the drive; however, that directory is not writable. The directory structure, as presented to Ubuntu, is
mtp://[usb:...]/
    Phone
          ...
    Card
          Music
          ...

but only the subdirectories Phone and Card are writable. Can I tell rhythmbox somehow which directory to use, without putting a file into the mtp://[usb:...]/-folder?


text:
Q: Send push notifications in iOS6 I have an iOS6 app that works. Now what do I have to do in my app and on my server to set up push notification.
There are bits and pieces of answers to this question. But most of it is dated and I don't want set something up the old way just to find out it's been deprecated.

*

*http://maniacdev.com/2011/05/tutorial-ios-push-notification-services-for-beginners/

*http://answers.oreilly.com/topic/1541-how-to-send-a-push-notification-to-an-iphone-user/

*http://blog.serverdensity.com/how-to-build-an-apple-push-notification-provider-server-tutorial/
Thank you

A: I recently set up push on an app I was working on and followed these tutorials :
http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12
http://www.raywenderlich.com/3525/apple-push-notification-services-tutorial-part-2
These are well written and they work.

A: This is a very helpful mac application. I use this to simulate push notification without server : https://github.com/noodlewerk/NWPusher


text:
Q: A direct proof of the Vandermonde decomposition of a nonsingular Hankel matrix? I have been doggedly searching for a direct proof of the following theorem:

Theorem 1: Let $H$ be a complex nonsingular $n\times n$ Hankel matrix. Then $H$ can be factorized $H = V^\top DV$ where $V$ is a complex $n\times n$ Vandermonde matrix and $D$ is a complex $n\times n$ diagonal matrix.

There exist numerous references stating that this result is well known either without proof or with a citation to one of the references below which I have found insufficient for one reason or another. Here is an abbreviated summary of my research:

*

*References (e.g., here, here, and here) that are unavailable to me or in Russian

*References (e.g., here, here, and here) for a confluent Vandermonde decomposition of a rank-deficient finite and/or finite-rank infinite Hankel matrices: These do no prove the theorem I am after since the Vandermonde decomposition involves confluent Vandermonde matrices.

*References for a Vandermonde decomposition of positive semidefinite or positive definite Hankel matrix: These don't address the case of a general square Hankel matrix.

*References (here, here, and here) where the theorem is proven as a corollary of a rather length theory: these results do prove the theorem that I want. However, the result follows as a corollary of several pages of a lengthy theory drawing connections to other structured matrices, polynomials, and rational functions. It seems like this basic and essential fact should have a more direct proof.

I am looking for as simple and direct a proof of Theorem 1 as possible, a reference to one in the literature, or some insight as to why a simple proof does not exist. Below the fold, I have outlined my attempt to provide such a proof.

My Attempt
Consider the entries of the Hankel matrix
$$
H = \begin{bmatrix} h_0 & h_1 & \cdots & h_{n-1} \\
h_1 & h_2 & \cdots & h_{n+1} \\
\vdots & \vdots &\ddots & \vdots \\
h_{n-1} & h_n & \cdots & h_{2n-2} \end{bmatrix}.
$$
The Vandermonde decomposition in Theorem 1 is equivalent to finding a representation of the sequence $(h_k)_{0\le k\le 2n-2}$ of the following form:
$$
h_k = \sum_{j=1}^n \alpha_j z_j^k, \quad k = 0,1,2,\ldots,2n-2. \tag{$\star$}
$$
Observe that the sequence  $(h_k)_{0\le k\le 2n-2}$ has fewer parameters than the parametrization ($\star$). To rectify this, add $h_{2n-1}$, value to be set later, to the end of the sequence and require it to obey the parametrization ($\star$) for $k=2n-1$.
We seek to identify the poles $z_1,\ldots,z_n$ by Prony's method. The key observation is a sequence of the form ($\star$) is a solution to an order-$n$ difference equation:
$$
h_{n+k} = c_{n-1} h_{k+(n-1)} + \cdots + c_0 h_k.
$$
We find the difference equation coefficients $c_0,\ldots,c_{n-1}$ by solving the following linear system of equations
$$
\begin{bmatrix}
h_n \\ h_{n+1} \\ \vdots \\ h_{2n-1}
\end{bmatrix} = \begin{bmatrix} h_0 & h_1 & \cdots & h_{n-1} \\
h_1 & h_2 & \cdots & h_{n+1} \\
\vdots & \vdots &\ddots & \vdots \\
h_{n-1} & h_n & \cdots & h_{2n-2} \end{bmatrix} \begin{bmatrix} c_0 \\ c_1 \\ \vdots \\ c_{n-1}\end{bmatrix}.
$$
The matrix in this equation is precisely the matrix $H$ which we know to be nonzero. Thus, this equation has a unique solution $c_0,\ldots,c_{n-1}$. Provided the characteristic equation
$$
z^n - c_{n-1}z^{n-1} - \cdots - c_0z^0 = 0 \quad \text{has distinct roots} \quad z_1,\ldots,z_n, \tag{$\dagger$}
$$
there exist coefficients $\alpha_1,\ldots,\alpha_n$ such that ($\star$) holds. The Vandermonde decomposition is proven under the assumption ($\dagger$).
The Vandermonde decomposition thus rests on choosing $h_{2n-1}$ such that ($\dagger$) holds. Since $h_{2n-1}$ is arbitrary, the polynomial in ($\dagger$) can be chosen to be any polynomial of the form
$$
f(z) = g(z) + \alpha h(z)
$$
where
$$
g(z) = z^n - d_{n-1} z^{n-1} - \cdots - d_0 z^0, \quad h(z) = -e_{n-1} z^{n-1} - \cdots - e_0 z^0 \tag{$\blacktriangle$}
$$
with $d_0,\ldots,d_{n-1}$ and $e_0,\ldots,e_{n-1}$ the solutions of
$$
\begin{bmatrix}
h_n \\ h_{n+1} \\ \vdots \\ 0
\end{bmatrix} = H \begin{bmatrix} d_0 \\ d_1 \\ \vdots \\ d_{n-1}\end{bmatrix}, \quad \begin{bmatrix}
0 \\ 0 \\ \vdots \\ h_{2n-1}
\end{bmatrix} = H \begin{bmatrix} e_0 \\ e_1 \\ \vdots \\ e_{n-1}\end{bmatrix}.
$$
To this end, we have a helpful lemma (see, e.g., Lemma 7.7):

Lemma 2. If any polynomials $g$ and $h$ are coprime, then $g - \alpha h$ has simple roots except for finitely many values $\alpha$.

Thus, Theorem 1 would be proven if I could show that $g$ and $h$ as defined in ($\blacktriangle$) are coprime.


text:
Q: Windows 10 samba NT_STATUS_CONNECTION_RESET after upgrade I maintain a small business with a ubuntu 14.04 server running samba 4.3.9-Ubuntu. Everything worked fine with Windows 7, after upgrade to Windows 10 only those can log in to a PC who already logged in once before the upgrade.
For everyone else all I get in the error logs is
NT_STATUS_CONNECTION_RESET

and on the client side it says, that no login servers are available.
I already tried disabling SMB2/3 but this does not help.
I am really confused that some users work (those who already have their profile synced to the pc) and the others don't.

A: You can try:
smbclient -L <hostname> -m SMB2


text:
Q: Eeeeek! What happened to these badges? Noticed this while on the Android app (tablet=Nexus 7) - this user's badges show up as asterisks.

But when I looked at their profile, they have in actuality a lot less badges than I was led to believe!
Could it be a caching issue?

A: This was an oversight - those badges are actually placeholders that we're using in our layout.  Braggers happens to be a deleted user therefore we have no record for these badges.  It will be fixed in version v0.1.4


text:
Q: How to put confirmation box on ajax submission form validation io? .on('success.form.fv', function(e) {
    // Prevent form submission
    e.preventDefault();

    var $form = $(e.target),
    fv    = $form.data('formValidation');

    // Use Ajax to submit form data
    $.ajax({
      url: $form.attr('action'),
      type: 'POST',
      data: $form.serialize(),
      cache: false,
      success: function (data, textStatus, jqXHR) {
        alert("Your changes have been saved")
      }
    });
});

I am using ajax call on success.form.fv in formvalidationIO.
How can I add confirmation dialog box with yes and no options before I do the form submission?

A: change the code to:
.on('success.form.fv', function(e) {
    // Prevent form submission
    e.preventDefault();

    if(confirm('Submit the form ?')){ //user chooses Ok
        /**** Your AJAX code here ****/
    } else {
        // user chooses cancel. Do not submit the form
    }
});


text:
Q: $\frac1x$ rotational volume vs area The area under the function $f(x) = \frac1x$ in the interval $(1, \infty)$ diverges while the rotational volume converge to $\pi$.
Question:
How can this be explained without the use of integration to develope a deeper and better understanding?

A: We often think of squaring a number as making it bigger. $2^2 = 4 > 2$, $3^2 = 9 > 3$, etc. However, for numbers smaller than $1$, squaring them makes them smaller. $(1/2)^2 = 1/4 < 1/2$, $(1/3)^2 = 1/9 < 1/3$, etc.
For $x \in (1,\infty)$, $1/x < 1$ so $(1/x)^2 < 1/x$. So the cross-sectional area $\pi/x^2$ of the volume of rotation of $1/x$ becomes much much smaller than $1/x$ as $x \to\infty$.
The divergence of the integral
$$
\int_1^\infty \frac{1}{x} \, dx
$$
is actually quite special. It is a very slowly diverging integral, with $\int_1^a 1/x \, dx = \ln(a)$ which grows to infinity quite slowly. So by squaring $1/x$, we make it go to zero much faster than $1/x$ which gives us convergence.
This gives you an intuitive justification for why you shouldn't be surprised that volume integral converges. I am not aware of a formal proof that is not harder then actually evaluating the integral.


text:
Q: Coordinate transformation taking into account both orientations and translations of a rigid body I am trying to do some calculations taking into account the orientations and translations of some rigid bodies. I have two right-handed coordinate systems that are rotated arbitrarily with respect to one another. I want to transform to the local coordinate system for the center of mass and then do the back transform to verify that everything is set up correctly. When I do the back transform, I correctly recover the original center-of-mass position in x, but not in y or z. What am I misunderstanding?
Let $\vec{e}_{X}$, $\vec{e}_{Y}$, $\vec{e}_{Z}$ be the unit vectors for the axes of the first system, the global system that has (1,0,0), (0,1,0), (0,0,1) as a basis, and $\vec{e}_{1}$, $\vec{e}_{2}$, $\vec{e}_{3}$ the unit vectors for the axes of the local system. Let $\vec{A}$ be any vector in the two frames of reference. By definition:
$$\vec{A}=A_{X}\vec{e}_{X}+A_{Y}\vec{e}_{Y}+A_{Z}\vec{e}_{Z}$$
$$\vec{A}=A_{1}\vec{e}_{1}+A_{2}\vec{e}_{2}+A_{3}\vec{e}_{3}$$
I do the coordinate transformation from the global to the local system, taking into account both orientations and translations, by:
$$A_{1} = \vec{e}_{1} \cdot \vec{A} + A_{X} = (\vec{e}_{1} \cdot \vec{e}_{X})A_{X} + (\vec{e}_{1} \cdot \vec{e}_{Y})A_{Y} + (\vec{e}_{1} \cdot \vec{e}_{Z})A_{Z} + A_{X}$$
$$A_{2} = \vec{e}_{2} \cdot \vec{A} + A_{Y} = (\vec{e}_{2} \cdot \vec{e}_{X})A_{X} + (\vec{e}_{2} \cdot \vec{e}_{Y})A_{Y} + (\vec{e}_{2} \cdot \vec{e}_{Z})A_{Z} + A_{Y}$$
$$A_{3} = \vec{e}_{3} \cdot \vec{A} + A_{Z} = (\vec{e}_{3} \cdot \vec{e}_{X})A_{X} + (\vec{e}_{3} \cdot \vec{e}_{Y})A_{Y} + (\vec{e}_{3} \cdot \vec{e}_{Z})A_{Z} + A_{Z}$$
which reduces to
$$A_{1} = e_{1,X} A_{X} + e_{1,Y} A_{Y} + e_{1,Z} A_{Z} + A_{X}$$
$$A_{2} = e_{2,X} A_{X} + e_{2,Y} A_{Y} + e_{2,Z} A_{Z} + A_{Y}$$
$$A_{3} = e_{3,X} A_{X} + e_{3,Y} A_{Y} + e_{3,Z} A_{Z} + A_{Z}$$
where $A_{X}$, $A_{Y}$, $A_{Z}$ are the coordinates of the center of mass in the global system. Then, I do the back transform:
$$A_{X} = e_{1,X} A_{1} + e_{2,X} A_{2} + e_{3,X} A_{3} - e_{1,X} A_{X} - e_{2,X} A_{Y} - e_{3,X} A_{Z}$$
$$A_{Y} = e_{1,Y} A_{1} + e_{2,Y} A_{2} + e_{3,Y} A_{3} - e_{1,Y} A_{X} - e_{2,Y} A_{Y} - e_{3,Y} A_{Z}$$
$$A_{Z} = e_{1,Z} A_{1} + e_{2,Z} A_{2} + e_{3,Z} A_{3} - e_{1,Z} A_{X} - e_{2,Z} A_{Y} - e_{3,Z} A_{Z}$$
Again, I am only able to recover the x-coordinate of the center of mass, but not the y- or z-coordinate. What am I misunderstanding?

A: Part of the problem is that you're using $A_X$, $A_Y$ and $A_Z$ to mean two different things. Toward the top, you say that they are the coordinates of an arbitrary point, but later you say that they're the global coordinates of the center of mass, and you mix both of these meanings in the same mathematical expressions. The more fundamental problem is that you've gotten the transformations backwards. One can see that something's not right even before inverting the transformation since the expressions for the local coordinates don't reduce to $0$ for the center of mass, which supposedly is the origin of the local frame.
I'm going to use a different notation from yours so that essential features don't get lost in a mass of algebra. Let $\overline{\mathbf p}$ be the global coordinates of the center of mass and $\mathbf p$ the global coordinates of an arbitrary point. The transformation to the local (center-of-mass) frame will have the form $$\mathbf p'=R(\mathbf p-\overline{\mathbf p})\tag1$$ where $R$ is a rotation matrix that we'll come back to later. Note that we first translate the origin to the center of mass by subtracting the global coordinates of the new origin and then rotate the result, which is essentially the inverse of what you have. The center of mass should be the origin of the new coordinate system, and (1) obviously produces the zero vector when you set $\mathbf p=\overline{\mathbf p}$.
The inverse map is then $$\mathbf p = R^{-1}\mathbf p'+\overline{\mathbf p}.\tag2$$ The center of mass is the origin of the local frame, and substituting $\mathbf 0$ for $\mathbf p'$ in (2) recovers $\overline{\mathbf p}$ as expected.
Now, what does the rotation $R$ look like? We can write it as the product of a matrix that maps from the global coordinate system to the standard basis (in your application those are one and the same, but I'll develop it for any pair of bases) and one that maps from the standard basis to the new one. The columns of a change-of-basis matrix are the coordinates of the old basis expressed in the new basis, so the combined change-of-basis matrix is $$\begin{bmatrix}\mathbf e_1&\mathbf e_2&\mathbf e_3\end{bmatrix}^{-1} \begin{bmatrix}\mathbf e_X&\mathbf e_Y&\mathbf e_Z\end{bmatrix}.\tag3$$ All of the $\mathbf e$'s in this expression are the coordinates of the various basis vectors expressed relative to the standard basis. Note that the left-hand matrix is inverted since going from the standard basis to the second basis is the inverse of going from the second basis to the standard basis. Since both of your bases are orthonormal, these matrices are orthogonal, so (3) becomes \begin{align} \begin{bmatrix}\mathbf e_1&\mathbf e_2&\mathbf e_3\end{bmatrix}^T \begin{bmatrix}\mathbf e_X&\mathbf e_Y&\mathbf e_Z\end{bmatrix} &= \begin{bmatrix}\mathbf e_1^T\\\mathbf e_2^T\\\mathbf e_3^T\end{bmatrix} \begin{bmatrix}\mathbf e_X&\mathbf e_Y&\mathbf e_Z\end{bmatrix} \\
&= \begin{bmatrix} \mathbf e_1\cdot\mathbf e_X & \mathbf e_1\cdot\mathbf e_Y & \mathbf e_1\cdot\mathbf e_Z \\ \mathbf e_2\cdot\mathbf e_X & \mathbf e_2\cdot\mathbf e_Y & \mathbf e_2\cdot\mathbf e_Z \\ \mathbf e_3\cdot\mathbf e_X & \mathbf e_3\cdot\mathbf e_Y & \mathbf e_3\cdot\mathbf e_Z \end{bmatrix}, \end{align} i.e., the elements of $R$ are the pairwise dot products of the basis vectors. Since this matrix is itself orthogonal, its inverse is also equal to its transpose. In your case, the first basis is just the standard basis, so the right-hand matrix in these products is the identity, and the change-of-basis matrix is simply $[\mathbf e_1\;\mathbf e_2\;\mathbf e_3]^T$, i.e., $$R = \begin{bmatrix}e_{1,X}&e_{1,Y}&e_{1,Z}\\e_{2,X}&e_{2,Y}&e_{2,Z}\\e_{3,X}&e_{3,Y}&e_{3,Z}\end{bmatrix}.$$ This matrix is also orthogonal, so $R^{-1}=R^T$.


text:
Q: Linking to static build of QT and QSvgPlugin from conancenter repository. QSvgPlugin is not found I have qt/6.4.1 as a dependancy in my project.
My conanfile.py looks like this:
class RainEditorConan(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    requires = "qt/6.4.1" # comma-separated list of requirements
    default_options = {"qt:shared": False, "qt:opengl": "desktop", "qt:qtsvg": True}

Since these set of options are not present on the qt repository on conancenter, I build qt from source using the --build=qt flag
Now, my CMakeLists.txt looks like this:
cmake_minimum_required(VERSION 3.16)

project(helloworld VERSION 1.0.0 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

add_executable(helloworld
src/main.cpp
src/res.qrc
)
target_include_directories(helloworld PRIVATE src)

# Link to Qt
find_package(Qt6 REQUIRED COMPONENTS Widgets QWindowsIntegrationPlugin Svg QSvgPlugin)
qt_standard_project_setup()

target_link_libraries(helloworld PRIVATE Qt6::Widgets Qt6::QWindowsIntegrationPlugin Qt6::Svg Qt6::QSvgPlugin)

Now, my main.cpp tries to display an SVG resource (defined in the qrc file):
#include <QtWidgets>
#include <iostream>
#include <QtPlugin>
Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
Q_IMPORT_PLUGIN(QSvgPlugin)

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    // Create a window.
    QMainWindow mainWindow;
    mainWindow.setWindowTitle("Example");
    mainWindow.resize(800, 600);

    QLabel* l = new QLabel();
    QPixmap pixmap(":/close.svg");
    l->setPixmap(pixmap);

    // Add label to the window.
    mainWindow.setCentralWidget(l);

    mainWindow.show();

    return app.exec();
}

When I configure my cmake project, I get the following error:
Target "helloworld" links to:
[cmake]
[cmake]     Qt6::QSvgPlugin
[cmake]
[cmake]   but the target was not found.

If I remove the linking to QSvgPlugin, then it configures correctly but I get the following error while building my project:
error LNK2019: unresolved external symbol "struct QStaticPlugin const __cdecl qt_static_plugin_QSvgPlugin(void)"

Now, this symbol is defined in the plugin library qsvgd.lib which is inside the conan installation, so if I link to this manually by writing out the full path, it builds and runs correctly:
target_link_libraries(helloworld PRIVATE Qt6::Widgets Qt6::QWindowsIntegrationPlugin Qt6::Svg "C://.conan//8126c6//1//res//archdatadir//plugins//imageformats//qsvgd.lib")

If I don't link to this plugin, and remove the Q_IMPORT_PLUGIN(QSvgPlugin) line from my source code, then it configures and builds correctly but cannot display the SVG when run
Which target should I link to, to link to the correct svg plugin library? It seems that the conan qt repository's exported cmake files do not expose this library as a target.