When voting to migrate an off-topic question, why is the list of sites limited?

Earlier, I voted to close  as off-topic.  The question has since been closed.  There is an , but it didn't show up in the list when I selected "off-topic".  The options were:   Meta Stack Overflow Server Fault Super User Webmasters Programmers   Questions:   Should Wordpress appear in this list? Are there any other sites that should appear in the list?   Should all non-beta sites appear in that list by default?


Im a beginner programmer and i want to make a copy function that clones an array in to another one, for example: if i have this array already declared [1,2,3,4,5] i want the function to clone that array. Here is my code but when compiling im obtaining the array address. By the way im not programming with objects yet. static int[] copy(int[] collection) {      int  result[] = new int [collection.length];         for(int i = 0; i<collection.length; i++) {         result[i]=collection[i];     }      return result; }  if i print it like this i obtain the address, something like "[I@76ccd017" public static void main(String[] args){     int[] nums = {1,2,3,4,5};     System.out.println(copy(nums));  }


How do some mobile games scale graphics so beautifully?

I'm working on my first Android game and have been struggling a bit with scaling.  I've got 3 test devices 800x480, 1920x1080 and a 2560x1600 tablet. Some games look near perfect on all of them - many other games don't, including mine.  I'm really struggling with images looking blocky when scaling. I'm using the libdgx library, and have turned on linear filtering for everything. Almost always scaling down. Fonts are something I'm really struggling with.  I've been dissecting the apk's of various games for tips but can't see anything in particular that they're doing. In one game I examined (Candy Crush Saga) there's only 1 set of images, they only use 1 font. They also have a ttf in there, but I can't work out where that's used. The main font in a pre-created bitmap font.  Does anyone else have any tips or tricks. Ho do others manage it, especially the font scaling?


Can I bounce messages (not forward, but a true bounce) in Gmail?

Prima facie this is impossible but perhaps someone has some kind of hack to do it. This is one of the last things holding me back from switching to Gmail from Pine.  To be clear, bouncing a message is like forwarding but leaving all the headers intact. It sort of amounts to spoofing the email, which perhaps is why Gmail doesn't support it. To the recipient of a bounced email, it seems as if they were just BCC'd.


I've got an annoying problem with my terminal. The problem existed with the gnome terminal and even though i've got the terminator terminal as a default the problem persists!  When a code line is too long the code instead of continuing to the line below as normal it goes write back from the left of the line some times making the allready typed code invisible!   Some other times it even goes upwards!  Why is that?


In this sentence:     The diet could be prescribed for someone with any disease in which there is an abnormal retention of fluid.   Is it correct to replace "in which" with "in that"?  Where we could do that?   Are they interchangeable?  Can we put prepositions exactly next to "that" (as a relative pronoun)?   like this:     He worked for a spy network about that I knew nothing.


I am quite unsure of how echo command works in the following two scenarios

I have tried fiddling with echo command to to add $_GET to a text file but looks like it does not work but escaping it with \ works may be because $ is special character in bash.   For example, echo "\$_GET" >> newfile.txt works.    What I wanted to ask is how does echo work in each of the following two cases in the given screenshot. The second functionality of echo is what I am not able to grasp.


I wish to find out the class of compact sets in $\mathbb{R}$ which are supports of continuous functions.  To my solution I have an idea that the support will be finite union of closed and bounded sets in $\mathbb{R}$ but I am not sure about the answer and if it is correct then i have no explicit form to prove it. can anyone help me in doing so.


How do I revert to the pathbar after the address bar is visible in Nautilus?

When using Nautilus you can use CTRL+L to display the addressbar. How do you revert back to the pathbar? Is there a shortcut key?


Does a black hole ever fully form to an outside observer?

According to general relativity, I had understood that time appears to slow down when looking into high gravitational fields from afar, so that as a black hole forms, the light from a collapsing star appears to get redder and dimmer, and redder and dimmer.  But in that case, does the light ever switch off completely with the formation of a true black hole and event horizon, or does it just keep getting redder and dimmer forever, so that we can no longer detect it?  It seems strange to me that something that gets redder and dimmer, ever goes truly black as it approaches an asymptote, and like any asymptote, never actually reaches its final destination of total blackness.  So does a black hole ever really form while we are looking at it from outside?  Or does it only form if and when we actually fall into it?  When does the event horizon actually form, to an outside observer?


Shouldn't big oh definition be if and if only if, not just if?

This is from Discrete Mathematics and its Applications    Shouldn't the if in that definition be an if and only if? Say we know that $n^2$ is in O($n^2$). Then from one side of the if and only if, we know that there are constants c and $n_0$, in this case 1 and 0, such that  $n^2$ <= 1* $n^2$  for all n>= 0?  But if we know that there are c and $n_0$, in this case 1 and 0, such that  $n^2$ <= 1* $n^2$  for all n>= 0, can't we say that $n^2$ is in O($n^2$) from the other side of the if and if only if?  The book does use if and only if. Here is an example of it   Would it be more appropriate for the big oh definition to include if and only if as well?


I am trying to find all the natural numbers satisfying $2^(n-1)\mid n!$. I managed to prove that all naturals of the form $2^m$ satisfy this property:  $$ \nu_2((2^m)!) = \sum\limits_{k=1}^{m}\left\lfloor\frac{2^m}{2^k}\right\rfloor = \sum\limits_{k=1}^m 2^{m-k} = 2^m\left(\frac{1-\left(\frac{1}{2}\right)^{m+1}}{1-\frac{1}{2}}-1\right) = 2^m\left(1-\frac{1}{2^m}\right) = 2^m-1 $$ and therefore $2^{2^m-1}$ divides $\left(2^m\right)!$  My goal is to prove that this is the only case. I have managed to bound $\nu_2(n!)$ by $n$, but I want to prove that if $n\neq 2^m$, then $\nu_2(n!)$ is strictly bounded by $n-1$.


For complex $z$, $|z| = 1 \implies \text{Re}\left(\frac{1-z}{1+z}\right)  = 0$

If $|z|=1$, show that: $$\mathrm{Re}\left(\frac{1 - z}{1 + z}\right) = 0$$   I reasoned that for $z = x + iy$, $\sqrt{x^2 + y^2} = 1\implies x^2 + y ^2 = 1$ and figured the real part would be:  $$\frac{1 - x}{1 + x}$$  I tried a number of manipulations of the equation but couldn't seem to arrive at any point where I could link the two to show that the real part was = 0.


Force wifi to connect to preferred access point (BSSID)

My home wifi network has two Google Wifi access points (APs). My desktop computer is running Ubuntu 17.10 and is literally a foot from one of the APs.  Unfortunately, instead of connecting to this close AP at 5GHz, it usually connects to the AP on the other side of the house at 2.4GHz, obviously creating a very slow and unreliable connection.  I have two questions:   Why would Ubuntu not automatically select the closer, stronger, faster AP? Assuming this isn't something that happens automatically, how can I force Ubuntu to choose the better AP?   N.B.   I found some related answers in the archives but they all seemed targeted to older versions of Ubuntu and Network Manager (pre-Gnome), and are no longer relevant. I'd prefer not to hardwire my computer because I have other equipment that needs to be hardwired and not enough ports.


Preloading images on safari for background image change

I have a background that changes every 12seconds.  In Chrome, Firefox and Opera the background change is works fine, but in Safari the browser always loads the image again and that is noticed by a flickering on every image change on the first cycle. Any ideas on how can I solve this problem.  This is how I'm handling the background change:  var img2 = new Image(); var img3 = new Image(); img2.src="/img/bg2.png"; img3.src="/img/bg3.png"; Meteor.setInterval(function(){     let elem = $(".header-2");     if(elem.hasClass("bg1")){         elem.removeClass("bg1");         elem.addClass("bg2");         let src = 'url('+img2.src.replace(location.origin,'')+')';         elem.css("background-image", src);     }     else if(elem.hasClass("bg2")){         elem.removeClass("bg2");         elem.addClass("bg3");         let src = 'url('+img3.src.replace(location.origin,'')+')';         elem.css("background-image", src);     }     else{         elem.removeClass("bg3");         elem.addClass("bg1");     } }, 12*1000)   The css classes:  .header-2.bg1 {     background-image: url('/img/bg1.png'); } .header-2.bg2 {  } .header-2.bg3 {  }


Allow users to hide connections between accounts

This feature request is inspired by the question on Programmers.SE on .   Stack Overflow is a site aimed at professional programmers, and it is used by some employers and some employees to examine or showcase the candidates abilities. I don't see any problem with that, but there is one aspect I'm a bit concerned about. Certain SE sites are far more private than the professional sites like SO. Anyone that participates in Christianity, Judaism, Islam or Biblical Hermeneutics is likely giving out a significant amount of information about their personal belief or world view to anyone who can connect the user name to the actual person. Another example would be controversial topics on Skeptics or Politics; not everyone would like to give their employer access to that kind of information.  The fundamental problem is that the SE platform does not allow for any separation inside one account. Of course one could create separate accounts for private and professional topics, but that requires a significant amount of clairvoyance and a rather annoying user experience juggling separate browsers to log into different accounts at once. An additional problem is that SE has automatic user merge features that can be triggered by logging into two accounts in the same session. I'm not sure how they work exactly, but I suspect that having your two accounts accidentally merged is a real danger if you are not careful.  There should be a mechanism to hide the connection between SE accounts, without having to use separate OpenIDs. For example, if I would like to use my SO account in job applications, I should be able to separate it from all my other accounts. The separation would only be for the publicly accessible part, moderators could still be allowed to see the connection between accounts. And behind the scenes it would just work as it is now, just without any links between the accounts.   The aspects that would need to be changed that I can think of are   the accounts tab in the user profile, that shouldn't show any connections for separated profiles copying the user profile to other sites should not work for separated profiles the network profile should not show the connections between separated profiles Area 51 should also not show the profile connections   This separation would not have to be bulletproof, but it should prevent users googling a specific person to make connections the user does not want to make public.


How do I install a .tar.gz (or .tar.bz2) file?

I have downloaded tar.gz files. But I don't know how to install it. How do I install this kind of file?


Why is the covariant derivative of the determinant of the metric zero?

This question, , seems to indicate $$\nabla_a \sqrt{g}=0.$$ Why is this the case? I've always learned that $$\nabla_a f= \partial_a f,$$ hence surely $$\nabla_a \sqrt{g}=  \partial_a\sqrt{g} \neq 0. $$  Where's the hole in my logic?


I want a $\epsilon-\delta$ proof for the continuity of $f(x)=x^n$ around a point $a$ on the domain of this function.  Here's my sketch:  $$|f(x) - f(a)| = |x^n - a^n| = |x-a||x^{n-1} + x^{x-2}a  +\dotsb + xa^{n-2} + a^{n-1}|$$  For every pair $x^{n - j}a^{j-1} + x^{j-1}a^{n-j}$ we can write as   \begin{multline} x^{j-1}a^{j-1}\bigl((x^{n-2j +1} - a^{n-2j+1}) + 2a^{n-2j+1} \bigl)\\ = x^{j-1}a^{j-1}\bigl((x - a)(x^{n-2j} + x^{n-2j -1}a +\dotsb + xa^{n-2j-1} + a^{n-2j}) + 2a^{n-2j+1} \bigl) \end{multline}  for every $j = 1,2,..., n$   Since $|x-a|<\delta$:  $$\bigl|x^{j-1}a^{j-1}\bigl((x - a)(x^{n-2j} + x^{n-2j -1}a +\dotsb + xa^{n-2j-1} + a^{n-2j}) + 2a^{n-2j+1} \bigl)| < |x^{j-1}a^{j-1}| \bigl( \delta (x^{n-2j} + x^{n-2j -1}a +\dotsb + xa^{n-2j-1} + a^{n-2j}) + |2a^{n-2j+1}| \bigl)$$   From now on I can't think of anything that would help me to conclude, I can't find any pattern that would help me summarize it, I would be glad if you help me.  Thanks.


Route AJAX failure messages to console instead of popup

How can I prevent ajax failure popups and instead route the failure to the console log instead?  Is this something I can do with Drupals implementation of jQuery?


Standard errors for multiple regression coefficients?

I realize that this is a very basic question, but I can't find an answer anywhere. I'm computing regression coefficients using either the normal equations or QR decomposition.  How can I compute standard errors for each coefficient?  I usually think of standard errors as being computed as: $SE_\bar{x}\ = \frac{\sigma_{x}}{\sqrt{n}}$ What is $\sigma_{x}$ for each coefficient?  What is the most efficient way to compute this in the context of OLS?


How to install Android 6.0 If the device is not listed yet?

I am interested in installing Android 6.0 on my device Huawei Honor 7 (PLK-L01).  At this point in time, the device name is not listed in the Android website as a supported device. Would i still be able to install it?  I am really interested to understand the reasons why a certain Android-based device can't support the latest version of Android OS.  Thank you for reading my questions. Any help or explanation would be greatly appreciated.


Which one is always acceptable: "i.e." or "i.e.,"

I had made an native English check before proof reading of my article. The native check company had changed all "i.e.," and "e.g.," to "i.e." and "e.g." in the article. When the publisher made an English proof by themselves they changed all "i.e." and "e.g." to "i.e.," and "e.g.," in the final article.  Now I am wondering which is actually always acceptable. This may be an duplicate question of   But I found that it varies from publisher to publisher depending on the style they use.   So my question is why does it vary in different English writing styles. What are the differences? What's good or bad whether or not use a comma after i.e. or e.g.?


Ubuntu is already installed but I want to install Windows 10

I'm new in Ubuntu, I want to install windows 10 on my Lenovo Thinkstation, Ubuntu 16.04 is already installed but I want to install windows 10. When I try for windows installation through USB, window can't find any hard drive for installation.  How I can install windows? I don't need Ubuntu


How to redirect the output of fuser to a file?

I'm using fuser with options -uv and I'm getting following output:  $fuser -uv ~/sh/test_script.sh                       USER        PID ACCESS COMMAND /home/abc/sh/test_script.sh:                      abc        3501 f.... (abc)test_script.sh   However, when I try to redirect the output of the command I'm only getting PID in the file:  $fuser -vu ~/sh/test_script.sh >> t2.txt                       USER        PID ACCESS COMMAND /home/abc/sh/test_script.sh:                      abc       f.... (abc)test_script.sh  $cat t2.txt 3501   Why is it not including all the information during output redirection?  Also, how to include all the information during output redirection?   Using lsof I'm able to redirect all the information to a file.


my power supply died dramatically; is it safe to simply replace it?

my power supply died last night rather spectacularly: blue sparks, popping sounds, a smell of burning plastic. the computer shut down, then tried to start itself up again, and sparked and popped some more before I was able to turn off the power switch on the back (in retrospect: was that dangerous of me? just reaching toward it to hit its switch?) and unplug it.  so clearly THAT needs to be replaced. but I have to wonder: what are the chances that OTHER components were damaged as well? can I simply buy a new power supply, and expect things to work? or could doing so actually be dangerous? could another component - like the motherboard, graphics card, or hard drives - have been damaged in such a way that plugging in another power supply would simply kill THAT power supply? (or damage other components that somehow survived the first assault?)  I've been building desktops casually, for myself, for a little over 10 years now, but I would by no means consider myself an expert in computer hardware or electronics, and something like this has never happened before. I'm a bit out of my depth.  other details, in case they may be of help:   the power supply is a Cooler Master RS-460-PSAR-I3. I bought it about 3 years ago, when I built this computer. (no internal components were reused, except two SATA drives.) I don't overclock anything; I never have. one of the two case's side fans died a few months ago. these fans are an unusual size (250mm), so had trouble finding a replacement, and then never got around to replacing it. I can't deny the possibility that things have been running hot for a while. (I was worried about this when the fan first broke, so kept an eye on a CPU temp program for a couple days afterwards. I don't remember the numbers, but I remember being unconcerned, though I am aware that these programs are unreliable by their nature.)   thanks for any help!


Insert Update to MYSQL with PHP 5.5 UTF-8 issues

I can't understand whats problem. I write data to mysql with php and utf-8 issues  Write in HTML form  Binəqədi r. Çiçək  qəs  Writed database Bin?q?di r. ÃƒÆ’Ã†â€™Ãƒâ€ Ã¢â‚¬â„¢ÃƒÆ’Ã‚   When I use mysqli_set_charset($conn,"utf8"); in insert and update query   Writed database Bin?q?di r. Çiç?k  q?s  Write data manually direct to database and use  mysqli_set_charset($conn,"utf8"); in select works normal.   How can I fix it? INSERT and UPDATE with UTF-8. This is my insert code  public function insert($sql) {     $conn = new mysqli(DB_HOSTNAME, DB_USERNAME, DB_PASSWORD, DB_DATABASE);     if ($conn->connect_error) {         die("Connection failed: " . $conn->connect_error);     }     mysqli_set_charset($conn,"utf8"); //  $conn->set_charset("utf8"); use same this.     if ($conn->query($sql) === TRUE) {         return 1;     } else {         return 0;     }     $conn->close(); }   NOTE: This issues on Linux and OSX. In windows work goods. How can I fix it for linux hosting?


Why do newspaper headlines use strange syntax rules?

Newspaper/news article headlines usually have different syntax rules, for example   No copula. North Korea trip 'successful' Past events written in present. Qantas cancels flight out of frozen Heathrow Predictions written with infinitive. Britain's 'crossbow cannibal' to die in jail Very often not in complete sentence. No indefinite/definite articles. Ivory Coast Faction Squeezes UN Force Using a comma instead of "and". Romania, Bulgaria face delay in joining Schengen.   Why these rules and are there any other rules?


PT rule in .htaccess in subdirectory that will be processed in .htaccess for parent directory

I have a PHP project that exposes its API under /api/public/(xyz). The http root directory has .htaccess file that rewrites those requests to be processed by index.php.   For reason not relevant here, we want to expoze (xyz) methods under /services(xyz).  My very naive approach was to create services subdirectory and .htaccess file with the following content:  RewriteEngine On RewriteRule ^(.*)$ /api/public/$1 [PT]   My idea was, that request to /services/(xyz) will be rewrited to /api/public/(xyz) and handled internall as if the second URL was invoked. However, it doesn't seem to work. Apache logs 404 for the request.  What did I get wrong here?  Please note, it's not the problem with the rule syntax itself, I'm able to get static resource. The problem is, that after rewriting, I get the URL that would be rewrited by other rules, that are in the other file. How the rules are flowing through multiple files is something that is not covered by the canonical question...


du and df show discrepant amounts of available disk space on my Linux server

I know that inodes aren't necessarily deallocated with certain removal/deletion methods that users/programs use.  When inodes are still present and pointing to files that have been deleted, but two or more Linux utilities show a discrepancy with the available space, how do I deallocate the inodes that point to the deleted files?  I have no hidden, forgottent-about backup of a file system.  The files deleted were not log files (so restarting the syslog daemon wouldn't apply to this problem).  The two links posted below as of 10:51 AM Pacific time don't apply to my question.


What is the easiest way to find a Mineshaft?

I have been playing a survival world with my friend for a while. The only thing we haven't done, is find the Mineshaft. So, what is the best way to find a Mineshaft, while avoiding the anoyying Cave Spider Spawners.


Why True/False is capitalized in Python?

All members are camel case, right? Why True/False but not true/false, which is more relaxed?


What is the difference between operational, differential, and instrumentation amplifiers?

RS Components lists three categories of similar amplifiers: , , and . I think that there should be a single section called Operational Amplifiers. Why do these three separate sections exist? What is the significance of this difference?


#!/bin/bash echo "Enter any string" read string string1 = $(echo $string | rev) if ["$string" == "$string1"] then      echo "String is palindrome" else      echo "String is not Palindrome" fi   I am trying to check whether a string is a palindrome or not. Below is the error I get:  # ./palindrome.sh Enter any string mom ./palindrome.sh: line 5: string1: command not found ./palindrome.sh: line 6: [mom: command not found String is not Palindrome


I am running Ubuntu 14.04. And added the ppa . After adding it, I runned sudo apt-get update and got the following error:   Fetched 13,1 kB in 8s (1478 B/s)                                        Reading package lists... DoneW: GPG error: http://deb.playonlinux.com  trusty InRelease: The following signatures couldn't be verified  because the public key is not available: NO_PUBKEY E0F72778C4676186W:  GPG error: http://extras.ubuntu.com trusty Release: The following  signatures couldn't be verified because the public key is not  available: NO_PUBKEY 16126D3A3E5C1192W: GPG error:  http://archive.canonical.com trusty Release: The following signatures  couldn't be verified because the public key is not available:  NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32W: GPG error:  http://mega.nz ./ Release: The following signatures couldn't be  verified because the public key is not available: NO_PUBKEY  B258DF0B4D70F67AW: GPG error: http://nl.archive.ubuntu.com trusty  Release: The following signatures couldn't be verified because the  public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY  3B4FE6ACC0B21F32W: GPG error: http://nl.archive.ubuntu.com  trusty-updates Release: The following signatures couldn't be verified  because the public key is not available: NO_PUBKEY 40976EAF437D05B5  NO_PUBKEY 3B4FE6ACC0B21F32W: GPG error: http://nl.archive.ubuntu.com  trusty-backports Release: The following signatures couldn't be  verified because the public key is not available: NO_PUBKEY  40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32W: GPG error:  http://nl.archive.ubuntu.com trusty-security Release: The following  signatures couldn't be verified because the public key is not  available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32W: GPG  error: http://repository.spotify.com stable InRelease: The following  signatures couldn't be verified because the public key is not  available: NO_PUBKEY 082CCEDF94558F59W: GPG error:  https://private-ppa.launchpad.net quantal Release: The following  signatures couldn't be verified because the public key is not  available: NO_PUBKEY E131728675254D99W: GPG error: https://repo.tox.im  nightly Release: The following signatures couldn't be verified because  the public key is not available: NO_PUBKEY 4B111B5D7DF12B85   I downloaded  and runned all the fixes, as seen in the screenshot below, but no luck.    I also purge the ppa:nathandyer/vocal-stable, and also locate everything connected with that ppa, and rm them.  Update from comment: My problem is already fixed. From someone outside of Ask Ubuntu. I asked him if I can post the steps to fixing this, here. Of course in quote format crediting him. Still waiting for reply!


NDWI Calculation with Surface Reflectance Products

I have downloaded L8 OLI/TIRS C1 Higher Level Data from USGS Earth Explorer to map Chlorophyll content in lake. The file contains original images and surface reflectance images. When I calculate NDWI using the original images, the lakes and surrounding area can be distinguised clearly. However, when I use the surface reflectance images, they produce a map of single colour. I have used the same NDWI formula for both the images. I have used the following code to calculate NDWI:    LS_ndwi <- (tmp3-tmp5)/(tmp3+tmp5)  plot(LS_ndwi)    Here tmp3 is the Green band and tmp5 is the NIR band. I wanted to know, should I use the original images or the surface reflectance images for my analysis? I have to retrieve the reflectance data from the images for my analysis, so wanted to use the surface reflectance imageries. I checked my data type and it is in "FLT8S". So the problem of integer is not valid here I think.


This is a little odd, but the Android application's feed shows really narrow for items even on a wider screen.  Below is a picture of the layout on the screen of my Galaxy Tab E and how the narrowness is evil.  Note this only seems to be on the feed, and not specific site pages or questions/answers.      This has been marked as a duplicate to the one only showing a few items.  This is not the same issue.  It is not a duplicate.  Comparatively, in the layout, you are able to still see more than two words on a line in the 'duplicate', but in this case on a tablet, I am less concerned with number of items on the feed but the width of the items actually displayed.  Compared to the iOS application, in which you can get about 50% more width on the individiual items in the feed so you can actually read them on the screen without opening them, this is very very hard to read when you only get two words in per line (or less) and have to scroll down just to read an entire title on the feed.


I am looking for some statistics (and probability, I guess) interview questions, from the most basic through the more advanced. Answers are not necessary (although links to specific questions on this site would do well).


What is this 11.59 GB partition on my iMac?

What is this 11.59 GB partition ?  Is that supposed to be there ? If not, what can it be and how can I remove it ?  I don't remember seeing it before I used Bootcamp and installed Windows. I installed Windows, it started crashing, and in the process of trying to fix and do a clean install of Windows, it seems that I crashed my Mac, too. And I am wondering if it's some sort of residue from a failed partitioning with Bootcamp.


Cannot write a question with the word 'question' in the title

I can't "save edits" to the following question:  , because it has the word 'Question' in the title.  I understand the rationale behind not allowing this word in the title, but it is still wrong.


What is the difference between Apex:messages and Apex:PageMessages in VisualForce?

I am having some confusion while using PageMessages and Messages in my VF Pages. I'm using an apex controller to pass a message to my vf page but the problem is that if I use PageMessages then it showing the default validation error messages on that page. And if use Apex:messages then the error messages don't show up at all...


When I go to click on hyperlinks in a PDF document from ocular, it opens the resulting page in the text editor, not in Firefox as expected.  Some output to show that Firefox should be default...  $ update-alternatives --get-selections|grep www-browser gnome-www-browser              auto     /usr/bin/firefox x-www-browser                  auto     /usr/bin/firefox  $ less /usr/share/applications/mimeinfo.cache | grep html application/xhtml+xml=firefox.desktop; text/html=firefox.desktop;   Ubuntu 18.04.2 LTS, 4.18 kernel, GNOME desktop


Why must a planet be in a star's "habitable zone" to have life?

I have seen many articles that talk about a star's "habitable zone" as the ring around it which is just the right temperature for planets to have liquid water, which is necessary for life. My question is, why does a planet need to have liquid water in order to sustain life? Who says that extraterrestrial life can't live off of some other kind of sustenance?


Variable passed into function only changed within function

I created a simple function and I noticed something unexpected about javascript. When I pass a variable in to a function, then change it, its not changing outside that function. Heres some code:  function check(val, isEven) {     if (val % 2 === 0){     isEven++;     console.log('incremented isEven is ', isEven);   } }  var arr = [1, 2, 3, 4, 5, 6, 7, 8];  var isEven = 0;  for (var x = 0; x < arr.length; x++) {    check(arr[x], isEven);    console.log('isEven is now ', isEven); }   Fiddle is .  Maybe I've been misinterpreting Javascript all these years, but I would have expected the isEven within check() to be the same as the original isEven.....But you can see in the logs, outside isEven stays as 0....


Worf is one of my favorite Star Trek characters. A defining moment in his character arc is at the end of Star Trek: Deep Space Nine when the Federation appoints him ambassador to the Klingon Empire. However, in his appearance in Star Trek: Nemesis, he is not an ambassador, and is back serving aboard the Enterprise-E. In-universe, what is the reason behind this? Is he no longer an ambassador?


Prove $\left|\int_a^b \phi(t) \ dt \right|\le \int_a^b |\phi(t)| \ dt$

Let $\phi(t) = \phi_1(t)+i\phi_2(t)$ be a complex function in a real interval $t$  In order to prove: $$\left|\int_a^b \phi(t) \ dt \right|\le \int_a^b |\phi(t)| \ dt$$  I tried: $$\int_a^b \phi(t) \ dt  = \int_a^b \phi_1(t) + i\phi_2(t) \ dt  = \int_a^b \phi_1(t) \ dt + \int_a^b \phi_2(t) \ dt \rightarrow$$  $$\left|\int_a^b \phi(t) \ dt \right| = \sqrt{\left(\int_a^b \phi_1(t) \ dt\right)^2+\left(\int_a^b \phi_2(t) \ dt\right)^2}\le \sqrt{\left(\int_a^b \phi_1(t) \ dt\right)^2}+\sqrt{\left(\int_a^b \phi_2(t) \ dt\right)^2} = $$  $$\left|\int_a^b \phi_1(t) \ dt\right|+\left|\int_a^b \phi_2(t) \ dt\right|\le \int_ a^b |\phi_1(t)| \ dt + \int_a^b |\phi_2(t)| \ dt = \int_a^b |\phi_1(t)|+|\phi_2(t)| \ dt$$  But how to arrive at $\int_a^b |\phi(t)| \ dt$?


Is $(\mathbb R^2,+,\cdot )$ a field where $(a,b)\cdot (c,d)=(ac-bd, ad+bc)$?

Is $(\mathbb R^2,+,\cdot )$ a field where $(a,b)\cdot (c,d)=(ac-bd, ad+bc)$ ? I think it is because $\varphi :\mathbb R^2\to \mathbb C$ defined by $\varphi (a,b)=a+ib$ is a ring isomorphism, but my teacher says it's not, and I don't understand why. Any idea ?


What's the difference between "these" and "those"?

First of all, I'm not a native English speaker, but in school I learned that these is used if referring to something near, and those is used when referring to something far away (temporally or locally). But now I'm sometimes watching English movies and notice sentences like "Have you seen those boots?" while the boots were only centimeters away. Is this just not correct, or have I learned the wrong rules?  Another question is, what if I'm referring to something abstract such as ideas or thoughts so that I can't say if they are far away or not. Should I use those or these?  Edit  So it can't be really wrong in any case if I use these respectively those?


Is there a way to insert php variable in javascript code?

I am making a line graph using a jQuery plug in and the script is as follows  <script>  var lineChartData = {     labels : ["1","2","3","4","5","6","7","8","9","10","11","12"],     datasets : [         {             fillColor : "rgba(220,220,220,0.5)",             strokeColor : "rgba(220,220,220,1)",             pointColor : "rgba(220,220,220,1)",             pointStrokeolor : "#fff",             data : [5,6,19,34,59,93,128,158,206,266,329,398,418]         },          {             fillColor : "rgba(151,187,205,0.5)",             strokeColor : "rgba(151,187,205,1)",             pointColor : "rgba(151,187,205,1)",             pointStrokeColor : "#fff",             data : [0,0,0,3,15,46,68,109,169,228,319,364,386]         }         ]         }  var myLine = new Chart(document.getElementById("canvas").getContext("2d")).Line(lineChartData);     I want to insert a variable into the data part of the var, for example   data : [$q1,$q2,$q3, etc, etc]   I have no idea about javascript so I don't know where to begin. How would I do this?  I have the variables in a separate file and have included it this file.


Copying from one drive to another / filename too long?

Copying folders on a Windows 10 machine from one drive to another in File Explorer fails with the following error:       "the file name(s) would be too long for the destination folder."   Both drives are the same size and use the same format. How can it fit on the source but not on the destination?


Fraction after multiplication in console

When I try to multiplicate some fractional number by 100, I get number with very small fraction instead of     integer number. For example, 32.02 * 100 = 3202.0000000000005. But in other case: 32.06 * 100 = 3206 Could you please tell, why do I get a small fraction in the first case?


Can a child inherit both their parents' clans jutsu?

Can a child in Naruto inherit both abilities from his parents' clans?  For example, if Ino and Sasuke had a child is there a possibility for it to have both Uchiha's Sharingan and Yamanaka's mind transfer jutsu?


All prime ideals are invertible $\Rightarrow$ Dedekind domain

$\newcommand{\p}{\mathfrak{p}}$ $\newcommand{\a}{\mathfrak{a}}$ Let $A$ be a one-dimensional Noetherian domain. I am thinking about this claim:     If all prime ideals of $A$ are invertible, then $A$ is a Dedekind domain.   Is that true?  I tried to show a unique factorization into prime ideals. Indeed, an integral domain is a Dedekind domain, iff all nonzero ideals admit a unique prime factorization.  To show this, I'm going to show following two lemmas. If it is proved, we can prove a unique factorization by the same way as a Dedekind domain (cf. Neukirch, Algebraic Number Theory).  Let $\a \neq 0$ be an ideal of $A$. I proved the first lemma:     There exists prime ideals $\p_1, \dots, \p_r$ such that   $$ \a \supseteq \p_1\dots \p_r $$   by the same way as a Dedekind domain, because it is not used that $A$ is integrally closed.  But I can't show the second lemma:     $$\a\p^{-1} \supsetneq \a.$$   I found that to show the second lemma, it is sufficient to show that $$ \bigcap_{n=1}^\infty \p^n = 0. \label{a}\tag{1}$$ We assume that it is proved. If $\a\p^{-1} = \a$, $\a = \a\p$. By induction, we get $\a = \a\p^n$ for $\forall n > 0$. We use $\eqref{a}$, then we get $\a = 0$. It is a contradiction.  However, I can't prove $\eqref{a}$.


Proving or disproving - composite number > 1 has a divisor d such that d <= sqrt(q

I'm currently stuck on a proof that's giving me a hard time, not sure where to start:  Prove or disprove: If an integer $q \gt 1$ is composite, then $q$ will have some divisor $d \gt 1$ such that $d \lt \sqrt{q}$  Any ideas on how to approach these problems or any help at all would be greatly appreciated.


How do I prevent Illustrator from creating thin strokes when I expand a pattern?

I have a pattern that was created using Illustrator's pattern making tool.  I applied it to an object.  I then scaled up the pattern 160%.  When I expand the pattern, it does not expand correctly. See screenshots here:  Original:     Expanded:     I am not talking about gaps in my patterns. I am talking about the stroke weight not keeping its appearance when expanded in a pattern.


In bash, why does the if [ -n ] test return true for an empty string?

This might sound a like a silly question to most people, but it is my first day learning shell scripting, so. #! /bin/bash str=""  if [ -n $str ] then     echo "True" else     echo "False" fi  if [ -n "$str" ] then     echo "True" else     echo "False" fi  When I ran it on bash, the first test gave "True" and the second one gave "False." Why? Is it because in the first one bash doesn't treat $str as a string? GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)


Why are overloaded inherited static methods ambiguous?

We have two following codes:  First:  class base { public:     static void nothing()     {         std::cout << "Nothing!" << std::endl;     } };  class derived : public base {     public:     static void nothing(int a)     {         std::cout << "Nothing with " << a << std::endl;     }      static void nothing(double b)     {         std::cout << "Nothing with " << b << std::endl;     }      //using base::nothing; };  int main() {     derived::nothing();      return 0; }   and the second one:  class base {     public:     static void nothing()     {         std::cout << "Nothing!" << std::endl;     } };  class derived : public base {     public:     /*static void nothing(int a)     {         std::cout << "Nothing with " << a << std::endl;     }      static void nothing(double b)     {         std::cout << "Nothing with " << b << std::endl;     }     */      //using base::nothing; };  int main() {     derived::nothing();      return 0; }   Question, why we cannot compile the first code ? The compiler is not able to find the inherited static method from base class, but sees only the methods from the derived class!  To compile the first example, we need to introduce the base::nothing name by 'using' declaration.  Could someone tell me why ? Why the declaration of a static 'nothing' method in the derived class, stops the compiler from seeing the inherited static methods from the base class ?


Determine all entire functions $f$ with $\Re f(z) > 0$ for all $z \in \mathbb{C}$ such that, $f(0) = 1$.

I am trying to determine all entire functions $f$ with $\Re f(z) > 0$ for all $z \in \mathbb{C}$ such that, $f(0) = 1$.   So far, my attempt is the following. Write $f = u+iv$, and define the function  $$ g(z) = \frac{f(z)}{\Re f(z)} = \frac{u(z)+iv(z)}{u(z)} = 1 + i \frac{v(z)}{u(z)}.  $$ Since $\Re f(z) > 0$ for all $z \in \mathbb{C}$, this is an entire function. We have  $$ 1 = g(0) = 1 + i \frac{v(0)}{u(0)} $$ So $v(0) = 0$. Also,  $$ |g(z)|^2 = 1 + \frac{v(z)^2}{u(z)^2}.  $$ I want to apply Liousville Theorem somehow, so I'm looking for bounds, i.e.  $$ |g(z)| \leq M|z|^m $$ for some $M$, $m \geq 0$, and for large enough $|z|$. I have no progress on this so far, I'm not sure if my attempt is in the right direction.


Why $\{\mathbf{0}\}$ has dimension zero?

According to C.H. Edwards' Advanced Calculus of Several Variables: The dimension of the subspace $V$ is defined to be the minimal number of vectors required to generate $V$ (pp. 4).  Then why does $\{\mathbf{0}\}$ have dimension zero instead of one? Shouldn't it be true that only the empty set has dimension zero?


Execute query in portions and return values jQuery php

I was attemping to Insert data into the database in portions and return the results in portions. Attempted this by putting the request in a while loop and appending the results. Didn't know if there was a better way but i thought i'd try this. HTML <button class="id = "start">Start </button>

  JS Couldn't get this to work not sure why i'm not familiar with javascript. $(document).ready(function(){     $("#start").click(function(){         var start = 0;    var stop = 10;    var limit = start + ',' + stop;    while(results == 10){     $.ajax({       url: "embed.php",       type: "get",       datatype : "json",        data:{ limit: limit } ,       success : function(data)     {       $("#results").prepend(data);       start = start + 10;    }, error : function(data)    {       console.log('error');    }    });    }    }); });  Decleared var results = 10; in a script tag in header. PHP Calls the function that performs the query and returns an array of success messages. <?php  $limit = filter_var($_REQUEST["limit"], FILTER_SANITIZE_STRING); $results = $insertData->insertMovies($limit); $i = 1; foreach($result as $item){?>
<?php echo $item; $i++;?>
 <?php }?>


Integration by parts appears to prove the existence of integrals that have discontinuity.

Consider the following integral:  $$\int \lfloor x \rfloor dx$$  I know the integral reduces to:  $$x \lfloor x \rfloor - \frac {\lfloor x \rfloor ^2}2 - \frac {\lfloor x \rfloor}2$$  However, if we use integration by parts:  $$\int \lfloor x \rfloor dx = x\lfloor x \rfloor - \int x (\lfloor x \rfloor)' dx$$  Using simple algebra:  $$\int x (\lfloor x \rfloor)' dx = \frac {\lfloor x \rfloor ^2}2 + \frac {\lfloor x \rfloor}2$$  Yet, this is a contradiction. The indefinite integral is always continuous, yet the final expression is a piecewise constant function with infinite jump discontinuities. Does integration by parts only work for continuous functions or something? This is incredibly confusing.


Polynomials with integer coefficients such that $p(a)=b,p(b)=c,p(c)=a$

While studying polynomials a question struck in my mind that  To have a polynomial $p(x)$ with integer coefficients and $a,b,c$ are three distinct integers, then is it possible to have $$p(a)=b$$$$p(b)=c$$$$p(c)=a$$


Display votes next to comments in User → All Actions → Comments tab

Just as the number of votes is displayed next to an answer in the Answers tab (https://site.stackexchange.com/users/userid/?tab=answers), can we also have the number of votes displayed next to a comment in the All Actions → Comments tab (https://site.stackexchange.com/users/userid/?tab=activity&sort=comments)? It will be useful to do self-learning / monitoring of which comments have been useful to the community, since upvote for a comment does not result in a message in the inbox (unlike an answer upvote which results in both a message and a reputation tab highlight).


I try to find how to schedule a run of "chkdsk.exe" on a ntfs/windows partition from linux. I already know that "gparted" sucess to do that after resizing a windows partition. But I need to schedule that manually (because gparted fail to resize a windows partition, due to some filesystem errors, and it will not schedule a "chkdsk.exe" on the partition). Did someone know how to do that ? I remember that someone tell me about a flag to set on the windows partition, but I don't remember the name of the flag, and I don't know if it's right.


What should be the approach to test styles using Selenium

In my UI tests I would like to verify particular style values for the elements. Below is the example list of the styles I'd like to verify:   font style font size padding margin   Is there a way to do that using Selenium?


I am aware of the die() command in PHP which exits a script early.  How can I do this in Python?


Words that change meaning when the first letter is capitalized

What words change meaning when the first letter is capitalised? The only word with this property that comes to mind is polish/Polish (the pronunciation also changes in this case, but that's not a necessity part of what I'm asking for).


Looking for a word or phrase for realizing a failure only after a long time

There is a kind of situation that seems to occur somewhat commonly, that goes something like:   Figure out some way to handle a particular situation do it regularly, and make a habit of it, as it seems to work OK … … and only much later actually realize that it very much isn’t OK, that it’s been doing harm all the time, and that it’s too late to fix anything.   Does there exist any good words or phrases for this kind of situation?


I am trying to work out a special UNIQUE constraint: there are many columns in a Users table but only these two are relevant for the question:  id bigint, active boolean, ...   I want to allow multiple rows to have the same id - but only one of them may have active = true.  E.g. There can be many rows with id = 1 and active = false, but only one can have id = 1 and active = true.


Place each foot on a scale: can you add the two to find your weight?

I frequent a blog from a British psychologist, and every Friday he likes to pose an interesting puzzle or riddle. The Monday after that he posts the answer. They're good fun, and IANAP but  made my it-might-not-be-quite-as-simple-as-that detector go off.  My question boils down to this: let's say I have two identical scales, and I stand on the scales with one foot on each scale. The scales read W1 and W2. Does my weight equal W1 + W2?


Don't replicators make the Ferengi rather pointless?

Ferengis are all about acquisition and making a profit. But, in the age of replicators, where everything you want can be produced instantly, what would be the point of their lifestyle?


How are designers creating the 3d effect often seen on sites like dribble lately for displaying portfolio screens?

I am seeing it a lot lately and I'm curious what tools are being used for this technique, is it an actual 3d app, or photoshop? Here is an example:


How can I install Ubuntu on Raspberry Pi?

I have ISO file and how can I install Ubuntu from it on Raspberry Pi (2)? My SD card is empty.


Instagram compresses logo profile picture

I've tried exporting this logo as JPEG 640px with a size <1.6mb but it still looks compressed.


Why won't attribute modifiers add up on my armor?

I am trying to make a new set of armor called the Fullerite armor. It has its own custom resource but it is made of gold. I'm trying to modify the gold to have more protection than diamond. It also is going to give you more health. This is the command I am using:   Helmet:  /give @p golden_helmet 1 1 {display:{Name:"Fullerite Helmet"},AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:2,Operation:0,UUIDMost:61127,UUIDLeast:23056},{AttributeName:"generic.armor",Name:"generic.armor",Amount:3,Operation:1,UUIDMost:88181,UUIDLeast:199509},{AttributeName:"generic.armorToughness",Name:"generic.armorToughness",Amount:2,Operation:1,UUIDMost:17664,UUIDLeast:119384}],Unbreakable:1,ench:[{id:0,lvl:4}],HideFlags:2}   Chestplate:  /give @p golden_chestplate 1 1 {display:{Name:"Fullerite Chestplate"},AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:2,Operation:0,UUIDMost:61127,UUIDLeast:23056},{AttributeName:"generic.armor",Name:"generic.armor",Amount:8,Operation:1,UUIDMost:88181,UUIDLeast:199509},{AttributeName:"generic.armorToughness",Name:"generic.armorToughness",Amount:2,Operation:1,UUIDMost:17664,UUIDLeast:119384}],Unbreakable:1,ench:[{id:0,lvl:4}],HideFlags:2}   Leggings:  /give @p golden_leggings 1 1 {display:{Name:"Fullerite Leggings"},AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:2,Operation:0,UUIDMost:61127,UUIDLeast:23056},{AttributeName:"generic.armor",Name:"generic.armor",Amount:6,Operation:0,UUIDMost:88181,UUIDLeast:199509},{AttributeName:"generic.armorToughness",Name:"generic.armorToughness",Amount:2,Operation:0,UUIDMost:17664,UUIDLeast:119384}],Unbreakable:1,ench:[{id:0,lvl:4}],HideFlags:2}   Boots:  /give @p golden_boots 1 1 {display:{Name:"Fullerite Boots"},AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"generic.maxHealth",Amount:2,Operation:0,UUIDMost:61127,UUIDLeast:23056},{AttributeName:"generic.armor",Name:"generic.armor",Amount:3,Operation:0,UUIDMost:88181,UUIDLeast:199509},{AttributeName:"generic.armorToughness",Name:"generic.armorToughness",Amount:2,Operation:0,UUIDMost:17664,UUIDLeast:119384}],Unbreakable:1,ench:[{id:0,lvl:4}],HideFlags:2}   When I put this on, it works just fine, but when I put another piece of armor on it doesn't add any armor points or it replaces the armor points it already had. Same for the extra health. I am playing in 1.9.2. Anyone know why they won't add up and they only work when worn separately?


please remove this question.  please remove this question. please remove this question.


Need suggestion which version of Ubuntu is suitable for my machine

I have a Acer Aspire 4720Z Laptop. Is powered by Intel Pentium Dual-Core 32 BIT Mobile Processor. 1 GB RAM (have additional 1 GB but currently it is corrupted would soon replace it) and 160 GB hard drive. The laptop has Mobile Intel GL960 Express chip set.  The Acer Aspire 4720Z notebook comprises inbuilt internal modem, wireless wi-fi, and Bluetooth connectivity. Currently have Windows 7 64 BIT OS running.   Can someone please suggest which would be the best version of Ubuntu I should install.  1) Ubuntu 12.04 LTS.  2) Ubuntu 13.04  Kindly suggest.


How to insert an image and not get error message when resizing

Hi I am trying to insert an image in a document and have the width of the image be the same as the width of the text.   I have included the following and cannot seem to get the display command to work.  \usepackage{graphics}   I am trying to display image using   \includegraphics[width=\textwidth]{my-image}   I receive the following error message:  width=\textwidth ]{my-image}  ! Paragraph ended before \Gin@iii was complete. <to be read again>                     \par


If $a\mid b^2$ and $\gcd(a,b) = 1$, how can I prove that $a\mid b$?

Let $a$, $b$ be positive integers. Clearly if $a\mid b^2$, $ak = b*b$ for some $k$ in $\mathbb{Z}$. Intuitively, $a$ will be the gcd so it must be $1$. But how can I show this? Is there a more appropriate way to phrase this or maybe some mathematical simplification or steps I can see?   Thanks!   Also, when I get to $a = 1$, how can I show that $b$ also must be $1$?


Interrupting contour lines beneath elevation labels (instead of using label buffers) using QGIS?

Is there a way to interrupt a contour line beneath an elevation label using QGIS?


This is one of those things that seems like it should be laughably easy but I'm stuck...  I need to open a CSV file that is stored in SHIFT_JIS encoding and decode it to Unicode and also encode in UTF-8. It sounds like this is pretty straightforward in ruby 1.9 but I'm not feeling particularly adventurous on my production Rails app, so I need to stick with 1.8.7.   Any help would be appreciated.


How to remove the pen drive shortcut virus>

Background: I have the common Pendrive Shortcut virus(creates a shortcut within the pendrive),  Question: How can I remove it?  Some additional info: There is a hidden .ini file included with the .lnk file in the drive folder. That's not exactly hidden, since it only shows on using the "ls" command at cmd. The file name is something like "~(random character string).ini", where random character strings are like "a3b$%N3a4"


What command-line text editors come bundled with macOS?

When I walk up to a Mac, and open a Terminal.app window, what options do I have for editing text files?  I see that both  and  text editors are included with macOS Sierra, along with  and , but apparently not the ee text editor bundled in FreeBSD.   What other options for command-line text editors are built into macOS?


Falsely accused witch befriends transforming dragon she was to be sacrificed to

Story is in a medievalish setting and starts with a woman who has been falsely accused of being a witch being taken by 2 men to be sacrificed to a dragon.  She ends up befriending the (male) dragon, who is able to transform into various forms, including human, and can speak only the language of whatever form he is in. e.g. can speak English in human form, but can't in dragon form.  He needs to return to his dragon form every day at sunrise or he dies.  Contact with iron or steel causes him pain and prevents him from transforming.  Near the end of the book, he's been put in handcuffs by one of the two men from the start and the woman has to get the assistance of the other one (village blacksmith?) to remove them before sunrise, which they manage to do just in time.  I think I read it maybe 10 years ago.    I also remember it was a very short book, probably only about 100 pages.


At that time of installing Ubuntu 16.04 in my laptop. Its deleted my entire data in my hard disk. whether its possible to recover my file Ubuntu os. If yes kindly provide me solution.


Why does water make a paper type substances weak?

Toilet paper, paper towels or cardboard are all relatively strong when dry but as soon as they are wet it is much easier to tear them. Why is this?


MTG Multiplayer—Card Control and Losing the Game

I just need a bit of rules clarification that I'm confused about. If I  an enchantment to an opponent in a multiplayer game, and then lose the game myself, does the enchantment leave play with me or does it remain under the control of my opponent until they lose or the game ends?


Is there any tools to remove all "links" from a PDF file

I'm using Lubuntu in my laptop and I have an e-book reader. (Sony Reader PRS-T2)  However, my e-book reader struggles to open several pdf files with links in it, such as webpage I saved using Google's chrome build-in print-to-pdf tool.  Is there any software (CLI or GUI) that can remove those links from my PDF files?  I have have tried "flattening" function from PDF Chain and PDFTK but they do not work.  P.S. I have tried the solution in  but for some reason it doesn't work.


Creating modules and classes in JavaScript

I'm trying to create a module in JavaScript. I want my module to have something like a class. I'm not sure if what I"m trying is possible. Essentially, I want to be able to do this in JavaScript:  var myObject = new myCompany.myLibrary.myClass(); myObject.myFunction();   Currently, I'm trying the following:  var myCompany = myCompany || {}; myCompany.myLibrary = (function() {         var myProperty = null;      var anotherProperty = 'Hello';      return {         myClass: function () {           return {             myFunction : function() {               console.log(anotherProperty);             }           };         }     }; })();   When I do this, I get an error that says "undefined is not a function". Is it possible to do what I'm trying to accomplish in JavaScript? If so, what am I doing wrong?


Who provides Carnet de Passage for Indian vehicles?

Under which government department and which law the Carnet is issued in India ?  I have already visited Nepal and Bhutan on bike. Both the countries don't need any Carnet from Indians. Now, I want to go Pakistan on my bike.   What I understood after googling is - Carnet is 'MUST' to visit any country on your vehicle.   I came to know that Automobile Association of India is the sole authority to provide Carnet de passage. But they charge a huge amount of Rs 10,000 for a vehicle (2/4 wheels).   Is it necessary to get a Carnet de passage if I want to travel in Pakistan on my Indian bike?  Cant I get a cheaper Carnet from a Government office ?  Links:


How do electrons know which path to take in a circuit?

The current is maximum through those segments of a circuit that offer the least resistance. But how do electrons know beforehand that which path will resist their drift the least?


I'm trying to create a 2D plot with a color map using pgfplots.  I've managed to get the overall behaviour that I want, but I would like the color map to be logarithmic, rather than linear.  The best I have managed is to use the meta expr key, but then the color bar shows 1-4 instead of 10^1 through 10^4.  Below is my working example.    \begin{tikzpicture} \begin{semilogyaxis}[colorbar, xlabel = create energy (keV), ylabel = deposit energy (kev), ] \pgfplotstableread{../endep_log_au_30_0_0.csv}\mytable % \addplot+[scatter, only marks, scatter src=explicit, mark=square]  table[x=createEn,y=depEn,meta expr=ln(\thisrow{tot})/ln(10)] {\mytable}; \end{semilogyaxis} \end{tikzpicture}   Is there a way to modify how the labels appear on the colorbar or set it to be logarithmic?  Is there a different way I should be approaching this problem?  (Unfortunately I cannot post an image as a new user)


Somehow I have set a hotkey that start DoubleCommander whenever I press AltGr+s. Unfortunately I forgot which program is responsible for that behavior and therefore how to change it back.  How do I find out which program is responsible to change it back?


Remove macOS and Install Windows 10 Only

How do I remove macOS completely from my MacBook Air 2015 and install Windows 10 only after?  I have tried formatting my drive to GPT and tried booting a Windows Installation USB however I'm stuck at the installer not being able to find any drives.


I need a Custom crafting with the option of destroying specific blocks (Canbreak command)  I need this creation but with the addition on the created object status "canbreak oak_log"      "type": "minecraft:crafting_shaped",     "pattern": [         " # ",         "W  ",         "   "     ],     "key": {         "#": {             "item": "minecraft:flint"         },         "W": {             "item": "minecraft:wooden_axe"         }     },     "result": {         "item": "minecraft:wooden_axe",         "count": 1     } }   I tried to do it this way but i have no effect  {     "type": "minecraft:crafting_shaped",     "pattern": [         " # ",         "W  ",         "   "     ],     "key": {         "#": {             "item": "minecraft:flint"         },         "W": {             "item": "minecraft:wooden_axe"         }     },     "result": {         "item": "minecraft:wooden_axe{CanDestroy:["minecraft:oak_wood"]}",         "count": 1     } }


Short Story where the Devil offers to dogfight against a (WWII?) fighter pilot for his soul

Read this short story 10-20 years ago, don't know where. Premise is that this fighter pilot dies, and the Devil offers to dogfight him for his soul (I think his soul was going to be consigned to purgatory otherwise). Fighter pilot agrees and does some cleverness involved in choosing the planes (e.g.  It's a P-39 model "H" which was somehow superior to the regular series.  Don't remember the exact plane, but pretty sure it was WWII-era, allied side, for the pilot).  Fighter pilot wins (possibly because of better turning radius?) Having lost the rights to the soul, the Devil ups the bargain -- win again (best 2 of 3?) and he'll release a whole bunch of fighter pilot souls from purgatory.   New rule -- the Devil gets to choose the models of planes in the next fight.  Fighter pilot agrees, and still wins (bad type of plane but still good at one thing?). Having released everyone from purgatory, fighter pilot gets offer to reincarnate (him and all his friends) and go fighting for "good" in some far off space force.


Why are capacitors with large values are manufactured polarized?

I couldn't find a duplicate-like of this question. I'm also not sure whether this is an electrical engineering question or a physics question.   As most of you noticed when one needs to use larger capacitor values the type of capacitors available to use are polarized capacitors such as tantalum or electrolytic capacitors.   What is the relation between large capacitance and being manufactured polarized?  is that the same reason: if we ask why are capacitors with small values are manufactured non-polarized?


I have setup and cron to check if a port is busy or free and if its free then it sends and email and then start golang api service   send mail is working properly but api server is not getting started  following is my crontab file   */2 * * * * /home/ubuntu/sh/projectrun.sh   It runs projectrun.sh file every 2 minute, following is my code in this sh file   #!/bin/bash lsof -i :8080 | grep LISTEN || echo "Not listening" | curl "http://mysiteurl.com/serverlog/?s=cron" lsof -i :8080 | grep LISTEN || echo "Not listening" | tmux new-session -d -s bkapi3_session 'bkapi'   first line is executing properly as I am getting mails regulary but second command is not working, it works if I run this command directly from console like   lsof -i :8080 | grep LISTEN || echo "Not listening" | tmux new-session -d -s bkapi3_session 'bkapi'   Not sure what is the issue and how to resolve it


Why does “something catch my eye” but not “both my eyes”?

I am not a native English speaker, I usually hear “something caught my eye” but never “something caught (both) my eyes”. This seems pretty strange to me.  Cambridge Dictionaries Online provide these examples but without any explanation        (i) to get someone's attention:   A sudden movement caught my eye.        (ii) to get someone's attention, especially by looking at them:   I tried to catch the waiter's eye, so we could order.        (iii) to be attractive or different enough to be noticed by someone:   It was the unusual colour of his jacket that caught my eye.   Why is only one eye ‘caught”? Doesn't something catch our sight? We normally see with both eyes, not with one.


I would like to transform 5V 500mA (from USB power) into 12V with a few cheap components.  Is this possible with the help of some generic parts (and not with the help of some expensive transformer, etc.)?  Also, how many milliamps would this provide?


Why does a water jet bend in a static electric field?

The phenomenon is shown for example in  where a thin water jet is formed by letting water fall from a small hole punched under a plastic cup, and the jet is bent when a charged rod is moved close to it. Why does this happen? What I found: The people in the video claim it is due to the polar nature of water: the little dipoles align with the electric field, and if this is non-uniform it will cause a net force on the jet. This explanation is supported by , who also claim that it might also occur in non-polar liquids due to the induced dipole moment. In fact  report that the phenomenon also occurs in non-polar liquids under appropriate conditions. On the other hand  report (among other interesting things) that the effect still occurs in a uniform electric field, which seems to contradict the dipole explanation. They propose that it has to do with charged ions. However it's unclear (at least to me) that their setup actually produces a uniform field (or to what extent). For what it's worth, one can find a lot of things on Youtube, for instance  or .


Confused about virtual overloaded functions

I am confused about compiler errors regarding the code below:  class Base { public:   virtual ~Base () { }   virtual void func () { }   virtual void func (int) { }   virtual void another () { }   virtual void another (int) { } };  class Derived : public Base { public:   void func () { } };  int main () {   Derived d;   d.func();   d.func(0);   d.another();   d.another(0); }   Using gcc 4.6.3, the above code causes an error at d.func(0) saying that Dervied::func(int) is undefined.  When I also add a definition for func(int) to Derived, then it works. It also works (as in the case of "another") when I define neither func() nor func(int) in Derived.  Clearly there is some rule going on here regarding virtual overloaded functions, but this is the first time I've encountered it, and I don't quite understand it. Can somebody tell me what exactly is going on here?


I'm trying to read data using SqlDataReader. When using SQL Server 2014 I've added the code to my query:  . ORDER BY STATEMENT_ID ASC    OFFSET @beginRow ROWS    FETCH NEXT @offs ROWS ONLY   This works for me in SQL Server 2014 whereas in SQL Server 2008 r2 it doesn't. What is the equivalent to this operation in SQL Server 2008 R2? Is there any, or should I change my approach!?  Thanks in advance.


xrandr once configured, it resets after new reboot, keep restarting INVERTED

There is an HP notebook Pavilion DV6 4gb ram, 15 inch monitor single, HDMI and VGA connections, processor AMD A6. Successfully installed this Ubuntu 19 release. But, after a reset, it keep running monitor display 180 degrees rotated. Then , I use xrandr with NORMAL option, and it works only in my session:  xrandr --output LDVS --rotate normal   After a reboot, in a new session, the monitor appears INVERTED again. By the other hand, after adjusting monitor screen intensity with keypad buttons, after a reboot the screen appears with TOTAL light adjustment, again.  How can I permanently set my config options.?


Options are   n/2 cosx- 1sin(nx)/2sinx . cos(n+2)x n/2.sinx-1/2sin(nx) n/2.cosx - cos(n+2)x sinx +sin(nx)


Match nested brackets with JavaScript RegEx

I am trying to write a JavaScript RegEx which returns content(maybe including nested parentheses) which is between parentheses like the solution described in this  (implemented by Java RegEx)  String:  xxx @connect(({ app }) => (   {     ...app   } )) xxx   Result:  ({ app }) => (   {     ...app   } )   Is it possible to resolve it with JavaScript RegEx?


Converting MultiLinestring to Linestring with PostGIS


Epsilon-Delta Proof $ \lim\limits_{n\to\infty}\frac{n+\sin(n)}{n+1} = 1$

How To Construct a Epsilon-Delta proof $\displaystyle \lim\limits_{n\to\infty}\frac{n+\sin(n)}{n+1} = 1$ ?  The beginning:  Fix $\epsilon$ > 0. Is there an $N\in \mathbb{N},$ such that $$n\ge N \implies\left|\frac{n+\sin(n)}{n+1}-1 \right|<\epsilon?$$  $$\left|\frac{n+\sin(n)}{n+1}-1 \right|<\epsilon \iff$$  $$\left|\frac{\sin(n)-1}{n+1}\right|<\epsilon \iff$$ $$\ldots$$   I got that $n > \frac{2}{\epsilon}-1$, is that right?   N=(max or min ?) {0, $\lfloor\frac{2}{\epsilon}-1\rfloor$}  I hope that the task is understandable. Thank you for answering.


Mouse side-buttons and keyboard browser buttons are reversed

A local overstock store had a sale on a wireless mouse/keyboard set, so I got one. It is very similar to the (cheap Chinese) kind available on eBay. It works fine except that the two side buttons (XButton1/2) which normally map to Forward/Backward in Windows Explorer and browsers are backwards. The same is true for the browser-back and browser-forward buttons on the keyboard.  This mouse and keyboard has no drivers or manual; the box says “driverless” because Windows automatically detects it as a generic USB HID mouse, so I cannot use drivers or software to configure them.  Research has found this issue coming up very rarely and no solutions. There is  here which has the same problem, but only for Firefox, not in Windows Explorer like I’m experiencing.  As for the keyboard, I tried using the key remapping available in Windows, but that would affect all keyboards that are plugged in, including normal, correct ones.  I’ve emailed the company (I was a little bit surprised that they even had a website), but their email bounces as undeliverable. ◔_◔  I know there is a built-in option to swap the left and right mouse buttons, but what about the side buttons? Does anyone know of a device-specific way of remapping buttons and keys in Windows?  For the time being, I am using a AutoHotkey script as a (hopefully only temporary) work-around.


Can someone please explain the origin of complex numbers in physical values. For instance, denoting a plane wave with Euler's identity and also the complex relative permittivity?  Thank you.


substitute only words that have a newline

I'm trying to substitute a specific word that has a newline(mainly using sed), but while trying different things to do so, it seems to not have worked... Here the test input/file: this # target for substitution this is a test another test?  And here are the things i tried: sed 's/^this/test/' testfile  But this work on the other "this" word too (instead of just the one with the newline) sed 's/^this\n/test/' testfile  Here i added a \n but while this sometimes works with sed, it doesn't in this case. Finally, I also tried using word bondaries with \b, but that didn't work either: sed 's/\bthis\b\n/test/' testfile  Any way to do this? (specifically with sed if possible).


Asymptotic behavior of $x_{n+1}=x_n+\frac{1}{x_n}, \space\space\space x_0=1$

I have defined a sequence $x_n$ as follows: $$x_{n+1}=x_n+\frac{1}{x_n}, \space\space\space x_0=1$$ After convincing myself that there is no nice closed-form formula for $x_n$, I decided to try and find an asymptotic formula for $x_n$ (unfortunately, I have very little experience with asymptotic formulae). I noticed that the recurrence is equivalent to $$\Delta x_{n}=\frac{1}{x_n}$$ and so a solution can be approximated by solving the corresponding differential equation for $y(t)$: $$y'=\frac{1}{y}$$ This differential equation (with initial value $y(0)=1$) yielded $$y=\sqrt{2t+1}$$ which led me to believe that $$x_n\approx \sqrt{2t+1}$$ When I plotted $x_n$ and $y(n)$ side by side, it did indeed appear that they were very close to each other. However, this isn't enough for me... I would like to prove that $y(n)$ is a good approximation for $x_n$, either by proving that $$\lim_{n\to\infty}(x_n-\sqrt{2n+1})=0$$ ...or, even better, by finding a zero-approaching function $f$ satisfying $$x_n=\sqrt{2n+1}+O(f(x))$$ This is where I got stuck. How do can I prove (or disprove?) the statement in the first equality, and find $f$ satisfying the second?  NOTE: There may be a closed-form that I wasn't able to find. In fact, the similar sequence $$y_{n+1}=\frac{y_n}{2}-\frac{1}{2y_n}$$ has closed form formula $$y_n=\frac{1}{\tan(2^n\arctan(y_0^{-1}))}$$ ...but even if you do find a closed form, I would still like to know how to prove the above statements, since the techniques would be useful to know for future problems.


How can I return a Custom Object with a List of Parent Data from querying the Junction Object?

I am new to Apex trying to do some practice assignments and have gotten stuck on this junction object query.  Task: Edit the current getUser() method to do the following:   Return a custom object (that you define in the class) with the current getUser method's query data, and the list of teams the person belongs to (by querying the team assignments). Parent Object 1: User (Standard Object) Parent Object 2: Team (Custom Object) Junction Object: Team Assignments (Custom Object)     **Original Class & getUser Method** global class CTI {     global class CTIException extends Exception {}      global static User getUser() {          return [SELECT Id, Name, ProfileId, Profile.Name, UserRoleId, UserRole.Name, Username                  FROM User WHERE Id = :UserInfo.getUserId() ];     } }   I have tried adding subqueries into my main query, but the verbiage tripping me up is the custom object defined in the class to be returned.


I have the new updated version of Fallout Shelter... and as I went back onto the game to collect the production and stuff. I saw this weird guy with a detective-like coat in my Weight Room. I zoomed in and then he dissapeared. Glitch maybe?


What is ticket reconfirmation and why does it exist?

I have never personally had to reconfirm the ticket, but have read that in some case you can lose a place on a flight, even if you paid for it!  Where does the idea of ticket reconfirmation comes from? How to find out that you are required to reconfirm the ticket? Does it only applies to agencies of also to bookings made via website? Can an agent reconfirm your ticket already at the time of purchase?


The disjoint cliques problem for complete graphs.

There is complete graph $K_{n}$     Find formula for maksimal number of disjoint to each other $k$-cliques in $K_{n}$. Let denote it as $A(n,k)$   I did some research and i computed a formula: $B(n,k)=\lfloor \frac{{n\choose 2}}{{k\choose 2}}\rfloor$.  I thought that equality $A(n,k)=B(n,k)$ holds for every $n,k$, but i was wrong.  For example:   $A(4,3)=1=B(4,3)-1$ $A(5,3)=2=B(5,3)-1$ $A(6,3)=4=B(6,3)-1$ $A(6,4)=1=B(6,4)-1$   Is this true that $A(n,k)=B(n,k)-1$?  Regards


Is it true that an ideal is primary iff its radical is prime?

Is it true that an ideal $I$ in a commutative ring is primary iff $Rad(I)$ is prime?  If not, what are some nice counterexamples?


There is a lot of irritation and whining from newbies when their suggestions get downvoted because they don't understand that votes have a different meaning here.   This is unnecessary, and I'm absolutely sure is one of the contributing factors why some people turn away from Meta after first contact, and never return.  To fix this, when a user asks their first question here, it should be pointed out in big bold letters that voting follows different rules here than on the mother site.  Something like     Note that voting on Meta.stackoverflow.com works differently from the other Stack Exchange sites. Voting is used as an expression of agreement or disagreement on contributions here, rather than to point out a lack of quality or helpfulness. Do not be too concerned if you receive downvotes - it is possible that members of the community are simply  disagreeing with what your contribution is suggesting.


Bypass login screen after sleeping or hibernating

I don't have password set for a public computer.  Is there a way to auto unlock the computer after hibernating or sleeping so I don't have to press the user? This is what my login screen looks like:


CentOS 6.2 sendmail: how to control the ip number used when relaying mail to mx.google.com

The overall context for this is that I am sending mail from a web application on one machine through sendmail on another machine, to final destination being a pop account on mx.google.com.  The latter sendmail machine has 2 ip numbers because it doubles as a database server.  When I look at the headers after receiving the message, the ip number references is the wrong ip number.  The number is not random; it is the ip number for the database server (i.e. same physical machine).  Here is the symptom.  My Eudora email client reports this header:     Received from good.mydomain.com (bad.mydomain.com. [x.x.x.10]) by mx.google.com with ESMTPS id ...  The phrase 'good.mydomain.com' is correct and seems to originate from the confDOMAIN_NAME line in /etc/mail/sendmail.mc. The 'bad.mydomain.com' is the rdns for x.x.x.10.  I want that to be x.x.x.66 which has RDNS to good.mydomain.com already set up and working.  This uses public DNS, no special etc/hosts entries.  I have this line in /etc/mail/sendmail.mc which seems to be binding the receiving side of things to the desired .66 number:     DAEMON_OPTIONS(`Port=smtp,Addr=x.x.x.x.66, Name=MTA')dnl  I gather that my x.x.x.10 ip number is somehow "first" on the network card, and I do not really want to change that. I just want to make Sendmail stick to the .66 number for the relay to mx.google.com.   No worries about an open relay, the firewall is set and only accepts connections from my web server machine.  i do know that I have to run make after each change to the macros, and that I have to restart the sendmail service too.   Thank you for considering my question.


How can I always show my user's 'library' folder in macOS Sierra?

I’ve just upgraded to a much newer Mac after having been on an old MBP running Snow Leopard. There’s a lot to learn in the major jump from 10.6 to 10.12. One change is that my user’s Library folder is invisible.  I did Google this and see I can hold down the option key to make the Library folder visible when I need it to be, but is there a way to always make it visible so I don’t have to do this extra step every time?


How to convert physical Ubuntu operating system into a virtual machine?

A while ago I turned my PC into dual boot with Windows and Ubuntu. But my experience is, that I rarely boot into Ubuntu, so I wanted to make it available as virtual machine in Windows rather than as a second OS. Can you provide me some information which is the tool of my choice and how I can achieve this migration? I already have VMWare Player installed.


Shortest comprehensive sentence in English

What is the shortest comprehensive sentence in English?


How do I drag and drop an object from one grid to another in the same page using Selenium IDE. This is a web page, and it is designed in ExtJS. Please help me out doing this using the IDE.


I followed blender guru's tutorial and I can't see the textures on my wall

It shows up perfectly in the preview but doesn't show up on my wall. Here's my node setup:


I was just told that PS2 Keyboards aren't compatible with windows 10.  Is this true.  I was under the impression that they should work fine?


I'm developing a 2D game. In order to make it easier I have created an item editor and sprite editor. Sprite editor loads all PNGs in the selected directory, packs it into a byte array and saves into a file. Item editor imports that file and displays both sprites and items on two lists. For now everything works fine because there is one sprite per item, so it's very easy to morph a byte array into bitmap and put it into PictureBox. But now I'm going to make larger items, with up to 9 sprites (center and 8 around).   Below is the simple code which loads only one sprite per item:      private void LItemss_SelectedIndexChanged(object sender, EventArgs e)     {         if(this.LItemss.SelectedIndices.Count <= 0)             return;         int intselectedindex = LItemss.SelectedIndices[0];         if(intselectedindex >= 0 && this.itemsSID.ContainsKey(intselectedindex))         {             GameItem item = this.itemsSID[intselectedindex];             this.currentImage = item.Image;             this.TName.Text = item.Name;             this.TServerID.Text = item.ServerID.ToString();             this.TClientID.Text = item.ClientID.ToString();             this.CBlocking.Checked = item.Blocking;             this.CGround.Checked = item.Ground;             this.CTop.Checked = item.Top;              if(item.Image != null && item.Image != "" && this.sprites.ContainsKey(item.Image))             {                 MemoryStream memoryStream = new MemoryStream();                 byte[] data = this.sprites[item.Image];                 memoryStream.Write(data, 0, Convert.ToInt32(data.Length));                 Bitmap bm = new Bitmap(memoryStream, false);                 memoryStream.Dispose();                 this.PSprite.Image = bm;             }             else                 this.PSprite.Image = null;         }     }   Let's say for now byte[] data instead of mere byte array will be a 9 size array, from 0 to 8 of byte arrays, each one has different sprite around item. My question is how to join all these arrays of PNG into one single PictureBox?


A Linear Diophantine Equation is of the following form:                                                                                $Ax+By+C=0$, where $x_1 \leq x \leq x_2$ and $y_1 \leq y \leq y_2$.  If the value of $A,B,C,x_1,x_2,y_1,y_2$ are given and $x_1 \leq x_2$ and $y_1 \leq y_2$, then how many solutions can be found? How can I find out the total number of solutions according to the above condition.


Is there any way to write documents in Aurebesh characters?

The question says it all, basically. Is there any way to write in Aurebesh characters, the writing system for Galaxy Basic (Star Wars fictional language)? Does such font exist, or is there a specific package for this?


Sticky keys: how do I know a key is stuck?

I'm trying to get myself to use sticky keys (to prevent RSI), but I often find I've pressed Ctrl and then changed my mind, and I'm not sure if hitting e.g. q will insert a q or quit the program … is there a way to get an onscreen indicator for whether a key is "stuck"?  Alternatively, is there a way to get sirupy keys, ie. keys that stick when you hit them but then let go if there's no more keys within N seconds?


Why is the field inside a conducting shell zero when only external charges are present?

In many introductory books on electrostatics, you can find the statement that the field inside a conducting shell is zero if there are no charges within the shell. For example, if we place an uncharged conducting sphere in a uniform electric field we would get something like this:  For simplicity, I have drawn a uniform external field and a spherical shell, but the internal field is zero for any external field and any shape of the shell. We know the field in the metal of the conductor is zero, so the external field must induce a charge separation in the conductor and this charge separation produces a field that cancels out the external field within the metal of the shell (shaded blue in the diagram). However, there is no obvious reason why the field should also be canceled to zero in the interior of the shell. Although it is widely stated in introductions to electrostatics that the field is zero in the interior of the shell I cannot find proof of this. So the question is how we prove that field inside the shell is always zero whatever the external field and shape of the shell?


The difference between with or without intercept model in logistic regression

I like to understand the difference between with or without intercept model in logistic regression  Is there any difference between them except that with the intercept the coefficients regard the log(odds ratio) relative to the baseline group and without the intercept they regard the log(odds)? from what I have seen the coefficients are the same in both cases but the significance is not always the same and don't understand why is that.. in addition, in which cases will it be correct to use a model with no intercept?  This is my model: glm(NeverReturn ~ factor(Network) * TotalPrice , family = binomial) and I'm not sure about leave the intercept out or not because at the "real word" the total price cant be under 50 any way,but then the probability will be 1 not 0 so I'm confused.


QGIS - How to globe-rotate a raster around the Greenwich Meridian?

This is probably the easiest way to explain my problem:    I'm not sure how to say what this problem is - is it that the shapefiles and the raster are using different longitudinal origins? (probably obvious I have a fairly loose grasp of GIS)  Regardless, what operation would I use to globe-rotate the raster so that it was aligned with the shape files? To be clear, it seems like the two data sets agree on coordinates and projection (WGS 84), it's just that the shape files all put the americas on the left and for whatever reason the topo raster puts them (and part of europe/africa) on the right.  I'm using QGIS 2.16.3 on a mac, and I'm fairly capable at installing & compiling code if needed.


I have a problem left clicking the x,y, z axis

I can't get my objects... which at the moment is the cube to move along the x,y, z axis using my mouse. If I left click, all I seem to do is move the crosshairs.   I am using Blender 2.72.  The only way I can move along those axis' is if I click "G" for grab then which ever I would like either x,y, or z.  if I try to get the trackball to move... I cant do anything with it.  IS this a bug?  Ive been looking for answers on youtube in tutorals but, everyone just left clicks and moves along the choice axis... I feel like im lost until I can get this working.   HELP!


How to convert image to Bitmap after it's been cropped?

In my application I want cropped the image and then convert this to bitmap. For crop image I use this library :   I want when call onActivityResult convert this image to bitmap and for this I write below codes :   @Override protected void onActivityResult(int requestCode, int resultCode, Intent result) {     if (requestCode == Crop.REQUEST_PICK && resultCode == RESULT_OK) {         beginCrop(result.getData());     } else if (requestCode == Crop.REQUEST_CROP) {         handleCrop(resultCode, result);     } }  private void beginCrop(Uri source) {     Uri destination = Uri.fromFile(new File(getCacheDir(), "cropped"));     Crop.of(source, destination).asSquare().start(this); }  private void handleCrop(int resultCode, Intent result) {     if (resultCode == RESULT_OK) {          if (result != null) {             Bundle bundle = result.getExtras();             Bitmap bitmap = bundle.getParcelable("data");             //imageView.setImageBitmap(bitmap);             base64String = ImageConvertBase64.convert(bitmap);              //Edit base64 for site             base64StringForSite = "data:image/png;base64," + base64String;              //Upload image call api             UploadAvatarImageSendData sendData = new UploadAvatarImageSendData();             sendData.setBase64ImageData(base64StringForSite);              profileEdit_avatarProgressBar.setVisibility(View.VISIBLE);              Call<SendCommentResponse> call = api.getUserUploadAvatar(token, "2", sendData);              call.enqueue(new Callback<SendCommentResponse>() {                 @Override                 public void onResponse(Call<SendCommentResponse> call, Response<SendCommentResponse> response) {                     if (response.body().getData() != null) {                         profileEdit_avatarProgressBar.setVisibility(View.GONE);                         getUpdateAvatarImage();                         Toasty.success(context, response.body().getStatusMessage(), Toast.LENGTH_SHORT, true).show();                     } else {                         Toasty.info(context, context.getResources().getString(R.string.retryAgainAgain), Toast.LENGTH_SHORT, true).show();                     }                 }                  @Override                 public void onFailure(Call<SendCommentResponse> call, Throwable t) {                     profileEdit_avatarProgressBar.setVisibility(View.GONE);                     Log.e("uploadImage", "Err : " + t.getMessage());                 }             });         }      } else if (resultCode == Crop.RESULT_ERROR) {         Toast.makeText(this, Crop.getError(result).getMessage(), Toast.LENGTH_SHORT).show();     } }   And this is my method for convert bitmap to base64 :  public static String convert(Bitmap bitmap) {     ByteArrayOutputStream outputStream = new ByteArrayOutputStream();     bitmap.compress(Bitmap.CompressFormat.PNG, 100, outputStream);      return Base64.encodeToString(outputStream.toByteArray(), Base64.DEFAULT); }   But when running application show me below error message in LogCat :      Caused by: java.lang.NullPointerException: Attempt to invoke virtual   method 'boolean   android.graphics.Bitmap.compress(android.graphics.Bitmap$CompressFormat,   int, java.io.OutputStream)' on a null object reference       at com.example.app.Utils.Componenets.ImageConvertBase64.convert(ImageConvertBase64.java:25)       at com.example.app.Activities.ProfileEditActivity.handleCrop(ProfileEditActivity.java:326)       at com.example.appt.Activities.ProfileEditActivity.onActivityResult(ProfileEditActivity.java:192)       at android.app.Activity.dispatchActivityResult(Activity.java:6222)       at android.app.ActivityThread.deliverResults(ActivityThread.java:3627)   How can I fix it? please help me.   I am amateur and really need your help. Thanks


"The introduction of numbers as coordinates is an act of violence." - Hermann Weyl.  A lot of people like this quote, apparently. They also seem to associate it to the manifold context in the obvious way: they interpret the quote as saying that focusing on coordinate charts is insightless, or at least dry. Although I aggree with this, I feel like the way the quote is phrased is not inclined to that interpretation. If not by the fact that Weyl is connected to geometry (and that this quote is in Bredon), I would interpret this phrase as saying that "Representing numbers by a given basis is insightless and can lead to mistakes, like thinking that divisibility is dependent of the number basis you are using." I think the words numbers and coordinates are strangely placed.  Therefore, my question is: What was the precise context on which this quote arose and, if possible, can we pinpoint exactly what did Weyl mean?


Import XML intermittently doesnt work but sometimes does on Google Sheets (currencies/shares etc)..Image attached

I have a spreadsheet monitoring my Stocks and cryptos etc on Google Sheets. I have a formula which 50% works and auto updates and 50% doesnt work and comes up with 'N/A : Could not fetch URL'...when multiple others are working and that one also sometimes works. The formula is; =SUBSTITUTE(IMPORTXML("https://coinmarketcap.com/currencies/"&A4,"//div[@class='priceValue___11gHJ']"), "$", )*GOOGLEFINANCE("CURRENCY:USDGBP") A4 is the title box next to it so its pulling into the box in this case 'Dogecoin'. Can someone guide me with this error please?


Problem logging into SE app on IOS using Google

I've been using the IOS StackExchange app for a couple of years now, without a problem. Today I got a new iPhone Xs, downloaded the app, and tried to log in using Google, the way I always do. Each time I tried, I got the error message shown below, so I'm doing what it says. All of my other Google logins on the same phone have worked fine, and my StackExchange/Google login works fine on my desktop. Is there some strange interaction among StackExchange, IOS, and Google that I'm not understanding?  I looked at , with an answer suggesting unblocking cookies in Safari. I checked, and they are not blocked. I'm at a loss.


Date issue on jsonresult with model data

Iam trying to pass model of data from mvc controller to page from a ajax post call. I get data successfullt. But the dates contain in the model are converted like "/Date(1455647400000)/". How can i convert it into "wed feb 03 2013". please help me.   My code:  public JsonResult getHeaderData(string code) {     if (code != "")     {         var userData = (IdentityModel)(Session["DATA"]);         decimal doc_no = Convert.ToDecimal(code);         var data = _transactionHeaderManager.GetHeaderDataByDocNo(userData.CompanyCode, userData.BranchCode, "ASTS", doc_no);         var resultData = Mapper.Map<AssetTransactionHeaderModel, AssetTransactionHeaderViewModel>(data);         return Json(resultData, JsonRequestBehavior.AllowGet);      }     else     {         return null;     } }


Will the Lee 100mm filter holder work with a Samyang 14mm autofocus lens?

Will this  work with a ? Which adapter ring would I need to buy for it? Thank you, and apologies if any of this comes across as confusing - I'm very new to filters and what-not. I posted on another account yesterday and received some very useful tips, but had to remove it as it was a duplicate account causing me login issues. Thanks, guys!


I need to find an Integrated Circuit Encoder that converts inputs (push botton) to its corresponding binary code, as in the table. Can anyone tell me any? I found something similar that was the IC 74147, but the same is obsolete.


Blender keeps wanting to use my CPU instead of my assigned gpu

So just to start off, I have checked that all the hardware I have is compatible with one another, and I have no problem running video games which use up my gpu and cpu in unison. However, when it comes to blender, even tho I set my device to GPU COMPUTE and i am on feature set: supported (ive tried experimental), whenever I render, I can see that my cpu sky rockets to 100% load! and zero gpu. I dont understand why this is happening. I have updated my drivers for my gpu and re-installed blender. I really dont know what to do! It keeps crashing after about 30 or so minutes but it isnt a continues crash. Sometimes, it renders completely...  Any help would be GREATLY appreciated! Yokubo~


In the fall of 2011 I made the leap from extract/partial kits to all-grain kits. I'm enjoying AG, but my SG is continuously below the expected. I have brewed 5 AG kits and 4 have had a low SG.   My assumption is my sugar extraction during mashing (or sparging) isn't optimal. I heat my mash water to 165 and mash the grains for 60 minutes. Mashing levels out at 152. For Lautering I heat the water to 175-180. After I drain the initial mash I add the lautering water and let that soak for 10 minutes. the temperature levels out around 170-172. Then I drain into the kettle and being the boil.  I aim for a gentle boil just enough to break the surface tension. I boil for 60 minutes, chill, rack, take a reading and pitch yeast.  Here are some of the numbers  type            expected     actual  kit st paul porter  1.052        1.039   http://www.northernbrewer.com/shop/st-paul-porter-all-grain-kit.html belgium strong  1.067        1.055   http://www.midwestsupplies.com/superior-strong-ale-all-grain-kit.html troegs hop back 1.063        1.049   http://www.byo.com/stories/recipeindex/article/recipes/90-american-amber-a-pale-ale/2196-troeegs-hopback-amber-ale-clone   The fuorth was the Phat Tyre kit from Northern Brewer. Can't remember the SG though. It was low. They taste great, but the numbers weren't "right". What can I adjust so the numbers are more inline with the recipe?   Update Thank you for all the feedback. There are a number of factors for me to review and adjust. Given my current setup I will follow @mdma advice and recirculate the wort once and extend lautering to 30 minutes.  It will be a week or two before I can attempt this, so it will be awhile before I report back again.  Update #2 I now have some awesome local contacts who are helping me out with technique and trouble shooting. Another (major) issue I could be experiencing is draining the wort way too fast. According to my friend. The drain should be low and slow after cycling a gallon or 2 of wort. sparging should take ~2 hours. for each gallon drained plato/brix should drop 3 points and go no lower than 3-5 points at the end.  the second recommendation is to heat up 3-5 gallons of water to 180 and poor it in prior to/while sparging.  my first attempt using this technique proved successful with the gravity being a lot closer to the anticipated OG. I had some temp issues with the batch, but I was so focused on sparging that I ignored the temp. My guess is I would have been right on if my temp didn't fall so low.  Update #3 I had the chance to brew with my mentor this weekend and he pointed out 2 glaring problems with my mashing technique.   Starting mash temp is too low. I was heating my water to 10-12 degrees above target temp. He recommends 17 degrees. between grain absorption & the tun itself most of the heat dissipates within the first few minutes. This does go against what I originally said. That I was hitting my temp marks. Looking back I was hasty with my readings. I should not dump my sparge water (or lauter?) into the tun while draining the wort. The idea is to compact the liquid into the bottom of the tun thus compacting the sugars. I am stirring up the mash when I dump all sparge water in. We kept our sparge water 1-2 inches above the grain bed and our final results we excellent.   A 3rd recommendation he made was to lower the pH of the water. tap water is ~7 and the ideal mash pH is 5.2. He added a solvent, which I cannot remember the name of, which did this for us. I'll be picking up some of that this weekend.  Thanks to all who helped me out with this problem.


Limit of quotients with square roots: $\lim_{x\to2} \frac{\sqrt{6-x}-2}{\sqrt{3-x}-1}$

You can't use L'Hospital's rule :S  $$\lim_{x\to2} {\sqrt{6-x}-2\over\sqrt{3-x}-1}$$  I've tried to multiply by conjugates but ended up with a so complex equation, please help, anyone? :S


Please let us flag comments we've upvoted in the Android app

On the Android app, could we have the ability to flag comments we've previously upvoted? This is a fairly regular need for me, and I ran into it again earlier: I flag comments as obsolete when they are, and fairly often, one of them will be a comment I've upvoted.  For an example of a typical case: a comment suggests a great improvement to a question, I upvote it, the author performs that improvement, the comment is now obsolete and (on my PC) I flag it as obsolete. The comments get cleaned up and the question moves on.  There's a request that's been around since 2011 for the site itself: . It's implemented by SOUP (as described ), but the Android app doesn't have a SOUP available to add this functionality to the app for me.


Selecting all columns from row with specific max value

Imagine that I have the following table:     ItemCode WhsCode MinStock MaxStock AvgPrice     123 01 1 4 600   123 02 0 1 200   512 01 0 2 100   489 01 0 6 50   489 02 2 7 72   489 03 5 10 80   489 04 1 4 65   258 01 2 5 45     I want to select the row with MAX(AvgPrice) for each item, only from warehouses 01 and 02 (WhsCode). So the result that I want should look like:     ItemCode WhsCode MinStock MaxStock AvgPrice     123 01 1 4 600   512 01 0 2 100   489 02 2 7 72   258 01 2 5 45     What I tried, in my original code, was: SELECT T0."ItemCode", T3."MinStock", T3."MaxStock", T3."AvgPrice" FROM OITM T0 LEFT JOIN (SELECT              MAX(AvgPrice) AS AvgPrice,             ItemCode,             MinStock,             MaxStock  FROM OITW  WHERE WhsCode = '01' OR WhsCode = '02'  GROUP BY ItemCode,MinStock,MaxStock) T3  ON T0."ItemCode" = T3."ItemCode"  But, since I'm also grouping by MinStock and MaxStock, of course I'll have repeated values for each item, because MinStock and MaxStock are almost never the same for each WhsCode. So what I want to select is ItemCode, MinStock and MaxStock ONLY for the row with the MAX(AvgPrice). Dialect used is SQL Server 2019. I'm very new to SQL and couldn't find the answer here in an existing post.


I have a oneplus 2 and I was wondering about installing Ubuntu OS on it ... Is it recommended or not ?  And how can I do it if yes ? Thanks in advance


How to link a pdf file to a specific feature with QGIS?

I'm trying to link a pdf to a parcel (see image: ) where you click on one parcel and a specific pdf comes up and if you click on another then a different pdf comes up.   I've got it so far that if you click on a parcel it shows a pdf but the problem is that is shows the same pdf for every parcel!  Is there anyway I can assign it to just one parcel by lets say the objectid?  I'm having trouble setting the action so that it opens each parcel.


Rendering through blender looks fine, but not through SheepIt

I'm using SheepIt! to render a 501-frame-long 1280x720 scene I'm working on. Right now I'm the only one rendering and, and I noticed something weird. Rendering through SheepIt! produces a weird purple and pink image...  Rendering that exact frame (on the exact same file) produces this;   which is exactly what i need. Anyone know whats going on?