Implement country and language redirects (US, CA, En and Fr) in IIS

We have a website that has two URLs (one for the US side and another for the Canadian side which is then broken into Canadian English and Canadian French). For the purposes of my question,  I will write as:   www.us_url.com (US) www.canada_url.ca/ca_en/ (Canadian English) www.canada_url.ca/ca_fr/ (Canadian French)   To make sure people are on the correct site, what do I do if they go to the US URL with Canadian English content (e.g. www.us_url.com/ca_en/canada.asp) but I want to make sure the URL is the Canadian one (e.g. www.canada_url.ca/ca_en/canada.asp) so it shows up properly in Google Analytics.  We're using IIS 7 and classic ASP.


I installed a nightly or unstable build of a custom ROM and now my phone doesn't work

I installed a nightly build, but now some important features of my phone don't work: it boot-loops, or can't make calls, or can't use mobile data, or something like that. What can I do about it?     N.B. This is a "canonical question" for all similar questions, because questions about specific bugs in one particular nightly build of a ROM are way too specific to have any long-term value. See  to learn why this question was created, and why your particular question about nightly builds might have been closed as a duplicate of this one.


Linux: how to know which processes are pinned to which core?

Is there a way to know which cores currently have a process pinned to them?  Even processes run by other users should be listed in the output.  Or, is it possible to try pinning a process to a core but fail in case the required core already has a process pinned to it?  PS: processes of interest must have bin pinned to the given cores, not just currently running on the given core  PS: this is not a duplicate, the other question is on how to ensure exclusive use of one CPU by one process. Here we are asking how to detect that a process was pinned to a given core (i.e. cpuset was used, not how to use it).


I have a ORG production where a link open a POPUP code works, but the same code in sandbox does not.  Error:   In console chrome:  Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.   The sandbox is the same code production. The jquery path works and is correct.  Code:  {!REQUIRESCRIPT('/soap/ajax/26.0/connection.js')}  {!REQUIRESCRIPT('/js/functions.js')}  {!REQUIRESCRIPT('/resource/jQuery/jquery-1.8.2.min.js')}  {!REQUIRESCRIPT('/resource/jQuery/ui/jquery-ui-1.9.1.custom.min.js')}  {!REQUIRESCRIPT('/resource/jQuery/postmessage/jquery.ba-postmessage.js')}  {!REQUIRESCRIPT('/resource/jQuery/bbq/jquery.ba-bbq.min.js')}   var statusAcc = "{!Account.Status__c}";  var abrirTela = false;  if(statusAcc != "A cadastramentar"){  abrirTela = true;  }else{  abrirTela = confirm('Esta conta já foi enviada. Você tem certeza que deseja editá-la?');  }  if(abrirTela){   function requireCssFile(filename) {  var fileref = document.createElement('link');  fileref.setAttribute('rel', 'stylesheet');  fileref.setAttribute('type', 'text/css');  fileref.setAttribute('href', filename);  document.getElementsByTagName('head')[0].appendChild(fileref);  }   requireCssFile('/resource/jQuery/ui/css/ui-lightness/jquery-ui-1.9.2.custom.min.css');   var j$ = jQuery.noConflict();   var canal = "{!Account.Canal__c}";  var iframe_url = '{!URLFOR("/apex/Informacao?id=" + Account.Id + "&Canal=")}' + canal;    var largura = 800;  var altura = 525;   var child_domain = iframe_url.substring(0, iframe_url.indexOf('/', 9));  var parent_domain = window.location.protocol + '//' + window.location.host;   j$.receiveMessage(  function(e){  var cross_result = j$.deparam(e.data);  if(j$.browser.msie){  document.body.scroll = "yes";  document.documentElement.style.overflowX = 'visible';  document.documentElement.style.overflowY = 'visible';  }else{  document.onmousewheel = true;  document.onkeydown = true;  }   if (cross_result.action == 'close_modal_dialog') {  j$modalDialog.dialog('close');  } else {  j$modalDialog.dialog('close');  j$(location).attr('href', cross_result.redirect_url);  }  },  child_domain  );   var j$modalDialog = j$('

')  .html('')  .dialog({  autoOpen: false,  title: 'Informação',  resizable: false,  width: largura,  height: altura,  autoResize: true,  modal: true,  draggable: false,  closeOnEscape: false,  open: function(event, ui) { j$(".ui-dialog-titlebar-close").hide(); }  });   var ieVersao = parseInt(j$.browser.version, 10);  if(j$.browser.msie){  document.body.scroll = "no";  document.documentElement.style.overflowX = 'hidden';  document.documentElement.style.overflowY = 'hidden';  }else{  document.onmousewheel=function(){return false};  document.onkeydown=function(){return event.keyCode==38 || event.keyCode==40 ? false : true;}  }   j$modalDialog.dialog('open');   }   I looked permissions and are equal. Any idea?


Complex minimal polynomial is image of real minimal polynomial under tautological map.

Let $T_\mathbb{R}$ be a real $n \times n$ matrix, and let $T_\mathbb{C}$ be the same matrix but considered as a complex one. What is the easiest way to see that $\min_{T_\mathbb{C}} \in \mathbb{C}[t]$ equals the image of $\min_{T_\mathbb{R}} \in \mathbb{R}[t]$ under the tautological map $\mathbb{R}[t] \to \mathbb{C}[t]$?


In a home LAN, I have connected one router A (which is also connected to the Internet) to router B but router B is supposed to work only as a switch (I am not using the WAN port in router B at all). Right now there are 2 computers connected directly through Ethernet to router A (and 2 other using WiFi) and 1 computer connected to router (switch) B.  After that I have noticed that on the other machines the Internet stops working for a short periods of time.  What can cause these problems? Should I setup static IP addresses for all of the computers in the network?


Get users to use the download button instead of right-click save

As part of our system, a web application, we have an image viewer. Previously we always displayed the full resolution image but scaled down with CSS to fit the page. For performance reasons we now display a properly scaled version of the image with the option to download the full resolution image with a button under the image.  As part of the users' workflow, they sometimes need to download this full resolution image to submit to another system. The problem is that many users just right-click the image and press "save image as". This used to work fine but now it will instead provide them with a low resolution image. The users don't notice this and this causes problems further down the line. How can we force users away from this behaviour? Sure, we could tell them not to do it but that doesn't feel very scalable. My least bad idea so far is to hijack the right-click in the browser but this is A) not super nice UI and B) not sure to cover all cases.  In short: How can we get users to use the download button instead of saving the low-res thumbnail?


Arc length parameterization lying on a sphere

Show that if $\alpha$ is an arc length parameterization of a curve $C$   which lies on a sphere of radius $R$ about the origin then $$R^2 =  (\frac{1}{\kappa(s)})^2+((\frac{1}{\kappa(s)})'\frac{1}{\tau(s)})^2.$$   I know I can write the unit tangent $T$, normal $N$, and the binormal $B$ as a linear combination $\alpha(s) = a(s)T(s)+b(s)N(s)+c(s)B(s)$ and try to determine what $a, b, c $ are, but how can I continue solving this?


Can we prevent movie spoiler subjects from making it to the front page?

I know the particular thing I see shouldn't be a big surprise, but if I go to Stack Exchange's home page, I'd like to not be greeted with a major story point for a movie that just came out today.  Other sites such as reddit have strict moderation to keep this stuff off of their front pages.


Why is there no functor $\mathsf{Group}\to\mathsf{AbGroup}$ sending groups to their centers?

The category $\mathbf{Set}$ contains as its objects all small sets and arrows all functions between them.  A set is "small" if it belongs to a larger set $U$, the universe.    Let $\mathbf{Grp}$ be the category of small groups and morphisms between them, and $\mathbf{Abs}$ be the category of small abelian groups and its morphisms.    I don't see what it means to say there is no functor $f: \mathbf{Grp} \to \mathbf{Abs}$ that sends each group to its center, when $U$ isn't even specified.  Can anybody explain?


How to create an image that is just shading and transparency?

In photoshop I created this image that is supposed to represent the folds of a curtain:    I, however, only want the shading aspect of this so that I can export that to a PNG and display it over any color on the Web.  So my question then is how do I get only the shading part of this image into a PNG?


Additional rolls to see all faces of a die

Suppose that a fair die is rolled repeatedly; different rolls are   independent.   N is the minimum number of rolls till each of the six faces of the die shows up at least once.       Suppose that i distinct faces have already shown up, i = 1; 2; 3; 4;   5. N_i is the minimum number of additional rolls after i distinct faces have shown up till another distinct face (one of the remaining 6   - i faces) shows up. Derive the pmf.   I know that N is Geometrically distributed by 1/6, however, I am having trouble figuring out if N_i is geometrically distributed like N, and why is that different if not? How would the p.m.f of N_i be derived?


I am Trying to configure unreal engine on Ubuntu 18.04, And When I run ./Setup.sh, I got the error of a package that have unmet dependencies: The following packages have unmet dependencies:  libmono-system-web-extensions4.0-cil : Depends: libmono-system-drawing4.0-cil (>= 3.0.6) but it is not going to be installed Depends: libmono-system-servicemodel4.0a-cil (>= 3.2.3) but it is not going to be installed Depends: libmono-system-web-services4.0-cil (>= 1.0) but it is not going to be installed Depends: libmono-system-web4.0-cil (>= 2.10.3) but it is not going to be installed E: Unable to correct problems, you have held broken packages.   How can I solve this ?  This is what I got running apt-cache policy:  libmono-system-web-extensions4.0-cil: Installed: (none)  Candidate: 5.14.0.177-0xamarin3+ubuntu1604b1  Version table: 5.14.0.177-0xamarin3+ubuntu1604b1 500 500 https://download.mono-project.com/repo/ubuntu stable-xenial/main amd64 Packages  500 https://download.mono-project.com/repo/ubuntu stable-xenial/main i386 Packages


Do I need to watch Arrow before I watch The Flash?

provides a list of The Flash and Arrow episodes and the way that they crossover from time to time, and mostly seems to be concerned with the order in which to watch Arrow and The Flash.  However, I attempted to watch Arrow before The Flash was created and I couldn't stand it for very long, giving up on the show just eight episodes in.  I have since heard that The Flash is very good, and well worth a watch. Do I need to watch Arrow to understand The Flash, or will I get by OK if I only watch The Flash?


How to pull the apks from my android phone

I have a rooted android phone. I am trying to pull the applications from /system/app/. However this simply does not copy the apk. What I have tried.      adb shell     su     cd data     cd app     ls   A lot of applications are shown. However when I try to pull it it says   adb pull /data/app test  pull: building file list... 0 files pulled. 0 files skipped.   When I try to pull it from the system/app it pulls it but no file is created on my computer. I have specified the file name, tried with it and without it. Could someone please tell me what I am doing wrong?  I have also tried it individually with specific apks. But that doesnt work either.


Is every connected metric space with at least two points uncountable?

As the topic, how to prove that every connected metric space with at least two points uncountable? Of course i know the definition that a countable set mean there is a bijection between the set and the positive integer. Connected is opposite of disconnected where the set can partition into two disjoint open sets.


Overstayed UK student visa in the past. Can I now visit the UK again?

I was on a student visa in UK. My visa got expired and I overstayed 3 yrs more in addition to my visa. So in simple I stayed 3 yrs as illegal in the UK. Then I came back to my country deliberately. Remember I was never caught and deported. Is there any ban on me? Or is there? Will it affect my visa application for other countries. My passport is clean. There is no  exit stamp on it. Because it was expired when I came back and I made temporary travel document from my home country embassy. So am I eligible to travel to UK or other countries again?


Is there any advantage to declaring a class static in C#?

In C#, you can declare a class as static, which requires all members to also be static. Is there any advantage (e.g. performance) to be gained by doing so? Or is it only a matter of making sure you don't accidentally declare instance members in your class?


I don't know what's wrong with this statement, but whenever i run this i always get an error  here is my sql:  DELETE FROM tbl_usersinfo WHERE users_lname IN (SELECT users_lname FROM tbl_usersinfo WHERE users_lname = 'asd')   here is my error:  #1093 - You can't specify target table 'tbl_usersinfo' for update in FROM clause


Simplest way to fully clear terminal for doing ascii animations

I know there's tons of libraries out there that does this for you, but I want to know if there's any simple way that's built in.   So far I'm just doing os.system('clear'). This works, but the 'clear' command only inserts a bunch of newlines instead of actually clearing the whole screen.  This is fine for animations that aren't very big, but for animations that cover up more than 1 screen worth of space, it will start scrolling up and down.


Don't tell me that a suggested edit is possibly spam when it's an audit

I had a  that told me:     Our system has identified this edit as possible spam; please review carefully   The system told me this before rejecting the edit, so I don't think that this should displayed for audits, because if this is displayed, robo-reviewers will pay more attention for audits and pass them, but don't really pay attention on other bad edits. So why does the system tell me that the edit is possibly spam?


In C, why is the sizeof function used as the denominator to store the number of elements in an array?

More than once I have seen the sizeof operator used on index 0 of an array act as the denominator when storing the number of elements of an array. My question is why use the sizeof operator instead of just dividing by 1 or not dividing at all? See an example of this phenomenon below in some sample code from . static int arr[] = { 1, 10, 4, 5, 6, 7 }; static int sum; static const int n = sizeof(arr) / sizeof(arr[0]);  //RIGHT HERE!!!!!  int main() {         int i;          for (i = 0; i < n; i++)                 sum += arr[i]; }


How do you put 2 commands in the same command block in 1.12 on PC/Mac?

I want to know how to put 2 commands in the same command block, but I don't know how. I think I need to use /execute, but that might not work. If you have ideas, please tell me. That would be greatly appreciated for me and other people.


Standardize binary variables in cluster analysis?

I'm performing a cluster analysis on a health insurance dataset containing 4,343 observations with mixed continuous and binary variables.  I understand the importance of standardizing continuous variables. However, given the wide range of values for some of my continuous variables (notably outlier values for hospital visit counts and total medical expenses) I'm still seeing maximum values of 15 or higher for standardized continuous variables compared with maximum values of 1 for unstandardized binary variables.  Should binary variables be standardized as well to prevent undue weight being placed on continuous variables?  For example, rare binary events such as MED_STROKE=1 (only 7 cases) would receive a standardized value of 24.9 given their "distance" from the mean value of MED_STROKE which is close to zero.      Stnd. Continuous Variables     N       Mean         Minimum         Maximum    -----------------------------------------------------------------------------    ED_BH_COUNT                    4343    0            -0.3900056      18.4851212    TOTAL_CLAIM_COST               4343    0            -0.2958079      18.8621133    -----------------------------------------------------------------------------        Stnd. Binary Variables         N       Mean         Minimum         Maximum    -----------------------------------------------------------------------------    sexcode                        4343    0            -0.9809550       1.0191800    SA_ALCOHOL_RELATED_DO          4343    0            -0.2320733       4.3079913    MED_STROKE                     4343    0            -0.0401749      24.8854565    -----------------------------------------------------------------------------


Strong Induction: Every natural number $n\geq 8$ can be represented as $n=3k + 5\ell$

Can you please help me and tell, how should I move on?  Can this be proved by induction?     Every natural number $n\geq 8$ can be represented as $n=3k + 5\ell$.   Thank you in advance


What is the cardinality of the topology on $\mathbb{R}$?

Let $X = \mathbb{R}$ equipped with usual topology $\tau$, then $\tau = 2^\mathbb{R}$  Does this imply that the cardinality of $\tau$ is greater than continuum?


Hello personal finance,  I was filing my taxes for 2016 and I just found out that I transitioned from Non-Resident-Alien to Resident Alien around September last year by passing substantial presence test. After doing some research, I have found out that I qualify as a resident alien for the whole tax year (from January 2016).   Unfortunately, my employer did not know about this change in status, so for all of 2016 no Social Security or Medicare taxes were withheld.   I have found out that I need to correct this, and I need help figuring out a few things.    Should I have a W-2 re-issued? I spoke to two accountants and one said I should, the other said I shouldn't. I don't know which one to believe.  Who pays for the FICA I should have paid last year? Is it my employer's problem to fix or mine?  Should I file the taxes with the old or the new W-2?  As best as I understand it, the new W-2 will be written as if I made this contributions. So there will be a discrepancy between what I actually earned and what the W-2 says. How should I handle this discrepancy? Declare it as extra income? Or claim it back in case I earned less than I should have?


Let G be a finite group such that the automorphism $f:G\to G$ sends more than three quarters of elements of G to their inverses. Show that $f(x)=x^{-1}$ for all $x\in G$ and that $G$ is abelian.


* (10k+ link) was deleted by Community♦. Why?  I searched a little and found reasons for deletion like  or . But I can't see why my post was deleted.  I don't care about it being undeleted. I just want to know why. And in the process I would find it great if we display a reason when a question gets deleted out of the blue.  * 1 month old, 2 up- and 3 downvotes


Showing that the set of all algebraic numbers is countable

Is this a valid proof ()?  Let the roots of a polynomial of $n$th degree (whose coefficients are rational) be written as:  $$P_n^{\mathbb{Q}}$$  and the polynomial is then:  $$a_nx^n+a_{n-1}x^{n-1}+...+a_0x^0$$  where $a_i \in \mathbb{Q}$ where $0 \leq i \leq n$ and $i \in \mathbb{N}$  Then $P_n^{\mathbb{Q}}$ will have at most $n$ roots.  Then the set of all roots is:  $$A = \cup_{n \in \mathbb{N}}P_n^{\mathbb{Q}}$$  Then $A$ is countable because: 1) There is a countable number of the sets of roots of the polynomial by definition i.e. ($\cup_{n \in \mathbb{N}} P_n^{\mathbb{Q}}$). 2) The number of elements in each set is countable.  And we know that the countable union of the countable sets is countable.  EDIT: My question is different to the one linked, because I am merely asking whether my proof is valid.


I wanted to add a high score to my game but I don't know how I already tried to find some videos for it but I just can't find the right one. I already have a scoreUI on my game I just wanted to add a high score.  Here is my UIManager's script which consists of different functions including the score system.  using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using UnityEngine.SceneManagement;  public class uiManager : MonoBehaviour {  public Button[] buttons; public Text scoreText; int score; bool gameOver;  // Use this for initialization void Start () {     gameOver = false;     score = 0;     InvokeRepeating("scoreUpdate", 0.5f, 0.25f); }  // Update is called once per frame void Update () {     scoreText.text = "" + score; }  void scoreUpdate(){     if (gameOver == false) {         score += 1;     }   } public void gameOverActivated(){     gameOver = true;     foreach(Button button in buttons) {         button.gameObject.SetActive(true);     } }  public void Play() {     SceneManager.LoadScene("level1"); }  public void Menu(){     SceneManager.LoadScene("Menu"); }  public void Retry() {     SceneManager.LoadScene(SceneManager.GetActiveScene().name); }  public void Pause() {      if (Time.timeScale == 1) {         Time.timeScale = 0;     }     else if (Time.timeScale == 0) {         Time.timeScale = 1;     } } }   I got the score system from Charger Games. Here is the link to the   and here is what my game looks like


Can I install Ubuntu without losing Windows 8?

I have a Lenovo IdeaPad U410 laptop running windows 8.1. I tried Ubuntu from a live USB and I liked it so much that I think I want to replace it as my OS.   I have two questions:   If I install Ubuntu completely, will I still keep windows/all my windows data? How can I import my windows data to Ubuntu?(photos, videos, documents, apps, etc.)   also, how good is Libre Open Office? Is it worth trying to re-install the Windows office suite?  thanks :)


How do I convert a byte[] to a string? Every time I attempt it, I get      System.Byte[]    instead of the value.  Also, how do I get the value in Hex instead of a decimal?


how can I recover /etc/security/limits.conf?

I am working on Ubuntu 16.04, I accidentally deleted the entire limits.conf entry.  Is there any way to recover it?


Is possible to get all post metadata that themes can add

When i activate theme, theme adds new fields to post page. For example "news source". Is possible to get list of fields which theme added to post page?  With "get_post_meta", i can reach metadata for existing post. If "news source" filed was empty, "get_post_meta" doesn't show "news source" in results.


Why sum of two little "o" notation is equal little "o" notation from sum?  $o( f(n) ) + o( g(n) ) = o( f(n) + g(n) ) ?$  For example:   $f(n) = n^3$  $g(n) = 1/n$   so    $o(f(n)) = n^2$  $o(g(n)) = 1/n^2$   and    $o( f(n) ) + o( g(n) ) = n^2 + 1/n^2$ $o( f(n) + g(n) ) = n^2$   Of course, I could write it like   $o( f(n) ) + o( g(n) ) = n^2 + o( g(n) )$ $o( f(n) + g(n) ) = n^2 + o( g(n) )$   My question is why? I don't understand it, because in first we always get two parameters.


Long code in question: Adding a hide/display button

Many a time and oft there is a real need for long sequences of code, especially stack traces or . This also happens in other SE sites, TEX being a . Unfortunately, these long code blocks can reduce the readability of the question, and let important non-code text ignored.  Do you think that adding a show\hide (or collapse\expand) button would be a good idea?  Addendum  My first idea was to have only a collapse\expand button, but reading the comments and  made me think that other functionality could be added:   Expand\Collapse Copy to clipboard Open in a new window Toggle line numbers on and off - simplifies referring to a specific line in an answer.    might be a good example.  UPDATE:  This is really annoying in Server Fault . The question itself virtually undetectable between all the long code snippets.


Javascript mechanism to autoscroll to the bottom of a growing page?

Hopefully, this will be an easy answer for someone with Javascript time behind them...  I have a log file that is being watched by a script that feeds new lines in the log out to any connected browsers.  A couple people have commented that what they want to see is more of a 'tail -f' behavior - the latest lines will always be at the bottom of the browser page until the viewer scrolls back up to see something.  Scrolling back to the bottom should return you to the auto-scrolling behavior.  My google strikeout on this one is - hopefully - just a matter of not knowing anything at all about javascript and therefore, not knowing what keywords to search for.  I don't need a complete solution - just a 'close enough' that lets me jump in and get my hands dirty.  EDIT:  I've been attempting the scrollTop/scrollHeight idea, but am clearly missing something.  I've done next to nothing with Javascript, so again I'm probably asking very low-level questions:       This was one of many permutations.  Obviously, I can't output the log line-by-line in javascript, but I'm just trying to see the correct behavior.  What's the missing link I need here?  EDIT AGAIN: This has turned into a far more interesting problem that I first expected.  The code suggestion using window.scroll does do the trick.  I started playing with restricting the scroll to only take place when the browser was at the bottom of the document body.  This is easy enough to do in theory, but in practice it hits a snag:  Every time you get new text from the server, the size of the body increases and your current scroll position is no longer at the bottom of the document.  You can no longer tell the difference (using scrollHeight, clientHeight and scrollTop) whether the user has scrolled up or if the text has just shot beyond their view.  I think that if this is going to work, I'm going to have to commit myself to having a JS event that fires when the user scrolls and turns off scrolling if they are above the bottom of the window, but turns it back on if they have scrolled down to the point where they are effectively at the bottom of the view.  I'm looking at the onScroll event and, given that the math on the variables I mentioned works out pretty well, I think I am on the right path here.  Thanks for your input, everyone!


I'm currently a third year undergrad writing about Minimal Surfaces. In particular, trapped surfaces and black holes.  What does the  have to do with this? And does the theorem directly predict the existence of black holes?


Is the feature to view interesting new questions on other sites discontinued?

Until a few days ago when the top bar was redesigned, there was a useful feature to quickly view interesting new questions on the other SE sites. It provided (at least for me) a good opportunity to raise my interest in the other stackexchange sites.  Is this feature removed, or just harder to access?


Media keys not working for iTunes high Sierra

I don't know what's happening but, during the day media keys accidentally start/stop working for manage iTunes.  For me helps only rebootthe whole system. I've googled for solution but any of it not work for me.  (there are no any of extensions like Spotify, Deezer etc on mine). Any ideas? Thanks in advance.


How safe is following code for creating mysql - yearly resetting field, safety also considering input from multiple requests

I HAVE tables in this test code:  table WORKER -> name varchar(50)      , spec varchar(50) UNIQYE  table KEYGEN- > id INT AUTO_INCREMENT , year varchar(50)  spec should be like = 2009/54.  CODE: for checking and reseting (truncating) keygen table.  $insertedid=""; //to put last inserted id from keygen  $spec="";   //spec number generated from year + $insertedid in table keygen $year=date("Y");  //current year  $query="SELECT * from keygen WHERE year='{$year}' ";      if($noviRed=$mysqli->query($query))     {         if($noviRed->num_rows==0)         {             $truncate="truncate keygen";                  if($mysqli->query($truncate)) {echo"<h2> TRUNCATING  TABLE OK </h2>";}  else { exit("fatal error");}              $query2="INSERT INTO keygen(year) values('{$year}') ";                 if($mysqli->query($query2)) {$insertedid=$mysqli->insert_id;} else {exit("fatal error");}         }         else         {              $query2="INSERT INTO keygen(year) values('{$year}') ";                 if($mysqli->query($query2)) {$insertedid=$mysqli->insert_id;} else {exit("fatal error");}         }     }     else {exit("fatal error");}   CODE: for inserting data into worker table.  $spec=$year."/".$insertedid; //generating spec number  if($insertedid!="" AND $spec!="")    {     $query3="INSERT INTO worker(name,spec) values('{$name}','{$spec}') ";         if($noviRed=$mysqli->query($query3)){echo"<h1>SUCCES </h1>";}     else {exit("fatal error");} }


Inverse image of the sheaf associated to a module

In Hartshorne, Algebraic geometry it's written, that for every scheme morphism $f: Spec B \to Spec A$ and $A$-module $M$ $f^*(\tilde M) = \tilde {(M \otimes_A B)}$. And that it immediately follows from the definition. But I don't know how to prove it in simple way. Could you help me?


Extracting lines that has match in the first column?

I have two files:  file 1:  a,txt1,v1 b,txt2,v2 c,txt3,v1 d,txt4,v2   file2:  a,txt5,v2 b,txt6,v1 xc,txt7,v1 xd,txt8,v2   I want to refine the files. I only need the lines where the 1st column in file1 has match in file2.   The new file1 should contain:  a,txt1,v1 b,txt2,v2   Similarly, file2 should be refined to contain only lines where there is a match in the 1st column with file1. So file2 should be:  a,txt5,v2 b,txt6,v1


I've read recently that ++i is much more efficient in C++ than its counterpart i++ because the first (++i) does the increment and returns the incremented value, whereas the latter (i++) creates a copy of the value, return it and performs an increment.   Does the same happen in Java?


Are quantum-entangled particles affected by relativistic speeds?

In  to a recent question on World Building, I suggested that quantum-entangled particles would be a good way for ships traveling at relativistic speeds to communicate. My understanding is that quantum-entanglement allows for instantaneous action at a distance.  Is this accurate? Do quantum-entangled particles, when flipped, effect an immediate/instantaneous flip on the other side? Do relativistic speeds affect quantum-entangled particles in their speed of "communication?"


opengl storing multiple indices into indices buffer

After parsing collada files I found out that we have to load two(or more) indices each pointing to say a vertex or normal etc. like this (
3 0 2 0 0 0
)  Is there a way to load (and use)these indices to indices buffer(ELEMENT_ARRAY_BUFFER) like this (vnvnvn...) ; where v is vertex pointer, n is normal pointer from the above. with vertices loaded to VBO1 like (vvvv...) and in VBO2 like (nnnn...). So that we dont have to repeat the normals in VBO2.  VBO like (vnvnvn...) is also ok. (and not something like this ), I'm not trying to use multiple indices buffer. I'm trying to put all the given indices into one index buffer and use them alternately.  (If I wasnt clear i will try for more clarification.)


how to disable ctrl+esc shortcut windows 10

Pressing ctrl+esc opens the windows start menu.. I'd like to disable this shortcut but still have normal functionality of ctrl and esc individually. Is this possible?


Why can't $A_4$ has a subgroup of order $6$?

Can anyone provide with an explanation of why the group $A_4$, which is the group formed by the set of even permutations of $S_4$ under the operation of composition of functions, can not have an order of $6$? I know Lagrange's Theorem tells us that the orders of possible subgroups of $A_4$ are $1,2,3,4,6,12$, and I can find a subgroup a subgroup of all of the orders listed except $6$, and I'm pretty sure there is not one, but cannot come up with a solid explanation as to why this cannot happen?  Thanks for the help!


Summary of theorems about polynomial irreducibility over Q[X]

Is there a good summary of theorems to apply when deciding if a polynomial in $\mathbb{Q}[X]$ is irreducible, specifically one with positive integer coefficients?


How to access a variable from another C# script in Unity

I am working on a simple game project, and have a problem. The problem is accessing the variable from one script to another.   For example :-   I have 2 Scenes (Game Scene and Game Over Scene), Game Scene has a Player Game Object , who has a int Variable Score.   using UnityEngine; using System.Collections;  public class Game_Scene_Script : MonoBehaviour  {      private int Score ;       // Use this for initialization      void Start ()       {           Score = 0 ;      }       // Update is called once per frame      void Update ()       {           // Let us assume some one played the game           // And Now the Score is 207           Score = 207 ;       } }   Now I want to access that int Variable Score in Game Over Scene which a Game Object.  So how can I access that int Variable from that script?   I searched for, but couldn't find any proper answer I wanted. Even-though some answers are in JavaScript , some are in Unity 4.x etc.


Character encoding issue using php Laravel

I am using a multilingual feature in one of my project and having a following issue.  1) Words,characters doesn't display properly on frontend.  The mysql table collation is set to  "utf_8_general_ci"  I got the following output on frontend.     ÙˆØ§Ù‚Ø¹ÛŒ , Ù¾ÙˆÙ„ , Ø¨Ø§ÛŒØ¯   I have also placed this in header tag  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">   Can you guys please have a look at this.


This is a two parts question  1) Is there a significant reason I should get the Tamron 70-200 G2 rather than the Tamron SP 70-200mm F2.8 Di VC USD?  2) Would getting the Canon 70-200L (first version) be a better purchase then the Tamron in question 1?


I read this sentence: "They all helped load up the car." I cannot understand why "to" is missing here. As "They all helped to load up the car." I can be wrong but "to" makes more sense to me. But there must be some point behind omitting "to" that I cannot understand and need help with.


Most of those Metro apps on my Windows 8 computer won't open. It looks like the internal renderer is broken or something like that. Here is some screenshots.       This is the store app. The logo and the loading gif is floated toward the left side.        This is the Skype app. The logo doesn't even show up.   I have tried the  but the issue persists.   As far as I know, the so-called Metro Apps uses HTML and JavaScript, which basically is a webpage with an extra command shell. (Bad decision, Microsoft.) Is there a probability that the renderer is broken?  Here's the Weather app:


How to say windows not to use specific network connection for Internet traffic?

I have slow VPN connection to another computer, which is also connected to internet as my computer is.  When this connection is active, all browsing traffic goes via remote computer, although it is slow.  How to say Windows NOT to use this VPN connection with internet at all?  Setting higher metric does not help.


how can I modify the font of just the formulas in TeXLive?

For sure it's a really silly question, but I can't find a solution: how can I change the font of just the formulas in a TeXLive document?  I want a style where the "f" (for "function") is elegant, slim, tall, a bit oblicuous and with serifs, similar to a little integral sign, and the "a" is nearly a circle, like this one:     Instead, I get a really awful style, with an "f" too litle and fat.    Does somebody know the name of the font and how can I change it?  All the best and thanks a lot!!


Use raw reference or std::reference_wrapper

I've noticed the implementation of std::reference_wrapper in C++11, however, I'm wondering why I should use the std::reference_wrapper instead of a "raw" reference variable. I've understood that a reference wrapper is an object that can be copied and whatever, but still, why should I use it instead of a reference? What's the point of this feature? Let's consider the following pseudo-code class A;  A myA{};  A& refMyA = &a; std::reference_wrapper<A> refWMyA = std::ref(A);   void foo (const A& aRef) {// do stuff}  void bar (const std::reference_wrapper<A> aRef) {// do stuff}  Why should I prefer bar rather than foo?


How do I get Google to show links to my site hierarchy in search results?

I have recently noticed that for some websites, Google is linking to different locations in the site hierarchy instead of just the destination page URL.  For instance, searching for "Malibu Rum Drink Recipes" results in an entry at Bar None Drinks that shows the following:     Drink recipes containing Malibu Rum   Choose from our collection of great drinks made with Malibu Rum.   www.barnonedrinks.com > Drinks > By Ingredient > M   Each of the individual segments between the ">" marks are clickable and take you to that section of the site.  How do I get Google to show this for my site?


How to determine the propensity score classifier validity?

I've got a bit more background in machine learning than statistics. Let's say that I want to analyze causal effects based on propensity scores of the treatment and control group. I know that most often the propensity scores are determined using logistic regression. Can I use another algorithm to better handle this estimation for data I know are not linear, like random forests, boosting or neural nets ?   If I do use a different classifier, how can I measure if they're doing better than logistic regression ? Measuring accuracy doesn't really work.


In $C[0,1]$ prove that the subset of Lipschitz functions is dense. I can't prove it.


I'm using the Arduino IDE in Ubuntu, and am having issues with the serial port. It has worked in the past, but for reasons that may be unnecesary, I felt the need to change the ownership of some of the files from root ownership to my users ownership.  This made the IDE work correctly, but I lost the ability to use the correct serial port.  In the dev folder, the port I need is listed as permission 166. Someone (who is no longer in the area to help me) swapped the permissions to 666, which made it all work gloriously.  However, it reverted back as soon as I restarted my computer, and if I now try to use the command:  sudo chmod 666 ttyACM0   nothing happens. No error messages, but no permission change either.    How can I change it, and how can I get it to change permanently.  I apologize if this question is overly simplistic or unclear, I'm an ubuntu noob, and I wouldn't begrudge feedback!


I am trying to change the name of the Appendices. This is what I've done:  \begin{appendices} \input{muonSF} \input{Wmass} \input{BDTCrossCheck} \end{appendices}   using the package appendices. My problem is that I need to change the name of appendix to Anexo (spanish for appendix), and also I need a page before all appendices with only the word Anexo.  How can I do that?


Convergence of $\sum \frac{a_n}{(a_1+\ldots+a_n)^2}$

Assume that $0 < a_n \leq 1$ and that $\sum a_n=\infty$. Is it true that  $$ \sum_{n \geq 1} \frac{a_n}{(a_1+\ldots+a_n)^2} < \infty $$ ?  I think it is but I can't prove it. Of course if $a_n \geq \varepsilon$ for some $\varepsilon > 0$ this is obvious.  Any idea? Thanks.


Am I correctly concluding that these two AC/DC adapters are interchangeable

I'm in the US with 120V mains. I have a "heavy" style AC/DC adapter (weighs a pound or so) and a lighter one (weighs a couple of ounces) which came off a 1TB Seagate NAS. Can I replace the heavy one with the light one?  Here are the specs for the heavy one:  AC100V  50/60Hz 19VA DC 12V 1000mA   and here are the specs for the light one:  AC INPUT: 100-240V~ 50-60Hz, 0.65A max, 51-80 VA DC OUTPUT: 12V  2A   If I understand correctly, the DC output of the lighter one is 12V and is capable of handling a draw (e.g. from a DC motor) up to 2000mA, so in that regard it is just as capable as (more capable than) the heavy one.  But I know pretty much diddly about electric, so I don't know how to interpret what 0.65A max, 51-80VA means on the AC input side.  P.S. The writing is so small, I can't tell if that is a tilde ~ or a minus-sign after the 240V.


Unable to find the view and getting a null reference

Hi I'm learning android development with an Udacity course, i'm getting an error on trying to add a child view to an LinearLayout. Following are the xml file and the class files for the activity  Please help  the error i get is                                                                           Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.LinearLayout.addView(android.view.View)' on a null object reference  numbers_activity.xml      <?xml version="1.0" encoding="utf-8"?>     <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"             xmlns:app="http://schemas.android.com/apk/res-auto"             xmlns:tools="http://schemas.android.com/tools"             android:layout_width="match_parent"             android:layout_height="match_parent"             android:orientation="vertical"             android:id="@+id/rootView"             tools:context="com.example.android.miwok.NumbersActivity">       </LinearLayout>   NumversActivity.java      package com.example.android.miwok;      import android.support.v7.app.AppCompatActivity;     import android.os.Bundle;     import android.util.Log;     import android.widget.LinearLayout;     import android.widget.TextView;      import java.util.ArrayList;      public class NumbersActivity extends AppCompatActivity {              @Override             protected void onCreate(Bundle savedInstanceState) {                     super.onCreate(savedInstanceState);                     setContentView(R.layout.activity_phrases);                      ArrayList<String> words = new ArrayList<String>();                     words.add("one");                     words.add("two");                     words.add("three");                     words.add("four");                     words.add("five");                     words.add("six");                     words.add("seven");                     words.add("eight");                     words.add("nine");                     words.add("ten");                      LinearLayout rootView = (LinearLayout) findViewById(R.id.rootView);                      TextView wordView = new TextView(this);                     wordView.setText(words.get(1));                     rootView.addView(wordView);              }     }


Not quite sure why i'm getting a NullPointerException, new to Java so any help would be greatly appreciated!  public class MainActivity extends AppCompatActivity {       private TextView httpstuff;      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);         TextView httpstuff = (TextView)findViewById(R.id.tvHttp);         Button button = (Button) findViewById(R.id.button);         button.setOnClickListener(             new Button.OnClickListener(){                 public void onClick(View v){                     new JSONTask().onPostExecute("http://samples.openweathermap.org/data/2.5/weather?q=Chicago&appid=93eea9a9277a0520d2f444c3ff8c62da");                 }             }     );  }     class JSONTask extends AsyncTask<String,String,String> {         @Override         protected String doInBackground(String... urls) {         HttpsURLConnection connection = null;         BufferedReader reader = null;         try {             URL url = new URL("https://samples.openweathermap.org/data/2.5/weather?q=Chicago&appid=93eea9a9277a0520d2f444c3ff8c62da");             connection = (HttpsURLConnection) url.openConnection();             connection.connect();              InputStream stream = connection.getInputStream();             reader = new BufferedReader(new InputStreamReader(stream));             StringBuffer buffer = new StringBuffer();             String line;             while ((line = reader.readLine()) != null) {                 buffer.append(line);             }             return buffer.toString();          } catch(MalformedURLException e) {             e.printStackTrace();         } catch(IOException e) {             e.printStackTrace();         }                      finally {             if(connection != null){                 connection.disconnect();             }             try{                 if(reader != null){                     reader.close();                 }             }catch(IOException e) {                 e.printStackTrace();             }          }             return null;     }    @Override    protected void onPostExecute (String result){        super.onPostExecute(result);        httpstuff.setText(result);         }     } }   Android Studio Logs says that the NullPointerException error is occurring at  httpstuff.setText(result);   And at  new JSONTask().onPostExecute("http://samples.openweathermap.org/data/2.5/weather?q=Chicago&appid=93eea9a9277a0520d2f444c3ff8c62da");   private TextView httpstuff is a designated as a field but says that it is not initialized, but I use it in class JSONTask? Any ideas on why the exception is occurring? Thanks alot in advance!


Can't call the method and display it an apex repeat

Hi I have the following problem. I wrote a class that would display events on a visual force page but it doesn't seem to be working as it should. The query is now fixed and it is allowed to be passed by an anonymous user however the events don't get displayed. Can anyone give me a hand? I don't know what I;m doing wrong  Here is the apex class    public with sharing class HarborEventController { private final Event__c eventlist; public HarborEventController(ApexPages.StandardController controller) {     this.eventlist = (Event__c)controller.getRecord();     this.eventlist.displayevets();     HarborEventController = new HarborEventController(); }   public Integer eventcount{get;set;} public HarborEventController (){    eventcount = [SELECT COUNT() FROM Event__c];     }  public list<Event__c> mainlist {get;set;}   public list<Event__c> displayevents(){     mainlist = new list<Event__c>();     String mainsoql = 'SELECT Id, Name__C, Message__c, Display_Date__c FROM Event__c ';      mainsoql += 'ORDER BY Display_date__c LIMIT 5';     mainlist = Database.query(mainsoql);     return mainlist;         }}   system.debug(mainlist);  and visualforce page:           <apex:composition template="eh_base">           <apex:define name="heros-content">             </apex:define>       <apex:define name="content">

       <apex:outputPanel layout="block" rendered="{!AND(NOT(ISNULL(mainlist)),mainlist.size>0)}">         <apex:form id="blockofeventtorepeat">               <apex:repeat value="{!mainlist}" var="evententry" id="repeat">

<apex:outputLink styleClass="evententry-header block" value="{!$Page.eh_eventdetails}?id={!evententry.id}">{!evententry.Name__c}</apex:outputLink>
                     <apex:outputPanel >
                                                     {!evententry.Message__c}
                        <apex:outputLink styleclass="btn btn-sm btn-default" value="{!$Page.eh_eventdetails}?id={!evententry.id}">Read More</apex:outputLink>                      </apex:outputPanel>
                 </apex:repeat>                    </apex:form>                 </apex:outputPanel>

           </apex:define> </apex:composition>


Finding two rationals that satisfy an equation

So the homework question goes as follows:     Find rational numbers such that $ \sqrt[3]{7+5\sqrt{2}}=\alpha+\beta\sqrt{2}$   The homework only asks for one pair of $\alpha$ and $\beta$ and it is almost trivial to find the solution $\alpha=\beta = 1$  Solution:  $\sqrt[3]{7+5\sqrt{2}}=\alpha+\beta\sqrt{2}$  $7+5\sqrt{2}=(\alpha+\beta\sqrt{2})^3$  $7+5\sqrt{2}=\alpha^3+6\beta^2\alpha +\sqrt{2}(3 \alpha^2 \beta +2\beta^3)$  By identification of coefficients:  $7=\alpha^3+6\beta^2\alpha \space and \space 5=3 \alpha^2 \beta +2\beta^3$  So I just "saw" that $\alpha=\beta = 1$ is a solution  My question is, how do we find other solutions?  Thank you!


How to clean up the RAM memory that is being used as cache memory?

My processor is using a big part of my RAM memory as cache and I want to clean it up because of that; will it prejudice something?


I'm trying to include a link to some code on OneDrive; the link includes an underscore, which is causing a lot of trouble.  I tried adding the entry like this:  @misc{code,     title = {Code},     url = {https://1drv.ms/link_link} }   I use \usepackage{url} and \bibliographystyle{IEEEtran}. Everything compiles fine and the bibliography shows the correct entry. However, if you click the link, it opens a page at https://1drv.ms/link - so ignoring the underscore and everything after it, which leads to a wrong page. Even copy and paste from the PDF doesn't work since the underscore is copied as space, which again is a broken link.  How can I add the link such that it can be clicked and copied properly? I tried \_, \usepackage{underscore}, {{link}}, different bibtex entries but nothing worked. Also all the related questions/answers don't answer mine.


How to create a torus with divided cuts that correspond to the direction of the torus

I have a question about the mesh and geometry of a torus and how to achieve a certain physical effect.     This is what I am talking about. I need to have a divided cut that is perpendicular to the direction of the faces of the torus.   Here is a picture of what I want to acheive:   Notice how the torus-es/curves each have dividing segments that lie inbetween the faces of the torus? I'd like to achieve this effect, but I am not sure how to. Any help would be appreciated.


Earlier I was using Windows 7. It was having IDM (Internet download Manager) from which I was able to download almost all the types of files from the internet. I was also able to download online streaming videos by the help of IDM. It was really helpful for me regarding the downloading. I was also able to resume my downloads which were paused or stopped due to some reason.  So, I would like to ask that whether there is any software in Ubuntu form which I could get these functions and if there is any software, then how to download it.  I am a new user in Ubuntu. I am using Kubuntu 13.04.


Does a Pokémon stuck in a gym over a full day collect coins for that day?

As an example, let's say I put a Pokémon in a gym, say, Tuesday at noon, and it remains in the gym until Thursday at noon. Assuming I have nothing else in gyms collecting coins, would I get coins for this on Tuesday (where the Pokémon wasn't returned to me), or Wednesday (where it was neither placed in the gym nor returned); or would I only get coins for Thursday?


What does (1UL << 22) mean in MySQL Source Code Documentation

I am updating an existing library in Java I have to connect to MySQL 8 but the source code documentation has a #DEFINE I don't understand. I'm looking specifically at the client capability flags at .   Some of the capability flags show the decimal value so I can convert them to unix for easier bitmasking but there's some flags like CLIENT_CAN_HANDLE_EXPIRED_PASSWORDS which has the value of (1UL << 22). I have no idea what (1UL << 22) means to be able convert that to something I can use in java.


The program below prints (20,10) but I do not understand why it is not (10,20), as the foo method should switch the variables.   Could somebody please explain this? Thank you  public class Test {   public static void main(String[] args)   {     int x = 20;     int y = 10;     foo(x,y);     System.out.println(x + " , "+y);   }   public static void foo(int x, int y)   {     int tmp = x;     x = y;     y = tmp;   }  }


How to recover 1.4GB video file that can't be read (Canon)

I was shooting video with a Canon EOS 7D, and it was telling me the battery (I thought) was getting hot, so I opened the battery cover and it promptly shut off. It was a battery pack, and the batteries stayed in place even though it shut off. So now I have a 1.4 GB file that even ffmpeg cannot read. I have plenty of other files shot with the exact same format that I could look off of to read the data if I needed to, but how do I do that.  ffmpeg -i on the bad file:  [mov,mp4,m4a,3gp,3g2,mj2 @ 000001572b9fa3a0] moov atom not found MVI_3891.MOV: Invalid data found when processing input   ffmpeg -i on a good file:  Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'MVI_3892.MOV':   Metadata:     major_brand     : qt     minor_version   : 537331968     compatible_brands: qt  CAEP     creation_time   : 2016-01-28 12:04:16   Duration: 00:12:10.86, start: 0.000000, bitrate: 46897 kb/s     Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuvj420p(pc, smpte170m/bt709/bt709), 1920x1080, 45357 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc (default)     Metadata:       creation_time   : 2016-01-28 12:04:16     Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default)     Metadata:       creation_time   : 2016-01-28 12:04:16


broken packages when trying to install phablet-tools

I can not install phablet-tools.    phablet-tools : Depends: click but it is not going to be installed E: Unable to correct problems, you have held broken packages.     This is response I get from the terminal.


How do you see what packages are available for update

FreeBSD user joining your ranks.  I've been asked to look after an Ubuntu Server running 10.04 LTS.     I see from /usr/lib/update-notifier/update-motd-updates-available that there are a number of updates on the server however I do not see a way to tell which will be updated.  Would anyone be able to point me in the right direction so as I can see which packages will get updated when I run apt-get upgrade?  UPDATE:  Can't answer my own question at the moment so throwing this in here for the time being:  Along with the apt-get upgrade --dry-run suggested below,  /usr/lib/update-notifier/apt-check -p will list all packages that have updates available.


Why is quantum measurement not happening all the time?

I have a question which may be very naive yet I have no answer. I studied undergraduate quantum mechanics 4 years ago now and even if I studied more advanced stuff like QFT I feel like I don't understand the basics yet, so feel free to answer me with "take a QM book and study it" and close the question. My problem is about quantum measurements and superposition of states. I really don't understand why measurement is not happening all the time. I feel like I may be confusing measurement with interaction, but, for example if we have a magnetic field and a an electron passing through it, depending on how it is deflected it means the interaction with the magnetic field fixed a component of the spin: the electron now has spin up, it's not anymore in a superposition of spin up and down. Now, these kind of interactions happen all the time, every particle interacts with its environment constantly so I feel like the successions of all these interactions constantly fixes the quantum states of all the particles in the universe. Why is this wrong? What am I missing and what are the flaws of this view? I'm not sure this is the final version of my question and edits may arrive as soon as some comments/answers clarifies for me what I am actually not understanding.


Many apps are missing from Ubuntu Software app

I tried to enable additional repositories according to the instructions from , however my Ubuntu Software app is still missing a lot of popular apps. Is there anything I'm missing?  Ubuntu 16.10 Ubuntu Software app 3.20.1


Add an image directly from the clipboard

I've tried to find other questions covering this, but (surprisingly) I did not find any.  When I want to add a screenshot to a post, as far I know the only way to do it is to save it as a file and then upload the file, using Stack Overflow's image hosting. OK, much better than finding a hosting site yourself, but sometimes I wish I could just paste the image from the clipboard.  It's not as straightforward as it may seem, I know. , and it needs a Java applet to get it done.


(sorry if I get some of the terminology wrong, English is not my native language)  In Dutch we have the convention to place a comma between two verbs if they are not part of the same verb phrase. I was wondering if the same convention is used in English.  Here is an example:     How well the species adapted, remained unknown   This rule is not specifically mentioned on the websites that I checked, but I am also unsure if in Dutch this is the actual rule, or just some sort of mnemonic aid.


How Can I prove (a+b) mod m = (a mod m) + (b mod m)) mod m?

modular arithmetic  How Can I prove (a+b) mod m = (a mod m) + (b mod m)) mod m ?


What is the 18% gray tone, and how do I make a 18% gray card in Photoshop?

I have heard about 18% gray tone — what is it really, and why 18% (and not 20% or some other value), and how can I make it in Photoshop?


I just posted an answer. (Revision history .)  I edited it a few seconds later (within my 5 minute grace period), and it comes up as a new revision!? Why?    ^^You can see 'answered 1 min ago', and then 'edited 1 min ago' - how is that possible?  Additionally, !?    I don't think this is a dupe of . See my comments on AI.E's answer. If you're a mod, it will really help.


I would like to have a nice template for doing this in development. How do I reset an increment identity's starting value in SQL Server?


When it is said, for example, that grand unification took place , how are these figures of time derived?  Moreover, do these figures have any meaning, considering that during these epochs, spacetime was incredibly warped, and immediately after inflation, matter was at an incredibly high energy state and moving at relativistic speeds?


Let $D$ be a tetrahedron with corners $(0,0,0), (2,0,0), (0,6,0), (0,0,4)$. Find the volume of $D$ by setting up a triple integral.   The equation of the plane containing these points is $$6x+2y+3z-12=0.$$ My question is how do I set up the bounds on the three integrals to get a volume? Thanks for the help.


How to calculate highest CCU (concurrent users) in server linux?

I used Jmeter to test stress of my application, i can check information of server RAM, CPU while testing. Base on the information, how can i calculate value of highest CCU (concurrent users) while the server can run well.


How to prevent system updates on Windows 10?

Quite simply.  I would like to prevent updates on my windows 10 system from happenning. Before any body asks why? Because it is incredibly stupid and damaging thing done by those idiots at microsoft. The problem is that updates happen at random time, restarting the computer with no regard what so ever if something is running on a computer and no option to postpone or cancel.  Example: We have run an important data transformation and import into database. The process took many hours and we have left computer to do its job. What happened... the update. Our batch job was interrupted, data was corrupted, database was left in inconsistent state nad worst of all, the data was not even available at our source any more.


Suppose you want to activate an alarm triggered once a certain location is reached. There exist something capable of this already on Samsung S9 for example


I have a simple validation date which doesn't seem to work. I wanted to ensure that the start date is not greater than the end date.     function validateDate() {   var d1 = new Date.parse(document.getElementsByName("dt1").value);   var d2 = new Date.parse(document.getElementsByName("dt2").value);    if (d1.getTime() > d2.getTime())     alert("Start date cannot be greater than End date");  } <label for="dt1">Start Date : </label><input type="date" id="dt1"> <label for="dt2">End Date : </label><input type="date" id="dt2" onfocusout="validateDate()">     I attached a fiddle to demostrate this better :    I am a complete novice in doing javascript and would appreciate any advice and comments.


I´ve been working on a car from Rocket League. First, I decided to design the "basic shape" of the body and when I added the Subdivision Surface modifier I had the problem you can see in the photos. By the way, the car I´m trying to make is the one in the upper right corner of the screen.  BEFORE SUBSURF:    AFTER SUBSURF:    As you can see, the front grille has some curves in front of it and I can´t fix the problem either with Ctrl+Ctrl or Ctrl+B or Shift+E  Why does the bevel tool create faces of different sizes?    You can find the blender file and the photos  THANKS!!!!


How to power 12V 1A device with two 6V lantern batteries (1209)?

I have 2 EverReady 6 volt batteries model number 1209. I also have a 12 volt 1 amp screen that I need to power.  How can I power the screen with these batteries?


I seem to have found a minor bug in the formatting of code within comments.  Code that ends in a = followed by a space "consumes" any space after it.  I realize that multiple spaces are automatically removed but in this case I don't think it works quite as intended.  The comment:  code `test = ` tag   Formats as:    I think it should format as it would within a post: code test = tag (With a space between the light gray code area and the word tag.)


Guideline to select the hyperparameters in Deep Learning

I'm looking for a paper that could help in giving a guideline on how to choose the hyperparameters of a deep architecture, like stacked auto-encoders or deep believe networks. There are a lot of hyperparameters and I'm very confused on how to choose them. Also using cross-validation is not an option since training really takes a lot of time!


Recognize the product key after a clone?

With windows 10, after a clone in legacy mode, do the PC recognize the product key on the bios by itself or do I need to run the clone in uefi mode to recognize the product key?


What is the relative speed of two near-light speed particles headed towards each other?

I understand that nothing can move faster than light due to time dilation. I want to build upon my understanding of Einstein's theory of Special Relativity, so I came up with this hypothetical problem for myself:  If both particles are moving at 0.9c towards each other (according to an observer on Earth), what speed does each particle have relative to the other?  I'm stumped since I am only familiar with Newtonian classical mechanics to solve this (which would be wrong). I am aware of Lorentz' factor $\gamma =\frac{1}{\sqrt{1 - \frac{v^2}{c^2}}}$ and the time dilation equation $t_m = \frac{t_o}{\sqrt{1 - \frac{v^2}{c^2}}}$, but I'm not sure how to apply it in this instance. I'm just looking for a gentle push in the right direction. Edit: My prior research:  This article, ,  talks about the effect of a baseball thrown at 0.9c would have as it traveled towards a batter. This is not what I'm looking for since it doesn't explain the math behind finding the collision speed between two high velocity entities.  This question on Yahoo, , asks a similar question to mine, but no math is involved to demonstrate the calculations behind the reasoning.  This question on Physics.SE, , does not answer my question either. I have not been able to find a similar Physics.SE question which can provide me to clues to my own hypothetical question.  I have also Googled the following phrases:    i. "collision faster than the speed of light" ii. "collision of high speed particles" iii. "lorentz transformation in a collision" iv. "collision analysis at light speed"


"Post Question/Answer" button disabled after connection failure

Just now I tried posting a question/answer pair, and it happened that my computer was offline at that time. Instead of trying to load the new question (which is the default behavior) and get a connection timed out message, the "Post question/answer" button was disabled, a webpage reload didn't enable it. I had to navigate back to the Ask Question page again, only to find out my question/answer pair had already been posted (the saved draft also being there too).  If the computer is offline when sending a post, the disabled Post Question/Answer button should probably be fixed to the default behavior explained above. I almost posted an exact dupe of my question because of this, fortunately I caught it in time.


Different name servers for different countries. Speed up DNS lookup time

Is it possible to create different NS for different countries?  For example, we have 4 nameservers:  #for US ns1.us.domain.com ns2.us.domain.com  #for Europe ns1.europa.domain.com ns2.europa.domain.com   DNS requests coming from Europe will go to ns1.europa, ns2.europa and requests from US and other world will go to ns1.us, ns2.us.  Maybe some paid DNS provides can do it? Any other other ways to speedup DNS lookup? Any links and advises are appreciated.


Having trouble preventing users from changing wallpaper/settings

I'm sort of new to linux and I'm having a problem, I'm trying to prevent users from changing the desktop wallpaper (as well as other things but that is the main one)  I know    this has been asked before but none of the current topics helped me and I've been at this for more than a week, They are also kind of old topics.  My configuration is: I installed Edubuntu 14.04, installed gnome (only using gnome for gconf and dconf to get this working, is there a way without gnome?) Have admin account, a standard account and a guest account, Wanting to lock down features on the standard account.  I've already tried doing it in gconf, dconf and using gsettings.  I don't want to use a guest account   I've been trying to use gconf and dconf but it's just not making sense to me, right now I'm trying it in dconf because I couldnt get it to work in gconf, I tried setting it as mandatory and default in gconf but it didnt work (I read that gconf isn't used in the newer versions of Ubuntu in favor of dconf, so that's why I'm trying dconf), right now I'm trying to do  in dconf again (the wallpaper part)  I'm under the impression that I'm supposed to create a file and put all the info they provide in there, like create the user name/database, then the keyfile (how do I make it a .d file?), then dconf update file, right? How do you get it to run after all that?  Do I use a text editor like gedit? I tried going to the directory they said to and nothing is there and I wasn't able to make any new files or directory's in the GUI, and I can't move a file into there. Can you only do that through the terminal?  It would be great if i could restrict it to only the Admin able to change settings so I tried this:   chmod 744 /usr/bin/gnome-appearance-properties   But, I'm getting:  chmod: cannot access 'usr/bin/gnome-appearance-properties': No such file or directory   when I try that.   and I would rather not use this, where you put this in the startup applications:  gsettings set org.gnome.desktop.background picture-uri "file:///usr/share/backgrounds/edubuntu_default.png"  I've seriously tried all the help topics on the forum about this and many other web sites. Please help!  Thanks!


I was viewing my .bash_profile file, and I saw this written inside a block of if statement:  if [ -f ~/.bashrc ]; then        . ~/.bashrc    Can someone explain what the second line is actually doing?


How do you CD change directory into the absolute path of a symbolic linked directory?

I'm currently in a symbolic link directory and I want to go up one level in the absolute path, but I cant as it will hit me back up to my home directory (~). I can do pwd -P to get the absolute path, but how do I pipe that result into the cd command? I always thought it was this: {}   Sample:  10:21:55 {master *} ~/ch$ pwd -P  /home/drupal/sites/all/themes/house  10:22:16 {master *} ~/ch$ pwd -P | cd {} bash: cd: {}: No such file or directory  10:22:20 {master *} ~/ch$


On a custom template, should I use wp_footer?

I have started to learn about WP. I was asking myself the other day : should I use, in my custom template, the wp_footer() to call my scripts or should I go with static script? I can't seem to understand how wp_footer works, tho I know it is a do_action but I actually don't want to change the "core" for wp_footer, I just want to add my own scripts in the footer.  Should I go to the function that call wp_head and add my scripts there or should I write it down in a static footer.php like   Thx!


Is there a way to pipe to a visual editor and then continue the pipeline?

I know that some command-line programs can open visual editors like Sublime in a "wait mode" which opens the editor, lets you edit, and on-close it resumes the program with the file contents (like git commit). I'm wondering if there's any way to write a pipeline like this:  cat $file | sort | [open sublime in wait mode] | grep abc  Ie, I want to take the output of one command, open it in an editor, let me make edits, then it continues the pipeline with the file contents.  Thanks!


Should I season a Teflon-coated stainless steel frying pan

I am not sure if I am allowed to say the brand & model, but here is the spec   Can also be used in the oven since it is made entirely of metal. Thick base with one layer of aluminium between two layers of stainless steel. Gives an even and energy-efficient heat, which reduces the risk of food burning and sticking. Made of stainless steel, which makes the pan durable and easy to clean. Treated with Teflon® Platinum plus, a very hardwearing non-stick coating that makes the pan suitable for everyday use. The exterior is made of brushed steel which means that stains do not show as much as on a high-gloss surface.   Should I season it?  Related question:


After reading , I want to try to re-season a skillet with flaxseed oil; I'm fairly certain I did a terrible job when I seasoned the skillet several years ago. Is it possible to do this with steel wool or vinegar? (I don't have a self-cleaning oven, so that method is out.)


Is there any popular contemporary "classic" D&D material?

I've played the gamut of D&D editions from 2e, 3e, 4e, and the classic BECMI system, and after a year long hiatus from 4th edition, I'm considering running some "classic" D&D again.  I'm aware of continued interest in first edition, but is there any ongoing interest and materials being published, or related or derived from BECMI? (In the manner of Pathfinder and Rules Cyclopedia).


What is in the east of Middle-earth, and why is it all subservient to Sauron?

There are a number of times in Lord of the Rings where the "east" is mentioned -- the pirate ships, the slave-driven farms. And of course all of the peoples subservient to Sauron who come to fight Gondor and the West. Are there any maps of the East of Middle-earth, and what is out there?


A causal loop between set theory and language theory

I've been learning about ZFC set theory on my own for a moment now, and since it's expressed in the language of first order logic I thought I might as well look into that and language theory too. But when I did I immediately ran into a confusion: the notion of a formal language requires the notion of an alphabet, which is understood to be a set of symbols.  So if the notion of a language requires the previous notion of a set, then how can any theory that tries to formalise the notion of sets come after a theory of languages? To me this looks like a catch-22...  Basically what I'm asking is if there is any way to make a theory of formal languages that doesn't requires the notion of sets, of is somehow the fact that languages imply the previous notion of sets is not a problem for set theory.  Can someone with a deeper and more educated understanding of all this enlighten me? Is there some crucial subtelty I'm missing? Or is there no satisfactory answer to this question yet? My head is starting to run in circles...


How should I rename my account's name in Ubuntu 14.04?

I made mistake typing account's name before installation of Ubuntu. I need to change this name, but I can't find clear explanation and step-by-step procedure.  Also, why doesn't Ubuntu change the name of account after editing it in System Settings->User Accounts ?? Even Win'98 had explicit ways to change administrator username!


What is a good PDE book suitable for self study?   I'm looking for a book that doesn't require much prerequisite knowledge beyond undergraduate-level analysis.  My goal is to understand basic solutions techniques as well as some basic theory.


Short story about a gigantic space monster that is big enough to cover half of the Earth

I was looking for a short story I read a while ago but I think is an old scifi story (maybe from the 1960s). It's about some sort of space creature that resembles a lizard that jumps from deeper space to the Earth. The monster is big enough to sit over half the world and it seems invulnerable to any kind of attack. If I remember right, at the end of the story the creature just jumps leaving an almost destroyed planet behind.


Which Stack Exchange website for machine learning and computational algorithms?

I'm currently working on many machine learning and computational algorithms, such as Singular Value Decomposition, Support Vector Machines, and others.  I'd like to ask questions about these topics, but I don't know which Stack Exchange website to use to post my questions.   Should I use ? Should I use ? Should I use ? Should I use ?   How do I tell?  What criteria do I use?


There is a question I have based on the fact: If you take a quadratic polynomial with integer coefficients, take the set $\{1,2,3,4,5,6,7,8\}$, make a partition $A=\{1,4,6,7\}$, $B=\{2,3,5,8\}$, and then evaluate the polynomial with the elements of each set you got an equality.  If now with a cubic polynomial and the set $\{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16\}$, how to pick a suitable partition that accomplish the same fact? I mean is there a general formula for bigger degree?


I have forgotten my Excel password the file was in Win 2003 version. I tried many tools for recovering back the password but none of them helped me.  Please help me…


What is the use of Hidden folders in home?

I saw so many hidden folders when I pressed Ctrl+H in my home folder ! their names are starting with a dot (.) ! like .themes , .config and etc.. Can I please get to know what can I do with those folders ? Or should I delete those ?


Can we shield a certain region of space from magnetic field?

Recently I learnt about shielding a region of space from an electric filed. I wondered if the same can happen for magnetic field.


Figure touching the top or bottom of page causes page numbering to reset to zero?

I am experiencing this weird bug where if a figure touches the top or bottom of a page, is the page numbering reset to zero on that page.  I haven't been able to make a minimal example showing the effect as it seems to be very situational. But I have attached a picture of the resulting pages at the bottom of this post. (Don't mind the blurred out text.)  What could cause this weird behaviour, is it a bug or intended? If it is a bug, where can I report it? And what can I do about it? (Besides changing picture sizes and moving text around by hand.)    Edit: I have made the smallest version of the file I can and attached it here: The picture used is also attached. The first page is indexed as page number 0, when it should be 1.  Notice that I use a non-standard header, footer and margin size. I don't think this should influence that the bug can appear.  The highlight of the text in the second section is necessary to show the bug, I am not sure why.   \documentclass[a4paper, 12pt]{article}  \usepackage{float} \usepackage[margin=2cm, includefoot, footskip=30pt, includehead, headsep=20pt]{geometry} \usepackage{graphicx} \usepackage{soul}  \begin{document} \section{Lorem ipsum dolor sit amet}  \subsection{Lorem ipsum dolor sit amet} Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sollicitudin pulvinar sapien in tempus. \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\ \\  \begin{figure}[h]     \centering     \includegraphics[width=.8\textwidth]{tree.png}     \caption{Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sollicitudin pulvinar sapien in tempus.}     \label{fig_areasOfWork} \end{figure}  \section{Next section} Lorem ipsum dolor \hl{ Lorem ipsum dolor sit amet, consectetur adipiscing elit. In sollicitudin pulvinar sapien in tempus.  Etiam non orci ut dolor efficitur sodales. Mauris egestas sapien nunc, in facilisis mauris elementum ac.} \end{document}


How do I integrate $\frac{\sin x+\cos x}{\sin^4 x+\cos^4 x}$

How do I integrate $$\frac{\sin x+\cos x}{\sin^4 x+\cos^4 x}$$ ? Tried different ways including the tangent half-angle substitution (which seems to be disastrous).


Why do we put a main() function in python instead of just putting the code directly inside the "name == main" clause?

It is said to be a good practice to write the following block of code in your python modules:  if __name__ == '__main__':   # execute only if run as a script   main()   This prevents executing statements when you want to import this module into another program.  However, the curious thing over here is that main() function. We also need to put our code into an actual main method as follows:  def main()     # All code goes here     print("Inside main")   I feel that this is a roundabout way. Are there any benefits to creating a separate main() function and then calling it inside the if-clause?   Instead what is the harm in writing the code directly inside the if-clause?  if __name__ == '__main__':     # All code goes here     print("Inside main")


How to plot a function in integral form with TikZ?

how to plot the function $f:x\mapsto \int_x^{2x}\frac{4}{\sqrt{1+t^4}}\, \textrm{d}t$ with TikZ?


Inbox Messages not updating when switching Account

I am developing a client App using marketingcloudsdk-6.3.4 for implementing Inbox Messages on both iOS and Android. I am facing some issue on switching the account Steps: Login as user A Set unique contact key for A Send messages to that contact key Check for Inbox Messages Logout user A and switch to user B Set a unique contact key for B Again Check Inbox Messages Here for both user getting the same Inbox Messages. My question is, how should we deal with this situation, to prevent from seeing the previous inbox messages if the contact key has been changed?


Which MCU characters are shown to be worthy of Mjolnir in the comics?

Age of Ultron has a scene with , with varying degrees of success and failure.  I was wondering which superheroic characters appearing in the Age of Ultron movie (e.g. Black Widow, Hawkeye, Iron Man, Vision, Hulk, Captain America, Scarlet Witch and Quicksilver) have wielded Mjolnir in the comic-books, and which comic-book issues/arcs did they do so in?


Put console output in a Forms textbox (or something)? (C#)

I'm working with an interesting coding environment that has unmanaged code, managed code, and C#. I have a GUI written in C#, and the associated console outputs stuff using unmanaged code that I don't really have access too. I was wondering if there is a way to read in the console to a text box in my GUI, or something like that? Basically just need access to the text in the console.   (One solution I tried was writing it to a text file, then reading it in, but its doesn't like that, because it is constantly writing)  Any help is appreciated!


In [476]: 3 + 5 Out[476]: 8  In [477]: 3 +++++++++++++++++++++ 5 Out[477]: 8  In [478]: 3 + + + + + + + + + + + 5 Out[478]: 8  In [479]: 3 +++ --- +++ --- +++ 5 Out[479]: 8   Why there is no SyntaxError: invalid syntax or TypeError: bad operand type for unary + error?  I know this handled in compile process, but how it works?


This is the gift that my dad sent (to) me

This is the gift that my dad sent me on my birthday.   Vs   This is the gift that my dad sent to me on my birthday.  Is to required?   Also   Presenting you guys, the trailer of the film.   Vs   Presenting to you guys, the trailer of the film.    Is to required?


How to promote algebraic expressions to operators in quantum mechanics?

Okay, I know that in quantum mechanics the quantum observable is obtained from the classical observable by the prescription   $$ X \rightarrow x,\quad P \rightarrow -i\hbar\frac{\partial}{\partial x} $$   in the position basis. Now my questions are:    What if $x$ or $p$ appears in the denominator in a classical expression?  How to promote this to a quantum expression? What would be the meaning of division by an operator?   My expression likely contains a mixture of $x$ and $p$. For e.g., it could contain terms like $$\frac{p}{x^2}$$ or $$\frac{xp}{(x^2 + a^2)^{3/2}}.$$    How to resolve products of non-commuting operators like $x$, $p$ in a satisfactory way?


Countability as bijective correspondence

I understand some set $X$ is countable if one can define a bijection between it and the set of natural numbers. In notation, is $f:X\rightarrow\Bbb{N}$ permissible, or must one write $f:\Bbb{N}\rightarrow X$? Or does this not matter? I find the latter notation more intuitive.


Find in Files: Search all code in Team Foundation Server

Is there a way to search the latest version of every file in TFS for a specific string or regex? This is probably the only thing I miss from Visual Source Safe...    Currently I perform a Get Latest on the entire codebase and use Windows Search, but this gets quite painful with over 1GB of code in 75,000 files.    EDIT: Tried the powertools mentioned, but the "Wildcard Search" option appears to only search filenames and not contents.  UPDATE: We have implemented a customised search option in an existing MOSS (Search Server) installation.


TikZ: alignment of a path that exits node corner?

Why does a path drawn from corner of a node doesn't align with the node path? It might even be non-horizontal while coordinates tell that it is. Who can I fix this?  \begin{tikzpicture}[thick] \node (left) at (0cm, 0cm)     [draw, anchor=south west, minimum height=3cm, minimum width=1.1cm] {}; \node (right) at (3cm, 0cm)     [draw, anchor=south west, minimum height=3cm, minimum width=1.1cm] {}; \draw (left.north east) -- ++(0.8cm, 0cm)     .. controls +(0.5cm, -1cm) and +(-0.5cm, 1cm) .. ++(-0.4cm, -3cm)     -- (left.south east); \draw (right.north west) -- ++(-0.3cm, 0cm)     .. controls +(0.5cm, -1cm) and +(-0.5cm, 1cm) .. ++ (-0.4cm, -3cm)     -- (right.south west); \end{tikzpicture}   Sample:


Let $A_1, A_2, \ldots$ be events with $A_n\in\mathcal{F}_n$. Show that    $$\biggl\{\sum_{n=1}^\infty \mathbf{P}[A_n|\mathcal{F}_{n-1}]=\infty\biggr\} = \limsup_{n\rightarrow\infty} A_n \text{ a. s.}$$      Hint: Consider the martingale $X_n = \sum_{i=1}^n \bigl(1_{A_i} - \mathbf{P}[A_i|\mathcal{F}_{i-1}]\bigr)$.   I don't even know how to start with this exercise. I think one has to use the result that martingales with bounded increments either converge or diverge to $\pm \infty$ almost surely.  Can you give me a hint? Thanks for your time.


Doing principal component analysis or factor analysis on binary data

I have a dataset with a large number of Yes/No responses. Can I use principal components (PCA) or any other data reduction analyses (such as factor analysis) for this type of data? Please advise how I go about doing this using SPSS.


Elements of $GL_{2}(\mathbb{Z})$ of finite order

Prove that any element of $GL_{2}(\mathbb{Z})$ of finite order has order $1,2,3,4,6$ using Field Theory. My idea is to reduce such a finite order matrix say $A$ with order $n$ to modulo a prime $p$. $\det A=\pm1$ so $A$ will land inside $G=\{M\in GL_{2}(\mathbb{F}_{p}):\det M=\pm 1\}$. $|G|=2p(p^{2}-1)$. So $n\mid 2p(p^{2}-1)$ for all prime $p$. I don't know how to proceed after this.


dual GFCI circuits with multiple protected outlets, all sharing a neutral

I'm trying to wire two GFCI circuits sharing a neutral.  The line is coming in from a 2-pole circuit breaker.  I want to have two circuits at each location, each protected by a GFCI upstream.  Currently, I have it wired as shown below. If I reset 1 GFCI outlet, it works. When I try to reset both GFCIs, the first one trips.  What am I doing wrong?


SO cache going nuts? Or do I need a lot of sleep?

For nearly 5-6 hours now, I am not getting the usual sorted list of questions on  page. Here are two screenshot(with awesome red-circles)(which are becoming more common in my questions :():      As it can be noticed, all the timestamps are placed randomly. Is it newest feature/change in SO? If so, please revert it. :/ Or is it one of the two options mentioned in the question title?


How to hide subcategory posts in main category

I want to show in my Taxonomy only posts which are in Main Category and Subcategories links - but i need to hide posts which are in Subcategories in main category. Do you know how can i do it?   This is simillar situation:


Definition of convergence of real sequence

We say a sequence converges to a real number l if given any epsilon greater than 0 there exists a natural number N such that after the first N-1 terms all the remaining terms of the sequence lie in epsilon symmetric neighborhood of l i.e|xn-l|<epsilon after first N-1 terms.Here instead of less than can I take less than or equal to?Is there any problem if I do so.


does Windows System Restore bring back uninstalled programs?

Does Windows System Restore bring back uninstalled programs?


I have a problem, having purchased 2x4 gb ram of the 2666 mhz vengeance corsair (CMK8GX4M2A2666C16), when I go to insert the two rams together in the asus prime 320m-k motherboard, the PC restart continuously, while inserting  a single  ram(4gb) the pc is fine. The error I can't tell you which one it is because nothing appears to me, the pc gives me the screen to choose whether to enter the bios, and then it starts up again.


I'm very new to LaTeX and I need to create a conference-style poster for a module i'm currently doing. I've been looking around trying to find out how I should best apporaoch this but I can't really find anything concise. I was wondering if anyone would be able to gudie me in how I can approach making an a0 poster in LaTeX?  I've read that I could use the a0poster document class but then i've also seen alot about beamerposter, this doesn't need to be a massively complex poster but I would like it to look nice and professional as it's going to count for 20% of my grade. I'm using MiKTeX and Texmaker. Any help or advice would be great, thanks!


600 visitors per day, 20 backlinks but still not referenced by Google

i've launch a website on wednesday (9 August)  There's already in 4 days    12,000 viewed pages 1,400 visits 20 to 25 backlincks a sitemap.xml (130 URL) english language / french language - url like that "/en/"  "/fr/"   BUT, i'm still not referrenced by google  In the google webmaster i have  0 backlinks 130 in sitemap, 0 URL referrenced on google  For a smaller website, i remember that i took me less to appear on google with less visits.  My url is:  for english and juste replace /en/ by /fr/ to access it in french.  What's causing this ? Is there an explanation ? Thanks for your help  (ps, i've already checked robots.txt)


Let $G$ be a group, $H$ is a subgroup of $G$ and $x\in G$, prove that $[G: xHx^{-1}]=[G:H]$. I have proved that $xHx^{-1}\leq G$ and $|xHx^{-1}|=|H|$. I tried to construct a map from $\left\{a xHx^{-1}:a\in G\right\}$ to $\left\{aH:a\in G\right\}$, but I have difficulty in proving it's injective. I am new on abstract algebra, please do not use Lagrange Theorem. Thanks!


Ask Google to remove thousands of pages from its index after cleaning up from hacked site

I've had my website hacked. I have cleaned it and searched google site:example.com and made a list of all the results. Removed the actual links that are OK and made a list of the ones in the format of example.com/ad0-b1fermarte54eb17chb-1244425. I've submitted these links to Google to remove and Google removed these links.  The problem here is that after my initial search, that resulted in 200 URLs which we've removed, other new links appeared out of nowhere. These links don't actually work anymore and return a 404 page, but Google still has these in its results.  We've tried deleting our sitemap and re-submitting it. Google has crawled it, but again, it has not removed the dummy search results.  Looking in our google webmaster console, we saw that in the coverage tab the number of indexed links spiked from 230 (normal usage) to 10.900 links - I'm guessing these are all dummy links that were infected and now cleaned.  Any magic way of having Google remove dead links automatically? Or a way to force it to recrawl the entire website?


Default terminal icon accidentally deleted!

I accidentally deleted my default terminal icon and I also unintentionally replaced the Terminal.icns file in /Applications/Utilities/Terminal.app/Contents/Resources/Terminal.icns So can anyone provide me with the original icns file?  This not a duplicate question the other question is regarding apps not icons and I have deleted the icon not app please red the question carefully


Current is calculated according to the resistances in a circuit. Then, why is the current same everywhere in a series circuit? Shouldn't a greater current pass through the smaller resistance? I am wondering why the total current within a circuit is calculated based on Req, if resistances don't affect the current? I=V/R?   I know similar questions has been asked, but this has a minor detail which was neither asked nor answered.  I am wondering why the total current within a circuit is calculated based on Req, if resistances don't affect the current? I=V/R?  Current is charge per unit time, but nobody talks about the time factor affecting the current, I know that the number of particles within a series circuit will be the same, but why is the current same?Do the particles know that there will be resistance before they even reach it?


10 class problems with 324 features - am I recognition class based on multiple features, class based on the pattern of one feature?

I am trying to balance 324 features for a 10 class problems, but it just seem humanly impossible,   The problem i am studying consist of recognizing character , each observation consist of 324 features in the form pixels extracted from a 18x18 grid.  Should each pixel be seen as different  feature, or could one just turn the 324 feature into one feature, and thus easily compute the things -  Or would that increase error.   So as the title states. am I recognition class based on multiple features, class based on the pattern of one feature?  It should be said that the range of each pixels 0 -1.


I have an object like this:  var names = { 45: "Jeff", 145: "Peter", 11: "Dandie", 879: "Michael" }   How do I remove "Peter" from the object?


A complex approach to integral of cardinal sine

this integral: $$\int_0^{+\infty}\frac{\sin x}{x}\text{d}x=\frac{\pi}{2}$$ is very famous and had been discussed in the past days in this forum. and I have learned some elegant way to computer it. for example: using the identity: $\int_0^{+\infty}e^{-xy}\sin x\text{d}x=\frac{1}{1+y^2}$ and $\int_0^{\infty}\int_0^{\infty}e^{-xy}\sin x\text{d}y\text{d}x$ and Fubini theorem. the link is here: In this post, I want to discuss another way to computer it. since$$\int_0^{+\infty}\frac{\sin x}{x}\text{d}x=\frac{1}{2i}\int_{-\infty}^{+\infty}\frac{e^{ix}-1}{x}\text{d}x$$ this fact inspire me to consider the complex integral:$$\int_{\Gamma}\frac{e^{iz}-1}{z}\text{d}z$$  and $\Gamma$ is the red path in the above figure, with counter-clockwise orientation, by Cauchy's theorem, we have $$\int_{\Gamma}\frac{e^{iz}-1}{z}\text{d}z=0$$ the above integral can be written as:$$\int_{-R}^{-\epsilon}\frac{e^{ix}-1}{x}\text{d}x+\int_{\Gamma_{\epsilon}}\frac{e^{iz}-1}{z}\text{d}z+\int_{\epsilon}^{R}\frac{e^{ix}-1}{x}\text{d}x+\int_{\Gamma_{R}}\frac{e^{iz}-1}{z}\text{d}z$$ Let $R\rightarrow +\infty$ and $\epsilon \rightarrow 0$, we have: $$\int_{-R}^{-\epsilon}\frac{e^{ix}-1}{x}\text{d}x+\int_{\epsilon}^{R}\frac{e^{ix}-1}{x}\text{d}x \rightarrow \int_{-\infty}^{+\infty}\frac{e^{ix}-1}{x}\text{d}x=2i\int_0^{+\infty}\frac{\sin x}{x}\text{d}x$$ and $$\int_{\Gamma_{\epsilon}}\frac{e^{iz}-1}{z}\text{d}z=\int_\pi^0\frac{e^{i\epsilon e^{i\theta}}-1}{\epsilon e^{i\theta}}i\epsilon e^{i\theta}\text{d}\theta=i\int_\pi^0(\cos(\epsilon e^{i\theta})+i\sin(\epsilon e^{i\theta})-1)\text{d}\theta \rightarrow 0$$ as $\epsilon \rightarrow 0$ so I am expecting that:$$\int_{\Gamma_{R}}\frac{e^{iz}-1}{z}\text{d}z=-i\pi$$ when $$R \rightarrow +\infty$$ but I can't find it. Could you help me? Thanks very much.


I wanted to use a modpack and used my account. I was asked to login to mojang, so I did. But it said it was incorrect. I reset my password and it still doesn't work. I can't log into minecraft.net or the vanilla launcher. My firewall does not block java and I have an English keyboard.


I want to latex the following matrix    is there a solution without using arrays? Also, what will be the most efficient way to write this?  Any suggestion is appreciated.


Drawing a tetrahedron from a parellelepiped to convince myself it is 1/6th the volume,

I drew a parallelepiped that is spanned by three vectors, and we know the volume is given by the absolute value of the determinant of the matrix - with the three vectors arranged in rows (or columns, since $detA = detA^T$).  How can I draw the tetrahedron from this parallelepiped to convince myself it is indeed 1/6th of the volume, i.e., 1/6 * |detA|?  Thanks,


How to install programs from a .deb file, like apt-get install supertux

I am an maintainer for a lot of computers in my town running ubuntu 12.04 and 14.04 with mate desktop, this is to help people just having a computer that just works :), and i cannot make them all do terminal work, hense having a .deb install they can download from dropbox via facebook annonce to them will be much better.  So... i want to create a .deb file that does:  apt-get install compiz compiz-plugins compiz-plugins-extra compizconfig-settings-manager -y   and makes the config file in ~/.config/compiz-1/compizconfig/Default.ini so everything works, i will however advice them to start of by ALT + F2 _ compiz --replace to see if everything works ok.  But how do it do this?, i tried apt-get install in control but of course this does not work as it can't start a different install process while instilling this .deb...  this is how i have tried so far...  #!/bin/sh apt-get install compiz compiz-plugins compiz-plugins-extra compizconfig-settings-manager -y mkdir ~/.config/compiz-1 mkdir ~/.config/compiz-1/compizconfig echo "[ezoom] s0_zoom_in_button = <Super>Button4 s0_zoom_out_button = <Super>Button5  [core] s0_active_plugins = core;composite;opengl;compiztoolbox;decor;wall;resize;regex;imgpng;snap;commands;mousepoll;place;grid;move;animation;scale;ezoom;staticswitcher; s0_toggle_window_maximized_key = Disabled  [switcher] s0_focus_on_switch = true s0_icon_only = true s0_mipmap = false  [decor]  [commands] s0_run_command0_key = <Control><Alt>t s0_command0 = mate-terminal s0_command1 = mate-panel --run-dialog s0_run_command1_key = <Alt>F2 s0_command2 = mate-screenshot s0_run_command2_key = Print  [gnomecompat]  [resize] s0_mode = 2" > ~/.config/compiz-1/compizconfig/Default.ini


What happened to icloud.com/activationlock page?

I'm working in a pawnshop and when people attempt to sell or pawn an iDevice, I used to check its serial number or IMEI in icloud.com/activationlock. Now, without that tool, I'm concerned about activated phones that bypassed the activation lock with third party solutions.  Once a co-worked bought an iPhone 5 with iOS 7 apparently without iCloud account, when she tried to reset the phone, the activation lock asked for the owner's Apple ID, then I found the Apple's official tool to check phones IMEI and since, it has been very useful.  First, I want to know why Apple got rid of that page? And there is another alternative to check the activation lock status of an iDevice?


I am writing a regular compiled application that needs to create a special file and write a magic cookie into it. I can’t write the file directly from the application, the system security model requires me to launch a helper tool with elevated privileges to do the trick. I can supply any number of arguments to the helper tool. Now I would like to pick some very simple system command that would serve as the helper tool and create the file for me. Something like this:  /bin/sh -c "/bin/echo -n 'magic' > /some/where/file"  Simple touch does not cut it as I need to write the cookie into the file, a simple echo without the shell wrapper does not work as it needs redirection to write the file. I don’t feel comfortable calling the shell with root privileges to do such a trivial task. Is there some really simple, constrained system command that I could call to write the file for me?


I want to make the fonts bigger in the Stack Exchange iOS app

I think the fonts in the Stack Exchange iOS app are too small, and I want to regulate the length of them. Could you add this function?


How can I script inverting screen colors?

And, more generally, how can I change accessibility settings via the command line?  Worth pointing out that I'm pretty comfortable with bash already- coming from a systems administration / *nix background- but I just don't know which files to edit or tools to use.  To clarify, I am not asking , the resolution of which modifies a setting under Security and Privacy. What I want to do is change a setting directly under Accessibility. I'll grant the title of that question is misleadingly similar, but the content is entirely divorced from my intent.


Database query data to string in SQL Server 2008

I have an query like  SELECT EmployeeName FROM Employee   Query result will be :  Mr. Kamal Mr. Karim Mr. Rahim Mr. Jamal   But I need :  Mr. Kamal , Mr. Karim, Mr. Rahim, Mr. Jamal   Is it possible with a single query.