I am creating a subclass of UIBarButtonItem, to provide some specific functionality.  The new class has an initializer, that is the only one that should be used when creating an instance of the class:  - (id) initWithSomeObject:(SomeObject *)param;   The problem is, all the initializers from UIBarButtonItem are still available, so I could create an instance of my new class using something like  MyCustomUIBarButtonItem *button = [[MyCustomUIBarButtonItem alloc]  initWithBarButtonSystemItem:systemItem target:target action:action];   or something else...  Is there a way to hide the initializers from UIBarButtomItem in my subclass, so that they cannot be used?

I need to hide (make private) the -init method of my class in Objective-C.  How can I do that?


Consider $f_n(z) = \sum_{k=0}^{n}\frac{z^k}{k!}$. Let $z_n$ be the zero of $f_n$ which is closest to the origin, and prove that $\|z_n\| \geq tn$ for some constant $t$.   First of all, the statement makes perfect sense. Since $f_n$ is the partial sum of the power series expansion of $e^z$ which has no zero at all. So by Hurwitz theorem, the zeros of $f_n$ have to be pushed out. However, I do not know how to make the bound precise.  I do not really think this is the duplicate of the question asked. Since as I explained above using Hurwitz is enough to show that $f_n(z)$ cannot have zeros inside a given compact set for large enough $n$. But here I want a precise bound for $\|z_n\|$.

this is a question from a Temple prelim exam, and i'm trapped in it! We have $p_n(z)=\sum_{k=0}^n\frac{z^k}{k!}$ and we have to prove that $\forall r>0 \quad \exists N\in\mathbb{N}$ s.t. $p_n(z)$ has no zeros in $B_r(0)$ for $n>N$.  I tried to use Rouche's theorem observing that $1+\frac{z^n}{n!}$ has the nth roots of $n!$ as complex zeros, which are outside a fixed ball for n sufficiently large, but i'm having trouble proving that $|1+\frac{z^n}{n!}|>|z+\cdots+\frac{z^{n-1}}{(n-1)!}|$ in $|z|=r$ (if this is true). If anyone could help..


This is my first time doing anything like this but I really need my computer back so it here goes. The other day my computer froze so I had to unplug it and replug it however after I did so instead of going to the login screen  I had this pink screen with the words GNU GRUB at the top and with the three options:  Advanced options for Ubuntu  Memory test (memtest86)    Memory test (memtest86+, serial console 115200)   And if I don't click any of them in time it goes to this strange screen with a ton of numbers on it and I could not get out of that screen unless I unplug. Please help me if you can I have no idea what to do.

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


Is there a short proof for the 2-sphere being connected? I only saw proof for the n-sphere but that is more complex than I need it to be.

I found a theorem that the $S^2$ is connected however I cannot find a proof via Google. Is there any hint how to proof that the $S^2$ sphere is connected?


I'm using vSphere Client version 6.7, having 2 hosts in a cluster. i want to know before i'm entering one host into maintenance mode, if the other host will be able to hold both servers resources. yes i know, i could calculate it by using free/used space in CPU,Storage,Memory fields. i want to know if there is a simulator or something like that that will show me what will be the situation after i will move all VMs to the other host. Thanks!

I have 2 hosts in a cluster (running vSphere Client version 6.7). how can i be sure that when i want to enter one of them into maintenance mode, the other one would be able to hold all VM's resources? Thanks, John


I have had a virus for a while now and it has got to a point were I can't get past the welcome screen when I start up my computer, I know my computer has not got slower from use because before the virus it took my computer 2 seconds to get to the desktop... Someone please help I can't use my computer at all!!!!

What should I do if my Windows computer seems to be infected with a virus or malware?  What are the symptoms of an infection? What should I do after noticing an infection? What can I do to get rid of it? how to prevent from infection by malware?   This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.


Obviously as filmed the lightsaber battles in the original trilogy are slower and less acrobatic than those in the prequel trilogy. Is this canon? There's a popular question that basically asks why this is and most of the answers are out of universe explanations about lightsabers originally being meant to be heavy, improvements in CG, and that the choreographer in the original trilogy was an Olympic fencer while the choreographers in the prequel trilogy were stuntmen. This implies that the lightsaber battles as shown are not meant to be taken literally.    On the other hand, the lightsaber battles tend to be taken more literally in questions comparing the lightsaber skills of Anakin and Darth Vader and various explanations are given for why Darth Vader doesn't do flips.  I've always figured that when a lightsaber battle happens it should just be understood that <epic battle takes place> and the exact movements are unimportant. If that weren't the case, it would be sensible to ask silly questions like "Why are Qui Gon Jinn and Obi-Wan playing around in the battle with Darth Maul at the end of Episode I? Why are they flipping around instead of trying to kill each other? Who are they trying to impress?"

In the prequel trilogy of Star Wars (the more recent three), the swordsmanship of the actors is very coordinated and fast. There's lots of aerobatics and fast swordplay; generally impressive (albeit sometimes over-the-top) performances.  But in the original trilogy, Luke Skywalker's swordsmanship appears to be an aimless, desperate swinging motion in nearly every scene. He flails the lightsaber back and forth like a wild boar. It's astounding that Vader didn't quickly put him out of his misery.  Here's what I mean:                                 Is there some sort of explanation as to why Luke's skills are so poor? Does it have to do with the story element, or is it to do with the film itself?


How can I select all rows in a text file based on different values of a particular column? The desired values are not in a specific interval. A short example of what I expect is given below. My data stored in a text file input.txt 1.0     21 2.5     23 4.0     21 6.5     45 9.0     30 16.5    46 2.0     78 1.0     20 1.6     19 2.5     25 4.0     40 5.2     16 6.5     25 9.0     47 10.0    14 16.5    60 18.5    65 20.0    57 . .etc  I want to select rows based on 1st column having values 2.5,6.5,16.5,..., etc So the output will look like this. I don't want to sort output numerically by 1st column. 2.5     23 6.5     45 16.5    46 2.5     25 6.5     25 16.5    60  I am looking for solutions in awk or sed or paste Thanks in advance.

I wanted to extract a list of numbers (string.txt) from masterFile.list. masterFile.list is separated by | and contained more than one column. I am only interested with the line, where its first column contained number matched in the string.txt file. string.txt: 3075 3078 3076  masterFile.list 3078    |       Auxenochlorella pyrenoidosa (H.Chick) Molinari & Calvo-Perez, 2015      |                   |       authority       | 3079    |       Auxenochlorella pyrenoidosa 3078    |               |       scientific name | 3076    |       Chlorella pyrenoidosa H.Chick, 1903     |               |       authority       | 3077    |       Chlorella vulgaris var. viridis Chodat, 1913    |               |       authority 487     |       ATCC 13077      |       ATCC 13077 <type strain>        |       type material   | 460     |       DSM 23076       |       DSM 23076 <type strain> |       type material   |  expected output: 3078    |       Auxenochlorella pyrenoidosa (H.Chick) Molinari & Calvo-Perez, 2015      |                       |       authority       | 3076    |       Chlorella pyrenoidosa H.Chick, 1903     |               |       authority       |  Most of the previous post I have found only allow the extraction of single string, and limit match to first column. Is it possible to extract more than one string at a time?


Can Node Frames be saved for recall later maybe in another project? Are they (frames) managed as object data in and of their own right?

I've found some neat combinations of nodes to create certain effects, so I'd like to make them a group and then have that node available on my list of available nodes, even when I reload the startup file. How would I do that?


I have created an HTML Table (Data from the DB) using awk. I am stuck at creating the Background of a column, depending on the cell value. Not much idea about css. I am abble to change the ont bbased on the condition but not the background color. here is my code. If the status is less than 100 background should be red..else same bg as rest of the table..  BEGIN {   print "

The report provides overall Percentage Secured in the given subjects.

"   print "
" }  NR==1 {   # Header row   print "
"    for ( i = 1; i <= NF; i++ ) {     print ""$i"	"   }   print "
" }  NR>1 {   # Data rows   print "
"   if( $i < 100 ) {     color="RED"  \\ Background should be Red if the status is less tha 100\\ }   if( $i == 100 ) {     color="BLACK" \\Same background as rest o the table\\   }   print ""$1"	"$2"	"$3"	"$4"	"$5"	"   print "
" } END {   print "
" }

(Using Shell Script) Need to generate html report from a CSV file which is an output of a DB query and then color code it based on column values. For example, from the given CSV ile, if any cell under column "status%" is less than 80, it should be highlighted ith red background, Anything >=90 Green.. I Tried using awk, but i was messing up with for loop.  CSV file is something like  Status%,Status Message,date 0f examination,type of exam,subject 75, success, 13-09-2013,mid term,physics 90, success, 15-09-203, mid term, Maths 100, success, 17-09-2013, term, biology 100, success, 17-09-2013, term, SST   Adding The Code  awk ' BEGIN {      print "

The report provides overall Percentage Secured in the given subjects.

" print "
"         }  { print "
" for ( i = 1; i <= NF; i++ ) {                                                     if ($i <=75 )   print " "  $i  "	" else   if ($i >=90 && $i =100) print " "  $i  "	"  else print " " $i "	" print "
" } END { print "
" }  '  /Reports/output/Output.html | sendmail -t


I am trying to find the estimator of the variance $\sigma^2$ of a normal distribution with the minimum mean square error. From reading up, I know the unbiased estimator of the variance of a Guassian is  $\frac{1}{n-1}\sum_{i=1}^{n}(X_i - \bar{X})^2$ and that the estimator I am looking for is a scaled version of this unbiased estimator. The question is from a problem sheet from the last academic year.  The specific question is:     Let $X_1, \dots, X_n$ be a simple random sample from a normal distribution with unknown mean $\mu$ and variance $\sigma^2$. Consider estimators of $\sigma^2$ of the form $k \sum_{i=1}^{n}(X_i - \bar{X})^2$ and find the value of $k$ that minimises the mean square error. What is the efficiency of the usual unbiased estimator relative to this estimator, if the relative efficiency is defined as the ratio of the mean squared error?   For the first part, I think I am meant to rewrite the MSE of the estimator as an expectation and then take derivatives with respect to $k$. This is what I have so far:  $$ \begin{align} MSE(\hat{\theta}) &= \mathbb{E} \left[ (\hat{\theta} - \theta)^2 \right] \\ &= \mathbb{E} \left[ \left(k \frac{1}{n-1} \sum_{i=1}^{n}(X_i - \bar{X})^2 - \sigma^2 \right)^2 \right] \\ &= \mathbb{E} \left[ \left(k \frac{1}{n-1} \sum_{i=1}^{n}(X_i - \bar{X} )^2 \right)^2 - 2 \left( k \frac{1}{n-1} \sum_{i=1}^{n}(X_i - \bar{X})^2 \right) \sigma^2 + \sigma^4 \right]  \end{align} $$  But however else I continue from here, I can't find a way that gets me to $ k = \frac{1}{n + 1}$, which the Wikipedia article linked to below suggests is the answer.  For the second part, I think I can use the MSE of the unbiased estimator given in the Wikipedia article to find the efficiency, although it would be really helpful to see the steps that one takes to calculate this MSE, as in the article it is just stated.  My question is linked to , although less advanced.   The   linked to in the question above is also relevant, although there they also calculate $ \mathbb{E} [S^4_{n-1}]$, which I'm not sure about.

Given $X_1,...,X_n$ ~ i.i.d. $N(\mu, \sigma^2)$ where the mean is unknown, let the estimator for $\sigma^2$ be $\hat{e} = p\sum_{i=1}^n(X_i-\overline{X})^2$ How do I choose $p$ so that this estimator has the minimal mean squared error (MSE)?  I've found that  $E(\hat{e}) = p\sigma^2(n-1)$  $Var(\hat{e}) = 2p^2\sigma^4(n-1)$  But I can't find the minimal square error, because everytime I try to solve for the min of $MSE = Bias^2 + Var$, it doesn't work out.


My main computer is Ubuntu 15.10. I have virtualbox working properly and followed the steps in the following link so that the virtual Windows 10 can recognize USB devices:   Although the virtual Windows10 can recognize my USB keyboard and mouse, it can't recognize my USB drive in NTFS format (I recently converted it to NTFS from FAT). How can I get the virtual Windows10 to recognize the NTFS USB?

I'm using Ubuntu Maverick and Virtual Box 3+. I have Windows 7 Ultimate. The problem is that it doesn't detect USB drives in Windows 7, but USB peripherals (mouse + keybord) are working.  I followed , but I can't find the user group vboxusers. How can I continue? I would also like to upgrade to the latest version without any risk (without losing my virtual hard disk drive).


Let X be a random variable whose PDF is $f(x)$, and $g$ a function of random variable X. I want to prove that $$E[g(X)] = \int{g(x)f(x)dx} $$ I've perfectly understood it in discrete case and I managed to prove also for continous case when $g$ is an increasing function. What is a formal proof for this formula? And what is a good intuition for it?

For random variable $X$ that follows some distribution, $f(x)$ is the probability density function of that distribution if and only if $$\mathbb{E}[\phi(X)] = \int_{-\infty}^\infty \phi(x) f(x)dx$$ for all functions $\phi$.  Context: My professor used this in lecture to demonstrate a way to find the distribution of $cX$ given random variable $X$ that follows a specific distribution.   What is the name of this theorem? Have I missed any qualifications/caveats? I am in particular curious about whether "for all functions" is correct. My professor mentioned "positive, bounded, deterministic functions," but I am not sure what he meant by that. Where can I find a proof of this theorem?


What did I do that caused the face of the mesh to glitch out like this? And how do I remove/fix it? I'm not sure if it is two faces ontop of each other?

For instance, here I have two cubes that are offset only on the x-axis. When I render them (using Blender's internal renderer), the overlapping faces interfere with each other and the result looks awful. A quick and easy solution would be to offset them by just a smidget, but is there another solution that allows faces to overlap and not exhibit this graphical glitch?


So if I have  on the battlefield with a +1/+1 due to his ability and a  that can move +1/+1 from one creature to another. Does CG duplicate the +1/+1, and does KS get another +1/+1 due to having an island on the field or another merfolk

Is a +1/+1 counter I get from, say Unleash or Undying different than +1/+1 from something like  or ?


I want to know if using the mean and the variance is independent of a probability distribution or not. I just want to make sure that whether using the mean and the variance is independent of probability distributions unless I want to have a statistical model or not. Say I want to estimate the overall height of female high school students and I use the mean height and the variance as estimators of the heights and I don't assume any probability distribution. I don't know if I can use the mean height and the variance to approximate or estimate the overall height independent of a probability distribution. My understanding of using the mean and the variance was that I had to have or assume a probability distribution, first, but I have come to understand that I don't have to assume a probability distribution which is a statistical model for my data and I can just use the mean and the variance without assuming a probability distribution as approximated estimators of my data. Although using the mean and the variance without assuming a probability distribution, for example, a normal distribution will lead to a non-statistical model but I want to make sure that I can still use the mean and the variance as estimators or approximators of the data that I have without assuming a probability distribution. Hope my question make sense otherwise I will update.

I am wondering using the mean only without a specific probability distribution to predict or infer an appropriate measure for the average height of female students. I ask this question because I usually see a probability distribution with the mean and the variance as the parameters of an assumed probability distribution. So, I wonder that if I want to calculate and use the mean as an approximation of the mean height of female students,  Is it a must to assume a probability distribution? Can't I just use the mean as an approximation or a predicted value without assuming a specific probability distribution ? Can I still call using the mean only to approximate the mean height of femal students a statistical model? If I can't call it a stistical model, then what should I call the way I try to approximate the mean height?


Game development has lots of fronts... gameplay, physics, graphics, etc. and whenever I look up the answer for this question it's always something vague like: "extended knowledge of c++, c# or whatever".  But what exactly does that mean? Does the gameplay programmers know lots of openGL, directX? maybe lots of vectors, matrices? Do they need to know some network programming?  So what kind of coding and other tasks do gameplay programmers do?

In job descriptions, I often see positions called "Gameplay Programmer."  What do people in that position do?


If two tensions are acting on a rope such that they are equal (each is 10 N) and opposite (180 degrees) then what will be the total tension in the rope? I cant seem to figure out if these two will cancel each other's effect and become zero or these will add up to make 20N tension.

I'm going to provide my argument for why I think the tension in a rope should be twice the force exerted on either side of it.  First, let's consider a different example. Say, there is a person named A and a block in space. A pushes on the block with a force of 100 N. Then, the block will also push A with a force of 100 N by Newton's third law. Now, consider the case where instead of the block, there is a person B who is also pushing on A with a force of 100 N while A is pushing on him. A will experience a force of 100 N because he pushed on B, AND another 100 N because he is being pushed by B. Hence he will experience a force of 200 N. Similarly, B also experiences 200 N of force.  Now, back to the original problem. There are two people A and B in space with a taut rope (no tension currently) in between them. If only A is pulling and B is not, then I agree that the tension is equal to the force A exerts. This situation (in my opinion) becomes analogous to the above if B is also pulling. So, say both of them pull from either side with a force of 100 N. Then the rope at the end of B will pull B with a force of 100 N (this pull is caused by A). By Newton's third law, the rope will experience a pull of 100 N. But B is also pulling his end of the rope with 100 N. Therefore, the tension should be 200 N. Similarly, the end of the rope at A must pull A with 100 N of force (because B is pulling from the other side) and hence experience a force of 100 N itself by Newton's third law plus another 100 N because A is pulling on the rope.  Apparently, the answer is not this (according to my searching on the web). So, could anyone tell me why this reasoning is wrong? Thanks.  EDIT : So apparently people don't agree with my first example, leave alone the second. This is to the downvoters and the upvoters of the highest-rated answer: You all agree that if only A pushes B with a force of 100 N, then A and B both will get pushed by a force of 100 N in opposite directions, right? Then, in the case where B is also pushing with a force of 100 N, it doesn't make sense that the answer would be exactly the same. It doesn't seem right that no matter what B does, B and A will always experience the same force as they would have if B hadn't applied any force.  EDIT 2 : I'm going to provide here a link to a question that I posted:  According to the answer and the comments there, the reason as to why my first example is incorrect is different to the one provided here. So maybe you should all read the answer and the comments provided by the person and reconsider what you think.


I have a base install of IIS 10 on Windows Server 2016 which I have setup my basic web application on.   The application website uses HTTPS.  For some reason, when browsing from Chrome 63, the content is served using HTTP/1.1 when I expected it to be served over HTTP/2. I have checked the IIS logs which show:  #Software: Microsoft Internet Information Services 10.0 #Version: 1.0 #Date: 2018-02-09 16:32:34 #Fields: date time s-ip cs-method cs-uri-stem cs-uri-query s-port cs-username c-ip cs-version cs(User-Agent) cs(Referer) sc-status sc-substatus sc-win32-status time-taken 2018-02-09 16:32:38 196.44.182.180 GET /uploaded/a87f9d27-3732-426f-80cb-ac531579a908.jpg - 443 - 196.44.177.71 HTTP/1.1 Mozilla/5.0+(Windows+NT+10.0;+Win64;+x64)+AppleWebKit/537.36+(KHTML,+like+Gecko)+Chrome/63.0.3239.132+Safari/537.36 https://xxxxxxx/ 200 0 0 46   Interestingly, when I use  to check if HTTP/2 is supported by my web application, it says "Yeah! xxxxx supports HTTP/2.0"  But when I use Chrome or Lighthouse (to test) it tells me content is being served over HTTP/1.1

I setup my Nginx conf as per  , and now http2 is available...  But in Chrome (Version 54.0.2840.98 (64-bit))  Dev tool, it's always on HTTP 1/1 :  NAME             METHOD  STATUS  PROTOCOL shell.js?v=xx..    GET    200     http/1.1   my server is running Ubuntu 16.04 LTS which supports both ALPN & NPN , and the openssl version shipped with it is 1.0.2g  I checked http2 support with and the result is :    Yeah! example.com supports HTTP/2.0. ALPN supported...   Also checking with curl is OK   $ curl -I --http2 https://www.example.com   HTTP/2 200    server: nginx/1.10.0 (Ubuntu)   date: Tue, 13 Dec 2016 15:59:13 GMT   content-type: text/html; charset=utf-8   content-length: 5603   x-powered-by: Express   cache-control: public, max-age=0   etag: W/"15e3-EUyjnNnyevoQO+tRlVVZxg"   vary: Accept-Encoding   strict-transport-security: max-age=63072000; includeSubdomains   x-frame-options: DENY   x-content-type-options: nosniff   I also checked with is-http2 cli from my console  is-http2 www.amazon.com × HTTP/2 not supported by www.amazon.com Supported protocols: http/1.1  is-http2 www.example.com ✓ HTTP/2  supported by www.example.com Supported protocols: h2 http/1.1   tested with openssl from my localhost  $ echo | openssl s_client -alpn h2 -connect www.example.com:443 | grep ALPN  depth=2 O = Digital Signature Trust Co., CN = DST Root CA X3  verify return:1  depth=1 C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3  verify return:1  depth=0 CN = example.com  verify return:1  ALPN protocol: h2  DONE   why Chrome is left behind it ? How can I check it also with Safari (v 10.0.1)


I'm using Jelastic with nginx 1.6.1 and would like to use friendly urls without the .php extension. So if someone visits for example  nginx should rewrite it to  and displaying the content.  I spent a few hours to get this working by trying solutions like:  location / {     try_files $uri $uri.php $uri/; }   without success and I always get an 404 error if I try to access for example domain.com/faq  Does anybody have a working solution? Here's my default nginx.conf file:  worker_processes  1; error_log /var/log/nginx/error.log;  events {     worker_connections 1024; }   http {      server_tokens off;     include mime.types;     default_type application/octet-stream;      log_format  main  '$http_x_forwarded_for - $remote_user [$time_local] "$request" '         '$status $body_bytes_sent "$http_referer" '         '"$http_user_agent" "$http_x_forwarded_for"';      access_log /var/log/nginx/access.log  main;     sendfile on;     keepalive_timeout 65;      server {          listen 80;         server_name localhost;         include /etc/nginx/aliases.conf;         index index.php index.html index.htm;         error_page 500 502 503 504  /50x.html;          location / {             root /var/www/webroot/ROOT;             index index.html index.htm index.php;              location ~ \.php$ {                 location ~ /\. { deny all; access_log off; log_not_found off; }                 include /etc/nginx/fastcgi_params;                 fastcgi_pass 127.0.0.1:9000;                 fastcgi_param SCRIPT_FILENAME /var/www/webroot/ROOT$fastcgi_script_name;                 fastcgi_param PATH_INFO $fastcgi_script_name;                 fastcgi_param DOCUMENT_ROOT /var/www/webroot/ROOT;             }          }          location = /50x.html {             root   html;         }          location ~ \.php$ {             location ~ /\. { deny all; access_log off; log_not_found off; }             include /etc/nginx/fastcgi_params;             fastcgi_pass 127.0.0.1:9000;             fastcgi_param SCRIPT_FILENAME /var/www/webroot$fastcgi_script_name;             fastcgi_param PATH_INFO $fastcgi_script_name;             fastcgi_param DOCUMENT_ROOT /var/www/webroot;         }          include /etc/nginx/conf.d/*.conf;      } }

I've looked at dozens of other questions and references on the web - and by all my calculations, my setup should work, but it doesn't.  I have nginx installation with php-fpm.  If I try to access a .php file, it runs correctly and I get the correct results.  I got this in my config file:  location ~ \.php$ {     try_files $uri =404;     fastcgi_pass unix:/var/run/php5-fpm.sock;     include fastcgi_params;     fastcgi_param SCRIPT_FILENAME  $document_root$fastcgi_script_name; }   Now, I want to setup my web app so that /somedir/file automatically executes /somdir/file.php while still displaying /somdir/file in the browser's address bar.  So I modified my config to contain the following:  location / {     try_files $uri $uri/ $uri.php?query_string }   This kind of works, that is, the server does access the .php file.  Yet, instead of executing it using the existing location ~ \.php$ block above, it simply spits the php source code as the download into the browser.  If I append the .php manually to the requested URL, then the php is executed.  It feels as if once the server matches try_files to $uri.php, it then does not do another pass at locations to see that what it needs to do with the php files.  I tried putting the php block above and below the location /, but it makes no difference.  How can I get the php to be executed?


My working code is as follows: \documentclass{article}  \usepackage{tikz,tikz-cd,pgf,makecell,smartdiagram,lmodern,ragged2e,array,caption,graphicx,booktabs,tabularx,xcolor}  \usetikzlibrary{positioning}  \begin{document}     \tikzstyle{block} = [rectangle, rounded corners, thick, align=center, fill=orange!40, text width=3.5cm]          \begin{figure}[!h]         \centering         \resizebox{.8\linewidth}{!}{             \begin{tikzpicture}[thick, node distance = 5cm,]                 % Place nodes                 \node [block] (MC) {Magnetic\\ Contour plane\\($\mathbf{MC}$)};                 \node [block, right of=MC, node distance=6cm] (TM) {Topographic Magnetic Field\\($\mathbf{TM})$};                  \node [block, below of=MC, node distance=3cm] (BM) {Base\\ Magnetic Field\\($\mathbf{BM}$)};                  \node [block, right of=BM, node distance=6cm] (FM) {Fuzzy\\ Magnetic Field\\($\mathbf{FM})$};                  \node [right of=MC, node distance=3cm, yshift=0.3cm] (a) {$\cong$};                  \node [right of=BM, node distance=3cm, yshift=-0.3cm] (b) {$\cong$};                  \node [below of=MC, node distance=1.5cm, xshift=-0.3cm] (c) {$\cong$};                  \node [below of=TM, node distance=1.5cm, xshift=0.3cm] (d) {$\cong$};                                   %draw arrow                          \draw[line width=1pt,->] (MC) -- (TM);                 \draw[line width=1pt,->] (MC) -- (BM);                 \draw[line width=1pt,->] (BM) -- (FM);                 \draw[line width=1pt,->] (FM) -- (TM);             \end{tikzpicture}         }     \end{figure}      \end{document}  that produces:  I want to put a dotted circle in the diagram that looks like this one:  How can I achieve this? Please help.

I have a set of two nodes and I would like to draw tight ellipses around them in my tikz picture. Note that this is part of a beamer presentation.    I have attached an image that illustrates the wanted effect.    Here is what I have so far:  \documentclass[10pt,aspectratio=1610]{beamer} \usepackage{tikz} \usetikzlibrary{shapes,arrows,backgrounds,fit,positioning}  \begin{document}  \tikzset{res/.style={ellipse,draw,minimum height=0.5cm,minimum width=0.8cm}} \tikzset{literal/.style={rectangle,draw,minimum height=0.5cm,minimum width=0.8cm,text width = 1.2 cm, align = center}}  \begin{frame}[fragile]{Example}{} \begin{tikzpicture}[node distance = 2 cm,auto, ] \node[res,] (obs1) {\footnotesize :obs1} ; \node[res, left = 1cm of obs1] (shop1) {\footnotesize :shop1} ; \node[literal, left = 1cm of shop1] (shopName1) {\footnotesize ``Barnes \& Noble''} ; \node[res, above of = shop1] (book1) {\footnotesize :book1} ; \node[literal, left = 1cm of book1] (bookName1) {\footnotesize ``Dune''} ; \node[res, below of = obs1] (obs2) {\footnotesize :obs2} ; \node[res, left = 1cm of obs2] (shop2) {\footnotesize :shop2} ; \node[literal, left = 1cm of shop2] (shopName2) {\footnotesize ``Amazon''} ; \node[res, below of = shop2] (book2) {\footnotesize :book2} ; \node[literal, left = 1cm of book2] (bookName2) {\footnotesize ``Dracula''} ; \node[literal, below of = obs2] (measure2) {\footnotesize 12} ; \node[literal, above of = obs1] (measure1) {\footnotesize 7} ; \node[literal, right = 1cm of obs1] (monthName) {\footnotesize ``January''} ; \node[literal, right = 1cm of measure1] (yearNum) {\footnotesize ``2016''} ; \node[res, right = 1cm of monthName] (month) {\footnotesize :january2016} ; \node[res, above of = month] (year) {\footnotesize :2016} ; \node[res, below of = month] (day) {\footnotesize :date31012016} ;  \path[->,draw]     (obs1) edge node[midway,above=-6pt,fill=white,inner sep=0pt] {\footnotesize :shop} (shop1)     (obs2) edge node[midway,above=-6pt,fill=white,inner sep=0pt] {\footnotesize :shop} (shop2)      (obs1) edge node[midway,above=-6pt,fill=white] {\footnotesize :book} (book1)     (obs2) edge node[midway,above=-6pt,fill=white] {\footnotesize :book} (book2)      (book1) edge node[midway,above=-6pt,fill=white,inner sep=0pt] {\footnotesize :name} (bookName1)     (book2) edge node[midway,above=-6pt,fill=white,inner sep=0pt] {\footnotesize :name} (bookName2)      (shop1) edge node[midway,above=-6pt,fill=white] (title1) {\footnotesize :title} (shopName1)     (shop2) edge node[midway,above=-6pt,fill=white] (title2) {\footnotesize :title} (shopName2)      (obs1) edge node[midway,above=-6pt,fill=white] {\footnotesize :price} (measure1)     (obs2) edge node[midway,above=-6pt,fill=white] {\footnotesize :price} (measure2)      (obs1) edge node[midway,above=-6pt,fill=white]  {\footnotesize :date} (day)     (obs2) edge node[midway,above=-6pt,fill=white] {\footnotesize :date} (day)      (day) edge node[midway,above=-6pt,fill=white] {\footnotesize skos:broader} (month)     (month) edge node[midway,above=-6pt,fill=white] {\footnotesize skos:broader} (year)      (month) edge node[midway,above=-6pt,fill=white,inner sep=0pt] {\footnotesize :month} (monthName)     (year) edge node[midway,above=-6pt,fill=white] {\footnotesize :year} (yearNum)     ;  \begin{pgfonlayer}{background}   \node[fit=(shopName1)(shop1), fill=violet!30,ellipse] {};   \node[fit=(shopName2)(shop2), fill=violet!30,ellipse] {};   \node[fit=(bookName2)(book2), fill=violet!30,ellipse] {};   \node[fit=(bookName1)(book1), fill=violet!30,ellipse] {};   \node[fit=(measure1)(obs1), fill=blue!30,ellipse] {};   \node[fit=(measure2)(obs2), fill=blue!30,ellipse] {};   \node[fit=(year)(yearNum), fill=green!30,ellipse] {};   \node[fit=(month)(monthName), fill=green!30,ellipse] {}; \end{pgfonlayer} \end{tikzpicture} \end{frame} \end{document}   Here is the result that it produce    Note how the ellipses do not fit the nodes but cover much more. How can I create a tight ellipse around a pair of nodes?


Should it ask it in ,  or any other site? The question is related to how to find some files in the filesystem.

There seems to be more than a few computer science/programming Stack Exchange networks (is that the correct term?). Stack Overflow, being the first, has by far the most users, questions, and answers.  What is the reasoning for creating the others, and are there clear guidelines for which kinds of questions should be posted? I can see a large amount of potential overflow, many cases of people not getting a good answer to their question, because the person who has the answer isn't browsing that particular network at the moment.  I understand that they were probably created for organizational purposes, but wouldn't it almost make more sense to just have them as categories under Stack Overflow, keep them separated but still connected, instead of making people have to create multiple 'account's, one for each network?  I am sure there was a very good reason to break them up, but as someone that is new to SE, it can be somewhat intimidating to decide which one to post in to ensure you get a good answer. For example, if I am a computer science student, my first instinct might to be to post in the computer science network, until I see that it literally has 1% of the users as the Stack Overflow network, which still seems to be for programming/computer science related questions.  So my second instinct would then to be to post it into the Stack Overflow site on the basis that I have a significantly higher chance of my question being seen and getting a good answer. Then I notice that there is also a 'programmers' network, and I don't even begin to know where that fits in. I, and I am assuming most people, will probably just post on Stack Overflow to be safe.  My question is, other than the short little description blurb of each one, is there a clear cut set of guidelines which what each network is intended for, what kinds of questions should go to each one, and is anything being done to encourage people to post in these newer, smaller (more specialized?) networks as opposed to just posting in big daddy Stack Overflow?  Now again, this is for computer science/programming/"why isn't this code doing what I want?" related questions, I am not saying that if I had a question about Linux or WordPress or something I would have the same confusion.


a=999999 b=999999 if a is b:     print("yes") else:     print("no")   The answer to the following code is no.  Why python is not able to compare a and b inspite of the fact that both the values are equal to 999999

Why does the following behave unexpectedly in Python?  >>> a = 256 >>> b = 256 >>> a is b True           # This is an expected result >>> a = 257 >>> b = 257 >>> a is b False          # What happened here? Why is this False? >>> 257 is 257 True           # Yet the literal numbers compare properly   I am using Python 2.5.2. Trying some different versions of Python, it appears that Python 2.3.3 shows the above behaviour between 99 and 100.  Based on the above, I can hypothesize that Python is internally implemented such that "small" integers are stored in a different way than larger integers and the is operator can tell the difference. Why the leaky abstraction? What is a better way of comparing two arbitrary objects to see whether they are the same when I don't know in advance whether they are numbers or not?


Brand new to Ubuntu/Linux. Trying to get HP Mini netbook working better. It was unusable with Windows 7 (too slow).  So far it flies with Ubuntu, but no WiFi. I can see all the WiFi connections from my home, the neighbors, etc. I believe it connected briefly during installation, but I can't get it to connect now.   This is a clean install. The WiFi for all other home devices is working fine. Network specs are below. One of the moderators said it should work. The wired interface is working great, BTW.  Thank you in advance for your help  Machine is HP Mini 110. Ubuntu version is 13.04. Would I have better luck with 12.04?  01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E    PCI Express Fast Ethernet controller [10ec:8136] (rev 04) Subsystem: Hewlett-Packard Company Device [103c:148a] Kernel driver in use: r8169  02:00.0 Network controller [0280]: Broadcom Corporation BCM4313 802.11b/g/n Wireless    LAN Controller [14e4:4727] (rev 01) Subsystem: Hewlett-Packard Company Device [103c:145c] Kernel driver in use: wl

I'm having serious problems installing the Broadcom drivers for Ubuntu. It worked perfectly on my previous version, but now, it is impossible.   What are the steps to install Broadcom wireless drivers for a BCM43xx card?  I'm a user with no advance knowledge in Linux, so I would need clear explanations on how to make, compile, etc.    lspci -vnn | grep Network showed:   Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller [14e4:432b]      iwconfig showed:  lo        no wireless extensions. eth0      no wireless extensions.   NOTE: Answer below is updated every time new information is added and confirmed working.


I don't remember much about this manga so it will be brief. The manga starts out with the main character and several other characters who are deemed heroes for defeating the demon king I believe are now given titles. The title if I remember correctly fire emperor, water emperor, etc., etc. Our main character is bestowed with the title lighting emperor from there the story goes into his reincarnation. His reincarnation is from the same family but his reincarnation is weak and his family looks down upon that. He gets upset that his family is using his name before reincarnation to oppress their own kin.

Trying to find a name of a manga about a magic user. After taking a water magic test  he discovers he has weak magic and after a few years he dies. He gets reincarnated as his descendant living in the country with his mother, due to his father and the other women married to him disliking him for being weak, but he has a vast amount of magic making him god-like.


e.g.   [14,6] give 3 and 2.4-approximations for the FVS problem.   Also when do you not use numbers from one to ten as worded.   e.g.  The earliest algorithms had an approximation factor of 16, later algorithms improved the approximation factor to ten, 9.5, eight, 6.5 and three respectively.  The cited questions is about why my 2nd question is about the convention and whether or not it applies to a continuous quantity when it takes discrete values  e.g. does the rule apply to continuous variables e.g. The height of the ball is maximized at time 2e, four, 4.4,3, 2\pi, 2.5e, eight, 3e, 3 \pi and nine  and yes [14,6] are references listed in my bibliography I've found numbered bibliographies to be quite common but I'm not sure where it is okay to start the sentence with a citation.

The junction has a stop sign on each of the four entrances.   The junction has a stop sign on each of the 4 entrances.   The first is preferred, for some reason, by many English texts. Why? I haven't seen this phenomenon in other languages.


I have a Kingston 64 GB microSD card that I've accidentally chosen for a the Windows 7 USB DVD Download Tool to format and write the Windows installation disk data on it instead of another USB flash. Unfortunately, I've realized that when the process was finished. My microSD card had around 7 GB free, so I believe that some data have been overwritten by the written Windows installation disk data. I'm looking for a way to recover all the lost data including the overwritten ones.  However, it's not possible to recover data on an HDD. I've read  that there's a possibility to recover overwritten data (even the securely deleted overwritten ones with complicated passes) on SSD. So I think the answer for this question should have different bases as it may be possible for SD also to restore the overwritten data. We just need a specialized way that could do this specifically, which should take a different process from an HDD.

I have a 2 GB Kingston  card which is about three years old. I put it in a reader today in my Windows Vista computer, wrote a 32 MB file onto it, safely removed it, and then tried to read it elsewhere. Nothing. Putting it back in the Windows Vista computer it now says:     You need to format the disk in drive F: before you can use it.   What should I do? I have access to many computers and OSes if your recommendations need that. I would be very sad if I lost all the contents of the card. Most of the data is backed up, but there are a few things that aren't. :(  Doing a   # dd if=/dev/sdg of=~/tmp/sd.bin   gives me a 2 GB file, and  the file it seems like lots of my data is still there. How can I put it back together?


Why not indicate the username of the OP when they click on "this solved my problem"?  Instead, only "community"  is shown. .

I just agreed with a duplicate suggestion for one of my .  It's now showing that it was closed as a duplicate by the person who raised the duplicate suggestion and Community.  Since it was my yes this solves my problem click that triggered the closing/status change shouldn't I get credit instead?


I'm given the structure $\mathcal{M} = (\mathbb{Q} \setminus \{0\}; =; \cdot)$ and I need to prove that Aut $\mathcal{M}$ is continual. In other words, first of all, I want to find all (or at least most of) bijections $\alpha : \mathbb{Q} \setminus \{0\} \to \mathbb{Q} \setminus \{0\}$ so that $\alpha(a \cdot b) = \alpha(a) \cdot \alpha(b) \;\; \forall a, b \in \mathbb{Q} \setminus \{0\}$. The problem is, I can't think of any automorphisms except for the identity and $\alpha(x) = \dfrac1x$, of course. I mean, let's take polynomials $\alpha \in \mathbb{Q}[x]$, then only $\alpha(x) = x^n, n \in \mathbb{N}_+$ "saves" multiplication as mentioned above, but it's not a bijection since $\sqrt[n]{y}$ could be irrational. Same for $\alpha(x) = \dfrac1{x^n}$. For obvious reasons, there's no way logarithms, exponential or trigonometrical functions can be used. So I'm basically stuck in the beginning of this problem and would be glad if someone helped/gave a clue!

Prove that structure $(Q/{0}; =;*)$ has infinite number of automorphisms I think it's about we don't have $<$ or $>$, so we don't have strict order in structure, so we can do whatever we want? but i dont know how to say it more formal/


I have been trying to simply get a name for what the <> part of the declaration is called, to no luck. Can anyone tell me what it's called, how I can use it in my own class? For instance I may want to try and make my own kind of collection, and use new MyThing<String> for instance. Any help is appreciated, thanks!

In , class  implements interfaces Comparable, Serializable.  In , class  implements interfaces Serializable, Comparable<BigInteger>.  This is just an example to help me ask about < and >.  What I am really wondering about is the < and > stuff.  My question is threefold:    what does the <BigInteger> part of the implements statement mean? what is that syntax called? and what does it do?   P.S.: It's really hard to google for < and > and impossible to search SO for < and > in the first place.  Thanks!


[root@newserver Socket]# /root/scripts/filetest testfile.txt Can't locate loadable object for module IO::Socket::Multicast in @INC (@INC contains: /usr/local/lib64/perl5/IO/Socket /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5   filetest is calling "use IO::Socket::Multicast;"  The contents of the directory /usr/local/lib64/perl5/IO/Socket is the following:  -rw-r--r--. 1 root root 12342 Mar 22  2017 INET.pm   -rw-r--r--. 1 root root 14201 Nov 30 10:13 Multicast.pm   -rw-r--r--. 1 root root  3111 Mar 22  2017 UNIX.pm   Why can't perl find the Multicast.pm?

How to install perl module Util.pm .I am missing this module .What is the procedure to install a perl module


I don't like such kind of questions on Meta, so I will try to make it a good question and describe all with a details.  Today I down-voted  added a comment with explanations why I down-voted it, and flag it as non constructive (my flag was marked as helpful). An hour later  was downvoted, without any comment left about the reason. Yes, that wasn't my best answer, but in my opinion it answers the question. Well, even if somebody considered my answer incorrect he could add the correct answer, or up-vote the competitive ones. I checked the  who made competitve answer, and he didn't get any rep today for that answer.   It was my second down-vote on Stack Overflow, so I was a little bit down, after that. I think who could considered my answer so completely wrong, and that I thought that maybe it was revenge down-vote. So I checked  of the user I down-voted today, and it was clear that he down-voted some answers today. After I checked that that user cast only 19 downvotes in 8 months, so chances were very big that this was revenge down-voting.  I came to this meta, and searched what I should do in this case. I found that most questions about down-votes, were closed as duplicates. After I found , and found that a team member of Stack Exchange suggested to cast a flag for moderator attention, and explain the situation there.  I did that, and create next flag:     I think after I down-voted this question (and a comment about this), the OP down-voted me in revenge; it's clear from his today's reputation and from timing of my down-vote of his question, and time when one of my answers was downvoted. I cannot be 100% sure about that, but if somebody can check this, and point him that it's not the good way to do.   As you can see, I didn't ask for returning any reputation, or banning that user, I just wanted, somebody to point him, that he did wrong. And after I get this respons on my flag: "declined - flags should only be used to make moderators aware of content that requires their intervention." So in the end I also lost 10 points of the flag weight.  After describing all situation in details, I want to know were exactly I was wrong here. And what should I do next time something like this happens?

I have a situation where I'm trying to figure out what the right thing to do is on SO.    I see a question.  I answer the question.  I see there are a couple other answers.  One answers the question well, though with less explanation than my answer.  The other answer seems both wrong and irrelevant to the question (doesn't answer the question at all).  I comment to that effect.  The "wrong" part is edited out, but the author of the answer doesn't respond to how their answer actually answers the question.  In fact, they seem offended that I don't "get" it.  After giving them several chances to explain how their answer is relevant to the question and seeing their attitude, I decide to downvote their answer as I don't see how it addresses the question at all and the author won't explain.  They retaliate and downvote my answer and admit in their comments that their downvote of my answer has nothing to do with the content of my answer and only because they don't like me disputing their answer.  Did I do the right thing by downvoting their answer?  Do I just have to live with their downvote retaliation?  Anything I should have done differently?  I also have no way of knowing this for sure, but the next question I answered was upvoted, then downvoted so perhaps this same person is stalking my answers and downvoting other answers of mine too with no comment.  As long as this doesn't continue, I'm not losing sleep over a couple downvotes, but I do wonder if I should have done anything differently.  Followup Later After I Posted This Question: After thinking about it for a little while, the person who disagreed with me decided to delete their post.  So, eventually the message did get through to them.  I don't know if they rescinded their downvote or not (or if they even could).


I am currently having problems importing my .bib file to my latex file.  the bib file's name is reference.bib, it was compiled using JabRef and it contains the following  @Book{alexander2009market,   Title                    = {Market Risk Analysis, Value at Risk Models},   Author                   = {Alexander, Carol},   Publisher                = {John Wiley \& Sons},   Year                     = {2009},   Volume                   = {4} }   I made sure that the reference.bib was in the same directory as the tex file.  When inputing   \bibliographystyle{plain} \bibliography{reference}   nothing happens. Additionally, the font changes when I input the \bibliography command to bold blue unlike the \bibliographystyle that remains with the standard command font.

I've browsed the forums and found a number of posts that have addressed this issue, but none of the solutions seem to work for me. I have the following script that I just copied from the bibtex home page to get familiar with it. Instead of the citation number I get a question mark. I compile using Latex+Bibtex+Latex+Latex+PDFLatex+ViewPDF just as has been previously suggested and the problem persists.   \documentclass[11pt]{article} \usepackage{cite}  \begin{document}  \title{My Article} \author{Nobody Jr.} \date{Today} \maketitle  Blablabla said Nobody ~\cite{Nobody06}.  \bibliography{mybib} \bibliographystyle{plain} \end{document}   My bibliography (Bib.bbl)  @misc{ Nobody06, author = "Nobody Jr", title = "My Article", year = "2006" }    Looking at previous posts one thing that is concerning is that my .bbl looks empty as shown below. Further, I don't have a .blg  \begin{thebibliography}{}  \end{thebibliography}


I'm developing something like  an diary of activities. the current problem is when the user needs to put the hour in a textbox whit this format 00:00 but i don't know how to save that information in a var. i tried with a maskedthextbox but doesnt work, now i found a method called 'datetime' it works but the problem its like i only need the time, i dont care the date i just wanna save the hour like the user put into the textbox. Ex: if the user says like  the first activity starts at 08:00 he gonna put 08:00 into a textbox and that information needs to be saved in a variable datetime i think, im not sure about what kind of variable i need to use to do that. Please if someone can help me.   edit: im using visual studio 15.Iim working on windows forms  this is the code of the problem:  private void button5_Click(object sender, EventArgs e)     {         /*            Im working with a datagridview control for the days of the week            in the code im only testing the code with one day         */          checkedListBox1.Visible = false;         comboBox1.Enabled = false;         comboBox2.Enabled = false;         textBox2.Enabled = false;         button3.Enabled = false;         button2.Enabled = false;         DateTime hi = Convert.ToDateTime(textBox3.Text);           if (checkBox1.Checked == true)         {             //this.dataGridView2.Rows[1].Cells[1].Value =   this.comboBox1.SelectedText;             dataGridView2.Rows.Add(comboBox1.Text);             dataGridView2.Rows.Add(hi);         }         if (checkBox2.Checked == true)         {             //this.dataGridView2.Rows[1].Cells[1].Value = this.comboBox1.SelectedText;             dataGridView3.Rows.Add(comboBox1.Text);         }         if (checkBox3.Checked == true)         {             //this.dataGridView2.Rows[1].Cells[1].Value = this.comboBox1.SelectedText;             dataGridView4.Rows.Add(comboBox1.Text);         }         if (checkBox4.Checked == true)         {             //this.dataGridView2.Rows[1].Cells[1].Value = this.comboBox1.SelectedText;             dataGridView5.Rows.Add(comboBox1.Text);         }         if (checkBox5.Checked == true)         {             //this.dataGridView2.Rows[1].Cells[1].Value = this.comboBox1.SelectedText;             dataGridView6.Rows.Add(comboBox1.Text);         }     }

I'm using a DateTime in C# to display times. What date portion does everyone use when constructing a time?  E.g. the following is not valid because there is no zero-th month or zero-th day:  // 4:37:58 PM DateTime time = new DateTime(0, 0, 0, 16, 47, 58);   Do I use COM's zero date?  // 4:37:58 PM DateTime time = new DateTime(1899, 12, 30, 16, 47, 58);   Or perhaps SQL Server's?  //4:37:58 PM DateTime time = new DateTime(1900, 1, 1, 16, 47, 58);   I realize it's arbitrary, since I'll be ignoring the date portions in code, but it would still be nice to be able to use:  DateTime duration = time2 - time1;     Answer  I think I like MinValue   DateTime time = DateTime.MinValue.Date.Add(new TimeSpan(16, 47, 58));     Note: I can't use a TimeSpan, because that doesn't store times of the day. And the reason I know that is because there's no way to display its contents as a time.  Which is to say that TimeSpan records a span of time, not a time of day, e.g.:  TimeSpan t = new TimeSpan(16, 47, 58); t.ToString();   returns a span of time in the format hours:minutes:seconds, e.g.:  16:47:58   rather than a time:  4:47:58 PM    (United States) 04:47:58 nm   (South Africa) 4:47:58.MD    (Albania) 16:47:58      (Algeria) 04:47:58 م    (Bahrain) PM 4:47:58    (Singapore) 下午 04:47:58  (Taiwan) 04:47:58 PM   (Belize) 4:47:58 p.m.  (New Zealand) 4:47:58 μμ    (Greece) 16.47.58      (Italy) 오후 4:47:58   (Korea) 04:47:58 ب.ظ  (Iran) ਸ਼ਾਮ 04:47:58   (India) 04:47:58 p.m. (Argentina) etc   In other words, there is a difference between a timespan, and a time. And also realize that TimeSpan doesn't provide a mechanism to convert a span of time into a time of day - and there is a reason for that.


I am analysing C++ project.I found some unknown syntax in project.   array<String^>^ syntax and String^   can some please help me to understand these syntax. I appreciate your help.

I just came across this code and a few Google searches turn up no explanation of this mysterious (to me) syntax.  Hashtable^ tempHash = gcnew Hashtable(iterators_);  IDictionaryEnumerator^ enumerator = tempHash->GetEnumerator();   What the heck does the caret mean? (The gcnew is also new to me, and I asked about that .)


I want the start page to be editable from a template. At the moment I can only edit the content by directly editing the HTML.  Setup:   Settings » Read » "Front page displays Your latest posts" The template that shows in the startpage is index.php   I want to be able to create a page edited from the Pages list that will show as the start page.   I've tried to create a new page called MyStartPage. Set its template to Startpage (index.php).   I've tried setting Settings » Read » Front Page displays Static page MyStartPage  I've made sure the index.php has The Loop that makes the calls to get Title and Content as is working in other templates.

When do I use the following:   home.php frontpage.php Under Settings > Reading Settings  Front Page Posts Page    I wish to clarify this as I find myself using "Placeholder Pages", empty pages just for the sake of a menu item and to display blog listings.   If I use a Static Front Page (Set under Settings > Reading Settings > Front Page) how do I access my posts page? Do I need to have a "Placeholder Page" titled blog and use page-blog.php?


Is it possible to remap the Super (Windows Start) button to open All Applications instead of the Activities Overview?  I installed Tweaks to do a few other things but haven't seen anything about mapping the Super Key directly and was wondering how it is possible in GNOME and if there was a UI I'm overlooking or if I should be looking for a terminal command?

In Ubuntu 18.04.1, I would like to use my left Super-key only to simply open the Show Applications menu (aka Dash) like a left click on the dock-icon (with the 9 dots) does and preferably close it again without showing me any open programs.   I can open it with Super + A and even close it again with Super R, but Super L appears to do nothing at all.   In Xfce, something similar was possible by adding a custom keyboard shortcut for Super L and setting the command to xfce4-popup-whiskermenu, which would open and close a menu with favourite applications. Unfortunately, I don't know the command that opens and closes the Show Applications menu.   Is there any way to add such a shortcut in the new Gnome Shell?


Let $f$ be a function that is bounded on $[a,b]$. suppose that there exists a sequence of partitions $(P_n)_{n=1}^{\infty}$ of $[a,b]$ for which: $$\lim\limits_{n \to \infty}[\overline{S}(f,P_n)-\underline{S}(f,P_n)]=0$$ Prove that $f$ is integrable on $[a,b]$.

The following question is taken from Real Analysis by Royden, Chapter $4,$ question $5:$     Let $f$ be a bounded function on $[a,b].$       Suppose there is a sequence $\{P_n\}$ of partitions of $[a,b]$ for which $\lim_{n\to\infty}[U(f,P_n) - L(f,P_n)]=0.$       Show that $f$ is Riemann integrable over $[a,b].$   My attempt:  Let $\varepsilon>0$ be given.     Then there exists a partition $P_N$ of $[a,b]$ such that      $$U(f,P_N)-L(f,P_N) < \varepsilon.$$     Since $\varepsilon>0$ is arbitrary, therefore      $$U(f,P_N)\leq L(f,P_N) \leq \underline{\int}_{a}^b f.$$     Similarly,      $$\overline{\int}_a^b f \leq U(f,P_N) \leq  L(f,P_N) \leq \underline{\int}_a^b f.$$     Therefore, $f$ is Riemann integrable on $[a,b].$  Is my proof correct?


I have installed virtual box on my ubuntu 16.04 following instructions described .   Last command, i.e. sudo apt install virtualbox-5.1, gave me this:  vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.  There were problems setting up VirtualBox.  To re-start the set-up process, run   /sbin/vboxconfig as root.   I've tried sudo /sbin/vboxconfig which gave me:  vboxdrv.sh: Stopping VirtualBox services. vboxdrv.sh: Building VirtualBox kernel modules. vboxdrv.sh: Starting VirtualBox services. vboxdrv.sh: Building VirtualBox kernel modules. vboxdrv.sh: failed: modprobe vboxdrv failed. Please use 'dmesg' to find out why.   Then I tried dmesg and uploaded its output .

This issue happens only on UEFI systems with enabled Secure Boot.  When I try to install DKMS modules like VirtualBox, Nvidia, or Broadcom drivers, they do not install and I get Required key not available when I try to modprobe them.  VirtualBox complains that vboxdrv is not loaded.  Broadcom wl driver is shown in lspci -k as a kernel module but is not in use. sudo modprobe wl throws Required key not available.  Also this issue may happen when I install some kernel modules from git sources.  This issue may appear after a kernel update as disabled wireless adapter, black screen after a reboot, etc.   How can I fix it?


I have coded a game of hangman, for unknown letters it prints a _ but because it is in a while loop it print of different line. Is there a way to put all the dashes on the same line so It easier to read? My code is below: import time import random  #welcoming the user name = input("What is your name? ")  print("Hello, " + name, "Time to play hangman!")  print(" ")  #wait for 1 second time.sleep(1)  print("Start guessing letters...") time.sleep(0.5)  #here we set the secret words = ("pyhton","coding","recycle","dawn","vision","talkative","love","difficulty","late","bake","compact","old","employee","be","bubble","guess","home","urgency","buttocks","shop","fluctuation", "snack","fling","structure","incentive","enemy","fastidious","overcharge","disagreement","consciousness") word = random.choice(words)  #creates an variable with an empty value guesses = ''  #determine the number of turns turns = 10  # Create a while loop  #check if the turns are more than zero while turns > 0:               # make a counter that starts with zero     failed = 0                   # for every character in secret word         for char in word:            # see if the character is in the players guess         if char in guesses:                  # print then out the character             print(char)              else:              # if not found, print a dash             print("_")                      # and increase the failed counter with one             failed += 1          # if failed is equal to zero      # print You Won     if failed == 0:                 print("You won, The word was", word)      # exit the script         break                    print      # ask the user go guess a character     guess = input("guess a character:")       # set the players guess to guesses     guesses += guess                          # if the guess is not found in the secret word     if guess not in word:          # turns counter decreases with 1 (now 9)         turns -= 1               # print wrong         print("Wrong")           # how many turns are left         print("You have", + turns, 'more guesses' )       # if the turns are equal to zero         if turns == 0:                         # print "You Lose"             print("You Lose")              print("The word was",word)"

I'd like to do it in Python. What I'd like to do in this example in C: #include <stdio.h>  int main() {     int i;     for (i=0; i<10; i++) printf(".");     return 0; }  Output: ..........  In Python: >>> for i in range(10): print('.') . . . . . . . . . . >>> print('.', '.', '.', '.', '.', '.', '.', '.', '.', '.') . . . . . . . . . .  In Python print will add a \n or space, how can I avoid that? Now, it's just an example, don't tell me I can first build a string then print it. I'd like to know how to "append" strings to stdout.


I am trying to join String elements of Set with semicolon.  Set<String> elements = new Set<String>{     'foo',     'bar'     }; System.debug(String.join(elements, ';'));   getting the following exception     Argument must implement Iterable   Is it weird, as we can easily iterate Set with foreach loop  for(String element :elements){     System.debug(element); }   It means, that Set<T> implements Iterable<T>, doesn't it? From  about String.join method:     Joins the elements of the specified iterable object, such as a List,   into a single String separated by the specified separator. Signature   However, String.join with List collection works good.  System.debug(String.join(new List<String>(elements), ';'));      DEBUG|foo;bar   So do you have idea, why is it happening?

Do Apex collection classes implement Iterable interface? I want to write a generic function that can take any of the collection classes that support foreach. Is this possible?


I had a question about the future of Citrix as potential career field, but wasn't sure where to ask it.  I ended up asking it on , is there a better place for these types of questions?

The  specifically says not to ask  for career advice but people do it anyway.  Should I consider the Help Center outdated or only loosely enforced?    And what about a career advice site on the network?  There are 70+ sites, and most of them are for relatively narrow interests (which is not a criticism, I enjoy looking through the many sections).  A career section seems like it would be very popular.  Also, a careers section would help keep career questions off the other sites.


I am making a simple golf game. where there are 2 golf courses, when running the program I want the 2 golf courses added to the DB. I am using service and repository and endpoints for the golfers so new golfers can be added. but for the golf courses that have 3 holes each, I want them to be added automatically when the program runs. I have tried this: Below is my code snippet. I want to execute addGolfCoursesAtStart() when my app is launched.     @Autowired     GolfCourseService gcs;          public void addGolfCoursesAtStart() {         // create course 1         GolfCourse gc1 = new GolfCourse("Happy Gilmore", 220, 300, 50);         System.out.println("we created a golf course for you named: " +gc1.getName());         System.out.println("this course has the following holes:");         for (Hole hole : gc1.getHoles()) {             System.out.println(hole.getName());             System.out.println("length: " + hole.getLenthHole());         }                  gcs.addGolfCourse(gc1);         System.out.println("\n\n");     }   How would I achieve that?

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I can't execute 'xset' program. How to install it on Ubuntu 16.04 server?   juldou@ubuntu-asus-server:~$ xset dpms force off -bash: xset: command not found

Simple enough question: is there some shell command (or GUI method) I can use that, given the path to a file on my system, tells me what package put it there? Assuming the file did in fact come from a package, that is.  Bonus question: what if it's a file that isn't installed on my system? Is there, say, a website that will let me look up a file and see what packages, if any, provide it?


I often find myself wanting to improve new member's OPs readability by only doing basic formatting:   adding whitespace to break down one chunk of text into several lines/sections adding - to format their successive ideas into a list making use of trailing 4 spaces and backticks to format their code, commands and identifiers.   However, I get stuck by these error messages Edits must be at least 6 characters and I cannot submit.  I understand that very-minor edits may be counterproductive. However, I trust that such a basic "aeration" of a chunky OP, by improving its readability, improves it a lot.  Is there any way to get around this? If not, how should I react in this situation?

Now, it is easy to workaround this: add 10 characters, plus your one-character change, then remove these 10 characters in the next edit for the same post.  But this can hardly be what the designers intended. Instead, my suggestion is to change it to something like on Wikipedia, where you can mark an edit as "minor". Something like this:     Edits must be at least 6 characters, or select the checkbox "Minor, spelling or punctuational correction."   Edits like that will, of course, not count toward the edit-limit (before it becomes Community Wiki).  The suggestion often seen on Meta Stack Overflow is "just edit more in that post". But sometimes the post is just right, and there aren't any other spelling mistakes to correct. Why force a user to change more than necessary, or use an ugly hack?


A friend of mine who is away wants to help me pay off my credit card debit. I don’t want to give my personal info out. He said that until I’m comfortable I can pay it using his account and routing number. Is that possible? How does it work ?

A man in  west  coast  Austria wants to deposit money  into  my account.  I'm in Alabama.  I had to get an online  account.  I did that, but he says his bank manager  needs all this information:   DOB SSN    online access username  online access  password   security  question and answer   bank name   bank address   bank number  person who is on the account     their name their address    account no   routing no     OK. Is it safe  to do this or am I being scammed?  I don't want him  to be able to end up withdrawing all my money instead of depositing money.


I have external hard drive with some data (movies, music, apps, etc.) and I am wondering whether I can use it as bootable HDD to install windows from it, I have installer on my second PC and I am not sure if the fact I have other data on this external HDD may cause any problem when installing Windows using it? I am trying to install one of the following: Windows 7 Ultimate Windows XP Professional  preferably the solution(s) should apply to both, because not yet decided which one I will use.  Thanks in advance for any help :)

Is it possible to install Windows from an external hard drive?  I have Windows XP installed on my laptop, and I want to remove it and install Windows 7.  My Windows 7 installation is in an .iso format on an external USB hard drive.  Is it possible to install it or will I need to put in a DVD before I start installing?


Recently, I wanted to set all my \emphasized text to bold, because I think the default Italic of \emph is not distinctly emphasized.  But I haven't found a solution for it. Please give me some idea. Thanks.  I read a comment on '', it says:     I rarely use physical font commands in my body text. I use them to define styles in the preamble and use the styles in the document afterwards, ensuring consistency and allowing changes to be easily made.   But I didn't find how to define our own styles, after searching in .  I have tried:   \let\emph\textbf \renewcommand{\emph}[1]{\textbf{#1}}   But failed to set bold to \emph text.  I finally figured out a solution that using Bold font for ItalicFont:  % compile by `xelatex file.tex` \documentclass{book} % CJK \usepackage{xltxtra, xeCJK} \setCJKmainfont[BoldFont=Adobe Heiti Std,ItalicFont=Adobe Heiti Std]{Adobe Song Std} % Latin \usepackage{fontspec} \setmainfont{Gentium Book Basic}[ItalicFont=Gentium Book Basic Bold] \begin{document} I want to bold \emph{emphasized} text.  % bold CJK emphasized text 我想用粗体显示 \emph{强调的} 文字 \end{document}   However, I don't think it's a wise solution.  So, any idea? Thanks again.

Question says it all. What is the best way to redefine the \emph command to be bold font and upright?


I am trying to sync my android devices for a dice multiplayer game. When one player rolls his dices I am sending the data to a Firebase Realtime Database. Upon changing the data all devices should be updated with the numbers the active player has rolled. Therefore I am reading every dataSnapshot from the firebase and parse it into a class of type 'Player'. UserId is the key that Firebase RD generates when pushing new data into it, so it should be unambiguously.          public void onDataChange(DataSnapshot dataSnapshot) {              int j = 0;              playerList.clear();             for (DataSnapshot snap : dataSnapshot.getChildren()) {                 playerList.add(snap.getValue(Player.class));             }              for (int i = 0; i < playerList.size(); i++) {                 Log.d("LOG", "Playerlist: '" + playerList.get(i).getUserId() + "' , Activeplayer: '" + activePlayer.getUserId() + "'");                 if (playerList.get(i).getUserId() == activePlayer.getUserId()) {                     j = i;                 }             }   Here is the log output from the second for iteration:  D/LOG: Playerlist: '-M4f0dWR3jkMBO4K45JU' , Activeplayer: '-M4f1axYujY78s-hmOQZ' D/LOG: Playerlist: '-M4f15nuDetGUtky4_Tr' , Activeplayer: '-M4f1axYujY78s-hmOQZ' D/LOG: Playerlist: '-M4f1axYujY78s-hmOQZ' , Activeplayer: '-M4f1axYujY78s-hmOQZ'   As you can see the third line matches so the if clause should catch - but it won't :(  I tried parsing it, using 'toString()' method, which did not change anything.

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I have a trouble with this limit of the infinite product: $$\lim _{n \to\infty}\left(1-\frac{1}{1 \cdot 2}\right)\left(1-\frac{1}{2 \cdot 3}\right) \cdots\left(1-\frac{1}{n(n+1)}\right)$$ My attempt:  We have  $$\prod_{n=1}^{\infty}\left(1-\frac{1}{n(n+1)}\right)=\prod_{n=1}^{\infty}\left(\frac{n^{2}+n-1}{n^{2}+n}\right)=\prod_{n=1}^{\infty} \frac{\left(n-a_{1}\right)\left(n-a_{2}\right)}{n \left(n+1\right)},$$ where $a_{1}=\dfrac{-1+\sqrt{5}}{2}$, $a_{2}=\dfrac{-1-\sqrt{5}}{2}$.  So I would just like a hint as to how to proceed. Any help would be appreciated.

The following fascinating formula appears in the paper  by M.Chamberland and A.Straub (see page 9): $$\prod_{n=2}^\infty\left(1-\frac{1}{n(n-1)}\right)=-\frac1\pi\cos\left(\frac{\sqrt5}{2}\pi\right).$$ Unfortunately, it's given without any reference or explanation. Could anyone give one?


My daughter bought an iPhone 7 a few months ago from a friend of a friend.  We found out a few days ago that it still has someone else's Apple ID on it.  We do not have the password for this Apple account.  We would like to factory reset this phone, but we can't find a way to do it without the Apple ID password. Our last attempt was to use iTunes to put it into recovery mode, but then that failed because to restore the phone, we had to turn off "Find my iPhone" ... and we can't do that without the Apple ID password.  It seems like everything we try needs this Apple ID password at some point.  What are our options here? We no longer have any contact with the person we bought it from. And I refuse to believe there's not a way to forcibly return this phone to its original state.  I have seen advertisements for software that claims to do this. Does anyone have experience with this type of thing.

I bought a used iPhone 4.  The previous owner re-set the phone, but did not remove the device from their iCloud.  It is asking me for their iCloud information when I try to set-up the phone.  I don't have contact with the previous owner anymore.  Is there a way to remove the device from their iCloud so I can use a new one?


From SQL Server Docs, section :  The algorithms to match new SQL statements to existing, unused execution plans in the cache require that all object references be fully qualified. For example, the first of these SELECT statements is not matched with an existing plan, and the second is matched: SELECT * FROM Contact SELECT * FROM Person.Contact  Is the above statement also true for object references that use the default dbo? The reason I ask is because I personally never fully qualify object references (and I assume most people don't) even when using a driver like JDBC. Does this mean that all of my SQL statements are being re-compiled every time they're executed?

While reading  about Plan Caching in SQL server, I came across a tidbit I was unaware of:     ... for reuse it is necessary that the objects that the batch references do not require name resolutions. For example, Sales.SalesOrderDetail does not require name resolution, whereas SalesOrderDetail does because there could be tables named SalesOrderDetail in multiple schemas. In general, two-part object names (that is, schema.object) provide more opportunities for plan reuse.   I'm looking for some clarification about how important it is to use two-part object names, since "In general, two-part object names provide more opportunities for plan reuse.", yet it starts by saying it's necessary.  More specifically, most of the stored procedures I deal with are in the dbo schema and reference only dbo objects, without specifying the dbo prefix.  Are these prevented from reusing cached query plans, even with everything using the default schema?


Question: What are the advantages and disadvantages of using a Laplace likelihood in regression instead of a Gaussian likelihood?  Details: I know that if the unknown regression coefficients have a Gaussian prior and the likelihood function is also Gaussian, then the MAP estimate solution will be the same as Ridge regression.  Furthermore, if the regression coefficients have a Laplace prior and the likelihood function is Gaussian, then the MAP estimate solution will be the same as Lasso. It is because the log of the posterior distribution $ p(\beta|\{x_i,y_i\}_{i=1}^n)$ over the coefficients can be computed as follows: \begin{align} \log p(\beta|\{x_i,y_i\}_{i=1}^n) ~ \varpropto ~ - c (\sum_{i} (y_i - \beta^T x_i)^2 + \lambda \sum_j |\beta_j|) \tag 1 \end{align}  where $c$ is some constant, $\beta$ is the $p$-dimensional regression coefficients, $\lambda$ is the regularization parameter, and $\{x_i,y_i\}_{i=1}^n$ are the centered $p$-dimensional input and response pairs.  As seen in (1), MAP estimate maximizes $\log p(\beta|\{x_i,y_i\}_{i=1}^n)$ or equivalently minimizes $(\sum_{i} (y_i - \beta^T x_i)^2 + \lambda \sum_j |\beta_j|)$ which is also the same as Lasso.   However, if we have a Laplace likelihood, (1) changes to \begin{align} \log p(\beta|\{x_i,y_i\}_{i=1}^n) ~ \varpropto ~ - b (\sum_{i} |y_i - \beta^T x_i| + \lambda \sum_j |\beta_j|) \tag 2 \end{align}    Now the MAP estimate minimizes $(\sum_{i} |y_i - \beta^T x_i| + \lambda \sum_j |\beta_j|)$ which is neither the ridge regression or Lasso. So, what are the advantages of using (2) instead of (1)? And yet another question, how we can compute the MAP estimate for (2)?

So I was asked a question on which central measures L1 (i.e., lasso) and L2 (i.e., ridge regression) estimated. The answer is L1=median and L2=mean. Is there any type of intuitive reasoning to this? Or does it have to be determined algebraically? If so, how do I go about doing that?


I am a lubuntu user using lubuntu 20.04 (focal fossa) and wanted to run some of my favorite android apps in anbox. I tried the following code but it is giving error.sudo apt install anbox-module-dkms. Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package anbox-modules-dkms  And I can't install the kernel modules.

I'm trying to install Anbox in my new Ubuntu 16.04 using instructions from  . It seemed to work, but I got no icon in my dash, so I suspect that the installation is not complete. With Synaptic  Package Manager I can see that anbox-common & anbox-modules-dkms are installed, but I have no icon in my dash, so I tried running   sudo snap install --edge --devmode anbox   and got this error:  error: cannot install "anbox": Get    https://search.apps.ubuntu.com/api/v1/snaps/details/core?channel=stable&fields=anon_download_url%2Carchitecture%2Cchannel%2Cdownload_sha3_384%2Csummary%2Cdescription%2Cdeltas%2Cbinary_filesize%2Cdownload_url%2Cepoch%2Cicon_url%2Clast_updated%2Cpackage_name%2Cprices%2Cpublisher%2Cratings_average%2Crevision%2Cscreenshot_urls%2Csnap_id%2Csupport_url%2Ccontact%2Ctitle%2Ccontent%2Cversion%2Corigin%2Cdeveloper_id%2Cprivate%2Cconfinement%2Cchannel_maps_list:    dial tcp: lookup search.apps.ubuntu.com on [::1]:53: read udp    [::1]:54255->[::1]:53: read: connection refused   What am I doing wrong? Why was the connection refused? According to the instructions, it seems this is the correct command to install it.  ps: I'm not that familiar with Linux, I'm more of a Windows guy, trying to learn Linux.


Hello so I'm making an exercise where you need to proof the following: $$1+\frac{1}{\sqrt{2}}+...+\frac{1}{\sqrt{n}}\leqq2\sqrt{n}\text{ with }n\in\mathbb{N}$$ But I seem to be stuck, this is what I have: Base Case Take $n$=1, then $\frac{1}{\sqrt{1}}\leqq 2\sqrt{1}$, which is true Induction case take $k$ $\in\mathbb{N}$ and assume that: $$1+\frac{1}{\sqrt{2}}+...+\frac{1}{\sqrt{k}}\leqq2\sqrt{k}$$ add k+1, then: $$1+\frac{1}{\sqrt{2}}+...+\frac{1}{\sqrt{k}}+\frac{1}{\sqrt{k+1}}\leqq2\sqrt{k+1}$$ This is where I'm stuck, normally you could replace $1+\frac{1}{\sqrt{2}}+...+\frac{1}{\sqrt{k}}$ with $2\sqrt{k}$ and then prove that the lefthand side equals the righthandside. But because its less than or equal I (at least I think)  can't replace it, so now I can't show if its less than or equal. So I can't seem to find a way to proof it by induction. If you know the answer please share your wisdom Thanks in advance.

Proving that the series 1 + ... + $1 / \sqrt{x}$ < $2 \sqrt{x}$  I am doing it by simple induction adding $1/\sqrt{x+1}$ to both sides, but I can't find a way to manipulate this expression and find that the new series is $< 2 \sqrt{x+1}$.  Can someone show me the correct process?  I failed many times and the furthest I've gotten has been to prove that it's $< 2 \sqrt{x+1} + 1$ which is close, but not enough.


I am trying to revert everything installed while compiling dependencies. I looked inside  but couldn't find the location of the installed libraries. Which log can I look into to remove/revert everything installed from the sources?

I used source code to build one package such as below:  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib --with-package-name="Myplugin" --with-package-origin="http://www.ubuntu.org/" --enable-gtk-doc --disable-static make make install   But unfortunately, i discovered that its the latest version, and has lot of bugs, so i need to remove it/uninstall it. But how can i do so? I tried make clean; make uninstall but still i see it exist:  # pkg-config --list-all | grep Myplugin myplugin-.... $ ls /usr/lib/myplugin/libXYZ.so exist....   How do you remove this now?


Let $T:\mathbb{R}^2\rightarrow \mathbb{R}^2$ such that:    $$T\begin{pmatrix} x \\ y\end{pmatrix} = \begin{pmatrix}0\\ y\end{pmatrix}$$  Show that there's no ordered-basis, $E$ such that:    $$[T]_E = \begin{pmatrix}    1 & 2\\    2 & 4\\   \end{pmatrix}$$  I didn't get how should I prove it. I tried some ways but end up with nothing. I guess I'm missing something.


Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required:   libsdl-ttf2.0-0 libunistring0:i386 python-numpy python-pygame deluge-gtk   libsdl-mixer1.2 libgomp1:i386 liblapack3gf deluge-common libmikmod2   libcroco3:i386 libgettextpo0:i386 libblas3gf libgfortran3 libsmpeg0 Use 'apt-get autoremove' to remove them. The following extra packages will be installed:   linux-generic The following packages will be upgraded:   linux-generic 1 upgraded, 0 newly installed, 0 to remove and 212 not upgraded. 1 not fully installed or removed. Need to get 0 B/1,722 B of archives. After this operation, 1,024 B of additional disk space will be used. Do you want to continue [Y/n]? y dpkg: dependency problems prevent configuration of linux-generic:  linux-generic depends on linux-image-generic (= 3.2.0.37.45); however:   Version of linux-image-generic on system is 3.2.0.40.48.  linux-generic depends on linux-headers-generic (= 3.2.0.37.45); however:   Version of linux-headers-generic on system is 3.2.0.40.48. dpkg: error processing linux-generic (--configure):  dependency problems - leaving unconfigured No apport report written because the error message indicates its a followup error from a previous failure.                           Errors were encountered while processing:  linux-generic E: Sub-process /usr/bin/dpkg returned an error code (1)

Occasionally, when I'm installing stuff, I get an error like the following:  Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  package1 : Depends: package2 (>= 1.8) but 1.7.5-1ubuntu1 is to be installed E: Unable to correct problems, you have held broken packages.   How can I resolve this?


Can someone explain why the following code   for i in {1..5};do echo "hello" done   prints  hello hello hello hello hello   but the following   num=5  for i in {1..$num};do echo "hello" done   prints  hello

Below is some sort of pseudo-code for what I'm trying to accomplish:  #!/bin/bash  # I already have the variable below figured out (positive integer): numlines=$([returns number of lines containing specific characters in a file])  # This is basically what I want to do with it: for i in {1..$numlines}; do     # the part below is already figured out as well:             do some other stuff done   I can execute it fine from the command line by inserting the actual number in the `{1..n}' sequence.  I just need to know if it's possible to include a variable here and how to go about doing it.   I have tried exporting it I have tried putting the variable itself in curly braces inside the sequence: {1..${numlines}} I have tried putting it in double-quotes hoping it would expand: {1.."$numlines"} I have tried escaping the $: {1..\$numlines}   Do I need to use a set -[something] command in order for this variable to get expanded?  I have even tried some forms of using eval...all to no avail.  I just need to know if there is something simple or obscure that I am missing or if this is even possible before I waste anymore time on it.  I could throw together a really, really hackish way of doing it to make it work as needed, but I'd like to avoid that if at all possible and learn the right way to go about doing it.


I got into a small confusion of numerical calculation.   in C#:  > 44.5 + (((5220886 / 2) - 2496118) / 897211) * 9 < 44.5   in JS:  > 44.5 + (((5220886 / 2) - 2496118) / 897211) * 9 < 45.646803817608124   Which one is correct? Can anyone help me to understand why this is happening?  P.S: Though there is one post in SO which is dealing with , my question is a little bit different as I am not doing anything with strings. This is pure numerical calculations.

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


So I have this code:  $(document).click(function(e){   $(".label").removeClass("active"); });  $(".input-combo").click(function(e){   e.stopPropagation();    var $this = $(this),       label = $this.find(".label");    $(".label").removeClass("active");   label.addClass("active"); });   And apart from the $(document) click part it works ok, but with the document part the first click event cancels out the $(".input-combo") click event. How could I prevent this?

I have some HTML menus, which I show completely when a user clicks on the head of these menus. I would like to hide these elements when the user clicks outside the menus' area.  Is something like this possible with jQuery?  $("#menuscontainer").clickOutsideThisElement(function() {     // Hide the menus });


Child document created by lyx is this. %% LyX 2.3.3 created this file.  For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{babel} \begin{document} Hello \end{document}  The parent document has this child document. %% LyX 2.3.3 created this file.  For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[english]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{setspace} \usepackage{babel} \begin{document} \begin{onehalfspace} \input{Hello.tex}. \end{onehalfspace} \end{document}  Then, if I convert using pdflatex, I don't get "Hello." I get a redundant blank so I get "Hello ." How can I fix this?

Intro  I'm working on a lightweight package that allows you to put any content (typically LaTeX code) in an environment, then use that content multiple times, each time scanned separately, so you can use it both as verbatim output and interpreted as LaTeX.  Its main purpose is to typeset LaTeX code and its 'result' side-by-side; useful for documenting TeX packages without having to copy/paste code. But it has other purposes as well.  After experimenting with \scantokens until I gave up in tears, I arrived at the filecontents environment, which almost solved my problem singlehandedly!  The Problem  The problem is, when reintroducing filecontented code through \input, LaTeX adds an implicit newline at the end, which translates to whitespace that I can't seem to get rid of.  I've seen many semi-related questions floating around, with answers employing techniques like:   reading a file line-by-line, using \everyeof in some clever way, playing with \endlinechar or using packages such as catchfile   but none of them provides a clear answer to the following question:  The Question  How can I \input a file without getting the implicit newline?  Minimal Working Example  \documentclass[margin=1mm]{standalone}  \usepackage{filecontents}  \begin{filecontents*}{tmp.tex}     \LaTeX{}\end{filecontents*}  \begin{document}     \fbox{\input{tmp.tex}} \end{document}     Note the extra whitespace to the right of the box.  Note also that I'm definitely not adding any explicit whitespace. Even a manually produced file (so, not using filecontents) with no newlines at all exhibits the same problem.


i have been using blender 2.8 for a couple of months but now i am stuck with a problem. I cant alter the properties of a new mesh in object mode. i need to reduce the vertices of a sphere but the properties are kind of frozen. please help!

Sometimes when adding an object to the scene I see that all options (on toolbar or in window after pressing F6) are disabled. Can anyone tell me when can this happen? What is causing it and how to revert it - make it enabled again. It worked for me when I restarted Blender and reloaded the scene. However I would really like to know what can cause it?


I have a list in this way:  list = [1,2,3,4,5,6,7,8,9]  And reorder it like so:  list2 = [[1,4,7],[2,5,8],[3,6,9]]  Basically paring it with list comprehension the first element with the 4th and 7th, the second with 5th and 8th, and the third with the 6ht and 9th, so skipping every two values.

I have a list of arbitrary length, and I need to split it up into equal size chunks and operate on it. There are some obvious ways to do this, like keeping a counter and two lists, and when the second list fills up, add it to the first list and empty the second list for the next round of data, but this is potentially extremely expensive.  I was wondering if anyone had a good solution to this for lists of any length, e.g. using generators.  I was looking for something useful in itertools but I couldn't find anything obviously useful. Might've missed it, though.  Related question:


Group A:        This is so-called "Moon Cake." // The period is inside the double quatation marks   This is so-called "Moon Cake". // The period is outside the double quatation marks      I know the former is more standard-conforming in most publications; however, I think the latter is more intuitive and meaningful. Because the period is used to stop the whole sentence, rather than stop the phrase itself. I think the former is counter-intuitive, although the usage is standard-conforming.  Please consider another two sentences:  Group B:        She said: "I don't know."   She said: "I don't know".      It is obvious that the former is more meaningful than the latter, because the period is used to stop the whole sentence, and the double quatation marks are used as a quatation. This time, it is standard-conforming and intuitive.  What's your opinion?

The American convention in quotations is (typically) to place punctuation inside quoted text. But I always run into situations where the punctuation of the quote interferes with the punctuation of the sentence. How would you punctuate this (American, non technical)?     When my friends ask, "What do you want for your birthday?", I never know how to respond.   It seems odd to place the last comma outside the quote simply because of the question mark. Is that the preferred (i.e. most often accepted) standard?


This is a follow-up question to .  The numbers printed by \num[group-separator={,},group-minimum-digits=4]{\the\numexpr(5000)\relax} will produce comma separated numbers in groups of three digits each.  In India, however, we group numbers differently. Ones, Tens and Hundreds is the only group of three digits. All other groups are of two digits each.  The following example illustrates the difference:   123,456 gets written as 1,23,456 1,234,567 gets written as 12,34,567 12,345,678 gets written as 1,23,45,678 123,456,789 gets written as 12,34,56,789   Is there any way to get latex to format the numbers Indian way?

\num{100000} prints 100 000  I want to have 1 00 000.  Question: How to set siunitx package to do the above?  Some more  \num{1000} => 1 000  \num{10000} => 10 000  \num{100000} => 1 00 000  \num{1000000} => 10 00 000  \documentclass[12pt]{article} \usepackage{siunitx} \sisetup{group-separator = {,}}  \begin{document}  \num{1000}  \num{10000}  \num{100000}  \num{1000000}  \num{10000000}  \num{100000000}  \num{1000000000}  \SI{1000000000}{m}  \end{document}   The exact rules are described on the :     The Indian Numbering System uses separators differently from the Arabic system; besides the three least significant digits of the integer part, a comma divides every two rather than every three digits.


It's been years since I read it. So I'm not sure when the book was published but I read it sometime before 2006. It was a single novel. Not a series.  I remember that the protagonists - humans are travelling in space, encounter this planet with aliens. They slowly work with the aliens to learn the language and teach them human language.  The aliens finally let the humans come down to the planet. Towards the end of the book they realise these aliens can't have kids, they eat their young? They live very very short lives? This ties into the starting of the book since among the first set of aliens who made first contact there was one who died? Almost dying? And they switched her for someone else in order to keep up the pretext.   Ok another thing I remember is that the aliens think very differently from humans. While humans think abstractly and create modular components to build a complex system. The aliens create spaceships where parts play more than one role, if you destroy part of it, other parts take up that role.   They had cool weapons, romance I think? I read the book in India, but it's an English novel.

I read this book when I was a teenager, or in my early twenties, so that puts it no later than 1979. My favorite authors at the time were (of course) Asimov, Bradbury, Clarke, Heinlein, and a few others. I've looked up the bibliographies of most of these, to no avail.  The story in general: Earth people spot a small alien craft near the sun.  Investigating, they find a lone passenger, a female pilot from an alien race, whose distinguishing characteristic is that her hands are claws of two different sizes: one large, one small.  She is suspiciously quiet about how she got there (I think).  Examining the video footage, they find that, as the Earth ship approached, she jettisoned four other passengers into the sun.  There is much talk about sexual practices (which makes me think Heinlein).  Earth society is going through another "sex is sinful" stage, but the alien female has a biological imperative to breed; if she doesn't have sex, she'll die.  Since her shipmates are gone, she keeps getting sicker.  They return her to her own world, and find that there are five different races, all of which build a fully-integrated society.  The creatures are of different size, shapes and colors, but all have the same mismatched claws.  One breed of alien is like a technician, and, for example, while waiting outside by the car (which are a story in themselves), he or she uses the larger claw as a tool to repair, upgrade, or modify the vehicle.  All of the aliens are capable of things like this, so there are no businesses to take care of it.  Basically, everyone does everything, if I recall correctly.  I don't remember the resolution of the story, and probably for that reason it's been bothering me for several months. If this sounds familiar to anyone, please let me know the title and author, and if I can download a digital copy somewhere.


We learned in school that in English always "adjective +noun".But in "Cyrus the great" or "Alexander the great" is "noun+the+adjective". What is the name of the phrase? When could we use that phrase?

What is the term for adjectives attached after names? For example, there is terrible in Ivan the Terrible. Are these counted as post-positive adjectives?


How do I iterate through floating point numbers in python?   for i in range(1,10,0.001):     print(i)   TypeError: 'float' object cannot be interpreted as an integer

Is there a way to step between 0 and 1 by 0.1?   I thought I could do it like the following, but it failed:  for i in range(0, 1, 0.1):     print i   Instead, it says that the step argument cannot be zero, which I did not expect.


Do you know how to upload CPU-G onto Bionic Beaver version 18.04.1?  I need information about my computer for a Comp. Sci class.  Is there another program that I can use the will give me the same information?  Thanks in advance.

What is necessary to get CPU-G to run on 18.04? I have performed all of the necessary steps I can find (see  and ) and searched the internet generally, to no avail.  Attempting to start the program using the Super key brings up the icon, but clicking the icon does nothing. Likewise, entering cpu-g in the Alt-F2 window also has no effect.  I'm sure this must be something really basic, but I don't have the skills to know what to look for.  Thank you.


How to modify this formula to make the result get the data with its original color & font formatting. =query(Sheet1!A1:D,"select A,B,C,D where A is not null",0) Lets say I want only column D to be in the new tab with its original color format.

Is it possible to reference a cell in Google Sheets so that cell where it gets displayed also displays it using the same text and cell colour formatting?  =A1   Will only reference cell's value. But if that particular cell has red background and white text I'd like that to be copied as well.  I'm leaning toward existing formula solutions rather than scripts. If applicable of course.