Is there a true VB.NET equivalent to C#'s static class?

I like c#'s static classes because they can't be instantiated or inherited.  They act like a namespace that can't be imported into the code file which allows for more managed organization.  It doesn't seem that VB.NET has anything truly like this.  Modules - They're static, but everything within them is available in the global application scope which just clutters everything.  MustInherit - Keeps the class from being instantiated, but can still be inherited and then instantiated.  NotInheritable - Can't be inherited, but can be instantiated.  I guess I can settle for MustInherit, but I'd really like to see the c# equivalent of a static class.


Is there a way to test an application where you simulate a hundred different clients connecting to a IIS server and asking the same data? At the customer where our project is running they have 400 computers and they often do stress tests with all computers. I on the other hand have only got my laptop... (and a development server).  (In my case the data is asked through a WebORB Gateway).


We know that set of rational numbers is countable. We have bijection betwee $\mathbb{N} $ and $\mathbb{N} \times \mathbb{N }$, whose graphical representation is beow:       Also the bijection between $\mathbb{N} $ and $\mathbb{Z }$ exists. I am unable to find the bijection between $\mathbb{N} $ and $\mathbb{Q} $. Can anyanybody tell me the bijection between $N$ and $Q$ with its graphical representation.


Somewhere (in some book) I have read and added to my notes following definition:     Given a set $X$ a semi-algebra is a subset $\mathcal{S}\subseteq \mathcal{P}(X)$ such that         $X\in\mathcal{S}$;   for all $A,B\in\mathcal{S}$, then $A\cap B\in\mathcal{S}$; and   for all $A\in\mathcal{S}$, then there are finitely many $A_k\in\mathcal{S}$ such that $A^C=\bigcup_{k=1}^n A_k$ with disjoint union.      I can't find anything about it using search engines, thus the defined object must have some other, more official, name. Any idea?


Charge enclosed by a Gaussian surface inside an uniformly charged thin sphere

Why is the electric field due to a charge enclosed by a Gaussian surface inside an uniformly charged thin spherical shell, zero?


(A question regarding:) the graph associated with an open cover of a topological space.

Let $X$ denote a topological space and suppose that $\mathcal{O}$ is an open cover of $X$. Assume $\emptyset \notin \mathcal{O}.$ (Thanks Niels!) Now make $\mathcal{O}$ into an (undirected) graph as follows:   Vertexes: elements of $\mathcal{O}$. Edges: we draw an arc between two vertexes iff they have a non-empty intersection when viewed as subsets of $X$.      Question. Is it true that if $X$ is connected (as a topological space), then $\mathcal{O}$ is connected (as a graph)?   The case where the open cover $\mathcal{O}$ has only two elements is easy, but the general case where $\mathcal{O}$ is allowed to have arbitrary cardinality is harder.


Why are $\vdash$ and $\vDash$ symbols from metalanguage?

I've read in some textbooks that $\vdash$ and $\vDash$ are symbols present only in metalanguage. From this, I infer that their use in object language is unacceptable.  I would like to know why. Can't we define them as relation symbols in a structure? Or introduce them in statements for the sake of formal proofs?


Create Excel files from C# without office

I am writing a program that generates excel reports, currently using the Microsoft.Interop.Excel reference.  My dev computer has Excel on it, but the end user may or may not have Office installed.  Will this tool fail if Office isn't installed on the end users computer, or is this interop service separate from the actual application?


Find records with same string with extra character

OK, so I have a Microsoft SQL Server 2014 database table called owner with around 90,000 records with owner information, another called vehicle with vehicle information  Owner_Name                   owner_id       V_name     owner_id    exempt -------------------------------------       ------------------------------ JACOB JAMISON & JESSICA           35        Civic            35        H3 JACOB JAMISON M & JESSICA B       39        Accord           39        H3  BLACKSON BARRINGTON               56        Bugatti          56        H6 BLACKSON BARRINGTON H             98        SSC              98        H7 BRUSTER MICHAEL                   107       Corvette         107       H9   I'm trying to find all records that have more than one exemption on a vehicle     ( H0 means no exemption). This code below has worked well, as long as the name is exactly the same. However, if there's a variation, such as an extra letter or if it's entered backwards, then it won't return those records. I've looked at things like SOUNDEX, but this wouldn't work in my scenario.  SELECT Owner_name      , COUNT(Owner_name) AS 'xNameAppears'      , COUNT(v.exempt) AS 'ExemptionCount'  FROM owner o INNER JOIN vehicle V ON V.owner_id = o.owner_id WHERE v.exempt <> 'H0' GROUP BY O.owner_name HAVING COUNT(v.exempt) > 1   Is there a solution that would allow me to return records like so, not knowing which owner_name's may be similar? Basically trying to get the server to search through the owner_name column and if there's a similarity such as  JACOB JAMISON & JESSICA and JACOB JAMISON M & JESSICA B then it'll return those records like so:  Owner_Name                      xNameAppears      ExemptCount -------------------------------------------------------------       JACOB JAMISON & JESSICA           2                         2 JACOB JAMISON M & JESSICA B       2                         2 BLACKSON BARRINGTON               2                         2 BLACKSON BARRINGTON H             2                         2   Thank you in advance!


Got Drush 8 installed alright, but when I try to drush up my Drupal 8.0.0 site I get a Parse error: syntax error, unexpected '[' in /is/htdocs/.../.composer/vendor/drush/drush/includes/output.inc on line 188  Line 188 looks alright to me. What may be wrong?


Extract variable/String value from cmd prompt and pass as argument/var to other batch script

I'm running this .exe Windows called ngrok, but that really doesn't matter. The basics are though, I want to "grab" or store a IP that it displays (Forwarding Https variable on the cmd prompt)  Is there an easy way to grab this value and store it in a variable and pass it to another batch script ?


As a Philippine passport holder, can I transfer from Heathrow terminal five to three without a visa?

I would like to know if I need a transit visa if I transfer from Heathrow terminal 5 to three. I will only be staying there two hours as I will be flying to Geneva. I am a Philippine passport holder.


Does D&D 5e have specific rules for what is good and evil?

It's clear that in the game of D&D, 'good' and 'evil' are objective. The 5th edition Player's Handbook gives a few small examples of alignment behaviour on page 122, such as:     Lawful Good (LG) creatures can be counted on to do the right thing as expected by society.   or     Neutral Evil (NE) is the alignment of those who do whatever they can get away with, without compassion or qualms.   These and other examples in the PHB suggest that helping others or 'following your conscience' are good acts, whereas theft and violence are evil acts. Thus, it seems 'good' is somewhat open to interpretation - it involves having a moral or civil 'conscience'.  Alignment gets another short mention in the chapter on spellcasting, in the sidebar on page 203:     Creating the undead through the use of necromancy spells such as animate dead is not a good act, and only evil casters use such spells frequently.   This is again a little unclear - by describing it as 'not good' it leaves both 'neutral' and 'evil' available, but goes on to say it's only used frequently by evil casters.  My question is, are there any other references, in particular more specific ones, to what constitutes a good or evil act in D&D 5th edition?


How to derive this second derivative using the quotient rule?


The solution of ODE $k'(x) = r(k(x))$ is infinitely differentiable if $r$ is

If there is a function $r(x)$ that is infinitely differentiable, prove that $k(x)$ is also infinitely differentiable if $k'(x) = r(k(x))$ for all $x$.   I am trying to somehow prove using induction. However, after taking many derivatives($1$st, $2$nd, $3$rd order), I have not been able to get to the necessary result.


if we are following some other base other than 10, say 8 and we represent a number its value being 43 ( if this were a decimal then the number would be prime ).  but when we convert it in decimals ( as it were not a decimal in the first place ) its value is 35. now the problem arises to me that if we change the base of numbers even primes are no longer primes and the so called special numbers lose their specialty.


I have been trying to do sudo commands inside the Ubuntu terminal and I have 2 issues...  Issue #1: I cannot type in the terminal when it asks for a password.  Issue #2: I never even had set a sudo password before. Is there a default one?


I've made a function/command for use mid-sentence, but it adds spaces everywhere it's inserted. Is there a way to flag it so it doesn't make them?  Code:  \def \testvar{0} \newcommand{\test} {     \ifnum \testvar=1 {         test0     }     \else {         test1     } }   Inside document:  aaaa \test aaaa   Output:  aaaa    test1  aaaa   Wanted output:  aaaa test1 aaaa


Wrong nameserver set by resolvconf and NetworkManager

My DNS server is 192.168.1.152.  This DNS is provided to clients by DHCP. The windows clients on my LAN resolve names properly using that DNS, but my Ubuntu VM doesn't.  The VM is set up with bridge networking and is being properly provided the DNS server, but my local hostnames aren't being resolved by nslookup or browsers.  Here is an nslookup of one of my local domains:  # nslookup unraid.local Server:     127.0.0.53 Address:    127.0.0.53#53  ** server can't find unraid.local: SERVFAIL   Here is what it should resolve by using my DNS server:  # nslookup unraid.local 192.168.1.152 Server:     192.168.1.152 Address:    192.168.1.152#53  Name:   unraid.local Address: 192.168.1.152   /etc/resolv.conf has a wrong nameserver:  # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN # 127.0.0.53 is the systemd-resolved stub resolver. # run "systemd-resolve --status" to see details about the actual nameservers.  nameserver 127.0.0.53   I ran that command. Under DNS Servers, confusingly, it specifies the correct server (and my default gateway).  root@ubuntu:~# systemd-resolve --status Global           DNSSEC NTA: 10.in-addr.arpa                       16.172.in-addr.arpa                       168.192.in-addr.arpa                       17.172.in-addr.arpa                       18.172.in-addr.arpa                       19.172.in-addr.arpa                       20.172.in-addr.arpa                       21.172.in-addr.arpa                       22.172.in-addr.arpa                       23.172.in-addr.arpa                       24.172.in-addr.arpa                       25.172.in-addr.arpa                       26.172.in-addr.arpa                       27.172.in-addr.arpa                       28.172.in-addr.arpa                       29.172.in-addr.arpa                       30.172.in-addr.arpa                       31.172.in-addr.arpa                       corp                       d.f.ip6.arpa                       home                       internal                       intranet                       lan                       local                       private                       test  Link 2 (ens33)       Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6        LLMNR setting: yes MulticastDNS setting: no       DNSSEC setting: no     DNSSEC supported: no          DNS Servers: 192.168.1.152                       192.168.1.1   I don't want to "hard code" the DNS server's IP in a config file because I won't be able to resolve when I change networks.  How can I get resolvconf and NetworkManager to automatically set the DHCP server's IP in /etc/resolv.conf?


Choosing an ideal minibatch size for a large sample

I know that bigger batch size gives more accurate results, but I'm not sure which batch size is ideal given the following cases:   Training on 65000 examples and validating on 13000 examples Training on 50000 examples and validating on 25000 examples Training on 71000 examples and validating on 4200 examples Training on 61000 examples and validating on 14000 examples Training on 56000 examples and validating on 19000 examples   How big should the minibatch size be and why?  System specs: 128GB RAM


Is there any thing other than time that "triggers" a radioactive atom to decay?

Say you have a vial of tritium and monitor their atomic decay with a geiger counter. How does an atom "know" when it's time to decay? It seems odd that all the tritium atoms are identical except with respect to their time of decay.


Suppose that $\sum_{n=0}^{\infty} a_n^{2}x^{n}$ converges exactly on [-6,6].

Suppose that $$\sum_{n=0}^{\infty} a_n^{2}x^{n}$$ converges exactly on [-6,6]. Find the largest set on which you can guarantee that $$\sum_{n=0}^{\infty} a_nx^{n}$$ converges, and prove your answer.   I think the largest set is $(-\sqrt{6},\sqrt{6})$. I am not sure how to prove this answer.


Do I need a visa to transit in Istanbul, Turkey?

I'm flying to Kuala Lumpur from Oslo with an 8-hour stopover in Istanbul on Turkish Airlines.   Do I need a visa if I want to leave the airport? I'm travelling on a Malaysian passport.  What would I be able to see or do in such a short time?


How to show that $f(x) = 0$ for all $x$ in $[a, b]$

Assume that $a \lt b$ and that the continuous function ${\rm f} : \left[a, b\right] \to {\mathbb R}$ has the following two properties: $\quad\left(\rm a\right)~{\rm f}\left(x\right) \geq 0\,, \forall\ x \in \left[a, b\right]\quad$ and $\quad\left(\rm b\right)~\displaystyle{\int_{a}^{b}{\rm f}\left(x\right)\,{\rm d}x = 0}$.  How do I show that ${\rm f}\left(x\right) = 0\,, \forall\ x \in \left[a, b\right]\ {\large\rm }$?


How can I set the text of a WPF Hyperlink via data binding?

In WPF, I want to create a hyperlink that navigates to the details of an object, and I want the text of the hyperlink to be the name of the object. Right now, I have this:  <TextBlock><Hyperlink Command="local:MyCommands.ViewDetails" CommandParameter="{Binding}">Object Name</Hyperlink></TextBlock>   But I want "Object Name" to be bound to the actual name of the object. I would like to do something like this:  <TextBlock><Hyperlink Command="local:MyCommands.ViewDetails" CommandParameter="{Binding}" Text="{Binding Path=Name}"/></TextBlock>   However, the Hyperlink class does not have a text or content property that is suitable for data binding (that is, a dependency property).  Any ideas?


How to set up Android kernel development environment for Sony Xperia ZR (and potentially similar ones)

Building on and motivated by  on Ubuntu, I would like to collect instructions for installing all necessary tools and sources for compiling (and potentially developing) kernels for the .


The Power settings screen in Ubuntu 18.04 lets me choose 10 different options for blanking the screen after a certain length of time. Oddly, none of the options are greater than 15 minutes.  I use multiple computers while working and often keep reference material up for 30 minutes to an hour without interacting with the machine. I would really like this timeout to be 1 hour so if I leave the screen does eventually turn off without getting in the way of my workflow.  There must be some way to set this option to an hour. Maybe outside of the settings GUI? Has anyone had any luck?  Also, who uses 12 minutes?! There are lots of options but most of them are completely useless. I would love to find the discussion that ended up with these options. Maybe the idea is to save power, but instead they are going to force many users to use Never and waste tons of power.


I travel a lot - how can I change my address to a non-income tax state without actually "living" there?

Due to my profession, I'm constantly traveling, and I rarely stay at my permanent address. I was wondering if I could change my address to a state that doesn't have state income taxes. However, from my understanding, PO boxes and private mail box companies don't constitute permanent residence and the IRS also knows about this. Is there any way I can do this? I don't have any family members that I can use as a mailing/permanent address, or else I would have done that.


Why don't you get a notification when your comment is upvoted?

I've read about when notifications are sent from comments, as stated in this question:   However, sometimes I like to know when others upvote my comment. It tells me that others are thinking the same why I am, and while I don't think it's deserving of reputation, it gives me confidence that my post is being read and that others agree. In addition, I am more likely to follow up on a comment thread (that I am not being constantly tagged in) if my comments are upvoted, but sometimes it is easy to forget a comment you left on a post, and it is sometimes hard to go find it again (a meticulous process just to see if it has any upvotes).  I understand that notifications can sometimes be a logistical nightmare for systems like SE, but would it be feasible to get a notification when your comment is upvoted? If not, what would be the reasoning behind such a decision (not that I necessarily disagree with it, just wondering)?


aticonfig still shows old config after replacing video card

I had a system with AMD 7950 video card installed,  than I upgraded the video card to R9 280X and reinstalled the driver to the latest version  AMD Catalyst™ 14.1 Beta Driver  I did this for reinstall the card config:    sudo aticonfig --initial -f --adapter=all   but now I still get the old version:  aticonfig --odgt --adapter=all  Adapter 0 - AMD Radeon HD 7900 Series             Sensor 0: Temperature - 29.00 C


Since 90 % of matter is what we cannot see, why can't it be black-holes from early on? Is is possible to figure out that there are no black holes in the line of sight of various stars/galaxies we observe?


Viewing vote counts while reviewing immediately unmasks review audits

Assume you're performing a review of either a First post or Late answer (on any SE site where audit reviews are enabled). If you do have the  privilege on that site, you can also "view the vote counts" for the post you're reviewing.  If the post is NOT an audit review, you'll see the vote counts which will look similar to this image (taken from the above link):    If the post is an audit review, then either of the following will happen:   for a high quality post, as in  I completed today, you'll see the actual vote counts, which are typically lots of upvotes, and hardly any (quite often none) downvotes. for a low quality post, you will NOT see the actual vote counts, but instead you'll get a (red) popup message with "This post has been deleted.".   So think about this ... if during any First Posts or Late Answers review, all such privileged user does is to view the vote counts (without even looking at the title of the post, or the actual post content), any review audit is revealed by doing so.  Unless I am missing something, I doubt this is part of the intended design of "review audits". And therefore it seems to me that a possible remedy could be that in the First Posts and Late Answers review queues, the "view the vote counts" facility should be disabled for any privileged users. And even though another remedy could be to fail the audit if a user attempts to check the vote counts, I'd prefer to just disable this facility during reviews.  Note: some reasons why I think this question is different from  '':   that question doesn't say anything about high quality posts ... for which a similar issue exists. it only mentions the First Posts queue, while for Late Answers as well as Triage on Stack Overflow the same issue exists, and potentially the same is true for the other review queues. it is about Stack Overflow, while my question is about "any SE site where audit reviews are enabled".   I haven't had an opportunity yet to double check if a similar scenario applies to any of the other review queues (Low Quality Posts, etc), because I don't have enough rep to access those queues yet on sites with audits, and on the sites I do, review audits are disabled. Though I think I can already predict the results of such similar scenarios also (i.e.: same issue).


How can I give other drives and partitions short, meaningful names in nautilus?

In nautilus and Unity the external drive has a nice short descriptive name "mcat", but all partitions on the 4 internal drives are displayed as a size (834 GB filesystem) or a huge 32-character string form of a GUID:  I'm guessing the external drive is nice, short, sweet and readable because that drive may have no partitions (well, just one I guess) and that name may be the drive label, whereas partitions usually don't have names. That may explain my problem, but doesn't solve it.  Is there some way to give reasonable names to these partitions in nautilus and Unity?


When i'm trying to execute this code:  \documentclass[a4paper, 12pt]{article}  \usepackage{filecontents}  \begin{filecontents*}{trial.bib}     @article{paper,     author={name},     title="{title}",     journal={J. Phys. Conf. Ser.},     volume={67},     number={},     pages={23},     year={2007} } \end{filecontents*}  \begin{document} \title{Autumn Term Report} \author{myself} \date{\today} \maketitle  HI \cite{paper}  \bibliographystyle{unsrt} \bibliography{trial} \end{document}   I get the following:    I can not understand why my BibTex does not work. I'm using TeXstudio and tried to execute that by XeLaTeX and PdfLaTeX compilers.  Thanks in advance!


Count number of occurrences of a char in the sequence

I have to write unix script for count number of occurrences of G char in the sequence: "GTCGTAATGCGGATCGGAATCGA"  and i want output as "number of nucleotide G is 8"


My understanding of focal length is that it is the distance from the lens to the sensor; in my observations: higher focal lengths make for longer lens.  Then I started thinking about how a lens focuses. If my previous notion of focal length was true, how does focus work? Does the lens move in or out to focus? Doesn't that also change the focal length? What about in a prime lens?  When I rotate the zoom ring I can clearly see the inner lenses moving back and forth. Also, there is a clear start and stop point where I can't rotate the ring any further.  When I rotate the focus ring I can't notice the lenses moving at all unless it's just so tiny that it's hard to see. Also, I can rotate my focus ring endlessly; although, it doesn't seem to have an effect past certain points. Let's say I go 1 turn past focus on my subject, it takes 1 turn to get back in focus. If I go 30 turns past focus, it still only takes 1 turn back to get back in focus. So if focus if the focus ring only actually does something within a certain range, why does the design let you turn it endlessly?  Thanks.


$\frac{1}{x-a} + \frac{1}{x-b} + \frac{1}{x-c} = 0 $ has precisely two real roots

Prove that given $ a < b < c $ this equation:  $$\frac{1}{x-a} + \frac{1}{x-b} + \frac{1}{x-c} = 0 $$   has precisely 2 real roots.   I understand there are 3 point of discontinuities, but I have no idea how to prove this. Can you give me a hint?   Thanks in advance.


How do I install Minecraft mods for Xbox 360

I was just wondering how I would get the skin packs and different mods for Xbox 360.


Prove that if n items can be divided into a $\textit{stable}$ collection of piles then n = 1 + 2 + · · · + k, for some positive integer k.

A game is played with a collection of $n \geq 1$ beans. The beans are first divided into piles. A move consists of taking a bean from each pile, and forming a new pile with these beans. This process is repeated indefinitely. So, for example, if 12 beans were divided into piles of 3, 4, and 5 beans, then after one move there would be piles with 2, 3, 3, and 4 beans, and after another move there would be piles with 1, 2, 2, 3, and 4 beans. A collection of piles of beans is stable if making a move does not change the number of piles of any given size. So, for example, three piles of sizes 1, 2, and 3 would form a stable collection. Prove that if n beans can be divided into a stable collection of piles then n = 1 + 2 + · · · + k, for some positive integer k.


Don't let flag-to-close flags linger for months in flag purgatory

Here is the close queue:        Here is an active flag I have:        I currently have 5 flags pending in the close queue. Some, like this one, are months old. This doesn't feel right and may discourage newer users from flagging things that need attention with the assumption that a flag may be ignored for 4 months, so why bother?  Here are some possibilities:   Bump flags that have been languishing for more than 30 days to the front of the close queue (or weight questions with said flags a bit higher). Won't solve the issue, but will make it less egregious Punishing a misbehaving mod by forcing them to go through every sub-3000 user's flagged close votes in the queue and free them from flag limbo , "a new 10K flag list for "stuck" flags, which would be any close flag that is unhandled within 30 days."   This question has been heavily edited under the assumption that flags didn't get refreshed every day. Apparently they do, thanks to Bill and Asheesh, so sorry about the misdirection. Languishing flags still an issue though!


How are the medically invasive surgery scenes shot in movies or even for television ? House MD has some of the most detailed surgery scenes on television - for example the scene where House himself tries to remove the tumors from his leg after self-medicating with experimental drugs that were being tested on rats.   Is most of it CGI or are actors made to wear skin suits for those scenes ?


Gnome wireless issue with a working network

Just installed Debian 10 with unfree additions. Initially, it started up to console without networking, so I followed steps in  to get my wireless to work. Then I proceeded to install gnome to get GUI. My wireless situation is currently like this  from terminal, wireless works just fine. apt etc work. in gnome, for example Firefox is able to use network however, when I go to Software -> Updates in Gnome, it says there is no internet access available Settings -> WiFi says "No Wi-Fi adapter found"  So why doesn't Gnome itself understand I have a network, even if terminal and Firefox do understand?


Run local script with local input file on remote host

I have a local script that I want to run on several remote servers. The command syntax I'm using is:  ssh <remote_server> "bash -s" < ./local_script.sh   This works fine, and even lets me pass parameters to local_script.sh. However, I'd really like to pass an input file to it, as in:  local_script.sh < local_file.txt   Combining these two statements gives:  ssh <remote_server> "bash -s" < ./local_script.sh < local_file.txt   When I run this, I get  bash: line 1: FOO: command not found bash: line 2: BAR: command not found bash: line 3: BAZ: command not found ...   where FOO, BAR, BAZ, etc. are the first word on each line of local_file.txt:  FOO     FOO_PARAM1 BAR     BAR_PARAM1 BAZ     BAZ_PARAM2 ...   So, it looks like "bash -s" on the remote server is interpreting local_file.txt as a script file, instead of an input file to local_script.sh. Is there any way to fix this (other than creating a wrapper script)?


Can I reset my stay in Korea by going out?

I live in a country which allows me to stay in Korea for 90 days on a tourist visa. I’m wondering is it enough for me to go out from Korea, let say I go to Japan for few days and then I go back to Korea. Would I be allowed to stay 90 more days in Korea then?


we're having a strange issue with our Azure virtual machines. When we make a connection to the servers, via socket, then leave it idle for exactly 5 minutes, the connections gets dropped. It does not matter in which country the server is booted up, we get the same thing. Is there an automatic idle connection drop on azure?  We have tested this on servers hosted with other providers and the idle connection stays alive as long as we need it.  Hope someone knows how to resolve this?  Thanks.


What are the differences between Factor Analysis and Principal Component Analysis?

It seems that a number of the statistical packages that I use wrap these two concepts together. However, I'm wondering if there are different assumptions or data 'formalities' that must be true to use one over the other. A real example would be incredibly useful.


I'm using the article class and I would like to know how it is possible to change the name in the header of a specific page.  I have the following sections in my article:  \section{Introduction} \section{Codes} \section{Implementation} \section*{Conclusion} \addcontentsline{toc}{section}{Conclusion}   The section named "Conclusion" isn't numbered. The problem is that the header in this section is the same as the previous section which is in this case the section "Implementation". I would like to know how it is possible to change the header's name "Implementation" to "Conclusion" in this page.  My article has the following settings:  \fancyhf{} \pagestyle{fancy} \rfoot{\thepage} \rhead{\leftmark}


Can I use the same Thunderbird profile under Windows and Ubuntu?

Hi I'm curious if it's possible to use the same Thunderbird profile, stored on a NAS, form an Ubuntu based PC as well as from a Windows based one. Anybody out there with some experience?  Since one month, I now use a setup, where I have stored the Thunderbird Profile on my NAS and use it from different PC's under Windows. I would like to keep it like this, while switching one of the PC's to Ubuntu 11.10 (just done and it runs quite well) and use the same profile.


Picture indicating the fifth roots of unity

I would like to have the unit circle, centered at the origin, on the Cartesian plane drawn.  The origin is to be marked with a dot and labeled "O" and five dots are to be drawn on the circle, one on the x-axis, and the others at k(2\pi/5) radians from the positive x-axis for each integer 1 \leq k < 5, and they are to be labeled "w_{k}".  Arrows are to be drawn from the origin to each w_{k}, too. One angle is to be drawn and labeled - the one from the positive x-axis to the ray through w_{1}.  I have included some of the code.  It starts with the following commands.  \tikzset{mydot/.style={fill,circle,inner sep=1.5pt}}   Is there a manual that explains each of these commands?  I guess that this is instructing LaTeX how to make the dots indicating the coordinates each time "\mydot" is in the code.  \documentclass{amsart} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsthm} \usepackage{newlfont} \usepackage{mathtools} \usepackage{tikz}  \tikzset{ mydot/.style={   fill,   circle,   inner sep=1.5pt   } }  \begin{document}  \begin{tikzpicture}[>=latex]   % the coordinates of the vertices \coordinate (O) at (0,0); \coordinate (w_{1}) at (\cos(2\pi/5), \sin(2\pi/5));  % the axes \draw[help lines,->] (-1.5,0) -- (1.5,0); \draw[help lines,->] (0,-1.5) -- (0,1.5);  % labelling the vertices \node[mydot,label={below:$O$}] at (O) {}; \node[mydot,label={right:$w_{1} = \bigl(\cos(2\pi/5), \sin(2\pi/5)\bigr)$}] at (w_{1}) {};   % the arcs for the angle \begin{scope}[gray] \draw[->]   (1,0) +(0:0.5cm) arc [radius=1cm,start angle=0,end angle=2\pi/5] node[midway,right] {$2\pi/5$}; \end{scope}  \end{tikzpicture} \end{document}


Dealing with spaces of variables for `mv`

let's say I have a directory with the following files/directories:  google apple mozilla foundation   # a file with spaces browsers   So I would like to move files into browsers directory. Here is a script I wrote:  for d in $(ls); do     if ! [ "$d" == "browsers" ]; then         mv "$d" "browsers"     fi done   Then google and apple went to browsers but I got:  mv: cannot stat 'mozilla': No such file or directory mv: cannot stat 'foundation': No such file or directory   Obviously, the problem is spaces in a variable. What's the proper way to deal with this?  Of course I believe there should be a more elegant one-line command to do this, but I would like to know how I should use variables with spaces.


Attempt to invoke virtual method 'java.util.ArrayList com.example.news.ResponseModel.getArticles_lists()' on a null object reference

Response Model is a class containing list of member of type list of ArticleList class and getArticles_lists() is the member of Articlelist class I am getting error in the line my_list = response.body().getArticles_lists(); `public class MainActivity extends AppCompatActivity { RecyclerView myRecyclerView; RestApiInterface restApiInterface; CustomAdapter myCustomAdapter; LinearLayoutManager linearLayoutManager; ArrayList<ArticlesList> my_list;  private static final String BASE_URL = "https://newsapi.org/v2/"; String apikey = "af2d2c9c5f3649f1bb0769e574bb8950"; String country = "in";   @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main);      my_list = new ArrayList<>();      myRecyclerView = findViewById(R.id.recyclerView);     linearLayoutManager = new LinearLayoutManager(this, LinearLayoutManager.VERTICAL,false);      myRecyclerView.setLayoutManager(linearLayoutManager);       //Retrofit     Retrofit retrofit = new Retrofit.Builder()             .baseUrl(BASE_URL)             .addConverterFactory(GsonConverterFactory.create())             .build();      restApiInterface = retrofit.create(RestApiInterface.class);     Call<ResponseModel> call = restApiInterface.getlists(country, apikey);      call.enqueue(new Callback<ResponseModel>() {         @Override         public void onResponse(Call<ResponseModel> call, Response<ResponseModel> response) {             my_list = response.body().getArticles_lists();            myCustomAdapter = new CustomAdapter(getApplicationContext(), my_list);            myRecyclerView.setAdapter(myCustomAdapter);         }          @Override         public void onFailure(Call<ResponseModel> call, Throwable t) {          }     });   }  }`


Prove that $x_{n+1}=\frac{1}{2}x_n+\frac{1}{x_n}$ converges $\sqrt{2}$.

I struggle to prove this using the definition only. I can prove it by using some limit laws, but I wanted to use only the definition out of curiosity. I would appreciate some hints.  Q: Prove that the sequnece below converges to $\sqrt{2}$: $$x_{n+1}=\frac{1}{2}x_n+\frac{1}{x_n},$$ where $x_1 = 2$.


What is the most efficient way to cleanse the corruption/crimson?

It’s been spreading for a while now and... I don’t know what to do. How can I cleanse it in the most efficient, easiest way?


So I’m achievement hunting Skyrim, on my best save, I have 10/15 daedric artifacts needed for “Oblivion Walker”. So I don’t want to make a new build, but for the quest “Pieces of the Past”. I need Silus Vesuius alive, I kind of killed him right when I got the quest, thinking I could just take Mehrunes Razor for myself. Well I just realized (42 levels later) that you can’t do that. Is there anyway to get the Razor without starting from scratch?


Steam wants to redownload half-downloaded game

I was downloading Rainbow Six Siege and I added the texture pack before it finished.  I regretted it and unchecked the tick in the DLC tab, but now Steam is trying to re-download the whole game. I have about 30 GB of the game data in the downloads folder of Steam, but it won't recognize it.  Is there anything I can do to fix this? I don't have unlimited net traffic. And i also don't have the .acf file in the downloads folder,it's been replaced, i only have the game files.


Filling up space with irrational fractional parts

While trying to generalise a mechanics exercise with a friend, we came up with this question, in an attempt to understand wether sine curves with irrational period defined inside an annulus will end up 'filling up' the space in the annulus.   Mathematically, let $x \in \mathbb{R} \setminus \mathbb{Q}$:  Is $S_x=\{\mathrm{frac}(n x): n \in \mathbb{N}\}$  dense in $[0,1] \subset\mathbb{R}$?  This is equivalent to asking wether sequences of fractional parts of multiplies of one fixed irrational number can approximate every number in $[0,1]$.   My intuition says this may be true, but I see no reason why there shouldn't be some 'holes' in $S$. If that's the case, which kind of properties of $x$ determine the how $S_x$ is filled up?


Premises And the Conclusion of the Paradox: (1) When the arrow is in a place just its own size, it’s at rest. (2) At every moment of its flight, the arrow is in a place just its own size. (3) Therefore, at every moment of its flight, the arrow is at rest.   If something is at rest, it certainly has $0$ or no velocity. So, in modern terms, what the paradox says is that the velocity of the arrow in "motion" at any instant $t$ (a duration-less duration) of time is '$0$'.    I read a solution to this logical paradox. I do not remember who proposed it, but the solution was something like this:      Let the average velocity of the arrow be the ratio $$\frac{\Delta s}{\Delta t}.$$   Where $\Delta s$ is a 'finite' interval of distance, travelled over a finite duration $\Delta t$ of time. Because an instant is duration-less, and no distance is travelled during the instant, therefore $$\frac{\Delta s}{\Delta t}=\frac{0}{0}$$ or, $$0 \cdot \Delta s=0 \cdot \Delta t.$$   In other words, the velocity at an instant is indeterminate, because the equation above has no unique solution.   This solution denies the concept of a 'definite' instantaneous velocity at some instant $t$ given by the limit of the ratio $\frac{\Delta s}{\Delta t}$ or $$v(t)= \lim_{\Delta t \to 0}  \frac{\Delta s}{\Delta t}.$$  Whatever be the velocity at some instant $t$, how does the above "definition of the instantaneous velocity" or the calculus tell us that the arrow or any other object in motion is moving at an instant? How can something move in a duration-less instant, when it has no time to move? What is the standard modern science solution to understand this logical paradox?


Traveling with a back to back Schengen Visa

I have two Schengen visas    one from Spain: valid until 05/19/2017 one from France: valid from 05/20/2017 until 11/19/2017   I am traveling Friday, 05/12/2017 to Spain for two days then flying to France for two weeks.   Do you think I will run into issues because I have a back to back visas?


git: how to make it 'realise' that a file is removed

When I delete a file by going to the folder my self and deleting it manually (not with git command line interface), git doesn't see that a file is deleted when I perform "add ." or "commit -m".  How can I get it to see, after deleting a file, that a file is removed and it shall delete it from the deployment server during a push?


How does the integral of $\sin^2(x)/x$ diverge from 1 to infinity?

How can I prove without complex numbers that the integral: $$ \int_0^{\infty } \frac{sin^2(x)}{x}$$ diverges?


How can you prove or disprove that any even number is the sum of two primes?


Understanding Local Function Capturing of Variables inside Loops

I've noticed the following. This C# code:         List<Action> methodList = new List<Action>();         for (int iFn = 0; iFn < 4; ++iFn)         {             void thisLocalFunction()             {                 string output = iFn.ToString();                 Console.WriteLine(output);             }             methodList.Add(thisLocalFunction);         }                  for (int iFn = 0; iFn < methodList.Count; ++iFn)         {             methodList[iFn]();         }  Produces 4, 4, 4, 4. On the other hand, this code:         List<Action> methodList = new List<Action>();         for (int iFn = 0; iFn < 4; ++iFn)         {             string output = iFn.ToString();             void thisLocalFunction()             {                 Console.WriteLine(output);             }             methodList.Add(thisLocalFunction);         }                  for (int iFn = 0; iFn < methodList.Count; ++iFn)         {             methodList[iFn]();         }  Produces 0, 1, 2, 3. I'm not sure I understand why. I've read a bit about "capturing" but I'm not sure if that's related to what's going on here. Could someone give me a breakdown of why the two implementations behave differently?


Where can I find stock or custom ROMs for my Android device?

There are several reasons to be looking for a ROM:   Upgrading or downgrading your stock ROM Looking for firmware from a different region/language Flashing a custom ROM for different features, removing bloat, etc.   But where can one find ROMs in the first place?  What sites are likely to have the ROM I need?  ; please add to the wiki answer instead of posting separate answers.  See also:


We throw a fair die $n$ times, show that the probability that there are an even number of sixes is $\frac{1}{2}[1+(\frac{2}{3})^n]$. For the purpose of this question, 0 is even.   I tried doing this problem with induction, but I have problem with induction so I was wondering if my solution was correct:   The base case: For $n=0$, our formula gives us $\frac{1}{2}[1+(\frac{2}{3})^0] =1$. This is true, because if we throw the die zero times, we always get zero sixes.  Suppose it's true for $n=k$. Then the odds of an even number of sixes is $\frac{1}{2}[1+(\frac{2}{3})^n]$, and thus the odds of an odd number of sixes is $1 - \frac{1}{2}[1+(\frac{2}{3})^n]$.    For $n=k+1$, there are two ways the number of sixes are even:  a. The number of sixes for $n=k$ was even, and we do not throw a six for $n=k+1$: $ \frac{5}{6} \cdot  \frac{1}{2}[1+(\frac{2}{3})^n]$  b. The number of sixes for $n=k$ was odd, and we throw a six for $n=k+1$: $\frac{1}{6}(1 - \frac{1}{2}[1+(\frac{2}{3})^n])$  So the probability $p$ for an even number of sixes at $n=k+1$ is $ \frac{5}{6} \cdot  \frac{1}{2}[1+(\frac{2}{3})^n] + \frac{1}{6}(1 - \frac{1}{2}[1+(\frac{2}{3})^n])$  I have two questions   How do I get from $ \frac{5}{6} \cdot  \frac{1}{2}[1+(\frac{2}{3})^n] + \frac{1}{6}(1 - \frac{1}{2}[1+(\frac{2}{3})^n])$ to $\frac{1}{2}[1+(\frac{2}{3})^n]$? I seem to have done something wrong, I can't get the algebra correct, I get $p = \frac{1}{3}[1+(\frac{2}{3})^n] + \dfrac{1}{6}$ Other than that, is my use of induction correct? Is it rigorous enough to prove the formula?


How to upload LaTeX-generated pdf paper to arXiv without LaTeX sources

arXiv is smart enough to detect whether your PDF is generated by LaTeX. If it is, arXiv asks for the sources of the PDF instead of the PDF file itself. This is really annoying and inconvenient.  I ask a way to fool the arXiv and avoid PDFs being detected as generated by LaTeX (even if they were indeed).  I have tried this: : "create a pdf from word and then simply insert pages from your article, and delete the word's page".  And it did not work.


impossible installation : "packages have unmet dependencies" and "broken packages"

I try to install "muse", and I have this message :  The following packages have unmet dependencies:  muse : Depends: liblo7 (>= 0.26~repack) but it is not installable E: Unable to correct problems, you have held broken packages.   I'm really sorry but even looking on the forum I have not been able to correct this problem. This is not the first installation that blocks due to broken package.  This is the result of apt-get install -f :  Reading package lists... Done Building dependency tree       Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 36 not upgraded.   The result of sudo apt-get update --fix-missing ends with :  W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://dl.google.com/linux/chrome/deb stable Release: The following signatures were invalid: BADSIG 1397BC53640DB551 Google Inc. (Linux Packages Signing Authority) <linux-packages-keymaster@google.com> W: The repository 'http://download.ebz.epson.net/dsc/op/stable/debian lsb3.2 Release' does not have a Release file. N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use. N: See apt-secure(8) manpage for repository creation and user configuration details. W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://ppa.launchpad.net/voldyman/markmywords/ubuntu xenial Release: The following signatures were invalid: BADSIG 837E86B594DF3268 Launchpad PPA for Akshay Shekher W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release.gpg  The following signatures were invalid: BADSIG 1397BC53640DB551 Google Inc. (Linux Packages Signing Authority) <linux-packages-keymaster@google.com> E: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages  Writing more data than expected (2627 > 492) [IP: 2001:860:f70a::2 80] W: Failed to fetch http://ppa.launchpad.net/voldyman/markmywords/ubuntu/dists/xenial/Release.gpg  The following signatures were invalid: BADSIG 837E86B594DF3268 Launchpad PPA for Akshay Shekher E: Failed to fetch http://linux.teamviewer.com/deb/dists/stable/main/i18n/Translation-en  403  Forbidden [IP: 2600:9000:2007:9000:1c:3aaa:b100:93a1 80] W: Some index files failed to download. They have been ignored, or old ones used instead.   The result of apt-get update ends with :  W: http://download.ebz.epson.net/dsc/op/stable/debian/dists/lsb3.2/Release.gpg: Signature by key E5220FB7014D0FBDA50DFC2BE5E86C008AA65D56 uses weak digest algorithm (SHA1) E: Failed to fetch http://linux.teamviewer.com/deb/dists/stable/main/i18n/Translation-en  403  Forbidden [IP: 2600:9000:2007:f000:1c:3aaa:b100:93a1 80] E: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages  Writing more data than expected (2627 > 492) [IP: 2001:860:f70a::2 80] E: Some index files failed to download. They have been ignored, or old ones used instead.   I do not know in which direction to look.  Many thanks :)


I quite like the look of the font used in the code blocks that appear on Stack Overflow.    What, dear listener, is the font face used for such?


Apologies for my posting tone, but I'm leaving this computer now and wanted to make clear that there's a problem. Note that I didn't use the incognito mode when logged into my Open-ID provider because of some SO-unrelated issues with it.  Logging out of SO has always puzzled me. The recent change might be an improvement, though the logout link keeps to be hidden nearly as hard as before. Nonetheless I see I've been smart enough to find it (shouldn't I get a golden badge for this hard work?) and logged out of SO.  The sad thing is that I'm still logged in here on meta. You can argue it's a different site, but seriously:   Is it? Should we care? Does it make any sense to log out of one sub-site and stay logged in in the others?   An answer like "" is non-sense. In addition to the fact that that Google does it, I'd say that it's pretty easily doable (make the cookie dependent of a counter incremented on each logout or whatever, the crypto site guys surely know better).   In similar questions I've seen, the answers seem to miss some problems:   There should be a real global logout, which means   it should log you out of all SO sites no matter if you've failed to use the incognito mode no matter if the browser supports it no matter if the cookies get backed up somewhere in the meantime no matter on how many devices you logged in    Simply tell the server that all the current cookies are invalid. That simple, really.


Break a loop animation (Make Cyclic) to start a new one

I've used the 'Make Cyclic' to loop these keyframes (image below). So, I want to break the loop at a certain time to do a new animation (insert another kf to do a different thing than the loop does). Any help how to do this?    Thanks in advance!


Problem in graphics at the boundary of windows

When I open windows, there is a some problem in graphics at the boundaries. Please help.


Get Debug Logs from Salesforce with MavensMate

I'm working with MavensMate v0.0.11-beta7 and using Salesforce API v.38 in configuration. I would like to get Debug Logs from Salesforce with MavensMate in order to open the files with Sublime Text.   I have Started Logging with MavensMate as it can be observed in the image:   After that new trace flag is created in Salesforce.  Now my problem is how can be the Debug Logs downloaded. I have created the folder [my_project_folder]/debug/logs and I have follow this previous post in StackExchange () but with my version of MAvensMate I don't have the options of "Fetch Logs".  This question is not the same like the question linked in the previous paragraph because "Fetch Logs" option is not present in my Mavensmate version and debug logs aren't downloaded in a automatic way. So, how can I pull to get the logs via Mavensmate?


why floating point numbers does not give desired answer?

hey I am making small C++ program to calculate the value of sin(x) till 7 decimal points but when I calculate sin(PI/2) using this program it gives me 0.9999997 rather than 1.0000000 how can I solve this error? I know of little bit why I'm getting this value as output, question is what should be my approach to solve this logical error? here is my code for reference #include <iostream> #include <iomanip> #define PI 3.1415926535897932384626433832795 using namespace std;  double sin(double x); int factorial(int n); double Pow(double a, int b);  int main() {     double x = PI / 2;     cout << setprecision(7)<< sin(x);     return 0; }  double sin(double x) {     int n = 1;      //counter for odd powers.     double Sum = 0; // to store every individual expression.     double t = 1;   // temp variable to store individual expression     for ( n = 1; t > 10e-7; Sum += t, n = n + 2)     {         // here i have calculated two terms at a time because addition of two consecutive terms is always less than 1.         t = (Pow(-1.00, n + 1) * Pow(x, (2 * n) - 1) / factorial((2 * n) - 1))             +             (Pow(-1.00, n + 2) * Pow(x, (2 * (n+1)) - 1) / factorial((2 * (n+1)) - 1));     }      return Sum; } int factorial(int n) {     if (n < 2)     {         return 1;     }     else     {         return n * factorial(n - 1);     } } double Pow(double a, int b) {     if (b == 1)     {         return a;     }     else     {         return a * Pow(a, b - 1);     } }


Can I describe the time like "eleven thirty hours"?

I'm reading now "Inherit the Stars". In the book there is a expression like this:     "Make it round about eleven thirty hours," Gray advised.   Normally the "hours" is skipped, right?  Is this expression right English? Or is it just kind of SF language?


So, a friend of mine is trying his hand at GMing and is planning out a campaign that will start us out at level 5 with a 5000gp starting budget. My Elven Swashbuckler will be bringing along a +1 Keen Elven Thinblade, but I'm having trouble calculating the cost due to confusion from the wording of the book; can a weapon have a +1 bonus from being Masterwork quality in addition to a magical effect, or would that +1 bonus be priced as a magical effect, too?


How do I align all paragraphs between all pages

The alignment of the paragraphs in each page separetely seems fine, but when you look at the difference between where they begin in page 1 and 2, it looks really ugly and stuff.


Proving expression$\geq 2$, where variables are $x,y,z$

If $x,y,z$ are distinct real number. Then prove that $$\bigg(\frac{x}{y-z}\bigg)^2+\bigg(\frac{y}{z-x}\bigg)^2+\bigg(\frac{z}{x-y}\bigg)^2\geq 2$$   Try : let $\displaystyle \frac{x}{y-z}=p\Rightarrow x=py-pz\Rightarrow x-py+pz=0$  And let  $\displaystyle \frac{y}{z-x}=q\Rightarrow y=qz-qx\Rightarrow qx+y-qz=0$  let $\displaystyle \frac{z}{x-y}=r\Rightarrow z=xr-yr\Rightarrow xr-yr-z=0$  So $$\begin{bmatrix}  1& -p &p \\   q& 1 & -q\\   r& -r & -1 \end{bmatrix}\begin{bmatrix} x\\  y\\  z \end{bmatrix}=\begin{bmatrix} 0\\  0\\  0 \end{bmatrix}$$  Which is $AX=B$  So for solution of equation , $|A|=pq+qr+rp+1=0$  Now using $(p+q+r)^2=p^2+q^2+r^2+2(pq+qr+rp)$  So $$p^2+q^2+r^2\geq 2$$  What i have used above is right or wrong. If it is right then i did not understand when will the equality hold  If it is wrong then could someone explain me a right solution, thanks


How prove a group is not free abelian group

Anyone can give me a hint please?  "Show $\mathbb{Z}^{\mathbb{N}}$ is not a free-abelian group"


Let $X$ be a nonzero $n × n$ matrix such that $X^m = 0$ for some $m ∈ N$. Let $b ∈ N$ be the smallest number for which $X^b = 0$. Show that $b≤ n$.

I figure it has something to do with minimal polynomials and the Jordan canonical form, I just can't piece it together. I would really appreciate a hint on how to start it.


I see the  on the user page.  It seems to edit posts sometimes.  What is it? And why has it downvoted over 1800 times? See also:


For an individual, what's the point of using a money management tool like GNUCash?

I keep my budget on a spreadsheet.  I can log into my bank and view my savings, checking, and retirement accounts, as well as my loans.  Why would I want to expend the (seemingly significant) extra effort and use financial software?


Converting String to Char with If/Else Statement

I'm really new to programming and I've been searching for days for a solution to this lab I'm working on. The lab is pretty simple and I believe I have the logic down, however when executing my code, I'm not getting the desired results. The program asks for input of three integers and one character. If the character is an 'S' the program will print the sum of the first 3 integers, if the character is a 'P,' the product, 'A,' the average, and any other character prints an error.  Below is my code. It asks for three integers and a character but the result is always an Error, even if i type in an 'S,' 'P,' or 'A.'  Any help would be greatly appreciated.  Thanks, Joe      int n1, n2, n3;     String numberFromKB;     String charFromKB;     Scanner keyboard = new Scanner (System.in);      numberFromKB = JOptionPane.showInputDialog("Enter the first number.");     n1 = Integer.parseInt(numberFromKB);      numberFromKB = JOptionPane.showInputDialog("Enter the second number.");     n2 = Integer.parseInt(numberFromKB);      numberFromKB = JOptionPane.showInputDialog("Enter the 3rd number.");     n3 = Integer.parseInt(numberFromKB);      charFromKB = JOptionPane.showInputDialog(null, "Enter a character:");     if (charFromKB = "s")     {         System.out.println("Sum of integers is: " + n1 + n2 + n3);     }     else if (charFromKB = "p")     {         System.out.println("Product of integers is: " + n1 * n2 * n3);     }     else if (charFromKB = "a")     {         System.out.println("Average of integers is: " + ((n1 + n2 + n3)/3f));     }     else      {         System.out.println("ERROR!");     }  }   }


A statement with "There are"-- is it grammatically correct?

Is the statement below grammatically correct?     "There are a cupboard, a tea table, and a carpet."


enter code here   #include<stdio.h>  int main()  {      char i;        i='t','f','b','a';                                        printf("\ni = %c",i);      return 0;  }   in the above code when i assign value to i the first value(t) is assigned to the variable i but if i provide parenthesis around the values ie write i=('t','f','b','a') instead of the one written in the above code the last value ie 'a' gets assigned to the variable i. Can anyone please explain why this happens??


Class methods as event handlers in JavaScript?

Is there a best-practice or common way in JavaScript to have class members as event handlers?  Consider the following simple example:  <head>     <script language="javascript" type="text/javascript">          ClickCounter = function(buttonId) {             this._clickCount = 0;             document.getElementById(buttonId).onclick = this.buttonClicked;         }          ClickCounter.prototype = {             buttonClicked: function() {                 this._clickCount++;                 alert('the button was clicked ' + this._clickCount + ' times');             }         }      </script> </head> <body>     <input type="button" id="btn1" value="Click me" />     <script language="javascript" type="text/javascript">         var btn1counter = new ClickCounter('btn1');     </script> </body>   The event handler buttonClicked gets called, but the _clickCount member is inaccessible, or this points to some other object.  Any good tips/articles/resources about this kind of problems?


Do all letters of the English alphabet have phoneticised dictionary entries? I'm thinking of the word Vee for the letter V or Zed for the letter Z? For example is there an entry for H? Aitch?


Is it possible for the user to disable certain sites from appearing in hot network questions?

I really admire the creativity in some questions from , but I prefer to not see imaginary questions mixed in with real ones. Is there a way I can remove those, without removing the whole HNQ panel? (I think some HTML blocker plugins will remove the whole thing).


How covalent bonding lower the energy of potential energy?

Considering the potential energy of interacting particles, how does covalent bonding lower the energy of the system?


My grandson’s name is Cavan. Siri constantly replaces it with Kevin. I have manually corrected it every single time but Siri isn’t learning. How do I teach him who I’m talking about? I don’t know any Kevins.


current in wire + special relativity = magnetism

Current in wire + moving charge next to wire creates magnetic force in the stationary reference frame OR electric force in the moving reference frame from special relativity due to change in charge density etc.... I think I understand this and I think it's super cool. Now here's the rub...  Current in wire + stationary charge next to wire creates no net charge. This is how nature behaves. I get it. My question is why can't I use the same special relativity logic as above, that is, current in wire cause electrons in wire to contract in accordance with special relativity so there has to be a net charge on the wire, which then acts on stationary charge next to wire.  I have been reading and reading and reading and I have come up with the following:  (1) When electrons in wire get accelerated to create current the distance between them actually expands in accordance with special relativity - something to do with bells spaceship paradox - which I am not going to pretend to understand  (2) This expansion from (1) above is exactly opposite and equal in magnitude to the contraction special relativity then causes and the expansion and contraction cancel out to keep the charge density in the wire constant and therefore no net charge on the wire  Here are my questions:  Is the explanation above correct? If so, please elaborate because i dont understand  If not correct, what is going on?  This is driving me absolutely nuts.


Are there any official specifications regarding the torque for camera mounts?

I've been wondering why I've never seen any official specifications of the maximum allowed torque that can be exerted upon lens mounts. It seems to me like a very useful specification, but I can't seem to find it from any manufacturer.  indicates that there might be no specifications for Nikon mounts. Are there really no manufacturer that publish these specification of their mounts?


Let $G$ be a graph with $n$ vertices and $e$ edges such that $e>\binom{n-1}{2}$. Then $G$ must be connected. As usual, hints would be greatly appreciated. If it where$\binom{n}{2}$ then wouldn't everything be adjacent to itself? I'll try to answer the question myself at the end if I'm able to.


"I only teach you" vs. "I teach only you" vs. "I teach you only"

I only teach you.   I teach only you.   I teach you only.      I think that all the sentences have same meaning, but my teacher says that they are different from each other.  I think that the expressions are different but their meaning are same.  Can you help me understand the meaning of each sentence?


How to clean icon home file from my desktop ? ubuntu 20.04 lts

How to clean my desktop?  I tried to install pspp for my statistic exam. After rebooting, my desktop has many files like that. How to fix that? I have used Tweaks but cannot do it.


Let $K$ be a field and $n \in \mathbb N$. Show the following: (i) Let $V \subset K^n$ be a subspace and $I_V$ the subset of $M_n(K)$ consisting of all the matrices whose rows belong to $V$. Prove that $I_V$ is a left ideal of $M_n(K)$. (ii) Show that every left ideal of $M_n(K)$ is of the form defined in (i).  I think I could show (i). I am having problems with (ii) For (i), take $M \in M_n(K)$ and $N \in I_V$. Let $P=MN$, I want to show that $P \in I_V$. Let $P_i=(P_{i1} ... P_{in})$ be the i-th row of $P$. Then, by definition of matrix multiplication, $$P_i=(\sum_{k=1}^n M_{ik}N_{k1} ... \sum_{k=1}^n M_{ik}N_{kn})$$ $$=\sum_{k=1}^n M_{ik} (N_{k1} ... N_{kn})$$ $$=M_{i1}(N_{11} ... N_{1n})+...+M_{in}(N_{n1} ... N_{nn})$$ This means that the $i-th$ row  of $P$ is a linear combination of the rows of $N$. From here it follows $P=MN \in I_V$. This proves $I_V$ is a left ideal of $M_n(K)$. I don't know how to show (ii), I would appreciate some help with that part.


I made fudge. It did not set. Recipe left out crucial info: how long at soft ball stage? Cool slightly before beating? How long do you beat it? And how many times can it be "remade" or cooked before starting over?


I really should be able to get this, but I'm just to the point where I think it'd be easier to ask.  In the C# function:  public static T GetValue<T>(String value) where T:new() {    //Magic happens here }   What's a good implementation for the magic? The idea behind this is that I have xml to parse and the desired values are often primitives (bool, int, string, etc.) and this is the perfect place to use generics... but a simple solution is eluding me at the moment.  btw, here's a sample of the xml I'd need to parse  <Items>     <item>         <ItemType>PIANO</ItemType>         <Name>A Yamaha piano</Name>         <properties>             <allowUpdates>false</allowUpdates>             <allowCopy>true</allowCopy>         </properties>        </item>     <item>         <ItemType>PIANO_BENCH</ItemType>         <Name>A black piano bench</Name>         <properties>             <allowUpdates>true</allowUpdates>             <allowCopy>false</allowCopy>             <url>www.yamaha.com</url>         </properties>     </item>     <item>         <ItemType>DESK_LAMP</ItemType>         <Name>A Verilux desk lamp</Name>         <properties>             <allowUpdates>true</allowUpdates>             <allowCopy>true</allowCopy>             <quantity>2</quantity>         </properties>     </item> </Items>


Python script to read coordinate system of an input feature class?

How to read the coordinate system of an input feature class in python script. How we can use "Describe()" function and tool validator for that purpose


Transformer, how the primary current is adjusted to be equal to the secondary load (without considering magnetizing current)?

I am happy to always not understand how does a transformer works ... One answer give me 10 questions ... (So I suggest you to not answer to this question, if you do not want to have more questions :D)  Here is the circuit :     So I put the "coupling" factor to 1, in order to have no leakage inductance and I set the value of the inductors very high in order to have a very low magnetizing current. So the primary current is approximately equal to the secondary current. My question is the following : How the primary current can reach an equilibrium to be equal to the secondary load current ? I will not accept answer which tells Pout is equal to ... So Pin is equal to Pout... There is something happenning into the transformer ...   Thank you very much and have a nice day !


Can an observed event in fact be of zero probability?  Of course, I know that there exist non-empty events of zero probability. Mu question is the reverse: given that we have observed an event (and we have no other information about it, just the fact that it has been observed), is it possible that the event has in fact zero probability? Or does an observation necessarily mean that the probability is strictly positive?    Example context for the question:  Suppose $x_i$ (countably many) are i.i.d on $[0,1]$, but we do not know the distribution they come from. It may be uniform on $[0,1]$, may be discrete, may be any legitimate distribution (discrete or continuous). Just imagine we have some sort of a machine that shows us one by one a list of randomly drawn numbers between $0$ and $1$. We are comparing the observed numbers one by one to some special number chosen beforehand, for example $\frac12$. Now, given that at some iteration we have observed that special number at least once, does that mean that $\frac12$ has some positive probability under that (unknown) distribution? And if the probability can be zero, can we nevertheless say that we will necessarily observe $\frac12$ again later, if we continue the experiment ad infimum?  Also, disregard the "real world limitations" such as an inability to produce truly uniformly distibuted numbers, or rounding errors or any such thing.


unix utilities to replace certain characters

I am trying to get into UNIX. I want to replace and -, ?, :, /, & to become %5f, %3f %3a, %2f, %26, %20 (these are the hexadecimal digits corresponding to the ASCII code).  I am also trying to make any lower case characters become upper case and vice versa, e.g. the rock to become THE ROCK and THE ROCK to become the rock.  I am trying to do this all using standard UNIX utilities commands using a script, ideally all on one line.  So far I have got  tr A-Z a-z   but not sure how to make the ? and the other ones spit out the corresponding hex #s.


How to handle capitalized abbreviations in Book, Anthology, Journal, etc. titles in APA?

I am using APA and need to cite an article from a conference which has a capitalized abbreviation in its name:  Proceedings of the 1992 ACM/IEEE Conference on Supercomputing    I can't find information on how to handle abbreviations in the reference entry. My Biblatex code is this:  @inproceedings{schutze_1992,     author = {Schütze, H},     year = {1992},     pages = {787 - 796},     title = {Dimensions of Meaning},     booktitle = {Proceedings of the 1992 {ACM/IEEE} Conference on Supercomputing},     editor = {Robert Werner},     location = {Los Alamitos, CA, USA},     publisher = {IEEE Computer Society Press} }   On suspicion, I manually kept the abbreviations capitalized, producing this output    But per default ACM/IEEE is not capitalized by Biblatex.  What is correct?


What was Albert Einstein's proof for $E=mc^2$?

Most people know the famous equation:    What were his steps of thinking for this equation that helped us discover so much about our world?


nVidia driver reset after each kernel update

I am using the official nVidia driver because my card (GeForce 750 Ti) isn't yet supported by the Ubuntu one. Every time the kernel updates, my system breaks.  I've formatted my system two-three times because of kernel updates and today I decided to try to fix it. I tried to fix it with this method and surprisingly it works.   Switch to console (After waiting for the nVidia driver to crash, as it does when you switch consoles :p) Run a complete uninstall  sudo ./<DRIVER>.run -uninstall  Reboot and switch to the on-board card Update  sudo apt-get update sudo apt-get dist-upgrade  Reboot again Reinstall driver  sudo ./<DRIVER>.run  Reboot and switch back to the NVIDIA GPU   Is there a better/easier/faster way to update without going through all this?


SQL query or method to list all sql services running

This might be a simple one, but i searched a lot and unable to find one.  Is there a sql query or a way i can run on registered server to find the list of all sql related services running like, ssis , ssas, ssrs, sql, agent, broswer, etc...  Tried googling out and can find sys.dm_server_services dmv but it does not show all the services running


When I was running Debian, I was able to start a remote session over x11 by just typing gnome-session  However, with Ubuntu 12.04, this only seems to result in my desktop and background being forwarded over x11 -- the top bar (where the clock is) and dock are both missing. I tried starting all of unity by executing unity, but that just resulted in a segfault.  How can I start a Unity 2D session over x11?  Edit: I prefer x11 as I need to tunnel the connection over 2 other servers. I would need to do a good amount of port forwarding within SSH to get any other connections back. Of course, if someone has any other suggestions, I'm willing to listen.


I have installed Lyx. But the document class IEEEtran is unavailable. When I open a .lyx document I receive: "The selected document class IEEE Transaction requires external files that are not available, etc"  After installing I reconfigured from tools in Lyx but it didn't resolve the issue. Also, when I export the .lyx document as pdf, it shows that export was successful but no file is generated.  I'm on Windows 7 and have MikTex 2.9 inatalled. What should be done?


I have set an alias for sudo (please) and an alias for apt-get (quickly) As long as I use both of them not together the commands work. please shutdown now or quickly install vim As soon as I start using both of them please quickly install vim I get the error  sudo: quickly: command not found  I tried to make an alias for both of them alias "please quickly "="sudo apt-get", but that does also not work.


Spoilers are showing in the Hot Network Questions on Stackoverflow

The questions along the side need spoiler alerts if they relate to movie/tv series plot lines:    See the Game of Thrones question


I couldn't float my image to the right without it overlapping

I have multiple images that need to float to the bottom right of each "entry" without overlapping the next "entry":    .body {   border-style: solid;   border-color: green;   border-width: 3px;   background-image: url(images/background.gif);   margin-right: 10%;   margin-left: 10%; }  #top {   border-style: solid;   border-color: red;   border-width: 2px;   background-color: white;   text-align: right; }  .good {   border-style: solid;   border-color: orange;   border-width: 2px; }  .entry {   border-style: solid;   border-color: blue;   border-width: 3px;   padding: 5px;   margin-top: 10px;   background-color: rgb(196, 226, 255); }  .date {   border-style: solid;   border-color: purple;   border-width: 2px; }  p {   border-style: solid;   border-color: black;   border-width: 2px; }  #footer {   border-style: solid;   border-color: yellow;   border-width: 3px;   background-color: white; }  .entry img {   overflow: hidden;   float: right;   clear: both; }

 Eating Journal

 Good things to eat and where to find them

09/06/201: Dosa

     Dosas are a favorite in India. They are made from a chickpea and rice batter that is fried on a griddle. In India these are very cheap . . unfortunately, they will cost you in Toronto.

     If you like Indian food, check out Karaikudi in Scarborough.

 08/24/2017: Pide

     If you haven't tried  Pide , also known as Turkish Pizza, your life is not complete.

     My current favorite Pide Restaurant, is Mr. Pide in Greektown, Toronto. Order the  Lahmacun !

 08/22/2017: Falafel

     One reason to wake up every morning -- Falafels!

 If you like falafels, check out Ali Baba's. They have two for the price of one falafel sandwiches on Tuesdays!

 07/10/2017: Spicy Pot

 Ma la xiang guo is a dish from the Sichuan/Chongqing region of China. You can select a number of different items that are cooked together. This dish uses a special numbing spice (ma) together with spicy chilli (la) cooked until fragrant (xiang) in a     big pot (guo).

 Unfortunately, I haven't found a good restaturant in Toronto that serves this. You can make it at home using with this recipe.

 (c) Author of the Eating Journal - Abdel Zhang

     This is how it looks now:    And this is how I want it to look:    Thank you to anyone the can help me!


Show that the series $\sum\limits_n P(A \cap A_n)$ converges for $A=\bigcap\limits_{n=M}^{\infty} A_n^{c}$.  From here  (proof attempt is there too)  Sorry for the confusion. How does that show that the series converges? What about n=1,...,m-1? Does our choice of A mean that the index now starts at M? Why/why not? I guess I got the idea right. Just don't know how to say it exactly


Actual size of an integer object in python

Why does the following produce such different results?  >>> sys.getsizeof(int) # same as sys.getsizeof(object), sys.getsizeof(type) 400  >>> sys.getsizeof(1) 28   Is the actual size of the item 1 equal to the size of the object (400) + the size of the actual integer value (28) = 428, or how exactly does the integer/object creation work here?


Late answers in the /review queue (#1) - inline flag or vote on the _question_

, I shouldn't need to vote down or flag the answer, because the question itself is a dog.      Users should be allowed to also enable the "I'm done" button by down voting, close voting or flagging the question rather than directly taking action on the answer.    Currently, I have to click on the question's title, close or down vote it in the new tab, then go back to the review page, and click "Not sure" to continue on my adventure.


Since I am using (almost) the same set up for my tex documents, I wonder if there is a way to create a preamble with my default packages and to recall it anytime I want to create a tex document.  If yes, how I can call this "default" preamble?  Thanks in advance


Let $\{X_\alpha\}_{\alpha\in J}$ be a family of topological spaces and let $X=\prod_{\alpha\in J}X_\alpha$ be endowed with the product topology. Show that $X$ is path connected if and only if each $X_\alpha$ is path connected.  I know this is true if path coennected is changed by connection but I am very confused with this problem, I have tried to do the following:  $\Rightarrow $ let $x,y \in X_\alpha$ be then $(x_\alpha), (y_\alpha)\in \prod X_\alpha$ where $x_\alpha=x, y_\alpha=y$ and $x_\beta=0, y_\beta=0$ for any $\beta\neq\alpha$, and since P is path connected then there is continuous $f:[0,1]\rightarrow \prod X_\alpha$ such that $f(0)=(x_\alpha)$ and $f(1)=(y_\alpha)$, then if $\pi_\alpha:\prod X_\alpha \rightarrow X_\alpha$ is the projection, which is continuous, we have that $\pi_\alpha f:[0,1]\rightarrow X_\alpha$ is continuous and $\pi_\alpha (f(0))=x$ and $\pi_\alpha (f(1))=y$.  $\Leftarrow$ I do not know how to do this address, could someone help me please? Thank you very much.


Polyhedron with Euler characteristic equal to $3$

Basically as the title says. I'm not able to find a polyhedron with Euler characteristic equal to $3$.


How to convert price format string into number in jquery

I have a string like this     "$2,099,585.43"   "$" maybe any symbol, like @,#..etc.  I want to convert this into 2099585.43  Is there any simple way to do this?


Do I need Image Stabilization for canon 35mm f/2?

I want to buy canon 35mm f/2 and there is one with IS and the other one without it. I am wondering if It is worth paying twice as much for IS itself. Both lenses produce the same image quality. Is the IS only useful for video at this case? Im going to shoot architecture/landscapes/street and sometimes record a video.


Creating a symbology value for "all other values" in QGIS 3.0 - clarifying question

This question centers the Symbology tab in QGIS 3.0.  I'm working with categorical data describing event venues in the Chicago area. This is a point dataset which will be overlayed on a street basemap.   Bars Nighclubs Theatres Parks Restaurants Galleries Other   I would like to use the Symbology tool in the Properties window to display "Bars" specifically in red, and "all other values" (nightclubs, theaters, other, etc.) in yellow.  The attribute field I am using is called "Type"  Fundamentally, I have solved this problem using the following process:   Symbology Column Drop Menu -> Select "Categorized" "Formula" button "Type"  =  'Bars' (syntax) Select "Classify" button Outcome: classifcation of "0" represented in Yellow, and "1" in Red.  "1" = "Bars", "0" = "all other values/anything that is not a bar" Change Legend entry for "1" value to read "Bars" Change Legend entry for "0" value to read "All Other Venues"   Indeed, this process solves the problem of isolating the desired value and representing all other values.  I would however like to clarify... is this the only way to isolate one value and represent all others?  Many of the folks I work with are coming from the ArcMap 9 and 10 environments, which make this process super easy using selectable options in the GUI rather than formulas.    Have I missed a GUI method of completing this task while solving this problem or should I start working with formulas?


When should I make my players actually roll for stuff?

I've tried to focus my group heavily on Role Playing, perhaps too well given some of my recent problems, which are Orthagonal, and linked mostly to provide historical context.        A lot of the answers to these questions revolve around "have off the rail's multiple angles" and "don't make people roll for information they must have". That seems well understood to me at this juncture, in fact I have been doing just that, and I think it's causing some other problems.  I have only rarely made people roll for anything (combat aside) anymore, unless it's absolutely non critical. I try to get the players to Role Play their investigations and give them information when they look in the right places, and their are multiple right places.  This results in skills, especially social/mental, being completely inessential, and players not gaining important information because they aren't poking around the right area at all, or asking people who aren't interested in talking to them because they're currently a bunch of random Joe's.  The players aren't stuck at this time, I'm just trying to get better and not have functionally dead scenes, that don't rely on the players to play "what is the GM thinking" nor do I want to just give them every answer.  The reality is, I'm not sure when to make them roll to find things out. what criteria? or other advice, can I use to decide that the players are better off making a Roll to move forward than to purely use Role Playing?  update This question focuses on the Social and to a lesser degree Mental aspects, as it's usually pretty easy to tell when a Physical Roll is needed, even out of combat. It's harder to tell when to make people roll for things they can talk their way through.  I'm playing World of Darkness 2nd Edition, but answers not specific to that are welcome.


Proving the AM-GM Inequality with Lagrange Multipliers

Exercise: Let $x_1,x_2,...,x_n$ be real positive numbers. Prove the arithmetic-geometric mean inequality, $(x_1x_2...x_n)^{1/n}\le (x_1+x_2+...+x_n)/n$.  Hint: Consider the function $f(x_1,x_2,...,x_n)=(x_1+x_2+...+x_n)/n$ subject to the constraint $x_1x_2...x_n=c$ a constant.  My work:  Consider $f(x_1,x_2,...x_n)=(x_1+x_2+...+x_n)/n$ on $S=\{(x_1,x_2,...,x_n) | x_1x_2...x_n=c\}$  $g(x_1,x_2,...,x_n)=x_1x_2...x_n-c=0$  $\nabla f(x_1,x_2,...,x_n)=(1/n,1/n...,1/n)$  $\nabla g(x_1,x_2,...,x_n)=(c/x_1,c/x_2,...c/x_n)$  $\nabla f = \lambda \nabla g$  $1/(n\lambda)=c/x_1=c/x_2=...=c/x_n$  $x_1=x_2=...=x_n=n\lambda c$  At the point $(n\lambda c, n\lambda c,... n\lambda c)$, $f$ on $S$ takes either a maximum or a minimum.  $f(n\lambda c, n\lambda c,...,n\lambda c)=n(n\lambda c)/n=n\lambda c$  $(n\lambda c*n\lambda c*...*n\lambda c)^{1/n}=((n\lambda c)^n)^{1/n}=n\lambda c = f(n\lambda c, n\lambda c,...,n\lambda c)$  This shows the equality case. To prove the inequality, I want to show that at the point $(n\lambda c,n\lambda c,...,n\lambda c)$, $f$ on $S$ takes a maximum minimum. I tried proving that the Hessian is negative positive definite, but I had trouble working with the second derivatives. I've looked up various proofs for the AM-GM inequality. The Lagrange ones didn't make full sense to me, so I thought I would turn to MSE. Any ideas? Thanks!


Hide deleted answers with certain characteristics

Today I exceeded 10K reputation on Stack Overflow, and I see deleted answers.  I am now faced with pages like  where half the answers are "deleted."    Among these are many non-answers deleted by diamond moderators, and a self-deleted answer deleted on Nov 25 '09.  I find this very distracting, especially in my chosen sort order of "oldest" where these deleted answers are NOT displayed at the bottom.  I wish to be able to hide deleted answers based on combinations of characteristics such as:   age since deletion deleted-by-owner deleted by diamond moderators zero undelete votes   This would be a setting every user could enable for himself.    Here are HTML excerpts that may be useful for userscript filtering.  This shows the code that appears for a moderator deletion, as well as the date stamp.
deleted by Dori♦ Jun 26 at 9:13
   Here is the same class for deleted by owner:
deleted by owner Nov 25 '09 at 19:12


Converting parse object to array of custom object in Java (Android Studio)

I'm learning to program on Java and I've been really frustrated because I can't find a way to convert a parse.com object that I download to a costume class.   What I'm doing:        public void downloadInformation() {     usuario = ParseUser.getCurrentUser();        ParseQuery<ParseObject> query = ParseQuery.getQuery("Glucosa");       query.whereEqualTo("usuario", usuario);       query.orderByDescending("createdAt");        query.findInBackground(new FindCallback<ParseObject>() {             @Override           public void done(List<ParseObject> objects, ParseException e) {               if (e == null && objects.size() > 0) {                   Log.d("score", "Objects Retrived");                   int i = 0;                   for (ParseObject object : objects) {                        dataArray = new MyData[objects.size()];                      dataArray[i] = new MyData(object.getInt("glucosa"), object.getInt("insulina"), object.getDate("fecha"), object.getInt("Alimentos"), object.getString("Comentarios"));                      i++;                     }                  for (int j=0; j <= dataArray.length; j++){                   Log.i("Working?", dataArray[j].comentarios);                 }                   } else {                   Log.d("score", "error");                }            }         }); }   The code of MyData is:  public class MyData {      Integer gluc;     Integer insulinaV;     Date fec;     Integer alimento;     String comentarios;      public MyData(Integer gluc, Integer insulinaV, Date fec, Integer alimento, String comentarios) {         this.gluc = gluc;         this.insulinaV = insulinaV;         this.fec = fec;         this.alimento = alimento;         this.comentarios = comentarios;     }      public Integer getGluc() {         return gluc;     }      public Integer getInsulinaV() {         return insulinaV;     }      public Date getFec() {         return fec;     }      public Integer getAlimento() {         return alimento;     }      public String getComentarios() {         return comentarios;     } }   But it doesn't matter what I try to recover, dataArray is alway empty. Even if I try to print dataArray.length it crashes.  What am I doing wrong?, What is the correct way to store an object like this? One almost of topic question, is there an easiest way to do this? in SWIFT for example I use a struct with objects.map, but I haven't find a method that can do this.   Thanks!!  Edit: There are 22 elements in objects, but the array dataArray is always null.   The error message I get is:      java.lang.NullPointerException: Attempt to read from field   'java.lang.String com.parse.starter.MyData.comentarios' on a null   object reference   The null object reference comes even if I simply try to get the size of the dataArray.


Why removing gnome-core does not remove all of it's dependencies?

I installed gnome-core package on Ubuntu (minimal version for the beagle bone) and it was almost 600mb. However, when I try to un-install it using  sudo apt-get autoremove gnome-core    It removes only 49 MB. Any Ideas, how to remove the entire 600 MB?


What does 'including but not limited to' and 'to post calls' mean in context?

what does including but not limited to mean here? And what means to post calls for artists?     This space collects any kinds of open-call opportunities for artists   and arts professionals, including but not limited to residency   programs, workshops, exhibition/ festival projects. Please feel free   to post calls.


How to remove color from table of contents

I want to remove the red color around the table of contents. How do I do that? Below there is a picture of my table of contents and my preamble:    \usepackage[backend=biber,style=authoryear,autocite=inline]{biblatex} \addbibresource{Bibliography.bib} \usepackage[labelfont={bf, it}]{caption} \captionsetup{font=footnotesize, textfont=it} \usepackage{graphicx} \usepackage{epstopdf} \usepackage{float} \usepackage[normalem]{ulem} \useunder{\uline}{\ul}{} \usepackage[T1]{fontenc}  \usepackage[table,xcdraw]{xcolor} \usepackage{multicol} \usepackage{adjustbox} \usepackage{array} \usepackage{wrapfig} \usepackage{multirow} \usepackage{tabu} \usepackage{rotating} \usepackage{amsmath} %\usepackage[table,xcdraw]{xcolor} \usepackage[a4paper, total={6in, 9in}]{geometry} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhead[L]{\fontsize{10}{12}} \linespread{1.5} \usepackage{times} \usepackage[none]{hyphenat} \sloppy \usepackage{hyperref} \usepackage{textgreek}


When i run mongodb install: sudo apt install -y mongodb-org  An error like this occurs: The following packages have unmet dependencies:  mongodb-org: Depends: mongodb-org-shell but it won't be installed                Depends: mongodb-org-server but it will not be installed                Depends: mongodb-org-mongos but it will not be installed E: Unable to fix errors: you have broken packages fixed.


If you hold Ctrl while translating objects move by full values. I must have pressed some buttons accidentally because for some reason right now its the other way around. I have to hold Ctrl while translating everytime to be able to translate an object normally without it snapping to full values. I don't know how to revert this, reopening doesn't work.


Is it possible to compute these probabilities concerning a 6-digit password using theory of Markov chains?

Consider the situation of decoding a 6-digit password that consists of the symbols A to Z and 0 to 9, where all possible combinations are tried randomly and uniformly.       Consider the following decoding method: At first a combination is chosen randomly and uniformly. At the next trial a digit from this combination is chosen uniformly at random and its entry is substituted by a uniformly randomly chosen element from $\left\{A,...,Z,0,...,9\right\}$. This procedure is repeated until the password is found.   (a) What is the probability that the correct password will never be entered?  (b) What is the probability that eventually the same combination will be entered two consecutive times?    I think it is very difficult to compute these probabilities by pure combinatorical thoughts, isn't it? As you can see here:   So I asked myself if it is possible and smart to see this decoding strategy as a kind of Markov chain maybe? Maybe it is easier then to solve?  This task is asked in the context of a lecture concerning Markov chains, so it is at least not devious to have this assumption.  Hope you can help me.


I am not able to regenerate my bombs and potion after meditating,though I have high level alcohols(like alcohest,dwarven spirit etc).


Did Star Trek Ever Reconcile the time line problems?

Beginning with the 1967 episode Space Seed, we start seeing references to the Eugenics Wars which, according to , took place on Earth between 1992 and 1996 and led to World Ward 3.   References to both conflicts are peppered throughout the remainder of Star Trek canon including Enterprise.   From TOS through DS9, the time travel plots seem to take special care to avoid dealing directly with that era. They either travel to a time period already in the past at the time of Space Seed (City on the Edge of Forever or Times Arrow for example) or they deal with a time period that had not been addressed canonically at that point (Past Tense-arguable since it didn't mention the Eugenics Wars but World War 3 hadn't started yet).  Beginning with Voyager, the time travel plots seem to get slightly murkier. In Futures End, Voyager travels back to Los Angeles in 1996 as we knew it (without the Eugenics Wars) and in Carpenter Street, Archer and T'Pol are sent to Detroit in 2004 as we Knew it.   Since these conflicts seemed to be absolutely necessary for the birth of the Federation, (Eugenics Wars lead to World War 3 leads to Cochran building a warp drive leads to First Contact leads to space exploration leads to the Federation), has there ever been any canon explanation for the apparent lack of these conflicts in the later shows especially considering that Enterprise ignores the plot point in one episode (Carpenter Street) but mentions it in another (Borderland)?


Why do we say "I'm at home", but "I'm at the gym" instead of "I'm at gym"?

I was speaking to some ELL and they asked me the above question and I wasn't able to give a good answer.  What's the reason we need to prefix gym with "the", but not do the same for places like home, or school, or work?


Characterization of positive definite matrix with principal minors

A symmetric matrix $A$ is positive definite if $x^TAx>0$ for all $x\not=0$.  However, such matrices can also be characterized by the positivity of the principal minors.  A statement and proof can, for example, be found on wikipedia:   However, the proof, as in most books I have seen, is very long and involved. This makes sense in a book where you wanted to prove the other theorems anyway. But there has to be a much better way to prove it.     What is the "proof from the book" that positive definite matrices are characterized by their $n$ positive principal minors?


How often does data.stackexchange.com data synchronize?

I was running some queries just to test the site and the returns do not seem to reflect my activity at all. E.g.,  query tells me that I have 2 answers on SO, with one scored and one unscored. Same with other queries. I'm using my SO user id on the box (542701). Am I doing something else wrong? BTW, I hesitated to post this question here (I don't know if it's on-topic), but data.SE does not have any commenting options and there are other questions related to data.SE here.


Modifying ssh public key - does it matter?

When ssh-keygen -b 4096 creates a key pair, the public key (id_rsa.pub) looks like this:  ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDW6AL7knzbwEdPJR+QzMxuVEKI34+cNXX4xi7BF1xhNuI48T3xxB3C7utCXRc+jUzHY7aKmgrj8oWxtoqyS2MRLitBgYjcY9dEAJzay8os5RmdmwANHLsD4FAq6ONEq6wp+D0Mgs0sPGtzpgbpJ+ntxl59yv97G737M3yMXM4/DR20womomvdjeMPU7FDPTxrwxfgzmHQCwf/nTfLigv+ggbXMjJz+FBcZPhGFftn/XeuFskNx3+wJcLQXUplWHaDNoKyxWJjc2FCUjmg1iIHvFo29ppXwQEIPXHnrCjj3TFZ4dVgjTUtx+5W8lXR1GTuUAFRymDMmPeeqV9nJT83mu6H5kdpJ2nNRZPO8km+TMUXRxmzousMFiPq9tL9IAnXGq1MHwpWGZPdqR9hLOa7ESJtcZXcHf/vhqMEDvM2BxEVgEwMGuiSZfezC2PAg//jth1ft7C6nncRVQA16Z7m6gu74CuJj3/LZPisbSCAx+QdAUi0s28JnvlpFf+7UCXy2OBBJKEe3MzsmdUR8vZ8CqL5Sw+LLpt8XCKtcHxBQKkFu/ChsW3TYIhqQFA9mIX2jMTR8wO6C8TSa44lTNxTZclXlAyKy9DMT84Oj+GoK6ArETHqeExssN4Aw/f9oYbr2l9UJfu4kpjs3qWY0DkTPs6TZr7NwRiGPY6ZDD73uww== user@host  What are the practical consequences if I manually edit this public key, changing host to a different host name - so that user@host becomes user@differenthost? Will the key still work in the usual manner?


Why are Pokémon stacked on top of each other whenever I start?

I have installed the game recently, and in the start, this happens. Due to this, I can't choose my starter. Why is this happening and how can I fix it?


Why didn't Voldemort hide his Horcruxes on different planets?

Voldemort could have travelled to different planets. Muggles landed on the moon, I think Wizards could do that easily.  Why didn't Voldemort hide his Horcruxes on the Moon and/or other planets?


House wiring and grounding. How do you retrofit an old house and ground it?

A contractor looked at our house and told me that you can't fix a house (with old wiring) that has some outlets that are not grounded.  He said that you can go on YouTube and search the internet and it will tell you that you can.  He says that the only way to properly fix and ground everything is to do a whole house rewire.  Is he correct?  If, theoretically, you have an old house that has no ground whatsoever, can you run a grounding wire from the panel to all of the outlets to fix this?  updated  We have BX/AC wiring. And also apparently we have "...old-style AC (BX) with cloth insulated wires in a paper overall wrap under the spiral armor (no bonding tape)" Courtesy of @ThreePhaseEel.


I'm trying to add a specific item on the front of an array but I can't work out how to do this? I know you do it with unshift, but I'm not sure how to do it with a key value array?  var outgoingHeaders = {     "send_client_version": 1,     "send_auth_ticket": 5 };  function sendPacket(packetName, packetData) {     const packetId = outgoingHeaders[packetName];     const packetArray = {'packet_id' : packetId };     // TODO: Add packetArray at the start of packetData     socket.send(JSON.stringify(packetData)); }   Example of calling it...  sendPacket('send_auth_ticket', {     'auth_ticket' : authTicket, });


I have this class which is my thread. By creating instance of the class I create my thread, so by calling its stop method it should be terminated or killed but it wouldn't. I don't know why? I appreciate if someone can help me.   class MyThread(threading.Thread):  # Thread class with a _stop() method.  # The thread itself has to check  # regularly for the stopped() condition.  def __init__(self, last_time=0, start_time=0, label="", root="",  speed_mode=""):      super(MyThread, self).__init__()     self.label = label     self.last_time = last_time     self.start_time = start_time     self.root = root     self.speed_mode = speed_mode     self._stop_event = threading.Event()      # function using _stop function  def start_counter(self):     self.start_time += 1     self.label['text'] = self.start_time     # self.start_time = start_time     if self.start_time < self.last_time:         self.label.after(DIC_TIME[self.speed_mode], self.start_counter)  def stop(self):      self._stop_event.set()  def stopped(self):      return self._stop_event.isSet()  def run(self):     self.start_counter()     while True:         if self.stopped():             return   I expect that by calling stop method of MyThread class my label in tinter canvas restart and stop running(label is a second counter)


Chi-squared test when two vectors have different lengths

I want to compare two groups (vectors) having different lengths to see if their distributions differ considerably. However, when I use chisq.test, I get an error due to inequalities of lengths:  > chisq.test(factor(Group1), factor(Group2))   results in:  Error in chisq.test(factor(Group1[, col]), factor(Group2[, col])) :  'x' and 'y' must have the same length   Could someone help me with this? Thanks.


I wonder if the $2$-norm or spectral norm is also submultiplicative for non-square matrices, i.e.,  $$\|  A B \|_2 \leq \| A \|_2 \cdot \| B \|_2$$  if the number of columns of $A$ coincides with the number of rows of $B$. In the literature I can only find a statement about square matrices. Thanks a lot for any remarks.


Starting Ubuntu without Admin Account password

Can we start to use Ubuntu, into the main administrator (Root) account, without to have to enter the password?  I know it is intended for security reasons, but... Please! I'm just a church musician and I don't have any kind of "Top Secret" and/or hidden material into this device. Also, I'm the only one which uses this PC, so...  Do I really need that "password way" to enter to my PC?  Whatever, if there is a way to "jump" the password, Please! Let me know!  The screen I get from the "Users & Groups" system configuration menu is:


Prefill content type form field with alter hook

I've created a content type with a link type field. When an user add this content type I want to prefill the link field with the user email. I've a create a new module named prefilllink with an alter hook :  function prefilllink_alter(&$form, &$form_state, $form_id) {   dsm($form);   switch($form_id) {     case "job_node_form":       $form["field_apply"]["und"][0]["value"]["#default_value"] = $user->mail;       break;   } }   But it doesn't work... Any idea?


What is cp command with tilde in final part of destination?

For example: sudo cp /etc/apt/sources.list /etc/apt/sources.list~  With this command I not see any changes. What does the final tilde do?


I'm trying to show that $a_n$ is increasing where $a_1=1$ and $a_{n+1}$ = $ \sqrt{a_n+2}$  I proceeded by induction so showed that $a_{n+1}>a_n$ for all n greater than 1 So I showed it was true for n=1  Then assumed $a_{k+1}>a_k$ for some k greater than 1  Then I add two to both sides and square root to show it's true for k+1.   So $a_{k+1}+2>a_k+2$  $ \sqrt{a_{k+1}+2}> \sqrt{a_k+2}$  Which is $a_{k+2}>a_{k+1}$ So is this ok to show this statement?  Also how would you show that a_n has a limit and compute $lim_na_n$   I think to compute the limit you need to prove that if $b_n$ goes to b then $ \sqrt{b_n+2}$ goes to $ \sqrt{b+2}$  thank you for your help.


How can I disable the shutter sound of gnome-screenshot?

After a recent update of my , the gnome-screenshot tool started making an annoying camera shutter noise every time a screenshot is taken. This is both annoying and startling (especially if you happen to be wearing earphones when taking the screenshot).  I checked the man page of gnome-screenshot` but there were no relevant options. How can I take silent screenshots?