How to eliminate redundancy using a function (def)?

I'm building a currency converter and I've pretty much finished the program. However, I am trying to eliminate redundancy by implementing a function or a define block. I've tried a number of things but it does not seem to be working. My current code is like this: EUR = 0.83  EGY = 16.22  def currency_converter():   money = total_value   new_value = 0   if currency == 1:     new_value = money*EUR_CON     print("Your total is " + "$" + str(money) + " US Dollars  which is " + "e£ " + str(new_value) + " European Euros.")   elif currency == 2:     new_value = money*EGY_CON     print("Your total is " + "$" + str(money) + " US Dollars  which is " + "e£ " + str(new_value) + " Egyptian Pounds.")  I want to essentially make the clause under the if/elif block a function. I've tried doing this: def conversion(EUR_CON,GDP_CON, BRL_CON, EGY_CON, YEN_CON):   new_value = money*conversion()   print("Your total is " + "$" + str(money) + " US Dollars  which is " + str(new_value)+ str(conversion)  if currency == 1:     conversion(EURO_CON)  But it's not working. Can someone help?


What's the correct punctuation of "i.e." and "e.g."?

I'm confused about how to correctly punctuate these two. Can someone elaborate? Here's an example:  She said that the pain was 100/10 – i.e. above the top of the scale. She said that the pain was 100/10 – i.e., above the top of the scale.  I think that the first example is correct, but is it?!


Is there a zsh command to output shell function code, like `type` in bash

In bash, when I'd like to have a glimpse at what an already defined shell function does, I can: $ type myFunctionName  For a variable myFunctionName, it provides me with the type of the variable (a function), but also print the source of this shell function on the terminal. Very handy. When I do the same in zsh, it only gives me the its type, not its shell code. Is there a way to ask zsh to print to source of a shell function given its name ?


Why is Facebook as an OpenID provider missing from Data Explorer login?

Why is Facebook as an OpenID provider missing from ?


Googlebot craw rate is too slow for a huge site

I have a new website with 140k pages, according to my sitemaps.  After submission of my sitemap index to Google, the Googlebot has started crawling the site a couple of hours ago, and at a steady pace, but it's doing so too slowly: roughly one request per minute.  At such rate, it'll take 100 days for the site to be indexed!  Is there a way to increase the rate?  Why does all Google documentation suggest that they don't recommend changing the crawl rate, and that changing the crawl rate will only make the crawling slower?


Suppose a system has $10$ components and that at a particular time the $j$th component is working with probability $1=j$ for $j = 1,2,\ldots,10$. How many components do you expect to be working at that particular time?  Can I get a start on this?  Thanks


I was compiling a tool called Rejoystick so I installed a few packages and dependencies. But now I don't need it any more so I removed those packages. Running apt-get shows that I have some packages that are automatically installed and are no longer needed.   But I have a bad experience with apt-get autoremove. It broke my desktop environment when I uninstalled wine some time ago. Luckily, I had a clonezilla partition backup then, but this time, I don't have a backup. So I'm cautious. Running apt-get shows these packages are orphaned     gir1.2-gtk-2.0 libasound2-dev libavahi-client-dev libavahi-common-dev   libcaca-dev libcairo-script-interpreter2 libdbus-1-dev libdrm-dev   libexpat1-dev libfontconfig1-dev libfreetype6-dev libgl1-mesa-dev   libglu1-mesa-dev libharfbuzz-dev libharfbuzz-gobject0 libice-dev   libpcre3-dev libpcrecpp0 libpixman-1-dev libpng12-dev libpthread-stubs0-dev   libslang2-dev libsm-dev libx11-dev libx11-doc libx11-xcb-dev libxau-dev   libxcb-dri2-0-dev libxcb-dri3-dev libxcb-glx0-dev libxcb-present-dev   libxcb-randr0-dev libxcb-render0-dev libxcb-shape0-dev libxcb-shm0-dev   libxcb-sync-dev libxcb-xfixes0-dev libxcb1-dev libxcomposite-dev   libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev   libxft-dev libxi-dev libxinerama-dev libxrandr-dev libxrender-dev   libxshmfence-dev libxxf86vm-dev mesa-common-dev x11proto-composite-dev   x11proto-core-dev x11proto-damage-dev x11proto-dri2-dev x11proto-fixes-dev   x11proto-gl-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev   x11proto-record-dev x11proto-render-dev x11proto-xext-dev   x11proto-xf86vidmode-dev x11proto-xinerama-dev xorg-sgml-doctools xtrans-dev   zlib1g-dev   I'm not sure if I should run apt-get autoremove. I was searching details related to each of these packages so that I can understand which ones are needed but they all seem important e.g.     gir1.2-gtk-2.0    I have Cinnamon, GNOME and Unity installed, I think apt-get autoremove will break something. Any help will be appreciated.   Thanks for reading.


Proof of an accelerated expansion of the universe

Are there any more "proofs" of an accelerated expansion of the universe other than: $1:$ that galaxies that are farther away from us are also more redshifted. $2:$ using "Baryon acoustic oscillations" to compare the sound horizon today with the sound horizon at the time of decoupling (using the CMB)?


I was working on a simple project with a single model, a backdrop and lamps, and suddenly, Blender became really, really slow. I tried starting a new project, restarting the computer, even reinstalling Blender, but nothing seems to help. What could have happened and what can I do to resolve it?


Checking for nodes at pipe ends using ArcGIS Desktop?

I have two features in ArcGIS Desktop 10.4; pipes and nodes. I want to check if all pipes have nodes at their end.   How can I check that?


Arduino IDE (Win10) crashes when I launch the program

My Arduino IDE (ver 1.8.12 on Win10) crashes when I launch it. Running the arduino_debug.exe I get this error message.  C:\Program Files (x86)\Arduino>arduino_debug.exe Set log4j store directory C:\Users\volke\AppData\Local\Arduino15 Loading configuration... Initializing packages... java.lang.NullPointerException         at cc.arduino.contributions.packages.ContributionsIndexer.parseIndex(ContributionsIndexer.java:134)         at processing.app.BaseNoGui.initPackages(BaseNoGui.java:483)         at processing.app.Base.<init>(Base.java:273)         at processing.app.Base.main(Base.java:150)  C:\Program Files (x86)\Arduino>   Any solutions? I've tried to delete the config files package_index.json and package_esp32_index.json without any luck.


What is the difference between the following two sentences?      She goes to the forest three times per week.        She goes to the forest three times a week.


rendered viewport not showing objects, rendered image works fine

The render preview in cycles shows nothing but overlays. So I can see outlines, emptys, the camera... but not the actual objects, materials, light... .  When I render an image every thing seems right. Its is only the the viewport and it is not the clipping border. The problem is only in cycles, eevee works fine. I use Blender 2.83. Here is the . I am lost and can't work that way. Please, does someone know what to do?


python 3 printing the name of a function

I have accepted the answer to this question by @dtanabe Here is my code  def abc(): pass x = abc class label:     def __init__(self,fnname):         self.lbl = fnname     def __repr__(self):         repr(self.lbl)     def __str__(self):         # how should this be defined?         # I have no objection if other class functions         # or variables need to be defined  u = label(x)   I would like print(u) to respond with abc (three characters) on the screen and print([u]) to respond with [abc] (five characters). In each of these two cases, I do not want to see on screen any single or double quote mark anywhere near the strings of length 3 or 5.  Of course, I would like the analogous behaviour for a function abcdefg, with print(u) giving rise to abcdefg on the screen and print([u]) giving rise to [abcdefg] on the screen.  Your answer is allowed to change the definition of the class, but it is not allowed to change anything outside the class definition.


Does $\hat{\beta}=(X′X)^{−1}X′ \ Y$ simplify further?

As far as I know $(AB)^{-1}=B^{-1}A^{-1}$ and matrix multiplication is associative so:  $$(X′ X)^{−1}X′=(X^{-1})(X')^{-1}(X')=X^{-1}.$$  What am I doing wrong?


I've seen similar questions asked here, but I've not been able to find a comprehensive answer.  I know that for a ring $R$, $R[X]$ denotes the ring of polynomials over $R$ and $R(X)$ denotes the field of fractions of $R[X]$.  But if $\alpha \in S$, where $S \supseteq R$ are rings, what is the distinction between $R[\alpha]$ and $R(\alpha)$?  It is my understanding that if $R$ is a field then $R[\alpha] \cong R(\alpha)$, but that this is not generally true for any ring.  Is this correct?  Adding to my confusion is the fact that $\mathbb Z[i]$ and $\mathbb Z(i)$ are used interchangeably, despite $\mathbb Z$ not being a field.  However, it's clear to me that they are equivalent ( i.e. $\mathbb Z[i] = \mathbb Z(i) = \{ a + bi | a,b \in \mathbb Z \}$); is this because $i$ is algebraic over $\mathbb Z$?  Or for some other reason?  Thanks for your help!


"I just ate them" and "I've just eaten them" — What's the difference in American and in British?

I know there are differences between American and British English in this area. So when answering, please specify whether you speak American or British English.


How to extract slope from topographic raster map?

I am working on a project for a machine learning class wherein I extract features from a topographic raster map and then classify the traversability of the terrain. One of the features I need to extract is slope. My initial thought was that an approximation of slope at any given point could be extracted from a map by calculating the distance between contour lines. However it seems I took for granted the complexity of extracting the contour lines.  In attempting to solve this problem I found myself trying to learn a number of GIS tools. However I still have not been successful which is why I am here. I have installed gdal and used gdal_contour to generate what I believe to be a DEM. From there I loaded it into qgis along with the original raster map. From this I see that when gdal created the DEM it used only one of the two colors that designate contour lines. Worse yet it used the less frequent color so the resulting contour lines are highly segmented.  This leaves me with a couple of questions. The first is whether it is possible to designate the colors gdal uses to extract contour lines and generate the DEM. The second is whether there is a simpler method for extracting the desired data.


I need help to change the file system from ext4 to NTFS. I am using this command:  sudo mkfs.ntfs /dev/sda   But I get this output:  /dev/sda is entire device, not just one partition Refusing to make file system here!   I don't have any data on /dev/sda. What should I do?


If statement with time equals 0:00 Google Apps Script

I have issues with a cell in google apps script where if a cell = "0:00" it needs to equal some text like "Unexcused Absence". when I run the code it gives me a blank cell.  function Boh() {    var sheet = SpreadsheetApp;    var ss = sheet.getActiveSpreadsheet().getActiveSheet();    var lastRow = ss.getLastRow();    var spreadsheet = SpreadsheetApp.getActive();    var b = 0;    var wCell = 'Work';    var x = new Date('3/16/2013 0:00:00');     for(var i=2;i<=lastRow;i++){    ss.getRange(i,10).activate();    if(x.setHours(0,0,0,0)  == ss.getRange(i, 17).getValue() && 'Work' == ss.getRange(i, 5).getValues()){       ss.getRange(i, 10).setValue('Unexcused Absence');    }    }


My Mac Book Pro Safari and Settings Icon Disappeared

Upgraded the os last night and this afternoon my settings and safari icons disappeared.  help!!  how do I get them back?


I am new to pythonTex. I get following error. I checked working of simple python code. However, when I try to import math within pycode it gives error.  using code:  \begin{pycode} import math  from pint import UnitRegistry  u = UnitRegistry()  alpha = 0.04  sigmaW = 72.86e-3 * u.newton / u.meter  mu = 8.9e-4 * u.pascal * u.second  \end{pycode}     I get following error:  ----  Messages for py:default:default  ---- * PythonTeX stderr - error on line 364:     File "<outputdir>\py_default_default.py", line 140       import math       ^   IndentationError: unexpected indent  -------------------------------------------------- PythonTeX:  notes - 1 error(s), 0 warning(s)  C:\texlive\2018\bin\win32\runscript.tlu:803: command failed with exit code 1: python.exe c:\texlive\2018\texmf-dist\scripts\pythontex\pythontex.py notes.tex


I'm developing an application with many, dinamycally-assembled, complicated SQL queries. I'd like to keep the query plans in the procedure cache for as long as it is possible. To prevent discarding the query plans from the procedure cache (because of memory pressure), I'd like to allocate enough memory to the procedure cache. According to  only 10% of the "visible target" memory in the 4Gb-64GB range is used for the procedure cache; I'd like this rate to be higher.  Is there any way to have some control on the size of the procedure cache? SQL Server 2008 or 2012; maybe some Enterprise Edition features?  Also, does this "10% of the visible target memory" rule also apply, if I explicitly set the min. memory for the SQL Server?  (I am aware of the KEEP PLAN / KEEPFIXED PLAN hints; I'm also aware of the advatages of preparing the statements over ad-hoc queries, so please don't recommend these possibilities. I'm specifically curious about controlling the procedure cache size.)


90-180 days rule: Confused about carry over days and new start of 180 day period

I have a short question about the 90/180 day visa calendar. My girlfriend has visited the Schengen area according to below schedule:   Arrival 28 July 2017 Departure 10 October 2017 So she basically still has 15 days left from that previous stay.   She now however is in compliance to the requirements needed to start the procedure to grant her 5-years stay, but I am struggling to understand   when the new 180 days period start for her if these 15 days can be carried over (are still to be used) in the current 180 days.   My basic question is: What is the earliest date for her to come again, and then stay for another 90 days (in a new 180 days period)?


If a subsequence of a Cauchy sequence converges, then the whole sequence converges.

Let $(X,d)$ be a metric space, and say $(x_n)$ is a Cauchy sequence such that it has a convergent subsequence $(x_{n_k})$ that converges to $x$. We show $x_n \to x$. Let $\epsilon > 0$. Take $N >0$ such that for all $n,m > N$, we have   $$d(x_n,x_m) < \frac{\epsilon}{2}.$$  By hypothesis, we can take also $K >0$ such that for all $n_k > K$, we have  $$ d(x_{n_k},x) < \frac{\epsilon}{2}.$$  Put $M = \max \{N,K\}$. Therefore, for all $n,m,n_k > M$, we have  $$ d(x_n,x) \leq d(x_n, x_{n_k}) + d( x_{n_k},x) < \frac{\epsilon}{2} + \frac{\epsilon}{2} = \epsilon.$$  Hence, $x_n \to x$ as desired.  Is this a correct approach? Thank you very much in advance.


Not able to understand the meaning of question?

car moving with a speed of 40 km / h can be stopped by applying brakes after at least 2 m. If the same car is moving with a speed of 80 km / h, what is the minimum stopping distance  Does this mean that after 2 m, You will apply brakes and then it stops. What is the retardation value  with which you are brakes.I am not understand the meaning of the values.


If $ a + b + c \mid a^2 + b^2 + c^2$ then $ a + b + c \mid a^n + b^n + c^n$ for infinitely many $n$

Let $ a,b,c$ positive integer such that $ a + b + c \mid a^2 + b^2 + c^2$.   Show that $ a + b + c \mid a^n + b^n + c^n$ for infinitely many positive integer $ n$.   (problem composed by Laurentiu Panaitopol)  So far no idea.


Occasionally I get a downvote. Just a downvote. No comments, or other type of feedback whatsoever... and i think that it is frustrating. I mean, i like my points, i dont have many, so i cherish every-single-one.  So, i would like to pitch a idea i'm calling "WHY" (its not a acronym...). The whole thing would work like this:    If you get a downvote (on a question, or answer) you would be able to call out why the person who downvoted would receive a email/notification and be prompted to explain "why" of the downvote  in a given amount of time (something like 24h) this person would go back to the "downvoted" item and  either comment, explaning why of the downvote or  the points would be "returned" to the "poster" as if the downvote had never occured, BUT the "downvoter" would not get his points back!   I think this is viable and interesiting idea because it would drive feedback to new and old guys, and possibly increasing posts overall quality!


Do four dimensional vectors have a cross product property?

We know how to make cross product of three dimensional vectors. $$ \vec A \times \vec B = \vec C$$  Where : $ \vec A = (A_i; A_j; A_k)$ $ \vec B = (B_i; B_j; B_k)$ $ \vec C = (C_i; C_j; C_k)$  $C_i = \left|\begin{matrix}A_j&A_k\\B_j&B_k\end{matrix}\right|$ $C_j = \left|\begin{matrix}A_k&A_i\\B_k&B_i\end{matrix}\right|$ $C_k = \left|\begin{matrix}A_i&A_j\\B_i&B_j\end{matrix}\right|$  But what about if we have four dimensional vectors? Is it possible to make cross product of four dimensional vectors? If it  is possible, then tell me when it can be possible?       Let say we have two vectors: $ \vec A = (A_i; A_j; A_k; A_l)$ $ \vec B = (B_i; B_j; B_k; B_l)$   Then how to compute a cross product of this two vectors? Will it again vector? $$ \vec A \times \vec B = \vec C$$  $ \vec C = (C_i; C_j; C_k; C_l)$ Then how to compute those coordinates?  We know that only square matrices have a determinant property! In this case it might not be correct if we will wright... $\color{red} {\text { $C_i = \left|\begin{matrix}A_j&A_k&A_l\\B_j&B_k&B_l\end{matrix}\right|$}    C_j = \left|\begin{matrix}A_k&A_i&A_l\\B_k&B_i&B_l\end{matrix}\right| C_k = \left|\begin{matrix}A_i&A_j&A_l\\B_i&B_j&B_l\end{matrix}\right| C_l = \left|\begin{matrix}A_i&A_j&A_k\\B_i&B_j&B_k\end{matrix}\right|}$   So tell me how to solve this problem?


In a project we have a form with some input fields and a textarea.  It is a multilangual project and if some text is translated in German the use of chars like ü and ö are very common.  In the past we never had problems saving and retrieving these from a database. We use the utf8_general_ci collation in our tables.  Today we got a strange behaviour when submitting the form. All special chars entered in the input fields seem to dissapear. (They are even gone in $_POST['field_name'], at first we thought it had something to do with codeigniter's input class)  However, any special chars entered in the textarea ARE in the $_POSTarray...  Did anyone have this problem before?


I tested the following on AIX and it works.  logfile=log.txt echo "Hello" > "$logfile" exec 1>>"$logfile" mv "$logfile" "${logfile}_new" echo "World"   After this script ran the file log.txt_new will contain:  Hello World   I was not expecting it to work because I renamed the file to where stdout was being redirected. Why does it work?  It also works if I mv/rename the directory that contains the log file.


2 laptops (1 professional and 1 personal ) and 1 iPad

I am planning to travel to India (Delhi airport) from the United States. I want to take my 2 laptops (1 personal and 1 professional) as well as my tablet (iPad). Am I allowed to take 3 gadgets in my backpack or in my check-in bag? I think I am allowed to take only 2 computers. Will Customs consider my iPad as a computer?


Is there a need for ESTA visa update when traveling to different location?

My ESTA visa is valid and my passport has not expired but my travel location is different from the first time. Should I update the travel information?


Why there is "the" before some names but not others

Is there a rule beyond the common "no the with proper nouns and names" for the following problem?     I saw the Empire State Building.      We went to the White House.      We saw the Golden Gate Bridge.   but     I went to Death Valley National Park.      I crossed Brooklyn Bridge.


I was solving some number theory problems and couldn't solve this one. I've already proved that if $a^n|b^n$, then $a|b$ (since positive integer power of a rational number is an integer implies that the rational number is an integer). But in this case, the exponents are different so that result is not applicable. Also, since $x^x$ is an increasing function, so $n<m$ in this case, so the exponent of the denominator is lesser (if it would be higher, we could've reduced the exponent of the denominator and then the previous result would be applicable.) Please help.


I am getting this undesired style of shading which gives a high contrast gradient across panels on a mesh object and even shows up in solid viewpoint mode:    What I'd like is a much flatter shading style, like it is on other objects in the same project, like this:    Not sure what is happening to create the undesired shading, because the object appears to be setup and lit exactly the same as other objects within the project. Help Appreciated.


Can I print a custom paper on standsard size in word?

I have a word document that was created using 9 X 6 as the custom paper. I dont have that size paper just the normal 8 x 11.5. How can I setup word to print the document with its current size but on the normal paper?


Meaning of parallel axis theorem: why is the moment of inertia minimum if the axis passes through the CM?

From  follows that, given a rigid body, the moment of inertia is minimum if calculated with respect to an axis passing through the center of mass. What is the physical meaning of this?   The moment of inertia plays the role of the mass on rotational motion, so it is linked to the reluctance of the body to rotate. Given a torque, if the axis passes through the CM the angular acceleration is maximum, while it decreases increasing the distance from CM. Why does that happen?  I tried to justify it as a consequence of the distribution of mass around the CM, but I do not know if that is right.


What identifies an action-reaction pair of forces?

This is a question on a worksheet that I'm giving to a student:  A man of weight $W$ steps into the lift. The lift then moves downwards with a constant speed. If $R$ represents the force acting on the man by the lift floor, which of the following statements is/are correct? (3) $R$ and $W$ are an action-reaction pair according to Newton's third law  Why isn't this statement (3) correct?


Understanding Gauss’ Law in differential form for a point charge

I'm trying to understand: $$ \nabla \cdot \vec{E} =\frac{\rho}{\epsilon_0}.$$  But taking the divergence of the vector field renders $0$  everywhere except where we have a point charge. At that region the E field is infinite. Why is it then equal to $\frac{\rho}{\epsilon_0}$ then?  I know it's possible to understand why, without re-writing the equation?


Undefined Hamiltonian for this particular Lagrangian

So, this a question from a Phd qualifying examination. Given the following Lagrangan $$L=\frac{1}{2}\dot{q}\text{sin}^2q,$$ what is the Hamiltonian for this system? So, finding the canonical momentum $p$ and then using $H=p\dot{q} -L$, I find that it is identically zero. Now, the answer 'Zero' was a choice in the choices of answers given but the correct answer is that the Hamiltonian is undefined. I'm not sure why this should be the answer, though this is a pretty  weird dynamical system. The Euler Lagrange equations just give an identity and the Hamiltonian equations also seem rather off. The Hamiltonian equations would are $$\dot{p}=\dot{q}=0. $$ I'm hoping someone shed some light on this, it seems that any random Lagrangian doesn't constitute a dynamical system, so what I should I be looking for?


How to send an email using command line?

Here's what I have:  cat UserReport.txt | mail -s "TestSubject" "nospam@gmail.com"   It's a small file, much smaller than a picture so it should send almost instantly. Though I receive nothing. I installed mailutils but might have installed it incorrectly.   How can I send an email from a bash script?


Proof that a standard Brownian motion visits zero infinitely often at the beginning

Let $B_t, t\ge0$ be a standard Brownian motion that starts at 0. Prove that, for any $\epsilon > 0$,    $$P(\#\{t\in(0,\epsilon]\mid B_t = 0\}=\infty)=1.$$   This is a well-known fact, but surprisingly I cannot find a single proof on this site. The closest I get is , which proves the zero set of a standard Brownian motion restricted to $[0,1]$ is homeomorphic to the Cantor set. However, this proof seems to have utilised unfamiliar properties such as the ternary-expansion construction of the zero set.  Does there exist an elementary proof that only uses the familiar properties of the Brownian motion (normality, independent increments etc.)?


I don't know how to do this, when i click on a div, a class is added to an other div, so my problem is how to add event listner to the new added class.  $('div.my_class').on('click', function (e) {         e.preventDefault();         $(this).next().addClass('added_class'); });  $('div.added_class').on('click', function (e) {         e.preventDefault();         // some stuff here          $(this).prev().removeClass('added_class'); });


Short story about robots wearing out and 'dying'

I am looking for the name of a  short story, maybe from the early 1950's. I tried most famous authors without success.  Plot: all humans are extinct after a great war (decades ago). Fighting robots are rusting, wearing out, running down, etc. They try to build new robots, but fail: their giant metal claws cannot assemble the tiny parts of a new "brain". One robot tries to touch a butterfly, but crushes it. One by one they all "die".


Network profiles update button does not work on Area 51

When trying to change username or account description on any other SE site, it does not update it on Area 51.  For example, my username here is Peanut but on Area 51 it is Puzzles to Go. (don't ask)  This happens even when clicking the update on all sites button.


How Hogwarts' teachers find where Muggle-born witches and wizards live?

I've read this in  on Pottermore, and the answers in: .   We know that a member of Hogwarts' staff goes and explains to the Muggle-born that they're wizards or witches. But how do they track them? For wizards families they simply send an owl, but for Muggle-borns, how exactly do they find a specific location that a Muggle-born resides.


How to use external ST-Link to debug/program STM32F103 MCU?

I'm using STM32F103 MCU for my own project and want to use the ST-Link of STM32F411 Nucleo board for external debugging / programming purposes.  I've set the CN2 jumpers OFF and my actual question is in the pinouts of SWO (CN2). How I proceed on this is as follows:   PIN 1 (of SWO) is VDD_Target PIN 2 is SWCLK PIN 3 is GND PIN 4 is SWDIO PIN 5 is NRST PIN 6 is SWO   To the best of my knowledge, I shouldn't use all these pins above. As in, I've connected    PIN 2 to PIN 37 (or PA14) in MCU PIN 3 to GND PIN 4 to PIN 34 (or PA13) PIN 5 to PIN 7 or (RESET) in target MCU.   Not sure if I should connect SWO pin as it's set as "reserved" (Why?). Also I'm giving 3.3 V to VIN pin of MCU, means that I don't need to connect VDD (PIN 1 of stlink).  Please refer to this table I've taken from the official datasheet:     Here's the general pinout configuration of the MCU here:    I've tested "almost" everything with oscilloscope and tester and everything seems okay. What else I'm missing here? Should I do anything with BOOT0 or BOOT1 pins?


Why are there so many different ways to measure disk usage?

When I sum up the sizes of my files, I get one figure. If I run du, I get another figure. If I run du on all the files on my partition, it doesn't match what df claims is used. Why are there so many different figures for the total size of my files? Can't computers add?  Speaking of adding: when I add the “Used” and “Available” columns of df, I don't get the total figure. And that total figure is smaller than the size of my partition. And if I add up my partition sizes I don't get my disk size! What gives?


Healthy ratios for asking:answering and up:down voting

Is there a rule or guideline for a good relation between the answer to question ratio?  I mean to be a reasonable SO-user and be accepted by others. Should good SO-users give (answer) more than take (ask)?  Or is it nowadays the other way around: I should take more than give?    Is there a guideline for the ratio of upvotes to downvotes?  Is occasional downvotes, but not too many, expected of a good member of the community?


How should the phrase "thank you" be written in the following sentence?

According to prevalent formal writing style rules,    Should the phrase be in quotes (as in "thank you" or thank you)? Should T of Thank be capital? Should there be a hyphen?      They did not give him a polite "thank you."   or,     They did not give him a polite Thank-you.   or,     They did not give him a polite "Thank you."   or,     They did not give him a polite thank-you.   etc.


i can not find keys  on hp paviilon 15 azerty keyboard

i bought an hp laptop pavillon 15. the keyboard is an AZERTY keybord (image shown below) . The < and > key are normally positioned left the W key. But in this disposition are combined with ; and : keys. I can't figure out which combination can use.


Why dont I see my texture on the object?

I wanted to apply texture on some house following an tutorial, I'm sure I did all what was needed but still don't see the texture.  Here's a screenshot:


Block all ports except SSH/HTTP in ipchains and iptables

How can I block all ports except:  ssh (port 22) httpd (port 80)  using iptables and ipchains?


What does "@" mean before a string?  I saw this notation with paths:  string myfolder = @"C:\Users\";   But also with normal strings.


What pins on a nRF51822 do I connect to a STM32 programmer?

I want to be able to program a  with  but I'm not sure what pins on the actual chip I should use, and all the guides seemed to be using a different chip


Is it possible to upgrade an Orange Cool Tablet? (Android 2.3 Cortex A8)

Someone gave to me an Orange Cool Android 2.3 Tablet (it's a Brazilian brand, Model ), complaining about slowness and hang ups.  I did some research with the aim of flashing a better ROM, however this model is not well-known and I'm kind of lost among all the different ROMs and architectures, so I would appreciate if someone could just point me in the right direction...  First of all: is there any better ROM compatible with this device? These are the details reported by CPU-Z:  Model: OR-TB7800 (rk29sdk) Display: eng.koffu.20111209.175.607, 800x480  Android: 2.3.1,  Kernel architecture armv7l, version 2.6.32.27  CPU: ARM Cortex A8, 1 core, rev. r3p2, 408Mhz-1Ghz  GPU: Vendor= Vivante Corp, Renderer=GC800 core.  Total RAM: 271 MB Internal, Storage: 1GB   Second: if the answer is yes, I would appreciate some hints with regards to the recommended ROM and flash procedure (just some hints, I'll do my homework and continue from there, I promise!). On the contrary, if the answer to the above is no, is there anything that you would recommend me besides rooting the device to uninstall some bloatware (Facebook, etc.). The IPS display seems good and the tablet is as new, it would be a shame if I can't find some good use for it...  Thanks in advance for the help,


How does heat actually stay kept in the carbon molecules in the atmosphere?

We have all learned that the earth is getting heat up because of the CO2 and CO molecules absorbing heat. However, how is heat actually kept in those molecules. When photons heat them up, their electron gets excited and goes to a higher energy level; however, we know that atoms want to remain at a low energy state and they quickly drop down to a lower energy state (correct me if I am wrong here). If that is happening, then how can heat be actually kept in a carbon-monoxide or carbon-dioxide molecule?  Is it because during the day, they get heat up and remain heated because they require more time to get to a lower energy state?  Note: This is not a duplicate to the question given as a duplicate because the other question was addressed at why is one element able to absorb heat and not the others. This question, on the other hand, is focused towards how any element is able to absorb heat at all.


Reference for Introduction to Algebraic Geometry

I am currently looking to study Algebraic Geometry. As I am totally new to the subject any reference for books to follow will be helpful, thanks in advance....


I am doing my research in Functional Analysis, especially in "Generalized inverse of Linear Maps". I have come across Probability by studying only the methods or Distributions(like Binomial, poisson, normal,etc) Now I wish to study the mathematical background and intuitive way of looking on it. Can you suggest some probability text book which explains,  $\bullet$ Geometrical ideas of the Probability Distributions. May be using diagrams, graphs, etc. $\bullet$ Proofs for the distribution functions. $\bullet$ Problems with natural solutions and then generalizations Like, for a binomial distribution(how they are giving the probability mass function).


Is it possible to decrypt SSL/TLS traffic with wireshark?

I'm trying to analyze the outgoing requests of an application on my windows 10 computer, but I'm not aware of any way to capture the secret key needed to decrypt the traffic. I have used  previously, but switched because of lack of protocol support. I know the key can be captured on chrome/firefox by setting the "SSLKEYLOGFILE" enviroment variable, but this is not relevant in this case, as the application in question does not support that type of logging. Therefore my question becomes: Is there a general method of capturing the secret key needed to decrypt SSL/TSL traffic in Wireshark, that can be applied regardless of application? Answer There is no general way of capturing the secret key needed to decrypt SSL/TSL messages, but one can use a proxy such as  to achieve equivalent results in most cases, hence I found the "general method" I was looking for.


Cast light from one Object onto another Object

I want the sun to glow and cast sunshine at the earth. I have set the surface of the sun to emission and 1000 in strength, but the earth is still in the dark when in rendered mode. Does anyone have a suggestion?   I am using Blender 2.8 and Cycles.


How do I execute a function every 3 months?

What's the proper way to execute a function every 3 months? Watchdog variables don't seem to be available after a certain time. I could create another table to insert the execute function date to compare, but it doesn't seem to be the best approach.  The functionality of such functions are:   Send an eMail Tag an inactive user


why in a covalent bond are "the bonded electrons are in a lower energy state than if the individual atoms held them at the same proximity"?  Also is it correct that " I think when you start pushing two molecules together orbitals between the two start overlapping - forming covalent bonds?"  Essentially why are covalent bonds made? A QM description would be nice but I don't really know QM so a somewhat reduced-to-classical explanation of the QM explanation would also be nice!


Is there a way or some sort of library that lets you compare string easily? It's difficult to explain, but here's an example:  str = "Hi World!"  if str == "(Hello | Hi) World!":    print("You said either 'Hi World!' or 'Hello World!'")   In this example (of course, it wouldn't actually work,) if the string is either 'Hi World!' or 'Hello World!,' then it would return True. I am pretty sure that there's a name for this, but I am not sure what it is.


I installed Qgis Master  64 bits on win7 64 16gb of ram and I am unable to locate the georeferencer. All other Gdal application are there, Gdal is active, but no georeferencer. I tried yesterday, tried also reinstall and also I anstalled again today. No georeferencer at all. Any Ideas?


Capture object properties to use in a Cycles material

I made a simple material that uses the 'object info' location to drive the color of the object. But when i animate my object now it, obviously, changes color while the objects moves through space.  How can i set the color to a fixed value using the INITIAL location of the Object info node?   Tnx RDG


My teacher said  $1\over n$ is not element of $\ell^1$ .I know if $\sum_{i=1}^\infty|{1\over n}| < \infty$ , it is element of $\ell^1$. Let's consider the series $(x_i)=(1,{1\over 2}, {1\over 3} , . . .)$ .It seems to me  if i sum  all the component of the series up , it will be smaller than $2$  so it is finite.       Is it right ? Thank you for your help.


I'm new to asynchronous programming, I always have difficulty in understanding UI thread lifecycle. Let's said we work on a webform, and in the page load method, we made an asynchronous call as:  private SynchronizationContext uiCtx; ... protected void Page_Load(object sender, EventArgs e) {    if (!this.IsPostBack)      {        ...         WebRequest req = WebRequest.Create("http://www.google.com/#q=weather");        // Must make this call on the UI thread        uiCtx = SynchronizationContext.Current;        AsyncCallback callback = delegate(IAsyncResult iar)                               {                                  WebResponse resp = req.EndGetResponse(iar);                                  ProcessResponse(resp);                               };       req.BeginGetResponse(callback, null);       ...    } }  private void ProcessResponse(WebResponse resp) {     // This code is on the threadpool thread     StreamReader reader = new StreamReader(resp.GetResponseStream());     SendOrPostCallback callback = delegate     {        // this runs on the UI thread        UpdateUI(reader.ReadToEnd());       // must Dispose reader here as this code runs async       reader.Dispose();     };     uiCtx.Post(callback, null); }   I can get the idea that we want a work thread to get the job done and update UI, so we use SynchronizationContext to move work back onto the UI thread.  I have the following questions:  Q1-Why the worker thread is not supposed to update UI directly, is any particular reasons for that?  Q2-We know that for asynchronous programming model, the worker threads in the thread pool are background threads. Let's assume the async call takes 3 seconds to get the result back, but the main thread will finish quickly after the page_load, if UI thread has already finished, it cannot execute the job passed from the worker thread, can it? So how can we control the UI thread to let it not finishing quickly?  Q3-if the worker thread finishes first, now the job will be moved back to UI thread, let's suppose that UI thread is also executing something else, so does it mean that the UI thread will get its job done first then start to execute the work passed from the worker thread?


How can I draw sphere cut by plane by using `tikz-3dplot`?

Based on the equation at , I use another way to draw. My code  \documentclass[border=2mm,12pt,tikz]{standalone} \usepackage{tikz-3dplot-circleofsphere} \usepackage{fouriernc} \makeatletter \tikzset{     reuse path/.code={\pgfsyssoftpath@setcurrentpath{#1}} } \tikzset{even odd clip/.code={\pgfseteorule},     protect/.code={         \clip[overlay,even odd clip,reuse path=#1]         (-6383.99999pt,-6383.99999pt) rectangle (6383.99999pt,6383.99999pt); }} \makeatother \begin{document}     \tdplotsetmaincoords{70}{80}     \begin{tikzpicture}[tdplot_main_coords,scale=1,line join = round, line cap = round,declare function={R=5;r=4;h=sqrt(R^2 - r^2);myx= 2; myy=sqrt(R*R-h*h- myx*myx); k=-1; Angle=k*acos(r/R);}]     \path     (0,0,0) coordinate (O)     (0,0,k*h) coordinate (H)     (myx,myy,k*h) coordinate (M)     ;     \begin{scope}     \draw[save path=\sphere,thick,tdplot_screen_coords] (O) circle (R);     \end{scope}     \begin{scope} [canvas is xy plane at z=k*h]     \path[save path=\rectA] (-R,-R) rectangle (R,R);     \begin{scope}     \clip[use path=\sphere];     \draw[dashed,use path=\rectA];     \end{scope}     \tikzset{protect=\sphere}     \draw[thick,use path=\rectA];     \end{scope}         \begin{scope}[shift={(O)}]     \tdplotCsDrawLatCircle[blue, thick]{R}{{Angle}}     \end{scope}     \foreach \p in {H,M,O}     {\draw[fill=black] (\p) circle (1.5pt);}     \foreach \p/\g in {M/90,O/-135,H/30}     {\path (\p)+(\g:3mm) node{$\p$}; }     \draw[dashed] (O) -- (H) -- (M) --cycle;     \end{tikzpicture} \end{document}   I get     How can I get like this picture by using \usepackage{tikz-3dplot} to get result


Why do we rule out orbits with non-constructive interference for the atom?

It is said that de Broglie explained the quantization of Bohr's orbitals with the idea of the "matter wave" of the electron being forced to have orbits where it can interfere constructively with itself as a standing wave on a circle.  My question is: what is the reason why the non-constructive orbits would be "forbidden"? Why can't we accept a situation where the wave can travel on the orbit with irregular superpositions or maybe totally destructive interference of the wave? (Illustration from )


I set up a mail server, when I give Gmail to send test message is marked as spam  system: ubuntu + postfix + dkim + dk + spf + ptr  This is the message header  Delivered-To: test@gmail.com Received: by 10.229.145.65 with SMTP id c1csp254265qcv;         Tue, 15 Jul 2014 21:45:43 -0700 (PDT) X-Received: by 10.70.33.102 with SMTP id q6mr27519891pdi.39.1405485942641;         Tue, 15 Jul 2014 21:45:42 -0700 (PDT) Return-Path: <root@myservice.com> Received: from myservice.com (myservice.com. [192.157.254.126])         by mx.google.com with ESMTP id gx11si9099827pbd.62.2014.07.15.21.45.41         for <test@gmail.com>;         Tue, 15 Jul 2014 21:45:42 -0700 (PDT) Received-SPF: pass (google.com: domain of root@myservice.com designates 192.157.254.126 as permitted sender) client-ip=192.157.254.126; Authentication-Results: mx.google.com;        spf=pass (google.com: domain of root@myservice.com designates 192.157.254.126 as permitted sender) smtp.mail=root@myservice.com;        dkim=pass header.i=@myservice.com Received: from myservice.com (localhost.localdomain [127.0.0.1])     by myservice.com (Postfix) with ESMTP id 45F265A2061F     for <test@gmail.com>; Wed, 16 Jul 2014 00:45:40 -0400 (EDT) DomainKey-Signature: a=rsa-sha1; s=mail; d=myservice.com; c=simple; q=dns;     b=iT7uvHDnQlxwHLtoPLuM7MA4IvWuzWCtWXALDWuSpDOQnMnMjFCfPwzYF3dOPyPGn     1fMqWylOiHoimUT+EAOwLFxdW0/xvcmF319dhAj6KNsA+Dx61an1f4S54xKrxKbN0h6     D6XXNPTcMbBoMOnzayzCUoIgpMoNZLh5w9+osXs= DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=myservice.com; s=mail;     t=1405485940; bh=zm1Rb6iYct2ei4UtHDsR95MNcq4=;     h=Date:To:From:Reply-To:Subject:Message-ID:List-Unsubscribe:      MIME-Version:Content-Type:Content-Transfer-Encoding;     b=hD/6T0LxzUi8CtW0JccGfeByyN+jgLYoJ2Dz40+6abi+/F749mHwL9MtIn/Ax4SjA      KNZK8od0qRO9RR5tRv4vYh53oAKqVDJyc79Uv/wGwI/4rBYMI20oASE5Gw15icB7j2      fjZ9IM3COYVLnIOvzV7D1PAAHdUtEGp/g0ZKOjYI= Date: Wed, 16 Jul 2014 12:45:40 +0800 To: h271299921 <test@gmail.com> From: root <root@myservice.com> Reply-To: no-reply@myservice.com Subject: this is my email Message-ID: <5ec8f7d42180e6aa8874388570847249@myservice.com> X-Priority: 3 X-YarnBlaster: bulk List-Unsubscribe: <https://www.myservice.com/?mail=mailinglist/unsubscribe_token/1405485940ZHoxUEtySG9acG9VK3c4aWNlR3R6WTl5R2txamR4SUxVK0lYR2E5VFNHVT0uLjE0MDUzNTczODA=> MIME-Version: 1.0 Content-Type: multipart/alternative boundary="b1_5ec8f7d42180e6aa8874388570847249" Content-Transfer-Encoding: 8bit    is my test result using mail-tester.com.


Scroll too much and you won't be able to click the blue buttons

Using Chrome on my Windows 10 machine.  This behavior was noticed while reviewing Latest Answers, First Posts, Low Quality Posts.  Tested this in two communities (Stack Overflow and PM Stack Exchange*).  Scrolling to the bottom of the page results in not being able to click any of the blue buttons.      I think that's a bug, but I might be wrong.  *In PM Stack Exchange i couldn't test LQP.


How do I show that identity element of scalar multiplication does not follow from other axioms of the vector spaces?

Our professor gave us some practice problems, which are without solutions. One of them is to prove that the property of identity element of scalar multiplication: $1v=v$, where $1$ denotes the multiplicative identity in $\mathbb{F}$, does not follow from the other axioms of vector space. The only idea that I have is to try to find an example of a vector space that satisfies all the properties of vector space except of this one, but I have trouble finding it. I am also wondering if there is another, more elegant way, to show this.


Determinant identity: $\det M \det N = \det M_{ii} \det M_{jj} - \det M_{ij}\det M_{ji}$

Let $M$ be a (real) $n \times n$ matrix. For $1 \leq i, j \leq n$ we denote by $M_{ij}$ the $(n-1) \times (n-1)$ matrix that we get when the $i$th row and $j$th column of $M$ are removed. Now, consider fixed $i$ and $j$ with $i\neq j$. Let $N$ be the $(n-2) \times (n-2)$ matrix that we get when removing both the $i$th and $j$th row and the $i$th and $j$th column from $M$. Then the following identity holds: $$ \det M \det N = \det M_{ii}\det M_{jj} - \det M_{ij} \det M_{ji}. $$  We were able to prove this looking at all different terms that can occur on both sides when evaluating the determinant as a sum of $n!$ terms (for instance, terms containing $a_{ji}a_{ij}$ are counted both $1$ time in the LHS and $1$ time in the RHS).  We are looking for a slick proof that does not involve writing out the determinant.  Any suggestions or approaches to this problem are appreciated!


train_accuracy and train_loss are not consistent in binary classification

I am training a binary classification algorithm in Keras, the loss is cross-entropy model.compile(loss='binary_crossentropy', optimizer=optimizer, metrics=['accuracy']). What confused me most is that my train_acc and train_loss are not consistent. Sometimes train_acc is 1 but train_loss is near 3.  If I think right, if train_accuracy is 1, train_loss should not be greater than 0.693, which is the cross-entropy loss for all predictions are 0.5.  I have checked the data, the label is 0 for false and 1 for true. The other dataset works well with the same code. What can be the possible reason for this uncommon problem? or am I wrong?   I uploaded a picture for illustration. But it does not show up, maybe a bug.


Proving which Quantum Mechanics interpretation is correct

Let's assume that the existence of gravitons is theoretically proven or they are detected by LHC could one interpretaion be proven correct?


How to find an invisible window in Ubuntu 20.04?

Sometimes when I open files in LibreOffice, they open in minimized windows that I cannot find anywhere on my screen. How can I find the windows and resize them? The files still appear if I click on the LibreOffice icon in the dock (see attached screenshot; file names pixellated for privacy), but no thumbnail appears and clicking on the minimized file does not cause the file to appear or have any other apparent result.  Notes: (1) This started happening recently. I don't know if I made a change that caused it, if it was related to an update, or if it has some other cause. (2) It happens primarily when I open a file from the web in LibreOffice, by clicking on the "open in LibreOffice" button in the download popup in Firefox. I'm not sure whether it happens under other circumstances as well. (3) Restarting Ubuntu fixes the problem, in that I can then open the file in question to a visible window. But it is not a permanent solution, as the problem recurs with other files. Thanks for any suggestions.


My shell can't find ping.  $ ping -bash: ping: command not found $ uname -r 14.5.0 $ echo $PATH /usr/local/bin:/usr/bin:/bin:/Users/alex/.cabal/bin $ which ping $    However, man ping works and displays the manual page for ping.  Is it named something different on OSX?  Or is there an alternative I should use?


Please add TeX rendering in titles on the iOS app

TeX support works fine in question and answer bodies, and comments can be rendered manually by tapping and selecting Render MathJax. See related question .  However, the titles are not rendered which makes the browsing experience less than perfect. See screenshot below.   Are there any plans to implement MathJax support in titles?  (I'm running Stack Exhange iOS App Version 1.0.0 on an iPhone 4S with iOS 7.1.1)    EDIT: I was just informed about  asking for the same functionality for the Android app. I guess I shouldn't hope too much then...


When Eigenfunctions/Wavefunctions are real?

When the Hamiltonian is Hermitian(i,e. beyond the effective mass approximation), generally under which conditions the eigenfunctions/wavefunctions are real? What happens in 1D case like the finite quantum well symmetric with respect to the origin might be an example. any general rule? further generalization into 2D case?


Is there a way to determine what packages or libraries should be loaded to support an executable?

There is an executable I want to install on a computer that I can't recompile that wasn't built as a package, and I want to download the libraries it requires to run them.  Below is part of the output from running ldd on it  libpango-1.0.so.0 => /usr/lib/i386-linux-gnu/libpango-1.0.so.0 (0xb702f000) libcairo.so.2 => /usr/lib/i386-linux-gnu/libcairo.so.2 (0xb6f64000) libatk-1.0.so.0 => /usr/lib/i386-linux-gnu/libatk-1.0.so.0 (0xb6f43000) libsqlite3.so.0 => /usr/lib/i386-linux-gnu/libsqlite3.so.0 (0xb6e9e000) libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb6cf4000) /lib/ld-linux.so.2 (0xb786e000) libxcb.so.1 => /usr/lib/i386-linux-gnu/libxcb.so.1 (0xb6cd3000) libgio-2.0.so.0 => /usr/lib/i386-linux-gnu/libgio-2.0.so.0 (0xb6b7c000) libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb6b4f000)   Is there a tool that can use this information to select which packages should be downloaded or better yet extract only the libraries listed and their dependencies, in order to minimize the disk usage? The system is running on a headless VM and the program will be displayed via VNC.  Although I suspect that a full blown graphics desktop will supply most of the libraries needed I want to download only the required libraries, their dependencies and just enough of the X Windows package to support it.


I prepare some backup slides at the end of my presentation. I don't want them to be counted in terms of pages, which is displayed at the footer of each slide.  Does anyone know how to do that?


Story set on ocean planet, featuring floating islands

I remember they imported dolphins but not sharks for some reason I don't remember. The story involved a spaceship crewman, I think he was in trouble for some reason. I think there were some planet citizens revolting against an interstellar government and the crewman ended up getting tied up with the rebels somehow.  I hope I'm not confusing two stories in my head, but I can't say for certain that I'm not.


Possible Duplicate:          Tired of the unstable Win 7 64bit I got when I purchased my laptop (it was impossible to find a powerful laptop with Win 7 32 bits).  Can I legally downgrade from Win 7 64 bits to Win 7 32 bits? The key/activation will work?    Details: Everybody comments about the stability of Win 64.  Well, I made a mistake. Is not that Win 64 is unstable (it never crashed). It just works very poor. It feels choppy. Compiling a large program (on an old AMD desktop PC) takes 1.5 seconds on Win 32. The same program compiles on Win 64 in 4-5 seconds in this new and "powerful" laptop. All programs are less responsive.


Cauchy Continuous function is continuous??

Suppose $X$ and $Y$ be metric spaces.Let $f:X\to Y$ be function which is Cauchy Continuous.Show that $f$ is continuous.  Cauchy Continuity:Let $X$ and $Y$ be metric spaces, and let $f$ be a function from $X$ to $Y$. Then $f$ is Cauchy-continuous if and only if, given any Cauchy sequence $<x_n>$ in X, the sequence $<f(x_n)>$  is a Cauchy sequence in Y.  I am planning to use sequential definition of Continuity but I am unable to produce a neat proof without completeness.Give me some idea!


I need to know what is this beautiful font

I would love to use this font, it really looks great but I have no idea which one it is. Could someone guess which font is used to write this  ? Any help is precious for me.


Can background starting GP also be used to buy stuff before you start your campaign?

As an alternative to your class and background starting equipment you can roll to see how much GP you have and you can "buy" your equipment while making your character.  Does the same "buying" rule apply without taking that option but instead with the GP given to you through your background?


Does the grappled creature have to be the one that is moved in order to force the grapple to end, or can the grappler be the one that is moved?

The description of the  condition reads, in part:     The condition also ends if an effect removes the grappled creature   from the reach of the grappler or grappling effect, such as when a   creature is hurled away by the thunderwave spell.   For the grappled condition to end, does the grappled creature have to be the one that is moved, or can the grappling creature be the one that is moved?  For example, could a College of Swords bard's * be used to push the grappling creature away, ending the grapple? Or would the bard have to attack the grappled creature with the Mobile Flourish in order to end the grapple in this way?  *Access to Xanathar's Guide to Everything in D&D Beyond is required for this link to work.


How to replace icing sugar and glucose in a cake icing?

I love cooking especially sweets but I'm not a professional.  This time I tried to make ready-to-roll icing for the first time to decorate cupcakes but it was horrible (I used crystallized sugar instead of icing sugar which I can't find and another kind of syrup instead of liquid glucose which i can't find either) so the dough was barely holding together.  So here is my question: What can I replace liquid glucose and icing sugar with?  PS. I live in a country where it is hard to find this kind of ingredients.


Expected value of a lognormal distribution

I'm having trouble deriving an expression for the expected value for the lognormal distribution. I've tried the standard approach of computing $\int_{\mathbb{R^+}}xf_X(x)\,\mathrm{d}x$ for non-negative variables:     $$\int_0^{\infty} \frac{1}{\sigma\sqrt{2\pi}}\exp\left(-\frac{1}{2}\left(\frac{\ln(y)-\mu}{\sigma}\right)^2\right)\,\mathrm{d}y$$   which is beyond me.  I've tried looking into moment generating functions, of which my knowledge is lacking, but stumbled upon a question claiming (and proving) that there is no such function. ()  I've looked at a similar question (same, really) (), but I'm afraid I don't undestand the accepted answer. It seems to relate the moment generating function of the normal distribution to the lognormal one, which didn't exist?  So how does one extract the expected value for the lognormal distribution, given the moment generating function of another(/the normal) distribution?  Bonus question: Is this last method the most natural approach (yes/no), or is it possible to find the expected value using the first approach with some clever trick (yes/no).


Testing for an empty array object in JSON with jQuery

I have a request that returns a JSON object with a single property which is an array.  How can I test if the array is empty?  With jQuery code like:   $.getJSON(             jsonUrl,             function(data) {                 if (data.RoleOwners == [ ]) {                     $('
' + noRoleOwnersText + '
').appendTo("#roleOwnersTable tbody");                     return;                 }                 $.each(data.RoleOwners, function(i, roleOwner) {                     var tblRow =                     "
"                     + "" + roleOwner.FirstName + "	"                     + "" + roleOwner.LastName + "	"                     + "
"                     $(tblRow).appendTo("#roleOwnersTable tbody");                 });   what can I put instead of if(data.RoleOwners == [ ]) to test if the RoleOwners is an empty array?  Thanks, Matt


I know that Umlaute have to be avoided in BibTeX and I am using {\"a}, in fact I use BibDesk and it produces the correct LaTeX code. The sorting works for small characters, but I have one name starting with Ö. Although I use {{\.I}nci {\"O}zkarag{\"o}z}, the item is sorted after all authors with O. What can I do?  Apart from this Ø should be sorted last, but is sorted in the middle of O.  Edit: I want to have the German ordering, that is, Ö should be sorted as Oe not as O. The Ø-sorting is Danish.


The energy stored in a capacitor is $$ U= \dfrac{1}{2} CV^2 $$    So when I have a 1F supercap charged to 1V the energy is 0.5 J. When I connect a second supercap, also 1F in parallel the charge will distribute and the voltage will halve. Then    $$ U = \dfrac{1}{2} 2F (0.5V)^2 = 0.25 J $$  What happened to the other 0.25 J?


Asymptotic behaviour of the riemannian metric in polar coordinates

I'm studying the section 7 ("Local Geometry in Constant Curvature) of chapter 5 of "Riemannian Geometry" written by Petersen.   At the beginning there is a Lemma which says how behaves the metric $g$ of a Riemannian manifold $M$ around a point $p$ in normal coordinates: $$ g_{ij} = \delta_{ij} + O(r^2). $$ where $r$ is the distance from $p$.  Then the book says in polar coordinates around $p$ any Riemannian metric has the form: $$ g = dr^2 + g_r $$ where $g_r$ is a metric on $S^{n-1}$.  We know also that the Euclidean metric looks like: $$ \delta_{ij} = dr^2 + r^2 ds^2_{n-1}, $$ where $ds^2_{n-1}$ is the canonical metric on $S^{n-1}$. Since these two metrics agrees up to the first order (thanks to the Lemma), we have that: $$ \lim_{r \rightarrow 0}g_r = \lim_{r \rightarrow 0}(r^2 ds^2_{n-1}) = 0 $$ and  $$ \lim_{r \rightarrow 0}\Big(\partial_rg_r - \frac{2}{r}g_r\Big) = \lim_{r \rightarrow 0}\Big(\partial_r(r^2 ds^2_{n-1})- \frac{2}{r}(r^2 ds^2_{n-1})\Big) = 0. $$  Everything is quite clear so far. But then the book says that since      $$ \partial_rg_r = 2\text{Hess}r$$   then we get  $$ \lim_{r \rightarrow 0}\Big(\text{Hess}r - \frac{1}{r}g_{r}\Big) = 0. $$  I don't understand why $\partial_rg_r = 2\text{Hess}r$. Any help would be really appreciated.  Another question: in the next theorem Petersen talks about space forms $S^n_k$. I know that they should be complete Riemannian manifold of dimnsion $n$ and constant sectional curvature $k$, but do you know where does he define them? What is $sn_k$?


Can deleting an answer to a question result in tumbleweed being awarded

I deleted an answer to one of my  after discovering that the answer I proposed didn't work.  My next update reported that I'd been awarded the tumbleweed badge, so I assume that was the question that earned it for me.  Giving the badge for a question that did have an answer strikes me as a bit odd though, and I'm wondering it it's a bug.


Solving a question by mathematical induction

Question : Prove that $$ \sum_{k=1}^n\frac{1}{\sqrt{k}}\le 2\sqrt{n}-1 $$ for all positive integers $n$.  I've been thinking a solution for this question for hours but still can't solve it.


Animation not running in presentation made using beamer class

I wish to include an .gif animation in my latex beamer presentation. Based on my reading from various sources, including this website, what I understood was that I need to convert .gif into a series of .jpg images. I have converted .gif into 10 .jpg images titled from foo-1.jpg to foo-10.jpg. I have put all these images in the same folder where I have my template file and other images which are used subsequently. Next, I am using the below commands to include it as an animation   \begin{frame}     \animategraphics{12}{foo-}{0}{10} \end{frame}   On doing this, I get no error, but the slide is shown as given in the attached image.   As it can be clearly seen, the animation does not fit on the slide, nor is it showing a set of moving images like a .gif file. What shall I do to get the animation nicely on the slide. I am ready to share all the 10 images if needed as a MWE, but please help me to overcome this problem.


Isomorphism between $GL_2(\mathbb{F}_2)$ and $S_3$

The question is to show that $GL_2(\mathbb{F}_2)$ and $S_3$ are isomorphic where $S_3$ is the symmetric group of $\{1, 2, 3\}$ and the group operation is composition.  I have listed all the elements in both groups (there are $6$) and also classified them (self inverse, identity etc.). I have an idea as to which elements correspond to each other but if I specifically define the group homomorphism for each element it will take too long to prove it actually is a homomorphism.   Is there any other way to define a homomorphism between these two groups? I have seen similar questions but they were on permutation matrices which is not the case in this question so I am not exactly sure what to do.


What other unprovable theorems are there?

Gödel's incompleteness theorem presents us with the possibility of having theorems that are neither provable nor disprovable in a given axiomatic set. Already we have the continuum hypothesis which has this property (at least in the axioms we deal with in modern mathematics today).  Are there other such mathematical statements that have been "found"?


I think that f(x,y) is continuous at (0,0) and has partial order derivatives but is also differentiable at (0,0) because curve is smooth,ie-  answer is option D ? Am i correct ?


Upgraded to 16.04 LTS server but still have 3.13.0-101 kernel

I ran do-release-upgrade on one of my 14.04 LTS servers, got no errors and it runs, but I notice that it still has the 3.13.0-101 kernel (and only that version, all earlier kernels and all header files were deleted). A 16.04 LTS server instance on AWS has kernel version 4.4.0-47. Did something go wrong on my local server upgrade? How do I get the v4 kernel, or is that not a problem?


How do I show that a two-qubit state is an entangled state?

The Bell state $|\Phi^{+}\rangle = \frac{1}{\sqrt{2}}(|00\rangle + |11\rangle )$ is an entangled state. But why is that the case? How do I mathematically prove that?


Why is menstruation in wild animals not a disadvantage to organismal survival?

When I watch wilderness specials for more than a few minutes, I notice a familiar pattern: predators are depicted as being alerted by the scent of blood. Wounded animals seem to make the best prey and predators seem to have a heightened awareness for the smell of blood.   It would seem that it would then be a disadvantage to evolutionary survival for female organisms to menstruate. How do females of a species not attract predators to the signal of menstrual blood?   Do female organisms in the wild actually menstruate? If so, is there a difference in the composition of menses that does not alert predators? How would this not at the very least give predators an idea of the general vicinity of the female?  If wild animals excrete their menses, do they have ways in which they are able to mask the evidence of its release or are they somehow internalizing the tissue so that they are not released?  If female organisms in the wild do menstruate, then why is this not a survival disadvantage?


How can I create a bootable DVD iso from a USB drive?

There seems to be a lot of questions / answers about doing the reverse, but not as much info for USB -> DVD.  Problem  I created a bootable USB drive using YUMI.  The USB drive is working great, and contains the following:   Linux Mint 13  Linux Mint Debian  Debian 6   Ubuntu 12.04.1  Fedora 17    A bit of a mix of DVD and Live versions.  I have a spindle of DVD+R DL blank DVD's. I would like to create a bootable .iso from this USB drive so I can burn multiple copies of it to pass around to friends!  I've created an iso using Folder2ISO, but it coastered my DVD because it wasn't bootable. I don't really want to waste a whole spindle!   How would you go about doing such a thing?


Cyclic Groups of Infinite and Finite order

If a cyclic group has an element of infinite order , how many elements of finite order does it have ?


– Schematic created using   Ok so I have a guitar circuit here, 2 pickups, each one has a on/off switch. I then run them into a master vol and a master tone. From there I run it into a effects pedal built in that requires 9 volt power. Each of the on/off switches has a 6V LED in it that is separate. I'm trying to figure out What I can do to power the pedal and both LEDs from same source. here is a link to the switch with the LEDS


I'm reading input from console, but every time i get a different string. E.g. i'm entering "Bob", then checking if it's really "Bob", and it's not. Also, i checked length - they are identical. Am i doing it wrong?  import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader;  public class Main {      public static void main(String[] args) {         BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));         System.out.print("Please enter username: ");         String username = null;         try {             username = reader.readLine();         } catch (IOException e) {             e.printStackTrace();         }          if(username == "Bob")             System.out.println("yes");         else             System.out.println("not");          System.out.println(username.length());         System.out.println("Bob".length());     } }


Why  is the set $\{ (z_1,z_2,z_3) \in \mathbb C^3:z_1^2 +z_2^2+z_3^2=1 \}$ not compact in the Euclidean topology?   If we consider $\mathbb C^3$ as $\mathbb R^6$ and $z_n=x_n+iy_n \text{(n=1,2,3)}$ then I think the set will become closed and it is already bounded . Although why it is not compact?  Please someone help..  Thank you..


About the parity of the product $(a_1-1)(a_2-2)\cdots(a_n-n)$

An exercise from Chapter 20 of "How to Think Like a Mathematician" by Kevin Houston:     Let $n$ be an odd positive integer. Let $(a_1,a_2,\dots,a_n)$ be an arbitrary arrangement (i.e., permutation) of $(1,2,\dots,n)$. Prove that the product $(a_1-1)(a_2-2)\cdots(a_n-n)$ is even.   For example, for $n = 3$, we can have $(a_1, a_2, \dots, a_n) = (3, 1, 2)$, so this yields that $(3-1)(2-1)(1-2)$ is even.  Would the following be considered a full solution?  Each even an has to be paired with a ($a_n$ -odd) in order for each even an to become odd. However after pairing them we have one -odd left as there is one more odd than even in the set $(1,2,\dots,n)$ where $n$ is odd. This must be paired with a odd number in a bracket. As odd-odd is even (the proof of this is trivial), then one of the bracket must be even so the product is even.  Would THIS solution be considered full?


How can I show that $f$ must be zero if $\int fg$ is always zero?

Let $f(x)$ be continuous on $[a,b]$ and suppose $\int_a^b f(x)g(x)dx = 0$ for every continuous function $g$ on $[a,b]$. Prove that $f(x)=0$ on $[a,b]$.   I understand that $f(x)$ must be zero otherwise the integral can't possibly be zero for all possible $g$. But, I am not sure how to approach this systematically. Any suggestions would be appreciated. Thanks!


How to fetch site information with php without crashing?

I tried to get the site information  with the command file_get_contents. But my output is meaningless?  Output results are as follows     �\�-]���[sי�{?U�z������A9;Nƻ�W�/{�R)HB$b��e9I�XJ������ŶF��D�����%�yW�8w7A�����ի�z�{>\����N��a]��4��F�ݭ��F�Yߪ^�q���޽\�._����/����\<�����K�q����t�X��3����������ꥰ��ݝN㰷�q��}�n���v������W�^o��������K�vv[V�׭�v�;��+�   Used command:  <?php  $data = file_get_contents('http://www.tsetmc.com/Loader.aspx?ParTree=15');  echo $data;  ?>


Need help finding the flaw to the proof that $(a+b)\mathrm {mod} m = a\mathrm {mod} m + b \mathrm {mod} m $

Let $a,b \in \mathbb {Z} $ and let $m$ be an integer greater than $2$. I found a counterexample to the equation  $$(a+b)\mathrm {mod} m = a\mathrm {mod} m + b \mathrm {mod} m $$  where $m>2$. But that was only after I thought I had proven that the equation does hold, so I was wondering if someone could point out to me where the flaw is in the following.  If we divide $a $ and $b $ by $m $, then we have by the division algorithm  $$a=mc+x $$ $$b=md+y $$  Adding the equations together renders  $$a+b=me+(x+y) $$  And since $a\mathrm {mod} m + b \mathrm {mod} m= x+y $, then from the third equation, it seemes that the proposition holds.


Why a caret (^) and dollar sign ($) were chosen for beginning/end of line in regex?

To clarify, this isn't a question about what a caret (^) or a dollar sign ($) does in a regular expression. In modern keyboards with QWERTY layout, ^ comes after $ (i.e., ^ appears above the number 6 and $ above 4), so I always have a moment of hand-eye discoordination when I use them like ^foobar$. So I was curious why, historically, the caret and dollar sign were chosen to match the beginning/end of a line because it would be more intuitive if they were reversed. Perhaps they had a different keyboard layout back then? Apparently, the reason ESC was chosen to change mode in vi was that it made sense for Bill Joy's keyboard: .


My machine works in little endian. I have to read using C++ std::ios::binary some files with big endian encoding. Is there any standard and fast way for doing it? For the moment, after having read raw data I do the following:  (reading a double)  char raw [8]; double d = 0; //maybe initialization is not needed file.read(raw,8); //4 for an int for(int k = 0; k < 8; k++) {     memcpy((void *)(((char *)(&d))+k), (const void *)(raw+j+7-k), 1); }   (reading an integer)  char raw [4]; file.read(raw,4); //4 for an int int i = (raw[j] << 24) | (raw[j+1] << 16) | (raw[j+2] << 8) | raw[j+3];


Why is graviton not found yet? Newton said gravity pulls us, Einstein said space is bent and it pushes us, hawking predicts the existence of graviton and 'hawking radiation'. How far are we from knowing every tits and bits of gravity? Is graviton real or just imagination?


Insert Picture into SQL Server 2005 Image Field using only SQL

Using SQL Server 2005 and Management Studio how do I insert a picture into an Image type column of a table?     Most importantly how do I verify if it is there?


Convergence/Divergence of infinite series $\sum_{n=1}^{\infty} \frac{(\sin n+2)^n}{n3^n}$

$$ \sum_{n=1}^{\infty} \frac{(\sin n+2)^n}{n3^n}$$  Does it converge or diverge?   Can we have a rigorous proof that is not probabilistic?   For reference, this question is supposedly a mix of real analysis and calculus.


Insert today's date as a value in Google Sheets

I have a Google Sheets where I store customers details and the date of the last time I contacted or was contacted by this customer:  Customer name   |   Last contact date Bob             |   2016/01/30 John            |   2016/02/16   I have to update the Last contact date cell very often.  Is there a keyboard shortcut to replace the current cell's content with today's date? Or anything faster than looking at my calendar and typing it.  Obviously, =TODAY() is not a solution because it would change the date all the time.    Note: Not a duplicate of , which indeed has a solution that partly contains the answer to the present question, but is 1) Taken from a radically opposed point of view 2) About timestamps, not dates.


Prolly is given this definition at :     Clipped pronunciation of probably.   I was reading an interesting article today that  from 1947 and that surprised me. Unfortunately, I wasn't able to find a listed source for the claim. So how old is prolly?


1. What will happen when upgrading Ubuntu 17.10 with encrypted /home to Ubuntu 18.04?    Other base system changes since 16.04 LTS:  The installer no longer offers the encrypted home option using ecryptfs-utils. It is recommended to use full-disk encryption instead for this release.   2. Will 18.04 be able to use encrypted  (ecryptfs) /home ?  edit: 3 is now a standalone


Find composition series of Αrtinian ring, that is finite dimensional vector space

I am trying to solve the following problem, so some help would be appreciated. Prove that the ring $R=k[t^2,t^3]/(t^4)$ is Artinian and find a composition series for the ring. Where $k$ is a field and the ring $k[t^2,t^3]$ is defined as the set $\{f(t^2,t^3)|f \in k[x,y]\}$ with the obvious ring structure. So for the first part I noticed that, $R= \mathrm{span}_k([1],[t],[t^2],[t^3])$, considering $R$ as a $k$ vector space. An ideal $\mathfrak{a} \unlhd R$ is a $k$ vector subspace, considering considering $R$ as a $k$ vector space. So a descending chain of ideals,is a descending chain of vector subspaces which   it has to stabilize since R is finite dimensional. This I think proves that $R$ is Artinian. For the second part, I don't now how to proceed. I thought that somehow I would manipulate a chain of vector subspaces into a composition series of ideals, but I don't see a reasonable way to do so. On second thought, I tried to manipulate the ring $$\frac{k[x,y,z]}{(x-z^2,y-z^3,z^4)} \simeq R$$ but it seems even more complicated.  Putting the above problem in a broader context I would like to introduce my question: Let the ring $R$ be a $k$ algebra, such that $R$ is finite dimensional $k$ vector space and thus a Artinian ring. Is there a method to find a composition series of ideals for the ring $R$?


Can Freestyle draw lines when an object is behind a transparent plane?

Can Freestyle draw lines when an object is behind a transparent plane (or any other transparent object)? The render below shows the issue, the freestyle lines that should be drawn on lower arm and hand don't get drawn.


Ive read through the cost reduction handbook and a few other locations on reducing the cost of an item during item creation.   Using my currently available cost reductions  25% extraordinary Artisan 10% apprentice  I'm seeing that the initial thought of application is an oder to reduction.   Item price 10,000G  10,000*0.50=5,000  (1/2 base price to craft)  Then I'm told the reductions apply to the craft price?  Extraordinary Artisan says   Benefit  When determining the gold  piece cost in raw materials  you need to craft any item,  reduce the base price by 25%.   Does it mean the base price of the item itself?  Eg 10,000*0.75=7,500   Or does it mean off the craft cost.  Eg 5,000*0.75= 3,750   Is the crafting really additive?    (5000−((5000/100)*25)=3750) 3750-((3750/100)*10)= 3,375  Or   is it accumulative with the original reduction.  5,000-((5,000/100)*35)=3,250  If the former, in what order do you apply these reductions?  Does the cost change if you apply them differently?  If you do this accumulative reduction bit by bit does it come out the same no matter what order you apply the reductions in?


Trying to enter sudo apt clear, or any command for that matter,the response comes asking for my password. I type password and nothing happens. I know that my password is not shown for security, but still after waiting some time, I am unable to enter further text. I run 18.04, and machine runs perfectly other than for using terminal


Drupal 6 - How to programatically create a content type

I am creating a module to display a dashboard that shows various stats. One section will be for adding announcements. My thought is that the best way to do this would be to create a custom content type and then pull in the latest announcements from the announcement content type submissions.   My question is how can I create that content type programatically with the proper fields? Where can I go to add those announcements once the type is created? And how can I pull the latest announcements to display on the page?  I'm new to Drupal, so I'm struggling at the moment to learn the proper way to do things.


Should we declare a public constructor when the class is declared as package private?

I think in this case there is no need to declare a public constructor since the class is not accessible outside the package anyway. But is there some hidden impact when the class has only package private constructor?


I want to remove gs alias from my PC. When I type gs it will open GhostScript. But I checked everywhere in the home directory .alias  .bash_aliases .bashrc  I also overwrite the gs with my custom alias.   I can't remove it. And I also type alias in terminal, in the list I couldn't find it.   Please I want to remove it...


Where can I get the URL for adding a VF page through iframe to a custom lightning component?  1 I create a VF page.  2 I know that I can display it in lightning using the following approach   <iframe src="{!'myURL'}" width="100%" height="300px;" frameBorder="0"/>  Where can I get myURL?


Why is the graph of a continuous function to a Hausdorff space closed?

Say I have two topological spaces given by $(X,\mathscr{T}_X)$ and $(Y,\mathscr{T}_Y)$ where $Y$ is Hausdorff. In addition say I have a function $f:X\rightarrow Y$, and let it be continuous. I want to show that $Gr(f):=\{(x,f(x))\mid x\in X\}$ is a closed subset of $(X\times Y)$.   In answering this question, could you also provide the "chain of thought" that brought you to the solution. I am aware of what the continuity of the function and the fact that $Y$ is Hausdorff provides me in terms of definition. I am however, finding it hard to find a -link- towards answering the question. Thank you all in advance for your help.


This is weird. On  I seem to have my own reputation, different from my Stack Overflow reputation. Yet, according to , there is no reputation on any meta site (other than this one, Stack Exchange Meta) As stated:     Votes on meta do not affect your reputation; your meta reputation is the same as your reputation on Stack Overflow (synchronized hourly), though you earn separate badges. You must have 5 reputation to participate on meta.   So I shouldn't have any reputation on meta. However I do, along with everybody else.    How to see your meta reputation in 3 easy steps (with )   Click on this button:   Then add any meta site that is not this one to the YOUR COMMUNITIES section with the edit button next to it. You may want to add the main site as well if it is not already there (for ease of seeing the bug feature, not required) Profit!     The problem feature will become visible - your meta account has a reputation of its own!   See it without markup on it .  If you are wondering what is going on here, this is what happened: A Stack Overflow employee saw  (animuson?) and even though  is shown, the Stack Overflow team secretly added it (steps to trigger it shown above) and it took 3 years and 6 months for someone (me!) to find it. Somebody (a moderator) should really edit that post to .  Or it could be a bug. Naw.  The Stack Overflow Team should either (#1) Remove this value altogether or (#2) Add it as a useless value to everybody's profile as well so more people can enjoy it (for the coolness factor only, no real effect). Personally, I like the idea of #2 so you can see what your rep would be on meta (no purpose other than looking cool, mind you). You can suggest your opinion in the comments/an answer if you like.  But this isn't a , this is a  report, so don't downvote this if you don't like my opinion on how Stack Overflow should handle this.  Anyway, can we fix this bug?


Assign multiple colors to features within a single vector layer

I want to give multiple colors to different features within a shapefile based on attribute values , is this possible in QGIS ?  If yes what is the procedure ?  Is there a way to provide color by means of hexadecimal codes ?


I've been a graphic artist since 2002. Since then, I've had a difficult time finding paying clients to the point that I changed careers. However, I missed working as a graphic artist and got back into it recently. However, I've encountered the same challenges this time around.   I'm wondering how and where can I find paying clients online? I've tried Craigslist, DeviantArt, eLance, etc. I'm wondering which sites other designers have successfully found paying clients on.


How is the mass of an electron distributed?

Since the position of an electron is not determined, how is it’s mass distributed ? In other words, how does an electron curve space time ?  .


I haven't played Terraria in a while and it has changed a lot, so I want to start over again. What should I do to get some good equipment as quick as possible? I don't need to have the epicest equipment available, but I'd like to be able to roam the world freely, mine where I want, and have some cash.   (I only have a little previous experience with the game. I mostly dug down, found a cave and explored it. Dug even deeper, which took quite a lot of time, found a big cave, died a lot, was too weak, died some more and then moved on to other games.)


Can we use Post method to fetch data from DB or only GET is used?

Please let me know when to use GET method and when POST in REST API. As Post is supposed to be more secure, so can we use in case of getting the data from the database in REST API or it just can be used in case of adding new record in the database. Thanks for your views.


Why is Meta SO the only meta site to appear in my list of accounts?

In my Stack Exchange network profile I can view a list of accounts on sites where I'm participating. But among these sites there is only one meta — Meta Stack Overflow. I am participating on other meta sites as well. Why are they not in this list? Or why does Meta SO appear in there?


So I've designed an image for the cover of my book and I want to center it vertically, I tried two things and both failed. It's a small image that DOES NOT cover the whole page.  I tired with vspace first, it doesn't move the image, no matter what.  \vspace{3in} \includegraphics{147.jpg} \thispagestyle{empty}   And also I tried with vfill.  \vfill \includegraphics{147.jpg} \vfill \thispagestyle{empty}


Proving square root of a square is the same as absolute value

Lets say I have a function defined as $f(x) = \sqrt {x^2}$. Common knowledge of square roots tells you to simplify to $f(x) = x$ (we'll call that $g(x)$) which may be the same problem, but it isn't the same equation. For example, say I put $-1$ into them:  $\begin{align} f(x) &= \sqrt {x^2} \\ f(-1) &= \sqrt {(-1)^2} \\ f(-1) &= \sqrt {1} \\ f(-1) &= 1 \end{align}$  $\begin{align} g(x) &= x \\ g(-1) &= -1 \end{align}$  thereby, we conclude that $f(x)$ and $g(x)$ do not produce the same results even though they are mathematically the same. This is also shown when we try to graph the functions:  :    :    :    From this, we can see that given $f(x) = \sqrt {x^2}$, when simplified is not the same as $f(x) = x$. So, is there any way to prove that $y = \sqrt {x^2}$ is not the same as $y = x$ for negative values, but is infact the same as $y = \mid x \mid$?


AUC and class imbalance in training/test dataset

I just start to learn the Area under the ROC curve (AUC). I am told that AUC is not reflected by data imbalance. I think it means that AUC is insensitive to imbalance in test data, rather than imbalance in training data.  In other words, only changing the distribution of positive and negative classes in the test data, the AUC value may not change much. But if we change the distribution in the training data, the AUC value may largely change. The reason is that the classifier cannot be learned well. In this case, we have to use undersampling and oversampling. Am I right? I just want to make sure my understanding on AUC is correct.


I want to create a journey that email one of my dealers when there is a new lead. In the email, the dealer needs to click on 2 buttons: Accept or Decline. If after 48 hours he didn't clicked on anything, the field of the response will automatically changes to Decline and the process start again by sending email to the next dealer in the DE.  Added in edit:I want that if the dealer clicks on Accept, even if it is 1 hour after the email was sent, it will right away continue the journey.  Is it something possible to create from the journey builder? How can I notify the lead after there is a match with dealer from within the journey? If it is possible, can it be done from one journey?  Thank you.


This limit was a trivia question.  The trivia league is set up so you have all day to mull over questions and submit your answer, but it's not "trivia for mathematicians."  The questions tend to be tough, but I wouldn't expect them to ask a really really hard Calculus problem...     $$\lim_{n\to\infty}\frac{(n+1)^{n+1}}{n^n}-\frac{n^n}{(n-1)^{n-1}}$$   I can provide the correct answer but it's easy to guess by plugging in a large number for $n$.  No calculators allowed!


Following a reference from "General Topology" by Stephen Willard   Well since the difference between an open set and a closed set is an open set and since the union of open sets is an open set, it is clearly that $S$ and $T$ are open; but unfortunately I can't prove that $S$ and $T$ are disjoint open set containing $A$ and $B$. Anyway it seems to me that $U=\bigcup_{i=1}^nU_i$ and $V=\bigcup_{i=1}^nV_i$ are two disjoint open sets that containing $A$ and $B$ and so I ask: why define the set $S$ and $T$? Could someone help me?


Google Webmaster Tools is showing duplicate URLs based on page title differences

I have 700+ title tag duplicates showing in WMT.     Every first link in that picture is as duplicate link of second one. I don't know from where the first link got indexed by Google when that link doesn't exist in the site. It's showing the title of every page as link.   Original link: http://www.sitename.com/job/407/Swedish-plus-Any-other-Nordic-Language-Customer-Service-Representative-Dublin-Ireland.  Duplicate link: http://www.sitename.com/job/407/Swedish-plus-Any-other-Nordic-Language-Customer-Service-Representative-Dublin-Ireland-Ireland.  How can this happen? I have checked entire site I didn't find where the second version is linked.  I have no images linked to with duplicated version of URL.


The computation of nullity and rank of a linear transformation.

Let $V$ be the linear space of all real functions continuous on $[a, b]$. If $f\in V, g=T(f)$ means that $$g(x)=\int_a^b f(t)\sin(x-t)\,dt\hspace{1 cm} for\ a\le x\le b$$  We can see this as a linear transformation $T: V\to V$ the linearity of which is easy to show.$\\$ Now how do you compute the nullity and rank of this transformation?  I'm rather new to linear algebra so I'd appreciate it if you include lots of detail and explanation in your answer. Thank you in advance.  P.S: the final answer is infinite nullity and 2nd rank (according to the back of the book).  From calculus II by Tom M. Apostol - page 36


Hi I am new to Java persistence.  Does it matter where I put the Annotations at?  Are the following two sets of the code the same?  Thanks a lot!!  @Entity @Table(name="user", schema="billing") public class User {     private long id ;     private String userName ;     private String password ;      @Id     @GeneratedValue     public long getId() {         return id;     }     public void setId(long id) {         this.id = id;     }     @Column(name="password", length=20) public String getPassword() {     return password; } public void setPassword(String password) {     this.password = password; }     @Column(name="user_name",length=15) public String getUserName() {     return userName; } public void setUserName(String userName) {     this.userName = userName; }   }  Compare to:   @Entity @Table(name="user", schema="billing") public class User {     @Id     @GeneratedValue     private long id ;     @Column(name="user_name",length=15)     private String userName ;     @Column(name="password", length=20)     private String password ;          public long getId() {         return id;     }     public void setId(long id) {         this.id = id;     }     public String getPassword() {     return password; } public void setPassword(String password) {     this.password = password; }     public String getUserName() {     return userName; } public void setUserName(String userName) {     this.userName = userName; }   }


Getting started with neural networks for forecasting

I need some resources to get started on using neural networks for time series forecasting. I am wary of implementing some paper and then finding out that they have greatly over stated the potential of their methods. So if you have experience with the methods you are suggesting it will be even more awesome.


Baking multiple objects to keyframes resets their orientation by their origins

I made a breakable object and the simulation is fine. But when I bake the simulation all the pieces of the breakable object just stack in the same place in space.  The pieces are driven by a cube the first 60 frames, then the simulation makes the rest.  .blend in a zip file:


Samsung Galaxy Tab 7" 2gb Android upgrade is it posable

I have a sch-i800 galaxy tab and I wouldlike to up grade the programing so I can use some of the newer programs out there is this posible?  hardware version i800.0.4  firmware v 2.3.5  baseband v S:i800.0.4v.ei04  kernal v 2.6.35.7  Build # sch-i800.mc2


Does zero-one loss correspond to any maximum likelihood procedure?

Squared loss for linear regression corresponds to a MLE of a Gaussian model, and cross entropy loss corresponds to MLE of a logistic model with discrete probabilities.      Can zero-one loss be justified by MLE of any probability model? Why or why not?    That's the main question.  also has to do with intuition for zero-one loss, but doesn't have anything to do with MLE.  but also I'd like to state some things I believe are true about zero-one loss, and please correct me if I'm wrong:   MAP is Bayes optimal for zero-one loss  Logistic regression models probabilities directly, and classifies to the largest, but its parameters are optimized based on maximum likelihood (leading to cross-entropy) rather than optimizing zero-one loss directly The performance of logistic regression could be improved by using zero-one loss, or you could ditch logistic regression entirely and use frequency tables to approximate $P(\text{class} | X)$, though both of these options are entirely intractable


creating a popup panel on a standard detail page layout

We currently use the lead detailed page to display lead information. We have a requirement where we need to create a custom button on the lead detailed page on the standard layout where on clicking the button, we need to display additional attributes of the lead on a popup panel on the same detail page. We currently do this on a visual force page which opens a new window every time. What we want to display is a modal window on the standard page layout or a popup panel where we can embed a visual force page and display some more attributes and on clicking a button, the popup disappears the detail page is rendered. Do any of you guys have examples of doing this or sample code might help? Buyan


Best way for Java application cross platform when library have file for each platform?

I usually use chilkat library () develop only with windows. but this library have each library file for each platform, and today I have to do it cross platform.  Example   Windows x64 use win64.dll Windows x84 use win32.dll Linux x64 use linux64.so Linux x32 use linux32.so Max OSX use osx.jnilib    This my source code for include chilkat library when use windows only.  static {     try {         System.loadLibrary("lib/win64");     } catch (UnsatisfiedLinkError e) {         try {             System.loadLibrary("lib/win32");         } catch (UnsatisfiedLinkError e2) {             System.err.println("Native code library failed to load.\n" + e2);             System.exit(1);         }     } }   And now I no idea. How include each library file on java application for cross platform ?  Please guide best way to me.  Thank you.  Edit1: sorry for confusion. i know how find os.name on runtime. but this question i mean how include each library file for run each platform.


How to use string.punctuation to remove punctuation in a text file

Made a function to count 20 most common words in a book that I downloaded as a plain text format. The python textbook I am going off of said to use the import string and then the replace or the translate method to remove any punctuation, but when I print out the lines after the replace step, all the lines still have punctuation in it. I tried moving around the line = line.strip() and the line = line.replace(string.punctuation,'') step, but that did not work. I have never used replace so I may be using it wrong for all I know. Rest of my program works, just that step is frustrating me.  import string def function():     infile = open('gutbook.txt','r',encoding='utf-8')     count = dict()     list2 = list()     for line in infile:         line = line.strip()         line = line.replace(string.punctuation,'')         line = line.lower().split()         if line== []:             continue         for i in line:             count[i] = count.get(i,0) + 1     for key,value in count.items():         newtuple = (value,key)         list2.append(newtuple)     list3 = sorted(list2,reverse = True)     print(list3[:20])    function()


How to add a enviroment variable without GUI

Is there a way how I can add a new environment variable specifically PATH without going into control panel etc.  Is there a file I can edit for this or a command line argument that can do the same thing?


What is an effective and efficient way to read research papers?

I will be a grad student in condensed matter theory starting this fall. As an undergrad, I did the basic physics and math courses as well as a few grad classes (qft, analysis, solid state physics etc.)   When I start reading research papers, I often feel overwhelmed because there is so much that I don't know and I find it hard to decide which points to gloss over and which points to spend time on and understand more thoroughly (which in my case, would probably require supplementary reading of textbooks or related papers)   What are some things to keep in mind while reading a paper so that:    I get a general overview of the paper and I more useful insights into parts I can do the above reasonably fast (say, finish reading at least 1 paper a week for a start)   You don't have to be specific to condensed matter theory papers when you answer.


How do I model count data (Poisson regression) that has a seasonal pattern?

I'm rather new to R and poisson regression and have a few questions.  I have count data of incidents per month, a couple years prior to an intervention and 1 year after. I want to use poisson regression to test if the intervention had a significant impact on the number of incidents. This is a quasi-experimental study in which the intervention was applied in a non-random way. There is only 1 zero in the data. The data has a seasonal pattern so I am wondering how to model this in the poisson, do I need to create a dummy variable? How best do I go about modeling the dummy variables (month, quarter)?


I forgot security questions and rescue email

Recently I got some money in my Apple ID and a few years ago I made a rescue email ( which I forgot how to enter ) and put some security questions I forgot how to awnser and I cannot buy apps ,music or movies because I need to fill in the security questions ! If I don't find an awnser on here, I will call Apple customers support.


Non bootable iMac what Ubuntu can I use to use as startup DVD

When I start my iMac I get the apple logo and the swirling gear then it freezes in this position. I have tried    Command-R during startup---it can't find recovery partition Press Shift during startup - nothing happens Press D during startup It cannot find a "bootable cache"   I have "heard" that Ubuntu can be used to at least start the Mac and maybe it will load programs from the mac to correct my startup problem  I need to know which version of Ubuntu I should use for a bootable DVD or USB stick and what kind of format does Ubuntu have to be in…. Ie. Iso, or what.


Ubuntu 20 wifi adapter not found wifi not working

On my Ubuntu 20, everything was working fine when suddenly my wifi stopped and all configs were disappeared. At software center it was showing broadcom & legacy driver then I messed it up using lot of commands but nothing worked somehow and that was also removed. I don't know what to do next. I Googled lot but I found nothing related. Any help would be appreciated.


All possible values of $k$ such that $a\le k \le b$ and $k$ is a linear combination of a and b

I am looking for a general rule for all possible integers $k\in(a,b)$ such that $k$ is can be expressed as a linear combination of $a$ and $b$.   I understand that k must be a multiple of $\gcd(a,b)$, since any linear combination of $a$ and $b$ will be a multiple of $\gcd(a,b)$. Is there a general formula for $k$ in terms of $a,b$?  Thanks in advance!


Graph theory - number of spanning trees generalisation

I'm trying to generalise the number of spanning trees of a complete graph after deletion of any edge. That is, I'm trying to find $$ \tau (K_n - e)$$ For $n$ number of vertices and we are deleting one edge $e$.  So far, I know that $\tau(K_1) = 1$, $\tau(K_2) = 1$, $\tau(K_3) = 3$, $\tau(K_4) = 16$, and $\tau(K_5) = 125$.  My intuition is that it is equal to $\frac{\tau(K_n)}{2}$, because I tried this on $K_n$, and found $8$ spanning trees.


I was curious what's to happen when $p = q$ for $N=pq$ in RSA scheme.  First I realize that one can easily find out $p$ and $q$ by taking a square root of $n$.  However, it appears to me that under $\pmod{N}$ where $p = q$, one cannot reliably retrieve the original message via $m^d$ where $m$ denotes an encrypted message and $d$ denotes the decryption key. Can someone explain why?  Thank you.


Is this verse from Lady Gaga grammatically correct?

"I want your love and I want your revenge   You and me could write a bad romance"   I have always seen "You and I", as opposed to "You and me". I rely on a rule of thumb that if we remove the other person ("you and"), then what remains (I or me) should make grammatical sense.  Here, "Me could write a bad romance" does not make sense, but who am I to question the grammar of an English-speaking singer?


"…who/whom I can share my feelings with"

Is it a correct sentence:       I just wanted a friend, who I can share my feelings with.   OR should I say   I just wanted a friend, with whom I can share my feelings.