How to turn off shuffle in Apple Music on iPhone iOS 10.1.1?

When I play any album in Apple Music on my iPhone 6 Plus, iOS 10.1.1, the tracks are shuffled. i.e. when I press the >> button some track other than the next one is played.  The only icon related to shuffling that I can see anywhere in the app is 'Shuffle all'.  When I play an album I want to hear the tracks in the original order. How do I achieve this?


How to calculate $\int_0^{\infty}\frac{\ln(x)}{1+x^2}\ \mathrm dx$

How does one go about calculating : $$\int_0^{\infty}\frac{\ln x}{1+x^2}dx$$  I've tried Integration by parts, and failed over and over again


Optimal way to ignore duplicate inserts?

Background  This problem relates to ignoring duplicate inserts using PostgreSQL 9.2 or greater. The reason I ask is because of this code:    -- Ignores duplicates.   INSERT INTO     db_table (tbl_column_1, tbl_column_2)   VALUES (     SELECT       unnseted_column,       param_association     FROM       unnest( param_array_ids ) AS unnested_column   );   The code is unencumbered by checks for existing values. (In this particular situation, the user does not care about errors from inserting duplicates -- the insertion should "just work".) Adding code in this situation to explicitly test for duplicates imparts complications.  Problem  In PostgreSQL, I have found a few ways to ignore duplicate inserts.  Ignore Duplicates #1  Create a transaction that catches unique constraint violations, taking no action:    BEGIN     INSERT INTO db_table (tbl_column) VALUES (v_tbl_column);   EXCEPTION WHEN unique_violation THEN     -- Ignore duplicate inserts.   END;   Ignore Duplicates #2  Create a rule to ignore duplicates on a given table:  CREATE OR REPLACE RULE db_table_ignore_duplicate_inserts AS     ON INSERT TO db_table    WHERE (EXISTS ( SELECT 1            FROM db_table           WHERE db_table.tbl_column = NEW.tbl_column)) DO INSTEAD NOTHING;   Questions  My questions are mostly academic:   What method is most efficient? What method is most maintainable, and why? What is the standard way to ignore insert duplication errors with PostgreSQL? Is there a technically more efficient way to ignore duplicate inserts; if so, what is it?   Thank you!


why does `brew search` need github credentials all of a sudden?

This is not really expected or very reassuring from a package manager.  brew search postgres  gets me this credentials access request:    if I refuse, it does search and eventually provides the output:  2020-05-21 13:36:58.473 defaults[94976:1504467] The domain/default pair of (kCFPreferencesAnyApplication, AppleLanguages) does not exist ==> Formulae check_postgres               postgresql@10                postgresql@9.4               postgresql@9.6 postgresql                   postgresql@11                postgresql@9.5               postgrest ==> Casks navicat-for-postgresql                postgrespreferencepane                homebrew/cask-versions/postgres-beta postgres                              sqlpro-for-postgres   Is this linked to brew somehow linking itself to github, as it seems to be saying in the version info?  How do I get rid of this behavior?  I suppose I can try updating brew, but it is already behaving in a risky-seeming fashion, so I thought I'd check here first.  (venv) jluc@sql$ brew --version Homebrew 2.2.9 Homebrew/homebrew-core (git revision 79b2f; last commit 2020-03-05) Homebrew/homebrew-cask (git revision efcf9; last commit 2020-03-05)


I noticed that the de facto standard for array manipulation in Python is through the excellent numpy library. However, I know that the Python Standard Library has an array module, which seems to me to have a similar use-case as Numpy.  Is there any actual real-world example where array is desirable over numpy or just plain list?  From my naive interpretation, array is just memory-efficient container for homogeneous data, but offers no means of improving computational efficiency.    EDIT  Just out of curiosity, I searched through Github and import array for Python hits 186'721 counts, while import numpy hits 8'062'678 counts.  However, I could not find a popular repository using array.


Find the equation of the plane passing through a point and a vector orthogonal

I have come across this question that I need a tip for.     Find the equation (general form) of the plane passing through the point $P(3,1,6)$ that is orthogonal to the vector $v=(1,7,-2)$.   I would be able to do this if it said "parallel to the vector"  I would set the equation up as $(x,y,x) = (3,1,6) + t(1,7,-2)$ and go from there.  I don't get where I can get an orthogonal vector. Normally when I am finding an orthogonal vector I have two other vectors and do the cross product to find it.  I am thinking somehow I have to get three points on the plane, but I'm not sure how to go about doing that.  Any pointers?  thanks in advance.


I have rendered and saved as pngs. I then try to save in the output area as any of the options, but they are always blender file that only open in blender, not avi,mpeg or any other. Using 2.8. Any ideas? Is there a save key or option other than this?


I frequently write slides in beamer, and besides a few macros I use (e.g. for two-column frame), I often type \begin{itemize} and \end{itemize}. What would be a nice TeXish way for either starting the itemization automatically when \item outside of itemization/enumeration is encountered?  Or alternately, how to write a macro which would do something like (pseudocode, this does not work unfortunately as it is):  \documentclass{beamer} \usepackage{etextools} \def\firstitem{\begin{itemize}\AfterGroup{\end{itemize}}\item} \begin{document}     \begin{frame}{title}         \firstitem a         \item b     \end{frame} \end{document}


All delayed choice quantum eraser experiments I've seen record the signal photons reaching detector D0 and then use the data of the idler photons recorded at detectors D1, D2, D3, D4 to "filter out" the photons with which-path information at detector D0 to be able to see the interference pattern.  Now, what would one see at detector D0 if the experiment was performed every 1 second and changed to send the entangled idler photons to the moon? It takes more than a second for the idler photons to reach the moon, which is enough time for the photon stream to form a COMPLETE interference pattern (or not) at detector D0. At the moon, instead of using 4 detectors where 2 do detect which-path information and 2 don't, a device with only 2 detectors would alternate randomly every second between recording and not-recording the which-path information of the incoming entangled idler photons.  Recording the which-path information at the moon should produce an interference pattern on earth. So would the observer looking at detector D0 see the pattern randomly change from interference to non-interference every second? If yes, can he thus predict 1 second in the future what the device at the moon will do?


Why didn't Dumbledore just hunt Voldemort down?

During the First Wizarding War, why didn't Dumbledore just hunt Voldemort down, as he had done with Grindelwald?  By 'hunting down', I mean finding, defeating and imprisoning him, exactly as in Gridelwald's case, and not, say killing him, something which Dumbledore would not do, as the answers to a previous question (as to him not hunting down Death Eaters) show.  Dumbledore knew that Voldemort had delved into the Dark Arts deeper than anyone else in history and hence "had powers he will never have". But he must have also known well that he could have defeated Voldemort at a direct confrontation, given that he had defeated Grindelwald earlier even against the Elder Wand, and now had that same wand at his disposal. He is seen confident about this throughout the series.  At the Battle of the Department of Mysteries, he did not go beyond outweighing Voldemort and forcing him to flee, probably because, by then, he had reasons to suspect that there was more to Voldemort's survival than his physical body, and thus, destroying that body which had Harry's blood without permanently disposing him off would not have been wise.  But why did he not do that at the First Wizarding War? Is it just that they could not track him down, or did he suspect even then that Voldemort had more sinister things about his soul? is there any canon confirmation of the latter suspicion?


SEO and www to non-www (and vice versa) AFTER having settled for some time in one of them

I have been using non-www redirect in .htaccess for a couple of years now for my Wordpress site. I want to switch to redirecting to www because, among other reasons, a naked URL does not work with Cloudflare CDN. Will it hurt my SEO score?


Duplicate object and scale across bezier curve

I'm trying to make an object be duplicated AND scaled along a bezier curve, however, the only ways I've found, namely using a lattice modifier or using an empty, both seem to distort my objects and I really need it to be scaled evenly, as in (1.0,1.0,1.0) per step.  Does anyone know of a solution for this?  Here's what I'm working on:    The image on the right, with pink arrows, show a distorted version I mocked in Photoshop just to illustrate how I want my objects to "shrink", but I don't want that kind of distortion. I need each objects to decrease scale evenly on all axis (I guess?). Thank you very much!


Delete the vertex of a line in Carto Builder

How can I delete the vertex of a line that I have previously created? I´m doing tests. I know how to edit a line or create a new one and add vertexs clicking in a transparent circle between two vertexs already created, but if i want to remove this vertex created, i don´t know how to do it.


Checked luggage & terminating trip during layover

I have a Canada bound Delta flight next month with a layover in New York where I plan to abandon the trip (the flight to Canada was cheaper than to USA, hidden city ticketing).  Now I know all international flights stopping over in the USA requires passengers to deplane, pass through immigration and customs with their bags and then check in to their local connecting flight so I should  have no problem retrieving my checked bags.  My question is for other countries where one doesn’t get access to checked bags during international layovers, are the airlines mandated to return passengers luggage to me at the location where a passenger decides to abandon the remaining legs of the trip? Or airlines have the right to deliver it to the final purported destination and it’s up to the passengers to figure out how to retrieve it?


Covariance of Poisson and Conditional Binomial RV's

Problem Statement  Let $X$ and $Y$ be random variables such that $X \sim \text{Poisson}(\lambda)$ and $Y|X \sim \text{Binomial}(x+1,p)$. Find $\text{Cov(X,Y)}$.  Attempt at a Solution  I would like to be able to write $Y$ as $X + Z$ where $Z$ is Poisson and independent of $X$, since then by  the variance is easy to compute. To this end, write $Y|X$ as a sum of independent binomials: $ Y|X = Z_1|X + Z_2|X, $ where  $Z_1|X \sim \text{Binomial}(1,p)=\text{Bernoulli}(p)$ and $Z_2 | X \sim \text{Binomial}(x,p).$ Then $Z_2 \sim \text{Poisson}(\lambda p)$, which we can obtain by directly computing the pdf: \begin{aligned} P(Z_2 = z) &= \sum_x P(Z_2=z, X=x)\\ &= \sum_x P(Z_2=z\mid X=x)P(X=x) \\ &= \sum_{x=y}^\infty \frac{e^{-\lambda} \lambda^x}{x!}\frac{x!}{z!(x-z)!}p^z(1-p)^{x-z} \\ &= \frac{(\lambda p)^z}{z!}e^{-\lambda p} \sum_{x=z}^\infty \frac{[\lambda(1-p)]^{x-z} e^{-\lambda(1-p)}}{(x-z)!} \\ &= \frac{(\lambda p)^z}{z!}e^{-\lambda p}. \end{aligned} However, I cannot get the same approach to simplify for $Z_1|X$, which instead involves the CDF of $X$. I also tried this approach on $Y|X$ directly, hoping to obtain a sum in the form of the expectation of $X$, but I can't seem to reduce it. Even if I could, I'd still need to compute $E[XY]$ for the covariance. I suspect there may be a better approach than grinding through several more sums.


Does a dry human body in contact between 230 volt mains voltage and ground has any form of capacitance ? Shouldn't there be some, or else is it just resistance ? I was thinking whether the Xc component plays any part when a person gets electrocuted


Would it be better to encourage people to set a user name?

I often see users who appear as user12345 or something similar. I personally dislike this for a few reasons:    I'd prefer to know who I'm dealing with I think the quality of questioning is generally better from users who have an identity Somehow it seems like cheating... disrespectful in some intangible way.. here we all are helping each other for free, and what? You can't even be bothered to show your face?   I've read the question   and there the conclusion seems to be that we don't mind whether the identity is real or adopted.   Fair enough. My problem is with people who can't even be bothered to have an identity at all. (I understand that in some cultures, it might be seen as problematic to make community contributions on your boss's time, even if there's a net gain. Lots of the user12345 folks seem to be asking for work-related answers: even full-blown solutions.)  Coming back to my first point about wanting to know who I'm dealing with; I actually can't tell the numbered users apart. Those numbers just don't stick in the brain, so it becomes like trying to interact with the Borg. Even if people have reasons to conceal their 'passport' identity, why can't they at least be encouraged to put some minimal imagination into making up a fake?   Stack overflow has successfully gamified all sorts of things, so isn't there a way to lean on people (ever so gently) to put a little bit of effort into dumping the auto-generated name. Nag them every 5 logins? Whatever.


Encopresis, I'm at my wits end? Does anybody have suggestions?

My 12 year old daughter has been dealing with retentive encopresis since age 6. She avoids going to the toilet at all. This results in soiling and the production of an amazing huge toilet-clogging log-like object every week. We have been trying for years to get her to talk about this, but when we do talk about this, the response is ALWAYS "I don't know" despite what her pedi, GI doc and psychologist tried to do or suggested we do to get her to talk about it. We switched psychologists last year after a year of not talking about this, no luck.  We have tried so many treatment plans since diagnosis, specifically tailored to her, such as enemas, scheduled toilet sittings, rewards, consequences, psychologist, etc. she just keeps holding it in. Right before summer, her pedi and the GI doc laid out a clear treatment plan of laxatives, regular bathroom visits, and a rewards program. She did take the Miralax (2 table spoons) but she just kept holding it in and soiling her pants. She avoided going to the toilet. I made her stay at the toilet and told her "if you poop, I will buy you XYZ" (something she REALLY wants)" you can do XYZ only after you poop" and not letting her do things "you can't do XYZ until you poop" and XYZ would be something she LOVES to do. I wouldn't let her leave the toilet until she pooped, so she sat there for hours, no luck. When school started, she refuses to take the Miralax.  Now we laid out a new treatment plan. We TRIED to involve her, the response is again "I don't know." She is supposed to take an enema every morning and sit on the toilet, but she fights daily about taking it. When she does take it, she holds it in and won't sit on the toilet. There is also a diet plan she refuses to follow. She is not supposed to drink dairy, but drinks milk at school. Now the past 2 weeks she refused all treatment which we fight daily about. She refuses to sit on the toilet, no matter what we try. 2 years ago we tried ucanpooptoo, didn't help.  We asked her why she holds it in. Does pooping hurt? Does it scare you to poop? Does it feel good to hold it in? The answer is always "I don't know" and you can question her for hours and hear "I don't know". We explained to her digestion and she knows why she needs to poop. We ruled out any physiological reasons for retention. Luckily her friends don't notice, but one day her friends might smell her soiling, and I talked to her about this, how it would affect, boys , high school, etc. Her response was "I don't know" and she would not talk about this.  Does anybody have suggestions how to get her to start pooping in the toilet regularly?


Usage and origin of "sister" in expressions like "sister company, sister ship, sister site" etc

The term  is often  used figuratively  to refer, for instance,  to a “sister company” for a company  within the same group, or to a “sister  site” for  sites that belong to the same family. This connotation as explained by the   means:         belonging to a pair or group of similar and related things, such as businesses, usually owned or operated by the same person or organization:         our sister company in Australia.          also, from :        You can use sister to describe something that is of the same type or is connected in some way to another thing you have mentioned.    ⇒ ...the International Monetary Fund and its sister organisation, the World Bank.   ⇒ ...Voyager 2 and its sister ship, Voyager 1.       This usage appears to be common with things that are  regarded as feminine and are associated, as if by kinship,  with other similar things that belong to the same group. An early  usage example of this is the "sister" referred to  ships:         the US battleship Missouri and her sister ship, the Wisconsin.      In other instances,  the "feminine" issue is less explicit as in the case of internet sites, so I guess this usage has to do with the fact that English is less gender specific when it comes to things or abstract entities.   Questions:    Does “sister” apply to whatever entity that belongs to the same group irrespective of its real or perceived gender? or could "brother" be used instead?  Where does this usage come from?


I have tried this complex analysis problem for hours on my own but am still stumped.     Suppose $\zeta_7 = e^{2\pi i/7} = \cos(2\pi/7)+i\sin(2\pi/7)$. Prove that $$\sum_{k=0}^{6} \zeta_7^k = 0.$$   I have so far obtained that $$\sum_{k=0}^{6} (\zeta_7)^k = 1 + (\zeta_7) + (\zeta_7)^2 + (\zeta_7)^3 +(\zeta_7)^4 +(\zeta_7)^5 + (\zeta_7)^6,$$ but that's as far as I get.


Can I Transfer The Windows 8 License of My Laptop to My Desktop?

My sister asked me to fix her Sony Vaio VPCCW23FX which she had recently installed Windows 8 Pro.  However, that model is not compatible with Windows 8 and is having problems.  We restored it to the pre-installed Windows 7 Home Premium.  Now, I am wondering if I can use her Windows 8 license on my desktop?


The  implements a new renderer that is faster and can be rendered on the server side:     Improved CommonHTML output. The CommonHTML output now provides the   same layout quality and MathML support as the HTML-CSS and SVG output.   It is on average 40% faster than the other outputs and the markup it   produces are identical on all browsers and thus can also be   pre-generated on the server via MathJax-node.    MathJax is great if you need to display any Math in a post, and pretty useful for some other things like chemical formulas as well. But it is a pretty large javascript library that needs to be loaded, and the amount of processing it does is very noticeable on any math-heavy page. Just the javascript alone adds ~115KB out of ~600KB in total for a MathJax enabled SE frontpage.   Using server-side rendering of MathJax it wouldn't be necessary to load the js library and do all the processing on the client just to view MathJax, it would only be necessary if you actually edit or interact with the formulas. Visitors that simply view a few pages would never even need to load the MathJax library.  This would also allow for question titles with MathJax to be displayed correctly on sites that don't have MathJax enabled, which is a problem with the hot questions list.  Server-side rendering would also provide the option to allow sites the use of MathJax where it was previously too expensive compared to the small amount of posts that actually needed it.   I know that this is likely a pretty large project, but as SE tends to value site performance highly I think it might be worth it. There are currently  on the network, so this would affect a large part of the entire network.


I have a 500 GB hard disk but unable to use the entire space. The only space available to use is around 200GB. The rest is mounted on /usr. Here is what I get after doing df -h.      munam@munam-Inspiron-3521:~$ df -h     Filesystem      Size  Used Avail Use% Mounted on     /dev/sda1       184G  143G   32G  82% /     none            4.0K     0  4.0K   0% /sys/fs/cgroup     udev            3.9G  8.0K  3.9G   1% /dev     tmpfs           798M  1.5M  797M   1% /run     none            5.0M     0  5.0M   0% /run/lock     none            3.9G   80M  3.9G   2% /run/shm     none            100M   60K  100M   1% /run/user     /dev/sda5       275G  5.1G  256G   2% /usr     /dev/sda3        88M   64M   19M  78% /boot   I want to utilise that 300 GB mounted on /usr. I  will be really thankful if someone helps me do that. Thanks & Regards.


I am trying to mimic our institute's PPt-template for presentation foils using the beamer-class. The corporate quidelines prescribe the use of Helvetica as the main font. However, package helvet does not provide a good mathematical font. Therefore I want to replace it with the math font from the cmbright package:  \documentclass{beamer}  \usepackage{lmodern} \usepackage[T1]{fontenc}  %main font Helevtica \renewcommand{\familydefault}{\sfdefault} \usepackage{helvet}  %prevent beamer from meddling with math fonts \usefonttheme{professionalfonts}  %following lines borrowed from cmbright.sty \DeclareSymbolFont      {operators} {OT1}{cmbr}{m}{n} \DeclareSymbolFont        {letters} {OML}{cmbrm}{m}{it} \SetSymbolFont      {letters}{bold} {OML}{cmbrm}{b}{it} \DeclareSymbolFont        {symbols} {OMS}{cmbrs}{m}{n} \DeclareMathAlphabet{\mathit} {OT1}{cmbr}{m}{sl} \DeclareMathAlphabet{\mathbf} {OT1}{cmbr}{bx}{n} \DeclareMathAlphabet{\mathtt} {OT1}{cmtl}{m}{n} \DeclareMathAlphabet{\mathbold}{OML}{cmbrm}{b}{it} \DeclareMathSymbol{\alpha}{\mathalpha}{letters}{11} \DeclareMathSymbol{\beta}{\mathalpha}{letters}{12} \DeclareMathSymbol{\gamma}{\mathalpha}{letters}{13} \DeclareMathSymbol{\delta}{\mathalpha}{letters}{14} \DeclareMathSymbol{\epsilon}{\mathalpha}{letters}{15} \DeclareMathSymbol{\zeta}{\mathalpha}{letters}{16} \DeclareMathSymbol{\eta}{\mathalpha}{letters}{17} \DeclareMathSymbol{\theta}{\mathalpha}{letters}{18} \DeclareMathSymbol{\iota}{\mathalpha}{letters}{19} \DeclareMathSymbol{\kappa}{\mathalpha}{letters}{20} \DeclareMathSymbol{\lambda}{\mathalpha}{letters}{21} \DeclareMathSymbol{\mu}{\mathalpha}{letters}{22} \DeclareMathSymbol{\nu}{\mathalpha}{letters}{23} \DeclareMathSymbol{\xi}{\mathalpha}{letters}{24} \DeclareMathSymbol{\pi}{\mathalpha}{letters}{25} \DeclareMathSymbol{\rho}{\mathalpha}{letters}{26} \DeclareMathSymbol{\sigma}{\mathalpha}{letters}{27} \DeclareMathSymbol{\tau}{\mathalpha}{letters}{28} \DeclareMathSymbol{\upsilon}{\mathalpha}{letters}{29} \DeclareMathSymbol{\phi}{\mathalpha}{letters}{30} \DeclareMathSymbol{\chi}{\mathalpha}{letters}{31} \DeclareMathSymbol{\psi}{\mathalpha}{letters}{32} \DeclareMathSymbol{\omega}{\mathalpha}{letters}{33} \DeclareMathSymbol{\varepsilon}{\mathalpha}{letters}{34} \DeclareMathSymbol{\vartheta}{\mathalpha}{letters}{35} \DeclareMathSymbol{\varpi}{\mathalpha}{letters}{36} \DeclareMathSymbol{\varrho}{\mathalpha}{letters}{37} \DeclareMathSymbol{\varsigma}{\mathalpha}{letters}{38} \DeclareMathSymbol{\varphi}{\mathalpha}{letters}{39} \let\upDelta\Delta \let\upOmega\Omega \let\upGamma\Gamma \let\upTheta\Theta \let\upLambda\Lambda \let\upXi\Xi \let\upPi\Pi \let\upSigma\Sigma \let\upUpsilon\Upsilon \let\upPhi\Phi \let\upPsi\Psi  %doesn't seem to have an effect %\DeclareMathSizes{12}{12.5}{10}{10}  \begin{document} \begin{frame}  Some Math E$E$ \end{frame} \end{document}   This works quite well, except that the math letters are somewhat smaller than the normal Helvetica text. Is there a way to scale the fontsize, say by 1.1, if the typesetter is in math mode?


I would like a way to convert a document from HTML to LaTeX on a Windows platform. What is my best option?


Get the newest file from directory structure year/month/date/time

I store backups of databases in a directory structure  year/month/day/time/backup_name  an example would be   basics_mini/2012/11/05/012232/RATIONAL.0.db2inst1.NODE0000.20110505004037.001 basics_mini/2012/11/06/012251/RATIONAL.0.db2inst1.NODE0000.20110505003930.001  note that timestamp from the backup file cannot be used. Before the automation testing starts the server time is set to 5.5.2011  So the question is how I can get the latest file if I pass the "base directory" (basics_mini) to some function that I am going to code.  I need to restore the newest database. I do that in php but I wonder if there is a simple shell scripting solution.


Why did Doc Brown choose the Delorean DMC-12 as his first time traveling vehicle?

According to , the movie makers decided     The specific choice of vehicle was a  for the purposes   of it looking like an alien spaceship due to its characteristic   gullwing doors.   Is there a reason from within the storyline (comic books, cartoons, video games, deleted scenes) that explains why Emmett Brown choose that particular make and model?


how to execute a command on the first, second, third and fourth Sunday of the month with crontab

I have 4 servers and I want each one of them to execute a reboot on Sunday.   Server 1 - first Sunday of the month (first week) Server 2 - Second Sunday of the month (2nd week) Server 3 - third Sunday of the month (3rd week) Server 4 - fourth Sunday of the month (4th week)   how can I do it with Crontab? Thanks! Dotan.


What do those abbreviations mean in League of Legends?

I'm quite new to League of Legends (LoL) but try to improve through reading guides. All too often I stumble upon abbreviations I am not sure what they mean.  Some of those are:   AD AP ArPen AS bot blue carry CC CDR CS Drag Dive mia mid MM Mp5 MP5pL MPen Proc pull (red/blue/drake) red SR ss top TT IMO


One of my desktops is running Windows 7 (32bit). I am seeing unexpectedly high CPU load for the WmiPrvSE process. Using ProcessExplorer, I can see that it is just one thread that is alternately ranging from 4-15% cpu on an otherwise-idle machine. That thread is entitled ntdll.dll!RtlRegisterThreadWithCsrss. The thrashing is periodic with approximately a five second cycle, with only a brief instant between elevated cpu levels.  Interestingly, when I attempt to invoke csrss.exe manually, I get a dialog box informing me that it can't run in 32 bit mode. Nevertheless, it IS present in the process tree.  So, it appears to me that I have a thread thrashing to interact with something that may or may not be available. What am I missing? Any clues? Thanks in advance!


Let $G(V,E)$ be an un-directed, un-connected graph. Prove that $\bar G$ is connected, And its Diameter is at most $2$.

Let $G(V,E)$ be an un-directed, un-connected graph. Prove that $\bar G$ is connected, and that its diameter is at most $2$.  I've started by writing myself some guidelines:   Two vertices will be neighbors in $\bar G$ if and only if they weren't neighbors at $G$.  Undirected means that exists $u,v\in V$ so there's no track between them.   So I need to prove:   $\bar G$ connected  $\bar G$ diameter is 2 at most.   I guess that for (1) i need to prove that for every $u,v\in V$, I can find a track between them. Or, In some way prove that there are at least $n-1$ edges. And for (2) i just don't know.  So i'm pretty much stuck, I can see the logic behind it [been drawing some examples], But I can't see how can I 'merge' between looking at a vertex in $G$ and then in $\bar G$, I know this might be pretty easy. But i just can't 'see' it.  Thanks.


Recently, I have been reading a book about TOEFL grammar. I came across this multiple-choice problem: I have _______ money left. (A) a great number (B) so small (C) only a little (D) only a few The answer given is (C). I don't understand why (B) is not the correct answer. Does anyone know the reason? Thank you very much.


"Cannot find this file" error when deploying from Visual Studio 2010

I'm getting an error in Visual Studio 2010 after pressing F5 to Debug:     Error occurred in deployment step 'Add   Solution': Error: Cannot find this   file specified in the manifest file:   G2_SiteDefinition_List_Instances_Feature\ListInstance1\Elements.xml   But elements.xml file is there with the ListIntance1 folder. What am I missing here?


Linker error with templates - Undefined symbols for architecture

Here is a small sample to show what is causing the linker error: my_class.h #include <map>  template <typename T, typename U> class my_class { public:     using map_type = std::map<T, U>;      auto get_map() -> map_type&; private:     map_type _my_map; };  my_class.cpp #include "my_class.h"  template<typename T, typename U> auto my_class<T, U>::get_map() -> map_type& {     return _my_map; }  main.cpp #include "main.h"  int main(int argv, char* args[]) {     my_class<int, char> c;     auto& map = c.get_map(); // <== Error here }  The linker error is as follows: Undefined symbols for architecture x86_64:   "my_class<int, char>::get_map()", referenced from:       _main in main.cpp.o  I found that if I implement my_class::get_map inside of main.cpp, there is no linker error. It seems to only happen if the implementation is in a different translation unit. Here are my compiler details: Apple clang version 11.0.3 (clang-1103.0.32.62) Target: x86_64-apple-darwin19.5.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin


How to reinstall network manager without internet access?

Unfortunately, I uninstalled network-manager-gnome using sudo apt-get remove --purge network-manager. I was trying to reinstall it from but without internet connection I cannot do so. What is the solution for this?


I am currently in a Pre Calculus class at my High School. I have come across the concept of extraneous solutions, particularly when solving absolute value equations, radical equations, and logarithmic equations. My question is, why do these solutions exist?   My teacher never explained this, which is understandable given that I am in a High School math class, and there isn't much time for the teacher to go into the actual derivations of everything. I am wondering because I plan to major in Mathematics, and having a conceptual understanding of this is important to me.   If anyone could explain the reason extraneous solutions exist for the three examples I noted, it would be of great help to me.


I own an standalone DVR system (used for video surveillance) which apparently has an embedded Linux inside of it... The DVR writes the recordings on a locally attached SATA HDD.  Because I have no possibility to configure that embedded Linux to write the data to a NAS, I need to find some physical/hardware component to emulate a locally attached SATA HDD (as if a HDD were connected locally, but on the other side transmit the data over the LAN to my NAS like an iSCSI initiator...)  Does anyone know any hardware component for such a job?  Thanks!


What is the word for "saying a lot but unable to make a point or deliberately refrain from making a point"?


Prove that when $a,b \ge 0, r \ge 1$ that $(a + b)^r \ge a^r + b^r$

Prove that when $a,b,r \in \mathbb{R}, a,b \ge 0, r \ge 1$ that $(a + b)^r \ge a^r + b^r$   My first idea for this proof was to use the generalized binomial theorem:  \begin{align*}   (a+b)^r &= \sum\limits_{k=0}^\infty \binom{r}{k} a^{r-k} b^k \\   \binom{r}{k} &= \frac{r \cdot (r - 1) \cdots (r - k + 1)}{k!} \\ \end{align*}  But I'm unable to get that to work. Any suggestions? Thank you!


Is there a way to read the mp3 tags of a file from the shell? Something like:  mp3tags MyFile.mp3 author should output the author-tag of an mp3-file.


Linux Group Permissions not being enforced correctly.

I am running Ubuntu 10.04 server and am having some very counter-intuitive experiences with users/groups. For example:  sudo touch test_file                    # create empty file  sudo groupadd test                      # create 'test' group  sudo chown root:test test_file          # change group of file to 'test'  sudo chmod g+rwx test_file              # give write permissions to group  sudo usermod -a -G test {my-user}       # add my user to 'test' group  touch test_file                         # touch the file as my current user   The last line produces a permissions error.    I have ensured that my user is part of the 'test' group (groups {my-user} confirms this).  The group of test_file is also definitely set to 'test' and the group permissions are set.   Why can't my user write to the file test file?


Bibliographies by chapter using bibtopic on classicthesis LyX port

I need help with bibliographies by chapter using bibtopic with classicthesis (v4.1 LyX) with LyX (v2.0.2) under Ubuntu Linux (or a better option). I need bibliographies at the end of each chapter (as a section) in my thesis document. I read in the classicthesis example documentation (publications) that I can use bibtopic, multibib or some similar package to get multiple bibliographies. I found bibtopic as an easy option because this package doesn't requires new command definitions and also because LyX has native integration with it. I tried to use this package in my document but I have not had success.   Here are the steps I followed to try to get what I need (I have attached a  with the LyX files in order to reproduce the results):   I have one bib file for each chapter to contain the corresponding references (chap_01.bib and chap_02.bib) I configured each chapter document (chap_01.lyx and chap_01.lyx, child documents) with sectioned bibliography. Then I inserted the bibliography through LyX (Insert, List/TOC, BibTeX Bibliography) at the end of each chapter file, taking care referencing the corresponding bib file. Also I inserted some ERT surrounding the bibliography entry, as it is in the Bibliography.lyx file that come with classicthesis LyX port, to get the bibliography section title in the TOC. I configured the bibliography of my master document (ClassicThesis.lyx) with default parameters, i.e. with not sectioned bibliography because otherwise, I obtain the bibtopic error message: "Load bibtopic after hyperref when using the 'backref'".   Although I can compile and generate the pdf file with the above configuration, the cites appear as [? ] and the bibliography section (references) doesn't appear in the document.   Also, I have tried to use the bibtopic pakcage using btUnit and btSect  (through ERT) along the documents as described in the bibtopic documentation but I had not success.  Example   I would appreciate any help in getting what I need either using this package or  better option.  Thanks,  Héctor


In Episode V Luke drops his lightsaber from cloud city into Bespin, a gas giant. In VII it is seen recovered on Takodana held by Maz Kanata. How did anyone find and retrieve it?


My browser connects to a strange website after a certain span of time

The last 2 days http://trafleyb-sw.ru/ry5/rtk/mgpg is the link which gets connected automatically in my browser. I use Bitdefender total security to counter internet problems. But after multiple scan the problem still persists. I don't know why the particular Russian domain keeps opening.   Moreover, I would like to mention that I am using Google Chrome as browser.   Is there a solution? In addition I would like to know why the problem exist and persist? How can this be counteracted, provided I have a registered internet security software.


I activated bitlocker with my drive and when it was encrypting something the power was suddenly interrupted. When I returned to my drive and entered the unlock password, The bitlocker wizard is not responding! Tried to wait for an hour but to no avail. Is there any way I can access the files again?


Proof if $AB+BA=0$ Then atleast one of the matrices are singular.

I have this problem :  $A,B \in M_n(\Bbb R)$ matrices while $n$ odd number.  Proof if $AB+BA=0$ then atleast one of $A,B$ is singular.  I assume that $A,B$ invertible.  Its clear that $\det(AB) \neq 0$ and  $\det(BA) \neq 0$.  If I could show that, $\det(AB) \neq -\det(BA)$ then I can conclude that $\det(AB)+\det(BA) \neq 0$.  But I don't seem to find a way to show that, I guess it has something to do with $n$ odd number.  Any ideas? Thanks!


Can you please advise what is the best application for email encryption using iPhones and iPads?


"I'm not as good as him." versus "I'm not as good as he is."

Which of these sentences is more grammatical?  "I'm not as good as him."   "I'm not as good as he is."


Line 1, Column 2 error in Minecraft while using /give command

I've been attempting to use the /give command in Minecraft: Pocket Edition (which uses the Bedrock engine). I am on the most recent version: 1.2.10 (I think the most recent is 1.2.10, not sure, but I know I am fully updated)  I am attempting to /give myself a diamond sword with Sharpness 10. I have read that this is possible with commands. Here is the command I am using:  /give @p diamond_sword 1 0 {ench:{id:16,lvl:10}}  The following error is returned:  *Line 1, Column 2 Missing '}' or object member name  Could anyone help me figure out what's wrong. And, if possible, could anyone give me the proper command that would work?  REMEMBER: I am running Minecraft: PE which uses different command syntax than Java (computer) or the consoles. I am running version 1.2.10


The $p$-norm on $\mathbb R^n$ is given by $\|x\|_{p}=\big(\sum_{k=1}^n |x_{k}|^p\big)^{1/p}$. For $0 < p < q$ it can be shown that $\|x\|_p\geq\|x\|_q$ (, ). It appears that in $\mathbb{R}^n$ a number of opposite inequalities can also be obtained. In fact, since all norms in a finite-dimensional vector space are equivalent, this must be the case. So far, I only found the following: $\|x\|_{1} \leq\sqrt n\,\|x\|_{2}$(),  $\|x\|_{2} \leq \sqrt n\,\|x\|_\infty$ (). Geometrically, it is easy to see that opposite inequalities must hold in $\mathbb R^n$. For instance, for $n=2$ and $n=3$ one can see that for $0 < p < q$, the spheres with radius $\sqrt n$ with $\|\cdot\|_p$ inscribe spheres with radius $1$ with $\|\cdot\|_q$. It is not hard to prove the inequality (4). According to Wikipedia, inequality (3) follows directly from Cauchy-Schwarz, but I don't see how. For $n=2$ it is easily proven (see below), but not for $n>2$. So my questions are:  How can relation (3) be proven for arbitrary $n\,$? Can this be generalized into something of the form $\|x\|_{p} \leq C \|x\|_{q}$ for arbitrary $0<p < q\,$? Do any of the relations also hold for infinite-dimensional spaces, i.e. in $l^p$ spaces?   Notes: $\|x\|_{1}^{2} = |x_{1}|^2 + |x_{2}|^2 + 2|x_{1}||x_{2}| \leq |x_{1}|^2 + |x_{2}|^2 + \big(|x_{1}|^2 + |x_{2}|^2\big) = 2|x_{1}|^2 + 2|x_{2}|^2$, hence  $=2\|x\|_{2}^{2}$ $\|x\|_{1} \leq \sqrt 2 \|x\|_{2}$. This works because $|x_{1}|^2 + |x_{2}|^2 \geq 2|x_{1}\|x_{2}|$, but only because $(|x_{1}| - |x_{2}|)^2 \geq 0$, while for more than two terms $\big(|x_{1}| \pm |x_{2}| \pm \dotsb \pm |x_{n}|\big)^2 \geq 0$ gives an inequality that never gives the right signs for the cross terms.


Looking for advice on my first investment

I am 32 years old and single, looking for some advice on what I can do with about $10k for my first investment. I currently just have it sitting in the bank and would prefer to use some type of investment vehicle to grow my savings and begin planning for the future.  I have no debt, this is more long term so access to the funds is not important as important as long term gains and I know very little about investments to be frank.  I live in the USA.  Any suggestions? Thanks in advance!


How to use Salesforce DX to search for keywords within metadata such as APEX class, triggers and etc?

I'm not a developer. However, I find that IDE tool like Force.com Eclipse is useful to help me with analysis. I mostly use Force.com Eclipse to search for certain key word, like Field_Name__c, and it will display where the field is being referenced or used even in classes/custom setting.  However, now Force.com Eclipse has been sunsetted. I am new to Salesforce DX and still trying to learn about the concept of using CLI. Can anyone here guide or share how could i use Salesforce DX Visual Studio to perform such searching?


I need a 'good' way to initialize the pseudo-random number generator in C++. I've found  that states:     In order to generate random-like   numbers, srand is usually initialized   to some distinctive value, like those   related with the execution time. For   example, the value returned by the   function time (declared in header   ctime) is different each second, which   is distinctive enough for most   randoming needs.   Unixtime isn't distinctive enough for my application. What's a better way to initialize this? Bonus points if it's portable, but the code will primarily be running on Linux hosts.  I was thinking of doing some pid/unixtime math to get an int, or possibly reading data from /dev/urandom.  Thanks!  EDIT  Yes, I am actually starting my application multiple times a second and I've run into collisions.


Lenovo laptop not recognising my bootable usb

So I want to install Windows 10. I followed this tutorial: , but instead of multisystem, I used WoeUSB. I made a bootable USB drive, but when I open the boot menu on my laptop, there is no USB. Does anyone know why? I have a Lenovo V110 - 15ISK laptop.


I didnt understand how to apply general relativity to Earth. If there is no such a thing as gravity but spacetime bending. Can someone just show, send something to read how gravity works in Earth according to general relativity? Why people don't fall from earth? I think that the idea is there is no difference between gravity and accelerating up. But what about southern hemisphere?


Finding determinant using properties of determinant without expanding

show that determinant $$\left|\matrix{ x^2+L  &  xy   &   xz \\ xy   &    y^2+L &   yz \\ xz   &    yz   &   z^2+L \\ }\right| =  L^2(x^2+y^2+z^2+L)$$  without expanding by using the appropriate properties of determinant.  All i can do is LHS  $$x^2y^2z^2\left|\matrix{ 1+L/x^2  & 1  &   1 \\ 1   &   1+L/y^2 &   1 \\ 1  &    1   &   1+L/z^2 \\ }\right|$$  Is it a must to relate to eigenvalue problem?


I would like to compare 2 objects in C#, I don't want to compare their memory address on heap, I don't want to compare them by fields, properties etc. I would like to compare them by bytes, what is exactly in the memory. I've tried that: Assert.True(Memory.Equals(x, y)); but VS says that this can be simplified and I just can use Equals and also I see that the Equals from Object class is going to be executed instead of the one from Memory. Question: How to compare memory contents?


If electromagnetic waves can be generated by oscillation of a coil why can't light?

I was recently reading how electromagnetic waves are generated using oscillation of a current in an antenna. Why is it that this principle cannot be used to generate light?


Posting to share knowledge instead of a strict Q&A

I have a post that I made to share with others my experience of app submission to the iOS App Store. I don't know what I should do except post a question and answer it myself. I don't know how to move it to any other appropriate spot than Questions, and I keep getting down votes, because technically it is not a question. Instead, it's some experience I considered valuable to share with others.  So what I should do about this?    What happened after I post this question here yesterday:  After I post the question here, I drawn some attentions to my original post on Stack overflow,  and got a lot of down votes. I understand that it was not a real question. I mentioned it is not a Q&A and even vote for closing the question myself, however I still got a lot of down votes. Then what happened is the system banned me from asking questions again...  Now I am in the big trouble.


Volume Scatter in Cycles Turning world black

I am working on creating a sunset and am having trouble getting the volume scatter node to not turn the entire world black. I have already tried numerous suggestions from other posts including checking that my light source is not a sun-light, checking that the light's power was high enough, and that I have plugged the volume shader into the volume, not the surface input. Despite this, the volume scatter turns the world black. Interestingly, it does this if the density is anything but 0 (e.g. 1.0 ^ 10^-7 still gives a black world).   I have attempted to use a cube encompassing the scene as well, however I have been unable to make that work. Nevertheless, on a matter of principle, I'd like to get this to work because I can do it in a normal scene without the rest of my objects in it, it is something in this specific file preventing it from working.


How to protect a PDF generated via LaTeX

I've seen several questions similar to this one, but mine is how I can protect my PDF:   Extract contents. Print. And, eventually, customize all the meta tag.


D&D 5e If it says that I have a +7 to Stealth, do I add my Dexterity bonus (which is 3) plus my proficiency x 2 (which is 2x2 = 4) because of being an expert to it, or, is the + 7 just the number I add to my D20 roll when I make a stealth check?    I have added my Dex plus my proficiency to it in my game (I am a PC) and rolled a 30 to stealth (16 on D20 and +14 for stealth) which seems way too high even for a rogue at low level.


SF short story about a patrol car on a "hyper-highway" at 400+ mph speeds

I'm trying to locate a short story, probably written in the 1970s but likely before the oil crisis, about a day in the lives of two officers and one medic on a patrol car riding the highways of the U.S. and Canada at speeds of over 400 miles per hour.  They eat, shower and sleep in their vehicle as they patrol, rescue and arrest drivers over hundreds on miles of road. It's either a multi-national patrol or the two countries have merged in some fashion. I probably read this in an anthology, possibly in the 1980s or 1990s.


Reading shapefile in R with shapefile function?

I want to read a shapefile(polyline) into R, using rgdal and raster packages.  The code looks like:  d<-file("/Volumes/Environment_layers/original/WaterRoad/Road.shp") o<-shapefile(d)   but I got a warning:  Error in (function (classes, fdef, mtable)  :    unable to find an inherited method for function ‘shapefile’ for signature ‘"file"’   I am new in using R dealing with spatial layers.


jQuery isn't work when I clone the new element

When I click "Add" button It should clone the new element to the bottom and can show/hide the input field base on select value. But now , when It cloned, The new element cannot show/hide input field like the first element.  This is my code.    $("#filter_option").change(function() {     let elem;     let val = $("#filter_option").val();     if (val == 1) {         elem = $("#boxes .position_value").clone();     } else if (val == 2) {         elem = $("#boxes .salary_value").clone();     } else {         return;     }     $("#container").append(elem);     elem.show(); });  $(".position_value").hide(); $(".salary_value").hide();  $("#add").click(function() { //when user clicks add     let elem;     elem = $("#filter_option").clone();     $("#big_container").append(elem);     elem.show(); });  <select class="form-control input-sm" name="filter_option" id="filter_option">   <option disabled="" selected="">Select a filter</option>   <option value="1">Position</option>   <option value="2">Salary</option> </select>

 <button id="add">ADD</button>

      <select class="form-control input-sm" style="margin-top:0px;" name="operator_position">       <option value="1">is</option>       <option value="2">isn't</option>       <option value="3">contains</option>       <option value="4">isn't contains</option>     </select>     <input class="form-control" id="inputdefault" type="text" placeholder="Position" name="filter_position">

     <select class="form-control input-sm" style="margin-top:0px" id="salary_oprator" name="operator_salary">       <option value="1">=</option>       <option value="2">>=</option>       <option value="3">         <=</option>       <option value="4">></option>       <option value="5">         <</option>     </select>     <input class="form-control" id="inputdefault" type="text" placeholder="Salary" name="filter_salary">


Show that $d_b(x,y)=\frac{d(x,y)}{1+d(x,y)}$ is a metric.

where $(X,d)$ is a metric and $x,y \in X$.  I know we need to show:   non-negativity: $d(x,y)\geq$ 0 $d(x,y)=0$ if and only if $x=y$ symmetry: $d(x,y)=d(y,x)$ $d(x,z)\leq d(x,y) + d(y,z)$   I think we need to consider the derivative of $f(t)=\frac{t}{1+t}$ however I am not sure what to do next.


How can I have text colored on screen and black on printing?

I have a document with colored hyperlinks, using the options of the hyperref package.  I also have lots of tikz-figures that use various shades of gray and occasionally some colors.  The way my document is right now looks very nice on screen but not so great when I print it on a monochrome printer. I tried using xcolor's \selectcolormodel{gray} but then all the colors are printed as shades of grey. This is ok for figures but not acceptable for the text.  Is there a way to change the color of the text (and only that) to black when printing the document? The figures should stay as they are (colored/shaded).  If this is not possible, is there a way to turn all the figures in grayscale and all the text to black?  Are things like these possible or do I have to maintain 2 diferrent versions of my document (i.e. one for on-screen reading and the other one for printing)?  I am using XeLaTeX if it is of any importance.  some text    and a figure with shades of grey


This is your typical elastic collision problem except the balls have finite radius.  To be clear:   two billiard balls in the plane each with radius $\sigma$ move at constant velocities $v_1, v_2$ starting at positions $x_1, x_2$   What is the criterion for there to be any collision at all?  When does it happen? And at what angle to they collide?  I need it to write a computer simulation of the .


Can there be true instantaneous/stepped acceleration?

The time derivative of acceleration (m/s²) is jerk (m/s³).  I know that when you push on an object, there cannot be true instantaneous acceleration, which leads to infinite jerk, because the object must compress ever so slightly before it starts to move.  However, what if an object is suspended in a vacuum using an electromagnet? When the power is cut, would it release all attractive force instantaneously in exactly no time? Would the jerk be infinite at the moment of the start of free fall? Note: Acceleration will be in standard gravity.  Also, what if the object is hung by a string, and the string snaps due to too much tension (for example, object too heavy)? Will the jerk be infinite?  Also, how about snap (m/s⁴) and crackle (m/s5)?


How can I create a table such as following: I do not know how can I have A and B in the middle of four rows ?


Selecting subsets of field to generate new field in ArcMap?

Aside from using code in the field calculator, how can one create a new field to have values based on another field?   For example I have a built-in field already which contains 0s and 1s and I want my new field to have 100 where that built-in field has 0 and 200 where the built-in has 1.


I've booked 2 hotel rooms in Hong Kong just today and linked it to an empty debit card as I was expecting to pay only when I reach the hotel. However, I received an email saying that my credit card (I used a debit card) is invalid and I have to solve this problem within 24 hours.  There is no way that I can get some money into the card within that 24 hours limit. The rooms I booked were 'no cancellations' meaning I have to cover the full cost if I cancel the booking. Will they charge me any money if I can't solve the issues with my debit card?  Also I would like to ask, is the booking already confirmed or is it still waiting for the valid card? Can I just not do anything to it and wait for them to cancel the booking? Are they able to charge me if I do that?


Changing my domain name - need a checklist

I have a web site currently with say 'a.com', with a quite good Google rankings and a hit rate. Now due to some change in business needs I need to change my domain name to 'b.com'.    Can you provide me with a check list of all points I need to consider before going up with new name. How can I minimize the effect on my SEO rankings? Can I carry forward existing rank to new domain.


Is the determinant of $\left( \begin{array}{rr} A & B\\ -B & A \end{array}\right) $ non-negative?

I'd like to know if $$\left( \begin{array}{rr} A & B\\ -B & A \end{array}\right) $$ has non-negative determinant, where $A,B$ are $n \times n$ real matrices, not necessarily commuting. I'm trying to show almost complex structure $J$ admits an orientation given by $\{e_1,\cdots ,e_n,Je_1,\cdots Je_n \}$. To show this orientation is well defined, I need to pick another such basis and show the transition matrix has positive determinant. And above is the transition matrix. Thanks in advance for anyone who could help. Note that in  the answer is only provided when $A$ and $B$ commute.


I have a text file with a lot of blank lines that I want to remove like:  aaa  bbb   ccc   I would like to get:  aaa bbb ccc   At the moment I am trying:  LANG=C sed -E '/^\n|^\r|^\r\n|^\n\r/d' file   I should say I am using OSX. I have tried quite a few things and can't figure out what I'm doing wrong.  I have already tried searching for \r character


The number of elements in $\mathbb{Z}_{11}$ satisfies $x^{12}-x^{10}=2$.     I don't know how to start it.


Downloading ftp with wget when the username is an email address

I want to copy all of the files and folders from one host to another. The files are on the old host site at /var/www/html. I only have FTP access to that server, and I can't TAR all the files.  I tried running the following command form my new server:  wget -r ftp://username:password@ip.of.old.host  But the problem is that the username I have is an email address so its not registering it as a username.  For example:  wget -r ftp:// myname@gmail.com:password@ip.of.old.host  This means there are two '@' symbols. I'm not sure but I think it's reading the first @ symbol as the one used in the function. The output Im getting is wget -r ftp://username:password@ip.of.old.host: Bad port number.  Not sure whats going on and any help is appreciated.


I would like to properly use the verb get in the following sentence:     "You've ___ bigger since the last time I saw you, Bobby."   Should the past tense got be used or the past participle gotten?  I know it should be conjugated according to 'You have' (present).


Programmatically add field collection items to a node

I have a node with a Field Collection [field_videos]. I would like to be able to progrmatically load a node and add field collection items. The field collection contains the following fields:   field_video_url field_video_title   How can I achieve this in Drupal 8? The few examples I've seen online are for Drupal 8.1 or 8.2 and don't seem to work in the latest version of Drupal.  My code currently looks like this:  $field_collection_item = FieldCollectionItem::create([         'field_name' => 'field_videos', ]); $field_collection_item->setHostEntity($node); $field_collection_item->set('field_video_title', 'This is my Title'); $field_collection_item->save();   This gives the error: "Error: Call to a member function getEntityTypeId() on null in Drupal\field_collection\Entity\FieldCollectionItem->setHostEntity()"


modify the 'agsm' bibliography style in two ways

I am using LaTeX with the article document class. The Bibtex bibliography style that I am using is agsm, part of the Harvard family of bibliography styles.  I have two questions:  (1) If I cite an entry of type @book, then in the reference list I get publisher, address. I would like to re-arrange this order to address: publisher. Which part of agsm.bst should I modify?  (2) I would like to change single quotation marks ' ' to double quotation marks " " for setting off the title of entries of type @article. Which part of agsm.bst should I focus on?


A bag contains 2 counters, as to which nothing is known except that each is either black or white. Ascertain their colours without taking them out of the bag. Carroll's solution: One is black, and the other is white.   We know that, if a bag contained $3$ counters, two being black and one white, the chance of drawing a black one would be $\frac{2}{3}$; and that any other state of things would not give this chance. Now the chances, that the given bag contains $(\alpha)\;BB$, $(\beta)\;BW$, $(\gamma)\;WW$, are respectively $\frac{1}{4}$, $\frac{1}{2}$, $\frac{1}{4}$. Add a black counter. Then, the chances that it contains $(\alpha)\;BBB$, $(\beta)\;BBW$, $(\gamma)\;BWW$, are, as before, $\frac{1}{4}$, $\frac{1}{2}$, $\frac{1}{4}$. Hence the chances of now drawing a black one, $$= \frac{1}{4} \cdot 1 + \frac{1}{2} \cdot \frac{2}{3} + \frac{1}{4} \cdot \frac{1}{3} = \frac{2}{3}.$$ Hence the bag now contains $BBW$ (since any other state of things would not give this chance). Hence, before the black counter was added, it contained BW, i.e. one black counter and one white.  Can you explain this explanation?  I don't completely understand the explanation to begin with. It seems like there are elements of inverse reasoning, everything he says is correct but he is basically assuming what he intends to prove. He is assuming one white, one black, then adding one black yields the $\frac{2}{3}$. From there he goes back to state the premise as proof. Can anyone thoroughly analyze and determine if this solution contains any fallacies/slight of hand that may trick the reader?


Should UnhandledException notify all unhandled exceptions?

I'm trying to log all exceptions in a xml file, so what I did is create a UnhandledException method that will be calling every time an exception is generated, a little example:  public MainWindow() {     AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(UnhandledExceptionTrapper);      InitializeComponent();     throw new Exception("this is an example"); }  public static void UnhandledExceptionTrapper(object sender, UnhandledExceptionEventArgs e) {      Console.WriteLine(e.ExceptionObject.ToString()); //Here there is breakpoint     Environment.Exit(1); }   Now the problem is that the method UnhandledExceptionTrapper is called only when an exception happen inside the main thread, infact I execute all the main methods inside different Tasks, an example:   Task.Factory.StartNew(() =>  {      //heavy operations      foo();  })  .ContinueWith((prevTask) =>  {      //final operations  });   now when an exception happen in foo() for example:  public void Foo() {     throw new Exception("another example"); }   the method UnhandledExceptionTrapper it's not called.  On the official documentation:     Occurs when an exception is not caught.   I don't understand if this working on all application (also task), or just main thread.  Thanks for any explaination.


The typical ConfigParser generated file looks like:  [Section] bar=foo [Section 2] bar2= baz   Now, is there a way to index lists like, for instance:  [Section 3] barList={     item1,     item2 }   Related question:


Western Digital drive making beeping noise

I have a 2TB Western Digital drive (WD20EADS). For no apparent reason, when I powered it up today it started making an odd beeping noise, and would not mount.  I'm fairly certain the drive is broken, but the sound it is making is strange, basically a longer beep, then a shorter, higher pitched one. Does this sound mean anything other than "it's dead"?  Recording of the drive:


"Unable to create/update fields: Address" - but permissions look fine

I'm attempting to add a Lead using the SOAP API via .NET.  I receive this error:      Unable to create/update fields: Address. Please check the security settings of this field and verify that it is read/write for your profile or permission set.   However, everywhere I can think to check shows the field is visible and editable.  Editing field-level security for Address in Lead:    Editing field visibility for Address in Lead:    Editing field-level security for the System Administrator profile, from the Profiles management tool:    What am I missing?


I want to import fonts from Google Fonts without having them in the directory and without having to import them in my .html file. Is there any way to reference a .css file from your main .css file?


This question is more for curiosity than knowledge, but it might still be useful to know.  Is it possible to obtain automatic question bans on meta sites besides Meta Stack Exchange? If so, how much lower is the threshold? I ask because downvotes on Meta have little effect overall and can indicate disagreement, so I would imagine that implementing a question ban system on a meta site would be hard to implement.


Here i have executed the following code and parsed it to date format from form.          Date formatter = new SimpleDateFormat("mm/dd/yyyy");         SimpleDateFormat newFormat = new SimpleDateFormat("yyyy/mm/dd");         Date date = null,sdate=null;         String datef = null;         try {             date =formatter.parse(datestring);             sdate = newFormat.format(date);          } catch (ParseException e) {             e.printStackTrace();         }         ps=conn.prepareStatement("INSERT INTO work_schedule (date) VALUE(?)"); // connection conn defined.     ps.setDate(1,(java.sql.Date.valueOf(sdate)));   The above code throws a null pointer exception , i tried executing query in my sql workbench query works good.  Please let me know if i have made any error in the above code.


Do I need a disc drive to install Ubuntu?

My computer doesn't have a disc drive and I am unsure how to continue installing without one.


How to implement 2d collision detection that is immune to low framerate and fast movement?

I am trying to implement my own collision detection for a 2.5d voxel style platformer using Three.js.  I have a problem with my implementation - if the framerate is too low or the character is moving too fast (usually when falling from high places) it falls right through. Is there a way to improve collision detection to be immune to problems like this?  This is how I detect collisions:  function render(){     requestAnimationFrame(render);      setVelocity();     animate();     manageCollisions();      renderer.render(scene, camera);   }  function manageCollisions(){ //Check every game object for collision -> TODO: implement broad phase when dealing with many objects for(i=0; i < world.length; i++){      //Check for bottom collision <- ALWAYS check (unless moving up)      if(velocityY<0) {         if( (character.position.y - character.height/2) < (world[i].position.y + world[i].height/2)             && (character.position.y + character.height/2) > (world[i].position.y + world[i].height/2)             && (character.position.x + character.width/2) > (world[i].position.x - world[i].width/2)             && (character.position.x - character.width/2) < (world[i].position.x + world[i].width/2))         {             console.log("bottom collision " + i);              velocityY=0;             jumped=false;             grounded = true;              character.position.y = world[i].position.y + world[i].height/2 + character.height/2 - 0.1; //-0.1 prevents shaking         } else {              grounded = false;         }      }      //Check for right collision <- ONLY if moving right (velocityX is positive)     if(velocityX > 0){          if( (character.position.y) < (world[i].position.y + world[i].height/2)             && (character.position.y + character.height/2) > (world[i].position.y - world[i].height/2)             && (character.position.x + character.width/2) > (world[i].position.x - world[i].width/2)             && (character.position.x - character.width/2) < (world[i].position.x - world[i].width/2))         {             console.log("right collision" + i);             velocityX=0;             character.position.x = world[i].position.x - world[i].width/2 - character.width/2;         }     }      //check for left collision <- ONLY if moving left (velocityX is negative)     if(velocityX < 0){          if( (character.position.y) < (world[i].position.y + world[i].height/2)             && (character.position.y + character.height/2) > (world[i].position.y - world[i].height/2)             && (character.position.x - character.width/2) < (world[i].position.x + world[i].width/2)             && (character.position.x + character.width/2) > (world[i].position.x + world[i].width/2))         {             console.log("left collision" + i);             velocityX=0;             character.position.x = world[i].position.x + world[i].width/2 + character.width/2;         }     }      //check for top collision <- ONLY if moving up (velocityY is positive)     if(velocityY > 0){         if( (character.position.y + character.height/2) > (world[i].position.y - world[i].height/2)             && (character.position.y - character.height/2) < (world[i].position.y - world[i].height/2)             && (character.position.x + character.width/2) > (world[i].position.x - world[i].width/2)             && (character.position.x - character.width/2) < (world[i].position.x + world[i].width/2))         {             console.log("top collision" + i);             velocityY=0;             character.position.y = world[i].position.y - world[i].height/2 - character.height/2;         }     }    }   }


Ubuntu 14.04 WebBrowser.app does not see flash

The new WebBrowser.app now in Ubuntu 14.04LTS 64bit does not play flash.  I have Adobe flash installed and working both in Firefox and Chrome, but the Browser.app says it is not installed.  When I try to play flash I get the message that I need to install the latest 32bit flash, but I have a 64bit system and 64bot flash is installed..  Any suggestions?


Which Stack Exchange site is fit for asking domains and hosting related questions?

I was wondering if there is a site by Stack Exchange, where one could ask hosting/domain related questions.


Plural or singular verb with this subject

Funding and financial management sometimes (remains or remain) difficult.  Can you please tell me wich one is correct and why?


My whirlpool side by side refrigerator is not cold and freezer is cold but not making ice?  I have replaced the relay switch on compressor, I have taken the back off inside the freezer and the fan is working, I have taken the damper off and it is working, I have been told if fans are working the control panel is working, I have cleaned the coils (the best I can), the fan is working to cool compressor.  Don't know what else it could be, help! please


First of all, I understand that then cannot be used as a conjunction with simply a comma (lacking a semicolon or start of new sentence) to connect two independent clauses and that a semicolon or a FANBOYS conjunction must be used with it for that to work. However, my question is: what if it's connecting a dependent clause? To be more specific, one that has to deal with sequence. I will list a few examples below:  I went to the store then home.  I'm going to cook the steak on the stove, then finish it off on the skillet.  Bob opened the door, then shut it right back.  Tracy and Jill came out first, then Brittany.  We ate all of our food, then grabbed some dessert.  Dictionary.com and a few other places state that it can be used in instances like some of those. However, I don't know if I trust that or not. I tend to follow rules in between traditional and modern, but in some cases, I think that they should always be followed. Therefore, I need know, in the strictest of terms, what the rules are regarding then.  I have seen the link of "Than vs then", and while it does provide some points, it does not fully explain the use of then with a dependent clause. The Op in that thread uses two independent clause, which is what I already stated was not allowed.


How would I identify what's causing my Mac to permanently hang on shutdown?

Whenever I try to shutdown or reboot my Mac (Macbook Pro 15" Retina late 2013, OS X 10.11.3) it closes all programs like normal and then it goes into that black screen with the progress bar. When it gets to about halfway it permanently hangs and won't ever finish rebooting. I looked at the log viewer and couldn't find anything in particular. Is there a way to monitor a shutdown more closely and find out what's causing it to get stuck?


Unable to get the value of the clicked button which is getting pasted after ajax search on the php page

I am stumbled upon this problem for 3 days and tried every sort of possible code to resolve it.  Here the search results from ajax call are printed  <input type="text" name="search" onkeyup="showHint(this.value)" placeholder="Search..">
    Here is the code for ajax call(learned and implemented from w3schools)     This is where I am trying to print

  And here is the php file where the search is happening      <?php     session_start();     $temp_arr = $_SESSION["temp_search"];     $q = $_REQUEST["q"];     $hint = ""; $i=0;     if ($q !== "") {         $q = strtolower($q);         $len=strlen($q);         foreach($temp_arr as $name) {             if (stristr($q, substr($name, 0, $len))) {                 if ($hint === "") {                     $hint = $name;                 } else {                     $hint .= "<button id='<?php echo $i;?>' onclick='btnClick()'>$name</button>";                     $i++;                 }             }         }     }     echo $hint === "" ? "no sugesstion" : $hint; ?>   I sort of have the id but I am unable to understand how to do this. I might be doing some silly mistake here so please tell how to do this correctly.  I am a newbie with jquery so explain it in simple terms. :)


Can anyone help me identify a story about kids with silver blood?

I vaguely remember reading a young-adult book about a group of kids.  The kids turned out to be aliens, and the one identifying mark they had was that their blood was silver (or something else)?  I think the kids also have powers.  I vaguely remember a cover that had a gaping mouth and something that looked like they were supposed to be sound waves coming from it.  Does anyone know what this is?


Continuing an Independent Clause,Should I and is it one Clause or Two?

My mother tongue is German and we frequently continue our independent sentences with "and" and/or other conjunctions forever. I just want to know if this is also possible in English:  "I have learned English for 6 years now and still encounter a lot of grammatical problems."   Is this one independent clause or should I split it into 2 independent clauses by adding an "I":  "I have learned English for 6 years now, and I still encounter a lot of grammatical problems."   Or what about this:  "I have learned English for 6 years now and still encounter a lot of grammatical problems and also a lot of other issues as well."   Thanks


What would happen to account holders if a brokerage gets shut down?

As many of you may know,  (among other brokerages) shut down trading of several stocks, including Gamestop (GME) and AMC Entertainment (AMC). Recently, Justin Kan on Twitter posted the following , implying that Robinhood may have been working behind the scenes with Citadel to manipulate the market.  Just got a tip that Citadel reloaded their shorts before they told Robinhood to stop trading $GME.   If this is true, Ken Griffin and the Robinhood founders should be in jail.  If a brokerage were to shut down due, what happens to the users who have accounts with them?  Do their shares get liquidated and the money sent back to them?  Does the account get moved to another brokerage?  Do the users just lose their account and assets held within?


MacBook says out of space but disk inventory and daisy disk show plenty of space please please help

I have a mid 2011 MacBook air with 128 gb but from every app it says im only using 98 gb while the system has 76.45 gb that its taking that I cannot locate anywhere. I have tried everything I can think of from listing local snapshots to putting it into recovery mode. Nothing works. I am not the most tech savvy but any way to help would be amazing.


I need some help with running commands on system startup.  So, I need these two commands to be executed every time I start my machine, due a problem with my Realtek driver (doesn't really matter):  sudo ifconfig myCode up sudo service network-manager restart   How do I manage that to work?  I'm getting confused with sudo command and not knowing when will I enter my password or will the script even be run. Sorry for my low knowledge of Ubuntu system.  Thank you for your time!


I posted a question on CS without having created an account. I then started the procedure to sign-up, but finished it by clicking on the link in the email from another device. Problem is, the question is not considered to be asked by me, but by another user with the same name, user which I am on the first device. On this first device, I'm stuck on the "finish signingup" stage. Following the link simply gets me to a sign-up form, and then the system tells me:  Stack Exchange (foual976@school.lu) belongs to another user (afqt) You can log in as afqt or cancel to stay logged in as afqt Log In As afqt cancel  Whatever I click brings me back to the "finish signing up". What should I do? Thanks.


I'm trying to understand how scopes work in JS. Can you tell me if I correct with understanding of this chunk of code:  for(var i = 0; i<5; i++){  setTimeout(function timeoutHandler() {    var i = i;    console.log(i); //undefined  }) }   console.log prints undefined 5 times. So as I understand, when timeoutHandler is executed, it has its own local scope with own i variable. So is that correct that during timeoutHandler execution, the interpreter asks for i variable, finds it declared in local scope and uses this declared variable for assignment? This explains why it is undefined, but I'm not sure I'm fully correct. Thanks  UPD I don't need this code to work properly, I just want to understand why it behaves like that in this case


How to compare one character to ALL characters of a String

I have a string that will be different every time you run the code. I want to make an if statement that compares one char, to every individual character of the string. For example, if I were to compare 'c' to cat, it will return that there is a 'c'. BUT If I compared it to orange, it would return that there is not any 'c'. I can't figure out how to do this because the string will change length every time so I cannot simply do c = a && b && c because there could be a d.


Physicists say that energy is the ability to do work, and work is moving something against a force, like gravity. But what is energy? Is it something real? I know I will be criticised for using that word. But is it, maybe, something tangible? Or is it only an idea that we created to broadly name a phenomenon we observed? I could not find the answer as to what energy is!


How do I check if .wmv file is corrupted?

Whenever I try to play .wmv in an media player, it won't start playing by itself. When I slide the bar a little further only then it does. Could be the .wmv file corrupted from the beginning? How can I check this to make sure if it is?


Conflicts using Tkinter/wxPython with Python AddIn scripting?

I want to design a custom dialog window where i can select various datasets of choice using scroll down option and specify some conditions and thresholds. Right now i am using python addins within arcgis 10.1 for toolbar and tools. I came across tkinter and wxpython as options for dialog box designing. Will there be a conflict between using tkinter or wxpython within addin scripting?


Why SQL simple float is printed in PHP as long float?

I've a value like "13.4" in a MySQL Database.  When I print it in a PHP page, it's showed as "13.39999961853"  Any suggestion?


With biblatex you can split a bibliography based on keywords using    \printbibliography[keywords=mykeyword]     as documented in .  This seems to be hardwired to use the keywords field. Is there a way to divide the bibliography based on another field? Specifically, Mendeley inserts a mendeley-tags field that looks like:  mendeley-tags = {mytag1,mytag2,mytag3},   I have tried  \printbibliography[mendeley-tags=mytag3]   but that doesn't work.  Is there a way to set this up?


Driving a 6V relay from an 3.3v GIO pin of Raspberry PI3

I want to drive  (RT314F06) from a 3.3v output gate of an GIO pin of a R-PI3.  --edit--  There is already  answer on SO, but it is incomplete in the way that it does not tell which discrete components to use. I my case this is important since I'm too novice to decide which components to choose myself.  --edit--  Given that I have also a 6v power-supply, what component should I use to upshift the 3.3v to 6v?  The relay requires 6V and has an internal resistance of 55 Ohm. So, if I am correct, the driver needs to be capable of driving about 100mA.  Can I use a converter like ? I think it can shift only to 6v and I can't find how much current it can drive.  Thanks for the advice.


How to create a install disk (USB) that has libraries loaded like:libftdi-dev,libsqlite3-dev,libxml2-dev,libmicrohttpd-dev,libncurses5-dev e.t.c. for application development. (The *.so files are essential for the applications developed) So It sounds like what I need to do is:  make a disk-image that will fit within all destination disks have a boot capable version of Ubuntu on a USB. have a command to partition the destination disk sized to the disk-image auto copy disk-image onto the destination Can this work?  What problems will I run into?


Tips for taking a dog on a long distances (multiple day) car trip?

I'm planning a move across the United states (literally coast-to-coast) and my large (75 lb) dog needs to come along. According to google maps it's a 36 hour drive, which I figure will take a minimum of 3 days once some slight sight seeing, eating, and sleeping is factored in.  Clearly I need to bring dog food, maybe a blanket for him to lay on in the hotel room and probably a travel crate. What else do I need to take into account?


Short story ID: Scientists (?) trying to prevent people from entering a cave (?) and never coming out again

I'm a bit concerned that I am forgetting some details, but here is what I know: I THINK it was part of a collection called something like "World's best Sci Fi", probably 1974, 1975, 1976, or 1977.  I remember that there was at least one character, possibly two, who were on a planet and trying to understand why people were entering a cave (or swimming in a pool or something like that) and never returning.  Eventually, the main characters enter the cave/thing and realize that they will just experience euphoric happiness while there.  The story ends with them staying in the thing.


$\lim _{n\to\infty} (\min \{x_n,y_n\})=\min \{\lim_{n\to\infty} x_n, \lim_{n\to\infty} y_n \}.$

$x_n$ and $y_n$ are bounded number sequences. Prove that $$\lim _{n\to\infty} \bigl(\min \{x_n,y_n\}\bigr)=\min \left\{\lim_{n\to\infty} x_n,  \lim_{n\to\infty} y_n \right\}.$$  Does that also mean that: $$\lim _{n\to\infty} \bigl(\max \{x_n,y_n\}\bigr)=\max \left\{\lim_{n\to\infty} x_n,  \lim_{n\to\infty} y_n \right\}?$$


Prove the estimate $\binom{n}{k} \le (\frac{en}{k})^k$

Prove the estimate $$\binom{n}{k} \le \left(\frac{en}{k}\right)^k$$ directly from $$e\left(\frac{n}{e}\right)^n \le n! \le en\left(\frac{n}{e}\right)^n.$$


jQuery Validator custom rule for min max or zero value

I am using jQuery validator and everything works fine. But now I have a requirement of using min and max value. But here is a problem.  Requirement  The user can input values from 60-600 or 0.  Code  <input type="number" value="0" max="600" min="60" class="form-control" id="interval" placeholder="Enter interval in seconds 0 or min. 60 - max 600" name="interval">   Problem  The issue in this is user can't input 0 value.


How can I find a folder that starts with a .?

I've just read , but I don't understand; where can I find the file ~/.config/spotify/Users/[Spotify user name]-user/prefs to be able to edit it? Do I have to use the Terminal? If possible, can you explain step by step how to find ~/.config/spotify/Users/[Spotify user name]/prefs? Edit I found it using Google Chrome: file:///home/tim/.config/spotify/Users/tim/prefs  But I cant edit it. How do I edit a file in a folder that starts with a .? Do I need to be root user?


Proof for symmetric difference of sets in set theory

Is it true that: $A\triangle (B\triangle C) =(A\triangle B) \triangle C$?  The $\triangle$ stands for symmetric difference.


If a variable is found with p-value greater than 0.05, why is it also taken for calculation in the regression equation Y=a+b1*X1+b2*X2?

Suppose, I have performed multiple regression analysis on the following data set where X1 and X2 are independent variables and Y is the dependent variable.    And achieved the following multiple regression analysis table from where it is clear that X2 is not correlated with Y as the p-value is greater than 0.05 which is 0.108 for X2 variable     So, if p value is greater than 0.05 for a variable, then why it is considered in regression equation  Y = 2.709 + 0.763(X1) + 0.463(X2) which has been shown in any online multiple regression equation calculator.  My question is Why it is not like the following Y = 2.709 + 0.763(X1) omitting the [0.463(X2)] part from the equation, as X2 is not correlated with Y  Please help to clarify the conceptual idea....


I have 8GB of Free RAM, Why am I SWAPing?

I have 16GB of RAM in my iMac, right now 8GB of RAM is used... and I have 2.31GB of SWAP...  [  My question is, if there is 8GB of RAM still free, then why am I swapping?


Prove that for every $f$, a bilinear form, there exists a basis ${v_1,...,v_n}$ so that $f(v_i,v_j) = -f(v_j,v_i)$

I didn't want to bloat the title, i'll also add that the basis is in ${\mathbb{R}^n}$. This question seems kind of easy, but its from a test so I assume there is a catch here somewhere.   I tried to prove it by contradiction. Assume by contradiction that there exists no basis that satisfies the condition. But as known, every bilinear form can by identified by a matrix so that $A_{ij} = f(v_i,v_j)$. If there is no basis so $f(v_i,v_j) = -f(v_j,v_i)$ it means there is no skew-symmetric matrix which can identify a bilinear form over $\mathbb{R}$ which is obviously not true( I guess an example can be given here, I think ).  This proof just seems to simple to be true, but I can't seem to figure what could be wrong with it. I'll greatly appreciate any tips, thanks!


(Please feel free to offer a better and more precise subject title.)  I have two vertical chains with different count of nodes in it. But I want to visualize that some nodes of the right belong to one of the left. They need to appear in the same row/line. In the example code below you see Y and two nodes should appear on the right side of it.    The problem here is that I can not handle the right chain like it has 4 nodes and join them. Using \matrix make it impossible to use chain.  \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix,positioning,chains,scopes}  \begin{document} \begin{tikzpicture}     [         myright/.style={             draw},         myleft/.style={             myright,             on chain,             fill=cyan!30}     ]     % LEFT     {[start chain=L going below,       every node/.append style=myleft]         \node {X};         \node {Y};         \node {Z};     }      % RIGHT     {[start chain=R going below]         \node [myright,right=of L-1] {belong to X};          \matrix [right=of L-2]         {             \node [myright] {belong to Y};\\             \node [myright] {also belong to Y};\\         };          \node [myright,right=of L-3] {belong to Z};     } \end{tikzpicture} \end{document}   btw: This question is related to .


Can somebody help me with this one?  I need to check the answer  Let A denote the set of those 6-digit positive integers in which each of the digits 1; 2; 3; 4; 5; 6 appears exactly once. An integer in A; having standard decimal representation d1d2 : : : d6; is called nice if for each k = 1; 2; 3; 4; 5, the set fd1; : : : ; dkg contains at least one digit strictly greater than k (for example, 234561 is nice, whereas 321645 is not nice). From A; an integer n is randomly picked. What is the probability that n is nice?


Get steam to realize I have games already installed

I uninstalled and re-installed steam. I didn't uninstall my games, and they still exist on my hard drive (I checked).  I have an SSD and a HDD, and to save space I install programs (including steam) to C:\Program Files (x86)\Steam drive (SSD) and games to D:\Games\SteamApps (HDD). How to I let steam know the programs are installed there?


Getting Exception in thread "main" java.lang.NullPointerException in Selenium

Getting "main" java.lang.NullPointerException in Selenium  I am new to Selenium and I have started POM structure by following Youtube/Udemy tutorials. Iam getting this error.  My POM class code :  package Pages; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver;  public class Guru99Homepage {     WebDriver driver;      public Guru99Homepage(WebDriver driver) {         this.driver = driver;     }      public void browserlaunch() {         System.setProperty("webdriver.chrome.driver", "/Users/saurabh.gupta/eclipse-workspace/Project/Driver/chromedriver");         driver = new ChromeDriver();     }      public void openguruwebsite() {         driver.get("http://demo.guru99.com/V4");     }  }   2nd POM Class :  package Pages; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver;  public class Guru99LoginPage {     WebDriver driver;      public Guru99LoginPage(WebDriver driver) {         this.driver = driver;     }      public void username(String User_name) {         driver.findElement(By.xpath("//input[@name='uid']")).sendKeys(User_name);     }      public void Password(String Pass) {         driver.findElement(By.xpath("//input[@name='password']")).sendKeys(Pass);     }      public void clickat_loginbutton() {         driver.findElement(By.xpath(" //input[@name='btnLogin']")).click();     } }   Test case :  package TestCases; import org.openqa.selenium.WebDriver; import Pages.Guru99Homepage; import Pages.Guru99LoginPage;  public class Guru99Login{      public static void main(String[] args) {         WebDriver driver = null;         Guru99Homepage homepage = new Guru99Homepage(driver);         Guru99LoginPage lgnpage = new Guru99LoginPage(driver);          //Browserlaunch         homepage.browserlaunch();          //WebsiteOpen         homepage.openguruwebsite();         //driver.manage().window().maximize();         lgnpage.username("mngr47659");         lgnpage.Password("123456@");         lgnpage.clickat_loginbutton();     } }   "I am able to open browser but after that Iam getting the below error message"   INFO: Detected dialect: W3C Exception in thread "main" java.lang.NullPointerException     at TestCases.Guru99Login.main(Guru99Login.java:31)   Please help me ,so that I can start pom structure with your support.  Thanks


Simplify and find $\lim_{n\to \infty}\frac{(2n-1)!}{(2n+1)!}$

So I was calculating  $$\lim_{n\to \infty}\frac{(2n-1)!}{(2n+1)!}$$ and couldn't solve it, so I saw the answer sheet and it said that the limit was $0$, I checked the process and they simplified the expression to  $$\lim_{n\to\infty} \frac{(2n-1)!}{(2n + 1)(2n)(2n − 1)!}$$                       and then  $$\frac{1}{(2n + 1)(2n)}$$ and said it was $0$  How did they achieved this?


Characterising functions $f$ that can be written as $f = g \circ g$?

I'd like to characterise the functions that ‘have square roots’ in the function composition sense. That is, can a given function $f$ be written as $f = g \circ g$ (where $\circ$ is function composition)?  For instance, the function $f(x) = x+10$ has a square root $g(x) = x+5$.  Similarly, the function $f(x) = 9x$ has a square root $g(x) = 3x$.  I don't know if the function $f(x) = x^2 + 1$ has a square root, but I couldn't think of any.  Is there a way to determine which functions have square roots? To keep things simpler, I'd be happy just to consider functions $f: \mathbb R \to \mathbb R$.


Call another method from a method in same Lightning controller

Given two controller methods defined for a Lightning component as follows, how can I call bar() from foo()? If I try it using the code shown below, I get the error, "bar is not defined".  ({     bar : function(component, event, helper) {         console.log('bar just happened');     },     foo : function(component, event, helper) {          // I would love for this to work,         // but it doesn't work as expected.         bar(component, event, helper);          // I've also tried this but get a slightly          // different but equally discouraging error.         this.bar(component, event, helper);     } })


BoxCox transformation suggest natural logarithm transformation. Can log10 transformation be used instead?

I run a Box-Cox transformation for a linear model to find an appropriate transformation for a response variable, which is a number of insect per sq.meter. I need to transform the response variable because of a pattern in the residual plot obtained after running the linear regression using none-transformed response variable. I used a boxcox() function from the ‘MASS’ package in R. Box-Cox suggested the best lambda value of 0.055 for transformation, which is close to 0 and corresponds to natural log transformation (Osborne 2010).   My question is may I use log10 transformation instead of natural log transformation? log10 transformation is the most common transformation my field. Are there any references, to back up this decision?     Just to mention, I can’t use Poisson regression because I work with averaged values of insects per sq.m, it is complications of using different sampling equipment.    Thanks


Following error while doing sudo apt-get update

I am getting the following error while doing   sudo apt-get update  Problem executing scripts APT::Update::Post-Invoke-Success 'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null; fi' E: Sub-process returned an error code   How to get rid of this? Thanks


Does anybody know a source when class rebalancing should be considered?  Say one has a very small dataset. About 70 observations. When would class rebalancing make sense?  When the 0/1 ratio is 70/30, 80/20, ...  For such small sample sizes, would e.g. bootstrapping even be appropriate?  Best


Is it possible to add the feature of "Share link to this question" in the Stack Exchange application for mobiles?

The Stack Exchange app is one of the best apps I have on my Iphone and I just love it. Sometimes, I wish to send a link to a question by email or sms but the app lacks the feature to share links. Is it possible to add it?


If $l^p=\{\langle x_k \rangle \in R^n | \sum_{k=1}^{\infty} |x_k|^p < \infty \}$ and $1\leq p<q$, then $l^p\subset l^q$. Prove.    I know that I have to show that if $x=\langle x_k \rangle\in l^p\rightarrow x\in l^q$ and I can use a fact that $l^p\subset c_0$, where $c_0=\{x=\langle x_k \rangle \in R^n | \displaystyle \lim_{k \to +\infty} x_k=0\}$.


Why doesn't the following work (Python 2.5.2)?  >>> import datetime >>> class D(datetime.date):         def __init__(self, year):             datetime.date.__init__(self, year, 1, 1) >>> D(2008) Traceback (most recent call last):   File "<stdin>", line 1, in <module> TypeError: function takes exactly 3 arguments (1 given)   I wanted to create a class that was just like datetime.date, but with a different __init__ function.  Apparently my function never gets called.  Instead the original datetime.date.__init__ is called and fails because that expects 3 arguments and I am passing in one.  What's going on here?  And is this a clue?  >>> datetime.date.__init__ <slot wrapper '__init__' of 'object' objects>   Thanks!


I have finished both branches at the end of the main game, and am considering starting a New Game+.  What carries over from the current game to the second playthrough?


How about an option to choose that your question is a duplicate even if it doesn’t have an answer?

A question closed as a duplicate normally displays a message stating that it already has an answer elsewhere.   Despite this, the message presented to the poster when someone suggests a duplicate does not reflect the possibility that the question could be a duplicate even if the original has no answer. You are presented with two choices:     That solved my problem!   Or:     No, my question is different. I will edit to explain how.      In cases where the same question has been asked but has no answer, neither choice is accurate. The question is not different, but the problem has not been solved.   Can this message be modified to allow us a choice where it is a duplicate even though the problem has not been solved?


What was the movie name with a parasitic creature?

Creature could be reproduced from a partial tissue It also attacked a dog to grow (it was either opening or closing of the movie) It also attacked a homeless person in a tunnel or something Then passed to multiple hosts, leaving old hosts in dead or vegetable states. Some kind of energy blaster was used to destroyed it but it was in todays earth The Creature was grosser than the Xenomorph alien but less capable The Creature was using living entities as living sources or energy sources or something and it was jumping to another host by a kiss(?) Maybe that wasn't a kiss but an exorcism-style projectile vomit? I really can't remember.  Something like a blend of 'The Thing' and 'Alien3'


I was learning Set Theory for fun and I came across something called the axiom of Choice,   What is the axiom of choice?


Installed Ubuntu UEFI on Windows 10 Legacy BIOS

I wanted to dual boot Ubuntu with Windows 10 Legacy BIOS but I followed the wrong video and created an EFI partition while installing ubuntu and the installation failed and now I'm not able to boot into any of the OS. This is my first question here. Sorry if I am missing any details. I've tried to keep it as precise as possible. Please help me.


What's a good SSH tunneling client for OS X?

I've been using SSH Tunnel manager to easily set up and stop port tunneling over SSH to various servers at my company. That saved me the pain of opening up a new terminal window which will hang out there just for the sake of having a tunnel open.  This worked great (well , sort of) but SSH Tunnel Manager is a PowerPC application. With Lion, it is not supported any more.  What is a good replacement?


I have purged python3.5 and its dependencies on Ubuntu 16.04, wanting to use 3.7 instead. Now, upon logging in, I have no access to anything, not even a terminal. How can I fix this?


How to get full path of a file from another directory in shell script?

I've a shell script at  /home/abc/xyz/test.sh   I've a file at  /home/def/ghi/jkl/lmn/foo.txt   I'm running the scrip from /home as I've set my PATH variable to point to /home/abc/xyz/  I'm passing the relative path of foo.txt to my script like so test ./def/ghi/jkl/lmn/foo.txt  I want to capture the full path of foo.txt into a variable in my script, any pointers?  Tried  and  but in vain.


In group $ GL(2,R) $ I have subgroup H, generated by 2 elements: $ a=\begin{pmatrix} 1 & 2 \\ 0 & 1\\ \end{pmatrix}     $ , $ b=\begin{pmatrix} 1 & 3 \\ 0 & 1\\ \end{pmatrix}     $   I have to find group of automorphisms $ Aut H $  So, I have found out that multiplication of this matrix always gives:  $ \begin{pmatrix} 1 & n \\ 0 & 1\\ \end{pmatrix}     $ $ \begin{pmatrix} 1 & m \\ 0 & 1\\ \end{pmatrix}     $ = $ \begin{pmatrix} 1 & n+m \\ 0 & 1\\ \end{pmatrix}     $   Order of matrix gives $ \begin{pmatrix} 1 & n*ord \\ 0 & 1\\ \end{pmatrix}     $   Am I right that subgroup H is infinite cyclic group? And the only one automorphims is $Z2$ ? I dont get this stuff about automorhisms, to be honest.