Allowing Underprivileged Users to Install Fonts on Windows 7

I've run into this huge issue with a graphic designer.  They want to be able to install fonts they have downloaded.  This user is a non-admin user on the local machine and a non-admin user on our network.  I believe that User Access Control on the local machine blocks regular users from installing fonts; this particular user has been given read and write privileges for C:\Windows\Fonts.  The only solution I see is disabling UAC when fontview.exe is running, which I have no idea how to accomplish.  Fontview.exe isn't an application you can simply run by itself; it is prompted by opening a font file within the Fonts folder.  Therefore, you can't use task scheduler to run the application with the highest permissions.  Is there any way to have UAC disabled whenever an application is running, rather than creating a shortcut that allows a user to run the application with the highest permissions?  Keep in mind that this user cannot be promoted to an administrator, at any level, and no third party applications can be installed.  Is there any way to accomplish this?  Most simple answers I've found apply to Windows XP or Vista.  In Windows 7, installing fonts is handled by an application that needs to be run with administrative privileges, however the application cannot simply be run by itself; it only runs when a font file is opened.  To reiterate, I'm looking for a Windows 7 solution, not an XP or Vista solution.


Prove that the upper half plane of Cartesian plane is not an affine variety

The question is stated as follows,     Q. Let $R=\{(x,y):y>0\}$ be the upper half plane. Prove that $R$ is not an affine variety.   My attempt was simply first assuming that it is an affine variety and seek for a contradiction. However, I could't proceed further and the solution is as follows     A. If $R=V(f_1,...,f_s)$ then each $f_i$ vanishes on $Z^2_{M_i+1}$ (Note:Though the format is not $\mathbb{Z}$ in the solutions for this "Z" but it probably means "integers") where $M_i$ is the largest power of $x$ or $y$ in $f_i$.   My request is, could someone render the above statement in a somewhat more colloquial or a simpler way? What I do not understand is, why "$R=V(f_1,...,f_s)$"  implies "each $f_i$ vanishes on $Z^2_{M_i+1}$." If $M_i$ is the largest power of $x$ or $y$, why $M_i+1$?  Perhaps another slight confusion is, I am familiar with notation $\mathbb{Z}^n_{\geq 0}$ which means, for the subscript, "elements of the $n$-tuples are $\geq 0$" but here, $Z_{M_i+1}$ means...what? Does it mean all elements are $\geq M_i+1$ though it does not have the "$\geq$" sign?     (continued solution) Thus each $f_i$ is the zero polynomial and so $V=R^2$. Since $R^2 \neq R$ we have a contradiction.   I believe this statement has to do with $f_i$ having "more solutions than its degree $M_i$(implies $f_i$ must be the zero polynomial)" but, since I am not clear with the statements above, I am unsure. And finally, I don't see how this leads to the conclusion  "$V=R^2$."  Essentially, I am full of question marks here. I'll try the thinking on my own once I see what the solution is trying to say. Right now, I don't even see what it's trying to convey due to the lack of my knowledge.  So it would be great if someone can elaborate this solution based on my confusion stated above. Thank you, please comment if anything is unclear


ArrayList is null when returned from function

ArrayList initiated as null in a function and passed to another function. In another function I  checked  null and empty for that list and assigned newly created list if passed list is found null. However when I got back from that function, I found that list still be null. As java is passed by value, any changes made in passed list should be reflected in returned list


'querySelector' on 'Document' is not a valid selector error raised even though id's of divs seem fine

I am trying to add styles via Javascript. For some reason unknown to me, I am getting an error that says my query selector is not a valid selector, even though my ids look correct. Can someone please help me to understand what is going wrong with my code?   var currentRow; var rowCol; for(let i = 0; i < 3; i++) {     var x = i.toString();     currentRow = document.querySelector("#0");     for(let j = 0; j < 3; j++)     {         y = j.toString();         rowCol = currentRow.querySelector("#" + x + y);         if(i == 1)         {             rowCol.style.border = "5px 'solid black'";             rowCol.style.border = "5px 'solid black'";         }          if(j == 0 || j == 1)         {           rowCol.style.border = "5px 'solid black'";         }     }  } <!DOCTYPE html>       <link rel="stylesheet" href="./tictactoe.css">

x

x

x

x

x

x

x

x

x


Meaning of a notation of interget set on another set

What's the meaning of X = {0,1}$^\mathbb{Z}$?


In an application I load strings from configuration of this format stackoverflow.com?questionId={0}. Obviously they're populated at run-time and used in query strings.  I want to log these strings at startup using a method:  void log(string message, params object[] vars)         {             string s = String.Format(message, vars);             Console.WriteLine(s);         }   However as you would expect String.Format throws an exception because calling: log(String.Format("Adding new feed '{0}'", "stackoverflow.com?questionId={0}")) - String.Format tries to substitute {0} inside 'log()'.  Is there an easy way I can escape the { characters so substitution isn't attempted?


Convergence of a Harmonic Continued Fraction

Does this continued fraction converge?  $$\cfrac { 1 }{ 1+\cfrac { 1 }{ 2+\cfrac { 1 }{ 3+\cfrac { 1 }{ 4+\ddots  }  }  }  } $$  ($[0;1,2,3,4, \dots]$)  I tried approximating a few values but I couldn't make out whether it converges or diverges. Can anyone provide a proof whether this converges or diverges. If it converges, please add what it converges to.


How to stop an unstoppable windows 7 service?

I have recently installed a program that deploys an agent which "protects" from peripherals. What it actually does at this point is to block any kind of media I plug to my PC.  I've done some checking and I found the name of this service blocking my peripherals. So, naturally, I've tried stopping it.  First I tried the sc stop, but I was denied the access. Trying to do it by services.msc will result in not even giving me the priviledge to use stop on that service. Same response from taskkill: Access denied... Then I figured I'd try net stop resulting with the 2191 message which if I try net helpmsg 2191 does not give any information. I then decided to surf Superuser and found out about these pstools. But as soon as I try to do the cmd switch with psexec -s cmd I get the message:   Couldn't install PsExec service: access is denied.  Strangely, if I try to use just psexec it does prompt me with the help info. So this was a dead end again.  After all these fails I have decided to just remove it from startup right? So I open msconfig and remove the service from startup, save and finally reboot. Unfortunately, when PC reboots so does the service. By the time I can access the task manager the service is already running, again. Can't really imagine how though.  All these access failures made me think I might not have the required privileges or something, but my user account is set as administrator so I think there's nothing more I can do.


What is the difference between select count(*) and select count(any_non_null_column)?

I seem to remember that (on Oracle) there is a difference between uttering select count(*) from any_table and select count(any_non_null_column) from any_table.  What are the differences between these two statements, if any?


Seem to have exhausted google looking for an answer to a VERY bullet simple code that should work.  void onCollisionEnter(Collision col) {     print ("hit " + col.gameObject.name);     Destroy (gameObject);     }   Bullet object has the above script, SphereCollider (radius a lot bigger than object), RigidBody, not a trigger, not kinematic, is travelling slow. All checked during runtime.  When it hits a wall (Box collider), it just bounces off but no collisionEnter code is ran.  Debug console bubble is on.


Topology on the real numbers such that all polynomials are continuous but cosine is not continuous

So the question asks to find a topology on $\mathbb{R}$ so that all the polynomials are continuous functions from $\mathbb{R}$ to $\mathbb{R}$ but $\cos(x)$ is not continuous as a function from $\mathbb{R}$ to $\mathbb{R}$.   I looked at another similar question in stack exchange:  I think this is a special case of my question since it requires all other functions to not be continuous.   Other than that I thought maybe the solution could be based on how cosine is a periodic function unlike the polynomials, so maybe I should take out some infinite sets from the topology but that still wouldn't be enough since the topology would be closed under unions. So I am not even sure if there exists such topology.


Is there anything preventing a familiar from Readying a Help action?

Suppose the following situation: I want a familiar to give me advantage on melee attacks via the help action. However, I do not want to be yet another adventurer with an owl familiar doing fly-by helps. Instead, I pick something smaller (say, a spider), and have it ride on me.  My idea is thus: The familiar, on its turn, readies an action to help me whenever I attack anybody. Seeing as I close to melee to do that, the familiar is within both 5ft of whoever they're helping and the target, satisfying the range requirement. Is there a RAW reason this shouldn't work?


How to check if a String contains another String in a case insensitive manner in Java?

Say I have two strings,  String s1 = "AbBaCca"; String s2 = "bac";   I want to perform a check returning that s2 is contained within s1. I can do this with:  return s1.contains(s2);   I am pretty sure that contains() is case sensitive, however I can't determine this for sure from reading the documentation. If it is then I suppose my best method would be something like:  return s1.toLowerCase().contains(s2.toLowerCase());   All this aside, is there another (possibly better) way to accomplish this without caring about case-sensitivity?


What does the word "SARGable" really mean?

SQL Server users . I'm wondering if there is an objective implementation-agnostic timeless definition for "sargable."  For instance, WHERE foo LIKE '%bar%' is said by many to be , but some RDBMSs . What then does "not sargable" mean?   Other References


the thread for screwing in the pedal has been stripped on right side. Any way to avoid buying a whole new crank?

Put a new pedal in, and followed advice not to screw it in too hard. Unfortunately, I made it too loose... and the thread on the right crank is now almost completely stripped because the pedal was moving around and abrading it.  Is there any way to replace just the right arm?


I remember this as a book or series of books, from the 90's or before. The technology developed over time, but at the beginning of the book/series the only way to be transported throughout the galaxy was for someone in one location to die, and someone in another location to be transported into their body... just their mind, etc., they leave their own body behind. The only other story I remember from the book/series was of a girl, whose brother was injured after buying a laser axe which hadn't been paid for, so she had to do the transport thing.


First, I’m . I have no issue with that. But the reason given is as follows; :  Extensive deletions take a lot of effort to repair. I have placed your account on hold for 7 days while I reach out to you to avoid any further misunderstandings. Once this matter has been resolved, your reputation score will be restored and your account will resume as normal.  Okay fair enough. My attitude? “Eh…” I’m “beige” in my feelings about this since I’m essentially gone from that site anyway for various reasons not worth elaborating here. So my one sentence response to the note was stated simply and honestly:  I confirm receipt of this message and respect the content of this message.  I truly was not aware my decision to deleted some content would result in a response or suspension like this but hey… Like I said. I respect. Live and learn. Moderators are ultimate curators of content and without content what would Stack Exchange be? Fine. But the purpose of this post is to highlight the fact that ;  for context and future reference 7+ days from now:  This account is . The suspension period ends in 7 days.  Okay, fair enough. I have seen that message on accounts across Stack Exchange in the past and understand that rep gets rolled back and that’s fine. But looking at the content of that 2009 post from Jeff Atwood titled,  none of the reasons include the reason I was put in the “penalty box”: Self-deletion of content. See  that dates to 2009 for reference. Can the list of reasons for “Temporary Suspension” be updated to properly reflect all current reasons a user might be face suspension? So knowing that—and knowing clearly I’m not expecting any of this to change within the window of my personal 7 day suspension—but perhaps either one of two of the following things should be fixed:  Add Suspension Context to the Profile Message: The message on a user’s profile should add clear context to the suspension so there is a clear differentiation between reasons and rationale? Something like, “This account is temporarily suspended for disruptive editing.” in my case and such. Update the Linked Post to Reflect Current Suspension Reasons: Looking at the list of items it seems editing conflicts might be best placed under “Disruptive behavior.” And I don’t see something like this in that list, “Engaging in disruptive editing which lessens value of site content.” Why not add that to the list?  Past discussions seem contradictory on what suspension summary policy/practice is in 2015 versus 2009. Also, past discussions are quite confusing on this.  states the message specifies reason which it doesn’t; bold emphasis is mine:  During the suspension period there will be a one line explanation that the user is suspended, with a reason (such as "voting irregularities"), which will be different depending on the suspension circumstances. That is all that is available to most users.  And then ; bold emphasis again is mine:  There's an intentionally vague suspension reason at the top of the user's profile while the account is suspended.  But then  seems to completely contradict that and actually agrees with what I am suggesting. Unless I am misunderstanding Shog9’s post? The ; maybe “to cool down” should fit my case but is clearly not being used? How about adding “disruptive content removal/interaction.” Utterly hilarious postscript. Also, here is a post script that made me laugh: My efforts to delete my own posts from the meta “Science Fiction and Fantasy” site—which now has rewarded me with a suspension—has also rewarded me with a “drumroll please” !  Delete own post with score of 3 or higher  So if I have been suspended due to deletion of content, I’m suspended but ultimately still rewarded for the exact actions that led to the suspension?


Is it possible to nest a 'find -exec' within another 'find -exec'?

Something like the following is what I what I'm after,  but my code doesn't work, no matter how I escape {} and + ;     find ./ -maxdepth 1 -type d -name '.*' -exec \     find {} -maxdepth 1 -type f -name '*.ini' -exec \         md5sum \{\} \\; \;   After seeing this ,  I found that the following code works, but it isn't nesting find as such, and I suspect there is a better way to do this particular job.       find ./ -maxdepth 1 -type d -name '.*' \ -exec bash -c 'for x; do     find "$x" -maxdepth 1 -type f -name "*.ini" \     -exec md5sum \{\} \;; \ done' _ {} \+   Is there some way to nest find -exec without the need to invoke  a shell (as above), with all its whacky quoteing and escape constraints?    Or can this be done directly in a single find command,  using a blend of its many parameters?


How to install nvidia optimus graphics card driver in ubuntu?

I have a laptop with nvidia optimus graphics card.I have successfully installed its driver in windows 7. When I tried to install its driver in ubuntu 13 it failed.I need to install the driver so that I can use the specific features of this card(Power saving option).How can I install nvidia optimus driver in ubuntu? please help me ..


"dpkg-divert: error: rename involves overwriting `protocol.txt' with different file `protocol-precise.txt'" while upgrading xorg

This happen after the download of Ubuntu 13.04 and I can't even download stuff because of this problem:  root@Viktor-Dator:/home/viktor# sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: xserver-common-lts-raring The following packages have been kept back: libboost-dev libboost-filesystem-dev libboost-regex-dev libboost-system-dev libboost-thread-dev 0 upgraded, 0 newly installed, 1 to remove and 5 not upgraded. 1 not fully installed or removed. After this operation, 1,646 kB disk space will be freed. Do you want to continue [Y/n]? y (Reading database ... 264683 files and directories currently installed.) Removing xserver-common-lts-raring ... Removing 'diversion of /usr/lib/xorg/protocol.txt to /usr/lib/xorg/protocol-precise.txt by xserver-common-lts-raring' dpkg-divert: error: rename involves overwriting `/usr/lib/xorg/protocol.txt' with different file `/usr/lib/xorg/protocol-precise.txt', not allowed dpkg: error processing xserver-common-lts-raring (--remove): subprocess installed post-removal script returned error exit status 2 No apport report written because MaxReports is reached already Errors were encountered while processing: xserver-common-lts-raring E: Sub-process /usr/bin/dpkg returned an error code (1) root@Viktor-Dator:/home/viktor#    Output off sudo apt-get check  viktor@Viktor-Dator:~$ sudo apt-get check [sudo] password for viktor:  Reading package lists... Done Building dependency tree        Reading state information... Done viktor@Viktor-Dator:~$


Unable to correct problems, you have held broken packages. and apt-get update keeps downloads all list again

so i was trying to install wine i had a problem some of its dependency(win32) were not able to install as it was not able to fetch archives so i decided to update packages and still i had same problem.  what i did next is i removed all of the lists using "sudo rm /var/lib/apt/lists/*" and used apt-get update command. i got such error at the end.     W:    E: Failed to fetch   404  Not Found [IP:IPADDRESS]   E: Some index files failed to download. They have been ignored, or old ones used instead.   and now when i try to install wine i get      Reading package lists... Done   Building dependency tree   Reading state information... Done   Some packages could not be installed. This may mean that you have   requested an impossible situation or if you are using the unstable   distribution that some required packages have not yet been created   or been moved out of Incoming.   The following information may help to resolve the situation:   The following packages have unmet dependencies:    wine-stable : Depends: wine-stable-i386 (= 2.0.4~zesty) but it is not going to be installed Unable to correct problems, you have held broken packages.   and now if i try to update list it starts updating whole list all over again starting from ppa.launchpad.net  please help me to resolve this issue. Thank You!


Materials change when I export a fbx file to Unity

I am pretty new to Blender. I am trying to export a character from Blender to Unity, but when I import it in Unity in FBX file format, the materials get somehow mixed up, so for example the hair becomes blue, but in the blend file it is yellow.  I didn't do any complicated stuff to my material, I just set the color at the Diffuse section. If it matters, I initially checked the Shadeless box, but I unchecked it and it still doesn't work.  I also want to mention that I have all the materials applied to the character, which is only a mesh (it kinda looks like a Minecraft skin, because I chose to do it low-poly).  So should I:   try other formats for exporting? unwrap the model and apply materials in Unity (I don't know how to do it)? give up?   Any help is appreciated.


Suggested edits to posts which no longer exist should be automatically removed

This expands off of  about orphaned tag wiki edits still existing in the suggested edit queue. Today, I also noticed this edit:    This edit was made on a  which was subsequently voluntarily removed by its author. Hence, the Improve button has been removed. Additionally, the  links to a "Page Not Found" which also isn't very useful (does it do that for 10k users too?).  When the post that a suggested edit belongs too gets deleted, so should the suggested edit. The edit gets deleted in all other aspects, since the permalink doesn't even work, but why does it still display in the suggested edit queue?  To tie into the previous issue (linked at the beginning), this should also apply to suggested edits which are made on a tag wiki which is subsequently deleted.


I know that a fresh Ubuntu install can wipe Windows files completely.   But I've heard that Windows writes random hidden data everywhere without your permission. Can there be remains of Windows after a clean install of Ubuntu that can be potentially used by malicious software against your data or passwords?  I had a nasty malware attack recently and left Windows for good, but the software service installed Windows again. So will a fresh Ubuntu install by me over Windows wipe it for good?


read line by line and take a string in line and assign that string to the subsequent line using perl

Data file is fixed length file, and I want to read file line by line and take a string from the current line, and then append that string to the subsequent line and write into another file.  For example1, given the file:  AAABBBB11115678xxxx BBBCCCC22221234YYYY MTD0001abcdARN12345 abcdedfg AA 0002bcde BB 0003defg CCCDDDD33331234zzzz MTD0003qwerTRN56789 defghigk AA 9876bvcn BB 8765zxcv XXXBBBB11115678aaaa YYYCCCC22221234bbbb   The output should be:  AAABBBB11115678xxxx BBBCCCC22221234YYYY MTD0001abcdARN12345 abcdedfg AA 0002bcdeARN12345 BB 0003defgARN12345 CCCDDDD33331234zzzz MTD0003qwerARN56789 defghigk AA 9876bvcnARN56789 BB 8765zxcvARN56789 XXXBBBB11115678aaaa YYYCCCC22221234bbbb   For example2, given the file:  AAABBBB11115678xxxxbedfgd BBBCCCC22221234YYYYabcd MTD0001abcdARN12345 abcdedfg 12345abcd AA 0002bcde BB 0003defg CCCDDDD33331234zzzzqwerty MTD0003qwerTRN56789 defghigk 45677defg AA 9876bvcn BB 8765zxcv XXXBBBB11115678aaaazeftfy YYYCCCC22221234bbbbefgydy   The output should be:  AAABBBB11115678xxxxbedfgd BBBCCCC22221234YYYYabcd MTD0001abcdARN12345 abcdedfg 12345abcd AA 0002bcdeARN12345 BB 0003defgARN12345 CCCDDDD33331234zzzzqwerty MTD0003qwerARN56789 defghigk 45677defg AA 9876bvcnARN56789 BB 8765zxcvARN56789 XXXBBBB11115678aaaazeftfy YYYCCCC22221234bbbbefgydy   I need to implement the above example 2 this with Perl?


I am new to xRDP..and to Linux from the admin point of view..  I have installed xRDP and xfce4 desktop and I am able to connect with Microsoft RDP To my Ubuntu 14.04 x 64 bit desktop / server.  My question is, how can I see (as administrator) all sessions that are currently running and disconnected ?  Is there some solution for this ?  something similar to  the remote desktop manager of windows, That allows to  see all sessions that are running and disconnected, and that can be managed by the administrator (log off, send a msg, disconnect etc.)  I looked over the internet but didn’t find something like this.   Thank you very much  og11


This is a worked out example in my book, but I am having a little trouble understanding it:  Consider the system of equations:  $$x'=y+x(1-x^2-y^2)$$ $$y'=-x+y(1-x^2-y^2)$$  The orbits and limit sets of this example can be easily determined by using polar coordinates. (My question: what is the motivation for that thinking? What should clue me in to thinking that I should use polar coordinates?)  The polar coordinate satisfies $r^2=x^2+y^2$ so by differentiating with respect to t and using the differential equations we get:  $r\cdot r'=x\cdot x'+y\cdot y'$ (I am unclear about how the book even got this first equation from $r^2=x^2+y^2$)   $=x\cdot y+x^2(1-r^2)-x\cdot y+y^2(1-r^2)$ Substitute in $x'$ and $y'$ and then multiple out and replace with $r$, I get this step  $=r^2(1-r^2)$ cancel terms, I get this step too  $r'=r(1-r)$  similarly, the angle variable $\theta$ satisfies $\tan\theta=\frac yx$, so the derivative with respect to $t$ yields $\sec^2(\theta)\theta'=x^{-2}[x^2+xy(1-r^2)-y^2-xy(1-r^2)]=-\frac{r^2}{x^2}$ so $\theta=1$  Thus the solution goes clockwise around the origin at unit angular speed.  I don't understand the $\theta$ step at all or how they reached the conclusion of clockwise around the origin with unit angular speed..  But then it just jumps to saying "the origin is a fixed point, so α(0)=ω(0)={0} but I have no idea how they reached this conclusion..


What documents should I take to the interview for my US B2 visa application?

I am an Indian house wife planning to visit USA for 3 weeks with my husband holding B1/B2 tourist visa. He is working as an Engineer in Dubai and visited USA once. I am holding holding UAE residence visa since 3 years.  My husband own brother is in New Jersey and he can send invitation letter to me. We are planning to stay at their home for 3 weeks.  Please suggest me the chances of getting USA B2 visa for house wife and also any suggestions to carry documents for visa interview?  Appreciate your valuable feedback.  Thanks & Best Regards, Priya


Prove that $n^4+4^n$ is never prime. Here $n$ is any natural number greater than $1$. I have tried by induction hypothesis but to no avail. Can it be done by considering cases when $n$ is odd and when it is even?


insert a VF Page calling a wrapper class on s Standard Page Layout

Use Case:  On a detail page of a page layout (my_object__c), i want to display a a list of records, and allow this user to choose 2 of those records, then click a button to go to a new VF page, if the user selects more than 2, i want him to get a notification of some kind saying you need to select 2 records, I do not want the page refeshed though.  Strategy:  In order to get the checkboxes, I'm using a wrapper class, like this:  and i have that part going by creating a custonm controller...  And when I do a custom controller, I can't put it on that stabdard page layout for my_object__c


I want to add code below a bullet, but it doesn't render it until I delete the - character.


Website Contact Form stopped working when I moved mailserver

I have a Centos server with ZPanel Installed. This server is used for hosting a website. Previously, I hosted mail on this server using a "Roundcube" mailbox however, I moved to exchange therefore, I pointed the domain MX records to the exchange sever and everything seemed to work fine. The website is working on one server and mail is working on another however, I just realized that the website's online contact form is still directing the mail to the "Roundcube" mailbox on the webserver and the mail is not being sent to the Exchange Server.  In Summary, the server was previously like this:     mail.server.com pointed to SERVER1 www.server.com pointed to SERVER1      NOW: mail.server.com points to SERVER2 www.server.com points to   SERVER1   .     SERVER2 should receive ALL mail however, mail which is sent from   SERVER1 (via the web form) goes to the old mailbox on SEVER1 and does   not go to the exchange mailbox on SERVER2   What things should I look for to troubleshoot this?  I found a MX record in the Z/Panel which I removed however, the issue is still occurring.  FYI: I am using Postfix.


Decrypt a message which is encrypted using XOR?

This is a puzzle asked in a contest. Given that encryption , decryption happens as per following rule/code:      Encrypt(PlainTextBytes, KeyBytes){          for(int i = 0;i < PlainTextBytes.length; i++) {              Cipherbytes[i] = PlainTextBytes[i] ^ KeyBytes[i];          }          return Cipherbytes;      }       Decrypt(Cipherbytes, Keybytes){          for(int i = 0; i < Cipherbytes.length; i++) {              Plaintextbytes[i] = Cipherbytes[i] ^ Keybytes[i];          }          return Plaintextbytes;      }       Send(message){          key=Read from file "SymmetricKey.txt"          Convert key to keyBytes and message to messageBytes using ASCII encoding          print "Message to be sent: ", encrypt(messagebytes, keybytes)      }       Receive(receivedmessage){          key = Read from file "SymmetricKey.txt"          Convert key to keyBytes and receivedmessage to receivedmessageBytes using ASCII encoding          print "Message for you : " , decrypt(receivedmessagebytes, keybytes)      }    Given 3 encrypted message sequences as follows      120, 84, 25, 1, 15, 17, 42, 21, 9, 12, 3, 49, 8, 29, 82, 31, 87, 118, 88, 92, 93       125, 87, 44, 7, 31, 41, 6, 8, 17, 51, 14, 17, 42, 27, 86, 19, 66, 92, 88, 86, 7       123, 84, 16, 28, 9, 10, 4, 2, 31, 55, 7, 6, 13, 61, 91, 62, 89, 91, 83, 87, 86    Some one has discovered that there is some flaw in encryption. IMO flaw doesn't lie with code it's in Cipherbytes. Cipherbytes may be having some patterns so that we can decrypt this message.          Is there a way I could get the source message of these three encrypted messages?  I have look at  That question is different from this since that assumed that cipher text uses same pattern to encrypt in this case it's not true . I wrote simple program to test nothing prints on output.  as  char a1[ ]={120, 84, 25, 1, 15, 17, 42, 21, 9, 12, 3, 49, 8, 29, 82, 31, 87, 118, 88, 92, 93 };      char a2[ ]={125, 87, 44, 7, 31, 41, 6, 8, 17, 51, 14, 17, 42, 27, 86, 19, 66, 92, 88, 86, 7};      char a3[ ]={123, 84, 16, 28, 9, 10, 4, 2, 31, 55, 7, 6, 13, 61, 91, 62, 89, 91, 83, 87, 86 };      for(i=0;i<256;i++){             for(int l=0;l<22;l++){                 s1[l] =  (a1[l]^i)^a2[l];                 s2[l] =  (a1[l]^i)^a3[l];             }             flag=1;             for(k=0;k<22;k++){                 if(s1[k]!=s2[k])flag=0;             }             if(flag){                for(int k=0;k<22;k++){                 cout<<(s1[k]^a1[k]^a2[k])<<" ";               }               cout<<"\n";             }     }


How to add a new object to another within an array

I have an array which looks like this: array = [          {code1:            {            number: 2,            name: "e"           }          },          {code2:            {            number:2,            name: "u"           }          }          ]  and I want to add the following as a new object to say "code1" without changing the data it now has. { number: 3, name: "j" }  how can I do it? Thank you!


Task Manager and all other admin right required system apps not opening on click

I have been using windows 10 without any problem until i installed a third party app from a specific site and installed.  After that, Task manager does't opens up when i press ctrl+alt+del   Many options in controll panel wont open until i got to their system folder and opening it from its folder location and right click and choose run as administrator.  I think the software containing some malware almost changed everything related to permissions in windows registry.  If so,Where can i modify that stuff to default, I mean there a lot of stuffs like HKEY_CLASS and all like that. I dont know where excactly there configurations are... Let me know so that i can play around and tweak them back to normal if i am in right place... Thank you


How can I show that the ring $R=F[x,y,z]/(x^2-yz)$ is an integral domain? (Here $F$ is a field.)  I tried to prove this by contradiction. Suppose there are $\bar f, \bar g \in R-\{0\}$ such that $\bar f\bar g =0 $ in $R$, i.e. $fg$ is divisible by $x^2-yz$ in $F[x,y,z]$. But I don't know how to proceed.


How does a calculator determine $\sin(x)$?

I've been wondering this for a while and it may be obvious but I can't think of how it works. From my understanding, to calculate the sine you'd do opposite side length/hypotenuse side length, but the calculator doesn't know these side lengths.  This may sound really dumb to you guys but I'm kinda new to trigonometry so I'd appreciate any help I can get with this.  Thank you!


Show that the phi function is multiplicative $\phi(mn) = \phi(m)\phi(n)$

Show that the phi function is multiplicative $$\phi(mn) = \phi(m)\phi(n)$$    Any nice way to prove this without using induction ? The textbook proof looks bit awkward to me, so I am trying to see if it makes sense using other methods. Appreciate any help :D


OpenID support for Ruby on Rails application

What is current state of the art for enabling OpenID login in Ruby on Rails applications?  This is a community wiki with up-to-date answers to this question. Authlogic The most advanced authentication solution seems to be .  It supports OpenID with .  It supports Rails 4 and 3. Rails 2 is supported in the rails2 branch. You may want to watch  (and the ). There is a sample application called . Devise Devise is flexible authentication framework for Rails.  It supports OpenID with . restful_authentication Another authentication library of choice is  Rails plugin.  Seems like you also need to install  plugin. You may want to watch (old, circa 2007) . Ruby OpenID Raw support for OpenID protocol is handled by  library.


I want to write as a math fraction 1/4 " ( a quarter of inch). I want to write this fraction out of an equation because is a characteristic of an element.


How to put a double-column equation at the bottom of the current page with figure float in LyX?

I am using the IEEE Transaction class in LyX. With a figure float, I was able to put a long equation spanning two columns at the top of the next page, as shown in the pictures below     My questions are: 1. How do I place the long equation at the bottom of the page  and 2. How do I let it appear in the same page (not the next page) where the equation is defined?   Do I need to load some packages? I prefer to still use the figure float in LyX where the labeling and numbering features still work for this long equation than a solution completely using ERT. In that case, I think the numbering and labeling of equations become more cumbersome.


So I am trying to join some data I have (just numbers) to a map on QGIS.   However it when I try to join the data to map it shows up as a string instead of a real.  It's a just a normal exel file. I converted it to a CSV file and was able to join it to my map, however as a CSV file it was still a STRING so I couldn't use graduated symbols.


Are Shadow Conjurations effectively invisible to True Seeing?

With the spell Shadow Conjuration you can essentially cast Summon Monster, however, the summoned creature is an Illusion (or at least from the Illusion school). How does True Seeing react to this?  True Seeing allows you to see through illusions, presumably like they aren't even there. So if you were to conjure up a Wolf with Shadow Conjuration, would the person using True Seeing even have the chance to disbelieve the Wolf for reduced damage? If so this seems like a great way to thwart those that use this spell, because the monsters you could summon would effectively be... well, "Invisible".


Taking 2.82 for a spin and tried to both 'Add' Images as planes, and 'Import' Images as planes.  Neither option is available.  Will this option be back in when 2.82 has it's final release?  Thanks!


What are the available "documentclass" types and their uses?

Some of the available classes of documents in LaTeX are well known and widely used, such as the  and beamer classes, while others are not so well known, such as the  class.   I found  (edit: transcribed)     article for articles in scientific journals, presentations, short reports, program documentation, invitations, ...   proc a class for proceedings based on the article class.   minimal is as small as it can get. It only sets a page size and a base font. It is mainly used for debugging purposes.   report for longer reports containing several chapters, small books, thesis, ...   book for real books   slides for slides. The class uses big sans serif letters.   memoir for changing sensibly the output of the document. It is based on the book class, but you can create any kind of document with it    letter  For writing letters.   beamer  For writing presentations (see ).   which lists the main classes and is a good starting point, but the description is too short and still leaves one wondering when it would be more suitable to choose one class over the other and what the characteristics of each class is. Furthermore, the list is not exhaustive I think, given that I know at least one more document class that is not there (the standalone class, as I mentioned).  So my question is: what are the available classes of documents in LaTeX, and could you provide a brief description of the class and the situations where it would be recommended?   Please give only one class per answer.


Can a shareholder be liable in case of bankruptcy of one of the companies he invested in?

I know it's a silly question before I ask but let's ask it anyway:  Let's say that X buys 10 shares of a public company Y in the stock market.  Let's also assume that Y, at some point, goes bust while X still owns the 10 shares.  Can X, along with the other shareholders, be considered liable for the debts accumulated by Y?


Blocking dialogs in .NET WebBrowser control

I have a .NET 2.0 WebBrowser control used to navigate some pages with no user interaction (don't ask...long story).  Because of the user-less nature of this application, I have set the WebBrowser control's ScriptErrorsSuppressed property to true, which the documentation included with VS 2005 states will [...]"hide all its dialog boxes that originate from the underlying ActiveX control, not just script errors." The  doesn't mention this, however. I have managed to cancel the NewWindow event, which prevents popups, so that's taken care of.  Anyone have any experience using one of these and successfully blocking all dialogs, script errors, etc?  EDIT  This isn't a standalone instance of IE, but an instance of a WebBrowser control living on a Windows Form application.  Anyone have any experience with this control, or the underlying one, AxSHDocVW?  EDIT again  Sorry I forgot to mention this... I'm trying to block a JavaScript alert(), with just an OK button.  Maybe I can cast into an IHTMLDocument2 object and access the scripts that way, I've used MSHTML a little bit, anyone know?


I have downloaded gparted and tried to start with (Alt+F2) but I get a window that informs I must have root-priviliges

Alt+F2 work, but it doesn't give me access to gparted.  I have never worked with a program in the terminal before, just written code/commands.  Do I have to use sudo to open up gparted? And what else? Graeme


$\ell^p\subseteq\ell^q$ for $0<p<q<\infty$ and $\|\cdot\|_q<\|\cdot\|_p$

I'm trying to show the inclusion :  $\ell^p\subseteq\ell^q$ for real-value sequences, and show that the norms satisfy: $\|\cdot\|_q<\|\cdot\|_p$.  I think I can show the first part without much trouble:  Take $a_n$ in $\ell^p$, then the partial sums are a Cauchy sequence, i.e., for any $\epsilon>0$ , there is a natural $N$ with $|S_{n,p}-S_{k,p}|<\epsilon$ for $n,k>N$, and $S_{n,p}$ the partial sums of $|a_n|^p$ and the individual terms go to $0$. So, we choose an index $J$ with $a_j<1$ for $j>J$. We then use that $f(x)=a^x$ decreases in $[0,1]$. This means that $|a_j|^p<|a_j|^q$.  So the tail of $S_{n,q}$, the partial sums of $|a_n|^q$ decrease fast-enough to converge, by comparison with the tail of $S_{n,p}$.  But I'm having trouble showing $\|\cdot\|_q<\|\cdot\|_p$ . Also, is there a specific canonical embedding between the two spaces?


I was reading about the power radiated by an oscillating electric dipole. It then said that monopoles don't radiate.  But a monopole is just a charge, right? And an accelerated charge radiates EM waves. Can someone please explain.


what's the difference betwween (x in array) and (i=0;i<array.length;i++)

What's the difference between them, does the first one really run faster?  for (x in myArray) {     document.write(myArray[x] + "
") }  for (i=0; i<myArray.length; i++) {      document.write(myArray[i] + "
") }


How long can you keep pancake batter in the refrigerator?

How long can you keep pancake batter in the refrigerator ?


Unable to lock (/var/lib/dpkg/) is another process using it?

First of all, I'm new to Ubuntu and Linux in general, so please be gentle. I recently tried to dual boot Windows 7 with the most recent Ubuntu OS (14.04 i believe) and somehow managed to delete my entire windows partition. I decided I would bite the bullet, so to speak, and use Ubuntu exclusively until I can recover my windows and dual boot again.  I have really no other option seeing as final exams are coming up and whatnot.    Anyways, I finished my Ubuntu installation and reboot my computer.  After I hit enter to launch Ubuntu at the initial screen, my display goes purple and stays that way.  Sometimes a black screen comes up that says something about grub. I decided to once again boot the live version from my USB and reinstall, choosing the option to replace my windows hard drive entirely.  Again upon rebooting, I could not advance into the operating system past that first screen.   I've done some googling and I decided that the boot-repair tool was my best bet.  I went ahead and tried to install through terminal but again, no such luck. I used the lines, if that's of any help.   sudo add-apt-repository ppa:yannubuntu/boot-repair sudo apt-get update sudo apt-get install -y boot-repair && boot-repair   Following the sudo-apt-get update command I received the following messages:  E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily  unavailable) E: Unable to lock directory /var/lib/apt/lists/ E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?   Again, I believe boot-repair is my key to recovery here, however I am confident that I could be way off track.  Any and all help would be greatly appreciated.


the disk drive for /dev/mapper/cryptswap1 is not ready yet or not present error on startup

On start-up I get the error:  The disk drive for /dev/mapper/cryptswap1 is not ready yet or not present   but then Ubuntu starts normally.  I recently installed Ubuntu 14.04 in dual boot with Windows 7 using a pendrive. I used rufus to burn the iso on the pendrive.  I was going to try what was written  but I checked the various files before actually running any commands or doing any edits and found a few differences. Also the file resume does not exist in /etc/initramfs-tools/conf.d.  I attached a screenshot of fstab, crypttab, gparted of sda and the contents of conf.d. (I have only one physical hard drive).  This is the gparted screen shot:   This is /etc/crypttab:   This is /etc/fstab:   This is /etc/initramfs-tools/conf.d folder:   How should I enable swap on an encrypted volume?


What would be my variation   E.g subway have 37 million different variations of sandwiches. I'm trying to calculate similar maths for my burger joint and want to know how many combination or variation of burger I have  3 different meat  9 different cheese  13 different filling  6 different salad  12 different sauce  Your able to pick 1., 2 or all 3 meat  Also 1,2,3 or all cheeses together and so on..   I would be grateful if anybody can help Thanks


Finding value of $\lim _{n\to\infty} \int_0^\pi \frac{\sin x}{1+\cos^2(nx)}dx$

We have to calculate $$\lim _{n\to\infty} \int_0^\pi \frac{\sin x}{1+\cos^2(nx)}dx$$ Now I thought that perhaps the integral needs to be calculated in terms of $n$ and then we plug in the limit but I could find no way to do it.   Perhaps it is non-integrable as an indefinite integral but I couldn't find any way to do this even as a definite integral. I observed the fact that the integrand is an even function but even that just serves to reset the limits of the integral.  So now I'm completely stuck. I think Sandwich theorem may be used by establishing two estimates for the integral which are close to the integrand but I'm not sure how to do this. Any help would be appreciated.


How to sort hashmap by value not by keys

I want my code to sort my hashmap based on a value. The user will input the string and it'll count the number of occurrences. The character and its occurrence will be stored into a hasmap. It should be sorted in ascending order not caring about its keys. In my code, if they all have the same value, it sorts in alphabetical order. I don't want it to sort if they have the same values. Desired output: Enter a string: maabccc m: 1 b: 1 a: 2 c: 3 Program's output: Enter a string: maabccc b: 1 m: 1 a: 2 c: 3  public static void main(String args[]){     System.out.print("Enter a string: ");     string = input.nextLine();      char newChar[] = string.toCharArray();     int count[] = countFrequency(string);     Map<Character, Integer> sortedMap = sortByComparator(hm);      for(Entry<Character, Integer> entry : sortedMap.entrySet()){         System.out.println(entry.getKey() + " : " + entry.getValue());     } } public static Map<Character, Integer> sortByComparator(Map<Character, Integer> unsortMap){     List<Entry<Character, Integer>> list = new LinkedList<>(unsortMap.entrySet());      Collections.sort(list, new Comparator<Entry<Character, Integer>>(){         @Override         public int compare(Entry<Character, Integer> o1, Entry<Character, Integer> o2){             return o1.getValue().compareTo(o2.getValue());         }     });      Map<Character, Integer> sortedMap = new LinkedHashMap<>();     for(Entry<Character, Integer> entry : list)         sortedMap.put(entry.getKey(), entry.getValue());      return sortedMap; }


Is it possible to create class that uses nullable int as generic parameter?

I am trying to create class called Stats that uses generic parameter T. I intend to use T as int? or float?. However, when I try to create object of class Stats I get that: Error   1   The type 'int?' must be a non-nullable value type in order to use it as parameter 'T' in the generic type or method .... Any help would be appreciated  Here's my code:   Stats<int?> stats = new PlayerMatchStats(); // PlayerMatchStats inherits Stats   public abstract class Stats<T> : BaseEntity where  T : struct  {  }


I was under the impression that only Dementors are guarding the prison of Azkaban and are only there to keep the inmates on their cells, though after reading again the following passage it put me into thoughts:     'One night, when (the Dementors) opened my door to bring food, I   slipped past them as a dog. It's so much harder for them to sense   animal emotions that they were confused ... I was thin enough to slip   through the bars. I swam as a dog back to the mainland. I journeyed   north and slipped into the Hogwarts grounds as a dog. I've been living   in the Forest ever since.'       Prisoner of Azkaban; chapter 'The Servant of Lord Voldemort'   So Sirius says that he escaped from his cell when the Dementors brought him food.... I say what??? Dementors dont obey anyone, not even the commands of the Ministry of Magic.  So the actual question is, How is the Azkaban prison managed? e.g. who cooks the food? the inmates have blankets, who is washing these blankets etc etc


apache mod_rewrite scenario subdomain capturing from the http_host and passing it as subdomain to other url while rewriting it

i am trying to write two rewrite rules which are PASS THROUGH or PROXY so that i can hide the underlying url.    Case1:  When a request comes to app.domain.com/folder1/folder2/  it should go through a.b.mydomain.com/folder1/folder2/ what ever comes after folder2 in app.domain.com/folder1/folder2/ should be added to a.b.mydomain.com/folder1/folder2/ after folder 2.  Example app.domain.dom/folder1/folder2/search/?q=test  should be passed through a.b.mydomain.com/folder1/folder2/search/?q=test  Case2:  When a request comes to company1.app.domain.com/folder1/folder2/ it should go through company1.a.b.mydomain.com/folder1/folder2/  This company1 may be varying i should be able to fetch it dynamically and append to the second url.  what ever comes after folder2 in company1.app.domain.com/folder1/folder2/ should be added to company1.a.b.mydomain.com/folder1/folder2/ after folder 2.  Example  company1.app.domain.com/folder1/folder2/search/?q=test  should be passed through company1.a.b.mydomain.com/folder1/folder2/search/?q=test  I have tried to write the following :  One rule:  RewriteRule ^([A-Za-z0-9-]+).app.domain.com\/folder1\/folder2\/$  http://%1.a.b.mydomain.com/folder1/folder2/$1 [PT]   and another one i tried  RewriteCond %{HTTP_HOST} ^([a-z0-9]+).app.domain.com RewriteRule ^services/v1/(.*) http://%1.a.b.xyz.com/services/v1/$1 [P]   Some how both of the trials havenot work, Please help me.. thanks


Do I need a transit visa for India If I have a 19 hour of layover in Delhi Airport with Air India?

My family is travelling from Kabul to Sydney via Delhi airport with Air India all the way.  We all have Afghani passports with Australian visas in them. We have a 19 hour layover in the Delhi airport. Do we need visas if we stay inside the airport and do not go outside?


When will we know if our child is left- or right-handed?

Out of curiosity: At what age does one hand gain "advantage" over the other? When do motor skills start differentiating for arms?


I want to create jquery listener to check internet connectivity.         function checkInternetConnection()     {         onConnectionClosed:function(){             dialog.show("Connection closed please wait");         }         onConnectionOpened:function(){             dialog.hide();         }     }          $(document).ready(function(){         checkInternetConnection();     }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>     So, when the connection is turned off, I want to show a dialog to user. When the connection is back I want to hide the dialog. How can I do this?


This is the first sentence of an introductory paragraph     Translation of scientific texts has a long history in North Africa.   Does it sound right? Should it be:     The translation of scientific texts has a long history in North Africa.   Could you please explain why it should or should not be used here?


Retract post-lock votes at rep cost, without erasing history

Background and History Presently, trying to change your vote on a question or answer more than a few minutes after casting it results in this message appearing:  You last voted on this answer xx minutes ago. Your vote is now locked in unless this answer is edited. (click on this box to dismiss)  This has been a source of some contention and many posts on meta. You can see these by looking at the . The justification that I have seen posted for the current behaviour is as follows:   by initially downvoting rival answers to a question you have answered and then removing the downvote once your answer is accepted.   However, a problem remains:  The workaround is ugly and undesirable. If you don't yet have enough rep to edit someone's post yourself, then you need to leave a comment asking them to edit it for you, which is useless clutter to any future reader. On the other hand, if you edit the post yourself, then you'll show up as the last editor in the post's edit history, giving the potentially false impression that the post has changed in some significant way since it was originally posted, especially if the edit comes long after the date of the original post. There is an entirely legitimate use case for undoing your past votes: correcting mistakes, which even the most careful voter may sometimes make.  Example: earlier today I was frustrated after I stupidly downvoted  to a question, believing it to be wrong due to a basic mistake in my own understanding of some SQL syntax. I commented explaining my mistaken reasoning, and my error was quickly pointed out by other commenters. I was simply and objectively wrong, and my downvote was, consequently, without merit. However, by then my vote was locked. It took several further comments (which remain on the page) and several further minutes to inform my innocent victim that he needed to make a token edit to his post in order to let me retract my erroneous downvote. Surely this is not the system working as it should? With this in mind, I wondered if there exists a way to change the vote locking behaviour that:  Is simple, Allows users to undo votes they regret, and Does not in any way make gaming the system easier.  Such a solution would allow those who want to be able to undo votes to get what they want without any downside. I believe such a solution exists. Proposed Solution Allow undoing of votes, but:  Have it cost 1 rep, Don't simply remove all record of the original vote having been cast; instead, have the owner of the affected post see two rep changes in their profile: one for the original vote, and one for the retraction. In other words, record both the original vote and the retraction as separate rep-affecting events. When a downvote is rescinded, don't refund the user a downvote.  Why this would work:  Since removing downvotes would offer a further penalty instead of a refund, it would be impossible to recoup the costs of voting down competitors' answers in bad faith. Any tactical voting (by downvoting rival answers and then retracting the downvote) would leave the same 'paper trail' as it does now, since the record of the original downvote is being kept. Users who are victim of such downvoting would still be able to notice it, and the  would still have access to the data it needs to function. An honourable user who chooses - mistakenly but with good intentions - to pay a point of rep to downvote an answer, would be able to pay the same price to retract that vote. If they were willing to pay the point to downvote, they will presumably also be willing to pay the price of undoing their mistake. Hasty or frivolous votes would be penalised when the user chooses to undo them, so fact-checking and thinking carefully before casting your vote would still be encouraged.


What evidence is there supporting an alternative parentage for Jon Snow?

I've heard speculation that Jon Snow's actual parents may be Rhaegar and Lyanna Stark, but in reading the books I'm not sure what evidence could be used to support this conclusion.  I thought there might have been something in the conversation Davos had before being smuggled into White Harbor, but I couldn't stretch anything that far.  What evidence do proponents of this theory cite?  Does any of it involve stuff in the texts or just sweeping generalizations of the characters' personalities (e.g. "Ned Stark is too honorable to father a bastard").


Two same capacity/model powerbank. Output connected via Y connector (parallel)

If I have 2 same capacity/model of power bank and combine the output via Y connector (parallel), will there be any issue?


How do you store away freshly peeled and sliced potatoes?

After peeling potatoes and slicing them to your desired size, how do I store them away?


When an answer is deleted change person listed as last modifier

When an answer has been deleted the information on unanswered question tabs still says that users modification was the last to the thread. For instance on Stack Overflow right now the top two  are listed as having been modified by .    While waiting for a moderator Zerkms, modified several answers in an effort to remove spam. However, once these answers were removed Zerkms still appears as the last person to modify the thread. While I imagine the hidden/deleted answers still exist somewhere causing this to occur, it can be confusing if you don't know why Zerkms is listed, as his modification is found nowhere within the linked question.  I would propose that when an answer / modification is deleted / rolled back, that the associated user is removed as the last modifier.


Is anti-gravity (i.e. repulsive gravity) possible in theoretical physics?

Is  (i.e. repulsive gravity) possible in string theory?  I have read some articles about scientists making assumptions about the existence of anti-gravity, but is it possible in string theory?


My regex works on regex101 but doesn't work in python?

So I need to match strings that are surrounded by |. So, the pattern should simply be r"\|([^\|]*)\|", right? And yet:  >>> pattern = r"\|([^\|]*)\|" >>> re.match(pattern, "|test|") <_sre.SRE_Match object at 0x10341dd50> >>> re.match(pattern, "  |test|") >>> re.match(pattern, "asdf|test|") >>> re.match(pattern, "asdf|test|1234") >>> re.match(pattern, "|test|1234") <_sre.SRE_Match object at 0x10341df30>   It's only matching on strings that begin with |? It works just fine on regex101 and this is python 2.7 if it matters. I'm probably just doing something dumb here so any help would be appreciated. Thanks!


Massless particles, be they gluons or photons (I can't think of no other), experience no time. How then can we say that they emit gravitons (to convey the information of their changing position to the surrounding spacetime) or other gluons (since the gluon contains color charge)? How can it be that if time seems to stand still for massless particles, that they emit anything? Or is it just that interaction is an instantaneous event? Without reference to an internal structure? One moment it is there, and the next it's not? I think I got confused by someone here saying that photons can't emit gravitons because a photon doesn't experience time. See also  question.


One capturing group in regex but javascript still returns an array

Consider the following regex -- /\d+([a-z]+)\d+/  and the following test string -- 345345dffdfd34534  example code --  var s = '345345dffdfd34534'; var result = s.match(/\d+([a-z]+)\d+/);   Why does javascript return an array instead of just the letters dffdfd that match the capturing group when I try to match the string with regex ? I know it's not a big deal but is this how it is supposed to work or am I doing somethinig wrong?  EDIT: I am not asking how to access the capturing group. I know it is just a case of looking up the array. But why does JS still return two results instead of whats just part of the capturing group?


Google Rich Card JSON-LD not detected - Corporate Information

I'm using structured data in order to get Corporate Information to appear when people search for the company's name on Google.  I'm following the correct structure (data-type: corporate-contacts - sorry can't post more than 2 links) and the Structured Data Testing Tool , and yet the Rich Card section of the Webmaster Tools does not show/detect any Rich Cards as you can see in the following image:    The Fetch as Google runs without problems, the Index Status shows: 0 total index, there are no Blocked Resources, there's a Site Map on site fully configured and the robots.txt has the following contents:  User-agent: * Allow: /   Finally a request to index the root URL and its direct links was made on July 12th, but there are no signs to show if it has finalized or not.  What else can I do in order to show a Corporate Information card in the Google Search results for my company?


Prove that if n is an odd positive integer , then $n^2\equiv1\mod8$.  Can I prove by counter example by inserting several odd numbers?  My work: I insert 1 into n. $8\mid(1^2 - 1) \implies 8\mid0$ I insert 3 into n. $8\mid(3^2 - 1) \implies 8\mid8$


Adding choice of notifications in chatrooms

I have recently noticed that notifications in chatrooms work in the same manner as in the comment section on the site. That is: you are only notified if your username is deliberately tagged (or if it's a comment on your question).   Would it be an idea to allow for notifications to all users that have participated in a specific chat when any new message is added?   This is what I would expect from being used to other chats, and I therefore forgot about a conversation completely while waiting for it to notify me because I am not aware that I must manually go there and look often. The chatrooms are different in use and purpose from comment sections, and you except to be a part of a conversation, not just to leave a comment - which thus needs a different reasoning for these notifications.   I can imagine an on/off button for the notifications, though, since some users might wish to exit the conversation for good at some point and let them avoid the nuisance of being notified.


In Canada for 6 months, going back to US, how long until I can come back?

I'm a US citizen and online business owner. I've been in Canada for 141 days, and have a permitted 180 day stay. I want to leave to the USA to basically reset the 180 days. Can I do that? I don't think I can apply for the visa extension because I'm not "working" in their country by their standards (since it's online) and I'm not a student.   So my questions are: 1.) Can I leave and come back?  2.) If so, how long do I need to be gone? 3.) CAN I apply for an extended visa? Although I never needed one to begin with as a US citizen. (<--cant find this answer on the CIC website)


How can I replicate verbatim's letter spacing in listings?

I was trying to imitate the code listings in the book ,  I understand that it uses the CM TT font. What I am interested is in the proportion between the text and the code, and the treatment of the comments which are formatted as sans serif roman characters of the same size as the code. As I intend to include small text files with the original code  I would like that no additional formatting is needed inside the code.   I have tried the listings package but I have some problem with the width of the characters in the listings environment this is what I have tried  \documentclass[fontsize=10pt]{article} \usepackage{verbatim} \usepackage{lipsum} \usepackage{listings} \lstset{   morecomment=[s]{//},   basicstyle=\ttfamily\footnotesize,    commentstyle=\rmfamily }  \begin{document} \lipsum[4] \begin{lstlisting} void square(float d){return d*d;} // formated with listings \end{lstlisting} {\footnotesize \begin{verbatim} void square(float d){return d*d;} // formatted with verbatim \end{verbatim} } \end{document}   and I get this (compared with the output of verbatim):    The individual letters are identical but the listings ouput uses a lot more space. Is there a way to obtain in the listings package a result similar than in verbatim?


What is the difference between lands and mana?

What is the relationship between lands and mana in Magic and what do each of them do?  A good answer should especially include how a new player should think about them.    Note:  This is an attempt to create a canonical question about the relationship between lands and mana in Magic.  Beginners are often confused about this given the same symbols are used to mean different things across basic lands, non-basic lands, and mana costs.  This can lead to confusion about , about , or even about .


How do I know how many users go to page C from page A through page B using Google Analytics?

Let's say I have a shop where the shopper have to login first, for the sake of example. There is a page called /cart where users can see all of the products they added to the cart from previous pages and proceed with the checkout. If the user is not logged in yet the /cart will go to /login and then will go to /success. Otherwise it will go to /success directly.  Using Google Analytics, how do I know   How many users want go to through the trouble of putting their credentials to process the cart? How many users don't want to do it? How many users that are already logged in, i.e. don't go through the /login? (assuming I don't track the user type using Custom Variables).


I want to use $S = \sum_{k=0} ^\infty (-1)^k \frac{(2k)!!}{(2k+1)!!} a^{2k+1}$ and get the relation $(a^2+1) S'=1−aS$. So far I am just getting $\frac{dS}{da} = \sum_{k=0} ^\infty (-1)^k \frac{(2k)!!}{(2k+1)!!} a^{2k} (2k+1)$, which I am not seeing how to use with S to get that relation. What should I do to progress and get the desired relation?


I was watching a tutorial on making glass, and it included this node, however I wasn't able to find it anywhere, is it an add-on or am I just missing it?


I have a class A and another class that inherits from it, B. I am overriding a function that accepts an object of type A as a parameter, so I have to accept an A. However, I later call functions that only B has, so I want to return false and not proceed if the object passed is not of type B.  What is the best way to find out which type the object passed to my function is?


RSA attack, 1 message with different keys?

There is 1 message, it is encrypted with 6 different keys, each has E = 5. I tried various attacks, but they do not seem to work.   Is it possible to receive a private key / encrypted message? Is it safe to use a small E?


Symmetric probability density function proof

The problem is stated as:  Let $f$ denote the density function of the random variable $X$. $X$ has a symmetric distribution around $a$, in other words, $f(a+h) = f(a-h)$. Prove that $E(X) = a$, provided it exists.  I understand from the general concept that because $X$ is symmetric, the mean--or $E(X)$--should be at $a$, but I am not sure what axioms to use to prove this.


Account created on Data Explorer not linking to my other SE accounts

I wanted to check  on data.stackexchange .Later I just thought to create an account on it using my google account which i use on other stackexchange sites on which i was already logged in(stackoverflow). But when i click on login with Google it automatically creates an account with username jon.doe12878 which is not even linked to my already existing accounts.Below is the screen-shot of list of accounts displayed on my stackoverflow profile:   See  data.stackexchange account is not displayed on my stackoverflow accounts list.  Below is the screen shot of my data.stackexchange account:  I dont know why this is happening and I really what to know the reason


WINE discard alsamixer settings, uses screen as speakers

As I run programs in wine-1.6.2 my screen speakers will be used as default. The default, as changed via alsamixer, is to disable the screen speakers and allow all other sound to flow freely (auto mute: disabled). I have no idea why this happens.  I run Ubuntu 14.04 64-bit. I have no special sound drivers installed. I don't really know how to troubleshoot this issue so I don't have any further information.


I want to know how to Open Settings, WiFi or Bluetooth page programmatically in iOS 6.0.  I know there is a way to open setting page via custom URL but it is deprecated above iOS 5.1.  If there is any way to open the page directly,please let me know, Or provide some example code.  Any Help will be appreciated...


Is there an entire function satisfying $|f(z)|=|z|+1$ for every $|z|\geq2017$?

Is there a holomorphic function $f \in Hol(\Bbb C)$ such that $|f(z)|=|z|+1$ for every $|z|\geq2017$ ?  I tried defining $g(z)=\frac{1}{f(z)}$. Such $g$ is clearly holomorphic and bounded for $|z| \geq 2017$. I want to show that $g$ is holomorphic in $|z| \leq 2017$ and then conclude that $g$ is constant. For that I want to show that $f$ has no zeros in $|z| \leq 2017$. I tried to prove it by Rouche theorem, but didn't succeed. Any ideas?  Edit: the post similar to mine doesn't solve my problem, because the ending of the proof is not clear. Where is the contradiction?


$\mathbb Z[i]/\langle 3+i\rangle$ can be represented as :$\{a+3b+\langle 3+i\rangle\big|~~a,b\in \mathbb Z\}$  How shall I find the total no. of elements in $\mathbb Z[i]/\langle 3+i\rangle$..    please provide some hint how should I proceed?


Where can I download a legitimate Windows 8 ISO image?

I bought a product key for Windows 8 a while ago, but I never got around to using it, because I can't seem to find a 64-bit Windows 8  anywhere.  My processor is 64-bit, but my current installation of Windows 7 is 32-bit, meaning that trying to upgrade from Windows 7 to Windows 8 through the upgrade Assistant would give me a 32-bit ISO image, which is not what I want. I want a 64-bit ISO image, so I can at least use my processor and memory to the fullest.  Where can I find a legitimate verbatim Windows 8 ISO image to use with my product key?  This is not a duplicate. The linked question does not answer me.


The two terms have seemingly become synonymous, but is "user experience" really the same thing as "usability?"   It would seem that some sites, apps or products provide the user with an experience that is, overall, enjoyable without being as usable as they could be. (Facebook and MS Office come to mind).   Can a site, app or product provide a great user experience without providing the best usability?


Bug on homescreen on ELL - not showing what action or username

I just went to ELL.SE and saw this on the homescreen:    ^On chrome  I reloaded the page, and it persisted, so I went to Firefox:    Same bug.


Literature advice: Covariant formulation of classical physics

I am looking for a literature advice about the following. I'ld like to review classical physics (basically all undergrad / grad stuff) under the aspects of a modern covariant formulation with exterior derivatives, covariant derivatives, Lie derivatives or Cartan's exterior covariant derivative.  What is the motivation? Instead of moving forward to general relativity theory as most textbooks do, I'ld like to see the machinery applied to physics I already know. I am well aware that all the different derivatives I have mentioned have different requirements on the manifold, however in classical physics the manifold in question is often $\mathrm R^3$ and fulfills all of them at once (except maybe in thermodynamics). I'ld like to see which formulation of the very same equation the author choose and why, basically what is his stand on which formulation gives the "best" physical interpretation of the equation at hand.  E.g. I have read parts of Theodor Frankel's Geometry of Physics in which he touches electromagnetism and elasticity. In his opinion in classical physics forces should be covecvors (1-forms) and not vectors because they fit much more natural to the concept of work.  Another example would be: for a scalar quantity $f$ we can write $$\Delta f=\star d\star d f=(d\delta +\delta d) f=\nabla^\alpha \nabla_\alpha f$$ while the lhs appears in standard textbooks, it might be favorable to use the second, third or fourth variant, because it will show a connection to similar types of equations easily or will stress properties of $f$ when written with $df$.  I hope the question is not unclear or too broad. I have not attached more than the basic tag to the question because in a sense it would apply too all classical fields.


Does enlarging a character with a reach weapon affect his threat range?

In the PHB on page 147 about reach weapons:     Reach. This weapon adds 5 feet to your reach when you attack with it, as well as when determining your reach for opportunity attacks with it.   In the PHB on page 237 about the Enlarge/Reduce spell:     Enlarge: The target’s size doubles in all dimensions, and its weight is multiplied by eight. This growth increases its size by one category—from Medium to Large, for example. If there isn’t enough room for the target to double its size, the creature or object attains the maximum possible size in the space available. Until the spell ends, the target also has advantage on Strength checks and Strength saving throws. The target’s weapons also grow to match its new size. While these weapons are enlarged, the target’s attacks with them deal 1d4 extra damage.    Even if it's not specifically stated in the rules and it might lead to making the spell that much powerful (especially with the Sentinel feat) I find it unreasonable to tell my players that an enlarged glaive doubles it's dimensions but not it's physical properties like reach.


How to permanently delete data on an android phone including images videos and etc..?

I have and android phone and I usually delete images and also delete them from trash . But I always can recover deleted items by using third party recovery apps like diskdigger and all deleted files can be recovered by doing this way . I was wondering If there is a way to delete anything on my phone permanently which cant be recovered ?


Is the  a fundamental , or can it be inferred from unitary evolution?


How to use the ornamental fonts locally? shall we have a possible list for the future use?

we come across the ornamental fonts, in most of the cases, especially  in designing the title pages and chapter titles, parts, sections etc.,      How to identify the fontfamily name(or how to use the font) locally in our document.   Here is the one way..   \DeclareFixedFont{\titlefont}{T1}{ppl}{b}{it}{0.5in}  To use this, we are going with the very usual way,  {\titlefont{The text which we want}}  which satisfy our needs.  Most of our users are poor in searching the font family and how to use that(including me).  In this post, if we can give a MWE which provides ornamental fonts, it may motivate others to use the others fonts also and will give a motivation to create their title pages using latex itself.  Thanks in advance.  I am using Texlive 2013 as backend and texstudio as a front end, and pdflatex.


Test to see what population an observation came from

I have a population with a mean (mean_1) (which was calculated through many trials and so have a very very small uncertainty in the mean). The standard deviation of the population is 'S'.  I have a second population with mean_2 (which again has a very very small uncertainty) and a standard deviation which is again 'S'.  Say I make a single further observation and the value falls somewhere in between mean_1 and mean_2, is there a test that I can perform to say with what certainty the observation came from population 1 and what certainty it came from population 2?  Thank you.


Why does my model render shady / half-black?

I imported a Wavefront model (OBJ + MTL) and tried to render it using Cycles. Unfortunately, model renders shady / half-black. It seems that only one wheel looks as expected. I can't figure out what causes this behavior.     I would appreciate any help!  P.S. Source Blend file:


I'm making dynamic class name in php like that  <select name="kategori<?php echo $i; ?>" class="kategori<?php echo $i; ?>">   I'm getting $i from a loop , but i also want to   $(document).ready(function() {   var sayi = <?php echo $sayi; ?>    $(".kategori").change(function()   {     var id=$(this).val();     var dataString = 'id='+ id;     var getSoru = "<?php echo TEMA_KLASOR."/doktorPaneli/inc/get_soru.php"; ?>";     $.ajax     ({       type: "POST",       url: getSoru,       data: dataString,       cache: false,       success: function(html)       {         $(".soru").html(html);       }      });   });   Change this name $("kategori") dynamically as i did in php , something like $("kategori".$i) but I ve searched really a lot but didnt find any good resolution for this. If someone help, i would realy thankfull.


Is there any overhead to declaring a variable within a loop? (C++)

I am just wondering if there would be any loss of speed or efficiency if you did something like this:  int i = 0; while(i < 100) {     int var = 4;     i++; }   which declares int var one hundred times.  It seems to me like there would be, but I'm not sure. would it be more practical/faster to do this instead:  int i = 0; int var; while(i < 100) {     var = 4;     i++; }   or are they the same, speedwise and efficiency-wise?


Can we derive the electromagnetic wave equation from $\mathcal{L}_{EM} = -\frac{1}{4} F_{\mu \nu} F^{\mu \nu} $?

Where $ F_{\mu \nu}= \partial_{\mu} A_{\nu}-\partial_{\nu} A_{\mu}$, $A$ being the four-potential. I'm interested in whether or not it's possible to show from this:  $$ \frac{1}{\epsilon_0 \mu_0} E_{xx} = E_{tt}$$ Lower index meaning partial derivative. Sticking to (1+1) dimensions for simplicity.


NoClassDefFoundError when getting BackEnd projet to my FrontEnd

I have a backend project with this in my pom.xml:  <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">   <modelVersion>4.0.0</modelVersion>   <groupId>GestionScolaire</groupId>   <artifactId>GestionScolaire</artifactId>   <version>0.0.1-SNAPSHOT</version>   <packaging>war</packaging>   <build>     <sourceDirectory>src/java</sourceDirectory> ...   Then my FrontEnd project get the backend project with this in my pom.xml  <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>GestionScolaire</groupId> <artifactId>GestionScolaireWeb</artifactId> <version>0.0.1-SNAPSHOT</version> <packaging>war</packaging> <description>project_Spring</description> <name>GestionScolaireWeb</name> <url>http://maven.apache.org</url> <properties>     <java.version>1.6</java.version>     <spring.version>3.1.0.RELEASE</spring.version>     <cglib.version>2.2.2</cglib.version> </properties>  <dependencies>   <dependency>     <groupId>GestionScolaire</groupId>     <artifactId>GestionScolaire</artifactId>     <version>0.0.1-SNAPSHOT</version>     <type>war</type> </dependency>   Matiere  package model;  import java.util.List;  import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.persistence.Version;  @Entity public class Matiere {  ...   I have this error when starting my server:  org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping': Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Matiere  You guys have any idea of why I have this error?  Thanks!


Does Wikipedia misstate Glasser's master theorem

Citing from  and one of its references, , following hold:  Glasser's master Theorem For $f$ integrable,  $\Phi(x) = |a|x - \sum_{i=1}^N \frac{|\alpha_i|}{x-\beta_i}$ and $a$, $\alpha_i$, $\beta_i$ arbitrary real constants the identity \begin{equation}     \mathrm{PV}\int_{-\infty}^\infty f(\Phi(x)) dx =     \mathrm{PV} \int_{-\infty}^\infty f(x) dx     \label{Glasser}     \tag{1} \end{equation} holds.  Now consider \begin{align*}     \Phi_1(x) &= |a|x - \sum_{i=1}^N \frac{|\alpha_i|}{x-\beta_i} \\     \Phi_2(x) &= x - \sum_{i=1}^N \frac{|a\alpha_i|}{x-|a|\beta_i} \end{align*} Then, by Glasser's theorem \ref{Glasser} $$\mathrm{PV}\int_{-\infty}^\infty f(\Phi_1(x)) dx = \mathrm{PV} \int_{-\infty}^\infty f(x) dx = \mathrm{PV}\int_{-\infty}^\infty f(\Phi_2(x)).$$  However, under the change of variables $y = |a| x$ \begin{equation}     \mathrm{PV}\int_{-\infty}^\infty f(\Phi_1(x)) dx =     \frac{1}{|a|}\mathrm{PV} \int_{-\infty}^\infty f(\Phi_2(y)) dy.     \label{my Idea}     \tag{2} \end{equation}  Thus, I assume Glasser's theorem only holds for $|a| = 1$; a quick numerical check seems to support Eq. \ref{my Idea}. Is Wikipedia and MathWorld wrong about this?


The case is closed now. The case is closed by now. The case has been closed by now.   What exactly is the difference between them?


Why should Jess be a victim of time loop in Triangle? Who is the driver at the start of the loop and what is his significance with respect to Jess?


Is there any problem installing ubuntu latest LTS on dell inspiron 15 3567

Can I safely install Ubuntu's latest LTS version (Ubuntu 20.04) on my dell Inspiron 15 3567 without any problems? I am running Windows 10 right now and I want to use Linux.


Settings to improve animation render speed

My system is very underpowered. But I’m hoping, someone might be able to tell me what settings I could use to get the best outcome. I’m using Blender to create a 3D version of my band's logo. I want to animate the camera rotating around the logo, but up close, just viewing small sections at a time. The animation has a particle plane (that uses three circles to animate floating embers). I started a real small render (100 frames last night... and I’m estimating it to take 15 hours, for approximately 4 seconds of animation) My system is iMac 21.5inch, late 2013 2.7ghz quad core intel core i5 8gb ram 1600 MHz ddr3 Graphics - Intel iris pro 1536 mb Engine is cycles on CPU Light bounce total set at 2 Tiles set to 16x16 Resolution 1920px x 1080px 24fps Sampling is set at “render 200” Format is set to avi jpeg Quality 80% Because it’s for social media (insta and Facebook) can I maybe get away with reducing certain things? Or changing settings somewhere to speed up the render?


Is there a Java equivalent for  in C#/.NET? Or any code to accomplish this?  This static method combines one or more strings into a path.


mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect

I am troubleshooting a backup script (bash), and I have limited working knowledge of the current configuration since the last 3 predecessors did not leave any documentation. I do know that my server is running MySQL Server 5.5.37 on a Debian machine. I'm manually testing the script and found mysqldump to be the problem. I realize there are very many posts on this same error message (, , , ), but none of them have worked for me. Running this command mysqldump -uroot -p******** --all-databases > backup.all.sql 2> backup.all.err  produces the following error: Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect  Here's a summary of what I've tried.  Verifying that root user can log in, and is being logged in correctly (ie. USER(), CURRENT_USER();).  I can log in to mysqlwith root user and supplying the -p flag. Yet if I supply the password as part of the cmd (ie. mysql -uroot -p********) I receive the same error as above. ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)   Verified that every user has a password, there are no anonymous users, and root is in the users table with the normal hostnames (list below, shortened). +-------------+--------------+ | user        | host         | +-------------+--------------+ | root        | 127.0.0.1    | | root        | localhost    | +-------------+--------------+   I can run mysqldump -p --all-databases with limited success but will not work for my use case because I'd like the script to run automatically without the need for user interaction (eg. supplying the password before proceeding with the backup process).  Root user has all privileges on all dbs. +-------------------------------------------------------------------+ | Grants for root@localhost                                         | +-------------------------------------------------------------------+ | GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY   | | PASSWORD '*********' WITH GRANT OPTION                            | +-------------------------------------------------------------------+   Values in /etc/mysql/my.conf all seem to be pretty standard and are probably default. There are no additional .conf files.  Tried forcing a connection to localhost (which also forces use of the TCP protocol) mysql -h localhost -uroot -p********    Reviewed and tested each of the  from the MySQL 5.5 docs.  Reset root password (not OS root user) using dpkg-reconfigure mysql-server-5.5  Flushed privileges, just in case, using mysqladmin flush-privileges  Ran mysqlcheck --all-databases in case mysql was corrupted. No errors were found.   Is there any reason why 'root'@'localhost' would still be denied when supplying the password for both mysql and mysqldump? Could both modules be ignoring the password I'm supplying and, if so, why? Lastly, is there anything else that I can try in order to allow me to log in by providing a password as part of the cmd?


Edge Chromium update service causes an annoying error listed in Server Manager

I've installed Edge Chromium on a server running Windows Server 2019.  The Server Manager now reports an error, that the edgeupdate service as stopped:    The eventlog shows an event id 0 for this and for the edgeupdatem service as well.  These two services are started by the Task Manager. You can start them at will, but they stop at once causing a new error - which, in fact, isn't an error, as the service is meant to stop after the update check - but annoying it is constantly having this event listed.   I might remove them from the Tast Manager to prevent this error, but how would Edge Chromium then be updated?


Mesh causing abnormal results with subsurf modifier

Probably an obvious answer, but I can't figure out why my mesh is causing such a weird crumpled up look with the subsurf modifier.  I've gone through to make sure there are no doubles or overlapping vertices, but it still looks weird when I apply the subsurf.  Any idea what I might be doing wrong?      Here is the .blend


Ubuntu 15.10 does not recognize Atheros 0041 wireless card

I have a Lenovo with Qualcomm Atheros QCA61x4 Wireless Network Adapter. I setup it as dual boot Ubuntu 15.10 and Win10. The wireless card works fine on Win10, but is not recognized in Ubuntu. Here is some output from my Linux terminal:  $ lspci | grep Net 01:00.0 Network controller: Qualcomm Atheros Device 0041 (rev 20)  $ sudo apt-get install linux-headers-$(uname -r) ... linux-headers-4.2.0-16-generic is already the newest version.  $ dmesg | grep -c ath10k 0   Please do not mark this question as duplicate of   because its answer     This device is supported in Ubuntu 15.10 with the latest update   was incorrect in my case.    Please advice.


Sum of square root of $n$ primes as a nested square root

$$\sqrt{2}+\sqrt{3}=\sqrt{5+\sqrt{24}}$$ $$\sqrt{2}+\sqrt{3}+\sqrt{5}=\sqrt{14+\sqrt{140+\sqrt{4096+\sqrt{8847360}}}}$$  These are two examples of how sum of k square root of primes (not necessarily consecutive) can be represented as nested square roots.   Is there any way to find all the terms of the nested roots given a set of primes? How do I compute them, individually?  i.e given $$A = [2, 3, 5]$$ representing $$\sqrt{2}+\sqrt{3}+\sqrt{5}$$ how do I get $$B = [14,140, 4096, 8847360]$$ representing $$\sqrt{14+\sqrt{140+\sqrt{4096+\sqrt{8847360}}}}$$  The above are just examples, how do I compute for an arbitrary number of primes? What if the primes are given as  $$A = [a_0, a_1, ..., a_n]$$  How can I compute the nested loop?


How to make package management more efficient when package versions in Ubuntu are lagged?

ORIGINAL TITLE: Why are package versions in Ubuntu so lagged? How to make package management more efficient? (edited to avoid duplicate questions, see comments below)  Backgroud: I started using Ubuntu occasionally since 2009, and used Xubuntu on a daily basis for about four months last year. Now, I have been using Arch Linux in Virtualbox under Windows7 for about two months. Last week, I turned back to update my previously installed Xubuntu for a full Linux setup.  Honestly, it annoyed me a lot. With ArchLinux, updating packages is much much easier than that in Ubuntu.   Under Arch Linux, I rarely have to build binaries from source codes by myself (AUR would do most part of the work). However under Ubuntu, since versions of many packages are much older than their official developer releases, I have to configure and build them bit by bit, tweaking settings, finding missing dependencies all by myself. Sometimes, I am lucky enough to find private repositories (but they could be easily fragmented, and hard to track over time), sometimes I literally have to do a lot research to find out what package contains some files missed. It is very frustrating.  Question:   Why are many packages in Ubuntu so lagged while Arch Linux has more bleeding edge updates? Are there any tips/methods to make package management under Ubuntu more efficient?


Proving Commutative ring with Conditions

Let $R$ be a ring such that ${x^2}-x$ $\in$ $C(R)$ $\forall$ $x$ $\in$ $R$. Prove that $R$ is commutative.  I have tried like this :  Let $x$, $y$ $\in$ $R$. So , ${x^2}-x$ , ${y^2}-y$ $\in$ $C(R)$. Now, we have to prove that $xy$ $=$ $yx$. Now, $y({x^2}-x)$ $=$ $({x^2}-x)y$ ,  $x({y^2}-y)$ $=$ $({y^2}-y)x$. From these , I got that $x(x-y)y$ $=$ $y(x-y)x$ . Now I am stucked. Please help.


How is adding something like     If my answer has helped you, please accept it by ticking the green check mark   interpreted by other SO folks?  Would I be considered a beggar? Do I have the right to demand it in first place or is it totally down to the OP?


I am exporting some tables from PostGIS to a geopackage. My command to do is task is as follows ogr2ogr -append -f GPKG E:\workspace\test.gpkg PG:service=XXXX -where app_einzugsgebiet.hauptgemeinde=70346  app_einzugsgebiet -nln Einzugsgebiet -nlt MULTIPOLYGON -lco GEOMETRY_NAME=shape -a_srs EPSG:31287  Now, I would like to use the WHERE IN clause in my command. However, I could not figure out how. I tried the following command ogr2ogr -append -f GPKG E:\workspace\test.gpkg PG:service=XXXX -where app_einzugsgebiet.hauptgemeinde IN (70319, 70101, 70346) app_einzugsgebiet -nln Einzugsgebiet -nlt MULTIPOLYGON -lco GEOMETRY_NAME=shape -a_srs EPSG:31287  I am getting an error that says ERROR 1: Couldn't fetch requested layer 'IN'!. I tried with square bracket but it did not help either. Obviously, my syntax is not okay. So how do I do that?


Am getting an exception when am trying to start an Activity A from FragmentActivity B. The FragmentActivity B contains two tabs.It also contains a Home button on the custom action bar. When i click on the home button it should jump to activity A. But its not working. Here is the exception.   W/System.err(8394): java.lang.NullPointerException  W/System.err(8394):    at android.app.Activity.startActivityForResult(Activity.java:3190)  W/System.err(8394):    at android.app.Activity.startActivity(Activity.java:3297)  W/System.err(8394):    at com.brihaspathi.activity.BaseActivity.gotoHomeScreen(BaseActivity.java:220)  W/System.err(8394):    at com.brihaspathi.activity.BaseActivity$2.onClick(BaseActivity.java:208)  W/System.err(8394):    at android.view.View.performClick(View.java:3511)  W/System.err(8394):    at android.view.View$PerformClick.run(View.java:14105)  W/System.err(8394):    at android.os.Handler.handleCallback(Handler.java:605)  W/System.err(8394):    at android.os.Handler.dispatchMessage(Handler.java:92)  W/System.err(8394):    at android.os.Looper.loop(Looper.java:137)  W/System.err(8394):    at android.app.ActivityThread.main(ActivityThread.java:4484)  W/System.err(8394):    at java.lang.reflect.Method.invokeNative(Native Method)  W/System.err(8394):    at java.lang.reflect.Method.invoke(Method.java:511)  W/System.err(8394):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:788)  W/System.err(8394):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)  W/System.err(8394):    at dalvik.system.NativeStart.main(Native Method)   And the function on Home button onclick   public void gotoHomeScreen(Activity act) {     try     {         Intent i = new Intent(act,MainActivity.class);         i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);         startActivity(i);         act.finish();     }     catch(Exception e)     {         e.printStackTrace();     } }


How can I block bots from creating MediaWiki accounts and articles?

I created a new MediaWiki website, Speedypedia. It's currently in alpha in two languages - English and Hebrew. I also submitted my website to , but this was a mistake - since then my English version is flooded with spambots and I had to protect it with a username & password. I even added a mathematical captcha but it didn't stop the bots. How can I block bots from my website, without making it hard for real humans, including those who are disabled? I prefer an invisible captcha, but since MediaWiki is used by thousands of websites, I'm not sure it's possible (maybe the bots already know how to cheat it).  By the way, there is no spam in my Hebrew version, why? Maybe the spam bots recognize the English language? How can I change my English version not to have spam too? Or maybe the bots only crawled the English list of websites using MediaWiki, I don't know. But I don't want to remove my website from this list, is there any other solution? I don't want users to edit pages anonymously, they have to create an account. Will it help if they will have to validate their email address? Currently email address is optional and they don't have to validate it.  I prefer not to block specific IP addresses, because I consider it .  I'm sorry if this question was already posted before, I found a similar question from 2011 on Stack Overflow, and it's closed, and its answers are not up to date.  Update: I removed my website from the English and Hebrew lists of sites using MediaWiki, and added it to the multilingual list.  I think this question is different than "" because it's a specific question about MediaWiki, which is used in thousands of websites.


Let $R$ be a ring with unity $1$ and let $a,b\in R$ be not s. Is there any counterexample for: $$ab=1\quad\Rightarrow \quad ba=1$$


What is the principle of sorting is used in Python?  >>> dict = {'a':'paul', 'b':'max', 'c':'bill'} >>> dict {'a': 'paul', 'c': 'bill', 'b': 'max'}   Why not?  {'a': 'paul', 'b': 'max', 'c': 'bill'}


": not found" and syntax error in my first ever shell script

The shell script, I am trying to create, should be run by crontab regularly, and it should call a perl script which saves email attachments to a predefined directory.  Here's what I came up with:  backup_day=`date +%Y-%m-%d`  backup_dir=/private-backup/email_attachment_cleaner/korrespondenztest/$backup_day  if [ ! -d $backup_dir ] then     mkdir -p $backup_dir fi  if [ ! -d $backup_dir ] then     echo "Error"     exit 1 fi  output_file=/root/email_attachment_cleaner/history.txt  perl /root/email_attachment_cleaner/email_attachment_cleaner.pl -O $backup_dir -lots-of-further-parameters >> $output_file   When I save this script in /root/email_attachment_cleaner/ and run it with sudo sh /root/email_attachment_cleaner/email_attachment_cleaner.sh, I get the following output:  : not found_attachment_cleaner/email_attachment_cleaner.sh: 2: /root/email_attachment_cleaner/email_attachment_cleaner.sh: : not found_attachment_cleaner/email_attachment_cleaner.sh: 4: /root/email_attachment_cleaner/email_attachment_cleaner.sh: /root/email_attachment_cleaner/email_attachment_cleaner.sh: 19: /root/email_attachment_cleaner/email_attachment_cleaner.sh: Syntax error: end of file unexpected (expecting "then")   It appears to me that the given line numbers are probably "wrong" and should be 1, 3 and 18 instead. However, this output does not help me at all. What's going on here?   I needed quite some time to figure out that empty lines in the script should contain at least a space. Is that right?


Are there any server commands to despawn neutral mobs in Minecraft 1.6.4?

After a rather too succesful experiment with an infinite villager spawner in Minecraft 1.6.4, our server is now overrun by masses (hundreds, if not thousands) of villagers.  Is there a server command, or other simple solution, for despawning such a huge number of mobs?  Since they are neutral/friendly, switching to Peaceful mode is not an option. They are in a sealed off room I can't get close to (due to a literal 0.1 FPS around the zone), so using TNT or Lava isn't exactly possible either.


Using LINQ to SQL, I have an Order class with a collection of OrderDetails.  The Order Details has a property called LineTotal which gets Qnty x ItemPrice.   I know how to do a new LINQ query of the database to find the order total, but as I already have the collection of OrderDetails from the DB, is there a simple method to return the sum of the LineTotal directly from the collection?  I'd like to add the order total as a property of my Order class. I imagine I could loop through the collection and calculate the sum with a for each Order.OrderDetail, but I'm guessing there is a better way.


A set $A\in \Bbb{R}^n$ is compact $\iff$ every continuous function on $A$ is bounded. I have a problem proving the direction according to which $A$ is compact. First direction I said: If $A$ is compact, then since it is bounded, so is every continuous function whose domain is $A$, according to Weierstrass. Supposing that every continuous function on $A$ is bounded, assuming by contradiction that there is a set $x_n\in A$, such that $x_n\to x$ but $x\notin A$. For every such $f$, $\lim\limits_{n\to \infty}f(x_n)=f(\lim\limits_{n\to \infty}x_n)=f(x)$ which means I arrive at no contradiction. Maybe it has something to do with the fact that $f$ isn't necessarily defined on $x$ as $x$ is not in $A$? If so, how is it argued? Any help would be much appreciated.(Besides, can you help me with the tags? It is a question from my calculus course, but I am not sure what tag fits the best.)


If there is f in [a, b] such us f(a) =f(b)=0,f continuous and can be derivated in(a, b) then prove that f'(x) - kf(x) =0 for every k in R, has one root in(a, b). I can imagine it like a cycle that has R = ε and R can grow, with center (x) moving on δ between in(a, b),but this is not proof. Any help is appreciated.


Prove $f$ is continuous if $f(\overline{A}) \subset \overline{f(A)}$ for all subsets $A$.

Let $X$ and $Y$ be topological spaces. Suppose that $f: X \rightarrow Y$ is a function satisfying: For every $A \subset X$, $f(\overline{A}) \subset \overline{f(A)}$.  Prove $f$ is continuous. $\textbf{Proof:}$ Let $X$ and $Y$ be topological spaces. Suppose $f: X \rightarrow Y$ is a function satisfying $\forall A \subset X$, $f(\overline{A}) \subset \overline{f(A)}$.  Let $a \in \overline{A}$ and then $f(a) \in \overline{f(a)}$.  Let $V \subset Y$ be open with $f(a) \in V$.  By way of contradiction, suppose $\forall \, \text{open} \, U \subset X$ with $a \in U$, $f(U) \not \subset V$.  So, $\forall a \in U$, $b \in X \backslash f^{-1}(V)$ is also $b \in U$.  Then, $a \in \overline{X \backslash f^{-1}(V)} \subset \overline{Y \backslash V}$ $\rightarrow \leftarrow$ (contradiction!) because $V \cap Y \backslash V = \emptyset$.  $\therefore f$ is continuous. $\,\, \blacksquare$