I'm trying to run a command through cmd - but it's not being recognized.  import os cmd = '"C:\\Program Files (x86)\\PATH TO PROGRAM" "C:\\Users\\PATH TO FILE" /r /e' os.system(str(cmd))   I know the str(cmd) isn't needed, but just wanted to show that I tried. The error I'm getting is:     'C:\Program' is not recognized as an internal or external command,   operable program or batch file.   I looked around and I know it's because I should use quotes, but I am using quotes for my path. I tried other ways to get around it like:  TCPath = '"C:\\Program Files (x86)PATH"' PPath = '"C:\\Users\\PATH"' cmd = TCPath + ' ' + PPath + ' /r /e' os.system(str(cmd))   And I keep getting the same error. Any thoughts on this? I tried \" too but that didn't work either.

How do you call an external command (as if I'd typed it at the Unix shell or Windows command prompt) from within a Python script?


I am curious to know the concept behind. Let's say y = 10^x  So, y should be a number with zeroes but y is 10 multiplied to 10 x times. But this is not the case.  For eg 10^3.5 = 3162.27766017  So, not a number ending with zeroes. I know the mathematics behind this but I would like to know the concept and reasoning as to how I might explain to a high school student why does 10 to the power something ends up with a number that may not end with zeroes ?  This might be a silly question but I would appreciate if I can get some answer before this question is put on hold/etc.

The way that I was taught it in 8th grade algebra, a number raised to a fractional exponent, i.e. $a^\frac x y$ is equivalent to the denominatorth root of the number raised to the numerator, i.e. $\sqrt[y]{a^x}$. So what happens when you raise a number to an irrational number? Obviously it is not so simple to break it down like above. Does an irrational exponent still have a well formed meaning?  The only example that comes to mind is Euler's identity, but that seems likes a pretty exceptional case. What about in general?


Do I need to contact Google if I've forgotten my Gmail password?

I have forgotten the password or username for my Google account, or I'm unable to access my account for other reasons.  How can I recover my account?  (This Q&A is meant as a general description for all Google and Gmail username/password questions. See: )


From Wikipedia:  Soon after, however, a large group of the Elves of Lórien join the defences. Elrond, at the prompting of Galadriel, sends the Elves under the command of Haldir of Lórien to reinforce the defence of the keep.  Haldir is clearly some kind of a Captain or a commander under Galadriel, not Elrond.   I only noticed this after my 10th viewing of The Two Towers so a few questions came to my mind:  Why would Elrond send an army from Rivendell under the command of Haldir? This doesn't really make any sense to me except perhaps that Peter Jackson wanted to reuse an existing and familiar character. What actually happens in the books? It's a very long time since I've read them and I have absolutely no memory about these events.

In the Lord of the Rings books, Galadriel of Lorien is even more exalted than in the movies.  She is essentially a queen, and the deference shown to her far exceeds that shown to Elrond of Rivendell.  Yet in the films, we see her trying to persuade Elrond to intervene in the battle of Helm's Deep by sending Elf troops to reinforce Theoden's forces.  Eventually, Elrond relents, and orders the Elves into battle.  But the troops in question are Galadriel's, not Elrond's - they are led by Haldir, one of Galadriel's guards; the trip from Rivendell to Helm's Deep (500 miles as the crow flies) is about 2 times longer than the trip from Lorien to Helm's Deep (250 miles as the crow flies), far too long for the reinforcements to arrive in time.  But then Haldir greets Theoden of Rohan by saying he has come bearing a message from Elrond - not Galadriel.     I bring word from Lord Elrond of Rivendell. An Alliance once existed between Elves and Men. Long ago we fought and died together. We come to honor that allegiance.    This seems odd for a few reasons. The troops are Galadriel's, not Elrond's, and they come from Lorien, not Rivendell. She clearly wanted to send them to Helm's Deep - she was cajoling, prodding, and guilt-tripping him into doing just that.  She is also a queen, and could presumably order them into battle regardless of what Elrond says.    So why does she have to talk Elrond into letting her send her own troops into battle, especially when he is too far away to contribute manpower (elfpower) or materiel to the battle of Helm's Deep?  Why not say, "I'm not going to sit here doing nothing while Saruman runs roughshod over Rohan;  you can support me or not, Elrond, but if you aren't willing to help, you can at least get the hell out of the way"?  Why does her aide Haldir "bring word from Elrond" when the troops - and the impetus for sending them - came from Galadriel, and Elrond resisted sending them out for as long as he could?  And again, what is Elrond's official position/status/rank, and why would a queen need his permission to deploy her own troops?


I write below shell script to check whether given character is in uppercase or lowercase..  read d case $d in [a-z]) echo "Character is in Lowercase";; [A-Z]) echo "Character is in Uppercase";; esac   But when I enter any case in Uppercase it displays the output "charecter is in Lowercase" I just want to create simple script with basic programming. Is there any solution??

In all shells I am aware of, rm [A-Z]* removes all files that start with an uppercase letter, but with bash this removes all files that start with a letter.  As this problem exists on Linux and Solaris with bash-3 and bash-4, it cannot be a bug caused by a buggy pattern matcher in libc or a miss-configured locale definition.  Is this strange and risky behavior intended or is this just a bug that exists unfixed since many years?


I try to install a new ppa entry and when I update from command line I received a duplicate (error) message. I know what meens that and how to solve manually with Ubuntu Tweak or command line. Is any automated way to solve this problem when I install duplicate entries? like a command which find the duplicates and erase them or a software.

I keep getting this warning whenever I try to run sudo apt-get update.  W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise-updates_main_binary-i386_Packages) W: You may want to run apt-get update to correct these problems   Below is the output from /etc/apt/sources.list file:  deb http://archive.ubuntu.com/ubuntu precise main restricted deb-src http://archive.ubuntu.com/ubuntu precise main restricted  deb http://archive.ubuntu.com/ubuntu precise-updates main restricted deb-src http://archive.ubuntu.com/ubuntu precise-updates main restricted  deb http://archive.ubuntu.com/ubuntu precise universe deb-src http://archive.ubuntu.com/ubuntu precise universe deb http://archive.ubuntu.com/ubuntu precise-updates universe deb-src http://archive.ubuntu.com/ubuntu precise-updates universe  deb http://archive.ubuntu.com/ubuntu precise multiverse deb-src http://archive.ubuntu.com/ubuntu precise multiverse deb http://archive.ubuntu.com/ubuntu precise-updates multiverse deb-src http://archive.ubuntu.com/ubuntu precise-updates multiverse  deb http://archive.ubuntu.com/ubuntu precise-security main restricted deb-src http://archive.ubuntu.com/ubuntu precise-security main restricted deb http://archive.ubuntu.com/ubuntu precise-security universe deb-src http://archive.ubuntu.com/ubuntu precise-security universe deb http://archive.ubuntu.com/ubuntu precise-security multiverse deb-src http://archive.ubuntu.com/ubuntu precise-security multiverse   How do I fix it?


I have a questions about how to start developing (programming) something, what tools should I use to this project, what should I know for this purpose itc. and I don't know where I should post them. Can someone help?

Stuff like polls, recommendations based on subjective constraints, puzzles, webcomics etc. do not belong on the serious main SE sites, where professionals should be considered at work and having just a few spare minutes ("code's compiling") to answer questions, so they should not be distracted by such things. However, I'd also like to have a home for these things still using the SE engine. For the reason I mentioned before, this needs to be a separate place though. Let's call it four.[sitename-here].com.


A bucket is filled with water and a handful of sand. The water is then spun. Why and what forces are in play which cause the sand particles to congregate in the centre of the bucket?

At xmas, I had a cup of tea with some debris at the bottom from the leaves.  With less than an inch of tea left, I'd shake the cup to get a little vortex going, then stop shaking and watch it spin.  At first, the particles were dispersed fairly evenly throughout the liquid, but as time went on (and the vortex slowed, although I don't know if it's relevant) the particles would collect in the middle, until, by the time the liquid appeared to almost no longer be turning, all the little bits were collected in this nice neat pile in the center.  What's the physical explanation of the accumulation of particles in the middle?  My guess is that it's something to do with a larger radius costing the particles more work through friction...


In Game of Thrones, Season 4, Episode 3 “Breaker of Chains”, Daenerys and her army are challenged, taunted and insulted by a champion of Meereen at the gates of the city. In particular, one Valyrian sentence can be heard clearly:     Oa mysa iles me nýnyghi.   This part is not translated by Missandei. Various internet sources (with the usual limited credibility) claim that this sentence translates as     Your mother was a hamster.   which apparently is a reference to the taunting French guard in Monty Python and the Holy Grail (1975):     I don’t want to talk to you no more, you empty headed animal food trough whopper! I fart in your general direction! Your mother was a hamster and your father smelt of elderberries.   Is this assertion true?  The ridiculing by the champion of Meereen is also much longer, but partly incomprehensible. Is there a translation of the whole speech? Are there even more references to Monty Python?

In A Dance with Dragons, when the sellswords of the      Windblown    talk between themselves, one says about  Daenerys' Unsullied that they are      the kind that don't break and run when you fart in their general direction.   It seems to me a reference to Monty Python's Holy Grail when the insulting Frenchman says to King Arthur and Ser Galahad:     I fart in your general direction   So, is it a reference to the Holy Grail, and are there any other references in ASoIaF to Monty Python's work?


I have one question in my mind. I have read that static synchronized method locks in the class object and synchronized method locks the current instance of an object. So what's the meaning of locked on class object? Can anyone please help me on this topic?

The Java documentation says:      It is not possible for two invocations of synchronized methods on the   same object to interleave.   What does this mean for a static method?  Since a static method has no associated object, will the synchronized keyword lock on the class, instead of the object?


I am surprised that squash has never been adopted, and I am wondering what the criteria are for deciding what to include.  There also seems to be an absence of sports which can be played by older people, such as lawn bowls. Is there any reason for this?

How does a sport transition into the Olympics?  What are the qualifications?  Is there a process?


I am reading Kunen's Set Theory and I learn that, $\operatorname{Fn}(\kappa\times\omega,2)$ forces $2^{\aleph_0}\ge|\kappa|$, where $$\operatorname{Fn}(I,J,\lambda)=\{p:p\text{ function},\,\operatorname{dom}p\subset I,\,\operatorname{ran}p\subset J,\,|p|<\lambda\}$$ and $\operatorname{Fn}(I,J)=\operatorname{Fn}(I,J,\omega)$. However, when forcing $2^\lambda\ge\kappa$ for cardinal $\kappa$ and regular cardinal $\lambda$, Kunen uses $\operatorname{Fn}(\kappa\times\lambda,2,\lambda)$ rather than $\operatorname{Fn}(\kappa\times\lambda,2)$. As I think, $\operatorname{Fn}(\kappa\times\lambda,2)$ preserves cardinals and seems to add $|\kappa|^{V[G]}$ many subsets of $\lambda$ so I think we can use $\operatorname{Fn}(\kappa\times\lambda,2)$ to force $2^\kappa\ge\lambda$. However, every reference I see uses $\operatorname{Fn}(\kappa\times\lambda,2,\lambda)$, not $\operatorname{Fn}(\kappa\times\lambda,2)$.  Is there a reason to use $\operatorname{Fn}(\kappa\times\lambda,2,\lambda)$ instead of $\operatorname{Fn}(\kappa\times\lambda,2)$? Did I misunderstand something? Thanks for any help.

On p. 226 of his ${\it Set}$ ${\it Theory}$, Jech considers adding $\lambda$ many subsets of $\kappa$ to a ground model $M$. He outlines a suitable partial order on the assumption that $M$ satisfies $\kappa<\lambda$, $2^{<\kappa} = \kappa$, and $\lambda^\kappa = \lambda$. Any resulting generic extension, he claims, will preserve cardinals and satisfy $2^\kappa =\lambda$. $\DeclareMathOperator{\dom}{dom}\DeclareMathOperator{\rng}{rng}$  It looks like we can get a generic extension with the same properties without assuming $2^{<\kappa} = \kappa$ (though we do assume that $\kappa<\lambda$ and $\lambda^\kappa = \lambda$). In particular, let $P$ be the set of all $p$ such that:  (i) $\dom(p)\subseteq \lambda\times\kappa$ and $|\dom(p)|<\omega$  (ii) $\rng(p)\subseteq\{0,1\}$  and let $p$ be stronger than $q$ iff $p\supseteq q$.   Since $P$ is c.c.c., cardinals will be preserved. In addition, we seem to have:  $$(2^\kappa)^{M[G]} \leq (|B|^\kappa)^{M} \leq (|P|^\kappa)^{M}\leq (\lambda^\kappa)^{M} \leq \lambda \leq (2^\kappa)^{M[G]}$$  So,  $\lambda = (2^\kappa)^{M[G]}$.  Am I missing something?


I'm trying to detect when a new file is created a directory or when an existing file is modified in a directory.  I tried searching for a script that would do this (preferably in python or bash) but came up short. My environment is linux with Python 2.6

I have a log file being written by another process which I want to watch for changes. Each time a change occurs I'd like to read the new data in to do some processing on it.  What's the best way to do this? I was hoping there'd be some sort of hook from the PyWin32 library. I've found the win32file.FindNextChangeNotification function but have no idea how to ask it to watch a specific file.  If anyone's done anything like this I'd be really grateful to hear how...  [Edit] I should have mentioned that I was after a solution that doesn't require polling.  [Edit] Curses! It seems this doesn't work over a mapped network drive. I'm guessing windows doesn't 'hear' any updates to the file the way it does on a local disk.


Suppose $f$ is an entire function and that $\exists k > 0, R > 0$ and $n \in \mathbb{N}$ such that $|f(z)| > k|z|^n$ whenever $|z| > R$. Prove that $f$ is a polynomial.  I am not sure how to go about this and I would greatly appreciate some hints.

As in the title, I must prove that: If a complex function $f$ is Entire, and there exist $k,R > 0$, $n \in N$ such that $|f(z)| > k|z|^n$ for all $|z| > R$: Then f is a polynomial.  We've already had a similar question with the inequality reversed, and found that it had to be a polynomial with degree less than n. I was able to show that if it was a polynomial, then it had to have degree less than n, but not that it had to be a polynomial in the first place.  Once again, I'm face with the same problem. I assume this time, the degree of the polynomial will have degree greater than or equal to n, but how do I show that such $f$ must be a polynomial?  It's not like I can go through every other possible function there is, can I? I can show it doesn't work for exponentials, for example, but I just can't think of how to show that this ONLY works for a polynomial...


I am having an issue doing as the title says.  I did  \usepackage{multicols} ... \begin{multicols}{2} ... \begin{figure}[!h] \center \includegraphics[scale=.5]{IMAGE}  \caption{CAPTION} \end{figure}  ... \end{multicols}   When I do this, no image appears.  I tried changing the scale, but still no luck.  Any suggestions?

I am having the following problem with adding a figure inside the multicol environment:  \documentclass[10pt, twoside]{book} \usepackage{graphicx} \usepackage{subfig}  \begin{document}   \begin{multicols}{2}  a test file for picture inclusion along with the captions and labeling \begin{figure}  \centering  \includegraphics[width=5cma]{Cauchy_sequence_illustration-png}\\  \caption{Lets see}\label{pinki} \end{figure} \end{multicols}  \begin{figure}  \centering   \includegraphics[width=5cm]{Cauchy_sequence_illustration-png}\\  \caption{Lets see}\label{pinki} \end{figure}    \end{document}    After this while I am pressing Ctrl + Shift + X (usually I compile like this in DVI format and then clicking "dvi--->pdf" I convert it into PDF document.) the picture in multicol environment is not shown in YAP Viewer but the second one (which is outside of multicol environment) is shown along with the caption.  Kindly help me how to handle this problem. Please note that I am using the figure in .ps format. And I am not allowed to use any other format according to the instruction.


I need to convert this string into a an array into the format shown below.  itemString   [{"_id":"1e12345","a":"abc","b":def","c":ghi"},{"_id":"1e678910","a":"xzx","b":sed","c":ert"}]  var item=itemString.split("},{").map(function(i){     return i }) console.log(item)    what i need to get from  from console.log(item)  0:{_id:"1e12345",a:"abc",b:"def",c:"ghi"} 1:{_id:"1e678910",a:"xzx",b:"sed",c:"ert"}   what i get from console.log(item)  0:"[{"_id":"1e12345","a":"abc","b":"def","c":"ghi"" 1:""_id":"1e678910","a":"xzx","b":"sed","c":"ert"}]"

Given a string of JSON data, how can I safely turn that string into a JavaScript object?  Obviously I can do this unsafely with something like:  var obj = eval("(" + json + ')');   but that leaves me vulnerable to the JSON string containing other code, which it seems very dangerous to simply eval.


I live in the EU. After signing up with various brokers across the pond, I noticed that some have decent low-cost deposit/ withdrawal fees, while others' are abnormally high.  For instance, Interactive Brokers charges nothing for SEPA deposits and the first withdrawal is free of charge, but TastyWorks requires you to deposit via CurrencyFair, which takes a ~$20 cut, and then international wire withdrawals are $25 a piece. Which is insane.  I would love to have access to multiple brokerage services, but this requires me to have a US-based bank account to reduce the deposits/ withdrawal fees to 0 (by using the ACH payment network).  Is there any way an EU resident could obtain this, assuming that they have no American family member?

I'm Swedish, but living in Switzerland at the moment. Can I open a US bank account? Either when in the US on vacation or through the internet/phone?  There are lots of situations when I find myself in need of an american credit card or just a bank account. When ordering things online (most retailers refuse to accept my orders if I try to pay with my Swedish or Swiss credit card, even if I ship it to an US address... ) etc etc.


Suppose that $T_1,…,T_{10}$ are iid $Exp(λ)$ and the goal is to test if $H_0:λ≤1$ versus $H_a:λ≥2$. Suppose that the test statistic is $S=\sum_{i=1}^{10}Ti$, and rejection of the null occurs when $S≤7$. Find the tighest bound for type 1 and type 2 error. For the type 1 error, I know that the $P(Reject  \space H_0 | H_0) = P(S<7|\lambda \leq 1)$ Did I set this up correctly?

Suppose that $T_1,…,T_{10}$ are iid $Exp(λ)$ and the goal is to test if $H_0:λ≤1$ versus $H_a:λ≥2$. Suppose that the test statistic is $S=\sum_{i=1}^{10}T_i$, and rejection of the null occurs when $S≤7$.  I realize that $T_1...T_{10}$ is a gamma distribution  of $S =Gamma(10, \lambda$), but I am not sure how to use this information to find the p-value for the type 1 error.


This issue that I have is causing an application (MySQL Workbench) to run UNsmoothly.  Basically, after I upgraded MySQL I had problems connecting to a database through SSH.    It was suggested that this issue has to do with Python running version 2.7, but having Workbench rely on Python 3; and it was confirmed by another similar case.  To see more, go .    So I'd like to know if I can have Python 3 running as default.  Let me know if I can give more information that is useful.

If I open Terminal and type in python, I see the version is 2.7.4. How do I get python 3.4? And do I need IDLE if I have sublime text?


I want to remove 'File ownership' from every folder in the red circle, so I uncheck it, but it appears again when I reopen explorer.

I am trying to remove the file ownership tab in Windows 10 File Explorer. I have unchecked this option in the View pane but after navigating back to the folder or any other folder it comes right back. Is there a registry hack that can be applied to permanently remove this tab? This is a domain joined machine however and File ownership may be re-appearing due to domain settings that need to be edited local using either gpedit or regedit. Administrator access is held on this machine also.  Similar issue:


So according to me in this situation there are two forces acting on A at the moment, one is the reactive force of 70 N by newton's third law and the other is the force of 60 N exerted by B. Now don't you think the tension should be the sum of the two pulling forces experienced by A (i.e. 70+60=130 N)...Please tell me where my thinking process is going wrong.

The tension of a rope in a tug of war with unequal forces is equal to the least force on the rope. Am I right? (If group A pulls the wire with 20 newton leftwards and the group B pulls with 30 newton. I expect that the tension is 20 newton.)   But the tension on the rope pulling a mass vertically upward is said to be equal to $mg+ma$.( where $m$ is the mass of the object being pulled, $a$ is the acceleration of the object)  How come the same situations bearing different answers?


How to show that $$(\mathbf{p} \cdot \mathbf{q})^2 + \|\mathbf{p} \times \mathbf{q}\|^2 = \|\mathbf{p}\|^2\|\mathbf{q}\|^2$$ for vectors $\mathbf{p}, \mathbf{q} \in \mathbb{R}$.

I need to prove that, for two linearly independent vectors $\mathbf{a},\mathbf{b}\in\mathbb{R}^3$, $$(\mathbf{a} · \mathbf{a}) (\mathbf{b} · \mathbf{b}) - (\mathbf{a} · \mathbf{b})(\mathbf{a} · \mathbf{b}) = (\mathbf{a} \times \mathbf{b})·(\mathbf{a} \times \mathbf{b})$$ Could someone give me a demonstration of this identity? Or a hint to prove it?


I was taught that small numbers should be written with letters and not numerals. For example "5" would be "five". I've heard conflicting rules and am wondering what the largest number that should be spelt out and not written with digits is? Is it really a matter of opinion or is there a general consensus?  Also, when writing ordinal numbers what is the largest that should be written as opposed to spelt? For example 1,000th vs one-thousandth.

The junction has a stop sign on each of the four entrances.   The junction has a stop sign on each of the 4 entrances.   The first is preferred, for some reason, by many English texts. Why? I haven't seen this phenomenon in other languages.


When I use the command prompt and type ./myprogram it executes just fine, but when I try to click on the executable in nautilus it just opens the text editor. I turned on the executing permissions in the properties window but still no good. Any idea's what my issue is.  Running Ubuntu 20.04 recently upgraded

When I double-click on a script in Nautilus to run it, the script just opens in my text editor with no option to run it. Using Nautilus, how do I run executable text files and/or scripts?


I'm replicating  for my PhD, which says that they are using deep learning to predict stock returns. So the inputs are (mostly) continuous variables that can be negative and positive. Outputs are stock returns which can be [-1, inf). The paper is rather vague in their methodology but mentioned that they are using ReLU for their hidden layers and linear activation for output. So far I haven't had any luck getting anywhere near reasonable results which led me to question every parameter in my network. So my question is, how does ReLU work when expected outputs can be negative?

I'm trying to use an api with a feedforward neural network for time series forecasting.  For dense aggregate data it works fine, but for sparse data it sometimes forecasts negative values, even though my historical data has only positive values.   The source code is very dense, and I might be missing a line or two, but as far as I can tell, the input layers and the hidden layers are all ReLU nodes.   Assuming I am correct, how can a network with only ReLU layers lead to negative values, especially if none of the training data has negative values?


I have a spring boot application with maven.  I need to use an external jar say "tp.jar". I have used the method of system scope to do the same but seems it has been deprecated. Is there any better alternative which doesn't involve running maven commands to do the same. I found some solutions here   But the posts are pretty old was wondering if any new solution and convenient solution has been found.

Maven 2 is driving me crazy during the experimentation / quick and dirty mock-up phase of development. I have a pom.xml file that defines the dependencies for the web-app framework I want to use, and I can quickly generate starter projects from that file. However, sometimes I want to link to a 3rd party library that doesn't already have a pom.xml file defined, so rather than create the pom.xml file for the 3rd party lib by hand and install it, and add the dependency to my pom.xml, I would just like to tell Maven: "In addition to my defined dependencies, include any jars that are in /lib too." It seems like this ought to be simple, but if it is, I am missing something. Any pointers on how to do this are greatly appreciated. Short of that, if there is a simple way to point maven to a /lib directory and easily create a pom.xml with all the enclosed jars mapped to a single dependency which I could then name / install and link to in one fell swoop would also suffice.


Suppose we have a real matrix $K$ which is a gram matrix of $X$, $K = X^TX$, for some unknown $X$. In this case, would $X$ be unique so that we may have a function $$ f(K) = X? $$

I'm sure that I knew how to do this once many moons ago and that it's really simple.  I have a matrix $ X $ which is defined as:  $$ X = A {A}^{T}  $$  How do I find $ A $ given $ X $?


So, I was in my grade 7 class and we studied about radiation. The teacher was saying radiation is when heat is transferred without any molecules being involved, like the sun. But in another post online someone else had said radiation is when heat is transferred with the heat source being hotter than it's enviroment, like an oven or a fire.      Which is true?

Assume that by some mysterious(at the lack of a better word) way I was able to make a bonfire on the moon and was able to sit next to it without a space suit.  I will not be able to feel the heat form the fire as a result of convection as there is no atmosphere   Now my question is will I be able to feel the heat from the fire as a result of radiation? As far as I know a wood fire does not produce electromagnetic waves or does it?  In short what is thermal radiation?


I've made a 2-module project where one module is completely denoted to a library that I've made and I'm accessing that library from the other module(which contains the MainActivity.java) of the project. Now I want to push only my library to the GitHub so that anyone can use it for their need. I know how to push the entire project to GitHub but How can I extract the library ( module ) from the project and push only that. Thanks in Advance!

I have a  repository which contains a number of subdirectories. Now I have found that one of the subdirectories is unrelated to the other and should be detached to a separate repository.  How can I do this while keeping the history of the files within the subdirectory?  I guess I could make a clone and remove the unwanted parts of each clone, but I suppose this would give me the complete tree when checking out an older revision etc. This might be acceptable, but I would prefer to be able to pretend that the two repositories doesn't have a shared history.  Just to make it clear, I have the following structure:  XYZ/     .git/     XY1/     ABC/     XY2/   But I would like this instead:  XYZ/     .git/     XY1/     XY2/ ABC/     .git/     ABC/


My question is, whether there are any custom rom's available which can be installed on any device or the rom's are just intended for a specific device. I always read that like custom rom for galaxy note 3, for s4 like that.. are there any roms available which can be installed on any device... if not, can any one explain why we need to design rom's for a specific model.

I am used to install and remove various operating systems in my PCs, even having several at a time.  Usually, to install a new OS means:   Burn the ISO to a CD/DVD/USB. Insert it. Boot. (Maybe you have to tweak a bit the BIOS first).   The only difference between PCs is its CPU architecture: x86, x86_64, arm, etc. Depending on that, you have to download one ISO or another. But I never have to worry about which graphic card, mouse, keyboard, screen, network card, etc. it has. The install wizard automatically detects that and installs the corresponding drivers. Sometimes, if they are not bundled, the installer also downloads them. Anyway, the key point here is that the ISO is always the same.  Now, many mobile OS come out: Ubuntu, Tizen, Firefox OS, the omnipresent Android, and why not any Linux ARM distro out there!. Sadly I have a random chinese mobile, that surely will never get official support in any platform, and I will never be able to test them.  But... Are not today's phones just tiny ARM PCs? Why is installation that different? Why do I always need to have a precompiled monolithic ROM specific for my phone model? Why not just a single "ISO" per OS for any phone that detects and installs automatically the needed drivers, just like always has been in the PC market?  Note: I understand the problem with privative drivers, but I remember Debian asking me for those when there were no libre alternatives at installation, and I could install them then or later. I suppose that workaround could be used in those cases too. Correct me if I'm wrong.


I forgot to put the rest of the ham we ate for dinner in the fridge last night and didn't realize it until this morning. Heat wasn't on but it was probably around 57-60 degrees overnight. If I pressure cook the leftover ham with some beans, how big a chance would I be taking in eating it? I know pressure cooking should kill the bacteria, but I don't know how many toxins would have already been produced.  Just the let you know where I'm coming from, we typically eat things in our house that others would prob throw out for safety's sake (foods past their dates or left out a little longer than they should have been).  Apparently my question is too close to other questions. I would say the difference lies in two parts. One, I am planning to pressure cook the food in question which should kill the bacteria in the food. So my main question is about the toxins produced by the bacteria. And two, I am asking for an opinion, not a reiteration of food safety guidelines. As stated, our family often breaks food safety guidelines when we do not see a significant chance of it actually causing us problems.

If I left food out of the refrigerator for some period of time, is it still safe? If I left it out too long, can I salvage it by cooking it more?


Why cannot a C++ library with Generics (ie. templates) be closed source ?  Suppose I want to make an object file for my library and provide only the implementation and the header file, what should i do ?  I understand that at the time of linking the compiler will be confused about the data type and hence this is not possible.   So isn't there any work-around that C++ provides for people who don't want to make their libraries open-source ?  How do other languages(Java) manage this ?

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


~$ cd downloads bash: cd: downloads: No such file or directory ~$ ls Desktop    Downloads         Music     Public     Videos Documents  examples.desktop  Pictures  Templates ~$ cd downloads bash: cd: downloads: No such file or directory   Why is the directory not being changed?

How do I change directories to downloads, from the home folder, in the latest version Ubuntu 12.10? I tried cd /downloads, but it gave an error saying that there is no such directory.


I'm studying interface and got into something weird interface stuff where the rule is we must implement an interface method public. But not in this example.  I've tried what I learned in my experience and the answer I've found really breaks the rule.      public interface DropV1     {         void Ship();     }      public interface DropV2     {         void Ship();     }     //accepted by the editor     class DropShipping : DropV1, DropV2     {         void DropV1.Ship() { }         void DropV2.Ship() { }      }   I was expecting in 1billion percent of the implementation would be:   public void DropV1.Ship() public void DropV2.Ship()   Why it is like that?

What are the differences in implementing interfaces implicitly and explicitly in C#?  When should you use implicit and when should you use explicit?  Are there any pros and/or cons to one or the other?    Microsoft's official guidelines (from first edition ) states that using explicit implementations are not recommended, since it gives the code unexpected behaviour.  I think this guideline is very valid in a pre-IoC-time, when you don't pass things around as interfaces.  Could anyone touch on that aspect as well?


I am trying to install ROS Melodic on Ubuntu 19.04 and having done all the appropriate preparation I am using the command: sudo apt install ros-melodic-desktop-full  and I get the following error: Unable to locate package ros-melodic-desktop-full  Any thoughts about what I should do?

Which Robot operating System (ROS) distribution can be installed on Beagle Bone Black with Ubuntu 16.04?


for import mysql database give me this error :  $ `mysql -u user -p password zxc_db < zxc.sql` ERROR 1153 (08S01) at line 96: Got a packet bigger than 'max_allowed_packet' bytes   Please give me a best solution to solve it ? tanx .

I'm importing a MySQL dump and getting the following error.  $ mysql foo < foo.sql  ERROR 1153 (08S01) at line 96: Got a packet bigger than 'max_allowed_packet' bytes   Apparently there are attachments in the database, which makes for very large inserts.    This is on my local machine, a Mac with MySQL 5 installed from the MySQL package.  Where do I change max_allowed_packet to be able to import the dump?    Is there anything else I should set?    Just running mysql --max_allowed_packet=32M … resulted in the same error.


I have a Joomla site where I use this module  and I have the problem that when responding to a user it often ends in junk/spam folders. I've looked at the code and this module is using JFactory::getMailer(); and it is only using the addRecipient(), setSender(), setSubject(), setBody() and I have set the isHTML() to true in the JFactory object.  I have tested my mail with this site:  and got this result:   I'm don't really understand how email work and what parts are important, but I think this is probably the problem:  DomainKeys check details: ----------------------------------------------------------  Result: neutral (message not signed) ID(s) verified: header.From=example@example.com Selector= domain= DomainKeys DNS Record=   Could someone tell me how to send a email the right way and I want to be able to promise to my client that their mails won't end in theirs clients spam/junk folders.  If it is easier to move away from JFactory to something else I am willing to do this also :)

This is a tricky one and I've always relied on techniques, such as permission-based emails (i.e. only sending to people you have permission to send to) and not using blatantly spamish terminology.  Of late, some of the emails I send out programmatically have started being shuffled into people's spam folder automatically and I'm wondering what I can do about it.  This is despite the fact that these particular emails are not ones that humans would mark as spam, specifically, they are emails that contain license keys that people have paid good money for, so I don't think they're going to consider them spam  I figure this is a big topic in which I am essentially an ignorant simpleton.


I need to prove:  $LCM(a,GCD(b,c))=GCD(LCM(a,b), LCM(a,c))$ However, I need to prove it without min and max.

is $\operatorname{lcm}(a,\gcd(b,c))=\gcd(\operatorname{lcm}(a,b),\operatorname{lcm}(a,c))$? it should be true for positive integers because the commutative algebra by Atiyah says addition, intersection on the ideals of $\mathbb{Z}$ is distributive. how should i solve it?


I want to prove that, if $X$ is a real valued random variable with finite expected value, then:   $$\mathbb{E}[X]=\displaystyle \int_{0}^{\infty} \mathbf{P}(X \geq t)dt - \int_{-\infty}^{0} \mathbf{P} (X \leq t)dt.$$   We have that $$\mathbb{E}[X] = \mathbb {E} (X^{+}) - \mathbb{E} (X^{-})$$ and I know how to prove that if $Y$ is  a non-negative r.v., then its expected value can be expressed as $$\mathbb{E}[Y]=\displaystyle \int_{0}^{\infty} \mathbf{P}(Y \geq t)dt.$$   I am having trouble expressing the second integral as the expectation of the negative part, $X^{-}$.   Can anyone help me with that?

I'm interested in the following question:     Given only the cumulative distribution function $F(x)$ of a mixed random variable $X$, how does one proceed to calculate the expectation $E(X)$?   By mixed I mean a variable which is neither continuous nor discrete. For example, the cdf could be:$$F(x)=\begin{cases}0&,x\in(-\infty,-1)\\ \frac13+\frac x3&,x\in [-1,0)\\ \frac12+\frac x3&,x\in [0,1)\\ 1&,x\in [1,+\infty) \end{cases},$$ though it could be more complicated. Note that it isn't piecewise constant, nor continuous (there's a jump at $x=0$ for example).  If $X$ was absolutely continuous, I guess the simplest approach would be to take the derivative of $F$ to get the density and then integrate for the expectation.  If it was discrete, one could easily find the distribution law from the cdf itself, by seeing the size and location of jumps and then take the weighted sum for expectation.  However, I don't have an idea how to go about calculating the expectation of a mixed variable.  I should note that I'm not looking for the solution for the above example specifically, but a general method for solving the question at the top of the post.


Is there explicit formula for the expression $1^n + 2^n + \dotsc + k^n\,$?  I know that for $n=1$ the explicit formula becomes $S=k(k+1)/2$ and for $n=3$ the formula becomes $S^2$. But what about general $n$?  I know there is a way using the Taylor expansion of $f(x)=1/(1-x)=1+x+x^2+\dotsc\;$, by differentiating it and then multiplying by $x$ and then differentiating again. Repeating this $n$ times, we get  $$\frac{d}{dx}(x\frac{d}{dx}(\dots x\frac{d}{dx}f(x))\dots )=1+2^nx^n+3^nx^n\dots.$$  Now do the same process but with the function $g(x)=x^{k+1}f(x)$. Then subtract them and we get $1+2^nx^n+\dots k^nx^n$. Because we have the explicit formulas $f(x)$ and $g(x)$ we can find the explicit formula by this process for arbitrary $n$. A big problem is that as $n$ grows, it is going take a lot of time finding the explicit formula. My question is therefore: are there other ways?

Who knows about the summation of this series: $$\sum\limits_{i=1}^{n}i^m $$  where $m$ is constant and $m\in \mathbb{N}$?  thanks


I have the warning message given in the title. I would like to understand and remove it. I found already some answers on this question but I do not understand these answers because of an overload with technical terms. Is it possible to explain this issue with simple words?  P.S. I know what OOP is. I know what is object, class, method, field and instantiation.  P.P.S. If somebody needs my code it is here:  import java.awt.*; import javax.swing.*;   public class HelloWorldSwing extends JFrame {          JTextArea m_resultArea = new JTextArea(6, 30);          //====================================================== constructor         public HelloWorldSwing() {             //... Set initial text, scrolling, and border.             m_resultArea.setText("Enter more text to see scrollbars");             JScrollPane scrollingArea = new JScrollPane(m_resultArea);             scrollingArea.setBorder(BorderFactory.createEmptyBorder(10,5,10,5));              // Get the content pane, set layout, add to center             Container content = this.getContentPane();             content.setLayout(new BorderLayout());             content.add(scrollingArea, BorderLayout.CENTER);             this.pack();         }          public static void createAndViewJFrame() {             JFrame win = new HelloWorldSwing();             win.setTitle("TextAreaDemo");             win.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);             win.setVisible(true);         }          //============================================================= main         public static void main(String[] args) {             SwingUtilities.invokeLater(new Runnable(){                 public void run(){                     createAndViewJFrame();                 }             });         }  }

Eclipse issues warnings when a serialVersionUID is missing.       The serializable class Foo does not declare a static final   serialVersionUID field of type long   What is serialVersionUID and why is it important?  Please show an example where missing serialVersionUID will cause a problem.


I have a Acer netbook with an intel atom which I have recently up graded to 2Gig of Ram.  Will the 64 bit version fo Ubuntu give me more speed and functionality or just bog it down? Thanks.

What is the difference between 32-bit and 64-bit Ubuntu? I've heard the 64-bit platform performs better and can detect more than 4GB of RAM. Also, while some apps haven't ported to 64-bit yet, ia32-libs lets a 64-bit machine run them.  If so, why not promote 64-bit over 32-bit?


It obviously requires single- and multi-variable calculus and linear algebra, but what else? And where do you suggest to get that background from?this isn't a duplicate because I'm for the math needed precisely and only for the feynman lectures.

What are the best textbooks to read for the mathematical background you need for modern physics, such as, string theory?  Some subjects off the top of my head that probably need covering:   Differential geometry, Manifolds, etc. Lie groups, Lie algebras and their representation theory. Algebraic topology.


I am looking to get into hobbyist, "casual" electronics work, and I am concerned about which type of solder I should look at - I don't have any current plans for going to PCBs, just mainly breadboard and loose wire types of applications. I have some questions:  I am used to a thicker solder (maybe 1.5-2mm) from courses in school, but everywhere seems to recommend thinner for tighter areas. However, I am starting with just loose wires and terminals on components, so is thickness that vital? Would the thicker solder still cause issues? On Digikey (mainly used right now to get an idea, to figure out model numbers and such,) they have Kester Solder brand wire, two of which are 24-6337-8814 and 24-6337-7614. The first is part of the 245 series, while the second is part of the 275 series. Would either of these be sufficient for what I have planned? Is any cleaning required for my chosen application, namely wire to wire and wire to terminal on motors and sensors and such? In the future, if I DO expand into PCBs and maybe even surface mount, would the 8814 model number above, as an example, still work fine without needing to clean the board? I am trying to minimize the hassle of this, so I am trying to find a solution which is most streamlined.

How do I know when to use lead, flux-core, lead-free, or any other kind of solder out there? Do you have any tips on solder gauge for specific applications?


Let's say initially from an observer's point of view, a spaceship in perfect vacuum is at rest. From the observer's point of view, once the ship starts accelerating what is causing the ship from accelerating past the speed of light? What is physically causing this resistance to acceleration as the ships velocity and therefore its relativistic mass (as opposed to its actual physical mass) increases? On earth terminal velocity exists solely because we have an atmosphere. What is physically responsible for the terminal velocity of vacuum?  I understand that this question has been asked here many times and I have read quite of few of them. All the answers I found were mathematically driven and answers the question quite satisfactorily but from my understanding, none tackled the actual physical mechanism behind this phenomenon.

I know that as the velocity increases, the mass of the object also increases so it becomes tougher and tougher to move the object which ultimately leads to a requirement of infinite energy to accelerate an object to the speed of light. But I have a doubt.  As far as I know only the observable mass (Relativistic mass) increases but not the Proper Mass or Intrinsic Mass, right? The actual mass of the object will remain the same. So if the actual mass ($m_0)$ remains the same and only the observable mass increases, why is more and more energy required? I know that even if the object exceeds the speed of light, we will not be able to say that it is moving faster than the speed of light but is it possible to make it move faster than light?  If rest mass does not change with $v$ then why is infinite energy required to accelerate an object to the speed of light?  I quote Igor Ivanov (a stackexchange user from this question ) to give an insight into my question.     The mass (the true mass which physicists actually deal with when they calculate something concerning relativistic particles) does not change with velocity. The mass (the true mass!) is an intrinsic property of a body, and it does not depends on the observer's frame of reference. I strongly suggest to  popular article by Lev Okun, where he calls the concept of relativistic mass a "pedagogical virus".   EDIT  After reading the answers I have a doubt.  SO can I say that only the overall energy of the system increases while the mass remains constant? But then if mass remains constant, then why is more and more energy gradually required? I mean there should be a reason for that requirement of infinite energy.


I'm wondering if there is any difference between passing an object reference as a parameter or as an argument. Is the code below equivalent? Is there situations where I should use one or the other?   void foo(Object &object){     object.update() }   Object object  foo(object)   VS  void bar(Object *object){      object->update() }  Object object bar(&object)

I know references are syntactic sugar, so code is easier to read and write. But what is the difference between a pointer variable and a reference variable?


Hi i have the samsung ativ book 9 lite I just installed ubuntu 13.10 after removing windows 8.1 and have gotten the error all boot options are tried, after the installation After having a look around the forum ihave made sure that I have disabled secure boot and fast boot However I think the problem may be that i have been unable to disable the framebuffer. I am getting no F6 option when I am trying to install ubuntu that will allow me to select nomodeset.  I am a bit of a noob and do not understand what the grub prompt way is? Is there any way I can fix the error : "all boot options are tried press  key to recover ...  " I would be extremely appreciative if you could give me a detailed answer. Thanks and looking forward.

So yesterday I went ahead and bought the Samsung NP915S3G (ATIV Book 9 Lite) and installed Tahr in hope that everything would go smoothly. For the most part it; everything necessary seems to work off the bat. Unfortunately when I restart it, nothing boots. I erased Windows so that's obviously not an option, but the computer seems pretty dead certain that there's nothing there to boot. I think this might have a lot to do with UEFI which is a field I have next to no experience with. There also seems to be a fat32 partition that consistently reappears when I delete it.   Any help is much appreciated, thanks.


How can I prove that for each positive integer $n$ the number $2^{2n}-1$ is divisible by $3$? $3$?

I am confused as to how to solve this question.  For the Base case $n=1$, $(2^{2(1)} - 1)\,/\, 3 = 1$, base case holds  My induction hypothesis is: Assume $2^{2k} -1$ is divisible by $3$ when $k$ is a positive integer  So, $2^{2k} -1 = 3m$   $2^{2k} = 3m+1$  after this, I'm not quite sure where to go.  Can anyone provide any hints?


This was on in the UK in the 80's on Saturday mornings. Specifically around 1984-5 Some more details: I think there may have been three good characters - one of them a dog? The baddies were white coloured like storm troopers except they all had Darth Vader shaped helmets and I think the lead baddie had black armour. The animation style was possibly french, not particularly high budget, mostly flat 2D. I can't remember much else except on one episode to get into the enemy base they knocked on the door and there was an exchange along the lines of:  What do you want? To take over the base How many of you are there? Two That's not enough to take over the base I'm going come and check you out .... What do you want? To take over the base How many of you are there? Three That's not enough to take over the base I'm going come and check you out  ...and so on until they had enough to take over the base. Edit: Thanks to @HorusKol  is the exact scene I remembered

I am trying to identify an animated TV show for children that I watched as a child (younger than 6) between 1980 and 1986 in the UK.  The opening of each episode set the back story for the central character - a little girl - who accidentally ends up on a rocket ship which is launched to another world.  She possibly might be accompanied by either her dog or a cuddly toy, I am not sure - I vaguely remember it being her dog that escaped and got her trapped in the rocket while she chased after it.  The natives of the planet she lands on are generally friendly, and again vaguely I remember them having circular heads split into two (similar to the South Park baby).  The environment is jungle like.


Here is my MWE:  \documentclass{article}  \begin{document}  \begin{center} \begin{minipage}{8cm} {\Huge  The interline spaces are too small between some of the lines. Why so? This is the continuation of the text.} \end{minipage} \end{center}  \end{document}

If I type something like this:  {\itshape\LARGE   Dunt venim dolorerosto do odit   ametum vulla conum dolore   conulput in vero od el   Dunt venim dolorerosto do odit   ametum vulla conum dolore   conulput in vero od el }   it results in a block of 4 lines with narrow spacing between the 1st and 2nd line and between the 3rd and 4th line. Line spacing between the 2nd and 3rd line is normal.  I can't fully explaing it to myself so I am looking for a short description for this behaviour. I know for example that with a \par at the end of the text (inside the group), the calculation would correct. But I have no idea why...


Is there a way to make a macro within a LaTeX document, which would enable or disable a comment block?  I do this sort of thing in C and C++, but am not sure about LaTeX.  For example, near the top of the document I would like some sort of line(s) which have a 0 or a 1.  I would change between the 0 and 1 at my discretion.  If 0, then my later portion would look like:  \begin{comment} \begin{figure}[ht]     \centering     \includegraphics[width=0.5\textwidth]{BLARG.jpg}     \caption{\label{fig:}HONK.} \end{figure} \FloatBarrier \end{comment}   But if the macro number were 1, it would disable the comment function, so it would effectively leave the document with:  \begin{figure}[ht]     \centering     \includegraphics[width=0.5\textwidth]{BLARG.jpg}     \caption{\label{fig:}HONK.} \end{figure} \FloatBarrier   Is this possible?

To "comment out" a line, I need to insert a % at the beginning of the line (so that the line will not be compiled). Is there a way to comment out a large section without having to manually place % in front of each line?


So I'm scanning through a directory and want to test if each element of the directory is a directory:  FILES=$PWD/*  for f in $FILES  do   if [ $f is a directory ]; then #Correct conditional needed here     echo "Dir: $f"   fi         done   What method/function do I use to test if $f is a directory?

What command can be used to check if a directory exists or not, within a Bash shell script?


Light has momentum given by $E = pc$, which is derived from $E^2 =(m_0c^2)^2+(pc)^2$, where $m_0$ is set to zero. However I thought in this equation $p$ is defined as $p=\gamma m_0v$, which means it would also be zero if there was no rest mass. It seems like $E=pc$ is a postulate that happens to be true but isn't backed up by theory. Is there a more rigorous derivation of light's momentum? Edited out $\gamma$

As an explanation of why a large gravitational field (such as a black hole) can bend light, I have heard that light has momentum. This is given as a solution to the problem of only massive objects being affected by gravity. However, momentum is the product of mass and velocity, so, by this definition, massless photons cannot have momentum.  How can photons have momentum?   How is this momentum defined (equations)?


How can I throw an exception using a variable within the exception name during the throw new statement?  I have a list of exceptions that I'm trying to throw depending on whether or not one variable is zero in length. The name of the exception, for example, contains the variable name.  Works  if (X.length === 0) {     throw new NoXException(); }  if (Y.length === 0) {     throw new NoYException(); }  if (Z.length === 0) {     throw new NoZException(); }   Doesn't work  var X = 'Oh'; var Y = 'Hai'; var Z = '';  // Contains "NoZException" var ex = "No" + ((X.length != 0) ? ((Y.length != 0) ? 'Z' : 'Y') : 'X') + "Exception";  // Throwing ex gives an error throw new ex();

I have the name of a function in JavaScript as a string. How do I convert that into a function pointer so I can call it later?  Depending on the circumstances, I may need to pass various arguments into the method too.  Some of the functions may take the form of namespace.namespace.function(args[...]).


Show that if $f : [a, b] \to \mathbb{R}$ is non-negative and continuous on $[a, b]$ and  $$\int_{a}^{b} f(x)dx = 0$$ then  $f(x)=0$, for all $x ∈ [a, b]$.  I'm having difficulties in proving things to do with integrals, how do I start this?

If $f$ is continuous, nonnegative on $[a, b]$, show that $\int_{a}^{b} f(x) dx = 0$ iff $f(x) = 0$  "$\Rightarrow$" Assume by contradiction that $f(x) \neq 0$ for some $x_0 \in [a, b]$. Without loss of generality, assume that $f(x_0) > 0$. Since $f$ is continuous, $\exists \delta > 0$ such that $f(x) > 0,  \forall x \in (x_0 - \delta, x_0 + \delta)$. Since $f$ is continuous on $[a, b]$, then it is Riemann integrable. Therefore $\int_{a}^{b} f(x) dx = \sup L(f, p)$ for some partition $p$. Now what I want to do is to show that the lower sum, $L(f, p) > 0$, in that case its supremum is $>0$, and that contradicts the condition that $\int_{a}^{b} f(x) dx = 0$. However, I don't know how to articulate it.  "$\Leftarrow$" If $f(x) = 0, \forall x \in [a, b]$, then $\int_{a}^{b} f(x) dx = \int_{a}^{b} 0 dx = 0$


I have this form and when upload it say undefined index 'banner'. I was able to get other input forms but the "file" is not working, I want something as simple as that javascript code.  <form id="" enctype="multipart/form-data" method="post" action="#" class="courses_create_form"> <input name="banner" type="file" class="form-control" id="banner"> <input name="banner" type="submit" class="form-control" value="upload">  </form>   Here is the jquery script handling it...  <script>      $(document).on('submit', '.courses_create_form', function(e) {     e.preventDefault();      var banner = $("#banner").val();       $.post("uploads/process.php",         {              banner:banner,             today: 'now'          },             function(response,status,Err){             if(status=='error'){ // error             }else if(status=='success'){                 $(".notify").html(response);             }         }); });  </script>       Here is the process.php   <? // process.php echo $_FILES['banner']['name']; ?>

I would like to upload a file asynchronously with jQuery.     $(document).ready(function () {     $("#uploadbutton").click(function () {         var filename = $("#file").val();          $.ajax({             type: "POST",             url: "addFile.do",             enctype: 'multipart/form-data',             data: {                 file: filename             },             success: function () {                 alert("Data Uploaded: ");             }         });     }); });  File <input type="file" id="file" name="file" size="10"/> <input id="uploadbutton" type="button" value="Upload"/>     Instead of the file being uploaded, I am only getting the filename. What can I do to fix this problem?


I haven't found any information about a grammar rule that describes the possibility of somebody/something in negative sentences. My example is: "Something is not right." Please give me a reference to the rules explaining why we should use 'something' but not 'anything' in this sentence. Thank you in advance! UPD. Checked but not found on:

"They disregard social conventions without being conscious that they are doing anything extraordinary."  Is it also fine（or more appropriate） to replace "anything" with "something" in the sentence above.?  Whole paragraph: True eccentrics never deliberately set out todraw attention to themselves. They disregard social conventions without being conscious that they are doing anything extraordinary. This invariably wins them the love and respect of others, for they add colour to the dull routine of everyday life.


I have a Lenovo B50-70 laptop with 1T HDD, 4gig Ram. Hoping to find the right release/version of Ubuntu. Long on Unix, short (zero) on Ubuntu experience, please be gentle. Any advice would be an advantage.  Thanks

For a given hardware configuration, how do I find out if Ubuntu will run on it? What considerations should I take into account when choosing an Ubuntu version and  such as:    with a lighter desktop than the usual Gnome and Unity  with the even lighter LXDE desktop   Obviously Ubuntu does not run on some processor architectures. So how do I go about choosing the right version and derivate. How can I find out the minmal system requirements?


I have downloaded 3 new games: Idle Slayer, Shadow Hunter and Archero. They are all small games that don't require that much space or graphic processing. I was able to play them for 3 days with no issues whatsoever but out of nowhere they started to crash. I open them, it shows the title screen for a second and it closes entirely on it's own. This problem doesn't happen with any other games or apps I previously had installed. I have a Huawei Mate 20 Lite, it has 25,40 GB of free space out of 64 GB and 4 GB of RAM. I clean up space weekly. I cleared the caches of all the previously mentioned games and it still kept happenning. So I uninstalled Archero and Idle Slayer because I knew I had them connected to Google Games so I wouldn't lose progress. When I reinstalled them they worked but when I closed them and tried to open them up again, they had the same problem of crashing and it's been that way ever since. My phone's not old, it's been 1 and a half years since I've bought it and I haven't installed from nor visited sketchy websites. My software is up to date and it's not a problem of internet, I've checked that angle too. Can someone please shed light on what I can do to resolve this issue? I quite enjoy these games and I worry it'll affect future installments to my phone. Thank you from advance.

Recently, apps that are fine an hour ago now crash when I open them. The crash report message seems to be caused by a null pointer exception (NPE) in com.google.android.trichromelibrary. Apps affected for me:  Gmail Dashlane  Is it just me, or is there actually something wrong with the library? How can I fix these affected apps? Crash report: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** Build fingerprint: 'Xiaomi/polaris/polaris:10/QKQ1.190828.002/20.9.4:user/release-keys' Revision: '0' ABI: 'arm64' Timestamp: ... pid: ..., tid: ..., name: com.dashlane >>> com.dashlane <<< uid: ... signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 Cause: null pointer dereference          ...  backtrace:     #00 pc 00000000038621f0 /data/app/ com.google.android.trichromelibrary 438909034-YaxP9ttrIDcQBfleP5vm7Q==/base.apk! libmonochrome_64.so (offset 0x646000) (BuildId: ... )  (click  for the screenshot of the bug report)


We roll a dice until we get a $5$. What is the expected value of the smallest dice rolled?  I am looking for a thought process/an idea. Seeing a full solution would be great as well.  Calculating the probability of obtaining $1,\dots, 5$ is what I seem to struggle with. I thought it is simply a Bernoulli distribution, namely that the probability of getting $k$ in the first $i$ throws is simply $1-\left (\frac{5}{6}\right)^{i}$. Intuitively, the more I throw, the more likely I am to get a $1$ or $2$ so these numbers should have a greater weight than $3,4,5$. I can't seem to express this mathematically though.

I am struggling to work out a simple way to answer this, and a rationale behind this approach using tail sum (as I do not understand):  $$E\left( x\right) =\sum ^{5}_{k=1}P\left( x\geq k\right) =\dfrac {1}{6}\sum ^{5}_{k=1}\left( \sum ^{\infty }_{i=0}\left( \dfrac {k}{6}\right) ^{i}\right)  = \frac{137}{60}.$$  Does this always hold?  $$E\left( x\right)=\sum ^{n}_{k=1}kP\left( x= k\right)  =\sum ^{n}_{k=1}P\left( x\geq k\right)$$  I have never seen this formula, but working through it I understand.  EDIT: I can get the right answer with a long winded method, calculating each probability separately, which I believe the Tails sum speeds up:  This is my long winded approach. $$E\left( X_{\min }\right) = 5P\left( x= 5\right) +\ldots +1P(x=1)$$  $$=5\left( \dfrac {1}{6}\sum ^{\infty }_{i=0}\left( \dfrac {1}{6}\right) ^{i}\right) +4\left( \dfrac {1}{6}\sum ^{\infty }_{i=1}\left( \dfrac {2}{6}\right) ^{i}- \dfrac {1}{6}\sum ^{\infty }_{i=1}\left( \dfrac {1}{6}\right) ^{i}\right)+\ldots$$ $$+1\left( \dfrac {1}{6}\sum ^{\infty }_{i=1}\left( \dfrac {5}{6}\right) ^{i}- \dfrac {1}{6}\sum ^{\infty }_{i=1}\left( \dfrac {4}{6}\right) ^{i}\right),$$  where $\dfrac {1}{6}$ represents getting a $5$, so the first sum is all the possibilities of getting repeated $6$s and then a $5$, or just rolling a $5$. The next sum is all the possibilities of getting a $4$ or a $6$, then a $5$, minus all the possibilities of just getting a $6$ then a $5$. So it represents all the strings of just $4$s or $6$s before getting a $5$, so all the possibilities of minimum value being a $4$.


I'm trying to remember the title of a short story I read, and of course I don't even remember the author. This is a story about a traveller, a member of some kind of organisation of travellers (almost mystical for some of its members?) who aim to travel always faster, as it seems that this speed makes them go to better places, better countries, some kind of higher existence. There is the legend of a place at the top of all this universe. It is not space travel, everything is happening on Earth, maybe some kind of multiverse even if it is not specifically explained that way from what I remember. The character starts to feel that someone is trying to slow or stop him, so he decides himself to slow his travel to come back to our "level" and goes back to London (not sure about the city) to meet the man who allowed him into this organisation.   At the end the character is in some kind of tree-city, and discovers that the person who was trying to stop him was in fact his contact in London, and that a girl he was suspecting was in fact trying to protect him like some kind of guardian angel. I think that at the end he dies stabbed.  (By the way French is my first language so I'm sorry if I made too many mistakes, and if my corrector allowed too many misspellings, as it is not configured for English.)

It's a story I read in 2 or 3 parts in a Greek sci-fi magazine called 9 around 2004 (give or take a few years), but it may be a bit older than that. This is what I remember (and I hope it's all accurate):   The protagonist used to travel a lot, mainly using high speed media like aircraft. It was established in the story that as he traveled more frequently and with more speed, he would gradually cross over towards (sort of) higher planes of existence (and that everyone in the setting could do the same, although most people simply didn't bother). These higher planes of existence were apparently still Earth, but the environments and the inhabitants were increasingly more alien and life in them was increasingly luxurious. As far as I recall, the protagonist's goal was to reach those higher levels (either for the luxury or for some other reason I can't recall). If he failed to maintain his "speed" for too long, he would fall back to lower planes of existence, with more familiar characteristics and significantly lower quality of life. His wife had died some time ago and her grave was apparently in the lower planes. He did visit her once near the end of the story, before starting to build up "speed" again.   I don't happen to know the original language of the story because what I read was a version translated into Greek.


Searching for a [tag-name], plus some other criteria, results in an ugly tag information box which seems to show HTML tags treated as text, rather than as HTML.  Here's an example:  and look at the tag description box:    With a quick sampling I was unable to reproduce this on other beta sites, but I've also been unable to quickly identify a tag that actually uses the tag name itself within the tag wiki excerpt, which seems very related.

When you search on any of the SE network sites, with a tag (so that a description is shown); it shows the tag info content box, with the highlight-search-term span elements.  For eg. I searched ; ; and the results are as shown:                  Notice the <span class='search-highlight'> boxes around searched tag terms.


How does one randomly sample from a T-distribution in R. From what I've found, the function rt in R doesn't let you specify the mean and standard deviation. For a normal distribution it is simply rnorm(x,mu,sd).  EDIT:  For the t-distribution there is a central and a non-central version. I want to know the difference between the two.  In addition, if I want to specify the mean and standard deviation, does that automatically mean I am dealing with the non-central version of the t-distribution?  I chose to use the t-distribution because the data I am using are rather fat tailed and a t-distribution with a low degrees of freedom seems like a good idea. What other distributions are there for handling fat tailed data? Also it would be great if you can specify the function in R too.

How can we generate t distributed random variables with given mean and covariance in matlab. trnd is a function in matlab but we can get random variable with different degrees of freedom but how to get random variable with given mean and covariance?


I want a figure to fit perfectly inside a slide in beamer. This means that it should scale to the smallest dimension between width and height, maintaining proportions, and allowing space to the rest of the content of the slide.  I wrote my following example using code from   \documentclass{beamer} \usepackage{calc} %code from https://blogs.gnome.org/muelli/2011/04/perfectly-scale-an-image-to-the-rest-of-a-page-with-latex/ \newlength{\textundbildtextheight} \newcommand{\textundbild}[2]{ \settototalheight\textundbildtextheight{\vbox{#1}} #1 \vfill \begin{center} \includegraphics[width=\textwidth,keepaspectratio=true,height=\textheight-\the\textundbildtextheight]{#2} \end{center} \vfill                                                                                } \begin{document} \begin{frame}{Title}   \textundbild{description}{fig.png} \end{frame} \end{document}   However, using this way, the figure still does not fit perfectly.  See that the figure overlaps the navigation bar on the bottom of the page.    How do I automatically scale a figure so it respects the content of the frame?

I want to put a figure in some part of the presentation (beginning, middle or end of the slide). I want the figure to be adjusted to the height of the available space while keeping the aspect ratio intact. How can I do that?  Suppose I have  image to be put in the slides. I have the following minimal example:  \documentclass{beamer}  \usepackage{graphicx} \usepackage[pangram]{blindtext}  \usetheme{Pittsburgh}  \begin{document}  \begin{frame} \frametitle{Something} \blindenumerate[2] \centering  \includegraphics[width=\textwidth,height=\textheight,keepaspectratio]{2000px-If-then-else-control-flow-graph.svg.png} \end{frame}  \begin{frame} \frametitle{Something} \blindenumerate[2] \centering \includegraphics[width=\textwidth,height=.5\textheight,keepaspectratio]{2000px-If-then-else-control-flow-graph.svg.png} \blinddescription[2] \end{frame}  \begin{frame} \frametitle{Something} \blindenumerate[6] \centering \includegraphics[width=\textwidth,height=.5\textheight,keepaspectratio]{2000px-If-then-else-control-flow-graph.svg.png} \blinddescription[2] \end{frame}  \end{document}       I want this figure to be adjusted within the available space automatically without changing the height manually (i.e. .5\textheight). Is it possible?


The book is set in a world where there are tribes that connect across national borders. National borders don't actually mean much. "Tribes" have superseded them. Each tribe has their own set of laws and rules, governing bodies, benefits, maybe even currencies. Does any of this sound familiar to anyone?

The book features multiple parallel story lines:   a poor child accidentally ends up possessing an AI driven book; the voice for the AI is crowdsourced to a woman, who gradually figures out that she's involved in helping out the child; genetic engineering is pervasive, and various factions of society spread viruses into the air as a way to fight wars, communicate, etc... Membership in a subsection of society buys you protection from the viruses; if you're not protected, you can end up severely damaged or otherwise not autonomous; some of the story line features a mysterious religious sect which subsume their consciousness to a collective, which performs some sort mysterious, of massively parallel computation, possibly using its members' brains; they form their habitats under water for cooling purposes.


Title says it all, but to provide some context: the goal here is to design a 12-channels ADC system. Input signals varies between -15 and +15V. The acquisition system will probably be a mid/large arduino, but this is not a constraint.  Constraints:   High input impedance (downscaling through resistor networks is excluded) Small footprint (once 12x count taken into consideration), low part count. Trying to keep this as simple as possible to assemble for a hobbyist Only supplies currently present: +3.3V (microcontroller), +5V (USB charger), +12-14V "automotive", non-regulated. Using an 12-to-1 I2C multiplexer as a first stage is an option, and this could free a lot of space, but this is not my preferred option   Exotic ICs easily sourced from major suppliers are fair game.  Goal is ~20 acquisitions per second, with acquisitions on the various channels as synchronous as possible. Accuracy requirement is low: +/- 50mV (on source) would do, in line with an 10-12bit ADC.  I've tried weird configurations with op-amp in summing configuration, but I'm out of ideas.  Thanks

I am using a PIC micro with a 10bit ADC to take readings from an analog signal with a frequency less than 300 hz. However that analog signal is in the range of -2 V and +2 V. How can I condition the signal to get it into a usable range (assuming the input to the ADC has to be positive) Also I do not have a positive and negative power supply.


I have tried to look it up but I can't seem to phrase it right. why does 5.6 - 2.2 = 3.3999999999999995 in Python 3? Sure I can get around this problem with the round() built in function, but I was struck to see this behaviour 5.6 - 2.2  I am using Python version 3.7.3

Consider the following code:   0.1 + 0.2 == 0.3  ->  false   0.1 + 0.2         ->  0.30000000000000004   Why do these inaccuracies happen?


Prove that if two homogeneous systems of linear equations in two unknowns have the same solutions, then they are equivalent.  *Two systems of linear equations are $\textit{equivalent}$ if each equation in each system is a linear combination of the equations in the other system.  $\textbf{Proof}.$ Let $$a_{11}x+ a_{12}y=0$$ $$a_{21}x+ a_{22}y=0$$ be a homogeneous system of linear equations where $[x,y]$ is a solution. In addition, let $$b_{11}x+ b_{12}y=0$$ $$b_{21}x+ b_{22}y=0$$ be a homogeneous system of linear equations which has the same solution as the above system.  To show that they are equivalent we have to show that each equation in each system is a linear combination of the equations on the other system. For example,  $$a_{11}x+ a_{12}y= c_1 (b_{11}x+ b_{12}y) + c_2 (b_{21}x+ b_{22}y)$$  where $c_1$ and $c_2$ are weights.  The crucial part here is that the two systems have the same solution so that it is possible to write,  $$(c_1 b_{11} + c_2 b_{21} - a_{11})x + (c_1b_{12} + c_2b_{22} - a_{12})y = 0$$.  Now, if $[x,y] \neq [0,0]$ then it would easily follow that each component $a_{ij}$ is a linear combination of the components $b_{ij}$. But, if $[x,y] = [0,0]$ then e.g. $(c_1 b_{11} + c_2 b_{21} - a_{11}) \neq 0$. How should I proceed to prove this part?

I've just begun to work learn Linear Algebra on my own through Hoffman and Kunze's book and the first problem set already has a question that I can't solve:  Prove that if two homogeneous systems of linear equations in two unknowns have the same solutions, then they are equivalent.  I can't seem to figure out how to prove this without resorting to case work where you account for the cases where one of the coefficients are zero and when both are.  Is there an elegant way to prove in general that when two systems of linear equations have the same solutions, they are equivalent? The converse is obvious enough though.  Definition of equivalence from the text :     Let us say that two systems of linear equations are equivalent if each equation in each system is a linear combination of the equations   in the other system.


Will ubuntu work with 2 in 1 asus ux360ca ultrabook?  Thank you in advance for your help!

I am a bit financially strapped and received a Gateway GT5056 tower. The tower has an AMD dual core 64-bit processor in it. Will Ubuntu 12.04 run on this machine? I will not have any other application other than LibreOffice installed.


The offset voltage of a saturated transistor, makes bjt less attractive as a switch than mosfet. Why? Is there any other logics aside this?

So there are several types of transistors:   BJT JFET MOSFET   Combine all that with the various flavors of each (NPN, PNP, enhancement mode, depletion mode, HEXFET, etc) and you've got a wide array of parts, many of which are capable of accomplishing the same job.  Which type is best suited for which application?  Transistors are used as amplifiers, digital logic switches, variable resistors, power supply switches, path isolation, and the list goes on.  How do I know which type is best suited for which application?  I'm sure there are cases where one is more ideally suited than another.  I admit that there is some amount of subjectivity/overlap here, but I'm certain that there is a general consensus about which category of applications each of the transistor types listed (and those I left off) is best suited for? For example, BJTs are often used for analog transistor amplifiers and MOSFETs are generally used for digital switching.  PS - If this needs to be a Wiki, that's fine if someone would like to convert it for me


Find all real functions $f:\mathbb {R} \to \mathbb {R}$ satisfying the equation     $f(x^2+y.f(x))=x.f(x+y)$   My attempt - Clearly $f(0)=0$  Putting $x^2=x,y.f(x)=1$, we have $f(x+1)=x.f(x+y)$.  Now putting $x=x-1$,we have $f(x)=(x-1)f(x-1+y)$  Putting $x=0$ ,we have $f(0)=-1.f(y-1)$ or $f(y-1)=0$(\since $f(0)=0$)  Finally putting $y=(x+1)$ gives us $f(x)=0$.  This is one of the required functions. But $f(x)=x$ also satisfies the equation.How to achieve this? One of my friends said that the answer $f(x)=x$ could be obtained by using Cauchy theorem but when I searched the internet, I could not find any theorem of Cauchy related to functions .Does any such theorem exist. If yes what is it and how can it be used to solve the functional equation. Is there a way similar to the method of getting the first solution to achieve the second one?

To find all functions $f$ which is a real function from $\Bbb R \to \Bbb R$ satisfying the relation  $$f(x^2 + yf(x)) = xf(x+y)$$  It can be easily seen that the identity function $i.e.$ $f(x)=x$ and $f(x)=0$ (verified just now) satisfies the above relation!! And putting $y=0$ I have got $f(x^2)=xf(x)$.  Help needed to find other functions satisfying the relation.


Thank you ahead of time for your help. I am having issues installing through a USB. At the grub menu, I can choose either "Try Ubuntu without installing" or "Install Ubuntu" and both options lead me to a black screen. I have waited quite some time (15 min) before considering each option a failure. I used two SBs (SanDisk Cruzer U 8 GB and PNY 32 GB) both with an ISO of Ubuntu 17.10 64bit formatted to FAT32 bu Rufus. My system is an 8GB, Core i3 6th gen, with 3 GTX 1080ti and one 960. I am looking to use this build for PyCuda.

I'm trying to install a newer version on a nettop (Acer Aspire Revo) that is running an older version. I have an external DVD drive that appears to be booting up ok, but when I get to the "Install Ubuntu" page, the display just goes off! The DVD drive still wizzes around for a bit and then nothing!  Any ideas?


I would like to simply write a _ in latex. But when I compile it is makes the text afterwards italic and weird, how can I just write an under dash?  For example:  \indent Locate the file in /lbne/app/forest/setup_help.txt   This produces "Locate the file in /lbne/app/forest/setuphelp.txt  And I want it to produce:  "Locate the file in /lbne/app/forest/setup_help.txt

How can I produce the text Word_one_two in LaTeX?  I tried:  Samp\_Dist\_Corr   But, it doesn't quite look right. Also, I want it in the typewriter font, so actually, I'm doing:  \texttt{Samp\_Dist\_Corr}   I find it looks a bit like the underscore is merging in to the bottom of the "D", but maybe it's just because of the typewriter D?


I found there are two ways to understand what AUC stands for but I couldn't get why these two interpretations are equivalent mathematically.   In the first interpretation, AUC is the area under the ROC curve. Picking points from 0 to 1 as threshold and calculate sensitivity and specificity accordingly. When we plot them against each other, we get ROC curve.  The second one is that the AUC of a classifier is equal to the probability that the classifier will rank a randomly chosen positive example higher than a randomly chosen negative example, i.e. P(score(x+)>score(x−)).  (from )

Why is the area under the ROC curve the probability that a classifier will rank a randomly chosen "positive" instance (from the retrieved predictions) higher than a randomly chosen "positive" one (from the original positive class)? How does one prove this statement mathematically using integral, giving the CDFs and PDFs of the true positive and negative class distributions?


Time and again when I search for a topic on Google, Google returns me the results and also prints out some stats like  "Results 1 - 10 of about 8,850,000 for j2me. (0.24 seconds)"  I notice that the seconds taken by Google to serve the results are in fraction of a second range.  How does Google serve pages so fast, what kind of database optimization tricks has it used at its end?

What are the technologies and programming decisions that make Google able to serve a query so fast?   Every time I search something (one of the several times per day) it always amazes me how they serve the results in near or less than 1 second time. What sort of configuration and algorithms could they have in place that accomplishes this?  Side note: It is kind of overwhelming thinking that even if I was to put a desktop application and use it on my machine probably would not be half as fast as Google. Keep on learning I say.    Here are some of the great answers and pointers provided:      Hardware - cluster farms and massive number of cheap computers Caching and Load Balancing


I've been learning how to make planet from this course: . Planets textures are used as materials over the surface of a sphere but I wanted to know. Is it possible to use moving video footage as a material on a sphere?

In blender cycles render engine, how do I put a movie clip on a plane so it displays the video? I want the video to be on the plane if there is a way.


I Have Issue with Commerce cart  or Order Processing I don;t really. One of the my Module Invoke A Hook called "checkout_apigee_apigee_m10n_insufficient_balance_error_message_alter" Inside this I am Creating an Order with An Order Item, after that I am redirect the user to checkout flow step "payment" . Let Me Explain: I am Creating a Module To Redirect the User to Checkout under some Business Scenarios. Before Sending to Checkout. 1.I am Loading Already Exiting Product and 2.Creating a Commerce_Order_Item , Commerce_Order 3.and Then Redirect to Payment Step  For More Details U can see this Code Below:     <?php     $store_id = 1;                          $order_type = 'default';              $store = $entity_manager->getStorage('commerce_store')->load($store_id);     $product=$entity_manager->getStorage('commerce_product')->loadByProperties(['type' => 'custom_apigee']);     $product_object = array_values($product)[0];     $variations = $product_object->getVariations();     $variation_object =  array_values($variations)[0]; // 1.Create Order LIne Item for custom values for order like title and price override      $order_item=OrderItem::create([       'type' => 'default',       'purchased_entity' => $variation_object ,//(string)$product_variation,       'quantity' => 1,       'title' => 'Prepaid' ,//$productVariation->get('title')->value, // Overridden the Title       'unit_price' => new Price($cart_value, 'SAR'),       'overridden_unit_price' => TRUE,     ]);     $order_item->save();         // 2.Creating Order        $user = user_load_by_mail("abac@gmail.com");       $order = Order::create([       'type' => 'default',       'mail' => $user->getEmail(),       'uid' => $user->id(),       'store_id' => $store,       'order_items' => [$orderItem],       'placed' => \Drupal::time()->getCurrentTime(),     ]);     $order->save();         //Redirect the User to Payment Step      $response = new RedirectResponse(Url::fromRoute('commerce_checkout.form',[         'commerce_order' => $order->id(),         'step' => 'payment',       ])->toString());       $response->send();  My Issue : As You can see above the code while I Create a Commerce_order_item I am Overridden the Title of the Commerce Product And The Price . But after Redirecting in to checkout payment step My Title is still not Changed !! But the Price is changed in the checkout . Why it did not changed the Product Title? Hope Someone Can Help thanks Full Code Repo:

I Have Issue with Commerce cart  or Order Processing I don;t really. One of the my Module Invoke A Hook called "checkout_apigee_apigee_m10n_insufficient_balance_error_message_alter" Inside this I am Creating an Order with An Order Item, after that I am redirect the user to checkout flow step "payment" . Let Me Explain: I am Creating a Module To Redirect the User to Checkout under some Business Scenarios. Before Sending to Checkout. I am Loading Already Exiting Product and Creating a Commerce_Order_Item , Commerce_Order and Then Redirect to Payment Step For More Details U can see this Code Below: <?php     $store_id = 1;                       $order_type = 'default';             $store = $entity_manager->getStorage('commerce_store')->load($store_id);     $product=$entity_manager->getStorage('commerce_product')->loadByProperties(['type' => 'custom_apigee']);     $product_object = array_values($product)[0];     $variations = $product_object->getVariations();     $variation_object =  array_values($variations)[0]; // 1.Create Order LIne Item for custom values for order like title and price override     $order_item=OrderItem::create([       'type' => 'default',       'purchased_entity' => $variation_object ,//(string)$product_variation,       'quantity' => 1,       'title' => 'Prepaid' ,//$productVariation->get('title')->value, // Overridden the Title       'unit_price' => new Price($cart_value, 'SAR'),       'overridden_unit_price' => TRUE,     ]);     $order_item->save();         // 2.Creating Order       $user = user_load_by_mail("abac@gmail.com");       $order = Order::create([       'type' => 'default',       'mail' => $user->getEmail(),       'uid' => $user->id(),       'store_id' => $store,       'order_items' => [$orderItem],       'placed' => \Drupal::time()->getCurrentTime(),     ]);     $order->save();      //Redirect the User to Payment Step      $response = new RedirectResponse(Url::fromRoute('commerce_checkout.form',[         'commerce_order' => $order->id(),         'step' => 'payment',       ])->toString());       $response->send();  My Issue : As You can see above the code while I Create a Commerce_order_item. I am Overridden the Title of the Commerce Product And The Price . But after Redirecting in to checkout payment step My Title is still not Changed !! But the Price is changed in the checkout . Why it did not changed the Product Title?   Hope Someone Can Help Full Code Repo:


I am using linux debian 8. I have webmin/virtualmin installed and 1 domain is running over the server. Php version is 7.1. But, i can not run curl on my server. i tried to install curl but it throws below error     E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?   I have tried all below commands which are not working:  sudo apt-get -f install  sudo apt-get update  sudo apt-get clean  sudo apt-get upgrade   sudo apt-get update shows below errors:  W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://packages.sury.org jessie InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B188E2B695BD4743  W: Failed to fetch http://debian.mirrors.ovh.net/debian/dists/jessie-updates/InRelease  Unable to find expected entry 'main/source/Sources' in Release file (Wrong sources.list entry or malformed file)  W: Failed to fetch https://packages.sury.org/php/dists/jessie/InRelease  W: Some index files failed to download. They have been ignored, or old ones used instead.}   my sources.list file content:  # deb cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 NETINST Binary-1 20170116-10:57]/ jessie main  #deb cdrom:[Debian GNU/Linux 8.7.1 _Jessie_ - Official amd64 NETINST Binary-1 20170116-10:57]/ jessie main  deb http://debian.mirrors.ovh.net/debian jessie main deb-src http://debian.mirrors.ovh.net/debian jessie main  deb http://security.debian.org/ jessie/updates main deb-src http://security.debian.org/ jessie/updates main  # jessie-updates, previously known as 'volatile' deb http://debian.mirrors.ovh.net/debian jessie-updates main deb-src http://debian.mirrors.ovh.net/debian jessie-updates main deb http://software.virtualmin.com/vm/6/gpl/apt virtualmin-jessie main deb http://software.virtualmin.com/vm/6/gpl/apt virtualmin-universal main

I got the following output every time I run apt-get update on my Debian 8.   Is there a way to fix this?   Err http://ppa.launchpad.net jessie/main amd64 Packages                         404  Not Found Ign http://ppa.launchpad.net jessie/main Translation-en                 Err http://ppa.launchpad.net jessie/main amd64 Packages                   404  Not Found Ign http://ppa.launchpad.net jessie/main Translation-en                 Fetched 164 kB in 3s (47.0 kB/s)                                        W: Failed to fetch http://ppa.launchpad.net/certbot/certbot/ubuntu/dists/jessie/main/binary-amd64/Packages  404  Not Found  W: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/dists/jessie/main/binary-amd64/Packages  404  Not Found  E: Some index files failed to download. They have been ignored, or old ones used instead.   And this is what I have in /etc/apt/sources.list  deb http://ftp.debian.org/debian/ jessie main deb-src http://ftp.debian.org/debian/ jessie main  deb http://security.debian.org/ jessie/updates main deb-src http://security.debian.org/ jessie/updates main  # jessie-updates, previously known as 'volatile' deb http://ftp.debian.org/debian/ jessie-updates main deb-src http://ftp.debian.org/debian/ jessie-updates main  deb http://ftp.debian.org/debian jessie-backports main   And this is the output of cat /etc/apt/sources.list.d/*  deb http://ppa.launchpad.net/certbot/certbot/ubuntu jessie main # deb-src http://ppa.launchpad.net/certbot/certbot/ubuntu jessie main deb http://ppa.launchpad.net/ondrej/php/ubuntu jessie main # deb-src http://ppa.launchpad.net/ondrej/php/ubuntu jessie main deb http://ppa.launchpad.net/ondrej/php/ubuntu jessie main # deb-src http://ppa.launchpad.net/ondrej/php/ubuntu jessie main deb https://packages.sury.org/php/ jessie main deb https://packages.sury.org/php/ jessie main


If i can find the the value of the expression in lhs. Then i can find the correct option. But i am unable to find the value of expression on lhs which is i^i^i^i^... Upto infinity . How to find that. I tried to convert this to equation i^m=m but i cant proceed further.

Introduction:  Recently I found out that $i^i \approx 0.20788$ has no imaginary part. I got interested and then wanted to know whether there are other $n$ for which $\underbrace {i^{i^{i^{.^{.^{.^{i}}}}}}}_{n \ times}$ has no inaginary part.  So I wrote  (I'm a beginner at python, could be very bad code :) which plots what I call the $i-Tower\ up\ to\ n = 100$. It looks like this:   Question:  Let's use this convention: ${}^ni = \underbrace{i^{i^{i^{.^{.^{.^{i}}}}}}}_{n \ times}$.   Why is the sequence ${}^ni\ |\ n \in \mathbb{N}$ converging?   ${}^{20}i \approx 0.48770 + 0.41217i$   ${}^{60}i \approx 0.437584 + 0.360535i$   ${}^{100}i \approx 0.43829+ 0.36059i$  What I already noticed is that the angle between the lines you can draw from ${}^ni$ over ${}^{n+1}i$ to ${}^{n+2}i$ is $<90°$.   Is that angle equal for all $n$? Is there a way to give the exact value of $x = {}^ni \ $with$\ {n \rightarrow \infty}$? What is the connection between $i$ and $x$. Is $x$ a special complex number that is maybe already known or comes up in other places?


Since I just found out about eevee, which is great, I was thinking whether the VSE could be improved real-time as well.  I've noticed that other video editors take time to load projects, but their playback is responsive and smooth. In Blender VSE, however, I open up my project and, well, enjoy my 1-2 FPS playback for the VSE movie projects.  I'm guessing it's just the way Blender works, right? Everyone of you get low FPS in the VSE? If I render a video and then put it in Blender, then it's really smooth - 50 fps or so, but when dealing with raw non-encoded footage is when the fps drops.  Any tips, advice, thoughts?

What I know about blender's V.S.E. is that it can cache a certain amount of frames before dropping frames(). But, on my Ipod I have video editors like Imovie, and Cute Cut and there is never a delay with the videos, even with different FPS. (maybe because Cute Cut and Imovie have a ?) So what method do they use, or does Blender just use an out-dated version of Caching? Also my Ipod has much smaller RAM so it wouldn't be able to Cache much. Then when I'm finally done making a video why do  have to I render it? With other Video editors, like lightworks or Filmora or Imovie or CuteCut or WindowsMovie maker or pretty much everything else, I export it. So is Blender's VSE outdated- or the opposite, it's so good that normal pc's can't handle it? Which begs the question, why not have a dumbed down version for normal pcs?   Wow, ok that's a lot a questions, sorry, but to narrow it down to one(two) question(s):  How does Blenders VSE work, what makes it so slow?


I recently installed Ubuntu -vesrion 12.04 on my system, and it appears it's a common issue that this Ethernet does not work with Ubuntu. I stumbled upon  solution. But I don't think the very first packages to install exist anymore.   Is there maybe another solution floating around, maybe a more recent solution? I would really love to move away from the Windows platform. I don't know if this makes a difference, but I am dual booting Ubuntu.

I bought a new computer, hoping to dual boot Win 8 and Ubuntu 13.04.  I have successfully installed both OS, but in Ubuntu I have no connection to the internet, even though the ethernet cable is plugged in and internet works perfectly in Win 8. Already in the Ubuntu installer, it says that I have no internet connection.  Things that might be of interest:   I have this motherboard: MSI Z87-G45 Gaming () Internet did not work in Win 8 until I installed the networking drivers that came with the motherboard (Killer Ethernet something) I have tried different installation configurations, tried v. 13.04, 12.04 and 12.10, and tried installing on a separate hard drive. (the fact that the installer says "no internet connection" seems to indicate that the problem has nothing to do with the installation though.) I can't even reach my router at 192.168.0.1.  The motherboard has no wireless capabilities.  If I run the terminal command lspci I get the following output (among other things):       03:00.0 Ethernet controller: Qualcomm Atheros Killer E2200 Gigabit Ethernet Controller (rev 13)   I have spent hours and hours googling, trying many different suggested methods and not quite finding someone who seems to be having the same problem.


Is the phrase "Isn't there no need" considered a double negative and would resolve to a positive? Or is it considered an intensifier?  So would it resolve to "There is a need"? The full sentence that I am looking at says, "So isn't there no need for you to go back?"

Is "not unpleasant" a double negative, and hence bad grammar?  See the first answer (by Ham and Bacon) to , for the basis of this question:     "Did you enjoy the movie?"      "Well, I didn't not enjoy it, but..."   Are all "not un..." forms incorrect?  They are very widely used, much more so than the blatant "not not" or "didn't not", etc.


The question is that:  I've changed the cursor theme with Tweaks putting the cursor theme folder inside the:     /usr/share/icons   I also changed the speed (with dconf Editor) in:     /org/gnome/desktop/peripherals/mouse/speed   and the size (with dconf Editor) in:     /org/gnome/desktop/interface/cursor-size   But... The login screen keeps showing me a default cursor theme, size and speed.

I've set my cursor color on gnome-tweaks to be DMZ-Black, which works fine when I log in and lock the computer. But, after I log out, the cursor color changes to white.  Is there a way to change the color of the cursor after log out?  My gnome-tweaks setting: