Prove without using graphing calculators that $f: \mathbb R\to \mathbb R,\,f(x)=x+\sin x$ is both one-to-one, onto (bijective) function.

Prove that the function $f:\mathbb R\to \mathbb R$ defined by $f(x)=x+\sin x$ for $x\in \mathbb R$ is a bijective function.    The codomain of the $f(x)=x+\sin x$ is $\mathbb R$ and the range is also $\mathbb R$. So this function is an onto function. But I am confused in proving this function is one-to-one. I know about its graph and I know that if a function passes the  horizontal line test (i.e horizontal lines should not cut the function at more than one point), then it is a one-to-one function. The graph of this function looks like the graph of $y=x$ with sinusoids going along the $y=x$ line. If I use  a graphing calculator at hand, then I can tell that it is a one-to-one function and $f(x)=\frac{x}{2}+\sin x$ or $\frac{x}{3}+\sin x$ functions are not, but in the examination I need to prove this function is one-to-one theoritically, without graphing calculators. I tried the method which we generally use to prove a function is one-to-one but no success. Let $f(x_1)=f(x_2)$ and we have to prove that $x_1=x_2$ in order fot the function  to be one-to-one. Let $x_1+\sin x_1=x_2+\sin x_2$ But I am stuck here and could not proceed further.


Were the clone troopers aware of the contents and meaning of Order 66?

Was Order 66 a trigger phrase causing the Clones to turn on the Jedi, that only sub-consciously worked because of the bio-chip, or were the Clones always aware of its existence and just followed their orders to kill the Jedi when it was given?   In other words, were they consciously aware of the contents of the Order 66 (that is, to kill the Jedi)?  If they knew what it was, did they think the Jedi had turned against the government and that's why they followed it?


I vectorised an image and all my polygons have extremely jagged edges.  What is the best way to smooth these polygons?


Modular arithmetic: division, fractions, solving linear congruences

I want to ask a question about modular arithmetic. I know, that modular multiplicative inverse exists only if modulo and integer are relatively prime. I want to know, are there any ways of division in modular arithmetic, if modulo and integer aren't relatively prime? I tried to find info about that, but failed.


Before I spend any "money" (poke-coins) on storage upgrades, I'd like to know how they work. I'm currently limited to 250 Pokemon and 350 items. Both capacity upgrades cost 200 poke coins.  How much does each upgrade increase my capacity? Is there only one upgrade, or can I continually upgrade my capacity for both Pokemon and items?


Needed some help with my Google Chrome, which randomly reverted to this pre-material design style. It happened a few weeks ago and have tried lots of methods to fix it but nothing worked. I also have adblocker installed, but somehow it still shows google ads etc.  It doesn't happen on Firefox.  I have tried reinstalling, changing chrome user, updated chrome to newest version, reinstalling adblock/different extensions, running incognito without extensions etc.  This image shows what it looks like now:  Google search on Chrome:    However, a normal google search should show something like this (it used to be like this):  Google search on Firefox:


Addon that implements edge/face groups similar to the vertex group feature?

I've found the vertex group feature very handy, but it only saves vertices, making it difficult to save edges or faces. Can somebody point me to an addon that lets me save edge/face selections?


In the past, I developed a Drupal site in my localhost. After that, I uploaded to production site. Everything was OK.  Recently, my HDD was died. So, I lost my Drupal site source code. I downloaded my production site on localhost.  I cannot log in. I think the problem is cookies.  How can I force Drupal to get my login by adding some code lines?


How can I change the Google Chrome webapp icon?

So I've got the AskUbuntu chatroom (I'm just using this as an example, I've got other webapps that I've got the same issue with) saved as a "Application Shortcut" in Chromium, and the icon is really (And I mean really) low resolution. Example:    The top one is the default icon that's used for the Application Shortcut, the bottom is the AskUbuntu lens - so my question is, how can I use the icon that's used for the AskUbuntu lens.


Solve the recurrence  $T(n) = 2T(n-1) + n$ where $T(1) = 1$ and $n\ge 2$.  The final answer is $2^{n+1}-n-2$  Can anyone arrive at the solution?


When I know the airline, the flight number, and the airport at each end, but am very flexible with dates, how can I find the cheapest flights?

In my case the airline will be Aeromexico, and it would be from Shanghai, China to Tijuana, Mexico, and the flight numbers are AM98 and AM99.  But the dates could be pretty much anywhere from August 2016 up to six or even more months later than that.  In my case I'd be spending up to a year mostly in China and nearby Asian countries and taking a side trip to Mexico for a couple of months at some time within that, based on when prices are as low as I can find.  But I'm looking for a general technique that anybody could use to find flights.  I've tried Adioso, Momondo, and SkyScanner but they're all very inflexible and incapable for this kind of thing, unless I'm missing something.


How to prevent Chrome from showing "🛈 Not secure" for my website in the URL bar?

I have uploaded my website in my IIS using static IP. whenever I access it from local or remote it was showing "not secure".   How do I resolve this issue?


Blender Emission Without Blowing Out Texture (Eevee)

So, I want to add emission to an object without blowing out the texture underneath it. Here's my material setup so far:   What would I add (and where) to make add the emission? Thank you!


Update locked when using terminal command sudo apt-get update

0% [Connecting to mirror.sov.uk.goscomb.net (2a01:348:0:36::aaaa)]   I keep getting this message in the terminal when attempting to update in Ubuntu 16.04. I've never had this problem before in ten years! I've tried reinstalling but it didn't help.


objective pronoun in front of V-ing from an SAT perspective

Barron's Grammar Workbook (which claims to be written for those wishing to take "the SAT, ACT, and more") says to use a possessive pronoun before a gerund, and gives the following example:  Her asking the question shows that she is alert.  Then it goes on to give two more examples, the second of which is said to contain not a gerund but a participle:  I hope you don't mind my intruding on your conversation.  I hope you don't mind me intruding on your conversation.  The first version conforms to the rule, and I bet the 2nd is fine in speech. But from a pedantic perspective (which the SAT and the GMAT presumably adhere to), is the second version correct? The present participle following a noun (phrase) functions like a relative clause, so what is grammatically being minded in the second version is not the action of intrusion, but the individual referred to by the pronoun "me."


I have a query which should return a single row, I have tested my query in SQL and it runs correctly and gives me a result, but in php it returns a blank array?  This is my php code below      $user = $userArray['user'] = $messageInfo['user'];     $message = $userArray['usersMessage'] = $messageInfo['message'];      $getUsersRank = "SELECT rank from users WHERE username = '.$user.'";      $getUsersRankQuery = $db->prepare($getUsersRank);      $getUsersRankQuery->execute();      $rank = $getUsersRankQuery->fetchAll();      print_r($rank);   $userArray is an array like this   (     [user] => kieronapple     [usersMessage] => hi )


I am looking for a hint on this problem:     Suppose $a,b\in\mathbb{N}$ such that $\gcd\{ab,p\}=1$ for a prime $p$. Show that if $a^p\equiv b^p \pmod p$, then we have: $$a^p \equiv b^p \pmod {p^2}.$$   I have noted that $a,b$ are necessarily coprime to $p$ already, and Fermat's little theorem ($x^p\equiv x \pmod p$), but I do not see how I should apply it in this case if at all.  Any hints are appreciated!


Chemical compound names in the "Reference"

I am using EasyThesis template to write my thesis. I use bibtex to look after my entries in "References" section. There is one entry in the reference like :  @Article{sakya1994lyotropic,   Title                    = {Lyotropic phase behaviour of n-octyl-1-O-$\beta$-{\footnotesize{D}}-glucopyranoside and its thio derivative n-octyl-1-S-$\beta$-{\footnotesize{D}}-glucopyranoside},   Author                   = {Sakya, P. and Seddon, J. M. and Templer, R. H.},   Journal                  = {Journal de Physique {II}},   Year                     = {1994},   Pages                    = {1311--1331},   Volume                   = {4} }   I expect the 'D' in the title should appear capital once finish compile, but I get 'd'.  I tried many ways to get the 'D' by removing the curly brackets {} but avail. Additionally, I need to use \footnotesize{D} because the D is smaller size.  Hope I get some help.


Someone gave me the following riddle and I am really not sure what the answer is.  I have two boxes in front of me. One box contains $x$ Dollar, the other box contains $2x$ Dollar. The rules are as follows: I am allowed to open one box. I can now either keep the money I found in this box, or give this money back and take the money from the second box without knowing how much money I find in there.  The question is now: What is the best strategy to get the most money?  My first intuition was that it makes no difference. I do not get any new information after I opened the first box. I didn't now before how much $x$ was and now I also do not know whether the amount of money $y$ I found is $y=x$ or $y=2x$. So on average I should always get the same amount, namely $1.5x$.  What got me thinking was the following: Let's say I find $y$ Dollar in Box 1. If I change to box 2, I either get $2y$ Dollar or $y/2$ Dollar. Both events can happen with probability $1/2$, so on average I get $5/4 y$ Dollar, if I switch. This result would suggest that switching is better, because without switching I always end up with $y$ Dollars!  At first, this problem looked similar to the Monty Hall problem. But in the Monty Hall problem I actually get new information after I picked the first door, because one "goat door" is opened. In the box problem, however, I do not learn anything new.  So, what is the best strategy?


Make a single page landscape in Google Documents

I have a really large table and I need to add it to a portrait document. Is there any way to make a single page landscape in Google Docs?   In Word you could add a "Section break" and do that. But I'm working on a document with my friend and I can't just use Word.


What is a primitive, a macro, and how do they compare?

The title pretty much says it all.  If it helps, I found myself asking this question when reading .


I have a "cool" polynomial that I want to prove is irreducible. Let $$P(X) = X^7 - X - 1 \in (\Bbb Z/7\Bbb Z)[X].$$  I wish to show that if one root of $P$ is in $\Bbb Z / 7 \Bbb Z$ then all roots of $P$ are in there.   I've made a few observations that I'd like (maybe) to develop but I'm not quite sure how I might do so! Here they are;  Suppose that $\alpha$ is a root of $P$ so that $P(\alpha) = 0$. Then $X-\alpha \mid P$. If we divide out by $X-\alpha$ we get  $$P(X) = (X-\alpha)(X^6 + \alpha X^5 + \alpha^2 X^4 + \alpha^3 X^3 + \alpha^4X^2 + \alpha^5 X + \alpha^6 - 1) = \ell(X)s(X).$$  Now suppose that $\beta \neq \alpha$ is another root of $P$. Then $\beta - \alpha \neq 0$ so $\beta$ must be such that $s(\beta) = 0$. If we evaluate $s$ at $\beta$ we get  $$s(\beta) = \beta^6 + \alpha\beta^5 + \alpha^2\beta^4 + \alpha^3\beta^3 + \alpha^4 \beta^2 + \alpha^5 \beta + \alpha^6 - 1.$$  If we define $\pi : \alpha \mapsto \beta$ then $\pi(s(\beta)) = s(\beta)$. In fact it seems if we apply $\pi$ to $P$ then we get $P(X) = (X-\beta)(X^6 + \beta X^5 + \beta^2X^4 + \beta^3X^3 + \beta^4X^2 +\beta^5X +\beta^6 - 1)$ and we know that $\alpha$ is a root of this sextic factor. Denote by $S(X)$ the division of $P$ by $X - \beta$. Then $X-\alpha \mid S(X)$ so that $P(X) = (X-\alpha)(X-\beta)F(X)$ where $F$ is some degree $5$ factor.  Can I use this method to systematically "drag" linear factors out of $P$ based on the assumption that $P$ has a root in $\Bbb Z/7 \Bbb Z$, and use this to prove that $P$ is irreducible?


How to prevent wifi login screen from overwriting tabs in a browser

I'm sure others have faced this frustrating issue in the past.   Say you have a dozen tabs open in a browser and you are at a hotel or cafe attempting to use their wifi. You select the wifi ID and all of a sudden, the wifi login screen populates all of your tabs, with no option to go back to the previous website. The content in those tabs has been lost, forever.   How does one prevent this from happening?


Why is ArcMap displaying jpgs and geoTIFFs differently than the raw file?

I have a world jpg file that I am trying to use as a background image in ArcGIS. When I look at the raw jpg through a random picture viewer, it looks like this:    However, when I load the image into ArcMap, the contrast and color appear to change completely:    I couldn't find any documentation online on what causes this or how to fix it. Is this simply an artifact of GIS, or is there a way to make the image appear the same as the raw image in ArcMap?  Edit - Oops, this is a duplicate, but I am leaving it up because it may help someone find the answer they are looking for if the keyword geoTIFF is used.


Arduino Negative Voltage Reading with Positive Ground

I am trying to measure voltage & current off a solar charge controller from panel, battery & load simultaneously with my arduino. I have managed to achieve this by tying all the negatives together and using it as GND, however, when I do that the charge controller doesn't function properly and when I switch to off-mode the loads still run. After checking the instruction manual further, I found out that the positives are shared common between Pan, Bat, Load. This was confirmed with a multimeter.   So now what I am thinking of doing is using the positive from the battery as the GND reference and then measuring all other voltages (through voltage dividers with respect to the GND). The voltages should then range between -17V to 0V.   However, I have read that the analog input pins are not able to read negative voltages, and with respect to the positive GND, the Analog inputs will all be negative.   EDIT: I was thinking of using an amplifier to invert positive ground to a negative ground, meaning I could measure all the positive sides of the voltages. But after getting answers from you guys it seems I may not have to use an amplifier and a voltage divider may suffice. I have currently included a 2 resistor voltage divider between each analog input, +5V source, Vmeasure which you can see in the diagram below.  According to my calculations, if this works, @-17V I should see 0.6V @ analog input. @0V I should see 4V at analog input.   I'd appreciate feedback on this circuit, and below in the second image I've also included a piece of another method suggested by @jonk (thanks), and would be interested in knowing what the benefits are of method B) over method A)  Thanks!  Ps. the ameters are there in place of ACS712 current sensors which also go into analog input pins.   Method A)        – Schematic created using   Method B (EDIT: This method has worked, I am still yet to test method A) thanks @Jonk))


I can find a continuous surjection from $\text{GL}(2,\mathbb R)$ to $\left\{\left(x,\frac 1x\right)\big|x\neq 0,x \in \mathbb R\right\}$,i.e. $\left(\det A,\frac{1}{\det A}\right)$. What about the existence of a continuous surjection to its complement in $\mathbb R^2$? My guess is that such a function will not exist but I cannot think of any conclusive argument.


How to fix Disk Utility, About This Mac, and Finder that disagree on hard drive space usage?

Has anyone seen this issue and know how to fix it?  Look at the free space reported by running "Get Info" on my hard drive (Macintosh HD) in the Finder, "About This Mac" from the Apple Menu, and Disk Utility.  Running on an early 2011 MacBook Pro OS X 10.7.3.    Disk Utility shows:    108.31 GB (108,311,060,480 Bytes) available 390.94 GB (390,937,042,944 Bytes) used.   Finder shows:    206.43 GB available 292,816,503,508 bytes used (292.82 GB on disk).   System Information shows:    108.44 of 499.25 GB free.


How is text converted to a number for RSA?

According to  the key length is the number of bits in n. So how can a message of many megabytes (millions of bits) be modded by a 1024 bit n? I never hear of a block mode for RSA, for instance.


I recently ordered the GTA V PC from Steam and when I finished installing and launch the game. It gave me "Grand Theft Auto V has exited unexpectedly". I tried "safe mod" and every option available, but none of them work. I checked some forums and found a lot of people having the same problems. What could be the possible cause? I'm using a laptop with these specs:  CPU: i7 4700m GPU: AMD HD8970M RAM: 8GB  I'm pretty sure my laptop is way beyond the minimum specs. Does someone know how can I enter the game?


What's the best way to distribute Java applications?

Java is one of my programming languages of choice.  I always run into the problem though of distributing my application to end-users.  Giving a user a JAR is not always as user friendly as I would like and using Java WebStart requires that I maintain a web server.  What's the best way to distribute a Java application?  What if the Java application needs to install artifacts to the user's computer?  Are there any good Java installation/packaging systems out there?


I'm trying to draw using my Wacom tablet but why does the corner of my drawing have an extra stroke?


What would happen if $p\rightarrow q$ were defiend to be false if $p$ is false?

As in the above link, "The truth table of $\rightarrow$ is defined to be that $p\rightarrow q$ is false if and only if $p$ is true and $q$ is false." So $p\rightarrow q$ is defiend to be also true if $p$ is false. Is there any reason for mathematicians to have agreed to define the truth table in the above way? Would it cause any problems when $p\rightarrow q$ were defiend to be false if $p$ is false?  For example,  any field is vacuously a UFD. If the truth table were defined the other way around, then would fields not have to be UFDs?


Batch scripting r.in.lidar in pyQGIS for LiDAR DEM output?

I need to use pyQGIS to write a script that will run the r.in.lidar GRASS 7 on a set of LAS files.   I am terrible at Python, but I need this for my task. I would like to process as a batch. How can I set up my script in the PyQGIS console? And how do I set input in the arguments?


Maximum number of mutually equidistant points (tetrahedron and extension to $\mathbb{R^n}$)

I have seen that the maximum number of equidistant point on $\mathbb{R^2}$ is 3 and that makes a equilateral triangle and that can be inscribed in a circle where vertex are on the circumference and centroid is at the centre of circle. now my question is that for: does it hold for $\mathbb{R^3}$ the maximum number of equidistant point is 4 and does it form a regular tetrahedron?and like $\mathbb{R^3}$ can it be inscribed in a sphere  where vertex is on the sphere and centroid is at origin?? And can this be generalized to any n dimension with n dimensional regular polyhedra?


I applied for standard visitor Visa with a sponsor from my fiance, but my Visa was refused with this reason below: You have applied for leave to enter to visit the UK for 21 days for tourism. You state that your partner is paying for all the costs in relation to your visit and I am satisfied that he is willing and able to do so. However, I must also assess your personal circumstances. You state that you are employed as a contact center team leader with PT VADS Indonesia earning 5000000.00 IDR (£256.68 ) per month. In support of your application, you have submitted your bank statement. I note that there are deposits in this account that correlate with your stated monthly income however I also note that there are other deposits that are unrelated to the amount you state you earn. For example, there is a deposit of 4,750,000IDR (£243.84) made on the 11 May and then another deposit of 6,185.766IDR (£317.55) made on the 20 May. The documents you have provided do not demonstrate the origin of these funds and therefore I am not satisfied that the funds in your account are genuinely available to you for your exclusive use or that they accurately reflect your financial position. I am not satisfied as to your intentions for visiting the UK, that you are a genuine visitor or that you will leave at the end of the period specified by you. I, therefore, refuse your application under paragraph 4.2 (a) and (c) of Appendix V of the United Kingdom Immigration Rules. I wanna reapply but I have a doubt to put my bank statement again and history of my bank account, besides that I actually work in shifting schedule, so every month I Will receive a different number of my salary, how I explain them? If I reapply what exact salary I have to put there? Can I put the basic salary only?


how the Kronecker product is a tensor product?

I have seen  but still don't understand how the Kronecker product is a tensor product. If  $T_1 : V_1 \to W_1$ and $T_2 :V_2 \to W_2$ are linear transformations their matrix representation with respect to  chosen bases are $[T_1]_{m \times n} $ and $[T_2]_{m' \times n'} $ and their K-product is a $(mm') \times (nn')$ matrix. On the other hand there is a natural isomorphism between $L (V_i, W_i)$ and $V_i^* \otimes W_i$ for $i=1,2$. Now let $\widetilde{T}_1$ and $\widetilde{T}_2$ be the corresponding tensors, $\widetilde{T}_1 \otimes \widetilde{T}_2$ is like a $(2,2)$ tensor which is a rank two tensor so is not a matrix.


Estimate values from a multivariatie normal distribution

I have a multivariate normal distribution with parameters mean = 0 and a variance-covariance matrix K which is n-by-n. I'd like to generate a vector of values (length n) that represent the expected values of this MVN. Any advice on how to do this?


Which service for storage and public hosting of image files

I have been searching this for hours and every services I found have limitations or cost that do not work for me.  My quest is simple. I have hundreds of thousands of image files (time lapse jpg images < 5 MB) which are organised in folders and subfolders.  I originally hosted them with HostGator. Unfortunately, they see them as storage only because no file was displayed on a web page for 2 months.  So HG is kicking me out.  I need to quickly find an alternative service which works like a web server so I can organise the files exactly the same way, upload them via FTP or PHP script, and rsync from HG to move all the first (initially) AND be able to display the image file in a normal image tag in a web page.  My local ISP in RSA is too expensive and also limit the hosting space to very little. You know the story for HostGator. SmugMug has unlimited storage but only allows upload via their web pages or LightRoom. Would cloud storage be a good option?  Can someone recommend a good and affordable service for this?


"Execution Timeout Expired" for some popular queries on data.stackexchange.com

Some popular queries,  are returning:     Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.   Is it a temporary issue? Do I need to run the query at the certain time of the day with lower server load? If yes, what time? Or is it the kind of queries that will never work again, due to the growing amount of data to process?    [edit] For the specific one above, I've managed to rewrite it from scratch like that:


I hold an Egyptian passport and am traveling from Cairo to London via Turkish Airlines. I will have a long layover more than 12 hours. Do I need a transit visa? or shall I enter Turkey getting a transit visa on arrival at the airport. I have a valid visa to England


Windows boot missing in Windows 10 / Ubuntu 20.04 dual boot

I originally used Windows 10 on my laptop, and I installed Ubuntu MATE 20.04 last week.  When I try to boot Windows 10 in grub it is not an option, I tried doing  Boot-Repair and some simple googling and troubleshooting, which failed to solve the issue. Also Windows 10 data is still in the original place.  Boot-Repair   ======================== Unknown MBRs/Boot Sectors/etc =========================  /dev/nvme0n1p1: unknown GPT attributes 8000000000000000  /dev/nvme0n1p2: unknown GPT attributes 8000000000000000  /dev/nvme0n1p4: unknown GPT attributes 8000000000000001


In many codes I see that there is the symbol @ appearing (e.g. it often appears in counters). My simple question is: does @ has a special meaning or it is just a character as others?


I need to type Backus-Naur form in LaTeX document. I found several packages on CTAN:    seems to not work with TeXLive 2009  does not align the declaration, etc. There is a module for ConTeXt,    Is there a package for modern LaTeX, or should I just use hand-formatting via verbatim?


How to print `n` arguments in a command?

This is what I want to do:  \newcommand{\foobar}[n]{%   \hspace*{1.5ex}-\hspace{1ex}\emph{#n}\\% }   And then use it like this:  \foobar   {Hello}   {World}   However this doesnt actually work. I want   \hspace*{1.5ex}-\hspace{1ex}\emph{#n}\\%   To appear for as many arguments as I supply to \foobar. How do I do this?  NOTE  To clarify, what I want finally is this:  - Hello - World - N number of other arguments


I know that some tricks, like using adjustbox, would restrict a table to the page length vertically. However, is there a similar approach to apply such a vertical length restriction?


Duplicate explanation should encourage improvement of original

The new closed-as-duplicate banner says:     This question has been asked before and already has an answer. If those answers do not fully address your question, please .   I think it should instead say     This question has been asked before and already has an answer. If answers there do not fully address your question, please  or  to the pre-existing one.   — to discourage re-re-asking the same question. (I also changed "those answers", which has no plural , to "answers there", which doesn't need one.)    As of September 19, 2013, the original text quoted above has returned here.


how to install ubuntu in pen drive and use it in any computer. LiveUSB doesnt save my changes and delete files, i dont want that. I want to install as if it was installed in my internal drive


Is being a poor writer a serious impediment as a researcher? I mean if you're particularly bad at writing reports and always get bad feedback as a student for your reports, does that mean my research career would never take off? The question asks whether researchers working in teams are all required to contribute to composing the reports or can you get away with it if you compensate with other skills?


Create empty texture and modify pixel contents from Python

I have data in a numpy array that includes coordinates and colors, from a RGB point cloud. I have managed to create a grid which fairly accurately captures the geometry of my data, but I am having trouble creating a matching texture to apply the colors to the object. Ideally I would like to create an empty image texture and then set the individual pixel values.  I've checked the API documentation and google and haven't found much.  I'm aware of the ply import extension for blender, but I don't have my point cloud data in that format.  If I have to do any UV mapping to make this work, I'm happy to do that manually for now.  So, how can I create a texture (with given dimensions) with python in blender, and set the pixel values?


During installing wine this dialog appeared    I have no idea, how to confirm this dialog? Neither enter nor any other key, ctrl+C or clicking OK with the mouse seems to work. I just want to continue installation. How?


I am having a problem across multiple PCs where I cannot upload images on Stack Overflow any more. I few weeks ago I went to upload an image, but it was to big. Now when I ever go to upload a new one the old image is still uploading, and I cannot cancel it.  This is affecting me across all the stack sites. How can I clear the old upload? I have tried this on my home PC, work PC and work laptop on Chrome and Internet Explorer. The Image wasn't huge, but it was over the limit. Surely, once I couldn't upload, it should have cleared the upload.  Any advice on what I can do?  This is the screen it gets stuck on:        Cancel does nothing. Even when I drop a link into it clicking Upload does nothing.


Is it true that if $\int_{1}^\infty f(x)dx$ converges, then $\lim_{x\to\infty}f(x)=0$?

Please help me decide if the following statement is true or false:     If $\int_{1}^\infty f(x)dx$ converges then $\lim_{x\to\infty}f(x)=0$   I tried many counter examples with no luck so I tried to prove it but couldn't pull it off either...


Windows 10 language bar hot keys are reseted to (none) after locking

I have 3 different keyboard layouts set up on my laptop and use Ctrl+Shift+[1-3] key combination to switch between them.  Like that:    However, after locking and unlocking Windows (with a password), these hotkeys don't work anymore and key sequence is rolled back to (None):    Signing out from Windows or rebooting the laptop sets everything back to normal, until lock/unlock again.  I think this behaviour is related to the usage of the same hotkeys in File Explorer - to switch view (Extra large icons/Large icons/Medium icons accordingly). After the lock/unlock switch view starts working again.  Seems like File Explorer overrides language bar hotkeys after the unlocking.  How can I disable this functionality? Completely disabling Ctrl+Shift+number functionality in File Explorer will do, however I can't find anywhere on the internet how to do it.  Any ideas or help appreciated!


Adjust column width in Quick Edit or Datasheet View

I am trying to find a way adjust the column widths/wrap text in the Quick Edit/Datasheet view in SharePoint 2013.  So far, I have only seen ways to adjust the widths in the standard view (using CSS), but these seem to not get applied to the Quick Edit or Datasheet view.


Can it happen that the image of a functor is not a category?

On Hilton and Stammbach's homological algebra book, end of chap. 2, they wrote in general $F(\mathfrak{C})$ is not a category at all in general. But I don't quite get it. I checked the axioms of a category for the image, and I think they are all satisfied. Am I missing something? Thanks.


Free VPN soft/service to connect two computers over internet behind NAT

I have two computers (home and work) that I want connect to VPN. Both computers are behind NAT. I have no access to network configuration so configuring VPN server on router is not possible. Is there free service or software that know's how to do that? I use Windows at work and Mac at home.  I know that Hamachi could do that but its quite expensive.  Thank you for your help.


Let $S/R$ be a ring extension and $\beta \in S^*$. Show that for all $\alpha \in R[\beta]\cap R[\beta^{-1}]$ is integral over R.

I don't really know where to start, I've written $\alpha$ as a polynomial evaluated in $\beta$ and in $\beta^{-1}$ but there doesn't seem to be much information there.


I have a problem with alignment in a multicolum, here's the code  \begin{table}[H] \caption{Statistic values of dementia epidemiology over the world.} \begin{tabular}{ccrccc} \hline \multirow{2}{*}{Region} & \multicolumn{3}{c}{ Number of people with dementia (millions)} & \multicolumn{2}{c}{ Proportionate increases (\%)} \\ \multicolumn{1}{l}{}    & 2010               & 2030               & 2050                 & 2010-2030               & 2010-2050               \\ \hline Asia                    & 15,94              & 33,04              & 60,92                & 107                     & 282                     \\ Europe                  & 9,95               & 13,95              & 18,65                & 40                      & 87                      \\ The Americas            & 7,82               & 14,78              & 27,08                & 89                      & 246                     \\ Africa                  & 1,86               & 3,92               & 8,74                 & 111                     & 370                     \\ \hline World                   & 35,56              & 65,69              & 115,38               & 85                      & 225                     \\ \hline \end{tabular} \label{tab:stats} \end{table}   But the result in the second to forth colum is strange,


I have four shapes that make up a circle. I've grouped them and I'm trying to rotate them together. But instead of rotating all object together as a circle, all four objects rotate individually around the individual object centres.   How can I rotate all four objects around the group's centre?


how to change Authorize attribute's parameter at runtime

Is there any way to change parameters of attribute at run time? I have a service in which I am assigning roles who can access the service. I want to assign these roles at run time.    [HttpGet]    [Authorize(Roles="admin")]     public DataTable GetAllProducts()     {         FormToken auth = new FormToken();         DataTable dt = new DataTable();         if (!auth.isAuthenticated())         {             dt.Columns.Add("Error");             DataRow dr = dt.NewRow();             dr["Error"] = "Login to get the Service";             dt.Rows.Add(dr);             return dt;         }         var rec = from log in db.Products select log;         return rec.ToDataTable();


stuck on 'loading' Tumblr in my app store

I tried to download Tumblr and it got stuck on the 'loading' part in the app store and I've tried everything I can think blr


Part of display not working, changing display region for macbook pro

Recently, something went wrong with my Macbook Pro 13" 2019 model's display. About 1.5 inches (in length) of my display went completely black and there are some vertical lines on the edges of this black portion. It appears to be a hardware issue.  I was wondering if I can do something so that my entire screen appears in only the part to the right of this black portion, until I can find the time to give my laptop for repair. I know I can just rescale my window each time, but I don't want to keep doing that every time I open a new window. Can I use software to remap the entire display area to a smaller section of a physical display?


Firefox not launching after fresh install

I just did a fresh install from a USB of Ubuntu 14.10, and Firefox was working perfecting find until I executed:  sudo apt-get update && sudo apt-get dist-upgrade   And then restarted.  Now I am unable to launch Firefox (and the only way I managed to get any internet at all was to download the .deb file for another browser on another machine, and then transfer it to my machine using a USB stick), I have tried reinstalling it, but it still refuses to run.  When running it through Terminal using:  firefox   I get this output (<username> replaced with my username):  (process:2192): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed Could not create gnome accelerators directory `/home/<username>/.gnome2/accels': Permission denied   So what is wrong and how do I fix this (it was also working perfectly fine before I did a fresh install - I was previously running Ubuntu 14.10, but had some problems so had to wipe the disk and install it again)?  OS Information:  Description:    Ubuntu 14.10 Release:    14.10   Package Information:  firefox:   Installed: 36.0+build2-0ubuntu0.14.10.4   Candidate: 36.0+build2-0ubuntu0.14.10.4   Version table:  *** 36.0+build2-0ubuntu0.14.10.4 0         500 http://gb.archive.ubuntu.com/ubuntu/ utopic-updates/main amd64 Packages         500 http://security.ubuntu.com/ubuntu/ utopic-security/main amd64 Packages         100 /var/lib/dpkg/status      33.0+build2-0ubuntu0.14.10.1 0         500 http://gb.archive.ubuntu.com/ubuntu/ utopic/main amd64 Packages


I'm trying to trim a video from a given initial point in time and a duration. However, after researching, it seems that ffmpeg's seek accuracy is not sufficient most of the times, unless the video stream is re-encoded.  Is there an efficient way to seek accurately without re-encoding, on most files? It seems odd since Windows Media Player succeeds in this task most of the time.  What are they implementing differently? Edit: For example, given sample.mp4 5 seconds long:  Working (with transcoding)  ffmpeg -ss 00:00:03 -t 1 -i sample.mp4 -c:v libx264 -movflags +faststart -c:a aac -strict -2 -b:a 192k out.mp4   Not working (without transcoding) - Will produce a video from the start of the file.  ffmpeg -ss 00:00:03 -t 1 -i sample.mp4 -c:v copy -c:a copy out.mp4    ffmpeg version used: 2.8.4


What is the meaning of multiply operator '*' in python when used before tuple

i was reading a Deep-Learning paper and their github repo and i was having trouble understanding how multiply operator works in two lines of their codes.   alpha_size = tuple((len(x), *(1,)*(x.dim()-1)))   I guess the second one means multiply but what does the first one do as it is ahead of a tuple.  alpha = alpha_t(*alpha_size).uniform_()   same thing happens here as well. They used a multiply operator before a tuple. Can anyone explain? This is new to me. Thank you.


Windows 10 default Start Menu looks like this:    Without using third party application Classic Shell, please let me know, how to change it in Windows 7 Style Menu?  Regards  InTech


My current directory is ~/Dropbox/RECENT and I want to copy a file input.txt from my current directory to ~/Dropbox/RECENT/SORT without deleting the original. And I want to copy input.txt with another name in my current directory.


What can I possible do, when travelling using airports and carrying films in my hand baggage. I am going to Berlin and I want to carry 2 films one Portra 160ASA and one Kodak TMAX 400ASA. What could I possible do during checking my hand baggage? Does x-ray harm films under 800ASA? Is there a difference between coloful and black and white film? Is there any difference between exposed and unexposed film? I am going to travel from Brussels to Berlin and vice versa.


How can I parse a time string containing milliseconds in it with python?

I am able to parse strings containing date/time with time.strptime  >>> import time >>> time.strptime('30/03/09 16:31:32', '%d/%m/%y %H:%M:%S') (2009, 3, 30, 16, 31, 32, 0, 89, -1)   How can I parse a time string that contains milliseconds?  >>> time.strptime('30/03/09 16:31:32.123', '%d/%m/%y %H:%M:%S') Traceback (most recent call last):   File "<stdin>", line 1, in <module>   File "/usr/lib/python2.5/_strptime.py", line 333, in strptime     data_string[found.end():]) ValueError: unconverted data remains: .123


Fast way to find period-n points of a tent map?

I need to find a period-3 orbit for a tent map defined by $$T(x)=\begin{cases}2x & 0\le x\le0.5 \\[2ex] 2-2x &0.5 < x \le 1 \end{cases}$$  So, what is a fast and efficient way of finding it? I only know how to do it by guessing-and-checking. For example, I picked a random point, $x = \frac{2}{7}$ and found that $$T\left(\frac{2}{7}\right)=\frac{4}{7}\\[4ex]T\left(\frac{4}{7}\right)=\frac{6}{7}\\[4ex]T\left(\frac{6}{7}\right)=\frac{2}{7}$$ which is a period-3 orbit. Is there any better way of finding a period-3 orbit , more specifically, a period-3 point?


Custom related list button is not working in partner portal

I have created custom button called "New Employee" on employee object and it is related with both account and contact objects via lookup relation. If i click on "New Employee" button on employee related list under Account detail page, working fine in both salesforce classic and lightning experience but not in partner portal.  /a03/e?CF00N342300009cAB8={!Account.Name}&CF00N342300009cAB8_lkid={!Account.Id}&CF00N90000009cUVB={!Contact.Name}&CF00N90000009cUVB_lkid={!Contact.Id}&retURL={!Account.Id}   Any help on this.


How can I view message timestamps in iOS 11?

I have the newest version of iOS 11 on an iPhone SE. I am having no luck figuring our what time text messages were sent or received. Is there any way to do this?


When I do this  :s/,/,\n/g   I get all sorts of control characters (rendered as ^@ in cyan in the editor) where I expected line breaks.  What is going on?  And how can I get vim to insert "\n" without problems?


Installing ubuntu on a specific partition

I wanted to switch from Win7 to Ubuntu. I have two partitions, C where my system is, and D where I keep personal files and other stuff I need (It would be really a disaster if something happened to them). My question is how to install Ubuntu on my C partition and format it of course?


Dual citizen, visa refused, eligible for ESTA?

A family member of mine is a dual citizen with an EU (VWP) and a non-VWP passport. He applied for a US tourist visa on the non-EU passport and was rejected.   My question is if this rejection would have any effect if he wants to apply for an ESTA on the other passport that is under the VWP.


Should not checked checkboxes bring all results?

Considering I have a filter dialog composed by checkboxes    I have a "select all" checkbox above the other checkboxes.  When te user comes to the results page, it sees all the results, besides of filters.   My two questions are:   Should the user really see all the results? Or a prefiltered query? If it really should see all the results, should be the checkboxes all checked or not checked, even when the results are not filtered? I'm concerned about the confusion of the user when it gets all the results but no checkbox checked.


Package software-properties-common is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source  E: Package 'software-properties-common' has no installation candidate   System: Ubuntu 16.04


I've a very specific question about fork system call. I've this piece of code:  int main (void)  {     for (int i = 0; i < 10; i++) {         pid_t pid = fork ();          if ( !pid ) {             printf("CHILD | PID: %d, PPID: %d\n", getpid(), getppid());             _exit(i + 1);         }      }      for (int i = 0; i < 10; i++) {         int status;         waitpid(-1, &status, 0);          if (WIFEXITED(status)) {             printf("IM %d AND CHILD WITH EXIT CODE %d TERMINATED\n",                     getpid(), WEXITSTATUS(status));          }          else {             printf("ERROR: CHILD NOT EXITED\n");         }     }      return 0; }   which produces this output:  CHILD | PID: 3565, PPID: 3564 CHILD | PID: 3566, PPID: 3564 IM 3564 AND CHILD WITH EXIT CODE 1 TERMINATED IM 3564 AND CHILD WITH EXIT CODE 2 TERMINATED CHILD | PID: 3573, PPID: 3564 CHILD | PID: 3567, PPID: 3564 IM 3564 AND CHILD WITH EXIT CODE 9 TERMINATED IM 3564 AND CHILD WITH EXIT CODE 3 TERMINATED CHILD | PID: 3568, PPID: 3564 IM 3564 AND CHILD WITH EXIT CODE 4 TERMINATED CHILD | PID: 3569, PPID: 3564 IM 3564 AND CHILD WITH EXIT CODE 5 TERMINATED CHILD | PID: 3570, PPID: 3564 IM 3564 AND CHILD WITH EXIT CODE 6 TERMINATED CHILD | PID: 3571, PPID: 3564 IM 3564 AND CHILD WITH EXIT CODE 7 TERMINATED CHILD | PID: 3572, PPID: 3564 IM 3564 AND CHILD WITH EXIT CODE 8 TERMINATED CHILD | PID: 3574, PPID: 3564 IM 3564 AND CHILD WITH EXIT CODE 10 TERMINATED   which makes me wonder how fork really works and what code new processes really execute. Looking at the above output results, I can not understand:   How does second for cycle prints before first for finish all iterations? I've also noticed this second for is always executed by parent process, which makes me wonder if while on first for cycle, if pid != 0 (which means parent process calling) second for cycle is executed (?) Why does CHILD processes are not sorted printed by PID?   So, bottom line, how does fork really works and who executes what?


Adding 1 to a small double returns 1 using Math.Net.Numerical

When I add a small double to 1 the result is 1:  tmpResult[q] = 7.8879654121609884E-88    tmpResult[q] = tmpResult[q] + 1.0;   tmpResult[q] = 1  I know that double is 18 precision only, but I am using Math.Net.Numerical. And it can work only with double (int optional).  What is the problem?


Weird behavior when charging iPhone on MacBook

When I connect my iPhone to my MacBook to charge it, a sound is played on the iPhone, the green battery symbol appears instead of the clock, the small battery symbol the upper right corner turns green and a flash symbol appears next to it. Then it goes back to normal: the small battery turns white, the flash disappears and the the big battery symbol vanishes in favor of the clock.  And then it starts over. The charging sound is played about once per second. Charging, not charging, charging, not charging...  After a while it settles, but this can take a long time. Even when it started charging quietly, it might fall back into the pattern described. When the lid of the MacBook is closed, it isn't as bad. Connecting the MacBook to power doesn't make a difference.   This does not happen, when I charge the iPhone with a wall plug or a battery pack. Only when I connect it to my MacBook. The USB ports are fine I think, I don't have any issues with other peripherals.  Its an iPhone 6s with iOS 12.1.2 and a MacBook Air 2014 with Mojave. I also have an Android phone which charges slowly, but steadily on my MacBook.  I suspect the MacBook or MacOS to be at fault here. It seems like the charging protocol can't agree on something and they try again and again and again...  I would like my iPhone to play the charging sound once when I connect it to my MacBook and then charge quietly.  Sometimes my MacBook wants to install a software update when I connect the iPhone, but it always fails to do so.


How to check a string in php for an email address, or something that looks like it?

What I would like to achieve, is to write a protection against people entering an email address in a string. It is important to not only detect valid addresses, but to also built a protection against entries like the following:  my email @ domain dot com myemail at domain.com myemail_at_domain_com myemailatdomaindotcom   etc.  However, things like "@hello" should still be possible or "com-pany".  I'm thinking there should be a list of regular expressions to check against, covering the most known ways of writing an email address (or something that people will understand to be an email address).  This challenge must have been solved a thousand times... :) Isn't there a lib of expressions to check against?


What is the right first step to take when integrating $1/(2+ \sin x + \cos x)$?

I want a hint on this following integral. I don't know the first step, do I do $u$-sub. or do I use trig. sub or something?  $$\int \frac{1}{2+ \sin x + \cos x} ~\mathrm{d}x$$


Calculate the Probability of Combinations

I am trying to solve this coding problem with no luck. The problem is like this: I need to create a function that receives two arguments.  The first is a list that consists n number of string values. The second argument is the amount of values I want in the returned list. My challenge is to create a new list of lists with the maximum amount of combinations possible with k strings in each list. I think using an example will best explain this: symbols = ['stop', 'bomb', 'moon'] def create_deck(symbols, k):  create_deck(symbols,2)  I expect the function to return: [['stop', 'bomb'], ['stop', 'moon'], ['moon', 'bomb']]  which is the maximum amount of combinations while k=2. Meaning two words per list. I dont have any code to present because the furthest I got is a mathematical equation that represents the solution: nCr = n! / r! * (n - r)!  but no code.


For which numbers $l \leq |K|$ field $K$ has subfield, which has $l$ elements?

char$(K) = p$, $|K|= p^n$, $|K^{\times}| = p^n-1.$  We know that $K^{\times}$ is cyclic group. Let $H$ be a cyclic subgroup of $K^{\times}$. Subgroup of cyclic group is also cyclic, so $H$ is cyclic and $|H|\mid|K^{\times}|$.  Let $|H| = r,\ r\mid p^n-1, \ p^n-1 = r q,\,\, q \in \mathbb{Z}$.  Each element in $H$ has inverse element (from definition on cyclic group). I just add $0$ and we have subfield. So, $l = r + 1$, where $r \mid p^n-1$.  How to show that $r = p^k - 1$ for $k \leq n$?


Starting out: how much should I charge for a photoshoot?

I'm in the midst of creating my own small photography business. I've done photoshoots for friends and family, free of charge because I was getting practice. I don't want to overcharge but I don't want to miss out on money. I have backdrops and a few props. How much should I charge for a photoshoot?


how to find angle between two points in QGIS?

I want to find angle between two points(LatLong) in QGIS. For example   Point A = 80.2065,13.0876 Point B = 80.2064,13.0874  My CRS is WGS84 EPSG : 4326.  I am trying to provide driving direction this requires angle between points.


Book where a family has an illegal farm in their basement

I don't remember too much about it, but here's what I do remember:   lack of oxygen in the atmosphere family has an illegal plant farm in the basement/hidden room, I think behind the fridge? one or two main characters, and there's a puzzle to get past a door, they use mercury to open a lock I think the police or a CIA-type agency follows them there but they are disintegrated the main characters get loaded on a plane or something similar, with a bunch of other people as well, all chosen to leave   It was likely a Young Adult book.


Why does ice become sticky the colder it gets?

I noticed that ice becomes stickier the colder it gets. I am reminded of the fool who stuck his tongue to a cold galvanized steel pole and got stuck to it. I am guessing that the pole was so cold that the moisture on his tongue instantly became ice. Why does ice have this property?


Private property / public getter - javascript

How do i make sku private but allow the getter access to it:  var Product = function (sku) {     this.sku = sku; };  Product.prototype.getSku = function() {     return this.sku; }  module.exports = {Product: Product};


I recently downloaded 'Blood Bowl' on Steam to my Mac, not realizing that it was not Mac-compatible. Is there any software or any way that will allow me to play it, as obviously I've already paid for it? Cheers.


Greetings guardians of the unicorns,  I noticed that markdown links don't render as expected in the room info.  It's only a small thing but thought I would bring it to your attention.  UPDATE  In response to comments: Raw URLs do link; however, the [description](url) syntax doesn't work


Question regarding a TV movie from the 80s with a ship crewed entirely by children.  These children were geniuses who were specifically chosen because it was the only way a crew could make it all the way to the destination and back again.  They were shepherding a bunch of scientists, etc., who were in suspended animation.


"He walks as if he is drunk." Grammatically correct ? Any difference in meaning from "...as if he were drunk."?

Is it grammatically correct to use an indicative verb after "as if", or "as though" for that matter?        I've heard someone say: "He walks as if he is drunk."  Would there have been any difference if he had said "He walks as if he were drunk."?   A second example might be:        It looks as if it is going to rain.   It looks as if it were going to rain.


Rigify automatically link UI text file in 2.8

Rigify rigs rely on their rig_ui.py file to generate the addon's interface. If you link a character collection into a new file and proxy the rig, the UI does not generate because the rig_ui.py file is not linked. You need to append that text file as well. In 2.79, you didn't need to do this. There was a setup using the Logic Controller that somehow made it so when you linked a group with a rigify rig, it also brought in the ui script. I don't know the details of how it worked, but it was part of the standard rigify setup, not something you needed to make yourself. This no longer works in 2.8 because the Logic Controller has been removed (it was part of the old Game Engine that has been removed.) So, is there any way in 2.8 to get the same behavior again?


What order should Asimov's Foundation series be read in?

I believe that Asimov himself recommended reading them in chronological order, however I read them in the order that they were published and think that this is the best way to do it.  What is the correct order?


Do we have negative prime numbers?   $..., -7, -5, -3, -2, ...$


What is the best course on materials and texturing?

What is the best texturing / materials course you've ever seen? (photo realistic, not stylized and of course using nodes, not actual photoscanned textures). I've seen a few but I feel like I'm still missing a good approach when trying to recreate a material from a photo reference. Paid / not paid - doesn't matter as long as the author is able to get actually photoreal results.


Short story where a man owns creatures that build statues of him

I am trying to recall the name of a story I read when I was fairly young (maybe 20 years ago, but not sure how old the story is).    What I remember: A man acquires a set of creatures that he keeps in his house, I think in an aquarium.  They evolve over time, quickly, and think of him as their benevolent god. They build statues in his likeness.   Then, I believe some sort of accident happens, and the statues they build become a little less benevolent, which bothers him.  This pattern continues on with his cruelty increasing and their depiction of him becoming more cruel.


Can the stress of wish prevent using wishes from other sources?

The stress of casting wish for creative effects has a 1/3 chance of preventing the caster from ever casting wish again.  (There are plenty of cites all over RPG Exchange.)  Does this preclude using wishes from sources that do not involve the PC casting wish?    Related:  — This question addresses an item that enables the PC "to cast the wish spell from it".     — This question's second bullet point is similar to my question, but is phrased as being able to use items' properties that enable a PC to cast wish.   — This discusses whether an efreeti granting a wish suffers wish stress.  This approaches my question:  Can a PC that cannot cast wish due to the stress have their wish fulfilled by an efreeti or similar?  (This question arose from a dream I had last night:  Dream-me took a ring that I had collected during my adventuring days.  This was not a Ring of Three Wishes, rather a ring like the lamp in "Aladdin's Wonderful Lamp" from Arabian Nights: The host vessel for a djinni that could grant wishes without numerical limit.  I was negotiating with the djinni on the phrasing of a wish that would cancel the contagious aspect of SARS-CoV-2; the djinni told me that if I wished for that, I would never be able to use a wish ever again.  I was willing to pay that price; wouldn't you?)


How would you define non-integer tetration?

Tetration is defined for all $n\in \Bbb{N}$ by  $$ {^1}a = a \\ {^{n+1}}a = a^{\left({^n}a\right)} $$ Thus ${^3}a$ means $a^{a^a}$.  Here $a$ could be any real (or indeed even complex) value, but only integer $n$ in the tetration is defined by this definition.  But I've seen questions here dealing with real valued tetration (${^x}a$ for real $x$) and even one dealing with complex tetration (${^z}a$ for complex $z$).  let's take one step at a time:  How does one define tetration with a rational hyperpower $${^q}a : q \in \Bbb{Q}$$ (From there, the move to real tetration is the same sort of "easy" as defining real exponentiation.)  And what does ${^z}a$ mean for complex $z$?


Although this seems like a simple task, the sed call is not substituting the value that I send for IP. Instead, it is replacing localhost with "${IP}".  substitute() {     export IP=$1     echo $IP     LC_ALL=C find . -type f -name '*.txt' -exec sed -i.bak 's/localhost/"${IP}"/g' {} \; }  substitute 10.20.30.40   How do I achieve my purpose of substituting with a value send from an argument?


Search and replace registry entry value using powershell

I'm trying to update a set of registry keys, a set of properties need to be updated with a new value based on the old value.  I tried using the following:   Get-ItemProperty -Path HKCU:\Software\xxxxx\*.mydomain.com Uri        | set-itemproperty -Path { $_.PSPath } Uri -Value { $_.Value -Replace ".mydomain.com/", ".mynewdomain.com/" }   But that sets the value of the uri property to: { $_.Value -Replace ".mydomain.com/", ".mynewdomain.com/" }  I tried:   Get-ItemProperty -Path HKCU:\Software\xxxxx\*.mydomain.com Uri        | set-itemproperty -Path { $_.PSPath } Uri -Value ${ $_.Value -Replace ".mydomain.com/", ".mynewdomain.com/" }   And   Get-ItemProperty -Path HKCU:\Software\xxxxx\*.mydomain.com Uri        | set-itemproperty -Path { $_.PSPath } Uri -Value ( $_.Value -Replace ".mydomain.com/", ".mynewdomain.com/" )   But that clears the value.  I want to update multiple registry values in multiple keys with as few lines as possible. I already got it working by exporting the registry, use notepad to search and replace and then re-import the registry entries, but that felt like cheating. I really want to know how I can achieve this using Powershell.  Other things I've tried: $(...), (...), omitting the -Value option you name it :S.  I tried replacing $_.Value with $_.Uri and $_, didn't work either.


Embedding assemblies inside another assembly

If you create a class library that uses things from other assemblies, is it possible to embed those other assemblies inside the class library as some kind of resource?  I.e. instead of having MyAssembly.dll, SomeAssembly1.dll and SomeAssembly2.dll sitting on the file system, those other two files get bundled in to MyAssembly.dll and are usable in its code.    I'm also a little confused about why .NET assemblies are .dll files. Didn't this format exist before .NET? Are all .NET assemblies DLLs, but not all DLLs are .NET assemblies? Why do they use the same file format and/or file extension?


Why can't I find skypeforlinux in some apt-cache search?

I have seen that in some countries Skype for Linux is not available. They get redirected to old Skype or they get a message that they don't have access.  When I try to search it using:  apt-cache search skype   It doesn't return skypeforlinux, but it returns skype (the older version). When I search on my pc, it shows skypeforlinux and not skype. These two versions are not compatible for calling each other. So, I want to know how can I install Skype for Linux on my friend's computer who is in another country?  I sent the deb file for new skype but when he launches the skypeforlinux, it doesn't work.


Proof of Greatest Common Divisor (gcd) definition

Let $a$ and $b$ be integers, not both zero. Prove that for a positive integer $d$, $d=gcd(a, b)$ If and only if  1) $d$ divides $a$ ($d\vert a$) and $d$ divides $b$ ($d\vert b$) 2) whenever $c$ divides $a$ and $c$ divides $b$, then $c$ divides $d$ ..   How to deduce this theorem? I'm new to this stuff. Can somebody give a proper direction within this mathematics field?


Why does one sometimes get what appears to be arbitrary spacing with the subcaption package?

I have a very simple MWE which demonstrates the problem:  \documentclass{book} \usepackage{graphicx} \usepackage{subcaption}  \begin{document} \begin{figure} \centering \begin{subfigure}[b]{0.20\linewidth} \includegraphics[width=\linewidth]{example-image-a} \caption{}\label{fig:1a} \end{subfigure}% \begin{subfigure}[b]{0.20\linewidth} \includegraphics[width=\linewidth]{example-image-b} \caption{}\label{fig:1b} \end{subfigure} \begin{subfigure}[b]{0.20\linewidth} \includegraphics[width=\linewidth]{example-image-c} \caption{}\label{fig:1b} \end{subfigure} \begin{subfigure}[b]{0.20\linewidth} \includegraphics[width=\linewidth]{example-image-a} \caption{}\label{fig:1b} \end{subfigure} \caption{A figure}\label{fig:1} \end{figure} \end{document}   Which outputs:    Why is there no spacing between A and B, but there is between B,C and A?


Need unique value of a column while combining two tables

I'm getting two columns from two different tables using sql server 2005.. For that I used the following query..  SELECT [MHD].JobPostingId,        [C].CandidateName    FROM         Candidate as C RIGHT JOIN MemberHiringDetails MHD                        ON [MHD].MemberId=[C].Id   It returns the following data:  JobPostingId  CandidateName 60            aaa 60            bbb 63            aaa   NULL means, that candidate is erased from that table.. But I need output as follows:  JobPostingId  CandidateName 60            aaa, bbb 63            aaa   How to do this..? If it need stored procedure means, ok.. All I need is solution..


I am trying to find the intersection points of $2^x$ and $x^2$.  To do this, I set the two functions equal to each other: $2^x = x^2$. It seems intuitive to take the log base two of both sides of the equations, and I got: $x = \log_2{x^2}$.  I'm not entirely sure how to proceed from here. Can someone please help me?


How do I test for items with nbt in 1.16.4 using execute command

I want to execute /execute if entity @p[nbt={Inventory:[{id:"minecraft:diamond"}]}] run enchant @a minecraft:unbreaking 3  except only if the diamond has infinity on it ok I use Minecraft Java 1.16.4 and optifine


interface name mismatch bionic ubuntu 18.04

Facing an issue where there is a mismatch in the interface name. While installation the rename happens from eth0 to enp3s0 noticed in /var/log/installer/sys.log which also generates ethernet name as enp3s0 in /etc/netplan/01-netcfg.yaml. The strange thing is once the server boots up the rename happen from eth0 to ens160 and no change is made in netcfg file causing the interface to be down. I have used packer installation for the same.  But on the other hand when I install ubuntu 18 directly from the UI by following all the manual steps there is no issue as such and the rename is similar to the one while installation and then booting up which is eth0 to ens160.  On both the above occasions the installation is done on VMware.


How do I reduce the filesize of videos? For some reason, by phone takes giant videos. The worst of these is a 20 minute video that takes up an entire 13 GB. How can I shrink the filesizes of these? They are mp4s encoded in H.264 and MPEG-4 AAC and play at 30 fps.  It's okay if there is reduction in quality.   I tried using avconv to reduce resolution, but even though this outputted a video with smaller dimensions, the size had bizarrely increased.  What is a good way for reducing the sizes of these file?


Why do polynomial of degree x have x zeroes? I searched on the net but could not find anything. Is there a derivation or proof?


Can Chrome be parametrized to not leak one's LAN IP address?

A little known fact is that some browsers, including Chrome and Firefox, have an API that lets a website get the LAN IP address of a client (often of the form 192.168.x.x or other ). That info typically remains constant across uses, and allows to precisely discriminate among devices sharing the same network access point (e.g. fiber/cable/ADSL box).  To see this in action, head to  and scroll down to the bottom left, "Your computer". Here is your LAN IP (and unless I missed something, it was not generated locally). That works with a default install of Chrome and Firefox, including in "private navigation" mode.  In Firefox, at least that way of obtaining the LAN address can be prevented by going to about:config, getting past the warning, searching media.peerconnection.enabled and setting that to false. If there are practical adverse effects, I did not find these in months of use.  Is there an equivalent setting in Chrome?  As an aside: I whish that would be the default, at least in "private navigation" mode.


Which GoT characters do not appear in ASoIaF?

I started out watching the Game of Thrones series (just about to watch season 4), then became intrigued enough to also read the A Song of Ice and Fire series (soon to acquire book 5).  Obviously a TV series cannot cover the detail one might expect in the books, so some characters from the books would not be mentioned in the TV shows, but it intrigued me that  (the prostitute that travels from Winterfell to King's Landing to continue her career) is in the TV series but does not appear anywhere in the books!  I guess she was inserted to allow the film makers to show aspects of certain characters and drive other bits of the story that were simplified/shortened & otherwise would have needed expounding.  Are there any other characters that are portrayed in GoT that are not in ASoIaF?


can i use random forest for feature selection and then use poisson regression for model fitting?

Variables that are important in random forest don't necessarily have any sort of relationship with the outcome. So would it be wise to use random forest to gather the most important features and then plug those features into a poisson regression model?If not, what other approach can be used for feature selection?(independent variables are categorical and dependent variable is count).


What is a null model in regression and how does it relate to the null hypothesis?

What is the null model in regression and what's the relationship between the null model and the null hypothesis? From my understanding, does it mean  Using "an average of the response variable" to predict the continuous response variable? Using the "label distribution" in predicting discrete response variables?  If that is the case, it seems there are missing connections between the null hypothesis.


Regression variables not used/applicable for certain cases

I have a rank-ordered logit model in which the various independent variables are pertinent for some cases but not others. For example, cases 1, 2, 3, & 4 might have variables A & B that are relevant whereas cases 5 & 6 might have variables B, C, & D that are relevant. My question is, prior to running the regression, do I need to code the data in any special way to indicate that only certain variables are applicable to certain cases, or will the regression extract the correct coefficients to use on the applicable cases. I appreciate any specific or conceptual guidance you may have on this.  Thank you!


In TeXstudio, is it possible to set the internal previewer to a single-page view? Is it possible to do so in a combination with the option "Fit to Text Width"?   Edit: The answer at  did help, but not quite, to answer my questions -- see my answer below for details.


I'd like to work on a bbcode filter for a php website. (I'm using cakephp, it would be a bbcode helper) I have some requirement.    Bbcodes can be nested. So something like that is valid.  [block]       [block]       [/block]       [block]           [block]           [/block]       [/block]   [/block]     Bbcodes can have 0 or more parameters.     Exemple:     [video: url="url", width="500", height="500"]Title[/video]   Bbcodes might have mutliple behaviours.     Let say, [url]text[/url] would be transformed to [url:url="text"]text[/url] or the video bbcode would be able to choose between youtube, dailymotion....  I think it cover most of my needs. I alreay done something with regex. But my biggest problem was to match parameters. In fact, I got nested bbcode to work and bbcode with 0 parameters. But when I added a regex match for parameters it didn't match nested bbcode correctly.   "\[($tag)(=.*)\"\](.*)\[\/\1\]"  // It wasn't .* but the non-gready matcher  I don't have the complete regex with me right now, But I had something that looked like that(above).  So is there a way to match bbcode efficiently with regex or something else.  The only thing I can think of is to use the visitor pattern and to split my text with each possible tags this way, I can have a bit more of control over my text parsing and I could probably validate my document so if the input text doesn't have valid bbcode. I could Notify the user with a error before saving anything.  I would use sablecc to create my text parser.   Any better idea? or anything that could lead to a efficient flexible bbcode parser?  Thank you and sorry for my bad english...


Why does photon have only two possible eigenvalues of helicity?

Photon is a spin-1 particle. Were it massive, its spin projected along some direction would be either 1, -1, or 0. But photons can only be in an eigenstate of $S_z$ with eigenvalue $\pm 1$ (z as the momentum direction). I know this results from the transverse nature of EM waves, but how to derive this from the internal symmetry of photons? I read that the internal spacetime symmetry of massive particles are $O(3)$, and massless particles $E(2)$. But I can't find any references describing how $E(2)$ precludes the existence of photons with helicity 0.


Active Directory Authentication from the Internet

I need some help finding a good solution to this problem. I know AD just fine, but admittedly, I'm not an expert. And I know I don't want to expose it to the internet...  I inherited a workforce at my new company (~100 employees, all Mac) that often work remote. Every laptop authenticates to the Active Directory. Works great(ish).  However, when users go remote, they sometimes need to leave their laptop with another employee that doesn't have a laptop (for reasons). The problem is that employee 2 can't login to employee 1's laptop because the computer cannot contact the AD. There are no cached creds for employee 2 because its the first time he's logged in to this particular machine.  Normally VPN is the solution, but without being able to login to the computer first, you can't login to the VPN. Are there any solutions that I should look into not involving persistent VPN to help with this? I don't want to expose AD or LDAP to the wider internet, but the bottom line is that I need to be able to authenticate from there without VPN.  Also, just to add a layer of complexity on top of this...the domain I inherited is a "domain.local" Not too big of an issue (I can work around some of the normal mac problems), however I see this causing an issue when trying to contact dc.domain.local from the internet.  Can anyone smarter than me point me in the right direction for a solution (without a lecture on bad practice, etc)?


What is the reason for the " 's " in the following context?

You're a friend of Tom's, aren't you? Question: What does the 's in Tom's stand for?


Python setter and getter for class attributes

There are situations when I need to set class attributes from within an instance. One solution would be to create a class method that is called the instance method. That class method would be used to set the class attribute. However, I would like to know if there is a way to define a property and its setter to edit a class attribute from within an instance method. In other words, I would like to have a class attribute that could be set from any instance while still remaining shared across instances. Specifically, this is my use case: my instance needs to be destroyed and recreated. However, upon recreation, I need to access a class attribute that stores the reason why the previous instance has been destroyed to initialize the object properly. Thank you


How do find out which number you dialed after the call when a contact has multiple numbers associated with it. On an iphone


Making spatial view in PostGIS and adding it as layer in QGIS?

In PostGIS 2.0, I am seeking an efficient way to create a spatially enabled view that is viewable in QGIS.    I followed the context of Part 2 of @Mike Toews answer to , and the view shows up as a point layer (in my case) in the "Add PostGIS Layers" dialog.  But after creating the view and spatially enabling it, I received the following error when trying to add the view to QGIS:     You must select a table in order to add a layer   Can someone explain why the spatial view will not load into QGIS, and what I need to do in order to make it loadable as a layer in QGIS?  I'm currently using QGIS v1.8 from the OSGEO installer  I view is built from the geonames database, loaded into PostGIS.  The geoname table/spatial data can be selected/viewed in QGIS just fine.  When I try to select the "mt_view", QGIS sees the view in the dialog, but won't let me select it.  It gives a dotted box around the area, but does not highlight and select the view.      I just noticed that when I run my first query:  CREATE OR REPLACE VIEW data.test AS SELECT * FROM data.geoname WHERE admin1='MT'   the view shows up in the QGIS Add Layer Dialog, but is unselectable.  Then when I run:  SELECT Populate_Geometry_Columns('data.test'::regclass);   I get the result of "0", where according to the , I think it should be returning "1".


Is there any way to have kids on a console

Can I have kids on my PS3 without any mods or the Hearthfire DLC?   By the way, I killed Grelod the Kind and still cannot get kids. I want one because I am married, I have a dog too. All I am missing is a kid. Please help. :-(


I was watching a Physics TV show, When someone called Alex Filippenko said that when there was the Big Bang, the Space extended at a speed faster than speed of light. He said that it wasn't against the Theory of relativity because space isn't a particle and can go faster than speed of light.  So I wanted to know if that is a fact? And otherwise how could the light go further if space around wasn't going at least as fast as light?


Change the sectioning level created by `thebibliography` environment

I use the environment thebibliograghy for a document of the book class, but I'd like to have a bibliography title formatted like a section title (no page clearing, for example) instead of a chapter title (the book is a collection of papers each one being a chapter and having its own bibliography).  Can thebibliography environment be changed so to create a title formatted like the one of a section instead of chapter?  Thanks in advance for any clue.


This is very annoying. I need to delete an action I keep hitting x and clear animation data and all that, won't leave! I have quit and reopened, there is no 0 next to the name.


How to fix error: "class, interface, or enum expected" when defining a Map outside of a class?

For my own Logger class I want to define a map to map the priority number back to a meaningful string like follows:   static Map<int, String> map = new HashMap<int, String>(); map.put(2, "VERBOSE"); map.put(3, "DEBUG"); map.put(4, "INFO"); map.put(5, "WARN"); map.put(6, "ERROR");   I wonder if there might be a function that does this automatically? But I do now know every function there is.   However, I define the lines just before my class definition, and then I get the error:   Error:(14, 8) error: class, interface, or enum expected   and not sure what it means (maybe I cannot declare variables outside a class?). I also tried to define the map inside the class, but then the put method cannot be resolved. I also notice, that I have not imported a Map module, and AndroidStudio does not seem to require a Map module (i.e. the name 'Map' is not red and underlined).   I am very confused (as usual); I just want to get a String "ERROR" if the priority-value is 6 and so on.   What am I doing wrong in my case...?


Really slow wordpress website admin panel with a total query time 1664ms for the home page

I have a problem with my WordPress website being too slow, I installed a debug bar to check queries in the home page, it reports 202 queries, and a total query time equal to 1665ms.  The cpu and the ram are in critical use.  Here is what i tried to do:  Optimize pluginDB to defrag the DB. ThemeCheck plugin to analyse and clean my template. W3C Total cache Plugin with object cachr enabled.  Necessary plugins are:  WordPress SEO by YOAST Jetpack service by WordPress.com Contact form 7  Thank you


Living in Canada for a year: entering the US for a couple of short trips

From August onwards I'll be living in Canada under the WHP program, since I'll be close to the American border I would like to take multiple day (or longer trips, not longer than a week though) throughout the year. I read about entering the country by air on a ESTA and the "90 day" rule that starts when you enter America but also keeps going even if you're back in Canada.  However, I'm wondering if the same rules apply when you enter by land on the I-94 visa? Are the rules the same for this or can I enter throughout the year on a I-94 visa?


My iPad air2, locks up usually once a day...when rotate, screen stays in either the landscape or portrait made. Have to force off. Ok when I turn it back on. 2 years old, this started in past month or so.


Indefinite article in the "An [adjective] [number] [plural noun]" construction

I wasn't sure how best to phrase the title of this question.  I'm interested in constructions of the following form:      An estimated 50 people died in the bombing.   'An estimated' could be substituted with adverbs like 'approximately' or 'about', so it seems that prepending the indefinite article to certain words produces an adverb.  My question is why the indefinite article should function in this way.  For one thing, the use of 'a[n]' when the following noun is generally plural seems odd.  There are quite a few words that fit this pattern:   An additional ... An approximate ... An estimated ... An extra ... A good ... A huge ... A mere ... A possible ... A record ... A scant ... A whopping ...


How can I update Visual Studio Code on Ubuntu?

I downloaded the .tar.gz version of VS Code for Ubuntu (64-bit) and have been able to run it smoothly for some time. Some extensions have been installed too.  How can I efficiently update this VS Code installation? One thing I can think of is to just download the new .tar.gz archive and extract to the same location, just keeping the old "extensions" folder.   If I use the .deb version, would the same process be needed? Would I download the new .deb every time there is an update?


How do I increase console-mode resolution?

When my computer goes to console mode (booting up, shutting down or Ctrl + Alt + F1)), the text is super big. I can't take a screenshot of it, but it looks like a 640 x 480 resolution. My monitor normally works at 1440 x 900. I remember that the console text that appeared while installing from the CD was nice and small. How can I make the console text look like it looked while booting from the CD?


For the Person that had film processed after 20 years. Where did you get the special processing done? Also I have some undeveloped close to 20 years old and need to know the best place to get it developed to try and get something out of it.


Ubuntu installed to USB key, but not recognized as bootable

This is NOT a duplicate of  or similar questions.  Though there might be bits of helpful information in other questions/answers, my question is not a duplicate, because my problem is not installing ubuntu to the USB key. I've done that and I'm past this step. Instead, my problem is that the USB key doesn't boot (probably only on my machine). These two are distinct problems.  Question:  I seem to be unable to produce a working USB stick installation (not live USB stick) for my PC. Here are the details:  To create the USB stick, I go this path:   booted from Ubuntu 12.04.4 DVD used usb-stick-creator to create live USB stick from the same DVD image as used for burning the boot DVD booted from the live USB stick installed from live USB stick to another USB stick   Now the problem starts:  My computer does not detect the USB stick with the normal installation as a boot device. When I try to boot with the stick plugged in, it doesn't boot from it although USB devices are put first in the boot order in the BIOS. If I hit F10 at startup (boot menu), then I get the boot menu, but the stick is not listed.  I've switched between "classic" and "UEFI" boot options in the BIOS, but neither of them work.  I've done the above procedure at least 3 times and the results were always the same. During the installation procedure, I've always carefully selected the device to which to install the boot loader. Here, I've always selected the USB stick to which I installed.  My PC is a Medion Erazer X7827.  What else can I do about this?  Telling from the installation procedure, Ubuntu isn't really intended to be booted from USB stick. It is clumsy to install to USB, because you need to manually configure the partitions and you may not miss to select the correct boot device. There is no option "install to that USB stick" ready made. This gives me the feeling that I'm trying to solve something with the wrong approach. Is a better way to go?!  Something very similar happens with Ubuntu 13.10. So far, I only found out that the beginning of the resulting usb stick contains different data depending on if UEFI was enabled at installation time or not. I guess that when installing while UEFI is enabled, I also have to enable UEFI when booting. And the other way around, when it's disabled at install time, it probably needs to be disabled at boot time, too. This alone doesn't help though.  UPDATE / 2014-10-20:  Additionally to my BIOS problems, Ubuntu (also 14.04) doesn't write the boot code (whatever that is) to the right partition. I've done this same game again with 14.04 and now the Ubuntu installation which I previously had on the HDD doesn't boot anymore. I figure that the boot code on the HDD was overwritten by the installer, although I had carefully selected the USB stick to be the target for the bootloader. I suspect that this is a bug in the ubuntu installer.


Existence of a linear continuous function

I found the following problem:     Let $(H,(\cdot,\cdot))$ be a Hilbert space and B a continuous Bilinear form on H. Then there is a $A\in L(H)$, with $L(H)$ being the linear, continuous functions $H\rightarrow H$, with $B(x,y)=(Ax,y) \forall x,y\in H$   I tried to use the Lax-Milgram theorem, which can be used on continuous  koerziv sesquilinear forms. (A is a koerziv Sesequilinear form if there is an $a>0$ so that for all $u\in H$: $Re(A(u,u))\ge a||u||^2$).     Let $a:H\times H\rightarrow\mathbb{K}$ be a continuous, koerziv sesquilinear form on a $\mathbb{K}$-Hilbert space. Then there is exactly one bijective function $A\in L(H)$, so that for all $u,v\in H$ is true: $a(v,u)=(v,Au)$   In the real numbers every sesquilinear form is a bilinear form which is koerziv. And since the dot product is symmetric, this would solve my problem for the real numbers. Do I have to specify it also for the complex numbers? I don't know how I could do this


could you please tell me why  click event is not firing when I am taking selector in object; here is my code   (function(){   $(function(){     var config ={       btn:$('#btn'),       hello:$('.hello'),        bodyClickEvent: $("body"),        overlayClick: $('.overlay'),       closeBtnSelector: '#closeBtn',     };   config.btn.click(function(){     $('#container').append($('#overlay').html())     $('.popupdata').html('
xxxx
X Close
');     })   config.bodyClickEvent.on("click", config.closeBtnSelector, function () {      //why it is not working     config.overlayClick.fadeOut(500);                config.overlayClick.remove();     // below code is working fine                //$('.overlay').fadeOut(500);                //$('.overlay').remove();             });  }) })()   why these two line are not working   config.overlayClick.fadeOut(500);                config.overlayClick.remove();   when I run my code it show a button when I click on button some html is show with close button text .When I click close button it is not fadeout my html and remove.


JavaScript How to delete key from copied object?

I have query object  var q = {     age: 10,      'profile.contry': 'india' };   Now I duplicate the q variable and remove key from a duplicate variable.  var duplicateQ = q; delete duplicateQ['profile.contry']; // I have removed 'profile.country' from duplicateQ.  console.log(q); //Object { age: 10 } console.log(duplicateQ); //Object { age: 10 }   Why are both the variables affected? How can I remove the property from only one of them?


Getting a 404 when using the Nexus 7 installer PPA, how do I fix this?

ubuntu 13.10  sudo add-apt-repository ppa:ubuntu-nexus7/ubuntu-nexus7-installer OK  sudo apt-get update W: Не удалось получить http://ppa.launchpad.net/ubuntu-nexus7/ubuntu-nexus7-installer/ubuntu/dists/saucy/main/binary-amd64/Packages  404  Not Found W: Не удалось получить http://ppa.launchpad.net/ubuntu-nexus7/ubuntu-nexus7-installer/ubuntu/dists/saucy/main/binary-i386/Packages  404  Not Found


Show that $4 + \sqrt{10}$ is not prime in $\mathbb{Z}\bigl [\sqrt{10}\bigr]$

I'm currently working through some extra problems while studying for an algebra exam. Right now, I am having trouble showing that $4+\sqrt{10}$ is not prime in $\mathbb{Z}[\sqrt{10}]$. I've been trying to find elements $a,b \in \mathbb{Z}[\sqrt{10}]$ such that $ab \in (4 + \sqrt{10})$ but neither $a$ nor $b$ are in the ideal. This method worked well for showing that 2 and 3 are not prime in this ring, but I'm not having much success for this example. I know that I could also show that $\mathbb{Z}[\sqrt{10}] / (4 + \sqrt{10})$ is not an integral domain, but I don't think that simplifies anything. Is there another approach that I'm missing?


Set Community Redirect Page after Reset Password

I have set up a Customer Community with Self-Registration. I am having users register without setting a password. They receive the "Welcome Email" after self-registration.  The email has a link for the user to set their password.  After they set their password, the user is redirected to a Visualforce Page- how do I set this to an Experience Builder Page? I am not using Visualforce pages for my community.  The page that is being displayed is set in Administration -> Sites & Domains -> Custom URLs, then click the field under "Site Label" with Site Type = "Community" (Note clicking this when Type = Site.com Community returns a bad URL...  Now "Active Site Homepage" is a Visualforce Page, and that is all that's selectable (Not sure how this influences Experience Builder Page, however, removing access to certain Visualforce Pages under the related list: Site Visualforce Pages removes access to Experience Builder Pages for no documented reason?  For reference:


Prove that for any two integers $a$ and $b$ $ab(a^{60}-b^{60}) $ is divisible by $56786730$

Prove that for any two integers $a$ and $b$, $ab(a^{60}-b^{60}) $ is divisible by $56786730$       $56786730=2\cdot3\cdot5\cdot7\cdot11\cdot13\cdot31\cdot61$     It is easy to prove that $2,31,61|\ ab(a^{60}-b^{60}) $ using Fermat's little theorem for 61 and 31 and taking cases for 2. But I can't figure out a way to solve this for all the other factors. Can anybody help me solve this.     Except this, I would also appreciate if someone could share another method to solve this question which doesn't involve modular congruence as I haven't really studied that yet.


Would going first in Egg Russian Roulette increase or decrease your chances of winning?

Egg Russian Roulette:     6 eggs, 5 of which are hard boiled & 1 of which is raw. Players (1v1)   each choose eggs in a turn based system whereby the egg is smashed   against the forehead. The first player to smash the raw egg against   his/her forehead is the loser.   Should you have the option of choosing who goes first, would going first increase or decrease your chances of winning?


I have exception when use setVisibility() in Android Studio

exception                                                                     2020-06-06 16:59:42.186 21574-21574/elit.express.elit E/AndroidRuntime: FATAL EXCEPTION: main         Process: elit.express.elit, PID: 21574         java.lang.RuntimeException: Unable to start activity ComponentInfo{elit.express.elit/elit.express.elit.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.View.setVisibility(int)' on a null object reference  MainActivity.java  package elit.express.elit;  import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; import android.view.View;  import androidx.appcompat.app.AppCompatActivity; import androidx.appcompat.widget.Toolbar;  public class MainActivity extends AppCompatActivity {     private Toolbar toolbar;     private View toEditName;      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setReservationActivity();         //setIconsVisibility(true);         toEditName= findViewById(R.id.toEditName);     }      @Override     public boolean onCreateOptionsMenu(Menu menu) {         getMenuInflater().inflate(R.menu.menu_reservation, menu);         return super.onCreateOptionsMenu(menu);     }      @Override     public boolean onOptionsItemSelected(MenuItem item) {         switch (item.getItemId()) {             case R.id.toEditName:                 setRegistrationActivity();                 break;             case R.id.toHistory:                 break;             default:                 break;         }          return super.onOptionsItemSelected(item);     }       ////////////////////Set activities     private void setActivityToolbar() {         toolbar = findViewById(R.id.toolbar);         setSupportActionBar(toolbar);     }      protected void setRegistrationActivity() {         setContentView(R.layout.activity_registration);// set layout         setActivityToolbar();         getSupportActionBar().setTitle(R.string.toolbar_name);      }      protected void setReservationActivity() {         setContentView(R.layout.activity_reservation);         setActivityToolbar();         getSupportActionBar().setTitle(R.string.reservation);         toEditName.setVisibility(View.VISIBLE);     }      void setIconsVisibility(boolean visibility){         if(visibility){             findViewById(R.id.toEditName).setVisibility(View.VISIBLE);             findViewById(R.id.toHistory).setVisibility(View.VISIBLE);         }         else{             findViewById(R.id.toEditName).setVisibility(View.GONE);             findViewById(R.id.toHistory).setVisibility(View.GONE);         }     }      ////////////////Buttons     public void onClickRegistration(View view) {         setReservationActivity();     }  }   menu_reservation.xml  <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     xmlns:app="http://schemas.android.com/apk/res-auto">     <item         android:id="@+id/toEditName"         android:title="@string/buttonEditName"         app:showAsAction="ifRoom"         android:icon="@drawable/ic_edit_name"         android:visible="false"/>     <item         android:id="@+id/toHistory"         android:title="@string/buttonHistory"         app:showAsAction="ifRoom"         android:icon="@drawable/ic_history"         android:visible="false"/> </menu>


One of our chemistry professors asked us to convert our LaTeX document into PDF, because it's easier for him to correct the document that way. I just thought it was impossible to convert Word to LaTeX and LaTeX to Word - but he is a professor on "Science an Technology" so I think he should know what LaTeX is. So is their any possibilty to create a Word document of LaTeX?


I have downloaded wine 1.6 from here:  I then downloaded the pokerstars from here:   Both downloads went fine (I think) but when I try to open the pokerstars client it connects and then just opens a small black box at the top left of my screen and that is it.  Does anybody have any ideas about what might be going wrong?  Thanks for any help


Can you get a gold tool before getting a silver tool?

For example, can you get a gold shovel (by buying 50 fertilizer) before getting a silver shovel (donating 15 fossils)?


Find the isomorphic ring and its order with $\mathbb{Z_{15}}[x] / \langle 3x^2 + 5x \rangle $

Here is my attempt  this question realated with   $sol)$ the solution is similar in the above link.  Let $f(x) = 3x^2 + 5x$ and $[f]_n$ be $f(x)(mod n)$  Then  $\mathbb{Z_{15}}[x] / \langle 3x^2 + 5x \rangle $ =  $\mathbb{Z_{15}}[x] / \langle [f]_{15} \rangle $ for $\langle [f]_{15}(= 3x^2 + 5x)  \rangle \lhd\mathbb{Z_{15}}[x]$   Here , $\mathbb{Z_{15}}[x] \simeq \mathbb{Z_{3}}[x] \times \mathbb{Z_{5}}[x]$  Plus By C.R.T,  $\langle [f]_{15} \rangle \simeq \langle ([f]_3, [f]_5) \rangle  \lhd \mathbb{Z_{3}}[x] \times \mathbb{Z_{5}}[x] $  By the way, Since $\mathbb{Z_{15}}[x] (\simeq \mathbb{Z_{3}}[x] \times \mathbb{Z_{5}}[x])$ is a ring with unity, $\langle ([f]_3, [f]_5) \rangle = \langle [f]_3 \rangle  \times \langle [f]_5) \rangle$  I.e. $\langle [f]_{15} \rangle \simeq \langle ([f]_3, [f]_5) \rangle = \langle [f]_3 \rangle  \times \langle [f]_5) \rangle$  So, ($\mathbb{Z_{3}}[x] \times \mathbb{Z_{5}}[x]$) / $\langle ([f]_3, [f]_5) \rangle $ $\simeq$  $(\mathbb{Z_{3}}[x] / \langle [f]_3 \rangle) \times $$(\mathbb{Z_{5}}[x] / \langle [f]_5 \rangle $)  But I'm not able to say the point "$\color{red}\simeq$" in the above link that first statement is not always true.  $\mathbb{Z_{15}}[x] / \langle [f]_{15} \rangle $ $\color{red}\simeq$  ($\mathbb{Z_{3}}[x]$ $\times$ $\mathbb{Z_{5}}[x]$)/$\langle [f]_3, [f]_5  \rangle$ $\simeq$  $(\mathbb{Z_{3}}[x] / \langle [f]_3 \rangle) \times  $$(\mathbb{Z_{5}}[x] / \langle [f]_5 \rangle $)  What should I next? or Are there any different ways without my method?  One thing sure is the order of quotient ring is 75  please help


What is the difference between using this  $('.container').text();   and this:  $(".container").text();   both (") and (') work but what's the difference?


Assume that given three predicates are presented below: $H(x)$: $x$ is a horse $A(x)$: $x$ is an animal $T(x,y)$: $x$ is a tail of $y$ Then, translate the following inference into an inference using predicate logic expressions and prove whether inference is valid or not (for instance, using natural deduction): Horses are animals.  Horses' tails are tails of animals. My thoughts: I am quite good at translating predicate logic expressions, but here I struggled to come up with formula for Horses' tails. My initial idea was to consider similar sentence such as "w is a tail of a horse" to form required inference, but it was not successful. Would be welcomed to hear your ideas about this task.


Can I activate an ability after part of a spell has resolved? (please read example)

I made a  group hug deck with  as my win condition (obviously I would only use it in an emergency) and .  So, I cast  with, say, 40 cards in my hand, the text says "Each player discards their hand, then draws an amount of cards equal to the greatest number of cards a player discarded this way". So, could I use  after I discarded my hand, but before I drew 40 more cards? I know this sounds silly as I'd think that it wouldn't work, but if it does then I can do a lot more with my deck. Thanks!


A collegue of mine has created a model with SketchUp and I want to import it into blender now. He created several formats from the model(*.3ds, *.dae, *.obj) which I can import. However, I always do not seem to get the correct dimensions for the objects after the import. Also, depending on which format I choose to import, the dimensions are different.  So, there are two options now. Either, the dimensions get broken when he does his export. Or Blender fails to import correctly.   How can I rule out the second option? How do I import respecting the dimensions of the object from either *.3ds, *.dae or *.obj?  The current situation when importing from *.ds looks like this: One of the models should have dimensions of about 2,10m length and 1,10m width. In Blender's object mode:   In edit mode with edge length enabled:    Why are the dimensions so different? Even the ratio of the sides is off in object mode.  edit: When I import from *.dae the dimensions in edit mode are correct but not the ones shown in object mode. What is the difference between the two in the first place?


Java list's .remove method works only for second last object inside for each loop

I am seeing a weird behavior.      List<String> li = new ArrayList<>();     li.add("a");     li.add("b");     li.add("c");     li.add("d");     li.add("e");     for(String str:li){         if(str.equalsIgnoreCase("d")){             li.remove(str);     //removing second last in list works fine         }     }   But if i try to remove any other than second last in the list, i get ConcurrentModificationException. It came to my attention while reading "Oracle Certified Associate Java SE 7 Programmer Study Guide 2012" which incorrectly assumes that .remove() always works with an example of removing the second last in the list.


Given the Universe is expanding. Therefore everything within the U is expanding, in all dimensions, subatomic to cosmic. Then all metre sticks are expanding. The question: How can we measure U expansion with metre sticks that are also expanding? Alice only knew she had grown ten feet tall by comparing herself to her surroundings.


Values of $n$ and $r$ for which $ n \choose r$ is defined

I started learning about binomial theorem where my teacher told me that for binomial coefficient $ n \choose r$ to be defined - $n$ $\in$ $ \mathbb{N}$ , $r$ $\in$ $ \mathbb{W}$, $n$ $\ge$ $r$ but out of some curiosity I looked whether  $0 \choose 0$ is defined or not and I found out from this site only that it is defined , therefore $n$ must  $\in$ $ \mathbb{W}$?