Calling @ApexRest web service (services/apexrest) from Visualforce page in same org

I've been looking all over the place to figure out how to approach this.  I'm trying to call a web service (services/apexrest) from the same org.  I'm recieving the following error:  XMLHttpRequest cannot load https://cs45.salesforce.com/services/apexrest/RimsSalesforceConnectRemote.  No 'Access-Control-Allow-Origin' header is present on the requested resource.  Origin 'https://c.cs45.visual.force.com' is therefore not allowed access. The response had HTTP status code 401.   I noticed that the origin is different than the target.     Is there no way to call this web service via JavaScript?   Is this simply unsupported functionality?   I am able to make successful calls via workbench.developerforce.com so I'm a bit confused.  I do not want this API to be publicly accessible, so I opted to not associated with a Site.  What is also interesting is that the error alludes to a CORS issue, but the 401 code according to Salesforce has more to do with a bad token.  Update 1* As suggested, I leveraged the sforce.connect.remoteFunction with a promise to call the Apex rest web service.  Unfortunately due to the requirements, I'm now bumping into a callout depth threshold:  [{"errorCode":"APEX_ERROR","message":"System.CalloutException: Callout loop not allowed\n\nClass.RimsSalesforceConnectRemote.sendRequest: line 19, column 1\nClass.RimsSalesforceConnectRemote.doPost: line 33, column 1"}]  To clarify my architecture is as follows: Client -> Apex Rest web service -> 3rd Party API  So far I've tried to make direct calls to the Apex Rest web service via the $http AngularJS module and now via the sforce.connection.remoteFunction.   I definitely didn't think that simply calling the Apex Rest web service would be such a pain.  Testing via developer workbench was so simply.  Hair is falling out.


What is the advantage of the inverting opamp circuit over non-inverting one?

Op amp circuits are designed to achieve a specific gain regardless of the differences between individual op amps.  One very common circuit has a gain of -R2/R1.  Here's a (corrected) schematic:    Another common configuration has a gain of R2/R1+1 and is non-inverting:    What I can't see is why on earth anyone would use the inverting one, except for the odd case where you actually want inversion. The non-inverting one has high input impedance without an extra input stage, and almost the same gain. Is there any advantage to the first example?  Also, since the first example does not have high input impedance, it can take significant current to drive.  So, often a source follower is placed before the amplifier.  For the second configuration, is there any reason why a source follower would ever be necessary?


Browsing Questions shows the same questions on different pages

I have just been looking through the questions to answer those that I can and as I go to the next page (using the Next button at the bottom) I am presented with the same questions.  I imagine this is not a flaw and in fact questions are coming in fast filling up a page pushing my current page to the next one.  An idea to solve would be to set a variable for starting id when I start paging and only clicking an update button will reset the starting id.


Backslash escaping in code regions in comments

I've noticed that in comments, when you create `code region` with backticks, the backslash will still work as an escape character within that region (but it should not, IMHO).  To clarify:   In comments, `\\` will be rendered as \, but it should be rendered as \\ In the post body itself, `\\` will be rendered as \\ (i.e., correctly)   This is especially confusing when you enter regular expressions into a comment, since backslash-escaping is very common there, and confusion increases if you are dealing with a regex that is double-escaped for representation in a string.   At some point you lose track how many backslashes you must make so the comment renders correctly, or you don't notice fast enough (or at all) and the comment contains wrong code where the same markup in a question or answer would come out as perfectly correct.   It's just that comments can't be corrected anymore after the grace period, leaving you with the choice of either deleting the comment, thus crippling the conversation, or engaging in a trial-and-error game of writing another comment with even more backslashes to explain the issue.  My question is two-fold:   Will this error be corrected? If yes, existing comments should probably be searched and "fixed" by a routine that tries to do the right thing (this is probably somewhere between hard and impossible) Or, can I rest assured that never ever the behavior of the backslash in comments is going to be changed, so I can start working around this issue by hand, knowing that they won't start displaying incorrectly at some point in the future?


Difference between Field and Field Instance?

When we go to the path /admin/structure/types/manage/article/fields and use the Add new field option or the Add existing field option, does that create a field, create a field instance or attach a field instance? How to differentiate between them? So, programmatically, when to use ,  and field_attach API?  In the field API documentation it only mentions the admin UI and never talks about the path where to create both fields and field instances. So it's confusing. I don't even know if I even make sense.


What is a good reference for rigorous Electromagnetism and Electrodynamics?

Is there any good book on Electromagnetism from a more mathematical point of view? By this I mean a book which makes use of differential forms and maybe De Rham cohomology. I was also searching for something that would include E&M in the big picture of Gauge theories.


Deleted Linux partition and upgraded to windows 10.... Now stuck at grub rescue

I had a Ubuntu partition and windows 7 partition after installing windows 10 I accidentally deleted my Ubuntu partition, now I'm stuck at grub rescue. I saw a YouTube tutorial and did the steps like set boot, set prefix etc. I tried em all hd0 and msdos0 to 9. No luck... Any help? Pretty please...


Unit Test Case for Private Methods and Properties using FakeItEasy

How to test private methods and properties using FakeItEasy Frame Work


How can I manage adding, substracting and other such operations in Java?

In Python I would use __add__ and other magic methods, but I do not know how to solve it in Java. Suppose, I have class A and I wrote A a = new A(); and A b = new A();. Classes have some fields such as int x;. When I write A c = a + b; I need to get variable c of the class A and c.x == a.x + b.x. Maybe I need some special methods or what?


Is it possible to make Particles follow Displacement Node?

I'm faced a problem that I can't find a workaround for.  Displacement Node and particles. I understand that in modifiers section of an object the particle effects have to be the last ones to make them follow the modifications, but what about Displacement Node?  I'm using multiple nodes on my setup to modify the actual displacement, so it's not possible for me to use the Displacement Modifier instead of Displacement Node. It would be great to make Particles just follow Adaptive subdivision + true displacement but I can live with normal subivision and displacement node (I duplicate the object and use one as emitter, with normal subdivision, and second use microdisplacement). Any workarounds to make it work?  .blend as example:   My mirror of this .blend:   Problem visualisation:   /edit: Have to edit because someone marked is as duplicate:     No, person you mentioned in link uses Displacement Modifier. There's   no problem with Displacement Modifier and Particles. There's problem   with Displacement NODE (material node), which is still in development,   and I'm looking for a workaround.


How to boot into 'Ubuntu on Xorg' by default?

Unity runs like a lame donkey on my laptop, yet flies when I switch to Xorg. Is there a way to set it to use this by default without having to log out and in again every time?


How are flash drives called under ubuntu's naming scheme?

I have recently read up on this forum on the meaning of "sda2" and "sdb", but I haven't found the way ubuntu names/handles flash drives yet.


File output node outputs wrong image resolution

I have the node setup shown below.  The input image size is 8000px by 4000px. The scale node is supposedly reducing this to 800px by 600px.  If I hit render, and then manually save the output from the UV Image editor, I get exactly what I would expect (a nicely scaled image size 800px by 600px).  However, if I go to look at the file generated by the file output node, I get a different result. I get an image of size 8000px by 4000px with my 800px by 600px shrunk image in the centre of a massive black border.  How can I make the file output node output a properly scaled image?


Null Pointer Exception with ExpandableListView

Tricky question.  I have a class named "Bivio" in which I set a Navigation Drawer and in the first of the fragments there is an ExpandableListView.  I placed the ExpListView in fragment1 and develop all the activities from Bivio.class.  Yet, I get a NPE on my ExpListView at this point      expListView = (ExpandableListView) findViewById(R.id.lvExp);      prepareListData();      listAdapter = new ExpandableListAdapter(this, listDataHeader, listDataChild);      expListView.setAdapter(listAdapter);   It goes without saying that I actually have an ExpListView with ID lvexp, that I declared all the due variables  ExpandableListAdapter listAdapter; ExpandableListView expListView; List<String> listDataHeader;   Bivio.class is declared in manifest.  And here is the logcat   I know by clicking on the link that the flaw lies in here expListView.setAdapter(listAdapter); but I declared all I could!  I guess navigationDrawer poses some challenges for what concerns working in the main activity on Views embedded in Fragments, correct?


I want to install ANT from downloaded zip: apache-ant-1.9.6-bin.zip. How to do it ?


I have an LG running Android 7.0 that I used to be able to get to /Android/data/net.osmand.plus/files/tracks in internal storage. I would have to restart to see the new tracks though. Now I have moved Osmand files to 32GB sd card and it works but I cannot access it while plugged in. When I turn it off and plug the SD into a computer I can view the directory just fine. I was also unable to browse to other files like a video file I recorded without finding the exact folder and using adb pull command.


Unable to set default program for .cpp file type

I'm using the latest edition of Windows 10 Home on a 64-bit computer.  I've been struggling to set the default program used to open .cpp files. At first, it was set to Notepad, but at some point I must have set it to Code::Blocks by accident. I was eventually able to get rid of the association to Code::Blocks, but now .cpp files don't have any association. The best I can do is set them back to Code::Blocks.  I tried many of the suggestions on  question, but still no luck yet.  I've tried multiple ways of setting the default program: Through the Windows 10 Settings app, the typical "Right click and select Open With", through the Properties window. I even tried NirSoft's . One interesting observation I made is that on the File Types Manager, it does say next to the User Choice option "NOTEPAD.EXE", yet it obviously hasn't worked yet.  I can get through the whole process of setting the program without an error message or anything, yet their is no visible result.  Any ideas on what I may be doing wrong or what I should try?  EDIT: I have now submitted a problem report in the Windows Feedback Hub. I don't really know if much will happen there, but it will stay there anyways. I'm fine with any discussion continuing here as well :)


I need to know why 'a' is omitted before headache in the below sentence.  Although he has undergone a very costly treatment, he has not been cured of a headache.  Correct - cured of headache.


How to share a wired Internet connection with an Android phone (reverse-tethering)?

I have been trying to share my wired Internet connection with my Android phone. However I could not succeed in doing this. Has anyone of you ever succeeded? Operating systems that I use are as follows:   Ubuntu 10.10 Android 2.3


Is LaTeX capable of detecting grammatical errors in compiled document?

Although spelling mistakes can be easily corrected within compiler itself, I'm wondering if LaTeX is capable of detecting wrong use of grammar. Like if we write "Solution are" in MS word then both words would get underlined with red line. Is there any similar feature available with latex ?


How can I tell what version of Linux I'm using?

Often times I will ssh into a new client's box to make changes to their website configuration without knowing much about the server configuration. I have seen a few ways to get information about the system you're using, but are there some standard commands to tell me what version of Unix/Linux I'm on and basic system information (like if it is a 64-bit system or not), and that sort of thing?  Basically, if you just logged into a box and didn't know anything about it, what things would you check out and what commands would you use to do it?


"Angry with" vs. "angry at" vs. "angry on"

Which is the most appropriate/correct usage?        Are you angry on me?   Are you angry with me?   Are you angry at me?


Schengen Visa require 2 blank pages. 2 both side blank pages? or one side blank

HI I am applying for a Schengen visa. I have one page with both sides blank and two one side blank pages in my passport. Is it enough for Schengen Visa?  They say that I need two blank pages. Is it both side blank or will one side blank do?


Who came up with the names Odious Numbers and Evil Numbers?

Who came up with the names Odious Numbers and Evil Numbers and what was the motivation behind the names?  All non-negative integers are one or the other.


If derivative of f(x) is f'(x), then what is the integral of (f'(x))^2 in terms of f(x)?

Is there some procedure for figuring this out or am I venturing into unsolved territory here?


Difference between bit rate and baud rate and its origins?

Everyone seems to have different definitions everywhere I look.   According to my lecturer:  \$ R_{bit} = \frac{bits}{time} \$  \$ R_{baud} = \frac{data}{time} \$  According to  :  \$ R_{bit} = \frac{data}{time} \$  \$ R_{baud} = \frac{bits}{time} \$  Which is the correct one and why? Feel free to give the origins of why it is defined as such too.  Related question: .


Uploading many large files to a remote server

I am in the process of creating an offsite backup, and need to do a initial load of data. Currently, that's about 400Gb, give or take 10Gb or so... The backup system is producing files which are about 4Gb each, and has some other, smaller related files also. So, i need to transfer all 400ish gigs to a remote server, but how? What is the best method?  I have full remote access to the server, so i can install anything i need to install. There are Windows, Linux and a Solaris VM running on the box itself, so any of those can be used there, and i have Windows and Linux at home. I have 2 internet connections in house, 10Mb/s uploading on each, so something that could potentially split the number of connections would be handy (kind of like GetRight, but in reverse... PutRight?).   [Update] I have tried the option below of using RSync, but there is only one connection being made between my workstation and server. When uploading large files to Amazon, there is an option of breaking them apart locally and unbreaking them on the server end. multiple files are also send over multiple connections. so, a 4Gb file could be split into 800 ish 5Mb chunks, and sent 4 or 8 at a time, using as much of your upload bandwidth as possible. So, how would i do this automatically? I could hack something together to do it and use SFTP to send the files, but is there an automagic option?


Show that $\sum\limits_{n=1}^\infty \frac {\sqrt{a_n}}{n}$ converges if $\sum\limits_{n=1}^\infty{a_n}$ does provided that $a_n>0$

Consider a convergent sequence $\sum\limits_{n=1}^\infty{a_n}$, with $a_n\ge 0$. Show that the series  $$\sum\limits_{n=1}^{\infty} \frac {\sqrt{{a_n}}}{n}$$ also converges.  Hint: $pq\le \frac 12(p^2+q^2)$


How does Stack Overflow match similar questions?

I have a project that gives the ability to send suggestions and notes about something.  What I need is collecting (somewhat) similar suggestions or notes in groups.  My comparisons are based on key phrases and tags that the sender should obtain with the suggestions or notes.  What techniques does Stack Overflow use to match similar questions?


I'm finding that the more I use Blender the harder it is. I'd just like to know how to apply a texture or surface to an object. I can't find that anywhere.


$\int_X |f_n - f| \,dm \leq \frac{1}{n^2}$ for all $n \geq 1$ $\implies$ $f_n \rightarrow f$ a.e.

Let $(X, M, m)$ be an arbitrary measure space. Let $f_n, f \in L^1_m(X)$. Assume that $$\int_X |f_n - f| \, dm \leq \frac{1}{n^2} \text{  for all }n \geq 1. $$ Then I want to show that $f_n \rightarrow f$ a.e. on $X$.    I thought since we have norm convergence, we get a subsequence $f_{n_k}$ of $f_n$ converging to $f$ a.e. Does the condition $\int_X |f_n - f| \,dm \leq \frac{1}{n^2}$ for all $n \geq 1$ imply something stronger than norm convergence?


Is It possible to skip the switching of certain weapons

I saw this one video by  in which he shows that through scripting he was able to make it so that when switching weapons by scrolling the wheel,(as an engineer) the PDAs do not open(build and destroy), it directly goes to the melee or the primary weapon. How is this done?


Is it safe to smoke with oak treated for oak wilt?

Trying to find a source for wood logs to smoke with Ii found a guy selling oak on craigslist but he says it has been treated for oak wilt. Is it safe to smoke with?


HowTo: Install Nvidia graphic Driver for Ubuntu 16.04 - Login loop (RTX2060)

I bought a new HP Notebook with an NVIDIA RTX2060 graphics card and I would like to install the proprietary graphics driver. I cannot install it from Additional Drivers,  because it does not find any available drivers.  So I installed it with the .run file from NVIDIA (version 430). I did the Installation in tty1.  After the installation, I cannot login. Ubuntu asks me for my password in a loop. After I enter my password, a black screen appears and then I it asks me to enter it again.  What can I do?


Set an backgroud image in ubuntu file manager

In Ubuntu desktop file manager, we can change background color by editing and changing the basecolor value from gtk.css file from the location /usr/share/themes/Greybird/gtk-3.0/gtk.css.  Is any option available so that I can set an background image in Ubuntu file manager?


two way ANOVA with heteroscedastic data: test and reference?

I'am doing a two-way ANOVA and each factor has 3 levels (so 9 cells in total). My data has 60 to 200 observations per cell. The data is pretty normal but heteroscedastic (Levene's test 0.003). The ratio of biggest to smallest group variance is 1.7. The goal is to detect a difference in means of size about 10% of variance.  My questions are:   what is the impact of heterescedasticity on standard ANOVA? can I still use it? if yes, what is a reference for your answer? is there any corrected (Welch slyle) two-way ANOVA for heteroscedastic data?  if yes, could you provide a reference? what are advantages/pitfalls of weighted ANOVA in this case? is there a non-parametric test that can replace two-way ANOVA in this case?


What is the name of the cable inside PC cases?

Due to limited linguistic and technical knowledge, I do not know (and can not find) the name for the 4 pin (or perhaps 3?) plugs that are used inside PC cases to deliver electricity.  My questions:   What's the name of these cables? (they are used for connecting fans etc.) What's the difference between them and "Molex" cables? Is there a converter to attach to small 12V DC adapters' round end so that I can connect / run a fan externally?


What software has a bug that space in Adobe password fails to open in Chrome?

I have Adobe Acrobat Pro XI which can open an encrypted pdf file that contains a space in the password on Mac OS X Yosemite, however, if I download the file in Chrome Version 39.0.2171.95 (64-bit) and just click the file that shows on the bottom row of the Chrome window, it fails to open with bad password.  If I remove the space from the encrypting password, Chrome opens the file correctly.  Who is responsible for the decryption when opened in this way so I can report the bug to the proper software tool?    How can I configure Chrome to not use its built-in capabilities to read a pdf file and instead open them in Adobe Acrobat?


How to prove that there are infinitely many integers n for which each of n, n+1, . . . ,n+ 1000 is composite.

I need to prove this using the Chinese Residue Theroem. If i choose n even (n>2) then all even number are composite of course, but for the odd i don't know what to do. Plus, i don't see how the chinese residue theroem could be helpful. Thanks for your hints. I know how to prove that there is infinitely prime (and infinitely composite) and i think i will have to use this.


Are gravitational waves dissipated and what is the mechanism?

I was amazed by the fact that we have been able to detect gravitational waves created thousands of year before they were observed. My surprise is that any wave phenomena I know it is always dissipated, so I thought gravitational waves would have been dissipated.  It is true that the waves would have been propagated through vacuum, but, if I understood properly relativity equations, the media is not a factor. Likely passing though gravity fields (starts? black holes?) will have something to do.  So, my question is, Is there any mechanism to dissipate gravitational waves? Can they, with our current knowledge, propagate without losing energy?


Find the properties of an mp3 file via command line

Is it possible, via command line (shell command), to check for properties of a file (like when I right click on a file via Nautilus).  Specifically, given an mp3 audio file, I would like to know how I can extract the info related to title and artist from the audio section of its properties.


This fact is mentioned liberally in literature along with subsequent mention of Heine-Borel and I am trying to get my head around it. What would be a formal proof of this if we take for example, a unit sphere in $\mathbb R^3 $?  In addition, how could it be shown, non-trivially of course, that this sphere is not homeomorphic with $\mathbb R^2 $? As I understand this involves finding a bijective function with continuous inverse?


How to install an OS using external Hard Disk?

I have 500gb hard disk but full used, now i want to add an external hard disk and want to install an OS(windows 7) in this hard disk. Is it possible ? If YES then HOW?


16.04 LTS to 18.04.1 LTS upgrade: No new release found

I can't get the 16.04 LTS to 18.04.1 LTS upgrade to work, I'm running server.   My current version:  lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 16.04.5 LTS Release:    16.04 Codename:   xenial   However despite 18.04.1 being released on the 26th of July, at present on the 31st I'm still being informed that there is no new release?  My /etc/update-manager/release-upgrades file is:  # Default behavior for the release upgrader.  [DEFAULT] # Default prompting behavior, valid options: # #  never  - Never check for a new release. #  normal - Check to see if a new release is available.  If more than one new #           release is found, the release upgrader will attempt to upgrade to #           the release that immediately succeeds the currently-running #           release. #  lts    - Check to see if a new LTS release is available.  The upgrader #           will attempt to upgrade to the first LTS release available after #           the currently-running one.  Note that this option should not be #           used if the currently-running release is not itself an LTS #           release, since in that case the upgrader won't be able to #           determine if a newer release is available. Prompt=lts   And the output of do-release-upgrade:  Checking for a new Ubuntu release No new release found.   Update manager core is already installed:   sudo apt install update-manager-core Reading package lists... Done Building dependency tree        Reading state information... Done update-manager-core is already the newest version (1:16.04.13). 0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.   Note that this question is distinct to the one here  as that question deals with a GUI/desktop based situation whereas this specifically addresses the issue from a terminal / server angle.


In CMD language you can define all at once like:del C:\randomfiles\* That Means you select ALL files at once. I have the Code var names = new List<System.Drawing.Color> { Red, DarkRed, 1000 colors later... }; but I dont want to tipe in all colors because that may take years... How can I define all at once like in CMD language?  EDIT: This is not the same as:  because I want al ist of all colors WITHOUT spending years writing all colors....


The support of a non finitely generated module

Let $R$ be a ring and $M$ an $R$-module.  If we suppose $M$ finitely generated then (following Matsumura) if we write $M=Rm_1+\cdots+Rm_n$ we have:  $p\in\operatorname{Supp}M$ if and only if $M_p\neq0$ if and only if there exists an $i$ such that $m_i\neq0$ in $M_p$ if and only if there exists an $i$ such that $\operatorname{Ann}m_i\subset p$ if and only if $\operatorname{ann}M=\bigcap_{i=1}^n\operatorname{Ann}m_i\subset p$. And so $\operatorname{Supp}M=V(\operatorname{Ann}M)$.     If $M$ is not finitely generated where does this proof fail?    It seems to me that if we write $M=\langle m_i\rangle_{i\in I}$ nothing will change.      And if this proof fails could you give me an example of a module such that $\operatorname{Supp}M\neq V(\operatorname{Ann}M)$?


How is answering a question possible after even question closed?

I just saw a bizarre situation on Stackoverflow.  question was closed at 14:36:35 but   at 14:36:39  How is this possible? Closing a question take a few seconds?


Cannot update NVIDIA driver to version r387

I have an Ubuntu 17.10 64 bit with the default kernel.  I have update it right now and my NVIDIA Driver version is 384.90.  I want to use CUDA 9.1 but it needs NVIDIA Driver version r387. Doing this:  sudo ./cuda_9.1.85_387.26_linux.run -silent -driver   I can install that driver. But I get the following error:     ERROR: An NVIDIA kernel module 'nvidia-drm' appears to already be   loaded in     your kernel.  This may be because it is in use (for example, by an X     server, a CUDA program, or the NVIDIA Persistence Daemon), but this     may also happen if your kernel was configured without support for     module unloading.  Please be sure to exit any programs that may be     using the GPU(s) before attempting to upgrade your driver.  If no     GPU-based programs are running, you know that your kernel supports     module unloading, and you still receive this message, then an error     may have occured that has corrupted an NVIDIA kernel module's usage     count, for which the simplest remedy is to reboot your computer.    I have move it to text mode running the command sudo init 4 but I get the same error.  I have the default kernel and maybe it doesn't support module unloading.  How can I know if kernel supports module unloading? or How can I enable it?


SQL multiple characteristics in one line

I have a question regarding how to merge lines with same characteristics:  I have this data:     Client | Product  | Date      Hannah |   TV     | 1 Jan      Tom    | Laptop   | 3 Feb      Peter  | iPod     | 2 Jan      Hannah | Laptop   | 5 Feb      Tom    | iPod     | 5 Feb   And I want to create this:     Client | Product-History|      Hanna  | TV-Laptop      |      Tom    | Laptop-iPod    |      Peter  | iPod           |   Anyone know if this is possible in SQL?  If you require actual SQL code to make it easier to respond let me know, it's the first time I ask a question.  Thanks!  Edit: I am using SQL Server


Change of boarding point on Indian Railways

i have booked my online  ticket through irctc.co.in from Mumbai to chennai, but i forgot to change the boarding point to pune. will my seat will be empty when i board at pune. or else any procedure is there to change the boarding point,  if there is a procedure to change to which station i have to approach


Let $\alpha $ be a real number such that for all prime numbers $p$, the number $p^ \alpha$ is an integer. Is it necessarily true that $\alpha$ is an integer? If $\alpha$ is a rational, say $m/n$, one gets that $p^m$ equals an integer $k$ raised to the power of $n$. It is infered immediately that $k$ is itself a power of $p$, leading to the conclusion that $m/n$ should be an integer.  Also, the hypothesis of the problem guarantees that every integer $i$ raised to the power of $\alpha$ is an integer.....


Earlier this year I had to pin my kernel because an update came down the pipe that broke WINE compatibility with Win16 apps.  I followed the directions here:   It appears as though the issue has been fixed because tests have shown that Win16 applications once again work with later kernel builds.  I've removed the changes I made, but the kernel is still not updating.  What am I missing?


Vertically Align Multiple Horizontal Lists

I'm trying to achieve the following:  So I'd like to have in-line lists, that our flush with the left margin and vertically aligned with each letter. I achieved the result above by manually spacing, which is not ideal. I can't seem to find an environment that covers each of the above conditions.  Using the following answers:  I can achieve the following:  \usepackage{tasks} \begin{tasks}[counter-format={(tsk[a])}, label-align=left, label-offset={0mm}, label-width={5mm}, item-indent={5mm}, label-format={\bfseries}, column-sep=-30mm, after-item-skip=-1mm, after-skip={3mm}](2) \task $f(5)$ \task $f(x+h)$ \task $f(x+h) - f(x)$ \task $\dfrac{f(x+h)-f(x)}{h} \quad h\neq 0$ \end{tasks}     I don't know how to put a space between the letter and the expression. For example: (a)[INSERT SPACE HERE] f(5). Adjusting the parameters listed in the code above seems to adjust other things. Using ":/" in math mode works, but it's not an ideal solution.


A good **modern** introduction to the information theoretic view of entropy?

Jaynes wrote a paper called information theory and statistical mechanics (1957). I tried to read this but found it somewhat hard to follow, and I suspect it's because it's one of the earlier works, and that a modern text might be more refined since we've had time to work it out. On the other hand, what I've read from physics textbooks don't explicitly talk about information theoretic concepts like shannon entropy.  Is there a good modern introduction to the information theoretic view of entropy?  Note, . All of the answers there are also written by Jaynes, and at roughly the same time.


What statistical analysis? Three continuous independent variables w/ one categorical dependent

Trying to find what type of analysis to run. Im trying to determine if three continuous variables can predict a categorical dependent variable (physical activity) w/ three levels (high, medium, and low). Any ideas?


Is it needed to close the  tag when it's used for embedding an external script file?

In old times we used to embed external JavaScript this way:  <script src="external.js" type="text/javascript"></script>   HTML5 came to save our eyes and fingers, so the construct became shorter:  <script src=external.js></script>   Not a big deal, I'm just curious if we can leave away the enclosing </script>?  Like this:  /* This code may fail */  <script src=external.js/>


How to change application Sharing & Permissions using Terminal

If I right-click an application and click Get Info, a window like in the following image pops up:    Then, after unlocking the Sharing & Permissions section, let's say I wish to change the permissions for everyone to No Access.  This is fairly simple to do through the GUI, but I was wondering if it was possible to do this through Terminal.  I know I could simply use chmod and change the permissions recursively for the application directory like that, but I would prefer a solution that simply changes the permissions in the same way the GUI does such that it is updated accordingly in the Info window for the app.  Edit:  I do not believe this is a duplicate of  because the answer to it only shows how to add access control entries, not how to modify them.


Essential singularlites of the function $f(z)$ and $1/f(z)$?

I read  that since $\sin(z)$ has an essential singularity at $\infty$, $1/\sin(z)$ also has an essential singularity at $\infty$. This got me thinking: Is it true that if $f(z)$ has an essential singularity at $z_0$ then $1/f(z)$ also has a singularity at $z_0$ and can this be proved in terms of Laurent series?


Find the least squares estimator of the parameter B (beta) in the following regression model: y= B + u What is the variance of the estimator?


I search the least n such that   $$38^n+31$$   is prime.   I checked the $n$ upto $3000$ and found none, so the least prime of that form must have more than $4000$ digits. I am content with a probable prime, it need not be a proven prime.


How to uninstall LibreOffice on Ubuntu Mate

I have Raspberry Pi 3 running Ubuntu Mate 16.04.  I'd like to uninstall all the crap I don't need, and among the first candidates is LibreOffice. However, when I try to uninstall LibreOffice, I'm warned that this would also uninstall ubuntu-mate-desktop:  sudo apt-get remove libreoffice-calc  The following packages will be REMOVED:     libreoffice-calc ubuntu-mate-desktop   I believe I do want to in fact keep ubuntu-mate-desktop.  I'm getting the same message when trying to remove other packages I don't need/want (e.g. caja-wallpaper).  Why is this? How do I correctly uninstall LibreOffice (and other software/packages)?


I was wondering how to fix these corrupted files I've downloaded. They're in parts, and part 5 and 11 are corrupt. I can't extract the whole file.  I already tried to repair it using WinRAR repair.


Koma-Script scrbook remove indention of entries within lof and lot

I'm trying to remove the indention of the entries within the list of figures and list of tables. Thus that the entries (here the entry 0.1 Test) are left aligned with the header.  However, I can't find an option for this. Someone an idea?  MWE:  \documentclass [] {scrbook}  \begin{document}  \listoftables   \cleardoubleemptypage  \begin{table}[tbp]     \centering     \caption[Test]{Test}     \label{tab:t}         \begin{tabular}{cccc}         \end{tabular} \end{table}  \end{document}


rm to remove a dir, any symlinks, AND symlink destinations?

I have two directories: /all/origins/ & /all/links/.  Everything in links/ points individually to something in origins/, but not everything in origins/ is linked in links/. (Squares, rectangles & categorical hierarchy, get it?) These are symlinks (ln -s), not hard links.  Everything in 1. links/ needs to be deleted, along with 2. the symlink destinations in origins/ (not knowing whether they are in origins/), and 3. the links/ directory itself.  What rm Unix command should I type to remove both the entire links/ directory AND any symlinked destinations symlinked to in origins/?  I'm looking for something maybe like: rm -R /all/links or rm -r --follow-all-ln /all/links.  If an rm command with parameters will not do the job, please say so explicitly as that is my preference and implicit in the title (can Unix & Linux do this via rm without a do loop?—only if that won't work, then please state so and explain what do loop.)


How can I prevent memory size exhaustion when dumping variables in Twig?

hello everyone i have a problem with kint , in my twig page i want to listing all variables contains int 'content' variable to make some logic on it , but the page can't loaded because the big pip memory , can any one tell me how to solve this problem to dump the 'content' variable?     this is the msg   Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 29994336 bytes) in /var/www/html/core/modules/big_pipe/src/Render/BigPipe.php on line 336


Book recomendations for learning number theory.

As mentioned in the title, i want to get started with number theory and I am searching for a book fitting my purposes. Ive just finished Calculus 1. I'd be glad if you could recommend a book written in English or German. Thank you in advance.


Ordering of Indices in $\Lambda^\mu_{\space\space\nu}$

I am having some questions on the ordering of indices that are both upstairs and downstairs. Let's take an example: $\Lambda^\mu_{\space\space\nu}$ is a Lorentz transfom if the following equation is satisfied: $$ \Lambda^\mu_{\space\space\sigma} \eta^{\sigma \tau}\Lambda^\nu_{\space\space\tau}=\eta^{\mu \nu}. $$ In matrix notation that means $$ \Lambda \eta^{-1}\Lambda^T =\eta^{-1}. $$ My question is: why must we place $\mu$ before $\nu$ in the expression $\Lambda^\mu_{\space\space\nu}$? (rather than just vertically above it) I have thought about this for a moment, and get the following ideas:  Putting $\mu$ before $\nu$ reminds us to write the notation is the usual order of matrix multiplication. Usually we write $\Lambda^\mu_{\space\space\nu} x^\nu$ rather than $ x^\nu\Lambda^\mu_{\space\space\nu}$, because we'd like $\nu$'s to be "closer together". This matches our ordering of writing a matrix multiplying a (contravariant) vector $\Lambda \mathbf x$. There are exceptions to point 1, for example $\Lambda^\mu_{\space\space\sigma} \eta^{\sigma \tau}\Lambda^\nu_{\space\space\tau}$, because here we are transposing the second Lorentz matrix. However, if we have more than two indices, the above ideas make little sense. If we have and expression like $A^{\mu_1\mu_2 \ldots \mu_k}_{\nu_1 \nu_2 \ldots \nu_l} x^{\nu_1}\ldots x^{\nu_n}y_{\mu_1}\ldots y_{\mu_n}$, who knows what is the "correct" order of indices of $a$ and $x,y$? Mathematically there doesn't seem to be a reason for a particular ordering, because a tensor product of vector spaces does not depend on the order (up to isomorphism) in which we take the product.  Are the above observations correct? Are there any other reasons for the ordering? Finally, will we ever see something like $$ \Lambda^{\space\space\mu}_{\sigma}? $$ i.e. downstairs before upstairs.


How to prove $\sum_{k=1}^n \cos(\frac{2 \pi k}{n}) = 0$ for any n>1?

I can show for any given value of n that the equation  $$\sum_{k=1}^n \cos(\frac{2 \pi k}{n}) = 0$$  is true and I can see that geometrically it is true. However, I can not seem to prove it out analytically. I have spent most of my time trying induction and converting the cosine to a sum of complex exponential functions   $$\frac{1}{2}\sum_{k=1}^n [\exp(\frac{i 2 \pi k}{n})+\exp(\frac{-i 2 \pi k}{n})] = 0$$  and using the conversion for finite geometric sequences  $$S_n = \sum_{k=1}^n r^k = \frac{r(1-r^n)}{(1-r)}$$  I have even tried this this suggestion I have seen on the net by pulling out a factor of $\exp(i \pi k)$ but I have still not gotten zero.  Please assist.


I am using ie 11. I am adding a row to a table. I am using a modal popup to enter the data and I am making an AJAX call to update the underlying data. When that is done, I am using JQuery to add the row to the table. This all works fine except for one thing. The end of the tablerow contains a button. All the other buttons on the table work, but the new button does not. When I look in developer tools the button for the new row has the same mark up as the mark up for the others, so it should work in the same way. So the table looks this;

                     Survey	                     Contract	                     Select

                 @foreach (var contract in                     SessionObjectsMSurvey.ContractList.Where(x => x.SurveyId > 0)                                         .OrderByDescending(x => x.SurveyCreated))                 {
                         @contract.SurveyTitle	                         @contract.ContractTitle	                                                      <button class="btn btn-xs btn-primary selectContract"                                     data-msurvey-row-id="@contract.RowId">                                 Select                             </button>
                 }

   I add the row of data here. Notice the button has a class of selectContract. This works  var addRowToTable = function (data) {     var row =     '
' +         '{{surveyTitle}}	' +         '{{contractTitle}}	' +         '' +         '<button class="btn btn-xs btn-primary selectContract" data-msurvey-row-id="{{rowId}}">Select</button>' +         '	' +     '
';       //Add row     $('#surveyList').prepend(row.compose({         'surveyTitle': data.SurveyTitle,         'contractTitle': data.ContractTitle,         'rowId': data.RowId     })); };   And this is the click event which usually works but not for the new row. The button on the new row does fire an event, I do not know where the event handler is, it should be this one but it isn't;  $(".selectContract").on("click", function (e) {     e.preventDefault();     var $this = $(this);     var rowId = $this.data("msurvey-row-id");     var url = GetHiddenField("msurvey-get-contract-and-survey-url");     dataService.getContractAndSurvey(rowId, displayContractInfo, url); });


Why is the  $L_p$ norm strictly convex for $1<p<\infty?$

Let $x,y \in L_p$   such that  $\|x\|_p=\|y\|_p=1$ , $1< p<\infty$ and $x\neq y.$ Why is $\|x+y\|_p<2$  ?  I'm not sure how to start the proof.. I don't know how to handle integral of $(x+y)^p$ and it seems that using the binomial theorem won't be a great success.


Why did all the Ringbearers leave Middle-earth in the end?

At the end of The Return of the King, Frodo, Bilbo, Gandalf, Elrond, and Galadriel left Middle-earth on a ship, along with other elves. I named those five because they were all ringbearers and it seems to be a common trait. Frodo and Bilbo bore the One Ring and the three others bore the three elven Rings.  Why did they have to do that? Why didn't they stay and have a peaceful life now that the Dark Lord was gone?


Is it possible to use a variable in an if-statement later on?

I just started learning python, and for exercise I made a sort of text-game.  In one part there's an if-statement, wherein I define a variable and then it sends you further. I want to use the same variable later on again, but then it says that it's not defined. How can I solve this?  I use python 3.7.3. I've tried different brackets to see if maybe I was using the wrong ones, but that didn't work.  answer_A = ["a"] answer_B = ["b"]   def begin():      print("type a or b")     choice = input(">>> ")     if choice in answer_A:        yes = ("a")        option_a()     else:        yes = ("b")        option_b()  def option_a():     print("This is", yes)  def option_b():     print("This is", yes)  begin()   I wanted that if, for example, you type 'a' as input, you get answer_A and it registers 'yes' as "a". So that it goes to option_a() and prints: "This is a".  Instead, the response that I get is that it takes your answer, then goes to the option_a, but then I get an error that 'yes' is not defined.  (NameError: name 'yes' is not defined)


Why is "the probability that a continuous random variable equals some value always zero"?

I found lots of references that say, "the probability that a continuous random variable equals some single value is always zero". Why is that?  Here is a counterexample I thought of: supposing $X\sim N(0,1)$, define $Y=min(X,0)$. Then Y is a continuous random variable but the probability of $Y$ at a single point $0$ should be $0.5$, not zero.  Also, I think any CDF would be left continuous if "the probability that a continuous random variable equals some single value is always zero".  What is wrong with my thoughts?   P.S. Examples of the references are:


how can i check wrong id  public with sharing class ContactDetailController {      private ApexPages.StandardController standardController;     public string conId{get;set;}       public ContactDetailController(ApexPages.StandardController standardController)      {        this.standardController = standardController;        conId = ApexPages.CurrentPage().getParameters().get('Id');         if(standardController.getId()==null)         {             ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'Please enter Id on the Address Bar'));         }           //this.standardController.addFields(new List<String> {'FirstName','lastname','mobilephone','Accountid','otherphone','title','fax','Department','Email','Birthdate','AssistantName','Reportstoid','Assistantphone','leadsource','OtherStreet','MailingCity','othercity','MailingState','otherstate', });          // getDescribe that retrive whole fields of the particular object         Schema.DescribeSObjectResult r = Contact.sObjectType.getDescribe();         List<String>apiNames =  new list<String>();         for(string apiName : r.fields.getMap().keySet()){             apiNames.add(apiName);         }         System.debug(apiNames);         this.standardController.addFields(apiNames);      }     public PageReference ValidateId()     try{                Id realContId = standardController.getId();                if(Schema.Contact.SObjectType != realContId.getSobjectType())||                {                     ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, 'Id specified is not an Contact id!'));                     return null;                }          }         catch (Exception e)         {             ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.Error, 'Bad id specified!'));            return null;          } }      public PageReference Edit()     {         PageReference errorPage = new PageReference('/apex/ContactInsert?id='+conId);         errorPage.setRedirect(true);         return errorPage;     }       public PageReference cloneButton()     {         // Record being cloned         Contact con = (Contact) standardController.getRecord();          // Custom clone logic         Contact clonedcon = new Contact();         clonedcon.FirstName = con.FirstName;         clonedcon.lastName = con.lastName;          clonedcon.mobilephone = con.mobilephone;         clonedcon.Accountid = con.Accountid;         clonedcon.otherphone = con.otherphone;         clonedcon.title = con.title;         clonedcon.fax = con.fax;         clonedcon.Department = con.Department;         clonedcon.Email = con.Email;         clonedcon.Birthdate = con.Birthdate;         clonedcon.AssistantName = con.AssistantName;          clonedcon.Reportstoid = con.Reportstoid;         clonedcon.Assistantphone = con.Assistantphone;         clonedcon.leadsource = con.leadsource;         clonedcon.OtherStreet= con.OtherStreet;         clonedcon.MailingCity = con.MailingCity;         clonedcon.othercity = con.othercity;         clonedcon.MailingState = con.MailingState;         clonedcon.otherstate = con.otherstate;         clonedcon.MailingPostalCode = con.MailingPostalCode;         clonedcon.otherpostalcode = con.otherpostalcode;         clonedcon.MailingCountry = con.MailingCountry;          clonedcon.othercountry = con.othercountry;         clonedcon.Languages__c = con.Languages__c;         clonedcon.Level__c = con.Level__c;         clonedcon.Description= con.Description;          insert clonedcon;         PageReference errorPage = new PageReference('/apex/ContactInsert?id='+conId);          errorPage.setRedirect(true);         return errorPage;           //return new PageReference('/' +clonedcon.id+ '/e' );         // Redirect to the new cloned record         //return new PageReference('/'+clonedcon.Id);         return null;     }  }   getting error     Id value 0012800000CyJVI is not valid for the Contact standard   controller   is there any way to check my Id is correct or not. and show error in VF page using apex:pagemessage


Do events in Junkenstein's Revenge happen at specific times?

After playing Junkenstein's Revenge a few times, I've started to notice a pattern in the order of events. Reaper spawns, then Roadhog, then Junkrat, then Reaper again, then Reaper again, then Mercy. Do these events happen at specific marks on the timer? Or do they happen a certain time after the previous boss was defeated? Additionally, are the tire spawns also scripted, or are they random?


Confusion related to derivation of posterior of gaussian processes

I was reading this paper related to gaussian processes . I didn't get how they derived the posterior of the gaussian process given some observed data  I understand that y follows normal having mean u and std $\epsilon$. Both y and u have normal distribution with mean 0. Only the covariance is different in the case of y an u.Can anyone please explain how the posterior was derived. I didn't get how the $K$ part came in the mean of the posterior and the covariance of the posterior  Well  u ~ 0 K       K_uy  y ~ 0 K_uy        K+$\sigma^2$  I didn't get how the part K_uy is calculated. They have placed it to be K. I am not sure why. Clarificiations?  Also can you explain how the prediction process is derived. I know the integration makes sense. But how did they get the final expression?


How to combine array items with string substitution?

I'm trying to use Bash string substitution to combine an array. Desired output: cat,dog,fish  This works, but isn't there a way to do with without piping? #!/bin/bash  words=(cat dog fish)  echo "${words[@]}" | sed 's/ /,/g'  I've been trying this, which doesn't work. echo "${words[@]// /,/}"


How do I use setblock with a coloured sign?

I'm trying to create a 1 command block house for a datapack function (as I'm learning how to create datapacks) and I want a sign in the basement of my house however I can't get the sign to be coloured at all. I'm able to give myself a custom sign:  /give @p oak_sign{BlockEntityTag:{Text1:"{\"text\":\"Push For\",\"color\":\"dark_red\"}",Text2:"{\"text\":\"a\"}",Text3:"{\"text\":\"b\"}",Text4:"{\"text\":\"c\"}"}}   However when I try to put the entitytag into a /setblock command it doesn't work and just creates a blank sign. This is the command I'm using to test.  /setblock ~ ~ ~ oak_sign{BlockEntityTag:{Text1:"{\"text\":\"Push For\",\"color\":\"dark_red\"}",Text2:"{\"text\":\"a\"}",Text3:"{\"text\":\"b\"}",Text4:"{\"text\":\"c\"}"}}   Is there a different method for when I use /setblock?  Edit for anyone who might have the same problem: When setting block you don't need the "BlockEntityTag". You can just use:  {Text1:"{\"text\":\"Push For\",\"color\":\"dark_red\"}",Text2:"{\"text\":\"a\"}",Text3:"{\"text\":\"b\"}",Text4:"{\"text\":\"c\"}"}  (Make sure to delete the extra } on the end of the command.


If $f$ is an analytical function in $C$ and $f(R) \subseteq R$ prove that $f^{(n)}(R) \subseteq R$, for all $n ∈ N$ and afterwards that $f(\overline{z})=\overline{f(z)}$. My attepmt: My guess is that by using the taylor exppansion of $f$ we can prove that $f^{(n)}(R) \subseteq R$, for all $n ∈ N$. It is really easy then to prove that $f(\overline{z})=\overline{f(z)}$. However, I wasn't able to prove that $f^{(n)}(R) \subseteq R$. An idea that I had is to assume that $f^{(n)}(0)$ can take a complex value for some $n∈N$ and since $f$ has to be real for all real vlaues I can arrive to a contradiction. Edit2: I worked a bit on my attempt and I think I have found a solution. By using induction and the taylor series of $f$, I have proven that for $f$ to take only real values when $z∈R$ only if all $f^{(n)}(0)$ that have an imaginary part cancel each other out. However, for that to be true and in order for them to give a zero polynomial, they all have to be equal to zero hence real. Edit: I know that their is a similar question that has been answered but it doesn't really answer MY question since the solution provided is completely different from the one I am looking for.


bayesian updating for multivariate normal priors

Any general material on how to update with multivariate normal priors would do., such as text book chatpers or paper, notes etc. I tried to google, nothing similar/relevant was found.  I read this in a paper(Erdem 1998) but could not understand how they derive the posterior upto to time T.  No idea how to type equations here so i used a screen shot for my questions.  Some background information. The key assumption here is consumers does have a perfect perceptions of the TRUE quality of a product (brand quality etc.). But the true product quality is fixed in perspective of the company. The consumer’s perceived quality is different from true quality but depend on the true quality. Each time they purchase, they update their belief on the true quality (or mean quality). The consumers evaluate the product quality as a Bayesian.


Wash sale rules between tax advantaged and regular accounts

I sold an investment in a standard brokerage account at a small loss because I needed the money for a down payment.  I still think it is a good investment, can I buy the same investment in a standard IRA without running into wash sale problems?  I will probably just wait the 30 days any way to avoid any headaches, but I want to know if there is a definitive answer on this.    Being as the cost basis in the traditional IRA doesn't matter, I wouldn't think there would be a problem.


How do I create a major arc open to the left?

First a minimal working sample is as following:  \documentclass{amsart} \usepackage{txfonts}  \begin{document}  \end{document}   Goal: I want a math symbol which is like a circle but misses a left part as in the following picture. Any help is welcome. I hope it has the same line weight and size as \medcirc in the txfonts package.


Can I apply for tourist visa for US 6 months before I travel?

I am Cambodian and living in Australia with bridging visa and I am planning to travel to USA for couple week in July 2018 to join our friends' wedding. So my question is how far could I apply for the visa before I travel date? like can I apply 6 months before I travel? and I had read some posts here mentioned that the validity of the visa is 6 months And I had read on the US visa website stated that the application might take 30 days or up to 60days in case for further processing. Thanks and really appreciate with all the answers.


I know that the cells of mammals at least stop dividing when they are old, and then die a programmed cell death. Then other cells have to replace them.   But in a bacterial colony, each cell replicates for itself. Obviously, if a division of a bacterial cell of generation N were to produce two new cells of generation N+1, and all bacteria died of old age at generation M, there would be no bacteria left around.   So how is it regulated in bacteria? Are their divisions simply unlimited? Does a cell never die and just divide forever?


Beginner: Simulating Gaussian Process on $\mathbb{R}$

How can one simulate a Gaussian process with nonzero covariance?  I've never simulated a process. I have searched for some basic examples, but I cannot make sense of all of it. Can someone give an an algorithm (continuous and discrete) followed with a minor explanation of such a simulation? How can the Fourier transform be used?


overfull and under-full errors. Not able to correct them, please help out

\documentclass[11pt]{article} \usepackage[utf8]{inputenc} \usepackage{listings} \usepackage{amsmath} \usepackage{amssymb} \begin{document} Similarly, the state-space averaging is used to described the AC small signal dynamics: \begin{multline} \begin{bmatrix} L_1 & 0 & 0 & 0\\ 0 & L_2 & 0 & 0\\ 0 & 0 & C_1 & 0\\ 0 & 0 & 0 & C_2 \end{bmatrix} \frac{d}{dt} \begin{bmatrix} i_{L1}(t)\\ i_{L2}(t)\\ v_{C1}(t)\\ v_{C2}(t) \end{bmatrix} =\\ \begin{bmatrix} 0 & 0 & D & -D'\\ 0 & 0 & -D' & D\\ -D & D' & -\frac{D'}{R_l} & -\frac{D'}{R_l}\\ D' & -D & -\frac{D'}{R_l} & -\frac{D'}{R_l} \end{bmatrix} \cdot \begin{bmatrix} i_{L1}(t)\\ i_{L2}(t)\\ v_{C1}(t)\\ v_{C2}(t) \end{bmatrix} + \begin{bmatrix} D'\\ D'\\ \frac{D'}{R_l}\\ \frac{D'}{R_l} \end{bmatrix} \cdot \hat{v}_g(t) + \\ \begin{bmatrix} V_{C1} + V_{C2} -(V_g - V_D)\\ V_{C1} + V_{C2} -(V_g - V_D)\\ -I_{L1} -I_{L2} + \frac{V_{C1}}{R_l} + \frac{V_{C2}}{R_l} - \frac{V_g - V_D}{R_l}\\ -I_{L1} -I_{L2} + \frac{V_{C1}}{R_l} + \frac{V_{C2}}{R_l} - \frac{V_g - V_D}{R_l} \end{bmatrix} \cdot \hat{d}(t) \end{multline} Also, $\hat{v}_{C1}(t) = \hat{v}_{C2}(t) = \hat{v}_C(t) \ and \ \hat{i}_{L1}(t) = \hat{i}_{L2}(t) = \hat{i}_L(t)$. While DC state equations are: \begin{equation} \begin{bmatrix} 0\\ 0\\ 0\\ 0 \end{bmatrix} = \begin{bmatrix} 0 & 0 & D & -D'\\ 0 & 0 & -D' & D\\ -D & D' & -\displaystyle\frac{D'}{R_l} & -\displaystyle\frac{D'}{R_l}\\ D' & -D' & -\displaystyle\frac{D'}{R_lZ_l} & -\displaystyle\frac{D'}{R_l} \end{bmatrix}\cdot \begin{bmatrix} I_{L1}\\ I_{L2}\\ V_{C1}\\ V_{C2} \end{bmatrix} + \begin{bmatrix} D'\\ D'\\ \displaystyle\frac{D'}{R_l}\\ \displaystyle\frac{D'}{R_l} \end{bmatrix} \cdot (V_g - V_D) \end{equation} The state space equations hence become, \begin{multline} sL\cdot \hat{i}_L(s) = (D - D')\cdot \hat{v}_C(s) + D'\cdot \hat{v}_g(s) + (2V_C-V_g+V_D)\cdot \hat{d}(s) \\ sC\cdot \hat{v}_C(s) = (D'-D)\cdot \hat{i}_L(s) - \displaystyle\frac{2D'}{R_l} \hat{v}_C(s) + \displaystyle\frac{D'}{R_l} \hat{v}+g(s) + (-2I_L + 2\displaystyle\frac{2V_C}{r_l} - \displaystyle\frac{V_g-V_D}{R_l})\cdot \hat{d}(s) \end{multline} Steady state values are: \begin{equation} V_C = \displaystyle\frac{1-D}{1-2D} \cdot (V_g-V_D) \end{equation} and \\ \begin{equation} I_L=\displaystyle\frac{1-D}{(1-2D)^2} \cdot \displaystyle\frac{V_g}{R_l} \end{equation} \end{document}   Warning: Overfull and Underfull.


Prove that for each $n$, there exist $n$ consecutive integers, each of which is divisible by a perfect square larger than $1$. Can any one help with this? I was stuck because I know how to solve for a particular $n$ value, but I was helpless in the generalized form.


i have a associationmodel class which is pretty easy:  package login;  import java.util.List;  public class AssociationModel {     private String AssociationName;     private List<UserModel> UserList;  public AssociationModel(String name){     this.AssociationName = name; }  public void RegisterUser(UserModel user){     UserList.add(user); } public List<UserModel> getUsers(){     return UserList; } public String getName(){     return AssociationName; } }   Furthemore i have another class which has an java.util.list of AssociationModel´s  If i want to add AssociationModel´s to the AssociationList of the other class i get a stracktrace          while (SearchAssociationsResult.next()){             //AssociationList.add(new AssociationModel(SearchAssociationsResult.getString("ASSOCIATION_NAME")));             AssociationModel l_association = new AssociationModel(SearchAssociationsResult.getString("ASSOCIATION_NAME"));             AssociationList.add(l_association);             System.out.println(l_association.getName());         }     Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException     at login.AssociationController.CreateAssociations(AssociationController.java:35)     at login.AssociationController.<init>(AssociationController.java:16)     at login.LoginController.LoginAttempt(LoginController.java:48)     at login.LoginView$1.actionPerformed(LoginView.java:52)     at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)     at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)     at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)     at javax.swing.DefaultButtonModel.setPressed(Unknown Source)     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)     at java.awt.Component.processMouseEvent(Unknown Source)     at javax.swing.JComponent.processMouseEvent(Unknown Source)     at java.awt.Component.processEvent(Unknown Source)     at java.awt.Container.processEvent(Unknown Source)     at java.awt.Component.dispatchEventImpl(Unknown Source)     at java.awt.Container.dispatchEventImpl(Unknown Source)     at java.awt.Component.dispatchEvent(Unknown Source)     at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)     at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)     at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)     at java.awt.Container.dispatchEventImpl(Unknown Source)     at java.awt.Window.dispatchEventImpl(Unknown Source)     at java.awt.Component.dispatchEvent(Unknown Source)     at java.awt.EventQueue.dispatchEventImpl(Unknown Source)     at java.awt.EventQueue.access$500(Unknown Source)     at java.awt.EventQueue$3.run(Unknown Source)     at java.awt.EventQueue$3.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)     at java.awt.EventQueue$4.run(Unknown Source)     at java.awt.EventQueue$4.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)     at java.awt.EventQueue.dispatchEvent(Unknown Source)     at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)     at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)     at java.awt.EventDispatchThread.run(Unknown Source)   I am sure its a pretty stupid mistake...


How to find the sum of $n$ terms in the sequence - $ \dfrac{1}{1.2.3}+ \dfrac{1}{2.3.4}+\dfrac{1}{3.4.5} + \cdots+ \dfrac{1}{n(n+1)(n+2)}$?

How to find the sum of $n$ terms in the sequence - $ \dfrac{1}{1.2.3}+$ $\dfrac{1}{2.3.4}+\dfrac{1}{3.4.5} + \cdots+ \dfrac{1}{n(n+1)(n+2)}$?  I added a few first terms like, $ \dfrac{1}{6}, \dfrac{5}{24}, \dfrac{9}{40},\dfrac{7}{30}$.I just couldn't figure out any patterns. Is there any generalized formula to get the sum of $n$ terms or what kind of approach should I go for to solve problems like this?


When a creature is hit with more than one fireball simultaneously, do they take damage from all of them?

Say a creature walks through a door and triggers two spell glyphs from two  spells that are programmed to cast a  at the creature that walks through the door. Both glyphs are triggered by the same action/trigger.  My intuition and off-the-cuff ruling would have been that the creature rolls for both fireballs and takes damage and effects as if they had been hit by two separate spells.  However, the PHB says in Chapter 10 under "Combining Magical Effects" ():     The effects of the same spell cast multiple times don't combine, however. Instead, the most potent effect - such as the highest bonus - from those castings applies while their durations overlap. (PHB p. 205)    Does this imply that the creature would only effectively get hit by one fireball? Does this section even apply here to spells of instantaneous duration?  In short, does the creature take damage from one or two fireballs when hit by two simultaneously?   A more extreme example of this scenario (and the inspiration for this question) can be found in:


Could enough people spin Earth backwards faster than they could run?

So, consider the theoretical situation in which the earth is no longer spinning, and we want to spin it up by running in the opposite direction (Yes, this question was inspired by the Nike commercial). Suppose that you have enough people running that you could do it in a reasonable amount of time, and that they could all run at 10 mph indefinitely. Would it be (theoretically) possible for them to get the surface of the earth spinning at a rate faster than 10 mph, or would the angular velocity of the earth stop accelerating once the surface velocity reached 10 mph?


What would the wavelength of the Cosmic Background Gravitational Wave radiation be?

Considering electromagnetic CMB can only see light as old as 380,000 years after the Big Bang, whilst theoretically those being gravitational should be formed from the beginning, what would their wavelength be, and do we have the technology to detect them in the foreseeable future?


For all natural numbers, there exists a prime in between n and n! (n<p<n!)

Is there a way to prove this without using Bertrand's postulate?


Is there any way to go back to the old "classic Gmail"?

Google won't allow it anymore, now that the settings ⚙ button no longer has the Go back to classic Gmail option. But I miss the old interface because of   higher information density better fonts less unnecessary whitespace ability to hover over date and see timestamp in list view   Has anyone created a chrome extension or some other way to use gmail with the old look and feel?


How to output MySQL query results in CSV format?

Is there an easy way to run a MySQL query from the Linux command line and output the results in  format?  Here's what I'm doing now:  mysql -u uid -ppwd -D dbname << EOQ | sed -e 's/        /,/g' | tee list.csv select id, concat("\"",name,"\"") as name from students EOQ   It gets messy when there are a lot of columns that need to be surrounded by quotes, or if there are quotes in the results that need to be escaped.


I tried to use my Virtual Box and this is the error I received - (I just updated to the new Ubuntu also) and I am VERY new at this Linux OS.     Kernel driver not installed (rc=-1908)      The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or   there is a permission problem with /dev/vboxdrv. Please reinstall the   kernel module by executing      '/etc/init.d/vboxdrv setup'      as root. Users of Ubuntu, Fedora or Mandriva should install the DKMS   package first. This package keeps track of Linux kernel changes and   recompiles the vboxdrv kernel module if necessary.


I have an iPhone 5S 64 GB, ME312LL/A) I purchased as a refurb from a reputable vendor in November 2014. It's my wife's, and her previous phone didn't have LTE, so neither of us noticed right away that even in areas AT&T has good LTE service, her phone never registers an LTE connection. Only 4G.  Update:  When a SIM card from a phone with working LTE is inserted into this iPhone 5S, the service indicator shows LTE. I suppose I need to contact AT&T then?  By all appearances the phone had never been used (original packaging, pristine accessories,OEM screen protector wrap still on). What would cause a phone to function normally all ways, but not register an LTE connection?   I've tried:   toggling LTE off/on in Cellular Settings.  checking for carrier updates resetting network settings


Criteria for subdomains for stackexchange.com sites

Based on what list of criteria or requirements does stackexchange.com create a subdomain site?  For example, they have   android.stackexchange.com apple.stackexchange.com & so on   I'm curious to know what is the list of criteria or requirements for Stack Exchange subdomains.   or   How do they decide to create a Stack Exchange subdomain site?  Also, apart from the first question, why haven't they created something like windows.stackexchange.com?


Why is the Collatz Conjecture so difficult to prove or disprove?

Is there some quality of the Collatz Conjecture that has made it so difficult to prove or disprove? Besides just using a computer to calculate lots and lots of values of $n$, of course.


Ring theory- 'maximal' ideal that does not contain an element

Let $R$ be a commutative ring and $S \subset R$ a non empty subset with $0_R \notin S$, and such that $s_1, s_2 \in S$ implies $s_1 \cdot s_2 \in S$. Let $I$ be an ideal of $R$ with $I \cap S = \emptyset$, and such that if $J$ is an ideal which contains $I$ then either $J = I$, or $J \cap S \neq \emptyset$.  I am wondering how to show that $a \cdot b \in I \Rightarrow a \in I$ or $b \in I$.


Novel about using small wormholes to view the past

Quite some time ago (perhaps 12 years ago?) I was loaned a novel which I cannot remember the name of.  Someone invents a way to create stable wormholes in time too small to travel through, but used to view events in the past. Results in the removal of all personal privacy, crimes are watched in court from any angle - nothing can be hidden.  People begin to walk around wearing masks with projections from these wormholes on them, so you could be wearing the face of a Roman Centurion with his facial expressions changing in real time. I don't remember too much else about the finer plot.  Pretty thin on description, but if it sound familiar to you....


view to work for particular set of taxonomy terms

Case: I have a taxonomy vocabulary namely 'categories'. It consists of some parent terms with their child terms as shown.   Parent1   -p1child-1   -p1child-2   Parent2    -p2child-1    -p2child-2   I want to create a view which work only for a particular set.  Suppose in this case I will create 2 views, each for both parent terms and both will have different set of exposed filters and sort criteria.  So if I visited taxonomy/term/parent1 or taxonomy/term/p1child-1 or  taxonomy/term/p2child-2, it would render that specific view of parent1.  is it possible ?  Please help


I'm from Bogotá, Colombia. In my city the temperature is all the year between 12ºC and 25ºC (bus mostly under 19ºC) and when I drive and it's raining, there is accumulation of fog on the windows, but slowly.  However, I was driving at Miami in summer. I had the windows up and the air conditioner on. In a matter of, the windshield was absolutely foggy. I tried to clean the window with my hand but of course the vapour was outside. My question is, why could that happen so quickly? Does that generally happen? I appreciate your answers.


In Geoserver, how to give different colors of features within a single shapefile based on the value of a field?

In arcgis, this can be easily done by using the Symbology tab in the properties.I need to achieve a similar effect in Geoserver. How can I do it?


Limit $\lim_{n \to \infty} \frac{n!}{n^n}$

How can I compute this limit: $\lim_{n \to \infty} \frac{n!}{n^n}$.  I have tried taking the n-th root but then I have problem managing the factorial. Thanks to everyone who will help!


How can I allow access to both SSH and SFTP?

I started from the following article to set up SFTP on Ubuntu Server: .  If I follow these instructions, I can connect with SFTP, but I am no longer able to connect to SSH from a terminal:   This service allows sftp connections only. Connection to 10.0.0.130 closed.   Here are the changes I made to sshd_config:  Subsystem sftp internal-sftp -f AUTH -1 VERBOSE  AllowGroups sftpusers sftp sshusers  Match Group sftpusers ChrootDirectory %h AllowTCPForwarding yes ForceCommand internal-sftp  X11Forwarding no   The user in question, jcoulson, is in both sftpusers and sshusers groups.  Any hints?  Any further info you need?  Thanks!


Variation in mass with gravitational potential energy

As we lift object above planet, it's gravitational potential energy increases so according to E=mc^2 will it's mass increase?


Good desktop drawing program other than Nautilus?

I'm looking for an application/service that provides a usable desktop (icons, etc.) and takes its directory from ~/Desktop (running a custom Ubuntu installation where Nautilus was broken and so removed). Any suggestions are welcome.


latex symbols to indicate telephone and mobile on letterhead

I want to add symbols for telephone and mobile on article class rather than writing Phone no: 0999999999 and mobile number 099999999999999. Are there any available symbols to indicate telephone and mobile handset ?


I would like to filter a datetime field but I only want to filter MONTH  var requestUri = "xxxx/getByTitle('Contact')/items?$select=CellPhone,mdate,ddate&$filter= Birthday ge '" + today + "'";   The query is working fine and I also tried month(birthday) as it was in the odata specifications but didn't work.  How can I get the month from the Birthday Datetime field.I can get it from my today variable.


Analytic function with $f(z)=z$ for all $z$

I'm working on the following problem: Suppose $f:U\to U$ is analytic on a bounded connected domain $U\subset\mathbb C$. Show that if $0\in U$, $f(0)=0$ and $f'(0)=1$, then $f=\text{id}$ on all of $U$. A hint I am given is to compute the first nonzero coefficient in the Taylor expansion of the function $f_n(z)-z$ at $0$, where $f_n=\underbrace{f\circ\cdots\circ f}_{n}$, but I'm not quite sure how to use this hint. Does anybody have any hints on how to solve this problem?


Find all values of $n$ such that $\varphi(n) = n/6$.

Using the product formula (the formula with the prime factors of $n$), I got $$1=6\frac{(P_1-1)}{P_1}\frac{(P_2-1)}{P_2}\cdots\frac{(P_k-1)}{P_k}\,.$$


Can you post an article on arXiv while under peer review?

Would doing so go against the declaration many journals require that the author has not submitted the work anywhere else?


Do paladin oaths have to be taken seriously?

My friends are planning a game with a group of paladin characters. One of my friends is interested in the Oath of Devotion, which has the following tenets:  Honesty. Don’t lie or cheat. Let your word be your promise. Courage. Never fear to act, though caution is wise. Compassion. Aid others, protect the weak, and punish those who threaten them. Show mercy to your foes, but temper it with wisdom. Honor. Treat others with fairness, and let your honorable deeds be an example to them. Do as much good as possible while causing the least amount of harm. Duty. Be responsible for your actions and their consequences, protect those entrusted to your care, and obey those who have just authority over you.  However, he doesn't want to have to actually do any of these things when he takes the oath. Does he have to keep these vows to have his paladin abilities and spells, or can he ignore them?


How to know that your machine learning problem is hopeless?

Imagine a standard machine-learning scenario:     You are confronted with a large multivariate dataset and you have a   pretty blurry understanding of it. What you need to do is to make   predictions about some variable based on what you have. As usual, you   clean the data, look at descriptive statistics, run some models,   cross-validate them etc., but after several attempts, going back and   forth and trying multiple models nothing seems to work and your   results are miserable. You can spend hours, days, or weeks on such a   problem...   The question is: when to stop? How do you know that your data actually is hopeless and all the fancy models wouldn't do you any more good than predicting the average outcome for all cases or some other trivial solution?  Of course, this is a forecastability issue, but as far as I know, it is hard to assess forecastability for multivariate data before trying something on it. Or am I wrong?   Disclaimer: this question was inspired by this one  that did not attract much attention. It would be nice to have detailed answer to such question for reference.


How do you get rid of large quantities of water in Minecraft PE

Someone made a massive lake on my world and I want to get rid of it, preferably by filling it in. But I would like to do it quickly, is there a fast way of doing this?


Not enough disk space in /Boot to upgrade

I have been using ubuntu for 3 months now and I have come across this problem.  An error message showed up saying      packages with unmet dependencies,update   When i tried to update it says      not enough disk space in /Boot.   I looked up some other answers in this forum and ran the command lines posted there but could'nt solve my problem.  Im pasting my terminal output below.     Ran the apt-get -f install command and got this output.  nram772@nram772-Lenovo-Z50-70:~$ sudo apt-get install -f [sudo] password for nram772:  Reading package lists... Done Building dependency tree        Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required:   libgles1-mesa linux-headers-4.4.0-31 linux-headers-4.4.0-31-generic linux-headers-4.4.0-64 linux-headers-4.4.0-64-generic   linux-headers-4.4.0-66 linux-headers-4.4.0-66-generic linux-headers-4.4.0-72 linux-headers-4.4.0-72-generic linux-headers-4.4.0-75   linux-headers-4.4.0-75-generic linux-headers-4.4.0-77 linux-headers-4.4.0-77-generic linux-headers-4.4.0-78   linux-headers-4.4.0-78-generic linux-image-4.4.0-31-generic linux-image-4.4.0-64-generic linux-image-4.4.0-66-generic   linux-image-4.4.0-72-generic linux-image-4.4.0-75-generic linux-image-4.4.0-77-generic linux-image-4.4.0-78-generic   linux-image-extra-4.4.0-31-generic linux-image-extra-4.4.0-64-generic linux-image-extra-4.4.0-66-generic   linux-image-extra-4.4.0-72-generic linux-image-extra-4.4.0-75-generic linux-image-extra-4.4.0-77-generic   linux-image-extra-4.4.0-78-generic snap-confine ubuntu-core-launcher xsane-common Use 'sudo apt autoremove' to remove them. The following additional packages will be installed:   linux-image-4.4.0-83-generic Suggested packages:   fdutils linux-doc-4.4.0 | linux-source-4.4.0 linux-tools The following NEW packages will be installed   linux-image-4.4.0-83-generic 0 to upgrade, 1 to newly install, 0 to remove and 58 not to upgrade. 19 not fully installed or removed. Need to get 21.9 MB of archives. After this operation, 66.9 MB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-image-4.4.0-83-generic amd64 4.4.0-83.106 [21.9 MB] Get:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-image-4.4.0-83-generic amd64 4.4.0-83.106 [21.9 MB]                   Fetched 19.4 MB in 14min 13s (22.7 kB/s)                                                                                (Reading database ... 479502 files and directories currently installed.) Preparing to unpack .../linux-image-4.4.0-83-generic_4.4.0-83.106_amd64.deb ... Examining /etc/kernel/preinst.d/ run-parts: executing /etc/kernel/preinst.d/intel-microcode 4.4.0-83-generic /boot/vmlinuz-4.4.0-83-generic Done. Unpacking linux-image-4.4.0-83-generic (4.4.0-83.106) ... dpkg: error processing archive /var/cache/apt/archives/linux-image-4.4.0-83-generic_4.4.0-83.106_amd64.deb (--unpack):  cannot copy extracted data for './boot/abi-4.4.0-83-generic' to '/boot/abi-4.4.0-83-generic.dpkg-new': failed to write (No space left on device) No apport report written because the error message indicates a disk full error                                                                               dpkg-deb: error: subprocess paste was killed by signal (Broken pipe) Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-83-generic /boot/vmlinuz-4.4.0-83-generic run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-83-generic /boot/vmlinuz-4.4.0-83-generic Errors were encountered while processing: /var/cache/apt/archives/linux-image-4.4.0-83-generic_4.4.0-83.106_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)   No I didn't create any partitions or allocate additional space for /Boot.


Pgfplots: Draw angle besides coordinate line and plot

Good day, I want to show in my plot angle between coordinate line and plot like this:    Сan anybody help me with it?


I'd like to only the directory  $ ls -d  . #get . on macos   and the same on centos  [root@iz2ze9wve43n2nyuvmsfx5z ~]# ls -d . .   I find the solution:  [root@iz2ze9wve43n2nyuvmsfx5z /]# ls -d */ bin/   dev/  home/  lib64/       media/  opt/   root/  sbin/  sys/  usr/ boot/  etc/  lib/   lost+found/  mnt/    proc/  run/   srv/   tmp/  var/   but the manual specify     -d, --directory           list directories themselves, not their contents   What's the reason -d perform this way?


Show that $X^3+X^2+1$ has only one real root

Consider the polynomial $X^3+X^2+1 \in \mathbb R [X]$. Since it is of odd degree, it has at least one real root. How can I show that it's the only one?


I like to begin some sentence with "And", especially when I wrote some stories at Reddit. I have someone there who voluntary fix my grammar, and I noticed that he often fix my sentence that begins with "And". But I found beginning sentence with "And" feels more natural to the context of the paragraph. And there, I did it again, I started a sentence with "But". Oh, and another "And" there. Duh. Is there any rule of how to use incomplete sentence correctly? Or is it a big no no ever after in English?


Why doesn't Java allow generic subclasses of Throwable?

According to the , 3rd edition:        I wish to understand why this decision has been made. What's wrong with generic exceptions?  (As far as I know, generics are simply compile-time syntactic sugar, and they will be translated to Object anyway in the .class files, so effectively declaring a generic class is as if everything in it was an Object. Please correct me if I'm wrong.)


How do you show a function is constant within a disc?

If f is holomorphic at every point on the open disc $$D=\{z:|z|\lt1\}$$ I want to show that f is constant


QtAndroid - non-static method sendMessage(String,String) cannot be referenced from a static context

I knew this question may be not interesting , But I want to use string function in another function. Here is my code:  example.java:  public native String sendMessage(String jid, String message); . . . ImageButton1.setOnClickListener( new OnClickListener() {     @Override     public void onClick(View v) {          final String m_Text = EditText1.getText().toString();          if (m_Text.length() > 0){             notifyMessage (m_Text);                                         String uid = new String ();             uid = sendMessage(final_jid , m_Text);                                         alertDialog.dismiss();         }     } });   example.cpp:  JNIEXPORT jstring JNICALL Java_org_qtproject_example_myapplication_MiniXmppService_sendMessage(         JNIEnv *env, jobject obj, jstring jid, jstring message) { std::string sjid; jstrToStdStr(env, jid, sjid);  if (g_bot) {     CMessageSession *session = g_bot->getOutgoingSessionForJid(sjid);      if (session)     {         std::string smessage;         jstrToStdStr(env, message, smessage);         g_bot->m_mutexClient.lock();         jstring res = env->NewStringUTF(session->session->send(smessage).c_str());         g_bot->m_mutexClient.unlock();         return res;     } }  return env->NewStringUTF("uid-*-*"); }   And I got an error: non-static method sendMessage(String,String) cannot be referenced from a static context  How to fix it?


When dealing with particularly sweet liqueurs, in particular Midori (a very sweet melon flavored liqueur), I tend to find their sugary nature overpowering the rest of the drink. What is the best way to balance this out, while still retaining the flavor components of the liqueur?  The options I've considered:   Use less of the offending liqueur. This tends to be the simplest option, but I also lose out in the addition of flavor to my drink. Saltiness. Rimming the glass with salt works great with tropical style drinks such as Margaritas, but seems a bit out of place for more urban cocktails. Tartness. This seems like the best option, but which direction to take? Lemon or cranberry juice are my first impressions, especially when working on top of a base liquor.


TOC/bookmark not accurate when containing math content (Something weird at ToC and math mode)

I put at one of my sections this: $\left\langle a,b\right\rangle $ and what I get is something very wired!   Do you know why it's happens and I can I solve it? If there is a solution for it...  Here is MWE:     \documentclass{scrartcl}  \usepackage[unicode=true,pdfusetitle,  bookmarks=true,bookmarksnumbered=false,bookmarksopen=false,  breaklinks=false,pdfborder={0 0 0},pdfborderstyle={},backref=false,colorlinks=true]  {hyperref} \hypersetup{  linkcolor=blue}  \begin{document}  \section{ABC $\left\langle a,b\right\rangle $} \end{document}   Thank you!


Can there be only one extension to the factorial?

Usually, when someone says something like $\left(\frac12\right)!$, they are probably referring to the Gamma function, which extends the factorial to any value of $x$.  The usual definition of the factorial is $x!=1\times2\times3\times\dots x$, but for $x\notin\mathbb{N}$, the Gamma function results in $x!=\int_0^\infty t^xe^{-t}dt$.  However, back a while ago, someone mentioned that there may be more than one way to define the factorial for non-integer arguments, and so, I wished to disprove that statement with some assumptions about the factorial function.    the factorial   is a  for $x\in\mathbb{C}$ except at $\mathbb{Z}_{<0}$ because of singularities, which we will see later. is a monotone increasing function that is concave up for $x>1$. satisfies the relation $x!=x(x-1)!$ and lastly $1!=1$     From $3$ and $4$, one can define $x!$ for $x\in\mathbb{N}$, and we can see that for negative integer arguments, the factorial is undefined.  We can also see that $0!=1$.  Since we assumed $2$, we should be able to sketch the factorial for $x>1$, using our points found from $3,4$ as guidelines.  At the same time, when sketching the graph, we remember $1$, so there can be no jumps or gaps from one value of $x$ to the next.  Then we reapply $3$, correcting values for $x\in\mathbb{R}$, since all values of $x$ must satisfy this relationship.  Again, because of $1$, we must re-correct our graph, since having $3$ makes the derivative of $x!$ for $x\in\mathbb N$ undefined.  So, because of $1$ and $3$, I realized that there can only be one way to define the factorial for $x\in\mathbb R$.  Is my reasoning correct?  And can there be only one extension to the factorial?    Oh, and here is a  to how I almost differentiated the factorial only with a few assumptions, like that it is even possible to differentiate.  Putting that in mind, it could be possible to define the factorial with Taylor's theorem?


Why are PATH variables different when running via sudo and su?

On my fedora VM, when running with my user account I have /usr/local/bin in my path:  [justin@justin-fedora12 ~]$ env | grep PATH  PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/justin/bin   And likewise when running su:  [justin@justin-fedora12 ~]$ su - Password:  [root@justin-fedora12 justin]# env | grep PATH PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/justin/bin   However, when running via sudo, this directory is not in the path:  [root@justin-fedora12 justin]# exit [justin@justin-fedora12 ~]$ sudo bash [root@justin-fedora12 ~]# env | grep PATH PATH=/usr/kerberos/sbin:/usr/kerberos/bin:/sbin:/bin:/usr/sbin:/usr/bin   Why would the path be different when running via sudo?


On company 401k matching. Clarification needed

I realized I don't fully understand something. It almost embarrassing to admit.  In 2016 we have 18k max contribution limit for 401k. Does this mean that employee can contribute at most 18k or that total contributions made on behalf of employee should not exceed 18k (company match)  To make is simple, if you make 100k, by contributing 18% you got your limit. But if your company matches 5%, actual contributions will be 18.9k. In the above example, if one wants to maximize benefit should one contribute 18% or less?


I want to export my objects to unity, but in blender I`m using Eevee engine. However the light in rendered more and material preview mode is completely different, which impacts the colors of objects. Which one can i trust to see the true final colors of the objects so that they will be the same when i export them to unity?


Apache dbutils Java cannot get String value

QueryRunner qr = new QueryRunner(C3P0Util.getDataSource());         qr.update("DELETE FROM course_access " +                 "WHERE user_id = ? " +                 "AND course_id NOT IN (?)", user_id, courseIdList);   String user_id  = "2" String courseIdList = "101,102,104,105,106,108,109" But the results are not correct only the result same as     DELETE FROM course_access WHERE user_id=2 AND course_id NOT IN (101)   The table structure looks like this  id  course_id  user_id 1    101          1 2    102          1 3    105          1 4    104          1 5    106          1 6    108          1 11   110          1 12   101          2 26   101          8 27   102          8 28   105          8 29   104          8 30   106          8 31   108          8 32   110          8 33   113          8 34   115          1 35   107          1 36   115          8 37   109          8 38   109          1 39   107          8 40   116          8 41   116          1 98   102          2 99   103          2 100  104          2 101  105          2 102  106          2 103  107          2 104  108          2 105  109          2


Trying to prove by induction that $\sum_{i=1}^{k} F_{2i}=F_{2k+1}-1$ for all $k∈N$

I am trying to prove by induction the following proposition of the fibonacci sequence: The fibonacci sequence is defined recursively as: $f_1 = 1$, $f_2 = 1$, and that for all integers $k>=1$, $f_{k+1} = f_{k+1} +f_k $ Propostion I am trying to prove: $\sum_{i=1}^{k} F_{2i}=F_{2k+1}-1$ for all $k∈N$ So far I have this: Base case: For $F_1$: $\sum_{i=1}^{k} F_{2i}$ = $F_{2(1)}$ = $F_{2}$  This is true. Induction Hypothesis: $\sum_{i=1}^{n+1} F_{2i}$ = $F_{2(n+1)}$ I am not sure if what I have so far is correct. I have brainstormed this also: That $f_2 = f_3 - 1$. And that $f_2\:+\:f_4\:+\ldots+f_{2n}=f_{2n+1}-1$. By adding $f_{2n+2}$ to both sides, you get $f_2\:+\:f_4\:+...+f_{2n} + f_{2n+2}= f_{2n+2}+f_{2n+1}-1$. And $f_{2n+2}+f_{2n+1} = f_{2n+3}$. I am not sure how to prove the proposition by induction properly. I have a general understanding of how induction works and why the proposition is true, but I am having trouble proving it with induction steps. I think I need to somehow get to $f_{2n} = f_{2(n+1)+1}-1$, but I am struggling with that. I haven't practiced much strong induction yet, so I am only looking for a simple proof. To provide context as to why I am doing this exercise: I am planning to use this proof as a base for me to refer back to when doing more complex proofs that also involve the fibonacci sequence. Thank you for all the help or any proofs provided.


Installing Ubuntu without ruining Windows 10 installation

I've been reading through the questions about installing Ubuntu alongside Windows 10, but none seem to address this question. If I have a computer with a Windows 10 installation but no backup media, and I want to install Ubuntu alongside my original Windows 10 installation, how do I go about this? I do not want to brick my Windows 10 installation.   I have Windows 10 installed already but I observe that when I shutdown Windows 10 I have to be careful to actually shut it down - otherwise it will do a hibernate/sleep which has an associated hiberfile. This makes it impossible to mount the drive from an Ubuntu live disc.   Also, I have noticed that Windows 7 is finicky and will complain if I edit the disk using gparted to create additional partitions. (complain = unrecoverable boot error) I have to make partition changes in Windows itself.   What are the specific actions I should take in order to be able to have a functioning Ubuntu 16.04 installation and the original Windows 10 installation on the same computer? If I don't get answers to this question, my plan is to forge ahead with trying to do this and write up my path to success as an answer. It would be great if this has already been done and there is a writeup somewhere.


My PG is a Shade, so:     Racial Traits       As creatures of the Plane of Shadows, shades are considered to be of the outsider type.   So far so good. The problem is: if the Shade race is already a little unbalanced, how does the outsider type interact with it?  Do I get the Outsider features?     Outsider Type      Features      An outsider has the following features.      8-sided Hit Dice.    Base attack bonus equal to total Hit Dice (as   fighter).    Good Fortitude, Reflex, and Will saves.  Skill points equal   to (8 + Int modifier, minimum 1) per Hit Die, with quadruple skill   points for the first Hit Die.      From:


What is the total number of dismembered limbs in the Star Wars films?

I'm surprised this hasn't been asked yet.  Having just seen Rogue One and rewatched A New Hope, dismemberments are exceedingly common.   If go far as to say they are a recurring theme.   For the purpose of this question, dismemberment includes any full or partial removal of an arm or leg,  wherein the limb is fairly intact and the victim survives.   That includes assaults to biological beings,  cyborgs,  and droids, and dismemberment by severing (e.g. lightsaber) or raw force (e.g. Wookiee).


GRUB Won't load after instaling Ubuntu 14.04 on Windows 7 Dell Inspiron 3537

I bought this laptop from Amazon, which is a Dell Inspiron 3537 with a Windows 7 OS. It DID have Windows 8 before it, the company which was the supplier obviously changed the operating system.  I created a partition for Ubuntu and did install it the same way way I did with another laptop that has Windows 8 installed. The other laptop was a Samsung (not sure what type, can't seem to find exact model) and that works perfectly fine. Summarising, I did succseeded in instaling Ubuntu with Windows 8.  Anyway, I installed Ubuntu 14.04 on my Dell, and Ubuntu works perfectly fine, however my issue is that when I restart my laptop, GRUB does not load, I get a dark purple screen where GRUB should be, no text. Even if I press up and down keys to "prevent" the timer, it still goes straight into Ubuntu.  This laptop does have UEFI and I think it's something to do with that that prevents GRUB to load, however I could be wrong. The only way I can make Ubuntu to load is UEFI on and Safe Mode off. Leagcy Mode or anyother changes to the system does not allow me to boot either OS.  If anyone can help out, I would be very grateful.  UPDATE: 12/03/2015  I didn't have time (silly as it sounds) to try to address the issue, i.e. try boot repair or other ideas. However on the 12/03/2015 I had a software update through Ubuntu Update Centre and from then on, I was able to load up the GRUB menu and load Windows 7. However there are some issues that happen now and then.  A purple screen with white lines when I attempt to load Windows 7 and then crashes sometimes occurs. Once the a memory crash dump occurred as logging into a profile once happened. I'm not sure how to respond to these issues but I'm sure I can fix this, unless someone finds an answer before me.


How to downgrade iOS to previous version?

I really need to downgrade from iOS 9 to iOS 8 on my iPad Mini. Is it possible at all?


If 2 waves have the same frequency and amplitude moving over each other but one of them is ahead of the second so that the phase difference is pi "half wave length" so a perfect and complete destructive interference occur,, in that case what happens to the energy? And where does it go?


Quicken allows me to cast a sorcery "any time I could cast an instant", but I don't want my opponents to know I am planning to do that, is the following legal?:   The player before me pass the turn I respond casting quicken in the end step No one respondes so Quicken resolve I now cast my sorcery, still in his end step   Is the fourth step valid? Do I get the priority again after Quicken resolves but before my turn starts to cast my sorcery at instant speed?


Should I edit my self-deleted answer or create a new one?

Because of a misunderstanding, I posted an answer for a question, then realized my answer was totally wrong. So I deleted it.  After some time I realized that I can actually answer that particular question.   Now, where should I to put my answer? Should I edit the deleted post with the correct answer or should I post it as an another answer, leaving the deleted one as it is.  Which is the better way to go?


What is the exact meaning of "call" resounding in the US media

After the election, I hear, to me, new usages of 'call'.  AP called Arizona for Biden   The results are too close to call.  In first look, I rendered it as 'announce' something. But I see this is tainted with a sense of prediction. What is the exact meaning of this 'call' here?


How is the value of $\pi$ ( Pi ) actually calculated?

When I was a child I was taught $\pi$ (Circumference/Diameter) is an irrational number  and can be approximated to $22/7$ but $= 3.(142857)(\ldots)$.      But where does this value comes from?  In short How do I derive $\pi$?


"GNOME Tweaks" not in Ubuntu 20.04 Software App

I can't find the "GNOME Tweaks" app/tool using Ubuntu 20.04 Software app. I wan't to use it to customise my Desktop Icons. Any help is greatly appreciated. Sincerely DB


What is the "login session" of a process?

In      lsession    SESSION   displays login session identifier of a process.   What does the "login session" of a process mean?   ps has other fields cgname and cgroup for the cgroup of a process. So the login session of a process can't refer to the cgroup of the process.  Thanks.  $ ps  -o lsession,pid,cmd SESSION       PID CMD c2          22135 bash c2          27852 ps -o lsession,pid,cmd