I am attempting to write several parts of code that work together to show Classic formatted list views (with pages to click through) in Lightning and am barely knowledgable in HTML, CSS and sort of understand Apex. I've been instructed that I need: 1) Apex Class 2) Apex Test Class 3) Apex Controller 4) Apex Test Controller 5) Visualforce Page -and- 6) Component.  I've been able to get basic outlines for all except the Apex Test Class, and no matter what I try, I keep receiving error "Add test methods to your test class."  Can someone please help fix this test class?   Thank you, Kristen  Apex Class: NitishContactListViewClass  public class NitishContactListViewClass { public List<SelectOption> listViewNames{get; set;} public String conFilterName{get; set;}  public NitishContactListViewClass(ApexPages.StandardController controller){     String q = 'SELECT Name FROM Contact LIMIT 1'; //Any object whose list view you are trying to retrieve.     ApexPages.StandardSetController ACC = new ApexPages.StandardSetController(Database.getQueryLocator(q));     List<SelectOption> ListViews = ACC.getListViewOptions();     listViewNames = new List<SelectOption>();     for(SelectOption w : ListViews ){         listViewNames.add(new SelectOption(w.getLabel(), w.getLabel()));     } }  public PageReference resetFilter() //Dummy function {     return null; }  }   Apex Test Class: NitishContactListViewClass  @isTest     public class NitishContactListViewClassTest {  @isTest static void NitishContactListViewClass() {     listViewNames = new List<SelectOption>(00B60000005aJl1EAE)     System.assertEquals("My Contacts", listViewName );    }   }


Convergence of $\sum \frac{a_n}{S_n ^{1 + \epsilon}}$ where $S_n = \sum_{i = 1} ^ n a_n$

Let $a_n$ be a sequence of positive reals, such that the partial sums $S_n = \sum_{i = 1} ^ n a_i$ diverge to $\infty$. For given $\epsilon > 0$ do we have $$\sum_{n = 1} ^ \infty \frac{a_n}{S_n^{1 + \epsilon}} < \infty?$$  For $\epsilon \ge 1$ we can resolve this quickly by noting $$\frac{a_n}{S_n ^ 2} \le \frac 1 {S_{n - 1}} - \frac 1 {S_n}$$ so for sufficiently large $n$ we can bound $\frac{a_n}{S_n^{1 + \epsilon}}$ by $\frac 1 {S_{n - 1}} - \frac 1 {S_n}$ as well. I'm wondering if this is true for arbitrary $\epsilon > 0$. I know that the series in question diverges for $ \epsilon = 0$, so all that is missing is what happens in $(0, 1)$.


6.) Scenario – You are playing a guessing game with your little cousin.  She wants you to guess her favorite color.  Create a program using the While loop. Below is a code I'm writing  but having  trouble with the while loop.  package loopscenario; import java.util.Scanner; import java.util.Random; /**  *  * @author macbook  */ public class LoopScenario6 { public static void main(String[] args) {  String blue = null;  String yellow = null ;  String red = null;  String pink = "pink";  String favoriteColor = null;   Scanner keyboard = new Scanner(System.in);  Random randomNumber = new Random();  Random aRan = new Random();    while (!favoriteColor.equalsIgnoreCase(pink))       if (favoriteColor.equalsIgnoreCase(blue))      {          System.out.println("Wrong color. Please try again.");      }      else if( favoriteColor.equalsIgnoreCase(yellow))      {        System.out.println("Wrong color. Please try again.");        }      else if ( favoriteColor.equalsIgnoreCase(red))      {       System.out.println("Wrong color. Please try again.");           }     else       {       System.out.println("Yes!");           }     } }


Irreducible factors of number in $\Bbb Z[\sqrt{3}]$

So I have to give a irreducible factor decomposition of $11$ in $\Bbb Z[\sqrt3]$. I know that I have to use factors of the form $(a+b\sqrt{3})$ but I don't know how to do it :(


Can't switch between input languages in MATE

Just today I installed MATE over Unity because I needed to fix some compatibility problems with my drivers, so it's very safe to say I'm not the least bit used to it. One thing I notice is that whenever I try to switch between input languages, while I get a notification telling me the language has been changed, nothing is actually different.    TL;DR version: How do I switch input languages in MATE?


I have a .bib file as following:  %% This BibTeX bibliography file was created using BibDesk. %% http://bibdesk.sourceforge.net/ %% Saved with string encoding Unicode (UTF-8)   @book{marcu2000theory,     Author = {Marcu, Daniel},     Date-Added = {2013-02-12 04:56:47 +0000},     Date-Modified = {2013-02-12 04:56:47 +0000},     Publisher = {MIT Press},     Title = {The theory and practice of discourse parsing and summarization},     Year = {2000}}   My Latex file:  \documentclass{article} % For LaTeX2e \usepackage{graphicx} \usepackage{url} \usepackage{natbib}  \title{T}  \begin{document} \maketitle \cite{marcu2000theory} \citeauthor{marcu2000theory}  \bibliography{DPSurvey} \bibliographystyle{plain}  \end{document}   However, I always got the warning:  Author undefined for citation`marcu2000theory' (natbib) on page 1   Could someone point out the mistake?


Are total reputation points adjusted from time to time?

I’ve noticed that, from time to time, my total reputation points are changed, generally for small  amounts: 5, 10 or 20 points for instance. The issue is not the adjustment itself but I wonder  how that comes about. There is no evidence of these adjustments in  “reputation” or “votes” summaries such as “user was removed” and the like. Apparently no visible action was taken. So my question is, are there reputation adjustments possibly made by the system, probably on old posts, that result only  in the change in the total reputation count  without any visible action to users?


For the past 5 days or so something has been accessing my HDD

Something has been accessing my 256GB SSD on my Windows 7 -64 bit computer in the past 5 days like crazy and and i did a wipe and reload 1 and a half months ago so not a lot of software has been on it and I don't know what it is is there anyway to see what it is Ty.


Badges icons are displayed per current SE website, not per SE website you earned that badge in

In my "Achievements" panel I can see that I have earned a badge for a question in StackOverflow. However if I'm in another website from the StackExchange Network the badge changes its icon according to the website I'm visiting. Screenshot applied - I'm in Travel.SE.   Is it by design? :)


A composition of a periodic function that is somehow not periodic.

Is there some g for which g(x mod 1) is not periodic? If so, please tell me what it is.


Redirect all traffic to https apart from a single URL with Apache

I want all traffic to the non-https example.com and www.example.com to be redirected to the https www.example.com with the exception of a certain path, i.e.   , /import/XXX, /import/YYY should stay http.  At the moment, I'm using the following to redirect all non-https traffic to https.  <VirtualHost *:80>         ServerName www.example.com          Redirect permanent / https://www.example.com/ </VirtualHost>   Which I think is where most of my problems are coming from when I try and do rewrites as I end up in a loop.  Update  I've enabled mod_rewrite logging and got the result:  ... (2) init rewrite engine with requested uri /import/batch_name ... (3) applying pattern '^(.*)$' to uri '/import/batch_name' ... (1) pass through /import/batch_name ... (3) [perdir /var/www/] add path info postfix: /var/www/import -> /var/www/import/batch_name ... (3) [perdir /var/www/] strip per-dir prefix: /var/www/import/batch_name -> import/batch_name ... (3) [perdir /var/www/] applying pattern '^' to uri 'import/batch_name' ... (3) [perdir /var/www/] add path info postfix: /var/www/import -> /var/www/import/batch_name ... (3) [perdir /var/www/] strip per-dir prefix: /var/www/import/batch_name -> import/batch_name ... (3) [perdir /var/www/] applying pattern '^' to uri 'import/batch_name' ... (3) [perdir /var/www/] add path info postfix: /var/www/import -> /var/www/import/batch_name ... (3) [perdir /var/www/] strip per-dir prefix: /var/www/import/batch_name -> import/batch_name ... (3) [perdir /var/www/] applying pattern '^' to uri 'import/batch_name' ... (3) [perdir /var/www/] add path info postfix: /var/www/import -> /var/www/import/batch_name ... (3) [perdir /var/www/] strip per-dir prefix: /var/www/import/batch_name -> import/batch_name ... (3) [perdir /var/www/] applying pattern '(^|/)\.' to uri 'import/batch_name' ... (3) [perdir /var/www/] add path info postfix: /var/www/import -> /var/www/import/batch_name ... (3) [perdir /var/www/] strip per-dir prefix: /var/www/import/batch_name -> import/batch_name ... (3) [perdir /var/www/] applying pattern '^' to uri 'import/batch_name' ... (2) [perdir /var/www/] rewrite 'import/batch_name' -> 'index.php' ... (3) [perdir /var/www/] add per-dir prefix: index.php -> /var/www/index.php ... (2) [perdir /var/www/] strip document_root prefix: /var/www/index.php -> /index.php ... (1) [perdir /var/www/] internal redirect with /index.php [INTERNAL REDIRECT] ... (2) init rewrite engine with requested uri /index.php ... (3) applying pattern '^(.*)$' to uri '/index.php' ... (2) rewrite '/index.php' -> 'https://www.example.com/index.php' ... (2) explicitly forcing redirect with https://www.example.com/index.php ... (1) escaping https://www.example.com/index.php for redirect ... (1) redirect to https://www.example.com/index.php [REDIRECT/301]


How to apply for US passport card when I already have passport book?

I have a US passport book, and I would like to apply for a US passport card (to have in addition to my passport book).  If I apply using form DS-82, submitting my current passport book as proof of citizenship, does it get returned to me still valid, or does it get cancelled?  Is it possible to apply for a passport card using form DS-11 and avoid sending in my current valid passport book (submitting a birth certificate instead)?  I would prefer answers with official sources, which I have not been able to find myself on the US State Dept website or on the forms themselves (which are written quite ambiguously).


Surjectivity of natural morphism between multiplicative modulo groups

Let $n$ be an integer and $d$ be a divisor of $n$. Then there is a natural group homomorphism: \begin{align}\varphi:(\mathbb{Z}/n\mathbb{Z})^{\times} &\to (\mathbb{Z}/d\mathbb{Z})^{\times}\\ [x] &\mapsto [x] \end{align} I want to know whether $\varphi$ is surjective. This may be a silly question, but I don't know where to look for the answer. Any help would be appreciated.


I teach English   It happens periodically, time to time, every monday and so on. Present SImple     I am teachining English   1) It is happening right now, I am in the class 2) It's a current period of time when I am doing it.  But even if it's a period of time, anyway it happens time to time, periodically.  I may be 97 and I say:     I teach English   I consider this action like a repeating over and over one  I can also say:     I am teaching English   having meant all my life I've been doing it like one huge period.  What's the difference then of their usages?


My PC got corrupted and is showing the message: "Diagnosing Your PC", "Preparing for Automatic Repair".  I have tried to troubleshoot it by various means but to no avail.  Now I have decided to reinstall windows 10 operating system on my PC.  However, when I am trying to search for the product key of my PC using command prompt typing the command:  wmic path softwarelicensingservice get OA3xOriginalProductKey   The command prompt displays the following message:  ERROR: Description = Not found   How can I get the product key of my PC using command prompt if my PC is corrupted?  Is there any other way by which I can get access to my product key?   P.S: I don't have a Microsoft account.


Ubuntu 16.04 wifi not connecting  Wifi not connecting on Ubuntu 16.04. When I go to network settings to turn the wifi toggle on it immediately toggles back to off.   I've tried   $ sudo service network-manager restart   as well as multiple other suggestions but nothing seems to work ...  This is what I got when I typed   $ sudo lshw -C network   into the terminal...  description: Ethernet interface        product: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:07:00.0        logical name: enp7s0        version: 0a        serial: ec:b1:d7:df:8d:40        size: 100Mbit/s        capacity: 100Mbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full firmware=rtl8107e-2_0.0.2 02/26/15 ip=10.50.18.72 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s        resources: irq:48 ioport:3000(size=256) memory:c3104000-c3104fff memory:c3100000-c3103fff   *-network DISABLED        description: Wireless interface        product: Wireless 3160        vendor: Intel Corporation        physical id: 0        bus info: pci@0000:08:00.0        logical name: wlp8s0        version: 83        serial: 34:e6:ad:9b:9c:63        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless        configuration: broadcast=yes driver=iwlwifi driverversion=4.4.0-47-generic firmware=16.242414.0 latency=0 link=no multicast=yes wireless=IEEE 802.11abgn        resources: irq:52 memory:c3000000-c3001fff  I don't think the card is recognised with ifconfig   enp7s0    Link encap:Ethernet  HWaddr ec:b1:d7:df:8d:40             inet addr:10.50.18.72  Bcast:10.50.31.255  Mask:255.255.240.0           inet6 addr: fe80::18b2:f378:6027:7c2b/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:15630 errors:0 dropped:0 overruns:0 frame:0           TX packets:7899 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:6370690 (6.3 MB)  TX bytes:1605183 (1.6 MB)  lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:65536  Metric:1           RX packets:2709 errors:0 dropped:0 overruns:0 frame:0           TX packets:2709 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1            RX bytes:217671 (217.6 KB)  TX bytes:217671 (217.6 KB)   but I think it's recognised in $ sudo lspci -vnn    08:00.0 Network controller [0280]: Intel Corporation Wireless 3160 [8086:08b3] (rev 83)     Subsystem: Intel Corporation Dual Band Wireless AC 3160 [8086:8070]     Flags: bus master, fast devsel, latency 0, IRQ 52     Memory at c3000000 (64-bit, non-prefetchable) [size=8K]     Capabilities: [c8] Power Management version 3     Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+     Capabilities: [40] Express Endpoint, MSI 00     Capabilities: [100] Advanced Error Reporting     Capabilities: [140] Device Serial Number 34-e6-ad-ff-ff-9b-9c-63     Capabilities: [14c] Latency Tolerance Reporting     Capabilities: [154] Vendor Specific Information: ID=cafe Rev=1 Len=014      Kernel driver in use: iwlwifi     Kernel modules: iwlwifi  Edit: $ rfkill list prints   0: acer-wireless: Wireless LAN     Soft blocked: yes     Hard blocked: no 1: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no 2: hci0: Bluetooth     Soft blocked: no     Hard blocked: no   I'd greatly appreciate any help, Thanks in advance.


How to revert a feature in hook_update programatically?

I've created a feature to update a menu. Then in my deploy module, I did this:  function phoenix_deploy_update_7106() {   $feature_list = array(     'campus_dropdown',   );   features_revert($feature_list); }   but then running drush updb -y on the staging site, doesn't enable my new menu items.  Have I gotten the commands right to revert the feature?


I submitted the revised version of my paper to a journal. after two weeks the paper status changed from under review to reviews completed. and still remains in this state about 10 days. What do you think is the decision on my paper? Reject or accept?


Is my passport damaged and can't be used for visas and travel?

This morning, I went to submit my documents at the VFS office. The VFS officer informed me that my passport looks damaged. Until she said that, I never noticed anything abnormal. My pages are holding good, my cover is intact. The only thing I noticed was there is a bit of gap between first and second page at the top.  I went ahead and submitted my passport, with an undertaking letter. Hopefully, my visa will come through fine.   Does this count as damaged? In case my visa is approved, is it advisable to apply for new passport before travel?


How to combine two list of lists to a new list

I have a problem like this. I have two lists, A and B, where A=[[1,2],[3,4],[5,6]] and B=[["a","b"],["c","d"]], I would like to got a new list from these two like   C = [      [[1,2],["a","b"]],      [[3,4],["a","b"]],      [[1,2],["c","d"]],      [[3,4],["c","d"]]     ]   I had try the following code:  A = [[1,2],[3,4]] B=[["a","b"],["c","d"]] for each in A:     for evey in B:         print each.append(evey)   However, the output is None.   Any helpful information are appreciated. Thank you.  By the way, I had try to replace the "append" with simple "+". The output is a list which elements are not list.


Apparating within Hogwarts in the Half-blood Prince

Here's something that has me confused.  In the Half-blood Prince, an elaborate plan was made to sneak the Death-eaters into Hogwarts to kill Dumbledore. Draco took his time to devise the plan by using the Vanishing cabinet in the RoR. In the movies, there isn't much explanation but the book mentions that Draco found out about the vanishing cabinet from a boy who was stuck between the pair of vanishing cabinets and how he managed to apparate out of it.  According to HP wikia (here: ):     Fred and George Weasley shoved Graham Montague headfirst into the   broken cabinet on the first floor of Hogwarts when he tried to take   points away from them. Montague eventually escaped (by Apparating) and   was found in a toilet's u-bend by Draco Malfoy, who summoned Professor   Snape for help. Montague revealed the previously unknown powers of the   Cabinets to Draco.   How could someone apparate within the school when there were a bunch of enchantments to avoid the very same thing. Because when Dumbledore apparated with Harry to retrieve the horcruxes, he clearly mentions that he lifted the enchantments temporarily.   And if there weren't, why couldn't the Death-eaters (or anyone else) apparate their way into the school?


How to prove this? $ \lim_{x \to 0}\frac{e^x-1}{x}=1 $

Any idea how do I prove the following?  $$  \lim_{x \to 0}\frac{e^x-1}{x}=1 $$  Thanks


There is a TV show by this name. And I heard someone saying it too. I googled its meaning but the effort went in vain.


How can we add a kernel to grub2? i knew the stuff we could do with the former versions, but it seems to have changed. What files should we edit?


Close a window from view model using MVVM light

I have created a view (userControl), with a data entry form. I also have a view model bound to it with all the logic. When the button is pressed it sends the data off to the server (I'm using a RelayCommand for the button) via a ButtonCommand() Method i created.  At the end of this method i want to do a:  this.Close()   but obviosly as "this" isn't referring to the view, it doesnt work.  Is there any way of closing the window without using Codebehind the view?  Thanks in advance


Do you take off luggage tag for return flight and out new one on?

Will be flying with easy jet and was wondering for retuning flights the old luggage tag we have on are suitcase. should we take them off before arriving at the airport to return home or leave it as the person will do it for us anyways? Im guessing even at self check in they will have someone who will make sure that old tags are taken off and that the new one is correctly done etc?


I am building a web app and I use am using a lot of include files to build most of my pages.   For example:  The page profile.php includes about.php, timeline.php, photos.php  Now, I want to send a user to my 404 page if they try to go to one of my include files directly. How can I do this?  Going to localhost/timeline.php should redirect the user to the 404.  My thought was to write an IF Statement in those include files that checks to see if the file is being opened directly, is that even possible?


Second option if str.index does not exist

if I have a str and the I use str.index(char) and the char does not exist, is it possible with one line to assign another char to the variable?  Maybe like this  str = "bar/foo"  t = str.index("_") | "Empty"   str dosen't contain _ , so the string "Empty" should be assigned instead.


Why is "no" used instead of "yes" in this conversation?

Monica: Is he not cute enough for you?      Rachel: No!      Monica: Does he not make enough money?      Rachel: No, I'm just....   The conversation is taken from Season 1 Episode 24 of the sitcom Friends.  Rachel is worried that she and Monica's brother Ross might not work out. Then Monica is asking why.  Both of Rachel's responses are No's. Judging from the context, it is obvious that Rachel thinks Ross is cute enough and does make enough money.  But, why does she answer with two No's instead of two Yes'es?  To me, No means no, he is not cute enough in the first answer and no, he does not make enough money in the second answer, which is absolutely NOT the intended interpretation.  No is more likely to mean "No, that's not my concern".  Am I correct? Anybody is equally confused as me?


Despite the fact that I didn't run any chmod or chown commands, I seemed to have lost the ability to cd into some folders in my home directory. So I ran according to various answers on this forum since I have no clue about linux permissions:  sudo chmod -R 666 /home/rasmus/ sudo chown -c rasmus /home/rasmus/ sudo chown rasmus:rasmus /home/rasmus/ chmod 750 /home/rasmus/ sudo chown -R rasmus:rasmus /home/rasmus/ sudo chmod a+rx /home sudo chmod u+w /home   leaving my home dir in this state:  10:57:35: 8𝌆𝌆𝌆D:[~] ls -l total 52 drw-rw-rw- 2 rasmus rasmus 4096 Apr 15 10:43 catkin_ws/ drw-rw-rw- 2 rasmus rasmus 4096 Apr 14 16:31 Desktop/ drw-rw-rw- 3 rasmus rasmus 4096 Apr 15 09:31 Documents/ drw-rw-rw- 4 rasmus rasmus 4096 Apr 14 14:55 dotfiles/ drw-rw-rw- 3 rasmus rasmus 4096 Apr 14 15:27 Downloads/ -rw-rw-rw- 1 rasmus rasmus 8980 Apr 14 14:03 examples.desktop drw-rw-rw- 2 rasmus rasmus 4096 Apr 14 16:31 Music/ drw-rw-rw- 2 rasmus rasmus 4096 Apr 14 16:31 Pictures/ drw-rw-rw- 2 rasmus rasmus 4096 Apr 14 16:31 Public/ drw-rw-rw- 2 rasmus rasmus 4096 Apr 14 16:31 Templates/ drw-rw-rw- 2 rasmus rasmus 4096 Apr 14 14:22 Videos/   Apparently, I can read the folders, but not cd into them:  10:58:54: 8𝌆𝌆𝌆D:[~] ls Desktop/ 10:58:58: 8𝌆𝌆𝌆D:[~] cd Desktop/ bash: cd: Desktop/: Permission denied   What do I need to do to fix this?


Suppose $f$ and $g$ are continuously differentiable functions such that $f(x) = g'(x)$ and $g(x) = f'(x)$ and that any product of $f, f', g$ and $g'$ is commutative for all $x ∈ R$. Show that $ f^2 − g^2 = C $ for some real constant C  I have actually no clue how to solve this, and would be really greatfull for all the help i can get


How can I withdraw a publication from a predatory (fake) journal and resubmit to a legitimate journal?

I have published a paper in a fake journal. I want to withdraw the paper from that journal.   After successful withdrawal from the fake journal, can I can submit the same paper to a legitimate journal?


Does having free will presuppose consciousness, can philosophical zombies have it?

Philosophical zombies may lack a consciousness, but does this preclude the ability to have a free will? Why does consciousness matter, for agency, or at all, if determinism is real?   (I've framed the question, as such, to make room for more than a Hume answer to my inquiry.)


How can I easily share links or text between my Android phone and my laptop?

For example, if I have a URL for an image from my laptop's browser that I want to share with a WhatsApp contact, what is the easiest way of doing this? The only way I can think of is to copy the URL, paste it into an email to myself, open the email, copy the URL and then paste it into WhatsApp.


Where to download Flash Player for offline installation?

I can't find Flash Player download link which will give me the full EXE/MSI file, not the tiny downloader which downloads data from the internet.  What's the proper download site for this?


What is wrong with this statement? 'Unknown column'?

I'm not used to the 'as' keyword and I thought it would be a nice idea to use it. So why do I get an 'unknown column' (eid) error? I use mysql...  select t1.index as eid, t1.col1 as col1, t1.col2 as col2,  t2.index, t2.col1, t2.col2, t3.index, t3.col1, t3.col2  from table1 t1  left join table2 t2 on t2.index=eid left join table3 t3 on t3.index=eid;   The full statement is too long to present here without boring everybody.  The column and table names are random.


I am programming  using UnityEngine;  public class playermove : MonoBehaviour {     public float moveSpeed=5f;      // Update is called once per frame     void Update()     {         jump();         Vector3 movment = new Vector3(Input.GetAxis("Horizontal"),0f ,0f);         transform.position += movment * Time.deltaTime * moveSpeed;      }      void jump()      {         if (Input.GetButtonDown("jump"))          {             GameObject.GetComponent("RigidBody2D")().AddForce(new Vector2(0f,5f),ForceMode2D.Impulse);         }     } }   and I am getting this problem:  (15,1): error CS0120: An object reference is required for the non-static field, method, or property 'GameObject.GetComponent(string)'


I was reading a few proofs for the Sherman-Morrison Formula, which states that if $A$ is invertible and $M = A + \mathbf{u}\mathbf{v}^T$, then $M^{-1}$ is given by:  $$A^{-1} - A^{-1}\mathbf{u} \mathbf{v}^T A^{-1}/(1+\mathbf{v}^TA^{-1}\mathbf{u}).$$  There is a proof (verification) of this on  as well as here but both of them do not justify why $(1+\mathbf{v}^TA^{-1}\mathbf{u})$ is a scalar. Why is it a scalar?  Basically I am trying to somewhat rigorously proof this formula without too many assumptions. Can I proof the formula without assuming it is true? I.e. only using the facts that $A$ is invertible and $M = A + \mathbf{u}\mathbf{v}^T$?


Unsatisfying user experience of the new mobile UI on desktop computer

The problem: recently the UI for the Stack Exchange chat switched to mobile even in my browser on the notebook. While the UI might work fine for tablets and phones, it has some serious drawbacks on conventional systems, namely on computer w/o touchscreen and conventional keyboard.  Likewise, I was unable to find a configuration option to keep using the old style of the chat, which had tons of advantages on a traditional computer, like users, and favorite messages in the sidebar etc.  The most annoying part is that the new UI forces me to use the mouse to click "send" on every message, because hitting "Enter" only adds a \n to the multiline input field.  Is there any possibility to keep using the old chat (which I greatly preferred on the notebook) or at least a configuration option that enables "send on enter" in the mobile UI?


What is the remainder when $24^{1202}$ is divided by $1446$?

I tried remainder theorem but that does not simplify it.   I tried factorizing $1446$ as $2\cdot3\cdot241$ and got remainders when numerator is divided by $2,3$ and $241$ individually but then I did not know what to do next? Stuck!


Who is the Lord, as referred to in the title? Frodo? Sauron? Someone else? Or is it more of an abstract title, not referring to a single person, like "He who wields the One Ring"?


For TensorFlow I would like to install CUDA. How do I do that on Ubuntu 16.04?


How can I avoid being classified as spammer when I forward mail to a gmail account?

Update: The link pointed to by the "duplicate" initially didn't seem like the same problem to me, because the post talked about blacklisted "domains" not blacklisted "IP addresses."  However the main solution is the same: If you are going to forward to Google, you need to install an anti-spam solution of some sort. Even if you don't run an open relay, the degree of spam sent to any domain in the world is staggering, and you will be dinged for it.  Integrating Spamassassin, and making sure SPF works for my vanity domains, worked fine for me. I just send anything with a spam score of 5 or higher to /var/spool/spam (I created this directory) rather than forwarding it, and have a cron script that deletes anything in that directory older than 30 days.    previous quesiton  I have a few vanity domain names, some of which have MX records that point to a virtual private server that runs postfix, which in turn forwards email to user accounts at gmail. Unfortunately, internet spam being what it is, Google will tell my postfix that it is rate limiting because of sending a lot of spam. Specifically, the status message mentions that it's the IP that gets a bad reputation. Previous messages I've found have dealt with domains getting a bad reputation.  I've tried following the instructions in the Google postmaster links, but this doesn't really help:  //www.google.com/mail/help/bulk_mail.html  After all -- I'm not the sender; I'm just a mail server operator where users choose to forward email to gmail.  As usual, it is impossible to get to talk to a human being at Google who can help me figure out how to make this work, and gmail doesn't support free vanity domain accounts anymore, so I'm turning to this community of system and network administrators, where perhaps someone else has some good ideas? How can I get mail delivered to my-vanity-domain.com on my-vps-ip.net, and then forwarded to a gmail user account, to not get my-vps-ip.net classified as "spam sender"?


How to get a list all the "aliases" of a file (including of type directory) efficiently?

How can one get the list of all the aliases of a file (including of type directory) efficiently, given that a file:   may have multiple hard links, multipe soft links, multi-level soft links  may be present under a directory which is mounted at another location in the same filesystem may be present under a directory that has link(s) pointing to it; again the links having features mentioned in 1   Could a possible solution be using inodes?


I don't know if this question doesn't answer itself.  Generally, when a binary operation $\circ:S\times{S}\to{S}$ is called associative, it is usually sufficient to state:  $$a\circ(b\circ{c})=(a\circ{b})\circ{c}$$  defines the operation as associative.  I don't know whether, if the above identity holds, it can be proven by induction that all parenthesizations of an expression containing are equivalent. I therefore ask the following in some ignorance:     Are there algebraic objects in which "associativity" holds only up to some finite $n$?   That is:     Are there algebraic objects in which, e.g, $a\circ(b\circ{c})=(a\circ{b})\circ{c}$  holds but $a\circ({b}(\circ{c}(\circ{d})))=(((a\circ{b})\circ{c})\circ{d}$ does not?


Traveler who aims to travel faster to reach better places

I'm trying to remember the title of a short story I read, and of course I don't even remember the author. This is a story about a traveller, a member of some kind of organisation of travellers (almost mystical for some of its members?) who aim to travel always faster, as it seems that this speed makes them go to better places, better countries, some kind of higher existence. There is the legend of a place at the top of all this universe. It is not space travel, everything is happening on Earth, maybe some kind of multiverse even if it is not specifically explained that way from what I remember. The character starts to feel that someone is trying to slow or stop him, so he decides himself to slow his travel to come back to our "level" and goes back to London (not sure about the city) to meet the man who allowed him into this organisation.   At the end the character is in some kind of tree-city, and discovers that the person who was trying to stop him was in fact his contact in London, and that a girl he was suspecting was in fact trying to protect him like some kind of guardian angel. I think that at the end he dies stabbed.  (By the way French is my first language so I'm sorry if I made too many mistakes, and if my corrector allowed too many misspellings, as it is not configured for English.)


what is difference between the two following sentences? And which one is grammatical?  1- If there is a car in the garden, it will be towed away.  2- If there is any  car in the garden, it will be towed away.  Please note that I am making a general statement and thinking of just one car.


How to find out how many people have downloaded from PPAs

How do I find out how many people use a particular PPA.  I see on a particular PPA ;  Package build summary A total of 108 builds have been dispatched for this PPA. Completed builds 108 successful 0 failed  Does that mean only 108 people have added this PPA to their sources list and installed the package?


Is this the right way to use delete[] operator?  int* a=new int[size]; delete[] a;   If yes, Who (compiler or GC or whoever) will determine the size of the newly created array? and where will it store the array size?  Thanks


Domain forwarding (GoDaddy) - Forward only / Forward with masking

I am trying to configure my domain to forward to my app engine application.  For the forwarding I can choose from "forward only" and "forward with masking". Assume my domain is called "myDomain.com" and my app  is located at myApp.appspot.com. If I choose "forward only" and I go to myDomain.com, I get redirect to myApp.appspot.com (myApp.appspot.com also showing in the address bar -> But I want to show myDomain.com of course).  If I choose "forward with masking", "myDomain.com" is always shown in the address bar, even if I navigate to some subpage. The URL then should look like e.g.: "myDomain.com#!page:xyz", but still shows "myDomain.com".  Is there some way in the middle?


Transforming shapefile into raster file in QGIS?

I'd like to transform a shapefile into raster file in QGIS and the opposite way back also (raster to shapefile).   Can you help me?


Biber 2.14 - Puzzling repeated error : "Invalid format '2020-01-01' of date field 'date' - ignoring"

I'm having exactly the same issue as , also using Biber 2.14, albeit I didn't upgrade, downgrade, change TexLive version, change encoding or (seemingly) do anything. It's like Biber suddenly quit parsing dates on me.  Whether the bibfile is encoded in ASCII or UTF-8 makes no difference. Whether the date is a short format or the full YYYY-MM-DD makes no difference. I'm not sure what else to test.  Here's a MWE and the associated .blg file:  \begin{filecontents}{mwe.bib}     @Article{JD2020,         author       = {John Doe},         title        = {A Title},         date         = {2020-01-01},         %date       = {2020}         journaltitle = {Journal},     } \end{filecontents}  \documentclass{article} \usepackage{biblatex} \addbibresource{mwe.bib}  \begin{document}     test\autocite{JD2020}     \printbibliography \end{document}   [1] Config.pm:304> INFO - This is Biber 2.14 [1] Config.pm:307> INFO - Logfile is 'mwe.blg' [154] biber-darwin:322> INFO - === Thu Apr 30, 2020, 11:04:33 [185] Biber.pm:415> INFO - Reading 'mwe.bcf' [354] Biber.pm:943> INFO - Found 1 citekeys in bib section 0 [384] Biber.pm:4256> INFO - Processing section 0 [385] Utils.pm:75> INFO - Globbing data source 'mwe.bib' [385] Utils.pm:91> INFO - Globbed data source 'mwe.bib' to mwe.bib [401] Biber.pm:4455> INFO - Looking for bibtex format file 'mwe.bib' for section 0 [402] bibtex.pm:1653> INFO - LaTeX decoding ... [406] bibtex.pm:1471> INFO - Found BibTeX data source 'mwe.bib' [437] Utils.pm:304> WARN - Entry 'JD2020' (mwe.bib): Invalid format '2020-01-01' of date field 'date' - ignoring [457] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 'normalization = NFD' with 'normalization = prenormalized' [457] UCollate.pm:68> INFO - Overriding locale 'en-US' defaults 'variable = shifted' with 'variable = non-ignorable' [457] Biber.pm:4084> INFO - Sorting list 'nty/global//global/global' of type 'entry' with template 'nty' and locale 'en-US' [457] Biber.pm:4090> INFO - No sort tailoring available for locale 'en-US' [461] bbl.pm:652> INFO - Writing 'mwe.bbl' with encoding 'UTF-8' [463] bbl.pm:755> INFO - Output to mwe.bbl [463] Biber.pm:128> INFO - WARNINGS: 1   The \printbibliography output actually looks like this: [1] John Doe. “A Title”. In: Journal ().  In my actual thesis, all the dates are gone from the pdf output.


How is it possible for tall trees to pull water to heights more than 10m?

Which force actually drives water so high up, since pure atmospheric pressure will only get you up to about 10 meters if you're using suction and a long straw and yet tallest trees are over 100 meters ( trees do basically have long continuous 'straws' all the way up.)


Ortho Viewport is rendering some hidden/covert Edges in Edit Mode

For some reason, part of the Edges that are behind Geometry, still get drawn in the scene. The object neither has XRay enabled  nor is "limit selection to visible" active. "Backface Culling" also seems not to be the problem. This only appears in Ortho View and not in Perspective View. Any ideas? Perpective View:


Example to show the distance between two closed sets can be 0 even if the two sets are disjoint

Let $A$ and $B$ be two sets of real numbers. Define the distance from $A$ to $B$ by $$\rho (A,B) = \inf \{ |a-b| : a \in A, b \in B\} \;.$$ Give an example to show that the distance between two closed sets can be $0$ even if the two sets are disjoint.


Experts,  I am trying to learn more about the CONVERT_IMPLCIT and Probe Residual. Can someone explain to me why the following test script cause  Probe Residual?  My understanding is if both join predicate column are of the same datatype and is defined as "NOT NULL" then it should not cause any Residual  Reference and Test script    CREATE TABLE #BuildBigInt (     col1    BIGINT NOT NULL );  CREATE TABLE #ProbeBigInt (     col1    BIGINT NOT NULL ); GO  DECLARE @I INTEGER = 1;  INSERT #BuildBigInt     (col1)  VALUES      (CONVERT(BIGINT, RAND(1) * 9999999));   WHILE @I < 5000 BEGIN     INSERT #BuildBigInt         (col1)     VALUES        (CONVERT(BIGINT, RAND() * 9999999));     SET @I += 1; END;    INSERT #ProbeBigInt         (col1) VALUES      (CONVERT(BIGINT, RAND(2) * 9999999));   WHILE @I < 5000000 BEGIN     INSERT #ProbeBigInt         (col1)      VALUES          (CONVERT(BIGINT, RAND() * 9999999));      SET @I += 1;  END;   --test query  SELECT     COUNT_BIG(*) FROM #BuildBigInt AS bbi JOIN #ProbeBigInt AS pbi ON     pbi.col1 = bbi.col1 OPTION (MAXDOP 1);


My Linux is Edubuntu 12.04 LTS. After downloaded & installing successfully "desktop4shared-1.3_1-all" package, 4shared doesn't work on my platform.


Does having your first child not be color-blind change the odds that the next ones will be?

I'm graduated now, and swear I remember this exact kind of problem coming up in my Bayesian statistics class, but I can't remember what the answer was.  The Problem  So my wife's brother is red/green colorblind (xY), but her father is not(XY), and her mother is not, so her mother must be a carrier(Xx). Red/green color-blindness is recessive on the X Chromosome(x), which means in order to have the phenotype (actually have it), all of your X chromosomes must have the gene(xx or xY). This means women must get it from both their mother and father, while men must get it from their mother.  As a result, my wife has a 50% chance of being a carrier(Xx or XX), while all of my sons have a 25% chance of being red/green colorblind(XY or xY).  What I'm trying to figure out is if my first son ends up NOT being red-green colorblind (XY), does that change the probability that my wife is a carrier, since I've now observed one datapoint that refutes that possibility? If so, by how much?  My Thoughts  I think that Frequentists would say that it remains a 50% chance due to them being Independent events, but again, I can't recall exactly how it worked. I may be spacing it, but if my memory serves, Bayesians would include the original assumption(50%) as essentially a datapoint, but would subjectively give it more or less weight. I'm wondering if there's an objective way to handle this.  Of course, I can always calculate the odds of her being a carrier and how unlikely it is that she would have X sons without color-blindness (simple Geometric Distribution), but that doesn't tell me anything about her original probability.


I have a pair of Sony noise cancelling headphones. A few weeks ago the chord was accidentally cut through and a relative was able to reattach them; however, now they headphones will play music alright, but dialogue is extremely quiet and crackly. If I plug the headphones in while watching a movie I can hear the background score but no voices. Is there any way to fix this or are my headphones just screwed?


Trying to make a login page, I am stuck! [java]

Here is my code and what I want to do is, when the login button is pressed, I would like it to check the password and text fields for the right password(found in the if statement). I need help on what to do to get the input from the text and password fields. When I run the code, it skips right to the else statement and does the code in there, I want it to do the if statement as I have entered the right username and password. I was trying to figure out how to get input from the text fields but I don't know how to. I would appreciate some help, thank you.     import java.awt.BorderLayout;     import java.awt.Color;     import java.awt.GridLayout;     import java.awt.TextArea;     import java.awt.event.ActionEvent;     import java.awt.event.ActionListener;     import java.awt.event.MouseListener;      import javax.swing.BorderFactory;     import javax.swing.JButton;     import javax.swing.JFrame;     import javax.swing.JLabel;     import javax.swing.JPanel;     import javax.swing.JPasswordField;     import javax.swing.JTextField;      public class GUI_2 implements ActionListener {          private JLabel PassLabel;         private JFrame frame;         private JButton enterButton;         private JLabel UserLabel;         private JLabel label;         private JPanel panel;         private JFrame Incorrect;         private JTextField password;         private JTextField username;         private String rightPassword;         private String rightUsername;         private String passwordInput;         private String usernameInput;         private JButton UsernameEnter;         private JButton PasswordEnter;         private final static String newline = "\n";         private TextArea textArea;           public GUI_2()         {             PassLabel = new JLabel("Enter Password:");             password = new JPasswordField(11);             UserLabel = new JLabel("Enter Username:");             username = new JTextField(11);             enterButton = new JButton("Login");             label = new JLabel("Access");             UsernameEnter = new JButton("Enter");             PasswordEnter = new JButton("Enter");             frame = new JFrame();             panel = new JPanel();             Incorrect = new JFrame();             enterButton.addActionListener(this);                  panel.setBorder(BorderFactory.createEmptyBorder(200,200,60,300));             panel.setLayout(new GridLayout(5, 5));             panel.add(UserLabel);             panel.add(username);             panel.add(PassLabel);             panel.add(password);             panel.add(label);             panel.add(enterButton);                  frame.add(panel, BorderLayout.CENTER);             frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);             frame.setTitle("Password Login");             frame.pack();             frame.setVisible(true);                   }           public static void main(String[] args) {             new GUI_2();             // TODO Auto-generated method stub          }           public void actionPerformed(ActionEvent arg0)     {                   if (passwordInput == "password" && usernameInput == "harry")         {             frame.setTitle("Success");             label.setForeground(Color.green);             label.setText("Access granted");         }         else         {             frame.setTitle("Access Denied");             label.setForeground(Color.red);             label.setText("Access Denied");         }     }     }


Syntax highlighting hint is ignored in Android app

I recently asked . I added a stack trace of my error in a code block, and added the comment hint language: lang-none to disable syntax highlighting for the stack trace. However, when I went to check the question's status on SE Android app (v1.0.51), the Ruby syntax highlighting had reappeared.


Sup of holomorphic function $f$ is $\geq 2|f'(0)|$

$f:D \rightarrow \mathbb{C}$ holomorphic and $d:=\sup_{z,w\in D} |f(z)-f(w)|$. Prove that $d\geq 2|f'(0)|$ and is equal if and only if $f(z)=a_0+a_1z$


What is special about the numbers 9801, 998001, 99980001 ..?


how to store functions inside an array and call one single function as array[index]

I want to store multiple functions inside an array and execute one function when i call array[index] to be executed and not all the functions inside the array, how to do it in python?  Example:       array = [  function2(1, 2), function3(2, 3)]      array[0] #Execute array[0] and not all the functions inside array


What's the difference between memory shown with the free command and the top command?

I am new to running a linux server and wanted to know the difference between the total memory shown with the top command (which appears to be 78GB)  and the free command which shows that I have 743GB of memory  Thank you in advance!


"Debris are called toxins."  In this sentence, should I use "is" or "are"? I understand "debris" is an uncountable noun, so normally I would use "is". But I am referring to different kinds of debris. Toxins are referring to a collection of debris. So is "are" the correct way?  Or should I reformat this sentence?


python terminating your program at any time?

I want to be able to end my program after I run at any point of time. Similar to how I press ctrl + c and it says keyboard interrupt but I don't want something like   if "keyboard press here" == true:   quit()   the reason I don't want it to be like above is because it seems that my code will run until  it reaches this part of my code. Is there a command   edit:  Sorry, if I'm not clear on my question. What I mean is that I don't want my program to have to reach the point of where it says "press keyboard to quit" in my program but to have it in every space. so for example if I have a while loop that looks something like this:  while True print "1" print "2" if "keyboard press here" == true:       quit() print "3" print "4"   I'd have to wait till it prints out  >>>1 >>>2   before it I can press my keyboard to stop or if it passes 2 and goes to print 3 it'd look like this  >>>1 >>>2 >>>3 >>>4 >>>1 >>>2   and then my program will stop.  I'd like to have my program work like this:  while True     print "1"     if "keyboard press here" == true:           quit()     print "2"     if "keyboard press here" == true:           quit()     print "3"     if "keyboard press here" == true:           quit()     print "4"     if "keyboard press here" == true:           quit()   but I don't want to keep putting   if "keyboard press here" == true: quit()   every other space. Is there a way to do that?


Validating Month/Year to be greater then current date

I'm trying to add validation the type = "month" field on my form so that if the date entered is not greater then-current date it will give an alert.  So far iv managed to link function to my submit button using onlcick, iv got a variable that gets the current date and stores it in another variable, and iv attempted to write if/else statements but I believe the logic is incorrect.  I'll only show the code that applies to my question, if more code is required I can provide.  My form:
     <form method="post" action="www.someplace.php" id="MovieForm">
             Expiry Date             <input type="month" id="expmonth" name="expmonth">

         <button type="submit"  onclick="return ValidateForm();"  id="btn">Proceed to checkout </button>
       </form>   My JS Function:


How to add hostname, date, and fix disk size

I'm collecting disk usage data and want to add the date, time, and hostname to this command. How can I do it in this format:   YYYY-MM-DD HH:MM:SS,HOSTNAME,DISK_USAGE_DATA   Command I have so far:   df -H | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $2 "," $3 "," $4 "," $1 }'   Also, how can I get the output of the command to provide me the size in KB instead of the mixed GB/MB by default? That way I have a base to work off of when computing.


Continuing in the Visual Studio debugger after an exception occurs

When I debug a C# program and I get an exception throwed (either thrown by code OR thrown by the framework), the IDE stops and get me to the corresponding line in my code.  Everything is fine for now.  I then press "F5" to continue. From this moment, it seams like I'm in an infinite loop. The IDE always get me back to the exception line. I have to Shift + F5 (stop debugging/terminate the program) to get out of his.  I talked with some co-workers here and they told me that this happens sometime to them too.  What's happening?


Proving $\frac{\cos a - \sin a + 1}{\cos a + \sin a - 1 } = \frac{\sin a}{1-\cos a}$

Can somebody help to prove that:     $$\frac{\cos a - \sin a + 1}{\cos a + \sin a - 1 } = \frac{\sin a}{1-\cos a}$$


I create digest of articles, and I need to use package \usepackage{nimbussans} on the title page. But when I included and use it, I have a lot of troubles with all the rest document -- there is not working textbf{} and \bf for example. How I can disable this package? Or include it only on one page. MacOS, MacTeX, write in VS Code with LaTeX add-on.


PostgreSQL PK sequence and Auto incrment problem after moving exisitng MS SQL DB to Postgres

I moved my existing MS SQL database to PostgreSQL containing 160000 records, now I am having issue setting my Primary Keys auto increment. I have created sequence but it starts from 1 that create duplicate value, I want to start PK value from max value existing already in table for example if existing PK value is 8568 i want to start my sequence from 8568 and same for all the other tables in database.


Would it be helpful to be able to link to specific answers?

I saw a really hilarious (and correct) answer to a question and wanted to link directly to it because of the way answers "float" up and down based on votes. And for me to find the URL I had to go to the posters profile, page through all of their responses (thank God it wasn't Jon Skeet), and find the link. Is there an easier way? If not could we have a link to the question posted in the question header so we can copy it's destination?(The way that I have seen that liked best was just the number displayed linking to the correct URL so you could just click the URL and copy it.)


I have a custom object "Reporting__c".  This custom object is linked to MyContracts__c, which is a child of Opportunity.  I need to display a field from Opportunity on my Reporting__c object and I want to use a formula.  I tried:  Formula(Text) = MyContracts__r.Opportunity.CustomField   But this does not work. Isn't this possible?  Tia.


"Failure to download extra data files" with ttf-mscorefonts-installer on Ubuntu 16.04

I have been receiving notifications about "failure to download extra data files" from update notifier. It asked me to download fonts in request from the ttf-mscorefonts-installer package. However, whenever I click on the "run this action now", a window pop up (see figure below) and it never got downloaded.     It keeps "waiting for headers" until timeout. Same thing will happen if I use the wget in terminal to download the package:  wget downloads.sourceforge.net/corefonts/andale32.exe --2016-05-02 11:57:32--  http://downloads.sourceforge.net/corefonts/andale32.exe Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 216.34.181.59 Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|216.34.181.59|:80... connected. HTTP request sent, awaiting response...    It will fail again.   I have noticed similar issues like , but the known solutions never worked on me. The wired thing is that I can download the font package from a browser like Chrome, and run the following command to fix the font problem:  sudo dpkg-reconfigure ttf-mscorefonts-installer   with the fonts folder directed. But my question is do I have any problem with my package-data-downloader and terminal configuration? The sudo apt-get update command can run with a few errors and warning showing that but generally it can download data from internet. It only fails when the terminal connect to sourceforge or maybe similar websites.   Hopefully you have some idea on how to make the download from terminal work for all cases. Let me know what else information I can provide. Thanks!


Getting rid of black stripes in 3d pictures generated with asymptote

Below is a script cribbed from the asymptote examples from the softwares homepage. I tried to generate a .png image with the script but got the output as shown below.   How can I get rid of the black stripes?! I can't seem to find anything about this in the asymptote manual. Are there any extra commandline flags I must pass while calling the asy executable?   import three;                                                                                size(400);                                                                                path3 g=(1,0,0)..(0,1,0)..(-1,0,0)..(0,-1,0)..cycle;                                              draw(g);                                                                                draw(O--Z,red+dashed,Arrow3);                                                                     draw(((-1,-1,0)--(1,-1,0)--(1,1,0)--(-1,1,0)--cycle));                                            dot(g,red);


Has anyone ever got in legal trouble for not having those horrific "cookie warnings" on their site?

I know about some idiotic EU "law" that made every damn website add the most obnoxious garbage ever: a huge "warning" about how they are "using cookies", which doesn't let you do anything until you "accept" it. I've been forced to use a special browser extension to get rid of that cancer; it was pure torture, as bad as blinking, screaming advertisements.  When I was running websites, I never once implemented this. Anyone who did/does has something wrong in their head as far as I'm concerned. It's a typical example of blindly following any madness just because "it's a law", regardless of whether it makes any sense or not.  I'm now wondering if not having that crap (which pisses off every single visitor) actually has ever resulted in any kind of "legal action", and if so, but who? I would argue that even if this did happen, the savings in goodwill from not subjecting every visitor to that crap would make up for it no matter how big the monetary penalty is.


Does a preprint include revisions made in response to peer review?

This is related to but not answered in .  After an author has submitted a manuscript to a journal for peer-review, very often the journal asks the author to revise (and resubmit) the manuscript as a precondition for its publication. I am wondering whether the term preprint refers to the manuscript before or after its authors made these revisions.  If a preprint includes revisions made in response to peer review, then there is only a slight difference, mostly regarding layout and style, between the preprint and the article that is published in the journal. From a reader’s perspective, there would be no point in paying for access to the article, since they can simply download the preprint free of charge. A publisher would probably want to prevent their authors (by publication agreements etc.) from publishing preprints that differ from the respective journal article only in form.  As a side question, what kind of preprints do publishers tolerate, as a rule?


How to deal with new div loaded on scroll that isn't loaded in document.ready()?

$( document ).ready(function() {     $('a').on('mouseover', function(e) {     e.preventDefault();         var addressValue = $(this).attr("href");       // console.log(addressValue);        if (addressValue.substring(0, 12) == "http://t.co/")         console.log(addressValue);         //var a = '.' + srcElement.className;      //  $(this).tooltipster({        //         content: $("" + addressValue + "")         //    });    }); });   This code of mine helps me get href links out of all the links loaded in a window, but when I start scrolling, this doesn't get called anymore.   How to make it work for all the href tags loaded on scroll?


Error while displaying audio files on ListView

I'm having problem while displaying audio .mp3 files in a list view from res/raw folder. The error in the logcat is "null pointer exception". I've tried this code by using External storage and it works perfectly fine by giving the external storage path. All I need is to use audio files in the application so that it can display the files after running on phone. Below is the code. Please help me out!  MainActivity.java  package com.example.testproject;  import java.io.File;  import java.io.FilenameFilter; import java.io.IOException; import java.util.ArrayList; import java.util.List;  import android.app.Activity; import android.app.ListActivity; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.media.MediaPlayer; import android.net.Uri; import android.os.Bundle; import android.os.Environment; import android.util.Log; import android.view.LayoutInflater; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.Button; import android.widget.ListView; import android.widget.SimpleCursorAdapter; import android.widget.TextView; import android.widget.Toast;   class mp3filter implements FilenameFilter{       public boolean accept(File dir, String filename) {          return filename.endsWith(".mp3");     }  } public class MainActivity extends ListActivity {      Cursor cursor;     ListView list;     private static final String FILE_NAME = "Make Folder";     Uri path = Uri.parse("android.resource://com.example.testproject/res/raw/anham_with_trans");     private ArrayList<String> voice = new ArrayList<String>();     private MediaPlayer mp = new MediaPlayer();       Button btn;     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);         list = (ListView) this.findViewById(android.R.id.list);          updatePlayList();          btn = (Button) this.findViewById(R.id.btn);          btn.setOnClickListener(new View.OnClickListener() {              @Override             public void onClick(View v) {                  mp.stop();              }         });     }     protected void onListItemClick(ListView list, View view, int position, long id)     {         try{             mp.reset();             mp.setDataSource(path + voice.get(position));             mp.prepare();             mp.start();          }catch(IOException e)         {             Log.v(getString(R.string.app_name), e.getMessage());         }     }      private void updatePlayList() {          String uri_path;         uri_path = path.toString();          File home = new File(uri_path);         if(home.listFiles(new mp3filter()).length>0)         {             for(File file: home.listFiles(new mp3filter()))                 {                 voice.add(file.getName());                  }             }                 ArrayAdapter<String> voiceList = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, voice);                 setListAdapter(voiceList);        }            @Override     public boolean onCreateOptionsMenu(Menu menu) {         // Inflate the menu; this adds items to the action bar if it is present.         getMenuInflater().inflate(R.menu.main, menu);         return true;     }      @Override     public boolean onOptionsItemSelected(MenuItem item) {         // Handle action bar item clicks here. The action bar will         // automatically handle clicks on the Home/Up button, so long         // as you specify a parent activity in AndroidManifest.xml.         int id = item.getItemId();         if (id == R.id.action_settings) {             return true;         }         return super.onOptionsItemSelected(item);     } }


Book where the world is divided into seven parts where each part only lives for one day of the week and is in suspended animation for the rest

There was a book I read quite a while ago where due to population problems the population of the world was divided into seven parts.  Each part actively lived one day a week and were in suspended animation for the other six days. The protagonist gamed the system and was living each day under different identities.


Can MakeFeatureLayer Object be Passed into ExportReport Function Layer Parameter?

I'm trying to pass an in memory layer object created from a feature class using Code:  arcpy.MakeFeatureLayer_management()   into the Code:  arcpy.mapping.ExportReport()   function. It's erroring out, so I think it's having trouble with the in memory feature layer (Does a feature layer have a.lyr extension?).  My code is:  Code:  arcpy.MakeFeatureLayer_management("SOILFC", "soil.lyr") arcpy.mapping.ExportReport("soil.lyr", reportfilename, r"C:\Test_Outputs\ProjectReport1.xls")   I'm not sure if the mapping class needs an actual map document to work on, but I'm hoping not. I don't want to go through the process of creating a temp .mxd, setting a dataframe reference and then add in some layers somewhere just for the purpose of getting a layer object to create a report. I was just hoping I could create the report using in memory objects because the only thing I care about if the .xls report from the final output.


ERROR: no tty present and no askpass program specified ; TTY=unknown ; PWD=/ ; USER=root ;

In my /etc/sudoers.d/myAppCommand file I set some command like this.  Cmnd_Alias APP_CMD = /opt/myApp/lib/app-start, \                                     /opt/myApp/lib/app-stop, \                                     /opt/myApp/lib/app-restart #Rules section # my-app ALL = NOPASSWD: APP_CMD   But at the time of installation this command giving the below error:  2015-01-12 08:22:27 SecurityEvent sudo Rack1 alert sudo:  my-app : no tty present and no askpass program specified ; TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/opt/myApp/lib/app-start


Expectation values of odd operators in case of even potentials are zero?

Taking, for example, position operator (which is an odd operator), and then proceeding :  Assuming the eigenvalue of position operator $\hat x$ equal to $k$, can I not write:  $$\begin{align} \langle\psi_n|x|\psi_m\rangle &= \langle x\psi_n|\psi_m\rangle \\ &=\langle k\psi_n|\psi_m\rangle \\ &=k\langle\psi_n|\psi_m\rangle \\ &=k\delta_{nm}  \end{align}$$  But I know that $\langle x \rangle =0$ in case of even potentials (I don't know how that happens) and what I have written above is wrong, at least in case of even potentials.  Taking the example of infinite 1D square well, the states are : $$ \psi_{n} \left(x\right)=A\sin\left(\frac{nx\pi}{L}\right)dx $$ then, $$ \langle\psi_n|x|\psi_m\rangle =A\int_{-\infty}^{\infty}\sin\left(\frac{mx\pi}{L}\right)x\sin\left(\frac{nx\pi}{L}\right)dx $$ If m=n=1, $$ <x>=A\int_{-\infty}^{\infty}x\sin^{2}\left(\frac{x\pi}{L}\right)dx $$ if we apply an even potential then the equation gets reduced to$$ <x>=\frac{1}{L}\int_{-L}^{L}x\sin^{2}\left(\frac{x\pi}{L}\right)dx=0 $$ while in case of a potential(neither even nor odd), the equation leads to $$<x>=\frac{2}{L}\int_{0}^{L}x\sin^{2}\left(\frac{x\pi}{L}\right)dx=L/2 $$ ?  Here $$ n=m=1 => $$ $$\delta_{nm}=1 $$  implying that $$ <x>=k $$ but $$ <x>=0 $$if$$V\left(x\right)=V\left(-x\right)$$ ,which is confusing me!


Creating a Unity Launcher icon for PyCharm

I can start, PyCharm from a shell script in a subdirectory of /opt. I get a gray question-mark icon (see attachment) rather than the orange/green PyCharm icon (see attachment). Note that the correct icon is in the PyCharm directory out-of-the-box.  I can lock this gray icon to  Launcher, but this icon does not work to launch PyCharm.  How can I get a Launcher button  to launch PyCharm?  (Ubuntu 14.10)


Can't boot up ubuntu 14.04 after upgraded from 12.04

I have first installed Windows 7 ultimate, then I installed Ubuntu 12.04 through WUBI. Then after few days I have upgraded it to 14.04 and the whole upgradate process finished smoothly without any error.   Then the laptop was restarted and then it can't mount the directories. It displays the message like:  mount: mounting /dev/loop0 on /root failed: Invalid argument mount: mounting /dev on /root/dev failed: No such file or directory mount: mounting /sys on /root/sys failed: No such file or directory mount: mounting /proc on /roo/proct failed: No such file or directory` `Target filesystem doesn't have requested /sbin/init. No init found. Try passing init= bootarg.  BusyBox v1.21.1 (Ubuntu 1:1.21.0-1ubuntu1) built-in shell (ash) Enter 'help' for a list of built-in commands.  (initramfs)   How should I proceed?


What is the "purely elementary reasoning" that the number of distinct prime factors of $n$ grows like $\frac{\log n}{\log \log n}$?

At the top of the second page of  paper by Ramanujan, he states that "by purely elementary reasoning", where $f(n)$ is the number of distinct prime factors of $n$, we have that for all $\varepsilon > 0$,  $$ f(n) < (1+\varepsilon)\frac{\log n}{\log \log n} $$ for all sufficiently large $n$, and  $$ f(n) > (1-\varepsilon) \frac{\log n}{\log \log n} $$ for infinitely many values of $n$, so that the maximum order of $f(n)$ is $$ \frac{\log n}{\log \log n}. $$ What's the simple reason for this he had in mind?  Thanks.  Edit: notation clarified per Thomas Andrews' comment.


How can I display keyboard shortcuts as I press them?

I'm going to be giving a short "talk" about efficient note taking with LyX. As such it'll be important to focus on keyboard shortcuts. Since people can't see me type, however, I want a tool that displays keyboard combinations as I press them, like this:    I'm sure I've read about something like this on OMG Ubuntu!, but my google-fu is weak.  Ideas?


How to find straight line minimizing the sum of squares of Euclidean distances from the points?

I have recordings of intensities of two fluorescent antibodies on a 2d image $2^{10} \times 2^{10}$ pixels in size, giving me $2^{20}$ pairs of numbers.   What is the best way to find the best straight line approximation in the plane, in the sense that the sum of squares of Euclidean distances from the points to the straight line is minimized? Is this given by PCA?  What is "orthogonal regression"? Is PCA the same as "orthogonal regression"?


How can I create a shortcut of my frequently used software, files and folders? I did some research and found a way which tells I can do so by making a link of a folder and then copy paste the link on the desktop. I did but each time I reboot my PC I see the shortcut is broken! Then I read  and followed the ways mentioned in the answers with no luck!  Isn't there any way to create shortcuts like Windows in Linux?


Can Quantum Zeno effect stabilize unstable particles?

Quantum Zeno effect says that a continuous measurement makes the state to be "unmoved". Could we use (at least in principle) this effect to make stable unstable particles?


Where can I find a stand-alone Flash player install?

I don't like the Adobe download manager installing. I want to just download the program and install it. I have several systems so is it the same for each one?


I had sfdx working like 10 minutes before.  However, now it is crapping out:  $ sfdx force module.js:96     throw e;     ^  SyntaxError: Error parsing C:\Users\wlee0264\AppData\Local\sfdx\plugins\node_modules\salesforcedx\package.json: Unexpected token � in JSON at position 1     at Object.parse (native)     at readPackage (module.js:92:52)     at tryPackage (module.js:102:13)     at Function.Module._findPath (module.js:186:20)     at Function.Module._resolveFilename (module.js:467:25)     at Function.Module._load (module.js:417:25)     at Module.require (module.js:497:17)     at require (internal/module.js:20:19)     at Object.<anonymous> (C:\Users\wlee0264\AppData\Local\sfdx\tmp\heroku-script-658969795:10:14)     at Module._compile (module.js:570:32)   The only thing I remember doing was messing with ssh keys when pushing to github.  Any ideas?


proof by induction that $\sum_{k = n}^{m} \binom{k}{n} = \binom{m + 1}{n + 1}$

I am unable to solve following proof by induction.   $$\sum_{k = n}^{m} \binom{k}{n} = \binom{m + 1}{n + 1}$$  Can you please help me ?  a) show that it is true for $n=m$  b) show that it is true for $(m+1,n)$  c) give proof why it works for all other values of $m,n$   Thanks.


How to reference list elements when originally initialized like [None] * N?

I'm getting a weird referencing issue. This works: ret = { "values": [{"value": None}, {"value": None}, ]} foo = [5,6] for i, val in enumerate(foo):     ret["values"][i]["value"] = val print(ret)   {'values': [{'value': 5}, {'value': 6}]}  But if I set ret like this: ret = {"values": [{"value": None}]*2} print(ret)   {'values': [{'value': 6}, {'value': 6}]}  Why, and what's a more appropriate way of setting a list of (potentially long) dictionary items with identical values?


Why can't I move apps to external sdcard?

I'm using Redmi 5 Plus with global Oreo 8.1 ROM, rooted with Magisk. And I can't move my apps to external sdcard.  I tried with native method of Android. But the Redmi 5 Plus or MIUI doesn't seem to have the option to move the apps. So, I used Apps2SD app to do the work. It has the option to move with just native method. But it failed with new installs into ASEC containers no longer supported. I also tried other apps but the same error.


Click on link in iframe then perform jQuery action

I have this index page with an iframe on it. In the iframe I have some links like:  Who we are   When I click on this link I would like to perform a jQuery action like sliding a div on the index page with this code.  $(window).load(function () { $(".link_in_Iframe").click(function(){ $('.sliding_div_on_index_page').animate({'top': '-190px'}, 1000); });    I know it is not possible to add/bind a click function to an iframe itself but could this be made possible with a link inside the iframe?  I managed the get the script working by replacing the click function by a hover function so basicly it works fine but I need to do this with a click function.


How to prove the sum of 2 Gaussian distribution is also a Gaussian distribution using the characteristic function

Let X and Y be two $ \mathcal{N}(0, 1) $ distributions. I have to prove that for $(a,b)\in \mathbb{R}^2 $, $ aX + bY $ is equal to $\mathcal{N}(0, a^2 + b^2)$. I'm trying to do this using the characteristic function of a Gaussian distribution. $$ \phi_{aX + bY}(t) = \int_{\mathbb{R}}{ \mathbb{e}^{it(ax+by)}{\frac{1}{2} \mathbb{e}^{-\frac{x^2}{2}}} dx} $$ I don't really know what to do since by changing the variable I can't replace both x and y. Any sugestions ?


sharelatex undefined control sequence when compiling normal mode but not in draft

I get this error when I compile on sharelatex, but the strange thing is that it appears only when I'm compiling in normal mode and instead it works fluently when I'm compiling in draft mode (with sharelatex built in).  The error suggestions tells me the error is in chapter1.aux (that I don't have).  l.7 \@LN         {0}{18} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined.   Any suggestions are appreciated since I can't understand how to fix it.  UPDATE: chapter1.tex is a file that I still have to complete and as of now is super simple:  \chapter{Introduction}  %Title of the First Chapter  \ifpdf     \graphicspath{{Chapter1/Figs/Raster/}{Chapter1/Figs/PDF/}{Chapter1/Figs/}} \else     \graphicspath{{Chapter1/Figs/Vector/}{Chapter1/Figs/}} \fi  \todo[inline]{Write Introduction}  \section{Outline} \todo[inline]{Write outline}


Melisandre's Green Eye Prophecy for Arya

In s08e03 we see Melisandre and Arya meet for the second time after Season 3 when Melisandre said to Arya back then:     "I see a darkness in you. And in that darkness, eyes staring back at me. Brown eyes, blue eyes, green eyes. Eyes you'll shut forever. We will meet again. "   I think Blue Eyes referred to the Night King and the White Walkers since we saw Arya killing the Night King in s08e03.   I also believe that Brown Eyes referred to Walder Frey who was also killed by Arya back in Season 6.    But where do the Green Eyes reffer to? I don't remember her executing any important character with green eyes. My guess is that:       they reffer to Cersei. Do you think that  the prophecy implies that she is going to bring her hateful enemy down somehow?


Compare two files if second file contains a domain which is not found in first file than add "Static" in second field.  File1:  cleanwatersaveslives.com      WordPress blood-mate.com                CodeIgniter brotex.com                    WordPress   File2:  brotex.com blood-mate.com cleanwatersaveslives.com suhailacademy.com damiastudioz.com               support.techpublications.org   techpublications.org           tekstilworks.com                 What i want to get is:   cleanwatersaveslives.com      WordPress blood-mate.com                CodeIgniter brotex.com                    WordPress suhailacademy.com             Static damiastudioz.com              Static support.techpublications.org  Static techpublications.org          Static tekstilworks.com              Static


Proof by induction that alternating sum of binomial coefficients is $0$

$\forall n \in \mathbb N :$ $A(n): \sum_{k=0}^n \binom{n}{k} \cdot(-1)^k = 0$    Initial step:  $A(1): \binom{1}{0}\cdot(-1)^0 \binom{1}{1}\cdot(-1)^1 = 0$ $\iff 1 = 1$  $\iff 0 = 0$   The initial step turned out to be correct.  Induction hypothesis: So, if I pick an arbitrary natural number number l, and if I assume that A(l) is valid, then A(l+1) have to be likewise valid:  $A(l): \sum_{k=0}^l \binom{l}{k}\cdot (-1)^k = 0$   Induction step: $A(l+1): \sum_{k=0}^{l+1} \binom{l+1}{k}\cdot(-1)^k = 0$   $\iff \binom{l+1}{0}\cdot(-1)^0+ \binom{l+1}{1}\cdot(-1)^1+...+ \binom{l+1}{l}\cdot(-1)^{l}+ \binom{l+1}{l+1}\cdot(-1)^{l+1}= 0$  My problem are these binomial coefficients.  I also tried to replace every coefficient with its formula $n! \over {k!*(n-k)!}$ and tried to rearrange it, but I could not proof it yet.


How is it in my best interest not to submit a paper to two journals simultaneously?

The two journals I am considering for my paper each demand that the paper be submitted exclusively to their journal for consideration.  What do I win if I don’t keep this rule?   If I get rejected by both, I will have found out earlier that the paper is not worthy of publication. If I get accepted by one of the journals, this is very good. I will have found out faster which of the two journals is willing to publish me. If I get accepted by both, this is really a dream. I should probably find a reason (excuse) to withdraw the publication from one of them.    In any case how can submitting to two journals negatively impact my reputation more than the gain by being actually accepted? (More so considering I will probably leave academia after my PhD dissertation.)  What can I lose if I don’t adhere to this rule? What sanctions, if any, can I expect?


Singularity in Newton's gravitational law

If $r=0$ in the well know equation $F= G\dfrac{m_1\cdot m_2}{r^2}$, it will not follow that the force will be infinite?  May someone please clarify it to me?


How prove this $H_{2n}-H_{n}+\frac{1}{4n}>\ln{2}$

Show that, for every positive integer $n$,   $$\dfrac{1}{n+1}+\dfrac{1}{n+2}+\cdots+\dfrac{1}{2n}+\dfrac{1}{4n}>\ln{2}$$   I know this $$\lim_{n\to\infty}\dfrac{1}{n+1}+\dfrac{1}{n+2}+\cdots+\dfrac{1}{2n}=\ln2$$  and use this  $$\ln{(1+\dfrac{1}{n})}<\dfrac{1}{n}$$ is not useful  But for this inequality I can't. Thank you


Can you forgo your readied action to take an opportunity attack instead?

Example:   Player 1 uses the ready action to do something when something happens (unimportant) Goblin, decides to charge across the battlefield and attack Player 2, but happens to cross paths with Player 1 possibly provoking an opportunity attack (here lies my question)   Could Player 1 decide to ignore their readied action and use their reaction to attack the goblin? This would of course take up their reaction so they could no longer take their readied action when it triggers.  If so; let's say it is a fireball that was readied (or any spell), would Player 1 be required to drop the fireball spell? They technically cast it as part of their ready action, but I would understand if this would be a downside to using a reaction before their readied action triggered (maybe this should be another question, but please answer it anyway and tell me if I need to create a separate one so you can answer it there too :P).


So, we haven't had to type http:// since 1997 or so, but we still have to type https:// unless the website has setup a redirection.  There's macros/textexpander/bookmark for overcoming the agonizing 8 seconds this takes. Anything else? Anything builtin to the browser?


I have been working on the following problem:     For a given $c\in \Bbb Z^+$, find $a,b \in \Bbb Z^+: c=a^2-b^2$.   I have already figured out and proved a number of things:   A way to directly determine if a particular instance is solvable:  $\exists a,b \in \Bbb Z^+: c=a^2-b^2 \iff c \not\equiv 2 \mod 4$ An upper bound on the values for a (and b): $b \lt a\le\lfloor\frac{c-1}{2}\rfloor$ And a simple algorithm to find a solution:     $$ \begin{align*}  (a_0, b_0) &= (0, 0) \\  (a_{n+1}, b_{n+1}) &= \begin{cases}   (a_n+1, &b_n&)&\text{if } a_n^2-b_n^2 < c\\   (a_n, &b_n+1&)&\text{if } a_n^2-b_n^2 > c\\  \end{cases} \end{align*} $$   This can be iterated until a solution is found or the upper bound is reached.   I am currently trying to work out a more direct way to find an answer, but I have been unable to figure out any other ways to approach the problem.  How can I more directly find values for $a$ and $b$ for a given value of $c$?


How to find results containing either uppercase or lowercase non-latin phrase? (PHP, MySQL)

I've got some issues with non-latin characters.  Query:  SELECT * FROM table WHERE name LIKE '%{$phrase}%'   PHP:  $phrase = $_POST['phrase']; //$phrase = strtolower/strtoupper($_POST['phrase']) made no differece   Demo database:  Asomething (in the db stored as Asomething) asomething (in the db stored as asomething) Äsomething (in the db stored as Ã„something) äsomething (in the db stored as Ã¤something)    Either I type a or A, I get what I want - both of results, but... if I type Ä, I get only one result containing uppercase. How can I get both of them?  Edited: I use collation utf8_general_ci


Improving upon ArcGIS Buffer/Dissolve performance?

I'm wondering if anyone else has experienced significant performance penalties when using the ArcGIS buffer function with the 'dissolve' option on point features.  My dataset is a shapefile of 260 points, basically clustered into 9 groups so there is a significant amount of overlap.  The buffer option executes in a second or so, while the dissolve option executes in 12 minutes. So I'd be in trouble with 10,000 points, right? ESRI knowledge base wasn't too much help.


What is the best way of conveying respect to elders in English?

In Afrikaans, it is considered very disrespectful to use "you" ( "jy") when referring to someone who is above the level of a peer. Instead,  it is expected that you use "u", which is a very respectful form of "you". Also you can talk in the third person "How is ma'am today" would be the equivalent.   I cringe internally when I say "How are you" to someone older than me, because in Afrikaans it would be very rude. I was bought up to only ever refer to my parents in the third person. "how is mom today", "what is dad doing" when speaking in Afrikaans.  The lack of English equivalent feels very wrong and disrespectful.   What is the best way to convey this in English?  I have been reassured that saying "you" to a parent isn't rude, and I understand that this can be cultural, but I'm particularly looking for what options English offers in this regard, as far as existing vocabulary, that convey respect. I'm in South Africa.


I did not find much info on the "response.getReturnValue" function and what it exactly returns. I understand that this is the function that must be used when a Client Side JS controller calls a Server Side action. The returned value must therefore be whatever the server returned.  My question: Is it a JSON? How can I inspect what is there inside, from the Web console?  So far I have been unsuccessful in doing so.  This is my Apex Controller:  public class CurrencyController { @AuraEnabled public static List<CurrencyType> getCurrencies() {     return [SELECT Id, IsoCode, LastModifiedDate FROM CurrencyType ORDER BY createdDate ASC]; } }   This is my JS Controller  ({   doInit: function(component, event, helper) {         var action = component.get('c.getCurrencies');  // Set up the callback var self = this; action.setCallback(this, function(actionResult) {  component.set('v.currencies', actionResult.getReturnValue());     console.log('currency data is:' + actionResult.getReturnValue()); }); $A.enqueueAction(action); } })   But what is logged is this:  currency data is:[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]  There are 34 Currency items in DB and there are understandably 34 items in this array. But what is there inside these objects? Why is there just two [object Object] when I am picking up 3 fields? I tried changing the number of fields and the log never changes.  I understand this is an extremely foolish question but I just am not able to get it. Please excuse my lack of lightning and Javascript knowledge.  Any insight is much appreciated.


Show that the $\sigma$ algeba generated by the class of open intervals with rational end points coincide with the borel $\sigma$ algebra on the real line.   I tried to solve the question but I cannot do proper solution, thus i cannot write here. please show me this question. thank you.


Viewport only showing objects in camera shot

I was just experimenting with the new smoke simulation stuff and something's happened. It seems that blender is only rendering things that are in the camera's view when in Solid Mode. What's even weirder is that it's seems to be from a location that the camera isn't in.  Here's an example of my scene which has a plane and an adaptive smoke domain in the middle. You can see that it's showing slices based on the origin point towards the lower right.   It's also displaying very strange in Material Mode as well (The plane just has a basic grey material but half of it ghosts as I move the camera around)    Have I pressed something without realising it or is this actually a bug? It's hard to tell since blender has crashed so many times while trying to make an explosion.


Show that $A$ can be inverted when $AB$ = Identity matrix

If A and B are both n x n matrices and AB = I, how would you prove that A can be inverted?


Horror movie where friends land on an island with killers who skin and wear their victims, and a lady with octopus tentacle legs

There is a movie I watched many years ago. I can hardly remember its title. The movie was set on an island. The story goes like this: A group of friends were on a yacht when a strong storm capsized their boat. They managed to survive and landed on a remote island with small village. Its inhabitants act strangely. They are killers who skin their victims and wear them. There is a beautiful lady with octopus tentacle legs. She fell in love with the main character.


Proving $f' = - \frac{\partial{F}/\partial{x}}{\partial{F}/\partial{y}}$

I am trying to prove that, if $f:\mathbb{R}\rightarrow \mathbb{R}$ and $F:\mathbb{R}^2\rightarrow\mathbb{R}$ are differentiable, $F$ satisfying $F(x,f(x))=0$ and $\partial{F}/\partial{y}\ne 0$ then $$f'(x)=-\frac{\partial{F}/\partial{x}}{\partial{F}/\partial{y}}$$  This appears in a section on the chain rule for many-variables functions, but without knowing the details of $F$ I find it very hard to prove much about it.  To the best of my ability to reason about it, I suppose I could say  $$ \frac{\partial{F}}{\partial{x}}=\frac{\partial{F}}{\partial{x}}\frac{\partial{x}}{\partial{x}} + \frac{\partial{F}}{\partial{y}}\frac{\partial{y}}{\partial{x}}$$  but for more than one reason I doubt that what I have written is correct.  Yet I'm not exactly sure what's wrong about it, nor can I guess what else I could do.  I tried finding the partial with respect to $y$ but got nothing more useful looking than this.  I also tried writing out limit definitions and saw no useful path forward through that.


I want to dualboot Windows 8.1 and Ubuntu 14.04, can someone please show me every step for doing so. Please don't send links to videos, just type it for me please. I want to dual boot on one single hard drive. Which means, installing both operating systems in two different partitions, and I want the grub menu, to ask which operating system I want to boot in. Thank you.


Vim-latex adds extra brackets when typing empty brackets

I just installed the vim latex-suite plugin.  Whenever I type empty brackets, parentheses, or braces, I get an extra pair of them, and I am moved to the middle of the new pair and put into insert mode.    i.e. after typing  {}   I get  {}{}   with the cursor between the second pair of empty braces.  How can I disable this?


I am a brand new Ubuntu User. Is a Xperia Z1 Compact Smartphone compatible to Ubuntu? I am using my Smartphone as MP3 Player and Camera and i want to sync it.


A word/phrase for "Wanting what you can't have, whilst having what you don't want"

So for example if you're doing a certain degree, always wanting to do other things except for the one you're doing.  Is there a word or phrase for this?  Thanks


$AB-BA=A$ implies $A$ is singular and $A$ is nilpotent.

Let $A$ and $B$ be two real $n\times n$ matrices such that $AB-BA=A$ Prove that $A$ is not invertible and that $A$ is nilpotent.  My attempt is the following. It holds that $AB=(B+I)A$ If $A$ were invertible, $B=A^{-1}(B+I)A$. Taking trace on both sides yields $tr(B)=tr(B)+n$, hence $n=0$, which is a contradiction. I can't prove that $A$ is nilpotent though.


Why is using centered or uncentered data equivalent in ridge regression? In other words, given two ridge regression problems: \begin{equation} (b',c')=\operatorname*{argmin}_{b,c}\Big[ { \sum_i^{m} (y_i - c - b^Tx_i)^2 + \lambda b^Tb}\Big] \end{equation}  $$(b'',c'')=\operatorname*{argmin}_{b,c} \Big[{ \sum_i^{m} (y_i - c - b^T(x_i - \bar{x}))^2 + \lambda b^Tb} \Big]$$ where $\bar{x}$ is the mean of the input data, why does $(b',c')$ correspond to $(b'',c'')$?  I'm writing a piece of code where this thing holds numerically, I was wondering what is the mathematical explanation.


Is it true that I cannot have OR or AND operators in if statements in APEX?  I have an object that has a picklist Code__c, and I need to execute some code if the code is set to either A or B.  How would I write something like:  if(pc.Code__c = 'A' || pc.Code__c = 'A') { }   Tia.


How do I stop my 3yr old from wetting the bed at night?

My daughter is potty trained during the day and is currently sleeps with pull-up. For the past few nights she has been peeing so much that she wets her bed. We have tried to restrict her liquid intake before bedtime, but that doesn't seem to have helped. Please help!


What's the difference between hooks, filters and actions?

It seems like the terms hooks, filters and actions are used interchangeably. What's the difference between them? What do they do? How do I use them?


How to convert bytes string to integer values?

I am working on a project in which i send a base64 encoded image from my app to a server where the processing happens. The image received on the server is like this: (this data is huge) b'\xff\xd8\xff\xe1\x02;Exif\x00\x00MM\x00*\x00\.....'   So, now i want to convert it in this format: [255, 234, 70, 115, ....].


How to stop instagram app remembering / auto-filling in username at login screen, when not yet logged in

Steps to reproduce problem:   Log out of instagram app Close the app click on it to open it and log back in Log-in screen is displayed, with the user name filled in (not yet logged in (i.e. still logged out)) and password field beneath blank   How do you clear all Instagram app settings and what it remembers after you have logged out? So that it doesn't remember (i.e. forgets) your user name so that it doesn't pre-fill in this field at the login screen?  There are options to clear data in the Settings screen, but these are too blanket and coarse in that they clear everything - I only want to clear one thing.  Problem seen on Sep 2010 (4th generation) iPod touch 32Gb. IOS Version 6.1.5 (10B500)  Latest version of Instagram app, as of date 2014 05 18.


I know that the earth moves around the sun because of the gravity force, because the spacetime around the sun is curved.  But why does the earth rotate on its axis, and which parameters can affect this motion?


A JavaScript code:    var age = 27; var obj = {   name: 'Jona',   city: 'Lisbon' };  function change(a, b) {   a = 30;   b.city = 'San Francisco'; } change(age, obj); console.log('age:', age); console.log('obj.city:', obj.city);     The result in console is 27, San Francisco respectively. I am confused with that why the value of age is 27 instead of 30. In my opinion, the value of variable age will be changed to 30 after calling function change. Can someone answer it?


Prove: If $n=2^k-1$, then $\binom{n}{i}$ is odd for $0\leq i\leq n$

Kinda stuck on this one. Help is appreciated. I'm going for either a direct or contrapositive proof.     Prove: If $n=2^k-1$, for $k\in\mathbb{N}$, then every entry in Row $n$ of Pascal's Triangle is odd.   I've been considering entry $i$ in row $n$ of Pascal's Triangle, so for $0\leq i\leq n$, we have: $$ \binom{n}{i} =\frac{n!}{i!(n-i)!} =\frac{(2^k-1)!}{i!(2^k-1-i)!} $$ I've tried manipulating this in a bunch of ways, including using the fact that $\binom{n}{i}=\binom{n-1}{i-1}+\binom{n-1}{i}$, but nothing's panned out.


Splitting of left ideal in semisimple ring, idempotents.

Let $V$ be a finite-dimensional vector space over field $k$ and $R = \text{End}_k V$. How do I see that any left ideal of $R$ takes on the form $Rr$ for some suitable element $r \in R$?   Since $R$ is a semisimple ring, every left ideal with split like this: $R = L \oplus L'$. In this decomposition, $1 = e + e'$ where $e \in L$ and $e' \in L'$.  Why does $e^2 = e$ and $(e')^2 = e'$?  And why does $L = Re$?


Solving for a variable in a modular arithmetic equation

$\fbox{$13x + 1 \equiv 0 \pmod {100}$}$  I solved the equation above by trying different multiples to isolate $x$ until I found something that worked. I have two questions:  $\fbox{$1.$}\ $ What if there was no solution for $x$?  How would I be able to prove it?     $\fbox{$2.$}\ $ Are there a set of steps that I could program a computer to follow and get an answer if other similar modular equations are inputted?  My solution is below:  $13x +1 \equiv 0 \pmod {100}$  $13x \equiv 99 \pmod {100}$  (added $99$ to both of equation and applied the $\mod 100$ to the left side)  $104x \equiv 792 \pmod {100}$  (multiplied both sides by $8$)  $4x \equiv 792 \pmod {100}$  (removed a $100$ from the left side)  $x \equiv 198 \pmod {100}$  (divided both side by $4$)  Like I said, I believe I got the right solution but only through trial and error.  I was wondering if there is a more systematic way of solving these problems.  Thank you for any help.


If mass is homogeneously distributed why would there be gravitational attraction between bodies?

Assuming the mass of the universe was spread completely evenly throughout space why would gravitational attraction happen?  All bodies in the universe would feel gravitational tug equally in all directions so why would they go anywhere?


When I type man bash it shows the info in the terminal itself.  How do I tell "man" to open up the info in gedit instead? Is this possible?


Select/copy/paste in terminal using only the keyboard

I'm looking for a way to select, copy and paste the text in the terminal completely without the mouse.  I've been using tmux until now, but I find its key combinations a bit complex for everyday use of copy & paste, and I'm now looking for alternatives.   Do you guys have any suggestions?  To be clear, this is not about piping to the clipboard but about selecting the text as it's possible in e.g. tmux!


How do I detect time in minecraft with a command?

This may be a duplicate, but I need help! I am creating a realistic zombie apocalypse map in minecraft. I want it to detect when the time is 0 and say what day it is. So help me! Tell me what commands and what to do! Please! Thanks to everyone in advance!


Scheduled Apex Limit Exceeded - Spring 15

After the Spring 15 update I am not able to schedule more than 5 apex jobs. These are NOT BATCH jobs but are being scheduled using the system.schedule. Before the update I was able to create more than 30 similar jobs but since the update i get the governor limit error.  has anyone encountered similar problem ?


Install pandas to python3.5 instead of 2.7

I'm trying to install pandas. When I do, it's automatically installing to the python installation for v 2.7.   How do I force pandas to install to the python 3.5 installation?


I have a laptop with 4K resolution.  Problem is that all programs that I find, are not adapted to this high resolution and all icons and text are way too small to use and read.  I was hoping there were some people who know a program to make latex documents like texmaker or texstudio for ultra hd displays so it is readable and useable.


How to change the snapping increment in different units?

I would like to know how to change the increments used for snapping transforms.  This would be useful in a number of situations but my problem now is that when I change the units it does not scale the snapping increments to match.  So when holding down ctrl the cube snaps from here:    To here:    I would like it to snap to the 1 foot grid, or possibly any other amount I find useful.  It would also be nice to be able to change the rotation snap as well.


Can squibs give birth to normal wizards?

I was just wondering about squibs in Harry Potter.  I can't remember if they can give birth to normal wizards, does anyone know?


Find a limit for $\frac{({1+x})^\frac{1}{x} - e}{x}$ as x tends to 0

I have done it thus far:  $$\lim_{x \to 0}\frac{{(x+1)}^\frac{1}{x}-e}{x} = \bigg[\frac{0}{0}\bigg] = \frac{((x+1)^\frac{1}{x}-e)'}{x'}=({x+1})^\frac{1}{x} \cdot \left(\frac{\ln(x+1)}{x}\right)' = \\({x+1})^\frac{1}{x} \cdot \frac{\left(\frac{x}{x+1}-(\ln(x+1)\right)}{x^2} = ({x+1})^\frac{1}{x} \cdot \left(\frac{\frac{1}{x+1}}{x} - \frac{\ln(x+1)}{x^2}\right) $$  I don't know what to do next.  Also could someone elaborate as to why when I have to find a derivative for $\frac{\ln(x+1)}{x}$ I need to use the quotient rule, but when I first derived the fraction that is given I could derive numerator and denominator separately?


User input via scanner not matching if statement

I've written some code which should take in two words from a user and if they match display "You have won" however it just displays "error"(my else statement) every time even if they match. I'm trying to find out why the if statement does not detect if they match.   import java.util.*; class testing{   public static void main(String[] args){   Scanner in = new Scanner(System.in); //start scanner   System.out.println("Please enter word 1");   String userWord =in.nextLine();   System.out.println("Please enter word 2");   String userGuessInput = in.nextLine();     if(userWord == userGuessInput){       System.out.println("You have won!");     }     else{       System.out.println("error");     }  } }


Casting an address of subroutine into void pointer

Is it okay to cast function location with void pointer though function pointers size is not always the same as opaque pointer size?    I already did search about opaque pointers , and casting function pointers . I found out function pointers and normal pointers are not  the same on some systems.    void (*fptr)(void) = (void *) 0x00000009; // is that legal???   I feel I should do this    void (*fptr)(void)= void(*)(void) 0x00000009;   It did work fine , though I expected some errors or at least warnings  I'm using keil arm compiler


Pipe the output of a command if it is successful

INPUT_FILE=`ls -rt $MY_DIR/FILE.*.xml | head -1 | xargs basename`   I wanted to execute the second command (head -1) only if the first command is successful. How do I improve this command?


How to change the directory .wine of Wine to a different directory

I have Ubuntu installed on a rather small SSD. I want to be able to install Windows programs using Wine, but they have to be installed on the HDD.   By default, Wine creates a folder in the home directory /home/<user>/.wine where the installed Windows programs are saved. I want to change this to another location, such as /media/HDD/.wine  Is there any possibility to achieve this in a simple way?