Window positions messed up after docking

I have a HD display on my laptop (Dell Latitude E7250) and a Full HD one on my docking station. When I dock my laptop the window positions often (yet not always) get messed up. Sometimes (some of) the windows get minimized and sometimes they switch to different workspaces, e.g. (1,1) to (1,6), usually staying on the same row.   Running Ubuntu 16.04 / Unity with 24 workspaces (6x4) (yes, I need that much).  Is there any way to fix this? Saving the layout somehow could help as I always have certain windows open on certain workspaces (e.g. IntelliJ Idea on (2,3).  Thanks.


Is RSA-OAEP secure when the exponent is equal to 3?


An infinite series plus a continued fraction by Ramanujan

Here is a famous problem posed by Ramanujan     Show that $$\left(1 + \frac{1}{1\cdot 3} + \frac{1}{1\cdot 3\cdot 5} + \cdots\right) + \left(\cfrac{1}{1+}\cfrac{1}{1+}\cfrac{2}{1+}\cfrac{3}{1+}\cfrac{4}{1+\cdots}\right) = \sqrt{\frac{\pi e}{2}}$$   The first series seems vaguely familiar if we consider the function $$f(x) = x + \frac{x^{3}}{1\cdot 3} + \frac{x^{5}}{1\cdot 3\cdot 5} + \cdots$$ and note that $$f'(x) = 1 + xf(x)$$ so that $y = f(x)$ satisfies the differential equation $$\frac{dy}{dx} - xy = 1, y(0) = 0$$ The integrating factor here comes to be $e^{-x^{2}/2}$ so that $$ye^{-x^{2}/2} = \int_{0}^{x}e^{-t^{2}/2}\,dt$$ and hence $$f(x) = e^{x^{2}/2}\int_{0}^{x}e^{-t^{2}/2}\,dt$$ Thus the sum of the first series is $$f(1) = \sqrt{e}\int_{0}^{1}e^{-t^{2}/2}\,dt$$ But I have no idea about the continued fraction and still more I am not able to figure out how it would simplify to $\sqrt{\pi e/2}$ at the end.  Please provide any hints or suggestions.  Update: We have $$\begin{aligned}f(1) &= \sqrt{e}\int_{0}^{1}e^{-t^{2}/2}\,dt = \sqrt{e}\int_{0}^{\infty}e^{-t^{2}/2}\,dt - \sqrt{e}\int_{1}^{\infty}e^{-t^{2}/2}\,dt\\ &= \sqrt{\frac{\pi e}{2}} - \sqrt{e}\int_{1}^{\infty}e^{-t^{2}/2}\,dt\end{aligned}$$ and hence we finally need to establish $$\sqrt{e}\int_{1}^{\infty}e^{-t^{2}/2}\,dt = \cfrac{1}{1+}\cfrac{1}{1+}\cfrac{2}{1+}\cfrac{3}{1+}\cfrac{4}{1+\cdots}$$ On further searching in Ramanujan's Collected Papers I found the following formula $$\int_{0}^{a}e^{-x^{2}}\,dx = \frac{\sqrt{\pi}}{2} - \cfrac{e^{-a^{2}}}{2a+}\cfrac{1}{a+}\cfrac{2}{2a+}\cfrac{3}{a+}\cfrac{4}{2a+\cdots}$$ and it seems helpful here. But unfortunately proving this formula seems to be another big challenge for me.


I've got Tests written using Selenium/Java. There is an element with an id="xyz". I need to wait for the above element to disappear, so I am using invisibilityOf()  WebDriverWait wait = new WebDriverWait(driver, 20); wait.until(ExpectedConditions.invisibilityOfElementLocated(By.id("xyz))); driver.findElement(By.id("abc)).click(); //error, element xyz intercepted click   The Element just doesn't disappear. Are there any other preferred ways of waitting for an Element to disappear. I tried using JavascriptExecutor, but that would mean implementing JSExecutor for every interaction on the webpage. The big Problem is that the result is flakky, sometimes it works and sometimes not with the above code.


Trying to hide spam/offensive deletions on user profiles announces them

If a post is deleted as spam or offensive, the user incurs a 100-rep penalty.  But SE made the conscious decision to not call that out on the reputation tab; if you go to the page of a user who's hit this penalty, you won't see those "-100" events in the history.  The big rep number on the profile will be correct (which is important for knowing about privileges), so you'd only notice the difference if you went through the history and added everything up -- probably not something that happens often. So these rep penalties would be invisible to most viewers, but for one thing:  (You'll need to get your own test case to verify this behavior; I'm not going to call out specific users.) How is the current rep both 404 and a smidge over 500 at the same time?  There's only one way I know for that to happen (and I know it happened here). You might think that, theoretically, answers that the user downvoted could account for the difference, because those too are not shown in rep history. But the -1 rep for downvoting answers is reflected in the graph, even if an audit of the rep history would come up with a different number. Additionally, reputation changes from normal deleted posts don't cause a discrepancy between the graph's reputation and actual reputation either. If we don't want to call out these events in the rep history, should we also do something about this graph to avoid broadcasting what happened in the summary?


What is "quiet splash" in the grub file for?

I've been here for a while, and sometimes I see people answering questions related to shutdown or restart problems with this : "delete "quiet splash" from the /etc/default/grub file". My question is: what is "quiet splash" for?


How do I get the form submitted data in a custom module?

I have create a webform in Drupal 7. I want to access the submitted data in a custom module.  I used my_module_form_submit($form, &$form_state) but no data has been found. Please Help.


How do I make my Eclipse project a Java project?

I am again at the point where I believe my uni wants to freak me out. My uni just threw this eclipse project at me and I am supposed to run it as a java application. My uni says this is trivial but for me it is not!  So here it goes: They gave me a zip archive and I imported it by Import Existing Projects into Workspace and then selecting the zip archive. It all went well, however, I am not able to run it as a Java application. Also, I noted that the folder JRE System Library was missing.   Can someone explain me what this all means and how I can solve this problem? My uni did feel like explaining a lot...


I want to modify a translation in the german Unity translation.  Where can I find this translation in Ubuntu 14.10?


Induction proof dealing with geometric series

$1+r+(r^2)+...+r^n= \frac{1-r^{n+1}}                     {1-r}$  Any help would be appreciated in solving the geometric series.


Let $ X, Y \in \mathfrak{X}(M)$ tangent vector fields, $ g,\tilde{g}$ two Riemannian metrics such that $ \tilde{g} = f^{2}g$, being $f$ a function that does not cancel, compare as Levi-Civita of $g$ and $\tilde{g} connections. I think about doing this, since the metric is a function, we have: $\nabla_{Y}gX=g \nabla_YX+Y(g)X$ and so... $\nabla_{Y}f^2gX=f^{2}g\nabla_YX+Y(f^2g)X$ Through these two equations can I conclude something? What conclusions can I draw? Can someone help me? Thank you.


Formal definition of $\Omega_{X/Y}\otimes k(x)$

For example on Hartshorne p.271, given a closed point $x$ of nonsingular varieties $X,Y$ over an algebraically closed field $k$. We have $k(x)\cong k$. And we can tensor $k(x)$ to get $\Omega_{X/Y}\otimes k(x)$. Here $\Omega_{X/Y}$ is a sheaf while $k(x)$ is a field. I wonder what the formal definition of $\Omega_{X/Y}\otimes k(x)$ is? To me it means at the stalk, it's the tensor product of the stalk of $\Omega_{X/Y}$ with $k(x)$, but what's the formal definition?


Are Characters in 5e allowed to buy Items with their Background Gold?

Assuming I have a new character that chooses starting equipment instead of rolling for gold and buying items. Can I exchange some of the gold I got from the background for additional gear from the "Adventuring Gear" Table?


I have a word document. The first four pages are title and index. After that, the “Chapter 1” starts. I want page numbers to begin from the “Chapter 1” onwards only. The first 4 pages should not have any page number.  How do I achieve this?


How to handle a DDoS attack on a search engine?

We are running a search engine and are seeing a huge amount of fake search queries coming in over the last days from thousands of IP addresses. There is no real pattern in terms of queries text or IP range. It seems that there is a bot network trying to bring our down. Currently we're seeing about 30 fake queries per second and it's increasing.  We tried to set up cloudflare, but it did not really help. We could try to block out bad traffic with Captchas, but this could decrease usability for our real users.  Does anybody have an idea how we could handle this? We're running on AWS with Route53.


Why does QGIS not display an attribute table in the order of its defined schema?

I saw this is a known issue in QGIS v3.2 Bonn. I installed QGIS v3.6 Noosa and still have the same issue. For example) csv of .dbf with expected order:  view of attribute table in QGIS:  Any ideas?


60 Hz signal between thumb and forefinger?

I was playing around with the oscilloscope and noticed when I measure between two points on my hand, I see about a 1 V signal at about 60 Hz.  Do I oscillate at 60 Hz?  Does this have anything to do with lighting or main's hum?  Where does this 60 Hz signal come from?


Is it possible to concat two regex variables?

Is it possible to concat two regex variables in Ruby?  r1 = /my_str/ r2 = /my_str1/ r3 = r1+r2   Can anyone give any suggestions?


Stack Exchange app refuses to upload images

I see the following error:     Sorry, something went wrong when trying to upload that image. Try again?    when attempting to upload an image using the Stack Exchange Android app installed from the Play Store at   Below is the corresponding screenshot that I had to manually upload to imgur.com in order to post:    (Side note: I noticed that clicking on the upload image icon resulted in a link being inserted and not one that in lines the image as shown above.)  It does not seem to be related to the size of the image.  As far as I can tell, there is nothing wrong with my internet connectivity from the phone. I'm using the same app to post this question to Meta Stack Exchange.  The phone is a stock Samsung Galaxy Note 8 (the cell phone carrier is Google Fi).  Below is a screenshot of the kernel version and other Android version info from the settings on the phone:    Application information for the Stack Exchange app is below:  App info Version  1.0.95 Updated on  Jun 30, 2017    I just now noticed "Jun 30, 2017" above and it is now in November 2019. The phone should update the app automatically, correct? Is the phone simply too old for the app?


I am aware of using supertabular and the \twocolumn environment for tables over two columns. But is also possible to use a three column layout with a long table?


I am writing a small website, but I do NOT want to figure out how to install and configure complete LAMP stack to test the website from my ~/home directory. That will be completely disruptive and unnecessary.  All I want is to have a directory, e.g. ~/home/Documents/Website and run a small web server from that folder as the website's "home" folder.  I know  can do something similar, but it only seems to work with Ruby/Jekyll-based sites that it builds and configures.  Isn't there some small web server program that I can easily install and then just run very simply?  For instance, if I just needed to run something like e.g. simple-server serve ~/home/Documents/Website from a command line and then navigate to e.g. localhost:4000 or whatever to test the site, that would be perfect.  If this is already possible in Ubuntu and I just don't know how, please let me know.


Cannot find a logic error in my simple code

The following method replaces each parenthesis and each comma in a string variable with a space. It also replaces multiple spaces with only one space using a regular expression.  // ----------------------------------------------------- //  Replace special characters by spaces. // ----------------------------------------------------- private String ParseCommand(String Command) {     String strCommand = Command;      // Replace parenthesis and commas by a space.     strCommand = strCommand.replace('(', ' ');     strCommand = strCommand.replace(')', ' ');     strCommand = strCommand.replace(',', ' ');      // Remove extra spaces.     strCommand = strCommand.replaceAll("\\s+"," ");     return strCommand; }   Above method "ParseCommand" is called by method "SplitAndFind" which splits a string based on a space. Also, it searches for a token in the resulting array  // ----------------------------------------------------- //  Find a token in command. // ----------------------------------------------------- public void SplitAndFind(String Command, String TokenToFind) {     String strCommand = ParseCommand(Command);     String[] strTokens = strCommand.split(" ");     for (int i = 0; i <= strTokens.length - 1; i++)     {         System.out.println(strTokens[i]);         if (strTokens[i] == TokenToFind)         {             System.out.println("TOKEN FOUND !!!");         }     } }   Finally I call method SplitAndFind from main looking for the token PRIMARY. My problem is that the token is not found. I display every item in the array of tokens and I see it but the message "TOKEN FOUND !!!" is never displayed. What am I doing wrong?  public static void main(String[] args) throws FileNotFoundException,     IOException {     dbEngine objEngine = new dbEngine();     objEngine.SplitAndFind("CREATE TABLE animals (PRIMARY VARCHAR(20), kind VARCHAR(8), years INTEGER) PRIMARY KEY (name, kind);", "PRIMARY"); }


Unity - blur on one camera effects the other as well

I'm trying to fake a DOF effect for Sprites by using 2 cameras, one for the sharp objects, one for the blurred ones. I have set up the layers like Blur and Sharp accordingly.   So I have these 2 cameras, and I use Unity's Blur (optimized) script to blur things, and I have this script on only one camera, the one that is responsible for the blurred render.   I have the cameras like:  Cam 1:   Clear flags: Don't clear (this is the main, sharp cam) Culling mask: sharp layer has no blur effect (or any other post proc effect).   Cam 2:   Clear flags: don't clear (this is the blur cam) culling mask: blur Has Blur (optimized).    Now, if this blur cam is on the back, meaning its depth is LESS than the main cam's depth, I have a sharp player ground and a blurry background. However, I need a blurry foreground too that should be on top of the player ground.  The issue starts when I set the blur camera's depth higher than the main cam's. In this case, everything gets blurred, no matter that the main cam has no blur effect on it.   Question is, how to set this up so only the desired layers get the blur?


I recently found out that one of my Domains (which was only a empty Wordpress installation), was hacked. The website didn't show the wordpress installation anymore, instead there was just a website with some music that say "Hacked my Team_cc" and some more text.  I've now changed very passwords from any other website, because there are mulitple websites with different domains on the same server. But my question is now, since only one Domain was attacked, was it just a hole they found in the older Wordpress installation, or why weren't the other domains affected?  Is there a known bug in Wordpress 3.8 that allows users to get access to the files? How can I find out if they compromised FTP or ssh?  Best regards


check if numbers from command line are powers of 2

i can`t make a bash script who check if a input numbers in command line is an power of 2  input  # ./pow2script.sh xyzdf 4 8 12 -2 USAD   desired output : the desire output should be on separated lines   4 8   because only 4 is 2^2 and 8 is 2^3  content of pow2script.sh  #!/bin/bash  function is_power_of_two () {     declare -i n=$1     (( n > 0 && (n & (n - 1)) == 0 )) }  for number; do     if is_power_of_two "$number"; then         printf "%d\n" "$number"     fi done


Prior to the spell cast on Mjolnir, did Thor control lightning on his own?

In the film Thor, Odin casts a spell on Mjolnir and strips Thor of his power.  He then banishes Thor to Midgard (Earth).  On Earth, Thor is seemingly just a strong and durable human.  Later in the film, he becomes worthy, and regains control of Mjolnir.  This then grants him his full power set and control over Mjolnir.  My question is, prior to this, could Thor control lightning all on his own?  Or is this purely an ability of Mjolnir?


I would like to see the review page refresh automatically if I have done some reviews and get the message that there are currently no more reviews to perform.  Refreshing the whole page is, in my opinion, a little too much overhead. The review itself seems to work with AJAX. So, a small refresh button to trigger would be nice too, if the real-time updates are too complex.


can you put ubuntu on a disk as a boot disk to make another computer use it for operation

I currently have a computer on which I want to replace operating system. Is it possible to burn Ubuntu to a disk as a boot installer so I can install it on my computer?


How to change macOS Mojave’s menu bar transparency

How do you change the menu bar transparency in MacOS Mojave?


Is the Sorgenfrey Line second countable?

The Sorgenfrey topology on $\mathbb{R}$ is the topology whose basic open sets are of the form $[a,b)$ where $a < b \in \mathbb{R}$.   Does it have a countable base? (I suspect not.) Certainly it is separable and first countable.  The reals with the usual topology is second countable because open intervals with rational endpoints form a countable base. However this approach does not work for the Sorgenfrey topology, since open sets of the form $[i,b)$ where $i$ is irrational, cannot be written as the union of basic open sets $[p,q)$ with rational endpoints.


What language is used to cast spells by wizards from Asian countries?

Latin is the language used by wizards and witches in the Western World when they cast spells. Latin is Indo-European - a language family that doesn't include pan-Asian/tonal tongues.   So what languages did wizards use to cast spells in Asia?


I'm trying to understand something written in my textbook. Suppose $n=pq$ is the product of two primes and we know the four solutions $x \equiv \pm a, \pm b$ of $x^2 \equiv y \ $(mod $\ n)$. Then $a \equiv b \ $ (mod $p$) and $a \equiv -b  \ $(mod $q$), or $a \equiv b \ $(mod $q$) and $a \equiv -b  \ $(mod $p$).  Can someone explain why this is true?


Xamarin ios: how to download a PPt file on xamarin ios?

I am working on a xamarin application where I have to download a PPT file and opened the downloded ppt file from PowerPoint app (if available on a device)


What is the significance of the initial rep of 1 on any stack exchange site?

I am new to SO. I was wondering why the initial rep is 1 (and not 0) on any new stack exchange site that I join?


How to fix "AndroidRuntime: FATAL EXCEPTION: main, kotlin.KotlinNullPointerException"? error when trying to delete the stored data Sqlite db

I am trying to develop a Notes application where I can save list of notes. These notes will be saved in SQLite DataBase. I have set a button to delete the created note. When I click on this butting during run time (no complete time error) it is giving me a mentioned error. Kindly help in resolving this issue.  I tried to develop this app by reading and copying the code from      inner class MyNotesAdapter : BaseAdapter {      var listNotesAdapter = ArrayList<note>()     var context: Context? = null      constructor(listNotesAdapter: ArrayList<note>) : super() {         this.listNotesAdapter = listNotesAdapter         this.context = context     }       override fun getView(position: Int, convertView: View?, parent: ViewGroup?): View {         var myView = layoutInflater.inflate(R.layout.ticket, null)         var myNote = listNotesAdapter[position]         myView.tvTitle.text = myNote.nodeName         myView.tvDes.text = myNote.nodeDes           myView.delete.setOnClickListener(View.OnClickListener {              var dbManager = DbManager(this.context!!) //This is the line where I am getting error.              val selectionArgs = arrayOf(myNote.nodeID.toString())             dbManager.Delete("ID=?", selectionArgs)             LoadQuery("%")         })


I am a new user and working on NS2 for my masters project, need guidance! I have used these commands to install gawk in NS2 sudo apt-get update sudo apt-get install gawk  but I am facing an issue while installing gawk have a look. ak@ubuntu:~$ sudo apt-get install gawk Reading package lists... Done Building dependency tree        Reading state information... Done Suggested packages:   gawk-doc The following NEW packages will be installed:   gawk 0 upgraded, 1 newly installed, 0 to remove and 48 not upgraded. Need to get 418 kB of archives. After this operation, 1,708 kB of additional disk space will be used. Err:1 http://us.archive.ubuntu.com/ubuntu focal/main amd64 gawk amd64 1:5.0.1+dfsg-1   Temporary failure resolving 'us.archive.ubuntu.com' E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/g/gawk/gawk_5.0.1+dfsg-1_amd64.deb  Temporary failure resolving 'us.archive.ubuntu.com' E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


Merge CSV file to Vector Layer using common attributes in QGIS python scripting

I have a vector layer and a delimited text (csv) file -- they both have the common attribute attribid -- how can I add the columns of the csv file to the vector layer merging on the the attribid key using a python script?  I'm aware that I can use MMQGIS's combine feature to do this, but I could not get it to work using a python script.


How to connect a MSSQL database from Ubuntu 14.04?

I am trying to connect a MSSQL database from a Ubuntu 14.04 machine. I am using FreeTDS to connect, by following this tutorial   [  I'm stuck with the final stage, after giving the following command :  isql -v MSSQL devuser 'devpass'   Ubuntu is giving me the following error :  [IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified [ISQL]ERROR: Could not SQLConnect   How can I overcome this issue and connect the MSSQL database?  Update 1 My problem is half solved now. Driver has been found now. At this moment it is showing the following error.  [IM002][unixODBC][Driver Manager]Data source name not found [IM003][unixODBC][Driver Manager]Host name unknown [ISQL]ERROR: Could not SQLConnect


ifconfig does not recognize eth0, only wlan0 and lo (Ubuntu 14.04, Macbrook Pro)

ifconfig -a produces:  lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:65536  Metric:1           RX packets:1812 errors:0 dropped:0 overruns:0 frame:0           TX packets:1812 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0            RX bytes:209274 (209.2 KB)  TX bytes:209274 (209.2 KB)  wlan0     Link encap:Ethernet  HWaddr 28:cf:e9:1a:43:cd             inet addr:192.168.12.11  Bcast:192.168.12.255  Mask:255.255.255.0           inet6 addr: fe80::2acf:e9ff:fe1a:43cd/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:11512 errors:0 dropped:0 overruns:0 frame:0           TX packets:11320 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:9240182 (9.2 MB)  TX bytes:2316647 (2.3 MB)   lspci -nn | grep Ethernet produces:  03:00.0 Ethernet controller [0200]: Broadcom Corporation Device [14e4:16a3] (rev 10)   cat /etc/network/interfaces produces:  auto lo  iface lo inet loopback   Any ideas on how I can get eth0? Thanks!


Which is correct?  ...others are compensated thus. ...others are compensated thusly.  This page says 'thusly' is incorrect:  However without the 'ly' is sounds wrong. This page on adverbs didn't mention adverbs at the end of a sentence as being wrong.  It provides some examples:  A viewpoint adverb generally comes after a noun and is related to an adjective that precedes that noun: A successful athletic team is often a good team scholastically.  I just think '...a good team scholastical' would be wrong. Why is 'thus' different? This related question also says 'thus' over 'thusly', but the word was not at the end of a sentence.


I am trying to use template but it does not work, the error is : " previously declared here"  this is my Matrix.h file:  #ifndef MATRIX_H #define MATRIX_H  template <class T> class Matrix { public:      Matrix(int); // default cunstractor  private:     int rows, columns; };  #include "Matrix.cpp" #endif   and this is my Matrix.cpp file  #include "Matrix.h" #include<iostream> using namespace std;  template <class T> Matrix<T>::Matrix(int a) // Default constructor {    columns = a;    rows = 0; }   and this is the main file:  #include<iostream> #include "Matrix.h" using namespace std;  int main() {  Matrix<int> m1(5); return 0; }   I know the code seems very stupid and simple but I wrote much more, I reduce it to very simple code like this and again it doesn't work. Even I removed  #include "Matrix.cpp"   inside the Matrix.h file but still have problem.


reading csv file without knowing encoding in python

I'm writing a script that needs to look up some a value in a CSV file. The CSV file is from an external resource and I don't have much control about the file. So basically, I need to work with the CSV file that is presented to me and I need to deal with that.  Now when I read the CSV file (containing 30.000 rows at the moment), the script crashes at a certain point. It returns this error:  File "C:\Python34\lib\encodings\cp437.py", line 19, in encode   return codecs.charmap_encode(input,self.errors,encoding_map)[0] UnicodeEncodeError: 'charmap' codec can't encode character '\u0161' in position 55: character maps to <undefined>   My python code for reading the CSV file:  import csv with open('mybigfile.csv') as f:     reader = csv.reader(f, delimiter=';')         for row in reader:             print(row)   How would I be able to fix this so it can handle the encoding of the file.


Should I ever ask a duplicate question on purpose?

Every once in a while I have a question I am certain must have been asked and answered before on some Stack Exchange site, but it takes me a considerable amount of trial and error until I find the right words for Google or the Stack Exchange search to provide me with the post I was looking for.  There is a value to having duplicates around. Jeff Atwood :     There’s often benefit to having multiple subtle variants of a question around, as people tend to ask and search using completely different words, and the better our coverage, the better odds our fellow programmers can find the answer they’re looking for.   That made me wonder if it wouldn't make sense to ask a duplicate on purpose using my own words and marking it as a duplicate immediately. This would prevent future researches from spending their precious time. Also if the question were to be asked again, it would linger around longer unclosed, again wasting resources as people try to answer the question.    I am well aware of the irony if this turned out to be a duplicate..  Edit: Well..


How to remove categories for Business Gmail completely

Gmail has built-in categories like Social, Promotions, Updates and Forums. As a system developer I get a lot of mails from automated system notifications and these seem to get categorized by Gmail as either Updates or Forums. This is super annoying and I'd really like Gmail to stop doing this. I can't seem to find a setting anywhere that stops the built-in categories from being applied. I already of filters in place to move some of these notification mails to the relevant labels I want, but they still get categorized as Forums or Updates.  Any ideas on how to stop this?   I'm using Gmail via a web browser, no fancy mail clients.  UPDATE I forgot to mention this a company mailbox so not sure if we have all the options as a normal user. For one, I see no categories option under settings:


How to prove that $[Z,\rho(A)]=0$ for all $A \in\mathfrak{sl}(2,\mathbb{C})$ and $Z$ is the Casimir operator.

Let $\rho:\mathfrak{sl}(2,\mathbb{C}) \to \mathfrak{gl}(V)$ be a finite-dimensional representation. Define the Casimir operator $$ Z = \frac{1}{2}\rho(H)^2+\rho(H)+2\rho(Y)\rho(X) $$ where $H$, $X$, $Y$ is the basis $$ H = \begin{pmatrix}1 & 0 \\ 0 & -1\end{pmatrix}, \quad X = \begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix}, \quad Y = \begin{pmatrix} 0 & 0 \\ 1 & 0 \end{pmatrix} $$ satisfying $$ [H,X]=2X,\quad [H,Y]=-2Y \quad, [X,Y]=H. $$ How to show that for all $A \in \mathfrak{sl}(2,\mathbb{C})$, we have $$ [Z,\rho(A)]=0? $$  I want to use the fact that $\rho$ is a Lie algebra homomorphism (bracket-preserving), but there is a square and multiplication instead of bracket in $Z$, so we can't do it. If $\rho$ is faithful or simply the identity, things might be easier, but we don't have such information. Is there other properties of Lie algebra representation that I'm missing?


Graded ring localization. Why is this function bijective?

From Hartshorne, Chapter II.2, Proposition 2.5(b).  If $R$ is a graded ring and $\mathfrak a$ is a homogenous ideal, then the function defined as   $$\phi(\mathfrak a) = \mathfrak aR_f\cap R_{(f)}$$  is a bijection, where $R_f$ is the usual localization of $R$ with respect to the multiplicative set $S=\{1,f,f²,...\}$ and $R_{(f)}$ is the subring of homogeneous elements of degree $0$ of $R_f$.


PHP form doesn´t save the accent marks into MySQL DB

I store info into a MySQL Database via a PHP Form, the problem is that is a person inputs into the name field José Molína in the database it saves JOSé MOLíNA so it convert the accent mark into a non legible name and when I displys the info of the database in a form it shows Jos Molna (doesn´t show the letters with the accent marks).  the info of my table is ENGINE=MyISAM DEFAULT CHARSET=latin1 and the forms captures the info from a Wordpress site, could you please tell me what is the problem?  this is the way I sent the info to the database  $strNombres = htmlspecialchars(rtrim($_POST['nNombres']));      $Nombres= filter_var($strNombres, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH);   the I tried with this one but no solution  $strNombres = strtoupper((rtrim($_POST['nNombres'])));      $Nombres = htmlentities($strNombres, ENT_QUOTES,'UTF-8');   to the manager: since you closed this question, can you tell me where is the duplicate sign where the question was edited? besides of that I would like to close my account, how come you close a question?  I just send a message via twitter for this.


density of $X^2$ when $X$ has uniform $[-1, 2]$ distribution

Suppose $X$ has uniform $[-1,2]$ distribution. I am trying to find the density of $Z=X^2$.  Here is what I have done thus far:  Range($Z$)$=[0,4]$. I began computing the distribution of $Z$ for $z \in [0,4]$ as follows:  $$\begin{align*}   P(Z \le z) &= P(X^2 \le z)\\              &= P(X \in [-\sqrt z, \sqrt z]) \end{align*}$$  I am note sure what to do from here. Any help is greatly appreciated. Once I unravel the distribution of $Z$, I can obtain the density of $Z$ by taking the derivative of its distribution function with respect to $z$.


I have a question about the mathematical details of Ridge Regression and I have not been able to find a detailed explanation. For what I know the ridge regression is a penalty term that is used to penalize the parameters of a linear regression model (for example the weights in a linear model). So I always have seen the following equation (1):  and I found that the formula above originates from a algebraic formulation of the following optimization problem, equation (2):  I have read some material in which it says the equation 1 refers to the cost obtained from adding the RSS and the penalization of the weights. The problem that I have is how can I transform from equation 2 to equation 1? Also, and for not creating another thread, I have found this figure to explain Ridge regression:  and the explanation given is that the contour plots represents values of beta with equal RSS (likelihood) and that ridge regression pushes this contour plot to touch the inner blue ball that is in the center of the coordinates. At this point, I get lost, what does really the bull ball represents in this graph and why it says (in the readings I found) that the best value is within the blue circle? Thank you for your help and sorry for any misinterpretation that I might have in this question.


What distribution does $Y=\sin X$ have when $X\sim U(0,2\pi)$?

I understand that there are two solutions to $y = \sin x$, one for the case $y>0$ and $y<0$, the solutions being $(0, \arcsin(y)),(\pi-\arcsin(y),π)$ for $y>0$ and $(\pi-\arcsin(y),2\pi+\arcsin(y))$ for $y<0$.  Found that  on page 4.   I don't understand how to combine the solutions of the two cases in order to get the final distribution function of $Y$.


Why do both the mango and the bee have "Indica" in their binomial name?

In my textbook, it is written that the binomial name of mango is Mangifera indica and the binomial name of a bee is Apis indica. Now in the name the second part is the name of species. But mango and bee are not the same species. One is a tree and the o,ther is an animal. Then why is their second name the same?


How to derive the calculation formula of matrix norm from its definition?

Matrix norm is defined as  \begin{aligned}\|A\|&=\sup \left\{{\frac {\|Ax\|}{\|x\|}}:x\in K^{n}{\text{ with }}x\neq 0\right\}.\end{aligned}  How can we derive the following calculating formulas  \begin{aligned}\|A\|_{1}=\max _{1\leq j\leq n}\sum _{i=1}^{m}|a_{ij}|\end{aligned}  \begin{aligned}\|A\|_{\infty }=\max _{1\leq i\leq m}\sum _{j=1}^{n}|a_{ij}|\end{aligned}  \begin{aligned} \|A\|_{2}=\sigma _{\max }(A)\end{aligned}


What is the difference between following two implementaion,if no difference why we need Extension methods ? (public static List<TSource> ToList<TSource>(this IEnumerable<TSource> source);)  1.IEnumerable<Student> myExtension = mtyStudent; // "mtyStudent is colletion"     myExtension.ToList();  2.List<Student> myStudent= Enumerable.ToList(myExtension);


What kind of effect would cosmic expansion have on planetary motion or keplerian orbit?

The question is, if two following phenomena are thought to effect to the motion of the planet that orbits a star:   Celestial body is pulled by some massive star by ordinary Newtonian gravity:   $$ m \frac{d^2r}{dt^2} = -  G \frac{Mm}{r^2}   $$   There is additional radial velocity component   $$ \frac{dr}{dt} = kr\ ,\qquad k << 1 $$  or (linear approximation): $$ r(t) = r_0 (1+ kt) , k << 1\ , $$  that pulls the body $m$ away from the mass $M$ - and that is independent from the gravity (that means it happens also in zero gravity), what kind of solutions would these 2 rules give for orbits and can the orbits be stationary in some situations?    The Newtonian gravitation law only, when the mass $M \gg m$, would result a Keplerian orbit: $$ r(\theta) = \frac{a(1-e^2)}{1 + e\cos(\theta)}$$ that is circle, ellipse, hyperbola, or parabola.    Partial answers:  A. At least the circular motion equilibrium can be maintained at the start simply by demanding that the initial velocity of the body to be not exactly tangential, but have a small radial component inward:  $$ v_{initial} = v_{tan} + v_{r}\ , $$ where $$ v_{r} = -kr  $$  Now the radial component of initial velocity would cancel the radial velocity $kr$ at initial time. What would yield to the familiar equilibrium equation for circular motion:  $$ v^2/r = GM/r^2 $$  B. Also, when the planet is put into aphelion point of the orbit, where the Newtonian gravitation is in then minimum and according Newtonian gravitation law its velocity would be perpendicular to $r$ and in the minimum, the initial velocity should be slightly inward from the tangential velocity $v$, if this point would be the true aphelion point. From this initial condition, the first guess is that the resultant orbit or trajectory should be then somewhere between the aphelion circle $r_{max}$ and perihelion circle $r_{min}$ -at least during the first cycle.    The first guess for the orbit equation is simply: $$ r(\theta) = \frac{a(1-e^2)}{1 + e\cos(\theta)}(1+kt)$$ or $$ r(\theta) = \frac{a(1-e^2)}{1 + e\cos(\theta)}e^{kt}\ ,$$ if nothing else (e.g gravity of other planets, orbital decay, etc) effect on the motion.    The reason why I ask this question is that I would like to think what would happen if the cosmological expansion of the universe would effect on the celestial mechanics. I have read that this is not thought to be true however, cosmic expansion is not effecting the solar system. But if it would be true, the cosmic expansion would be described approximately by equations: $$r = r_0(1 + Ht) $$ that is linear approximation when $t$ is small, or $$ \frac{dr}{dt} = Hr\ , $$ which is another approximation when $t$ is small, whose solution is exponential function.   And the value for $H$ would be around $H = 2.20 \times 10^{-18}\, \mathrm{s}^{-1}$ or $H = 6.93 \times 10^{-11}\, \mathrm{year}^{-1}$, that is simply the Hubble constant is the units [1/s] and [1/year].  With this value for $k$, for example Earth-Moon distance 384000 km should  increase by 2.63 cm/year, and Earth-Sun distance $150\times10^6\, \mathrm{km}$ would increase by 10.4 m/year, if nothing cancels this effect.   The observed values are 3.8 cm/year (radar measurements) and 10.4 cm/year (That is 100 times smaller. I don't know how the value of AU is actually measured). The Moon-Earth system is thought to separate due to tidal forces, but it is unclear to me how much this effect really contribute to the increase of Earth-Moon distance.


What are the most expensive cars you can sell to Los Santos Customs?

I have gotten into the habit of stealing a car and taking it to Los Santos customs once an hour or so to sell. The prices have ranged from a lowly $1000 up to $8000 as the highest I've seen so far. What cars I should target to maximize this hourly profit? A top 5 list would be nice.


Change "copy of ..." when copying and pasting files in macOS Mojave

I have a file called "text.txt" and when copying and pasting into the finder a copy is created "copy of text.txt" is there any way to change this? that is, when copying and pasting is like this: "text_1.txt" or something similar?


Offline Installation of Chrome: target doesn't exist

I recently downloaded Chrome on Ubuntu 14.04 LTS. After extraction, google-chrome-stable (from chrome->usr->bin->...) says  the link "google-chrome-stable" is broken and its target "/opt/google/chrome/google-chrome" doesn't exist ...   What should I do?


What does it mean to say that $x \to c$, can $x$ and $c$ be both variables, can $x$ and $c$ be both constants?


I wanted to hack around with wicd so I went ahead, downloaded a tarball, removed the wicd packages on my system, and installed from source (with the no gnome extensions flag), but now I'm having issues reverting to the wicd package.  The installed-from-source version works OK, except for the fact that every time I restart my computer it prompts me to enter my password (which never happened with the package version). I tried using  sudo apt-get install -d wicd...andrandomrependencies   to download the wicd package, and then running the source's uninstall.sh, but I got the following error.  There does not appear to be an installation log present, most likely because you did not install Wicd from this directory.   That "most likely reason" is untrue, but even if I try installing wicd from source and immediately running uninstall.sh, I still get the error.  Worse still, the source version seems to take precedence over the package version- even with the wicd package installed now, I'm still getting that prompt on bootup to elevate the wicd daemon's privileges.  Do you know of any ways to properly uninstall wicd?


\rowcolor overwrites vertical table border

\documentclass[a4paper]{article} \usepackage[margin=0.5in]{geometry} \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage{amsmath} \usepackage{graphicx} \usepackage[colorinlistoftodos]{todonotes} \usepackage{colortbl} \usepackage{etoolbox} \usepackage{hhline}  %--------------------------------------------------------% %   BEGIN DOCUMENT %--------------------------------------------------------%  \begin{document} \begin{table}[] \centering \caption{Fruits!}\tabularnewline \label{my-label} \begin{tabular}{|c|c|c|c|c|}\hline \multicolumn{5}{|c|}{\textbf{Fruits}}                                                                                \\ \hline      & \multicolumn{2}{c|}{Billy}                          & \multicolumn{2}{c|}{Jean}                     \\ \hline Rank & Item                                             & Weight & Item                                      & Weight \\ \hline \rowcolor[gray]{.9} 1    & Apples.         & 0.331  & Oranges.  & 0.423  \\ 2    & Bananas.        & 0.170  & Strawberries. & 0.423  \\ \end{tabular} \end{table} %--------------------------------------------------------% %   END DOCUMENT %--------------------------------------------------------%  \end{document}   I'm using \rowcolor to color in certain rows of my table, but I notice that this causes some of the vertical borders to be covered. I've tried using the package hhline but it doesn't seem to help.


Getting an error when trying calling Json.deserialize on a Quote Object

I am trying to use Json.deserialize to a Quote Object and I am getting this error -  Invalid field class for SObject Quote.  This is my code -  Quote quote;     try {         quote = (Quote)Json.deserialize(quoteString, Quote.class);     }     catch(Exception e) {         return;     }


help with differentiable and continuous functions not just a point

Can anyone help proving that a function f:(a,b)->R that is differentiable on (a,b) not just a point, is also continuous on (a,b).  I was looking into taking an arbitrary point in (a,b) and using left and right limits somehow.


Where should I upload code which is too long to get posted?

I put a bounty on another question and someone , but the answer contains a .zip file, because Stack Exchange has a limit on the maximum post length and the code exceeds that. Problem: The .zip file is hosted on the author's own website, and that website might not be available anymore one day, and an important part of the answer will be lost. How should I deal with the situation? Ask the answer author to upload their code on GitHub?


Is there any WYSIWYG editor for these websites?

I'm not very comfortable with Markdown. Is there any way we can access a WYSIWYG editor for answers, with buttons for inserting the same content as Markdown can? On the Post Your Answer section, I see something that looks like a textarea and a toolbar.


How to check whether the mouse left button is down or not while mouse move?

I have a below situation.   function mousemove(e){ if(left button clicked){ //drag the element } else{ //show the tooltip } }   Initially i have binded the mousemove function. while mouse moving i need to check whether the left button is clicked or not. if clicked means i need to drag it. else means i need to show tooltip.  i searched a lot. i cant get the solution for all the browser, I need to do this for IE8,IE9,IE10,IE11,Chrome, firefox and safari. please help me... thanks in advance..


In ST:TNG episode "", we see that Wesley's nanites are dropped off on Kavis Alpha IV. Do we ever hear of these particular species of nanites ever again (perhaps in sources other than the TV series)?    doesn't give us much on this, basically what's below:     In 2366, nanites threatened the USS Enterprise-D with destruction of its main computer core during an experiment in the Kavis Alpha sector. After conflict with the crew of the Enterprise, and particularly the experiment's lead scientist Paul Stubbs, the nanites were relocated to Kavis Alpha IV, which Stubbs' influence had helped designate their new homeworld. The nanites left the Enterprise and began creating their own civilization on the planet. (TNG: "Evolution")


How to prove that $\lim \frac{1}{n} \sqrt[n]{(n+1)(n+2)... 2n} = \frac{4}{e}$

I'd like a hint to show that:  $$\lim \frac{1}{n} \sqrt[n]{(n+1)(n+2) \cdots 2n} = \frac{4}{e} .$$  Thanks.


Invalid pointer exception using pinvoke on libnfc for string values

I am trying to communicate with an NFC reader/writer on a raspberry pi 3 using dotnet core. I have to say that the different libnfc command line tools I used are all working fine (aka I can read and poll my tags, no problem on this side). The idea is to use dotnet core and C# to orchestrate the libnfc library and it seems to work fine except as soon as the function I call returns a string, I get the following error message: *** Error in `./NfcTest': free(): invalid pointer: 0x6d4ebc00 ***  NfcTest being the name of my app of course. Here is the pinvoke definition [DllImport("libnfc", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)] [return: MarshalAs(UnmanagedType.LPStr)] public static extern string nfc_version();  Please note that after looking up on the web I did add the [return] attribute myself but it did not change anything to the result. Same error is raised. The code of the nfc_version in libnfc is here:  It seems to return a "constant" and no do any freeing of any kind. So my guess would be that I misconfigured one of the attributes. Another example is that I call the following: [DllImport("libnfc", CharSet = CharSet.Ansi, CallingConvention = CallingConvention.Cdecl)] public static extern string nfc_device_get_name(IntPtr pnd);  While I can perfectly call other methods (i.e. poll) using the pointer (pnd param) calling this one returns the same error as with the Version method. Both methods returning a string are making me wondering if the problem would not be in the DllImport but I'm not too sure how to fix that. Link to lib code for that example:  Any wisdom would be greatly appreciated.


ArrayList size shrinking by 1 upon each method call

Quick question. I am currently making a synthetic division calculator and as a part of that I need to test whether or not a P/Q (a double) will work as a factor in an equation (given to the method as a list of integers).  Here is my code in the main class:  public static void main(String[] args) {     List<Integer> coeffs = new ArrayList<>();     coeffs.add(1);     coeffs.add(-6);     coeffs.add(11);     coeffs.add(-6);     System.out.println(coeffs); // Returns [1, -6, 11, -6]     System.out.println(doesPqWork(coeffs, 1)); // Returns 'true' as intended     System.out.println(coeffs); // Returns [-6, 11, -6]     System.out.println(doesPqWork(coeffs, -2)); // Returns 'false' not as intended     System.out.println(coeffs); // Returns [11, -6]     System.out.println(doesPqWork(coeffs, 3)); // Returns 'false' not as intended     System.out.println(coeffs); // Returns [-6] }   and here is the P/Q method itself:  private static boolean doesPqWork(List<Integer> coefficients, double PQ) {     List<Double> results = new ArrayList<>();     double lastResult = coefficients.get(0);     coefficients.remove(0);     for(int coeff : coefficients) // 2, 1     {         double multiplied = PQ * lastResult;         lastResult = coeff + multiplied;         results.add(lastResult);     }     return results.get(results.size() - 1) == 0; }   Please ignore how this method works to calculate it, I am only wondering why on earth the "coeffs" ArrayList is shrinking every time. I have been coding in Java for two years now and I have never come across this issue.  I thought that it was because when I call "coefficients.remove(0)" it is for some reason linking back to the "coeffs" list in the "main" method, yet when I create a new variable which would not possibly link back it still does weird thing.  I know a way I could fix this by creating some choppy code and repeating variables, but that seems really wasteful and I really want to know the source of this unintended behavior so I can fix it.  I am probably making a stupid mistake here, but if I am not then could someone please explain to me just what the heck is going on? Haha.


How to turn a Python file into exe [Python34]

I've got a problem here I don't know how to turn a Python script into an exe file. I tried using py2exe but the latest version they got is 2.6 and I need something that will work for version 34 (Which is the latest version of Python).  PLEASE HELP!


Add a link to the Help Center to the logged-out view

As an existing user, I can get help (such as "what's on topic here? oh yeah"):        But as a nonexistent user, I can't get help (such as "what's on topic here? uhhhhhh...."):        Let's help out the nonexistent users a bit, shall we? It'd help to throw a Help Center link into the top bar?   Us experienced users know to just navigate to /help, but most users probably won't try that.


Checking a solution to a problem about non-zero divisors in an associative algebra having multiplicative inverses

The following problem appeared on a problem set I'm working on: "Let $A$ be a finite-dimensional associative algebra with $1$ over a field $k$. Show that an element $a$ in $A$ has a multiplicative inverse if $a$ is not a zero divisor" (emphasis mine). I'd appreciate if y'all could check my solution to see that it's correct.  Let $a \in A$ not be a zero divisor. Then the map $T : A \to A$ given by $T : x \mapsto ax$ is an injective linear transformation from a finite-dimensional vector space $A$ to itself, as $\ker(T) = \{ x \in A : ax = 0 \} = \{ 0 \}$ by the assumption that $a$ isn't a zero divisor. Thus $T$ must also be onto, so in particular there exists a unique $b \in A$ such that $ab = 1$. Let us fix this $b$.  We know that $b$ is a right-inverse to $A$, so must show that it's also a left-inverse, i.e. that $ba = 1$. First, we wanna show that a right-inverse to $b$ exists, for which it'll suffice to show that $b$ is not a zero-divisor. If it were the case that $bx = 0$, then we'd have $a (bx) = (ab) x = 0$. But $(ab) x = 1x = x$, so $x = 0$. Thus we know that $b$ is not a zero-divisor, so there exists a unique $c \in A$ such that $bc = 1$.  It now remains to show that $a = c$. This follows as \begin{align*} a(bc) & = (ab) c \\ = a 1 & = 1 c \\ = a & = c . \end{align*} Thus $ab = ba = 1$, so $b$ can rightly be called a multiplicative inverse to $a$.  Is my solution correct? Thanks!


How do you take multiple named parameters in a function and pass them to a dictionary in python?

One of the coolest things I've learned about python recently is that a dictionary can take parameters like this: dict(red=3,blue=2,yellow=5)  How could I make a function that takes arguments in the same fashion and pass them to a dictionary? I don't want to declare red, blue, or yellow as individual parameters. Ideally, this would take in named parameters of any kind. I've already tried: def foo(*args):  ...and it doesn't like how the parameters are named. Another thought I had was extending the dictionary definition so I could still use init of the dictionary, but I wouldn't know how to do that either.


Squealing coming from laptop power supply?

I have an HP Pavilion dv7-6135dx. This morning, the power supply/AC adapter started making squealing noises for a few seconds at a time.  I had it plugged in during a storm that happened while I was sleeping. As soon as I got up and realized, I put it in a surge protector. As I type this, it seems to have stopped for the moment, but it was going on and off almost constantly a couple of minutes ago.  I'm assuming this means I need to replace the supply, but not sure if it actually means anything at all.  Running Ubuntu 15.04, it that's relevant.   EDIT: I should also mention that I had the laptop powering 4 usb devices (Keyboard, mouse, gaming controllers) for several hours yesterday. Again, don't know if this is relevant.  EDIT 2: As I start to use the laptop, I'm noticing that it seems to squeak a little bit when I pick up the mouse or start typing.


Bold type and font specification with fontspec

When I manually specify the Linux Libertine O font types fontspec should load, the bold type is significantly bolder than when I load the exact same font family as a system font.  MWE:  \documentclass{article} \usepackage{fontspec} \setmainfont % load font from path     [         Path = C:/Windows/Fonts/,         Extension = .otf,         UprightFont = LinLibertine_R,         BoldFont = LinLibertine_RB,         ItalicFont = LinLibertine_RI,         BoldItalicFont = LinLibertine_RBI,     ]     {libertine} \newfontfamily\libertinesystemfont{Linux Libertine O} % load font from system font  \begin{document} \LARGE{\textbf{A large heading in bold type}}  \textit{ABC\textbf{\underline{V\char"0306}}DE}.  \libertinesystemfont{ \LARGE{\textbf{A large heading in bold type}}  \textit{ABC\textbf{\underline{V\char"0306}}DE}. } \end{document}     Peeking into my .log file, I cannot detect anything that would explain why these font types look different:  ................................................. . fontspec info: "defining-font" .  . Font family 'libertine(0)' created for font 'libertine' with options [ Path . = C:/Windows/Fonts/, Extension = .otf, UprightFont = LinLibertine_R, . BoldFont = LinLibertine_RB, ItalicFont = LinLibertine_RI, BoldItalicFont = . LinLibertine_RBI, ]. .  . This font family consists of the following shapes:  [...]  . * 'bold' with NFSS spec.: . <->"[C:/Windows/Fonts/LinLibertine_RB.otf]/ICU:script=latn;language=DFLT;"  [...]  . * 'bold italic' with NFSS spec.: . <->"[C:/Windows/Fonts/LinLibertine_RBI.otf]/ICU:script=latn;language=DFLT;"  [...]  . Font family 'LinuxLibertineO(0)' created for font 'Linux Libertine O' with . options []. .  . This font family consists of the following shapes:  [...]  . * 'bold' with NFSS spec.: . <->"Linux Libertine O/B/ICU:script=latn;language=DFLT;"  [...]  . * 'bold italic' with NFSS spec.: . <->"Linux Libertine O/BI/ICU:script=latn;language=DFLT;"


Subfigure using subcaption within enumerate is not indenting

I'm trying to put two images with the subcaption package side by side in an enumerate environement. This works fine, however the indent is not correct. Here is my code:  \documentclass[10pt,a5paper]{book} \usepackage[demo]{graphicx} \usepackage{epstopdf} \usepackage{subcaption} \usepackage{enumitem}  \begin{document}  \begin{enumerate}[label=\alph*)] \item first item \item second item \item     \begin{figure}[htb!]     \centering     \begin{subfigure}[b]{0.40\linewidth}         \includegraphics[width=\linewidth]{figures/fig1.eps}         \caption{}         \label{fig1}     \end{subfigure}     \hspace{0.05\textwidth}     \begin{subfigure}[b]{0.40\linewidth}         \includegraphics[width=\linewidth]{figures/fig2.eps}         \caption{}         \label{fig2}     \end{subfigure}     \caption{(a) fig1 (b) fig2}     \label{fig1and2}     \end{figure} \end{enumerate}  \end{document}   Similar problems were discussed here:   (I do not want to use the subfig package as it stands in conflict with subcaption package)   (only one image is subject to the procedure)  Thank you for your help!


I have a requirement in which I have to create a custom lookup field on lead object which selects the account  Account__c and during the lead to account conversion I have to map the field with 'Parent Account' field of  the account which is a standard field.So i am trying to write the code  on before insert trigger that maps the custom lookup field of lead to the standard field of account.  trigger populateParentAccount on Lead(after Update) {     List<Account> newAccList = (List<Account>)Trigger.New;       List<Account> updateAccontList = new List<Account>();       Set<Id> accountIds = new Set<Id>();   system.debug('newAccList: ' + newAccList);           for(Lead record: [SELECT ConvertedAccountId, Agency_Account__c FROM Lead WHERE ConvertedAccountId = :newAccList]) {         // Avoid multiple leads with same account          system.debug('ConvertedAccountId:' + record.ConvertedAccountId);         system.debug('record:' + record);         if(!accountIds.contains(record.ConvertedAccountId)) {            updateAccontList.add(new Account(Id=record.ConvertedAccountId, ParentId=record.Agency_Account__c));           accountIds.add(record.ConvertedAccountId);        }       }       if(!updateAccontList.isEmpty()){           update updateAccontList;       }     }


Is it unsafe to keep youtube code in database

I'm building a website for a friend, and he basically wants to be able to add some youtube videos to his page from time to time.  Trying to keep it simple, and not time consuming, I wanted to simply store the "share video" embed code from youtube.com in the mySql database and simply echo it in the right container using php.  So obviously,  there will be a moment where the embed code is going to be saved in the database using post ( in a session / htaccess password protected admin page )  And there is also a moment where a query will be made to print it in the website document.  MY QUESTION IS : Is this a dangerous practice?  Is there risk of sql failure/injections that could be caused by, let's say the slashes contained in the string ?   example of the saved code :    Thanks a lot Martin


Bug: unable to handle kernel NULL pointer dereference at

I have recently installed new system on my disc, Ubuntu 12.04. Installation proceeded without problems, I started installing additional software and put data from other discs.  I had already two times bug report, it was quite long, and I have no idea how to acces to log file (which probably is somewhere saved) and since I had to switch off the computer using the button, anything else was possible, here is just a small part of it (what I've noted on paper)  could not write bytes: Broken pipe speach dicpatcher disabled: edit etc/default/speach-dispatcher saned disabled: edit ....  and than:  BUG: unable to handle kernel NULL pointer dereference at 0000009c  I've run Memory test in GRUB, everything is fine. First time it occured when I was using rsync, second time when I was trying to install texlive. Should I install whole system once again? Or can it be hardware problem? Or something else? If there is any hardware details which may be relevant, please ask, since I have no idea what is happening, I don't know what kind of information could be useful. Thanks P.S.


installing wifi drivers on 2006 white imac

I recently purchased an imac on ebay and installed ubuntu on it but ther is no wifi available.I ran the command to find out the wifi card and this is what i got.                                   michael@michael-iMac:~$ lspci -nnk | grep -iA2 net 02:00.0 Ethernet controller [0200]: Marvell Technology Group Ltd. 88E8053 PCI-E Gigabit Ethernet Controller [11ab:4362] (rev 22)     Subsystem: Marvell Technology Group Ltd. Marvell RDK-8053 [11ab:5321]     Kernel driver in use: sky2 03:00.0 Network controller [0280]: Broadcom Corporation BCM4311 802.11a/b/g [14e4:4312] (rev 01)     Subsystem: Apple Inc. AirPort Extreme [106b:0089]     Kernel driver in use: b43-pci-bridge michael@michael-iMac:~$    Could someone please provide me with with the terminal command to install the drivers to make wifi available on the mac. Thank you in advance.


Restore bak file to smaller mdf and ldf database files

I have a legacy database whose nightmarish lack of design I will not get into here, but the files on the server are (relatively) enormous. I have:  MyDatabase.mdf: 24.8GB MyDatabase.ldf: 114.6GB  This database is backed up to a .bak file every night and shipped over to our reporting server, where it's restored. The .bak file is much smaller at only 1.8GB.  However, when I try to restore it on the reporting server, it fails due to insufficient space. There are around 100GB free on the server, and it's trying to eat up the entire 139.4GB that the files consumed on the original server. Unless my knowledge of compression is horrifically wrong, I'm fairly confident that the 1.8GB file is not actually expanding by 7400%.  My Question: Is there any way to tell SQL Server to restore this backup file without reserving that space upfront? I do not care about any of the logs; I just need the data to be there. I understand databases from the development and schema perspective, but I am by no means any sort of DBA.  This is on SQL Server 2008 R2. Thanks for any help or suggestions.


food safety regarding re freezing twice cooked chicken

I am defrosting a cooked chicken to use in a curry it will be thoroughly heated at a high temperature. If I have too much curry will i be able to freeze it, as the cooked chicken was frozen before?


How to disable the creation of Thumbs.db file?

I am using Windows XP. Every time I delete a folder which contains Thumbs.db file, I get a message: Thumbs.db is a system file and then it allows me to delete it. Can I disable the creation of Thumbs.db file from the beginning itself?


I'm aware that the Pollard-Strassen algorithm can be used to find all prime factors of $n$ not exceeding $B$ in $O\big(n^{\epsilon} B^{1/2}\big)$ time. This is really useful because I need to find all factors less than $n^{1/3}$ to determine if n is squarefree, which could therefore theoretically be done in $O\big(n^{1/6+\epsilon}\big)$.  However I can't find anything more than a brief overview of the algorithm itself, let alone a worked example. Could anyone provide a detailed explanation or example, or reference to where I can find one? Additionally, I'm interested in other algorithms, if they exist, which provide all factors not exceeding $B=\big\lceil n^{1/3} \big\rceil$ quickly.


How to create a color of the same brightness and saturation?

Let's consider three colors: Red, Green and Blue. For blue I created a specific shade, something like #F2F5F7. If you see this color, it has a certain level of shade, brightness and saturation value of blue.  I want to create the same equivalent color but for Green and Red, how to get that?


Given any uncountable subset $S$ of the unit interval. Then $S$ clearly has an accumulation point and indeed uncountably many (which might also be a nice exercise). So my question is: Is there an accumulation point, that again lies in $S$?


Updating a field on record detail page with Lightning button

I am stuck with issue in Lightning. I want to do a field update on record page on click of a button, and will be showing a message to user on successfully updation of that field.   Lets say, I am doing this on Opportunity object. There will be a button on page layout, which will have some logic (if A then Alpha, if B then Beta) for updation of that status field and on click of button, it will update that field and will show a toast(even alert will be ok) to user.    Now, I am able to do this with existing ajax toolkit if we go by traditional approach. Even I succeeded in creating a lightning action, which will update a field(by taking its ID by using force:hasRecordId interface) based on some conditions and have added "window.location.relad()" in its controller to reload it.   However, ideally it should do things in background(without having a window), and refresh/reRender its detail page, so as to show the updated value and on updation, it should show a toast to user.   The main concern is -    Displaying updated field on detail page(no VF/lightning component) without refreshing the page, so that I can show toast there.  How to avoid component window, on click of lightning action on record detail page.    If you have any solution please let me know.    Thanks in Advance!


remote ssh tcpdump command, through a gateway, to be opened, in realtime, in Wireshark, on local machine

I (Host A - Windows based using plink) am trying to connect to a remote linux server (Host C), through a gateway linux server (Host B), and run this tcpdump on Host C to be piped all the way back to Host A (through Host B I assume), and opened, in real time, with Wireshark on Host A:  Below is what I saw as the command when not using a gateway ("direct remote fetch").  So, how would I make this work going through my gateway host B scenario above?  Host A$ plink.exe -ssh -pw abc123 root@Host C "tcpdump -s0 -U -n -w - -i eth0 not port 22" | "C:\Program Files\Wireshark\Wireshark.exe" -k -i -


Identification: a story about an entire spaceship converted to anti-matter

A novel of Russian author. Presumably, published in 1980s. An expedition to a remote galaxy on its way back to the Earth encounters a strange phenomena. During the passage through a "cloud" of some kind, the entire spaceship, with all passengers, is converted to anti-matter.   The characters realize this and the conclusion is appalling - they can't get back home. Author describes behavior of people then - some continue discovering ways to reach the Earth, some get embittered, one of the characters starts drinking.


In Random Forest, cross-validation can be avoided using the out-of-bag sample?

I have heard that the main reason to use out-of-bag sample(OBB) over CV is that OOB is faster to implement and usually gets the same results(for tuning the hyper-parameters) as implementing CV when the Random forest model is used.   If this isn't true, in which cases using CV gives better results?


Why do objects appear smaller when farther away?

Why does the apparent size of an object change when it is farther away from me compared to when it is closer to me?  Can someone perhaps explain this through an optics perspective?


Round corners (fillet) in Illustrator CS6

I have the following figure in which I need to make a fillet to each its corners:   Is there some tool to avoid doing this manually? I tried the Effect > Stylize > Round Corners tool but it apply the roundness also to the circles. I'm using the CS6 version of Adobe Illustrator.


Prove that $f(x)=x\sin(x)$ is not a uniformly continuous function

I have this problem, and im really lost here, i need to show that. $f(x)=x\sin x$ is not an uniformly continuous function.


C# error: Use of unassigned local variable

I'm not sure why I'm getting this error, but shouldn't this code compile, since I'm already checking to see if queue is getting initialized?   public static void Main(String[] args) {     Byte maxSize;     Queue queue;      if(args.Length != 0)     {         if(Byte.TryParse(args[0], out maxSize))             queue = new Queue(){MaxSize = maxSize};         else             Environment.Exit(0);     }     else     {         Environment.Exit(0);     }      for(Byte j = 0; j < queue.MaxSize; j++)         queue.Insert(j);     for(Byte j = 0; j < queue.MaxSize; j++)         Console.WriteLine(queue.Remove()); }   So if queue is not initialized, then the for loops aren't reachable right? Since the program already terminates with Environment.Exit(0)?  Hope ya'll can give me some pointers :)  Thanks.


Where to ask Linux general questions about HW stuff?

I would like to understand how an Internet Box, based on Linux, is designed. It's  made by a quite big operator in France; .  I'm sure I cannot post it to , but which is an appropriate site to ask this question? Reverse Engineering?


Sorry, I do not know the language terminology. Is this a case of nonessential appositive?  Which of the following sentence has a correct comma use? Comma before "should"  Importantly, two frail subgroups of stroke population, long-term residential care and cognitive impairment patients, should not be excluded from the rehabilitation.  No comma before "should"  Importantly, two frail subgroups of stroke population, long-term residential care and cognitive impairment patients should not be excluded from the rehabilitation.


If I reset my last commit using git reset --hard HEAD^, how do I undo the reset?  I don't have anything more to ask, but apparently there are length requirements for this message. I'm just writing more here to pass the quality standards.


I have a Lappierre Zesty 314  (2012). I'm running XT rear mech, an SLX front mech, my crank is XT, rear cassette is XT and XT chain. I went to the Forest of Dean and after the day was over I snapped my chain! I picked up a SRAM chain for my bike and now when I pedal hard it slips with a big bang. I have new Eastern Havens so my hub is fine. Can you help with any ideas to help me solve this? Shall I get a new rear cassette?


I wanted to make a function that rotates a 2-dimentional list in python like so: input: [[0,1,2,3],[0,1,2,3]] output: [[0,0],[1,1],[2,2],[3,3]] I wanted to first create a list with placeholder None values so I could easily put in the values later. I came up with this code: matrix = [[0,1,2,3],[0,1,2,3]]#debugging value, will be an argument of the function.  output = [] row= [] for x in range(len(matrix)):     row.append(None) for x in range(len(matrix[0])):     output.append(row)  So, this creates a nice starting point to now organise the data, but now something weird happens. If I now try to run something like output[0][0] = 5, the output variable suddenly has the following values: [[5, None], [5, None], [5, None], [5, None]], while this line should only affect the first list in the list. Even stranger, now the value of the temporary list row is [5, None]. The line should not affect this variable at all. Am I missing something, or is this a bug in Python? I tried this on Python 3.7.6 on windows and Python 3.8.2 on Linux. Can someone please help me with this?


I thought this was simple: I went to list settings --> Information Management Policy Settings, clicked on "item", and on the "edit policy" screen I selected to "enable auditing" and then selected two events: "editing items" and "checking out or checking in". After setting this up and adding and editing some list items, there was nothing in the audit logs (site settings --> audit log reports --> content modifications).   Then, I enabled auditing via site settings --> site collection audit settings, and checked the "editing items" box. At this point, all lists/libraries were being audited and the report had data for all lists/libraries.   So, what exactly does the "enable auditing" in the list settings do? What else do I need to do to audit one particular list?  I tried this in both SharePoint 2013 Enterprise on-prem as well as Office 365 with the same results.


Trying to rename a postgres database:  $ psql -d some_other_database some_other_database=# ALTER DATABASE myapp_development RENAME TO myapp_development_old some_other_database-# \l                 Name                |  Owner  | Encoding |   Collate   |    Ctype    |  Access privileges ------------------------------------+---------+----------+-------------+-------------+---------------------  myapp_development                  | rails   | UTF8     | en_US.UTF-8 | en_US.UTF-8 |   No feedback whatsoever after ALTER DATABASE...!  I am logged in as a Superuser and not aware of any current connections (but not sure how to be certain of that). What am I missing?  Edit: I erroneously transcribed my prompt in my original question so 2nd line had =# when, indeed (thanks Daniel), it should have had -#. Fixed above, now.


Using 'an' before a vowel/vowel sound in a quote

Should “an” or"a" be used before words in a quotation that start with a vowel sound?  An example would be... It is part of a 'everything is fine' narrative that will do more harm than good.


Did the date of Frodo's rescue out of the fire of Mordor have any particular meaning in The Lord of the Rings?  We read in The Return of the King (Book 6 Chapter 4) that Gandalf states to Frodo and Sam:     The fourteenth of the New Year, or if you like, the eighth day of April in the Shire reckoning. But in Gondor the New Year will always now begin on the twenty-fifth of March when Sauron fell, and when you were brought out of the fire to the King.   Did Tolkien have any particular reason for choosing this date for Sauron's fall and Frodo's rescue out of the fire of Mordor, either allegorically or otherwise?  We are aware that Tolkien was not a fan of , but preferred the term applicability instead.


How to curve my subdivided mesh along it's y axis

I have a simple mesh that i have subdivided along its y-axis, i want to curve it along an arc but i can't find the way to do it with a modifier, how exactly can i curve it along an arc?


Can we differentiate a differential equation to determine its order and degree?

It is known that we must need to convert the differential equation in polynomial equation of differential coefficients. But Can we differentiate a differential equation (whose degree is not defined) to determine its order and degree ? Example to show my doubt clearly: $y''=e^{y'}$ Above differential equation has its degree undefined. Differentiating it with respect to $x$ $y'''=(y'')^2$ So we may conclude that this is third order differential equation with degree $=1$ I know that on differentiating a differential equation number of arbitrary constants of solution equation increases hence we should not differentiate a differential equation in general. But I did not found a reference which states that we cannot differentiate a differential equation to determine its order and degree so I want to confirm my thoughts.


(Pardon me if this is a duplicate.  I did try to find one but I am apparently not good at navigating Meta.)  On  I experienced something I don't think I've seen before.  I posted an answered and edit it three minutes later.  Instead of the edit being combined with the original as it usually is it appears as a separate edit.  The post in question is:      The timestamp of the original is 02:23:23Z and the timestamp of the edit is 02:26:37Z.  Did I do something unusual to produce this result?


I need to typeset a block matrix that is made of a 2X2 structure of blocks such that the (1,1) block and the (2,2) blocks are zero and the (1,2) and the (2,1) blocks are non-zero (and happen to have a band structure of 5 diagonals). If I were writing this matrix on a blackboard, I would put a big zero  in the middle of the zero blocks, perhaps separate the blocks out with a horizontal and vertical line and also put big zeros in the 4 triangles that form around the band structure. I would also have diagonal showing the band structure.  My knowledge of LaTeX allows me to place \vdots, \hdots and \ddots inside an array but this is less than satisfying. Is there a nice solution for making beautiful band structured matrices?


Adding feature class into ArcGIS 10.3 mxd using python script

I am trying this simple task to add a feature class to an mxd (ArcGIS 10.3) but getting few errors. Here are two options I tried.  1) Preferred option - adding feature class itself into a active dataframe of the current mxd. I used the script below:  import arcpy  mxd=arcpy.mapping.MapDocument("CURRENT")  DF=mxd.activeDataFrame  arcpy.mapping.AddLayer(DF,"C:\Work\GP1500\Tests\Input.gdb\Poly1","TOP")   The addLayer line generates the error below ......  assert isinstance(add_layer, Layer) AssertionError  2) Create a layer from the Feature class and add the layer using the script *****  import arcpy  mxd=arcpy.mapping.MapDocument("CURRENT")  DF=mxd.activeDataFrame  FC="C:\Test.gdb\Test_Poly1"  arcpy.MakeFeatureLayer_management(FC,"TestPolyLayer")  inputlayer =arcpy.mapping.layer(TestPolyLayer)  arcpy.mapping.AddLayer(DF,inputlayer,"TOP")   ******It generates the error while executing the second last line i.e. to define input layer with following message AttributeError: 'module' object has no attribute 'layer'  Note: the second option i used is after I saw Nick's reply in


I've been dealing with various problems after re-installing QGIS and other GIS-related software (see ).  The solution worked for a bout a day and now I lost the processing tool again. An other error message appeared when opening QGIS:  Impossible to load processing plugin provokes error when calling classFactory()  UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 18: ordinal not in range(128)   Traceback (most recent call last):   File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 306, in startPlugin     plugins[packageName] = package.classFactory(iface)   File "C:/Users/F�lix/.qgis2/python/plugins\processing\__init__.py", line 37, in classFactory     from processing.ProcessingPlugin import ProcessingPlugin   File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import     mod = _builtin_import(name, globals, locals, fromlist, level)   File "C:/Users/F�lix/.qgis2/python/plugins\processing\ProcessingPlugin.py", line 47, in      if cmd_folder not in sys.path:   File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 58, in showWarning     "warning:%s\ntraceback:%s" % (warnings.formatwarning(message, category, filename, lineno), stk), UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 18: ordinal not in range(128)   Also, I have a second error when trying to re-install the processing extension through QGIS.  ImportError: cannot import name defaultOutputFolder   Traceback (most recent call last):   File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 281, in loadPlugin     __import__(packageName)   File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import     mod = _builtin_import(name, globals, locals, fromlist, level)   File "C:/Users/F�lix/.qgis2/python/plugins\processing\__init__.py", line 28, in      from processing.tools.dataobjects import *   File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import     mod = _builtin_import(name, globals, locals, fromlist, level)   File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\tools\dataobjects.py", line 35, in      from processing.core.ProcessingConfig import ProcessingConfig   File "C:/OSGEO4~1/apps/qgis/./python\qgis\utils.py", line 572, in _import     mod = _builtin_import(name, globals, locals, fromlist, level)   File "C:/Users/F�lix/.qgis2/python/plugins\processing\core\ProcessingConfig.py", line 32, in      from processing.tools.system import defaultOutputFolder ImportError: cannot import name defaultOutputFolder   Any ideas on how to solve this one?


Group permissions for root not working in /tmp

I experience a strange behaviour in my /tmp directory. Although a user belong to a group has permissions to read/write a file, he cannot do so.  In this example, I create a new file /tmp/test.txt as user max. I give it the 777 permissions and make the file belong to the group root, but user root still cannot edit it.  su max touch /tmp/test.txt chmod 777 /tmp/test.txt  su root chown max:root /tmp/test.txt  # ls -l /tmp/test.txt  -rwxrwxrwx 1 max root 0 26. Feb 12:08 test.txt  # echo "foobar" > /tmp/test.txt bash: /tmp/test.txt: Permission denied   When moving test.txt to a different directory, everything works as expected.  /tmp is a tmpfs mounted via fstab via the following options:  tmpfs       /tmp    tmpfs   nodev,nosuid,size=5G    0 0   When running ls -l /, the tmp folder looks like the following:  drwxrwxrwt  20 root root   640 26. Feb 12:01 tmp/   I am running Manjaro, an Arch Linux derivate.  Did I do something wrong with mounting tmpfs?


This might be obvious but I don't understand why RS-232 needs a stop bit. I understand that the start bit is necessary to notify the other end about the beginning of a transmission.  Let's say we are communicating at 9600BPS. We go from high to low, so that the receiver will know something is coming. The receiver also knows that we are at 9600BPS and it will receive 7 bits of data in total.  So, after receiving 7 bits, the transmission will end. Since we can determine the end of the transmission just by calculation, why do we need a stop bit as well?


How do I treat an ASCII string as unicode and unescape the escaped characters in it in python?

For example, if I have a unicode string, I can encode it as an ASCII string like so:  >>> u'\u003cfoo/\u003e'.encode('ascii') '<foo/>'   However, I have e.g. this ASCII string:  '\u003foo\u003e'   ... that I want to turn into the same ASCII string as in my first example above:  '<foo/>'


I can't understand what these are even though I've read articles about them.  Does it have something to do with 32 bits and 64 bits CPU? So why is it saying "AMD"64 and "i386"?  AMD is a label just like Intel? So, if I've got an Intel Core 2 Duo (MacBook Pro), then I can't use AMD64 even though Intel Core is 64 bits.


How do I create a new folder using a keyboard shortcut?

Does anyone know the shortcut key to create a new folder in Windows Explorer and in Finder?  Also, does anyone know the shortcut key to create a new folder on the desktop?  (I'm using windows vista and mac os x)


Printing two pages per sheet from the command line

Say I start off from a PDF document, say of 12 pages, viewed with evince.  To produce another PDF of 6 sheets, with a page setup of two pages per side,  I normally use the "Print to File" device listed in the ^P dialogue window. This works out pretty neatly.  I would like to translate this operation for the command line.    To my understanding, this is not an operation that pdftk can do. Please cross check. The  command lp, which would accept the option -o number-up=2, does not recognize any device called "Print to File", which indeed does not show up in lpstat -p -d. I am aware of the post . I have installed cups-pdf whereby a new printer named PDF is acknowledged. However, the print quality of a simple text file is way too raw (for example, no print margins to start with). Moreover, if I reprint an existing PDF file on this device, say lp -p PDF existing.pdf, evince can't even manage to open that copycatted output, while this is not the case with the "Print to File" way. I had a look at man evince. At the bottom, it touches upon a few print preview options and redirects to a . Admittedly I am not able to make sense and use of it.    Is there actually a way to combine the flexibility of the command line with the print quality that I obtain from that "Print to File" option in the GUI  evince?   My test case, again, would be to create from the command line a PDF out of a source document printed with two pages per sheet.  Thanks for thinking along.


I created a presentation using the beamer class with texmaker. Right now it looks like this:    Now I would like to include a jpg where the red circle is located, so basically inside a palette. Can anybody help me how to do that?  The code:  \documentclass[t,compress,10pt,xcolor=dvipsnames]{beamer}  \usepackage{lmodern} \usepackage[labelformat=empty,labelsep=none]{subfig} \usepackage{caption} \usepackage{float} \usepackage{wrapfig}  \newcommand*\oldmacro{}% \let\oldmacro\insertshorttitle%  \renewcommand*\insertshorttitle{%   \oldmacro\hfill%  \insertframenumber\,/\,\inserttotalframenumber}  \definecolor{UniDunkel}{RGB}{73,142,137} \definecolor{UniHell}{RGB}{142,184,182}  \setbeamertemplate{blocks}[rounded][shadow=true] \setbeamercolor{structure}{fg=UniDunkel}  \setbeamercolor{block body}{parent=normal text,use=block title, bg=block title.bg!10!bg} \setbeamercolor{block body alerted}{parent=normal text,use=block title  alerted,bg=block title alerted.bg!10!bg} \setbeamercolor{block body example}{parent=normal text,use=block title  example,bg=block title example.bg!10!bg}  \setbeamercolor*{palette primary}{use=structure,fg=white,bg=UniDunkel!115} \setbeamercolor*{palette secondary}{use=structure, fg=UniHell,  bg=UniHell} \setbeamercolor*{palette tertiary}{use=structure,fg=white,bg=UniDunkel!115} \setbeamercolor*{palette quaternary}{fg=Orange}  \setbeamercolor*{sidebar}{use=structure,bg=structure.fg} \setbeamercolor*{palette sidebar primary}{use=structure,fg=structure.fg!10} \setbeamercolor*{palette sidebar secondary}{fg=white} \setbeamercolor*{palette sidebar quaternary}{fg=white} \setbeamercolor*{titlelike}{parent=palette primary}  \setbeamercolor*{fine separation line}{}  \setbeamercolor{block title}{use=structure,fg=white,bg=structure.fg!0!red} \setbeamercolor{block title alerted}{use=alerted text,fg=white,bg=alerted text.fg!0!white} \setbeamercolor{block title example}{use=example text,fg=white,bg=example text.fg!0!white}  \useoutertheme{miniframes} \useinnertheme{circles} \setbeamertemplate{footline}[frame number]  \beamertemplatenavigationsymbolsempty  \begin{document}  \section{Section1} \subsection{Subsection1} \frame { \frametitle{Frame1} }  \section{Section2} \subsection{Subsection2} \frame { \frametitle{Frame2} }   \end{document}


Can anyone give an explicit formula for the area of a cyclic pentagon in terms of its sides? Just like Herons formula, and Brahmaguptas formula,  I hope there exists a similar formula for cyclic pentagons.    A proof would be especially appreciated. Thanks :)


Can I remake a game I don't own any copyright to?  There's a online browser game which I played 5 years ago. Some time ago, this game was shutdown because its developer went bankrupt. I want to re-make this game and provide it to Web again. Can I do this? Or there's some copyright problem or something like this?


What is a word for the sensation when during a conversation you realize you were both talking about different things?

Inspired by  (text is below), I have sometimes wondered if there is a word for the feeling that a person you were talking to about a particular subject was using the same words as you, but was actually talking about something else, or was leading into a very different and seemingly unrelated subject. Typically, you feel like the person is crazy by this point.  Is there a single word for this? Is there a two- or three-word phrase, maybe?    The chat message:     There should be a word for that double-take sensation you get when you realize the conversation is further down the rabbit hole than you thought. Like when you are having what you think is a normal chat about interest rates, or something, and the other person mentions that we're all controlled by lizards from space.


A bound for a holomorphic function in the unit circle

Suppose that $f$ is a holomorphic function in the unit circle $B(0,1)$ and $f(B(0,1))\subseteq B(0,1)$. Prove that $$\left| f(z)-\frac{f(0)(1-|z|^2)}{1-|f(0)|^2|z|^2} \right| \leq \frac{|z|(1-|f(0)|^2)}{1-|f(0)|^2|z|^2}$$ I know that I probably need to construct another holomorphic function and use the  or the , but I don't know how.


Using \in with uppercase letters does not look good

I have the following Latexcode:  \begin{equation} \mathscr{G} = A_{polygon} - \sum \limits_{C \in \Xi} A(C) \end{equation}   However, the sum index looks bad in my eyes, as the "is element of" sign is a little lower than the other two letters. It looks badly aligned.  Is there a way to fix this? I don't want to change to to smaller case letters as I have a convention for letter cases in my document.  edit: I've added a picture    I'd like the element sign to be above the red line i.e. vertically centered with C and Ξ.


Best lens for surf photography from the beach

I have a cannon EOS 60D with an EF-S 18-200 lens. This lens is not good enough for clear pictures at the extent of its zoom. Which lens 400-600 would offer the best value for money: picture quality, speed and lastly portability? Thanks!!


How to calculate largest integer that cannot be represented by a linear combination 6a+7b?

How to calculate largest integer that cannot be represented by a linear combination $6a+7b=x$ if $x$ is the integer?


Me and my friends are making a game in minecraft and are using tellraw. How do we use @p in tellraw because we cannot find it anywhere! Thanks


Simpler way to compute a definite integral without resorting to partial fractions?

I found the method of partial fractions very laborious to solve this definite integral : $$\int_0^\infty \frac{\sqrt[3]{x}}{1 + x^2}\,dx$$  Is there a simpler way to do this ?


javascript regex to validate alphanumeric character in an input field

I want to check whether my userid is having any special character apart from alphanumeric characters (a-z,A-Z,0-9). The below regex is failing...what would be the correct way?   var testStr = '3278|3278.3000.2506.60200000.1100.000.0000.0||703"68*[70"8'; var splitTeststr = testStr.split('|'); alert(splitTeststr[0]); /* alert('Length of splitStr is : ' +splitTeststr.length); */ if (splitTeststr.length == 4) {     var userId = splitTeststr[3].trim();     alert('userId before removing junk : ' +userId);     var letterNumber = /^[0-9a-zA-Z]+$/;          if((userId.match(letterNumber))){         alert('UserId contains junk : ' +userId);              }else{         alert('Userid is fine');     } }


How do I remove Candy Crush Saga from Windows 10?

Windows 10 comes with "Candy Crush Saga" preinstalled, but I do not want it on my system. How do I remove it?


Should I write off my time invested in developing a business

Last year was my first year in business.  I spent a good chuck of time developing my business plan, designing the company website, and developing policies and procedures for my employees.  I'm about 65% done with everything needed before actually getting clients.  I will be calming a loss this year on my business taxes.  The business is a registered LLC and I am the only member (thus pass-through taxes).  Should (and can) I write off my time spend on the business as a loss as well?  If so, how would I determine the pay rate and document such activity legally?  Thanks in advance for your help!


How do I manually sort Chrome's Smart Bar results?

I use Chrome as my default browser. This includes my browser for work.  We have a trac setup that uses folder paths (see example) for the different projects  Example:   main.employertracsite.com/projects/projectname   I want the ability to manually sort the results that are displayed in the auto-complete.  Chrome displays auto-complete based on the usage history of a web address. Which means that a project that isn't my main focus is displayed in the url instead of the one that I've been using more lately.  Example:   main.employertracsite.com/projects/alliance is the project that I'm not using all the time anymore and is showing up in auto-complete main.employertracsite.com/projects/horde is the project that I am using more often now and want to show up in the auto-complete   I don't want to delete the alliance from my history, but I do want the ability to be able to manually adjust which project shows up in auto-complete. This will be more usable for me in the future because I'm constantly on different projects full-time and they each have their own area.  I also do not want to delete my history.


The plane minus $n$ points deformation retracts onto...

I know that $\mathbb{R} ^ 2$ minus a point deformation retracts onto a circle What I'm looking to prove is that $\mathbb{R}^2$ minus $n$ points deformation retracts onto the wedge sum of $n$ circles, without explicitly stating the deformation retraction I can see it by drawing it, but I'm not sure how to go about proving it. I thought about proving that since $\mathbb{R} ^ 3 $ minus parallel lines is homeomorphic to $\mathbb{R}^2$ minus $n$ points and since  $\mathbb{R} ^ 3 $ minus parallel lines deformation retracts onto the wedge sum of $n$ circles then so does $\mathbb {R}^2$ minus $n$ points, but in this case I dont know how to prove that $\mathbb{R} ^ 3 $ minus parallel lines deformation retracts onto the wedge sum of $n$ circles Any help would be much appreciated


I have trouble with the verb 'wish'. Searching this website, I could not find an answer to my questions, which is 'when we use past simple and when would?' a) I wish I would live in LA --> This is a wish for the future. b) I wish I lived in LA --> This is a regret that I, currently, do not live in LA. So, for me, it seems that we can use would with action, durable verbs if we want something to happen in the future, and past simple with stative, durable verbs when we are not satisfied with the current situation (yet we know the changes are probably unreal). Also, I have heard that we use wish + would only when we are annoyed about something and want it to change, but with the word 'only' it does not sound like the truth.


Is there an easy way to test alchol content after brewing wine?

I'm making blackberry wine, is there any cheap and easy way to find the alcohol content after brewing? (Ive lost my barometer reading from before)


Casting Trigger.New to List in Trigger Framwork

We are using a trigger framework by  and I have a basic question about it. Why when I use Trigger.New inside one of the methods I have to cast it to a List of cases in order to use it?   public class CaseTriggerHandler extends TriggerHandler {      public CaseTriggerHandler() {         this.setMaxLoopCount(35);     }      private static Boolean isMethod1 = false;      protected override void beforeInsert(){         if (!isMethod1) {              method1(Trigger.new);              isMethod1 = true;         }      }      private void method1() {          for(Case c: (List<Case>)Trigger.New) {}      //<------------------      } }   If I write for(Case c: Trigger.New) then I get this error:     Operation: Compiling: C:\Users\Dante\proj\src\classes\CaseTriggerHandler.cls   Timestamp: Sun, 27 Aug 2017 18:29:00      Result: [OPERATION FAILED]: classes/CaseTriggerHandler.cls: Invalid loop variable type expected SObject was Case (Line: 1324, Column: 9)   Can someone explain?


What are the artistic reasons to shoot "Curb Your Enthusiasm" in a higher frame rate?  It gives me the impress I am watching an old show.


Is every inhabited planet within Federation space a member?

The UFP consists of approximately 150 member planets and most maps show the territory it covers to be about a quarter of the Milky Way.  Given that the Star Trek universe has no shortage of worlds inhabited by sentient races, and actual  estimating the number of intelligent races in the galaxy puts the upper bound in the millions, it seems that there are probably more than 150 planets inhabited by sentient races within Federation space.   Are there any known examples of planets within Federation space but are not members? Should the existence of these planets not make maps of the Federation a bit “Swiss-cheese”, in the sense that there will be what are essentially enclaves of other territory bound by it. Do these races have transit rights through Federation space (assume this would be a yes given the Federation’s position of relative openness and non-aggression).


Nothing in the scene appears when i hit render

Alright, this is weird. I have looked at the usual solutions to these kinda problems but they don't seem to work. when I render nothing in the scene shows instead it renders frames from a previous file I had done. i have checked the camera icon thing too. whats even more interesting is that when i opened a new file and tried to append the objects from the original file in the folder there was only one entity, the camera. so i opened the file to check and i found all the other objects sitting perfectly fine. ofcource the camera still renders frames from previous project.  edit: here's some images for the new evolution in this problem.


Does a 27 hp engine output the same amount of energy as lifting a 1 ton stone block almost 3 meters per second?

I’m trying to get a sense of how much energy a 27 horsepower engine outputs.  27 hp $=$ 20 133 watts (joules/second). Potential energy can be calculated as $E = mgh$ where $g = ~9.8\ m/s^2$ on earth. Therefore,  $m = \frac{20133\ W}{9.8\ m/s^2} = ~3000\ kg$.  So, for example, if you use a 27 hp engine to pump hydraulic fluid. Would it output as much fluid as a 3000 kg stone block pushing down a piston at 1 meter per second? Everything else equal.


I am trying to run a small script which check for two variables to see if they are empty or not. I am getting the correct output but if also shows me error for missing right parenthesis. I tried using double parenthesis as well as round bracket but didn't work.  var="" non="hi"   if ([ -z "$var"] && [ -z "$non"]) then     echo "both empty"  else     echo "has data" fi   OUTPUT:  line 6: [: missing `]' has data


how do i get rid of extra array in python?

so my code is as follows:    promotion = [[""], ["promotion applied"],[""]]   how do I make it go from there to this state:    promotion = ["", "promotion applied", ""]


How about a "discussion" checkbox for StackOverflow and SuperUser?

I think a good approach to allow have discussions on SO and SU would be have a "discussion" checkbox, like we have the "community wiki" one. Discussions could appear separated from Questions, and would not have the "accept answer" button. That would be really good!


On Windows 7 can one make UAC on an admin account prompt for the password, just like a limited account?

I am one of the very few who likes the security of UAC and so I have the UAC set to "Always Notify" on my Admin account. But I would be even happier if the system would prompt me for a password, when notifying me.  I can get what I want by adding a second non-admin user and using that account.  But somehow it seems wasteful to have two accounts set up when I will always use the non-admin account day-to-day.  So I am wondering if there is any setting that would cause an Admin account to behave password-prompting-wise as a standard account?


How many ways a composite number can be resolved into two factors which are prime to each other?

Let N denote the number, and suppose $N=a^p \times b^q \times c^r \cdots$, where $a,b,c,\cdots$, are different prime numbers and $p,q,r,\cdots$ are positive integers.Then it is clear that each term of the product   $$(1+a+a^2+\cdots+a^p)(1+b+b^2+\cdots+b^q)(1+c+c^2+\cdots+c^r)\cdots$$  is a divisor of the given number,and that no other number is a divisor; then how could we use this to show/find that the number of ways in which this $N$ can be resolved into two factors which are prime to each other is $2^{n-1}$,where $n$ is the number of different prime factors in $N$?


Proving a function is smooth, and has derivatives of all orders at 0

Let  $$f(x)= \begin{cases} e^{-1/x}\quad &\text{for } x>0 \\ 0\quad &\text{for } x\leq 0. \end{cases} $$  Show that $f$ is smooth and $f^{(n)}(0)$ = $0$ for all $n\in \mathbb{N}.$  My professor gave us a hint, which was to show that $f^{(n)}(x)$ = $P_n(1/x)e^{-1/x}$ for $x>0$, and some polynomial $P_n$. However, I've been trying to find the actual formula for the polynomial and can see the form it should take, but cannot figure out the polynomial itself. Is it necessary to actually define the polynomial, or just to prove that such a polynomial exists?  If the latter is the case, how would I go about proving this?