How do I get transparency to work with the Principled BSDF shader?

How do I get the Cycles Principled BSDF shader to support a base color image such as a 32bit png with alpha or a tga with an alpha channel, and get the transparency to work. I don't see anywhere on the Principled BSDF shader that handles transparency.  Without success, I have tried:   Properties Editor>Render tab>Film rollout>Transparent Properties Editor>Material tab>Settings rollout>Viewport Alpha (changing to other than Opaque). Adding a Transparent BSDF and Diffuse BSDF after the base color image node and using a Mix Shader to combine them.


Prove that there does not exist a continuous function over reals for which it takes on every value exactly twice. Can we replace two by four?  an even number?   Note: By critical point here I mean one that goes from increasing or decreasing or decreasing to increasing (not like $x^3$).  Attempt  Firstly I am confused by what "every value" means. Does that mean every real number or every value in the range of the function? If it is the latter, we can prove the first statement first. Assume there does exist such a function that takes on every value exactly twice. Then for every $f(x)$ there exists $x_1$ and $x_2$ such that $x_1 \neq x_2$ and $f(x_1) = f(x_2)$. Thus given any $f(x_1)$ there exists exactly one other number $x_2 \neq x_1$ such that $f(x_1) = f(x_2)$.   To show this is impossible, first note that the function must have at least one critical point. But if it does have critical point that critical point will only get counted once so we must have another critical point somewhere. Therefore we will have counted every point $3$ times. Thus it is impossible for a continuous function over reals for which it takes on every value exactly twice.  Proving the general case as the question suggests shouldn't be much more difficult. I am wondering if my reasoning is sound or do I need to make it more rigorous. It makes sense to me when I graph it but I am wondering if I need to tweak my solution.


Which one is a correct way to give definitions?

When reading books I pay attention that some of them giving a definition to some notion use "if" but others "if and only if". For example,   A set is called empty if it has no elements A set is called empty if and only if it has no elements   or    A set is a subset of another if all elements of the former are in the latter A set is a subset of another if and only if all elements of the first one are in the second one   As these statements involve naming of something, I can't fully understand which one should be correct. Of course "if and only if" seems reasonable for me and formal, but what about using just "if"?  If antecedent is true, then by a statement we would name it as it is described in the statement. From other side, given we call it with the name that coincides with the statement (consequent part holds), can we say its properties (antecedent part) hold? From my experience of reading books it seems true, but doesn't fully make sense to me.


Let $V$ be spherically symmetric and $W$ i.i.d. Gaussian. Then $E[V|V+W=t]=g(\|t\|)$

A random vector $V \in \mathbb{R}^n$ is said to be spherically symmetric. If for every orthogonal matrix  $A$   the distribution of $AV$ is the same as the distribution of $V$.   My question: Let $W$ be  i.i.d. zero mean Gaussian random variable.     Can we show that  for a spherically symmetric $V$ the conditional expectation  \begin{align} E[V|V+W=t]=   g(\|t\|).  \end{align}  That is the conditional expectation is only a function of the magnitude.   My attempt:  \begin{align} E[V|V+W=t]= \int  V  \frac{f_W(t-v)}{f_{V+W}(t)} dP_V(v)= \frac{\int  v  f_W(t-v) dP_V(v)}{f_{V+W}(t)}= \frac{E[ V  f_W(t-V) ]}{f_{V+W}(t)} \end{align}  Therefore, we can show that the two functions in the above ratio only depend on $\|t\|$.   Observe that we can write $t= \|t\| u_t$  where $u_t$ is a unit vector. Then, for any orthogonal matrix $A$ \begin{align} f_{V+W}(t)=f_{V+W}(\|t\|, u_t)&= \frac{1}{(2\pi)^{n/2}} E[ e^{-\frac{\|t-V  \|^2}{2}} ]\\ &= \frac{1}{(2\pi)^{n/2}} E[ e^{-\frac{\|t-AV  \|^2}{2}} ]\\ &= \frac{1}{(2\pi)^{n/2}} E[ e^{-\frac{\|tA^{-1}-V  \|^2}{2}} ]\\ &= \frac{1}{(2\pi)^{n/2}} E[ e^{-\frac{\|t A^T-V  \|^2}{2}} ]\\ &= f_{V+W}(tA^T)\\ &= f_{V+W}(\|t\|,  u_t A^T) \end{align}  Since, $A$ was arbitrary  we have that $f_{V+W}(t)=h(\|t\|)$(i.e., only depends on the magnitute).  Now I am not sure how to show that $E[ V  f_W(t-V) ]$ only depends on $\|t\|$?


How we can prove that if $p,q$ be prime and $q\mid a^p-1$, then $q\mid a-1$ or $q=2kp+1$?

As an elementary number theory question I tried to prove that if $p,q$ be prime and $q\mid a^p-1$, then $q\mid a-1$ or $q=2kp+1$? I tried to solve this question but I stuck


Where are all the people with a day-related event located in Pokemon Sun and Moon demo?

I'm playing Pokemon Sun&Moon Demo. Along with the main guided experience, there are also citizens throughout the city who seem to suggest that you can return on certain days after you start playing to participate in additional events.   Here's the list of the people I've found so far, and how many days they ask you to wait (starting from release date, October 18):   A guy outside the Pokecenter (1 day, 19th October) A girl waiting for a date in the western corner of the city, near the trees (5 days, 23rd October) A guy waiting for his Pikachu's birthday in the City Hall (12 days, 30th October) A policeman at the dock, waiting for a "strange meeting" (18 days, 5th November) A nervous girl waiting for the ferry (24 days, 11th November)   Have I found them all?


How does the Joker (2019) fit into the established Batman timeline?

In the new Joker movie the Joker is about 45 years old (based on appearance and Joaquin Phoenix's real age).  In one scene in the movie it is shown how Thomas and Martha Wayne die.  So, given that there is an age gap of probably about 15-20 years between young Bruce Wayne and Batman, does that mean that Batman would fight a 60+ year old Joker in this universe?


While using ubuntu some packages are available as standalone application available in .tar.gz packages. These application can be ran by executing executable file within the folder. Now I want to manage a particular file format using this application but application isn't visible in open with menu. What can I do.


Another phrase for ‘get to know someone’

I want to write something like  I got to know him when ...  I thought of discovered and learned but they don’t feel right  I discovered him when ...  Discovered sounds like I’ve become a scientist that found a new species and  I learned about him by ...  Learned just sounds wrong. Any suggestions for replacing “get to know”?


If $f(s) = (1+s)^{(1+s)^{(1+s)/s}/s}$, show that $\lim_{s \to \infty} f(s)/s = 1$.  This function comes up in the parameterization of the solutions to $x^y = y^x$. See for example, here:   If we write $y = rx$, we get $x = r^{1/(r-1)}$ and $y=r^{r/(r-1)}$.  Then $x^y =(r^{1/(r-1)})^{r^{r/(r-1)}} =r^{r^{r/(r-1)}/(r-1)} $.  Finally, if we write $r = 1+s$, this is $f(s) = (1+s)^{(1+s)^{1+1/s}/s} $.  Wolfy says that, around $s=0$, $$f(s) =e^e +  \dfrac{e^{1 + e} s^2}{24}  - \dfrac{e^{1 + e} s^3}{24}  + \dfrac{e^{1 + e} (219 + 5 e) s^4}{5760} + O(s^5) $$ and, around $s = \infty$, $$f(s) =s + (\log^2(1/s) - \log(1/s) + 1)  + \dfrac{\log^4(1/s) - 3 \log^3(1/s) + 5 \log^2(1/s) - 6 \log(1/s) + 2}{2 s} + O((1/s)^2), $$ calling this a generalized Puiseux series.  My question is: How to show that that expansion at $s = \infty$ is correct. I would be satisfied with a proof that, as the title says, $\lim_{s \to \infty} \dfrac{f(s)}{s} = 1 $.  It might help to note that  $\dfrac{y}{x} = r$ and $\dfrac{r}{s} = \dfrac{1+s}{s} = 1+\dfrac1{s} $.


These two questions are from a mobile app:        I didn't pass my driving test.   correct answer: "Nor did I."     He didn't pass his driving test.   correct answer: "Neither did I."      Why do we use nor in the first sentence and neither in the second? Is there any exact rule to follow?


Dataloader Upserting Child Account to Parent Account using External ID:

I'm using Dataloader to Upsert a Child Account to Parent Account using an external ID.  When the Upsert is complete, it's creating a new account, it's not not connecting the Child Account to the Parent Account.  ((See Answer Below))


I'm using Django and Mysql in order to, for instance, display some news articles. These articles are in English and German. I would like to know what database organization is more efficient:  1 table made of the following fields:  Articles   English_title  (char field) English_body  (char field) German_title  (char field) German_body  (char field) Picture  (file field)   or  2 tables made of the following fields:  English articles   English_title  (char field) English_body  (char field) Picture       (file field)   German articles   German_title (char field) German_body  (char field)   It'll display English articles on a template and German ones in another one.


Do I need a visa for the United Kingdom if I fly to Heathrow via BA and from Heathrow to South Africa via virgin

Do I need a visa for the United Kingdom if I fly from Hamburg, Germany to Heathrow via BA and from Heathrow to South Africa via Virgin.  I will not leave the airport, I'm a South African citizen which requires a visa when entering the UK.   Do I need a visa if I book the tickets separately  Do I need a visa if I book the tickets together on a site like flugladen.de?


I've learned how to use "My wife and I" in a sentence. There are a lot of interesting materials on the internet:    Etc.  But today I accidentally came across this video    and Prince Harry says: "Megan and myself had a baby boy"  When should we use "myself" instead of "I" and "me"?  For a non-native speaker it is a bit confusing.


What does it mean to run a process in background?

What exactly does it mean to run a process in the background?  The difference between  $program and $program&: Is it just that the input file descriptor is not inherited from the shell or is there something else / something more?


What is the advantage of using post dates in my permalink structures?

I am trying to achieve the best permalink structure for my site. It will be a multi-author site where users will be posting artciles on a daily basis.  I want the permalink structure to be as follows:  http://sitename.com/username/postname   However, I have seen many sites that put the post date in the permalink like this:  http://sitename.com/username/postdate/postname   What would you advice me to do?  Will I get any advanteges on using the post date in my permalink strcuture regarding SEO?  PS: I already checked out this answer  but I was not happy with it.


Deriving stochastic independence of vector valued Random variables

Let $(X_{n}), n= 1,...4$ independent real valued random variables. Are $(X_1,X_2)$ and $(X_3,X_4)$ independent? If so please prove why.


What's the difference between Alt and AltGr on my keyboard?

Can anyone please tell me the difference between Alt and AltGr on my keyboard. I'm just curious to know the difference.  Thanks in Advance!!!


Why the Ito isometry implies this equality?

If  $${\rm Cov}[dW_t,dB_t]=\rho \, dt$$  then why  $\mathbb{Cov} \left( \int_0^t \sigma_{1}(s) \mathrm{d} W_s, \int_0^t \sigma_{2}(u) \mathrm{d} B_u \right)$     $\stackrel{\text{Ito isometry}}{=} \rho \int_0^t \sigma_1(s) \sigma_2(s) \, \mathrm{ds}$  where $\sigma_{1s}$ and $\sigma_{2s}$ are two deterministic functions of $t$?  I do not understand why the $\rho$ emerges. I mean from the application of the Ito isometry the answear should not only be $\int_0^t \sigma_1(s) \sigma_2(s) \, \mathrm{d}s$?


I want Copy data from table to same table and ignore id and change value for 1 column (profile_name)  INSERT INTO profiles  SELECT * FROM profiles where id=1


"No root filesystem is defined" while installing Ubuntu

I have just got a new laptop, It is running Windows 7 Home Premium.  I have shrunk the windows partition to give me some empty space and now I want to install ubuntu.  From Windows my partitions look like:   So now in the ubuntu live cd If I hit install and go manual the partitioner looks like   So I thought I could just select the empty space and be away laughing, but when I hit it I get


Why $JAVA_HOME does not persist on a mac?

On my mac os 10.6.6 I'm trying to persist env variable $JAVA_HOME but it doesn't stick!  $ export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home   Once I restart it won't be set anymore. The GUI way to do that is to use the Property List Editor as documented by  and on . However, after a restart:  $ echo $JAVA_HOME  $


How to show that that Dyadic rational are dense in R.

I am studying basic topology so I came across a set named as set of Dyadic rationals. I want to know that how can I prove their density in R?


Issues with limited internet connectivity (photos, wifi)

There are a host of issues that you run into when running stock Android in a country that blocks Google's servers. The first issue you run into is the setup wizard getting stuck trying to do updates. I already found  for that one. But I can't figure out how to fix the following:   Wi-fi connections always show "Connected, no Internet" with an exclamation point icon. Doesn't automatically connect to saved wi-fi locations because it thinks there is no Internet. Photos app doesn't show any photos at all except when Airplane mode is on or when connected to a VPN.   Other issues such as the Play store not working are to be expected. But I wish I had workarounds for the 3 issues above. The "Connected, no Internet" warning must be using some Google service to detect connectivity. Can it be changed to use some other service that is not blocked? The Photos app not showing photos seems an unexcusable offense because the photos are stored locally and browsable with a file explorer. Why does Google need to go online at all to display photos on the phone?


Currency to use and expenses in Hungary & Czech republic

A week after, I'll be going on a central Europe tour of Budapest-Prague-Vienna. This is the first time I'm travelling abroad, and as a new graduate I'm on a rather tight budget in case of shopping costs. I know Austria uses euros, but Czech republic and Hungary use their respective currencies also.  Will using Czech crown (koruna) and forint be more profitable then using euros? If so, will 100 euros to koruna and 100 euros to forint exchange cover the cost of;   Lunch and dinner + tips (breakfast is covered by the hotels) A cup of coffee or beer Around 6-7 souvenirs (magnets, snow globes, key chains, etc.)    I'll be spending 1 and a half days in Budapest and Prague.


What does this mean? Can you explain it to me in laymans term?

How to interpret this? What does the ARIMA(0,0,0)(0,1,0)[12] means in laymans term?


Upgrade Ubuntu 14.04 to 16.04 keep failing

I try to upgrade Ubuntu 14.04 to 16.04, but I have an issue.  I tried to follow this article :    after running this command :  sudo do-release-upgrade   When the 1022 ssh dialog appeared, I wrongly typed n, then I got disconnected.  Later on, I had to go to the Dashboard terminal, and restore the ssh connection.  But when I retried the command :  sudo do-release-upgrade   it gave me this message, and I had to close the terminal :  Please report this as a bug and include the files /var/log/dist-upgrade/main.log and /var/log/dist-upgrade/apt.log in your report. The upgrade has aborted. Your original sources.list was saved in /etc/apt/sources.list.distUpgrade.  Traceback (most recent call last):  File "/tmp/ubuntu-release-upgrader-vgm0wvbx/xenial", line 8, in <module> sys.exit(main())  File "/tmp/ubuntu-release-upgrader-vgm0wvbx/DistUpgrade/DistUpgradeMain.py", line 242, in main if app.run():  File "/tmp/ubuntu-release-upgrader-vgm0wvbx/DistUpgrade/DistUpgradeController.py", line 1907, in run return self.fullUpgrade()  File "/tmp/ubuntu-release-upgrader-vgm0wvbx/DistUpgrade/DistUpgradeController.py", line 1725, in fullUpgrade if not self.prepare():  File "/tmp/ubuntu-release-upgrader-vgm0wvbx/DistUpgrade/DistUpgradeController.py", line 438, in prepare self._sshMagic()  File "/tmp/ubuntu-release-upgrader-vgm0wvbx/DistUpgrade/DistUpgradeController.py", line 328, in _sshMagic self._view.information(summary, descr)  File "/tmp/ubuntu-release-upgrader-vgm0wvbx/DistUpgrade/DistUpgradeViewText.py", line 176, in information readline()  File "/tmp/ubuntu-release-upgrader-vgm0wvbx/DistUpgrade/DistUpgradeViewText.py", line 50, in readline s = input()  KeyboardInterrupt === Command terminated with exit status 1 (Tue Feb  4 01:29:35 2020) ===   already retry several times, but it keeps failing, any clue?


The equation:  $$P = |A|^2$$  appears in many books and lectures, where $P$ is a "probability" and $A$ is an "amplitude" or "probability amplitude". What led physicists to believe that the square of modulus connects them in this way?   How can we show that this relation really holds? In a  by J. J. Binney at Oxford University (minute 12:00) he states that this equation holds but doesn't explain why or where it comes from.


Does Aura of Menace from multiple Lantern Archons stack?

Aura of Menace (Su): Any hostile creature within a 20-foot radius of   an archon must succeed on a Will save (DC 13) to resist its effects.   The save DC is Charisma-based, and includes a +2 racial bonus. Those   who fail take a –2 penalty on attacks, AC, and saves for 24 hours or   until they successfully hit the archon that generated the aura. A   creature that has resisted or broken the effect cannot be affected   again by the same archon's aura for 24 hours.   The penalty from the 's aura of Menace appears to be typeless, if you summoned multiple lantern Archons and a creature failed the save from all of them would they suffer only a -2 or the cumulative penalty from all of them?


I have this type of variable :     What kind of return type should I write for my method? I wrote object but it didn't work out. Thanks.  EDIT :   I made such classes :   public class IlIlceTarife {     public string Il { get; set; }     public string Ilce { get; set; }     public string Tarife { get; set; } }  public class a {    public IlIlceTarife Name { get; set; }     public int Sayi { get; set; } }   And I made return type as this :   public List<IEnumerable<a>> TarifeGiver1(string il, string ilce)   And VS gave this error :   > Cannot implicitly convert type > 'System.Collections.Generic.List<System.Collections.Generic.IEnumerable<<anonymous > type: <anonymous type: string Il, string Ilce, string Tarife> Name, > int Sayi>>>' to > 'System.Collections.Generic.List<System.Collections.Generic.IEnumerable<WebApplication2.Controllers.a>>'


I'm coding a vertical navbar and I want to center all the lists in the center, vertically and horizontally. But I set my height as 100vh, and now I don't know ow to use the line-height selector to center the lists vertically. Here's the code I would really appreciate some help:    * {             padding: 0px;             margin: 0px;         }          .navbar {             height: 100vh;             width: 10%;             background-color: aquamarine;             text-align: center;             transition: 1s ease-in;                      }          .navbar:hover {             width: 100%;         }          .navbar:hover li{            width: 100%;            opacity: 1;        }          li {             transition: 1s ease-in;             opacity: 0;             margin-bottom: 30px;             line-height: 10vh;             vertical-align: middle;         }          a {             text-decoration: none;             color: black;             font-size: 20px;         }

Home

About

Services

Feedback

Contact


Find all pairs $(x, y)$ of real numbers such that $$ 16^{x^{2}+y}+16^{x+y^{2}}=1 $$  I know this question has been answered multiple times but i have another solution which i have  to validate. So after taking $16^x16^y$ common from the equation we get $$16^{x+y}=\dfrac{1}{16^{x(x-1)}+16^{y(y-1)}}$$ Now LHS is increasing while RHS is decreasing so equation can have at most one real root which can be find by putting x=y to get $(x, y)=(-1 / 2,-1 / 2)$ . Anything wrong ?


What is the proper reading order for the Grimm Fairy Tales?

I have recently gotten into the Zenoscope Grimm Fairy Tales. I have read 1-12 of the trade paper backs, the Dream Eater saga, and Myths and Legends.   However, as I'm reading, I'm noticing the order isn't exactly correct. Can someone please post the proper order to read the series as of the newest issue?


I am using TeXworks and I am facing this annoying problem. As soon as I try to  use the left quote   ' of my keyboard, it is immediately translated into   \lq{}  in the latex file. It happens only with Texworks. Is it possible avoiding this automatic replacement?


How do I get the root index page to redirect to a subdirectory without affecting SEO?

I am reviving/reorganising my personal WordPress blog.  It's using a URL that looks like this:  http://mydomain.com/blog  The webserver 301 redirects www.mydomain.com to mydomain.com.  I want to use the blog subdirectory because I plan to add other parts to the site, with the blog only being one part of the site.  However, at the moment there is nothing there but the blog, so I want to have the root index page redirect to the blog for the time being.  I have been using this on the root index.html page to do the redirect...  <meta http-equiv="REFRESH" content="0;url=./blog">  ...but this seemed to have stopped the site being indexed by Google and Bing.  How do I do this without affecting SEO?  Also, what URL should I put in the sitemap.xml?


Obtaining Inner HTML From Iframe Using JavaScript

Hi friends i develop a project , in that i want to show the data from a website in the form of table . So i can do the process in child window iframe and get the table content from child window to the parent window . All are working fine , But this will work all browsers except ie. and it wont display any errors , One friend give the answer (  )for this but it shows the Error "Access denied" , Please help me..


Will the feasible region always be convex in linear programming?

In linear programming we find a feasible region , is this region always convex? . if a concave region is found where objective is minimization , I think then a solution exists . Advance thanks.  someone deleted the answer of my previous post , although i wasn't sure about the answer of 1st question , and no one is replying in that post , as i am in hurry so i re-posted it to get a  answer. Thanks


How can you find out which process is listening on a TCP or UDP port on Windows?


Retrieve Windows 8 Product Key from mainboard

My new laptop came preinstalled with Windows 8. Naively, as I am, I just formatted the harddrive and installed fine old Ubuntu. Now I want to install Windows 8 for dual boot again, but I have no DVD and to download the ISO one needs a product key. That key is not on the back of the laptop anymore but somewhere on the mainboard.  Is there any way to recover the product key from the mainboard using Ubuntu?


Extend home without unallocated space. With swap or ntfs

I've just installed (some months ago) Ubuntu 14.04 on my Asus laptop. I followed a specific guide on partitions and thought everything was ok. But, beeing pretty new at this I probably made some mistake doing my partitions and now I have a nice mess.   I left 46.5 Gb for /, then 15 Gb for /home, and then 123 Gb for swap. It appears (have a look on the image of my gparted) that I also left 542 Gb for ntfs Data and 15 Gb for ntfs Restore (and don't really know if those need so much space). Also, I don't have any unallocated space and I don't know if this is good or really bad.  My question is: I don't have enough space in my /home partition (it is already 98% full) and I'd like to know how to extend it without any - apparently - unallocated space. Can I take some space from the swap or the NTFS partitions? How? I think I left them too much space..


My Minecraft crashes when I start it up! What do i do? I tried uninstalling it and re-installing it and it doesn't work!  Time: 1/15/17 10:54 AM  Description: Initializing game  org.lwjgl.LWJGLException: Pixel format not accelerated     at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)     at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)     at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:247)     at org.lwjgl.opengl.Display.createWindow(Display.java:306)     at org.lwjgl.opengl.Display.create(Display.java:848)     at org.lwjgl.opengl.Display.create(Display.java:757)     at org.lwjgl.opengl.Display.create(Display.java:739)     at bes.ap(SourceFile:600)     at bes.an(SourceFile:436)     at bes.a(SourceFile:383)     at net.minecraft.client.main.Main.main(SourceFile:124)   A detailed walkthrough of the error, its code path and all known details is as follows: ---------------------------------------------------------------------------------------  -- Head -- Thread: Client thread Stacktrace:     at org.lwjgl.opengl.WindowsPeerInfo.nChoosePixelFormat(Native Method)     at org.lwjgl.opengl.WindowsPeerInfo.choosePixelFormat(WindowsPeerInfo.java:52)     at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:247)     at org.lwjgl.opengl.Display.createWindow(Display.java:306)     at org.lwjgl.opengl.Display.create(Display.java:848)     at org.lwjgl.opengl.Display.create(Display.java:757)     at org.lwjgl.opengl.Display.create(Display.java:739)     at bes.ap(SourceFile:600)     at bes.an(SourceFile:436)  -- Initialization -- Details: Stacktrace:     at bes.a(SourceFile:383)     at net.minecraft.client.main.Main.main(SourceFile:124)  -- System Details -- Details:     Minecraft Version: 1.11.2     Operating System: Windows 10 (x86) version 10.0     Java Version: 1.8.0_111, Oracle Corporation     Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation     Memory: 77484264 bytes (73 MB) / 150876160 bytes (143 MB) up to 523501568 bytes (499 MB)     JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx512M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M     IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0     Launched Version: 1.11.2     LWJGL: 2.9.4     OpenGL: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.     GL Caps:      Using VBOs: Yes     Is Modded: Probably not. Jar signature remains and client brand is untouched.     Type: Client (map_client.txt)     Resource Packs:      Current Language: ~~ERROR~~ NullPointerException: null     Profiler Position: N/A (disabled)     CPU: <unknown>


Before you mark this as the same thing as the others, You need to know I have done this before hundreds of times with no problem, I just reinstalled Ubuntu 18.04 2 days ago, and I was trying something with Minecraft and tried to open the optifine download, which is a jar file, and it wont do anything I tried running it in terminal and this is what I got  Exception in thread "main" java.awt.AWTError: Assistive Technology not found: org.GNOME.Accessibility.AtkWrapper`    I had installed Java the same as I always had no problems, but this time is different. All help is appreciated.


How to avoid new line in readline() function in python 3x?

I am a new to python programming. I've followed the "Learn python the hard way" book but that is based on python 2x.   def print_one_line(line_number,f):     print(line_number,f.readline())   In this function every time it prints A line and a new line.  1 gdfgty  2 yrty  3 l   I read the documentary that if i put a , (comma) after readline() then it won't print a new \n.  Here is the documentary:      Why are there empty lines between the lines in the file? The   readline() function returns the \n that's in the file at the end of   that line. This means that print's \n is being added to the one   already returned by readline() fuction. To change this behavior simply add a ,   (comma) at the end of print so that it doesn't print its own .   When I run the file with python 2x then it is OK, but when I do it in python 3x then the newline is printed. How to avoid that newline in python 3x?


everyone for some reason on execute I am getting null pointer exception, but I cant find reason why, I think its something with setOnAction method but not sure how I can fix it.  In View Part I got  public void addButtonListener(EventHandler<ActionEvent> x)     {         login.setOnAction(x);     }   and in Controller   public Controller(View theView,Model theModel)     {         this.theView = theView;         this.theModel = theModel;          this.theView.addButtonListener(new SolListener());     }   inner class in controller:  class SolListener implements EventHandler<ActionEvent>     {             @Override             public void handle(ActionEvent event)              {                 String u,p;                 try                 {                     u = theView.getUsername();                     p = theView.getPassword();                      theModel.zhoda(u, p);                        theView.Solution(theModel.getSolution());                  }catch (NullPointerException f)                 {                  }              }      }   and for some reason I still getting NullPointerException on   public void addButtonListener(EventHandler<ActionEvent> x)   Any ideas ?


Anyone know how to batch convert multiple video files into smaller sizes?


let $\sum_{n=1}^\infty a_n \ \ a_i > 0 $ be convergent then prove that $\sum_{n=1}^\infty a_n^{\frac{n}{n+1}}$ is convergent.

Let $\sum_{n=1}^\infty a_n \ , \ a_i > 0 $  be  convergent. I need to prove that $$\sum_{n=1}^\infty a_n^{\frac{n}{n+1}}$$ is convergent. How should I prove it? Where should I start?


i have a problem with mycode '=''or'  $connect= mysqli_connect($host, $user, $password, $database);  if (isset($_POST["sub"])){     $userr =$_POST["username"];     $passs =$_POST["password"];     $password = hash('sha256', $passs);     $query="select * from user WHERE username='$userr'AND password='$password'";          $run=mysqli_query($connect,$query);                          if(mysqli_num_rows($run))     {          header("Location: index.php");          $_SESSION['username']=$userr;         exit;     }     else {         $pri ='
 error ';     } } mysqli_close($connect);   so when anyone doing bypass using '=''or' it will go to index.php  I don't know really how to fix it ..


When setting my Canon camera on a timer, how do I force it to focus at the time the shot is taken instead of when the timer is set?

Here's a typical situation during vacations:   I set my Canon 77D on a tripod I change the shooting setting to "timed series" (2-10 shots after a 10-second delay) I go stand in front of the camera Problem: camera uses the initial focus instead of focusing when the actual shot takes place Result: blurry shot of myself with a perfectly sharp background   Is there a setting that forces the camera to re-focus before each timed shot? I've tried switching to AI Servo, but it didn't help. I'm also aware I can use a Bluetooth/IR remote or connect the camera to my phone, but a simple timer is a lot easier and faster.


$$\int_0^\infty\frac 1{1+x^n}dx=\frac\pi n\csc\left(\frac\pi n\right)$$  If we want to prove the left side equal to the right side in this case, how do we start? How do we prove this definite integral?


Prove that, $a^2b(a-b)+b^2c(b-c)+c^2a(c-a) \geq 0.$

Let $a,b,c$ be the lengths of the sides of a triangle. Prove that, $$a^2b(a-b)+b^2c(b-c)+c^2a(c-a) \geq 0.$$    Attempt  Using a ravi substitution I said let $a = x+y, b = y+z, c = z+x$. Then we have $$(x+y)^2(y+z)(x-z)+(y+z)^2(x+z)(y-x)+(x+z)^2(x+y)(z-y) = 2 x y^3+2 x^3 z + 2 y z^3-2 x^2 y z-2 x y^2 z-2 x y z^2.$$ Then I thought of using the rearrangement in equality, but I couldn't see how to make that work.


Why didn’t Darth Vader’s body disappear in Return of the Jedi?

In the special edition, you see his one-with-the-force ghost, but he didn’t disappear like Obi-Wan or Yoda. Any good explanations as to why this is the case?


Can I easily replace the hard drive of my PS3?

Is it easier to replace the internal hard drive of a PS3, or to go with an external hard drive?


I can't get expect to work with a specific string

I'm writing a bash script to create self-signed certificate.  The script works well until I have to sign the certificate. Indeed, i can't get my expect command to match the received string.  Here is the string my terminal returns :  Sign the certificate? [y/n]:   And here are my commands :  /usr/bin/expect <<EOD spawn sudo openssl ca -config CA/ca.cnf -policy policy_anything -out CA/newcerts/webserver.cert -infiles CA/certrequests/webserver.csr expect {Enter pass phrase for ./CA/private/cakey.pem:} {send "${PEMpassword}\n"} expect -re {Sign the certificate? [^:]*:} {send "y\n"} expect -re {1 out of 1 certificate requests certified, commit? [^:]*:} {send "y\n"} expect eof EOD   I'm not very familiar with expect nor regex but "[^:]*" worked for me until now for similar strings.  I have unsuccessfully tried those :  [?*] \* ?: [y/n] \[y/n\] "[y/n]" [\w/\w] [w+] [\w+]   Thanks in advance for your suggestions !


A problem concerning compact operators in $\ell^p$

Let $\alpha_n \in \mathbb C$ and $\lim_{n\to\infty}\alpha_n = 0$. Let $T$ be a linear continuous operator from $\ell^p \to \ell^p (1\le p\le \infty)$ defined by $$ T((x_1, x_2, \ldots)) = (\alpha_1 x_1, \alpha_2 x_2 , \ldots). $$ Then I want to show that $T$ is compact operator on $\ell^p$, which means any bounded sequence in $\ell^p$, there exists a subsequence $\{x_{n_k}\}$ such that $\{Tx_{n_k}\}$ converges in the sense of norm.


Shamir SS: To associate shares to the public values $x_i$, when the shares are permuted

Suppose we use $(t,n)$ Shamir secret sharing as follows:   We share the secret $\beta$ as $S=[s_1,..., s_n]$, where $X=[x_1,...,x_n]$ are the public values. For the sake of simplicity, lets assume that $n>100$ and $t=2$.  We permute the elements in the vector $S$.     Question 1: Given the permuted vector, can an adversary associate each share to the corresponding $x_i$ values? if yes/no why?  Edit:  Question 2: What if we mix the shares with some dummy values and then we permute all, and give them to the adversary?


In this sentence is "at school": Everyone at school knew he was the new kid on the block.  In this sentence is "in school": When I was in school I would go to the library day to day to study. Can you teach me about that difference.


I need to invoke my windows form controls because they are on another thread. I need to do a check which one is focussed but i have a weird feeling that my code could be 10000 times simpler. Can someone look for me and tell me what i am doing wrong. The code works. But it just feels nasty. Hope to hear from you.  My invoke class (Got this from another stackoverflow question, so not mine):      using System; using System.ComponentModel;  namespace System {     public static class ISynchronizeInvokeExtensions {         public static void InvokeEx<T>(this T @this, Action<T> action) where T : ISynchronizeInvoke {             if (@this.InvokeRequired) {                 @this.Invoke(action, new object[] { @this });             } else {                 action(@this);             }         }     } }   My code to check for the focussed one:  private bool test;  private void setText(string text) {             this.InvokeEx(x => test = x.textBox1.Focused);             if (test) {                 this.InvokeEx(x => x.textBox1.Text = text);             }             this.InvokeEx(x => test = x.textBox2.Focused);             if (test) {                 this.InvokeEx(x => x.textBox2.Text = text);             }             this.InvokeEx(x => test = x.textBox3.Focused);             if (test) {                 this.InvokeEx(x => x.textBox3.Text = text);             }             this.InvokeEx(x => test = x.textBox4.Focused);             if (test) {                 this.InvokeEx(x => x.textBox4.Text = text);             }             this.InvokeEx(x => test = x.textBox5.Focused);             if (test) {                 this.InvokeEx(x => x.textBox5.Text = text);             }             this.InvokeEx(x => test = x.textBox6.Focused);             if (test) {                 this.InvokeEx(x => x.textBox6.Text = text);             }             this.InvokeEx(x => test = x.textBox7.Focused);             if (test) {                 this.InvokeEx(x => x.textBox7.Text = text);             }         }


I have mobile application which calls to an API (api.example.com) setup in web. For easy debugging purpose I would like to route this api calls to a server setup in my LAN. I have Bind9 setup on a machine and ADSL router has configured to use this DNS server. Also I've setup Apache virtual host for api.example.com.   So I'm interesting to know is there a way I can route/resolve api.example.com to my local apache server (192.168.1.5) by entering some records.


Let $a,b,c \in G$ and $G$ is a group, prove that the following items have the same order...  $a$ and $a^{-1}$ $ab$ and $ba$ $abc$ and $bca$  For the first, I see that I have to operate $a^{-1}$ n times to convert $\underbrace{a*\cdots *a}_n = e$ in $e$ but for the others I can't find the way...


Is there any way I could find how much bytes are allocated for RandomArray in this code  #include<stdio.h> #include<stdlib.h>      int main()     {     int *RandomArray;     int n;     srand(time(NULL));      RandomArray=malloc(sizeof *RandomArray * (rand()%11));     printf("%d  %d",sizeof(RandomArray),sizeof(*RandomArray));      return 0;     }   Also I don't know whether above code will ever have any kind of practical usage. But I am looking from programming perspective.


Plural of an initialism that ends with the letter S

Possible Duplicate:          I was answering something on Super User and wrote OSes as part of my normal flow without really thinking about it. On a re-read I decided that it didn't look right, so I changed it to OSs, which still felt incorrect. I also considered OS's, but that didn't feel right either, so I thought I'd ask on here.  In this specific case, what is the written plural form for OS? The intention is to mean multiple Operating Systems.  And, is there a general rule for the plural form of an initialism that ends with the letter S?


When looking at cloud cover predictions for landscape photography, should I select my location or that of the distant mountains?

I am photographing mountains 50 miles away. If I want predict cloud cover — I'm looking for low clouds for sunrise — which location should I choose?  Should I choose where I am standing, or the cloud cover forecast for the mountains 50 miles away?


How to navigate to second monitor in Win+Tab menu?

When you press Windows + Tab you get an overlay over all monitors that looks like this:  In this menu, you can see different "tiles" on the different monitors. Each is an application that is open on that monitor. You can navigate this menu using your keyboard by using the Arrow Keys or Tab and then pressing Enter to focus that application. This is all great! The problem is that I can't seem to figure out how to select apps on monitors other than the main one (middle). You can see a tile on the main/middle monitor has a white outline to indicate it is selected. I can move the selection to different apps on the same monitor, but I can't get the selection to go to other monitors. Is there a keyboard shortcut one can use to navigate to apps on different monitors?


I know it has been asked before, but I'm still not sure if I understand the focal length issues of EF-lenses on APSC cameras in Canon system. I already have the EF-S 55-250 IS STM and I'd like to buy a longer telephoto - if I get the EF 70-200 will it give me effectively more range than EF-S 55-250 (200 x 1.6 = 320 mm)?


Prove that if $f(x) = \frac{\sqrt{x} - \sqrt{a}}{x-a}$, then $f$ has a limit at a.  I have written a very basic level proof here:  Given $\epsilon > 0$, we want $\delta > 0$ such that $|(\frac{1}{\sqrt{x} + \sqrt{a}}) - (\frac{1}{2\sqrt{a}})| < \epsilon$ whenever $0<|x - a|<\delta$. So for $\delta = g(\epsilon)$, $0<|x - a|<\delta \implies |(\frac{1}{\sqrt{x} + \sqrt{a}}) - (\frac{1}{2\sqrt{a}})| < \epsilon$.  I tried and failed to find a way to represent delta in terms of epsilon. Saying, $\delta = g(\epsilon)$, is wrong. I saw some examples where they set $\delta=1$ and the used the $min$ function. I tried this but was not successful.  Edit: I need to find an answer using the epsilon-delta form. just solving for the limit is not sufficient.  Anyone have any tips?


I would like to understand the appeal process for a moderators decision. How does one start that procedure when a moderator has edited your post and thereby losing its thrust.


Can I be in transit in Athens for 24 h without transit visa?

I am Egyptian and I just have Bulgarian visa. My flight will have transit in Athens for 20 h, will it be a problem to stay in the airport without Schengen visa?


Why can't the indefinite integral $\int\frac{\sin(x)}{x}\mathrm dx$ be found?

I came across a list of functions in my calculus textbook whose indefinite integral cannot be found. It was written that the integral $$\int \frac{\sin(x)}{x} dx$$ cannot be evaluated without any explanation as to why.  I did some research over the internet and found out that the definite integral $$\int_{0}^{\infty} \frac{\sin(x)}{x} dx$$ can be evaluated using Laplace transformation and is equal to $\pi /2$. But I still couldn't find answer to my original question. I read somewhere that the integral cannot be expressed using 'elementary functions'. A little help is appreciated, I'm in Calc 1 going advanced than my course but I am sorry if my post shows lack of research. Thank you!


What's a word for avoiding a question with a generic (fake) answer?

Examples...     Q: Why is the sky blue?   A: Because God made it that way.       (A kid to their parent)   Q: Why do I have to clean my room?   A: Because I said so.    What is it called when someone answers a question this way? I've said "That's not an answer, that's a 'cop-out'" but that's not right.


How can I stamp a texture on top of a material?

I have a material that covers my model in camouflage. Now I want to stamp a regular old UV texture on top of that material, in such a way that transparencies in the texture show the material. Say I want to stamp a large letter "A" on top of the camo; the A only takes up the corner of the face, and the material should still how through the middle gap of the A.


How to move a window of the bottom panel in Gnome 3

I am using Debian 8 Jessie with Gnome 3. I can't move the windows of the bottom panel. I just want to rearranged them but it doesn't work. I click one of them and try to move it but nothing happend.


sudo apt-get update not working in ubuntu 19.04

I want to install some softwares in my ubuntu 19.04 but when i type any command related to apt i get a very big error. I typed the command sudo apt-get update and got this huge error:


Holding, Delaying, or Readying an Action? - Rules As Written

Please point or link me to any official rules (rules as written) on when a character can delay, hold or ready an action for later in a round, instead of going on their initiative. What does a character have to do to delay or hold an action during a round? What actions are characters allowed to take when they delay?


Looking for a short story about an artist and a forger

Back in the late 1970s to early 1980s, I read a short story about an artist and a forger.  Between the two of them, they managed to start a revolution that brought down a corrupt dictatorship.  It was science fiction:   The dictatorship was interplanetary, maybe interstellar.   The artist used some kind of advanced technology to make his art works.   Plot:  The artist is one of the best (if not the best) at what he does.  The dictator wants the artist to make what amounts to a family portrait in whatever medium it is he works in.  Think of it like painting - you create the image manually (not a photograph) but it is much more than just a flat image.    The artist doesn't like the dictator - maybe on general principles, maybe because he knows the dictator personally - and refuses to make the "portrait."  The dictator has the artist arrested, and will only let the artist free again if he makes the portrait.  The artists makes the portrait.  He does the work while in the prison or jail.  That's where the forger comes into things. The forger is also in jail for something or other.  The forger makes copies of art works.  He of course recognizes the artist, and knows what the artist works with.  The forger can somehow see what the artist is working on.  The artist finishes the portrait.  At first the dictator is thrilled.  It looks exactly the way he wanted it.  As time goes by, though, the people looking at the picture see that it represents the vileness and corruption of the dictator.  The more you look at it, the more of the evilness of the dictator you see in it.  That is the genius of the artist, and whatever medium he is using.  Once you notice the hidden levels of the portrait, you can't unsee them and you see more and more of it as you look.  I think the effect carries over into reality as well.  Once you've seen the dictator's corruption in the portrait you also begin to see it in the dictator and his works as well.  This of course seriously pisses off the dictator, who has the artist killed and the portrait destroyed.  While in prison, the forger watched as the artist created his masterpiece, and recognized it for the subversive thing it is.  He also recognized it as the ultimate rebellion from the artist - the artist knows what will be seen, and that he will be killed for it.  All of that inspires the forger to do something more meaningful with his life than make forgeries for the money.  The forger is released from prison.  He saw the completed portrait, and knows how it was made.  He begins making forgeries of the portrait - like, hundreds if not thousands of them.  These are distrubuted throughout the nation/empire.  The people realize what evil is controlling them once they see it in the copies of the portrait, and eventually a revolution rises and brings down the dictatorship.  It was probably older than the 1970s.  I expect earlier than 1960.  Any ideas?


In Pokemon Go, each Pokemon has an attack and secondary attack that have a variety of different attack power. For the longest time, the highest I've seen was 60; so I assumed that was the highest. Today I evolved a Raticate that had a 70 Hyperbeam.  What is the strongest attack a Pokemon can have?


Can spells that push enemies around provoke oppurtunity attacks?

Just as the title says, if I cast repelling blast or some other spell that pushes a single enemy away from one of my melee groupies, would that provide an opportunity attack if there was a DM who followed the rules as strict as can be?


Can I enter Romania based on unused multiple entry Schengen visa?

I hold a valid multiple entry Schengen visa issued by Spain, which has not been used so far to enter any Schengen country, Can I enter Romania based on such unused  Schengen visa ?


How can i save field member value of Scriptable Object when it changed on inspector at runtime?

Class Foo(monobehavior) has a scriptableObject and it is exposed to Inspector. When i change its value on inspector on runtime, it is saved. but when i try to change its value by script on runtime, it is never saved. what the different?  and is there a way to save changed value of scriptableObject on runtime? without using json.. or something.  Thanks and sorry for my bad english.


With Ubuntu 16.04 I've been attempting to pair by Apple airpods as a headset. They come up as headphones. They work fine as headphones, but I would like the microphone to be available


How to control fans on a NEC server under Linux? With IPMI or BMC?

I have an old NEC Express5800/T120d server. It was operating under Windows at reasonable fan speed. I now want to use it at home with Debian, but the fans are always at full speed.  The power supply fan is at full speed. With Windows it was quiet. There is a data cable between the motherboard and the power supply. The 1 x rear + 3 x front fans are also at full speed. With Windows they were relatively quiet. Nothing into the BIOS and IPMI console about fan control. Only the current speed is displayed.     I installed lm-sensors and fancontrol without success:  $ sensors-detect ... with YES answer everywhere ... Driver "coretemp":   * Chip `Intel digital thermal sensor' (confidence: 9) Driver "to-be-written":    * ISA bus, address 0xca2     Chip `IPMI BMC KCS' (confidence: 8)   So sensors-detect only see unusable devices.     Nothing more with pwmconfig:  $ pwmconfig /usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed      I installed freeipmi / freeipmi-tools:  $ ipmi-sensors ... 29 | PSU1 Temp        | Temperature                         | 24.00      | C           | 'OK' ... 32 | FAN1             | Fan                                 | 7936.51    | RPM         | 'OK' 33 | FAN2             | Fan                                 | 933.71     | RPM         | 'At or Above (>=) Upper Non-Critical Threshold' 34 | FAN3             | Fan                                 | 933.71     | RPM         | 'At or Above (>=) Upper Non-Critical Threshold' 35 | FAN4             | Fan                                 | N/A        | RPM         | N/A 36 | AIRVOL1          | OEM Reserved                        | 1.31       | unspecified | 'OK' 37 | AIRVOL2          | OEM Reserved                        | 1.31       | unspecified | 'OK' ...   But I don't know how to do more than just looking at the fan speed. Most IPMI programs included into freeipmi asks for a hostname and user/password but I can not manage to understand what to enter.     I also tried upmiutil and ipmitool packages without better success. They all give me the fan status but I do not understand how to configure them.


When installing mods, release does not show up in 'Use version:' list

As the title states, whenever I try to install mods (Renaming folder, installing mods, etc.), the newly-created (modded) folder does not appear in the 'Use Version:' list on the launcher.  What might be wrong?


Can I use polarized capacitors in a location where they shouldn't be polarized?

I've been in the process of restoring a jukebox. Recently I figured out that the junction box, which holds quite a bit of resistors fuses and capacitors, has three large capacitors from the 60-ies... Needless to say they have to be replaced with more recent ones.  They are:   50 WVDC 100 MFD wurlitzer part no. 73862      50 VDC 500 MFD wurlitzer part no. 71816      400 VDC 0.5 MFD wurlitzer part no. 73099-140     This replacement thing however has prooven to be quite the challenge.  I have bought the replacement capacitors which are on their way, however I overlooked an important bit... According to the schematic drawing (see attachment below) only one capacitor has to be polarized, the other two simply have the icon for capacitor with their respective values.  Yet two (possibly three) capacitors that are currently inside the jukebox are polarized, and I bought the replacements based upon their values.   The 50 WVDC 100 MFD (paper), also has plus signs next to the word AMCON, The 50 VDC 500 MFD (yellow), carries plus signs, and a ribbon, The 400 V 0.5mfd (wax) has a ribbon, I assume this is negative.   Any thoughts on polarity, replacements and my original question if polarized caps can be used in these locations, are very welcome :)  I've attached a complete schematic and pictures of the current caps in place below:  Currently the 50 WVDC 100 MFD cap that is in place looks like this:    Currently the 50 VDC 500 MFD cap that is in place looks like this:    Currently the 400 VDC 0.5 MFD cap that is in place looks like this:    The electrical schematic:


Who killed Ra's Al Ghul first, Batman or Arrow?

In Arrow, Ra's Al Ghul is killed by Arrow, whereas in Batman Begins Ra's is killed by Bruce Wayne. How can he be killed more than once and who killed Ra's Al Ghul first, Batman or Arrow? Is Malcom Merlyn from Arrow the Ra's Al Ghul killed by Batman in Batman Begins?


Accepting an answer should automatically upvote it as well

Is there ever a case where you would want to accept an answer, but not upvote it?  I can't think of a single situation where this would be the case.. So would it not make sense to have the "Accept" button upvote the answer too?


How can I configure Firefox to open links to local files?

I'm trying to get Firefox 16.0.1 on Windows 7 to open links that have this form...  some_file.doc   I found this discussion about security policies in the Mozilla docs...    So I understand that this is an issue with Firefox's default security configuration.  And I tried these steps...   Went to about:config in address bar. Right-click in white space, New -> String. Name 1st string default.checkloaduri.enabled with value allAccess. Add another string called localfilelinks.checkloaduri.enabled with value allAccess. Add another string called localfilelinks.sites with value "localhost".   I think the problem may be that I don't understand what the correct value should be for localfilelinks.sites.  For context, this is an internal website that I have created. The users need to be able to click on links in the site and directly open Word, Excel, and PDF files from within their browser. I'm serving them Web pages with links in them in the form above. I've verified that the URIs are valid by copying them into the location bar.  Here's what's confusing me: all the documentation I've found seems to assume that the target files are on some remote Web server, so you put the domain for that server as a value for localfilelinks.sites and it works.  But in this case, from the users' point of view, it's just another drive attached to their computer, so I don't know how to express that in the config as a domain. My best guess is "localhost".  Any help would be greatly appreciated.


Downgrade and disable play store updates

I have a rooted OP3 on Android 7.1.1 with Play Store v. 8.2.38. I have tried uninstalling updates from apps manager(which reverts it to 7.9 the version I want to keep) but it updates Play store as soon as I open it afterwards. I can't keep my phone offline and I need app updates but not the play store itself. I want to keep Play Store at 7.9 or 8.0. How Do I go about doing that? All the related posts here are either outdated or not working


Why there are only humans for service on Darth Vader's ships?

Recently I watched Star Wars Episode 4 and 5 and I noticed that on Darth Vader's ships (the Death Star, the Executor) and other Empire ships there are only human species as crew.   There are no aliens or other species on board, other than the brief scene with the bounty hunters.  Is there any special reason behind this?


Why was the Republic so interested in Naboo?

I don't understand why the Republic was so interested in the planet Naboo; it's a small planet in a big Galaxy. Queen Amidala didn't agree with the taxation of trade routes to outlying star systems, it's clear, but the Republic wants to have access to these planets uncontended. Why is Naboo so important to the development of the Republic?


Css make child div 100% height and scrollable if necessary

Consider the following stacked divs:    .page {   height: 100%; }  .top {   height: 100%;   background-color: red; }  .bottom {   height: 100%;   background-color: grey; }  .options {   height: 100%;   overflow: scroll; }

TOP

Options Menu

Option 1

Option 2

Option 3

Option 4

Option 5

Option 6

Option 7

Option 8

Option 9

Option 10

     How can I change it to allow only the options to scroll, not the page?


Effectively creating this effect in Illustrator?

Been lurking awhile but this is my first post.   I've always wondered what this effect is called and I'm almost certain there's an easier way to doing it than how I do it. I'm talking about the "empty" stroke around overlapping parts of icons.   In this case I would put a stroke that's the color of the background around the first character. I know this is bad practice for many reasons, but I haven't found a way to use the pathfinder to do this.  I'm looking for a way to do it that would effectively cut away the shapes smoothly in a X amount of pixels around a certain shape instead of covering it up so I can save the icon and use it over whatever colored background I want to.  I'm guessing I'm not the first person to ask this but I have no earthly clue how this effect is called so my research has returned nothing relevant.


Kepler problem in time: how do two gravitationally attracted particles move?

Two particles with initial positions and velocities $r_1,v_1$ and $r_2,v_2$ are interacting by the inverse square law (with G=1), so that  $$ {d^2r_1\over dt^2} = - { m_2(r_1-r_2)\over |r_1-r_2|^3} $$ $$ {d^2r_2\over dt^2} = - { m_1(r_2-r_1)\over |r_1-r_2|^3} $$  (the inverse square law along the line of separation). What is the complete solution of these differential equations? What is the position of the two objects as a function of time?  After reading a lot on Wikipedia, I've come to the definition of center of mass and relative coordinates:   $$R(t) ~=~ \frac{m_1 r_1 + m_2 r_2}{m_1+m_2}$$  $$\ddot{r}(t) r(t)^2 ~=~ (m_1+m_2)G$$  Where $R$ is the center of mass, and $r$ is the displacement between the particles... Is this correct? How do I proceed to solve the differential equation?


Why isn't energy stored in a capacitor equal to just $QV$ when it is fully charged?

I just learned that the energy stored in a capacitor is electrostatic potential energy. Also potential energy is a state function and is independent of the path. So, when the capacitor is fully charged to $Q$ and a potential difference of $V$, the potential energy of the system would be $$Q(V_+)-Q(V_-) = Q(\Delta V) = U$$ where, $V_+$ is the potential of the positive plate and $V_-$ is the potential of the negatively charged plate.   This is how we calculate the potential energy of system of charges. Why does this reasoning fail in case of capacitors?


Prove $\alpha \in R[[x]]$ is a unit iff $a_0 \in R$ is a unit.   $"\Rightarrow"$ suppose $\alpha \in R[[x]]$ is a unit, where $\alpha = \sum_{n=0}^{\infty} a_nx^n$  then there exists an inverse $\beta = \sum_{n=0}^{\infty} b_nx^n$   stuck at this spot,  $(\sum_{n=0}^{\infty} a_nx^n)(\sum_{n=0}^{\infty} b_nx^n) = \sum_{n=0}^{\infty}(\sum_{k=0}^{n}(a_kb_{n-k}))x^n$  A little mixed up on how this becomes $1 = \sum_{n=0}^{\infty}e_nx^n$ where $e_0 =1, e_{n>0} = 0$ and why that would make $a_0b_0 = 1$ which would make $a_0 \in R$ a unit. I haven't tried the other direction yet.  EDIT  Maybe I get it, because we assumed this sum is a unit then its inverse exists and so the $x^0=1$ and all $a_ib_i=1$ thus $a_0b_0=1$ which gives $a_0$ is a unit in $R$


What formula do I use to calculate the force of impact of a falling object?

I am trying to calculate the force of impact of a falling object. I did my egg drop project. I dropped the egg from 10m with a mass of 126kg and with the velocity of 14.1 m/s. Which formula should I use to calculate the force of impact? I found the kinetic energy first and later I used the following formula: $W=Fs$ to find the force of impact. Is that the right formula?


Determine whether the $\sum\frac{\sqrt{n+1}-\sqrt{n}}{n}$ is convergent or divergent.

I know that $\sum(\sqrt{n+1}-\sqrt{n})$ is divergent by doing the Telescoping Series. Now our given series is, $\sum\dfrac{\sqrt{n+1}-\sqrt{n}}{n}$. I considered doing the Ratio Test on the given series but did not go too well. It just gave me a much more complicated series to work with. I was given a hint that I could use the Comparison Test and compare it with $\dfrac{1}{(\sqrt{n})^3}$. I'm confused as to why we would be comparing it to that?


What's the reason for a deleted question without any notification to delete its answer?

I answered a question, but after two days the question was deleted, so its answers deleted after also without any notification to me.  I found my deleted answer in Deleted Recent Answers list, then I found the deleted its question.  I expected it notify to me!  Also, what's the reason for deleting a question by the owner? I have spent a time and effort into answering that!    This is the deleted  that I'm complaining about it.


How can I check if someone bought a non-consumable product on iOS/Android?

In my application are 10 free levels, everyone can play them without doing in-app purchases. But if you want more levels, then you need to buy once a non-consumable product in the application. After you purchased it, you will have access to all levels that are currently available and to all levels that will be released during the next weeks.  But how can I know if someone bought the non-consumable product? Is it necessary to send at every reboot of the application a request to the Apple App Store to check if the current Apple ID has bought the product?


Does iTunes Home Sharing transfer in-app purchases?

My wife recently got an iPhone and, being that I'm an iPhone user already, I set up iTunes Home Sharing (under my Apple ID) so that I could share some of my purchased apps with her.  While paid apps transferred to her phone without a problem, in-app purchases that I had made under my account didn't transfer over.  Is this the correct behavior? Our phones are set up under different Apple IDs, but I was still able to transfer purchased (paid upfront) apps to her – which is completely allowed under the Terms of Use – so I assumed the same would apply to in-app purchases as well.


Windows user here on Ubuntu. How do I install the java JRE and NOT the JDK so I can run minecraft?

I've looked in a lot of places including the java website and oracle website but everyone is showing how to install the jdk and not the jre which I need.  Java 8 jre specifically.  And I'd like to do it in the gui if I don't have to use the terminal so there are less errors in getting it installed.  I've searched the software center but searching java yields a loading circle and shows no results. Ideally I would like proprietary and not open.


Replace a string in a text file using a shell script not working properly

I have a text file containing this:  0 0 -1 0 1 0 0 0 0 -1 0 0 1.5 0.0 1.0 1   and I want to replace the 1.0 to 2.0 so that it becomes:  0 0 -1 0 1 0 0 0 0 -1 0 0 1.5 0.0 2.0 1   so I use this command:  sed -i 's/'1.0'/'2.0'/g' /home/user1/file1.txt   or this:  sed -i 's/1.0/2.0/g' /home/user1/file1.txt   but this is the result that appears and I don't know how to fix this:  0 0 -2.0 2.0 0 0 0 -2.0 0 1.5 0.0 2.0 1


External Image Link Broken when Rendering as PDF

When referencing an external image in a Visualforce PDF rendered image, the image is displaying a broken link.  It works perfectly without the renderAs="PDF".


How to fix AppArmor `could not open` error when installing php+mysql?

I want to install php5-imap php5-ldap php5-curl  sudo apt-get install php5-imap php5-ldap php5-curl   I get this error:  AppArmor parser error for /etc/apparmor.d/usr.sbin.mysqld in /etc/apparmor.d/usr.sbin.mysqld at line 9: Could not open 'abstractions/mysql'   How can this problem be resolved?


Why don't we use  " 's "(possessive S)  in the first sentence as in the second one?        I have the same color eyes as my father.   My personality is very similar to my father's.      Can we use "my father's" for the first sentence and "my father" for second one?  Or        She was born on the same day as me.   Her ideas are quite similar to mine.      Why in the first sentence do we use object pronoun, but possessive pronoun in the second one.


Check whether a no has exactly two Prime Factors

Is there a way to check whether an integer has exactly two prime factors(can be same) that is , it can be expressed as a product of two prime nos ?  EDIT: I dont want to find the factors i just want a formulae or an algo to check whether a certain no can be expressed as a product of two primes either true or false.


How to prevent random referrals to my website in Google Analytics?

When I look at my Google Analytics dashboard, I see most referrals from a website called rank-checker.online which highly skews up my data.  There are other such websites, get-rick-quick, free-social buttons etc, because of which I am unable to get an actual overview of the site users. Is there a way to not see the data from these?


Why is a binary system used instead of decimal system when interpreting voltages?

In physical computing, binary is used to perform calculations.  Typically, 1 corresponds to high voltage (3V-5V), and 0 corresponds to low voltage (0V-2V). Perhaps it is not feasible due to the amount of precision involved, but why is it that people do not use a higher base system such as decimal or hexadecimal when interpreting voltages? The thought behind this is that if a computational system divides a range of voltages into 10 discrete sub-ranges, then couldn't computational speed be increased? Instead of using 0V-2V and 3V-5V, perhaps something like the following could be used:  I realize that the voltage ranges cannot be be too high; so, if the voltage range of  0V-5V was split up into 10 intervals instead, would there be any issues?


Prove that:  $$\sum_{i=0}^{n}i{{n}\choose{i}}=2^{n-1}n$$  I tried to use binominal theorem, but I don't know how to get rid of the $i$ and substitution didn't help me either.


Inside my website tag <head> part code like below and recently I get some error report from 'Google Webmaster Tools → International Targeting':     en - no return tags   es - no return tags   I googled but still can't get what "no return tags" means?    I checked the URL http://example.com/?hl=en work in my website route enable to get content. Or does that mean there must have a dom <a> href and same as the language URL inside my <body> content?  <head>   <!-- … -->   <link href="http://domain.com/" rel="canonical">   <link href="http://domain.com/" hreflang="x-default" rel="alternate">   <link href="http://domain.com/?hl=en" hreflang="en" rel="alternate">   <link href="http://domain.com/?hl=es" hreflang="es" rel="alternate"> </head>


I have read that the  is a psuedo force in a rotating system. But what is the origin and direction  of this force? I searched in Wikipedia but it didn't help me much. So I need a intuition about what causes this force.  Please discuss with examples and with images.


How to make delete animation like Notes app

I want to make an animation, like the deleting a note in iPhone Notes app. But here I want to do it for Tabbar. So deleting a view (something shows in a view) will swoop down in a delete tab bar icon. Say, I have favourite tab bar item, so adding something in the favourite will swoop down the view in the favourite tab bar item.


Deleted (Spam) Questions from Stack Exchange (Deep Learning)

I've been trying to implement a Machine-Learning based version of the "Smoke Detector" system by Charcoal, which uses human-crafted regular expressions to currently detect spam. It's already a great and highly accurate system, but using Machine Learning may reduce the number of False Negatives & Positives.  The great team at Charcoal was kind enough to provide a Data Dump of all the spam Charcoal has collected. However, this doesn't seem to be enough data for my deep learning systems. I'm trying to train an extremely deep learning model which combines CNNs, GRUs, and parallel models.  While I'm getting reasonably good accuracy, I need more data. Is there a way I can access deleted spam posts from the Stack Exchange network (not just SO in specific)? Of course, all to improve the quality of the content on the SE network :)  Also, this post isn't a duplicate of  (or any other related posts) because I'm not asking for all deleted posts or spam posts in the data dump, I'm asking for a dataset for myself to work with in Machine Learning tasks.  In fact, I've got a Keynote at the Watson Summit in New Zealand in a few days, and I plan to talk about this technology there as well:  (I'm Tanmay Bakshi)  NOTE: I'm currently working with 60,000 rows of data, but I'm thinking 100,000 (or as many as possible) would be much better to work with.


Is it ethical to withdraw a paper after acceptance in order to resubmit to a better journal?

I think the title asks the question, but once again in more words:  Suppose you submit a paper to a journal and it is accepted by the journal.  By this I mean that the journal tells you that they have decided to publish your paper but you have not submitted or examined final proofs and -- especially -- not signed any paperwork allowing the journal to publish the paper.    I wonder how people feel about the ethics of deciding not to go through with the publication because you now feel that the paper could be published in a better journal?  This could happen either because of outside feedback you received in the meantime or because of feedback from the referees/editors of the journal itself.  (Added: In case this was not clear, I am assuming that upon submission one was seeking to publish in that journal conditional on not learning that one has "shot way too low".)    As far as I can see, it is absolutely legal to do this, so I am not interested in the legality of it, but rather its ethics and ramifications as an academic practice.  I also think I will get better answers if I do not telegraph my own feelings about this; I will be happy to document them later on.  Let me just say (i) this is a hypothetical question, but (ii) based on my own experience it is not ridiculous that it might be in the interest of the author to engage in this practice, if it happened to be kosher to all parties involved.  Note: I had previously asked a related question, at the time wondering whether it would be better asked separately.  Based on the way things have gone thus far, I now think it is better to post this followup question separately (not necessarily right away).


Prove that $x^2 = - 1$ has no solution in $\mathbb{Z}$

I have this proposition to prove: The equation $x^2 = -1$ has no solution in $\mathbb Z$. I was told that this is an opportunity for a proof by contradiction. I have already proven that for $m \in\mathbb Z$, if $m \ne 0$ then $m^2 \in\mathbb N$. I have also proven that 1 is a natural number (hence, -1 isn't one).  Here is my strategy: assume that there is a solution. Hence $x^2$ has 3 options: \begin{align*} x^2 \in\mathbb N\\ -(x^2) \in\mathbb N\\ x^2 = 0 \end{align*}  Option 1 is not possible because -1 is not a natural number. Option 2 doesn't make sense because         -$\mathbb N \in \mathbb N$ and option 3 doesn't make sense either because $0 \ne -1$. What do you think? Thank you!    Here is a simpler strategy based on the comments below.  Proof: Assume that $x^2 = -1$ has a solution in $\mathbb Z$, then $x^2$ will either be $0$ or $\in\mathbb N$. However, $-1 \notin\mathbb N$ and $-1 \ne 0$. Hence, there is a contradiction. Here is how I have proven that $-1 \notin\mathbb N$: Let $m \in\mathbb N$. Hence:  \begin{align*} -m \notin\mathbb N\\ (-1)m \notin\mathbb N \end{align*}  If $-1 \in\mathbb N$, the product of $-1$ and $m$ should $\in\mathbb N$, which is not the case here. Hence, $-1 \notin\mathbb N$.


Be clear in the Stack Exchange Android app error message when a question is deleted

When viewing my feed on the mobile application, I attempted to access a post I'd left a comment on. After following the link, I received an error stating "The post was unable to load."  At first I thought I was having connection issues on my device. However, after trying to load the question in a browser, it brought me to the post-removed page.  Perhaps it would be better to display some sort of indication that a post had been deleted inside of the mobile feed? On the other hand, the error displayed on the mobile application could be reworded to better represent the post's status.


Prove that $\lim\limits_{n\rightarrow\infty} \left(1+\frac{1}{a_{n}} \right)^{a_{n}}=e$ if $\lim\limits_{n\rightarrow\infty} a_{n}=\infty$

What would be the nicest proof of the following theorem:  If $\lim\limits_{n \rightarrow \infty} a_{n} = \infty$, then $\lim\limits_{n \rightarrow \infty} \left(1 + \frac{1}{a_{n}} \right) ^ {a_{n} } = e$. If $\lim\limits_{n \rightarrow \infty}b_{n} = 0$, then $\lim\limits_{n \rightarrow \infty} \left(1 + b_{n} \right) ^ {\frac {1} {b_{n}} } = e$.  I somehow failed to find a proof here on the website and in the literature.


I have a label before input with float: right. How to set position of label always in the middle of vertical align of input? My css is below:  label {   width: 50px;   text-align: right;   display: inline-block; }  input {   float: right;   height: 40px;   width: 200px; }   And This is my html:
   Name   <input type='text'/>


Making hats available year-round, rather than limiting them to Winter Bash, would be a natural and powerful extension of Stack Exchange's gamification systems. This remains true even if hats are disabled for anonymous users and easy to disable for registered users.  Why Would You Suggest This?  The Xbox Live Achievements system was the inspiration for the original Stack Exchange badge system, in 2008. If somebody was viewing your Xbox or Stack profile, they might see that you'd unlocked some rare achievement, and it could inspire them to work towards that themselves.   But let's get real: most users rarely look at each other's profiles. (We have the view count numbers to prove that.) And while your peers might notice when you unlock your first gold badge, after the first few nobody will notice them ticking up. It's still motivating, but it's lost some flair. Video games faced the same problem. In 2008 it may have been cool to have a couple thousand Xbox Live Gamerpoints, but these days of my friends have so many that the numbers don't even register.  Now in 2018, when players accomplish some difficult achievement, they're often also rewarded with a cosmetic reward that's visible in the course of ordinary gameplay. For example, in Fortnite I was just awarded with an umbrella glider for my first win, and I get to show this off to fellow players at the beginning of every game. Hats can serve the same role here on Stack Exchange.  If Shog earns the Socratic badge today, I would never notice.  But how could I fail to notice this?    Being able to highlight your accomplishments to your fellow users in the course of regular site use would be a fun incentive.  A key point to consider is who users are interested in showing-off to. I think that most users are most interested in showing off to fellow Stack Exchange users, since they're the ones who would be most most appreciate the accomplishments. For that reason, I think this would remain almost as effective even if it's disabled for unregistered users, so Stack's interface remains as clean as possible to people who wouldn't care. Likewise, an "I Hate Hats!" button should remain available to let disinterested users quickly opt-out.  Step 4: Profit?  I hesitate to include this, because of the general concern about mixing anything financial into the dynamic of the site. However, the site needs to make money somehow, and I think that if done with care, paid cosmetic hats could be added without ill effect. The most important point (which should be obvious but bears repeating) is that paid and awarded hats must be mutually exclusive.  Perhaps we could have a new profile widget which explains how the user's currently-equipped hat was awarded. This would point to a badge for awarded hats, or display a message like "for donating $10 in Spring 2018" for purchased hats.  One potential model would be to have a set of exclusive hats that rotate out every season/three months and are never available again. As the user donates within a season, they unlock cooler hats, perhaps following a $5/$25/$125 progression.  This is not an original idea, and users have accepted it elsewhere. I am currently a moderator on . It is a community moderated and community-funded website. Users who donate to keep the site running get to pick a little flair to appear next to their avatar throughout the site. Users don't seem to have any problems with this.


Home/End buttons don't work when connecting to Solaris via Putty

I am using Putty to connect to Solaris machine (SunOS 5.11 11.3) from my Win10 PC (workplace mandates win, so it is necessary).  Despite trying different terminal definition strings and different keyboard settings in Putty I still get one or more of the next issues:   Home/End buttons either don't work at all (or just Home if 'rxvt' set as "The Home and End keys" in "Terminal->Keyboard") Or screen complaining that it cannot recognize TERM (trying to use 'linux' as terminal-type string in "Connection->Data"). And I absolutely need screen, yeah.   The closest I can get to something normal is:   Terminal->Keyboard:   The Home and End keys - rxvt The Function keys and keypad - Xterm R6  Connection->Data:   Terminal-type string - xterm-256color    But the 'End' button still doesn't work.  Who knows how to properly configure Putty in order for this buttons to work?  Maybe there is other freeware tool which I can use to achieve the desirable effect?


how to reinsert old records from excel file in salesforce production edition

I have old records and i want to reinsert it now.  i having a contacts and their spendings  e.g like by year  2006- abc                       2007 -abc   now i want to add 2005 records from excel sheet.  and excel sheet having acc name,accid,contact name,cotanct id and monthwise data like  jan to dec.   what will be the best approach? Please help...


I have the 1.8.8 updated Minecraft Console edition. In the previous version, lapis lazuli, was highly prevalent, on par with red stone or something. Since the update, I have not found nearly as much. (4 blocks total) I have found 5 times that in diamonds. I am playing in the level of bedrock to + 50 above bedrock, and I haven't found hardly any. I am using the branch style of mining, which has been highly effective in finding everything but lapis. What happening? Has lapis become more rare in version 1.8.8?


I need to install , I am using the vanilla  from CTAN. I have another option to install it is from the OS (i.e. Ubuntu) repository, but it will install another copy of OS specific TeX stack which I do not want.    is not a latex macro/style file, it is an executable (like ). I can install xdvi using tlmgr, but not catdvi. Even my tlmgr gives detailed info on the xdvi status --  > tlmgr info xdvi package:     xdvi category:    TLCore shortdesc:   A DVI previewer for the X Window System. longdesc:    The canonical previewer for use on Unix and other X-windows based systems. The distribution has been integrated with that of xdvik (no longer separately available), so that it will build with web2c "out of the box". In practice, it is usually distributed via Tex-live. installed:   Yes revision:    30339 sizes:       doc: 261k, run: 37k, bin: 1145k relocatable: No cat-version: 22.86 cat-date:    2013-05-08 11:16:41 +0200 cat-license: other-free collection:  collection-basic   But tlmgr gives nothing on catdvi --  > tlmgr info catdvi tlmgr: package repository http://mirrors.ibiblio.org/pub/mirrors/CTAN/systems/texlive/tlnet tlmgr: cannot find package catdvi   But both of them are in the  directory.  How do I install it through TeXLive?   Please also note that I have another option to directly download and compile the catdvi from the sourceforge , but I do not want to do that.


I tried to check if I qualify to be member of carriers 2.0. But alas, I appear to be quite junior in the rank. What is the reputation threshold to qualify for membership of careers 2.0.


How do I get a live-USB to use a partition for persistence?

I want to install Ubuntu to a USB hard drive so that it will run on all systems, that can run the LiveCD and store persistent data on a regular ext4 partition rather than a casper-rw file. In every other way it should behave like a regular Ubuntu installation. The problem With Startup Disk Creator one is able to put the LiveCD image on a USB-device. Changes can be made persistent but are stored in a file that is limited to a few GB in size. Said persistent file (additionally to being size restricted) has the problem that it isn't readable like data on a normal partition.* My question So how do I get the LiveCD on a USB disk in such a way that the changes are stored in a normal partition rather than a persistence file? Also the persistent changes shouldn't be restricted to a few GB in size but use whole partition of many 100 GB if need be. I suspect there is a tutorial out there for this, but my google-fu is just not good enough to find it. tl;dr: Sytem should run on all hardware configurations, have full functionality of the LiveCD and be stored on a regular ext4 partiton without using ramdisks and casper-rw. FU casper-rw.  *I know one could mount the casper-rw file from another OS and get to the data this way but that's a hassle.


How to convert a normal random variable to a truncated normal distribution?

Is it possible to transform a normally distributed variable into one that defined by a truncated normal distribution? I am currently using a KL transform to generate Gaussian random fields. I would like to transform these fields into truncated normally distributed fields with a specified mean and std. As I am using these random fields with the Polynomial Chaos Expansion (PCE) method to compute the low order statistics of the system, I don't know it mathematically correct to simply truncate my Gaussian fields. For context, at the moment I am able to transform the Gaussian fields into uniformly distributed fields in the range [a,b] by using the following transformation: 𝑥𝑢𝑛𝑖=𝑎+(𝑏−𝑎)𝜙[𝑥𝑛𝑜𝑟𝑚] where 𝜙[⋅], is the gaussian cumulative distribution function. Is there a similar transformation that I can apply to convert the Gaussian field into a truncated normal field? Thanks in advance!


What is the distribution when a Gaussian is passed through Sigmoid activation

Problem  This is an interview question my friend asked me since she messed up with it. To be more specific,     What is the resulting distribution when a Gaussian $\mathcal{N}(\mu, \sigma^2)$ is transformed by Sigmoid $t(x)=\frac{1}{1+e^{-x}}$.   I tried to derive and got the following  $$ \begin{aligned} \log y&=x-\log (1+e^x)\\ x&=\frac{1}{\sqrt{2\pi\sigma}}\exp(-\frac{(x-\mu)^2}{2\sigma^2}) \end{aligned} $$ But the $\log(\cdot)$ seems to be intractable when I plug $x$ in.  I also tried to simulate this process and got    It seems that the resulting distribution is still Gaussian (with some elevation and shrinking in magnitude). But I still would like to know the theoretical derivation.  Could someone help me and my friend? Thank you in advance.


How to get company's default currency in Apex for both single currency and multi currency orgs

Background we are building an SF's custom app and cannot assume if is enabled or not (depends on the customer). What I want to do I want to get the organization's default currency (no matter what Multiple Currency Settings is). What I have tried A. User.CurrencyIsoCode Problem: This code is not deployable in an org whose Multiple Currency Settings is NOT enabled. User u = [select Id, CurrencyIsoCode from User][0]; System.debug(u.CurrencyIsoCode);  B. CurrencyType Problem: same as above CurrencyType c = [SELECT ISOCode, ConversionRate FROM CurrencyType WHERE IsActive=TRUE and IsCorporate=TRUE]; System.debug(c.IsoCode);  C. ConnectApi Problem: This code returns null in an org whose Multiple Currency Settings is enabled. ConnectApi.OrganizationSettings settings=ConnectApi.Organization.getSettings(); System.debug(settings.features.defaultCurrencyIsoCode);  Thank you in advance.  Solution; public class MyDebugClassMultiCurrency { public MyDebugClassMultiCurrency(){     Boolean multiCurrencyEnabled = Schema.getGlobalDescribe().containsKey('CurrencyType');     if(multiCurrencyEnabled==true) {         sObject sobj = Database.query('SELECT ISOCode, ConversionRate FROM CurrencyType WHERE IsActive=TRUE and IsCorporate=TRUE');         System.debug(sobj.get('ISOCode'));     } else {         ConnectApi.OrganizationSettings settings=ConnectApi.Organization.getSettings();         System.debug(settings.features.defaultCurrencyIsoCode);     } }  }


Stack Overflow technology makes me write bad answers

Today I had some time and felt like writing a relatively good answer on Stack Overflow; explaining both the underlying mechanisms and good practices, unlike usual declarative answers in a "do that" style.  It took me like an hour of time, $50 if I were free lance. It'll bring me nothing but 3-5 occasional views, and - if I get lucky - some ignorant comments.  You know, it's quite discouraging.  Instead of pride for the job that was done, I feel frustrated. I know, this answer may offer help to the OP, if he ever notices it (being already satisfied with other answers).  So the only fate the answer will meet is to sink forever, below thousands other questions, falling like snow.  So, being a programmer, I am thinking of efficiency. It's a waste of time to spend so much effort to answer one question when there is no way to [actually] reuse it. So, I wouldn't do it again but just turn back into short answers mode without explanations.       Seeing other answers, I don't think I am only one with such feeling.  The current policy is driving knowledgeable and educational users away, yet it attracts inexperienced ones in numbers. Ones who will tell you to use [some technology] which they never have laid their hands upon. Ones who write answers just because they have learned some "good practice" from other questions, and this "knowledge" becomes an endless source of rep points.  The idea of Stack Overflow is rotten. It was excellent when trees were high and traffic was low.  It turned bad now; it has become a honeypot for all the "enthusiast programmers" of the world, eager to share their 2 cents faster than you can say the word "close".  You're killing a great resource. Despite all the nice words and proper declarations, it discourages the reuse of the knowledge. And encourages fast on-site answers.  Of course, the rules will tell you contrary. It's all nice and proper (if you don't mind it's strict mutual exclusivity). But mechanically, technologically it works in the way I described.  I tried to write a tag wiki. You know, it was biggest waste of time in my life. As a matter of fact, it is not a wiki at all; you can't even link to a certain section. Not to mention that nobody ever has the idea to read tag wikis.  Reference questions? Don't make me laugh. There is no good mechanism to store and categorize links. Favorites, although intended for the different purpose, are a chunk of crap when you want to use it as a reference. So, you can't compete with 30-seconds answers: a question will get 5 answers before you can even find an appropriate link.  Okay, I can organize links myself but, there are some problems:   I am just a human. I cannot remember everything I am just a human and I cannot answer questions at rate of 1 qpm. One person cannot fight the Tide. It's helpless. When technology makes people writing fast [incomplete] answers -  no good will of proper declarations can do a thing.  Even if a question gets finally closed, it won't hurt anyone - the hydra grew two more already.   You'll call me a brute for insulting honest users and innocent volunteers, but that's fact: There are much more inexperienced users than experienced ones. And inexperienced users have much more spare time to hang over than experts who have their job to do. So, from that fact we can conclude that most of the answers on Stack Overflow have a low quality. Nobody cares. But I do.   There should be a technical way to limit the activity of not-so-knowledgeable-yet-eager-to-answer users. There should be a technical preference for the closing a question over answering it (have a silly answer for the silly question? welcome to comments). There should be a technical solution to accumulate and structure knowledge, a system that lets you choose a good answer instead of writing it by hand.   That's the only way. Otherwise Stack Overflow will remain an automated dispenser of bad practices.  Well, I just felt like letting it out again. Thank you for reading.


Is it normal to use “absent” as a preposition instead of ‘without,’ or ‘in the absence of’?

In the following sentence of today’s Time magazine’s article titled "Obama's Afghanistan problem: Neither Karzai nor the Taliban like the 'Reconciliation' Script," the word absent appears to be used as a preposition having the sense of ‘without.’   “Karzai's independent power base is minimal, as is his ability to influence the outcome of his country's civil war absent direct U.S. involvement. And that gives neither Karzai nor the Taliban much incentive to cut a deal with the other.”  As I don’t think I’ve seen case ‘absent’ being used in this way, I consulted OALD. It defines ‘absent’ only as a noun and verb. The Cambridge online dictionary also defines it as an adjective meaning ‘not in the place where you are expected to be, especially at school or work.’  Is it natural to use ‘absent’ as a preposition as used above? For example, would you casually say ‘It won’t go well absent your help’ in your daily conversation? Is it the same with the usage pattern of ‘short of’?


What is the difference between these function declarations in Javascript?

I am having a hard time understanding what the difference between the following declarations is...  var User = function(name, email) {   this.name = name;   this.email = email; };   and  function User(name, email) {   this.name = name;   this.email = email; };


If a black hole was near enough us to be seen by telescope (by eye), if it ate a star, how long would we be seeing the star being eaten?

Since we are external observers, an object falling in a black hole should take an infinite amount of time right? If so, what is the answer to my question in the title?


How do you prove a graph **is not** planar?

Is there a theorem using the number of edges and vertices, or something about the max degree a vertex can have? I know that you can use $e ≤ 3v−6$. But what if that condition holds, and it still might not be planar? I'm having a hard time finding a planar representation for the graph I'm looking at.


Uniform convergence of $f_n(x) = \frac{nx}{1+n^2x^2}$ on $[a,\infty), a>0$

I believe it does converge uniformly to 0. Note that $|f_n(x)| = \frac{nx}{1+n^2x^2}$ and its derivative is $$\frac{n-n^3x^2}{(1+n^2x^2)^2}$$ which is zero at $x = \sqrt{n/n^3}$ where the function has its maximum. So this function has a peak which moves towards $x=0$ as $n \to \infty$, which means that for some $N$, $\forall n \ge N$, the location of the peak has moved to the left of $x=a$, and since the function then decays we have $\forall n \ge N$: $$\sup_{x\in [a,\infty)}|f_n(x)|= \left. \frac{nx}{1+n^2x^2}\right\rvert_{x=a} = \frac{na}{1+n^2a^2} \to 0$$  Is my reasoning correct? Could you make it more rigorous?


Read data from Database and display it in JSP

I'm trying to display data in JSP by a servlet but I get a null object after getting the parameter:  This is my doGet function in the servlet:  protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {     PrintWriter out = response.getWriter();       EntityManagerFactory emf = Persistence.createEntityManagerFactory("AdministracionWeb");      StudentManager sm = new StudentManager();     sm.setEntityManagerFactory(emf);      List<Student> result = sm.getAllStudents();     // result contains a correct value     //out.println(result);     request.setAttribute("stList", result);           request.getRequestDispatcher("students.jsp").forward(request,response); }   And this is how I read the result:  <%     List<Student> stList = (List<Student>) request.getAttribute("stList");     // stList here is null (why???)     Student st = new Student();     for (int i = 0; i < stList.size(); i++){         st = stList.get(i);      ... %>   Thanks in advance!!


Can I choose what time of day email notifications should be sent?

The email notifications are sent in the same time of the subscriptions?  I would like to choose the period (morning, afternoon, night) or the interval (6:00-9:00, 9:00-12:00, 12:00-15:00, etc) at which to receive them.  Sometimes I ignore the notifications because are sent in bad times.


What term means "one who enjoys learning"?

Is there a term that means "a person who enjoys learning"? This term might be used to describe someone who:   Is a self-motivated learner. Is curious, wants to understand many things.   I understand the term "philosopher" might be a good fit, in terms of its root words, however, the general population has an inconsistent understanding of this term, so I am looking for a more precise term.


how to remove half line in twocolumn in first page?

I want half line in twocolumn article but in first page like this  first page   second page   \documentclass[landscape,12pt]{article}  \usepackage[margin=1cm,top=1.3cm,bottom=1.3cm,headsep=5mm] {geometry} \usepackage{fancyhdr,fancybox} \usepackage{pgfplots,tikz} \usepackage[normalem]{ulem}   \usepackage{polyglossia} \usepackage{tkz-tab} \pagestyle{fancy} \renewcommand{\headrulewidth}{.7pt} \renewcommand{\footrulewidth}{.7pt}        \begin{document} hellow hellow hellow    hellow hellow hellow    hellow hellow hellow     hellow hellow hellow    hellow hellow hellow        \end{document}


Recover Partition Table for exFAT Partition

I unplugged my USB stick from Ubuntu 16.04 without the save remove option, but exfat should be fine doing so. No read write was happening, the partition does not use journaling. What I end up with is an unmountable USB stick with checksum error.   What tools are there to recover the partition table or at least the data on the USB stick? What I am doing now is scanning via parted. Has anyone experienced the same problem with exfat and recovery options? Unfortunately parted probably won't detect the partition because .  I also tried to use Partition Wizard on Windows but it failed to detect anything, just showing unallocated space. How do I proceed? are there helpful tools under Windows or Ubuntu?    I also tried to use gpart -v /dev/sdb but it failed to detect anything. On OS X there is a tool called fsck_exfat, is there any on Windows?  update The disk is preinstalled with Parted Magic. After quick search no partition shows up.


Method comparisons for trees and forests

I am looking to compare various types of models for a dataset, in order to determine which one is the most suitable. They will all be a form of decision tree, from the basic tree to random forests, including oblique trees, random trees, etc. My variable of interest is binary, with a lot more 0s than 1s.  I intend to use many methods for comparison in order to be thorough. (Weighted) cross-validation will of course be included, but what else would you suggest?  If it changes anything, I'm using R, but I am perfectly willing to implement methods myself in the unlikely event that they are not already included in some package.


Why didn't Gandalf carry the Ring in Maia form?

I understand that the Istari - the only other Maiar besides the Balrog to come into close proximity to the Ring - are constrained within a mortal body and subject to its mortal weaknesses, which renders them vulnerable to the Ring's domination and corruption. However, what is to stop Gandalf from returning to his true form, picking up the Ring, and just walking all the way to Mount Doom? Sauron is too weak at the time; he would have been able to do nothing but watch helplessly and pray his mortal armies can defeat a Ring-bearing Gandalf.  Is Gandalf's decision to abide by the Valar's will to the end the only thing holding him back from this particular option? Are there enchantments in place to disable his ability to revert to Maia form, such that the option was never there to begin with? Or would he, even in Maia form and free of mortal weaknesses, still be vulnerable to domination and corruption by the Ring?  The One Ring is forged with the essence of Sauron to dominate and rule the minds of lesser beings. However, Sauron is only a Maia - albeit the highest-ranking in Morgoth's following. Fellow Maiar would be his equal (at least in rank), while the Valar are certainly superior in power to him. If an Ainu becomes a Ringbearer, will he/she eventually fall to Sauron's will too, or at least succumb to the corruption of the Ring's dark power?


I am well aware of how the Favorite button on the questions works and where I go to find my or anyone else's favorite questions.  I am also well aware of the fact that adding a question to the favorites improves its "hotness score" (and who does not want to show his answers on the main page), since it is public reputation of the question. Correct me if I am wrong.  Adding 1 and 1 made me look into the profiles of some highly-ranked users (on various sites) and the amount of the favorite questions closely matched the amount of their answers. The OP can do probably the same for his questions, but highly-ranked askers are not so common.  Yes. I know that hot questions are not substitute for a good questions and good answers, but the visibility helps.  Everyone have limited amount of votes per day, which affects questions all around, but are the Favorites limited in any way? Is this considered as ethical or is it advisable?


What's the projective limit of these polynomial rings ?

Define an inverse system of polynomial rings over a commutative ring $k$ by the canonical projection $k[x_1,...,x_n] \to k[x_1,...,x_m]\;(m< n)$.   Question: What is the projective limit $\varprojlim_n k[x_1,...,x_n]$ ?