Puppet: remote clients are not updated by puppetmaster

I'll start with the fact that I'm noob to Puppet, I have 2 servers; one is called puppetmaster and the other is called puppetclient. I've installed puppet-3.2.2 and created some basic nodes.pp file, the nodes.pp file includes settings for both puppetmaster and puppetclient. When i apply the relevant manifest the changes are only affecting the puppetmaster but not the client. On the server I see the next error:  [root@puppetmaster puppet]# puppet apply manifests/nodes.pp  hostname: Unknown host dnsdomainname: Unknown host hostname: Unknown host dnsdomainname: Unknown host hostname: Unknown host dnsdomainname: Unknown host Notice: Finished catalog run in 0.71 seconds [root@puppetmaster puppet]#   Even though a DNS server is configured on /etc/sysconfig/network-scripts/ifcfg-eth0 and in /etc/resolv.conf. While checking the puppetmaster log i see the next error:  [2013-08-08 11:03:00] ERROR OpenSSL::SSL::SSLError: SSL_accept returned=1 errno=0 state=SSLv3 read client certificate A: tlsv1 alert unknown ca     /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:34:in `accept'     /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:34:in `listen'     /usr/lib/ruby/1.8/webrick/server.rb:173:in `call'     /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'     /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'     /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'     /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'     /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'     /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'     /usr/lib/ruby/1.8/webrick/server.rb:23:in `start'     /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'     /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:32:in `listen'     /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:31:in `initialize'     /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:31:in `new'     /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:31:in `listen'     /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:28:in `synchronize'     /usr/lib/ruby/site_ruby/1.8/puppet/network/http/webrick.rb:28:in `listen'     /usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:92:in `listen'     /usr/lib/ruby/site_ruby/1.8/puppet/network/server.rb:104:in `start'     /usr/lib/ruby/site_ruby/1.8/puppet/daemon.rb:137:in `start'     /usr/lib/ruby/site_ruby/1.8/puppet/application/master.rb:215:in `main'     /usr/lib/ruby/site_ruby/1.8/puppet/application/master.rb:165:in `run_command'     /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:364:in `run'     /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:456:in `plugin_hook'     /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:364:in `run'     /usr/lib/ruby/site_ruby/1.8/puppet/util.rb:504:in `exit_on_fail'     /usr/lib/ruby/site_ruby/1.8/puppet/application.rb:364:in `run'     /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:132:in `run'     /usr/lib/ruby/site_ruby/1.8/puppet/util/command_line.rb:86:in `execute'     /usr/bin/puppet:4 [root@puppetmaster ~]#   The puppet log on the client is blank. I investigated a little bit on the internet and saw that there's some command called puppetca in older version but as it seems, it's not part of the 3.2.2 version. Anyone knows how to get it to work?


Does Hawking radiation violate baryon number conservation?

Throw two baryons into a black hole ( +2), receive  out.  (baryon number 0).     seems to disallow such a thing.  Am I missing something here?


The speed of light sets a lower limit to the rate at which a reference frame can pass through time. Is there anything that sets an upper limit?

Is there any "slowest" velocity that sets a cap on how fast a reference frame passes through time, or can you pass through time infinitely fast given a "slow" enough velocity?


Export unique values from QGIS layer column

I have a shapefile loaded into QGIS.When i apply filter i can quickly see all the unique values in that column. Is there a quick way to extract that for use in code? I know i could load the shapefile into a geo database and extract from there but for a single file that seems a lot of setup


Is there a way to make the Touch Bar esc key emit a "click" sound when it is pressed? This way I'd have some feedback that I successfully pressed the button when using vim.   I'd be happy with an Apple Script, or whatever works.


Can you use a readied action to teleport out of the way of a weapon attack?

Let's say that a player uses the ready action and says "If a character aims at me with a weapon, I'll use Teleport to move behind cover."  What happens? Does this work? If not, please cite the rules to explain why not.


Automatic reformatting / style checking of input files?

Coming from Python land, one of the best tools is  which automatically tweak the layout and spacing of your programs to fit the  code style guide.   My basic question is: are there any similar tools/standards for LaTeX or similar functionalities in various IDEs that can automatically standardise my source-formatting and slap me around when I screw it up?


Just installed Ubuntu 20.04. The latest version of zoom (software-install) I found is 14. Can anyone help me how to install zoom? I and my wife need it for online classes.


If every element of $H$ and $G/H$ is a square, then prove that so is every element of $G$.

Let $H$ be a subgroup of an abelian group $G$ such that every element of $H$ can be written as $b^2,\, b \in G$ and similarly for $G/H$. Then how to prove that every element of $G$ can also be written as a square ?


Show that $N = 10101 \dots 101$ is not prime except when $N=101$.  I have tried to do induction but I am unable to get any equation. I even tried to make factors of different N and take pattern but I was unsuccessful.


Physics behind rays of light in the photographs taken in the darkness

What is the physics behind these rays of light visible in the photographs of objects that emit light? What justifies their shape and amount of rays?  Very well known effect in a sense, but I did not find any deep explanation...


If Linux shuts down, but the computer stays in terminal, I can still print the sysRq help, but no longer enter commands.  Is there any way to escape that and undo shutdown while circumventing the Linux death sin, called reb***ing?


Should I use 'which' or 'that' in my sentence?

I can imagine this might be a duplicate, but even looking at the questions asked, I'm still not sure when I should use which or that.  I'm uncertain whether or not I should use 'that' or 'which' in my case.  If someone could point out what is the correct use (or even if both can be used), it would be really helpful.  In the following sentence, should it contain 'that' or 'which'?   The analysis does not contain a timeframe that/which specifies the amount of time required  for participants to synchronize to a metronome.


What is the purpose of the "do" keyword in Bash for loops?

What is the purpose of the do keyword in Bash for loop syntax? To me, it feels redundant.  for i in `seq 1 2`; do echo "hi"; done   Why isn't the syntax like this?  for i in `seq 1 2`; echo "hi"; done   I'm sure that it does fill a purpose. I just want to learn.


Recursive (nested) grep gives "invalid character range" error

I have a file test.xml (shown below).  This grep works:    grep '<appointment-id internal:ref=1.2.3/>' test.xml   Output is:      <appointment-id internal:ref=1.2.3/>   But this fails:  grep "$(grep '<appointment-id internal:ref=1.2.3/>' test.xml)" test.xml   Output is:  grep: invalid character range   Contents of test.xml:  <note>     <to>Jim</to>     <from>John</from>     <heading>Reminder</heading>     <body>Some text</body>     <appointment-id internal:ref=1.2.3/> </note>   I have put both grep commands (the simple one and the nested one) into a script with set -x.  Here is an exact copy & paste of that script:  set -x grep '<appointment-id internal:ref=1.2.3/>' test.xml grep "$(grep '<appointment-id internal:ref=1.2.3/>' test.xml)" test.xml exit 0   and here is its output:  ++ grep '<appointment-id internal:ref=1.2.3/>' test.xml     <appointment-id internal:ref=1.2.3/> +++ grep '<appointment-id internal:ref=1.2.3/>' test.xml ++ grep '    <appointment-id internal:ref=1.2.3/>' test.xml grep: invalid character range ++ exit 0


Finding a nonempty subset that is not a subgroup

Question:  Give an example of a group $G$ having a subset $H$ such that $HH=H$, where $HH = \left\{h_1h_2\mid h_1,h_2\in H \right\}$, but $H$ is not a subgroup of $G$.   Attempted Solution:  I haven't gotten far with this problem. In a previous exercise, I was able to prove that $HH=H$ if $H$ is a subgroup of $G$. I am having a hard time thinking of a scenario where $h_1h_2\in H$ and $H$ is not a group. I've played around with making $h_1h_2$ not closed under its operation, but I haven't gotten anywhere yet.


Gain of an active filter without calculating the transfer function with two OP-AMPs

I need to calculate the gain of the filter without explicitly calculating the transfer function, ie I have to replace the capacitors with an open circuit. The problem is that I've been trying to solve the problem but I do not know how to start. Thanks.


Cardinality of the set of all natural sequences is $2^{\aleph_0}$

I was wondering how can you prove that $\mathbb{N}^\mathbb{N} \sim  2^\mathbb{N}$ (where $\mathbb{N}^\mathbb{N}$ is the set of all functon $f:\mathbb{N}\rightarrow \mathbb{N}$).  I think I can show that $2^\mathbb{N} \sim n^\mathbb{N}$ for some $n\in\mathbb{N}$ with a tedious bijection, but I'm not sure what to do with $\mathbb{N}^\mathbb{N}$.  I apologize if the question lacks details/notation, I have only studied elementary set theory and we haven't mentioned $\mathbb{N}^\mathbb{N}$'s cardinality at all (I usually ended up finding injections/bijections to/from $2^\mathbb{N}$, but now I'm curious as to why the above correct).  Thanks in advance.


How can I search a word in a Word 2007 .docx file?

I'd like to search a Word 2007 file (.docx) for a text string, e.g., "some special phrase" that could/would be found from a search within Word.    Is there a way from Python to see the text?  I have no interest in formatting - I just want to classify documents as having or not having "some special phrase".


Yoasts SEO plugin adds a metabox to the post edit screen. I'm trying to remove this for users who aren't editors or above.  I've tried putting a remove_meta_box call in on admin_init, trying to remove the action on $wpseo_metabox but to no avail.  How do I remove this metabox without requiring user intervention (the user should never know the metabox existed, so clicking on screen options is not an option )


Create backup iPhone with forgotten encryption password

I'm trying to make a backup from my iPhone, however it's set to be password protected. I do not know the password, as I've never set one. I've tried all the passwords I know, which I've ever used to make sure I didn't set it.  I've also tried the default 0000 and 1234 codes.   I want to uncheck the encryption checkbox in iTunes, but it requires me to type a password. What else can I try?  I have no problems in removing all backups and start from the scratch somehow, however - I do not want to restore my phone as new and remove all those settings.


Prove that $2^{n}-1\nmid3^{n}-1$ for all odd integers $n\geq3$.   After factoring the numbers for some small $n$'s, I guess $\gcd(2^n-1,3^n-1)=1$ for all odd integers $n\geq3$, but I am unable to prove this. I tried infinite descent but to no avail. It seems to have something to do with Mersenne primes. Any hints will be appreciated.


Does $\sum_{n=1}^\infty \frac{\cos{(\sqrt{n})}}{n}$ converge?

The series is: $$\sum_{n=1}^\infty \frac{\cos(\sqrt{n})}{n}$$   Considering it isn't always positive, I replace $\frac{\cos{\sqrt{n}}}{n}$ with its absolute value and I find that: $$\vert \frac{\cos{\sqrt{n}}}{n}\vert\gt \frac{\cos^2{\sqrt{n}}}{n}=\frac{\ 1+\cos{2\sqrt{n}}}{2n}=\frac{1}{2n}+\frac{\cos{2\sqrt{n}}}{2n}$$ if $\sum_{n=1}^\infty \vert\frac{\cos{\sqrt{n}}}{n}\vert $   converges, then  $\sum_{n=1}^\infty \frac{\cos{\sqrt{n}}}{n}$ converges.Using Comparison test,we can draw the conclusion that  $\sum_{n=1}^\infty\frac{1}{2n}$  converges , which is impossible. So I get that $\sum_{n=1}^\infty \frac{\cos{\sqrt{n}}}{n}$  absolutely diverges. But I can't figure out whether  $\sum_{n=1}^\infty \frac{\cos{\sqrt{n}}}{n}$ converges or not.  I have tried Dirichlet's test, but I can't figure out whether $$S_{n}=\sum_{k=1}^n \cos{\sqrt{k}}$$ is bounded.  (This is my first time to ask question.Maybe there exist some mistakes in my conclusion.Thanks. :)


Highlighting a name by increasing the spacing as in books of the 19th century

In books from the 19th century and the first half of the 20th century, I realised, that sometimes names are highlighted by increasing the spacing inside these words. Here an Example from G. Frege's "Begriffsschrift"  where the name "Leibniz" is highlighted in this particular way. Is there a name for this style of typesetting? How can it be achieved in LaTeX? I am interested in a solution for all flavours of LaTeX but a solution which is compatible with XeTeX and fontspec would be the preferred one.


Alternatives to Shapefiles as open-source, cross platform dataset types

I am working on software that is very ESRI oriented, but a future version will likely not be using ESRI software. It uses Shapefiles and Geodatabases. I'm planning on getting all of my data to Shapefiles in anticipation for future versions of the software that will likely be on Android and other mobile devices. It appears that Shapefiles are the most common datatype for features in the open-source GIS world, but what are the others, and what benefits do they bring? I'm familiar with GeoJSON and KML, but I'm sure there are others.  I would like to know all options, but I am particularly interested in dataset types best suited for storing on mobile devices (the data must be accessible without an internet connection).


I am trying to setup SPF on a server - mail works fine and validates according to mxtoolbox and other online checks but when I check it using  I get an error:  PermError SPF Permanent Error: Void lookup limit of 2 exceeded   I am aware of a limit of 10 lookups but have not seen this error before.  SPF record is:  v=spf1 a mx ip4:IP1 ip4:IP2 ip6:IP3 include:spf-a.outlook.com  include:spf-b.outlook.com include:spf-c.outlook.com  include:spf.messaging.microsoft.com include:_spf.zdsys.com  include:spf.mail.intercom.io -all    What is the void lookup limit refering to?


What is the name of this Illustration style?

What is the name/type of illustration in which the fill color of an object is slightly offset from its stroke? How is this effect achieved?


Why is the following minimal example not working?  I.e., what do I need to do, in order to define the float placement specifier of a figure within a macro? (I know that I should use \newcommand, but in the "full" example the error is part of an involved "superfigure" command. \newcommand is not working too btw.)  \documentclass{scrreprt} \usepackage{blindtext}  \def\PosNotWorking{h} \def\FramboxNotWorking{5cm} \def\CaptionWorking{Caption is working.}  \begin{document}  \Blindtext[1]  \begin{figure}[\PosNotWorking]   \centering     \framebox[5cm]{My special figure. (Pos: \PosNotWorking)}             \caption{\CaptionWorking} \end{figure}  \Blindtext[1]  \end{document}   If I compile this, the figure is at the top (default behaviour). If I enter \figure[h] instead of \figure[\PosNotWorking], the figure is of course between the two paragraphs.


Say i hit www.google.com in browser , my question is how data is served from google(or any other website) server to my browser. I raed couple of articles/videos . Based on them here is mine understanding and some inline questions   I enter www.google.com in browser  Browser resolves google name with IP though DNS server(with the help of my Internet service Provider(ISP)) Data travels from my latop to modem in my room Modem send the data to my ISP say comcast Now each ISP is connected to internet exchange physically(through wire) Right ? Google server is also connected to Internet exchange.If yes not sure how ? Similarly if i host my new website through any web hosting service provider(WHSP), then that WHSP must be connected to internet exchange Then router at internet exchange will route the data to google server connected to Internet exchange Google server will process the request and send the response back    Please correct if i am wrong somewhere here ?


So, I have just watched the first season of The Witcher on Netflix and I am hooked...   I know the series is based on books and video games, and while I probably won't play the games I definitely want to read the books.   What would be the best way to do that? Publication order? In-universe chronologically?


Decimals pretending to be Integers when used in Maps

I came across some very strange behaviour when working with a Map with Decimal keys today. It seems like the Decimal type can't handle Integer assignments properly, but allows them nonetheless. I've written some example code demonstrating the problem:  Map<Decimal, String> m = new Map<Decimal, String>(); m.put(1234, 'Integer key');  m.put(1234.0, 'Decimal key'); m.put(1234.5, 'Decimal Unique key');  System.debug(m.get(1234));      // => Integer key, why was this not overwritten if 1234 == 1234.0? System.debug(m.get(1234.0));    // => Decimal key System.debug(m.get(1234.5));    // => Decimal Unique key  System.debug(m);        //Order of insertion matters, newest value does not override existing one but is not shown on map printout... for(Decimal d : m.keySet()){     System.debug(d);    //...unless you print it out yourself, because this loop shows all the keys }  //Sanity check System.debug(1234 == 1234.0); //True  //Digging deeper Decimal fake_d = 1234; Decimal real_d = 1234.0; Integer real_i = 1234; //Integer fake_i = 1234.0; //Illegal assignment, typechecking only works one way, it seems  //More sanity checks System.debug(fake_d == real_d); //True (Except when used in a Map, apparently) System.debug(fake_d == real_i); //True  System.debug(m.get(real_i)); // => Integer key System.debug(m.get(fake_d)); // => Integer key, even with fake_d explicitely declared as a Decimal type, it still pretends to be an Integer. System.debug(m.get(real_d)); // => Decimal key   I found this behaviour when I tried to fetch a value from a map using a Decimal sObject field, only to find that the keys I used to populate the Map (coming from a different Decimal field) were interpreted as Integers since they had no real decimal digits.  Maybe using Decimals as Map keys is not supported for some reason? Is it expected behaviour for 1234 and 1234.0 being distinct values in this case or is this an oversight in the Map implementation?


Setting a Property's min and max values after creation

When using an Int- or FloatProperty, is there any way of changing their min and max values dynamically?  I'm currently loading images on the fly and would like to limit a frame property to run from 0 to len(loaded_images) every time I call the loading operator. However, the property seems to be read-only and re-assigning gives the following error:  bpy.context.scene.project_props.bl_rna.properties['myIntProp'] = bpy.props.IntProperty(...) TypeError: bpy_prop_collection[key] = value: invalid, expected a StructRNA type or None, not a tuple   I understand the bpy.props constructor uses an intermediary tuple, but I'm not sure how to proceed. Is there any way around this?


RedHat/Centos6.5 Environmental Variables Set on Startup - but from where?

I using Redhat/Centos 6.5.  I am starting up the system and it already has environment variables set and is already running processes when it starts up.  My questions:    Where do these environment variables get set? Where do these processes get set and how do I know what is running?


Covariance matrix of least squares estimator $\hat{\beta}$

I read that the $Cov(\hat{\beta})=\sigma^2(Z'Z)^{-1}$, where $\hat{\beta}=(Z'Z)^{-1}Z'y$. However, I have yet been unable to find a proof of this fact online. Could anyone please provide a proof and/or a reference?


Why does the newest version of Ubuntu (18.04) have 8 years old x11vnc?  My question is more specific than posted  and I have gotten an answer to it.  Ubuntu version:  user:~/$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 18.04 LTS Release:    18.04 Codename:   bionic   I have installed the x11vnc:   sudo apt-get install x11vnc -y   Later I discovered the version is 8 years old.  X11vnc version  29/07/2018 17:15:54 x11vnc version: 0.9.13 lastmod: 2011-08-10  pid: 3283   So, I checked sources for the Ubuntu 18.04 and I see that the newest cersion is not available.   b-ii-6@b-ii-6:~/$ apt-get source x11vncReading package lists... Done Need to get 2,868 kB of source archives. Get:1 http://us.archive.ubuntu.com/ubuntu bionic/universe x11vnc 0.9.13-3 (dsc) [2,000 B] Get:2 http://us.archive.ubuntu.com/ubuntu bionic/universe x11vnc 0.9.13-3 (tar) [2,854 kB] Get:3 http://us.archive.ubuntu.com/ubuntu bionic/universe x11vnc 0.9.13-3 (diff) [12.5 kB] Fetched 2,868 kB in 0s (6,632 kB/s) dpkg-source: info: extracting x11vnc in x11vnc-0.9.13 dpkg-source: info: unpacking x11vnc_0.9.13.orig.tar.gz dpkg-source: info: unpacking x11vnc_0.9.13-3.debian.tar.xz dpkg-source: info: applying 0001-Fix-openssl-1.1.x-detection.patch dpkg-source: info: applying 0002-Support-openssl-1.1.0.patch dpkg-source: info: applying 10_usepkgconfig.diff dpkg-source: info: applying do-not-run-dbus-launch.patch dpkg-source: info: applying enforce-bash.patch dpkg-source: info: applying java_target_source.patch   The current available version on the  is x11vnc 0.9.15   2018-02-04


Is "something red" an example of ellipsis or adjectival positioning

I want to better understand why the construction something + [adjective] makes grammatical sense. Background: I was recently reading a Washington Post article and came across the following sentence.  So if you fall in that category, [the movie] feels more like magic than repetitive.  (Note: I've copied the relevant spoiler-free sentence above; following the link to the article will open you up to movie spoilers! ) The phrase more like magic than repetitive struck me as odd, presumably because it was non-parallel (more like [noun] than [adjective]). I would have expected "...more like magic than something repetitive." (Actually, that needs to be rewritten to flow better, but the point is that at least it appears to be grammatical.) Thus, one would have the noun phrase "something repetitive," of the form "[noun] [adjective]." This got me to thinking about the use of adjectives after nouns. There is a great Stack Exchange article  that involves the characteristics of the adjective that indicate it should come after the noun. But I haven't been able to find examples of how the word "something" requires a postponed adjective. Consider the following sentences:  I want to buy something red. I am looking for something sweet to eat.  You cannot say:  *I want to buy red something. *I am looking for sweet something to eat.  But you can say:  I want to buy something (that is) red. I am looking for something (that is) sweet to eat.  So, my question:  Do the above examples mean that the "something [adjective]" construction is an example of the ellipsis of "that is"?  Is there something special about the word "something" that requires the postponed adjective? Note that I am NOT looking for details about adjectives that are postponed; I'm interested in the word that precedes the adjective (either "something" or similar words).   By the way, I am not interested in the following constructions, which are different:  I want to paint the house red. I tried to build the brick house taller.  Thanks in advance!


I use Ubuntu 12.04. I am trying to add the user gefalko to the www-data group. I use   root@xxx~# usermod -a -G www-data gefalko   If I understand correctly, I should now see www-data in the output of groups when run by gefalko:  gefalko@xxx:~$ groups   However, there is no www-data in the output:  gefalko adm cdrom sudo dip plugdev lpadmin sambashare   I want to edit index.php owned by www-data, but I can't (permission denied):  gefalko@xxx:/var/www/html/projectx$ ls -l total 1320 ... -rwxrwxr-x  1 www-data www-data    1613 Bal 18 10:18 index.php ...


Find Galois group of $\mathbb{Q}\sqrt{(2+\sqrt2)(3+\sqrt3)}$

Find Galois group of $Q=\mathbb{Q}\sqrt{(2+\sqrt2)(3+\sqrt3)}$.   I know the minimal polynomial is $f(x)=x^8 -24x^6+144x^4-288x^2+144$. It's irreducible over $\mathbb{Q}$, hence, $[Q:\mathbb Q]=8$.  Let $g(x^2)=f(x)$. It's splitting field is $K=\mathbb Q(2+\sqrt2)(3+\sqrt3)$. One can show that $K\simeq\mathbb{Q}(\sqrt2,\sqrt3)$. Obviously, $[K:\mathbb{Q}]=4$ and, since $K$ contains $\mathbb Q(\sqrt 2)$ and $\mathbb Q(\sqrt 3)$, $Gal(K,\mathbb Q)\simeq \mathbb Z_2^2$.  Since $[Q:K]=2$, $Gal(Q,K)\simeq \mathbb Z_2$.  I suppose that $Gal(Q,\mathbb Q)\simeq \mathbb Z_2^3$ but I don't really know how to prove that (and not 100% sure if it's true).  Could you please help me?


Select from python is retrieving wrong form

I'm working with the Firebird database, and I would like to know how to fix a format from an SELECT query. The SELECT query is returning this from the isql             NU_INSCRICAO =======================        4228949000102.000   But in my software, is returning:  4.2289490001e+012   I actually don't understand what the +012 means, also.


I have a strange syntax of for loop here :  for(--index ; index>=0 ; --index)     // (--index) instead of (forInit)  {     //code }   I know for syntax is like this :  for ( [ForInit] ; [Expression] ; [ForUpdate] ) Statement   How do we have --index instead ForIniti in the loop. I thought that we can only initialise a variable at that place or can leave it blank like this :  for( ; index>=0 ; index--)     {       //code     }   I haven't been introduced to this syntax before. Please explain why this is syntactically correct.


I'm looking for an alternative to the following (possibly standard) proof for the number of weak compositions:  The number of $k$-compositions of $n+k$ corresponds to a weak one by subtracting 1 from each "bin". Thus we have $\binom{n+k-1}{k-1}$.   While I kind of like this proof and always felt it made sense lately I've been left wanting something a little more convincing. Does anyone have a different proof of this result?


The last version of TiKZ was 3.0.1, released on 2015-08-29. From what I understand from the code repository , development is not active at all. I understand this to be a great thing and to mean that there are just very few bugs, and that it is basically feature complete. Is this correct?  Or has development basically moved to "sub-packages" that are not in the core package. If so, what are the main packages and where is their source code so I can follow the development?  It is fascinating to me that TiKZ is so popular, but that its development seems not very active the past years. I take this to be a good signal that it is extremely stable and not many improvements are needed.


I am new to ubuntu and may not quite understand the installation processes. I have 2 hard drives on my computer. A normal IDE C:/(50GB) and SATA E:/(about 460GB). I have formated my SATA drive in order to install ubuntu as my next operating system. I used an (wubi) installer run from a USB. When it starts installing it works to about a half way and then pops up an error message saying:      "Could not retrieve the required disk image files      For more information, please see the log file:   c:/docume~1/admini~1/locals~1/temp/wubi-12.10-rev273.log!"   Please help, I'd really like to have ubuntu on my old computer.


Can not enable debug logs because there are "too many logs"

I am trying to set up debug logs for a user, but every time I try it, I get the following error:       Having an active trace flag triggers debug logging. You have 329 MB of the maximum 250 MB of debug logs. Before you can edit trace flags, delete some debug logs.   The message is pretty clear and I deleted all debug logs to set it up, but... Even without logs I still get the same error.  Screenshot of "all" my logs:    Did any of you have the same problem?


1990s-2000s horror alien movie with slugs infecting people through the mouth

I've seen this horror movie in early to mid-2000s, but the quality wasn't really good, so I suppose the movie could've been older.   The main theme is some kind of alien invasion, where aliens are little slugs which infect people through the mouth.   The one thing I remember really good: the scene where college students are playing American football, one of the players gets knocked off by the infected one and while the infected one stands above knocked down on all fours, the slug falls off from his mouth to the uninfected.  I've done some research and it's not likely one of these movies, as I couldn't find the football scene there:


I saw this product from a question, but got deleted. $$\prod_{k=1}^{n-1}2\sin\frac{k\pi}{n}$$ Naturally, I was curious, and evaluated this in mathematica, which suprisingly turns out to be: $$\prod_{k=1}^{n-1}2\sin\frac{k\pi}{n}=n\tag{1}$$ From this , we have: $$\prod_{k=1}^{n-1}\sin\frac{k\pi}{n}=\frac n{2^{n-1}}$$ My question is how is $(1)$ evaluated?


Algorithm to determine if given algorithm runs in polynomial time

In general, the undecidability of the halting problem prohibits the general determination of an algorithm's complexity. However, I can see no reason why the halting problem prohibits one from deciding if a given algorithm runs in polynomial time, since the halting problem doesn't reduce to determining whether an algorithm is polynomial. So what research is there on it? Or what mistake am I making in my reasoning?


Can anyone help with the following proof?  Let H,G be final groups.  $(|G|,|H|) =  1$, prove that $Aut(G×H) ≅ Aut(G) ×Aut(H)$  I found this question  but didnt really understand the solution, would appreciate if anyone could help with that.  thank you


There is a nice feature in Visual Studio: you can create special code areas which can be minimized just as class methods in Eclipse are minimized. Like:  #region  //some code  #endregion   Is there a way do make such pleasant feature in Eclipse?


I have googled but can't find a definite answer to my question. All the answers are incomplete.    I want to clean install Windows 10 using USB. When restarting from USB I want to use advanced and format all the partitions and create one partition then install Windows 10 on it.   I bought my HP laptop with Windows 8 and upgraded for free to Windows 10 and activated auto.  Will Windows 10 activate after I remove all partitions and create one partition out of them and then install Windows 10 on it?  I have 2/3 Recovery partitions and windows old folder etc. Before the upgrade I only had one Recovery partition.   Scenario 1:   I have one Desktop with win8 activated, used free upgrade to win10 and activated. Formatted HDD and re-installed win10 with USB media from Microsoft. It did not activate after clean install. I had to install win8, activate it, upgrade to win10 and then it activated.  Scenario 2:  I have one laptop with windows 8 activated, used free upgrade to win10. Now I want to format all my partitions because they are useless and make one partition. This is possible when formatting. Because my HP laptop came with OEM OS, I do not have a serial because it was embedded in the recovery. So I can't use a serial to activate win10 if it does not activate itself. I also do not have the serial in this case to install win8 and activate it and then upgrade to win10 if win10 does not activate the same way as scenario 1.  I need an answer to if I can remove all paritions, create one and install Windows 10 on it so it activates. Or is the hidden super secret spy serial key stored on one of those partitions?


Seeking Icon library for custom GIS software?

I am building a desktop application and currently utilizing a mix of icons for pan, select, zoom, attribute table, etc that have been randomly taken from the internet and modified.   The overall look is very messy and not that intuitive to our non-technical users so  I am hoping to find a set of icons that have a homogeneous look to them.   My team has a small budget to spend on buying a set of icons but, if they exist, we would prefer to use free open source icons.   Can you point us to resources for either paid or free icon options?


Windows-10 Download folder slow to display contents

10GB of files: 516 files in 14 folders.  Why does it take a significant amount of time to list contents (10-25 seconds)  in the explorer?  This laptop is maxed out in terms of RAM and has a SSD drive.  No Antivirus is installed.


Splitting a bidirectional bus into two unidirectional ones

I am trying to sniff on a custom SPI-like bus protocol, which uses a unified bidirectional data line instead of separate MISO/MOSI. To make sense of the communication, I need to split it up into unidirectional lines before feeding them to my logic analyzer. Otherwise I wouldn't be able to see which device is responsible for which part of the signal. Since my devices won't talk to each other unless the protocol is carried out correctly, it's obvious that the bus splitting device has to be transparent to the actual agents communicating.  I tried to construct a bus splitting device, but failed as described . Since this question was maybe too specific and has not been answered, I want to ask more generally: Is there a bidirectional bus splitter that is able to split  into four wire SPI? Where could I buy such a device? (This seems similar to  question, only that I'm not talking about two really different protocols, so the answer does not apply). In principle only getting one direction would also suffice, since I could just subtract it from the full signal in order to retrieve the other half. And I'm also only interested in the master side of the communication.    The  seems to be a good candidate. Although it's advertised for use with I2C, it seems to be agnostic to the actual protocol on the lines. (As it does not even differentiate between DATA and CLOCK line for I2C.)     Splits I2C-bus signal into pairs of forward/reverse Tx/Rx, Ty/Ry signals for interface with opto-electrical isolators and similar devices that need unidirectional input and output signal paths.   As my devices operate on SPI mode 3 (polarity 1, idling on HIGH), the implementation of the receive pin should work:        sense the voltage state of the I2C-bus pin Sx (or Sy) and transmit this state to the pinTx (Ty respectively), and   sense the state of the pin Rx (Ry) and pull the I2C-bus pin LOW whenever Rx (Ry) is LOW.      But I am still puzzled on how this would actually work in sniffing this bidirectional bus. I could connect one device with the I2C line and grab its MOSI at Tx and MISO at Rx, but I would eventually have to connect both lines before feeding it to the other device, therefore making it impossible to separate the signals at my logic analyzer again. How can I connect the Tx/Rx for the slave while still being able to read them separately with a third device?  Edit: I now think this is actually not helping at all, since it leaves me with the same splitting issue as with out the device. I already have separate master and slave lines, I just don't know how to join them while still retrieving the separate directions.    I also stumbled upon the . It seems like this is a device designed for sniffing on buses, but I don't think it can help me in my case. Is there a mode where I can use it as a bridge on a bidirectional line and grab unidirectional signals off of it simultaneously?    Edit: I found this  which seems related to the issue. This does supposedly split the bidirectional line to feed it to two unidirectional isolators. The question is: Does this work for my setup? It describes the I2C lines being open-drain, whereas my lines are open-collector and also I'm not entirely sure if I could just leave out the isolator part and grab the signals from the lines or if these would have to be also hooked up to some transistor or be pulled high.


Since the author of Dive into Python and Dive into HTML5 , we're going to need to clean up all of the Stack Overflow posts that link to these fine works.       The  have provided links to mirrors of these works. Can we get some community help in fixing these links?  Mirrors:     ()  ()


getting 2 paragraphs vertically centred between 1 div

I have two p and one div.  I would that text get vertically centred.

SEARCH BY

Business group

                            <input type="checkbox">

Borrower

   Here's the CSS :  .toggle-btn {     margin: auto;     text-align: center; } .toggle-area {     padding-top:31px;     padding-bottom: 30px;     text-align: center;  } .toggle-inline {     display: inline;     line-height: 100%;  } .search-input {     text-align: center;     width: 400px;     margin: auto } .switch-inner {     vertical-align: middle; }   The div contains a switch toggle input . the detailed css is   Here's the actual behavior     And here's what I would


Show that all complex numbers $z \not= -1$ can be written as $z=\frac{1+it}{1-it}$

Show that for all complex number $z \not= -1$, with $|z| = 1$, can be written as $z=\frac{1+it}{1-it}$, with $t \in \mathbb{R}$.  I think this structure seems to be a stereographic projection from the unit circle in the complex plane. This observation is clear when we regard this equation : $\frac{1+it}{1-it}= \frac{1-t ^2}{1+t^2} + i \frac{2t}{1+t^2}$.  Instead of this solution, could we use the fact that $\frac{1+i \tan \alpha}{1-i \tan \alpha} = (1-\tan \alpha) + i 2 \tan \alpha$ for $\alpha \in (\frac{-\pi}{2}, \frac{\pi}{2})$?  BTW, this  has the same initial problem, but not the same final question


Does having too many files on a filesystem significantly impact io performance?

My sysadmin is telling me that we should remove old static files from a server and store them in a database instead because having too many files on a filesystem impacts the general performance of the system.  Is the impact significant?  We have about 20,000 files in a directory at the moment, and would expect to hit 100,000 sometime in the next few years.  This is on a relatively recent Ubuntu LTS system.  If 100,000 isn't significant, then what number would be?  Edit:  This is different from  because I don't care about directory performance, but rather about total system performance if the number of files on a system reaches an arbitrary number.  In my specific case, the sysadmin is arguing that Apache will slow down due to the total number of files on the entire system.


How do I run executable scripts in Nautilus?

When I double-click on a script in Nautilus to run it, the script just opens in my text editor with no option to run it. Using Nautilus, how do I run executable text files and/or scripts?


The link for duplicate answers is rendered as plain text

I was looking at an automatic flag for a duplicate answer on Drupal Answers, and I noticed the link is rendered as plain text, not a link.    If that makes any difference, I am a moderator on DA.


I am running Ubuntu server 20.04 LTS in a VM hosted on a NAS (Synology.) Primary purpose of this system is to ingest data for ELK. This is the master node. Configuration is:  Compute: Intel Celeron J3455 (4 cores allocated to the VM.) 1.5 (base) / 2.3 (burst) GHz Memory: 4 GB DDR3. Storage: 7200 RPM drive.  Virtualisation is propitiatory to Synology. Following is the systems usage:   I am planning to move this from the NAS to a workstation running:  VMWare ESXi (free) Compute: Intel Xeon W 1290 with 10 cores (20 threads) with 3.20 GHz base and 5.20 GHz Turbo frequency. Memory: 64 GB DDR4 RAM @ 2933 MHz Storage: 7200 RPM drive + PCIe M.2 SSD (Dell Class 40)  I am a self-funded student and I need to use this system as part of my final year perusing masters in software and systems security. I wanted assistance calculating systems requirements if the load on the system remains consistent. I am using Elasticsearch stack on this system. I am facing following issues:  System load is always over 4.0 is this due to IOPs issue? If so, will adding RAM during migration to another system help? Or does this require faster storage such as an SSD? Will providing following configuration help situation load and improve performance without over provisioning?  Compute: 3 processors x 2 cores per processor = 6 16 GB RAM Storage will be local (SATA, 7200 RPM  NAS grade drive.) What steps should I take to ensure I am not over provisioning and able to use the system for other projects too? Thank you.


Graph theory 27 cube cheese and mouse problem

A cubic cheese consists of 27 smaller cubes of cheeses (3x3x3). A mouse will eat the first cheese cube and then eat an adjacent cheese cube (no diagonal eating allowed). Show that the mouse can't end up eating the middle cheese cube last.  EDIT:   The mouse has to eat every cube and can't move into empty space.  Any ideas on how to show this?


singular homology of a simplicial complex

On Page 108 of the book Algebraic Topology, Allen Hatcher, the singular homology of a topological space $X$ is defined to be the homology of the chain complex by setting the $n$-chains $C_n(X)$ as the free abelian group with basis $\text{Map}(\Delta^n,X)$, where $\Delta^n$ is the standard $n$-simplex, and  the boundary map $\partial_n$ as $$ \partial _n (\sigma)=\sum_i (-1)^i\sigma\mid_{[v_0,\cdots,\hat v_i,\cdots,v_n]}, $$  where $\sigma$ is a map from $\Delta^n$ to $X$ and $\sigma\mid $ is the restriction of $\sigma$.    Let $K$ be a simplicial complex and let $|K|$ be the geometric realization of $K$. Suppose the vertices ($0$-simplices) of $K$ are $v_0,v_1,\cdots,v_k$, $k$ finite. Let $$ K_{n}= \text{Simplicial Map}(\Delta^n,K). $$ Then $$ K_n\cong\{f\in \text{Map}(\mathbb{Z}_{n+1},\mathbb{Z}_{k+1})\mid \text{ there exists a simplex } \sigma\in K \text{such that Im}f \text{ is the set of vertices of } \sigma\}.  $$ Here we use $\mathbb{Z}_{n+1}$ to represent the set of all vertices of $\Delta^n$ and use $\mathbb{Z}_{k+1}$ to represent the set of all vertices of $K$. Let $C_n(K)$ be the free abelian group with basis $K_n$. Analogous to the boundary map in singular homology, there is a boundary map $$ \partial_n: C_n(K)\longrightarrow C_{n-1}(K).  $$  Question:  Is the singular homology of $|K|$ same or different with the homology of the chain complex $$ \cdots C_n(K)\overset{\partial_n}{\longrightarrow} C_{n-1}(K)\overset{\partial_{n-1}}{\longrightarrow}\cdots\overset{\partial_1}{\longrightarrow} C_0(K) ? $$


Expected number of times a set of 10 integers (selected from 1-100) is selected before all 100 are seen

Suppose I have a set of 100 integers. I randomly choose 10 of those, make a note of which ones I selected, and repeat the process. What is the expected number of times this process must be repeated before I see all 100 integers?  I'm also greatly interested in how this is calculated as I'm trying to increase the expected number of times this process is repeated by changing the set sizes.


How to give more space to Ubuntu in triple boot?

I have 3 Operating Systems on my machine - Windows, Kali and Ubuntu. I wish to increase the space given to Ubuntu from Windows. I'm not sure how to proceed in this case. Here are my partitions as viewed through Ubuntu  In the above image: sda3 - Windows (C Drive) sda4 - swap sda5 - Ubuntu sda7 - Windows (D Drive - Recovery) sda8 - Kali  I wish to allocate space from sda3 (C Drive) to sda5 (Ubuntu).


First, I love SO. But, how can someone know how old a question is if the year is missing from all the dates?  It seems important to know how old a question is.  Am I missing it somehow? Thanks.


Access the inner class type of a template

I'm new to C++, I want to make a simple abstraction where I pass an implementation of A (and its sub-class B) to C. But I'm getting the error T::B does not name a type class A { public:    class B {    public:       virtual void func1();    }; }; template<typename T, typename std::enable_if<std::is_base_of<A, T>::value>::type* = nullptr> class C {    /* ERROR : T::B is not a type */    void func2(T::B b) {       b.func1();    }    /* ERROR : TB is not a type */    typename T::B TB;    void func2(TB b) {       b.func1();    } };


Cardinal arithmetic. Does hold $A>B\Rightarrow 2^A>2^B$?

Given cardinal numbers $A$ and $B$. Does there hold  $$A>B \quad\Rightarrow\quad 2^A>2^B\quad?$$  In other words: is the cardinality of a set uniquely determined by the cardinality of its power set? My first guess was Yes. But then I thought about the continuum hypothesis and that without it there might be a cadinal $\aleph_1$ with $\aleph_0<\aleph_1<\mathfrak c$. I was not sure if $2^{\aleph_1}$ falls nicely between $\mathfrak c$ and $2^{\mathfrak c}$. So it might depend on CH? I have not much experience with cardinal arithmetic, so no clue how to think about this.


Show that if $a$, $b$ are positive integers, then we have: $\gcd(a,b) = \gcd(a + b, \mathrm{lcm}[a,b])$.


Example of a ring for which $rs \neq 0$ but $sr = 0$.

I am looking for an example of an associative noncommutative ring $R$ with the following property: for $r,s \in R$, $$ rs \neq 0, \text{  but  } sr = 0. $$ Moreover, do rings for which this cannot happen have a name?


Is the Dual nature (wave - particle duality) of Matter completely proved or just a theory and are the objects (water,rubber ball, car, apple etc.) that we see all around us in day to day life exhibit dual nature (wave - particle duality) in their natural state of existence (as perceived by the human eye) or only when they are broken down to the molecular level?


NullPointer exception while setting Bitmap in ImageView

I wanted to load an image into an imageview of the app from my mobile storage. Just to be sure, I kept the image in both internal and external storage. But while compiling, I am getting a null pointer exception. I also placed the same image in drawable folder and tried to set the imageview from there. But faced the same issue. Can anyone help me here!. I am adding the code snippets that I tried.   Method-1:  File imageFile = new File(Environment.getExternalStorageDirectory(),"golden_eagle.jpg"); if(imageFile.exists()) {     Log.v(LOGTAG, "Image file exists");     BitmapFactory.Options options = new BitmapFactory.Options();     options.inPreferredConfig = Bitmap.Config.ARGB_8888;     Bitmap outputImageBitmap = BitmapFactory.decodeFile(imageFile.getAbsolutePath(), options);     ImageView imageView = (ImageView)findViewById(R.id.sample_image);     imageView.setImageBitmap(outputImageBitmap); }   Method-2:  Bitmap bitimage; bitimage = BitmapFactory.decodeResource(getResources(), R.drawable.golden_eagle); if(bitimage == null) Log.v(LOGTAG,"bitimage is empty"); else Log.v(LOGTAG,"bitimage is not empty"); ImageView imageView = (ImageView)findViewById(R.id.sample_image); imageView.setImageBitmap(bitimage);   Method-3:  ImageView imageView = (ImageView)findViewById(R.id.sample_image); int resid = getResources().getIdentifier("golden_eagle","drawable",getPackageName()); imageView.setImageResource(resid); //imageView.setImageResource(R.drawable.golden_eagle);   Method 4:  //Some class extending AppCompatActivity asyncTask.execute();  //some asyncTask  onpostExecute(){     //Method:1     //Method:2     //Method:3 }   All the above methods ended with same compilation error  12-24 20:16:42.520 1349-1349/? E/AndroidRuntime: FATAL EXCEPTION: main     Process: com.example.home.BequestProto, PID: 1349     java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.home.BequestProto/com.example.home.BequestProto.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setImageResource(int)' on a null object reference     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2667)     at android.app.ActivityThread.-wrap11(ActivityThread.java)     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1494)     at android.os.Handler.dispatchMessage(Handler.java:111)     at android.os.Looper.loop(Looper.java:207)     at android.app.ActivityThread.main(ActivityThread.java:5776)     at java.lang.reflect.Method.invoke(Native Method)     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.ImageView.setImageResource(int)' on a null object reference     at com.example.home.BequestProto.MainActivity.onCreate(MainActivity.java:75)     at android.app.Activity.performCreate(Activity.java:6582)     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1113)     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2532)     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2667)      at android.app.ActivityThread.-wrap11(ActivityThread.java)      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1494)      at android.os.Handler.dispatchMessage(Handler.java:111)      at android.os.Looper.loop(Looper.java:207)      at android.app.ActivityThread.main(ActivityThread.java:5776)      at java.lang.reflect.Method.invoke(Native Method)      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)    The Error is occurring at at the line where I am setting image to imageview. I know that It is a null pointer exception because some where I forgot to initialize the required object. I want to know which one.


Itemize item on new line when nested in a description

I have a itemize list within a description list. Each description defines a item and the content is an itemize list. (As per the code example below and the output at the end of this question)   \documentclass[a4paper,11pt]{article} \begin{document} \begin{description}     \item[foo bar foo bar]      \begin{itemize}         \item Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.         \item Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.      \end{itemize}     \item[bar foo]     \begin{itemize}         \item Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.         \item Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.      \end{itemize}  \end{description} \end{document}   I would like my itemize list to be flush left but with no other content the list starts to the right of the description item. If I try to end the line by going       \item[foo bar foo bar] \   I get the following complaint   ! LaTeX Error: There's no line here to end.   Which seems reasonable, there is no line to end. How do I force latex to start the itemize list below the description?   Output


Why won't the location of the light affect the direction of the shadows?

So I'm new to blender, and I've been working on a project with a tutorial. (some of you might know this)   I was going through quite smoothly until I noticed that no matter where I place my light, the rendered version appears the same. (directly above the objects) I tried different types of lighting, different brightnesses, (light is currently at around 4.000 brightness) nothing works. But if I delete the light, it becomes dark and grainy. (I checked on the side bar, there are no other light sources or objects..)  Even if I put the light source under my objects, the rendered version appears the same.  Am I doing something wrong? Why can't I change the direction of the light?        Uh.. Since I'm not allowed to post more than 2 links, I'll just post extra info here (also replying to @bertmoog)  I tried changing the light types, but they all do nothing (except for Sun, of course, and Hemi, which is interpreted as Sun for some reason) The brightness is set on 4.200, color set to white, shadows enabled, etc. But it still won't do anything. As you can see, nothing appears in the preview.    EDIT: I found that by rotating the sun to point where I want it to, it works almost like normal point lighting (sorta). This pretty much solves my problem, but still, why won't the other lighting modes work?


I often use the execv() function in C++, but if some of the arguments are in C++ strings, it annoys me that I cannot do this: const char *args[4];  args[0] = "/usr/bin/whatever"; args[1] = filename.c_str(); args[2] = someparameter.c_str(); args[3] = 0;  execv(args[0], args);  This doesn't compile because execv() takes char *const argv[] which is not compatible with const char *, so I have to copy my std::strings to character arrays using strdup(), which is a pain. Does anyone know the reason for this?


Let $A$ is in $M_3(\mathbb R^3)$ which is not a diagonal matrix. Pick out the cases when $A $ is diagonalizable over $\mathbb R$:  a. when $A^2=A$;  b. when $(A-3I)^2=0$;  c. when $A^2+I=0$.  My attempt is if $A$ is diagonalizable then there is some invertible $P$ s.t. $PAP^{-1}$=$D$.   Then case a. gives $D^2$=$D$. then $D$ is either $0$ or $I$. Which gives $A$=$0$ or $I$..a contradiction to the fact $A$ is not diagonal. But I am not sure about my approach. Similarly I arrive contradiction for other cases. Please help.


I have a late 2013 27" iMac running  Yosemite, and it randomly shuts off every now and then. I tried everything Reset SMC. Diagnostics, reformat Macintosh HD but still occurs and running out of options.


Using ordinal indicators with Roman numerals

Is the use of ordinal indicators with Roman numerals grammatical and if grammatical, is it unneeded? For instance: She is in VIIth standard. What about in case the ordinal indicator was written as a superscript?


Regex on a directory on Linux and Windows

I am trying to check if a directory represented as a String contains as a substring one of the following strings     \.. OR ..\ OR /.. OR ../    however the following code :   System.out.println("C:\\mytext.zip".matches(".*(\\..|..\\|/..|../).*"));   gives true instead of false,where can be the problem in the regex?


Can a Thallid create saprolings at end of combat phase and still kill attacker

Scenario: I have  and a  with 9 spore counters. My opponent attacks with a 10/10 and I block with my Thallid (also 10/10). I want to block and kill his 10/10, and then create 3 saprolings before Thallid hits the graveyard.  My assumption is that during  I assign 10 points of damage to my opponents creature, as his creature assigns 10 to my Thallid. Then during the  I can activate it's ability to create saprolings because damage was already assigned.   Am I correct?


Issue serializing new bitmap image in xml file

I have an error " A Generic error occured in GDI+" when i try to serialize a new bitmap image in my xml file. The error only happen when there is an existing data in the file, if i'ts empty the serialization works.  Here is the code:  [Browsable(false), EditorBrowsable(EditorBrowsableState.Never)] [XmlElement("LargeIcon")] public byte[] LargeIconSerialized {     get     { // serialize         if (_Photo == null) return null;         using (MemoryStream ms = new MemoryStream())         {             _Photo.Save(ms, ImageFormat.Bmp);             return ms.ToArray();         }     }     set     { // deserialize         if (value == null)         {             _Photo = null;         }         else {             using (MemoryStream ms = new MemoryStream(value))             {                 _Photo = new Bitmap(ms);             }         }     } }   Where I serialize:  public void EnregistrerNewUtil(string folderPath, string fileName) {     Stream fStream;      try { // si ouvert ferme le fichier         fStream = new FileStream(folderPath + fileName, FileMode.Open, FileAccess.Write, FileShare.None);         fStream.Close();     }     catch{         // déjà fermé     }      using (fStream = new FileStream(folderPath + fileName, FileMode.Truncate, FileAccess.Write, FileShare.None))//vider avant de réécrire la liste     {         XmlSerializer xmlFormat = new XmlSerializer(typeof(UtilisateurList));         xmlFormat.Serialize(fStream, list);     } }   edit  I should add that i serialize a list, here is the code :      [XmlRoot("Utilisateur_List")]     public class UtilisateurList     {         public UtilisateurList() { Items = new List<Utilisateur>(); }         [XmlElement("Utilisateur")]         public List<Utilisateur> Items { get; set; }     }   Thanks


How can I stop wrong autocorrect suggestions?


Flow to get all site collections in a tenant

Created a Flow by using the below REST call and stored the title and Urls in another list  /_api/web/lists/getbytitle('DO_NOT_DELETE_SPLIST_TENANTADMIN_ALL_ SITES_AGGREGATED_SITECOLLECTIONS')/items?$select=Title,SiteUrl   Here the problem is it is returning only 100 items but I have 360 site sollections.   Not sure what I am doing wrong


Problem If $a$, $b$, $q=\left(\dfrac{a^2+b^2}{1+ab}\right)$ are natural numbers, then $q$ is a perfect square. Are there infinitely many $\left(a,b,q\right)$ triplets?  I have tried to prove the problem assuming that $q$ is not a perfect square and hoped to get some contradiction but unfortunately I can't seem to get it. Regarding the second part of the problem, I think that probably it is not true. In case it is true I add the following problem to the original statement.  Can there be found expressions for $a$, $b$ and $q$ such that it generates an infinitely many (but not necessarily all) such triplets?  Any help will be appreciated.


Can I complete the Pokedex with only 6th Generation games?

I just bought Pokemon Alpha Sapphire for myself and Omega Ruby for my friend. I also played the X/Y games and I have Pokebank. The problem is: I didn't play games of the 5th and 4th generation. I basically skipped the Nintendo DS games and started playing again with the release of Pokemon X/Y.  My question is: Is it possible to complete the Pokedex with only the four 6th Gen games (X, Y, Omega Ruby, Alpha Sapphire)? Or will there be some unobtainable Pokemon?   I'm not talking about the rare legendary ones like Celebi, Arceus etc. I just want to know whether I need to use a 5th gen game or not to "Catch 'Em All".


why is assigned java variable behaving like a reference?

Hi i dont know if this question has already been asked before but this is getting really annoying...  Ok so i have a class called Test:  public class Test {     public static Test testObject = new Test(5);//Creates a test object with an initialized value of 5;     int number;     public Test(int number){         this.number = number;     } }   And of course my main class...  public class Main {     public static void main(String args[]){         Test anotherObject = Test.testObject;//this is not a reference right?         System.out.println(Test.testObject.number);//This prints 5         anotherObject.number = 50;// changing anotherObject's number. NOT testObject's Number.         System.out.println(Test.testObject.number);//if that was true this whould of still been 5, but it prints 50!!?? why does testObject's number even change if im not even changing that value?     } }   if there is something im doing wrong please let me know, thank you very much!!


Are directory paths stored in UNIX filesystem?

How is the path of a directory retrieved in UNIX filesystems? Since directories are pointing to subdirectories it seems like the path need to be set together from the parent and parent parents etc.  Is this how it's done or are the paths stored somewhere in the inodes?


b = [[1,1],[1,0]] a = [[0]*2]*2 for i in range(2):     for j in range(2):         a[i][j] = b[i][j] print(a) print(b)   and the outputs are:  [[1,1],[1,0]] [[1,0],[1,0]]   I don't know where going wrong. Isn't the a should be the exact same as the b?


Can't enter password after upgrade to 18.04

After upgrading to 18.04 the login prompt on my laptop acts really strange: It wait's for the input of the user name and after pressing ENTER it behaves as if the ENTER key is stuck and gives no chance to enter the password. Here is a picture:  The exact step that happen are as following: 1. It shows the normal login prompt  Ubuntu 18.04.1 LTS computername tty1 computername login: _  2. It wait's for the input of the username and until you entered the username it behaves normally. 3. As soon as you press ENTER to confirm the username it immediately goes on to  Password: Password: Login incorrect.  Without waiting for any user input. So there is no chance to login to this PC anymore?!


Suppose $a_i$ are dinstinct positive integers $\forall1\le i\le n$. Prove that $$\frac{a_1}{1^2}+\frac{a_2}{2^2}+...+\frac{a_n}{n^2}\ge\frac{1}{1}+\frac{1}{2}+...+\frac{1}{n}$$  My approach: I will procede by proof by contradiction. If $a_1,a_2,...,a_n$ is not a permutation of $1,2,...,n$, then one can reduce $a_k (\exists a_k>n)$ to a value $<n$ and $>1$ So that $a_1,a_2,...,a_n$ is a permutation of $1,2,...,n$. From now on assume $a_1,a_2,...,a_n$ is a permutation of $1,2,...,n$. Now, by the rearrangement inequality, $$\frac{a_1}{1^2}+\frac{a_2}{2^2}+...+\frac{a_n}{n^2}\ge\frac{1}{1^2}+\frac{2}{2^2}+...+\frac{n}{n^2}=\text{LHS}$$ with the rearrangement sequence being $\{a_1,a_2,...,a_n\} \text{and} \{\frac{1}{1^2},\frac{1}{2^2},...,\frac{1}{n^2}\}$.  Is this proof correct? Is there a better way of doing it?


Do I need a transit visa for Germany on the way to Canada?

I’m a new immigrant to Canada. I’m traveling from Cairo Egypt to Toronto via Germany or any other European country with an Egyptian passport and a Canadian visa.  Will I need a transit visa for Germany or Europe? How can I get one in Cairo? How much time will it take?


Approximate $\sqrt{7}$ using binomial theorem

How does one deduce the approximation of $\sqrt{7}$ to be $\frac{10837}{4096}$ by taking $x = \frac{1}{64}$ in the expansion of $\sqrt{1-x}$?  How should you approach such a question? I assume the first step would be to expand $\sqrt{1-x}$ which can only be done through binomial theorem (afaik).   That gives $\sqrt{1-x} = 1 - \frac{1}{2}(x) - \frac{1}{8}(x^2)$ + ... and so on.  How do you continue? I can't seem to figure out how taking $x = \frac{1}{64}$ accomplishes anything.


How to explort content from file into variable?

I need save into variable the file content (json string).  I try several methods, in particular:  #!/bin/bash  myjson=cat patch/file.jsn   but nothing not work.   How to correctly implement this task?


Allow more than one @name notification per comment

Now this is probably a surprise to many since I always see thousands of comments like :  @Sarfraz, @balpha just told you they did in the first comment he wrote. Also, allowing only one Stack Overflow user to be logged in per IP address would be problematic for networks with shared IPs.  What's surprising is that apparently the notification will trigger only for Sarfraz and not for balpha. As you can see from the :  Only one person can be replied to at a time in a comment. The first one in the string wins.  I propose to increase the limit to let's say 3 or 5 people; it won't hurt (never seen that feature being abused) and especially many people believe it already works that way.


Discrete Uncorrelated Dependent Random Variables

Trying to find examples of discrete and continuous random variables that are dependent and uncorrelated.    For the continuous I take standard normal $X \sim N(0,1)$ and $Y=X^2$.  By symmetry it is clear that $E(XY) -E(X)E(Y) = E(X^3) - E(X)E(X^2) = 0 - (0)(1) = 0$, so uncorrelated.   But for events $A = \{0 < X < 1\}$ and $B = \{X^2 > 1\}$, I see that $P(A \cap B) = 0$ which does not equal $P(A)P(B)$ since both $A$ and $B$ have nonzero probability. Thus, $X$ and $Y$ are dependent and uncorrelated.  Now I am having trouble constructing a simple example with discrete random variables.


In a test, there is a question I need to translate. "People of the opposite gender need to be treated with respect just as much as I do". What is the correct word for it - "the opposite gender" or "the opposite sex"? Does it have the same meaning?   This psychological test is for children


Is there a specific area for new users that are new to coding where they can go and ask questions without being blocked for asking a question they may not have the answer to or isn't sure how to correctly ask a question. I know that there is a section for FAQ to try to explain how to ask a good question but for people who are learning and want to get the opinions of experienced coders, it can be hard to come here and ask a question. So again, is there a community that is open to helping new coders that may not always know how to ask the question they are trying to get an answer to?


I do not know why Ubuntu Software Center does not download VLC for me. when i click on VLC player it displays a pop-up and says   **Package Dependencies can not be resolved** "This error could be caused by required additional software packages which are  missing or not installable. Furthermore there could be a conflict between   software packages which are not allowed to be installed at the same time."


Remove rep. gained from answering a question that is a duplicate?

When answering questions that are except duplicates of other questions i feel the site only gets more cluttered, especially when the answer also is a copy of an old answer. The last time the subject was brought up (in 2009*) there seemed to be a consensus that rep. gained from answering a question that is then getting marked as a duplicate should remove rep gained from that since you are not adding any value to the site. * I'd like to know if that has changed over the last years and if there is a need to do that. From my personal experience with SO i have found that answering trivial questions that have been asked a thousand is "rewarded" with lots of rep while searching for duplicates is not. Since i feel "getting rep" is what is used to guide users into the direction of what is "the right way to go about asking and answering questions on SO" maybe that should get changed? On the other hand maybe we should  and let that rest? While i'd rather like  (i hope i don't misquote there):  Don’t answer questions that have already been answered elsewhere. Yeah, you might earn a couple of points of reputation, but, because you are duplicating content, you are actually making the Internet worse. [...]  luckily what i think doesn't matter that much but instead there is meta. So let me know  For a proposal there is not much more to say than aggregating the old thread: On closing a question as duplicate:  Question asker loses all rep gains or losses Answers lose all rep gains or losses  On reopening a question that was previously closed as duplicate  Question asker has the rep reapplied Answers have rep reapplied.  The people that provided the duplicates show be rewarded when the question is closed as a dup. There should be an initial recalc when this feature gets accepted and implemented Another way could be not to remove the rep gained from dup. question but lower it to show that, while answering is valuable, it's not as useful for dups.


I am using macOS 10.15.6 with zsh. I was creating a small script for bash and ksh, and wanted to test it quickly in zsh, and found that zsh was behaving strangely compared to other shells. Here is the culprit line in my code (simplify to the extreme): ls something.* 2> /dev/null  In the case that there are no file beginning with "something.", then you should get no output, no error, nothing. Just nothing. It just works with bash, ksh and sh. So back to my problem, on macOS I have this version zsh 5.7.1 (x86_64-apple-darwin19.0) the output I get when running the previous command is the following: % ls something.* 2> /dev/null zsh: no matches found: something.*  Is that normal? Why the stderr was not redirected to /dev/null??? This is one of the first time I am really using zsh, so I might have missed something here. I have read the documentation at this link, and I don't see how this simple line is wrong according to the zsh documentation... (  ) Thank you in advance for your help!


Error on boot: "failed to connect to lvmetad" after 18.04 install

I have been using Ubuntu 16.04 for a couple of years now, and recently did an upgrade to 18.04. This was not a fresh installation, but rather an upgrade as per instructions, from 16.04 to 18.04. Everything went to plan, except that now whenever my computer boots up, it takes an eternity to boot, and briefly flashes up the following error:  failed to connect to lvmetad. Falling back to device scanning Gave up waiting for suspend/resume device /dev/mapper/ubuntu--vg-root: clean, 550775/30154752 files, 23702732/120600576 blocks   If I wait long enough, then the computer boots just fine after this. Looking online I see that LVM is a feature which works a bit like a virtual RAID system, compiling multiple drives into one virtual drive/partition/s etc. I have however never used this.  Is LVM something mandated by Ubuntu 18.04? Do I have to use it? If not, how do I get rid of it?  My computer never had an issue before and always booted very quickly. I only have a single SSD drive in my machine, so LVM would be superfluous to requirements for me.  Thanks for the help guys!  Subsequent research has lead me to believe this is a known bug. I have used the suggestion here (to modify GRUB such that it does not resume)    Furthermore I also used this link to modify /etc/initramfs-tools/conf.d/resume and disable resuming as explained in   Apparently this affects a machine's ability to resume from hibernation too, so not too good a workaround if you wish to retain that feature (which I do not).  With that done the boot time has been reduced by about 20 seconds, however I still get the original message flashing up, which means it's still looking for some virtual volume or swap file that does not exist (I don't use one, who would!).  Hopefully this helps somebody, or at least until the bug is fixed at some point.  FYI - Bug report can be found


Python: The confusion of value assignment in 2-dimension list

I define a two-dimension array in python like this:  a = [[1]*3]*3   and I want to assign one element to be 2, like:  a[1][1] = 2   However, a turns out to be:  [[1,2,1],[1,2,1],[1,2,1]]   Instead of what I thought like this:  [[1,1,1],[1,2,1],[1,1,1]]   Anyone has any idea?


What is the meaning of || symbol in circuit analysis equations?

I cannot figure out the meaning of the logical OR ( || )  in this context. Rin = R1 +R2||R4  in this circuit  This was taken from this video  *at around 6:00 of the video


How can I programmatically pause an NSTimer?

I'm using an NSTimer to do some rendering in an OpenGL based iPhone app.  I have a modal dialog box that pops up and requests user input.  While the user is providing input I'd like to "pause" i.e. something like this:  [myNSTimer pause];   I'm using this syntax because I've been doing things like:  [myNSTimer invalidate];   when I want it to stop.  How can I programmatically pause the NSTimer?


Is your wall the same as your timeline on Facebook?

Would like to post to my "wall". Is that the same as the timeline? How does the timeline differ from the newsfeed?


Why this code returns 43 as the result, I expect it to result 42. The code is as follows:  function say667() {   // Local variable that ends up within closure   var num = 42;   var say = function() { console.log(num); }   num++;   return say; } var sayNumber = say667(); sayNumber();


The reputation tab in Network Profile is showing incorrect graphs

The  in my Network Profile is showing that I have a rep. of 3,728 in Economics Meta Stack Exchange. That's my rep. in Puzzling Stack Exchange and moreover I don't have an account in Economics Stack Exchange.  It's also not showing the graphs of sites where I have more than 200 rep.  I tried visiting some others' Reputation tabs too. For some it's consistent and for others it's again showing inconsistent data. For example, José Carlos Santos doesn't have an Internet of Things account but his  showing he has a rep. of 3,972 in IOT Meta SE.  This is his rep. in History of Science and Mathematics


How are TRUE/FALSE booleans acceptable in lambda calculus?

I'm working my way through an introduction to lambda calculus, and it seems to start from the premise that TRUE and FALSE (as well as everything else) can be encoded as functions. From this, they define these two functions as: \begin{align} T & = \lambda a b.a\\ F & = \lambda a b.b \end{align} Now, I'm not a genius, but it seems like this looks less like 'booleans' and more like 'first' and 'second' (or left and right, if looking at the equation). Is this just an agreed-upon convention or how is that allowed? For example, what if I had a function that passed the value of 0 or False (or low-voltage or whatever represents zero in the physical world), some examples being: \begin{align} & False=0 \\ & True=1 \\ & T(False)(False) \\ & T(0)(0) \\ & T(50)(12)  \end{align} Or even passing more than two values to the function, how could one tell where it is True or False? $$T(2)(3)(4)(5)(6)(7)$$ Maybe I'm missing the boat, but basically I'm curious why what seems to me like such an arbitrary definition of booleans would be allowed in lambda calculus, other than as a convenience where nothing else exists.


When log is written without a base, is the equation normally referring to log base 10 or natural log?

For example,  presents the equation  $$\omega(n) < \frac{\log n}{\log \log n} + 1.4573 \frac{\log n}{(\log \log n)^{2}},$$  but I'm not entirely sure if this is referring to log base $10$ or the natural logarithm.


Let $X := [0, 1]$ , the closed unit interval. Then     $$\|f\|_2 := \left(\int_{0}^{1} |f(t)|^2 dt \right)^{\frac{1}{2}}$$   defines a norm on the set of all continuous real/complex valued functions on $[0, 1]$. Two properties of norm were easy to verify. But i am stuck in triangle inequality of the norm. For $1\le p<\infty$, is $\|f\|_p := \left(\int_{0}^{1} |f(t)|^p dt \right)^{\frac{1}{p}}$ also a norm ?    non-negativty is trivial and $\|f\|_2 = 0 \iff $ $f=0$. $\|\alpha f\|_2 $ = $\left(\int_{0}^{1} |\alpha f(t)|^2 dt \right)^{\frac{1}{2}}$  $= |\alpha|\left(\int_{0}^{1} | f(t)|^2 dt \right)^{\frac{1}{2}}=|\alpha |\cdot\|f\|_2$ for all $\alpha \in \mathbb{R}$ $\|f+g\|_2 $ $= \left(\displaystyle\int_{0}^{1} |f(t)+g(t)|^2 dt \right)^{\frac{1}{2}}$ $\le\left(\displaystyle\int_{0}^{1} \left(|f(t)|+|g(t)|\right)^2 dt \right)^{\frac{1}{2}} \le$ ?


What's the book by Heinlein that contains all other books?

I remember a thread here in the SciFi Stack Exchange about the longest sci-fi series. Someone mention a standalone Heinlein book that seemed to somehow include all other books ever written in its story. Does anybody know which book is that?


How many "super imaginary" numbers are there? Numbers like $i$? I always wanted to come up with a number like $i$ but it seemed like it was impossible, until I thought about the relation of $i$ and rotation, but what about hyperbolic rotation? Like we have a complex number $$ z = a + bi $$ can describe a matrix $$ \begin{bmatrix} a & -b \\ b & a\end{bmatrix} $$ You can "discover" $i$ by doing (which is used for another discovery) $$ \begin{pmatrix} a \\ b \end{pmatrix} \cdot \begin{bmatrix} c & -d \\ d & c\end{bmatrix} = \begin{pmatrix} ac - bd \\ ad + bc \end{pmatrix} $$ $$ (a + bi) \cdot (c + di) = ac + adi + bci + bdi^2 $$ From here on you can infer that $ i^2 = -1 $.  So what if we do the same thing, but a different matrix? $$ z = a + bh$$ can describe a matrix $$ \begin{bmatrix} a & b \\ b & a\end{bmatrix} $$ and we can discover it the same way $$ \begin{pmatrix} a \\ b \end{pmatrix} \cdot \begin{bmatrix} c & d \\ d & c\end{bmatrix} = \begin{pmatrix} ac + bd \\ ad + bc \end{pmatrix} $$ $$ (a + bh) \cdot (c + dh) = ac + adh + bch + bdh^2 $$ From here we infer that $ h^2 = 1 $.  Also $$ e^x = 1 + \frac{x}{1!} + \frac{x^2}{2!} + \frac{x^3}{3!} + \frac{x^4}{4!} + \frac{x^5}{5!} + \cdots  $$ $$ \begin{align} e^{xh} & = 1 + \frac{xh}{1!} + \frac{(xh)^2}{2!} + \frac{(xh)^3}{3!} + \frac{(xh)^4}{4!} + \frac{(xh)^5}{5!} + \cdots \\ & = 1 + \frac{xh}{1!} + \frac{x^2}{2!} + \frac{x^3h}{3!} + \frac{x^4}{4!} + \frac{x^5h}{5!} + \cdots \\ & = \cosh{x} + h \cdot \sinh{x} \end{align} $$  How many more numbers like this are there? And does that mean that for each set of trigonometric functions there exists a number which can turn multiplication into a rotation using those trigonometric functions?  (Sorry if I got some things wrong)


What is the difference between "Ms." and "Mrs."?

What is the difference between "" and ""?  I always assumed they are the same, until today I found both of them in one place for choice, seems that there's a difference between them:  N.b. I couldn't find a difference on the dictionary (see links to the words).


ls output: group directory symlinks with directories

Using the --group-directories-first option I can group the ls output as follows:  [a-z directories] [a-z files and symlinks]   However, I would like symlinked directories to appear with the rest of the directories, like this:  [a-z directories and symlinked directories] [a-z files and symlinked files]   Using the -L (dereference) option gets me half way there. Symlinked directories are sorted the way I want, but they appear just as normal directories, the information that they are symlinks is lost.  Is there any way to group directories and symlinked directories first, while still preserving the colour coding showing which directories are symlinks?


Proof that $ \sin \sqrt{x}$ is not periodic function using contradiction method?

Proof that $ \sin \sqrt{x}$ is not periodic function using contradiction method ?   My approach For periodic $$f(x+T)=f(x)$$ Let $x=0$ $$\sin \sqrt{(T+0)}=\sin\sqrt{0}$$ $$\sqrt{ T} =n\pi$$ Let $x= T$ $$\sin \sqrt{2T}=\sin\sqrt{T}$$  After this I can't able to solve


Please let me know which post a users' vote was removed from when a user is removed

Here is my previous query:  which was resolved when it was found that a user was deleted therefore it showed as no vote.  Now it looks like this:    Can we show which post the rep was deleted from (aka which post a vote was removed)?  In this case I know which post it is referring to, but in the future I may not.  Can we show:    Or something like that?


Pluralization rule is different when we say, 10 pound note and 10 pounds?

Possible Duplicate:          We usually say "10 pounds", but for a single bill we say "10 Pound note" and not "10 pound(s) note". And when we have a lot of notes we say again "10 Pound notes". Why this disparity?


How many different magical damage qualities can a single weapon have & how it relates to price?

For this question I'm talking about things like flaming/ flaming burst or icy burst/ frost brand, shocking burst, brilliant energy, thundering, and so on.   I'm excluding properties that deal with alignment issues, harm a specific type of creature, dance/ defend, increases distance, returns it to you if thrown, etc.   Also, I'm wanting to know how these interact with the item's price (for instance some will say +3 price, so does that mean that it counts as a +3 weapon, even if it doesn't state it does?)    RAW is good, but tested houserules work just as well.


Why were the Jedi who tried to arrest Palpatine so rubbish?

After Anakin informs Windu that Palpatine is a Sith Lord, Mace and 3 Jedi (Kit Fisto, Agen Kolar, and Saesee Tiin) go to arrest him. After a bit of banter Darth Sidious then kills the three Jedi almost instantly.     Why were they so rubbish?! And why was Windu so much better? They were all on the council IIRC. No wonder Palpatine was making so many funny faces.


If a and b are co-primes and $n$ is a prime then prove that $\frac{a^n + b^n}{a+b}$ and $(a+b)$ have no common factors unless $(a+b)$ is a multiple of $n.$   I am unable to proceed, please help.


How can it be that almost all the variance is explained by the first PC?

I have a data matrix $X$ and I perform a PCA on this data with:  %// Subtract the mean from the data Y = bsxfun(@minus, X, mean(X));  %// Obtain the PCA solution by calculate the SVD of Y [U, S, V] = svd(Y);  %// Compute variance explained rho = diag(S).^2./sum(diag(S).^2);  %// Plot variance explained plot(rho, 'o-') title('Variance explained by principal components'); xlabel('Principal component'); ylabel('Variance explained');   I get this plot    What is the reason for this to happen? It cannot be correct that only the first PC can explain all the variance.  My data looks like  price       crime      nox        rooms      dist          radial  proptax    stratio   lowstat   lprice     lnox      lproptax ========================================================================================================================== 24000       .006       5.38       6.57       4.09          1       29.6       15.3       4.98   10.08581   1.682688    5.69036   21599       .027       4.69       6.42       4.97          2       24.2       17.8       9.14   9.980402   1.545433   5.488938   34700       .027       4.69       7.18       4.97          2       24.2       17.8       4.03    10.4545   1.545433   5.488938   33400       .032       4.58          7       6.06          3       22.2       18.7       2.94   10.41631   1.521699   5.402678   ...   so the values of first attribute are much higher than the rest. Can this be the reason to the weird "variance explained" plot?


If you create the Hell Fire ring (the new one) with a level 1 monk, does i still roll level 70 stats?

The Hell Fire ring does not have a level requirement. It also has a chance to roll Main stat.  Will there be any difference between making it with a level 1 monk, as opposed to a level 70 monk. Will the stats be the same? Meaning will they roll at their level 70 equivelant, as a higher stat?


I recently just completed an exercise which states an atomic domain $A$ is a UFD $\iff$ it satisfies the ascending chain condition on principal ideals. This is all well and good, but because this is an if and only if statement, that seems to suggest there are atomic domains that DON'T satisfy the ACCP. Does anyone know of such an example? I would imagine you need something like the algebraic numbers but I am unsure.


(Predicate Logic) ∀x ∈ N(x > 1 → ∃k ∈ N∃m ∈ N(m ≡ 1(mod 2) ∧ x = 2^k⋅m))

Can anyone show me how to prove this statement? I'm very confused. I have tried substitute numbers into each x, k and m, it seems this statement is true but it needs to be proved by mathematical methods.  Thank you!


Box blur effect on texture (soften edges)

How to soften edges of texture, 'rounding' it? The actual problem is to soften edges of QR code width width n pixels, like . I need some simple algorithm without heavy calculations, or at least some ready made libraries in Java/C++.


What is the maximum force you can exert on the ground with one leg?

You are standing on hard floor. Clothes weigh negligibly. You move only your leg. Everything else remains stationary. Assume you are made of the same material as the average human. Can the force exerted by the one leg alone exceed your body weight?


I have been designing a neural network to perform predictions on construction item costs. I've developed a core set of predictors that seem to describe the problem space well - they appear to be highly correlated with the dependent variable (the construction item cost) and generally uncorrelated with each other.  These predictors cover a range of features including:   Quantity of work Time of year (month / quarter) Location (by county or larger regions) National construction cost index Union worker prevailing wages Material cost indices   The neural network architecture is multi-layer preceptron (MLP) trained using resilient back-propagation (RProp).  Though I typically use less than ten inputs, the network has around 60-70, due to conversion of several inputs to 1-of-N form.  I'm using only a single hidden layer and have generally restricted the neuron count from 9 to the number of inputs in the network.  I iterate the training anywhere from 1000 - 8000 times, depending.  I typically split the data 85% / 15%, test / train.  I've not done cross-validation because I'm not yet comfortable that I really have the right number / combination of predictors to start comparing models for performance.  For evaluation, I use the SSE to keep an eye on bias / variance changes, and an overall "success" metric which records the number of times the network successfully predicts a cost within a given percentage of the actual value, typically 15%.  To this point, I've found a couple "sweet spots" in learning rates and hidden nodes that yield good results with the test data without overfitting the training data greatly.  However, I seem to have hit a limit.  Right now, I can achieve 65% "success" on the test data (i.e., the network successfully predicts within 15% of the actual value 65% of the time), which is encouraging.  I've achieved higher results, but the model starts to overfit the training data. That is, once the model hits about 75% success on the training data, generalization starts to degrade.  It seems I should be able to achieve better success on my test data than I am.  But at this point, I have to admit that my testing has gotten a bit ad hoc and I'm not really sure how to go about more thoroughly searching for better parameters or identifying performance characteristics that might give me a clue as to what's wrong...


Road segments reconstruction from GPS trajectories

We have a 10,000 base of vehicle mounted moving devices which report their GPS position on a time based schedule. All that data is currently being stored in our database for several business related purposes. We think It could also provide us a base for building our own maps, but we really don't know how could this be achieved.   There must be some way to aggregate individual data points (coordinates) into line segments, thus making streets.


Cheapest way to get money in Prague with a London bank account

I am travelling to Prague from London for a couple of days. I do have some questions.   Should I exchange my money here in the UK first? Or should I just use my credit card at the ATMs there in Prague? (the second will be more expensive right?) If I exchange my money here in the UK where is the best place to go?


Open Identify Results Window from QGIS Plugin

I am trying to open Identify Results docked window using qgis plugin. How can i open the identify results window using feature id?  I am iterating through active layer, get a specific feature and then open the identify results window automatically within that plugin.


C#3.0 Automatic properties, why not access the field directly?

With the new approach of having the get/set within the attribut of the class like that :  public string FirstName {         get; set;     }   Why simply not simply put the attribute FirstName public without accessor?


Book about time-travel engineer going rogue

Looking for a name of the book I read while ago - it was sci-fi book about time travel; initial time frame is 2300-3000, I think. Gist of it is the main character was a low-mid tier engineer, responsible for (as far as I remember) the set up of a time travel procedure (which was mainly used for scientific purposes and for prevention of big, time-related disasters). After some events, he slowly climbed ranks, eventually found a woman he likes (she was from higher ranks also, I think), but they couldn't be together, so eventually they ran away in the far future (time travel in that book worked both ways), where people were not allowed to travel. Some more key points that I remember:  It was a time where time travel was already invented long time ago, but it was still a difficult and dangerous procedure because of possible time paradoxes. It was possible to travel both backwards and forwards, but there were periods of time where people were not allowed to travel (and it was physically impossible to travel to time before the invention of the time machine). Job of main character was related to correction of events in different timespans (to prevent disasters), with a goal of making minimal impact on other timespans. There was a part in the book where the main character would closely encounter version of himself in a different time.  Hope it's enough information, really want to read this book again.


Find: $$\lim_{n\to\infty} \sqrt[n]{n}$$  How does one not having any intuition able to do this?


(Full disclosure, this is a follow-up to , which wasn't completely answered on StackOverflow)  The input dataset is a time series of some stock price movement, but it might as well be random. I am trying to configure a Keras neural network to completely overfit (i.e. memorize the data). That's obviously just a first step.  train_gen = keras.preprocessing.sequence.TimeseriesGenerator(         x,         y,         length=10,         sampling_rate=1,         batch_size=1,         shuffle=False     )  model = Sequential() model.add(LSTM(128, input_shape=(10, 1), return_sequences=False)) model.add(Dense(1))  model.compile(     loss="mse",     optimizer="rmsprop",     metrics=[keras.metrics.mean_squared_error] )  history = model.fit_generator(     train_gen,     epochs=100,     steps_per_epoch=100 )  y_pred = model.predict_generator(gen) plot_points = 100 epochs = range(1, plot_points + 1) pred_points = numpy.resize(y_pred[:plot_points], (plot_points,)) target_points = gen.targets[:plot_points] plt.plot(epochs, pred_points, 'b', label='Predictions') plt.plot(epochs, target_points, 'r', label='Targets') plt.legend() plt.show()   I would expect the network would just memorize such a small dataset (it sees just the first 100 data points thanks to steps_per_epoch=100 if I understand it correctly) and the loss on the training dataset would be pretty much zero. It is not and the vizualization of the results on the training set looks like this:    I may be displaying the results wrong because I don't shift targets compared to predictions (see the  for details). But that doesn't account for the failure to overfit. Once I manage to overfit the model, the shift should be clearly visible in the chart.  Any ideas why the model doesn't overfit? Thanks.  EDIT (Training and validation loss in 100 epochs):


I've been hearing some rumors from friends, mostly anecdotal indicating that skills, when gone past 10 (such as initially having 10 in one skill, then finding a bobblehead or skillbook), actually improve past 10.     I can't find any proof of this yet, and my current character right now is slightly incapable of maxing any stats soon to 10 and testing it out. So I'd like to understand if SPECIAL stats increased past 10 show any benefit?  Can SPECIAL stats be increased past 10?


Concerting char* to string to be read into file?

I am trying to read in an input from a user and I know my method needs a char* but is there anyway to make the input of cin able to be used by that char? (look at the comment at char* x.)  string y; cout << "Enter your file: "; cin >> y;  char * x = //here is where the string needs to go. If I type in the actual address it works, but I need it to work when the user just cin's the address//  string line,character_line; ifstream myfile; myfile.open (x); while(getline(myfile,line)) {     if (line[0] != '0' && line[0] != '1')     {         character_line = line;     }  }


IQueryable - Detect select into anonymous type

is there a reliable way to detect if the target of something like  someQueryable.Select(x => new {Name = x.FirstName}) is an anonymous class?  I'm working on an IQueryable implementation and it would be very handy to detect anonymous class selects, as as long as the values just get selected into an anonymous class I can just handle them as alias names for further operations.  The most distinct property of an anonymous type I found so far is the  collection which lists constructor argument <=> member relations.  If this is set I know exactly which member field is an alias to each constructor argument, but as long as non anonymous types can also set NewExpression.Members I can never be sure value didn't get modified in the constructor or the getter itself.  Or is there any other way which is more reliable that "good guess"?  Thanks


Ubuntu Wifi drivers not working after getting update

I have Ubuntu 16.04 installed on my laptop. It was working fine until one day an update was there. After the update, I am on kernel 4.15.0-13-generic and there it is. My Broadcom Wifi drivers were nowhere to be detected. On Notification panel, there is no option to switch ON/OFF wifi.  result of lspci -nnk | grep 0280 -A3:  02:00.0 Network controller [0280]: Broadcom Limited BCM43142 802.11b/g/n [14e4:4365] (rev 01)     Subsystem: Foxconn International, Inc. BCM43142 802.11b/g/n [105b:e071] 03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 0c)     Subsystem: Sony Corporation RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [104d:90be]   I tried different kernels on the present in the grub and they are working fine. Currently, I have to switch to kernel 4.4.0-119.143 to use my wifi.  Here is the error output of command sudo apt-get install bcmwl-kernel-source:  Reading package lists... Done Building dependency tree        Reading state information... Done The following NEW packages will be installed:   bcmwl-kernel-source 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 1,544 kB of archives. After this operation, 8,064 kB of additional disk space will be used. Get:1 http://in.archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 bcmwl-kernel-source amd64 6.30.223.271+bdcom-0ubuntu1~1.2 [1,544 kB] Fetched 1,544 kB in 5s (295 kB/s)                 Selecting previously unselected package bcmwl-kernel-source. (Reading database ... 290899 files and directories currently installed.) Preparing to unpack .../bcmwl-kernel-source_6.30.223.271+bdcom-0ubuntu1~1.2_amd64.deb ... Unpacking bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu1~1.2) ... Setting up bcmwl-kernel-source (6.30.223.271+bdcom-0ubuntu1~1.2) ... Loading new bcmwl-6.30.223.271+bdcom DKMS files... First Installation: checking all kernels... Building only for 4.15.0-20-generic Building for architecture x86_64 Building initial module for 4.15.0-20-generic ERROR: Cannot create report: [Errno 17] File exists: '/var/crash/bcmwl-kernel-source.0.crash' Error! Bad return status for module build on kernel: 4.15.0-20-generic (x86_64) Consult /var/lib/dkms/bcmwl/6.30.223.271+bdcom/build/make.log for more information. modprobe: FATAL: Module wl not found in directory /lib/modules/4.15.0-20-generic update-initramfs: deferring update (trigger activated) Processing triggers for initramfs-tools (0.122ubuntu8.11) ... update-initramfs: Generating /boot/initrd.img-4.15.0-20-generic   Also, tell me if I update my ubuntu 16.04 to ubuntu 18.04 will help to solve this problem.


What can I do if I post confidential information?

I understand the appeal of not actually deleting questions and answers, but what can we do when we accidentally post confidential information?  For example, passwords or company names. Sometimes we forget to edit those out before posting a code snippet, and if we don't notice within the 5 minute grace period, it becomes permanent.  Is there anything we can do about this?


-858993460 being output for an uninitalized variable

The value -858993460 is being displayed by cout for an uninitialized variable (presumably because there is junk in memory), but it will output -858993460 for every uninitialized variable in the program no matter how many I have or where they are in the program in relation to each other.  It will also output this same value, -858993460, when I run a completely different program with an uninitialized variable on a completely different computer, from Windows 7 to Windows 10 running on a VM on a Mac. Why is it doing this? The likelihood of -858993460 randomly being in each uninitialized memory location on different computers is astronomically unlikely.


My blender game is not rendering properly, some faces not showing and materias don't show up correctly

I am new to blender and I am doing a school project with it and run into some issues. How do I fix this? I have heard about a material mode but I don't know how to enable that


Evaluating arithmetic sum using prime factorization

Please help! I have no idea how to start this problem / what to do to evaluate this.  For m>0 , let f(m) = $\sum_{r=1}^{m} \frac{m}{gcd(m,r)}$ . Evaluate f(m) in terms of the prime factorization of m.


If a Muggle was born of a wizard/witch and a Muggle, is that person a Squib, or is that reserved to people born from pure-blood families?    (Related: )


Make f1-12 keys work as standard function keys on Macbook Pro 5,3

I'm using Ubuntu 15.04.  I'd like to have f1-12 work like f1-12 without holding fn, rather than volume and brightness.  Does anyone know how to do this?


I have just seen the hat known as  for the first time. Does anyone have any information (or hints if you don't want to spoil it) on this mysterious hat!?!?  Here are the given (but not so useful) clues:     The hat in action:    UPDATE: Shog9 states that the beard is possible but very difficult to obtain. However based on , Aarthi said that they have an internal difficulty that they are ordered by and yet the beard is not placed anywhere near first. This does not add up.  UPDATE 2: The beard is not located in  or    UPDATE 3: FYI, the user  has the beard.


Understanding 'this' and 'prototype' in JavaScript ?

what are the difference between,  var Human = function(){ this.age = 21; };   and  Human.prototype.age = 31; var ME = new Human(); document.write(ME.age);    It showing output 21, why not 31 ?