How do I flag a question as being on the wrong site when the correct site is not one of the flag options?

I wanted to flag  as being on the wrong site. I tried to flag it as belonging on computergraphics.stackexchange.com, but that was not one of the options.  So I flagged it as belonging on meta and left a comment.  How should we flag wrong site questions if the correct site is not listed as one of the flag options?


What changes with Kerberos authentication in IPv6 when everyone has a public IPv6 Address?

How should Kerberos authentication be set up with IPv6?     What implications are there when client devices each use a public, globally routeable IPv6 IP address?  What changes when setup this way instead of using a NAT as was the norm with IPv4?


What are the different Star Wars Canons?

I've seen many many references across this site to C-Canon, G-Canon and a couple of N-Canons when answering Star Wars questions.  I assume G-Canon has something to do with George Lucas but what are the other canon levels and what do the letters (G, C, N) letters represent?


Get month and year in a file created date using windows batch script

My requirement is to create folder with year ("Y" + yyyy, for example Y2019) and a sub folder inside that folder with month and year (yyyymm, for example 201904) and then I need to move my file inside that folder.  I have analyzed and found code to get year and month from current date only.  %DATE%   I have successfully retrieved the file created date using the following command, but could not able to found a way to get only year and month from this.  dir /T:C filename     Please provide a way to get year and month from a date retrieved from a file.


I was asked today by a friend to calculate a limit and I am having trouble with the question.  Denote $\sin_{1}:=\sin$ and for $n>1$ define $\sin_{n}=\sin(\sin_{n-1})$. Calculate $\lim_{n\to\infty}\sqrt{n}\sin_{n}(x)$ for $x\in\mathbb{R}$ (the answer should be a function of $x$ ).  My thoughts:   It is sufficient to find the limit for $x\in[0,2\pi]$ , and it is easy to find the limit at $0,2\pi$ so we need to find the limit for $x\in(0,2\pi)$.  If $[a,b]\subset(0,\pi)$ or $[a,b]\subset(\pi,2\pi)$ we have it that then $$\max_{x\in[a,b]}|\sin'(x)|=\max_{x\in[a,b]}|\cos(x)|<\lambda\leq1$$ hence the map $\sin(x)$ is a contracting map.  We know there is a unique fixed-point but since $0$ is such a point I deduce that for any $x\in(0,2\pi)$ s.t $x\neq\pi$ we have it that $$\lim_{n\to\infty}\sin_{n}(x)=0$$  So I have a limit of the form "$0\cdot\infty$" and I can't figure out any way on how to tackle it.  Can someone please suggest a way to find that limit ?  Note: I am unsure about the tags, please change them if you see fit.


Does Expanding Universe conflict with the Thermodynamics 3rd Law?

I know that  states that if a system in equilibrium is at zero temperature, its entropy is minimum.   Expansion of the universe made a transition from  (rde) to matter dominated era(mde). So the same question  occurred to me as well. But the answers did not satisfy me indeed. How is it possible that rde had lower entropy than today even if it was at higher temperature in the very early beginning of the universe? Isn't there any contradiction here?


Is "there're" (similar to "there's") a correct contraction?

Q: "Do you have any juice?"   A: "Yes, there's some in the fridge."   Sounds perfectly fine to me, but:     Q: "Do you have any towels?"   A: "Yes, there's some in the closet."   Does not.  I asked for towels - plural - so wouldn't "Yes, there're some in the closet," in which there are is turned into a contraction be the correct way to say it?  Spellcheck, however, doesn't like "there're", and I think I'm the only person I've ever heard use the word "there're".  Even folks who I know say "there are" shorten it to "there's" when possible.  Am I saying it wrong, or are both forms acceptable?


The simplistic undergrad explanation aside, I've never really understood what energy really is. I've been told that it's something when converted from one kind of something to another kind, or does some "work", as defined by us, but what is that something?  Moreover, if the total amount of energy in the universe is finite and we cannot create energy. Then, where did it come from? I've learned from thermodynamics where it goes, but where does it come from?  I know this sounds like something trivially simple, but there is so much going on in the physical universe and I just can't grasp what it is. Maybe it is because I lack the mathematical understanding that I can't grasp the subtle things the universe is doing. Still, I want to understand what it is doing.  How do I get to the point of understanding what it's doing?  (Note: What prompted me to ask this was . I'm afraid that it just puzzled me further and I sat there staring at the screen for a good 10 minutes.)


Differentiable manifolds as locally ringed spaces

Let $X$ be a differentiable manifold. Let $\mathcal{O}_X$ be the sheaf of $\mathcal{C}^\infty$ functions on $X$. Since every stalk of $\mathcal{O}_X$ is a local ring, $(X, \mathcal{O}_X)$ is a locally ringed space. Let $Y$ be another differentiable manifold. Let $f\colon X \rightarrow Y$ be a differentiable map. Let $U$ be an open subset of $Y$. For $h \in \Gamma(\mathcal{O}_Y, U)$, $h\circ f \in \Gamma(\mathcal{O}_X, f^{-1}(U))$. Hence we get an $\mathbb{R}$-morphism $\Gamma(\mathcal{O}_Y, U) \rightarrow \Gamma(\mathcal{O}_X, f^{-1}(U))$ of $\mathbb{R}$-algebras. Hence we get a morphism $f^{\#} \colon \mathcal{O}_Y \rightarrow f_*(\mathcal{O}_X)$ of sheaves of $\mathbb{R}$-algebras. It is easy to see that $(f, f^{\#})$ is a morphism of locally ringed spaces.  Conversely suppose $(f, \psi)\colon X \rightarrow Y$ is a morphism of locally ringed spaces, where $X$ and $Y$ are differentiable manifolds and $\psi\colon \mathcal{O}_Y \rightarrow f_*(\mathcal{O}_X)$is a morphism of sheaves of $\mathbb{R}$-algebras. Is $f$ a differentiable map and $\psi = f^{\#}$?


Is this seven or eight consecutive roads in catan?

If someone has roads all the way around a hex in catan (six roads), and one road on each opposite end of that hex, is that a total of seven towards the longest road or eight.  In other words do both roads on either end count or only one since it goes around in a circle?


Conditional Probability: Black and White Balls

Bag A has $3$ white and $2$ black marbles. Bag B has $4$ white and $3$ black marbles.  Suppose we draw a marble at random from Bag A and put it in Bag B. After doing this, we draw a marble at random from Bag B, which turns out to be white. Given this information, what is the probability that the marble we moved from Bag A to Bag B is white?  At first since the probability that white is $1/2$ is $2/5$, and the probability that white is $5/8$ is $3/5$, I thought a sufficient answer would be $$\begin{align}\tfrac 1 2 \cdot \tfrac 2 5 + \tfrac 5 8 \cdot \tfrac 3 5 & = \tfrac 1 5 + \tfrac 3 8 \\ & = \tfrac 8 {40} + \tfrac {15}{40} \\ & = \tfrac {23}{40}\end{align}$$, but that was wrong.   Can someone provide me with an answer? Thanks


"anybody can dance" or "Everybody can dance"?

"Anybody can dance" or "Everybody can dance", which is correct? Or do they have same meaning?


If entropy of a closed system decreases by a certain amount, why does not the entropy of the surroundings increase by the same amount?

As said by the Second law of thermodynamics,     Energy spontaneously disperses from being localized to being spread out if not hindered from doing so.   Now, for systems other than isolated one, and for the surroundings , the net entropy change always is greater than $0$ . $$ \Delta{S_{sys}} + \Delta{S_{surr}} > 0$$ . Net entropy of the universe always increases. As my book says     Entropy change of the universe must be positive and for this entropy change of the surroundings must be greater than that of the system when it releases thermal energy.   But, can't net entropy of the universe be $0$ ? That is, can't the entropy change in the system be equal to entropy change of the surroundings?? If not, why???


I am just now learning about function pointers and, as I was reading the K&R chapter on the subject, the first thing that hit me was, "Hey, this is kinda like a closure." I knew this assumption is fundamentally wrong somehow and after a search online I didn't find really any analysis of this comparison.  So why are C-style function pointers fundamentally different from closures or lambdas? As far as I can tell it has to do with the fact that the function pointer still points to a defined (named) function as opposed to the practice of anonymously defining the function.  Why is passing a function to a function seen as more powerful in the second case, where it is unnamed, than the first where it is just a normal, everyday function that is being passed?  Please tell me how and why I am wrong to compare the two so closely.  Thanks.


I recently installed 18.04, and would like to try out Wayland in place of Xorg. As far as I can tell, I should see a drop down from the cog at login, but I currently only see:  Ubuntu Ubuntu Communitheme on Xorg   I'd like to see options for Wayland. I looked  but the file looked fine, and had the WaylandEnable=false line commented out. I also tried in recovery mode with the same result. It did not work. A final note: I usually use Ubuntu with Communitheme on Xorg. If I could use Communitheme and Wayland, that would be optimal.


Well I have installed Ubuntu 18.04 LTS lubuntu tty1. Was working fine for two days, but a problem now. When I try to login, the login page keeps on reappearing  repeatedly without logging me in. Enlighten me on this.


What makes cheese so effective at absorbing microwaves?

Whenever I put a meal in the microwave which contains cheese, why does the cheese get hot before the rest of the meal is heated through?


Is there an app that will notify me (in notifications center) if a process is using up a high percentage of CPU for a specified amount of time?

The other day, I was sitting in a coffee shop working, when I looked down to find that 25% of my battery was left.   I looked at my Activity Monitor and saw that the time machine process was going at 90% for a while (as long as I was watching it).   Are there any apps that can notify me if a process is at a certain level for a certain amount of time?


Active Directory Administrative Center (Server 2012 R2) crashes frequently upon updating user

Is this the same error referenced here:  ?  I tried posting this image IN THE SAME THREAD, which seems to make the most logical sense instead of spawning new questions as I am doing here, however since you can't post images in comments, the only place I could post an image was as an answer, and it was deleted.


How can I replace 'No.' in Biblatex with № in when printing the 'number' field?

I am using biblatex and would like the number field in @report to print in the bibliography as № (the numero sign) rather than No. Here is an example, non-working, which prints No. rather than №: \documentclass{article} \usepackage[style=oxnotes-ibid,backend=biber,issuestyle=colon,usenametitles=true,dashed=true,]{biblatex} \begin{filecontents}{mybib.bib}      @report{FacchiniTesta2016,   author      = {Facchini, Giovanni and Testa, Cecilia},   title       = {Corruption and Bicameral Reforms},   year        = {2016},   series      = {Discussion Papers},   number      = {11281},   institution = {Centre for Economic Policy Research},   address     = {London},   url         = {https://cepr.org/active/publications/discussion_papers/dp.php?dpno=11281}, }  \end{filecontents} \addbibresource{mybib.bib}  \begin{document}     This is a sentence.\autocites{FacchiniTesta2016}          \printbibliography           \end{document}


Installing GDAL with HDF4 driver on Debian system

I am working on a Debian 7 Wheezy system using Anaconda and working from Spyder.  I've had a hard time installing a version of GDAL that reads HDF4 drivers.  Could someone walk me through the installation process?


What happens to sound at speeds greater than mach 1?

We know that a moving source of sound waves produces , so that sound waves are closer-together in the front and farther apart behind, creating a difference in pitch.  Let's consider a situation where I generate a sound pulse (lasting one second). If I'm stationary, then you'll be hearing my pulse for exactly 1 second. If I'm moving towards you, then it will be heard for some time less than a second. If I'm moving away from you, then it will be greater than a second. For now, let's assume that I'm moving towards you.  If the sound waves are traveling at a constant speed and are closer together, then you'll hear all of it in a shorter amount of time. So, as my speed approaches very close to Mach 1, the waves would be so close together that the sound you hear will be almost instantaneous (something like a "bang!").  At Mach 1, all the waves would be stacked right on top of each other, thus creating a sonic boom. Now, as my speed exceeds Mach 1, (proceeding with the same logic), the sound should probably be reversed. Because, the wave that's been produced recently would be in front of its ancestor, so that information from the latest wave is received first, followed by the previous wave, followed by its previous wave, and so on.  So when we reach Mach 2, we should hear the original sound pulse backwards. Because, as we approached Mach 1 from Mach 0, the pitch increased, the waves bunched and we heard a bang! So, as we approach Mach 2 from Mach 1, the pitch should decrease back to the original pitch (because the time delay between the latest wave and the previous wave should increase, since the source is moving relatively faster) and now you should hear the same pulse backwards (a good example might be that if I shout "God" at Mach 2, you'll probably hear "Dog").  Getting deeper with this logic, as my speed exceeds Mach 2, the pitch of the sound you hear should be further reduced.  Summing everything up,  Mach 0.0 - sound is normal Mach 0.5 - sound is sped up and high pitched Mach 1.0 - sound is a boom! Mach 1.5 - sound is sped up, high pitched and reversed Mach 2.0 - sound is reversed Mach 2 + - sound is slowed down, lower pitched and reversed   Am I right with my logic?


I am trying to update some applications using the command  sudo apt update   But i am getting an error like below  E: Type 'https://packagecloud.io/AtomEditor/atom/any/' is not known on line 1 in source list /etc/apt/sources.list.d/atom.list E: The list of sources could not be read.   Ubuntu version: 16.0.4


How to tell Windows 7 to ignore a default gateway

I currently have 2 network cards in my PC -- one connected to an internal network on a router with a disconnected WAN port (10.x.x.x), and one connected to the internet through a consumer router (192.168.0.x).  Windows seems to recognize them correctly (my "Network and Sharing Center" lists them as "No Internet" and "Internet" respectively), however when I try browsing the internet it always tries the internal network's default gateway, rather than the one with internet access. Trying to ping a website results in "Reply from 10.0.0.1: Destination net unreachable.".  A simple "route delete 0.0.0.0 mask 0.0.0.0 10.0.0.1" fixes the problems, but they return upon reboot, or upon renewing my IP.  Is there any way to tell Windows to ignore one NIC's default gateway, or to at least give them priorities?


It's she who had to leave her family.       It's hers her who had to leave her family.    Are the sentences above correct? If so, I want to know the difference, if there is.


How to fix hard-disk error connected by usb?

My system is Linux 64bit, my hard-disk is a 1TB WD HD, connected to my computer by USB3.0. I found some files cannot be copied, they are video files, and it seems I can play the video. I ran e2fsck -fy /dev/sdb1 and no errors found. Then I read  article and tried the smartctl tool. But, I think it is because the HD is connected through USB, that the smartctl tools says the selftest function is not supported.  I used both drag-drop and rsync to try to copy the file, and both attempt results read error. I did not see more specific error message, or I do not know where to look at. :(  Now, I have no idea how to fix this disk error without format my disk, which I do not want.


Is there a constructive way to exhibit a basis for $\mathbb{R}^\mathbb{N}$?

Assuming the Axiom of Choice, every vector space has a basis, though it can be troublesome to show one explicitly. Is there any constructive way to exhibit a basis for $\mathbb{R}^\mathbb{N}$, the vector space of real sequences?


Render shadow on transparent background with Blender Render

I need to render a model on a transparent background. The models have a light source so they should be casting a shadow on a surface (the XY plane). The purpose for this is to overlay the rendered images (out of blender) on an image of the actual surface, so I want to generate the render including a semi-transparent shadow.  I don´t have any problem rendering the models on transparent background, but I can not make a shadow appear. I tried adding a surface below the model so the shadow can fall on it, but now there's the problem of keeping the surface from rendering.  How can I render the shadow on a transparent background?


How to remove duplicate values in ArrayList with original element

Suppose I have an ArrayList, which has paths to the specific file to be processed. But this file can only be proccessed, if there's only one in a folder. Here's what I mean:  My ArrayList  List<String> pathsToTheFile = new ArrayList<>();   has  C:\123\456\NameOfUniqueFolder0 C:\123\456\NameOfUniqueFolder1 C:\123\456\NameOfUniqueFolder2 C:\123\456\NameOfUniqueFolder3 C:\123\456\NameOfUniqueFolder4   Suppose my 5th element is   C:\123\456\NameOfUniqueFolder0  Obviosuly, it's a duplicate of my 0 element, since the file inside this folder  SHOULD NOT be proccessed at all. C:\123\456\NameOfUniqueFolder0 should be removed form the list.  I can not use a SET here, because it will "remove" the duplicate, but one path to the folder will be still there, and the file inside get proccessed.


Efficiently finding the last line in a text file

I need to extract the last line from a number of very large (several hundred megabyte) text files to get certain data.  Currently, I am using python to cycle through all the lines until the file is empty and then I process the last line returned, but I am certain there is a more efficient way to do this.    What is the best way to retrieve just the last line of a text file using python?


Put section and page numbers in the margin with KOMA-Script

Using the scrartcl document class, I would like to put the section number into the page margin, as is seen for example in the famous l2tabu document. That should be easily possible with KOMA-Script, but I can not find how.  Also, how can the same be done with page numbers, as is done for example in the good old LaTeX Companion?


Transform string format to time type in python3

time1 = '03 Mar 1999' time2 = '16 Apr 1999'  How to convert the above from string to time? I need to compare which one is earlier and the time lag(time2-time1)


Where did the names of English letters come from, and why are they all monosyllabic (except for "w")?

I don't know too many languages, but the ones I know have more elaborate names for their letters than the monosyllabicity of names for English letters. (E.g. - I'll pick on Greek here - ay instead of alpha, bee for beta, etc.)  How did these short names evolve, and when?  Further, why do nine of the letter-names (B, C, D, E, G, P, T, V, Z) end with "ee" (as in "bee"), while six others (F, L, M, N, S, X) begin with "eh" (as in "ef")?  And why do (H, K, Q, R, W, sometimes Z) have less orthodox names?  (Is "ar" for "R" a corruption of "ehr", perhaps?) "J" needs to be different, so as not to be confused with "G".  The remaining ones (vowels, incidentally: A, I, O, U, Y) I understand as not possible to fit into any regular pattern.  Maybe the answer is simply that letter-names, like the language, are not logically created; rather evolved erratically.  But I want to make sure.  Does anyone have any answers?


Given that 1D space $\mathbb{R}$ and 3D space $\mathbb{R}^3$ are in bijection, why do we describe our physical world as 3D?

Mostly the reason given is that that three numbers are required to specify a point uniquely in our world. But this is utter nonsense!  It has long been mathematically proven that $\mathbb{R}$ is in bijection with $\mathbb{R}^3$, i.e. $\mathbb{R}$ and $\mathbb{R}^3$ have the same . So what is the “additional theoretical structure” (which has to be physical, not mathematical, since we’re describing our physical world) that prompts us to label our space as “3D”?    Note: I am not talking about including time as the fourth dimension. This is under the theory of relativity. And I am asking a more general question.


Have you guys ever felt that it is quiet at night than in comparison to day?I'm known with the fact that reduction in people's activity makes night quiet...but is there something else which in a way amplifies the sound wave in night?


WP List Table custom quick edit box - post meta data missing and columns change on submit

I have extended class WP_List_Table to create a custom sortable table of posts along with a quick edit box with custom meta boxes.  The meta boxes populate and save but when I click submit the field values disappear and the defaults ( cb, title, tags, cats, etc) which are not even included in my class get added back to the column saved. This throws off the other columns on the page.  The saved custom field values return when the page is refreshed.  It seams like on submit the $post_object is missing.  I'm using a hacked get_inline_data function that includes the meta_values in my quick edit form instead of calling get_inline_data in my class.  My save function for the meta boxes:  add_action( 'save_post', 'save_inline_edit_meta' ); function save_inline_edit_meta( $post_id  ) {     global $pagenow;      if ( $pagenow == 'admin.php' ) {      if ( isset( $_POST[ 'is_quickedit' ] )  && isset( $_POST[ 'standinghead' ] ) )         update_post_meta( $post_id, '_wnd_standing_head', $_POST[ 'standinghead' ] );      if ( isset( $_POST[ 'is_quickedit' ] )  && isset( $_POST[ 'headline' ] ) )         update_post_meta( $post_id, '_wnd_alt_title', $_POST[ 'headline' ] );      if ( isset( $_POST[ 'is_quickedit' ] )  && isset( $_POST[ 'deck' ] ) )         update_post_meta( $post_id, '_wnd_deck', $_POST[ 'deck' ] );     }   return $post_id;  }   My Javascript save function:  save : function(id) {         var params, fields, page = $('.post_status_page').val() || '';          if ( typeof(id) == 'object' )             id = this.getId(id);         $('table.widefat .inline-edit-save .waiting').show();         params = {             action: 'inline-save',             post_ID: id,             post_type: 'post',             edit_date: 'true',             post_status: page         };         fields = $('#edit-'+id+' :input').serialize();         params = fields + '&' + $.param(params);          $.post('admin-ajax.php', params,             function(r) {                 $('table.widefat .inline-edit-save .waiting').hide();                  if (r) {                     if ( -1 != r.indexOf('<tr') ) {                         $(inlineEditPost.what+id).remove();                         $('#edit-'+id).before(r).remove();                         $(inlineEditPost.what+id).hide().fadeIn();                     } else {                         r = r.replace( /<.[^<>]*?>/g, '' );                         $('#edit-'+id+' .inline-edit-save .error').html(r).show();                     }                 } else {                     $('#edit-'+id+' .inline-edit-save .error').html(inlineEditL10n.error).show();                 }             }         , 'html');         return false;     },


How to prove $\lim_{n \to \infty} \sqrt{n}r^n = 0$ for $|r| < 1$?

Let $|r| < 1$. How can I prove that $$\lim_{n \to \infty} \sqrt{n}r^n = 0?$$ I’ve tried taking logarithms and using l’hopital’s rule but am not really getting anywhere. Thanks!


Many questions have been posted on this topic but I'm facing a weird behavior which I could not find an explaination for.  I perform a raycast giving it a LayerMask parameter which is defined as public variable and set in the inspector with thick on layer "Wall" and "Enemy".  At first glance it appeared to work fine because raycast rightly stops  on GameObjects with that layer.   But then I saw that it stopped also on GameObjects with default layer, like if the LayerMask was ignored. Is there something I'm missing?  According to  I set up everything correctly and I expected it to work fine.  Looking at the inspector at Runtime I can clearly see that my mask is set only to "Wall" and "Enemy", and that the GameObject the collider is attached to has default layer set. I'm then stating that the mask the way I'm using it does not exclude other layers. The only way I found to have this working is by setting that GameObject layer to Ignore Raycast but in this case the LayerMask is not necessary.  I'm calling the function this way:  RaycastHit2D inSight = Physics2D.Raycast(start, end, lm);    Maybe is there something different using Physics2D? I would really enjoy touse LayerMasks instead of giving specifically Ignore Raycast to whatever I want to ignore. Any clue?


Handling of special LaTeX characters in text

I have a LaTeX file for a book chapter, which may need to be converted to Word at some point, because that is what the publishers use (sigh). This article doesn't have any math in it, but I'm still using LaTeX, because even when not writing mathematics, it is better than the alternatives. Unfortunately, I'm making heavy use of characters that are only supposed to appear inside a math environment, notably the underscore character (_). I do use the math environment in a couple of places, but only very briefly.  So, my question is, can I tell LaTeX to make an exception for this specific character, and actually treat the underscore as a underscore? This would make later conversion to Word or some other word processing format easier. The alternative is to use \_ in lots of places. Bonus points if there is some way to still use underscore inside a math environment, not sure how that would work. To be clear, I'd like a general technique that would work with any of the special LaTex characters, though I suppose remapping most of the other ones would cause more trouble than it was worth.  I'm not sure what tags to use here, so please feel free to add. Thanks.  EDIT: It turns out this is a FAQ - .


How much Swap memory should I alocate for 4GB (3.3GB Useable) RAM in Ubuntu 16.04?

I am thinking of installing Ubuntu 16.04 in My Laptop (HP Probook 440 G1). It has 4GB RAM. SO my question is How much space should I allocate for swap area?  Note:  1. I read some articles about it but some said 1.5 times of RAM, some said 2 times of RAM. I'm really confused here.  2. Can actually swap area increase my PC speed? Because I know that hard drive is too slow then RAM. Thanks in Advance.


What is the difference between "information", "data", "knowledge", "science"?

I know it may be dumb but what is the difference between the following words?   information  data  knowledge science   Especially the difference between data and information? I know it but cannot explain it well to my teacher.


Xubuntu 14.04LTS - Software Updates - Hash Sum Mismatch

During the past week, I am having problems with "hash sum mismatch".  I keep getting hash sum mismatch regardless of the update source/server used.  This is involving the following:  W: Failed to fetch ... //archive.canonical.com/ubuntu/dists/trusty/partner/binary-amd64/Packages  Hash Sum mismatch W: Failed to fetch ... //archive.canonical.com/ubuntu/dists/trusty/partner/binary-i386/Packages  Hash Sum mismatch W: Failed to fetch ... //archive.ubuntu.com/ubuntu/dists/trusty-updates/main/i18n/Translation-en  Hash Sum mismatch W: Failed to fetch ... //archive.ubuntu.com/ubuntu/dists/trusty-security/universe/i18n/Translation-en  Hash Sum mismatch E: Some index files failed to download. They have been ignored, or old ones used instead.   There is a notice about checking the Internet connection.  It doesn't matter which update server I used.  I get the same results.    I have cleared out the var/lib/apt/lists and run apt-get update in the terminal but no change.  I have also a dir/file of /var/lib/apt/lists.old.  Do I or can I delete/remove this dir/file?  How can I fix it?


I have a rather unusual problem: I need to be able to download Ubuntu software on an online machine, burn it on a disk, and install it on an offline machine. The software download needs to include all dependencies (and the dependencies' dependencies, and so on) as the offline machine might not have them. In addition, the two machines might not run the same version of Ubuntu (for instance, the online machine might be running version 12 and the offline machine might be running version 13). Also, they might not have the same architecture (one might be 32 bit and the other might be 64 bit). The method of downloading and installing the software could be anything - a python script, a batch script, a program, an existing software, whatever. Any help with this issue would be most appreciated (even hints and guesses as to the right direction).


Represent Dirac distruibution as a combination of derivatives of continuous functions?

It seems from Rudin's functional analysis (P168, Thm6.27), the Dirac distribution $\delta_0$ on $R^1$ can be written as $$  \delta_0=f_0+f'_1+f''_2, $$ for $\{f_i\}_{i=0}^2\in C(R^1)$, there $'$ should be understand as derivative of distruibution of course.  My problem is, can we write down $f_i$ exactly?  The Dirac distribution is defined as $$  \delta_0(\phi)=\phi(0),\quad\phi\in C_0^\infty(R) $$


I am new to bikes and was wondering if there is a difference between inner tubes for a 27 x 1 1/4 bike and a 27 x 1 1/8 bike. My bike has 27 x 1 1/8 tires but I wanted to use 27 x 1 1/4 inner tubes since they are easier to find.


Why scripts run as user but not as a cron?

I have a script that checks to see if port 4000 is open and listening, if it is return true, else start a service that also outputs a logfile. The script runs fine if I execute it as a user, but if I add it as a cron it doesn't run. I'm logged in as root, the script is owned by root, the script has executable permissions, and I am running crontab -e as root.   #!/bin/bash if lsof -Pi :4000 -sTCP:LISTEN -t >/dev/null ; then     return 1 else     seoserver -p 4000 start > /var/www/vhosts/domain.com/httpdocs/seoserver.log & fi   And here is my cron  */5     *       *       *       *       /usr/bin/seoStart


Count all the function f satisfying followings :

For $A=\{1,2,3,4,5,6,7,8,9,10\}$  Define a function $f : A\to A.$  Then 30 times composite of f, that is ; $f\circ f\circ...\circ f(x) = x$ and 30 is the least number for f to become an identity.  How many $f : A\to A$ are there ?


I'm trying to run a bash script on a remote machine, and I'd like to return immediately after running the script in the background of the remote machine. For instance:  $ echo foo.txt sleep 2000 &   then when I tried to do:  $ ssh x.x.x.x 'bash -s' < foo.txt   the command never returns. Is there a way to make it return while sleep runs in the background on the remote machine?


The situation: The two people with root access to this server are away for the remainder of this week. An individual with a Drupal website that refused to have updates performed has had their site compromised. They have now changed their opinion and had updates installed but damage is already done. I am but a mere developer who has been asked to perform damage control until the sysadmin returns to work.  I know the ideal solution is burn it to the ground and restore an untainted backup, and then install updates immediatley but I do not have clearance to do this.  The setup: A Linux-based webserver running cpanel, nginx, PHP & MySQL  The effects I am aware of of this compromised site are:   A new php file with loads of nasty functionality gets created The public_html/index.php file gets updated to include this file The public_html/.htaccess file has 8 additional RewriteRules added   I have attempted to find compromised files by looking for recently modded files   find . -type f -mtime -30 -printf "%M %u %g %TY-%Tm-%Td %TH:%TM:%.2TS %p\n"   And by grepping for eval - the latter led me to a very obviously newly added file with a mod date almost a year ago, so this attacker at least has the presence of mind to make my initial approach insufficiant.  So I moved onto symptom suppression. As I lack root access I cannot make my index.php / .htaccess files read-only  $ chattr +i index.php chattr: Operation not permitted while setting flags on index.php   So I moved onto the last tool that I know I have: cron  I added commands to remove the evil php file and to remove the include from my index.php - they work fine.  However, the sed commands I created don't seem to work. They work when I manually run them, but they don't seem to from cron. I have verified the path to sed is correct, and the absolute path to .htaccess is correct. Can anyone tell me what is wrong please?  $ crontab -l SHELL="/usr/local/cpanel/bin/jailshell" * * * * * echo -e "<?php\n/**\n * @file\n * The PHP page that serves all page requests on a Drupal installation.\n *\n * The routines here dispatch control to the appropriate handler, which then\n * prints the appropriate page.\n *\n * All Drupal code is released under the GNU General Public License.\n * See COPYRIGHT.txt and LICENSE.txt.\n */\n\n/**\n * Root directory of Drupal installation.\n */\ndefine('DRUPAL_ROOT', getcwd());\n\nrequire_once DRUPAL_ROOT . '/includes/bootstrap.inc';\ndrupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);\nmenu_execute_active_handler();\n\n" > /home/summerhillpackag/public_html/index.php 2>&1 * * * * * rm -rf /home/summerhillpackag/public_html/themes/garland 2>&1 * * * * * /usr/bin/sed -i 's/RewriteRule ^[cv](\\d+)\[-\/\][cv](\\d+)\[-\/\]\.\*$ index\\\.php?id=$[12]-$[12]&%{QUERY_STRING} \[L\]//' /home/summerhillpackag/public_html/.htaccess 2>&1 * * * * * /usr/bin/sed -i 's/RewriteRule ^\.\*\[-\/\][cv](\\d+)\[-\/\][cv](\\d+)\[-\/\]\.\*$ index\\\.php?id=$[12]-$[12]&%{QUERY_STRING} \[L\]//' /home/summerhillpackag/public_html/.htaccess 2>&1 * * * * * /usr/bin/sed -i 's/RewriteRule ^\.\*\[-\/\][cv](\\d+)\[-\/\]\.\*\[-\/\][cv](\\d+)\[-\/\]\.\*$ index\\\.php?id=$[12]-$[12]&%{QUERY_STRING} \[L\]//' /home/summerhillpackag/public_html/.htaccess 2>&1 * * * * * /usr/bin/sed -i 's/RewriteRule ^v(\\d+)\[-\/\]\.\*\[\-\/\]c(\\d+)-\.\*$ index\\\.php?id=$1-$2&%{QUERY_STRING} \[L\]//' /home/summerhillpackag/public_html/.htaccess 2>&1 * * * * * /usr/bin/sed -i 's/RewriteRule ^c(\\d+)\[-\/\]\.\*\[-\/\]v(\\d+)\[-\/\]\.\*$ index\\\.php?id=$2-$1&%{QUERY_STRING} \[L\]//' /home/summerhillpackag/public_html/.htaccess 2>&1


Apt-get update error: http://extras.ubuntu.com Public key unavailable

GPG error:    natty Release: The following   signatures couldn't be verified   because the public key is not   available: NO_PUBKEY 16126D3A3E5C1192   I think I selected to install things from extras.ubuntu.com when I used the expert mode installer, but I got the above error when doing apt-get update. How do I fix this?


C++ cannot initialize static data member

I know this has been asked 10000 times, however, I'm still having issues getting this to compile.  Notice the static member 'map'.    In the 'getMap()' function, I receive an undefined reference error referring to the map data member.  I attempted to move that function to a cpp file and declare 'map' in that file.  However, I then receive a conflicting definition error.  Can somebody explain to me what is going on?  Thanks  Base.h  template<typename T> Base * createT() { return new T; } typedef std::map<std::string, Base*(*)()> map_type;   class BaseFactory {     static Base* createInstance(std::string const& s)     {         map_type::iterator it = getMap()->find(s);         if (it == getMap()->end())             return 0;          return it->second();     }  protected:     static map_type *getMap()     {         if (!map)         {             map = new map_type;         }          return map;     }  private:     static map_type * map;      static Base* createInstance(std::string const* s);  public:      BaseFactory();      ~BaseFactory();  };


I have a simple code:   delx=0.1; delt = 10**-3; r = delt/delx**2   I get r = 0.09999999999999998 in console. Why are there round-off errors for such a small number of decimal points? How do I correct this?


Monitor Windows Server network data transfer

I would like to monitor the amount of data transferred (Network Out) in a Windows Server. The traffic is composed mainly of files downloaded from IIS.  Is there some software or Windows Feature that I can use to accomplish this?


Problem with particles, converted into mesh objects

I have an object with a particle system. The particle system emits another object as a hair. I use "Convert" button in modifers tab in order to turn the "particles" into simple mesh objects.  But then I face the problem: It seems like those converted particles-objects, are still connected to each other somehow. So If I select one object and go to edit mode - all of them goes to edit mode. And if I change one of them in edit mode, all of them will be changed. I also can't join them into one object.  Why id it happening, and how I can disconnect them and get simple mesh objects? Thank you very much in advance!


Evaluate $ \int^{\frac{\pi}{2}}_0 \frac{\sin x}{\sin x+\cos x}\,dx $ using substitution $t=\frac{\pi}{2}-x$

This problem is given on a sample test for my calculus two class. $$ \int^{\frac{\pi}{2}}_0 \frac{\sin x}{\sin x+\cos x}\,dx $$ I can find the value of this integral using other substitutions which lead to partial fractions but the prof added a hint to use the substitution $$t=\frac{\pi}{2}-x $$ so I've been trying to figure out how to do it his way but am pretty lost. Any ideas?


Unable to install winehq on Ubuntu 20.04 I got error stating:- E:unable to correct, you have unmet dependencies

sudo apt install --install-recommends winehq-stable Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  winehq-stable : Depends: wine-stable (= 5.0.3~groovy) E: Unable to correct problems, you have held broken packages.


Network button missing gone from Nautilus?

I'm using Ubuntu 16.04.3 LTS.  I remember having a link in Nautilus that I used to browse network shares with in the past. I don't remember exactly but I think it was "Windows network" or "Browse network".  Now I can't find this on my current installation, there's only "Connect to server", but this is not what I want. Is there a way to put that link there?


Why would $L \ + \frac{f_{m}-f_{m-1}}{(f_{m}-f_{m-1}) + f_{m}-f_{m+1}} \cdot w$ correspond to the mode of grouped frequencies?

$\text{Mode} = L \ + \frac{f_{m}-f_{m-1}}{(f_{m}-f_{m-1}) + f_{m}-f_{m+1}} \cdot w$  where,        • L is the lower class boundary of the modal group.        • fm-1 is the frequency of the group before the modal group.        • fm is the frequency of the modal group.        • fm+1 is the frequency of the group after the modal group.        • w is the group width.      Mode is the most frequently occurring value in a data set - I don't understand why this formula would give the mode of grouped frequencies. Why would the mode even be in the modal group? It could be inside any other group, right!?


Why on GUI the shutdown is rootless whilst on terminal is not?

In older days that I used to run Fluxbox, in order to be able to shutdown my computer I need to allow passwordless root access via sudo to the command  shutdown by running viedit and doing the appropriate changes.  Also when the computer shutdown my computer is perfmormed over terminal via the shutdown command, root access is needed.  But modern Desktop GUI implementations such as KDE/GNOME/LXDE/XFCE etc etc the shutdown is by default rootless (no root password is required). And I wonder how theese desktop GUIS manage to "perform"/notify the kernel that the computer is shutting down without the need of root access?


I want to define in LaTeX some words. For instance I have this long words: ''contemporaneamente''. So I can define \def\cont{contemporaneamente}. The problem is that it is not treated as normal text and so there is a problem in spacing.   If I write ''\cont bla bla'' the result is: ''contemporaneamentebla bla''. So I have to write ''\cont\ bla bla'' to obtain what I want.   I know also that in order to obtain what I want I can define \def\cont{contemporaneamente }. The problem in doing this is that when I want to put the word at the end of a sencence and I have to write ''\cont.'' the result is ''contemporaneamente .''


How to enumerate the items in line within the paragraph not each item in a separate line?

I want to have the following:  A graph can be cut in several ways including  \begin {enumerate*} [label=\itshape\alph*\upshape)] \item minimum cut, \item normalised cut and \item average cut.  \end {enumerate*}  In our project we have surveyed the Normalised Cut (Ncut)  algorithm for image segmentation.   A graph can be cut in several ways including 1) minimum cut, 2) normalised cut and 3) average cut. In our project we have surveyed the Normalised Cut (Ncut)  algorithm for image segmentation.


I'm zeroing a drive with  dd if=/dev/zero of=/dev/sdd   on a USB 3.0 port and it appears that the disk is writing half of the time and reading half of the time.  17564 be/4 root       10.59 M/s   10.59 M/s  0.00 % 96.60 % dd if=/dev/zero of=/dev/sdd   The performance is slower than what I expect, only being ~10M/s write and it looks like the rest of the bandwidth is being taken up by reads. The disk is not mounted nor being used by any other program.  Is this expected with dd?


What's causing the 'wait' time before my HTML loads?

I have a website the seems to load very slowly. When I run a speed test on it I see there seems to be a 6 secound gap before the HTML loads. Images and JS scripts load very fast after that point.  You can see in the pic below the yellow 'wait time' bars:    This seems to be consistant no matter what the HTML content on the page is.  This site is using a CMS (ModX Revo) so HTML is actually stored in an SQL database and brought forth by PHP, but I've never experienced this issue before.  Would anyone know what is causing this and how I could speed it up?


Physical reason behind the origin of shock waves in astrophysics

Shock waves arises in astrophysics in accretion flows and in winds. But we know that shock waves usually occurs in supersonic flows when the flow encounters any obstacle or when the properties of the medium changes abruptly.  In astrophysical shock waves, we consider abrupt changes in various physical quantities (such as local sound speed, flow velocity, entropy etc.) across a surface and use the conservation of fluxes of mass and momentum across the surface.  My question is regarding the reason that some physical quantities varies discontinuously across any surface. What might be the physical reason behind these discontinuities?


Can a neural network learn a functional, and its functional derivative?

I understand that neural networks (NNs) can be considered universal approximators to both functions and their derivatives, under certain assumptions (on both the network and the function to approximate). In fact, I have done a number of tests on simple, yet non-trivial functions (e.g., polynomials), and it seems that I can indeed approximate them and their first derivatives well (an example is shown below).   What is not clear to me, however, is whether the theorems that lead to the above extend (or perhaps could be extended) to functionals and their functional derivatives. Consider, for example, the functional: \begin{equation}     F[f(x)] = \int_a^b dx ~ f(x) g(x) \end{equation} with the functional derivative: \begin{equation}     \frac{\delta F[f(x)]}{\delta f(x)} = g(x) \end{equation} where $f(x)$ depends entirely, and non-trivially, on $g(x)$. Can a NN learn the above mapping and its functional derivative? More specifically, if one discretizes the domain $x$ over $[a,b]$ and provides $f(x)$ (at the discretized points) as input and $F[f(x)]$ as output, can a NN learn this mapping correctly (at least theoretically)? If so, can it also learn the mapping's functional derivative?   I have done a number of tests, and it seems that a NN may indeed learn the mapping $F[f(x)]$, to some extent. However, while the accuracy of this mapping is OK, it is not great; and troubling is that the computed functional derivative is complete garbage (though both of these could be related to issues with training, etc.). An example is shown below.  If a NN is not suitable for learning a functional and its functional derivative, is there another machine learning method that is?  Examples:  (1) The following is an example of approximating a function and its derivative: A NN was trained to learn the function $f(x) = x^3 + x + 0.5$ over the range [-3,2]:   from which a reasonable approximation to $df(x)/dx$ is obtained:   Note that, as expected, the NN approximation to $f(x)$ and its first derivative improve with the number of training points, NN architecture, as better minima are found during training, etc.  (2) The following is an example of approximating a functional and its functional derivative: A NN was trained to learn the functional $F[f(x)] = \int_1^2 dx ~ f(x)^2$. Training data was obtained using functions of the form $f(x) = a x^b$, where $a$ and $b$ were randomly generated. The following plot illustrates that the NN is indeed able to approximate $F[f(x)]$ quite well:    Calculated functional derivatives, however, are complete garbage; an example (for a specific $f(x)$) is shown below:   As an interesting note, the NN approximation to $F[f(x)]$ seems to improve with the number of training points, etc. (as in example (1)), yet the functional derivative does not.


Is it fine to have an account to represent a company?

I'm working in an IT company mostly working on web applications. My company suggested to open a Stack Exchange account for our company where we'll be asking questions if any.  So my question is: Is Stack Exchange valid for companies or groups or should it be just an individual thing?


Use XeLaTeX in Texmaker instead of pdfLaTeX

I use TeX Live 2010 and my editor is Texmaker Bidi. It was working probably good but from 2 months ago I've encountered with the error:   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ! ! Fatal fontspec error: "cannot-use-pdftex" !  ! The fontspec package requires either XeTeX or LuaTeX to function. !  ! You must change your typesetting engine to, e.g., "xelatex" or "lualatex" ! instead of plain "latex" or "pdflatex". !  ! See the fontspec documentation for further information. !  ! For immediate help type H <return>. !...............................................   when I'm trying to load xepersian LaTeX.  but I do not know how can I change pdfLaTeX to XeLaTeX.    This is the second edit of my question .   the code is :    \documentclass{article} \usepackage{pstricks} \usepackage{pst-bezier} \usepackage{xepersian}  \settextfont{XB Zar}  \setlatintextfont{Junicode}  \setdigitfont{XB Zar}  \begin{document}  !سلام دنیا \begin{pspicture}(3,3) \psbcurve(1,2)(5,7)(2,2)(12,3) \end{pspicture}  \end{document}   but the output does not include the shapes .


Attempting to DIY a broken USB Flash Drive (continued)

I posted yesterday about attempting a DIY to fix a snapped off USB Flash Drive.  So far, I've identified where I will solder the wires (thank you Micheal) on the PCB. I would just like clarification on what my wires are because none of my wires are black or white.  On top of that, the yellow leftmost wire is thinner than the rest. Why is that?  I'm thinking    red is red: +5V green is green: Data + yellow is white: Data - ? gray is black: GND ?   Image description: This is an iPhone USB Lightning cable with its internal wiring revealed. From left to right, the color are yellow, green, red, gray and I'm assuming the others are strips of a layer of casing.


I am adding cookie to my page in the controller using  ApexPages.currentPage().setCookies(new Cookie[]{CookieName});  When am trying to get the code coverage, my test class is not covering the above line.  How to get the code coverage for the above setcookie method in the test class.


How to use combinatorial proof instead of induction?

Let k ≥ 1 be an integer and consider a sequence $n_1, n_2, . . . , n_k$ of positive integers. Use a combinatorial proof to show that  $\binom{n_1}{2}$ + $\binom{n_2}{2}$ +...+ $\binom{n_k}{2}$ $\le$ $\binom{n_1 + n_2 + ...+ n_k}{2}$


How to show how-much data is needed to download while apt-get?

I want to know how-much data is needed to download any package by apt without installing that package.  In other words if I run apt-get install xyz then it will download and install packages with their dependencies. But I want to know/show only how-much (Total)data (ex:need to get 73MB of archives) to download without downloading and installing that package(s).


How to make the shift switcher select the window after I release the key

I use Shift Switcher to surf through the open windows and select the desired one. I've configured the combinations so that they don't conflict with others. Mainly I use the next window, Super + Q and previous window,Super + Shift + Q switches. But release the keys (or the Super key) does not make the selected window active; I have to hit the modifier keys like Return, Shift, Alt, etc. or click with the mouse pointer for both switcher modes (Cover/Flip). But I'd like the selected window getting activated right when I release the button, similar to what we have with the Alt + Tab switching.   (flip mode shift switch)   (cover mode shift switch)  Here's a snapshot of my key combinations for the Window Management option in CompizConfig Settings Manager:


Edubuntu inappropriate Kernel for installation

I faced this error while Runnign Edubuntu from Virtual Box.   I used this edubuntu-13.04-dvd-i386.iso file.


How to plot stacked bar plot inside table?

I have following code in Latex. Which plots only one data series (data2). I would like to plot staked bar plot inside table for both data1 and data2 with different colours.  Any ideas.?  Many thanks.  \documentclass{article} \usepackage{booktabs} \usepackage{multirow} \usepackage{pgfplotstable} \usepackage{filecontents}  % The data \begin{filecontents}{data.txt} accession,data1,data2 C1,150708.4564,481.0388003 C2,49652.53112,275.2190163 C3,37379.1284,58.85806921 C4,34165.85698,26.06571636 C5,30856.19158,35.96802428 C6,15204.22768,26.71594573 \end{filecontents}   \pgfplotstableread[col sep=comma]{data.txt}\data  \newcommand{\errplot}{% \begin{tikzpicture}[trim axis right] \begin{axis}[y=-\baselineskip,   scale only axis,   width=5cm,   enlarge y limits={abs=0.5},   axis y line*=middle,   ytick=\empty,   axis x line*=bottom,   xbar,   bar width=1.5ex,   xmin=0,   visualization depends on=x \as \rawx,   nodes near coords,   every node near coord/.style={   anchor=east,   shift={(axis direction cs:-\rawx,0)}   }  ] %   \addplot [draw=black, fill=red]  table [x=data2,y expr=\coordindex]{\data}; \end{axis} \end{tikzpicture}% }  \begin{document}  % Get number of rows in datafile  \pgfplotstablegetrowsof{\data} \let\numberofrows=\pgfplotsretval  % Print the table \pgfplotstabletypeset[columns={accession,data1,data2},   % Booktabs rules   every head row/.style={before row=\toprule,after row=\midrule},   every last row/.style={after row=[3ex]\bottomrule},   % Set header name   columns/accession/.style={string type,column type=l,column name=accession},   columns/data1/.style={string type,column type=l,column name=data1},    columns/data2/.style={     column name={Data2},     assign cell content/.code={% use \multirow for Z column:    \ifnum\pgfplotstablerow=0    \pgfkeyssetvalue{/pgfplots/table/@cell content}    {\multirow{\numberofrows}{6.5cm}{\errplot}}%    \else    \pgfkeyssetvalue{/pgfplots/table/@cell content}{}%    \fi   }  }, ]{\data} \end{document}


Cannot resize boot partition using Gparted even there is unallocated spaces

I have dual booted with Windows, I have allocated Windows for 180GB and For Ubuntu 46GB. Recently I wanted to increase Linux root partition hard drive space and I shrink from windows and unallocated space created.     Now I cannot shrink it to boot partition of Linux, Whenever I tried to click resize/move on /dev/nvme0n1p4 it simply says there is no unallocated space to add.    I tried Gparted live boot also, I get the same response. Now I want to merge all the unallocated to space to my Linux root partition(/dev/nvme0n1p4) how to do it?  And Why am I having 3 separate unallocated space? Can I not merge them to single?  root@tom-linux:/home/tom# resize2fs /dev/nvme0n1p4 resize2fs 1.43.4 (31-Jan-2017) The filesystem is already 12207104 (4k) blocks long.  Nothing to do!


Missing Syntax for displaying data in listview

I am a new to android world. I have a problem with the code. My listview is not displaying ArrayList method. It is returning blank as the value in the listview. What could be the issue to this problem.  here is my db file which has the ArrayList execute select events. This will fetch the data from the database and then display it to listview.   public class UniversityFinderDB  extends SQLiteOpenHelper{  private static final int DATABASE_VERSION= 1; static final String DATABASE_NAME="universities.db"; private static final String TABLE_NAME="universityFinder";  private static final String COLUMN_UNIVID="univId"; private static final String COLUMN_UNIVERSITYNAME="univName"; private static final String COLUMN_SCORE="score";  SQLiteDatabase db;     private static final String TABLE_CREATE = "create table universityFinder (univId integer primary key  not null, univName varchar not null, score integer not null);";  public UniversityFinderDB(Context context) {     super(context, DATABASE_NAME,null ,DATABASE_VERSION); }  @Override public void onCreate(SQLiteDatabase database) {      database.execSQL(TABLE_CREATE);   }    public void executeEventInsert(String name, String score){     String query="INSERT INTO universityFinder(univName, score) VALUES('"+name+"','"+score+"');";     db.execSQL(query); }     public ArrayList<HashMap<String,String>> executeSelectEvents(int input){     String query="select * from "+TABLE_NAME+ " where " +COLUMN_SCORE+" >="+input;     Cursor cursor= db.rawQuery(query,null);     ArrayList<HashMap<String,String>> events=new ArrayList<>();     while (cursor.moveToNext()){         HashMap<String,String> event=new HashMap<>();          String colUniversityId=cursor.getColumnName(0);         String colUniversityIdValue=cursor.getString(0);         String colUniversityName=cursor.getColumnName(1);         String colUniversityValue=cursor.getString(1);           event.put(colUniversityId,colUniversityIdValue);         event.put(colUniversityName,colUniversityValue);         events.add(event);     }     return events; }   @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {      String query = "DROP TABLE IF EXISTS "+TABLE_NAME;     db.execSQL(query); }   }   and the listview class where it'll display the data from the database.  public class ListviewFinderUniversities extends AppCompatActivity {   UniversityFinderDB myDB; ArrayList<HashMap<String, String>> eventData; ListView finderListview;  @Override protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_listview_finder_universities);        myDB = new UniversityFinderDB(this);      finderListview = (ListView) findViewById(R.id.finderListView);       myDB.executeEventInsert("UCI","101");      myDB.executeEventInsert("UeI","100");      myDB.executeEventInsert("UgI","105");      myDB.executeEventInsert("UjI","107");      myDB.executeEventInsert("ewI","109");      loadUnivFromDb();  }  private void createUnivAdapter(){     String from[]={"univId","univName"};     int to[] = {R.id.eventId, R.id.evenLabel};     SimpleAdapter adapter = new SimpleAdapter(getApplicationContext(), eventData, R.layout.uni_item_finder, from, to);     finderListview.setAdapter(adapter); }  private void loadUnivFromDb() {     int gre = getIntent().getIntExtra("Gre",0);      ArrayList<HashMap<String, String>> data= myDB.executeSelectEvents(gre);     if(data.size()>0){         eventData=data;         createUnivAdapter();     }else {         Toast.makeText(getApplicationContext(),"NoEvents",Toast.LENGTH_SHORT).show();     }  }   }


How do I speak with my professor about my mental health?

I'm an undergraduate in my junior year, and I've been having an especially bad month when it comes to my mental health and academic performance. Two weeks ago, I discovered that I had two midterms, one major project, and an 6-8 page essay due on the same day. I explained my workload to the professor who assigned the essay, and he was kind enough to give me an indefinite extension on the essay (as in, I could "turn it in whenever it was ready", although I assumed that 1-2 weeks was what he would prefer). Since I was granted that extension, I've completely flunked the major project and received C's on the two midterms, all of which I prepared extensively for once I didn't have to worry about the essay. The professor has started hinting that he'd like essays he gave extensions on (he gave extensions to about half the class, since a good 2/3 of our university got the flu around then) to be turned in soon, since he's expecting to receive more essays from another class he's teaching, and doesn't want to be overwhelmed by grading.   It's been two weeks since he gave me the extension. I've spent nearly all of those two weeks attempting to write the essay and then completely breaking down. I start thinking about how kind he was to give me an extension in the first place, and how, by not turning it in by now I'm taking advantage of his kindness, and how my reputation among my department's professors will be ruined. I think about how this essay has to be perfect, since I've completely failed my assignments for every other class, and I have to get this one thing right. I wrote 4 pages of the essay and then deleted them all. I wrote 3 pages of the same paragraph with slightly different wording each time in an attempt to get it perfect. My outline (for this 6-8 page paper!) is 7 pages long. But I have no paper, and I have other major midterms coming up that really just compound my panic over this.  So my question is: how do I talk about this issue with the professor? I want him to know that I'm not trying to take advantage of him or slack off, and that I do actually know the material (as my ridiculously detailed outline shows), but I feel like walking into his office hours and telling him about how my nightly panic attacks are keeping me from writing this essay is...inappropriate? Should I mention my mental health issues at all, or will that seem like some sort of weak excuse?


Show that $\mathbb Z_{12} \times \mathbb Z_5$ is isomorphic to $\mathbb Z_{60}$

There is a theorem that states that $\mathbb Z_{m} \times \mathbb Z_n$ is isomorphic to $\mathbb Z_{mn}$ if the $gcd(m,n) = 1$ because otherwise $\mathbb Z_{m} \times \mathbb Z_n$ would not be cyclic.  Would deriving that proof and saying that $\mathbb Z_{12} \times \mathbb Z_5$ is isomorphic to $\mathbb Z_{60}$ by stating that $gdc(12,5) = 1$ be a sufficient proof?


How can I get a white NSProgressIndicator?  I've seen some other solutions on SO and various other blogs, but those all seem a bit dated and don't appear to be ARC-compatible.


$ my-num=1 my-num=1: command not found  $ mynum=1   I was wondering why the first assignment fails?   Why does bash think that it is a command?  Is - some special character in bash?  Thanks.


For what powers $k$ is the polynomial $n^k-1$ divisible by $(n-1)^2$?

How do you prove this?  $$\left(n-1\right)^2\mid\left(n^k-1\right)\Longleftrightarrow\left(n-1\right)\mid k$$


I would like to upgrade to the latest 3.17 Linux Kernel because it has support for the Xbox One Controller and I really want to test it out.   I am running Ubuntu 14.10 64bit with the latest pre-release updates.  I have looked around the internet but most of the tutorials seem outdated, I don't want to follow them, have something mess up and have to reinstall everything


So I'm working on an application that pastes things into RTF boxes or any text box really utilizing the clipboard.   I need to be able to tell what window users have selected so that my application can determine if it should paste the data there or not.  Is there a way to read the name of the currently selected window, so that I can determine if they should be able to past in it?  Thanks


How to configure splash screen after plymouth

I have configured my splash screen for plymouth - and it works perfectly. I've also configured the display manager (I'm using gdm). In between these two I get a very brief splash screen - a kind of swirl of multi-coloured ubuntu like colours. Where does this splash screen get set, and how do I change it?  Edit: Here is a video of my boot sequence, showing the screen in question:


How to choose the number of hidden layers and nodes in a feedforward neural network?

Is there a standard and accepted method for selecting the number of layers, and the number of nodes in each layer, in a feed-forward neural network? I'm interested in automated ways of building neural networks.


I'm connecting a router to my laptop in Ubuntu 12.04, and for some reasons it shows it as eth3. My program is hardcoded asa eth1. I was wondering how I can change it to eth1.


Do questions on WAMP belong on Stack Overflow, Server Fault or Super User?

After reading , I think it might be useful to have a separate question for this subject.  Let me quote a part of :     SU and SF are generally not great places for WAMP questions...   Particularly when asked on SO, these nearly always involve someone   working with their development or testing setup (rather than, say, a   home or production server environment). If you see someone   recommending SF or SU for such questions, politely correct them.   So the argument is that since  is closely related to development, it belongs on Stack Overflow.  My concern is twofold:   It being development is irrelevant, issues appearing while using WAMP can also appear in a production environment. There might be more expertise on the subject over at .   Perhaps not many people will support my view, but it's worth asking so everybody knows how to handle such questions: what does the community think?


I am a math student and I'm willing to read a book about the geometry of the universe and space-time with mathematical description. so please introduce some good textbooks.


What is the difference between these two sentences (“was created” vs “has been created”)?

What is the difference between these two sentences:     The first feature-length comedy film was created by Charlie Chaplin.   The first feature-length comedy film has been created by Charlie Chaplin.   and the followings are also seems very similar:     By the time you read this, I will be arrested for murder.   By the time you read this, I will have been arrested for murder.


How do I install the 64bit version of Firefox without losing any of my data?

Firefox 43 comes with a 64bit version. But the one delivered with Ubuntu is 32bit.    but in this link there is an option to download 64bit version but its in tar.gz format. Does that mean firefox gets automatically updated and its resources gets added to the software sources or do I have to download again when a new version comes?


Test statistics in IR (t-test vs Wilcoxon vs signed test)

I have just read this  about different test statistics one could use in Information Retrieval (IR), discussing whether Wilcoxon, Sign-test or Student t-test would be more reliable for comparing two IR systems.  According to the paper I read, the Sign and Wilcoxon tests do not take into consideration the statistic of interest (which is the difference in average precision); and by approximating them (both in different ways), we get a higher difference in p-value (generally higher), this leads to false positives and negatives.  In addition, the authors discourage using the Wilcoxon and Sign tests since they were built when computing randomized tests or Student’s t test was very expensive.  However, at the end of the paper, they mention that a small sample size (smaller than 50), "violations of normality may result in errors in the t-test."  So my questions come here: When we use Wilcoxon, Sign test, and T-test, which should we rely on? Are the points that I am trying to make valid?


How do rays of light getting focused at a point create an image?  How are the information of object's shape and dimensions expressed as an image when light rays converge?  Is it understandable by solving wave equation for light?


Replacing regex matches in one file with lines from another file

I'm trying to replace lines that match the regex => '.*', in one file with lines from another file. Two example files. File 1:     'text_clear' => 'Clear',     'text_search' => 'Search',     'text_enabled' => 'Enabled',  File 2: emptied lost turned off  I'm trying to run a linux command using awk/sed/grep to create a third file that would output File 3:     'text_clear' => 'emptied',     'text_search' => 'lost',     'text_enabled' => 'turned off',  I've been successful in extracting what I want to edit a python script, but if possible I want to just use a linux command to do both. I've been racking my head over this for 3 hours now. Any help would be appreciated.


How to convert a C string (char array) into a Python string when there are non-ASCII characters in the string?

I have embedded a Python interpreter in a C program.  Suppose the C program reads some bytes from a file into a char array and learns (somehow) that the bytes represent text with a certain encoding (e.g., ISO 8859-1, Windows-1252, or UTF-8).  How do I decode the contents of this char array into a Python string?  The Python string should in general be of type unicode—for instance, a 0x93 in Windows-1252 encoded input becomes a u'\u0201c'.  I have attempted to use PyString_Decode, but it always fails when there are non-ASCII characters in the string.  Here is an example that fails:  #include <Python.h> #include <stdio.h>  int main(int argc, char *argv[]) {      char c_string[] = { (char)0x93, 0 };      PyObject *py_string;       Py_Initialize();       py_string = PyString_Decode(c_string, 1, "windows_1252", "replace");      if (!py_string) {           PyErr_Print();           return 1;      }      return 0; }   The error message is UnicodeEncodeError: 'ascii' codec can't encode character u'\u201c' in position 0: ordinal not in range(128), which indicates that the ascii encoding is used even though we specify windows_1252 in the call to PyString_Decode.  The following code works around the problem by using PyString_FromString to create a Python string of the undecoded bytes, then calling its decode method:  #include <Python.h> #include <stdio.h>  int main(int argc, char *argv[]) {      char c_string[] = { (char)0x93, 0 };      PyObject *raw, *decoded;       Py_Initialize();       raw = PyString_FromString(c_string);      printf("Undecoded: ");      PyObject_Print(raw, stdout, 0);      printf("\n");      decoded = PyObject_CallMethod(raw, "decode", "s", "windows_1252");      Py_DECREF(raw);      printf("Decoded: ");      PyObject_Print(decoded, stdout, 0);      printf("\n");      return 0; }


PSTricks: Newly introduced error in package

Consider the following MWE:  \documentclass{article} \usepackage{pstricks} \begin{document} A \end{document}   It produces the error  Runaway argument? ] {pgffor.code.tex}  ! Paragraph ended before \ProvidesPackageRCS@i was complete. <to be read again>                     \par  l.11   How do I fix this?


Determining convergence of $\frac{n}{e^n}$

I am trying to determine if $\sum_{i=1}^\infty \frac{n}{e^n}$ is converging  This is what I have so far  $\sum_{i=1}^\infty \frac{n}{e^n}$ converges by the geometric series test since $\frac{1}{e}$ < 1   This seems too simple of answer and was wondering if this was even a geometric sequence.


Can my employer's payroll company be liable for not withdrawing enough State taxes from my income?

My employer's payroll company did not withdraw the correct percentage of state taxes from my year's worth of paychecks.  I'm now liable for $2,000 in state taxes.  Can the payroll company be held fully or partially liable for this amount?


Prevent photoanalysisd from spinning up fans

At times I hear my MacBook (Mid-2015, 15" retina) get loud, fans whirring. It becomes pretty hot to touch. I check Activity Monitor: photoanalysisd is using near 100% CPU.  says that it's due to changes in Photos.app... I have never used Photos.app. None of the answers on that question help me. I just Force Quit photoanalysisd now whenever this happens, and haven't noticed any problems. But it's frustrating when this happens. How do I stop photoanalysisd from hogging CPU? I'm running macOS Catalina 10.15.4


What's an alternative to Truecrypt with exact same feature set?

Does any software for Ubuntu exist that does the exact same thing as Truecrypt? I know there is a version of Truecrypt for all platforms, but the developers abandoned the project.  Please don't just start posting encryption software that can do the encryption this or that way, I am asking for the exact same thing.  For Windows there is "safe house explorer".


Finding numbers from quotient of sums with roots.

If $$\frac{\sum_{n=1}^{99} (\sqrt{10} + \sqrt{n})}{\sum_{n=1}^{99} (\sqrt{10} - \sqrt{n})} = a + \sqrt{b}$$ where $a$ and $b$ are integers , find the value of $a^2 + b^2$.


How can I convert from Microsoft Word to a LaTeX document

I am a final year graduate student and I have my thesis (about 350 pages) in Microsoft Word format. I would like to convert the document into a LaTeX "camera" ready PDF. Is there any easy way to do this? I am very new to LateX..


The machines are keeping humans alive for their body heat, right? But they also have nuclear fusion reactors, and (while I haven't run the numbers) I'd be willing to bet that a single fusion reactor would generate more net energy in an hour than all the humans on today’s Earth would in a day.  I have one more additional doubt:  Why people, instead of animals that don't need a computer simulation to keep their brains entertained?  Why do the machines keep humans alive if they have nuclear reactors?


Are communications jammers common in the Star Wars universe?

During the speeder bike chase in Return of the Jedi, Luke Skywaker instructs Leia to jam the communications of the Imperial Scout Troopers they are chasing/being chased by.   The jammer seems to be activated by a simple switch, which strikes as odd. Is communications jamming such a common function of a speeder bike such that it needs a prominent, easy to reach control?   The explanation I've come up with is that the Empire enforces control by preventing the general populace from spreading information quickly. Comms jammers are routinely installed in all Imperial vehicles and equipment, much like cameras and RFID technology come in a lot of electronic devices in our world.  So, does communication jamming technology appear a lot in Star Wars – both movies and extended universe? Does the theory hold up?


What to do about terrible suggested edits that are approved?

I just can't fathom how terrible edits  get through - all three reviewers approved. All he did was bold (instead of block-quote) the error message, and change one barely comprehensible sentence into something equally incomprehensible, leaving lots of other minor problems there ().  Do we need to introduce some kind of penalty for suggesting terrible edits, and to the approvers who blindly let them pass? Obviously the audits aren't keeping people honest.  This is probably a duplicate, but nothing obvious popped up immediately. I saw  but it seems to deal with the opposite case - most of the problems were fixed but not all. It is also talking about the situation where a user is trying to improve an edit and it is approved right out from under them.


An olympiad Geometry problem involving triangles

In the triangle $ABC\,$ we denote by $O$ and $I$ the circumcenter and incenter respectively. The perpendicular bisectors of the line segments $IA$, $IB$ and $IC$ pairwise intersect thus defining the triangle $A_1B_1C_1$ Prove that $\vec {OI}=\vec {OA_1}+\vec {OB_1}+\vec {OC_1}$      Hi there. Im a high schooler new to olympiad geometry. Ive been unable to solve this problem despite repeated angle chasing could someone give a solution?Note I dont know stuff like projective geometry and hard lemmas so a simple proof would be most appreciated.


Prove there exists a subsequence of the real numbers such that it is monotonically increasing or decreasing.

Let $x_n$ be a sequence of real numbers. Prove that there exists a subsequence $x_{n_k}$ such that either $x_{n_{k+1}} \le x_{n_k} $ for all $k$ or $x_{n_{k+1}} \ge x_{n_k} $ for all $k$.  Would it suffice to define $\{a_p\}$ as $a_p = x_{n_k}$, $n_k = min\{n \ |\ x_n \gt x_{n_{k-1}}\}$ and $\{b_p\}$ as $b_p = x_{n_k}$, $n_k = min\{n \ |\ x_n \lt x_{n_{k-1}}\}$


If $\lim_{x\to\infty} [f(x+1)-f(x)] =l$ then $\lim_{ x\to\infty}f(x)/x =l$ ($f$ is continuous)

Prove that if $f$ is continuous on $\mathbb R$ and    $$\lim_{x \to +\infty}  [f(x+1)-f(x)] = l,$$   then   $$\lim_{x\to +\infty} f(x)/x =l.$$  So I've been trying for hours to use the series definition of limits / Cesaro's lemma (if $\lim U(n+1) - U(n) = l$ then $\lim U(n)/n=l$).   I'm completly blocked and I can't get it.


I am developing an application that at the beginning the user can select which database to connect to. It is a Rails application which uses Active-Record for database access.  Usually, a Rails application is configured to connect to a specific database and then not change which database it is connected to.  How can an application which is using Active-Record select its database on the fly?


Do forum signature link count as backlink?

I am new on SEO so there are many questions arises on my mind about SEO. I have seen there has a signature area where I can paste a link.    Does this link will count as a backlink?  If I post 500 message, 500 backlink will create for signatures?  If I have .me site, then can I put my site link to all kind of forum? I have a photo editing service site. Can I put this site link to forum related with SEO?   Sorry if any typos mistake.


How do I monitor clipboard content changes in C#?

I want to have this feature in my C# program: When the user do Ctrl + C or Copy anywhere (i.e. when the clipboard content changes), my program will get notified, and check whether the content met certain criteria, if so, become the active program, and process the content, etc.  I can get the contents out from System.Windows.Forms.Clipboard, however, I don't know how to monitor the content changes from the clipboard.  If using Windows Vista or later, use AddClipboardFormatListener as in John Knoeller's answer, for Windows XP, I have to use the older, more fragile SetClipboardViewer API, as in the accepted answer.


Is it correct to use the word "birthday" for the deceased, or is there a better alternative?

How does one refer to the birthdate of someone who is no more, we usually say  Today is my uncle's 80th birth anniversary (Common in Indian English, not sure if it's correct)  or  Today would have been my uncle's 80th birthday   Is it right to say  "Today is my uncle's 80th birthday" for an uncle who is dead?


Efficient algorithm for calculating determinants

Are there efficient algorithms for calculating determinants of matrices?


Find all pairs of positive integers $(m,n)$ such that $2^{m+1}+3^{n+1}$ is a perfect square    My attempt so far Any perfect square is $0,1$ in mod 4, so $n+1$ must be even : $$2^{m+1}+3^{2r}=k^2$$ Rearranging and factoring $$2^{m+1}=(k+3^r)(k-3^r)$$ That gives two equations $$2^a=k+3^r\\2^b=k-3^r\\a+b=m+1;a>b$$ However I am not able to conclude, subtracting/adding...  these equations is not giving me anything useful. Any help is appreciated... Thanks!


How to see the contents of a file without using a text editor

I'm wondering how to read the contents of a file, for instance, I have a text file containing the words hello world and I want to read this file without using a text editor. What can I do?


Openssl upgraded via apt-get, `openssl version` showing previous version

I am running Debian Wheezy. I have just upgraded my system and should have the latest version of openssl (1.0.1g which fixes a ), but it does not appear to be being used.  I have run:  apt-get update apt-get upgrade   dpkg -s openssl shows: Version: 1.0.1e-2+deb7u5  openssl version shows: OpenSSL 1.0.1e 11 Feb 2013  I have rebooted my system since upgrading. What do I need to do to get openssl using the updated version?


Existence of a partial ordering that makes two elements comparable

Let $X$ be a set, $x',y'$ elements of $X$ and let $P$ be the set of all partial orderings of $X$; is it true that there exists $\leq \in P$ such that either $x\leq y$ or $y\leq x$ (or both)? i.e. is is true that there must be some partial ordering of $X$ such that $x$ and $y$ can be compared? Why is that so?  (Note: I'm aware of the fact that if we assume the well-ordering principle the answer is yes, I'm wondering if the same is true if we do not assume it)  Best regards,  lorenzo.


"Unsafe permissions on configuration file `/home/david/.gnupg/gpg.conf" What does it mean and how to fix?

gpg: WARNING: unsafe permissions on configuration file `/home/david/.gnupg/gpg.conf' gpg: WARNING: unsafe enclosing directory permissions on configuration file `/home/david/.gnupg/gpg.conf' gpg: external program calls are disabled due to unsafe options file permissions gpg: keyserver communications error: general error gpg: keyserver receive failed: general error   What does it mean and how to fix?


How to *disable* automatic reboots in Windows operating system?

I want to disable automatic reboots in my windows operating system as it disrupts commands and sometimes even creates problem in programming


Someone always downvotes my question without helping me to understand what I did wrong

Whenever I post a question (usually on Stack Overflow), I almost always get a downvote within the first few minutes of it being posted. I try my best to follow all the rules, search before posting, and correct formatting of the post, but when I ask for help, now I am greeted with the "Careful what you post, you might be banned" message because 2 or 3 of my questions have 1 downvote on them.   I think users should be required to provide a reason, or at the very least a comment describing why that they think the content shouldn't be on Stack Overflow and/or isn't useful. This would help encourage new users like me to contribute content that could help, rather than hold back in fear of getting post banned.


Issue between a moderator and another user

I ran across a discussion recently about whether or not a moderator should be modifying the content of an answer. In this example, content was removed but the author of the answer disagreed with the edit and rolled it back. The editor in question was a mod who then rolled back the rollback and then locked the answer for editing. This isn't about determining who is right or who is wrong. This is about me and maybe some other users understanding what the proper way to proceed in this situation is on any StackExchange site. Can someone please provide some insight into this issue? The following is an example of such a situation on the meta Parenting site which has the relevant question/answer linked:


Converting mulitlinestring to linestring in PostgreSQL with PostGIS?

I am using postgres with postgis and I have a set of points which I would like to interpolate with a set of lines.   Now my problem is that the set of lines are of type multilinestring.   Is there a way to convert them to linestring?


Welch t-test: Exactly when should it be used?

The guidance on this site concerning when to use the Welch t-test is somewhat general in nature ( ).  Are there specific, widely accepted rules of thumb such as related to: (1) Size of the difference in variances as opposed to statistical significance of the difference, (2) Sample size after which the robustness of the traditional t-test makes the Welch test unnecessary, (3) Other considerations that might best inform a decision on whether to use the Welch t-test, (4) What extent of benefit the Welch t-test might provide in various situations, and (5) Do the Welch and student t-test converge with large N? Any informed guidance would be greatly appreciated.


Is there a Lebesgue measurable subset $A \subset R$ such that for every interval $(a,b)$ we have $0 < \lambda(A\cap(a,b))< (b-a)$

Question: Is there a Lebesgue measurable subset $A \subset R$ such that for every interval $(a,b)$ we have $$0 < \lambda(A\cap(a,b))< (b-a)$$  It looks like the answer is no, I'm trying to use the Lebesgue differentiation theorem on A in order to do so.  Also, If we assume there's a set $A$, $\forall (a,b) \subset (0,1)$, $0 < \lambda(A\cap(a,b))< (b-a)$, Does there exist an open interval $I_n \subset (0,1)$ that will hold as a contradiction?


User has 1 reputation on Interpersonal.SE but 189 on Interpersonal.meta

I was looking at the list of new meta members for IPS.SE and I came across a user UID  looking at the profile you can see their reputation is exactly 189.  But, if we go their main profile  you can see something abnormal is going on, their reputation is 1 and the user has no activity.  This is different from  – this is not about Your Communities at all, it's about another user.


I am invisible in Skyrim without any active effects

I am invisible in Skyrim without having cast spells or drank potions. I have pressed 'camera on right' toggle on my controller, and nothing changes. I allowed someone to cast a spell on me at the College and have been invisible since. The game is operating normally aside from that aspect. I'm assuming I'm visible to other characters in the game. It's driving me absolutely bonkers.   I don't have the Dragonborn or Dawnguard DLC installed, so I know it's not related to those. I have no mods installed. I only have about four other old saves, and one is from when I was level six with the character in question. I am now almost level 30. The others are from a different character.    Is there any possible help or advice at all, aside from either starting over or just dealing with it?


Is it possible to use variational autoencoders with Non-Gaussian data?

I am dealing with two scenarios: 1) Non-Gaussian data distribution and 2) non-stationary data). First, I am planning to use a variational autoencoder for modeling the probability distribution of the non-Gaussian data distribution in the latent space. (Note, the input of the encoder part will be the non-Gaussian data). Then, I will it to perform some classification tasks. However, is it possible to use the variational autoencoder to deal with non-Gaussian Distribution data? (because the non-Gaussian data is not generated from a Gaussian distribution). Second, I also want to use the variational autoencoder to deal with non-stationary data. Would it be possible to use it with non-stationary data or should I consider other ML techniques.


Using Echo statement writes Echo is ON in the text file

Following code is used for write a number in the text file but instead it is writing "Echo is ON" into the text file.   SET @CMD = 'ECHO '+@Ver+'>'+@Vercheck         Print @CMD  EXEC xp_cmdshell @CMD     ,NO_OUTPUT    Print @CMD  gives  "ECHO 1>C:\Pharmsuite\Vercheck.txt"  Here instead of 1, the query is writing "Echo is ON".


Suppose that the sequence $(a_n)_{n \ge 1}$ of real numbers is such that $a_{n+1}− a_n \to 0$. Prove that the set of limits of its convergent subsequences is the interval with endpoints $\liminf_{n \to \infty} a_n$ and $\limsup_{n \to \infty}a_n$.   Can this be done this way that since the elements of the sequence are dense hence if you take a point then there are infinitely many elements around its neighbourhood and hence it acts as a subsequential limit now between lim sup and lim inf every point is a subsequential limit hence the proof follows Please help whether the above method is right or wrong


Using awk and local variable for filtering

I have a command: $var=test_file_20200612000000  aws s3 ls [s3 bucket name] --profile [profile name] | grep "test" | awk '$4 > $var'  This is looking at files on an s3 bucket and returning only those where the name is greater than a string variable being passed in (finding new files with later time stamps essentially). Awk is not recognizing the var variable - how does one deal with this?


Loading .profile from .bash_profile or not using bash_profile at all?

I am on a MAC running Yosemite.  Until recently, I only had a .profile, in which I added directories to my PATH.  Now I have a .bash_profile, which from what I experienced and later read online, causes the .profile to be ignored when opening a terminal window.  After some readings, I do understand how .pofile and .bash_profile differ.  I do get that .bash_profile is only invoked when starting a shell.  I am however still not sure, for a basic user, what the drawbacks are, if any, in either:   calling .profile from .bash_profile, or simply ignoring .bash_profile and setting all environment variables I may need from a shell in the .profile file directly.   For example, I read  that since .profile is ignored when .bash_profile is present, I could just add   . ~/.profile    in my bash_profile to invoke .profile.  And alternatively, though I understand that .bash_profile would allow me to set variables not needed outside of bash, I still can set everything I need in .profile and do not see what using .bash_profile brings me.


What are the limits on how I can cast, change, and retract votes?

What limits are there on how I can vote?  How often can I vote? How do my votes become locked/unlocked?


Prove that the volume of the tetrahedron whose coterminus edges are $\vec{a},\vec{b},\vec{c}$ is given by $\frac{1}{6}\vec{a}.(\vec{b}\times\vec{c})$    I could not prove it.Please help me.


How to read a comma separated words from a file and assign it to variables in c++?

I have been looking for a good approach to solve this issue, but many examples are when words are separated by spaces and it makes a solution easier, like in this example: ifstream fin(“marks.txt”);      string name;     int var1;     int var2;     int var3;      while (fin >> name >> var1 >> var2 >> var3)     {         /* do something with name, var1 etc. */         cout << name << var1 << var2 << var3 << “\n”;     }  but what if my file has the following: word1,word2,word3,word4,word5 word6,word,word,word,word,word  How should implement a code for this! I will appreciate any help, newbie in c++ Thanks in advance


Parents keep having children until they have one girl, at which point they stop; and babies are girls with probability 0.49.   If we select a child uniformly at random (from the entire population of children), what's the probability he or she has exactly one sibling?  ==============  I thought this would just be probability of BG 51/100*49/100 but it isn't.  P = P(G)P(BG| Choose G) + P(B)P(BG|choose B)


Why is it differential equations exist on an interval instead of a domain?

I understand a domain is the set of input elements a function is defined for (and can have breaks in it e.g. union of 2 sets) and a interval is a continuous range of real numbers. Why do we speak of the solution to a differential equation over an interval instead of an domain? If the solution to an ODE is just a function, and we normally speak of functions as having a domain, then why wouldn't we use domain?


macOS Sierra "System" files eating up disk space

macOS Sierra system is using over 200 GB of storage space on my 250 GB hard drive. I've removed Time Machine backups to no avail. How do I free up space? My current usable space being less than 50 GB is getting quite problematic.  Edit:  The culprit has been found. Imagemagick is creating tons of temp files for some reason.


Java Twitter4J Null Pointer Exception on pin.length()

The documentation on this is fairly bad. Followed guides, still encountering problems.   Relates to OAuth on the Twitter API via the Twitter4J library.   ConfigurationBuilder builder = new ConfigurationBuilder();             builder.setOAuthConsumerKey("");             builder.setOAuthConsumerSecret("");             builder.setOAuthAccessToken(null);             builder.setOAuthAccessTokenSecret(null);             Configuration configuration = builder.build();             TwitterFactory factory = new TwitterFactory(configuration);             Twitter twitter = factory.getInstance();      RequestToken requestToken;             try {                 String callbackURL = "/callback";                  requestToken = twitter.getOAuthRequestToken(callbackURL);                 AccessToken accessToken = null;                 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));                 while (null == accessToken) {                     System.out.println("Open the following URL and grant access to your account:");                     String requestTokenAuthorisationURL = requestToken.getAuthorizationURL();                     System.out.println(requestTokenAuthorisationURL);                      System.out.print("Enter the PIN(if aviailable) or just hit enter.[PIN]:");                     String pin = br.readLine();                     try {                         if (pin.length() > 0) {                             accessToken = twitter.getOAuthAccessToken(requestToken, pin);                         } else {                             accessToken = twitter.getOAuthAccessToken();                         }                     } catch (TwitterException te) {                         if (401 == te.getStatusCode()) {                             System.out.println("Unable to get the access token.");                         } else {                             te.printStackTrace();                         }                     }                 }             } catch (TwitterException ex) {                 Logger.getLogger(EmployerAdvertisingTwitter.class.getName()).log(Level.SEVERE, null, ex);             }   The null pointer exception is being thrown on this line;  if (pin.length() > 0) {   And I cannot see why this is happening or what this section of code actually does. I've tried commenting out that whole try/catch section of code surrounding the pin.length() piece of code and this ends up in an endless loop generating new authorisation URLs.   Any ideas or pointers?


Is it possible to keep a physical SIM in one of the new iPhones that support dual SIM via eSIM, keeping only the eSIM active for both calls and data?   on the topic is a bit unclear whether only data can be disabled for whichever SIM is chosen as secondary.  I would like to entitely disable my physical SIM while traveling to avoid any incoming call/text charges, and I was wondering whether it was possible to do so without physically removing it.  And is the reverse possible as well? (Disable all eSIM profiles without deleting them, using only the physical SIM)


Fan noise and overheating problem in Dell Inspiron N5110

I have installed Ubuntu 11.10 in a Dell Inspiron N5110 laptop and it works fine. But I can hear a continuous noise from the cooling system. What should I do to solve this problem?


If $f$ entire and non-constant function, then for fix $x \in \mathbb{C}$ the set of $(z \in \mathbb{C} : f(z)=x)$ is finite or countable.   I was trying to prove this statement by contradiction or using the continuity of $f$ but unsuccessfully.


So the controls of VLC are gone and so is the menu in the upper corner of the screen.  I already reinstalled it two times: once with the Ubuntu Software Center and it didn't work, so I tried with terminal with these commands:  sudo apt-get purge vlc vlc-nox sudo apt-get install vlc   This way didn't work too. I am currently on Ubuntu 13.04 (64 bit version) with the proprietary Nvidia driver 313, the system is also dual-boot with Windows. This whole thing happened today after update of the OS, as far as I know there was no problem yesterday, it must have been from the update I think. The player itself is working (playing movies, rewind, pause), but as mentioned the menus and controls aren't displaying, as well as the context menu when right clicking.


Salesforce to Xero integration using Named Credentials by OAuth 2.0

I am trying to do the integration between Salesforce and Xero by using Named Credentials (Authentication Protocol is OAuth 2.0). I created an Auth provider -    Then created Named credentials of OAuth 2.0 type and authenticated with required scopes mentioned in the Xero developer document.    When I am trying to run the below code to get the Account details from Xero, I am getting "AuthenticationUnsuccessful".  HttpRequest req = new HttpRequest(); req.setEndpoint('callout:XeroDev/api.xro/2.0/Accounts'); req.setMethod('GET'); Http http = new Http(); HTTPResponse res = http.send(req); System.debug(res.getBody());   This is the response -      {"title":"Forbidden","status":403,"detail":"AuthenticationUnsuccessful","instance":"707450d8-b455-47ec-a1b4-85bcb2cf80c9"}   Any suggestion on how to make it work by using Named Credential?  Xero URL -


I cannot get the QUERY function to work with IMPORTRANGE

I am using the function below to QUERY an IMPORTRANGE range based on IS NOT NULL conditions:  =query(IMPORTRANGE("https://docs.google.com/spreadsheets/d/1O5DeZ9LFLpGbp8b2aGst57XLEP7ZiOnc-2b552sQLz0","Referrals!A1:AB1080"),"SELECT Col2, Col3, Col4, Col6, Col8, Col22, COL28 WHERE COL28 is not null")   I get:     #VALUE! Unable to parse query string for Function QUERY parameter 2: NO_COLUMN" COL28   I cannot find where I went wrong with the code.  COL28 is Col AB in the IMPORTRANGE sheet.  Could someone please assist?


Entrepreneurs try to delay taking money from investors as long as possible.   Entrepreneurs try delaying taking money from investors as long as possible.       Assuming (2) is correct, is there any difference in meaning between the two sentences?  ELL contributors have already answered a  about the difference in meaning between "try to open," and "try opening," but I'm not sure if it applies to the two sentences in my question because why would one try to delay taking money for its own sake (not to achieve something else)? And why, for that matter, would one try to open a door if not to achieve something else (to leave a building, to see what's behind the door ...)?


Can someone help me understand the Iterable interface?

I found this code snippet and have been having trouble fully understanding its implementation. I know it has one method:  Iterator<T> iterator()   which creates a new iterator. But what is the point of this one method.  In this example:  import java.util.Iterator;  public class Range implements Iterable<Integer> {   private int start, end;   public Range(int start, int end) {     this.start = start;     this.end = end;   }    public Iterator<Integer> iterator() {     return new RangeIterator();   } }  public static void main(String[] args) {   Range range = new Range(1, 10);   for(Integer cur : range) {     System.out.println(cur);   } }   The code works correctly, yet iterator() has never been called. I know you need the Iterable interface to use the for each loop, but what is the point of the one method inside the interface? Any help in clearing this confusion would be appreciated.


Not sure about the interpretation of this residual plot

I'm analyzing a residual plot  of the residuals vs the fitted values.  I'm not quite sure how to interpret this plot since there looks like there is a pattern and the average is not actually zero. There are diagonal straight parallel lines.    I'm working with several ordinal IV's.  Any ideas?


How didn't Kraznys predict Daenerys turning hostile towards him before making the deal of Unsullied warriors?

The part in GoT where Daenerys strikes the deal with Kraznys to exchange one dragon for 8000 unsullied warriors, it was an easily predictable risk that Kraznys was sacrificing his own protection.  Before the deal took place and Daenerys asks for all Unsullied warriors, I guessed that Khaleesi ccould turn the same warriors against their old masters. Also, the dragon was hard to train, since she was their mother, thus they won't hurt her. It was an easily predictable scenario and Kraznys failed to see it.  I mean a person so powerful as Kraznys, he must be intelligent to understand the risks. Also, Ser Jorah shows discomfort when Daenerys strikes the deal.   How didn't great master and warrior, ignore such an easy plot?