how to get file path using browse button in vb6

I am using this code, it gives the file name like "C:\File\sample.txt". But I am in need of getting path like "C:\File\". How can I get this path?  Private Sub cmdBrowse_Click()     CommonDialog1.ShowOpen     txtPath1.Text = CommonDialog1.FileName  End Sub


how to get jquery to recognize click event on a dynamically generated radio button?

$('.product_name:radio').click(function() {get_products()} );   get_products() never gets called because this radio button was created after the page loaded.   I've tried the following, but they do not work.  $('.product_name:radio').on('click', function(){     get_products() });  $('product_name.body').on('click', '.product_name:radio', function(){     get_products()});   What is the correct way to do this?


How to do I stop a while loop if my list doesn't have anything in it

I have a list which each round deleted something in it. How do I stop this while loop after the list runs out of things in it?  while (list has something in it):


plotting regular hexagon on a cartesian plane

I initially started with 6 separate equations in a hybrid function to plot the hexagon, but then I managed to reduce it to 3 (mistakes are here)  $$y^2=\sqrt{3}\left(x-r\right)^2\ \left\{x<r\right\}$$ $$y^2=\sqrt{3}\left(x+r\right)^2\ \left\{x>-r\right\}$$ $$y^2=r^2$$  All I want to know is if there exists a single equation which plots a regular hexagon about the centre,  and the mistakes I have made with this solution  Since I'm a newbie,a bit of help on how to reword this question to make it more specific would be appreciated.  EDIT: I would like to keep the main focus on the hexagon only, i am not interested in the other regular polygons, for simplicity of the problem and for a more detailed answer  Also answer should be expressed as equation relating y and x, not in polar form or parametric


I have something like this:   barProgress.BeginAnimation(RangeBase.ValueProperty, new DoubleAnimation(     barProgress.Value, dNextProgressValue,     new Duration(TimeSpan.FromSeconds(dDuration)));   Now, how would you stop that animation (the DoubleAnimation)? The reason I want to do this, is because I would like to start new animations (this seems to work, but it's hard to tell) and eventually stop the last animation...


Can you run a machine emulator (Bochs) inside a virtual machine?

Is it possible to, say, run VirtualBox on Windows 7 with a Linux guest, and inside that Linux machine run Bochs?   The reason is that I'm interested in starting OS development, and I've found that all the tutorials and stuff are much easier to follow on *nix machines. I tried using Cygwin, but I think it's adding another layer of complexity and not necessarily making things easier.


What about those subjective questions? Is there a place for them?

For me at least, one of the best things about SO is the fact that I can find general questions answered by many different people, often with specific reasoning, but also often with subjective assessments.  Recently, however, I've noticed that the majority of pages I find -- and in particular, the most useful of those pages, the ones like this (just a random example, I could find much better):    Are closed as "not constructive", despite the hundreds of people who certainly found the information useful. I admit I don't understand the difference between "constructive" and "useful" either.  I believe this is a duplicate of other questions, like this:    But I can't see them.  Is all this just a consequence of not being able to scale and take the additional load that conversations will generate, or ... what?


number theory division of power for the case $(n^r −1)$ divides $(n^m −1)$ if and only if $r$ divides $m$.

Let $n > 1$ and $m$ and $r$ be positive integers. Prove that $(n^r −1)$ divides  $(n^m −1)$ if and only if $r$ divides $m$.


Compare screenshots of rendered web pages

In my team, we use Selenium for automation of functional testing. We also do a lot of manual regression testing to make sure the appearance of the rendered web pages is ok. I would like to develop a framework, that would allow comparing screenshots of the "base" live web page, and the web page on the test server after applying the software update. I believe this will drastically reduce the amount of manual regression testing we need to do.   I would like the framework to be able to detect portions of web pages that were rendered differently from each other. An example of such functionality can be  (first image in the article)  I have never worked with image processing and would need ideas on what algorithms are already publicly available that would help me with the task. From what I can see, the simple pixel-by-pixel comparison would not work well, because it does not account for the concept of elements.  Or am I approaching this problem from a completely wrong direction?


How is the F-Stat in a regression in R calculated

I am running a regression and I'd like to be able to do the calculation to get to the F stat  .3062.  How is this .3062 calculated?  Can you help?   x<-rnorm(20000) y<-rnorm(20000) data<- data.frame(x =x, y=y)  fit<-lm(x ~ y) summary(fit)  ####### calculation for r squared rss<- sum(resid(fit)^2) meanX<-mean(x) tss<- sum( (x - meanX)^2) r.squared<- 1-(rss/tss) r.squared   Call: lm(formula = x ~ y)  Residuals:     Min      1Q  Median      3Q     Max  -3.6405 -0.6794  0.0033  0.6674  4.3485   Coefficients:             Estimate Std. Error t value Pr(>|t|) (Intercept) 0.003090   0.007064   0.437    0.662 y           0.003897   0.007043   0.553    0.580  Residual standard error: 0.999 on 19998 degrees of freedom Multiple R-squared:  1.531e-05, Adjusted R-squared:  -3.469e-05  F-statistic: 0.3062 on 1 and 19998 DF,  p-value: 0.58


Evaluating the supremum of a function as n tends to infinity

Problem: Let $g:[0,1]\to\mathbb{R}$ be a continuos function such that $g(1)=0$. Show that $\sup\limits_{x\in[0,1]}|x^ng(x)|\to0$ as $n\to\infty$.  My approach: Let $f(x)=x^ng(x)$. Then, $f(x)$ is continuos on $[0,1]$. Using the extreme value theorem we can say, that $|f(x)|$ is bounded on $[0,1]$ and attains its bounds, i.e., $\exists x_0\in[0,1]$ such that $|f(x_0)|=\sup\limits_{x\in[0,1]}|f(x)|$.  Now, $|f(x_0)|=|x_0^ng(x_0)|$. If $x_0=0$, then we are done. So, let us assume $x_0\neq0$. By the Archimedean property of $\mathbb{R}$, $\exists$ a $y\in\mathbb{R}$ such that $y=x_0^n\leq1$, since $x_0\in[0,1]$.   Hence, $\lim\limits_{n\to\infty}\sup\limits_{x\in[0,1]}|x^ng(x)|=\lim\limits_{n\to\infty}\sup\limits_{x\in[0,1]}|f(x)|=\lim\limits_{n\to\infty}|f(x_0)|=\lim\limits_{n\to\infty}|yg(y^{\frac{1}{n}})|\leq\lim\limits_{n\to\infty}|g(y^{\frac{1}{n}})|=g(1)=0.$  I will be glad if anyone can tell me if I have done any mistake and if so please help me to correct it.  Thank you.


In SQL Server 2008 R2 I have some data in a varchar(12) column, it looks something like this:  Data: %%1234 %1765 34566 123 %SDRMH HJG434   I'd like to drop the '%' from all the rows that have it and also only select those which are numbers. I've already tried to use the ISNUMERIC() function, but it looks like that leaves the % in the rows.  Any help is greatly appreciated.


Is there a difference between the two sentences?

-The train could leave Boston.      -The train would leave Boston.   Is there a difference? Are they interchangeable?


with javascript:void(0) href not calling ajax query after one use

I have dropdown on page with this menu item:
Mark as New
   And I have jquery event handler for click on this   $(function () {      $('.change-state').click(function () {          var attr = this.dataset;          $.ajax({              method: 'POST',              url: '@Url.Action("ChangeReportStatus", "Default")',              data: { id: attr.id, status: attr.state },              success: function (data) {                  var name = '#report-number-' + attr.id;                  $(name).html(data);              }          });      }); });   And when I open my page, click this  I have changes by ajax, but if I try to click it again, nothing works. I think it's because I using javascript:void(0), but without this my ajax refresh all page, not only element. Please help me to solve this issue.


Is it possible to convert a string to an enum key and vice versa?

I would like to know if it is possible to convert an enum key to a string and a string to an enum key like follow:  enum AllGameSettingsLabels {     Options_Controls_Joystick_Sensitivity,     Options_Display_Screen_Resolution,     Game_Character_Name     // ... }  IDictionary<AllGameSettingsLabels, string> settings = new Dictionary<AllGameSettingsLabels, string>();  settings[AllGameSettingsLabels.Parse(AllGameSettingsLabels.Joystick_Sensitivity.ToString() + "_Player_1")] = (0.25).ToString();   I was trying to come up with an easy way to manage all the game settings and later converting them to JSON.


Upgrading the BIOS on Lenovo IdeaPad B50-70 Without Windows

I would like to upgrade my Lenovo B50-70's BIOS. The only options for OS on the product's  are Windows 7 and 8.   When I try to run the EXE file inside Hiren's MiniXP it claims the system battery is missing (although it's plugged in). I extracted the EXE file and found the BIOS .ROM file, but there's no way to install it. The Insyde20.exe program works only in Windows.  Obviously, I won't install a full version of windows just to upgrade the BIOS...


Why 401K contribution as whole % rather than in quarter percent resolution

I asked another , and there are reasons for employers to keep it in percentage of salary instead of fix dollar amount.   But what is harm in making it a fraction of a percent, like permitting 5.5% or 5.25% with a lower limit of say 1% to upper limit of 70%, but any number in units of 0.25% for example 1.25%, 1.5%, 1.75%, 2% or 69.25% and so on?


Math.round and String.format functions does not round up correctly for all float values

I tried Math.round and String.format function to round float/double values.   1) Using Math.round function  Math.round(floatValue* 10.0) / 10.0;   For floatValue 40.55, result is 40.6 //Correct & Expected result.  For floatValue 30.05, result is 30.0 //Incorrect result. Expected result: 30.1  2) Using String.format function  String.format("%.1f", floatValue);   For floatValue 40.55 result is 40.6    //Correct & Expected result.  For floatValue 59.65 result is 59.6 //Incorrect result. Expected result: 59.7  Why same function is behaving differently for different float values.


Was Chief O' Brien demoted from Lieutenant to Chief?

Originally he was seen as a Lieutenant (2 full pips) but later he doesn't have any is referred to as an NCO with the rank of Chief Petty Officer (TNG s4 and DS9)  So it wasn't because of his transfer because s4 of TNG already refers to him as Chief Petty Officer.


public int calculateAge(){     int age = 1900;     int yearNum = 0;     String birthYear =(getIc().substring(0,1)) + age;     yearNum = Integer.parseInt(birthYear);     int year = 2015 - yearNum;     return year; }  When I call the above method in the code below then a java.lang.NullPointerException will occur. Method calculageAge() is in the main method. When I ask to display back the ic that the user has input, it displays 'null' instead of value that the user entered. int AgeInfo=0; for (int i=0; i<size; i++){     if (arrAlumniSTJApp[i].calculateAge()<50)         AgeInfo = i;          } System.out.println(arrAlumniSTJApp[AgeInfo].toString())


Can clerics wield divine magic if they do not have a god?

Clerics in a previous edition . In 5th edition, this seems to have changed. The introduction for clerics in the PHB says:     Divine magic, as the name suggests, is the power of the gods, flowing from them into the world. Clerics are conduits for that power, manifesting it as miraculous effects. The gods don’t grant this power to everyone who  seeks it, but only to those chosen to fulfill a high calling.   However, I would like to handle a strange case in which clerics still exist, but the gods they serve are dead and hence unable to provide divine magic anymore. And while I can simply make up a reason why this is, I'd like to know: is there any official support for clerics wielding divine magic despite the absence/death of their gods in this edition?


Enumerate sentence beginning with square bracket

In the enumerate environment, an item begins with "[Co]image is..."  LaTex interprets the square bracket as a customized bullet symbol. How can I write [ without this glitch?


How can I quickly see into complex structures during debugging with g++ and c++

Modern C++ has a lot of templated and wrapped elements that become a hassle during debugging because gdb is a generic debugger, without specific c++ features.  There's no way to easily list the elements in an STL container. When using a boost::shared_ptr shared pointer there's often no way to de-reference the referent to see what's going on.  Is there a set of gdb macros, or even a more advanced version of gdb that can make this stuff easier to see?


Determine if $\Bbb Z_2 \times \Bbb Z_3$ is isomorphic to $\Bbb Z_6$.  Computing the direct product I have that $\Bbb Z_2 \times \Bbb Z_3 = \{(x,y) \mid x \in \Bbb Z_2, y \in \Bbb Z_3 \} =\{(0,0),(0,1),(0,2),(1,0),(1,1),(1,2)\}$ this has $6$ elements as does $\Bbb Z_6 = \{0,1,2,3,4,5\}$ I used this to conclude that the two groups are isomorphic, but I have a feeling that this doesn't count as a way to determine this. It seems that this could be done by looking at the orders of each group? I know that the order of a $g \in G$ is the smallest $n$ for which $g^n = e$, but I don't see how this can be used to show isomorphism?


Prove that $x = uy$ for some unit $u \in R^{\times}$ iff $(x)=(y)$ as ideals.

Prove that:In a commutative ring $R,$ $x = uy$ for some unit $u \in R^{\times}$ iff $(x)=(y)$ as ideals. My thoughts: I feel like the idea is similar to the proof of the following proposition: Proposition. Let $I$ be a left or right ideal of a ring $R$ with unity. Then $I = R$ if and only if $I$ contains a unit. Proof: Let $I$ be a left ideal of $R$. If $I = R$ then $1 \in I$, so $I$ contains a unit. Conversely, if $u \in I$ is any unit, let $u^{-1}$ be its inverse. For any $r \in R$, we have $r = r (u^{-1} u) = (r u^{-1}) u \in I$, because $I$ is a left ideal. Thus $I = R$. This logic is easily adapted for right ideals to show the same result. Certainly it then is true for two-sided ideals and ideals of unital commutative rings. But still I do not know how to write a rigor proof, could anyone help me in doing so please?


How to determine which item/role mechanic overrules another, if they contradict each other?

There are some occasions when one Role or Item says that it will 'make x happens' and then another Role or Item says that it will 'make y happen'.  An example is the Bloodletter's ability used on somebody carrying a Veil of Shadows.  Is there some system or list that can be provided that tells which effects have priority over which other effects?  The only general rule I know to apply is the night immunity of Vampires, and some specific exceptions for Courts/DW and Succubi...


Is there a way to let certain applications run with UAC without prompt?

I've looked at other questions in the related bar and they're close but they don't help.  Anyway, I want to let one or two applications run as admin without getting this:    However, I only want to let a few applications bypass the prompt.   Obviously I want to let them keep admin UAC rights.


is there way to find an object from javascript array

I am working on a bot project. I want to give auto reply if any string found from array: This is my code so far: var boys = ["sam", "nick", "jason", "satish", "jochem"];  if (data.items[index].snippet.displayMessage.toLowerCase() == boys) {   myFunction();   ..... }


Which is the correct tense to use with 'by'?

I gave him the money by 6 PM.   I had given him the money by 6 PM.   I can't spot the difference between them and both seem right, but I was told the first one is wrong. Can anyone say, why?  Here is a another set of sentences with the same issue:     By 5 PM I gave him the book.   By 5 PM I had given him the book.   In both the sentences the book was given before 5 PM and no later than 5 PM. But I can't understand then what the difference between them is.   Is it right to use simple past with 'by' at all? If yes, then why and if not, then why is it incorrect to use simple past with 'by'?


Python - 'Can't multiply sequence by non-int of type 'str'' error?

So I'm working on a code that lets a user input the GTIN-8 code of a product, enter the amount they want and then gives a receipt. However, when I get to the last part of the code where I am trying to multiply the amount of the product and it's price, I get the 'Can't multiply sequence by non-int type 'str' error. Here's a part of the code:  while IfFinished != "Yes":     ProductsWanted=input("Please enter the GTIN-8 Code of the product: ")     AmountOfProducts=input("How many do you want? ")      with open("Productsfile.txt") as f:         for line in f:                 if ProductsWanted in line:                     Receipt=open("ReceiptFile.txt","a")                     Receipt.write("%r, %r, \n" % (line, AmountOfProducts))                     Receipt.close()      if ProductsWanted not in ["23456945","12376988","76543111","92674769","43125999"]:         print("Product not found")      else:         print("Product found")      IfFinished=input("Are you done? If so, type 'Yes' ")     if IfFinished == "Yes":         print("Thank you for shopping with us!")     else:         print("Please continue")  Receipt=open("ReceiptFile.txt","r") print(Receipt.read()) Receipt.close()  with open("ReceiptFile.txt","r") as file:     for line in file:         currentline=line.split(",") quantity=currentline[3] ItemPrice=currentline[2] Totalprice=quantity*ItemPrice price="0" Total=price + Totalprice  print(Total)


Today I went through a link in Oxford stating       If the verb has only one syllable and ends with a single vowel plus a consonant (e.g. stop), then you need to double the final consonant before adding -ed and -ing:      stop-stopped-stopping   but then I remembered the words: come and flow.   If we follow this rule it would be comming and flowwing when we add -ing suffix. However it would make the words look strange and alienated cause i have never seen anyone write it like that (at least to the extent of my study). So can you guys help me clarify this situation? Thanks in advance.


How do I write output in same place on the console?

I am new to python and am writing some scripts to automate downloading files from FTP servers, etc. I want to show the progress of the download, but I want it to stay in the same position, such as:  output:     Downloading File FooFile.txt [47%]   I'm trying to avoid something like this:       Downloading File FooFile.txt [47%]      Downloading File FooFile.txt [48%]      Downloading File FooFile.txt [49%]   How should I go about doing this?    Duplicate:


Show that there is always a proposition between two propositions logic

Suppose we define the following relationship of ordering between propositions in PROP: $$ \phi < \psi := (\models \phi \rightarrow \psi \land \lnot(\models \psi \rightarrow \phi) ) $$ Show that if exists $\phi$ and $\psi$ such that: $$ \phi < \psi $$ Then there is a $\sigma$ such that: $$ \phi < \sigma < \psi $$ I have tried to use valuation to find what $\sigma$ could possibly be, so for all valuations v:  If $v(\phi)=0$ and $v(\psi)=0$ then, since $\models \sigma \rightarrow \psi$, $v(\sigma)=0$  If $v(\phi)=1$ and $v(\psi)=1$ then, since $\models \phi \rightarrow \sigma$, $v(\sigma)=1$  It is impossible that $v(\phi)=1$ and $v(\psi)=0$ since $\models \phi \rightarrow \psi$  If $v(\phi)=1$ and $v(\psi)=0$ then $v(\sigma)$ could be either 0 or 1, and it would satisfy the tautologies, but if:  $v(\sigma)=0$, then the valuation of $\sigma$ would be equal to valuation of $\psi$ for all valuations and thus $\models \psi \rightarrow \sigma$, which is a contraditcion; $v(\sigma)=1$, then the valuation of $\sigma$ would be equal to valuation of $\phi$ for all valuations and thus $\models \sigma \rightarrow \phi$, which is a contraditcion.


let $s\in \mathbb{R}$. How to calculate the  limit    $$ \lim_{n \to \infty}\sum\limits_{i=1}^n \left(\dfrac in\right)^{sn}$$


When I tried  $ inxi -Fxz   There was an entry about the graphics card as shown below  Card-2: Advanced Micro Devices [AMD/ATI] Whistler [Radeon HD 6630M/6650M/6750M/7670M/7690M] bus-ID: 01:00.0   There is no mention of 1GB graphics card in About this computer in the core, nor in tools like Stacer or Additional Drivers  Does this mean that graphics card is not working?


Is it possible to search for a file using the checksum instead of the name?

Suppose I want to do a search to find out if I have a file that matches the sha256 generated from the file test1.txtusing the command:  sha256sum -b test1.txt   I get as output:  e3d748fdf10adca15c96d77a38aa0447fa87af9c297cb0b75e314cc313367daf * test1.txt   So, I want to find the files that match the checksum generated instead of using the name.  Is this possible?


make bilingual or trilingual LaTeX document

How do I make a bilingual (two-column) or trilingual (three-column) LaTeX document?  E.g.:   | Original language | Translation 1 | Translation 2 | |                   |               |               | |                   |               |               |   Also, paragraphs from each language must align vertically properly, too.  thanks


Redundant Skill Selection in 4th edition Dungeons and Dragons

Good evening:  I was looking over some of the classes in the Player's Handbook and found something I must not have noticed when I had first started playing: redundant skill selection for some classes, most notably for those with either arcane or divine power sources. For example, the cleric seems to innately get Religion as a skill, but may also choose Religion from the other skills.  Thus, is that secondary skill (religion) even necessary to be noted as one of the skills able to be selected by a cleric? If I were to take that skill from the class skills, would be it supplemental to the innate bonus? To emphasize this in an example form, would it then be possible to make a cleric that is /not/ trained in religion (every cleric that I have encountered by other players and made by myself has been trained in religion, though).  I do not have my books with me as I type this now, but it is something that came up to me to mull over these past few months.  Thank you in advanced for any help you may provide--please, tell me if and where it is clearly stated in the rules and errata wherein this seeming redundancy is noted.


Why didn't all the Jedi at the Jedi Temple sense Anakin and his legion of Clones’ thoughts?

If you go back to Attack of the Clones, Anakin and Obi-Wan sensed that poisonous alien worms were about to kill Padme. Back in Revenge of the Sith, the Jedi could take on the legion or if there were too many, they could at least escape.


Can someone explain to me what a Wald test is please. I have seen it twice today and cannot figure out what it does (other than test for sig difference like a t-test or chi-square).  What would you use it for, and what makes it the right test to chose?  Thanks in advance Cat


How to de/encrypt user data with attr_encrypted and authlogic

I have a user model using authlogic and a model storing some confidential data for each user. To secure the system, I would like to de/encrypt the attributes of the latter model using attr_encrypted. I want to have a system that is secure, if somebody manages to steal the entire database and application source code.  My question is: What is the best way to generate the password for attr_encrypted? And how do I keep it in "memory" during the login session, so that I can de/encrypt when it is necessary?  I thought of following:   Generate a random password when a user registers, encrypt it with the users password and save it in the database. Whenever the user logs in, use his password to decrypt the random password.  Save the random password in a cookie, so that personal data can be de/encrypted whenever necessary.   Do you have any suggestions or better ideas? In particular I am unsure about the last bullet point...


Yesterday I've done a completely fresh Windows 8 Pro install on brand new Samsung SSD. I recall that just after the installation Windows was taking about 10GB. I've installed all the updates and when today I entered My Computer I've almost got a heart attack: disk C: 12.3 GB free of 118 GB!  The file explorer, when I enter the disk highlight everything and go to Properties, tells me that the files in there take only 22.5 GB of space which seems reasonable.  So where is my 100 GB?


How can I install updates and shut down from the command line?

I know that there is a simple way to shutdown the computer in command prompt, but is it possible to do system updates and then shutdown the computer in command prompt?   For example, when Vista needs to install updates, it will let me install them and shut down by clicking the Shut Down button (while relegating the normal shut down button into the menu). So is there a command to do this in command prompt?


How "Alive" are Animals Created by Spells?

I think the first time we see an animal or supposedly living being created by a spell in Harry Potter is when Harry and his friends are in the Transfigurations class and Professor McGonagall turns her desk into a pig and back into a desk.  There's also a reference, in the same scene, that Harry realizes it'll be a while before the students are changing furniture into animals.  I don't remember reading anything in the books (but a few of mine have been loaned out and haven't come back for months and months!), but wondered if there was anything elsewhere, from JKR or other somewhat authoritative sources about whether animals created by transfigurations or by other spells are actually alive.  Are they full biologically complete versions of the animals?  If so, do they have the same sense of awareness of an authentic version of the same animal?  I can't remember whether or not I read somewhere that spells can't create life.  If that is the case, then what drives the behavior in an animal created by a spell?


Why does the system assign approximate value to the floating point numbers

While studying about float datatypes I wrote a program in C++: float a = 0.3, b = 0.4, c = 0.7; cout << "a+b= " << (a + b) << endl; if ((a + b) == c) {     cout << "Success..." << endl; } else {     cout << "Failure..." << endl; }  The output I received was: a+b= 0.7 Failure...  I am using visual studio code as my IDE and it facilitates that on hovering the cursor over a declared variable it shows the approximate value assigned to the variable and I realized that for a it was 0.2999999999999999889, for b:0.4000000000000000222 and for c:0.6999999999999999556. So, my question is that is there a method/a data type which can store the true value of a floating point. And why does the system stores these values in approximate form rather than in the true value.


Keep my second 401k or pay a chunk of mortgage?

I am 28, single (with no lady in sight), and I earn a high salary in a tech job.  After moving to a new job, I have a 401k account from my previous employer (through Principal, employed for 2yrs) sitting on ~$30k that I have not rolled over into my new 401k account (through Fidelity).  Which strategy makes more sense:  A: Rollover the cash from the previous account into the new one  I have no 'retirement' plans because I enjoy working and have plans to start a company, and essentially will be happy working until I die :)  I am maxing out my contributions to my current plan, and I already have a decent amount in there as well. I don't see this option favorably because I believe I can make better use of this money now, seeing as I am in a very good spot in my career.  B: Pull the money out and apply it towards my mortgage  I understand that pulling money from a 401k will reduce the quantity I receive, but as far as I see it this is not such a bad deal because it is like paying taxes on income. (Principal says I will lose up to 30%)  My mortgage:    1 year old 3.875% fixed rate Started at $405k, owe ~$380k Initial downpayment was 5% when I signed, but at the time I only had about $15-20k saved up and was faced with the decision between moving/paying high rent or trying to get my own place. As a result of being under 20%, I am paying mortgage insurance of about $300/mo.   I've read many articles/questions about paying more towards your principal, and how it will shorten the length of the loan. I am unsure if paying a big chunk at once has the same effect as paying more over time.  BONUS! C: Pull the money out and use it as capital for investment purposes  I am wise with my money for the most part and I have no credit card debt. I will research other investments if this makes financial sense.  A personal Note  I come from a poor family and I am okay living a 'simple' life. If the world were to collapse I would be able to find happiness flipping burgers. My ultimate goal and dream, however, would be to help my parents pay off their house (FHB ~4 years ago) so they could finally have a retirement. I currently send $1000/mo to my mom for this very purpose.  I know it's naïve but I sometimes imagine walking in with a suitcase full of money and a stupid smile and being able to say 'hey guys, you can stop working now' :D  anyway. That's where I'm at. Wisdom?


Play store - Wishlist server error DF-DFERH-01 - ZTE Blade III

My android was working fine until one day, i saw     Error retrieving information from server. [DF-DFERH-01]   with a RETRY button.  This is happening only in the "My wishlist" menu. No errors before.  I have ZTE Blade III with android 4.0.4 Ice Cream Sandwich.  SCREENSHOT:


I was wondering if you'd like to come to the cinema with me this evening? Is the use of a question mark correct?

I wonder if we need to use a question mark following "I wonder" for requesting something.   For example: I was wondering if you'd like to come to the cinema with me this evening?  Is using the question mark correct here?


I am trying to understand system administration on Ubuntu. So, as an example, I create a dummy user using   sudo useradd -d /home/linda linda   and passwd to create the password. I check that an entry has been made using cat /etc/passwd  linda:x:1004:1004::/home/linda:/bin/sh   However, when I su - linda, I get    No directory, logging in with HOME=/    and indeed, no home directory has been created. What am I missing?  Thanks.


How to install Google Chrome completely offline and without checking for new version?

I have downloaded the offline (consumer, i.e. not msi package) installer for Google Chrome. But when I run it, it tries to contact a Google server to check for a newer version. If it finds it, it will download that first, and then install that version. It doesn't use the version that is already there, as part of the EXE file. For me, that defeats the point of having an offline installer. I keep a repository of all the free and purchased software locally, so that I can install them quickly whenever I need to. But as more and more people get access to broadband Internet connections, many developers and companies are pushing for offline installers with new releases. Many software titles, like Google Chrome, are almost exclusively distributed with online installers.  File name: ChromeStandaloneSetup.exe File version: 1.3.21.115 Size: 36.6 MB (38 416 368 bytes) SHA-1: 2393BAB7F408DC8D30F039FCA5D6B45600A0C4E7   How do I install Chrome as is, without automatically checking for and getting a newer version?  Will  work with Chrome installer? Is there a switch to disable version check when running the installer?  Update:  The "duplicate" question linked to below points out File Hippo as a possible repository where you one can get previous versions of Chrome. They do have a healthy listing of pretty much every single Chrome version ever released on Windows, both beta, dev and stable versions. Unfortunately they don't host the installer files, they only redirect to Google servers for downloads, which only spits out the installers for the latest versions of Chrome. It's not just File Hippo, I also tried downloading an older version of Chrome from CNET Downloads, and they too just redirect you to Google servers for download.  For whatever the reason (security related probably), Google doesn't like anyone to install an older version of Chrome on any system. Apparently not even your common source for downloading an older version of a software, like the CNET Downloads, not even they are allowed to host the Chrome installer files on their own servers. The redirects to Google is probably dictated by Google.     Google is a dictator!   They don't even allow full standalone offline installers to be installed as is, without checking for newer version. I tried running the installer from cmd with some of the command line switches used for Chromium. I only ended up with errors.    The business oriented msi installer (GoogleChromeStandaloneEnterprise.msi) might have some additional command line options you can use, but I wouldn't know if there is one that disables the check for a newer version. I have yet to find a complete list of switches you can use. The only one I've found so far is /update but that only does the opposite thing. So I'll give up here and go back to the trusty Firefox.


Texture disappears when "Render Image" is clicked

The main screen before clicking "render image":    Page 1 of the options (pages made by scrolling):    Page 2 of the options (pages made by scrolling):    I am very, very new to Blender, so bare with me.  I had a friend make a model for me.  He assigned two textures to two objects called "Cube" and "white."  Each works properly when the render view is closed, but when I generate a render, no matter what pose, all textures disappear, and the model is solid black without shading.  How do I fix this?


List all directory in storage with adb : adb shell ls -a   /storage . .. emulated sdcard0 self  I want to list all directory located in  /storage/emulated: adb shell ls -a   /storage/emulated ls: /storage/emulated: Permission denied  Add sudo to list again: sudo adb shell ls -a   /storage/emulated ls: /storage/emulated: Permission denied  How can i get the permission then?


How do I get a list of all unversioned files from SVN?

Sometimes you're developing and you decide to commit, forgetting you created a few files on your project. Then a few days down the line your buddy gets your build out of Subversion and complains that some files appear to be missing. You realize, ah crap, I forgot to add those files!  How can I get a list of the files that are not under version control from Subversion so I'm sure I've added everything to the repository?


How to losslessly transcode MKV to WebM or MP4?

I've downloaded a rather vast number of videos from YouTube over the past couple of years (probably in excess of 1500) - and these are all MKV.  Unfortunately — Premiere Pro seems only capable of importing some of them, some of the time, which appears to be a whole rabbit hole in and of itself.   I would like to transcode these files into something which Premiere can import/edit without difficulty - like MP4 or WebM - and without compromising quality.  I've gone through a large number of videos on YouTube to try and find a way of doing this - but what I've found has either been extremely time-consuming or not yielded a result that's lossless.  Some have suggested various "converter" type applications - but the processing time per file (not even major files) is absolutely insane.  I've seen FFmpeg being mentioned - but is the result actually lossless?


How to take effect `usermod` command without logout and login

I'm using fedora19, and I've added wheel to my account like this.  usermod -a -G wheel ironsand  And I've logged out and logged in again to take effect the command according to the following answer.   I don't need to restart when I change .bashrc, if I use source command. Is there no way to take usermod effect likewise?


Linking the mesh and location of objects with different materials in different scenes

Is it is possible to keep the mesh and location linked between the spheres in the example shown below, but have different materials on the spheres?  I have tried several related examples here on Stack Exchange, although the mesh is the same and the material can be different, the position of the spheres are lost, and they can be moved independently of each other.  Does anyone know if it is possible to keep the mesh and location linked, but with different materials on the spheres? That is, any movement of the sphere in scene A should be mirrored in scene B.   The .blend file for this example is available at     The material is linked as object


How to package a pom project as runnable jar

I have a free project that is all based on Free and Open source programs:   some of them have pom and public accessible jars some of them have pom but no public accessible jars some of them have no pom   I want to distribute the project as a unique jar since all licences are compatible I legally can, if it's possible to generate such a jar with maven, I don't know how. Can you help?  If it's not possible what is the best way to distribute such project?    My pom is managed by netbeans, here is the missing configuration:  <build>     <plugins>         <plugin>             <groupId>org.apache.maven.plugins</groupId>             <artifactId>maven-compiler-plugin</artifactId>             <version>2.3.2</version>             <configuration>                 <source>1.7</source>                 <target>1.7</target>             </configuration>         </plugin>         <!-- I added the following -->         <plugin>             <groupId>org.apache.maven.plugins</groupId>             <artifactId>maven-assembly-plugin</artifactId>             <configuration>                 <descriptorRefs>                     <descriptorRef>jar-with-dependencies</descriptorRef>                 </descriptorRefs>                 <archive>                     <manifest>                         <mainClass>net.hypermove.graphitidb.GraphitiDB</mainClass>                     </manifest>                 </archive>             </configuration>         </plugin>     </plugins> </build>


event listner isn't working on dynamically created object

In my php page there are three select tag. If I select the first one then second one appears (fetching its data from an Oracle package). Its working perfectly but when I click the second select tag the third one is supposed to appear. But it isn't.    <select id="first_list">   //options are fetched using a different function   </select>   <select id="second_list" hidden="true">   </select>   <select id="third_list" hidden="true">   </select>    <script>  $(document).ready(function() {  $('#first_list').change(function(e) {     e.preventDefault();     $.ajax(     {         url:'ajax.php',         type:'POST',         async:true,         data:{             var1: $('#first_list').val()         },         success:function(response) {             //alert(response);             var a=(response.toString()).indexOf("<select");             var b=(response.toString()).indexOf("</select>");             var c=response.substring(a,b);             document.getElementById("second_list").style.visibility="visible";             document.getElementById("second_list").outerHTML=c;         },         complete:function(){             //alert("complete");         }     }     ); });    $('#second_list').change(function() {     alert("second list is hit");   });    </script>     Here the second event listner is not working. What's the reason? I somewhere read about using on function but I didn't understand it fully. Could somebody help me solve it out please?


Which versions of ubuntu are compatible with INTEL Core i5 6th generation ASUS A556U laptop

I had ubuntu 14.04 on my lap but it did not support my trackpad. I am very new to OS and compatibility issues. Please help me out


Sorry for the lame description.  show something a little strange:    There was no delete button in the flags list; I went to the question and clicked delete, and a blank error box appeared; I refreshed and tried twice more, and then opened it in a new tab and finally deleted it (it showed two previous votes at that time). An empty flag box also hung around for a while.


How to prove this result on binomial coefficients?

Question: If $(1+x)^n=\binom{n}{0}+\binom{n}{1}x+\binom{n}{2}x^2+\dotsm+\binom{n}{n}x^n$, prove that $\binom{n}{1}-2\binom{n}{2}+3\binom{n}{3}-\dotsm+(-1)^{n-1}n\binom{n}{n}=0$  My attempt:  I wrote the expression for $\binom{n}{k}$ for each term in the L.H.S and then tried to simplify but could not reach the R.H.S.  Please help. I have no idea on how to begin. I am not allowed to use calculus.


How to save a list (a) in another list (b) and change a while it stays in the same in b?

I want to add a list (a) to another list (b). But with the twist, that I can change list a and the added list a in list b stays as it was. So that I can add list a again.  for example:  a = [a, b , c] b = [1, 2] b.append(a)   now b is [1, 2, a, b, c]  a = [4, 3]   and now b should stay [1, 2, a, b, c] so that I could append b again by a so, that it would be [1, 2, a, b, c, 4, 3]  So I try to create a list b, that is like an overview of the whole thing and need the list a, that I added earlier to stay the same in list b while I change it in the second run through the for loop.   (I am still kinda new to python and stack overflow so sorry for any mistakes xd)  Edit: I saw, that this question got linked to similar one, but the key difference (at least in my eyes) is, that I don't want to mutplicate the same thing, but to add a list (a) to another list (b) and being able to change a. At the same though the a in b should stay the same.


How to create a shortcut to open new window of nautilus and actiavte this window?

I know how to create a shortcut on Keyboard>Shortcuts. But if I want to create a new window and activate this one, I would like to know.  It shoudl be: nautilus;wmctrl -a nautilus;  but keyboard>shortcut doesn't accept that.


Android App unavailable for download in Isle of Man

I'm having the same problem as the  where our Android app is not available for download in the Isle of Man, from the Google Play store.   As IoM is part of the UK, it should be available already as the UK is a selected territory.  Does anyone know of a workaround apart from our users travelling to the UK and downloading it?


How to plan investment and retire at an age of 45?

I am a recent grad who just  began working for a  'big 4' software engineering firm.  I earn a good salary and I  would like to invest 75% of it efficiently so that I can retire early at age  45.   Various sites that I have read suggest that investing  provides a great long term return.   I  don't know much about  stock trading but  I want to learn various methods of investing.  I'm  learning as much as possible from googling  terms but I think I need hell lot of time for this.   I do not want to invest in mutual funds and let someone work over my money. I do not plan to invest all my money in  stocks. I also plan to put some percentage in  fixed deposits and government bonds which are  less risky and provide a lower return.  What should investment strategy be?   TLDR : Can anyone suggest effective methods or road-map beginners should follow from where one should  start learning stock trading and basic market terminologies to feel confident for trading?


Displaying map labels over coordinate grid in QGIS?

My grid overlaps labels placed on a map.   Is there a way of forcing the labels to be displayed in front/on top and the grid placed behind the text?   Despite looking I cannot find a solution.     Using QGIS 2.18.15


Does my friend have to download all the mods or just me?

I want to play modded survival with my friends and I have the mods, do they have to download all of those or do I just have to have them?


Retrieve title of external websites for use as link text of bare URLs

I have 2 URLs:       the 1st one is the stack overflow URL and the 2nd one is another website URL.But when we put the stack overflow URL ,this automatically change (Anatomy of a "Memory Leak") URL to HyperLink format  URL :https://stackoverflow.com/questions/104/anatomy-of-a-memory-leak   But  that URL changed in hyperlink format like :Anatomy of a "Memory Leak"  It's good ! we can manually do this ,for select text and press ctrl+k then past our URL.I didn't said this way. I said for add dynamic text with same functionality  (Automatically Change the other site URL To hyperlink format same as when put stack overflow URL) when put other website URL?


Compare two files with first column and remove duplicate row from 2nd file in shell script


Customizing enumerations and itemizations

Is there a guide out there on how to customize the enumerate and itemize instances in my code?  (I'm using the Memoir class in LaTeX for Windows, and I have the enumitem package included.)  I want to mess with the margins and spacings to make my lists look a little less "LaTeX-default"...


Should I omit my master's supervisor from Referees list in PhD Application?

I've finished my masters thesis and waiting for results. Meanwhile, I've started searching for PhD position. and I find out one of the requirement of one to three referee contacts, one of them preferably the masters supervisor.   I've 3.93/4.00 CGPA with coursework and My current masters supervisor is quite satisfied with my research performance so far. He wants me to continue my PhD with him and has offered me the position as well. Whereas, I don't want to continue with him and that's why I haven't told him about my PhD plans.   I'm confused and I'm not sure if I tell him that I don't want to my PhD with him, Will he write good remarks about me or he'll write bad remarks so that I don't get PhD position somewhere else.   Another problem is that if I tell him straight forward that I am not interested to continue my PhD with him I might lose this opportunity as well.   I've no one to discuss with about this issue and about my further PhD plans. Time is running and I'm becoming more and more stressful.


Windows 10 Administrator account has been disabled. Please see your system administrator

I recently had a problem after installing Windows 10 which required me to start in Safe Mode to rectify it. Since this I can no longer "restart" and the only screen that comes up is:     Administrator       Your account has been disabled. Please see your system administrator.      OK   When I click "OK", nothing happens, I can't get into another screen, I can not log in as administrator nor as myself as it just doesn't have any other screen options to select.  Is there anything I can do?


Unbiased estimator with minimum variance for $1/\theta$

Let$ X_1, ...,X_n$ be a random sample feom a distribution $Geometric(\theta)$ for $0<\theta<1$. I.e,  $$p_{\theta}(x)=\theta(1-\theta)^{x-1} I_{\{1,2,...\}}(x)$$  Find the unbiased estimator with minimum variance for $g(\theta)=\frac{1}{\theta}$  My attempt:  Since the geometric distribution is from the exponential family, the statistics $$\sum X_i $$ is complete and sufficient for $ \theta$. Also, if $$T(X)=X_1$$ is an estimator for $g(\theta)$, it is unbiased. Therefore, by the Rao-Blackwell theorem and Lehmann-Scheffé Theorem, $$W(X) = E[X_1|\sum X_i]$$ is the estimator we are looking for.  We have the following:  $W(X) = \sum_{i=1}^t i\, P(X_1=i|\sum X_i =t) = \sum_{i=1}^t i\, \frac{P(\sum_{i \geq 2} X_i  =t-i)P(X_1=i)}{P(\sum_{i \geq 1}X_i =t)}$  Since the variables are iid geometric, the sums distributions are both negative binomials. But i am having troubles tosimplify the binomial coefficients and give a final answer with a better form, if it is possible.I wpuld be glad if I could get some help.  Thanks!  Edit: I dont think you guys understand my doubt: Ithink I made all the correct steps, maybe only forgot some indicator function. Here is what I did:  $$...=\sum_{i=1}^ti\frac{\binom{t-i-1}{n-2}\theta^{n-i}(1-\theta)^{t-i-n+1} \theta(1-\theta)^{i-1}}{\binom{t-1}{n-1}\theta^n(1-\theta)^{t-n}}=\sum_{i=1}^t i \frac{\binom{t-i-1}{n-2}}{\binom{t-1}{n-1}}$$  As i said, I am having troubles to simplify this and with the somatory index


Receiving Stack Overflow's Chat Notification

This is regarding the feature where we can chat regarding a question on SO. There is an automated process for creating the room from comments. It's a very useful feature in case the OP is not able to understand an answer and needs more clarification.  What I don't see is a notification system for chats where there has been an extended period of time between communication.   Let's say someone replied to my chat after a few days, in that case I do not receive any notification.   This happened to me only a few hours ago, where in I had replied to one question but the OP was not available at that point and he replied to me after some days. As I didn't check that chat I had no way of noticing if someone replied to my message and the 48h window after my last activity in that chat, during which I would have received the @ convention ping notification, had already expired.  We receive notification on posts, upvotes that we receive, so why not the chat rooms?   Should there be a notification center like the one for posts (or may be include this in the same center as posts)?


Why does a continuous water stream form ripples when colliding with a surface?

I was in the shower one day washing my hair, and noticed that the water falling off my hair formed perfect streams that ceased to break into droplets for quiet some distance (probably about 5-6 cm).  I have kinda long hair so that greatly aided in the formation of the streams.  I decided to see what would happen if the stream collided with a relatively flat perpendicular surface.  I put my finger under the stream and was pleasantly surprised to see ripples upstream of the "impact".  I then decided to move my finger up and noticed that these ripples became increasingly pronounced and seemingly formed a "wave".  When very close to the origin of the stream (my hair) they began to turn into spherical beads.  I decided to film the phenomenon to show you guys, and further below I have some theories as to what may be happening.    One theory I had was that the ripples are caused by a longitudinal wave traveling up stream, and since the compression zones are in water, they manifest as high pressure zones that cause the stream to bulge outwards as the surface tension holding the stream together is fairly flexible.  The wavelength is most likely dependent (either directly or indirectly) on the speed of the falling as when I use faster flowing streams the wavelngth is a lot shorter, possible due to the faster impact.  This may also be why when the impact is near the origin the stream begins to bulge more dramatically as the wavelength is a lot shorter due to the water not accelerating from free fall for as long and colliding with less force.    Another theory I had as to why the wavelength changes with finger height is that as you move down the stream since the water is moving a lot faster and the differences in speed become greater between the individual particles the water begins to decrease in density (thing spaghettification near black holes).  If this does occur I don't believe it is as strong of a factor as the stream thins as it falls.  This shows that rather than the spaces between the particles growing and remaining, they more likely come back together and instead manifest as the thinning of the stream.  If the cause is by both states above I may be able to formulate the density of the falling water based on the wavelength, but this is just a loose thought I have and needs more support.    I may be able to figure out if the cause is speed by looking at whether the wavelength changes as a parabolic function of finger height (as the impact speed and does, and this would possible show they're linked) but this would only be the case if impact shock waves wavelengths were linearly proportional to the impacts impulse.  I would love to hear what you guys think of this idea.  My final, weaker theory I had was that the ripples are caused by the surface of the water attempting to establish a smooth transition onto the perpendicular plane, and as it curves outward, it causes a bend in the opposite way upstream which therefore causes another bend opposite to that until it smoothens out.  I attempted to crudely illustrate this below.     These are lose thoughts that came to mind to support the theory, and am eager to get any feedback and share any results with you guys.  If you have a completely new theory or disprove my theories please post them below, any information may help bring this question to a close.  I'm currently doing a physics extended essay, and am willing to drop my current essay for something related to this phenomenon  as it seems very interesting and would be pleasure writing about.  EDIT:  A friend proposed that the waves are propagated from small currents resulting from the bottles/taps shape or the hole shape.  I tested this using a uniform bowl and drilled a hole in it instead of poking one to get a more uniform hole and got identical results.


Let $(X,d)$ be a metric space,then prove that $f$  is continuous on $X$ iff $f$ is continuous on every compact subset of $X$.   If $f$ is continuous on $X$ then its restriction on each compact subset will be continuous, and conversely if $f$ is continuous on each compact set then for $x\in X$ the set $\{x\}$ is compact and thus $f$ must be continuous at $x$ , as $x$ was arbitrary $f$ will be continuous on $X$.


Normally I can put in a search like this  javascript   However, what if I want to restrict the results to only questions and answers that I have voted on? Is this possible?


Could someone explain the muon $g-2$ experiment problem?

In the past days it was announced that the lastest results of the muon $g-2$ experiment indicates some discrepancies with the standard model. As an outsider in particle physics, I don't understand exactly what's happening and my only sources have been some online newspapers such as the new york times. Could someone explain to a non-expert like me what is going on and what are the consequences of such results?


PHP function to build query string from array

I'm looking for the name of the PHP function to build a query string from an array of key value pairs. Please note, I am looking for the built in PHP function to do this, not a homebrew one (that's all a google search seems to return). There is one, I just can't remember its name or find it on php.net. IIRC its name isn't that intuitive.


MySQL server version:     mysqld Ver 5.7.26 for Linux on x86_64 (MySQL Community Server (GPL))   MariaDB mysqldump CLI version:     mysqldump Ver 10.17 Distrib 10.3.12-MariaDB, for Linux (x86_64)   I am using this mysqldump version to take dump from the mentioned mysqld version. Data is around 25 gb.  I am getting below error while importing the dump,     ERROR 3105 (HY000) at line 82: The value specified for generated   column 'column_name' in table 'table_name' is not allowed.   Source and destination mysql server is same version.  Command used to dump,  mysqldump -h mysql -P 3306 -uroot -px xxxxxxx --databases db_name   Total number of characters in Line 82 is around 80k, line starts with,      INSERT INTO table_name (ID, XXXXX, XXXXX, XXXXX,   XXXXX, XXXXX, XXXXX, XXXXX, XXXXX,   XXXXX, xxxxx, xxxxx, XXXXX) VALUES   (5541,1,4852,'2018-11-12 09:30:25.306','{\"id\": 1108   Output from show create table, for the column throwing error:     column_name varchar(45) COLLATE utf8mb4_unicode_ci GENERATED ALWAYS   AS (json_unquote(json_extract(OPTIONS,'$.type'))) VIRTUAL,   Can we use MariaDB mysqldump CLI to take dump from MySQL Community version?


Given second and first derivatives at 2 points, prove that some point in between them has third derivative greater than or equal to 24.

Let $f$ be a function that is $C^3$ on an open interval containing $[0,1]$ - that is,  the third derivative $f'''$ exists and is continuous on an open interval containing $[0,1]$. Assume that $f(0) = f'(0) = f''(0) = 0$ and that $f'(1) = f''(1) = 0$. If $f(1) = 1$, prove that there is some $c\in\left(0,1\right)$ such that $f'''(c) \geq 24$.  Not sure how to approach this problem, been stuck on it for a while. Any help would be nice.  I tried using the Mean Value Theorem, and got that at some point $c_1\in\left[0,1\right], f'(c_1) = \frac{f(1)-f(0)}{1-0}=1$ and there is some point $c_2 \in [c_1,1]$ such that $f''(c_2) = \frac{f'(1)-f'(c_1)}{1-c_1}=\frac{-1}{1-c_1}<-1$ and there is some point $c_3\in[c_2,1]$ such that $f'''(c_3) = \frac{f''(1)-f''(c_2)}{1-c_2}>1$. I'm not sure how to extend this to $24$ though, or even if this method will work.  Is there a way to use Taylor Polynomials perhaps?


Get Opportunity Line Items with Opportunity

I have seen this  which basically advise to run the following:  List<Opportunity> opps = new list<Opportunity>([Select Id, (Select Id, name From OpportunityLineItems) From Opportunity])   Now I want to access each OpportunityLineItem.   Seems like the opps list has no access to the related OpportunityLineItem(s) -  Is there any way to loop each OpportunityLineItem without additional query?


Caps lock key response delay on Apple Wireless Keyboard

I've noticed a semi-handy feature on Apple Wireless Keyboard: quick pressing the caps lock key won't enable the caps lock, it needs a determined push. Benefits are obvious, it prevents accidental all-caps text when you actuALLY INTENDED TO PRESS 'A'.  Is there a way to hack this around? Adjust it or remove it completely? I like the idea, but for me it is more of a speed bump than a seat belt.  I have checked the keyboard preferences and the usability preferences as well. Keyboard delay is off and repeat delay is at minimum. There are no delay on other keys (well, except the eject key, but it requires even more determined press), and there is no delay when turning the caps lock off.  I'm on a Snow Leopard Lion and the wireless keyboard came with the mid-2010 iMac.    EDIT: It seems like the functionality is in the driver rather than in the keyboard itself. When using the keyboard in Windows 7 the caps lock key works in a regular manner. The drivers that Windows uses are standard HID Keyboard drivers provided by Microsoft.


Minecraft crashes with error "No OpenGL context found in the current thread"

I downloaded the Minecraft launcher and tried to download the latest update of Minecraft (1.7.4). The bar will fill up entirely at the bottom, then it will disappear, leaving me hanging, waiting for the darn thing to load, which it never did. I exited out of the launcher and opened it up again. Then, when I tried to load the 1.7.4 update, it crashes and leaves a long crash report.   The full crash report is below, but the important pieces of information are:     org.lwjgl.LWJGLException: Pixel format not accelerated   [...]   OpenGL: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.   How can I diagnose and fix this?  ---- Minecraft Crash Report ---- // Daisy, daisy...  Time: 12/28/13 1:41 PM Description: Initializing game  org.lwjgl.LWJGLException: Pixel format not accelerated     at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)     at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)     at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:252)     at org.lwjgl.opengl.Display.createWindow(Display.java:306)     at org.lwjgl.opengl.Display.create(Display.java:848)     at org.lwjgl.opengl.Display.create(Display.java:757)     at org.lwjgl.opengl.Display.create(Display.java:739)     at azi.ad(SourceFile:325)     at azi.f(SourceFile:696)     at net.minecraft.client.main.Main.main(SourceFile:152)   A detailed walkthrough of the error, its code path and all known details is as follows: ---------------------------------------------------------------------------------------  -- Head -- Stacktrace:     at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)     at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)     at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:252)     at org.lwjgl.opengl.Display.createWindow(Display.java:306)     at org.lwjgl.opengl.Display.create(Display.java:848)     at org.lwjgl.opengl.Display.create(Display.java:757)     at org.lwjgl.opengl.Display.create(Display.java:739)     at azi.ad(SourceFile:325)  -- Initialization -- Details: Stacktrace:     at azi.f(SourceFile:696)     at net.minecraft.client.main.Main.main(SourceFile:152)  -- System Details -- Details:     Minecraft Version: 1.7.4     Operating System: Windows XP (x86) version 5.1     Java Version: 1.7.0, Oracle Corporation     Java VM Version: Java HotSpot(TM) Client VM (mixed mode, sharing), Oracle Corporation     Memory: 4705208 bytes (4 MB) / 26808320 bytes (25 MB) up to 518979584 bytes (494 MB)     JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx512M     AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used     IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0     Launched Version: 1.7.4     LWJGL: 2.9.1     OpenGL: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.     GL Caps:      Is Modded: Probably not. Jar signature remains and client brand is untouched.     Type: Client (map_client.txt)     Resource Packs: []     Current Language: ~~ERROR~~ NullPointerException: null     Profiler Position: N/A (disabled)     Vec3 Pool Size: ~~ERROR~~ NullPointerException: null     Anisotropic Filtering: Off (1)


Is there an easy way to log all activity that a shell script does?

Is there an easy way to log all activity that occurs from a shell script to a file?  I have a script.  It outputs things like echo "instructions", as well as other program output. I know the commands:  command | tee -a "$log_file"   and   command >> logifle.log   What I'm asking is whether there is a shell parameter for logging, or a set command I can use or something like that. I don't necessarily want to add dozens of redirects or tee to files if I don't have to. I still want to get std output though - I just also want it to be logged.:wq


Will there be any difference in photos taken using full frame and crop lenses on a crop camera?

I see a lot of questions comparing full frame (e.g EF for Canon, FX for Nikon) and crop lenses (e.g. EF-S for Canon, DX for Nikon) but I can't find the answer to what would be the differences between the photos taken with say a 50mm f/1.4 EF and EF-S lenses both used with   same APS-C sensor sized camera same ISO same f/1.4 f-stop same focal length same shutter speed   What would be the resulting differences in the photos? Which one would   be brighter than the other due the EF-S lens concentrating the light more? no that's wrong. Both put the same amount of light from the same FoV on the sensor. have greater depth-of-field? neither less problems towards the edges? generally the full frame more lens flare? generally the full frame lens unless there is, or you provide more shading anything else? not really, unless you start down the road of which one is typically of better build quality.   Edit: Added the answers from what seems to be the general consensus from the multiple answers and comments.  Results: My desire to buy a fast medium-high quality lens compatible with both full frame and crop camera's doesn't have to be hampered by the APS-C sensor size of my current camera.  This means I'm willing to part with more money to get a higher performance/quality lens as the performance/quality will be useful now and when I upgrade my camera.  Though reading reviews of some full frame lenses with short focal lengths, look out, as some are really only made to perform well on crop cameras even though they fit on a full frame camera and will give you a full frame picture, the edge quality is very bad.


I have a problem with ''lay'' and ''lie''

I was studying english and saw this sentence and i could not decide which of them would be better to use? (I am not a native just student)  Mesopotamia was suitable for ancient merchants, but the dangerous passages that … between the towns ... the pillage of many cowboys.  Options were like: lying/have meant - lie/meant - laid/would mean - lay/were meant - are lying/have meant


How old were the War Doctor, Nine and Ten when they regenerated, and how certain are we of these ages?

We know Eleven lived more than a thousand years total (three hundred at least, before Trenzalore, and around 900 in Trenzalore, if I remember well). Do we have enough information to estimate how long Nine and Ten lived?  Since the Doctor often rounds the number or fudge it, I'd like to know the range in years, minimum and maximum total lifespan for each, that'd match the available information, not just best guess.


How to lazy load images in ListView in Android

I am using a ListView to display some images and captions associated with those images. I am getting the images from the Internet. Is there a way to lazy load images so while the text displays, the UI is not blocked and images are displayed as they are downloaded?   The total number of images is not fixed.


Events that can't be simultaneous to any observer?

Suppose that there are two (instantaneous) events $E_{1}$ and $E_{2}$, of which (special relativistic) spacetime interval is $S$. Is it possible that $E_{1}$ and $E_{2}$ are not simultaneous with respect to any possible observer? If so, what's the condition under which this happens in terms of S? In other words, what is the condition for S to make it the case that $E_{1}$ and $E_{2}$ are not simultaneous to any observer? (Assuming that spacetime is flat.)


Automatically update field value in one column based on change to another column in same table?

When editing I want to be able to change the attributes of one field and upon doing this allow for the automatic update of another field in the same attribute table.   Essentially I have one layer with a code, description and legend information.   I would like to be able to edit the code and have the description and the legend information update with this edit with its correct description and legend information.   Is there any way to do this within ArcMap's tools or an associated script?


I just bought my very first internal SSD and installed it into my desktop PC. I was running out of disk space and want to use it for data storage. The OS is installed on the first disk, which is a standard (spinning) HDD. This is what Samsung Magician is showing me:    So "on paper", everything seems to look great. However, when I'm trying to move files from my HDD to the SSD, I'm only getting about 50-70 MB/s. I assumed that the bottleneck here is the speed limit of the HDD read access... What I don't understand is why this bogs down my whole system. I would expect Windows 7 to be smart enough not to allow itself freeze up during simple file transfer operations. Also, the PC has 32 GB RAM and a 3,4 GHz 12-core CPU, so it's not exactly slow. What might be the problem here? The system gets so slow that I cannot even open Firefox while moving files. Shouldn't the system somehow manage the amount of resources processes can take and put a cap on it in order to ensure stability? Is there some setting that I could change to address the issue? Unfortunately, I have little to no experience managing Windows systems. I know that in Linux one can impose custom limits on the resource usage of individual processes. However, file I/O seems something rather fundamental so I'd expect this to be efficiently managed by the OS. Please help, the setup is not usable in this state... PS.: I don't want to migrate the system to the SSD as I don't trust Windows with my data. The data should be stored on a separate drive, which is why I got the SSD in the first place. But this should not slow down my system on the HDD.


How do I display logged-in username IF logged-in?

I'm working on creating some text that says 'Login' to users that are not logged in, and the user's username or display name when logged in.   It seems like it should be an easy problem to solve, and I've found the following two bits of code on the wordpress codex that each do half of what I am looking for, but I haven't figured out how to combine them (without breaking the site).  Is this the correct direction, or way off base?  To check if the user is logged in and display something different depending:  <?php if ( is_user_logged_in() ) {     echo '{username code here}'; } else {     echo 'Login'; } ?>   To get and display the current user's information:  <?php global $current_user; wp_get_current_user(); echo 'Username: ' . $current_user->user_login . "\n"; echo 'User display name: ' . $current_user->display_name . "\n"; ?>


Finding original spelling of Polish name Vazuka which was anglicized on arrival to US?

My last name is Vazuka, but it is polish and was anglicized upon arrival to the US.   How do you spell it in Polish?  How do you pronounce Vazuka in Polish?


How to change terminal prompt color to black?

I want to change the color of my terminal prompt to black color which is now in green color.


If $2^n - 1$ is prime from some integer $n$, prove that n must also be prime.

I understand the idea of the proof. I just want to make sure I wrote my proof well.  Suppose $n$ is not prime. Then $\exists x,y \in \mathbb{Z}$ such that $n = xy$.  $2^{xy} - 1 = (2^x)^y - 1$  $ = (2^y - 1)(2^{y(x-1)} + 2^{y(x-2)} + ... + 2^{y} + 1)$  Since $2^{n} - 1$ is divisible by $2^y - 1$ it must be that $2^n - 1$ is not prime. Contradiction. Thus $n$ must be prime.  How does this look?


My husband always corrects me when I say "I'm done... (with whatever it is I'm doing.)" He says that proper grammar requires you to say "I have finished." As Saying "I'm done" refers only to the "done-ness' of food.  Help me!


Usage difference between "Have got" and "Have gotten" in AmE

In the following AmE examples:  (a) I have contacted them. I haven't got their answer (b) I have contacted them. I haven't gotten their answer  My first interpretation would be that in (a) I could have obtained an answer, but I don't have it handy, whereas in (b), the answer was never received.  Is this a correct interpretation of the difference between these two examples?  Thanks!


Why is Dale not mentioned in Lord of the Rings?

I am rewatching the Lord of the Rings series now after I saw all of the Hobbit parts and I'm wondering why the people of Dale don't play a role in the Lord of the Rings. Why are they not fighting with the rest of the men army? Is Dale mentioned in the Lord of the Rings books?


To delete an old unanswered post and reopen a same one with updated information?

Is it allowed to delete an old post and reopen a same one but with updated information?  I posted a question around 6 months ago, but until this moment there is still no valid answer to it. I figured out a method to bypass the issue later, but the root cause to the problem in my post has not been found yet.  Recently I have more information about the problem and want to update the post, but I am worried that this post is so old that its updates won't get noticed.


What's the correct way using pytest to assert that the expression raises an Exception?

I'm trying to add some unit tests to make sure that the correct Error is being thrown (my function either throws KeyError or RuntimeError). I've tried assert func(bad_param) == KeyError and assert isinstance(func(bad_param), KeyError) but neither of these are correct, how am I supposed to write unit tests for this / what's the correct way to assert that this function, when passed a bad parameter, will raise the correct Exception? EDIT: I'm NOT using the unittest library, I'm asking about purely the assert function that comes with Python std lib ()


Google still returns old Wordpress user name when I search for it

I created a Wordpress website with a particular user name that I no longer use (I fully deleted the Wordpress user and created a new one). Yet when I run a Google search for the initial user name, my Wordpress site still comes up in the search results even though there are no longer any instances of the name in my site. Any ideas how I can get Google to stop indexing that particular piece of info?


How can I force a table to "wrap" at the page's margin?


Prevent laptop from going to sleep when I close the lid, but only if I'm connected to an external display

When I'm connected to an external display, I would like to close the laptop without it going to sleep. When I'm not connected to an external display, I would like to have closing the lid put the laptop to sleep. I know I can achieve this by manually switching the power settings, but I'd like something automatic. I'm running Windows 7 (Home Premium 64bit) on an HP Pavilion dm3-1030us. Thanks.


I just got a new Intel CPU, and the specifications say 3.5GHz but with turbo boost to 3.9GHz. What does Intel Turbo Boost do? From the description it sounds like they are saying "The road's speed limit is 100 km/hr, but if you get to that speed then the new speed limit is 140 km/hr". Why not just set the clock speed to 3.9GHz to start with? So what is Intel Turbo Boost actually doing?


How to group same Dictionary values together in Python and Count the Value?

How do you print a dictionary in Python where if the value matches another value in the dictionary, they are printed on the same line? Code: result = {'light':4,'plane':4, 'vehicle':5}  print(result)  Current Output: {'light': 4, 'plane': 4, 'vehicle': 5}  Expected Output: 4 light, plane 5 vehicle  How would you also count the frequency of the words as in the expected output? For example, light + plane is 2.


I have a small but annoying problem that I just can't figure out.  I have two installations of Ubuntu 18.04. One on my laptop, one on my desktop.  Whenever I open gnome-terminal on my desktop it defaults to being a maximised window. I know some people like it maximised by default (and there are plenty of forum posts etc. advising how this might be done), but I personally want it to appear in a small window.  No matter what I do, I can't seem to get it to let go of this behavior. I checked the Man pages for command line arguments I might specify, but nothing. I don't know where it has picked up this habit.  Anyone care to enlighten me as to where the application might be getting this instruction? And how I might turn it off?  Just to mention, if I create another user account and log in with that, this does not happen. As such, something in my own profile must be driving it.. just not sure where to look.


I have defined a few custom commands using \newcommand in order to standardize figure sizes in a paper I am writing. For instance:  \newcommand{\bigfigure}[1]{\includegraphics[width=0.8\linewidth]{#1}}   However when using this command I don't get the handy autocomplete of the path to the image as I would when just using \includegraphics[]{...}. Is there anyway I can enable this feature for my custom commands?   I am using Overleaf as my editor.


For 3 input XOR gate and XNOR gate, by solving the equations I got the result as in the picture.  So according to the solution the outputs of the 3 input XOR and XNOR gates are same. This solution holds good when number of inputs to the gates are odd.   For the case of even number of inputs XOR and XNOR are complement to each other.   With this assumption the answer to the circuit in the picture should be option A,B, and C. but the correct answer is D. I am confused as to how?   Thanks in advance for the help.


How do you find a cutting point / strong slope within one-dimensional data

I have one-dimensional data. I want to find possible natural cutting points (strong slopes) within the data.  For instance, if the data is  1, 2, 3, 2, 2, 3, 4, 2, 80, 90, 80, 85, 91   there would be a cutting point between values (1-4) and (80-91)  I mapped a histogram which gives me an idea, but I'm curious whether a better method exists (especially for large amounts of data, 100k+).   If the distribution of the values in the example above was a function, it would have the highest slope right before 80.  If it helps, I am using R  PS: My data are not necessarily normally distributed, nor are they ordered.


What is the recommended replacement for MD5?

Since MD5 is broken for purposes of security, what hash should I be using now for secure applications?


How to convert paths into shape in photoshop cs6

I drew paths thinking i was drawing a shape but later realized it is only a path. Now i could create a temporary shape like a box and paste this in and delete the box path. But just as there is a option to convert path to selection, is there an option to convert the selected path into shape?


What is this type of road called in English?

I’m looking for a word or a phrase for describing this kind of  which usually is constructed in the mountain areas, but not only:   image a representative sample from Google images, query = transfagarasan  In my language we call this serpentine a word used as a noun (not adjective) to describe its shape.  If I wanted to write an article about this road, a road constructed in the mountains provided with many turns and angles like in the above link, which word would be more appropriate to use?


Pre and Post intervention with no pairing

My sample size is small (n= 28). I have 2 cohorts who have carried out the same interventions at different times. I have collected pre and post intervention scales for both groups. What I have not done is pair the data, as it was anonymous. This is part of a bigger qualitative study. Any suggestions which test I should use to see if there are any differences in the scale scores pre and post?


Is it possible to handle integer overflow without an external library in JavaScript?

In Javascript (in Chrome devtools console panel and Node.js v0.12.5), I'm getting an incorrect answer for the product of these two large numbers:  input: 41962049 * 1827116622  output: 76669557221078480  In C++ and C#, I get the correct answer of 76669557221078478 when casting the expression to a 64-bit int.  I'm assuming this is an integer overflow issue, but I certainly could be wrong.  Is there a way to get accurate arithmetic products for large numbers in Javascript without using an external library like BigInteger? This is for an online class that doesn't allow additional libraries.  Thanks for your help.  EDIT: Thanks for the explanation explaining how this isn't actually integer overflow, Patrick Roberts! Very useful.   EDIT 2: jfriend00, I think this question is different than the one you linked to because I am trying to figure out if there is a way to work around JS's limitations without relying on an external library. The answer you provided in the comments helped answer my question, so thank you!


File 'utf8x.def' not found error in TeXstudio on Ubuntu 16.04

I'm trying to compile a .tex file (which I know to be working in Windows' TeXstudio), however in Ubuntu installation (with sudo apt-get install texstudio), I get the following error:  File `utf8x.def' not found. \endinput   I think this is because I have \usepackage[utf8x]{inputenc} in my preamble, but don't know how to fix the issue.  Thanks for any help,  Edit:  Thanks to the suggestions, I changed utf8x to utf8, but now the line \usepackage{cite} gives this error:  File `footmisc.sty' not found. \usepackage


I want to use \includegraphics but I can't

My simplified tex source is as follows:  \documentclass{amsart} \usepackage{graphicx,color,float} \newcommand{\aaa}{\includegraphics[width=.15in]{aaa.eps}} \begin{document} $\aaa$. \end{document}   But it doesn't work. What did I do wrong?


How to derive inverse hyperbolic trigonometric functions

$e^{i\theta}=\cos\theta + i\sin \theta$  $e^{i\sin^{-1}x}=\cos(\sin^{-1}x)+i\sin(\sin^{-1}x)$  $i\sin^{-1}x=\ln|\sqrt{1-x^2} + ix|$  $\sin^{-1}x=-i\ln|\sqrt{1-x^2} + ix|$  Now from here I'm kind of lost, since it seems like this should be the definition, but when I look it up, the definition of inverse hyperbolic sine is:  $\sinh^{-1}x=\ln(\sqrt{1+x^2} + x)$  So although they're very similar, I guess I just don't know how to handle the logarithm and anything to the ith power or drop off the absolute value.


Show that $\{\cup_{n\in K} (n, n+1]: K \subset \mathbb{Z}\}$ is a $\sigma$-algebra on $\mathbb{R}$

I am trying to prove that $\mathcal{S} = \{\cup_{n\in K} (n, n+1]: K \subset \mathbb{Z}\}$ is a $\sigma$-algebra on $\mathbb{R}$ using the definition. I want to show two things: (1) $E \in \mathcal{S} \implies E^c \in \mathcal{S}$ and (2) If $E_1, E_2, \dots$ is a sequence of members of $\mathcal{S}$, then $\bigcup_{i=1}^\infty E_i\in\mathcal{S}$. My attempt: Fix $K \subset \mathbb{Z}$. Let $E\in\mathcal{S}$. Then, $E=\bigcup_{n\in K}(n, n+1]$. So, $E^c = \bigcap_{n\in K} (-\infty, n]\cup (n+1, \infty)$. Now, how can I show that $E^c\in\mathcal{S}$? It seems that as $n$ increases, the intervals that constitute $E^c$ get smaller and smaller, so the intersection of all these intervals would get smaller and smaller. Also, how can (2) be proven? Would be have $2$ unions in this part?


What's the most common cause of A/C refrigerant lines freezing?

I noticed my house wasn't getting under 75°F this weekend when I had the thermostat set for 70°F. Since I'd done a lot of drywall sanding inside recently, my first idea was to replace the filthy air filter.    My first indication that the air filter wasn't the root cause was when the return didn't have enough suction to hold the air filter in place while I was replacing it. I went outside to look at the compressor unit and discovered the exposed portion of the refrigerant line running into the house was frozen, but the fan was still running. The evaporator drain line still had a steady stream of water coming out of it. After turning everything off and waiting for the line to thaw, I turned the thermostat back on. Cooler air came out of the vents, but it didn't seem to be blowing with much force, and it wasn't as cool as it should be. I went back outside and discovered the refrigerant line was already frosting up again. At this point it was already dark, so I turned everything back off and slept with the ceiling fan on. :/   Other random notes that may or may not play a factor:   The AC unit had been sitting idle the past 3 days since we had nice weather in the mid-70's last week. I mowed the lawn next to the condenser unit the day I noticed it stopped working. However, I was bagging the grass clippings, so nothing should have been blown into the unit.   Any ideas on the root cause of the icing and lower air flow? I wouldn't think the two would be connected normally. Is it something as simple as low refrigerant levels? I plan on going to look more closely at it after work today. What are some other things I should pay attention to?  UPDATE: I checked the system after work today and decided to give it one more chance after I couldn't find anything wrong with it. After a few hours, it had brought the inside temperature down from 80°F to 75°F. I periodically checked the refrigerant line for freezing, but it never got much colder than 60ish degrees.  I think the root cause was the air filter, and that I didn't allow enough time for the line to thaw last night.  UPDATE 2: Maybe I drew conclusions too soon - I just checked the refrigerant line and discovered frost on it again. The inside temperature was at 72°F while the outside was at 66°F. I think pumping warm air to a cooler outside temperature may have contributed to the icing, but I'm not completely sure. (And if you think I'm crazy for running the AC when I could just open the window, you'd think twice too if you saw how many bugs swarm my porch light and windows every night. Dozens of them somehow find their way past the screens if I open the windows.) I plan on running it again tomorrow during the day and monitoring the refrigerant line temperature every few hours. If it freezes up again, I think I'm going to cave and call a repair guy.  UPDATE 3:  I totally forgot to follow up on this. It froze again, so I called an HVAC repair guy. He checked the system, added refrigerant, and problem solved. I think the bill came out somewhere around $150 for the service call fee and refrigerant costs.


Example of the equality of an inequality

This question is related to Daniel Fischer's answer . Suppose $f$ is a real $C^{1}$ function on $[0, 1]$ such that $f(0) = 0$ and $\int_{0}^{1}f'(x)^{2}\, dx \leq 1$. Then (essentially by Cauchy-Schwarz), we have $\left|\int_{0}^{1}f(x)\, dx\right| \leq 2/3$ as Daniel Fischer stated in his answer.  My question is: Is there an example of a function such that we have equality in $\left|\int_{0}^{1}f(x)\, dx\right| \leq 2/3$? I was thinking of maybe a smoothed version of a function which takes the value $0$ on $[0, 1/2)$ and $4/3$ on $(1/2, 1]$ but that seems complicated to construct, moreover, the derivative in some neighbourhood of $1/2$ might be hard to control.


Is there any canonical reference to the fate of the Blue Wizards: Alatar and Pallando?

All I've ever been able to find is that they arrived in Middle-earth and left to go do something outside of the scope of the story. Has anyone ever found any additional information?


Adding newly created layer to Map in CURRENT project using ArcPy for ArcGIS Pro?

In this script, I create a feature layer from a file geodatabase feature class and wish to add the layer into a map within the current session in ArcGIS Pro 2.0.  The script crashes on the last line.  How do I fix this error?  aprx = arcpy.mp.ArcGISProject("current") aprxMap = aprx.listMaps("MainMap")[0]  featureLayer = arcpy.MakeFeatureLayer_management(splitSegmentFC, "SegmentSplit")   aprxMap.addLayer(featureLayer)   The error message is:  Traceback (most recent call last): File "E:\ProvingGrounds\SCAT\Script\ArcGISpro\ScatTrackProcessing_v10_PRO.py", line 1520, in <module> aprxMap.addLayer(featureLayer) File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\utils.py", line 191, in fn_ return fn(*args, **kw) File "c:\program files\arcgis\pro\Resources\arcpy\arcpy\_mp.py", line 1055, in addLayer return convertArcObjectToPythonObject(self._arc_object.addLayer(*gp_fixargs((add_layer_or_layerfile, add_position), True))) ValueError: SegmentSplit Failed to execute (Script).


Is it possible to programmatically change connectedApp settings in production?

Background: I have a requirement to make it so that an SFDC connected app defaults/is super easy to set to Admin Users are Pre-authorized instead of All users may self-authorize. This setting is important to make this app work and we have historically have had problems with admins not configuring this setting correctly.  Here is a quick history on what I have tried to do to get the isAdminApproved set to "true":   Directly, via xml definition (doesn't get honored) Directly via apex code (doesn't get honored)  (ended up being more pain than what it was worth and was told that it wouldn't work in prod because of security restrictions) Indirectly via a connected-app connected service to make a metadata API call: works in a scratch org but not in prod, which I assume is because it is a managed package. This would occur when an Admin clicks on a button, not from a post-install script.   Details on what I mean by it isn't working in prod: When I try to do a readMetadata call on my connectedApp objects that are in my managed package, the response comes back as [{\n    'fullName': None\n}] instead of with the metadata configuration of my connected app.  Here is a sequence diagram of what I am trying to do in #4 right now:    My question is this: Am I on a fool's errand, where this is impossible to do? ...Or is there a way to set a connected app (in a managed package that I publish) to Admin Users are Pre-authorized without making the admin just do it themselves directly in the settings?


Problem installing Linux in ASUS R510VX-DM534

I'm having problems installing any Linux distro in a Laptop Asus R510VX-DM534.  First. I was using Linux Mint 18 for months without problem, and, after an update, I had to reboot and then appeared many errors when booting:   After trying to solve the problem, I decided to reinstall Linux again. And it was impossible for me.  when I tried to install Linux mint 19, I used an image on a USB stick. It started without a problem, but after a few seconds an error message appeared:  "The Computer Has Only 0 Bytes disk space remaining". Strange, because I'm booting from an USB. Ok, I ignore warning, and Try to install anyway.   I try to install anyway, but the installation process stops after choosing where to install Linux, leaving the default option as I want to use the whole disk for the new installation.  Ok, I try with Kubuntu 18   I boot from another USB and it gives me the option to choose to test and install. I choose to try and he just stands there, too.   Tried with Solus. Finally, I got it, but the system hangs a lot and I can't do anything.   A little tired, I use the process of restoring the laptop itself, which leaves the default operating system; Endless Linux. It works fine, at least apparently, but I wanted to install another distribution, Endless Linux seems a little simple for my taste, and I can't install the proprietary nVidia driver.   I don't know what I can do, I don't know if the disk or the disk controller will have some kind of problem, but the thing is that I'm already starting to get desperate.  What can I do?


I m citizen of India for transit should I need ATV

I m travelling from India to Casablanca and I m booked ticket from Mumbai to Casablanca and my flight is mumbai Paris Paris to Rome and Rome to Casablanca should I need transit visa  My layover is 4 hours


Given a set $I$ and an $R$-module $M$, define the complete module product $M^I$ to be the set of all functions $I\to M$, with addition and scalar multiplication done componentwise. By contrast, given a set $I$ we can also form the free module on $I$, which is usually also denoted $M^I$ but I will denote by $M^{\oplus I}$ here for disambiguation, which is the submodule of $M^I$ consisting of functions $x:I\to M$ such that $x_\alpha=0$ for all but finitely many $\alpha\in I$. The question is:     Is the complete module product free? (where free means isomorphic to a free module)   Obviously if $I$ is finite then $M^{\oplus I}=M^I$ so the answer is yes. But if $I$ is infinite $I$ is no longer a basis for $M^I$. There is a theorem in linear algebra to the effect that every vector space has a basis, or every vector space is free, so if $M$ is a vector space then $M^I$ is as well and hence the answer is again yes. Are there counterexamples, then, with infinite dimensional module products?


Since both players have the same pair, should it go down to the suits, or are they supposed to split the pot?


Why are gravitational mass equal to the mass in Newton's second law

Newtons second involves the mass $m$ e.g. $$ F = m a $$  And the gravitation force also involves the mass e.g. $$   F = - G \frac{m_1 m_2}{r^2} $$  The question is why the gravitation mass is equal to the mass in Newton's second law.


Adding a CMS to an existing Magento shop

I am working on a project for 3 niche stores built on magento (using magento's multi-store function) that each get roughly 50k unique visitors a day. The sites don't currently have a blog or forum or any social networking aspects.  Would like to add a cms to each site that can be centrally run and would like it to take over the front end content from Magento. Also would like it to maintain an online blog/publication of sorts with videos, articles, and the like with privileges to edit the content given to a dozen or so people with different privileges. Want to add a forum to each site that is fairly robust and to possibly add some social networking aspects down the road, so extandability and available plugins/mods in each cms is important.  Other than shared login between the forums,blog/publication and store, would like to be able to integrate some content from the forums and blog/publication into the store as well.  After researching this a bit, I am inclined towards Drupal, but I haven't found any modules to integrate it with Magento. Also, since the blog content will be done by about a dozen nontechnical people, I want something that is very easy to work with. Lastly, since the site gets a good amount of traffic, speed and security are very important.  What CMS would you recommend integrating in this context? Deciding between Drupal, Wordpress and Plone.  Thanks.


thoroughly find all links (hard and symlinks, and any combination thereof) leading to a file/dir

I want, only using "basic" commands (for maximum portability) (i.e., something that would work on AIX / Linux / etc., not just something using a recent nicety ^^), to find all the files (symlinks, hardlinks and combinations thereof) pointing to a specific file/dir.  Be careful to not rush to answer find / -ls | grep .... : it will miss many cases. See my links below, mixing hardlinks, symlinks, relative-and-absolute paths (and also play with symlinks "././././." possibilities)  ie   hardlinks and symlinks can be "nested", ad-inifinitum... some symlinks could be with the full path, others with a relative path,  those paths (relative or absolute) could be very complex (ex: /tmp/././../etc/file ) a symlink could lead to a file, which hardlink to another, which is a symlink to a third, which ends up [after some more iteration] to the final destination...   In the end, I "just" need to find out a way to know what is the "final destination" of any file/link (ie, which inode will be accessed in the end?). But it's really tough (unless some magical function will tell me "the final destination inode is : ...". That's what I need!)  I thought I could simply use '-H' or '-L' options of find, but (I'm probably dumb...) it didn't work... yet.  Any info welcomed (but please, using find/ls/etc, not some "nice utility only available on linux")  Try to create some different links to the "/tmp/A" directory, and find a way to find and list them all:  mkdir /tmp/A    /tmp/B ln -s /tmp/A/   /tmp/B/D  #absolute symlink, with a training "/" ln -s ../A      /tmp/B/E     #relative symlink ln -s /tmp/A/.  /home/F  #absolute symlink, with a trailing "/." ln -s ../tmp/A/./.  /var/L  #let's get craaaaaaazy! symlinks are "fun"... ln    /tmp/B/D  /etc/G    #Hard-link to the symlink file /tmp/B/D, which itself symlink to /tmp/A/ witch ends up being the same as "/tmp/A" in most cases. ln    /etc/G    /etc/G2   #and a duplicate of the previous one, just to be sure [so /etc/G, /etc/G2, and /tmp/B/D have same inode, but it's a different inode from the final destination... :( ln -s etc/G /thatsenough   #symlink again, for further chaining   and then some tries:  find -H / -ls   # show inodes of the links and symlinks, not of the "final" directory find -L / -ls   # same thing (I do try that on an OLD AIX ...) find -H / -inum 123456 -ls  #if /tmp/A/. has inode 123456. This lists *only* hardlinks to /tmp/A, ie will only print a subset (and /tmp/A have to be a file in that case)   I expected to see the final inode (123456) in front of all the paths, in one of those invocation (I also added '-follow' to both), but I always see the inodes of the links, not of the "final destination" (i.e., /tmp/A)  What could I use to find out the "final inode" I end up accessing? [the OS manages it, but can a "simple" command tell me beforehand "through that file, you will open that final inode!"?]


I am trying to install something and among the steps there was this one:  "Place it on your $PATH"  What does this mean? What is that?  I have searched both this site and on Google but everyone just takes it for granted!


Punctuation question:   One of his friends house One of his friend's house One of his friends' house   Which is correct?


When a moderator election is held on a graduated Stack Exchange site, which users get to vote for moderator candidates?  I tried to look at  and  but the threads there didn't seem to list this information.  The information wasn't easy to find on Meta SE either.  So I'm asking this question hoping that it will make this pieces of information easier to find.


I plugged an 8-pin EPS (CPU) cable into the GPU's PCI-E port. Is it damaged?

The r9 290x I wanted to use needs 16 pins, my PSU which I thought had 1 PCI-E 6 + 2, 1 PCI-E 6 and 1 PCI-E 8-pin setups, actually had a second 8-pin EPS cable.  I don't currently have something to test the GPU with (the motherboard and all are fine; I just removed the GPU and put in an old GTX 770). So given this information, does anyone have any idea whether I can expect to have a fried GPU? No pop or smell appeared when I attempted it, which was nice!  Here is a picture of the pins.


I have this code:  SELECT CAST(Numero as varchar(255)) + ';' as Result  FROM Acao   This code returns this:    I want to return a single line like this: "52;56;57;59", because I want to put this in a formula of a computed column. How do I do this using SQL?


Story Identification: science fiction/fantasy, short story for high school English class

I read a short story in English class around 1998-2001.  The main character was a girl named Margot.  The setting was a settlement on another planet - maybe Jupiter or Mars? The planet was excessively rainy, and the sun shone once every few years (i don't remember how many years).  Among her classmates, Margot was the only one who talked about the sun and what it was like - warm, bright, shiny, etc. - but the other kids didn't believe her.  It was hinted Margot may have lived on Earth, and that's why she knew what the sun was like, but most of the kids had lived their entire lives on this other planet, so that's why they didn't believe any of it. On the day the sun was going to shine, the kids tricked Margot and locked her in a closet.  At the time of the sun glimpse, the kids filed outside to watch, forgetting about Margot.  They enjoyed their time outside in the brief glimpse of sun, and then suddenly remembered Margot.  Humbly they let her out of the closet to face x number of years before the next sun viewing.