Struggling to find any working code online for this. Wanting to: Java JDBC MySQL ArrayList into java.sql.Array for preparedStatement.setArray(x,y). Essentially to then compare in a WHERE statement for... WHERE col1 = (a or b or c etc.) which I believe is what the .setArray does on the prepared statement.   Current code which is throwing an error;  import java.sql.Array; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet;      ArrayList<String> myArrayList = new ArrayList<String>(); myArrayList .add("one"); myArrayList .add("two");  PreparedStatement preparedStatement = con.prepareStatement(selectSQL); String[] data = myArrayList .toArray(new String[myArrayList .size()]); java.sql.Array myArrayListSQLArray = con.createArrayOf("VARCHAR", data); preparedStatement.setArray(1, myArrayListSQLArray );   The error that is being thrown;  java.lang.AbstractMethodError: com.mysql.jdbc.Connection.createArrayOf(Ljava/lang/String;[Ljava/lang/Object;)Ljava/sql/Array;   Which points to the line;  java.sql.Array myArrayListSQLArray = con.createArrayOf("VARCHAR", data);   Any pointers?  Update Here's what I'm trying to do;  I've quite a complex SQL query which is working effectively, although it is not parsing certain pieces of information through the PreparedStatement safety net. The code below shows what the SQL statement looks like when entering this manually or via a non-prepared statement piece of code  Code;  SELECT Col1, Col2 FROM my_table WHERE Col1 = 'abc' OR Col1 =  'def' OR Col1 = etc....;   The challenge being that the items in the WHERE clause for Col1 = have an unknown number of OR comparisons. I can easily build this part of the SQL statement using an ArrayList then adding this into the SQL Select string as follows;  String selectSQL = "SELECT Col1, Col2 FROM my_table WHERE (" + whereClauseAllString + ") ;";   Although completely circumvents the security aspects of the preparedStatement. When passing the variable 'whereClauseAllString' into the preparedStatement as follows, this naturally doesn't work as all the ' end up being escaped;  preparedStatement.setString(1, whereClauseAllString);   The question being, what is the best way of accomplishing this type of query? I've tested various methods, all of which do not work due to the number of unknown OR checks required as part of the statement.   Update 2 After testing ever option on the link provided, nothing works. The solution which is recommended, shown below for reference, still throws the same error as originally mentioned earlier in this question;  PreparedStatement statement = connection.prepareStatement(         "SELECT my_column FROM my_table where search_column = ANY (?)" String[] values = getValues(); statement.setArray(1, connection.createArrayOf("text", values));   Any ideas why?


Let $f$ be a differentiable function such that it satisfies $\int_1^{xy} f(t)dt=x\int_1^{y} f(t)dt+y\int_1^{x} f(t)dt$ then find $f(e)$

Let $f:R^+ \to  R $ be a differentiable function such that $f(1)=3$ and satisfies $$\int_1^{xy} f(t)dt=x\int_1^{y} f(t)dt+y\int_1^{x} f(t)dt$$ $ \forall x,y\in R^+$ then find $f(e)$   My try :  Let $$F(a)=\int_1^{a} f(t)dt$$  Then our conditions give us $$F'(1)=3$$ and $$F(xy)=xF(y)+yF(x)$$  Now this form seems to be much similar to that of differentiation using product rule of two functions but this idea didn't help me much.   I tried substituting $x=y$ in above equation to get $$F(x^2)=2xF(x)$$  But I don't seem to get anywhere with this.


I know similar problems have already been added but non of them worked for me.  This is how it started:  I was searching Solution for a problem and I applied   I'm new to Linux, and using Ubuntu 18.04. I might have blindly input the solution, but now I have bigger problem.  When I type sudo apt-get update I get:  Reading package lists... Done                                                                                W: GPG error: http://archive.canonical.com/ubuntu precise Release: The following signatures were invalid: 630239CC130E1A7FD81A27B140976EAF437D05B5 E: The repository 'http://archive.canonical.com/ubuntu precise Release' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://extras.ubuntu.com/ubuntu precise Release: The following signatures were invalid: C47415DFF48C09645B78609416126D3A3E5C1192 E: The repository 'http://extras.ubuntu.com/ubuntu precise Release' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://us.archive.ubuntu.com/ubuntu precise-security InRelease: The following signatures were invalid: 630239CC130E1A7FD81A27B140976EAF437D05B5   (Same linkes were repeated.)  I tried sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 630239CC130E1A7FD81A27B140976EAF437D05B5  Nothing worked. I'm very much nervous right now, I hope I dont need to format my Laptop AGAIN for similar kind of problem.  Tell me what should i do?


Can't resize partition to unallocated ubuntu

Here I have my Ubuntu OS on /dev/sda7 and I would like to allocated to the unallocated partition , but I am unable to expand my sda7 into unmounted.  How do I resolve this issue?


chflags nohidden not unhiding hidden files

Problem: because of an unkown reason all my desktop files and folders were hidden. i managed do unhide all folders, but i can't unhide the files i tried to unhide the files via terminal chflags nohidden filename but it doesn't work. i also checked if the hidden flag is placed, but there is no hidden flag on the files (but they aren't visible). here is the output via terminalcommand ls -lo: -rw-r--r--@ 1 username     13669 19 Aug 11:54 filename.txt i also tried an app called InvisibliX (which isn't under development anymore), with no success and of course i used the searching function, which lead me to this:  with no further success I'm thankful for every hint you may have for me! Some additional information regarding the OS: Mac OS X Catalina 10.15.6


I have to vera long tables underneath eatchother. Both don't fill up the whole text width, the second even less so. I have no idea why they do that since all other tables made with longtable automatically took up the same width as the text. I've read the documentation on the longtable package but have no idea what to put instead of the dots in \begin{longtable}{@{\extracolsep{...}}...}. Do I have to calculate something?


Is it okay to ask a professor from another university for class lecture notes of a course that he offered on that university?

I find two very interesting courses that were offered in the Spring 2019 semester at ETH Zürich. Unfortunately, their class lecture notes are not shared publically. I wonder if it is appropriate to email the professors and ask them for class notes.


Why is text sometimes presented BEFORE a picture, while it is supposed to be presented AFTERWARDS

Why, in some instances, is the text Here is some text presented before the picture.jpg in the final document, please?  \begin{figure}[h] \centering \includegraphics[width=...]{picture.jpg} \caption{The best caption in the world.} \end{figure}  Here is some text.   I have had similar problems when doing \protect\footnotemark inside the \caption{...}, when the \footnotetext{...} which is supposed to come afterwards, is presented before the image.


Suppose $m$ is odd. What integer between $1$ and $m−1$ equals the inverse of $2 ($mod $m)$?  What I have so far:  Let $n$ be the inverse of $2 ($mod $m)$ where $1<n<m-1$  $\Rightarrow$ $2n\equiv1($mod$m)$  $\Rightarrow$ $2n=1+mk$  since $m$ is odd then $m=2l+1$  $\Rightarrow$ $2n=1+(2l+1)k$  I don't really know how to solve for $n ($mod $m)$ as that would put it within $1<n<m-1$


How to compile and install Pidgin client and add Google Talk (~ Hangouts) into it?

How does one compile and install Pidgin client and add Google Talk (~ Hangouts) into it on Ubuntu? Not only it is possible, but with relatively high security.


In episode  of Voyager, Q :     Q : If the Continnum's told you once, they've told you a thousand times. DON'T PROVOKE THE BORG!!   If Q are omnipotent / immortal / all powerful, why would Q tell his son not to provoke the Borg?   Q himself provokes humans (Janeway & Picard) quite regularly.  Do the Q fear the Borg?  Or could it perhaps be that the Q just don't want to annoy the Borg, since the Borg are possibly the most powerful guys in the galaxy (outside fluidic space) and the Q don't want to be responsible for anything the Borg do out of anger? Since the Borg could probably wipe out a good chunk of the galaxy if they felt like it.  Thanks to  for finding a clip of the scene in question:                                  UPDATE  The question :  definitely explores similar territory to this question, but no answers really address that part of the question. There are a few opinions as to why Q wouldn't want his son to antagonise the Borg, but certainly no definitive answer on whether the Q fear the Borg or not.


I'm having an issue with QGIS version 3.2 Bonn. For my class, a question asks, "What city corresponds to row number 1713 for the Colleges and Universities shapefile?". I'm having issues answering this, because each time I load the shapefile into QGIS, the attribute table order is randomized, giving me a different city each time.   How can I open the "default" version of the attribute table for this layer, so that the order of rows is not randomized each time?


Where can I travel for prolonged periods of time while legally working remotely for a company in my home country?

I found several questions about inbound travelers to the US in this scenario, but little about other countries: I work for a company in my home country (USA) who are open to me working remotely while traveling.   Which countries allow me to legally work remotely for a company in my home country (USA) while traveling in their country? The work has absolutely no connection to the destination country, it would take place identically entirely within the USA if I weren't traveling.


Option to be notified when a post I downvoted is edited

Prologue:  This is an effort to follow up on  which is marked as a duplicate of  highly voted and status-declined feature request (although they seem to be different, one focusing on the OP and the other on the downvoter).   My New Year's resolution was to downvote more.  So on January 3rd or so, I saw a post that was low quality, and downvoted.  Two days later, I came back to see if it was ready to be deleted or had gotten piled with downvotes, to find it with a significant positive score!  At which point, I noticed that the answer had been significantly improved.  So I retracted my downvote, changed it to an upvote, and immediately resumed my dearth of downvoting again.  I think I have a responsibility to downvote bad posts, despite that oh-so-painful -1 rep penalty.  But if I am also going to have the responsibility to follow up on every downvote I cast, I'm not going to bother. I don't want my downvote to leave a residual penalty on posts that were once low quality, and I am not going to trouble myself to keep checking up on every post I downvoted.  Can a downvoter have an option to be notified when a post they voted down was edited?  I wouldn't make this an automatic thing, because not all downvoters want it, and it isn't applicable to all cases of downvoting (although  that this should be part of the responsibility of a downvoter).  Personally, I would make this a universal toggle on-off option on the user profile page, not a question-by-question option, but I don't have strong feelings about it.


What is the best way to save values (like strings) for later use?

I'm fairly new to LaTeX and I'm struggling with something apparently simple, but for which I can't find a fair solution. The problem (simplified) is as follows (please take care terms used may not have the traditional meaning in LaTeX):  I need to references to files (many) throughout a text. As example, the files:  "C:/Work/this_file1.c", "C:/MoreWork/this_file1.c" and "D:/MoreWork/another_file2.h".  So, now I would like to create an "alias" to each directory and each name file so I can reference them. A "pseudocode" could be:  % Definition \alias \c_dir = C:/Work/ \alias \d_dir = D:/MoreWork/ \alias \file1 = this_file1.c \alias \file2 = another_file2.h  % Reference in text \c_dir\file1    % For referencing C:/Work/this_file1.c \d_dir\file1    % For referencing D:/MoreWork/this_file1.c \c_dir\file2    % For referencing C:/Work/another_file2.h   My first approach was using \newcommand, but that caused numerous problems due to naming limitations. (I also tried other methods like pgfkeys, but it always gets stuck somewhere!)  Can you suggest a method?


What is the difference between "&&" and ";" when chaining commands

What is the difference between the following methods of chaining commands?  cmd1; cmd2 cmd1 && cmd2


could .bash_profile, in theory, be slammed into the iCloud Drive and symlinked?

could .bash_profile in theory be slammed onto iCloud Drive and symlinked from there? I'd love to use the same .bash_profile on every computar.  Why this isn't the same as Dropbox - this, if answered, would allow for a person to install a new computer, run a command (doing a symlink to .bash_profile from a specific place on the iCloud Drive), and have all their aliases + etc  without having to install a separate application like Dropbox.


I have an I2C slave device in which the maximum input voltage to SCL & SDA is 3.6V.  And the I2C Master device is PIC16F877A operating at 20MHz which provides a 5V output on SCL & SDA.  Pls help me to interface these two devices.


Ubuntu shows only console login after I start my computer

Ubuntu shows only login console but no gui login. Even though I entered right login user name and password, I can't login. I can't do anything with this. How can I resolve this problem?


Continuous function but iterated integrals are not equal

Given a sequence $(g_n)$ of continuous functions $g_n:\mathbb R \to [0,\infty)$ with the properties $\operatorname{supp} g_n^{(1)} \subset (n,n+1)$ and $\int g_n \, d\lambda=1$ for all $n$, how can I show that $$f:\mathbb R^2 \to \mathbb R, (x,y) \mapsto \sum_{n=1}^\infty(g_n(x)-g_{n+1}(x))g_n(y)$$is continuous but still $$\int\int f(x,y)\,dx\,dy \neq\int\int f(x,y)\,dy\,dx$$  (1) $\operatorname{supp} g_n =\overline{\{ x\in \mathbb R \mid g_n(x)\neq 0\}}$  No idea how to start, a hint would be nice.


Accessing ArcSDE feature class with ArcPy?

I have a script that runs perfectly with shapefiles and GDB feature classes but I need to change it to run on feature classes stored on an SDE.  However I cannot figure out how to reference them correctly via ArcPy and I haven't been able to find a good resource.  Here is what I have so far:  C:/Users/cbunn/AppData/Roaming/ESRI/Desktop10.5/ArcCatalog/my.sde//FeatureDataset//FeatureClass  How should I change this path so it is correct and I can access it via ArcPy?


Do I need a transit visa for my trip from the US to India via Istanbul?

I have an Indian passport with a US work permit. I am traveling back to india via Istanbul. Do I need a transit visa to enter the city for sightseeing? For how long is a transit visa valid?


Show that $\frac{a}{1+a} \leq \frac{b}{1+b} + \frac{c}{1+c}$

show that for $a,b,c \geq 0$ if $a \leq b+c$ then $\frac{a}{1+a} \leq\frac{b}{1+b} + \frac{c}{1+c}$ I can not get a good start in this problem. a hint will be appreciate it thanks


Hat shown in Stack Overflow, Meta Stack Overflow, WordPress Answers but not shown in Drupal Answers?

I am using the L'chaim hat which is shown on all my Stack Exchange sites, such as Stack Overflow, Meta Stack Overflow, WordPress answers etc.. But it is not shown on Drupal Answers.  Do I have to do something to make the hat appear on my Drupal Answers account?


Why does this NOT LIKE query find too many features from FileGDB and PostGIS vs a Shapefile?

I can't understand why the following NOT LIKE query removes not just the ones that end in '% Lake' but blank records too for certain data formats within both PostgreSQL with PostGIS and QGIS. This happens to the original FileGDB and my converted PostGIS table but works when the dataset is converted to Shapefile format.  I first noticed this when trying to run the query on the PostGIS table from pgAdmin4 and psql but also tried the from DBManager (in QGIS)  SELECT * FROM fwa.fwa_assessment_watersheds_poly WHERE "gnis_name_1" NOT LIKE '% Lake'   So I tested in QGIS as a definition query.  # FileGDB # 11252 records returned (incorrect) "GNIS_NAME_1" NOT LIKE '% Lake'  # PostGIS # 11252 records returned (incorrect) "gnis_name_1" NOT LIKE '% Lake'  # Shapefile # 19358 records returned (correct!) "GNIS_NAME_" NOT LIKE '% Lake'   You can see in the QGIS image below that the PostGIS dataset in orange removes additional blank records when on top of the Shapefile in light brown.    The source dataset is available at  - 2.3 GB  I've uploaded some additional test data for testing at a smaller size - the first two are the entire datasets and the last two are subsets:  - 116.13 MB  - 95.47 MB  - 2.38 MB  - 3.24 MB  System info: Windows 10 64-bit PostgreSQL 9.6.1 PostGIS 2.3.1 QGIS 2.18.1  Tried from ArchLinux with same software versions as above.


Mounting filesystem with special user id set

I want to mount the device /dev/sda3 to the directory /foo/bar/baz. After mounting the directory should have the uid of user johndoe. So I did:  sudo -u johndoe mkdir /foo/bar/baz stat -c %U /foo/bar/baz johndoe   and added the following line to my /etc/fstab:  /dev/sda3 /foo/bar/baz ext4 noexec,noatime,auto,owner,nodev,nosuid,user 0 1   When I do now sudo -u johndoe mount /dev/sda3 the command stat -c %U /foo/bar/baz results in root rather than johndoe. What is the best way to mount this ext4-filesystem with uid johndoe set?


What are the disadvantages of using Lasso for feature selection in classification problems?

I understand the advantages of using the Lasso (e.g. scalability, regularization). That being said, I am also aware that the Lasso is an approximate method for feature selection, and that it does not necessarily return the optimal subset of features (i.e., the one that would be identified through $\ell_0$-minimization, or a brute-force search).   In light of this, I'm wondering:   What are the practical disadvantages of using the Lasso for feature selection in binary classification problems? Is there a realistic example where the Lasso returns a subset of features that is completely different from the true optimal set of features?    Note: To be clear, I know that there was a related discussion on . The reason why I've posted a new question instead of posting in the old forum is because:   the old question was about regression problems  the old question compares Lasso to stepwise regression (also an approximate method). In comparison, I suppose this is trying to compare Lasso ($\ell_1$-penalty regularization) to brute force ($\ell_0$-penalty regularization), which would be optimal.


How to get vim to open multiple files into tabs at once

Is it possible to get vim to open multiple files into tabs, similar to the way the args <path> command will open multiple files into buffers?  Doing something like :tabe ./* results in the error "E77: Too many file names", even though the number of files is less than the value set in the tabpagemax property.  (I believe the vim -p <files> option will open in tabs, but I'm hoping to find a way to do it when vim is already open.)


How i can do for know what i have to do i this type of cases: root?

I receive that message when I want install or try to don know that was installed, after it's here :   apt-get install linux-generic -(the error)- E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)  E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   What do I have to do in this case, and how I can run a message automatically on my desktop if it's hacked?   P.S. I need a secure port, or a few secure number ports.


I really love Eclipse (PDT)... But i'm developing sites using HTML5 and CSS3 and it mark the HTML5 tags like <nav>, <section> and <article>  as invalid tags (inexistent).  How can I add those new tags to it?  And what about CSS3 rules?  I read something about remove the "invalid tag" check... and that's not what I want. :(


Why would a company like Apple be buying back its own shares?

What is the reason that a company like AAPL is buying back its own shares? Does it have too much cash and it doesn't know what to do with it? So it is returning the cash back to investors?


Why \linebreak doesn't work when text width is not set?

This is the code I have:  \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \tikz \node[rectangle split, rectangle split parts=2]   {first\nodepart{second}second\linebreak{}third}; \end{document}   Second and third lines are glued to each other. When I'm adding text width=5em to the style of this node — everything works fine. How can I make this \linebreak work, without explicit specification of the node width? Thanks.


How can we define complexity in the context of biology?

Can somebody provide a definition of complexity in the context of biology?  Is it something of a personal opinion on the side of the user to decide precisely what s/he means by using the word complexity or is there something all biologists can agree upon? Is there any "standard" for the use of the term complexity or is such standard simply unattainable in our current level of knowledge and/or understanding of the living world?  To the moderator-I want to know What is complexity in biology?  in GENERAL, not only in the specific example of measuring it for an individual. One can argue complexity can be used to compare and even to "cast a vote" about the superiority or inferiority of many objects of study in biology, not just individual organisms. What about the complexity of an ecosystem, of a particular organ, of the interactions of macromolecules and so on. Are they not legitimate instances when the term complexity can be used without inferring to its meaning? This is the purpose of my question, not to merely measure the complexity of an individual. This is why I don't think it's duplicate of the question you mentioned. How is my reply?


I've seen tons of Animal Crossing: New Leaf patterns posted across the internet accompanied by QR codes, implying that there's a way to scan those QR codes in-game to import those designs. However, I can't find any sort of import feature in the game.  How can I scan QR codes in the game? Is it something that I have to unlock?


How can I estimate the perfomance of graphics cards I don't have?

I'm developing a voxel game with OpenGL and want to optimize the number of rendered faces. How can I estimate how many faces at most a modern graphics card of a certain brand is able to compute, while still managing to render at 60fps?


What's the opposite of eye candy?  I heard someone say, "Eye broccoli," but that's not very accurate to those of us who love broccoli. Any other ideas?


Prevent double icons with custom .desktop file in dock

I have created a custom .desktop file to launch Chrome in dark mode.   Here is what the file looks like:  [Desktop Entry] Name=Dark Chrome Exec=google-chrome-stable --enable-features=WebUIDarkMode --force-dark-mode Terminal=false Icon=/opt/google/chrome/product_logo_64.png Type=Application   I have added it to the dock. When I launch the application from the dock it creates another separate chrome icon rather than just attaching the process to the existing icon (as a regular application behaves)  How can I get it to behave like a regular application icon?


Stopwatch stopwatch1 = new Stopwatch(); Stopwatch stopwatch2 = new Stopwatch(); string l = "my test"; string u = "MY TEST";  for (int i = 0; i < 25; i++) {     l += l;     u += u; }  stopwatch1.Start(); l=l.ToUpper(); stopwatch1.Stop();  stopwatch2.Start(); u=u.ToLower(); stopwatch2.Stop();  // Write result. Console.WriteLine("Time elapsed: \nUPPER :  {0}\n LOWER : {1}",                   stopwatch1.Elapsed, stopwatch2.Elapsed);   I have run many times:  UPPER : 00:00:01.3386287 LOWER : 00:00:01.4546552  UPPER : 00:00:01.1614189 LOWER : 00:00:01.1970368  UPPER : 00:00:01.2697430 LOWER : 00:00:01.3460950  UPPER : 00:00:01.2256813 LOWER : 00:00:01.3075738


How much to store luggage at SFO for 24 hours?

Say a medium-ish sized bag that weighs 50 lbs (23 kg).


Can I travel to Romania with a Schengen visa issued by the embassy of The Netherlands and staying for a longer period in Romania than in Amsterdam?

I'll be travelling to Europe next July, but I want to visit Romania and stay for a week and also go to Amsterdam for 4 or 5 days. Can I apply for a Schengen visa from the embassy of The Netherlands? Will it permit me to enter Romania?


Show that $S = \sqrt{S^2}$ is a biased estimator of $\sigma$ given a random sample from a normal distribution ...

Suppose $Y_1, \ldots, Y_n$ is a random sample from a normal distribution with mean $\mu$ and variance $\sigma^2$. Let $S^2$ be the sample variance, which is unbiased for $\sigma^2$.  GOAL: Show that $S = \sqrt{S^2}$ is a biased estimator of $\sigma$.  I realize that $(n-1)S^2/ \sigma ^2$ is chi-square with $(n-1)$ degrees of freedom.  I am given that $$E(S) = E\left[\frac{\sigma}{\sqrt{n-1}} \left[\frac{(n-1)S^2}{\sigma^2}\right]^{1/2}\right] = \frac{\sigma}{\sqrt{n-1}} \int_0^\infty v^{1/2} \frac{1}{\Gamma[(n-1)/2] 2^{(n-1)/2}} v^{(n-1)/2} e^{-v/2} \, dv$$  Can anyone help me understand why they have $v^{1/2}$ and $v^{(n-1)/2}$ (combining them $v^{n/2}$ as I think it should be $v^{1/2}$ and $v^{\frac{(n-1)}{2}-1}$ (combining both terms give $v^{(n-2)/2}$ since the pdf for chi-square distribution is $$ f(v) = \frac{v^{(x/2)-1} e^{-v/2}}{2^{x/2}\Gamma(x/2)},$$ where $x$ is degree of freedom?  Could anyone please tell me which one is the correct answer with explanation?  Thank you


I want to send a simple 5V signal to the usb port. The USB cabel's insulation will be removed and connected to a relay which is connected to an electric door system. I think I should write this code in C. Can somebody give me a hint?


"Access denied for user: 'root@localhost' (Using password: NO)" while running MySQL

Whenever I run  mysql -u root mysql   I get an error like:   ERROR 1698 (28000): Access denied for user: 'root@localhost'   I tried running  update user set authentication_string=password('akshansh') where USER='root'   But I got   bash: syntax error near unexpected token `('   Then I ran  $ mysql>FLUSH PRIVILEGES   I still get an error:  ERROR 1045 (28000): Access denied for user: 'root@localhost' (using password: NO)   I've tried all possible solution on Stack Overflow or any other website.  I've also tried deleting and re-installing MySQL. I am still not able to reset the password.


null or empty string comparison in java? or Something else?

if(txtValueUIT.getText()==null || txtValueDolar.getText()==null || txtValueUIT.equals("") || txtValueDolar.equals("")) JOptionPane.showMessageDialog(null, "You have not entered both values", "Error", JOptionPane.ERROR_MESSAGE);   What I try to do is to show the Error Message when the JTextFfields are empty or null.  I am using if and it shows no bugs but when testing it it simply won't show the message when it is supposed to do it.  *It seems it doesn't perform any action at all because the code that follows in that method, when there is a value missing in those JtextFields, won't be processed. *  The code that follows is a setText to another component using as parameters Strings that get the Text from the JTextFields  By the way:  if(e.getSource() == btnRefresh) //I added the button with an action listener refreshValues(); //this contains the code with the JOptionPane


Is there a rule regarding the placement of "please" in a sentence?

Both written or spoken?  For example:   Please have a seat.  Have a seat please.   And how would the use of commas change the meaning or tone of the request? Are there other options that I've excluded?


Dragging home button opens Google Search - How do I remove this?

Ever since I bought my tablet, this has been the default action whenever I drag the home button up (this is a soft button: on screen). I do not want this functionality because I frequently drag it by accident whenever I play games. This will bring up Google Search and interrupt my game.  Screenshots:    When dragging homescreen, a half-circle with Google on top appears / Google Search brought up (click images for larger variants)  Again, how do I disable this behavior?  If it helps, I am using a Pipo U1 Pro tablet with the default OS (not rooted).


What are the advantages of stacking multiple LSTMs?

What are the advantages, why would one use multiple LSTMs, stacked one side-by-side, in a deep-network? I am using a LSTM to represent a sequence of inputs as a single input. So once I have that single representation— why would I pass it through again?  I am asking this because I saw this in a natural-language generation program.


Is it safe to show some database columns in my webapp?

I am trying to create a dynamic data catalog for products depends on a JSON object that contains some columns name from database, for example:  {     'name':'clothes-for-men',     'action':'Category',     'id':'Products.cat_id' }   where Products is a table in database, Products.cat_id category is also a table and cat_id is a reference to that specific category.  That JSON object is dynamic, because i have yet another categories-based , subcategory and under subcategory, so its like a mega dropdown menu, on each anchor i have an angularjs ng-click event:
     {% for category in g.category %}
             {{category.name}}

                     {% for sub_cat in category.sub_menu %}

{{sub_cat.name}}
                             {% for sub_und in sub_cat.unders %}
 {{sub_und.name}}
                             {% endfor %}
                     {% endfor %}

     {% endfor %}
   All that because , i don't want to create an if statement for each event, i just did the following, i am getting the id as a string and converting it to class object in the back-end using method eval(), here is an example:  if data_page.get('category'):     ob = data_page.get('category')     test = Products.query.join(eval(ob['action']), eval(ob['action']).id == eval(ob['id'])).order_by(Products.published.desc()).all()   So again the question is, is it safe to do that? and does that lead to sql injection vulnerability?, in fact, i tried to manipulate the value of id using inspect element, but it didn't get changed in the back.


Let $X$ be a universe. Let $\{A_i\}_{i\in \Lambda}$ be a family of sets in $X$, where $\Lambda$ is a set of index. Could you help me to prove?  $$X\setminus\bigcap_{i\in\Lambda}A_i=\bigcup_{i\in\Lambda}(X\setminus A_i)$$  where $X\,\backslash A_i$ denotes the complement of $A_i$


Prompt before closing browser tab if comment has not been submitted

If I am working on a post, and try to close the browser window, then a prompt is displayed asking if I want to leave the page.  However, the same thing does not happen if I am working on a comment.  I am proposing extending the "navigate away" prompt to include the situation where there is a comment on the page that has not yet been saved (either a new comment, or one that is being edited, which has a non-zero length).


What happens if the action field in a  has parameters?

Is there a well-supported, common behavior that I can expect if I do something like this in HTML:  <form method="get" action="/somePage.html?param1=foo&param2=foo">   <input name="param2"></input>   <input name="param3"></input> </form>   Seems like this sort of thing is inherently ridiculous, but I've seen it used here and there and I was wondering what on Earth the expected behavior should be.  Are browsers smart enough to tack on "&param2=whatever&param3=whatever" to the action, or do they just throw in a second question mark?  Or what?  Are there cases where this is actually the right way to do things?


I am a programming beginner and I was experimenting a bit with functions. I have two variables (integer) and a self-created function that adds 1 to the variable. I wanted to run the function in a while loop in which the function should keep adding 1 to the variables until one of them has reached a certain number, but it ends in an endless loop that only uses the functions once. What is my mistake? aa = 2 bb = 5  def test(aa, bb):     aa = aa + 1     bb = bb + 1     return aa, bb  while aa < 6:     test(aa, bb)  print(aa, bb)


What is the minimum degree for a polynomial to pass through points with defined slopes

I'm having some difficulty solving this problem. The information I have is the following:  What is the minimum degree for a polynomial for it to pass through points $A(x_1,y_1)$ and $B(x_2,y_2)$ with predefined slopes $S_1$ and $S_2$.  Thanks in advance!


When to use an object pronoun or a possessive adjective before a gerund

The rule says that we can use a possessive adjective or an object pronoun before a gerund. Is there a rule  that says when to use each or are they interchangeable? Some say that it's wrong to use an object pronoun before a gerund.


I'm using a bib file to insert all my references. The bibliography is generated ok in the output. However, some references are shown between two pages (it means, the reference starts at the end of one page and it finishes at the beggining of the next). How can I do to make somekind of \newpage inside the bib file? I would like to show the entire reference information within the same page (not divided between two pages).  Raúl


How can I separate an entire object by loose parts blender

I have a large house model that is composed of other models. Some of the models in the house for example doors are joined together.    How can I select entire model and separate into loose parts?


How to calculate the following limit: $\lim_{x\to+\infty} \sqrt{n}(\sqrt[n]{x}-1)$?

I have to solve a series of limits and I can't find out this one. $$\lim_{n\to+\infty} \sqrt{n}(\sqrt[n]{x}-1)= \,?$$ I have the feeling that this is equal to $0$, but I don't know how to prove it. Note that it may be a good idea to use $\lim_{x\to+\infty} \sqrt[n]{x}=1$.


I'm trying to line-break in the middle of a series of defined matrices. The code looks like:   \begin{equation} I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}, X = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, Y = \begin{pmatrix} 0 & \imath \\ -\imath & 0 \end{pmatrix}, \\  Z = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}, H = \frac{1}{\sqrt2}\begin{pmatrix} 1 & 1 \\ 1 & -1 \end{pmatrix}, S = \begin{pmatrix} 1 & 0 \\ 0 & \imath \end{pmatrix}. \end{equation}   However the matrices appear all in one line.


How do mirrors look & behave atomically?

I was observing mirrors recently and I was thinking about how an mirror would look atomically. I was always used to looking at atoms as being colored that said, I was always concerned at how they looked. I looked at previous questions and found silver atoms could play a part in it but now a days the mirrors are not made of pure silver now a days so I am confused.  Not to mention how do mirrors function atomically? Its hard because if say I shoot light towards a very black object then the radiation is absorbed but however when I shoot it at mirror it reflects it back. That said, how do they work?    How do atoms reflect the photons back? If so how and why does the black body atoms not do the same?


Is there evidence of "think tank" meaning "the brain"?

The  Random House Dictionary defines the expression  as:         a research institute or organization employed to solve complex problems or predict or plan future developments, as in military, political, or social areas.      According to  the above connotation  is an extention of an earliar sense  which referred to "the brain":        also think-tank, 1959 as "research institute" (first reference is to Center for Behavioral Sciences, Palo Alto, Calif.); it had been colloquial for "the brain" since 1905.      : shows usage of "think tank" only from the late '50s.  Is there evidence  of earlier usages of "think tank" meaning "the brain"? Despite  its colloquial   usage I assume  the expression was quite widespread before it was adopted by the Stanford University.


Does a physical interpretation of density matrix cross-terms exist?

Say we have some state $$|\psi\rangle=\frac{1}{\sqrt{2}}(|0\rangle+i|1\rangle)$$ it is in a quantum superposition of $|0\rangle$ and $|1\rangle$. Its density matrix is $$\rho=\begin{pmatrix}\frac 1 2 & \frac i 2\\ -\frac i 2 & \frac 1 2\end{pmatrix}$$ If we measure $\rho$ we get some classical density matrix of the form $$\rho=\begin{pmatrix}\frac 1 2 & 0\\ 0 & \frac 1 2\end{pmatrix}$$  Is there some nice intepretation of what these cross terms mean, other than just arrising from the phase of the state?


In my most recent class assignment we've been working with generics and I have been receiving this warning:  Note: Selector.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.    From what I understand this results from not specifying the type of objects in my collection. I'm currently working with int's for testing purposes, but the program is supposed to allow for sorting of any type object. I don't think I want to specify my collections as int's, and my collection is currently of type T for this reason. But my instructions explicitly state that my program should not generate any warnings. Here is one of my methods:  What I have now:       else {         T[] a = new T[c.size()];         c.toArray(T[] a);         T min = a[0];         for (int i = 0; i < a.size(); i++) {            if (comp.compare(min, a[i]) > 0) {               min = a[i];            }         }         return min;       }   What I'm getting:      Testing.java:48: error: generic array creation             T[] a = c.toArray(new T[c.size()]);


I want to have a general solution for calculating orbits. Wikipedia says how to put object on circle orbit. We must give it speed $v_1 = \sqrt{g(h_o +R)}  $ Where $h_o$ - is the orbit height, and $R$ - Earth radius.  But how to calculate the speed that the object must have, if we want to place it in an elliptical orbit?  For example:   Having massive massive spherical object with mass $M$ and radius $R$.   which speed $V$ we must to give to this object to put it on elliptical orbit with eccentricity $\epsilon = E$ , and perihelium $P$?


your friend decides to roll a die repeatedly to analyze whether the probability of a six on each flip is 1/6. He rolls the die 10 times and observes six 7 times. He concludes that the probability of a six for this die is 7/10=0.7. A. Your friend claims that the die is not balanced, since the probability is not 0.166666667. What's wrong with your friend's claim? B. If the probability of rolling a six is 1/6, what would you have to do to ensure that the cumulative proportion of sixes falls very close to 1/6?


Can I buy airfare using one passport (visa required) and then use another (no visa required) to enter the country?

I am travelling from Australia to China to Vietnam to Cambodia to Australia. I have two passports, namely Russian and Australian (the first and last names are identical in both but the numbers are obviously different). I purchased all required air fares using my Australian passport. Later I found that as a Russian citizen I can enter and stay in Vietnam without a visa for 15 days (and as a holder of Australian passport I need to apply for a visa, which is extra $$$).    I can't see my passport number on the air ticket print-out, although they did asked for it at the time of purchase, so it might be in the databases. Does it matter that I used my Australian passport to purchase the airfare if I want to travel from China to Vietnam using my Russian passport so I can enter the country without a visa? Assuming airlines check for both passport number and the name details, should I present both passports when checking-in in China? I still have time to apply for Vietnam visa using my Australian passport, but it'd be great to learn I do not nee to.


External hard drive is full after running AVG PC Tuner, but WinDirStat indicates otherwise

I recently downloaded AVG PC Tuner, and performed a disk check on my 1 TB external drive. When it completed, it found no issues. However, my hard drive is now almost full when I had about 200‑300 gigabytes free before.    I tried running "Disk Cleanup", but it showed nothing to delete.  I then downloaded and ran  to try and see what's using up the space, but it says I have used only 607 GB: (click for full size)    Can anyone help me reclaim my lost storage space?


I'm installing a new bath tub and shower.  I've removed the old tile down to the studs.  Should the backer board be in front of or behind the tub flange?  I put it on the rear tub wall from floor to ceiling at first, but I can easily remove it if it should go OVER the tub flange.


Can I use valid US B1/B2 visa to transit in NY & LA?

My nationality is Vietnamese and I have a flight heading to Vietnam. I have to transit in New York, Los Angeles, and Shanghai on the way (each will be just max 5 hours). Can I use my valid US B1/B2 visa for transit through those two American cities? What about Shanghai; do I need the transit visa for there also?


Name of book series where RPG players become their player characters

I read a series of books 20+ years ago in which the players of an RPG were transported to inhabit their characters while in the campaign they were playing.    There was a paraplegic or quadriplegic who was a mighty dwarf fighter, an abused teen girl who was a healer, a wizard named Andrea, a thief who only had one hand and was killed off early.   The handicapped guy who was the dwarf and the healer liked being in the player's universe because they had abilities they otherwise could not have.   I remember the series was at least 5 books geared toward the Young Adult reader.


I am new to Ubuntu and I have  recently burned an Ubuntu .iso file on to a DVD and booted in to Ubuntu.   My disk is 80GiB and it is already partitioned in 2 parts. C: where the Windows is installed, this is 65GiB, and the second partition is 15GiB.  I want to install Ubuntu alongside Windows 7 and preferably in the second partition (15gb). Which option should I choose? "Install alongside Windows." or The Manual install or something else?


Get parent entity in media preprocess hook

I am having a paragraph with a media entity ref field   "field_paragraph_image_ref". I would need to modiy the media twig template depending on a field value of the parent, which is a paragraph entity. How can i get the field value from the parent entity in the media preprocess   function hook_preprocess_media__picture__image_without_link(array &$variables) {       $media = $variables['elements']['#media'];       //A method to get the parent entity, that i cannot find in var_dump(get_class_methods($media));       // and finally get a field value from the parent paragraph entity  }


Can we always choose the generators of an ideal of a Noetherian ring to be homogeneous?

Let $R$ be a $k$-subalgebra of $S=k[x_1,x_2,\dots,x_n]$. Let $m\subseteq R$ be the ideal generated by the homogeneous elements of $R$ of positive degree. As $S$ is Noetherian, the ideal $mS$ has a finite set of generators, which may be chosen to be homogeneous elements of $m$.    Why can we choose homogeneous elements of $m$ to be the generators?


I have a problem to compile the following code:  \documentclass[10pt,letterpaper,extrafontsizes]{memoir} \usepackage{amsthm} \usepackage{wrapfig}  \input{../Master/header} \input{../Master/commands.tex} %====================================================== \begin{document}   I get the following error:  ! LaTeX Error: Too many math alphabets used in version normal.  See the LaTeX manual or LaTeX Companion for explanation.   I tried to make use of package    \usepackage{bm}   as suggested by several people to fix the issue but this even provides me with more errors.  I also know that some nice packages like   \usepackage{mathtools}   can be helpful to avoid such errors but its too late for me to restructure my long file to use this package.  How can I resolve this issue?  Thanks.


I have read about de Broglie hypothesis that matter like light can also exhibit wave particle duality. This gave rise to the following questions in my mind.   The wavelength for electrons is significant. So does that mean that electrons are both particles and waves at the same time or they show different behaviour in different experiments. Or they are only waves. I cannot understand why only moving objects will possess a wavelength. What kind of waves will electrons be like light is an electromagnetic wave. If electrons behave like waves then will the electric current flowing in wires also be considered as waves.   Please provide me the explanation. Thank you very much


I want to extend the duration of sudo in Ubuntu 14.04. It is irritating to provide password repeatedly. How can I do it?


How do I download a YouTube video?    I have used various solutions in the past that do not seem to work any longer ( and various  scripts). Is this just no longer possible?


Is it just the distance between galaxies that increases? Or is the distance increasing between the molecules in my body? Does expansion affect universal constants?  Various sources I have heard on the topic of expansion seem to contradict each other. (at least in my mind) If a physicist says: "There's not enough gravity to prevent expansion" then it makes it seem like a simple matter of Newtonian physics; as if galaxies were flying off under their own momentum. But if a physicist says: "Nothing can travel faster than light EXCEPT for the expansion of space itself" then this makes it seem like the invisible fabric of space-time is stretching.


Allow Documentation in other Stack Exchange communities

I'm a Salesforce developer and would love Documentation to be available in other Stack Exchange communities. The reason is  a lot of Salesforce developers get help, especially newer ones like myself. The developer forums and documentation on  is mediocre. It would be nice to allow users to create their own and give pack on


Solve the PDE: $u_{xx} - 3u_{xt} - 4u_{tt} = 0$

It is asked to solve the PDE  $$u_{xx} - 3u_{xt} - 4u_{tt} = 0$$ using a factorization, that consists in   $$\left( \frac{\partial}{\partial x} - 4 \frac{\partial}{\partial t} \right) \left( \frac{\partial}{\partial x} + \frac{\partial}{\partial t} \right) u = 0$$  My attempt:  I called   $$\left( \frac{\partial}{\partial x} + \frac{\partial}{\partial t} \right) = v$$  and solved  $$ v_x - 4 v_t = 0$$ making the change of variables: $x' = x-4t, \; t' = -4x - t$.  This change of variables leave us with the following "ODE": $$17 u_{x'} = 0 \Rightarrow u(x,t) = f(t') = f(-4x-t) = g(4x+t)$$ where g and f are arbitrary functions of one variable  For the second part, we have the PDE: $$u_x+u_t = g(4x+t)$$  I made the following change of variables: $x' = x+t, t' = x-t$, and this leave us with the following "ODE": $$2u_{x'} = g(4x+t)$$  The answer is  $$ u(x,t) = c_1(4x+t)+c_2(x-t)$$  I understand that the last "ODE" give us the solution  $$u(x,t) = \int g(4x+t) dx' + c_2(x-t)$$ but why is the integral also a function of 4x+t? Where I commited a mistake?  Thanks in advance!  @Edit: Please, don't give me a solution using another technique that is not a factorization. I think my mistake, if there is one, consists on the variables that I am choosing.


python, importing function from other file which uses variable in the functions file

I currently have a python program which imports a function from a file, but this function uses a variable which is stored in the file the functon is called from.  The code for the main function:  from second_file import second  while True:      print second(param)   The code for the second function:   counter = 0  def second(param):      counter +=1      return param + counter   When running the programm i get the following error:  local variable 'counter' referenced before assignment   So the question is, how can i get the "second" function to use this variable.


If $\sqrt[n]{x}$ is rational, then so is $x$.

I am trying to show that if $x$ is irrational, then so is $\sqrt[n]{x}$ via contrapositive; that is, I want to assume that if $\sqrt[n]{x}$ is rational, then so is $x$ and this is how I proceeded with my attempt: if $\sqrt[n]{x}$ is rational, then we write $\sqrt[n]{x}=\frac{u}{v}$ with $u\in\mathbb{Z^{+}}$ and $v\in\mathbb{Z}$ and $\gcd(u,v)=1$. We then have $x=\frac{u^{n}}{v^{n}}$ which implies that $u^{n}=xv^{n}$. From this point, how can I continue, or should I abandon this method?


Can I cast a concentration spell through an "Invoke Duplicity" clone?

I am using "Invoke Duplicity" to create a perfect illusory clone of my self. The clone is currently 100ft away. I want to cast "Dominate Person" on a target 120ft away. Can I do so without moving?  For simplicity, assume I am on a flat, well-lit plain with no obstructions so I can clearly see out to 120ft.  Invoke Duplicity is a Trickery Domain feature that requires concentration and allows you to "cast spells as though you were in the illusion’s space, but you must use your own senses."  Dominate Person is a spell with range 60ft and requires concentration. It also states:     While the target is charmed, you have a telepathic link   with it as long as the two of you are on the same plane   of existence.    I know that when I cast Dominate Person, the Invoke Duplicity effect will end (since they both require concentration), but I wonder if the effect will last long enough for me to target and cast the Dominate Person spell.  This question was inspired by  and . It is not a duplicate of the latter because it is not trying to cast the second spell (Dominate Person in this case) for an instant effect. It is not a duplicate of the former because the former is a duplicate of the latter, so if this question isn't a duplicate of the latter, it therefore can't be a duplicate of the former either. If they have the same answer it does not make it a duplicate if the questions being asked are different.


How to install the latest Linux Kernel, Mesa, Intel/AMD GPU drivers, and Xorg.. on Ubuntu 18.04 LTS?

On Ubuntu 18.04 LTS, how to get:   Linux Kernel: 5.0 or newer. Mesa Library: 19.0 or newer. Intel Graphics Driver: ...? (latest) AMD Graphics Driver: ...? (latest) Xorg: ...? (latest)   I have two machines, one with a GPU from Intel, the other from AMD.  Another way to ask this question would be: how to optimize gaming (e.g. Steam) and make the most out of newish-hardware, specifically on Ubuntu 18.04 LTS?


What is the good use for t-SNE, apart from data visualization?

In what situations should we use t-SNE (apart from data visualization)?  T-SNE is used for dimensionality reduction. The answer to this   suggests that t-SNE should be used only for visualization and that we should not use it for clustering. Then what is the good use for t-SNE?


Does the Multiverse Undermine argumente based on statistical inference?

In the last fifty years, eminent physicists have discovered that the physical parameters of our universe are fine tuned, which means that a slight change in these parameters would render life as we know it impossible. Thus, the probability is very low that a universe with random values of these parameters has life as we know it.        This has led theists to argue that the physical parameters of our universe must have been deliberately selected by God to produce life. Atheists counter that, if there are an unlimited number of other universes then, regardless of how low the probability of life in any particular universe is, life must be found in at least one universe, and we just happen to be in that particular universe. Indeed, were the parameters not those needed for life, we wouldn’t be here to inquire about it. Theists counter by saying that there is no evidence for other universes, but they have forgotten that the  burden of proof is on them to show that there aren’t other universes because design inference based on statistics depends on proving that the available number of trials is limited. This is made clear by the following example. Consider an event that has a probability of occurrence of 1 out of a billion. If the total number of available trials is 100, then we don’t expect to observe this event. But if the total number of trials is a trillion, we do expect to observe this event because it is well known that, if the total  number of trials is equal to or greater than the reciprocal of the probability, then we expect to observe that event. In conclusion, since the burden of proof is on the person who is trying to prove something, and since design inference requires proving that the total number of trials is limited, and since there is no way to prove that the total number of trials is limited, classical design arguments for the existence of God are fallacious. Is there any way to rescue classical design arguments based on statistics?


Resize canvas maintaining proportions of content, avoid stretching

I'm creating a canvas element to place some Babylon content. I want that canvas to be full width and full height responsive. For that I used this JS: $( window ).resize( function () {   $('#canvas').css({      "height": window.innerHeight,      "width": window.innerWidth   }); });  That works fine resizing the content, but the content is streatching itself when I resize the window. How can I avoid that stretching?


How can I recover data from a 2TB hard drive?

I have a Western Digital 2TB External Hard Drive. I basically use it to keep all my movies and videos. Its file system is NTFS, and currently I'm using 1.4TB. One night I turn it on and copied a 4GB file and there was no problem. Then I tried to copy another 6GB file and Ubuntu throw the following error: "Input/output error". I tried to create a new folder with no luck. I still could read the disk an play a file, so I thought restarting the computer would solve the problem, but it didn't. The next time, Ubuntu didn't mount the disk.   After that I tried in another PC with Window 7. It throwed a message telling me: first, that the disk needs to be formatted, and second, a "Local Disk #: Is not accessible. Data error (cyclic redundancy check)". Here is when I started to worry. I tried to fix the disk with CHKDSK (chkdsk \r). After about 5 hours, it crashed with the following error: "An unspecified error occurred".  My guess to all this is that the disk is dying. :'(  Lastly I did one more thing. I installed GSmartControl on Ubuntu to see the SMART info and the attributes tab appears in red with the following line highlited:  ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE ... 197 Current_Pending_Sector  0x0032   197   197   000    Old_age   Always       -       977 ...   Just to check, I left the disk on for about 2 minutes and then refreshed the page, and the Current_Pending_Sector RAW_VALUE increased from 977 to 979. My guess is that sectors on the disk are dying. Am I right?  If every time I turn on the disk more sectors are going to die, I need to copy the data fast. I don't know if there is a solution on Windows, and I'm worried about the time that it could take to do it with the slowness of Windows. Basically my question is: How can I recover the data? (Or at least some of it). Is there any program on Ubuntu that can help me with this (If I'm still on time)?. My main concern is the size of the disk (2TB), so I think I would need at least another 2TB disk to copy to.  Any help would be appreciated.


Which is correct? "It's products like this" - "It's products like these"?

first question here. Hope I'm doing it right.  English is my native language, and the first option sounds correct to me. "Bitcoin is great, it's products like this which are driving innovation, etc." (just to give you an idea of the type of sentence I have at hand.  It's this seemingly contrasting singular / plural aspect that is making it extremely hard to explain why it is that I believe the first is correct.  The subject of my sentence is singular (in the example above it's Bitcoin), which is why I'm using the third person "it", and then "this".  I think it boils down to "products" throwing people off here. Long story short, am I right in using "it's products like this", or should I be saying "these", and presume that along with Bitcoin there are other - unspoken things that are part of this sentence?  Thanks!


I need your help  I have this piece of code   interface A {       void PrintFields(); } class B : A {     int y;     void  A.PrintFields()     {          Console.WriteLine("y = {0}", y);     } }   and  I have this    interface A {       void PrintFields(); } class B : A {     int y;     public void PrintFields()     {          Console.WriteLine("y = {0}", y);     } }   }  so I am confused about the difference between those two different ways in implementing interface methods and why I can't use the public modifier in the first way.


When I tried to log out by clicking the logout link at the top (first time for me because I don't really log out of S[OFU] unless I clear my browser's session data), I got the following message:     You're a registered user.      You can log in or out at any time   using the OpenID you've already   associated with your account.   And when I clicked on the parts of the site, it seems that I'm still logged in (see, i'm creating this question after I logged out and this question would probably appear in the list of the questions I asked) and my name is still appearing at the top of the page.  Is this by-design or is this a bug?


I am planning to go on an outdoors day trip with no way to heat up food.  Is it safe to heat up a packaged, fully cooked sausage in the early morning (4:00 AM) and wrap it with bread and store it in a plastic ziploc bag for consumption in the afternoon (2:00 pm)? (around 10 hours)  I am ok with eating cold food.


How to change permissions of multiple files found with find command?

I have a directory with numerous files. Part of the files have the 755 permissions and the other part have 644 permissions. I'd like to convert the files with 755 permissions to 644. I have tried the following line by running it from the directory itself:  find . -perm 755 -exec chmod 644 {}\;   However as a result, the permission changed only for the directory itself and after changing it back I found out that the files permissions remained unchanged. Do I miss something?


A manga about the main character trying to gain enough MP to summon a goddess

The main character wakes up with amnesia, not remembering who he is. He's surprised when a goddess starts speaking to him. Apparently, he had fallen in love with her, and in exchange for being able to gather enough MP and the ability for her to become his familiar, the main character asked the Goddess to reset his class, ultimately resetting his levels and his memory as well. He goes on an adventure to be able to fulfill summoning her and on the way tames a slime and a high level boss, which is a suit of armour. If I correctly remember his past, he was a soldier of sorts who was trying to protect a child which can be seen being eaten by bugs due to the fact that her body was rotting. In grief, he became a demon, or something like that. I don't think it's an isekai since the main character himself wasn't transported into the world.


I am currently using rainfall data in determining rainfall patterns. But when I use Polygonize, the values on the attribute table of the created vector file were rounded off to the nearest whole number. I want to keep the decimal number but iI can't find any option to do that.


If a mapping $f:X \rightarrow S^4$ is not surjective, then it must be null-homotopic?

If a mapping $f:X \rightarrow S^4$ is not surjective, then it must be null-homotopic.  Why is this? I understand that if the map is surjective then it is not homotopic to the constant map because $S^4$ is not contractible. Can somebody explain this to me? Are there similiar situations for $S^2, S^3$ or $S^n$ for that matter? Thanks!


How to enter the UK during a layover as a Filipino citizen?

My friend and I are working in Riyadh. We are Filipino by nationality and passport. We have Schengen visas because we will be travelling around Schengen territories. On our return to Saudi Arabia, we will leave from Berlin, Germany and fly to London Heathrow for a 16-hour layover before the flight to Riyadh.  Are we able to go outside the airport during the layover in the UK? What visa do we need to be able to tour a bit before our next flight?


Change the size of a particular piece of text

I want to increase the size of a particular text. Suppose I want to write the following:   "I am a hungry cat I want to drink the rains I am not thirsty"   I want the middle line to be written in big and I want the 1st and 3rd line to write very small. How can I do that?


Are the 5 digits of all land vertebrates an accidental number?

All land verterbrates except some frogs have 5 fingers on hands and feet.   The first vertebrate lizards came out of the water and had 7 fingers ( -370mn yrs), and then 6 fingers, and after 30 million years, all their descendents had 5 fingers on both limbs.   someone told me "5 is much more of an accidental number", so if all land vertebrates had 7, then 6 fingers, why did that get selected to 5?


Gmail "suspicious sign-in attempts" email - legitimate?

I got two emails this week from Gmail, claiming to have prevented "suspicious sign-in attempts" to my account. These emails came from the address: signins.activityalerts@gmail.com (using the name "Activity Alerts"), and were located in my inbox (not spam, where faked emails should go).  Image of one of the emails:    Text:     [My name redacted],      In the past 48 hours we have detected 6 failed sign-in attempts to your Google Account, [My email redacted]. We have prevented further sign-in attempts from the responsible address in case this was a hijacker trying to access your account. Please review the details of these attempts:      IP Address: [Redacted]      Location: [Redacted]      ISP: [Redacted]      Organization: [Redacted]      If you do not recognize this address, someone else might be trying to access your account. These sign-in attempts were unsuccessful, so no action is required. However, you may wish to reset your password for greater security. Find out how at       If this was you, you may safely ignore this email. The address will be allowed to sign in again within 24 hours.      Sincerely,      The Google Accounts Team   Are these legitimate? I've never seen the email address before, but the only link on it (to learn how to reset my password) goes where it says and doesn't ask for any login information. If it is legitimate, is my account safe or compromised?


Efficiently evaluating $\int x^{4}e^{-x}dx$

The integral I am trying to compute is this:  $$\int x^{4}e^{-x}dx$$  I got the right answer but I had to integrate by parts multiple times. Only thing is it took a long time to do the computations. I was wondering whether there are any more efficient ways of computing this integral or is integration by parts the only way to do this question?  Edit: This question is similar to the question linked but slightly different because in the other question they are asking for any method to integrate the function which included integration by parts. In this question I acknowledge that integration by parts is a method that can be used to evaluate the integral but am looking for the most efficient way. This question has also generated different responses than the question linked such as the tabular method.


I'm getting following error while doing tab, tab inside of shell:     -bash: cannot create temp file for here-document: No space left on device   root@alexus:~# cat /etc/issue.net Ubuntu 14.04.3 LTS root@alexus:~# uname -a Linux alexus 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux root@alexus:~# df -h Filesystem      Size  Used Avail Use% Mounted on /dev/vda1        30G   17G   11G  61% / none            4.0K     0  4.0K   0% /sys/fs/cgroup udev            487M  4.0K  487M   1% /dev tmpfs           100M  404K  100M   1% /run none            5.0M     0  5.0M   0% /run/lock none            498M  352K  497M   1% /run/shm none            100M     0  100M   0% /run/user root@alexus:~# df -i Filesystem      Inodes   IUsed  IFree IUse% Mounted on /dev/vda1      1966080 1966080      0  100% / none            127234      11 127223    1% /sys/fs/cgroup udev            124520     402 124118    1% /dev tmpfs           127234     346 126888    1% /run none            127234       1 127233    1% /run/lock none            127234      19 127215    1% /run/shm none            127234       2 127232    1% /run/user root@alexus:~#    how do I free inodes?


I can ride on flat at high gears all day without a problem I usually go way faster that most of riders. But once it comes to hills I die... My heart beat rate jump up my stamina go away and I get tired in seconds. Even older folks that barely have any cadence on flat can beat me on hills. I need to get down from my bike , take a break and keep on foot. Because once on bike again my heart rate will go crazy again and I will get tired in seconds.  I am doing something wrong ? I always go to the lower plate and lower cogs on climbs but if it is too steep even the lowest one kills me.   I drive a lower end hybrid bike. It have I belive 14-28 (7 rings) rear cassette and 28/38/48 front gears. How much it matters compared to how fit you are ? I mean 1:1 relation it is should be more that enough to climb.


Core update of 4.2.3 changes all link to https

Latest update of wp 4.2.3 applied to my two to three installation automatically. After that my all links starting with https due to that sites are not opening properly  Can anyone know what the changes in 4.2.3 from previous one.   For quick fix I change wp-includes/function.php is_ssl() so that it will return false compulsory.  This question is mark duplicate, But referred question is based on chrome. this question is based on wp. chrome is not redirecting the link to https. proof if you forcefully return false from is_ssl() funtion then site will work fine. So basically some how is_ssl() returning true after the said updates so my question is which factor or cause is forcing is_sll() to return true. I had not changed any thing in core files.


How do I add zero padding to filenames that already have numbers in them?

I used Sound Juicer to rip a CD of audio for a language learning book so that I could listen to them on my Android. However, Sound Juicer seems to only have the option of numbering files without leading zeros. Like this:  track_1.mp3 track_10.mp3 track_11.mp3   This leads to some confused ordering on my music player. So, I want to add some zeros to the name, so that they're ordered properly, like this:  track_01.mp3 track_02.mp3 track_03.mp3   How do I accomplish this? I tried using GPRename, but while it has the ability to add numbers, it doesn't seem to have any options for adding leading zeros.  Is there a better program or something I can do at the command line?


Pythagorean "Paradox" (right-angled triangle).

Consider an isosceles right-angled triangle as shown in the figure (top left). The length of its hypotenuse is $c$. The figure distinguishes both legs of the triangle, however, from now on let's assume, since it's an isosceles right-angled triangle, that $b=a$.  Now, let's build a stair on the hypotenuse with steps of height $\frac{a}{n}$, and width $\frac{a}{n}$. If $n=1$ we have the picture of the figure (top centre), in which $d=a$ and $e=a$. Here the length of the stair is $d+e=2a$. Notation: I will refer to each step in the stair as $s_k$ for some $k\in\mathbb N:0<k\leq n$. If we continue doing the same procedure, we have that for some $n\in\mathbb N$ that the lenght $\ell(n)$ of the stair is: $$\ell(n)=\sum\limits_{k=1}^n \text{lenght}(s_k) = \sum\limits_{k=1}^n2\frac{a}{n}=2a.$$ If we build a stair with infinitely small steps, why don't we end up with a straight line? Because if we did, we would be saying that $c=2a$, and by the pythagorean theorem we know that $c=\sqrt{2}a$. I appreciate your thoughts.


Understanding Lagrange's Theorem (Group Theory)

I am beginning with Abstract Algebra and I'm trying to understand Lagrange's Theorem. The theorem reads      For any finite group $G$, the order of every subgroup $H$ of $G$ should divide the order of $G$.   It seems simple and I've used it to solve some exercices but I believe I'm missing the essence of it. Is there an example that can help me understand it better, or visualize it? Is there a geometric interpretation?


one day I noticed that my site was crawled by google and after this crawl my website was removed from one keyword. It may have been error on my part because I made menu item with thas tag as H1, maybe search engine classified it as keyword abuse, now I removed H1 tag from menu. What should I do to get my site back on this keyword?  Paulius,


I have been trying to figure out the video making in blender. I have a green screen and decided to film myself in front of it. I uploaded the video into blender in the compositing category. Once I filled my green screen in with a background I was ready to save the video I have created. I Have the file format as an xvid but it still only saves the single frame of the video I am paused on. Yes, I am new to blender. Any attempt of help is greatly appreciated!


How to change location, charset in Wordpress query

I have strange question. How Can I change or set a sql char set in wordpress. In wp_config.php I have:  define('DB_CHARSET', 'utf8'); define('DB_COLLATE', 'utf8');   In my plugin I have this:  global $wpdb, $charset_collate; require_once ABSPATH . 'wp-admin/includes/upgrade.php';  if ($wpdb->get_var("SHOW TABLES LIKE '" . $ow_odczyty . "'") != $ow_odczyty) {         $query_one = "CREATE TABLE " . $ow_odczyty . " (                 id mediumint(9) NOT NULL AUTO_INCREMENT,                 data datetime DEFAULT '0000-00-00' NOT NULL,                 stan int NOT NULL,                 UNIQUE KEY id (id)                 ) $charset_collate;";          $wpdb->query($query_one);         add_option("ow_db_version", $ow_db_version);   What it's wrong. When this plugin create above script I have latin1_swedish_ci and I don't know why. Sorry for my English.   Best regards!


I have this question about proving that the sequence have non real limit  $$ U_n=1+\dfrac{1}{2}+...+\dfrac{1}{n} $$ I've proved that $1<U_n<n$   is that enough ?or it's wrong   Thanks for helping


After doing some change As Mr Vérace told me here , by changing the id names of each table into table_name_id and using the singular notation, I still need your opinion about this database and if it is ok to start with for a dentists application.    Here is some information about it  I added a table called dentist_info to add information about each dentist.  Login Table contain login information for dentists (it may be used by multiple dentists online)  The id_logged column is a foreign key of the id of logged in dentists, and it should be in all tables. (To let dentists see only their own patient info and details).  The patient_id column is a foreign key too. And it is taken from patient table and used as foreign key in med_history that represents the general medical information of the patients, patient_info that represents the general information, and the reason of visit and what tasks to do, and in the appointment table.  I have 2 questions:  1- Is there more than that information to add for a dentist database?  2- Is this database correct? Or are there errors?


Suppress Fancy header and footer on first page only.

How to suppress the fancy header and footer on the first page? On other pages, they should be visible.


How to get pygtk working on Ubnutu14 with Python3

I'm trying to run a simple helloworld.py example for pygtk on Ubuntu 14, this is my Ubuntu version info:  This is my ubuntu version: Distributor ID: Ubuntu Description:    Ubuntu 14.10 Release:    14.10 Codename:   utopic   I have both Py2 and Py3 installed (Python2.7 and Python3.4), through Ubuntu package manager, but I want to run pygtk with python3.  Now I try to run the pygtk sample, and I get:  $ python3 helloworld.py  Traceback (most recent call last):   File "helloworld.py", line 2, in <module>     import pygtk ImportError: No module named 'pygtk'   Ok, so pygtk module is missing, so I try to install it using pip:  $ sudo pip3 install pygtk Collecting pygtk   Using cached pygtk-2.24.0.tar.bz2     ********************************************************************     * Building PyGTK using distutils is only supported on windows. *     * To build PyGTK in a supported way, read the INSTALL file.    *     ********************************************************************     Complete output from command python setup.py egg_info:     ********************************************************************      * Building PyGTK using distutils is only supported on windows. *      * To build PyGTK in a supported way, read the INSTALL file.    *      ********************************************************************      ----------------------------------------     Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-4xuy8p4h/pygtk   The confusing part is, the pygtk site tell me:       PyGTK is included in most Linux distributions (including Debian,   Fedora, Ubuntu, Opensuse,  Gentoo, Mandrake, Redhat, SUSE...); the   source code can also be downloaded and compiled  from the links below.   Where and how is pygtk installed in my Ubuntu system, and what's the issue with all the errors I'm getting. Or is it that I need to build pygtk from source?  EDIT:  The other confusing part is the message about distutils; is pip part of distutils, so the message is telling me that pygtk cannot be installed using pip on systems other than Windows (probably it is and that's why the message is  generated, but one can't be too sure), or is it that pip not part of distutils, in which case pip CAN be used to install pygtk?! (Why do I need to trace the history of packages and their name changes and which scripts/tools belong to which packages just to understard an error message!)


Why does an odd number price look smaller than an even number price?

Whenever I go to a fast food restaurant or a store, I noticed that the product prices end with a 9 rather than a 0.   Please see the example below. Even though the difference is just 1 pence,  people perceive £2.99 as a much smaller number than £3.00. That is because the price ends in 99.    Now, please take a look at the second example below. Even though the price is not ending with "99", people still perceive it as cheaper. What is the reason behind this?


Bounding Euler's e by showing $2 \leq \left (1+ \frac{1}{n}\right)^n < 3$

(a)For $m,n \in \mathbb{N}$, $m<n$ and $k=0, ..., m$: $$\frac{1}{m^k} \binom{m}{k} \leq \frac{1}{n^k} \binom{n}{k}$$ (b)For $n\in \mathbb{N}$ and $k=1, ..., n:$ $$\frac{1}{n^k}  \binom{n}{k} \leq \frac{1}{k!} \leq \frac{1}{2^{k-1}}$$ (c)Show that for $n \in \mathbb{N}:$ $$2 \leq (1+ \frac{1}{n})^n < 3$$ Use (a) and the binomial theorem for (b). Use the following for (c): $$\sum_{j=0}^{n}q^j=\frac{1-q^{n+1}}{1-q}$$  I've already proven (a) thanks to @trancelocation. Now I got stuck on (b) and (c). (b) I don't know how to use (a) and the binomial theorem here. $\frac{1}{n^k}  \binom{n}{k} \leq \frac{1}{k!} \leq \frac{1}{2^{k-1}} \Leftrightarrow \frac{n!}{n^k*(n-k)!* k!}\leq \frac{1}{k!} \leq \frac{1}{2^{k-1}} \Leftrightarrow \frac{n!}{n^k*(n-k)!}\leq 1 \leq \frac{k!}{2^{k-1}}$ Now I have to show: $\frac{n!}{n^k*(n-k)!}\leq 1$ and $1 \leq \frac{k!}{2^{k-1}}$ $\frac{n!}{n^k*(n-k)!} = \frac{n*(n-1)*...*(n-k+1)*[(n-k)*...*1]}{n^k*[(n-k)*...*1]}=\frac{n*...*(n-k+1)}{n^k}=\frac{n}{n}*\frac{n-1}{n}*...*\frac{n-k+1}{n} \leq 1$. The first factor is $1$. Starting from the second factor their value gets smaller, so the entire term gets smaller then $1$. I tried to do it like this: for $i=0, ..., n$:  $\frac{n-i}{n} \leq 1 \Leftrightarrow n-i \leq n \Leftrightarrow 0 \leq i$ For the second part: $\frac{k!}{2^{k-1}} \geq 1 \Leftrightarrow \frac{k!}{2^k*2} \geq 1 \Leftrightarrow \frac{k!}{2^k} \geq 2\Leftrightarrow \frac{k}{2}*\frac{k-1}{2}*\frac{k-2}{2}*...*\frac{1}{2} \geq 2$ So for $\frac{k-j}{2} \geq 2$, with $j=0, ..., k-1$ $\frac{k-j}{2} \geq 2 \Leftrightarrow k-j \geq 4$ This doesn't seem to help at all. (c)$2 \leq (1+ \frac{1}{n})^n < 3$ I didn't know how to start at c) at all. The provided formula doesn't help me.


Why $\lim\limits_{n\to \infty}\left(1+\frac{1}{n}\right)^n$ doesn't evaluate to 1?

I am trying to identify what the flaw is exactly when reasoning about a limit such as the definition of $\mathbf e$:  $$ \lim_{n\rightarrow \infty}\left(1+\frac{1}{n}\right)^n={e} $$  Now, I know there are ways of proving this limit, such as by considering the binomial expansion of $(1+\frac{1}{n})^n$ and comparing that to the Maclaurin series of $e$. So to make this clear, I am not looking for a proof of the limit definition of $e$.  I tried searching for "limit laws/rules" but none of the rules I found described the above case. Hence, I am looking for a specific rule (or perhaps a certain perspective) that will help me realize why the above does not in fact evaluate to 1.  My train of thought is as follows: at a first glance, if I wasn't already familiar with what the limit evaluates to, I probably would evaluate the expression inside the brackets first, and then apply the limit to the power. So, $$\displaystyle\lim_{n\to\infty}\frac{1}{n}=0\quad\text{and then}$$  $$\displaystyle\lim_{n\rightarrow \infty}\left(1+0\right)^n=\lim_{n\to\infty}1^n=1$$  Why is my reasoning flawed?


Why can't a parent pointer be assigned to a child pointer?

I have a trivial inheritance case following: class Person { public:     const char* name; public:     Person()         : name("Unknown person") {}          Person(const char* name)         : name(name) {} };  class Student : public Person { public:     Student()         : Person("Unknown Student") {} };  If I assign a child pointer to a parent pointer, it is totally legal: Student *s = new Student(); Person *p = s;  But if I do the other way, assigning a parent pointer to a child pointer, it would cause an error: Person *p = new Person(); Student *s = p;  The error is: invalid conversion from ‘Person*’ to ‘Student*’. An example where this might be useful is: I have a Person class, and depends on where this person will do in life, I will transform it into Student, Teacher, etc. Any suggestions?


Is the NE555 the IC I need, and if not, what do I replace it with?

I've noticed that whilst I have a well-known solution using an NE555, that IC doesn't fulfill my needs perfectly. Others have told me that the NE555 is very rarely an appropriate solution to one of the problems it's being used for.  What are the systematic problems with the NE555?  More specifically, I'd like to have a better (lower part count / complexity, better stability, lower power consumption) solution for the following typical applications:   One-off timer (Monostable Multivibrator) Ramp generator Dear versed reader: please extend this list with typical applications!


How to judge the reputation of a potential advisor or research group for good quality research for PhD?

I am planning my PhD and am applying to various labs and professors.   I am getting positive responses, but I am having trouble making a decision as to which lab to go for. How can I judge the quality of research of a group? What parameters shall be kept in mind while making a decision? I usually look for relevant research interests.


Finding an optimal solution to a linear program among solutions of another

I had the following question on my last Algorithms test which I didn't know how to solve, and the the professor didn't agree to publish the solution. I would like to know the solution though, since it's been bothering me not knowing.  I am given two linear programs with the same variables- $P_1, P_2$, both in standard form and it is known that $P_1$ has an optimal solution. Write a single linear program for the following problem: Find among all optimal solutions to $P_1$ which satisfy the restrictions of both $P_1,P_2$, a solution that maximizes the objective function of $P_2$.


As an Indian with a BlueCard to work in Germany, do need a visa to enter the UK?


What's the maximum number of rank upgrades per level?

I have upgraded a level to rank 10, and am wondering if there is an upper limit to the number of upgrades I can apply to a particular level.


I don't fully understand the term bridged networking in conjunction with Virtualbox.   As far as I understand that by configuring bridged networking I can put the VMs in the hosts network, while NAT would mean that the way to reach the machines is done via port multiplexing.  My understanding of network bridges was always that they are basically an older version of what we know as network switches today.  Can someone shed some light on this? Which two networks are being bridged? And why does a "bridge adapter" have an IP address? At which network layer is a Virtualbox bridge operating?


My weighting machines notes my weight to be 65. Should I read it 65N or 65kg.  PS: I only need a correct comment.  This question is different, since, I know very clearly what mass and weight are. But very part is that generally students (like me) and people are much more confused that what are they actually measuring in their weight, after they had passed their class 9 and learnt about gravity.  This question can directly solve such query.


I had ubuntu and Windows 8.1 simultaneously installed on 1 hdd and I Upgraded windows to windows 10, but during the installation, my laptop rebooted and now im stuck  error: no such partition. Entering rescue mode... grub rescue>  I treid the ls command to find the grub files, but it says "unknown filesystem" on all tge partitions


Search functionality in lightning:datatable?

Is there a way to search across all rows/columns in a lightning:datatable to narrow down the list, just like jQuery DataTables? If so, how do implement that?  Can I somehow do it all on the client-side to make it super fast (some sort of DOM manipulation)  I'm having some issues with the lightning:datatable not updating. I have attached my code below, maybe you can help me spot the issue:  Markup:  <aura:component extends="c:Base" controller="AccountBrowserForm"> <aura:handler name="init" value="{! this }" action="{! c.doInit }"/> <aura:attribute name="selectedAccountId" type="Id" access="public" /> <aura:attribute name="accounts" type="Object"/> <aura:attribute name="mycolumns" type="List"/> <aura:attribute name="sortedBy" type="String" /> <aura:attribute name="sortedDirection" type="Boolean" default="true" />  <aura:registerEvent name="AccountFilterChange" type="c:AccountFilterChange" />  <aura:attribute name="backingdata" type="List" /> <aura:attribute name="filter" type="String" /> <lightning:input type="text" onchange="{!c.filter}" value="{!v.filter}" label="Filter" />  <lightning:datatable aura:id="lightningTable"                      data="{! v.accounts }"                      columns="{! v.mycolumns }"                      keyField="Id"                      onrowaction="{! c.handleRowAction }"                      onsort="{!c.updateColumnSorting}"                      sortedBy="{!v.sortedBy}"                      sortedDirection="{!v.sortedDirection}"                      hideCheckboxColumn="true" />     Controller:  doInit: function (component, event, helper) {     helper.callServer(component, "c.getAccounts", $A.getCallback(function (response) {         component.set("v.accounts", response);         component.set("v.backingdata", response);         console.log(component.get("v.backingdata") + " /// BACKING DATA INSIDE ")         console.log(component.get("v.accounts") + " // ACCOUTN DATA INSIDE")          component.set('v.mycolumns', [{                 type: "button",                 typeAttributes: {                     label: '',                     iconName: 'utility:add',                     name: 'selectRecord',                     title: 'selectRecord',                     disabled: false,                     value: 'edit',                     variant: {                         fieldName: 'variantValue'                     },                 }             },             {label: 'Name', fieldName: 'Name', type: 'text', sortable: true},             {label: 'Street', fieldName: 'BillingStreet', type: 'text', sortable: true},             {label: 'Postal Code', fieldName: 'BillingPostalCode', type: 'text', sortable: true},             {label: 'City', fieldName: 'BillingCity', type: 'text', sortable: true},             {label: 'Country', fieldName: 'BillingCountry', type: 'text', sortable: true},         ]);          console.log(component.get("v.backingdata") + " *** BACKING DATA OUTSIDE *** ")         console.log(component.get("v.accounts") + " *** ACCOUNT DATA OUTSIDE *** ")     })) },  filter: function (component, event, helper) {     var data = component.get("v.backingdata"),         term = component.get("v.filter"),         results = data,         regex;     try {         regex = new RegExp(term, "i");         // filter checks each row, constructs new array where function returns true         results = data.filter(row => regex.test(row.name) || regex.test(row.age.toString()));     } catch (e) {         // invalid regex, use full list     }     component.set("v.accounts", results); },   For some reason the filter function is completely unresponsive. Also, does it matter that I'm populating the component with a response from a callback function. @sfdcfox, I noticed in your example that you simple created an array with dummy data. My "myaccounts" attribute is of type object


Does Thunderbolt speed provide a benefit over USB 3.0 for an external hard disk?

Numbers imply that Thunderbolt is faster than USB 3.0. But, is there any external hard drive that can really reach this speed?


runtime error in storing char into a pointer value

problem is in 15 and 16th line  i am unable to store char into a pointer pointing to a string. the problem is same as given in my book.?do i need to change my compiler dev c++? plz help.  #include<iostream> #include<conio.h> using namespace std; void reverse(char *str) {     char *end=str;     char *beg=str;     char temp;     while(*end)     {         end++;     }     end--;     while(beg<end)     {         cout<<*beg<<" , "<<*end<<endl;         temp=*beg;         *beg=*end;         *end=temp;         beg++;         end--;     }     cout<<str; }  int main() {     char *str="saurabh";     reverse(str);     getch();     return 0; }


Irreducible factors of characteristic polynomial and minimal polynomial are same?

I've seen in my linear algebra textbook that one can prove that the irreducible factors of a characteristic polynomial and minimal polynomial are the same using Primary Decomposition Theorem, but I have no idea how this happens.  So the fact that irreducible factors of a minimal polynomial are irreducible factors of a characteristic polynomial is trivial due to Cayley-Hamilton Theorem, however the converse does not seem so easy. I think I found a solution using field extensions and eigen values, but I want to try to prove this using Primary Decompostion Theorem.  I've found  this question, it says,  Let the minimal polynomial of a linear transfomation $T:V \to V$ over field F be  $m = {f_1}^{m_1} ... {f_n}^{m_n}$. Now restrict $T$ to $ker({f_i}^{m_i})$, and use the Cayley-Hamilton Theorem, and the fact that $f_i$ is irreducible to prove the statement.  How ever I don't see how this happens, if I let $W_i = ker({f_i}^{m_i})$, I can show that the minimal polynomial of  $T|_{W_i}$ is ${f_i}^{m_i}$ but using Cayley-Hamilton only gives that the characteristic polynomial of $T|_{W_i}$is a multiple of ${f_i}^{m_i}$, and I don't think this really helps.  I'm thinking that I have to use some unique properties of a characteristic polynomial other than the fact that it's an annihilator, since not every annihilators have the same irreuducible factors as minimal polynomials. Can you help me with this?  +) Okay so to be exact, there's a Lemma on my Textbook:  Let $V$ be a vector space over field $F$, and suppose $T$ is a linear transformation from vector space $V$ to $V$, and let $f_1(t), ...f_k(t)$ be mutually relatively prime monic polynomials over field $F$. if $f_1(t)f_2(t)...f_k(t)$ is an annihilator of $T$, $V$ can be decomposed into direct sums of $kerf_i(T)$.  and there's a exercise that says to prove the following using the Lemma above:  Let $V$ be a vector space over field $F$, and suppose $T$ is a linear transformation from $V$ to $V$, then the 'set of monic irreducible divisor over field F' is the same for the characteristic polynomial of $T$ and the minimal polynomial of $T$.  I have no knowledge about modules, and I know characteristic polynomial as $det(tI-T)$ and minimal polynomial as the minimal annihilator of T.   This isn't my homework or anything, I just got stuck while studying with this textbook on myself :(( Any help?


How to create a desktop shortcut in Unity?

Is there an easy way to create a desktop shortcut for an application in Unity? The ability to right click or drag and drop icons to the desktop in Unity does not seem to be there.


Which punctuation is correct in this case (colon, semicolon, or period)?

Inside the alley I found myself cornered by unpleasant sights: walls covered with cracks and peeling paint, storm drains clogged with moss, dumpsters overflowing with bags, cans, and rotten trash. Inside the alley I found myself cornered by unpleasant sights: walls covered with cracks and peeling paint; storm drains clogged with moss; dumpsters overflowing with bags, cans, and rotten trash. Inside the alley I found myself cornered by unpleasant sights. Walls covered with cracks and peeling paint. Storm drains clogged with moss. Dumpsters overflowing with bags, cans, and rotten trash.  Or maybe the three of them are orthographically correct in their respective contexts? EDIT (based on dockeryZ's answer): I think second example is right, regardless of the context. Explanation: .


Emphasis in XeLaTeX after MiKTex 2.9 update

A strange problem occurred after a MiKTeX update: the \emph command stopped working properly and has to be tweaked manually. The following MWE produces upright characters where italics are expected. I have to uncomment the tweak to make things work. Any ideas what the cause could be?  \documentclass[a4paper,oneside,12pt]{article} \usepackage{mathspec} \makeatletter %\@ifundefined{emfontdeclare}{}{\emfontdeclare{\itshape,\upshape,\itshape}} \makeatother \def\mainfont{Adobe Text Pro} \setallmainfonts[Ligatures=TeX]{\mainfont}  \begin{document}  \emph{test-emph \emph{test-emph-emph \emph{test-emph-emph-emph}}} {\itshape test-itshape}  \end{document}


Text is overflowing form fields in the Android app

When writing posts in the Android app, some of text is getting outside the lines. This is only in the main body, not in the title or tags fields    As you can see, it happens when posting answers, too.    Motorola Moto X (1st gen) with Android 4.4.4.  (This may be related to )


Writing script that will merge shapefiles?

We use an application called IntraMaps Roam.  Our guys go out in the field, mark up their maps with GPS points, and then bring them back to the office.  They will copy their shapefiles to the server and the script will combine them at night.  The next morning they will download the new maps.  How can I accomplish this task?


How can i get these eigen values of this hard to handle matrix?

I'd like to proof that eigen values of this matrix is given by (8-16) and bellow to (8-17), my trouble is about solve p-degree polynomial.


Find splitting field and irreducible decomposition

I'm trying to  solve the following exercise. I did the first two points( hope they're right), but have no idea on how to solve the last one.     Let $f(x)= x^8 -x$  in $\mathbb{F}_3[x]$.      Find:         its splitting field over $\mathbb{F}_3$   the number of irreducible factors of $f$ in $\mathbb{F}_3[x]$    decompose $f$  in irreducible factors over $\mathbb{F}_{81}$.        My attempt:   I write $f=x(x^7-1)$. Now, I know that $x^7-1$ has splitting field $\mathbb{F}_{3^t}$, where $t$ is the smallest number (integer) such that $7|3^t-1$. I find $t=6$, therefore the splitting field of $f$ over $\mathbb{F}_3$ is $\mathbb{F}_{3^6}$. To find the number of irreducible factors, I compute the 3-cyclotomic cosets modulo 7, which are    $$\mathcal{C_0} = \{0 \}, \mathcal{C_1}=\{ 1,3,2,4,6,5 \}$$        Therefore, I have two irreducible factors for $x^7-1$, therefore I have $3$ irreducible factors for $f$, they are: $$x,x-1,(x-\alpha^1) \cdots (x-\alpha^5)$$ where $\alpha$ is a $7-$th root of unity.   For the last question, I don't think I should explicitely construct $\mathbb{F}_{81}$. Is there any trick to solve it? I really can't figure it out.


I have a lot of loop devices, what are they and should I get rid of them?

Whenever I open my file browser, there are a these loop devices, I don't know what they are, I tried to look up but I didn't understand what they are. They keep increasing every so often, I haven't seen the frequency of this but I know there weren't as many loop device directories before.  My question is, should I get rid of them? Should I just let them be?   Thanks for the help.


Stolen wallet containing check. What are the proper steps to take now?

My wallet was stolen. I cancelled all my cards, but I also had a check written to me that I hadn't deposited yet. I have contacted the issuer of the check and asked him to cancel it, but he says he is out of town an will not be able to do so for a couple weeks (he's also a jerk, but I digress). Since the thief has this check and my valid id, can they cash this check? What measures can I take to prevent this from happening? What measures can I take to get my money back if it does?  Note: they do not have my social security number or card


Similar to , I want to hide some ticks in a pgfplots axis. However, I'm trying to manipulate a 3D plot. I used the proposed answer and reread the documentation at: "4.15.2  Tick Alignment: Positions and Shifts" but didnt get the desired (expected result). Ideally I want ticks and labels in the front (x), left (z) and right (y) and no Ticks and no labels on all other box-lines. This is what I get:    however, what I'd expect is, that ytick pos = left hides the (picture side) left ticks and ztick pos = left hides the bottom back side and top left side ticks.  A minimal working example is:  \documentclass{article} \usepackage{tikz,pgfplots} \begin{document} \pagestyle{empty} \begin{tikzpicture}   \begin{axis}[%       width=5cm,       height=5cm,       scale only axis,       plot box ratio=3 2 1,       xmin=-1.5,       xmax=1.5,       ymin=-1,       ymax=1,       zmin=-0.5,       zmax=0.5,       xtick pos = left,       ytick pos = left,       ztick pos = left,       %tick pos = left,       view={40}{20},     ]     \addplot3[domain=0:2*pi,samples=50,samples y=0]       ({sin(deg(x))},       {cos(deg(x))},       {x/(2.5*pi)-0.5});   \end{axis} \end{tikzpicture}% \end{document}


How can I automate repeat mouse clicks, with delay, from fixed coordinates within a browser window?

Looking for a quick and dirty way to automate . I presume this could be done with an automation to press the mouse button from two separate pixel coordinates, with delay, so long as the browser window doesn't move -- unless there's a better way.  I tried building a Watch Me Do workflow, in Automator, but can't seem to get it to work.  I get the error "application Chrome is not running when it is expected to." It also never lists mouse clicks for some reason.  I do have accessibility set up, in system preferences > security & privacy > privacy > accessibility.  Automator, Chrome and System Events are all checked within there (among other stuff of course).  I tried the markashworth workaround as detailed  -- which also doesn't seem to work. Using his method, I get this error:    UPDATE: I just downloaded "cliclick" and figured out how do both clicks as a terminal command, with the proper delays.  BUT -- I don't know code and need a way for this terminal command to repeat "x" amount of times.  Anyone know how I could do that in Script Editor?  The command line is:  cliclick c:132,286 w:100 c:132,286 w:5000 c:1100,238   I would need a few seconds of delay before the loop repeats, which I presume I could do with a final "w:" in that line.  Thanks for the help!!


I found an answer under a question that has a code which completely doesn't work for me, but I was able to edit it on the way that it works.   However, I afraid of changing it, since I'm not sure that my code does the same as that I saw in the answer.  What to do? On demand, I may post the related answer with my code.


How can I keep a wireless card's radio powered off by default?

My desktop's PCI wireless card is always scanning for available wireless networks, but I only rarely use it. Can I keep the radio turned off until I need it?


Tag badge achievement caused strange rendering

On mobile, after you dismiss the notification of a tag badge you were tracking, a strange layout appears.        I guess there are some broken HTML element or CSS rendering problems causing this.  Can this be fixed please?


I am confused as to some of the vocabulary that can be used to compare numbers and quantities, and would very much appreciate some clarification.   I suppose it is safe to say that 1 is smaller than 2.   Can I also say that 1 is less than 2, and if so, which form is preferable?   It seems that saying that 1 is lesser than 2 is uncommon - but is it incorrect?   Finally, -2 is clearly less than -1, but is it true that -2 is smaller than -1? (If I have 2$ of debt, then I would say that I have less money than if I had 1$ of debt, but I would also say that my debt was larger, not smaller).