I am trying to get the access token over a controller that is connected to a Salesforce site. But I am having the below error message:  System.CalloutException: Unauthorized endpoint, please check Setup->Security->Remote site settings. endpoint = https://sandbox-goku.cs87.force.com/services/oauth2/token   My controller:   public class Mycontroller {         public String accessToken {             private set;             get {                 if (accessToken == null) {                     accessToken = RestUtil.getAccessToken();                 }                  return accessToken;             }         }   }   Utility to get the access token:  public class RestUtil {     private transient static String accessToken = '';      public static String getAccessToken() {         if (accessToken == '') {             accessToken = fetchAccessToken();         }          return accessToken;     }      private static String fetchAccessToken() {         HttpRequest authReq = buildAutHttpRequest();          Http http = new Http();          HttpResponse authRes = http.send(authReq);          String accessToken = extractAccessToken(authRes);          return accessToken;     }      private static String extractAccessToken(HttpResponse authRes) {         Map<String, Object> authResult = (Map<String, Object>) JSON.deserializeUntyped(authRes.getBody());          return (String) authResult.get('access_token');     }      private static HttpRequest buildAutHttpRequest() {         HttpRequest authReq = new HttpRequest();         authReq.setEndpoint('https://' + URL.getSalesforceBaseUrl().getHost() + '/services/oauth2/token');         authReq.setMethod('POST');         authReq.setBody(buildAuthRequestBody());          return authReq;     }      private static String buildAuthRequestBody() {         String template = 'grant_type=password&username={0}&password={1}&client_id={2}&client_secret={3}';         String[] arguments = new String[]{                 AdminAuthContants.USER_NAME,                 AdminAuthContants.PASSWORD,                 AdminAuthContants.CLIENT_ID,                 AdminAuthContants.CLIENT_SECRET         };          return String.format(template, arguments);     } }

i am building a app which takes input from user and then search to a remote database(MySql).And then display the retrieved data on VisualForce page.One important note that my app will be distributable.  here is my controller class  public with sharing class Search  {    public String strTag {get;set;}   public String strlocation {get;set;}    public PageReference find() {              return null;   } }   Thanks in advance.  Updated  public with sharing class Search  {   public String strTag {get;set;} public String strlocation {get;set;}   public PageReference find() {             HttpRequest req = new HttpRequest();   HttpResponse res = new HttpResponse();   Http http = new Http();    req.setEndpoint('https://localhost/salesforce/');   req.setMethod('POST');     req.setCompressed(false);   req.setBody('key1=value1&key2=value2');   req.setHeader('Content-Type', 'application/x-www-form-urlencoded');      try {     res = http.send(req);   } catch(System.CalloutException e) {     system.debug('Callout error: '+ e);   }   system.debug(res.getBody());      return null;  } }   I am getting below error now      error message System.CalloutException: Unauthorized endpoint, please check Setup->Security->Remote site settings. endpoint = localhost/salesforce


I know users can have  on any given site; as long as they don't use their 2nd or 3rd accounts as sockpuppets, Stack Exchange is happy. There's a whole series of argumentations that justify this sort of behaviour, so I'm not concerned here with its ethics.  But what about voting?    Can a user with two or more accounts upvote or downvote someone else's post more than once?  Can a user with multiple accounts upvote their own comments?   These seem rhetorical questions but this type of behaviour is quite different from  and also much harder to detect.   To clarify, they are not upvoting their own posts. Instead, they are using their secret accounts to up/downvote someone else's post multiple times.  I can't prove that the upvotes on comments are cast by the same user, but if I become aware that they have at least two accounts I may strongly suspect malicious behavior, e.g. drumming support for their comments and driving upvotes on specific questions they have chosen to answer. I'd like to know for certain if this is a flaggable offense.

A high-reputation, highly-active user has already been dinged once for a sockpuppet, and I just dinged him again. He probably has another sockpuppet as well.   What are the guidelines for handling users who game the system in this fashion? Specifically,   How can I be sure I'm looking at a sockpuppet? When should sockpuppets be considered a problem? How should moderators handle problematic sockpuppets once they've been identified? I was suspended for sockpuppetting and feel this is unfair


I was asked to write a c/cpp program to find size of any process in an interview. can any one tell me how this could be achieve ?   p.s.- before marking the que as duplicate - plz read it carefully : I have asked how to find via c/cpp program not just with any unix/linux shell command

This question is covered  in great detail. How do you measure the memory usage of an application or process in Linux? From the blog article of , ps is not an accurate tool to use for this intent.  Why ps is "wrong" Depending on how you look at it, ps is not reporting the real memory usage of processes. What it is really doing is showing how much real memory each process would take up if it were the only process running. Of course, a typical Linux machine has several dozen processes running at any given time, which means that the VSZ and RSS numbers reported by ps are almost definitely wrong.


I noticed a flaw that applies only to new users or users with few to no upvotes, and low reputation. By exploiting the fact that reputation doesn't go below 1, one could theoretically get undeserved reputation. There are many variations that could be applied, but one of them is this: A user asks a bunch of questions, many could be duplicate questions or poor quality questions, any question that is answered before being closed would work. No matter how many down votes the user receives, the following would reverse reputation loss. It happens because their reputation doesn't go below 1. What could happen is, whenever an answer is added, they either accept the answer or just wait to accept the answer. They do this to appear like normal users, they could post answers to a few questions to seem like a normal account. What happens is, when they get down voted, they unaccept any accepted answers, their reputation falls to one. They then re-accept the answers, and no reputation would be lost except if the user had ever received any upvotes. Basically by asking a bunch of bad questions, they can receive a ton of rep by accepting the answers all at once. This is easily stopped, which is why it would work better with alternate accounts. Using two alternate accounts (A,B, and C is the main account) they accrue the fifteen rep on A and B by the unaccept and accept method (notice a and b do not answer each other's questions, although on occasion they probably could). Then A and B upvote a few of the other accounts questions, along with many others by other users in a way to not get flagged for serial upvoting. When A resets rep (unaccept reaccept) B removes their upvotes. A then does the unaccept/re accept, and B re-upvotes, and vice versa. At the end, A and B get seventy five rep, and create the largest bounty they can, and give a all of their reputation. They then unaccept reaccept their previous questions, and they have successfully duplicated the reputation. They could theoretically do this with one account, if they could get 37 questions asked. I would like to think we would notice if a single user asked 37 bad questions, but if it were done by 2 or 3 other accounts it would be difficult to trace. One way to fix this would be to automatically flag if any user unaccepts and reaccepts either the same or another answer on any questions more than x amount of times, if it is not already. I don't know what number x would represent, but I feel that it should be a low number (5 maybe). To be clear, I would never try to do anything like this. I sincerely hope that most users would never succumb to the level of using this, or any method of exploiting in the reputation system to earn a little bit of extra reputation. I feel reputation should be earned by asking and answering .

Well, it is not really efficient, but gives some reps (tried two days ago, only 41 reps :-) ).  I have, for example, 50 question where I had accepted answers. And 101 reps, because each accept gives you 2 reps. Then I offer 100 rep bounty (or lose this rep by some other way, e.g. downvotes), unaccept and accept answers again. I am again at 101 reps. Yoyo!


I have been using 'find' to output the directory structure from the root down and I don’t mind that it takes a while. My problem is that I want to cut down on the redundant info of repeating every files path, I want to output the files in JSON format.  I need to be able to run this from the termin, i can not be creating python files etc on the box.  For example, this:  root |_ fruits |___ apple |______images |________ apple001.jpg |________ apple002.jpg |_ animals |___ cat |______images |________ cat001.jpg |________ cat002.jpg   Would become something like....  {"data" : [   {     "type": "folder",     "name": "animals",     "path": "/animals",     "children": [       {         "type": "folder",         "name": "cat",         "path": "/animals/cat",         "children": [           {             "type": "folder",             "name": "images",             "path": "/animals/cat/images",             "children": [               {                 "type": "file",                 "name": "cat001.jpg",                 "path": "/animals/cat/images/cat001.jpg"               }, {                 "type": "file",                 "name": "cat001.jpg",                 "path": "/animals/cat/images/cat002.jpg"               }             ]           }         ]       }     ]   } ]}

Is there a convenient way to convert the output of the *nix command "tree" to JSON format?  Edit: I think I didn't describe my problem well enough. My goal is to convert something like:   . |-- dir1 |   |-- dirA |   |   |-- dirAA |   |   `-- dirBB |   `-- dirB `-- dir2     |-- dirA     `-- dirB   into:   {"dir1" : [{"dirA":["dirAA", "dirAB"]}, "dirB"], "dir2": ["dirA", "dirB"]}


How to find the week day of any given date?  Say we need to know in which week-day was June $25,2019$?

In  the main character (he is a mathematician) calculates the day of the week of someone's birthday (19/07/1992 is Sunday). I know (very) basic modular arithmetic but I can't figure out how to do it. Can someone point me to the right direction? It seems fun to do.


I have been given a problem as practice that I do not understand how to solve. Here is the question:  Given $x$,$p$ and $y$ are real numbers, and $0\leq p\leq 1$, prove that $|x|^p +|y|^p \geq |x+y|^p$  I have tried writing down everything I know that could help, which lead me to these inequalities:  $|a|^p + |b|^p \leq |a| + |b|$  $|a+b|^p \leq |a+b| $  $|a+b| \leq |a| + |b|$  However, these don't seem to be able to lead to the desired result. If anyone could tell me what I'm missing, that would be greatly appreciated!

If $0 < \alpha < 1$, then       $$ (x + y)^{\alpha} < x^{\alpha} + y^{\alpha} $$      for $x$, $y$ positive.   Is this inequality true in general?  I tried using Young's Inequality: For $z,t > 0$, and for $n$, $m$ such that $n+m=1$, then   $$ z^n + t^m \leq nz + mt $$  So, using this we have   $$ (x+y)^{\alpha} \cdot 1^{1 - \alpha} \leq \alpha(x+y) + (1-\alpha) = \alpha x + \alpha y + (1-\alpha)$$  which is not as tight as I want.


Let's say user A belongs to g1 and g2. I have a directory D that belongs to group g1 with the permissions 707. Can user A perform any actions on directory D? If not, can you elaborate why, please? Thank you

My current user & group is baohua-baohua.If I create a file belonging to baohua-test, the priority of the user is higher than that of the group (if the user's permission is rw-, the file is rw).If I create a file belonging to test-baohua, the priority of the group is higher than that of the user (if the group's permission is rw-, the file is rw). for example:   Why is that


When did Albus Dumbledore first realise that Harry Potter was going to die?   I tried re-reading the books but I cannot find it...thanks!

Based on the following interchange between Harry and Dumbledore in the pivotal "King's Cross" chapter of Deathly Hallows, I was wondering when exactly Dumbledore put together that Harry would have to die in order to bring about Voldemort's ultimate demise:  "And you knew this? You knew--all along?" "I guessed. But my guesses have usually been good," said Dumbledore (Deathly Hallows, 599, hardcover).  The conversation that spurred Harry's question includes material dating back to Halloween '81, but also specifically mentions the events of the graveyard from GoF. So, "knowing all along" could refer to everything (i.e., Harry must die, Voldemort ignorantly tethered him to life, etc.) or just that Voldemort tethered him to life. Other important information pertaining to this question can be found in OOTP, when Dumbledore confirms (if he didn't already know) that Harry contains part of Voldemort's soul. He uses the silver instrument to find out that Harry is just like Nagini, having the ability to share mind and soul with Voldemort. He also says the following:  "I guessed, nearly fifteen years ago," said Dumbledore, "when I saw the scar upon your forehead, what it might mean. I guessed that it might be the sign of a connection forged between you and Voldemort" (Order of the Phoenix, 826-827, hardcover).  While confirming that he guessed that Harry might share a connection with Voldemort from the very beginning, Dumbledore does not confirm with this statement that he knew Harry would ultimately have to give up his life. In Philosopher's Stone, when Dumbledore drops off Harry on the Dursley's doorstep, we know he is not entirely truthful with McGonagall.  McGonagall asks: "How in the name of heaven did Harry survive?" "We can only guess," said Dumbledore (Philosopher's Stone, 12, hardcover).  Of course, this was a lie. Dumbledore already knew how Harry survived, otherwise he wouldn't be delivering Harry to Lily's sister to extend the blood sacrifice. By proxy, he also knows that Voldemort will return b/c of Horcruxes, otherwise he wouldn't be so worried about Harry. Finally, when asked in the same scene if he could remove the scar, Dumbledore says:  "Even if I could, I wouldn't. Scars can come in handy" (Philosopher's Stone, 15, hardcover).  So, did Dumbledore know at this very moment that Harry would have to die? Did he at least guess it to be true during this scene? We know he gains perfect confirmation in OOTP, but did he know it "all along," as a particular reading of the King's Cross interchange in DH would have us believe?


I have some code:   num1 = 1.001 num2 = 0.001 sum  = num1 + num2 puts sum   I expected 1.002000 but I am getting 1.0019999999999998. Why is this the case?

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


I have an API only user account and I am wondering if these accounts have a security token?  Obviously, I cannot access it because I don't have the ability to view the UI anymore.  Do I need my administrator to set this up?

API only users cannot login and choose 'Reset my security token'. Right now, in my company, we select a System Administrator profile for users, log in for the first time, choose 'Reset my security token', then change the profile to a custom profile which has API only enabled.  The other way of doing it is, modifying the profile to not have API only user checked initially and then turn it on once the security token is received.  Is there a recommend way to do this? Is there an option to force the security token to be sent  when the user is created with a profile which has API user enabled?


I'm pretty new to blender. I can't explain what's happenin, but look. Visualy longer edge is (according to blender) much shorter (83mm) than visualy shorter edge(4628mm). What may be helpful is that edges belong to different meshes and that in front was copy pasted from another .blend file. The project is for 3D printing and I would like to avoid problems with measurement. Thanks in advance. Any ideas?

I just found out about the Mesh Display : Length feature in the "N" panel (thanks to ) that allows one to measure the length of a face or vertice.  But my first encounter with this tool gives me complex feelings of love and hate, see how, as I was trying to measure the aspect ratio of this TV screen, I am getting WIDTH = 20.33 and HEIGHT = 37.57.  These values seem awfully wrong, since my betrusted eyes tell me the height should be shorter than the width.    I have tried measuring the single vertices as well, to identical results.


I want to create a column with Rowversion data type, but inside my SQL Server 2008 R2 Management Studio, I cannot find such a data type:    Also when I tried altering existing column named timestamp which is of type timestamp using this statement:  ALTER TABLE [SkillManagement].[dbo].[Customer] ALTER COLUMN timestamp rowversion    I get this error:     Msg 4927, Level 16, State 1, Line 1   Cannot alter column 'timestamp' to be data type timestamp   Can anyone advise?

Microsoft  mentioned that we should use the rowversion data type over Timestamps. Now inside my SQL Server 2008 R2, I want to create a column with the Rowversion data type. But in my SQL Server 2008 R2 Management Studio, I cannot find such a data type:  Also when I tried altering existing column named timestamp which is of type timestamp using this statement: ALTER TABLE [SkillManagement].[dbo].[Customer] ALTER COLUMN timestamp rowversion   I get this error: Msg 4927, Level 16, State 1, Line 1 Cannot alter column 'timestamp' to be data type timestamp  Can anyone advise? EDIT


I'm using natbib to make the citations in my document. When I cite an article that has more than one author with  \citep{Ak-Suleimani1999}, I have, in the output:     Ak-Suleimani et al., 1999   The problem is that I would like to have:     Ak-Suleimani y col., 1999   I had read that, with biblatex, it is a really easy thing to do:    But I didn't find a way to do this with natbib. I really would like to keep working with this package, so I don't have to change a lot of code trough my almost ready document.

I’m a big fan of ampersands (possibly too much …) and I’d like to replace all mentions of “et al.” (included in citations) by \& al. – both in the main text (I use natbib citations of the form [Author1 et al., 1999]), and in the actual bibliography?  How can I do that, considering that BibTeX is inserting the words for me, and I have no control over the text? Preferably, I’d like to do this without creating my own bibliography style sheet (since I want to make this work regardless of the actual BibTeX style that is used), but if anyone can tell me how I need to edit the style sheet file, that would be fine as well (makebst doesn’t seem to offer an option for this …).


I run lscpu and get among other information:  Architecture:          i686 CPU op-mode(s):        32-bit, 64-bit   The first line means I am running Ubuntu 32 bit.  Does the second line of the output above mean I can install Ubuntu-16.04-desktop-amd64.iso   ?

Ok, I've always, for some reason, thought that my cpu had 32 bit registers... so I always installed the 32bit version of all OSs that I've used. Now though I ran a lscpu, and I get:  fer@fer-lap:~$ lscpu Arquitectura:          i686 CPU op-mode(s):        32-bit, 64-bit   Does this mean I can use 64 bit OSs?  Running these I get:  fer@fer-lap:~$ grep flags /proc/cpuinfo  flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm dtherm   And I have read that the lm flag means long mode, which stands for 64 bit cpus. Also, as a last test, running lshw gives, for the cpu section:   *-cpu:0               descripción: CPU               producto: Intel(R) Core(TM)2 Duo CPU     T5800  @ 2.00GHz               fabricante: Intel Corp.               id físico: 4               información del bus: cpu@0               versión: 6.15.13               serie: 0000-06FD-0000-0000-0000-0000               ranura: U2E1               tamaño: 2GHz               capacidad: 4096MHz               anchura: 64 bits   It's in spanish and the last line stands for width (I guess register width). So... can I install the 64 bit of the OS? Will it be a big diference in performance? Because that's what I'm looking for (doesn't need to be a BIG difference)  Thanks in advance.


Sometimes, we have to rationalize either the numerator or the denominator, and sometimes we can still work the problem without rationalizing. So, in some cases, rationalizing can be done, although it is not necessary, but if it is done, it will be equivalent to the original function, correct? Will it be equivalent to the original function at all points?     This is a very general question: when do we have to rationalize either the numerator or denominator, and when can we still work the problem without doing so? By "general question", I'm interested in various fields of mathematics, not necessarily examples from calculus or algebra. Can you provide some examples/explanations? Thank you!  EDIT: please don't close the question. I'm interested in various explanations to understand better the concept of rationalizing.

In grade school we learn to rationalize denominators of fractions when possible. We are taught that $\frac{\sqrt{2}}{2}$ is simpler than $\frac{1}{\sqrt{2}}$.  says that "there is a bias against roots in the denominator of a fraction". But such fractions are well-defined and I'm failing to see anything wrong with $\frac{1}{\sqrt{2}}$ - in fact, IMO it is simpler than $\frac{\sqrt{2}}{2}$ because 1 is simpler than 2 (or similarly, because the former can trivially be rewritten without a fraction).  So why does this bias against roots in the denominator exist and what is its justification? The only reason I can think of is that the bias is a relic of a time before the reals were understood well enough for mathematicians to be comfortable dividing by irrationals, but I have been unable to find a source to corroborate or contradict this guess.


Let $S = {1,2,3,4}$ and $X = \{f:S\rightarrow S \ | \ x<y \implies f(x)\leq f(y)\}.$ Find $|X|$.  The solution is $\binom{7}{3}$, and the explanation was using stars and bars. I don't see how it could possibly be connected to a stars and bars problem.  Can someone help me with this.

A trick question about combinators (Stars and Bars)- Need some explanations.     Let $S=\{1,2,3,4,\dotsc,N\}$ and $X=\{ f: S \rightarrow S\mid x < y  \Rightarrow f(x)\leqslant f(y)\}$. Then $|X|$ is equal to what?   How to use Stars and Bars here? Thank you very much.


I'm a graduate student finishing up my first year, and I'm currently in the Master's program but am planning on switching to the PhD program at my university (which is located in the U.S.). I've chosen people I'm interested in asking and my adviser's okayed my selection, but I was wondering how to go about asking these individuals.  What format is appropriate to ask people to be on your committee? Should I email each person, or should I set up a physical meeting to discuss my goals and 'pop the question'?  What should I say in the email/meeting? Most of the potential committee members I'm planning on asking don't know me very well, but they at least know my name (I think). Do I need to discuss why I want them on my committee? How much do I tell them about my project (which is still in the beginning stages)?

I have to request a faculty member outside of my department to be on my thesis committee and I was wondering how I should go about doing this. To be frank, I don't really see why someone would be willing to be on the thesis committee for someone outside their department and even field - apart from the altruism of wanting to help others in academia and all, but I assume professors are busy! Therefore, I imagine that it's hard to convince someone to do this?   In any case, I was wondering:     what information about myself should I aim to include in an email request to a potential thesis committee member outside my department?    In addition, while I need to find someone to file my candidacy papers, but I have only a vague idea of what my final thesis will look like (I know the field, but not the particular question it will address.)  Some things I have come up with include:   a rough description of the subject area  'expected' graduation date and number of years spent in graduate school so far if they have been on the thesis committee for someone else with a similar thesis (by looking at the thesis committees of former students who worked with my advisor)


We have words like racist, bigot, xenophobe, etc. that we are all familiar with, but what would we call someone who discriminates against left handed people?

Is there a specific word such as racism or sexism that describes discrimination based solely on handedness?


I block a  with a . I sacrifice the Brindle Boar. Does the Territorial Allosaurus still do damage to me?

Suppose Player 1 has a Dragon on the table and  in hand, while Player 2 has two Spiders on the table.  Player 1 chooses to attack with the Dragon and Player 2 chooses to block with one of the Spiders.  Before combat damage is to be dealt, Player 1 uses Unsummon on the blocking Spider.    Does Player 2 take any life damage from the attacking Dragon?


I have tried using the Scanner & Stringtokenizer classes to count the number of times a specific pet is inputed but end up getting the no output. I cannot seem to figure out what method I need to count the number of pets(dogs, cat, etc..) so I can get the right output for the number of dogs, cats, etc.  String pet,temp, output, dog = "dog", cat ="cat", other ="other";     double payment, totalPayment = 0, dogCount = 0, catCount = 0, otherCount = 0, totalDogNum = 0;     int more = 0;        while(more == JOptionPane.YES_OPTION)     {     pet = JOptionPane.showInputDialog(null,              "Enter the pet type ", "",JOptionPane.QUESTION_MESSAGE);      temp = JOptionPane.showInputDialog(null,             "Enter the payment for the appointment ", "",JOptionPane.QUESTION_MESSAGE);     payment = Double.parseDouble(temp);      more = JOptionPane.showConfirmDialog(null, "Would you like to add another pet?", "", JOptionPane.YES_NO_OPTION );      if (pet == dog )     {         dogCount = dogCount + 1;     }     else if (pet == cat)     {         catCount += 1;     }     else     {         otherCount += 1;     }      totalPayment += payment;     }        output =  "Number of Dogs: "+ dogCount             + "\n" + "Number of Cats: " + catCount             + "\n" + "Number of Other Pets: " + otherCount

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


This questions comes from Royden Chapter 5 on page 106. I am able to answer the question if we add the assumption $f$ is bounded. Assuming $f$ is not necessarily bounded, here is my idea. Consider the set $A_c=\{x\in [a,b]  : f(x)<c\}$. We need to show that for each $c\in \mathbb{R}$ this set is measurable. Now, if we consider $f|_{A_c}:A_c\mapsto \mathbb{R}$, then we can use the fact that a bounded function whose set of discontinuouties has measure zero must be Riemann integrable. Then we can say, using boundedness, Riemann integrability on $A_c$ $\implies$ Lesbesgue Measurable on $A_c$ $\implies$ $f|_{A_c}$ is measurable on ${A_c}$. In particular, $\{x\in A_c : f|_{A_c}(x)<c\}=\{x\in [a,b] : f(x)<c\}=A_c$ is measurable. This concludes my attempt. Does this seem reasonable?

Definition of simple function   $f$ is said to be a simple function if $f$ can be written as $$f(\mathbf{x}) = \sum_{k=1}^{N} a_{_k} \chi_{_{E_k}}(\mathbf{x})$$ where $\{a_{_k}\}$ are distinct values for $k=1, 2, \cdots, N$ and $\chi_{_{E_k}}(\mathbf{x})=\cases{1&if $\mathbf{x}\in E_k$\\0&if $\mathbf{x}\notin E_k$}$.     Theorem $(4.12)$   If $\{f_k\}$, is a sequence of measurable functions, then $\displaystyle\limsup_{k\to\infty}f_k$ and $\displaystyle\liminf_{k\to\infty}f_k$ are measurable. In particular if $\displaystyle\lim_{k\to\infty}f_k$ exists a.e., it is measurable.     Theorem $(4.13)$   Every function $f$ can be written as the limit of a sequence $\{f_k\}$ of simple functions.     Problem     If $f(x)$, $x\in\mathbb{R}^1$, is continuous at almost every point of an interval $[a, b]$, show that $f$ is measurable on $[a, b]$. Generalize this to functions defined in $\mathbb{R}^n$.      [For a constructive proof, use the subintervals of a sequence of partitions to define a sequence of simple measurable functions converging to $f$ a.e. in $[a, b]$. Use $(4.12)$.]      By the theorem $(4.13)$, we can choose $\{f_k\}$, which are simple functions defined on $[a, b]$ and approaching to $f$. That is, choose $\{f_k\}$ such that, for $k=1, 2, \cdots$,  $$f_k=\sum_{i=1}^{N} a_{_i}^{(k)} \chi^{(k)}_{_{E_i}} \quad \text{and} \quad \displaystyle\lim_{k\to\infty}f_k=f$$ Since $f$ is continuous a.e., $f_k$ are measurable for all $k\in\mathbb{N}$. Then, by the theorem $(4.12)$, $f$ is measurable.     Q1) Why are $f_1, f_2, \cdots, f_N$ all measurable?  Q2) Morever, if $f_k$ are all measurable, then how can I ensure that $\displaystyle \lim_{k\to\infty}f_k$ exists? Is it ensured by theorem $(4.13)$?     If there is any advice or other proofs, please let me know them. Thank you.


Im trying to compare the versionName of my android app located in the build.grade with the version that takes from a external database.  My script is this:  version.add(jsonarray_appdata.getJSONObject(i).getString("version"));                         String versionName = BuildConfig.VERSION_NAME;                         String str = version.toString();                         versionName = "[" + versionName + "]";                         if(versionName != str){                             Intent intent2 = new Intent(getApplicationContext(),Update.class);                             startActivity(intent2);                             finish();                         } else {                             Thread myThread = new Thread() {                                 @Override                                 public void run() {                                     try {                                         sleep(3000);                                         Intent intent = new Intent(getApplicationContext(),MainActivity.class);                                         startActivity(intent);                                         finish();                                     } catch (InterruptedException e) {                                         e.printStackTrace();                                     }                                 }                             };                             myThread.start();                         }   The versionName value is "[1.3]" and the str value is "[1.3]". So the values are the same but it never goes to the else {} condition.  I tried removing the [ ] of both, and not working.  There are no blank spaces in the values.  Any idea what is happening?  Thanks!


in 2.7 my file the items were saved hidden 2.8 the same items are not unable to be unhidden. it is a lot of work and put in this and if you tell me how to fix and/or update to repair this problem would be nice

After some searching on stack / google I decided to ask this here, this is the second time I'm facing this issue this time with blender 2.8, previously with 2.7 and without a clue to how I got here.  Some of my objects appear hidden(10/12), and I can't seem to find a way to unhide them.  Solutions to the most common rookie mistakes seems to be   In local-view solved by pressing numpad / hidden by pressing H or Shift + H, unhiding with Alt + H   I'm not in local view, I can toggle visibility for 2/12 objects with Shift + H & Alt + H, but the rest stays gray in the collection.  Last time I solved this by exporting the whole model as STL and importing it back again, I then had to re-group all the pieces but there must be a more simple solution.  Here's the .blend if someone wants to have a go at it:


I am new in Linux. I do not have much knowledge about Linux. So I would like to learn Linux. I have chosen Linux Ubuntu as I have been heard it is good for learning Linux. But now I can not understand which Ubuntu I should download. There are many versions as well as LTS and other term. So, please Help me.  My laptop has 8 gb ram, i5-8250u, up to 3.4 ghz, hdd 1tb

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


I've got a standard repository for my project    /home/repo/.git     this is the repository i clone to get the base code for new websites i.e. i cloned this to   /var/www/site1   i also have several modules that i've created as repositories, some websites will be using these modules and some will not.     /home/modules/mod1/.git   /home/modules/mod2/.git   is there a way that i can clone those modules into the same site folder?    /var/www/site1     the module directories are set up with the same folder structure as the master repo, when i clone them on top of the master repo clone they should merge/replace existing files. (rarely any file overlap)  my optimal solution would be naming the repo's in some way so that when i deploy a new site I do something like:  cd /var/www/newsite   git clone /home/repo/.git   git clone /home/modules/mod1/.git   git clone /home/moudles/mod2/.git     and when I have updates to make to the site I could do a pull like:  git pull origin master   git pull mod1   git pull mod2     or  preferably:  git pull origin master    would also call the pulls on mod1 and mod2.  I've been looking at git submodules and branches but can't figure out if they are what I need.

Is it possible to have 2 git repositories in one directory?  I'd think not, but thought I'd ask.  Basically, I'd like to check in my home directory config files (e.g. .emacs) which should be common across all of the machines I work on, but have a second repository for local files (e.g. .emacs.local), which contains machine-specific configurations.  The only way I can think of to do that is to have the local config in a subdirectory and ignore that subdirectory from the main git repository.  Any other ideas?


Sometimes I come across errors in answers that are small, but "catastrophic". For example, they wrote is when they meant isn't, or they mis-typed a bash command that could damage someone's system. I can't fix these types of "off by one character" errors due to the character limit.  This has happened at least a dozen times over the last few years of using SO (my current account is a new account - I was tired of all the notifications on my last one). It's a bit frustrating because I want to help improve SO, but the platform seems unnecessarily antagonistic in this case and discourages me from even bothering to fix things in the first place.

When clicking "edit" I see:  Your edit will be placed in a queue until it is peer reviewed. We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.  Like:     Likewise, when I am not logged in, clicking "improve this question" or "improve this answer" shows:  You are not . Your edit will be placed in a queue until it is .  And when I click 'Save', I get:  Thanks for submitting an edit. It is only visible to you until it's been approved by trusted community members  Like:     Who can suggest an edit? Where do suggested edits go? Who can vote on a suggested edit? How do suggested edits get reviewed? Can I earn reputation? What about abuse or bad edits? Sometimes the Community user approves or rejects my edit. Why is that? When can I not suggest an edit? Is there a minimum change requirement for a suggested edit? How do I check my suggested edit history? I disagree with the reasons why my suggested edit was rejected. What can I do? How do I know whether there are edits waiting for review? Someone suggested an edit to my own post, and the reviewers took the wrong action. What can I do? Are tag wikis included in this scheme? What do the "Improve Edit" and "Reject and Edit" buttons do? Why are apparently valid links to rejected edits resulting in 404 errors?   For more information about editing, see "" in the .


I often read through many threads and websites when trying to solve a problem, and only later realize that the first thing I read actually had the answer, or was key to eventually finding it (which is more often than not a SE thread).   Often I have closed the tab and forgotten the title of the thread, so I can't easily go back and upvote the question/answer, or I just plain forget to do so.   I think that if I could view my visitation history, I would upvote a lot more stuff. I can see a privacy concern with tracking this type of information, but I would find it useful. I suppose I could just filter my browser history, but I'm lazy and I'm probably not the only one.  Edit: I did notice the previous similar thread, but I decided to make this one because I want this feature for a specific purpose. It would also be useful to highlight in some way my most visited threads, but that would require keeping a history. So the first step would be to record that information.

I don't know whether this has been asked before, but is it possible to access the history of questions viewed by a user while logged in on SE sites? I have noticed there is a viewed counter if that helps. So how can I view my SE history?


I've found this code  and I need to know if someone knows how can I label all the figures to be able to make a reference to them in the text and to appear for example: "In figure 1A..."  \documentclass[12pt,a4paper]{article} \usepackage{graphicx} \usepackage{float}  \begin{document}  \begin{figure} [H] \centering \begin{tabular}{cccc} \includegraphics[width=0.3\textwidth]{example-image-a} & \includegraphics[width=0.3\textwidth]{example-image-b} & \includegraphics[width=0.3\textwidth]{example-image-c} \\ \textbf{(a)}  & \textbf{(b)} & \textbf{(c)}  \\[6pt] \end{tabular} \begin{tabular}{cccc} \includegraphics[width=0.3\textwidth]{example-image-a} & \includegraphics[width=0.3\textwidth]{example-image-b} \\ \textbf{(d)}  & \textbf{(e)}  \\[6pt] \end{tabular} \caption{ \textbf{(a)} Some text \textbf{(b)} Some text \textbf{(c)} Some text \textbf{(d)} Some text \textbf{(e)} Some text} \label{fig:Name} \end{figure}  \end{document}

So its a fairly simple question to a problem people normally experience. I have a rough idea of what to do, but I am looking for the correct way of doing things. So in the solution I will include what would be the bare minimum requirements I think would get this problem solved. I am looking for feedback and corrections though.  So please tell me, how does one go about creating subfigures within a figure. After that, caption it. Then label it for reference and then refer to it in the text?


Not sure if it's set in the future but:   Women live in a large city.  Men live outside but can visit during the day.  Marriages are temporary and controlled by the wives.  One character is a young woman who "sees".    This series has several books. I recall later in the series the society is struggling and another female character is put into suspended animation and awakened to give guidance when needed.

I'm trying to find a series of stories (a trilogy, I think) with a slew of distinctive features. I can't remember when the books were written (I read them about a year and a half ago), but I can remember several points about the story:  1: It begins in a peaceful city controlled by a matriarchy.  2: Young men and women are tutored in the ways of the world by 'Aunts' and 'Uncles' (who have no actual familial connection).  3: The whole world is actually a colony whose inhabitants are being prevented from developing scientifically by a highly complex mind controlling satellite.  4: The satellite starts to break down, allowing some (including one particularly successful warlord) to fight it's control and develop destructive technologies.  5: The satellite loads itself up with some people (the protagonists) and heads back to Earth for repair.  6: Earth has changed and is now home to two sentient species, one avian ('angels', I seem to recall) and the other subterranean (and fond of sculpture).   7: These two species are in conflict, but are also intricately linked with each other's breeding behaviour.  8: The humans, returned from the colony by the mind controlling satellite, create peace between the two civilisations.  There are so many disparate elements here that I'm beginning to wonder if I just made the whole thing up in a fever dream. Anybody got any ideas?


PS: This question is different than others because I need to know exactly what code to write in order to prevent the variable from changing.  I have this example of code to demonstrate my problem:  float[][] one = {{0}}; float[][] two = one; System.out.println(two[0][0]); one[0][0] ++; System.out.println(two[0][0]);  int three = 0; int four = three; System.out.println(four); three ++; System.out.println(four);   The output is:  0.0 1.0 0 0   For some reason, when I change float[][] 'one', 'two' automatically changes as well. However, when I performed the same task but for a different data type int, then the code works as intended.  What is causing this variable to drag the other one with it?  Why doesn't it happen for the int type?  How do I fix it?

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


I would like to install the latest version of a package called libqt5core5a.  I ve checked the  and there is a version I am interested in.  Let's check the current installed version of that package:    userk@dopamine:~$ sudo apt-cache policy libqt5core5a    libqt5core5a:   Installed: 5.5.1+dfsg-16ubuntu7.6   Candidate: 5.5.1+dfsg-16ubuntu7.6   Version table:   *** 5.5.1+dfsg-16ubuntu7.6 500         500 http://it.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages         500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages         100 /var/lib/dpkg/status      5.5.1+dfsg-16ubuntu7 500         500 http://it.archive.ubuntu.com/ubuntu xenial/main amd64 Packages   I ve tried a quick  $ sudo apt-get update && sudo apt-get upgrade   Checked again the installed version and noticed that no upgrade occured.  Tried then with a more specific request and got a not found error...  $ sudo apt-get install libqt5core5a=5.12.2+dfsg-4ubuntu1  Reading package lists... Done Building dependency tree        Reading state information... Done E: Version '5.12.2+dfsg-4ubuntu1' for 'libqt5core5a' was not found   Checking again other commands to see the latest available version on the remote repository and:  $ aptitude versions libqt5core5aPackage   libqt5core5a:                         p   5.5.1+dfsg-16ubuntu7                     xenial                500  i   5.5.1+dfsg-16ubuntu7.6                   xenial-security,xenia 500   Package libqt5core5a:i386: p   5.5.1+dfsg-16ubuntu7                     xenial                500  p   5.5.1+dfsg-16ubuntu7.6                   xenial-security,xenia 500   How do I install a specific version of a package on Ubuntu 16.04?

Why are packages in the official Ubuntu repositories older than the latest (upstream) versions from Debian Sid, PPAs, the authors, etc.?


i want to send email using SharePoint hosted app  to receiver(not only share point user),i followed  but it is allowed me to send mail to only SharePoint users,and when am trying to send mail to some one who is not a SharePoint user then am getting the error at  _api/SP.Utilities.Utility.SendEmail by saying bad request     (Failed to load resource: the server responded with a status of 400   (Bad Request))   is there any way to send email through SP-Hosted App without using SP.Utilities.EmailProperties?

In sharepoint hosted app how to send mail using js.I want send email to any user,not only for sharepoint user.


Once it is compiled, is there a difference between:  delegate { x = 0; }   and  () => { x = 0 }   ?

What is the difference between anonymous methods of C# 2.0 and lambda expressions of C# 3.0.?


Variance is given as: $\operatorname{Var}(X) = \mathbb{E}[(X-\mathbb{E}(X))^2]$.  Is there an intuition behind this and can you find this formula starting from the second generating moment ?

Equivalently, about variance?  I realize it measures the spread of a distribution, but many other metrics could do the same (e.g., the average absolute deviation). What is its deeper significance? Does it have    a particular geometric interpretation (in the sense, e.g., that the mean is the balancing point of a distribution)?  any other intuitive interpretation that differentiates it from other possible measures of spread?   What's so special about it that makes it act as a normalizing factor in all sorts of situations (for example, convert covariance to correlation)?


In   HNQ of Unix and Linux SE, I saw that the accepted answer, with 248 votes, is below another answer with 1382 votes (Yes, I am talking about gimme gimme gimme!) . But as far as my knowledge goes (which doesn't go very far :P), accepted answers flow on top of the list, so why is it happening so in the above linked question? Is it any special feature for an answer with 1000+ or 500+ votes?

On , sorted by votes, the accepted answer is #3 in order of votes.  It appears as number 3 in the list as well. Is this new behavior intended?


I have a list of string which would have a different event type names. The code is given below,  public class Main {     public void Run()     {         List<string> classList = new List<string>             {                 "Event_one",                 "Event_two"             };           foreach (string item in classList)         {             IEvent ent;             switch (item)             {                 case "Event_one":                     ent = new EventOne();                     ent.HandlEvent();                     break;                 case "Event_two":                     ent = new EventTwo();                     ent.HandlEvent();                     break;             }         }     } }  public class EventOne : IEvent {     public void HandlEvent()     {         throw new NotImplementedException();     } }  public class EventTwo : IEvent {     public void HandlEvent()     {         throw new NotImplementedException();     } }  public interface IEvent {     void HandlEvent(); }   How can I remove the switch statement and make the code more loosely coupled?. My code sits inside the website/app_code.

Is there a way to create an instance of a class based on the fact I know the name of the class at runtime. Basically I would have the name of the class in a string.


I recently came across a sentence of the form - "Do I Gift a Present or Present a Gift ?" and am wondering whether sentences of this type (where words can be interchanged and still make valid, meaningful sentences) are called something ? And whether there are anymore examples ?  I tried googling with the above line but it yields nothing.

What is the name of an expression where two noun/verb sentences are reversed in the second half of the expression?  Here's an example:     People were created to be loved.   Things were created to be used.   The reason the world is in chaos is because   things are being loved and   people are being used.


$$\displaystyle \sum\limits_{}^{} \dfrac{1}{k(ln(k)^2)}$$  Integral test  $$\int_{} \frac {1}{u^2} du = \int  u^{-2} du = \frac {-1}{u} = \frac{-1}{\ln k} +c$$

I am attempting to prove if the below expression converges or diverges:  $$\sum_{n=2}^{\infty} \frac{1}{n (\ln n)^2}$$  I decided to try using the . So then, I set $f(n) = \frac{1}{n (\ln n)^2}$ and $g(n) = \frac{1}{n}$ and did the following:  $$ \lim_{n \to \infty} \frac{f'(n)}{g'(n)} =  \lim_{n \to \infty} \frac{-\frac{\ln(n) + 2}{n^2 (\ln n)^3}}{-\frac{1}{n^2}} =  \lim_{n \to \infty} \frac{\ln(n) + 2}{n^2 (\ln n)^3} \cdot n^2 =  \lim_{n \to \infty} \frac{1}{(\ln n)^2} + \frac{2}{(\ln n)^3} = 0 $$  I know that $\sum \frac{1}{n}$ diverges due to properties of harmonic series, and so concluded that my first expression $\frac{1}{n (\ln n)^2}$ also must diverge.  However, according to , and as suggested by , the expression actually converges.  What did I do wrong?


When using vector arrow notation (\vec) combined with \lVert and \rVert, the norm won't cover the vector arrow if a capital letter issued for the vector, but instead cover extra "white space" below the letter. Also \left\lVert # \right\rVert or \Big\lVert # \Big\rVert don't fix the problem, as they drastically increase vertical size covering much more white space above and below the vector. I would like to use this notation also in text, which is why vertical size matters a lot. An optimal solution would be achieved if it was possible to simply shift the "||" upwards s.t. they cover the vector arrow and the least amount of white space below the letter, is that possible? Example:     \documentclass{article}     \usepackage{amsmath}          \begin{document}          \[     \lVert \vec{A} \rVert = \left\lVert \vec{A} \right\rVert = \Big\lVert \vec{A} \Big\rVert     \]          \end{document}

What is the "best LaTeX practices" for writing absolute value symbols?  Are there any packages which provide good methods?  Some options include |x| and \mid x \mid, but I'm not sure which is best...


When Voldemort does the Avada kadavra on Harry in the forest, Harry goes into some kind of passing between worlds, that looks to him like King's Cross Station. So why does Harry see himself there? What is the significance of that place? Theoretically, would anyone who's half-dead see himself in King's Cross? In a closer look at DH chapter 35 I have some more questions-  "It looks," he said slowly, "like King's Cross station. Except a lot cleaner and empty, and there are no trains as far as I can see." "King's Cross Station!" Dumbledore was chuckling immoderately. "Good gracious, really?"  Why does Dumbledore seem surprised? And why is it important that the station is empty?

After being cursed by Voldemort for the second time, Harry spiritually goes to King's Cross and talks to Dumbledore. Is it like a coming back to life scene or is it caused by the dying Horcrux (or rather Voldemot's soul piece) inside him?


If resistance would infinity it should not show any deflection so why its called ideal

In an ideal voltmeter there is infinite resistance so because of which no current is flowing through it and the voltage reading is not affected.  The ohm's law stated that      V = I * R   In an ideal voltmeter I = 0 so V = 0 but the voltmeter does show some reading which defies the ohm's law. Please tell me how is this possible.


"I get up late in the morning"  --- In this sentence we have used 'in' before morning   "I get up early on weekdays" --- In this sentence we have used 'on' before weekdays.    Please let me know why we use 'on' for 2nd sentence and why we used 'in' for 1st sentence.

Which one is correct? (Maybe both are correct.)     He passed away on the morning of March 5.   Or      He passed away in the morning of March 5.


I'm trying to find the script of D. W. Griffith's Birth of a Nation, and it seems that nobody has it on the internet.   Is there a movie database out there from which I can get the text of old movies (silent movies)?   Usually the technique is to show some text between scenes, but I need to find texts (analytical purposes) and I can't watch all of them, trying to extract the screenplay out of the movie.

As a general case, Where can I find scripts/screenplays/transcripts of movies and TV shows?


I have a database that stores a bunch of custom fields using hstore. In order to merge it into another database that doesn't support hstore, I'd like to split the keys into extra columns.  Users can add new custom fields and so I can't rely on knowledge of the keys ahead of time. Which makes the answer at  not applicable for my problem.  Where a record doesn't have a key present in other records, it should get the same column with a null value.  How do I do this?

Let's assume we have a table where it has two columns, one an ID and one an hstore column, which stores key/value pairs.  You could query that column as such:  SELECT name, attributes->'device' as device FROM products WHERE attributes->'edition'= 'ebook'   Can you create a view for this table where the keys/values appear as columns in the view instead of all in the hstore column?  Example: I have an hstore key where it might have the key of amenity.  I want to create a view showing the the ID and the amenity values in a new view.


, says we can use orthogonal polynomial for ordered factor encoding which the levels are equally spaced.  I do not understand why (mathematically) and intuition behind it. Could anyone explain it to me?   Does polynomial encoding have any relationship with polynomial regression?

I cannot understand the usage of polynomial contrasts in regression fitting. In particular, I am referring to an encoding used by R in order to express an interval variable (ordinal variable with equally spaced levels), described at .  In the example of , if I understood correctly, R fits a model for an interval variable, returning some coefficients which weights its linear, quadratic, or cubic trend. Hence, the fitted model should be:  $${\rm write} = 52.7870 + 14.2587X - 0.9680X^2 - 0.1554X^3,$$  where $X$ should take values $1$, $2$, $3$, or $4$ according to the different level of the interval variable.  Is this correct? And, if so, what was the purpose of polynomial contrasts?


I'm trying to understand parameter passing in Java. There are some answers on Stackoverflow but they are not clear. The  page is very technical, so I don't understand it. This answer is helpful, but I don't understand the implications:   I understand the Java uses Call by Sharing, but I'm not sure how its different from Call by Reference. I'm not sure if this is correct, can you check my answers?  Shared Steps 1) The main program calls a method and passes it an argument. 2) The expression in the argument is evaluated and its type is determined. The result is assigned to the Argument variable.    Call by Value    3) Without regard for type, a COPY of the Argument's VALUE is made and passed to the method. 4) The Formal Argument receives a variable containing a COPY of the Argument. 5) The Formal Argument makes changes to the copy. 6) The Actual Argument is UNCHANGED.  Call by Reference 3) Without regard for type, a COPY of the Argument's ADDRESS is made and passed to the method. 4) The Formal Argument receives an REFERENCE to the memory location of the Argument. 5) The Formal Argument and Actual Argument point to the same value. Both can modify the Value/Object. 6) The Method can mutate the Formal Argument WITHOUT LIMITATION. When the method ends, these changes will be seen in the Argument.  Call by Sharing (Java) 3) Without regard for type, a COPY of the Argument's ADDRESS is made and passed to the method. 4) ? 5) ? 6) ?    I know there is a difference between how Java treats primitive types and objects in parameter passing, can someone fill in these blanks by explaining why?

I always thought Java uses pass-by-reference. However, I've seen a couple of blog posts (for example, ) that claim that it isn't (the blog post says that Java uses pass-by-value). I don't think I understand the distinction they're making. What is the explanation?


First of all I have read about Event Delegation in several stackoverflow posts and articles like this: , and it makes sense, it just isn't working in this instance. I am working on a Rails 3 application. I have a nested form using the simple_nested_form gem that submits a new record via ajax and upon success, renders a partial containing new record(s) and the form on a #show template. The design requires: The user arrives on the page and can see the records (if there are any) and a button to Enter/Edit Timecard. The button will toggle between showing the records or the form, but not both. This works fine. The user clicks the button, is presented with the form, then adds, updates or deletes a record. They click submit, the ajax updates the page, but now the Enter/Edit Timecard button no longer works. The following is edited for brevity.  The partial rendered in the show template

     <%= render partial: 'timecards'%>

   The contents of the partial
  # Display records

   # The from

       # Link that when clicked either displays the form or the records but not both   Enter/Edit Timecard
   Relevant SCSS that hides the form on initial page load  #update-timecard-area {   #timecard-form-area {     display: none;   } }   Function that hides/shows parts of the form  $( document ).ready(function($) {   $("#timecard-partial").on( "click", "a#toggle-timecard-form", function(e) {     e.preventDefault();      if ($("#timecard-display-area").is(":visible")){         $("#timecard-display-area").hide();         $("#timecard-form-area").show();     }     else if ($("#timecard-form-area").is(":visible")) {         $("#timecard-display-area").show();         $("#timecard-form-area").hide();     }   }); });

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


Click event does not  works with copied HTML?
//the given ul

 //copied ul


I have read many articles about PLS, but I could not understand the mathematical description yet. I know that it is quite similar to principal component regression (PCR), except that it takes into account the direction of the response variable.  Could you please provide for me a simple mathematical explanation e.g the formula and coefficient estimates form?

Can anyone recommend a good exposition of the theory behind partial least squares regression (available online) for someone who understands SVD and PCA?  I have looked at many sources online and have not found anything that had the right combination of rigor and accessibility.    I have looked into The Elements of Statistical Learning, which was suggested in a comment on a question asked on Cross Validated, , but I don't think that this reference does the topic justice (it's too brief to do so, and doesn't provide much theory on the subject).  From what I've read, PLS exploits linear combinations of the predictor variables, $z_i=X \varphi_i$ that maximize the covariance $ y^Tz_i $ subject to the constraints $\|\varphi_i\|=1$ and $z_i^Tz_j=0$ if $i \neq j$, where the $\varphi_i$ are chosen iteratively, in the order in which they maximize the covariance.  But even after all I've read, I'm still uncertain whether that is true, and if so, how the method is executed.


On  one finds without proof the integral     $$\int_{-\infty}^{\infty} \frac{dx}{(\exp(x) - x)^2 + \pi^2} = \frac{1}{1 + W(1)}$$   where $W$ denotes the Lambert W function. How can one show this? The link given on Mathworld is broken.

I ran across an interesting integral and I am wondering if anyone knows where I may find its derivation or proof.  I looked through the site. If it is here and I overlooked it, I am sorry.  $$\displaystyle\frac{1}{\int_{-\infty}^{\infty}\frac{1}{(e^{x}-x)^{2}+{\pi}^{2}}dx}-1=W(1)=\Omega$$  $W(1)=\Omega$ is often referred to as the Omega Constant. Which is the solution to   $xe^{x}=1$.  Which is $x\approx .567$  Thanks much.   EDIT:  Sorry, I had the integral written incorrectly. Thanks for the catch.  I had also seen this:  $\displaystyle\int_{-\infty}^{\infty}\frac{dx}{(e^{x}-x)^{2}+{\pi}^{2}}=\frac{1}{1+W(1)}=\frac{1}{1+\Omega}\approx .638$  EDIT:  I do not what is wrong, but I am trying to respond, but can not. All the buttons are unresponsive but this one. I have been trying to leave a greenie and add a comment, but neither will respond. I just wanted you to know this before you thought I was an ingrate. Thank you. That is an interesting site.


I had ubuntu LTS and decided to upgrade to the normal version. after than I'm unable to install anything that requires canonical partners. I can select the option in software source, but I'm still unable to install. when I try to update this is what I get: ~$ sudo apt update Hit:1 http://archive.ubuntu.com/ubuntu groovy InRelease Hit:2 http://archive.canonical.com groovy InRelease Hit:3 http://archive.ubuntu.com/ubuntu groovy-updates InRelease Hit:4 http://archive.ubuntu.com/ubuntu groovy-backports InRelease Get:5 http://archive.canonical.com/ubuntu maverick InRelease [6,170 B] Get:6 http://archive.ubuntu.com/ubuntu groovy-security InRelease [108 kB] Err:5 http://archive.canonical.com/ubuntu maverick InRelease   The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 Reading package lists... Done W: GPG error: http://archive.canonical.com/ubuntu maverick InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 E: The repository 'http://archive.canonical.com/ubuntu maverick InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.  The last thing I tried was install the snap-store base on something i read online. It didn't change a thing. At this point I'm thinking in downloading and installing clean from a USB but I'd prefer not to. any sugestions?

I added some extra repositories with the Software Sources program. But when I reload the package database, I get an error like the following:     W: GPG error:  trusty InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 8BAF9A6F   I know I can fix it using apt-key in a terminal, according to the official Ubuntu documentation. But I would have liked to do it graphically. Is there a way to do this without using a terminal?


$ bash opencv.sh Installing OpenCV 1.1 Removing any pre-installed ffmpeg and x264 Installing Dependenices  E: Unable to locate package libjasper-dev E: Unable to locate package libxine-dev E: Unable to locate package libgstreamer0.10-dev E: Couldn't find any package by glob 'libgstreamer0.10-dev' E: Couldn't find any package by regex 'libgstreamer0.10-dev' E: Unable to locate package libgstreamer-plugins-base0.10-dev E: Couldn't find any package by glob 'libgstreamer-plugins-base0.10-dev' E: Couldn't find any package by regex 'libgstreamer-plugins-base0.10-dev'

How to install OpenCV version 3.1 on Ubuntu 16.04 LTS to work with Python 3.5.1?  I tried  on a VM but obviously that is useful to do if you want to work with Python 2.


I have been using Subversion for a while, but am seeing all my colleagues switch to (or advocate) GIT.  So I googled to find some info on the differences.  In the top ten results was this SO thread...    It was closed as off topic.  But, of all the Google results I received, that SO post was the most objective and informative.  This because it was written by multiple authors and allowed point/counterpoint.  Additionally it had the collective brain power of several dozen of SO's resident geniuses behind it.  I wanted to know more about why it was off topic.  I looked at the FAQ.  In the FAQ one of the criteria was "software tools commonly used by programmers".  Well, is this not a question about exactly that?  Software tools commonly used by programmers?  I agree that if a software tool comparison question is asked more than once, it should be closed as a duplicate.  But software tool comparison questions are not off topic according to the FAQ and should not be closed.  More than that, we will lose access to useful/valuable/above-average information if we do.  EDIT:  Sorry I mis-spoke.  It was locked not closed.  But only because it was historically significant.  However, had it been a new question, I assume the moderator would have closed it as off topic.

I'm on SO pretty much every day researching something to do with programming, and over the last month or two, I find I'm growing frustrated and a little disgusted at how many interesting questions have been closed as "not a good fit" or "too subjective".  I think there is a confusion between "subjective" and "calls for judgement". To me one of the most valuable things about SO is the tremendous breadth and depth of experience of the members, and experience translates into smart decisions and advice, and that advice cannot always be asked for, or expressed in terms of, bald facts and data.  It's going to be 'subjective'.  I don't think SO should be Wikipedia. I think that if I could ask a question to a group of skilled programmers sitting around a table at lunch, and get interesting, valuable answers, then I don't care whether the question or the answers are 'subjective', I think that question should equally well be fair game for Stack Overflow.  I would like to see a mechanism whereby people who vote to close a question lose reputation when somebody expresses interest in that question or its responses.  How can I, or can I, influence this aspect of SO?


I'm trying to understand malloc, so I created this little something, to show the sizeof an integer, and the new size given by malloc, but it doesn't increase; it's always 8 bytes for me   So, am I using malloc wrong?   #include <stdio.h> #include <stdlib.h>  int main() {      int *points = (int *) malloc(10*sizeof(int));     int size_of_points = sizeof(points);     int size_of_int = sizeof(int);      printf("size of int: %d\n", size_of_int);     printf("size of points: %d\n\n", size_of_points);      for ( int counter = 0; counter < size_of_points; counter++) {         printf("Please enter: ");         scanf("%d", points);          printf("**New size of int: %d\n**", size_of_int);         printf("New size of points: %d\n\n**", size_of_points);     }      free(points);      return 0; }   At any point, shouldn't size of points be: sizeof(int) is 8 times 10 = 40?  It stops with 8 inputs.

First off, here is some code:  int main()  {     int days[] = {1,2,3,4,5};     int *ptr = days;     printf("%u\n", sizeof(days));     printf("%u\n", sizeof(ptr));      return 0; }   Is there a way to find out the size of the array that ptr is pointing to (instead of just giving its size, which is four bytes on a 32-bit system)?


When i compile this: header: template <unsigned int n> class Wektor{ private:     double tab[n]; public:     double get(int i) const {         return tab[i];     }     void set(int i, double x) {         tab[i] = x;     }     double operator [] (int x) const;     Wektor() : tab{0} {}     Wektor operator + (Wektor V) const; };  source: #include "Wektor.hh"  template <unsigned int n> Wektor<n> Wektor<n>::operator + (Wektor<n> V) const{     Wektor T{};     for(int i=0; i<n; i++){         T.set(i, (*this)[i] + V[i]);     }     return T; }  main file: #include "Wektor.hh" #include <iostream>  int main(){     Wektor<2> a, b, c;     a.set(0, 1);     a.set(1, 2);     b.set(0, 1);     b.set(1, 1);     c=a+b; }  error: undefined reference to `Wektor<2u>::operator+(Wektor<2u>) const' And i can't use "friend" cause it's college task :(

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


I bought an iPhone off a lady which by now I thank was a stolen phone:   I tried to activate the phone I got right through to wifi settings  Now I'm stuck on iCloud settings and asked for pervious Apple ID    There is a number displayed to call in case the phone is found, but that number is not active.  What can I do now?

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


I am getting this error while running the below javascript code.  <script type="text/javascript"> //var siteUrl = '/projects/SharePoint2013-Demo/TimesheetManagementSystem/'; var oList = null; var web = null; var clientContext  = null;    function retrieveListItems(sender, args) {  var filterValue =document.getElementById("ctl00_ctl41_g_1c91c2d4_fbbb_4792_8507_ba589e5be222_SpListPicker_SelectionBox"); var StartDate=document.getElementById("ctl00_ctl41_g_ed4beb82_8f7e_4389_bb35_a44188462aab_DateFilterPicker_DateFilterPickerDate");   var EndDate=document.getElementById("ctl00_ctl41_g_07c2185d_e903_4010_8a84_b2d9536a5549_DateFilterPicker_DateFilterPickerDate"); alert(filterValue.value ); alert(StartDate.value); alert(EndDate.value);       clientContext = new SP.ClientContext.get_current();     oList = clientContext.get_web().get_lists().getByTitle('TimeSheetList');     clientContext.load(oList);      clientContext.executeQueryAsync(Function.createDelegate(this, this.LoadList), Function.createDelegate(this, this.onQueryFailed));           }    function LoadList(sender, args) {            var  camlQuery= new SP.CamlQuery();                    camlQuery.set_viewXml("<Where><And><And><Eq><FieldRef Name='Author' /><Value Type='User'>Vikash Kumar</Value></Eq><Geq><FieldRef Name='Date' /><Value Type='DateTime'>2015-07-13T12:00:00Z</Value></Geq></And><Leq><FieldRef Name='Date' /><Value Type='DateTime'>2015-07-20T12:00:00Z</Value></Leq></And></Where>");       camlQuery.set_viewXml(camlQuery);      this.collListItem = oList.getItems(camlQuery);       clientContext.load(collListItem);     clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));     }    function onQuerySucceeded(sender, args) {      var listItemInfo = '';       var listItemEnumerator = collListItem.getEnumerator();      while (listItemEnumerator.moveNext()) {                 var oListItem = listItemEnumerator.get_current();                 var ID= oListItem.get_id();                 alert(ID);                 } }   function onQueryFailed(sender, args) {     alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());  }   </script>  <button type="button" onclick="retrieveListItems()">Approve!</button>   What is the reason, where am I doing wrong??

I have a list, a list filter and two date filters(Start date and end date) in a page. First I have to filter list using this filters and then I have to approve whatever item are left in the list after filtering.  I am using the following JavaScript code.      <script type="text/javascript">  //var siteUrl = '/projects/SharePoint2013-Demo/TimesheetManagementSystem/'; var oList = null; var web = null; var clientContext  = null;    function retrieveListItems() {  var filterValue =document.getElementById("ctl00_ctl41_g_1c91c2d4_fbbb_4792_8507_ba589e5be222_SpListPicker_SelectionBox"); var StartDate=document.getElementById("ctl00_ctl41_g_ed4beb82_8f7e_4389_bb35_a44188462aab_DateFilterPicker_DateFilterPickerDate");   var EndDate=document.getElementById("ctl00_ctl41_g_07c2185d_e903_4010_8a84_b2d9536a5549_DateFilterPicker_DateFilterPickerDate"); alert(filterValue.value ); alert(StartDate.value); alert(EndDate.value);       clientContext = new SP.ClientContext.get_current();     oList = clientContext.get_web().get_lists().getByTitle('TimeSheetList');     clientContext.load(oList);      clientContext.executeQueryAsync(LoadList, onQueryFailed);           }   function LoadWeb123(sender,args) {     //oList = web.get_lists().getByTitle('TimeSheetList');      //clientContext.load(this.oList);     //clientContext.executeQueryAsync(Function.createDelegate(this, this.LoadList), Function.createDelegate(this, this.onQueryFailed));     }    function LoadList() {            var  camlQuery= new SP.CamlQuery();                    camlQuery.set_viewXml("<View><Query><Where><And><And><Eq><FieldRef Name='Author'/><Value Type='User'>vikash kumar</Value></Eq><Geq><FieldRef Name='Date' /><Value Type='DateTime'>2015-07-10T12:00:00Z</Value></Geq></And><Leq><FieldRef Name='Date' /><Value Type='DateTime'>2015-07-17T12:00:00Z</Value></Leq></And></Where></Query></View>");       camlQuery.set_viewXml(camlQuery);      this.collListItem = oList.getItems(camlQuery);       clientContext.load(collListItem);     clientContext.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));     }    function onQuerySucceeded(sender, args) {      var listItemInfo = '';       var listItemEnumerator = collListItem.getEnumerator();      while (listItemEnumerator.moveNext()) {                 var oListItem = listItemEnumerator.get_current();                 var ID= oListItem.get_id();                 alert(ID);                 } }   function onQueryFailed() { //    alert('Request failed. ' + args.get_message() + '\n' + args.get_stackTrace());     alert('error'); }   </script>  <button type="button" onclick="retrieveListItems()">Approve!</button>   But this is not working, it gives error alert.  What could be done? Is there anything wrong with the code?


I'm given a particle in a piecewise continous potential $V$ and am supposed to show that normable eigenstates of the Hamilton Operator are not degenerated. My approach was to find two eigenfunctions $\psi_1(x)$ and $\psi_2(x)$ that have the same eigenvalue and the show that they are linear dependent. Plugging into the Schrödinger equation led me to $\psi_1(x) \psi''_2(x) - \psi_2(x) \psi''_1(x) =0$. For linear indepence this equation would only be true for $\psi''_1$ and $\psi''_2$ both being zero, so I thought it's somehow possible to show that they are not zero to show the linear dependence. But I'm stuck so far. The only further assumption I have is that the first differential of the functions is limited for $|x| \to \infty$.

I'm reading  and I'm trying to understand the proof under "Degeneracy in One Dimension".  Here's what it says:     Considering a one-dimensional quantum system in a potential $V(x)$ with degenerate states $|\psi_1\rangle$ and $|\psi_2\rangle$ corresponding to the same energy eigenvalue $E$, writing the time-independent Schrödinger equation for the system:       $$-\frac{\hbar^2}{2m}\frac{ \partial^2\psi_1}{ \partial x^2} + V\psi_1 =E\psi_1$$       $$-\frac{\hbar^2}{2m}\frac{ \partial^2\psi_2}{ \partial x^2} + V\psi_2 =E\psi_2$$   Multiplying the first equation by $\psi_2$ and the second by $\psi_1$ and subtracting one from the other, we get:       $$\psi_1\frac{d^2}{d x^2}\psi_2-\psi_2\frac{d^2}{d x^2}\psi_1=0$$   Integrating both sides       $$\psi_1\frac{\partial \psi_2}{\partial x}-\psi_2\frac{\partial \psi_1}{\partial x}=constant$$   In case of well-defined and normalizable wave functions, the above constant vanishes, provided both the wave functions vanish at at least one point, and we find: $\psi_1(x)=c\psi_2(x)$ where $c$ is, in general, a complex constant. So, the two degenerate wave functions are not linearly independent. For bound state eigenfunctions, the wave function approaches zero in the limit $x\to\infty$ or $x\to-\infty$, so that the above constant is zero and we have no degeneracy.   Here are the parts I don't understand:   How does integrating $\psi_1\frac{d^2}{d x^2}\psi_2-\psi_2\frac{d^2}{d x^2}\psi_1=0$ yield $\psi_1\frac{\partial \psi_2}{\partial x}-\psi_2\frac{\partial \psi_1}{\partial x}=constant$.  Without having explicit formulas for $\psi_1(x)$ and $\psi_2(x)$, how do we just apparently pull them both out of the integral? I don't understand how the constant in the last equation vanishes just because $\psi_1$ and $\psi_2$ vanish at infinity. Even if it does vanish, how does that imply $\psi_1=c\psi_2$?


defines different canon level for the Star Wars Universe. In the end of the Wikipedia paragraph :  Leland Chee, December 6th, 2006: "Anything not in the current version of the films is irrelevant to Film only continuity." This statement confirms the existence of two separate continuities, the "film only" continuity maintained and followed by George Lucas himself, and the "films + EU" continuity that is used for licensed products; G-Canon, and Star Wars Canon.  So... since, as I understood, Lucas will only be a consultant on the 7th movie, will it be considered G-Canon ?

For all types of derivative works, namely:   Movies Novels Comic books Other written works (including RPG materials) Cartoons Video games Derivative movies (such as the infamous Ewok movies and even more infamous )   According to what rules does something become "canon" and who is responsible for the evaluation of a published work?


Came across this on the internet. I have some ideas regarding this but I wanted to know more such reasonings.

What is wrong with this proof?    Is $\pi=4?$


As I understand it, GPUs have their own instruction sets, whose instructions are generated by the graphics drivers. The GPU instructions are then sent to the GPU. So, how does graphics communication work before the drivers are loaded? Are there some base instructions which GPUs must implement as a minimum to ensure that the computer can perform basic display tasks?

My ever-growing interest in computers is making me ask deeper questions, that we don't seem to have to ask anymore. Our computers, at boot, as far as I understand it, are in , in which a character can be displayed using the software interrupt  when . We've all seen the famous booting font that always looks the same, regardless of what computer is booting.  So, how on earth do computers output graphics at the lowest level, say, below the OS? And also, surely graphics aren't outputted a pixel at a time using software interrupts, as that sounds very slow?  Is there a standard that defines basic outputting of vertices, polygons, fonts, etc. (below OpenGL for example, which OpenGL might use)? What makes me ask is why OS' can often be fine without official drivers installed; how do they do that?  Apologies if my assumptions are incorrect. I would be very grateful for elaboration on these topics!


I have Ubuntu 10.04 and I want to install 16.04.  I have created a USB using a lot of programs, even the one came with the distro; when I try to install 16.04 the monitor shows all it is supposed to show, but without brightness like it is turned off.  Only with a specific boot and a lot of imagination to confuse the system he authorizes me to install Ubuntu.  My question is:  Is it possible to install 16.04 or another version from the desktop from the terminal or something?  Or this can only be done from outside?  mia@mia-laptop:~$ lspci -k  00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 09)     Kernel driver in use: agpgart-intel     Kernel modules: intel-agp  00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 09)     Kernel driver in use: i915     Kernel modules: i915  00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 09)  00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)     Kernel driver in use: uhci_hcd  00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)     Kernel driver in use: uhci_hcd  00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)     Kernel driver in use: ehci_hcd  00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)     Kernel driver in use: HDA Intel     Kernel modules: snd-hda-intel  00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)     Kernel driver in use: pcieport     Kernel modules: shpchp  00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)     Kernel driver in use: pcieport     Kernel modules: shpchp  00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 03)     Kernel driver in use: pcieport     Kernel modules: shpchp  00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)     Kernel driver in use: uhci_hcd  00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)     Kernel driver in use: uhci_hcd  00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)     Kernel driver in use: uhci_hcd  00:1d.3 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)     Kernel driver in use: uhci_hcd  00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)     Kernel driver in use: ehci_hcd  00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)  00:1f.0 ISA bridge: Intel Corporation ICH9M LPC Interface Controller (rev 03)     Kernel modules: iTCO_wdt  00:1f.2 IDE interface: Intel Corporation ICH9M/M-E 2 port SATA IDE Controller (rev 03)     Kernel driver in use: ata_piix  00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)     Kernel modules: i2c-i801  00:1f.5 IDE interface: Intel Corporation ICH9M/M-E 2 port SATA IDE Controller (rev 03)     Kernel driver in use: ata_piix  04:00.0 Network controller: Atheros Communications Inc. AR928X Wireless Network Adapter (PCI-Express) (rev 01)     Kernel driver in use: ath9k     Kernel modules: ath9k  05:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5784M Gigabit Ethernet PCIe (rev 10)     Kernel driver in use: tg3     Kernel modules: tg3

Recently I have installed an older version of Ubuntu on my old machine. Whenever I try to install any software, I get an error saying it couldn't be found:  $ sudo apt-get install vlc Reading package lists... Done                Building dependency tree        Reading state information... Done     E: Couldn't find package vlc


I've been trying to season my 11 7/8" Matfer Bourgeat Carbon Steel pan, with mixed success. The first time I did it, I had this weird patch of my pan that wasn't very nonstick, so I scrubbed off the bad part and tried again.   The last time I did it, I added about 1/3 cup of soy oil (smoke point around 320F) to the pan and put it over medium heat on a gas burner for 15 minutes. After the 15 minutes, I noticed that the sides of the pan were pretty amber colored, but the middle was still kind of metallic looking. At that point, I dumped some oil out and let it sit at medium heat for about three minutes. I looked away for not more than 30 seconds and my pan had developed this black, carbonized, sticky film of oil on the middle and some of the sides of the pan. (Picture included)  I'm not sure how to proceed from here. I'm thinking I will have to clean it off the film. To do this, I'm thinking of heating the pan with water, and a bit of vinegar, before taking the heat off and adding some baking soda. Then I would hit it with scotch bright and steel wool (fingers crossed that should work). But from there, I don't know what I should do differently to get a even, amber seasoning to my pan.   Any suggestions for how to clean this off, and what to do differently in the seasoning proccess would be much appreciated.  Thanks :)   Update: I have looked around a bit, and I see that I should have:     Used thinner coats of oil, let them cool, and repeat several times. Expect the actual color change to happen as the pan is cooling.     However, I wonder how much oil I actually should use for a pan this size. 1/3 cup is definitely too much.

I know there's dozen of posts and discussion everywhere, but I'm getting pretty confused. Everyone has something different to say : use rapeseed oil, coconut, olive oil, flaxseed, someone in the oven, someone on the stove.. I found two good videos, made by professional people, but they use a different process to season them:   and   The eggs are moving much better in the second video than any of my non stick pans, and I would like to obtain that result, and possible mantain it, without removing the seasoning.  Which one do you recon works better? I also have an electric stove, so it may be better using the oven instead.   My knowledge is never to wash them under the water. Just remove the sticky stuff using a spatula, put some oil to keep them well and if you need use salt and a paper towel to scrub. I read that someone is deglazing using some water in the process, or scrub them with a a brush under the water (My old chef told me never to do that so.. I'm a bit confused)  I am seeking help from the experts... :)


I managed to delete my only user from sudoers group, and now I can't do any administrative tasks anymore. I have been looking for an answer hours, and I guess that part of the problem is solved. But the real problem is that I can't access GRUB, where I could choose recovery mode. I have read many topics about the same problem, but no answer has worked for me.  When I try to access GRUB hitting/holding shift, nothing related to GRUB emerges. The same goes with ESC. What is more, after that I get a blue box saying "Default boot missing or boot failed. Insert recovery Media and hit any key. Then select 'boot manager' to choose a new boot device or to boot recovery media". After that it takes me to boot option menu. I have an option there "Unknown Device" which is supposed to be my hard drive. When I choose it, it takes me back to my login screen.  So what is wrong with this? It takes me through this same path even without pressing any button during start up.   I installed this Linux Ubuntu 14.04 LTS via USB device Acer Aspire E5-573G Intel Core i5-4210U NVIDIA GeForce 940M 256 GB SSD

I recently tried booting into the Grub2's menu entry "Ubuntu GNU/Linux, with Linux 3.2.0-24-generic-pae (Recovery Mode) just to see what was there.  It booted successfully, but I had no idea what to do after I was there.  My question is where can I find some documentation on the recovery mode and what to do if I truly needed to be there.  I'm running Ubuntu 12.04.


Are you able to beat Exodia?  I think you must destroy one of the pieces to him or you can't. Is this true?

Just reading up on the new sangan errata which is;     If this card is sent from the field to the Graveyard: Add 1 monster with 1500 or less ATK from your Deck to your hand, but you cannot activate cards, or the effects of cards, with that name for the rest of this turn. You can only use this effect of "Sangan" once per turn.   So this new Errata states that you cant use the effect of the monster you added until the turn after you use this effect.   To my understanding this means that if you have sangan in an exodia deck and you have both legs and both arms in your hand then if you use the sangan effect to add the head then you wont win until your next turn. Or would the effect of exodia overrule this effect?  And also if you have the head already and three of the other pieces in your hand when you use sangan to add the last one it doesnt have an effect because only the head has the effect and because you havent added the head to your hand then the win condition can still be activated. Or would you still have to wait a turn because the pieces are listed in the effect of the head?


I've been trying to get a ubuntu linux distro working on my computer the past day or two, and have everything working fine, except for my wireless card. I used the command  lspci -nn | grep 0280   and the response I got was   04:05.0 Network controller [0280]: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller [14e4:4318] (rev 02)   Anyone know why I'm fine with Wired connections, but Wireless doesn't even find my network?

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


I am working on my thesis and I had to do a multiple regression. I have only 45 samples and I checked that there were not problems of multicollinearity (VIF < 3) and the residuals are normally distributed.     The overall model is statistically significant (p=0.001) but all the predictors are not significant except the constant. How is it possible? Which type of analysis can I do? Thanks a lot for your support. Dam

In a multiple linear regression, why is it possible to have a highly significant F statistic (p<.001) but have very high p-values on all the regressor's t tests?  In my model, there are 10 regressors. One has a p-value of 0.1 and the rest are above 0.9    For dealing with this problem see the .


eg. JBB Inc. Headquarters 20 West RiverCenter Blvd Covington KY 41011 USA

Problem: I have an address field from an Access database which has been converted to SQL Server 2005. This field has everything all in one field. I need to parse out the address's individual sections into their appropriate fields in a normalized table. I need to do this for approximately 4,000 records, and it needs to be repeatable. Assumptions:  Assume an address in the US (for now)  assume that the input string will sometimes contain an addressee (the person being addressed) and/or a second street address (i.e. Suite B)  states may be abbreviated  zip code could be standard 5 digits or zip+4  there are typos in some instances   UPDATE: In response to the questions posed, standards were not universally followed; I need need to store the individual values, not just geocode and errors means typo (corrected above) Sample Data:  A. P. Croll & Son  2299 Lewes-Georgetown Hwy, Georgetown, DE 19947  11522 Shawnee Road, Greenwood DE  19950  144 Kings Highway, S.W. Dover, DE  19901  Intergrated Const. Services 2 Penns Way Suite 405 New Castle, DE  19720  Humes Realty 33 Bridle Ridge Court, Lewes, DE  19958  Nichols Excavation 2742 Pulaski Hwy Newark, DE  19711  2284 Bryn Zion Road, Smyrna, DE  19904  VEI Dover Crossroads, LLC  1500 Serpentine Road, Suite 100 Baltimore MD  21  580 North Dupont Highway Dover, DE  19901  P.O. Box 778 Dover, DE  19903


i have a line in crontab:  * * * * * date >> /home/pana/temperatures.txt; hddtemp /dev/sda >> /home/pana/temperatures.txt ;hddtemp /dev/sdb >> /home/pana/temperatures.txt ;sensors >> /home/pana/temperatures.txt ;printf "_________________________\n" >> /home/pana/temperatures.txt   And all i get is date, then double nothing, then sensors output and then printf. Hddtemp do not write output.  That file is 777, code is inserted through sudo crontab -e. Syslog:  Jan 19 14:17:01 knedlik CRON[7099]: (CRON) info (No MTA installed, discarding output) Jan 19 14:18:01 knedlik CRON[7108]: (root) CMD (date >> /home/pana/temperatures.txt; hddtemp /dev/sda >> /home/pana/temperatures.txt ;hddtemp /dev/sdb >> /home/pana/temperatures.txt ;sensors >> /home/pana/temperatures.txt ;printf "_________________________\n" >> /home/pana/temperatures.txt)   It is probably something dumb, but i cant see it!

Often, crontab scripts are not executed on schedule or as expected. There are numerous reasons for that:   wrong crontab notation permissions problem environment variables   This community wiki aims to aggregate the top reasons for crontab scripts not being executed as expected. Write each reason in a separate answer.  Please include one reason per answer - details about why it's not executed - and fix(es) for that one reason.  Please write only cron-specific issues, e.g. commands that execute as expected from the shell but execute erroneously by cron.


Which is the better choice to choose whether timestamp or datetime.. I'm currently  working in mysql . for date and time field in database table which is the better one?? and the reason to choose it??

Would you recommend using a  or a  field, and why (using MySQL)?   I'm working with PHP on the server side.


I made this logo in illustrator (pictured above) and cannot for the life of me figure out how subtract the lines from the black text so that I can place it onto different backgrounds without having the lines show up. I attempted to use pathfinder to do this but, it doesnt work. I believe this has something to do with the fact that they are just lines with a stroke on them. Can anyone please help me??

Im not that good in illustrator but i followed other people answers here with almost the same problems but didn't help. So i want to cut out the stroke from the other 2 path-s. I already made a Outline stroke effect and the other fonts are shapes too but with pathfinder won't cut as is except because this effect cut the full shape not the stroke and yes only the stroke and that other 2 path is selected...  What make i wrong here ? Thank you for the answers.


I've changed the location of the library folders from the default C drive to the D drive.  When I pin the music library folder quick search, which is in the D drive, it pins a music library folder with the location on the C drive, which doesn't even exist; it I try to unpin it, it doesn't work; the only way it unpins is if I create the music folder on the C drive and change the location of the music folder that is on D to the C drive again.  This behavior's happening on the music and videos folder, but not on the documents, downloads, pictures or desktop folder.  The following error appears when I click the pinned folder on the quick access:  and the folder looks like ; the location appears to point toward the C drive, but I clicked on pin on the folder of the D drive.  What can I do?

Happen to me recently  All the pinned folder malfunction when clicked. I got a message saying that folders doesn't exist (even though they exist)  Also I can't delete those folders from the explorer pins    For archive:  I got a much better description of what the problem is (and the solution) here:


I had to repair a flat.  Have some questions.  Is it best to apply patch to a completly flat tube?  I found a small copper wire in tire.  Is there something to minimize what can puncture tire?  Thanks

I got a flat/puncture on my bike tube, how can I fix it myself without going to the nearest bike shop? What kind of equipment would I need?


Let's suppose we have a spaceship with  the exact speed of light. If a traveller takes this spaceship to go to proxima centauri (approximately 4 years light away from Earth) and come back, we (as observers on Earth) will see the ship coming back after approximately 8 years.  But how much time would have passed for the traveller on the ship? How can be this calculated with a formula?

Suppose I wanted to travel to one of the recently discovered potentially Earth-like planets such as Kepler 186f that is 490 light years away. Assuming I had a powerful rocket and enough fuel, how long would it take me?