I am working on automation, while automating a form with number of drop-down's.  The problem with me is, when run the code in maximize mode of window it gives me an Error:     org.openqa.selenium.NoSuchElementException: Cannot locate element with   text: Computers      Build info: version: '2.44.0', revision: '76d78cf', time: '2014-10-23 20:03:00'   System info: host: 'Rajesh-PC', ip: '192.168.0.120', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_31'   Driver info: driver.version: unknown    It touches the drop-down but the value is not being clicked.   But when I run same code in minimized window it execute all code successfully without any error, please go-through code of one drop-drown.    driver.findElement(By.name("industrySector-sector")).click(); Thread.sleep(1000*4);  new Select(driver.findElement(By.name("industrySectorsector"))). selectByVisibleText("Computer Software"); driver.findElement(By.cssSelector("select[name=\"industrySector-sector\"] > option[value=\"Computer Software\"]")).click();   HTML code:    <div id="industrySectorFilter" class="custom-select select-width" name="select-type"> <select class="" name="industrySector-sector">     <option value="0">Industry Sector * </option>     <option data-type="43" data-id="1" value="Accounting - Finance">Accounting - Finance</option>     <option data-type="43" data-id="2" value="Advertising">Advertising</option>     <option data-type="43" data-id="3" value="Agriculture">Agriculture</option>     <option data-type="43" data-id="4" value="Airline - Aviation">Airline - Aviation</option>     <option data-type="43" data-id="5" value="Appliance">Appliance</option>     <option data-type="43" data-id="7" value="Architecture - Building">Architecture - Building</option>     <option data-type="43" data-id="8" value="Art - Photography - Journalism">Art - Photography - Journalism</option> </select> </div>


Bibliography module url search as anonymous user

I have a problem with the  module and its filter/search functionality.  Via URL it is possible to search for specific keywords:  /biblio?f[search]=Smith%2C%20S.   would search the publications for Smith, S.  If I am logged into D7 as an admin, this works perfectly. But if I change to another user or log our completely, this is not working anymore and shows me:     No items found Modify or remove your filters and try again.   I tried to change some permissions, even gave user all the permissions an admin has (just for testing). And it works just, if I enable the ultimate permission:  Bypass content access control.   So obviously it is a permission issue. Any ideas, how to solve this issue?


What happened with Community♦'s network profile

(used to show two posts from MSE)   (there used to be a list of the accounts)   (it was there) seems to be fixed


Is it necessary to include icons on an iOS app menu?

I'm in the process of designing an iOS app menu, and the online version of this menu does not contain icons. After doing some R&D i've noticed that many iOS app menus do contain icons. From a UX perspective is it necessary to include them? I find the UI to appear a lot less cluttered without them


Hat dialog won't open when clicking a hat in top while already viewing my profile page

Clicking a hat in the top bar achieved hats list redirects to the profile page, opening the hats dialog and choose the hat, ready to be confirmed. Superb!  While I was still checking on my existing hats I got a new hat. In a reflex I clicked the hat in the top bar notification but... nothing happened. Well, the URL changed to http://meta.stackoverflow.com/users/152859/sha-wiz-dow-ard#winter-bash-[id] but since it didn't trigger page reload the dialog did not open and I had to do that manually. (the horror!)  Can this please be fixed?


Does there exist a formula for product of the primitive $ n $th roots of unity.

I know there is a formula for the sum of the primitive $ n $th roots of unity which is the Mobius function of $ n $. See:   I am curious about the existence of a formula for the product of the primitive $ n $th roots of unity.


I just try to install nvidia-410 but after I added the ppa with  sudo add-apt-repository ppa:graphics-drivers/ppa and then apt-update it just doesn't find the driver. I tried to remove the files from the sources.list.d/ directory and add them into the base sources.list but that doesn't work, too.   Any ideas?


Why does query error with empty result set in SQL Server 2012?

When running the following queries in MS SQL Server 2012 the second query fails but not the first. Also, when run without the where clauses both queries will fail. I am at a loss why either would fail since both should have empty result sets. Any help/insight is appreciated.  create table #temp (id     int primary key)  create table #temp2 (id     int)  select 1/0 from #temp where id = 1  select 1/0 from #temp2 where id = 1


How do I delete all these menus? I can't see my model.


How do you calculate a large power modulo a small number?

How do I calculate $12345^{12345} \operatorname{mod} 17$? I cant do it on a calculator? How would I show this systematically?


How strict is Lufthansa about pet carrier dimensions?

The Lufthansa web site  that in-cabin pets must weigh less than 8 kg (including the carrier) and the maximum dimensions of the pet's carrier are 55 cm x 40 cm x 20 cm (21.7 inches x 15.75 inches x 8 inches).    How strict are they about enforcing this limit, for soft-sided (squishable) carriers?  [cross-posted:  ]


How to handle javascript object-oriented prototype

I am making tools with js API named vLine, but it is basic quesion of javascript so I post here.  I want to attache chat system on sample code. What I have adde tis between ///chat function  but   this.prototype.onMessage_    shows error like  Uncaught TypeError: Cannot set property 'onMessage_' of undefined    I have made a few javascript programings though,I am not good at this. So I think I didnt understand ,something very basic javascript object oriented.  please help me.  <script> var vlineClient = (function(){   if('{{vlineData.serviceId}}' == 'YOUR_SERVICE_ID' || '{{vlineData.serviceId}}' == 'YOUR_SERVICE_ID'){     alert('Please make sure you have created a vLine service and that you have properly set the $serviceID and $apiSecret variables in classes/Vline.php file.');           }       var client, vlinesession,           authToken = '{{ vlineData.authToken }}',           serviceId = '{{ vlineData.serviceId }}',           profile = {"displayName": '{{ vlineData.displayName }}', "id": '{{ vlineData.id }}'};      // Create vLine client       window.vlineClient = this.client_ = vline.Client.create({"serviceId": serviceId, "ui": true});     // Add login event handler   this.client_.on('login', onLogin);     this.client_.login(serviceId, profile, authToken).done(this.init_,this);     // Do login     **/////chat function**      this.prototype.onMessage_ = function(event) {         var msg = event.message,         sender = msg.getSender();          console.log('get message');         this.showAlert(sender.getDisplayName(),                      sender.getThumbnailUrl(),                      msg.getBody());     };        this.client_.on('recv:im', this.onMessage_, this);    **/////chat function**              function onLogin(event) {     vlinesession = event.target;     // Find and init call buttons and init them     $(".callbutton").each(function(index, element) {        initCallButton($(this));      });   }    // add event handlers for call button   function initCallButton(button) {     var userId = button.attr('data-userid');      // fetch person object associated with username     vlinesession.getPerson(userId).done(function(person) {       // update button state with presence       function onPresenceChange() {         if(person.getPresenceState() == 'online'){             button.removeClass().addClass('active');         }else{             button.removeClass().addClass('disabled');         }         button.attr('data-presence', person.getPresenceState());       }        // set current presence       onPresenceChange();        // handle presence changes       person.on('change:presenceState', onPresenceChange);          // start a call when button is clicked       button.click(function() {               if (person.getId() == vlinesession.getLocalPersonId()) {             alert('You cannot call yourself. Login as another user in an incognito window');             return;               }           if(button.hasClass('active'))                             **/////chat function**                             person.postMessage("Hello there");                             console.log("send message");                              **////chat function**             person.startMedia();       });     });    }    return client; })();      $(window).unload(function() {   vlineClient.logout(); });


I am trying to make an options window for my WPF application. The options window should always be in the foreground, flash when the user clicks into the min window and can't be unfocused. Any suggestions for this?


How do you set a default value for a MySQL Datetime column?  In SQL Server it's getdate(). What is the equivalant for MySQL? I'm using MySQL 5.x if that is a factor.


How to determine if string contains specific substring ignoring the case sensitive

I want to check whether string below contains top/ TOP/toP/ Top/TOp/ Top in c#. My code is like  string str = null;         str = "CSharp Top11111 10 BOOKS";         if (str.Contains("top") == true)         {             Console.WriteLine("The string Contains() 'TOP' ");         }         else         {             Console.WriteLine("The String does not Contains() 'TOP'");         }   But it return true only when my string contain 'top'. How can return true for all other scenarios too? I know this may be simple, but I searched a Lot didn't find any solutions


Locale Field on User Object in Salesforce

I Have Created a New Custom Formula Field called Locale in Case Object,I want to Extract all Values which is available on User object(Locale Field Value) to case Locale Field, How ? Can anyone Explain to this Question.


Given any topological space $(X, T)$, can we induce a metric $d$ on $X$, such that the set of all open sets in the metric space $(X, d)$ is equal to the set $T$? Just trying to grab the intuition behind topological spaces.


If $x+{1\over x} = r $ then what is $x^3+{1\over x^3}$?


I want to do research but I'm too old for a PHD

I really love research. I started a research project in graduate school for my M.A. in English. My research topic is a very viable and interesting topic for a dissertation. I'll be 60 on my next birthday and I know that many Ph.D programs are traditionally geared toward younger students.I was wondering are there any programs that I can continue this research in without facing the issues of ageism in academia?


we gets (sinx)'=cosx from lim x→0 sin(x)/x=1  Geometric proof of it is based on the fact that the area of sector of unit circle with central angle x is x/2  However, when we calculate the area of unit circle, we use the integral of trigonometrical function which derive from (sinx)'=cosx. That is an circulation logic!  Also, area formula of polar coordination also derives from area of sector, so we can't use it to proof lim x→0 sin(x)/x=1  I tried many other methods, but I can't find any process.  I want to know rigorous proof of lim x→0 sin(x)/x=1 not using the differential and integral of trigonometrical function.  Thank you.


How to remove facebook news add from my browser

Hi i'm getting this advert while surfing the internet. It's very iritating please help me  http://facebook.com-important-finance-news.ninja/?z9ps5pq2l3


Is a comma required after the word "then" and "now"?

Does the word "then" always take a comma after it? I have two sentences:      "Then, go ahead and do it."      "I'm waiting for the package to arrive at my house, and then, I'll go to the store."   Do those sentences require a comma after "then"? What about for the word "now"?      "Now, it's my turn."   I think that a comma isn't required after "then" but is always required after "now." Am I wrong?


Help Identifying an Alternative History Novel

I read a novel when I was 12 or 13 (late 80's, early 90's) about two timelines combining on Earth.  It was a full length novel for adults that I swiped from my mom (she doesn't remember it at all.)  I've been trying to figure out what the title is for some time but my google-fu is unable to find the right search terms.    The book was published in the 80's or perhaps early 90's.  The story: It was set on Earth and featured two timelines running concurrently (in the 80's?)  Timeline 1:  The nuclear missile crisis had gone badly and a low level nuclear war had more or less destroyed the US, but small towns still survived but are slowly fading away.  Much of the story was about the scarcity of goods, and the protagonist in the main thread of the book started the story by finding a 6 pack of Coke buried in a ruined house.  Throughout the story people were finding things that had grown scarce (deer, bullets, human beings.)  One strange scene I recall involved mutant/radioactive sweet potatoes that had driven a man insane.  Eventually people in this timeline began having dreams of their lives in Timeline 2.  Some of the people were not having dreams, and it was eventually discovered that they had died in Timeline 2.    Timeline 2:  There is panic in a world recognizable as our 1980's as nuclear war draws near.  Since more and stronger missiles have been developed, the end of humanity is at hand.  Things start disappearing from that world as the war begins.  Timeline 2 was mostly seen as vignettes of panicked people running around.  Combination of Timelines: In a weird, incongruous, almost surely poorly written scene, Gaia (yes, Earth itself) is seen to be combining a dying timeline with a doomed timeline in order to save humanity.  At the end of the novel, kids from Timeline 2 are transported into Timeline 1 in order to repopulate.  The new kids drink all the Coke, in case you were wondering...  Any help finding the title would be welcome.  I recall enjoying the book a lot when I was a kid, but I suspect my mom traded it in at our local used book store because at some point it just disappeared.


Prevent a closed source chosen process from swapping on Windows

When I run VirtualBox If I don't use VirtualBox for some time and then I come back to using it the virtual machine runs very slowly, obliviously all subsequent operation go enough fast.  How I can avoid the memory manager to put the VirtualBox's process in the swap when the application is not used ? I want that application to respond quickly even after long time of inactivity.  NOTE: That question is not the same of:  Preventing a heavy process from sinking in the swap file Prevent an arbitrary process to use swap Prevent process from swapping (Windows)  because I don't have access to the source code of that application.


Using Shred to remove files on SSD - will this affect the lifespan of the disk?

I always remove files from my machine using sudo rm -rf file, and today I found that shred does a better job in terms of preventing files from being recovered later. My question is: I have an SSD only in my machine, and I'd like to know if removing files using shred instead of rm will decrease the lifespan of my SSD a lot, or since it's just a file it does not matter that much. Disclaimer:  I know that flash disks are not bullet-proof when using shred, I read in many places that it's impossible to guarantee 100% that the files will not be recoverable, but I'm not hiding files from gov etc, just want to delete them for good in case I sell my computer in the future.  I keep shred's default 3 overwrite passes.


In a metric space, is the dilation of a closed set closed?

Let $(X,d)$ be a metric space and for $S \subseteq X$, $\Gamma \ge 0$, define the $\Gamma$-dilation of $S$ to be   $$S + \Gamma := \{x \in X : \exists s \in S \text{ such that } d(x,s) \le \Gamma\}.$$  If $S$ is compact then it's easy to see that $S + \Gamma$ is closed because, by the extreme value theorem, for any $x \notin S+\Gamma$ the function $S \ni s \mapsto d(x,s)$ has an absolute minimum $\Gamma_0 > \Gamma$.      My question is, is $S + \Gamma$ still closed if $S$ is only known to be closed, or is there a counterexample?   Any hints or solutions are greatly appreciated!


Show map is norm-preserving and determine Eigenvalues

Can someone of you give me a solution for this?     Let $N\in \mathbb N$.   a) We define the map $\mathfrak F:(\mathbb C^N, ||\cdot||_2)\to(\mathbb C^N, ||\cdot||_2)$ by $$(\mathfrak F(x))_k := \frac{1}{\sqrt N}\sum_{j=1}^Nx_je^{2\pi i\frac{(j-1)(k-1)}{N}} \quad \forall k\in \{1,...,N\}$$    Show that $\mathfrak F$ is norm-preserving, i.e. $$||(\mathfrak F(x))_k||_2 = ||x||_2 \quad \forall k\in \{1,...,N\}$$    b) For $n,m \in \{1,2,...,N\}$ we define the entries of $M\in \mathbb C^{N\times N}$ by $$M_{nm} :=  \begin{cases} \frac{N+1}{2}, \quad \quad n=m \\ \frac{1}{e^{2\pi i \frac{m-n}{N}}-1}, \,\,n \neq m \end{cases}$$   Show that $1, 2, 3, ..., N$ are the Eigenvalues of M.


Objects invisible in any view except Solid

In any blender scene, objects look transparent or invisible in all views except solid mode. Is there a setting i should check? This has happened ever since i had blender and i couldn't fix it    The pics are of just a brand new scene, nothing touched. Is this normal?


I apologize if this is a duplicate - I searched the forums as well other sites for answers but without success...  I installed Ubuntu 14.04 on a Win 10 VAIO laptop, but I can't access the main partition, with the following error message:  Error mounting /dev/sda5 at /media/yoni/CC1C14161C13FA62: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda5" "/media/yoni/CC1C14161C13FA62"' exited with non-zero exit status 14: Windows is hibernated, refused to mount. Failed to mount '/dev/sda5': Operation not permitted The NTFS partition is in an unsafe state. Please resume and shutdown Windows fully (no hibernation or fast restarting), or mount the volume read-only with the 'ro' mount option.   I already did the following:   Disabled both fast boot and secure boot and tried shutting down and restarting multiple times. Tried shutting down using run with shutdown /s /f /t 0. In cmd tried powercfg /h off  but ran into an error, I'm not sure why but maybe it only works on Win 8. Ran ntfsfix /dev/sda5 in terminal, but got the following error:  Mounting volume... Windows is hibernated, refused to mount. FAILED Attempting to correct errors... Processing $MFT and $MFTMirr... Reading $MFT... OK Reading $MFTMirr... OK Comparing $MFTMirr to $MFT... OK Processing of $MFT and $MFTMirr completed successfully. Setting required flags on partition... OK Going to empty the journal ($LogFile)... OK Windows is hibernated, refused to mount. Remount failed: Operation not permitted    I also have another common problem that might be related: Windows boot loader overrides Ubuntu boot loader. I'm currently working around it by typing   bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi   in cmd before shutting down from windows whenever I want to load Ubuntu. I'll also try , but for the moment I'm only mentioning this in case it can somehow be related.  Thanks a lot for any help!


I am a Minecraft pocket edition player. Can I use redstone for things?


phrase whereby the swapping of words has an entirely new meaning

the bottom has fallen from my world the world has fallen from my bottom  These are examples of ?


Importing 3D DXF file into QGIS with z information as attribute value?

I have a dxf file of 3d contours. after import it does have only  layer,x,y attribute and doesn't have Z attribute.  How can I provide Z attribute to create a TIN file?


Can't decide whether to use focus or focuses in this sentence

I feel like I should use "focuses" as using "focus" sounds weird in the following sentence.  Risks are not identified prospectively, i.e. this is a case of “Fighting the Last Battle” syndrome, whereby management focus most on risks that have occurred recently.   Are they both acceptable? I'm not big on the rules of the English language, I tend to just go by what sounds right in my head and here "focus" seems out of place.   I appreciate any feedback.


I am trying to run the bubble picker code(android) in github which is already available,but still getting these exceptions.Tried multiple suggestions but still getting same things,Please help me in resolving these exceptions. Tried these things:Invalidate & Restart,Changing properties file,Clean and rebuild  XML Code:  <com.igalata.bubblepicker.rendering.BubblePicker     android:id="@+id/picker"     android:layout_width="match_parent"     android:layout_height="match_parent"     app:backgroundColor="@android:color/white" />   Java Code:  public class Screen1Animation extends AppCompatActivity {  BubblePicker picker; protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.screen1animation);     //picker = (BubblePicker)findViewById(R.id.picker);     final String[] titles = getResources().getStringArray(R.array.titles);     final TypedArray colors = getResources().obtainTypedArray(R.array.colors);     final TypedArray images = getResources().obtainTypedArray(R.array.images);      try {         picker.setAdapter(new BubblePickerAdapter() {              @Override             public int getTotalCount() {                 return titles.length;             }              @NotNull             @Override             public PickerItem getItem(int position) {                 PickerItem item = new PickerItem();                item.setTitle(titles[position]);                 item.setGradient(new BubbleGradient(colors.getColor((position * 2) % 8, 0),                         colors.getColor((position * 2) % 8 + 1, 0), BubbleGradient.HORIZONTAL));                 //item.setTypeface(mediumTypeface);                 item.setTextColor(ContextCompat.getColor(Screen1Animation.this, android.R.color.white));                 item.setBackgroundImage(ContextCompat.getDrawable(Screen1Animation.this, images.getResourceId(position, 0)));                 return item;             }         });   Exceptions:  FATAL EXCEPTION: main Process: com.example.sampleapp, PID: 24972 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.sampleapp/com.example.sampleapp.Screen1Animation}: android.content.res.Resources$NotFoundException: Resource ID #0x0     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3194)     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3302)     at android.app.ActivityThread.-wrap12(Unknown Source:0)     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1891)     at android.os.Handler.dispatchMessage(Handler.java:108)     at android.os.Looper.loop(Looper.java:166)     at android.app.ActivityThread.main(ActivityThread.java:7425)     at java.lang.reflect.Method.invoke(Native Method)     at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245)     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921)  Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x0     at android.content.res.ResourcesImpl.getValueForDensity(ResourcesImpl.java:288)     at android.content.res.Resources.getDrawableForDensity(Resources.java:1026)     at android.content.res.Resources.getDrawable(Resources.java:969)     at android.content.Context.getDrawable(Context.java:609)     at android.support.v4.content.ContextCompat.getDrawable(ContextCompat.java:463)     at com.example.sampleapp.Screen1Animation$1.getItem(Screen1Animation.java:45)     at com.igalata.bubblepicker.rendering.BubblePicker.setAdapter(BubblePicker.kt:37)     at com.example.sampleapp.Screen1Animation.onCreate(Screen1Animation.java:29)     at android.app.Activity.performCreate(Activity.java:7383)     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1218)     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3147)


How to create variable with for loop in php

I have the following php code where by a for loop create different variables. Basically what I need is, after run the code below, it should create different variables such as $o1, $o2, $o3 etc. But it is not working based on the way I implemented. Does anyone can help me how to solve this?  for($i = 0; $i <= $totalOa; $i++){       '$o'.$i = $pieces[$i];   }


Im using fancyhdr to customise an article  \usepackage{fancyhdr} \usepackage{lastpage}  \pagestyle{fancy}   \begin{document}  \rhead{Overleaf Proof of Concept} \cfoot{} \rfoot{Seite \thepage/\pageref{LastPage}} % no line \renewcommand{\headrulewidth}{0pt}  \maketitle  \section{Lorem ipsum}   I get the wanted result on all the pages but the first.  On the first I have the page number in the middle of the footer. On all the others I have on the right the text "Seite" followed by the current page and the total.  How can I get rid of the page number on the first page? Or how can apply the footer style (but not the header) on the first page?


Volume of Revolution. Am I doing it right?

How do I find the volume when revolving the region bounded by $y=1-\frac{1}{2}x$, $y=0$, and $x=0$ about the line $ x=-2$?  Would it be $x=2-2y$ so radius $r(y) = 2-2y -(-2) $ => $r(y)= 4-2y$   $π\int (4-2y)^2 dy$ ?  What would be my limits of integration? Would it be from 0 to 2?? yes?


Is there an underlying reason why some forces are inversely proportional to the square of the distance?

This is the first time I'm studying those subjects (I'm still in high school) and my teacher couldn't give me an answer. I'm referring specially to Newton's law of gravitation and Coulomb's law of electrostatics.


To show $Q(\sqrt{p}, \sqrt{q})= Q(\sqrt{p} + \sqrt{q})$, where p and q are prime with gcd 1.

One-sided containment is clear i.e. $Q(\sqrt{p}, \sqrt{q}) \supseteq Q(\sqrt{p} + \sqrt{q})$. To show other side I tried in this manner, suppose $p > q$ then $\sqrt{p} + \sqrt{q} \in Q(\sqrt{p} + \sqrt{q})$ implies $({\sqrt{p} + \sqrt{q}})^{-1} = \frac{\sqrt{p} - \sqrt{q}}{p-q} \in Q(\sqrt{p} + \sqrt{q})$ implies $\sqrt{p} - \sqrt{q} \in Q(\sqrt{p} + \sqrt{q})$. Hence $\sqrt{p} = \frac{1}{2}((\sqrt{p} + \sqrt{q})+(\sqrt{p} -\sqrt{q})) \in Q(\sqrt{p} + \sqrt{q})$. Similiarly $\sqrt{q} \in Q(\sqrt{p} + \sqrt{q})$. From here we get $Q(\sqrt{p}, \sqrt{q}) \subseteq Q(\sqrt{p} + \sqrt{q})$. I am not sure that it is correct or not, please tell me if any problem with my proof.


how can prove the date I came back to US

I'm US citizen.Social Security Office asked me to prove I did come back to US on time because I get SSI(Supplementary Security Income), I can't go abroad over 30 days.US customs didn't stamp on my passport.How can I prove to Social Security Office?  Peter Doan


Which arena do free and crown chests use when determining the cards you will get?

If I am in arena X when I collect my tenth crown for the crown chest, or a free chest becomes unlocked, then proceed to climb to arena X+1 before opening the chests, which arena will be used to determine the cards I get? Will it use the arena I was in when I unlocked the chests in, or the arena I opened them in?


How to remove certain values from an array object in JavaScript

I am trying to remove __v in every array element. How can I iterate through this array while removing the __v value from each element?  This is how my array looks like:      [     {         "itemName": "SDGSGEDEDW",         "description": "No description found",         "_id": "5d97e155976e7e145476298b",         "itemCode": "JFDQEKDEDQCGD",         "untiPrice": 23.23,         "vendor": "5d97e97177882e5b886fe32a",         "dateAdded": "2019-10-05T00:18:29.128Z",         "__v": 0 //want to remove this     },     {         "itemName": "SDGSGEDEDW",         "description": "No description found",         "_id": "5d97e2e7d7a4b12dd800bca6",         "itemCode": "JFDQEKDEDQCGD",         "untiPrice": 23.23,         "vendor": "5d97ea3177882e5b886fe330",         "dateAdded": "2019-10-05T00:25:11.665Z",         "__v": 0 //want to remove this     } ]   So after removing the final array would should look like this:  [     {         "itemName": "SDGSGEDEDW",         "description": "No description found",         "_id": "5d97e155976e7e145476298b",         "itemCode": "JFDQEKDEDQCGD",         "untiPrice": 23.23,         "vendor": "5d97e97177882e5b886fe32a",         "dateAdded": "2019-10-05T00:18:29.128Z"     },     {         "itemName": "SDGSGEDEDW",         "description": "No description found",         "_id": "5d97e2e7d7a4b12dd800bca6",         "itemCode": "JFDQEKDEDQCGD",         "untiPrice": 23.23,         "vendor": "5d97ea3177882e5b886fe330",         "dateAdded": "2019-10-05T00:25:11.665Z"     } ]   Here what I was trying but it is not working:  arr.filter((item) => {           return item.__v !== 0 });   How can I do this?


Command present in two locations and both locations are in PATH

I have this situation in which the same command/program (eg: myScript) is present in two locations, /usr/bin and /usr/local/bin. Both these locations are in the PATH.  When I run   $ myScript    How do I know from which location myScript will be picked up? Can I force the use of one of the locations (without having to delete myScript from one of the locations)?


How to centrally administer Ubuntu servers

I'm curious as to whether there is a convenient way to push updates to multiple Ubuntu servers from a central location instead of remoting into each one individually and manually updating them. Bonus points if this central location would be able to reboot the systems if needed due to updates.


I had an exam today in C and I was asked a question similar to:     What is wrong with this program:  for( x = .1 ; x != 1.0 ; x += .1)     printf("%f\n", x);    I couldn't solve it and since I had to write something I marked .1 as an error. But, when I went back home, I run this program, It turned out that it doesn't break when x equals to 1.0 and stuck in an infinite loop:  $ cat exam.c #include <stdio.h>  int main(int argc, char **argv) {     float x;      for(x = .1 ; x != 1.0 ; x += .1)         printf("%f\n", x);      return 0; } $ gcc exam.c -o exam $ ./exam 0.100000 0.200000 0.300000 0.400000 0.500000 0.600000 0.700000 0.800000 0.900000 1.000000 <- ? 1.100000 1.200000 1.300000 1.400000 1.500000 ....   Could someone please explain why this is happening.


Can a monk make a bonus unarmed attack after using shocking grasp?

I'm playing a 5e Wizard/ Monk build. My DM and I are questioning the viability of the cantrip Shocking Grasp. As a monk I can do another unarmed strike as a bonus action after I attack with a melee attack. Being a touch spell, can I punch (touch) with Shocking Grasp and then do my monk's bonus action?


Prove that for every $A\in M^{n\times n}(\mathbb{C})$, there exists a $P\in GL_n(\mathbb{C})$ such that $A^T=P^{-1}AP$.

Consider a matrix $A\in M^{n\times n}(\mathbb{C})$. Prove that there exists an invertible matrix $P\in GL_n(\mathbb{C})$ such that $A^T=P^{-1}AP$. I thought that, to prove this, the following could be useful: we know that $\mathbb{C}$ is algebraically closed and so, the characteristic polynomial of $A$ decomposes in polynomials of degree 1 (i.e. every eigenvalue of $A$ is in $\mathbb{C}$) and, as a consequence of the triangularisation theorem, there exists a matrix $S\in GL_n(\mathbb{C})$ such that $S^{-1}AS$ is an upper-triangular matrix. But I can't seem to complete the proof. I'm struggling to see how this can relate to the transpose of a complex matrix.


It appears that the version info functions in the Win32 API that I know and love have changed their behavior.   now return what the program's manifest is set for, not the actual version.  The new function IsWindows10OrGreater seems pointless since it is only available on windows 10 or greater, so if the program includes it and successfully links it will always return TRUE.  But, in an installer or similar program, how does it determine whether the current environment really is Windows 10 or greater?  It needs this to know what to download or which options to set up for other programs.


Impossible to un-star/un-pin messages for long list

I think there is a lack of tools to un-star messages. Currently, there is a way to do this: to select the corresponding link in the list of recently starred messages:    But the problem is: if the list of messages can not be shown because of it's length, then it's impossible to un-star messages that are below starred messages area:    As you can see, the list is limited to only those messages that fit on the screen (because of the list's size). And there's no scrollbar to view messages off the bottom of the screen - thus, operate on it is impossible.  This is mostly about low-resolution screens, but I think with sufficient starred/pinned messages this may be a problem at normal resolutions too. I think either a scrollbar should be added, or alternative way to operate on starred messages should exist (unless it already exists and I've missed that - but even if so, fixing of current starred/pinned messages is needed).


Why don’t the twins notice things on the marauders map?

Why don’t the twins notice anything? I mean, come on:     First year: "Hey, Voldy's balancing on Quirrel's head."   Second year: "Hey, our sister is going somewhere that doesn’t exist."   Third year: "Hey, some dead guy and a mass murderer are under the whomping willow, along with our teacher Snape, Harry, Hermione and our brother."   Fourth year: "Looks like Voldy's in a maze, with the champions."   Fifth year: "Hey, Harry’s on the train, it looks like he’s stunned."     There are way more. This is the tiniest list. And the same thing with how Lupin could see his friends.


$GLOBALS['wp_the_query'] vs global $wp_query

What is the difference between $GLOBALS['wp_the_query'] and global $wp_query?  Why prefer one over the other?


“Unverified org Wide Email Address” Error on Workflow even if email is verified

We have a org wide email addressed which has been "Verified" into our sandbox. I understant org wide email addressed is unsupported metadata, so this was achieved as pre deployment step. Into our repo, we have a workflow that send email alert to that org wide email address. " Workflow ... noreply@mycompany.com.au OrgWideEmailAddress The problem we are facing is that we are still getting the following error even if this org wide email address is verified: You must specify a verified Org Wide Email Address for this sender type. Is that a bug in the metadata api or expected behaviour ? Ideally we would like to not have to do that as a post deployment step. PS: We are running DX under api version 44.0 This question was asked  but no answer was left


Summation of cosine value from 0degrees to 89degrees

I am unable to solve the summation of cosine value from 0 to 89 degrees. Please help me. Thank you.


Ubuntu 16.04 Asus Mediatek MT7630E doesn't work

I had this working on Elementary but then it stopped so I switched to Ubuntu and I still can not get this driver installed and working.   I followed this tutorial    As well as using the same install file but sudo bash install. I keep getting this error and output:   make -C /lib/modules/`uname -r`/build M=/home/alyson/Downloads/MT7630E-release/rt2x00 modules make[1]: Entering directory '/usr/src/linux-headers-4.4.0-28-generic'   Building modules, stage 2.   MODPOST 1 modules make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-28-generic' make -C /lib/modules/`uname -r`/build M=/home/alyson/Downloads/MT7630E-release/btloader modules make[1]: Entering directory '/usr/src/linux-headers-4.4.0-28-generic'   Building modules, stage 2.   MODPOST 1 modules make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-28-generic' cp -v firmware/*/* /lib/firmware/ 'firmware/BT/mt76x0.bin' -> '/lib/firmware/mt76x0.bin' 'firmware/Wi-FI/MT7650E234.bin' -> '/lib/firmware/MT7650E234.bin' cp rt2x00/mt7630e.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/ cp btloader/mt76xx.ko /lib/modules/`uname -r`/kernel/drivers/net/wireless/ depmod modprobe: ERROR: could not insert 'mt7630e': Required key not available   I am assuming this is a 16.04 issue, but I do not know enough to work around it or know how to find another driver. any help would be greatly appreciated ! :)


A subgroup such that every left coset is contained in a right coset.

Let $G$ be any group, and $H \leq G$ a subgroup.  Suppose that for each $x \in G$, there exists a $y \in G$ such that $xH \subseteq Hy$. In other words, every left coset of $H$ is contained inside some right coset of $H$.  Question: what can we say about $H$? In particular, does this imply that $H$ is normal?  I know that if $G$ is finite, then $H$ must be normal, because then $xH \subseteq Hy$ implies $xH = Hy$, since $|xH| = |Hy|$.


Apex class:  public class ProdImedComAr {     public class Respuesta {         public Integer Codigo;         public String Descripcion;         public Long NroOperacion;         public String MensajeAdic;         private String[] Codigo_type_info = new String[]{'Codigo','http://www.w3.org/2001/XMLSchema','int','1','1','false'};         private String[] Descripcion_type_info = new String[]{'Descripcion','http://www.w3.org/2001/XMLSchema','string','0','1','false'};         private String[] NroOperacion_type_info = new String[]{'NroOperacion','http://www.w3.org/2001/XMLSchema','unsignedLong','1','1','false'};         private String[] MensajeAdic_type_info = new String[]{'MensajeAdic','http://www.w3.org/2001/XMLSchema','string','0','1','false'};         private String[] apex_schema_type_info = new String[]{'https://test.imed.com.ar/','true','false'};         private String[] field_order_type_info = new String[]{'Codigo','Descripcion','NroOperacion','MensajeAdic'};     } }   can someone help me on how to write test class for the above


Joining Tables in the FROM vs. the WHERE clause

First time caller here.   I have a question regarding best practices when joining tables. For example, both of the following queries return the same results:  SELECT i.id, p.first_name, p.last_name FROM individuals i, profiles p WHERE i.id = p.individual_id;   SELECT i.id, p.first_name, p.last_name FROM individuals i INNER JOIN profiles p ON i.id = p.individual_id;   What are the pros / cons of these two approaches? Please let me know what you think. I'm interested in performance differences, but also in readability of the query, portability from one RDMS to another, etc.   Thank you!


Is it really true that it's not possible to render on the GPU with Cycles on a newer Mac with an AMD GPU...?  Thanks!


Shorten regex any character including whitespace, alphanum, special char, and unicode

I want to match any character after some word (limit is an example).  ✔ nnn : am -limitaaaa ça UNICODE HERE sdasdsadaw ✔ UNICODE HERE limitaaaa,.@#!~`%$&*()[]{}|\+=-_?/'":;.><, 777723xx sss fff s :,   my current regex.   /limit+([.*\s\w\d\p{M}\p{L}\p{S},:@#!~`%$&()\[\]\{\}\|\\+=\-_\?\/\'";><]+)/   My regex works, but it looks too long. My question is can I make it shorter?  Note: If you need to know what kind of language that I used, I using PHP for this.


Finding equation using hyperbolic transcendental functions.

I have tried and tried but cannot for the life of me see how one equation follows onto the other... can anybody help??   $$\Omega(\theta)=-b \coth(\operatorname{arsinh}(e^{a\theta}   \sinh c_0 ))$$  $$\implies \Omega(\theta)=\sqrt{c_1 e^{-2a\theta} + b^2}$$  note that: $c_0=-\operatorname{arcoth}\left(\frac{\Omega_0}{b}\right)$  Eichberger quotes (at the bottom of page 5) "By inserting (11) into (8), using identities of the hyperbolic transcendental functions and carefully observing $±$ signs, we obtain $Ω$ as a function of $θ$."


third party content app document for app store

i send multi time app for review in app store but not accept and it's need third party Document, but i don't find anything about it. there isn't any sample or example my app work with my site api and get data from my site  the review result :     The inclusion of third party content within the application, whether   retrieved from the internet by the application or embedded in the   application, is subject to the terms of the iOS Developer Program   License Agreement. You must warrant that your application does not   infringe the rights of a third party by providing documentary evidence   that you have the rights to use this content.      Acceptable documentation includes a copy of your contract with the   copyright holder to your company, detailing your authorization.   please if have any idea or experiment about that , help me Thanks  Update (22/2/2019) i send a doc that include the website owner signed that i have right to use api and publish this app but it's rejected again .  the new answer of app store reviewer :     Thank you for the message. After review of the documentation, we are   requesting further documentation demonstrating your right to use the   third-party content. Documentation must prove the third party content   owners have agreed to distribute their work through your platform.   Furthermore, please be sure to include dates, rights holders' names,   your company's name, and relevant signatures.


Should I use tasksel, tasks in APT or install regular metapackages?

Tasksel or plain Apt?  In the past I've always used tasksel to install so-called "tasks". It seems, however, that this has been integrated in APT:  apt-cache dumpavail | grep ^Task [...] snip Task: lamp-server [...]   and that I can install such "tasks" by appending a caret (^) to it, like this:  sudo apt-get install lamp-server^   Is this equivalent to the following?  sudo tasksel install lamp-server   And which is preferred?  Metapackages  Additionally, how do metapackages come into play here? Some tasks seem not to be a metapackage while others are:  apt-cache show lamp-server N: Unable to locate package lamp-server  apt-cache show kubuntu-desktop Package: kubuntu-desktop [...] Task: kubuntu-desktop     So, using the last example, what is the difference between the following three possible ways to install?   sudo apt-get install kubuntu-desktop sudo apt-get install kubuntu-desktop^ sudo tasksel install kubuntu-desktop


I am fairly new to actively work with databases. I wanted to try out some stuff on my home computer where I have installed pgAdmin and PostgreSQL previously. I can connect to my localhost in pgAdmin but I can't do the same in QGIS. I just get an error message saying:  "Connection failed -  Check settings and try again"   I am new in this game and don't really know where to look for solutions. My database connection info is standard settings:  Name: postgres Host:Localhost Port:5432 Database:test   Any ideas what could be wrong?


sqliteassethelper does not seem to create my table

I followed the instructions in implementing SQLiteAssetHelper   I have a database that contains one table, tbl_items  Tried looking in the Android Device Monitor if it created my table, but it's not listed there. (or it's not supposed to be listed there? package name > file explorer > data > data > package name > databases)  Inside my class I have this code:  public class DBItems extends SQLiteAssetHelper{     public DBItems(Context context) {         super(context, "Items.db", null, 1);     }       public Cursor ItemInfo(String itemID){         SQLiteDatabase database = this.getReadableDatabase();         Cursor info = database.rawQuery("SELECT * FROM tbl_items WHERE itemID = '" + itemID + "'", null);         return info;     } }   And im trying to access it in my fragment:  DBItems dbItems = new DBItems(getActivity()); @Override     public void onClick(View v) {         Cursor info = dbItems.ItemInfo(String.valueOf(v.getTag())); //I've set a tag in my button          while(info.moveToNext()){             //display info         }   Everytime I clicked the button, it just exits the app. Did I miss something? or what am I doing wrong here?


What is this star mark in this print function call?    for i in range(int(input())):        s=input()       print(*["".join(s[::2]),"".join(s[1::2])])


Why value of "id" is not accesible in function displayx()?

function getx(x) {   const id = 'x';   console.log(id); }   function displayx() {    console.log(id); } <div class="form-check">   <input class="form-check-input" type="radio" name="flexRadioDefault" id="flexRadioDefault1" onclick="getx(1)">   <label class="form-check-label" for="flexRadioDefault1">     Default radio   </label> </div>   <button type="button" class="btn btn-primary m-3" id="button" data-bs-toggle="modal" data-bs-target="#modal" onclick="displayx()">         Button1 </button>    When clicked on radio button,function getx() executes properly, but after clicking on radio button, when clicked on normal button (id="button") getting error in function displax() Error is Uncaught ReferenceError: id is not defined I tried var also instead of const but still function displayx() is not getting value of "id". Thanks in advannce.


Map from real numbers to real numbers as abelian groups

What is an example of an abelian group homomorphism from $\mathbb{R}$ to $\mathbb{R}$, respecting addition, that is NOT a linear transformation?  I'm trying to understand to what extent the scaling condition for the linear transformation is necessary. For $\mathbb{Q}$ vector spaces, maps that preserve addition also preserves scaling.  It seems the situation is more complicated for $\mathbb{R}$.  I guess I can "choose" a basis of $\mathbb{R}$ as a $\mathbb{Q}$ vector space and go from there, but are there any explicit examples, preferably without using the Axiom of Choice?   More generally, is there a description of the group of abelian group homomorphisms from $\mathbb{R}^n$ to $\mathbb{R}^m$?


What rpm when peddling is the most energy efficient aka least calories burned for the fastest speed?


Is there any bijection between $\mathbb{R}$ and $\mathbb{R}^2$?

Is there any bijection between $\mathbb{R}$ and $\mathbb{R}^2$ ? If have then what is the mapping ? Please define the mapping. They have same cardinality then it is possible to have a bijection between them.


"Can you tell me where is the bank?" or "where the bank is."

Can you tell me which of the following sentences is grammatical?  "Could you tell me where the bank is, please?"  "Could you tell me where is the bank, please?"  And please, explain why. Thank you in advance.


When should we use "and" and/or "and/or"?

What's the difference between "and" and "and/or"?  How do we decide whether to use one or the other?  Note: Also it would be great if someone could explain how do we actually pronounce "and/or" verbally in a sentence...


Where can I take a shower at Dubai Airport?

I've got two transfers between long-haul flights coming up at DXB, and I'd like to freshen up with a shower. Information on the net is outdated and contradictory, and the  is remarkably useless. I will be in the Terminal 3 (Emirates), although I'll do the long schlep to T1 and back if I need. I have no frequent flier lounge access.  What are my options for a shower?


NullPointer when trying to access an Array of Objects in another method

I would like to access my array of objects from another method in my class. My code is as follows. I get a NullPointerException error.  The nameArray is simply reading a text file, and data is being stored in it.  public class menu {      static Scanner askInfo = new Scanner(System.in);     public static Student ArrObj[] = new Student[15]; //instantiates an array of student objects       public static void main(String args[]) throws IOException {         for (int i = 0; i < 15; i++) {             ArrObj[i] = new Student(); //creates an array of student objects             System.out.println("Here is the list of all children.");             System.out.println("Which child's information do you want to enter?");             int InName = askInfo.nextInt();             switch (InName) {                 case 1:                     ArrObj[i].setName(Read.nameArray[0].substring(3));                     break;                 case 2:                     ArrObj[i].setName(Read.nameArray[1].substring(3));                     break;                 case 3:                     ArrObj[i].setName(Read.nameArray[2].substring(3));                     break;                 case 4:                     ArrObj[i].setName(Read.nameArray[3].substring(3));                     break;             }         }         for (int i = 0; i < 15; i++) {             System.out.println(ArrObj[i].getName());         }     }  }   The (important parts of) Student class:  public class Student {     private String name;      //name of student          public void setName(String name) {             this.name = name;     }      public String getName(){         return name;     } }   The Read class:  import java.io.*; import java.util.*;  public class Read {      static String nameArray[] = new String[100]; //to be safe, declare plenty      public static void ReadNames() throws IOException //method to read names     {         Scanner read = new Scanner(new File("C:\\IA\\names.txt")); //this will read the names of students         int counter = -1; //-1 so that when incremented, the first index is 0          while (read.hasNext()) {             counter++;             nameArray[counter] = read.nextLine();         }     } }


Use Linq to remove dulicates that vary by one column value

I have a list, ApplesList  AppleId    Color ---------------- 1          Green 1          Red 2          Red 3          Green 4          Red 4          Green   And would like to combine the list like so:  AppleId    Green   Red ------------------------ 1           1       1 2           0       1 3           1       0 4           1       1   The duplicate AppleId records have been removed and the Color column has been split into two Boolean columns. How would this be done in Linq?  Edit  What if I had another value I wanted to keep from the first list? So the first table would now be like this:  AppleId    Color     Value ----------------------------- 1          Green       Value1 1          Red         Value1 2          Red         Value2 3          Green       Value3 4          Red         Value4 4          Green       Value4   and the grouped table would be like this:  AppleId    Green   Red     Value ----------------------------------- 1           1       1       Value1 2           0       1       Value2 3           1       0       Value3 4           1       1       Value4   I tried using   var q = items.GroupBy(x => x.Id)              .Select(group => new                       {                          Id = group.Key,                           Green = group.Any(item => item.Color == "Green"),                           Red = group.Any(item => item.Color == "Red"),                          Value = x.Value                      });   and some other variations, but couldn't get it to work.


I have recently signed up with netflix and have followed procedures in updating chrome and set up user agent switcher but when I try to change playback settings in netflix to html5 the setting is not available.


How to hide terminal output when executing a command?

When I launch certain programs from the command line like eclipse and document viewer in 11.10 it spews a load of information that seems inconsequential.   Also when they are run in the background they sometimes continue to produce output to the terminal which I am currently working on, which is irritating.  I would like them just launch and keep the background stuff in the background. My reasoning is that if you launch these programs through the GUI (eg double clicking on an icon) these messages are never shown to me, so I don't need them in the command line.


Difference between "was to . .." and "going to ..."

What is the difference in the meaning between following sentences:        Riya was to pick strawberries yesterday but the downpour made the field too muddy.   (source: modified from example from BBC learn English)   Riya was going to  pick strawberries yesterday but the downpour made the field too muddy.      I've learned tha 'was to' is used for past plan'. But 'was going to' is also about past plan. So which form is used for past plan. So, what is the differences between the construction was/were to ...  and going to ... ?  Note: I asked a similar question about the difference between “was to...” and “was to have” , but this question is about “was to” and “was going to.”


when present perfect or future in that case

Please let me know when you have received the book or is it better to write let me know when you will receive it  Is it grammatically correct because in that case the when clause is not a time clause so the  future should be needed


Prove there exists $[a,b] \subset [0,1]$ such that $\int_a^b f(x)\,dx=\int_a^b g(x)\,dx=\frac{ 1}n$

Let $f,g:[0,1] \rightarrow \Bbb R$ be continuous such that $\int_0^1 f(x)\,dx=\int_0^1 g(x)\,dx=1$. Let $n \in \Bbb N$. I want to prove that there exists $[a,b] \subset [0,1]$ such that $\int_a^b f(x)\,dx=\int_a^b g(x)\,dx=\frac{ 1}n$.  I tried everything I can for a few hours but couldn't get anything. could somone please help on this? We can use everything involving 1-variable real analysis - including results from topology if needed.


Shor vs Schnorr: A classical algorithm for breaking RSA?

I am not sure why I haven't heard much chatter about  by Dr. Claus Peter Schnorr where he claims to have come up with a classical algorithm to break the RSA protocol. The construction is based on a so called . The actual technical content is far beyond my understanding but I have a few questions about the paper and its implications.  Has the correctness of the algorithm been already proven or disproven? What is the scaling of the algorithm? If efficient (meaning polynomial in the number of bits), would this undermine the field of quantum computation(QC) as  is held up as the central example of the usefulness of QC? I know that one can use post quantum cryptographic protocols to avoid Shor's algorithm. Maybe something similar can be done here (by increasing the number of bits if the scaling is poor). However, if it can even break current RSA protocols, can't one just store all the current passwords to decrypt it later(If my memory doesn't betray me, this was the reason behind the NSA investing millions into QC)?  If so, what is your bank doing about it?


I need to create vector grid 1km x 1km, but I can't figure out what parameters I should set. When I set some value, for example 1000.0, it creates grid with cells with 1000.0 x 1000.0 map degrees instead of meters.   How can I set x - spacing and y - spacing in meters?


Is there a reason to exercise a stock option as soon as it vests?

Background: I am currently employed by a start-up that, so far, is doing really well. As part of my contract, I have stock options that will come available on a typical vesting schedule. A quarter of my options are set to vest later this year. Also, the company is not public yet, and it may be several years before it is public / I could sell my shares of the company.  My question is, is there any reason I should exercise them as soon as they vest? As far as I know they don't expire as long as I work at my company (if I leave for any reason, then I only have 3 months to exercise).  I don't foresee leaving any-time soon, and if I did, I would have 3 months to make a final decision.  Is there any disadvantage to just letting the option stay an option for a while?


I have two gmail accounts and I want to delete one entirely. How do I do so?

I have two Gmail accounts and I want to delete one entirely.  How do I do so?


Where does the LOCAL SYSTEM account store its "personal" files?

I'm using a continous integration system (CruiseControl.NET) as a service on our Windows 2008 64-bit server.  Now I would like to run Delphi 2006 from CruiseControl.NET (which runs as a service).  The point where I'm stuck is that Delphi 2006 requires a folder with licensing information in the users home folder. It won't run if it can't find the licensing information.  Where is that folder for the LOCAL SYSTEM account? I've looked in C:\Users but no luck.  I could also run the service using the LOCAL SERVICE account but there is no folder for that account either under C:\Users\.


Finding the review results for a specific question

When I vote to close or reopen a question through the review queue, I can always go back to see the review results of that question, i.e. who else reviewed that question and how they decided  However I cannot find a way to see this for questions when I vote for reopening or closing through the question itself.  Is there a way to get this result?  I admit do not have a much practical use for this sort of information, besides idle curiosity. Still, it would be nice to see why a nomination failed or succeeded review, or whether the decision was unanimous  Specifically, I edited and nominated  for reopening earlier today. I could not see this question in the reopen queue, I presume because I already voted on it. The question has now been reopened, but I can find no way to see how the review went.


I whispered, “I am too young,”   And then, “I am old enough”;   Wherefore I threw a penny   To find out if I might love.   “Go and love, go and love, young man,   If the lady be young and fair.”      —William Butler Yeats, “Brown Penny”   What's the meaning of "If the lady be young and fair.”   "be" is like "is"?


I am trying to create a shortened mysqli_real_escape_string function  code works when used directly, but get errors when trying to turn into a function  this works perfectly: '''  $conn = new mysqli($dbservername, $dbusername, $dbpassword, $dbname); $username = $conn->real_escape_string($_GET['user_name']);   ''' BUT using the following code: '''  $conn = new mysqli($dbservername, $dbusername, $dbpassword, $dbname); function cleanstr($cleanval){     $cleanval= $conn->real_escape_string($cleanval);     //$cleanval =mysqli_real_escape_string($conn, $cleanval);     return $cleanval; } $username = cleanstr($_GET['user_name']);   ''' I get errors:  ........................  ( ! ) Notice: Undefined variable: conn in C:\wamp64\www\Data\reg\functions.php on line 21 Call Stack #   Time    Memory  Function    Location 1   0.0004  403064  {main}( )   ...\verify_email.php:0 2   0.1575  420064  cleanstr( ) ...\verify_email.php:10  ( ! ) Fatal error: Uncaught Error: Call to a member function real_escape_string() on null in C:\wamp64\www\Data\reg\functions.php on line 21 ( ! ) Error: Call to a member function real_escape_string() on null in C:\wamp64\www\Data\reg\functions.php on line 21 Call Stack #   Time    Memory  Function    Location 1   0.0004  403064  {main}( )   ...\verify_email.php:0 2   0.1575  420064  cleanstr( ) ...\verify_email.php:10   .......................................... Am i doing something wrong, or is there no way to use real_escape_string is in a custom function


How to install Windows 7 alongside ubuntu 14.04 lts

I tried to dual boot Ubuntu with Windows 7 and it turned out that I booted only Ubuntu. All my data in windows 7 OS are gone. Is there any chance I can retrive those data? And I want to dual boot windows 7 now. How do I do it? If I do it will it be enough for me to get the datas back?


Display contents of multiple folders in one explorer window

Let me give you an example of the rather odd functionality I'm after. Imagine you have your local HDD, an external HDD, and a usb stick, all containing a folder called "MediumMedley". When all these storage mediums are connected, you want to query all these locations and display a merger of the results within one location, to have a proper overview.  Can anyone think of any ways to achieve something akin to this? Bonus points if the end result is a windows explorer window (I want full explorer functionality, ie thumbnails, context menus etc).  One approach I tried was to do a custom search (looking at this SU question:  ), which works, but as far as I can tell (doing an empty * search) you can only get windows search to show a flattened hierarchy of the queried folders - not very helpful.  I could easily write a .net app myself to do exactly this, but I won't be able to easily build a pretty client with context menus, thumbnails etc...  --  PS: I need these folders each in their own storage medium, as exemplified, for reasons. Don't tell me that I should just use dropbox. Unless you know a trick that solves what I ask.


AND and OR operator not working as expected

I am trying to use AND and OR operator, to compare values without using if else statements.  #!/bin/sh A=5                                              B=8  [ $A -gt $B ] && echo "A is greater than B" || [ $A -lt $B ] && echo "A is lesser than B" || [ $A -eq $B ] && echo "A is equal to B"   It should print "A is lesser than B", but I am getting following output.  A is lessar than B A is equal to B   Am I missing something?


Just got this new laptop and am trying to remove windows and replace with Ubunut 18.04. While doing the setup the installer crashed and now the laptop cannot load into Windows.  If I put the bootable USB in and try to boot from that it says  Failed to open \EFI\BOOT\mmx64.efi - Not Found Failed to load image \EFI\BOOT\mmx64.efi: Not Found Failed to start MokManager: Not Fond Something has gone seriously wrong: import_mok_state() failed : Not Found   I have tried remaking the startup disk which doesn't help.  The laptop has secure boot turned off and boot set to UEFI/Legacy with UEFI first.  I am not quite sure how to proceed. This is NOT a dual boot, the intention was only linux.


Broadcom Bluetooth module does not work in Ubuntu 14.04 LTS Dell XPS 13 9343 i7

I am having trouble making Bluetooth working on my Dell XPS 13 9343, Kernel 3.19.0-50-generic.  The output of lspci is  00:00.0 Host bridge: Intel Corporation Broadwell-U Host Bridge -OPI (rev 09) 00:02.0 VGA compatible controller: Intel Corporation Broadwell-U Integrated Graphics (rev 09) 00:03.0 Audio device: Intel Corporation Broadwell-U Audio Controller (rev 09) 00:04.0 Signal processing controller: Intel Corporation Broadwell-U Camarillo Device (rev 09) 00:14.0 USB controller: Intel Corporation Wildcat Point-LP USB xHCI Controller (rev 03) 00:16.0 Communication controller: Intel Corporation Wildcat Point-LP MEI Controller #1 (rev 03) 00:1b.0 Audio device: Intel Corporation Wildcat Point-LP High Definition Audio Controller (rev 03) 00:1c.0 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #1 (rev e3) 00:1c.3 PCI bridge: Intel Corporation Wildcat Point-LP PCI Express Root Port #4 (rev e3) 00:1d.0 USB controller: Intel Corporation Wildcat Point-LP USB EHCI Controller (rev 03) 00:1f.0 ISA bridge: Intel Corporation Wildcat Point-LP LPC Controller (rev 03) 00:1f.2 SATA controller: Intel Corporation Wildcat Point-LP SATA Controller [AHCI Mode] (rev 03) 00:1f.3 SMBus: Intel Corporation Wildcat Point-LP SMBus Controller (rev 03) 00:1f.6 Signal processing controller: Intel Corporation Wildcat Point-LP Thermal Management Controller (rev 03) 01:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5249 PCI Express Card Reader (rev 01) 02:00.0 Network controller: Broadcom Corporation BCM4352 802.11ac Wireless Network Adapter (rev 03)   The output of lsusb is  Bus 003 Device 002: ID 8087:8001 Intel Corp.  Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 005: ID 0bda:5682 Realtek Semiconductor Corp.  Bus 001 Device 004: ID 04f3:20d0 Elan Microelectronics Corp.  Bus 001 Device 003: ID 0a5c:216f Broadcom Corp. BCM20702A0 Bluetooth Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub   The output of dmesg | egrep -i 'firm|blue' is  [    2.208427] Bluetooth: hci0: BCM: patching hci_ver=06 hci_rev=1000 lmp_ver=06 lmp_subver=220e [    4.264423] Bluetooth: hci0 command 0x0a0a tx timeout [   12.270801] Bluetooth: hci0: BCM: patch command 0a0a failed (-110) [   14.272434] Bluetooth: hci0 command 0x1001 tx timeout [   22.276858] Bluetooth: hci0: HCI_OP_READ_LOCAL_VERSION failed (-110) [   29.373920] Bluetooth: hci0: BCM: patching hci_ver=06 hci_rev=1000 lmp_ver=06 lmp_subver=220e [   31.429340] Bluetooth: hci0 command 0x0a0a tx timeout [   39.431829] Bluetooth: hci0: BCM: patch command 0a0a failed (-110) [   41.516546] Bluetooth: hci0 command 0x1001 tx timeout [   49.518964] Bluetooth: hci0: HCI_OP_READ_LOCAL_VERSION failed (-110)   Dell XPS 13 9343 Ultrabook - Intel Core i7 5500 Broadwell, 13.3 "LED touchscreen 3200x1800 QHD +, RAM 8GB, Intel HD Graphics 5500, SSD 256 gigabytes, WiFi, Bluetooth 4.0, USB 3.0, backlit keyboard, Windows 8.1 64-bit MUI (2016)    Any idea or any solution pls?  Now is lsusb  [    1.883011] Bluetooth: Core ver 2.20 [    1.883030] Bluetooth: HCI device and connection manager initialized [    1.883034] Bluetooth: HCI socket layer initialized [    1.883036] Bluetooth: L2CAP socket layer initialized [    1.883041] Bluetooth: SCO socket layer initialized [    1.896582] Bluetooth: RFCOMM TTY layer initialized [    1.896588] Bluetooth: RFCOMM socket layer initialized [    1.896593] Bluetooth: RFCOMM ver 1.11 [    1.945389] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [    1.945392] Bluetooth: BNEP filters: protocol multicast [    1.945396] Bluetooth: BNEP socket layer initialized [    2.027456] bluetooth hci0: Direct firmware load for brcm/BCM20702A0-0a5c-216f.hcd failed with error -2 [    2.027462] Bluetooth: hci0: BCM: patch brcm/BCM20702A0-0a5c-216f.hcd not found


Why are we interested in asymptotics if the real-world data is almost always finite?


Pretty straight forward question.  What does a lens hood do?


Ubuntu there is a program to write iso on usb key and not make file system readonly?

I like burn my ubuntu iso on pendrive, and after that modifiy some folder or file but the file system is readonly. There is some tools like rufus for linux that not make filesystem read-only? thanks


Where is radiation density in the Planck 2013 results?

I've been looking at the  paper, trying to update my toy cosmology simulator with the most recent data.  Most of the interesting values such as $H_0$, $\Omega_m$, and $\Omega_\Lambda$ can be found in Table 2 on page 12, but the one thing I didn't find was an estimate of the energy density of radiation.  Can this be derived from some other parameters in these data?


Why is the "edit" link missing from the user profile page on Meta?

Obviously it's not missing from this Meta, but it is on the .  It's not just an idiosyncracy of the themes being used for this beta site, it also appears to be the the case on other SE sites.   Is there any reason for this? Why must I go to the main SE site to edit my profile, why can't I do it from the site's Meta as well?  Edit: I forgot to add the screen shots, first is the main site, second is the Meta:


Problem using gnuplot and Texmaker/TexShop on Mac

I would like to integrate gnuplot directly into TexMaker. I have installed gnuplot and calling it from Terminal works perfectly.  student-net-nw-2811:~ aris$ gnuplot  G N U P L O T Version 5.2 patchlevel 6    last modified 2019-01-01   Copyright (C) 1986-1993, 1998, 2004, 2007-2018 Thomas Williams, Colin Kelley and many others  gnuplot home:     http://www.gnuplot.info faq, bugs, etc:   type "help FAQ" immediate help:   type "help"  (plot window: hit 'h') Terminal type is now 'aqua' gnuplot>    In TexMaker I enabled --shell-escape and --enable-write18 as followed  pdftex --shell-escape --file-line-error --synctex=1 --enable-write18    From the .log File it seems that TexMaker can't find the path to gnuplot. The path is:  student-net-nw-2811:~ aris$ which gnuplot /opt/local/bin/gnuplot   How can i fix this problem so that i can compile directly in TexMaker and don't need to run the Terminal first with the code  latex --shell-escape test.tex   Thanks for your help.  Edit: Adding \usepackage{gnuplottex} occurs in following error  ! LaTeX Error: File `gnuplottex.sty' not found. Type X to quit or <RETURN> to proceed, or enter new name. (Default extension: sty)   Edit: A minimal code example is:  \documentclass{article}  \usepackage[latin1]{inputenc} \usepackage{tikz}  % GNUPLOT required \begin{document} \pagestyle{empty}   \begin{tikzpicture}[domain=-1:1]      \draw[very thin,color=gray] (-0.1,-1.1) grid (3.9,3.9);      \draw[->] (-0.2,0) -- (4.2,0) node[right] {$x$};      \draw[->] (0,-1.2) -- (0,4.2) node[above] {$f(x)$};      \draw[color=red] plot[id=x^3] function{x*x*x}           node[right ] {$f(x) =x^3$};      \draw[color=blue] plot[id=sin] function{sin(x)}           node[below right] {$f(x) = \sin x$};      \draw[color=orange] plot[id=cos] function{cos(x))}           node[below right] {$f(x) = \frac{1}{20} \mathrm e^x$}; \end{tikzpicture}   \end{document}


Can animals (including insects) carry or become infected with the "zombie" virus in The Walking Dead?

Can non-human animals (whether mammals, birds, insects, fish... etc) become carriers of, or become infected by, the "zombie" virus in The Walking Dead universe? I have developed this question from an initial thought about whether transmission of the virus through mosquitoes is possible (I noticed that as far as we see on screen, they don't appear to be taking precautions against mosquito bites, which suggests that they aren't a threat, but there hasn't been any definitive indication one way or the other thus far).   I have only seen the TV version and know nothing about whatever is in the comics. I am interested in answers relating to either domain (but please specify which one you are referring to in your answer).  Thus far in the TV series, the exact nature of the disease and its transmission is only partially understood. As of S02 E13, 'Beside the Dying Fire',       it is known that all humans carry the virus and will re-animate after death, as long as they have not suffered head trauma that damages the brain.    Before this information was known, the characters considered whether transmission through scratches in the skin was possible (S02 E10, '18 Miles Out'): Remember that this could STILL be a possibility for...       any human that, for whatever reason, has not yet been exposed to the virus and is not a carrier (there could be someone who was mountaineering/hiking in the wilderness, etc. and thus may not yet have been exposed to whatever source has caused other humans to become carriers).    The scratch idea is what got me thinking about the mosquitoes.   Given the fact that       theoretically ALL humans are already carriers anyway,    I realise that the possibility of transmission through mosquitoes, or any other animal, is kind of irrelevant anyhow, but I'm still interested in whether this has been clearly addressed anywhere. Whenever we see animals in the TV show, they are either alive and seemingly normal (e.g. the deer in S02 E01, 'What Lies Ahead'; the cattle and horses later in the series), or they have been recently bitten by a Walker but have not actually died yet (e.g. the horse in S01 E01, the cow in S02 E11). We never see any animal that appears to have died and re-animated.   Does anyone know of any clear evidence that definitively confirms or refutes the idea of "zombie animals" (or birds, insects etc.), or animals that are carriers (that is, animals who contain the virus in their system but who are not harmed by it, as in the case of mosquitoes carrying malaria)? Speculation is permitted but I would prefer clear, specific in-universe examples, or information from the authors/creators.


I am trying to add two numbers in JavaScript, but the result is inexact. This my example:  var x = 11.12, y = 11.07;    console.log(x + y);  // the result is 22.189999999999998 but the real result is 22.19   Any solution for this?


Is there a user font for San Francisco in El Capitan?

I thought the new Apple font was called San Francisco, but I cannot find it in the font list of the Keynote.app for my Mac. Is it called another way or it is not available for Keynote?  I am currently using OS X El Capitan.


Are density states more fundamental than wavefunctions?

Some interpretations, like the many-worlds interpretation, treat the wavefunction (modulo an overall phase factor) as objective and fundamental. But consider the following example for a qubit: a classical probability distribution over wavefunctions with a 1/2 probability of $|0\rangle$ and a 1/2 probability for $|1\rangle$. Then, consider another classical probability distribution with a 1/2 probability for $\frac{1}{\sqrt 2}\left(|0\rangle+|1\rangle\right)$ and a 1/2 probability for $\frac{1}{\sqrt 2}\left(|0\rangle-|1\rangle\right)$. Both examples are described by the same density matrix $\left(\begin{array}{cc} \frac{1}{2} &0\\0&\frac{1}{2}\end{array}\right)$ and can't be distinguished empirically by any experiment. If wavefunctions are objective and fundamental, why can't we distinguish between both examples?


Should I restructure my question if I was looking in the wrong place?

For example, I might pose a problem and tag it with PHP and Laravel, and provide settings and information about these two things. Then, during the course of digging deeper, I find the real problem is Docker. Should I go back and edit the question?  Should I remove the unnecessary tags and add the correct tags?  Should I remove the unnecessary settings and information, and add details for the real problem?


Twins Paradox - Does ageing depend on motion?

I am trying to understand the Twins Paradox (relativity) and its implications.  Can we infer from the Twins Paradox that the ageing process (cell decay or other biological processes) depends on motion? When I move fast, will my rate of ageing slow down?  I know the theory says that its time which slows down but my understanding (it may be wrong) is that time is just a human perception, it isn't a real physical entity. If time isn't real, outside human perception, then it must be the biological process of ageing being impacted by motion, in the Twins Paradox experiment.  Please help me, what am I getting wrong?


About us

British Airways virtual is one of the largest virtual airlines for Infinite Flight virtual airlines out there. With over 50 pilots, we have a bustling community. Make sure to come over and join us, and experience it for yourself!

        Check out the about page for more info!

   I have this code. Any way I can centre the Youtube iframe in the middle? I have tried CSS, but can't figure it out.  You can view the whole file here:   Thank you!


How can I randomize color across available fill regions?

I'm trying to apply a random colors from a palette of colors to the resulting fill-able regions. I'll first explain where I am and then what I'm trying. I previously asked about how to split a complicated line drawing into different fill-able groups . Which is working beautifully. I'm still super new (day 2!) to Illustrator, but having fun so far.  First, my files: my image as  or as  to follow along. Micro-side-question, is it better/easier to use the .svg or .pdf or does it matter when subsequently opening in Illustrator?    Here's my steps so far:    Open the .svg image Select the path of the line  Click Properties   turn off stroke, turn on fill to some color  Hit the Divide button on the Pathfinder Panel (Window > Pathfinder)   At this stage it looks like:     My ultimate goal is to randomly color all of the fill-able regions from a specific color palette, but I'm stuck.   Here's the steps of what I've tried so far:    Go to swatches Swatch Library> and pick something like Pop Art for example Click on the folder under the Pop Art tab and see that those swatches are added to the Swatches panel. I select all colors from that panel (by holding down shift) Select "Create new color group" folder from that, name it something like test1 Select all in the artwork. Edit>Edit Colors>Recolor Artwork> Choose test1 Click Randomly Change Color order   What I hoped to see: each fill-able region is randomly one of the colors from that palette. What I actually see: the whole thing turn to a single color.  Someone please help!  Hopefully I'm doing something obvious wrong, but I'm kind of out of ideas. I've also tried playing with whether everything was grouped or not, this didn't seem to help. I have also confirmed that the regions are separately fill-able as I have done that with the Live Paint Bucket.


I would like to see a full how-to guide on how to install Ubuntu.


Is this compound noun compose of a group of many things plural or singular?

In the following sentence, I'm not sure whether the noun should be considered plural or singular?     A grid pattern of streets (Main, Elm, First) are shown.   Or:     A grid pattern of streets (Main, Elm, First) is shown.   The grid is clearly singular, but streets is plural.  I'm thinking it should be singular because the grid contains the streets, but am not sure.  Which one is correct?


Strange error with double barrled surnames

if I am citing the reference example I get S.H. Kim & Netessine (2013) and in the second example I get Laffont & Tirole (1987). Can someone explain to me how I make the first return the second outcome? I am using \usepackage[natbibapa]{apacite}. @article{kim13,   title={Collaborative cost reduction and component procurement under information asymmetry},   author={Kim, Sang-Hyun and Netessine, Serguei},   journal={Management Science},   volume={59},   number={1},   pages={189--206},   year={2013},   publisher={INFORMS} }  @article{laffont87,   title={Auctioning incentive contracts},   author={Laffont, Jean-Jacques and Tirole, Jean},   journal={Journal of Political Economy},   volume={95},   number={5},   pages={921--937},   year={1987},   publisher={The University of Chicago Press} }  Thank you for your help.


proving infinite set from a finite and infinite set

My question reads:   If A is finite and B is infinite, then B-A is infinite.


Sampling from marginal distribution using joint sample?

I have a sample of a multivariate distribution, and I am interested in obtaining a sample from the marginals. I know the right way to do so is by simply taking the corresponding entries. What is the justification for this strategy? Is there a, probably simple, formula or result that justifies this procedure?


Fill along the front of a path of an SVG

I have an SVG logo, which I will import into Blender. I'm trying to think how to have the colour (not outline) fill up from left to right.  I think the following steps put me on the right track, but struggling how to full resolve this:   Import SVG to Blender Convert Curve to Mesh for the imported object Extrude object (to make it 3D)   That's as far as I know how to do, then I think the following steps are needed (which I don't know how to do).   Create an outline of the 3D object (with no fill) Draw a path across the object with timeline Animate the path being filled   Would be grateful for any ideas how to achieve this.  :)


It's been along time that I have wanted to get started with post processing, but I have a big problem.  I don't know where to start. I have looked around internet and this site too, but I can't figure out how and where to start.  I wonder if someone could introduce a book, course or anything, as the first step to me. Please be specific.


Which timezone do we live in on Stack Overflow?

Is my local time considered in the daily reputation points cap, or number of votes?


Duplicate site or a part of Stack Exchange

Today while I was searching for an answer to a question I noticed a site, . Is it a part of Stack Exchange or what?


OpenLayers load WFS vector layer: how to check whether all features are returned from server?

My app takes several seconds to return all features of a WFS layer from server, I am wondering whether there is a way to check whether all features are returned in coding, so that we can add a loading-mask...  In other words, how do you check whether a WFS request is successful or not?  Code sample:  var newEventLayer = new OpenLayers.Layer.Vector (     'test'     , { "strategies":             [new OpenLayers.Strategy.BBOX()             , new OpenLayers.Strategy.Refresh({ "force": true })             ]         , "protocol": new OpenLayers.Protocol.WFS(         {   "version": '1.0.0'             , "srsName": 'EPSG:4326'             , "url": '/geoserver/ows?service=WFS'             , "featureType": 'XXX'             , "featureNS": 'XXXX'             , "geometryName": 'GEOM'         })     } );  map.addLayer(newEventLayer);


Find all real roots of $x^5+10x^3+20x - 4=0$

Find all real roots of the following fifth-degree equation  $$x^5+10x^3+20x-4=0.$$  In fact, the only one root is $\sqrt[5]8-\sqrt[5]4$. How to get that?


When I was eating lunch, I made up the following problem.     Does $n|\phi(m^n-1)$ where $m,n\in\mathbb{Z}^+$ and $m>1$? Prove or give a counterexample.   I asked my friend Issac Yiu to help me as I don't know how to solve, but we still don't have a solution.   Attempt:   When $n=1$, $1|m-1$  When $n=2$, $m^2-1>2,$ so $2|\phi(m^2-1)$  Me and Issac can both do the case $n=1$ and $2$, but not others.  Any help is appreciated!   Click   Edit: Can anyone not use group theory to solve this problem? The other questions which asks this problem were solved by group theory or I don't understand.


This question is similar, but not identical to:   Whereas the aforementioned question is about whether the hand’s movement is measured from the hand’s point of view or from the caster’s, this question revolves around the total distance the hand can travel to reach its destination.  To illustrate, let me give an example: Two narrow stone pillars stand next to each other, 10 feet apart. They are several kilometers high and on top of each pillar stands a wizard. One wizard casts Maximillian's Earthen Grasp and lets the hand made from compacted soil rise from the ground on his own pillar. With another action, he wants to move the hand in order to restrain the other wizard, who is within range of 30 feet.  Would the hand retract into his own pillar, then rise again from the ground on the other pillar? Or would the hand move several kilometers down the first pillar, across the floor, then several kilometers up the second pillar? What if both pillars would float in the Astral Plane, without a direct ground-based connection between them?  This might seem like a stupid and unnecessary convoluted question, but lo and behold, something similar happened in one of my games.


Apply rigid body physics to mesh with armature?

Is it possible to easily apply a rigid body to ( Parts of/ a complete ) mesh with a armature in a way so that it reacts to gravity?


What is it called when you refer to someone by using an adjective rather than their name?

For example; the "the brunette said" instead of "Susan said" or "The young man asked" rather than "Jason asked".


I have a code written to count the number of times something occurs.... but how do i ( keeping what i have) make another method that counts them based on their occurrences?  like "holy now brown cow"  o 4 w 4 n 2 b 1 c 1 h 1   as well as what it already does  ( The String is: how now brown cow Number of ' ' is 3 Number of 'b' is 1 Number of 'c' is 1 Number of 'h' is 1 Number of 'n' is 2 Number of 'o' is 4 Number of 'r' is 1 Number of 'w' is 4)   my code:  public static void main(String[] args) {      String str = "how now brown cow";      char[] char_array = str.toCharArray();      System.out.println("The String is: " + str);      Map<Character, Integer> charCounter = new TreeMap<Character, Integer>();      for (char i : char_array) {          charCounter.put(i,charCounter.get(i) == null ? 1 : charCounter.get(i) + 1);      }      for (Character key : charCounter.keySet()) {         System.out.println("Number of '" + key + "' is  "+ charCounter.get(key));     }  }


I still cannot fully comprehend the essence of a critical point on phase diagrams.   It is usually said in textbooks that the difference between liquid and gaseous state of a substance is quantitative rather than qualitative. While it is easy to understand for a liquid-solid transition (symmetry breaking is a qualitative change), it is unclear to me what meaning does it have for a liquid and its gas: there is always a quantitative difference between a gas at 300 $K$ and at 400 $K$.   Is it correct to say just "this substance is in gaseous state"? Shouldn't we also specify the path on the phase diagram by which the substance got in its current state? Did it cross the boiling curve or went over the critical point and never boiled? Why does a critical point even exist? Blindly, I would assume that either there is no boiling curve at all - since the difference is quantitative, the density of a substance smoothly decreases with temperatures and increases with pressure; or that the boiling curve goes on to "infinity" (to as high pressures and temperatures as would remain molecules intact). Why does it stop?


where can i download ubuntu 14.04.1 lts server?

I am trying to install 14.04.1 version I am getting software installation failed error.where can I find this version in google


Expansion in $\epsilon$ and $v^2$ dependence of the Lagrangian - Landau & Lifshitz's Mechanics

On page 4 of Landau & Lifshitz's Mechanics they say  $$L\left({v^\prime}^2\right) = L\left(v^2 + 2\bf{v \cdot} \bf{\epsilon} + \epsilon^2\right).$$  Expanding this expression in powers of $\epsilon$ and neglecting terms above the first order, we obtain $$L\left({v^\prime}^2\right) = L\left(v^2\right) + \frac{\partial L}{\partial v^2}2~\bf{v \cdot} \epsilon\,.$$  and then on the next line:  The second term on the right of this equation is a total time derivative only if it is a linear function of the velocity $\bf v$  What is the meaning of this statement? This being a total time derivative would say $ \frac{\partial L}{\partial v^2}2\bf{v \cdot} \epsilon = C(t)$.  Where do we get a linear function of $\bf v$ from this? EDIT: The first part can be found at   , &


How to parameterize the ratio of two normally distributed variables, or the inverse of one?

Problem: I am parameterizing distributions for use as a priors and data in a Bayesian meta-analysis. The data are provided in the literature as summary statistics, almost exclusively assumed to be normally distributed (although none of the variables can be < 0, some are ratios, some are mass, and etc.).   I have come across two cases for which I have no solution. Sometimes the parameter of interest is the inverse of the data or the ratio of two variables.      Examples:    the ratio of two normally distributed variables:  data: mean and sd for percent nitrogen and percent carbon  parameter: ratio of carbon to nitrogen.  the inverse of a normally distributed variable:  data: mass/area parameter: area/mass    My current approach is to use simulation:  e.g. for a set of percent carbon and nitrogen data with means: xbar.n,c, variance: se.n,c, and sample size: n.n, n.c:  set.seed(1) per.c <- rnorm(100000, xbar.c, se.c*n.c) # percent C per.n <- rnorm(100000, xbar.n, se.n*n.n) # percent N   I want to parameterize ratio.cn = perc.c/perc.n  # parameter of interest ratio.cn <- perc.c / perc.n   Then choose the best fit distributions with range $0 \rightarrow \infty$ for my prior   library(MASS) dist.fig <- list() for(dist.i in c('gamma', 'lognormal', 'weibull')) {     dist.fit[[dist.i]] <- fitdist(ratio.cn, dist.i) }   Question: Is this a valid approach? Are there other / better approaches?  Thanks in advance!  Update: the Cauchy distribution, which is defined as the ratio of two normals with $\mu=0$, has limited utility since I would like to estimate variance. Perhaps I could calculate the variance of a simulation of n draws from a Cauchy?  I did find the following closed-form approximations but I haven't tested to see if they give the same results...  $$\hat{\mu}_{y:x} = \mu_y/mu_x + \sigma^2_x * \mu_y  / \mu_x^3 + cov(x,y) * \sigma^2_x * \sigma^2_y / \mu_x^2$$ $$\hat{\sigma}^2_{y:x} = \sigma^2_x\times\mu_y / mu_x^4 + \sigma^2_y / mu_x^2 - 2 * cov(x,y) * \sigma^2_x * \sigma^2_y / mu_x^3$$  Hayya, J. and Armstrong, D. and Gressis, N., 1975. A note on the ratio of two normally distributed variables. Management Science 21: 1338--1341


I have the plugin which have constant defined, i will call this plugin PLUGIN A:  if ( ! defined('BLA')){     define('BLA', 'http://google.com);  }   I want to make another plugin PLUGIN B which will define constant BLA before PLUGIN A. Is that possible? I guess Wordpress needs to read PLUGIN B before PLUGIN A, but in which order Wordpress is reading plugins?


I am having a challenge with how MSOffice deals with number formats.   While I believe this is similar root cause to:   It is different as this is not a date format and this involves both Excel and PowerPoint with VBA.  I have data that I am pulling out of a dB into CSV files and I am doing a .Replace on certain text markers (e.g. @@ReplaceText@@) in a PPT template. (There is a good post on the site on how to do this I can't seem to locate now)  There is one field I need to deal with which is tracking a metric, this field is text in my dB, but it can contain special characters - specifically $ and %.  e.g. I could see the following values in the CSV file: "increase market share","1234","$10","28%"    I want VBA to treat this all as text, so the % and $ characters are maintained...but...  Excel reads the data as a number and keeps the $ or % sign. PowerPoint removes the $ or % sign and converts 28% to 0.28 and $10 to 10.  Per the above question, adding "=""28%""" to the .csv in Excel, will give me that exact literal text in PowerPoint.  Adding a preceding space or ' character works in forcing Excel to read the data as text string. But PowerPoint ignores it and behaves same as above. Eg 28% to 0.28.   I tried using FORMAT as below, but because the data is variable, I don't know which case to apply.  sCurrentText = Format(sCurrentText, "$#")  or  sCurrentText = Format(sCurrentText, "0.0%")  If statements don't work because the $ or % are not present in what VBA sees (e.g the $ or % character is already gone)  If sCurrentText Like "*$*" Then or If sCurrentText Like "*%" Then  So my question is how do I force VBA to take what is in the CSV file as text and ignore processing $ or % as special characters and just maintain them in the CSV?


Why would you want to use a transformation function?

I am trying to understand the benefits of transformation functions. Mainly, I am trying to understand the kick / the motivation to even attempt a transformation function on a sample data being analyzed. So, below I have 2 scatter plots of the same dataset.   The first plot is carat v/s price:    The second plots is log(carat) v/s log(price):    Yeah, it is true that the second plot gives a more straight line as compared to the first scatter plot. But can we deduce something here? Could you give an example/case where the second graph could be useful? One thing that shadows my approach towards transformation is that, why would anyone want to study log(carat) vs log(price), when in real life, carat and price occur?


Evaluate this multiple integral inside a limit:  $$\lim_{n\to\infty} \underbrace{\int_{0}^{1}\cdots \int_{0}^{1}}_{n}\frac{ \sum _{k=1}^{n}x_k^{505}}{\sum_{k=1}^{n}x_k^{2020}} \mathrm d x_1\cdots \mathrm dx_n$$  Someone sent me this question and apparently it was from a very hard competition/exam. I couldn't evaluate this with any techniques that I know of (my knowledge is very limited) and I have also posted this question on my Instagram account to see if anyone could evaluate it, but unfortunately still no one could evaluate it.   Since there are many people who are really good at mathematics here and it is relatively easier to gain attention here than Instagram, I would want to see if anyone can evaluate it. Probably this expression would need an advanced technique that I don't know of or an unexpected trick to evaluate. Hopefully I can learn something from this post!  Edit: some comments suggested that intuitively it would evaluate to $\frac{2021}{506}$ with similar techniques used in the evaluation of a similar integral: $$\lim_{n\to\infty} \underbrace{\int_{0}^{1}\cdots \int_{0}^{1}}_{n}\frac{ \sum _{k=1}^{n}x_k^{2}}{\sum_{k=1}^{n}x_k} \mathrm d x_1\cdots \mathrm dx_n=\frac{2}{3}$$ That question is linked to this one and it would be a good idea to have a look at the techinques used there to see if it could be implemented here.   More information: Now I think this integral doesn't involve any techniques in multivariable calculus but instead some techniques from probability theory (which I don't fully understand yet) but I really want to see the solution and learn something from it.


Fasboot Devices not getting attached XIAOMI MI A3

I have the Xiaomi Mi A3 and I'm currently on both phone and PC latest stock update. I am using Windows 10 20H2 and I have tried everything – but still don't get it. I tried another Mi A3 and it got attached normally. I've tried installing all kind of drivers and different ports, nothing. When suddenly it worked and I installed the stock ROM – but because the stock ROM is kinda laggy and ugly I want to change it. But I can't because I am also on stock recovery and I can't install another recovery because my device isn't recognized in fastboot mode. My device is recognized in adb mode and in edl mode as well, only not in fastboot.


Proof involving fibonacci number: $ \binom{n}{1}F_1+\binom{n}{2}F_2+\binom{n}{3}F_3+\cdots+\binom{n}{n-1}F_{n-1}+F_n=F_{2n}, $

Problem: Prove that $$ \binom{n}{1}F_1+\binom{n}{2}F_2+\binom{n}{3}F_3+\cdots+\binom{n}{n-1}F_{n-1}+F_n=F_{2n}, $$ where $F_n$ denotes the $n$th Fibonacci number.   I tried induction, but I didn't know what to do for $n=k+1$.


shell script header for best compatibility

Which one is better:   #!/usr/bin/env sh #!/bin/sh empty/no header   I used to think the 1st one is the best, anyway i've found on some Linux-based systems (like Android) that pathname is missing, so now i'm thinking the only way to have "portable" shell scripts is to not include any header...


I'm not sure if this feature is present on the Android app.


"A Man Named "Rand" Thinks He Can Be President"

Why is there no article (a or the) in front of "President"? Is the title grammatically correct?   to Gawker.com


Socket is returning null when executing isConnected()

I'm trying to connect to a socket and then check if it is connected. My problem is that my socket IS connecting but when I ask if it is, it returns null.  How I'm getting my connection:  package main;  import java.io.IOException; import java.net.Socket;  public class getIrcConnection {      String Server = "tmi.twitch.tv";     int Port = 80;      declars declars = new declars();      public getIrcConnection() throws IOException{      this.declars.socket = new Socket(Server, Port);      }  }   Where my socket is stored:  package main;  import java.net.Socket;  public class declars {      Socket socket;  }   How I'm checking the connection:  package main;   public class checkIrcConnection {      declars declars = new declars();      public checkIrcConnection() {          if (this.declars.socket.isConnected()) {                    System.out.println("Connected");              }        }  }   All of this is beeing executed in the main method:  package main;  public class Main {      public static void main(String[] args) throws Exception {          getIrcConnection gic = new getIrcConnection();          checkIrcConnection cic = new checkIrcConnection();      }  }


Sometimes you just want to let out some steam, and troll about some technology or software. You are not looking for any answers, but for users with similar experiences and interesting stories. So why not create a separate discussion site (trolling.stackoverflow.com?), where you could ask questions like "why do you hate technology X" or "What are the stupidest bugs you encountered in X"?


When can we change the order of the particle and the verb in a phrasal verb?

My textbook says this:     Be careful with word order when using phrasal verbs. The   verb and particle cannot be separated:         when it is a three-part phrasal verb   I caught up with Jack further down the road.   if the phrasal verb is used intransitively (without   an object)   All my hard work paid off.   when the particle is a preposition   Sally jumped at the chance of visiting Rome.      I'm confused because I thought this last topic was always true.  When is a phrasal verb not followed by a preposition?  All the phrasal verbs I can remember use a preposition.


Effect of row operations on determinant for matrices in row form

I understand that adding a multiple of one row to another in a matrix has no effect on the determinant, which seems to contradict something I learned earlier: if I understand correctly, for a $n\times n$ matrix with rows $[v_1, v_2, v_3,\ldots v_n]$,  $$\det[v_1+v_1', v_2, v_3,\ldots v_n]=\det[v_1, v_2, v_3,\ldots v_n]+\det[v_1', v_2, v_3,\ldots v_n].$$  Thanks for the clarification!