I have a windows server 2012 in the office.  I want 5 users to be able to access it and work on it at the same time.  They are each connecting from their computers, in the same network, via Remote Desktop (Some windows, some mac).  Right now when we try to do it, the active user gets kicked out by the incoming user.  do I need to purchase CAL? which are the correct CAL to purchase?

I have a Windows Server 2012 VM running on Windows Azure.  I want to enable the ability for 2 simultaneous administrative sessions over Remote Desktop. This is permitted under the EULA for Windows Server 2012. This is not the same thing as the fully-blown Terminal Services (Remote Desktop Services) feature.  In Windows Server 2000 and 2003, multiple concurrent sessions (up to a limit of 2, plus the root /console session) were enabled by default (such that logging-in via RDP without logging-out first would create a new session rather than reconnecting to the old session). In Server 2008 and later it uses single-sessions by default, as this simplifies administration (as most people want to connect to old sessions).  In Windows Server 2008 R2, you can add the MMC snap-ins for Remote Desktop Host Configuration which allows you to re-enable concurrent sessions.  However, in Server 2012, after adding the Remote Administration snap-ins from Server Manager it seems the Remote Desktop Host Configuration snap-in has been removed.  How can I re-enable the multiple concurrent sessions for Remote Desktop for Administration in Windows Server 2012?


I can do Get Info on a file or folder but this gives the path of the containing folder not the target file or folder. Say I want to copy a full path into a file dialog; how can I do this?

In Windows it is possible to right-click on a file. Then select "properties". In "properties" the file-system path is shown. Can then be copied by marking and storing (into the clipboard).  I couldn't figure out a way to do that in Mac.   Therefore my question:  Can I retrieve the file-system path of a directory or file via the GUI of the Mac Finder?


here my code called data.php             <?php  sql = db->query('SELECT* FROM tb_karyawan order by kar_id desc'); while($data = $sql->fetch(PDO::FETCH_ASSOC)){ } ?>      nilai.php?hal=tambah&kd=   and my nilai.php  <?php $sql = $db->query('SELECT * FROM tb_karyawan WHERE kar_id=$_GET["kar_id"]) .'); $data = $sql->fetch(PDO::FETCH_ASSOC); ?>   how to get kar_id from previous page to next page by $_GET METHOD using PDO  i am new for PDO  THANKS

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to , like in the following example:  $unsafe_variable = $_POST['user_input'];   mysql_query("INSERT INTO `table` (`column`) VALUES ('$unsafe_variable')");   That's because the user can input something like value'); DROP TABLE table;--, and the query becomes:  INSERT INTO `table` (`column`) VALUES('value'); DROP TABLE table;--')   What can be done to prevent this from happening?


You ve got a lot of ppa repos out there, and everyone seems to link add and download from these without checking (i assume). Is there a way to verify safety of a ppa somewhere on the internet ?

I see a lot of interesting programs out there that can only be obtained by adding a "PPA" to the system but, if I'm understanding correctly, we should stay within the official "repositories" for adding software to our system.   Is there any way for a novice to know if a "PPA" is safe or if it should be avoided? What tips should the user know about when dealing with a PPA?.


Is the following definition of '$=$' between numbers (natural, whole, rational, real, complex) correct?  $a=b$ iff $a$ and $b$ denote the same number.     EDIT:   This is the first page of my book ""        It is said that '$=$' is an .  So what does the book mean by '$=$'?

When we say $a=a$ means that are absolutely the same right? What does equal mean in $3+2=7-2$? Does it mean that they are absolutely the same or that the value is just the same?


Suppose $(R,\mathfrak{m})$ is a local ring and $I$ a proper ideal. If $R$ is $\mathfrak{m}$-adically complete is it also $I$-adically complete.

Let $A$ be a commutative noetherian ring, and suppose that $A$ is $I$-adically complete with respect to some ideal $I\subseteq A$. Is it true that for any ideal $J\subseteq I$, the ring $A$ is also $J$-adically complete?   Edit. Recall that a ring $A$ is $I$-adically complete if the canonical morphism $A\to \varprojlim A/I^n$ is an isomorphism.


Suppose that we observe the discrete random variable $X = (X_1, . . . , X_n)$ with state space $S$, whose distribution we do not know but we are assuming that its joint p.m.f. belongs to a known family ${fθ : θ ∈ Θ}$. We derive a sufficient statistic $T(X)$.  Is it ok to write $\Bbb E[X|T(X)]$? I have this definition of sufficient statistic in my textbook:    So by using what's in the definition in my textbook,I think that it's okay to write it that way since:  $$\Bbb P_{\theta}(X=x | T(X)=T(x)) = \Bbb P(X=x|T(X)=T(x))$$  $$\Rightarrow$$  $$\Bbb E_{\theta}[X|T(X)]= \sum_{x \in S} \Bbb P_{\theta}(X=x | T(X)=T(x)) x= \sum_{x \in S} \Bbb P (X=x|T(X)=T(x)) x = \Bbb E [X | T(X)]$$  Is this reasoning correct? Please correct me if not. Any help appreciated!

Suppose that we observe the discrete random variable $ X = (X_1, \dotsc , X_n)$ with state space S, whose distribution we do not know but we are assuming that its joint p.m.f. belongs to a known family $\{f_θ : θ ∈ Θ\}$. We derive a sufficient statistic $T(X)$.  Is it correct to write $\Bbb E[X]$? If not, why? Would it be more correct to write $\Bbb E_{\theta}[X]$?


Imagine it's raining, and it started one hour ago and it's still raining, which sentence is correct:        It has been raining for one hour   It has rained for one hour      And if we say:        It has been raining.   It has rained.      Are these sentences true for this situation (without for or since) or not?  I think the former two sentences are true, and the first one is better, but we use the latter ones for finished actions or situations (It isn't raining right now).  Am I right?

I am very much confused with two aspects which are perfect aspect and present perfect continuous.  From the sentences below I am not sure what to use..  Perfect aspect:     I've lived here for ten years.   Perfect Continuous aspect:     I've been living here for ten years.


How can an object move faster after leaving the gravity of a planet, should a gain in potential energy by moving away from the planet lead to a loss of kinetic energy? Or am I missing something essential like the a change in angular momentum of some body?  My question is similar to this question but I wish to discuss the more technical aspects.

I read in  in this site that the KE a free-falling ball acquires is not originated by the attracting body but that energy was actually stored in the ball when it had been lifted to the height it dropped from.  In this way, it was said, gravity is subject to the conservation of energy principle and cannot change the total energy of an object.  Consider now the maneuver known as a  (also gravity assist) used by space probes such as the . A space probe approaches a planet with velocity $v$, slingshots around, and ends up with velocity $v+2U$, where $U$ is the velocity of the planet.  Consider the energy of the probe. Before, it was $E_i=\frac{1}{2} mv^2$ and after it is $E_f=\frac{1}{2} m(v+2U)^2$. It looks like $E_f$ is much bigger than $E_i$ - but where did the additional energy come from?   Is this not a violation of the conservation of energy principle?


I have tried two methods to direct the output of a program's printf calls to a file. In both cases, sometimes the file is updated immediately, sometimes it takes several minutes, and sometimes it doesn't update the file at all.  My program runs from a bash script that is executed by /etc/network/if-up.d/upstart. I have tried this for my bash script:      #!/bin/bash     sleep 2      if ! pgrep "demo" > /dev/null     then         sudo /home/pi/code/demo_device/demo >> /home/pi/code/demo_device/auto_log.txt 2>&1 &     fi   and this:      #!/bin/bash     exec 1> >(logger -s -t $(basename $0)) 2>&1     sleep 2      if ! pgrep "demo" > /dev/null     then         sudo /home/pi/code/demo_device/demo &     fi   The auto_log.txt file in the first case and the /var/log/user.log file in the second case both have the issues that I described above. I also had the bash script run the demo executable with start-stop-daemon and I got the same results. How can I have a log file update immediately and consistently when running a program as a background process on boot-up?  note: I don't know if this is relevant, but the program is designed to run continuously and never exit.

When I try to redirect the output of cut it always seems to be empty. If don't redirect it, the output shows in terminal as expected. This is true for OS X 10.10 and Linux 4.1.6.  This works:  root@karla:~# nc 10.0.2.56 30003 [...] lots of lines [...]   This works:  root@karla:~# nc 10.0.2.56 30003 | cat [...] lots of lines [...]   This works:  root@karla:~# nc 10.0.2.56 30003 | cut -d, -f 15,16 [...] lots of lines [...]   This doesn't  root@karla:~# nc 10.0.2.56 30003 | cut -d, -f 15,16 | cat [nothing]   This again DOES  root@karla:~# cat messung1 | cut -d, -f15,16 | cat [...] lots of lines [...]   This is not limited to cat after cut. grep, tee and standard redirection using > don't work either.  What's wrong there?


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

I'm just trying to decide which new lens to get. I need to take surf and windsurf photos from onshore. Sometimes 300 mm is enough but there are many times they are too far away. I have a sigma 70-300 but I need something better, if the light is not perfect it doesn't give me the sharpness I hope for. I can not afford the 400L 2.8 of course, so I'm trying to choose between the Canon EF 100-400L, Canon EF 70-300L (which I heard is far better than the base one), or Sigma 50-500. My body is a canon 600D.


What is wrong with this? I have quintupple checked it, but grammarly tells me that I have passive voice misuse. Can someone help?     "The Japanese were warned that one of their cities, Hiroshima, which is also where their 2nd army was, would vanish."

Whenever I create a document in Microsoft Word, it complains about a lot of my sentences being in passive voice. But, when I read that sentence aloud, it sounds fine to me. I am not sure if it is just me and will a statement in passive voice sound strange to a native speaker?  So, my question is, is it considered bad form to use passive voice generally? Or in some specific cases like written communications only?  Edit: If it is ok to use passive voice, then why does MS-Word complain?


If a player uses Dodge every attack made against it gets disadvantage, but a Nat 20 is considered an auto hit.  Would this mean that the 20 would have to be rerolled or would the attack make it through the dodge?

If you are rolling with disadvantage and roll a natural 20 on one of those rolls, which die roll do you take?  My question stems from the fact that natural 20s count as critical regardless of modifiers, but disadvantage means you take the lower of the two rolls.


First I'd like to recognize the shear number of these "anti-proofs" for Cantor's Diagonalization Argument, which to me just goes to show how unsatisfying and unintuitive it is to learn at first. It really gives off a "I couldn't figure it out, so it must not have a mapping" kind of vibe. I have read these posts [   ] and do recognize many of the mistakes though potentially not all so I apologize if I end up repeating some of them. That said here is my attempted proof which I know must be wrong but don't understand why. Proof by Contradiction:  Since all subsets of a countable set are countable, if rational numbers are countable then the subset $(0,1)\in \mathbb{Q}$ is therefore countable.  Where $i \in \mathbb{N}$ and $n,d\in \mathbb{N}$ let: $$ q_i=\frac{2^{n_{i1}}\cdot 3^{n_{i2}} \cdot 5^{n_{i3}} \cdot 7^{n_{i4}} \cdot ... }{2^{d_{i1}}\cdot 3^{d_{i2}} \cdot 5^{d_{i3}} \cdot 7^{d_{i4}} \cdot ... },  \text{where} \,n_{ij}\ne0\to d_{ij}=0 \, \text{and} \,d_{ij}\ne0\to n_{ij}=0 $$ By using the fundamental theorem of arithmetic we know that we can represent all integers in both the numerator and denominator of $q_i$ and that $q_i\ne q_k$ unless for all index values of $\mathbf{n}_i$ and $\mathbf{d}_i$ are equal to those of $\mathbf{n}_k$ and $\mathbf{d}_k$.  With this we can represent the set $(0,1)\in\mathbb{Q}$ as $\{q_1, q_2, q_3,...\}$.  However, using Cantor's Diagonalization Argument we can create: $$ q=\dfrac{2^{n_{11}}\cdot 3^{n_{22}} \cdot 5^{n_{33}} \cdot 7^{n_{44}} \cdot ...}{2^{d_{11}\,+1}\cdot 3^{d_{22}\,+1} \cdot 5^{d_{33}\,+1} \cdot 7^{d_{44}\,+1} \cdot ...} $$ The new value $q$ will not be equal to any elements in $\{q_1, q_2, q_3, ...\}$ and it also isn't necessarily a larger number or smaller number (so I'm not just counting up or down by one). The value $q$ will also need to exist in the subset.  Any help pointing out my mistakes will help me finally seal my unease with Cantor's Diagonalization Argument, as I get how it works for real numbers but I can't seem to wrap my mind around it not also being applied to other sets which are countable.

If we map every integer to a string that represents a rational number, and produce a number different from all the ones listed, we are essentially following Cantor's algorithm. But why does it not apply? Is it because we can't be certain that the number produced is a rational number?


I am trying to build the latest KDE Frameworks git packages. However, I currently have installed the stable non-git packages. In order to install all of the git packages I need to answer 'y' to all of the replace prompts one by one. I usually use --noconfirm to skip prompts, but when it asks to replace a package, it defaults to 'no'. I want it to default to 'yes' in this case.

When installing software in debian systems we can put something like this:   sudo apt-get install -y chromium-browser  that way the installation occurs automatically, whitout asking to confirm installation [Y/n]. Can i do the same with pacman?


I frequently run into a problem where I'm trying to make a list of lists of a certain length from a string.   This is an example where I have a string, but would like to make a list of lists of length 3:   x = '123456789'  target_length = 3  new = [i for i in x] final = [new[i:i+target_length] for i in range(0, len(x), target_length)]  print(final)   Output:  [['1', '2', '3'], ['4', '5', '6'], ['7', '8', '9']]   So, this works, but feels so clunky.   Is there a better way to combine these arguments into one line or do you think that would make the code unreadable?

I have a list of arbitrary length, and I need to split it up into equal size chunks and operate on it. There are some obvious ways to do this, like keeping a counter and two lists, and when the second list fills up, add it to the first list and empty the second list for the next round of data, but this is potentially extremely expensive.  I was wondering if anyone had a good solution to this for lists of any length, e.g. using generators.  I was looking for something useful in itertools but I couldn't find anything obviously useful. Might've missed it, though.  Related question:


While I am searching answers on the Stack Overflow site, there are some users that know the technology of my concern and have often answered related to the same term that I am asking for. How do I start a chat with him/her for my answer?

I have created the chat room for magento. I would like to invite top users of magento tag. How can I do this?


Does the big bang theory state that space and time originated after the bang? So, was the singularity was converted into the vast space plus time?

Did spacetime start with the Big Bang?  I mean, was there any presence of this spacetime we are experiencing now before big bang? And could there be a presence/existence of any other space-time before the big bang?


String username;  String password;  if (username!="admin" && password!="software")          System.out.print("success");   else if (username!="admin" && password=="software")          System.out.print("failure");   guyz could you plzz explain when admin and password are both equal to their respective values i.e. admin and software than it prints success but if i say username is equal to admin and password is not equal to software it also prints success again   Moreover, i took input in username and password like this  password =  Pass_input.getText();  username = Username_input.getText();  while Username_input and Pass_input are the JtextFields in java

I've been using the == operator in my program to compare all my strings so far. However, I ran into a bug, changed one of them into .equals() instead, and it fixed the bug.  Is == bad? When should it and should it not be used? What's the difference?


I have a table that stores multiple phone numbers. While the same number can exist in the table I want to ensure that a user can't have the same number twice.  **Valid**  id0001 : 5555550000 id0001 : 5555550001 id0002 : 5555550000  **Invalid**  id0001 : 5555550000 id0001 : 5555550000 id0002 : 5555550001   Not sure the best approach.  Should I make a function and apply it as a constraint?  Should I change the structure of the table?  CREATE TABLE `callback` (     `f_unti_id` INT(10) NOT NULL,     `phone_number` varchar(10) NOT NULL );  ALTER TABLE `callback` ADD CONSTRAINT `callback_fk0` FOREIGN KEY (`f_unti_id`) REFERENCES `unit`(`unit_id`);

When making a composite primary key for two or more columns, e.g. PRIMARY KEY(col1, col2, col3); will the system INDEX each column individually?  The reason that I am asking this question is that when we use UNIQUE INDEX (col1, col2, col3), it acts as INDEX for the first column only, and we need to create additional INDEXs for other columns. I want to know if that's the case for Composite Primary Key too.


Sort of like the Windows+R command in the windows world?  That actually just lets you run a command but you get the idea.

I recently switched from Ubuntu, and I was feeling very comfortable with using Ctrl + Alt + T to launch terminal. Can I assign Shift + Cmd + T to do the same thing in Yosemite? Specifically, I want a new terminal window to be opened.


I have a python script that uses a function from an imported module. the function I'm calling cannot be run without superuser privilege, and I do not intend on using sudo python myscript.py every time.   import mymodule import subprocess, sys  #some code here... value_returned = subprocess.call(['sudo', sys.executable, mymodule.myrootfunction()]) #more code here   This still requires root privilege and does not allow me to execute my function. I have tried many different variations of subprocess.call including subprocess.call(['sudo',sys.executable,"mymodule.py"]) but still no success. Is there any way to call a method that requires root without explicitly running the script as root in python?  I have tried changing permissions of the file that my script will access (/dev/mem) using chmod and chown, but the only thing that works is to actually run my script as superuser, which is not what I want.  How can I call a function from a module as root from within python? my goal is not to call an external shell command from within python, but to call a method. Is this doable?

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?


When light moves through an object and then slows, where does the lost momentum of the light goes?

As I learned today in school, my teacher told me that when light enters a glass slab it slows down due to the change in density and it speeds up as it goes out of the glass slab. This causes a lateral shift and the light emerges out from the point different than that from where it should have actually emerged from.  Okay so what I mean to ask is, when light enters point A on glass slab and emerges from point C why does the light speed up? Where does it get the energy it has lost when it entered the glass slab?  P.S.: Also, if I place a very very very large glass slab and make a beam of light pass through it will the light never come out as all the energy was lost in place of heat?


I posted a bounty on  which, even after 1 week with bounty, received no answers (I have found a solution and will post it eventually).  IMO, the system should not send a message instructing me to award an answer if there is none (this is what happens nowadays).    I recommend that a filter for such solutions be created with an automated message to the effect of "Your bounty period has expired yet your question received no answers.  The bounty points you offered are not refundable.  You may offer a new bounty, if you wish."  NOTE: before any trigger happy flagger goes about declaring this to be a , please pay attention that it is a BUG REPORT / FEATURE REQUEST , not a whining "where did my bounty points go" and that the above question never received an answer (it was incorrectly marked as a duplicate also).

with no answers.  But still the text of the bounty message says     This question had a bounty worth +50 reputation from juergen d that ended yesterday; you must award this bounty as soon as possible   Please remove the highlighted text if the question has no answers. I can't award it.


I am looking for data which shows how time it would take to brute force (or crack by any other method) different sizes of RSA/DSA keys used for a digital signature.    I am looking to use as small a key as possible & hence looking for how long a signature generated by it can be cracked.

I think 1024 bit RSA keys were considered secure ~5 years ago, but I assume that's not true anymore. Can 2048 or 4096 keys still be relied upon, or have we gained too much computing power in the meanwhile?  Edit: Lets assume an appropriate padding strategy. Also, I'm asking both about security of signatures and security of data encryption.


There is a single word that can be used to describe these, and I'm having trouble remembering it. I think it might be a '-nym' word or a '-phone', but I can't remember. An example would be handicap, which can be used to describe an advantage or a disadvantage, depending on the context.

What is the term for words that can be used as the opposite of themselves?  I know there are a few of them out there, it is possible to 'Dust a cake with Icing' and if the cake were on a shelf for a long time (must be a bad bakery) then it would be acceptable to 'Dust the cake' to remove any dust particles...  In this case, 'Dust with Icing' implies the addition of something to the cake where 'Dust the cake' implies the action of removing dust from the cake  Other examples:   Bolt - To hold in place or to Run away with haste... Trim - To remove a small portion or to add small bits that make it pretty...


At the moment I have this code :   \begin{figure} \centering \includegraphics[width= 0.4\textwidth]{before} $\rightarrow$ \includegraphics[width= 0.4\textwidth]{after} \end{figure}   which produces the following :    Is there some way I can move the rightarrow higher up, between the figures, instead of at the bottom? In particular, I'm wondering if it is possible without redoing my Tikz figures.

I'd like to create something similar to what is give below: text on either side of a vertically centred image:


I do not know which Windows version I have running on my laptop. How do I find this out? I need to know before telephoning my service provider.

If you have to provide some initial troubleshooting support by phone [or email], and you don't have access to the user's PC itself, what is the easiest and most foolproof question one can ask of the user to find out if the 'dumb' user is using either Windows 7 or Windows Vista?  For example: determining if the user has either Windows XP or Windows Vista/7 is easy. Just ask the user if the button at the left bottom corner is (a) either square with the word 'Start' on it, or (b) it is a round button.   But how do you determine the difference between Vista and 7?  Edit: For all the existing answers the user has to type something, and do it correctly. Sometimes even that is already hard for a computer illiterate user. My XP example just requires looking. If it exists (although I am afraid it doesn't), I think a solution that is just based on something this is visually different between Vista and 7 would stand above all others. (Which makes Dan's suggestion to turn over the box and look at the label" not so stupid). Perhaps the small 'show desktop' rectangle at the right side of the task bar (was that present in Vista)?


I'm bemused by the inability of TV presenters to pronounce the letter "x" as in "six", introducing a "k" in its place (so six is pronounced as "sick", sixth as "sickth"). The same also tend to omit entirely the second "f" in "fifth", making do with "fith". The presenters are all British.  I find this irritating. Is there any good reason for it?

What is the correct way to pronounce such complicated combination of sounds when not pausing for breath? As an example, how would one pronounce something like "The Eighteenth century"?


I am writing a Angular web app that needs to do regex pattern matching for input fields. One of the fields is for a registration key. We have two distinct key formats. Our older products used a simple key that was created using the users name and some unique digits. So this regex matches that format...  ^([^\s^\\]){1,10}(-)([0-9A-Z]){6}(-)([0-9A-Z]){6}$   the newer products use a more robust key that matches this regex format....  ^([0-9A-Z]){6}(-)([0-9A-Z]){6}(-)([0-9A-Z]){6}(-)([0-9A-Z]){6}(-)([0-9A-Z]){6}(-)([0-9A-Z]){6}(-)([0-9A-Z]){6}(-)([0-9A-Z]){6}(-)([0-9A-Z]){6}(-)([0-9A-Z]){6}$   I want to have a single input control in my app that will accept either format but only evaluate to true if it matches one or the other, nothing in between. Is there some way to do an OR in regex to make it so the the input has to match one or the other? I'm actually using the HTML5 pattern parameter and Angular's built in Forms stuff to do the validation. So I'd rather not do it in code if I don't have to. But I will if that's the only option.

I don't really understand regular expressions.  Can you explain them to me in an easy-to-follow manner?  If there are any online tools or books, could you also link to them?


Coming Sunday a party member and myself will be facing off against a wizard/warlock and some cultists.  The session last week ended on the Paladin initiating combat by jumping towards the warlock by surprise. (something I would've preferred to avoid before diplomacy had occurred but alas)  Now I was wondering, if I were to use the surprise to move towards the warlock without triggering Opportunity Attacks from the cultists, and I were to place myself in such a way that the Warlock was in between myself and the Paladin.  Upon using Thunderwave and the Warlock failing his saving throw (thus being knocked back), would our Paladin get an Opportunity Attack from the Warlock being knocked into his range? Or is this something that is entirely up to the DM?  I am an Evoker wizard so with Sculpt Spell I can protect the Paladin from my evocation spells.

For example, the shield mastery feat gives the option to shove an adjacent creature 5ft as a bonus action. Could you make an Opportunity Attack on the creature because it leaves your threat range without using the disengage action?


I am trying to get my regex expression to work to no avail:  All I want to do is find the image tags in an html string so I can replace them:  This is what I think should work:  var regex = new Regex(@"");  return regex.Replace(content, "
(See Image Online)
");   And it does work partially, but it seems to be stripping out more than just the image tag.  This is an example of what I want to match:  <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAM0AAAD  NCAMAAAAsYgRbAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5c  cllPAAAABJQTFRF3NSmzMewPxIG//ncJEJsldTou1jHgAAAARBJREFUeNrs2EEK  gCAQBVDLuv+V20dENbMY831wKz4Y/VHb/5RGQ0NDQ0NDQ0NDQ0NDQ0NDQ  0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0PzMWtyaGhoaGhoaGhoaGhoaGhoxtb0QGho  aGhoaGhoaGhoaGhoaMbRLEvv50VTQ9OTQ5OpyZ01GpM2g0bfmDQaL7S+ofFC6x  v3ZpxJiywakzbvd9r3RWPS9I2+MWk0+kbf0Hih9Y17U0nTHibrDDQ0NDQ0NDQ0  NDQ0NDQ0NTXbRSL/AK72o6GhoaGhoRlL8951vwsNDQ0NDQ1NDc0WyHtDTEhD  Q0NDQ0NTS5MdGhoaGhoaGhoaGhoaGhoaGhoaGhoaGposzSHAAErMwwQ2HwRQ  AAAAAElFTkSuQmCC" alt="beastie.png">

I have this gigantic ugly string: J0000000: Transaction A0001401 started on 8/22/2008 9:49:29 AM J0000010: Project name: E:\foo.pf J0000011: Job name: MBiek Direct Mail Test J0000020: Document 1 - Completed successfully  I'm trying to extract pieces from it using regex. In this case, I want to grab everything after Project Name up to the part where it says J0000011: (the 11 is going to be a different number every time). Here's the regex I've been playing with: Project name:\s+(.*)\s+J[0-9]{7}:  The problem is that it doesn't stop until it hits the J0000020: at the end. How do I make the regex stop at the first occurrence of J[0-9]{7}?


I have posted a similar question before, but this one is a little modified.  I have a table with 4 columns as shown below.   ITEMCHARGE     CPT4       EFF_DATE    CPT4MOD 326.8         29075       20101204    GO 326.8         29075       20110104    GO 326.8         29075       20110204    GO 326.8         29075       20110406    GO 352.69        29075       20090611    GO 352.69        29075       20090917    GO 352.69        29075       20100614    GO 352.69        29075       20100722    GO    Now, if CPT4 and CPT4MOD match, I need to keep the rows with distinct ITEMCHARGE (with latest EFF_DATE). The output should be like below:      ITEMCHARGE  CPT4    EFF_DATE    CPT4MOD        326.8    29075   20110406    GO        352.69   29075   20100722    GO   There are 2 distinct ITEMCHARGE for the same CPT4 and CPT4MOD. So we took the latest EFF_DATE row for both of them. It would be very helpful If I can get a linq (with lamda) and SQL version for this.

I have a table with 5 columnsID,CPT4,CPT4Mod,ItemCharge,Eff_Date.   Deletion Condition:  When rows exists with duplicate CPT4and CPT4Mod field values but different ItemCharge and Eff_Date values, exclude all but the most recent Eff_Date records.  I need a query which can achieve this in two scenarios.   When CPT4Mod is given by the user. When  CPT4Mod is not given by the user.   Later I need to achieve the same using LINQ.


So I just got a new phone because my old one shut down. Now I'm trying to sign into my iCloud on it but it needs me to confirm on another phone but that phone isn't working. So is there any way I can sign into my iCloud without having to confirm

I just got a new iPhone to replace my broken one. I can't really do much without signing into iCloud, which requires me to use a verification code. This can either be sent to some other trusted apple device of mine (no such device exists), or as a text to my phone (that won't work because I'm trying to set up my phone). So how can I sign in to iCloud?


I'm stuck with an button, and can't understand why it isn't work.   $('#full-london').on('click', () => { weatherPage.render('London'); });   '#full-london' is id of my button  weatherPage.render starts some jQuery code witch change my front page. This is tested in other case and it work correct.   This is the button:  Full forecast   Any idea what is wrong?   Here is additional situation with search button who uses weatherPage.render and it work:  $('#search-city-button').on('click', () => {     const searchString = $('#search-city-input').val();     weatherPage.render(searchString); });   searchString is search input
       <input type="text" id="search-city-input">       Search
   Here is what is weatherPage.render(); do

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


I'd like to know which way of asking questions is more common in the UK. Is there any difference?     1 What is the date today or What date is today?   2 What is the day today or What day is today?   3 What time is it or What is the time?   4 Whose bag is it or Whose is the bag?   5 What season is now or What is the season now?   6 What is the weather like today or How is the weather?   Thank you.

Which of the following is grammatical?        What date/day is it today?     What date/day is today?


We have a user here who uses Word 2003 and Excel 2003 as his primary tools. He needs to keep different versions of his files over the time so he can rollback to a previous version at any time. Currently, every time he feels like a new version is needed, he uses "Save as..." and creates a copy of the document. He wants to get rid of all these files and wants to keep a single file, but he wants access to the history of his documents.  The initial request was to install a version control system (like SVN) on the user's machine and create a reposity for him on our server, but that involves coaching and supporting him if problems arise. We would like him to be as autonomous as possible without too much intervention on our side.  Then I read about Word having a version manager built-in, which allows to save multiple versions of the same document, and go back to any version at any time you wish. Eureka! The problem was solved, but then I opened up Excel to check if the same functionality exists and I was very disappointed when I clicked the File menu and did not find the Versions element.  I wanted to know if there is such a feature in Excel 2003 ? Or maybe in a newer version ?

Does Microsoft Office 2010 have version control?  In other words, does it automatically save old versions of files?


If an infinite sum is absolutely convergent, its limit remains the same however the terms are permuted. Does a sequence of real numbers $(a_n)_{n\in\mathbb{N}}$ exist such that $\sum_n a_{\small P(n)}$ is the same for all permutations $P:\mathbb{N}\overset{\text{bijectively}}{\to}\mathbb{N}$, and such that $\sum_n |a_n|$ diverge?

Regarding this discussion here:   (thank you for the great answers, by the way)  I'm still trying to do Exercise 3.2.2 (b) from  by Dr. Pete Clark.  The question states that for the set $S = \mathbb{Z}^{+}$, the series $\sum_{i\in S}x_{i}$ converges unconditionally if and only if it converges absolutely, i.e, $\sum_{i\in S}|x_{i}| < \infty$.  Thanks to the prior discussion, I get why unconditional convergence isn't simply the same thing as regular convergence in the case of $S = \mathbb{Z}^{+}$.  Unconditional convergence (to $x$) even allows for "cherry picking" of terms in the tail, rather than only being allowed to take them in order, and still reguires the resulting sums to stay within the $\epsilon$-band (of $x$).  (Again, thanks for the detailed answers to my previous question on this.)  My "best" attempt hits a brick wall:  Let $S = \mathbb{Z}^{+}$.  Write $S = S^{+}\cup S^{-}$, where $$S^{+} := \{n\in S : x_{n} \geq 0\}$$ and $$S^{-} := \{n\in S : x_{n} < 0\}$$  $(\Rightarrow)$ Now if I assume that $\sum_{n=1}^{\infty}|x_{n}|$ is not finite ( that is, the series is not absolutely convergent ),  I want to show that the unconditional convergence definition fails.  I want to try to construct arbitrarily large finite subsets $K$ of $S^{+}$ or $S^{-}$ such that $\sum_{i\in K}x_{i}$ is arbitrarily large, which would prove the contrapositive.  I think I can do it if one of $S^{+}$ or $S^{-}$ is finite, but this need not be the case.  Any advice or suggestions?  I feel like I hit a brick wall.  Edit:  I added the solution as an answer below for anyone who might have this same question.  Thanks all for the help.


In our application, the user can upload attachments(images/pdf/excel etc.) but they're allowed to upload like 1GB only. We have new feature where it will show the total size of the uploaded size.If the total size is exceed to 1GB, they need to upgrade their account.  Path  // This is the path of a uploaded files.  public/attachments/11/P-OP/  Question: How to get the total size of a folder?

function foldersize($path) {   $total_size = 0;   $files = scandir($path);    foreach($files as $t) {     if (is_dir(rtrim($path, '/') . '/' . $t)) {       if ($t<>"." && $t<>"..") {           $size = foldersize(rtrim($path, '/') . '/' . $t);            $total_size += $size;       }     } else {       $size = filesize(rtrim($path, '/') . '/' . $t);       $total_size += $size;     }   }   return $total_size; }  function format_size($size) {   $mod = 1024;   $units = explode(' ','B KB MB GB TB PB');   for ($i = 0; $size > $mod; $i++) {     $size /= $mod;   }    return round($size, 2) . ' ' . $units[$i]; }  $SIZE_LIMIT = 5368709120; // 5 GB  $sql="select * from users order by id"; $result=mysql_query($sql);  while($row=mysql_fetch_array($result)) {   $disk_used = foldersize("C:/xampp/htdocs/freehosting/".$row['name']);    $disk_remaining = $SIZE_LIMIT - $disk_used;   print 'Name: ' . $row['name'] . '
';    print 'diskspace used: ' . format_size($disk_used) . '
';   print 'diskspace left: ' . format_size($disk_remaining) . '

'; }     Any idea why the processor usage shoot up too high or 100% till the script execution is finish ? Can anything be done to optimize it? or is there any other alternative way to check folder and folders inside it size?


Whenever I try to download an app, this pop up appears, and even though the app is installed and works fine, I don't know what this pop up is about? Will it hinder any updates? Here's the error message: E: The repository 'http://ppa.launchpad.net/bluetooth/bluez/ubuntu focal Release' does not have a Release file.  W: Updating from such a repository can't be done securely, and is therefore disabled by default.  W: See apt-secure(8) manpage for repository creation and user configuration details  I suspect it has something to do with bluez or something bluetooth related, because recently I tried to fix the issue of connecting my bluetooth headphones to linux and followed this , specifically the instructions under section Bluetooth won’t be available after the system has gone to sleep Btw, I'm very new to Linux (if it isn't already obvious). Attachment:

When updating, I get the following error message:   W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file.   Here, I find another statement on this error:   This recommends removing certain PPAs; and, I'm not sure if I should do that since it might mean not getting the updates that I need.    Is this what I should do?


Question is :  You have a 5 card hand from randomly shuffled standard deck of 52 cards. P - Event that hand exactly contains one spade. Q - Event that hand exactly contains one ace.    Calculate : a. Prob[P] b. Prob[Q] c. Prob[P intersection Q]    I've faced this kind of problem for the first time. Can anyone please guide me ?

You have a $5$ card hand from randomly shuffled standard deck of $52$ cards:   $X$ - Event that hand exactly contains $1$ spade $Y$ - Event that hand exactly contains $1$ ace   How do I calculate $P(X \cup Y)$?


Actually I wiped off ubuntu 12.04 lts that was pre-installed by manufacturer and want to just have it back is there any of doing this.

I would like to pre-install Ubuntu on a computer for someone. I may want to customize it for them, but in the end they need to be able to choose a username, password, etc. when they first boot it up. (Also called an OEM install).  How do I do this?


What I need is something that gets the variable and if the variable is the name of a function, the function will be called. I am not trying to get a function from a module but from within the program itself  Example:  def foo():     print("Foo") callfunction = input("What function do you want to call? ")  callfunction() ## Not sure what to put here but but lets say callfunction is foo.   I don't want something like this because I have many functions:  if callfunction == "Foo"     Foo() else:     print("No function with that name")   My question is something like , but I ask for the Python syntax. I am using Python 3.5.1

What is the best way to go about calling a function given a string with the function's name in a Python program.  For example, let's say that I have a module foo, and I have a string whose content is "bar". What is the best way to call foo.bar()?  I need to get the return value of the function, which is why I don't just use eval. I figured out how to do it by using eval to define a temp function that returns the result of that function call, but I'm hoping that there is a more elegant way to do this.


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

After Brelyna in the College of Winterhold "experimented" on me, I became invisible. Now I am unable to see my character at all. Is this just a glich; is there anything I can do short of starting a new game?


Edit in response to this question being a duplicate. This is not a duplicate as I am asking how to delete any song from any artist off of cloud storage, not just U2's Songs of Innocence. The link given that provides the supposed answer will only delete the U2 album, Songs of Innocence from the cloud storage. Yes, Songs of Innocence prompted me to try and delete songs from the cloud storage, but I have additional songs I want deleted. I have already detailed in my question how that link does not help me, nor solve this question, as it only works for the one U2 album.  I recently used iPad to listen to some music only to find out I had U2's Songs of Innocence album. I wasn't too bothered until one of their songs started playing. I decided I would like to delete their album from both the iPad and the iCloud. Also there were a few other songs I had purchased prior that I wanted to delete from both my iPad and the iCloud. Here is the list of things I tired to accomplish this feat.  1. I went online to see how to delete the album and was redirected here:  itunes.com/soi-remove  But, there are other songs in on my iCloud that I have purchased and I would like to delete. Which leads to number two.  2. I searched the web and found this:    Ultimately, the accepted answer in that thread was to do this:  Go to Settings > iTunes & App Stone and shut off Music under the SHOW ALL category. and Go to Settings > Music and shut off Show All Music.  That will hide the songs from your iPad (or other apple device) but it will not actually delete the songs from the iCloud. If I turn those settings back on, I will see those songs again.  3. I found this:    It details how to delete songs from the iCloud, but it requires iTunes Match and iTunes Match costs $24.99 a year. I'm not about to spend money to delete songs from iCloud that I purchased.  4. I tried 3rd party software.  I searched around the internet some more and ended up downloading the app Document 5 on my iPad, but that app was unable to even see the song files on iCloud (although the app can view and delete other types of files stored on iCloud).  5. I tried deleting the songs through my iCloud account.  I tried signing into iCloud.com from my computer and yet again, there is no way to view songs on your iCloud through your iCloud.com account. I can view other files, like documents and photos, and I can delete them, but I can't view or delete song files.  6. I searched apple.stackexchange.com and www.reddit.com/r/apple.  Basically, this leads to the same answers. I need iTunes Match and that costs money.    I want to not only delete the U2 album, but also other songs on my iCloud. Yes, I will most likely use the link to delete the U2 album, but am I really expected to pay money or use a special service when I want to delete other songs from iCloud?   I would like to be able to have control over the music I purchase and there are some songs that I would like to delete for good and not just hide them from view, knowing that I can just re-download them off the cloud at a later date. However, it seems Apple has made it so I cannot view or modify my song files on iCloud without either purchasing an iTunes Match subscription or using the U2 album removal link (which will only work for that album). So, I ask:  Is there any way to delete songs from iCloud without an iTunes Match subscription?

I've looked up many ways on how to deal with the U2 songs on my phone, but they will not go away what ever I try.  The most common solution for this problem is to "Show all" music, go to the Music, click the iCloud download button to download it and then turn off "Show all" button again. Generally, this would work but in my situation, it says I haven't purchased the song and I can't download the song again. The song still plays when I click on it, but I can't swipe left to delete and I can't hide it. And yes, I am signed into iTunes. And no, it is not under my purchased section.  Is there any other way to rid of this song?   EDIT:  I'm running iOS7.1.2 on a iPhone5c And the song(s) aren't in my iTunes. It says I have zero items in my iTunes library and it isn't under my purchased songs. The song is only on my iPhone, and I can't redownload it (to delete it again) because then I'd have to purchase the song again.  Thanks.


The problem is to find coefficient of $x^n$ using binomial theorem for rational index in the expansion of $$\frac{1}{1-x+x^2-x^3}.$$  In my book the answer is given as $$\frac14+\frac{n+1}{2}+\frac{(-1)^n}{4}.$$ I think the answer in book is wrong.  I will be grateful if anyone check and tell this answer is correct or not with explanation. thanks

Find the coefficient of $x^n $ in the expansion of $\frac{1}{1-x+x^2-x^3}$.


I have a scenario where we need to display two zeros i.e 00 after the precision for double value. But unfortunately Java is not returning the second zero.  I have tried the below way but it is returning only one zero after decimal.  double inputvalue = 12345.00; double d = ((BigDecimal.valueOf(inputvalue)).setScale(2,RoundingMode.UP)).doubleValue();   Expected output: 12345.00 but it is returning 1234.0.

What I would like is a method to convert a double to a string which rounds using the half-up method - i.e. if the decimal to be rounded is 5, it always rounds up to the next number. This is the standard method of rounding most people expect in most situations.  I also would like only significant digits to be displayed - i.e. there should not be any trailing zeroes.  I know one method of doing this is to use the String.format method:  String.format("%.5g%n", 0.912385);   returns:  0.91239   which is great, however it always displays numbers with 5 decimal places even if they are not significant:   String.format("%.5g%n", 0.912300);   returns:  0.91230   Another method is to use the DecimalFormatter:  DecimalFormat df = new DecimalFormat("#.#####"); df.format(0.912385);   returns:  0.91238   However as you can see this uses half-even rounding. That is it will round down if the previous digit is even. What I'd like is this:  0.912385 -> 0.91239 0.912300 -> 0.9123   What is the best way to achieve this in Java?


I'm working on a project that requires a simple search engine. The idea is not to use plugins like "autocomplete" and "jquery ui" but to exploit the ":contains()" jQuery method.  Now, this function does exactly what I'm talking about.  $('#search').on('keyup',function(){      var v = $(this).val();      $('.element').hide();     $(".element:contains('"+v+"')").show();   });   The problem is, if a term is called "Foo" and I searching for "foo", the search engine do not returns any results... rightly. So I ask you if there is a way to solve this problem... using only jQuery.

Is there a case insensitive version of the  jQuery selector or should I do the work manually by looping over all elements and comparing their .text() to my string?


I encounter the following error when I using the AndroidPdfViewer library. and this is my encounter the error:  FATAL EXCEPTION: main                                                                      Process: app.com.application, PID: 16559                                                                      java.lang.NullPointerException: Attempt to invoke virtual method 'com.github.barteksc.pdfviewer.PDFView$Configurator com.github.barteksc.pdfviewer.PDFView.fromStream(java.io.InputStream)' on a null object reference                                                                          at app.com.application.activity.Main2Activity$RetrievePDFStream.onPostExecute(Main2Activity.java:65)                                                                          at app.com.application.activity.Main2Activity$RetrievePDFStream.onPostExecute(Main2Activity.java:38)   My Code :  public class Main2Activity extends Activity {  String URL_PDF = "http://192.168.1.103/android_login_api/PDF/1G.pdf";     PDFView pdfView;      @Override     protected void onCreate(Bundle savedInstanceState) {     super.onCreate(savedInstanceState);     setContentView(R.layout.activity_main2);      // view pdf from url     new RetrievePDFStream().execute(URL_PDF);  }   private class RetrievePDFStream extends AsyncTask <String, Void, InputStream>{      @Override      protected InputStream doInBackground(String... strings) {          InputStream inputStream = null;          URL url = null;          try {              url = new URL(strings[0]);          } catch (MalformedURLException e) {              e.printStackTrace();          }           try {              HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();              if (httpURLConnection.getResponseCode()==200){                   inputStream = new BufferedInputStream(httpURLConnection.getInputStream());              }          } catch (IOException e) {              return null;          }          return inputStream;      }        @Override      protected void onPostExecute(InputStream inputStream) {          pdfView.fromStream(inputStream).load();      }      }  }   Please guide me to fix the problem, Thank You. I also had another question: is it possible to use this method Volley instead of AsyncTask?

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


I have created a Debian virtual machine in virt-manager/KVM/QEMU.   When I run the Debian virtual machine, I don't really need the desktop environment, which is also resource consuming. Can I start Debian only on a text virtual console (e.g. like ctrl-alt-f1) instead of the graphical virtual console (i.e. ctrl-alt-f7) on the virtual machine?   Thanks.

I have a remote machine running Debian 8 (Jessie) with lightdm installed. I want it to start in no-GUI mode, but I don't want to remove all X-related stuff to still be able to run it though SSH with the -X parameter. So how to disable X server autostart without removing it?  I tried systemctl stop lightdm, it stops the lightdm, but it runs again after reboot. I also tried systemctl disable lightdm, but it basically does nothing. It renames lightdm's scripts in /etc/rc*.d directories, but it still starts after reboot, so what am I doing wrong? And I can't just update-rc.d lightdm stop, because it's deprecated and doesn't work.


Let $C_k$ denote a cyclic group of order $k$. Show that if $m$ and $n$ are coprime, then $C_m \times C_n$ is cyclic and is isomorphic to $C_{mn}$. Show, however, that $C_3 \times C_3$ is not isomorphic to $C_9$.   So my questions are:   What is meant by the product of two groups $C_m \times C_n$ ? How to solve this problem?

Given that $C_n$ is a cyclic group of order $n$, what conditions must integers $n$ and $m$ satisfy such that the group $C_n \times C_m$ is isomorphic to C$_{mn}$?   So I attempted to investigate a few lower-order cyclic groups to find a pattern. In particular, I looked at $C_2 \times C_3$ and compared it to $C_6$. Here are a couple of diagrams:  $C_2 \times C_3$ -   $C_6$ -   They Cayley tables look pretty different (identity elements are all over the place for $C_2 \times C_3$) so I concluded that they are not isomorphic.  I did the same for $C_2 \times C_4$ and $C_8$:  $C_2 \times C_4$ -   $C_8$ -   Again, I arrived at the conclusion that the 2 groups are not isomorphic due to their Cayley table structure.  It seems I'm stuck now. Are my conclusions wrong for the examples I examined? If so, how do I find the conditions for the general case of comparing $C_m \times C_n$ with $C_{mn}$?


If $f:[0,1]\to (0,1)$ is a continuous mapping then which are NOT correct?   $F\subset [0,1]$ is a closed set implies that $f(F)$ is a closed set in $\Bbb R$. If $f(0)<f(1)$ then $f([0,1])$ must be equal  to $[f(0),f(1)]$. $\exists x$ such that $f(x)=x$. $f([0,1])\neq (0,1)$.   is false as continuous functions don't take closed sets to closed sets. is false as $f$ is not monotonically increasing.    3.Let $h(x)=f(x)-x\implies h(0)=f(0)>0;h(1)=f(1)-1<0\implies h(k)=0$ for some $k$ .hence true  4.true since continuous image of a compact set must be compact.  hence the correct options are 1,2.  But the answer is given to be 2 only .Please help.

Question is :  Suppose  $f: [0,1]\rightarrow (0,1)$ is Continuous then which of the following is NOT true..   $F\subseteq[0,1]$ is closed set implies $f(F)$ is closed in $\mathbb{R}$ If $f(0)<f(1)$ then $f([0,1])$ must be equal to $[f(0),f(1)]$ There must exist $x\in(0,1)$ such that $f(x)=x$ $f([0,1])\neq (0,1)$   Continuous map need not map closed sets to closed sets..  So, first option is not true...  Continuous maps takes connected sets to connected sets ...  So $f([0,1])$ must be connected and it is equal to  $[f(0),f(1)]$.. So, Second option is true..  Continuous maps takes compact sets to compact sets...  So, $f([0,1])\neq (0,1)$ and so fourth option is true...  I guess third option is also false though I can not think of any example..  Continuous map from compact set to itself has a fixed point.  But how do i conclude that this would imply third option is true/false.  Please help me to clear this...  Thank you.


I am as a beginner I want to know is there any relation between eigenvalue and rank of a square matrix  Please help.

Let $T : V\to V$ be a linear transformation such that $\dim\operatorname{Range}(T)=k\leq n$, where $n=\dim V$. Show that $T$ can have at most $k+1$ distinct eigenvalues.   I can realize that the rank  will correspond to the number of non-zero eigenvalues (counted up to multiplicity) and the nullity will correspond to the 0 eigenvalue (counted up to multiplicity), but I cannot design an analytical proof of this.  Thanks for any help .


When searching with a tag, for example , the C++ tag information displays twice:    This is reproducible for me on both Chrome and Edge, but only on Stack Overflow, not on beta sites or Meta SE.

When you click on someone's profile tags, it shows a search of posts by that user on the selected tag. However, the tag description appears twice in the page and there's not much left for the actual content you want to see.      The image was taken from my profile. Also not sure why it shows me a user id instead of my username.


I have a problem - I put a piece of html code on the page using jQuery Ajax  example code:

a1

a2

a3

   I would like to know which element (id) was clicked by the user. Unfortunately, the following code does not work :(  $('li').click(function(){    var info = $(this).attr('id');    alert(info); });   It seems to me that the problem stems from serving html with ajax. jQuery can not see it?

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


When I take a single player world from a friend who was hosting the LAN server I have their player data instead of my UI. Is it possible to start with mine and then host? Also, in a way in which the friend doesn't lose their data when they rejoin?

Player A created a Single Player game in Minecraft, hosted on his laptop, and opened to LAN at my house with about 4 people in total, including myself, Player B. Player A's laptop was soon struggling with the hosting responsibilities, and we wanted to transfer the saved game to Player B's desktop.  We transferred the file onto my computer, and loaded it. The world seemed to be the same, but when I logged in as Player B, it loaded the player data for Player A; I was in his spot, with his items, and had his experience.  Upon digging, I believe that the reason for this is because the way that the game's playerdata saved his player had something to do with him being the host. Now, since I'm the host, it must be assigning me the player with the previous host attributes.  I have not yet logged him (Player A) in while I (Player B) am hosting on the desktop, but I assume he would have my credentials?  Also, another player, who was on the server last night while Player A was hosting, logged in while I started hosting, and her character was the same; she had the same items, was in the same location as last night, etc.  Why am I logged in as the previous host, Player A, but it seems everyone else has their correct credentials? Is there a way I can change this so that I'm logged in as Player B while hosting?


I have all data in one sheet and I need to filter the imported data to another sheet. How can I do that in one function?  Function to filter data which I use:  =FILTER(A7:C,RIGHT(A7:A,7)="?id=999")   so how to combine this filter function with importrange function?  =IMPORTRANGE("URL", "Template!A16:C")

I want to bring in data from a separate sheet and filter it.  I can get IMPORTRANGE to work like this:  =IMPORTRANGE("URL","A:J)   But that doesn't filter. I can only get FILTER to work in the same sheet like this:  =FILTER(Sheet1!A:J, C:C="Yes")   Is there anyway to bring these two functions together and FILTER data from another spreadsheet into a new sheet, based on column C info?  The reason for doing this is to then use the auto notification setting, so whenever someone enters "yes" into the sheet I can be notified.


Let $X$ be a separable Banach space and let $\mu$ be a counting measure on $\mathbb{N}$. Suppose that $\{x_n\}_{n=1}^\infty$ is a countable dense subset of the unit ball of $X$ and define    $T: L^1(\mu)\rightarrow X$ by $$Tf=\sum\limits_{n=1}^\infty f(n)x_n.$$      Then $T$ is surjective.   This is an exercise from Folland's "Real Analysis", P164 Ex36(b).  How can an element of $X$ be expressed as $\sum\limits_{n=1}^\infty f(n)x_n$?

Folland, "Real Analysis", Chapter 5.3, Exercise 36:     Let $\mathcal{X}$ be a separable Banach space and let $\mu$ be   counting measure on $\mathbf{N}$.  Suppose that   $\left\{x_n\right\}_1^\infty$ is a countable dense subset of the unit   ball of $\mathcal{X}$, and define $T \colon L^1(\mu) \to \mathcal{X}$   by $Tf = \sum_1^\infty f(n) x_n$.  (a)  $T$ is bounded.  (b)  $T$ is   surjective.   I have proved (a).  I would like help on (b).  Here are my ideas so far.    Say we want to show $y \in \mathcal{X}$ is in the image of $T$.  Reduce to the case $||y|| = 1$ and let $x_{n_m} \to y$.  My thought is to produce for each $N$ a function $f_N \in L^1(\mu)$ such that $||y - \sum_n^\infty f(n)x_n|| < 1/N$ and also such that the $f_N$ converge in $L^1(\mu)$ to some $f \in L^1(\mu)$.  Then use the continuity of $T$ to conclude $T(f) = y$.    The way I have been setting up my inequalities is as follows. Pick $M_N$ such that for all $m > M_N$, $||y - x_{n_m}|| < 1/N$.  Then I want to define $f_N$ so that $$\sum_n^\infty f_N(n) = \sum_{m > M_N}^\infty f_N(m) = 1, $$ hence $$||y - T(f_N)|| = ||\sum_{m > M_N}^\infty f_N(m) y + \sum_n^\infty f_N(n)x_n|| \leq \sum_{m > M_N}^\infty f_N(m) || y - x_{n_m} || < \frac{1}{N}. $$  Presumably, if the $f_N$ are appropriately chosen, then I can find a dominating function and apply the Dominated Convergence Theorem to finish up.    However, getting all these hypotheses to hold simultaneously has been difficult.  In essence, the difficulty seems to be in requiring that the $f_N$ be "normalized" as well as possess a dominating function.  If this method is feasible, at least it seems to require a bit of analysis to show the desired series all converge.  Perhaps I am missing something cleaner.  If so, a simpler solution would be much appreciated.    -Thanks.


Try to search java + relocation offered, first page is totally occupied by amazon postings. I can't see anything else. Please allow to filter out companies by names.

Is there a way to subtract certain employers from the job listings? There are some positions there by companies that keep getting reposted, and I'm not interested in seeing them repeat themselves.


I have a table that contain similar Values in the Column  "Name" in different  rows, I would like to delete the duplicate ones and keep one, I tried the while loop but it didn't work, any simple methods to do that?

What is the best way to remove duplicate rows from a fairly large SQL Server table (i.e. 300,000+ rows)?  The rows, of course, will not be perfect duplicates because of the existence of the RowID identity field.  MyTable  RowID int not null identity(1,1) primary key, Col1 varchar(20) not null, Col2 varchar(2048) not null, Col3 tinyint not null


I want to get the result of time command into a text file but it's not working it only put blank space in the text file.  I already tried this commands,  A-  $ x=`time` $ echo $x > log.txt $ cat log.txt  $   B-   $ time > log.txt  real    0m0.000s user    0m0.000s sys     0m0.000s $ cat log.txt  $   C-  $ time > log.txt 2>&1  real    0m0.000s user    0m0.000s sys     0m0.000s  $ cat log.txt  $    What I really want is this.   $ time > log.txt $ cat log.txt  real    0m0.000s user    0m0.000s sys     0m0.000s

I am trying to time something using:  /usr/bin/time myCommand   However, since /usr/bin/time writes to stderr, if myCommand also writes to stderr, I will get more than just time's output on the stream. What I want to do is, redirect all of myCommand's output to /dev/null, but still write time's output to stderr. Using an example myCommand that writes to stderr of ls /nofile, we see that (obviously) there is no output at all with the following:  $ /usr/bin/time ls /nofile 2> /dev/null $   Without any redirection, we see both the output from ls (to stderr) and the output from time (also to stderr):  $ /usr/bin/time ls /nofile ls: cannot access /nofile: No such file or directory 0.00user 0.00system 0:00.00elapsed 0%CPU (0avgtext+0avgdata 3776maxresident)k 0inputs+0outputs (0major+278minor)pagefaults 0swaps   What I want is something that simply produces:  $ /usr/bin/time ls /nofile > RedirectThatImAskingFor 0.00user 0.00system 0:00.00elapsed 0%CPU (0avgtext+0avgdata 3776maxresident)k 0inputs+0outputs (0major+278minor)pagefaults 0swaps   Any ideas?


The related question –  – says that you can cast a spell if you're holding a 2H weapon. The  says:     Two-Handed (p. 147). This property is relevant only when you attack with the weapon, not when you simply hold it.   Although, that means if you attack with the weapon, both your hands are occupied. Hence the question. Can you cast a spell you're attacking with a two-handed weapon?  An example situation  Let's say two wizards are having a squabble. Wizard 1 smacks Wizard 2 with his staff, using both hands. On his turn, Wizard 2 tries to smack Wizard 1. I assume turns happen simultaneously in D&D 5e combat. Can Wizard 1 casts Shield as a reaction, while both his hands are occupied in that very moment?   implies you can cast a bonus action spell. But it is "especially swift" according to the PHB. What about a reaction spell?

I have a halfling cleric of Bahamut who wears his holy symbol as an amulet around his neck as a spellcasting focus (so material components are not an issue). However, as per , this does not cover the Somatic component of any spells he casts.  He also wields a light crossbow as his only weapon, which has the two-handed weapon property. How does RAW handle Somatic casting when you're holding a two-handed weapon? Can I simply take a hand off my weapon, cast the spell, and re-grip all in the same action? If not, has anyone run into this problem at their table before and how did you handle it?


I manage a cluster of cPanel shared hosting servers and am considering utilising  to run two (or more) dedicated DNS servers separate from the hosting servers. I'm hoping this will give me much more flexibility in moving hosting accounts between shared hosting servers.  I'd like some thoughts on a suitable specification for machines running cPanel DNS only.  Understandably what is required of a dedicated DNS server in terms of specs is, to an extent, dependent on the number of DNS records being served from it.  What I'm trying to get an appreciation of is what is required of a cPanel DNS only machine compared to a full cPanel machine.  The DNS only machine doesn't have a mail server, web server, database server and other related non-DNS applications that are present on a regular cPanel server. Therefore compared to what is required of a regular cPanel server, a cPanel DNS only server could be relatively lower powered in terms of CPU and RAM.  I don't have any experience using cPanel DNS only and so am unaware of how demanding, or not, cPanel DNS only is compared to a regular cPanel server. I'm thinking that RAM is much less of a concern but how little is needed, or what a realistic maximum may be, I can't say.  Does anyone have any experience in dealing with cPanel DNS only? How do the specs of your cPanel DNS only machines compare to your regular cPanel machines? Would something as low spec as a small VPS do the trick, or would going fully-dedicated be better and if so why?

This is a  about  Related:      I have a question regarding capacity planning. Can the Server Fault community please help with the following:   What kind of server do I need to handle some number of users? How many users can a server with some specifications handle? Will some server configuration be fast enough for my use case? I'm building a social networking site: what kind of hardware do I need? How much bandwidth do I need for some project? How much bandwidth will some number of users use in some application?


I am trying to get my Zebra GC420d printer to work with Ubuntu 19.10. I Googled how to do it and found CUPS. I found the CUPS information on Ubuntu documentation. Tried following the steps and nothing. Here is what I tried:  sudo apt install cups  Here was what the terminal said:  Reading package lists... Done Building dependency tree Reading state information... Done cups is already the newest version (2.2.12-2ubuntu1). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.  The Ubuntu documentation says the CUPS server will be started automatically but nothing happens. It also says the I need to copy and save a file called /etc/cups/cupsd.conf. I cannot find this file.

Hi everyone plz can someone help me i am looking for the Ubuntu 16.04 printer driver for a zebra GK420g label printer. I have been looking for driver for about 3 monts and i cant find it


I have list of Account ids and when pass the account list to SOQL, what will order of the record return by salesforce? It will be same order where list of id is present ?   exmaple :  List<ID> accountIds=new List<ID>{'id1','id2','id3'}; List<Account> accountList=[SELECT Id,Name FROM WHERE Id in:accountIds];   What will be the order of the accountList i get ? Any article on this ?

In the absence of an  in a SOQL query, what order will Salesforce return results in?  Clearly if ordering is important then Order By should be specified, but I recently encountered a question about what the order would be if it was undefined.  My initial thoughts were Salesforce would return them in whatever order suited them. Much like .  For simple queries this would typically line up with the creation date descending and the Id ascending. For more complex queries it would depend on the joins being performed.


Is there any other way than this  ?   Don't have a windows 7 disk and my laptop won't go to recovery mode since the keys are broke on the laptop.  Is there any way to uninstall it without seeing   No such partition  GRUB Rescue:  Thanks in advance

I have absolutely no experience with Linux, and I desperately need to get my computer back up and running again with Windows.  How do I remove Ubuntu and reinstall Windows?    Editor's note: many of the answers are about removing Ubuntu from dual-boot but keeping Windows (which is a bit complicated), while other answers are about removing Ubuntu from single-boot (which is easy: basically just format the disk while installing Windows). The question as written is ambiguous between dual-boot or single-boot.


def random_bitstring_generator(bit_number, backend):           bitstring = ""      one_qubit_random_bit_generator_circuit = QuantumCircuit(4,4)     one_qubit_random_bit_generator_circuit.h(3)     one_qubit_random_bit_generator_circuit.measure(3,3)      for _ in range(bit_number):         counts = execute(one_qubit_random_bit_generator_circuit, backend, shots=8000).result().get_counts()         bit = list(counts.keys())[0]           bitstring += bit      return bitstring  from qiskit.providers.aer import QasmSimulator  provider = IBMQ.load_account() ibmq_melbourne = provider.get_backend('ibmq_16_melbourne') backend = QasmSimulator.from_backend(ibmq_melbourne)  print(random_bitstring_generator(512, backend))```  Using the above  code, I am only getting an output bit string with all 0's even with changing number of shots. what is the error leading to incorrect output. I am trying to generate a long random sequence

How can I generate and print a 32 bit sequence of 0s and 1s in Qiskit or IBM Q experience quantum lab using quantum random number generator implementation?


$$\dfrac{1 \cdot 3 \cdot 5 \cdots (2n-1)}{2 \cdot 4 \cdot 6 \cdots (2n)} < \dfrac{1}{\sqrt{3n+1}}.$$  However I've non-inductive proof of $\dfrac{1 \cdot 3 \cdot 5 \cdots(2n-1)}{2 \cdot 4 \cdot 6 \cdots(2n)} < \dfrac{1}{\sqrt{2n+1}}$, but I can't prove it for $3n+1$. It is obvious is to see $\dfrac{1 \cdot 3 \cdot 5 \cdots(2n-1)}{2 \cdot 4 \cdot 6 \cdots(2n)} < \dfrac{1}{\sqrt{3n+1}}$ is stronger inequality.  Let $S=\dfrac{1 \cdot 3 \cdot 5 \cdots (2n-1)}{2 \cdot 4 \cdot 6 \cdots (2n)} < \dfrac{2 \cdot 4 \cdot 6 \cdots(2n)}{3 \cdot 5 \cdot 7 \cdots(2n+1)}$ [$\frac{1}{2}<\frac{2}{3}  $ and so on.]  So, $S<\dfrac{1}{S(2n+1)}$ Implies, $S<\dfrac{1}{\sqrt{2n+1}}$

How to prove that $\quad\displaystyle\frac{4^{n}}{\sqrt{4n}}<\binom{2n}{n}<\frac{4^{n}}{\sqrt{3n+1}}\quad$ for all $n$ > 1 ?     Does anyone know any better elementary estimates?   Attempt.  We have $$\frac1{2^n}\binom{2n}{n}=\prod_{k=0}^{n-1}\frac{2n-k}{2(n-k)}=\prod_{k=0}^{n-1}\left(1+\frac{k}{2(n-k)}\right).$$ Then we have $$\left(1+\frac{k}{2(n-k)}\right)>\sqrt{1+\frac{k}{n-k}}=\frac{\sqrt{n}}{\sqrt{n-k}}.$$ So maybe, for the lower bound, we have $$\frac{n^{\frac{n}{2}}}{\sqrt{n!}}=\prod_{k=0}^{n-1}\frac{\sqrt{n}}{\sqrt{n-k}}>\frac{2^n}{\sqrt{4n}}.$$ By Stirling, $n!\approx \sqrt{2\pi n}\left(\frac{n}{e}\right)^n$, so the lhs becomes $$\frac{e^{\frac{n}{2}}}{(2\pi n)^{\frac14}},$$ but this isn't $>\frac{2^n}{\sqrt{4n}}$.


I've run across (personally or by proxy) a bunch of storage media that exhibited physical problems during their life. Hard disks, solid state drives and other flash storage media all fail after some time. The situation is worse with USB flash drives and flash cards because of the large amount of suppliers with inferior flash cell and flash controller quality.  How can I reliably detect if a storage drive suffers from physical damage?  Note that this question isn't about file system integrity (which can be checked with ).

I suspect there might be bad sector on a disk. I used ext3 filesystem.  What tool is the best equivalent of the error checking tool of Windows?


If I am sitting in a chair with wheels and someone pushes on the back of my chair with sufficient force it will role along the ground. However, if I push on the back of the chair with the same force it will not move the chair. Why?

Suppose you stand in a basket and you try to pull the handles of the basket. Will you be able to lift the basket from ground?  Similarly,  allegedly pulled himself and the horse on which he was sitting out of a swamp by his own hair. Is this possible?


I have a simple question regarding Google Maps. I am not signed in with Google, and don't use their services anymore, yet, when I start Google Maps I get the following:    How can I completely eliminate that account that Google shows me?

I had the Facebook and Instagram apps installed on my iPhone (latest iOS). I deleted both apps and checked that there was no data from either app stored on iCloud (I went to Settings - iCloud - Manage storage and there was no mention of them storing anything on iCloud). Then I reinstalled Instagram, opened it, clicked on Login and the page still showed “Login as MYFACEBOOKNAME”.   How is this possible? How can I delete my FB login info once and for all on my iPhone?


I am trying to write a simple Banking program.  The basic functions are :   1. open account - (open <amount>)-- returns account number 2.check balance - (balance <AccountNumber>)   The code for following is this.I am not posting my other classes and the class which contatins   main(), because I believe the problem lies somewhere in this code ::  public class BankAccount { private static int bankAccNoGen=1001; private int balance; private int bankAccNo; private  int i=0;  BankAccount[] bankArray=new BankAccount[10];  public void openBankAccount(int openAmount){     BankAccount ba =new BankAccount();     ba.balance=openAmount;     ba.bankAccNo=bankAccNoGen;      bankArray[i] = ba;     System.out.println("Account opened with the account number : "+bankArray[i].bankAccNo);     System.out.println("Please note the account number for later use.");     System.out.println("Balance for account no : "+bankArray[i].bankAccNo+" is : "+ bankArray[i].balance);     ++bankAccNoGen;++i;  } public void printBalance(int accNo){       for(int i=0;i<10;i++){         if(bankArray[i].bankAccNo==accNo){             System.out.println("Account Number :"+ accNo +" currently has :"+bankArray[i].balance);         }     }  }   }  After running this I can open a bank account by :  open 1000   output:  Account opened with the account number : 1001 Please note the account number for later use. Balance for account no : 1001 is : 1000  I can check balance by :  balance 1001   Error:    Exception in thread "main" java.lang.NullPointerException  at  BankAccount.printBalance(BankAccount.java:27)  at  ReadInput.inputRead(ReadInput.java:36)     at  SimpleBank.main(SimpleBank.java:11)

What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?


There is one feature I would love to see included, and that was a bookmark-feature.  Something similar to the favourite-feature; but without the counting and without the implication that you found the question particular useful.  I have been using the favorite-feature to mark questions to revisit, but as I also use it to mark questions I found particularely useful (it's intended use?), things become a bit chaotic.  So it would be very useful with a seperate bookmark-function, just for questions you for some reason would like to revisit later.  Another great feature would be a follow-feature, that tracked changes to a question - like new answers and new comments.  It would be very useful when one encounter a great question with as-of-yet no answers.

I've come across a few interesting questions over the last few months on Stack Overflow. They're not necessarily questions I need an answer to, but the questions are nonetheless very interesting, and now I want to know what the answers are.  I don't want to add this question to my favourites because I have my really handy posts in there.   Ideally I would like to have another kind of shortlist to which I can add these posts. I would get notifications just as if it were my own post, without having these as favourites.  What do you think of that? It would be available only for questions, and you would receive notifications just like the author, for new answers and comments on the question (not comments on the answers).  You could browse the posts you're following, as well as stop following them.   The thing is sometimes I come across a semi interesting question and upvote and maybe even comment, but I never hear about it again, because sometimes it's just not interesting enough to remember.  Like I said in the comments, I don't feel like the favourite list is really for this. I want in-your-face red dot notifications for new answers on brand new interesting questions I find. The favourites is for that post with an answer that you know you'll need again.


Recently, I was reading articles on the net and realised that there is a lot of ambiguity over the usage of Dr. and Dr, Er. and Er etc.  I usually prefer the dot while writing Doctor (Dr.) or Engineer (Er.) in front of someone's name.  Is it correct if we put a dot after these titles/abbreviations or not?

I've been reading the Economist lately and they apparently don't punctuate honorifics like "Mr.", "Mrs.", e.g.     The popular rejection of Mr Mubarak offers the Middle East’s best chance for reform in decades.   I believe it's a British magazine, but is such a use proper or common in American English?


I think that it would be highly beneficial for users like myself who are less or indeed inexperienced with programming, to have a section where said user could talk to a professional without fear of being insulted or disregarded when there questions aren't clear. I have had first hand experience of not having the correct terminology or indeed not hitting the topic at all because quite frankly I don't know where to start I don't know how to explain my problems. If there was a section for users to be brought up to a certain level of understanding it wouldn't seem so much like this forum is for seasoned professionals :/

Because the perl section is looking like that right now. I believe that Stack Overflow is going out of it's charter in becoming a newbie FAQ when as far as the original reasoning it was meant to be something along the lines of an expert site.   is a good example of what I mean in Perl. It probably could be closed because it's a duplicate, or some other reason.   I would also like to indicate that I don't hold back answering newbie questions. It's just when I think of an obscure "stack overflow" error that's beating you some 3 am close to deadline, that's not "Howcum Perl print ..." and follows with something that causes a vast majority of Perl programmers to say oops, because they know exactly what's going on.   So the proposal is   A new site. "Move to Newbieville" A new "section" A new status somewhat similar to Closed ("Newbied") but still can be updated all the same as an open question.   I'm not against giving some newbies an assist, but I feel a FAQ for rank newbieism is not something that SO started out to be, based on the original concept of a Expert Site.   Including comment to Gnoupi:   I said nothing about making newbies unwelcome. Like I said. I answer them--heck, I think I've even answer homework questions. I've answered on the vague impressions that I can glean from posts that have 4 close votes. It can even lead to avoiding downvoting or yelling at newbies by more established curmudgeons if there is a special action you can do to gently inform newbies that this is a real newbie question.  However, you have to know that to some people newbies are already unwelcome. There is a site ethic, but the individual is also going to decide how much they welcome newbies. And people do post RTFM answers already.   Anyway, I'm one vote away from a peer pressure badge it seems. (Nope, nailed it.)    EDIT  For somebody jumping to the conclusion that I'm hostile to newbies:  just earlier


I went to sign up for Ubuntu One and during the sign up process, I had to wait for the authentication code before I could proceed. I thought this was an instant process and it took a while for the email to come. So I exited the program and now I cant find where to enter in the authentication code at or how to bring it back up. Any help would be appreciated, Thank you.

I wanted to create an account for Ubuntu One, but I got impatient when the email with the verification code didn't arrive... I thought I might have typed the wrong address, closed the window and tried again. it told me the address already existed and I just got the code. But since I closed the window I missed it. Is there any way to recover the code?


In Harry Potter and the Sorcerer's Stone, we see Harry and the rest of the first-years riding boats up to Hogwarts when we're first introduced to it. According to the  (emphasis mine):  The Hogwarts boats are traditionally used to transport the first year students, accompanied by Hogwarts gamekeeper Hagrid across the Black Lake from Hogsmeade Station to the castle at the start of the school year. At the end of the school year, first years take the boats back across the lake to Hogsmeade Station. During the Hogwarts graduation ceremony, the seventh-years ride the boats back across the lake as they leave the school for the last time.  So Harry and Co would take a ride both to and from Hogwarts at the beginning and end of their first year, and the graduating class gets one last go as well before leaving. What is the significance or meaning of these boat trips? Who started this tradition and why?

It makes sense to keep them together, and to have them arrive in the Great Hall separately from the rest of the school for the Sorting. But why the boats? The lake crossing is dramatic, but inefficient - as we see in book 4 when Dennis Creevey falls in the lake during the storm.   Is there a canon (books/movies or JKR) explanation for why the first years come up from the train in boats instead of carriages?


I have the following problem as an exercise.  Suppose $f: [0,1] \to [0, \infty)$ is a continuous function. Let $A = \int_0^1 f(x) \,dx$. Prove that $$ \sqrt{1 + A^2} \leq \int_0^1 \sqrt{1 + [f(x)]^2} \,dx \leq 1 + A. $$  I think the second inequality holds because $\sqrt{1 + x^2} \leq 1 + x$ for any $x \geq 0$, although here I'm using my intuition and I'm not even sure how I would prove this simpler inequality. Maybe using some kind of Taylor expansion at $0$ and arguing that the higher-order terms don't contribute enough? For the first inequality I'm feeling like Cauchy-Schwarz might do the trick but I don't see how.

I have this problem and I don't know where to start. Can you give me some hint, please?  Suppose that $f:[a,b]\to [0,\infty]$ is a lebesgue integrable function. Let $B=\int_a^b fd\mu.$ Prove that $\sqrt{1+B^2}\leq \int_a^b\sqrt{1+f^2}d\mu\leq 1+B$.


I am wondering if it is necessary to validate data with javascript before submiting a form. If someone wants to be clever, he can disable javascript in a browser so it becomes useless. How do you think? Is server-side validation sufficient?

Which is better to do client side or server side validation?  In our situation we are using    jQuery and MVC.   JSON data to pass between our View and Controller.     A lot of the validation I do is validating data as users enter it. For example I use the the keypress event to prevent letters in a text box, set a max number of characters and that a number is with in a range.   I guess the better question would be, Are there any benefits to doing server side validation over client side?    Awesome answers everyone. The website that we have is password protected and for a small user base(<50). If they are not running JavaScript we will send ninjas. But if we were designing a site for everyone one I'd agree to do validation on both sides.


i love Ubuntu very much but i cant install it on my laptop whenever i try to boot it form CD the screen just went blank and DVD spins so fast like its installing to many files but it was some sort of problem.i try it so many times but it didn't worked.  please help me   thanks in advance   Shahzad

I am trying to boot Ubuntu on my computer.  When I boot Ubuntu, it boots to a black screen.  How can I fix this? Table of Contents:


I'm having difficulty understanding why it is appropriate to use if and only if, something I thought I had a firm grasp on. From Lara Alcock's book, How to Study as a Mathematics Major:       Definition: A number $n$ is even if and only if there exists an integer $k$   $\quad\quad\quad\quad\,\,\,\,$such that $n=2k$.        To think about the phrase, it might be illuminating to split up this definition and write each implication separately:        $\quad$ A number $n$ is even if there exists an integer $k$ such that $n=2k$.   $\quad$ A number $n$ is even only if there exists an integer $k$ such that $n=2k$.        This is related to my point in Chapter 3 that we want our definition to "catch" the numbers that are even, and to exclude those that aren't. Can you see how?     The problem is that I don't see how and this shows that I don't truly understand iff. Can someone please answer this question?    RESPONSE TO J.-E. Pin: Because this issue is both so important and preliminary, I've obsessed over this post and as a result cannot think about it any differently. Your answer had me the closest to understanding how to interpret iff, but I still feel as though I am missing something fundamental about two things implying one another.    Due to the fact that I've been tossing around the previous definition for a while, I think it would be beneficial to look at a different example definition from Lara Alcock's book, How to Think About Analysis.       Definition: A function $f:X\rightarrow\mathbb R$ is bounded above on X if and only if $\exists M\in\mathbb R$ s.t.$\forall x\in X,$ $\quad\quad\quad\quad\,\,\,\,f(x)\leq M.$     She goes on to say that,       [definitions] have a predictable structure, and there are two things to notice. First, each definition defines a single concept - this one defines what is means for a certain kind of function to be bounded above...Second, this term is said to apply if and only if something is true...     which in my mind means that the term applies exclusively or precisely in case something is true. How exactly does this interpretation relate to two things implying one another?

I understand that  (1) "$A$ if and only if $B$" ($A\iff B)$  means that  (2) "$A$ implies $B$ and $B$ implies $A$" $(A\implies B)\land (B\implies A)$.  The phrase "$A$ if and only if $B$" sounds as though something applies exclusively or precisely in case something else is true, i.e., not only does $B$ make $A$ true, but $B$ is the only thing that makes $A$ true. If this is the case, then how exactly does this interpretation relate to two things implying one another?    For the Bounty: (1) I think that a natural interpretation of the statement $A$ if and only if $B$ is that $A$ is true precisely in case $B$ is true, i.e., if $B$ is true, then $A$ is true, and if $B$ is false, then $A$ is false. Is this correct? And if so, how does this interpretation mean that $A$ and $B$ imply one another and also have the same truth value?    (2) Related to (1), the (true) statement $\forall x\in\mathbb R:2x=5\iff x={5\over 2}$ means that for any replacement of the variable, the two statements have the same truth value. How does two statements having the same truth value in all cases mean that they imply each other?  (3) Most importantly, I need exposition. Am I missing anything obvious, or is this a simple thing?


I have two logit regression models with different AIC. I'm using R. my first model has significant variables and AIC 192.7436. And my second model has 1 non-significant variables but with smaller AIC 192.4468. Which model is the best?

I have run a multiple linear regression using stepwise regression to select the best model, however the best model returned has a non-significant variable. When I remove this the AIC value goes up indicating the model without the significant variable is a worse fit. Should I remove the non-significant predictor or should I leave it in as it is a better model?


I am using a package Beamer to create my presentation file. But I need to have some itemize information along with a table, in two different column. But the final shape is not good. I want to reduce the left indent of my itemize itmes. Can you help me?  Here is my code:       \documentclass[slidestop,Liberation serif]{beamer}      \setbeamercovered{transparent}      \usecolortheme{lily}      \usepackage{lmodern}      \usepackage[english]{babel}      \usepackage{mathrsfs}      \usepackage[latin1]{inputenc}      \usepackage{graphics}      \usepackage{graphicx, color}      \usepackage{subfigure}      \usepackage{graphicx}% http://ctan.org/pkg/graphicx      \usepackage{booktabs}      \usepackage{multirow}      \usepackage{beamerthemeshadow}       \begin{document}      \begin{frame}%[shrink=20]     \begin{columns}     \begin{column}{6cm}     \begin{itemize}%[leftmargin=0cm]     \item text 1.     \item text2.     \item text 3.     \item text 4.     \end{itemize}     \end{column}     \noindent     \begin{column}{4cm}     \begin{table}         \begin{tabular}{cc}         \toprule         \textbf{ A} & \textbf{ B} \\         \midrule         A1    & B1 \\         A2    & B2 \\         A3    & B3 \\         A4    & B4 \\         A5    & B5 \\         A6    & B6 \\         A7    & B7 \\         A8    & B8 \\         A9    & B9 \\         A10   & B10 \\         \bottomrule         \end{tabular}%     \end{table}%     \end{column}     \end{columns}     \end{frame}      \end{document}

I can't figure out how to line up the symbols of an itemize environment in beamer with the left part of the main text. In other words, I would like to supress the left margin in beamer itemize lists.  It would be nice if the solution worked with any itemize label defined with  \setbeamertemplate{itemize item}[]   In order to make myself clearer, what beamer produces by default is something like:  Main text. Main text. Main text...    * Item 1    * Item 2    * Item 3    ....   and the desired result is   Main text. Main text. Main text... * Item 1 * Item 2 * Item 3 ....


This problem is covered here:  and here:  and here:  . Closing it as a dupe.  How do I write a bash script frontend that accepts an option that's optional to an internal program, with an argument string that may have spaces in it? This is a single argument even though it has spaces. The key here, and the reason why none of the questions I've found work, is that any type of quoting- be it a string or an array- breaks when the variable is empty. I need to have an unquoted variable, that needs to provide a quoted string when it's of nonzero length.  I'm fond of writing things like this: bash frontend.sh -x argToX that accepts the -x argument and passes it along to a child executable. I may have my own options, but I don't want to eliminate the ability to pass certain things to the child. But! If -x is not set, there will be no argument on the child's command line.  The contents of frontend.sh might look something like this:  #!/bin/bash argx="" # stub of my while loop: while getopts "x:" opt; do case $opt in     x)         argx="-x $OPTARG"     ;; esac done # # complicated bash code here, including other executables that are necessary for my workflow. # /path/to/useful/executable $argx   Since it's not quoted, if it's the empty string Bash will not give an argument to the executable at all. In this way, "argx" is ready to be fully used as an argument to the executable.  But what if argx contains a space? Then it's broken. In that case, I do something like this (note: those command lines might be fairly long and elaborate):  [ -n "$argx" ] && /path/to/useful/executable -x "$argx" || \                   /path/to/useful/executable   But is there a way for me to store stuff in argx, such that:   if it's empty, there's no argument whatsoever sent to the executable? (an empty string argument would probably cause the executable to throw an error) if it's nonempty, create two arguments: the -x, and the string (which may have spaces in it, but regardless, the string is presented as a single argument after the -x)   I'm thinking no, because I need an unquoted evaluation of a variable or command substitution, but if I do that, then $IFS will swing into action.   I could possibly change IFS. This works for my $argx with spaces in it, but if I have multiple arguments that I want to pass along, then simpler ones like "-t target" will be broken (a modified IFS will not allow the -t to be split from the "target").  I think I'm out of luck, but I wonder if there's some magic I'm not thinking of...  (Update: The more I think about it, the more I think that what I'm trying to do is circumvent Bash's word splitting mechanism, which would be pretty impossible. But I was wrong about that, because...)  (Update 2: Thanks guest, who pointed out the shell's parameter expansion trick! I tested it, and it works.) And  (Update 3: I was screwing up my arrays. This simple code does it: argx=("-x" "$OPTARG"). Then all I need to do is add "${argx[@]}" as an argument to my child executable. If not set, nothing is expanded and no argument appears, which is what I need.)

$ ls -l /tmp/test/my\ dir/ total 0   I was wondering why the following ways to run the above command fail or succeed?  $ abc='ls -l "/tmp/test/my dir"'  $ $abc ls: cannot access '"/tmp/test/my': No such file or directory ls: cannot access 'dir"': No such file or directory  $ "$abc" bash: ls -l "/tmp/test/my dir": No such file or directory  $ bash -c $abc 'my dir'  $ bash -c "$abc" total 0  $ eval $abc total 0  $ eval "$abc" total 0


Introduction  There are many questions on SE with the long and fruitful discussions in comments. Such discussions often involve replying to other commenters using @username approach  Problem  Possibly, this is my subjective experience, but sometimes it is hard to follow which comment replies to which. Vice versa, it is sometimes hard to find the reply to the comment among a pile of others. For instance, the comments by Peter reply to the fist two commenters, but it takes some mental effort to understand this. To get clearer understanding of the discussion, reader needs to parse through the comments above and to restore the links.     Proposed solution - comment hierarchy  There is nothing innovative in this feature request, some popular websites use this technique (e.g. Quora, Reddit, ). The example from Reddit is shown on the screenshot below:    As we can see, this solution provides several advantages for users compared to the existing structure:   Indentation provides additional clarity for the reader Eliminate the misspelling of @username and, thus, making sure that the right person is notified when gets a reply  Similarly, if the commenter forgets to add @ the right person would still be notified No need to see whether the question in comments received a reply or not Parent and children comments are close to each other - so it is very easy to focus only on one aspect of discussion If the comment receives more that one reply, it is much easier to track all replies Ability to minimize the comment branches allow to focus on the single one, or just to save space on the page   Shortcomings  Certainly, there are possible drawbacks of the solutions:   User cannot answer to several people. AFAIK  with the current system we can't either (notification is sent only to one) Chronicity is partially lost, since it is not obvious when the comment was added. Can be mitigated by adding sorting options The text shrinks as the replies go deeper, due to indent. Lack of space for realization of modification   I think the proposed modification would improve the user experience primarily because it would bring more structure to the discussions in comments. However, due to the possible opposition of experienced users, this feature may be added as option.

The conversation often continues in the Comments and important information is held in the comments. I'd like to have threaded comments there.


The final values for x and y should be x = 4 and y = 21. I understand why y = 21, but why is x = 4? Should "a = 5" not change the value to 5? Thanks  int f(int a, int *b){     a = 5;     *b = *b + 3*a; }  int main(){     int x, y;     x = 4;     y = 6;     f(x, &y);     // What are x and y now? }

What is the difference between    a parameter passed by reference a parameter passed by value?   Could you give me some examples, please?