I stumbled over the following which made me a bit puzzled:  A user (quite low rep) asked a question whose solution appeared immediately tricky, but unfortunately it was quite unclear, ambiguous and required clarification.  Shortly after, another user replied to that unclear question with an almost ridiculous simple answer. That made me immediately think that the user who answered has apparently completely missed the underlying possibly hidden tricky problem.  IMHO, his overly simplistic answer not only requires invalid assumptions about the problem, but it was in no way a suitable approach to solve it.  Nonetheless, the almost funny answer was accepted quickly, and to my astonishment, was up voted seven times in a just a minute. Puzzled.  That made me curious, and thus I queried other answers of the user who answered the question. And not to my surprise they all came out a bit suspect.  After a closer look, and some further queries, I suspected the user is using sock puppets and some other fraudulent activities to gain votes.  I gathered the following:   The main account's answer will be accepted quickly, even when the question is still very unclear and ambiguous and requires clarification. The main account's other answers (accepted or not) receive up votes which happen in batches in a very short duration (which indicates there are a number of sock puppets contributing to the up votes which are all controlled by one person). This happens now and then. The main account's answer is often not quite correct. Oftentimes, there are a few comments from third who question the main account's (accepted) answer or even conclude that it is outright wrong. The main account's answer (not accepted) gets up voted at a certain time, even though there is a far better accepted answer from a third which doesn't get up voted at the same time. This is weird at least.  The suspected puppet, as a questioner, is somewhat unimpressed by the other more correct answers and also by valid comments. The puppet's and the main account's English is somewhat broken and easy to identify. A Puppet and the main account built a group who interact to each other with votes and accepts.  The main account often answers its own question with a bunch of up votes.   It seems there have been answers deleted from the main's account formerly, already.  I'm a bit reluctant to disclose the user.   What should I do in this case?


Which Ubuntu version will suit my computer

My computer Configuration Pentium D102GGC2 2.80 GHz 2GB Ram 1TB Hard disk Ati radeon xpress 200 Plz suggest which ubuntu version will good for me


Proper way to write a acronym that's become a verb

In the Unix programming world there's a command called . It stands for Change Directory.  From what I can research it's at least 35 years old.  I often hear at my job "Then we'll cd into ".  With that usage established I was wondering if there's an established standard for how to specify a past tense use for this term.  I've tried using Target directory couldn't be cd'd but I'm unsure how that sounds to a general audience.


NVIDIA drivers not working after upgrade. Why can I only see terminal?

Tonight I upgraded to 11.04. Problems. Once I had finished the upgrade, I restarted my computer as it told me too. When I got past the ubuntu 11.04 (purple background orange dots), it simply went to the terminal and asked me to log in. I tried to restart the X server with "sudo service gdm restart" but no display popped up. I happened to have a few NVIDIA drivers in my downloads file also so I gave these a try, but the "install script" failed.   After all this I booted Ubuntu in graphic failsafe mode. I then decided to see what would happen if I removed the proprietary driver. Upon doing this and rebooting my Ubuntu booted into graphical mode "yay!". So without the Nvidia drivers I can finally see something other than terminal, but, I need those NVIDIA drivers for my work. So what can I do? I have tried installing the new NVIDIA linux drivers from the NVIDIA website, and have tried Installing the recommended driver via "additional drivers", but both have resulted in my being stuck in terminal.  If you can help or give me some advice PLEASE DO! I am really in a very bad situation...


Can a user break out of  tag maliciously?

Can a user break out of <textarea> tag maliciously?  For example:  post form contains:   <form action='post.php' method='post'>       <textarea name='content'></textarea>       <input type='submit' value='submit'>  </form>   post.php stores htmlentities($content) in the database.  Now the user wants to edit his post, he clicks 'edit' and retrieves the edit form except this time the code is decoded and injected in, for editing purposes.  edit form contains:   <form action='edit.php' method='post'>       <textarea name='content'><?=html_entity_decode($content);?></textarea>       <input type='submit' value='submit'>  </form>   is it possible for the user to break out of the textarea tags, seeing as the content has now been decoded back into normal html. Also should one store htmlentities($content) in the database or simply raw html, then, encode on the display page - what are the SQL dangers of that technique?  I have tried </textarea>, <!-- --></>. To be honest I'm not to familiar with XSS attacks but I usually know how to prevent from them.   In this case can someone break out of the <textarea></textarea> tags?


how we can create android apk for python based application

I have an application in python .How can i create its Android build(apk file). I have no idea how to do this job.Please comment if you have done this. It is a application based on python and opencv related to the image processing.


OpenForis Calc / embedded Tomcat won't start

Trying to run , embedded Tomcat instance fails.  Error seems to appear here:    Apr 17, 2015 2:13:47 AM org.apache.catalina.startup.HostConfig deployDescriptor  INFO: Deploying configuration descriptor /opt/OpenForisCalc/calc-server/tomcat/conf/Catalina/localhost/calc.xml  Apr 17, 2015 2:13:58 AM org.apache.catalina.core.StandardContext startInternal   SEVERE: Error listenerStart   Then if messes up with the rest (this repeats a lot):  Apr 17, 2015 2:13:58 AM org.apache.catalina.core.StandardContext startInternal  SEVERE: Context [/calc] startup failed due to previous errors


Major spam issue... CAPTCHAs and email verification aren't working

We have a user who claims to have a vendetta against our community. We run a fairly large social networking website, and for the past four or five weeks, this particular person (or maybe people?) has been spamming our largest discussion groups and personally attacking other members by leaving hateful comments and death threats on their pictures.  We employ CAPTCHA and email verification on signup. We also have cross post analysis that catches users mass-posting a single thing to a lot of groups.  It seems as if he has hundreds of legit emails (they're all gmail, hotmail, yahoo) and looking at our logs, it seems as though he's sitting there and legitimately solving these CAPTCHAs. For hours. Every single day. When he caught on to our cross post analysis, he started generating random titles and bodies to post. He'll hit a dozen of our top groups with those over and over again until we delete his user account or he gets banned by a moderator.  His IPs change constantly. Many are Tor nodes, some are vanilla HTTP proxies. His user agents change for every new user he signups. Sometimes they're even "GoogleBot", which I thought was amusing.  So my question is, are there best practices we could be following besides employing CAPTCHA and email verification? Ones geared towards an extremely motivated human generating spam?


How to fix "unable to contact snap store" error while installing conjure-up

I am trying to install conjure-up to install the kubernetes on my ubuntu (16.04.1) with the command:  sudo snap install conjure-up --classic   After a few seconds, the below error is shown:  error: unable to contact snap store   I have both http_proxy and https_proxy already setup  Below is the output from snap version  snap    2.34.2 snapd   2.34.2 series  16 ubuntu  16.04 kernel  4.15.0-42-generic   I came across the similar question,  but the answer provided (issue with snap store try after some time) did not solve my issue.


How to login to network share when Microsoft Account is tied to windows login?

I have windows 8.1 and its tied to my Microsoft login.  I only vaguely remember setting this option up during the installation of windows.  When I try to use these credentials to connect to my network share I cannot login.    E.G. \\computerName\c$  It will not accept my credentials.  When I run whoami at the command line I see a different account.  I don't recall ever setting up this other account.    whoami = domain\me (password unknown if I ever even set one up...) Windows Login = me@email.com (password known, does not work with RDP)  What do I need to do in order to login to the network share?


How to pass a string to a command that expects a file?

Suppose a program cook takes one argument: the pathname of a text file containing the recipe of the food to cook. Suppose I wish to call this program from within a bash script, also suppose I already have the recipe in a string variable:  #!/bin/bash  the_recipe="$(cat << EOF wash cucumbers wash knife slice cucumbers EOF )"  cook ...  # What should I do here? It expects a file, but I only have a string.   How can I pass the recipe to the command when it expects a filename argument?  I thought about creating a temporary file just for the purpose passing a file, but I wish to know if there are alternative ways to solve this problem.


Bringing one cell phone from US to India for personal use, is this allowed?

I'm bringing only one cell phone from US to India for personal use, is this allowed ?


Can I go to Iran with my Iranian passport and come back to Canada with my Canadian passport?

Which passport should I use for booking tickets, and which ones for going to Iran and coming back to Canada at each port?


What is the best word for a student who gains highest grades in school or university?

The best student in a school or university


What does the last number in the cron time mean?

So I googled it and I just don't understand the last part. The question problem is as it follows. what is the result if the cron is as follows:  0  2   12   *   0,6    /usr/bin/test   Am I confused at the last 0,6 part since that's supposed to be the year?


What are the roots of the equation $8x^3-6x+1=0$?

Let the roots be, $a,b$ and $c$  We have $$a+b+c=0\tag1$$ $$ab +bc +ca=-\frac68\tag2$$ $$abc = -\frac18\tag3$$


Undeleting a deleted answer doesn't refund the lost reputation before that answer was deleted

Suppose your answer has a score of 0, (1 upvote and 1 downvote). Your reputation gain from the upvote is +10, and the reputation loss from the downvote is -2. So the net reputation gain from your answer is +8.   If you delete your answer, you will lose those 8 reputation points, but if  you then undelete it, you won't get back those 2 points.  I think this is a bug.    I don't know if this behavior is same for questions.


Why does R-Squared change with a no-intercept model?

Suppose I have one binary predictor $x$ and I fit an OLS model: $$y = \alpha + \beta I(x=1) + \epsilon$$ Alternatively I can fit the following model $$y = \beta I(x=1) + \beta I(x=0) + \epsilon$$ Why does the second model give me a higher R-Squared? R example: results <- numeric(1000) for(i in 1:1000) {   X <- rnorm(1000)   b <- X > 0      y <- rep(0, 1000)   y[b == TRUE] <- 1      y <- y + rnorm(1000)      rsq0 <- summary(lm(y ~ b))$r.squared   rsq1 <- summary(lm(y ~ b - 1))$r.squared      results[i] <- rsq1 - rsq0 }  mean(results > 0) # This equals 1


how to skip mysql reserved words from (bulk text)

I am having error:  ( SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 's a immoderate-immoderate-fine boy' WHERE id='4'' at line 1all )  I am actually trying to modify and save bulk text using the method bellow by looping but the problem is I get above error after process few text. As I found mysql reserved words getting matched while looping on bulk text. How can I modify my method to work on bulk text without mysql reserved word conflict problem. Whats the solution?  Text update method:  public function update_des($id,$des){         try         {             $stmt = $this->conn->prepare("UPDATE products SET des='$des' WHERE id='$id'");             $stmt->execute();         }         catch(PDOException $e)         {             echo $e->getMessage();         }      }


Show that there doesn't exist a relation $\succ$ between complex numbers such that (i) For any two complex numbers $z,w$, one and only one of the following is true: $z\succ w,w\succ z,$ or $z=w$ (ii) For all $z_1,z_2,z_3\in\mathbb{C}$ the relation $z_1\succ z_2$ implies $z_1+z_3\succ z_2+z_3$. (iii) For all $z_1,z_2,z_3\in\mathbb{C}$ with $z_3\succ 0$, then $z_1\succ z_2$ implies $z_1z_3\succ z_2z_3$.  Suppose $i\succ 0$. From (iii) we have $i^2\succ 0$, so $-1\succ 0$, so applying (ii) we get $0\succ 1$. But repeating (iii) on $-1\succ 0$ we get $1\succ 0$, a contradiction. So either $i=0$ or $0\succ i$. How can I proceed from here?


Prove that $x^{p^{n}}-x-a$ is reducible over GF(p).

Let $p$ is a prime,$n≥1$ and $n \nmid p^{n}$.Suppose $a\in GF(p)$.Prove that $x^{p^{n}}-x-a$ is reducible over $GF(p)$. I just have no idea. Please help me,thanks!


How to change file names in a directory to new names contained in a file?

I have a directory full of file names that need to be changed. I don't need to simply rename a suffix or prefix, but rather to completely rename the files.  I have the new file names contined a file called new_names.  What command can I use to read the names contained in new_names & rename the files in a directory?


On both the full site and mobile theme, when viewed from Android and Chrome,  the site icons are misaligned as seen below on the drop down site list. Can't replicate on my mac.    But new reports are saying this is affecting multiple systems, mobile and desktop:   Both the Site Drop Down and the HNQ use the same image and css, so it's all connected.


Hash Function to get same value for different messages

I am studying a function where I found the some hash properties.  Hash functions:   Given a code c is computationally infeasible to find m such that h(m) = c Given m is computationally infeasible to find n != m such that h(m) = h(n) It is computationally infeasible to find any pair (m, n) such that h(m) = h(n)   Actually every point is clear to me. But I wondering what is the difference between point 2 and point 3? Can anyone give me any clue? Thanks.


I'm wondering about the concept of image hashing specifically SHA256. Like how do we do it? Can we hash the image based on the binary file? or do we need to convert the data into strings first then do normal hashing? Are there any other ways on how to hash images in C++? without using any libraries?


I have just installed Ubuntu 20.04 on my old PC. I have tried to install GIMP, but without any success. I used   $ add-apt-repository ppa:otto-kesselgulasch/gimp   The process ran for a while, but I got a number of errors and part of the output was      "The repository “cdrom://Ubuntu 20.04 LTS Focal Fossa - Release amd64 (20200 423) focal release” does not have a release file".   N: "Updating from such a repository can’t be done securely, and is therefore disabled by default".   .   .   .   E: The repository  focal release does not have a release file.    If anyone has any suggestions, I should be very grateful.


I understand this is a very basic question, but I cannot find the solution. Google & other Stack Exchange gave me no solution either.  I am following Blender Game Asset Creation guide from Blender Cloud, at some point Aidy selects his whole model and does Shade Smooth. Then he selects some edges and marks them sharp.  In Aidy his tutorial you can clearly see the difference between marking sharp and not. As seen here (this is taken from his tutorial)    When I do this in my Blender File, I see no difference. I've tried removing any doubles, but I can not think of anything else. What could be causing this?


How can I change the master volume level? Using this code  [DllImport ("winmm.dll")] public static extern int waveOutSetVolume (IntPtr hwo, uint dwVolume);  waveOutSetVolume (IntPtr.Zero, (((uint)uint.MaxValue & 0x0000ffff) | ((uint)uint.MaxValue << 16)));   I can set the wave volume but if the master volume is too low this won't have any effect.  Thanks for any help.


Can I use 2.3-2.6 tubeless tires for 2.1 rim

I have recently bought a MTB and it came with 27.5 x 2.1 wheels. The first thing I wanted to upgrade was to go tubeless but can’t find any tubeless tires for 2.1 tires. I wanted to know if it is possible to use a different size tubeless tire and does every rim have a designated wheel size or is it interchangeable.


I'm trying to understand a solution I was given in a tutorial regarding a problem with Carmichael numbers and I was wondering if you guys can help clarify things:  A composite number $m$ is called a Carmichael number if the congruence $a^{m-1} \equiv 1 \pmod{m}$ is true for every number a with $\gcd(a,m) = 1$.   Verify that $m = 561 = 3 \times 11 \times 17$ is a Carmichael number.  Solution given:  Apply Fermat's Little Theorem to each prime divisor of $m$: \begin{align*} a^2 &\equiv 1 \pmod{3}\\ a^{10} &\equiv 1 \pmod{11}\\ a^{16} &\equiv 1 \pmod{17} \end{align*} This somehow then implies that $a^{80} \equiv 1 \pmod{561}$ then accordingly $a^{560} \equiv 1 \pmod{561}$.  I am lost as to how the 3 congruences imply $a^{80} \equiv 1 \pmod{561}$ ($80 = \mathrm{LCM}(2,10,16)$).  Can somebody clarify this for me?   Thanks!


"Simply obfuscate in pretending" - meaning

Consider the following sentence:  "The president simply obfuscates in pretending that the world would be the same even if it were not for the Iraq war."  The way I understood it: The president is aware that the world would NOT be the same if it were not for the Iraq War, but is pretending otherwise to confuse others/conceal the truth. (Probably to push his own agenda). Is this correct?  The question posted earlier on StackExchange is about the meaning of "obfuscate BY pretending that" while I am interested in the meaning of "obfuscate IN pretending that". Therefore, are previous answers still applicable to my new question? (In other words, is the meaning basically the same as in the previous question?)


Getting Java To Recognise The Early Morning Hours In An If Statement Range

I'm trying to make a method where the user inputs the hour (eg. 13:00 for 1pm) into the console (this is a console application) and depending on the hour of the day, my object would be a certain price. I've got Java to recognise the hours, but I'm having so much trouble with the early morning hours (00:00-04:59).  I've converted the time into an integer using substring and parseInt and the if statement below works well up until 23:59, if I type 01:00 or 03:30, nothing happens. Here's what I've done so far, I hope that you can help me. :)  int hrs = Integer.parseInt(hrsString); int mHrs = 0; if (hrs == 00)   mHrs = 24; if (hrs == 01)   mHrs = 25   Etc. up to 04  if ((hrs >= 22) && (mHrs <= 28))    price = 100.00 else if ((hrs >= 05) && (hrs <= 16))    price = 20.00   Etc. up to 21.


Countability of local maxima on continuous real-valued functions

I am working through a bank of previous exams and couldn't figure a problem out to my satisfaction.     Let $f(x) : \mathbb{R} \to \mathbb{R}\,$ be a continuous function.         Show that $f$ can have at most countably many strict local maxima.   Assume that $f$ is not monotone on any interval. Then show that the local   maxima of $f$ are dense in   $\mathbb{R}$.


I bought Dragon Age Inquisition, I have all the disks, the problem is that my computer isn't powerful enough for it and so it lags a lot. I've done all I could, but the only way I can play normally is on the lowest resolution, which isn't fun.  I'll buy it on Xbox instead and I want to sell my current PC version, but I already redeemed the activation code. If I sell it can someone else use it on their PC ?


How to show that this function is surjective? Functional analysis

Let $E$ be a separable Banach space and $(y_j)_{j\in \mathbb N}$ be a sequence in $B(0,1)$ which is dense in $B(0,1)$. Where $B(0,1)$ is the open ball of center $0$ and radius $1$. Show that the map \begin{align} A:~&l_1~~~~~~~~~\longrightarrow E\\ &(x_i)_{i\in\mathbb N}\longmapsto \sum_{i=1}^\infty x_iy_i \end{align} is linear, continuous, surjective.  I don't have any idea to show the function $A$ is surjective. Can someone please help me.


Create additional menu page for node that can be accessed by the nodes' alias with /page?

I created a block using hook_block_view() and hook_block_info(), then set-up the page with hook_menu() using page arguments but this seems to only work for node/id/page?  This is what I have right now:  $items['node/%node/text'] = array(     'page callback' = 'my_module_function',     'page arguments' = 'array(1)', );   I need it to work for the nodes alias which might be article/node title/ or journal/node title/ - they are for two different content types. Going to just article/ or just journal/ shows a View page that displays all the articles or everything from the journal.  Currently whenever I try to go to:     article/node title/page   the article/ Panel page is loaded. However disabling the panel for article/ then going to article/node title/page causes a Page not found error, so it seems it's something to do with my hook_menu() not registering the URL aliases of the nodes?  As node/node id/page works perfectly fine.  Edit: unsure how to reopen, see comments


Cashier function doesn't work for specific cases

This is my first time posting here, so if the code is too long, I'll be more than happy to edit it.  I'm making a cashier, a function that makes change.   The odd thing is: If I buy 1.14 for 1.15, I get a penny back. But if I buy .14 for .15 I get no pennies back.  Also, if I buy .15 for .20, I get a nickel back. But if I buy .20 for .25, I get 4 pennies back. I need help understanding why I'm getting four pennies back instead of 0 pennies and 1 nickel like I'm supposed to. I believe something has to be wrong with the division somewhere.  #include <iostream> #include <cmath>  using namespace std;  int main() {    double buyAmount = 0.0;   double paidAmount = 0.0;   double diffAmount = 0.0;   double smallChange = 0.0;   int dollars = 0;   int quarters = 0;   int dimes = 0;   int nickels = 0;   int pennies = 0;    cout << "Enter purchase amount: ";   cin >> buyAmount;   cout << endl;    cout << "Enter paid amount: ";   cin >> paidAmount;   cout << endl;    diffAmount = paidAmount - buyAmount;    if (diffAmount < 0 ) {      cout << "Error: Make sure paid amount exceeds purchase amount. ";      cout << endl;   }    dollars = floor(diffAmount);   smallChange = (diffAmount - dollars) * 100      quarters = (smallChange / 25);   smallChange = smallChange - (quarters * 25);   dimes = (smallChange / 10);   smallChange = smallChange - (dimes * 10);   nickels = floor(smallChange / 5);   smallChange = smallChange - (nickels * 5);   pennies = floor(smallChange / 1);     cout << "Total Change: $" << diffAmount;   cout << endl << endl;   cout << "dollars " << dollars << endl;   cout << "quarters " << quarters << endl;   cout << "dimes " << dimes << endl;   cout << "nickels " << nickels << endl;   cout << "pennies " << pennies << endl; }


Proving the absolute value of a sequence converges

Prove that if the sequence $\,\{a_n\}\,$ converges to $A$, then $\,\{|a_n\}|\,$ converges to |A|.  Also, is the converse true?


Exception in thread "main" java.lang.NullPointerException: While loop parameters

I am receiving an error message for the parameter of my while loop. I do not understand why. I have initialized all the variables in the parameter. The program reads most of my input file but only prints about half of the output file, and it stops the output in the middle of a read line.   The error is:  Exception in thread "main" java.lang.NullPointerException at dbreadfile.DBReadFile.main(DBReadFile.java:44) Java Result: 1   The program is:  PrintWriter pw; BufferedWriter bw; FileWriter fw; String line = ""; br = new BufferedReader(new FileReader(inFile)); fw = new FileWriter(outFile, true); bw = new BufferedWriter(fw); pw = new PrintWriter(bw);  while((line = br.readLine().trim()) != null){ //ERROR ON THIS LINE    //do stuff }//end while


I found a video on YouTube that shows someone using the command tasksel from the server's boot menu after a fresh install of Ubuntu Server. Simple enough it looked like, but when I go to the options I want to choose for installation it has no information on how to select them, and when I click Enter on one of them it takes me back to the command prompt.  So how do I make a selection of the items listed under tasksel?  I have tried Shift++ to add, but no luck. Anyone know?  I want to install Ubuntu Desktop, as Ubuntu GNOME GUI is not an option in the listing for Ubuntu 17.10 Server.


I want to configure kerberized nfs, and export /data/books  I have 3 servers: ipa, server, client I configured ipa and added nfs service. My Steps are:   In ipa:  ipa service-show nfs/server.linux.rhce.com ipa-getkeytab -s ipa.linux.rhce.com -p nfs/server.linux.rhce.com  -k /etc/krb5.keytab  In server:  scp ipa:/etc/krb5.keytab /etc/krb5.keytab semanage fcontext -a -t krb5_keytab_t /etc/krb5.keytab restorecon -R /etc/krb5.keytab  systemctl start nfs-server firewall-cmd --permanent --add-service=nfs firewall-cmd --permanent --add-service=mountd firewall-cmd --permanent --add-service=rpc-bind firewall-cmd --reload   And in /etc/exports  /data/books   *(sec=krb5p,rw,no_root_squash)  In cleint:  scp ipa:/etc/krb5.keytab /etc/krb5.keytab semanage fcontext -a -t krb5_keytab_t /etc/krb5.keytab restorecon -R /etc/krb5.keytab   When I tried to mount the /book/data on the client  mount -o sec=krb5 server:/data/books /mnt   I got this message:  mount.nfs: an incorrect mount option was specified    Any help!


Continuity in a function defined only at one point

This might be a silly question, but if I have a function defined at only one point. Is the function continuous at that point?


How to find the shortest path between opposite vertices of a cube, traveling on its surface?

I am stuck with the following problem that says:      Let $A,B$ be the ends of the longest diagonal of the unit cube . The length of    the shortest path from $A$ to $B$ along the surface is :     $\sqrt{3}\,\,$  2.$\,\,1+\sqrt{2}\,\,$  3.$\,\,\sqrt{5}\,\,$ 4.$\,\,3$    My Try:   So, the length of the longest diagonal $AB=\sqrt{3}$. If I reach from $A$ to $B$ along the surface line $AC+CD+BD$, then it gives $3$ units. But the answer is given to be option 3.   Can someone explain? Thanks in advance for your time.


Are both kinetic energy and momentum conserved when 2 objects undergo a collision?

for example when two objects undergo a collision and no external force is acting on them. Will both kinetic energy and momentum be conserved or just momentum?


I know mass bends the space around it and I also remember matter can be converted into energy and vice versa, so my question is: can energy interact with space in a similar fashion as matter does?


Unix : taking repeating value from a column and making a file out of it

For example, let's say you have a code like the one below, and you want to take the repeatings from column 2 and make a new file out of it.   Dog     121        234 Cat     121        222 Rate    123        256 Mouse   122        233 Hat     121        230   So you want everything from column 2 that has "121" and make a new file of it


When Morpheus offers the pill choice to Neo, they are still in the Matrix. That leads me to belive that none of the pills are real thus having no particular effect in the real world. Was it some sort of placebo effect that freed Neo from the Matrix or do the pills have an actual effect?


How to disable a plugged-in PCI-e graphic card on OS level?

I have a server running for which I want to have a possility to access it with a screen connected to VGA (very rarely, most of the time it's accessed via SSH). Therefore I have a PCI-e graphic cards plugged in and the VGA cable removed. The graphic card is passively cooled and if I open the case and touch the cool body I can feel a noticable warmth and conclue that it's consuming energy (there're no consumers close to it that could transmit the thermal energy in any way).  If I unplug the card (as suggested in ) I have to built it in every time I want to connect a screen. I would like to avoid that as well as the energy consumption.  The de- and re-activation needs to take place on the OS level (e.g. via SSH) because otherwise I'd need a screen to configure the UEFI (or do that blindly which is no alternative) and run into a chicken-egg-problem.  I'm using Ubuntu 15.04 with Linux 4.0.2. The graphic card is labeled XFX HD 5450 850M and has a VGA, HDMI and D-SUB connector. The mainboard is an ASRock X99-Extreme without integrated graphic.  EDIT: After blacklisting used modules listed in sudo lspci -v (following @WhimsicalWombat's promising answer below) (in my case I had to use the modprobe.blacklist=module_to_blacklist kernel parameter - see  for more details - for radeon and snd_hda_intel) the PCIe graphic card still heats up (passive cooler has > 60 degrees and there's no heat source closeby) and no modules are listed in lspci -v for the devices. The output of lspci -v for the devices is not   01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Cedar [Radeon HD 5000/6000/7350/8350 Series] (prog-if 00 [VGA controll er])         Subsystem: XFX Pine Group Inc. Device 303e         Physical Slot: 4         Flags: bus master, fast devsel, latency 0, IRQ 11         Memory at e0000000 (64-bit, prefetchable) [size=256M]         Memory at fbe20000 (64-bit, non-prefetchable) [size=128K]         I/O ports at e000 [size=256]         Expansion ROM at fbe00000 [disabled] [size=128K]         Capabilities: [50] Power Management version 3         Capabilities: [58] Express Legacy Endpoint, MSI 00         Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+         Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>         Capabilities: [150] Advanced Error Reporting  01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Cedar HDMI Audio [Radeon HD 5400/6300 Series]         Subsystem: XFX Pine Group Inc. Device aa68         Physical Slot: 4         Flags: bus master, fast devsel, latency 0, IRQ 10         Memory at fbe40000 (64-bit, non-prefetchable) [size=16K]         Capabilities: [50] Power Management version 3         Capabilities: [58] Express Legacy Endpoint, MSI 00         Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+         Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>         Capabilities: [150] Advanced Error Reporting   EDIT 2:  suggests to do echo 0 > /sys/bus/pci/slots/$N/power and I have a /sys/bus/pci/slots/$N where $N is number of the slot listed in lspci -v, but there's no power file.  EDIT 3: adding the modaliases of /sys/bus/pci/devices/[device]/modalias to modprobe.blacklist= kernel parameters has no effect on Ubuntu mainline kernels from  and a custom 4.0.5 build with make localmodconfig and activation of all PCI options causes the "Loading initramfs [version]" screen to remain visible for ever while the graphic card is still heating up.


Variation of Parameters: why do we assume the "constraint" $v'_1\left(t\right)y_1\left(t\right)+v_2'\left(t\right)y_2\left(t\right)=0$?

I am reviewing the method of variation of parameters for solving non-homogeneous second-order differential equations that look like \begin{align} a\frac{d^2 y}{dt^2}+b\frac{dy}{dt}+cy=f\left(t\right),\;\;a\neq 0.\tag{1} \end{align} But I have a question. One of the reasons this method didn't quite stick the first time around is because I did not fully understand why we might assume that \begin{align} v'_1\left(t\right)y_1\left(t\right)+v_2'\left(t\right)y_2\left(t\right)=0.\tag{2} \end{align} All I could find on this site is , but that doesn't quite ask what I am asking. For instance, I see why it is done, i.e. to make sure we don't end up with higher-order derivatives of our parameters, but then what if we did not make this assumption? In what case would we necessarily make that assumption?


What is the maximum weight a micro 4/3 lens mount can support without a tripod collar?

What maximum weight one can expect the micro 4/3 lens mount to hold without breaking (for a lens with no tripod collar)?  Are there official specifications about this?


Suppose we have $X_i \stackrel{\text{i.i.d}}{\sim} U(0,1)$ and we define a stopping time $N =\min \{n \mid X_1+\dots +X_n >1\}.$ How can one find the distribution of $X_N$?  I have seen how to find the distribution of $N$ using the renewal function $m(t)$ (in particular, $E[N]=e$) but I cannot figure out how to see the distribution of $X_N$. Through bootstrap methods, I see it is not just uniform, but I don't see why.


Is it correct to say      Dilbert bought the same car as me.   If it is, what are other sentences for other pronouns such as he?     Dilbert bought the same car as David/he/him   I know you can say      Dilbert bought the same car as yours   when you refer to or compare objects.


Always Running Out of Space in Ubuntu on VirtualBox

I am a very new Ubuntu user and I am currently running Ubuntu on VirtualBox on a Mac:     There is literally nothing installed but a small program in my Ubuntu, Nevertheless, my storage (30 GB) is almost full. I ran autoclean, autoremove, clean and similar commands several times and the latest updates are installed.   What can I do to clean up some space without extending the storage capacity? Which files can I delete?


None of my aliases work. I tried the most simple thing, defining an alias to access the Desktop/ folder from $HOME:  # just to show that I do have a Desktop/ folder ~ bf$ cd Desktop/  Desktop bf$ cd ~  ~ bf$ alias dd='Desktop/'  ~ bf$ cd dd -bash: cd: dd: No such file or directory  ~ bf$ echo dd dd   I also tried to save this alias in .bash_profile (in my $HOME directory), source it, but it won't work. What's happening? Also why does echoing the alias just return its name?


Font converted to outline won't fill in Illustrator

Whenever I convert a font to an outline in Illustrator, it seems to lose the fill colour and I have no idea how to get it back. All tutorials I have read show that after converting, the fill colour should be the shape, but all conversions I have done just leave me with an unfillable outline (I tried applying the colour with the swatches).


Java - Naming variables with language conflicts

In the Java world, is there any standard or convention for naming variables that have conflicts with the language itself? For example, a variable/parameter of type Class can't be named class.  I've seen clazz used, but in my opinion that is a bit obnoxious; however, if that is the norm I can join that bandwagon.  C# has the ability to prefix an @ in front of a variable so @class is valid, but to my knowledge Java has no such equivalent.


I need to find a package in R or source code in R that performs batch geocoding using Bing, Yahoo, OpenStreetMap. Do you have any suggestions?


Save output of multiple commands to the same file

For example whoami and date. I can do this that way  whoami>/home/user/folder/file date>>/home/user/folder/file   But i'm sure it can be done in one line without typing path two times. I have tried using  |   but always first command is ignored.


Other word for person who does something to others but does'nt like it done to them

This is a duplicate question but has still not been answered for me. I'm so close to the exact word - I know there is one out there - but the closest word I can find is a hypocrite --     a person who claims to have certain moral principles or beliefs but behaves in a way that shows they are not sincere.    The word I'm looking for is a person who does not claim things, but does thing to another and they consider it wrong or immoral to have done to them.


I just ran the Windows 8 Upgrade Assistant on an older machine (just for fun) and was informed that due to lack of UEFI firmware, Secure Boot would not be supported.   Is it possible for motherboard manufacturers, if they so choose (obviously they won't), to release a firmware flash that would update the BIOS to UEFI (or maybe UEFI+BIOS which some systems have)? Does UEFI require actual hardware support or is it entirely a matter of low-level software?


I have a recipe that is originally a white cake so uses only egg whites. There is a cake mix involved but other added ingredients such as sour cream and more flour but I’m making a chocolate version and want to add whole eggs. Will this alter the consistency of the cake or just make it richer


Prove that the chromatic polynomial of a cycle graph $C_{n}$ equals $(k-1)^{n} + (k-1)(-1)^{n}$

This is a homework question. But I am completely stuck.  My only intuition was to go about it inductively from a "greedy algorithm" maybe know as the deletion-contraction algorithm. And to somehow use the information about the jth cycle to solve the j+1th. But I'm not sure how I'd do it. Thank you very much for looking this over.


how do I calculate effect size for data based on Wilcoxon signed ranks test

How do I calculate effect size for data based on Wilcoxon signed ranks test. Any step-by-step guidelines? What software should I use?


pgfplots to plot a function from [4,4.001]

When I try to plot a function on a small range, the output is an empty graph from 0 to 1 on the x and y axis. What can I do to fix this? My tex looks like this:  \begin{tikzpicture} \begin{axis}[ xmin=4.0, xmax=4.001, samples=60, xlabel=$time$, ylabel={$acceleration$} ]   \addplot [very thick, blue] {5*x-x^2};  \end{axis} \end{tikzpicture}


Javascript, string interpolated function name

I'm a javascript newbie.  I have a line of code:  data.content_teaser.image_square_attachment_url   square can change: I have a variable called contentType that can be 'square', or 'vertical' or 'horizontal'.  In ruby I can use send with the string interpolation, how can I obtain the same in js?  Something like "data.content_teaser.image_" + contentType + "_attachment_url"


Why hash function are used in digital signatures?

In the lectures I see, hash functions are always used when we want to sign a document $d$. My question is why they are used in digital signatures? Maybe, because it is more easy and fast to calculate the signature when is used a "block" signature scheme? Do you know some formal paper or book where this is described? I need that for my thesis.


Compare string array to "FileInfo / GetFiles"

I have a string array that contains all the "Important files" names that I want to keep in a folder. The folder contains txts like "spam.txt", or such, aswell as 1 file named "vital.txt"  The goal would be to move all the other files except important ones to another folder.  This is what I would do :  string[] importantFiles = { "vital.txt", "primordial.dll" };  // with currentDir.GetFiles correctly set foreach (FileInfo fileScanner in currentDir.GetFiles())  {    foreach (string s in importantFiles)    {       // Without the "!", works normally, returns matching files       if (!fileScanner.Name.Equals(s))       {            MessageBox.Show(              "This is SUPPOSED to be a non matching file : " + fileScanner.Name);       }       else // nothing   The problem I'm facing with every method I've tried is to "reverse" the matching process. Finding matching file is ok, but filtering the bad one seems impossible to me.


Change to background image in tmux in urxvt-256 using printf command

I am unable to use printf command when I am inside tmux.  The command for changing background on the fly is:  printf "\e]20;/home/alexsson/Downloads/alternativ.png;\a"   I can do this directly in urxvt:    Also inside screen:    But this printf command is simply not working in tmux:     Any idea how to make it work in tmux?  PS: There is a similar question here: . However, it is difficult to find that question if not using correct searching terms. I think my post will be interesting for a lot more users out there not knowing which searching terms to use but more common (like  simply changing background). There is also not much written in the documentation about this.


How is Newtonian gravity derived from the converse of shell theorem?

My question is about the 'general force' of gravity derived on this article (assuming the external shell theorem, Newton's three laws and that gravitational forces are central apply no torque, as evidenced by Kepler's second law). I have been trying to understand the mathematical proof of this to no avail. My attempt involved plugging a general $F(s)$ instead of $\frac{GMm}{s^2}$ in the proof shown below and equating the total force to $F(s)$, but I don't think this yields anything very useful because I need to solve  $$\int_{r-R}^{R+r} (r^2-R^2 +s^2) f(s)\ ds = 4r^2Rf(r)$$  for the function $f(s)$ and I'm not sure if this can actually be done. (The variable values are the same as defined in the link below, although $R-r$ and $R+r$ may be swapped for any positive constants). If we obtain the correct solution however, $f(s)=\frac{1}{s^2} + ks$, where $k$ is any positive constant.    I don't really follow the equation (4) given in the citation below either, which supposedly proves this fact:   Any heuristic explanation or approach to this proof would be helpful


Programatically add CC addresses to the webfom

Can anyone help we with the code which would add the CC to the webform? I need the CC feature, so my users can "Reply to All" when the communicate.  Thanks! Anton.


Question about positive convergent series.

For every positive convergent series $\sum_{n=1}^{\infty}a_{n}$, can we find another positive convergent series $\sum_{n=1}^{\infty}b_{n}$ such that $\lim_{n\rightarrow\infty}\frac{b_{n}}{a_{n}}=+\infty$? $\\$ I think the answer to the question may be no. Here is an example $\\a_{n}= \begin{cases}   \frac{1}{n^2} &\text{if } n \neq k^{2}(k \in \mathbb{N^+})\\   \frac{1}{n} &\text{if } n= k^2 (k \in \mathbb{N^+}) \end{cases}$. Obviously,$\sum_{n=1}^{\infty}a_{n} \leqslant2\sum_{n=1}^{\infty}\frac{1}{n^2}$. The positive series$\sum_{n=1}^{\infty}a_{n}$ converges. I can't find the positive convergent series  $\sum_{n=1}^{\infty}b_{n}$ satisfies $\lim_{n\rightarrow\infty}\frac{b_{n}}{a_{n}}=+\infty$. If you can find the positive series $\sum_{n=1}^{\infty}b_{n}$ , please tell me. Furthermore, if you can prove it is right or false, I think it will be much better.


How to create different objects depending on the parameter passed?

I have a use-case like this:   Based on the parameter passed - I have to create an object corresponding to it but the underlying functionality remains same.  public void selectType () {   String type = "ABC";   publishType(type); }  public void publishType(String type) { if (type.equals("ABC")) ABCtype publishObject = new ABCtype();  if (type.equals("XYZ")) XYZtype publishObject = new XYZtype();  publishObject.setfunctionality(); }   What is a better way to approach this?  Which design pattern does it fall in?   Another doubt I have is - how to initialize publishObject? It gives an error like this.


Pr[(X and Y) and (X or Y)] is Pr[X and Y]?

I'm having trouble understanding the answer to the following question.    The part I'm particularly stuck on is the jump from step one and two where these two formulas appear to be equated  $Pr[(B_1 \cap B_2) \cap (B_1 \cup B_2)] = Pr[B_1 \cap B_2]$  I can't think of any properties of $\cap$ and $\cup$ that can allow us to do this. I tried drawing a Venn-diagram but was unable to represent $\cup$. Any clarification would be much appreciated!  EDIT:   I saw another solution to this question that simply does this.  Sample space:  BB BG GB GG  Since we already know one child is a boy, we can restrict our sample space to the first 3 entries. Out of those first 3 entries, only 1 entry is BB. The reason I was confused about this solution was that I didn't know the order of the boy and girl mattered. I would have made the "mistake" of making the sample space BB, GG, BG because BG is the same as GB. Please tell me why I'm wrong


Unable to Format, Clean, Change Drive Letter of USB

I have a 16GB USB drive and have been using it along with DBAN to wipe some old PCs. Now when I plug it into my computer it does not show up in Windows Explorer. It appears in Disk Management however the volume is labelled as "(Disk 2 parition 1)", it cannot be assigned a drive letter "The system cannot find the file specified", it cannot be formatted "..because the volume is offline.. ..assign a drive letter". The volume cannot be deleted "The request is not supported". DiskPart cannot CLEAN the disk, "The device is not ready", Diskpart cannot delete the volume or partition either. I have gone into Device Manager and uninstalled the device left it plugged in and restarted my computer and repeated everything again. I have tried looking into ChkDsk however that seems to require the drive have a Drive Letter which the USB does not get assigned as mentioned above. Everything I have tried I have run as administrator. Any help at all would be much appreciated, I am running on Windows 10. Edit: Apparently this question was already answered here:  However the only asnwer to that question that I havent listed as already attempted lists software that is no longer available to download, probably due to it being a 5 year old question. This question is also about the Drive reporting 0 capcity and has nothing to do with my actual issue as my drive does report the correct capacity I just cannot access it. Their drive appeared in Windows Explorer, mine does not. Apparently this:  Also answers my question which it does not it is about a different issue that I am not facing, it suggests the use of CHECKDISK which I have tried and as I have said it does not work


Existence of Holomorphic function (Application of Schwarz-Lemma)

Let, $D=\{z\in \mathbb C:|z|<1\}$. Which are correct?   there exists a holomorphic function $f:D \to D$ with $f(0)=0$ & $f'(0)=2$. there exists a holomorphic function $f:D \to D$ with $f\left(\dfrac{3}{4}\right)=\dfrac{3}{4}$ & $f'\left(\dfrac{2}{3}\right)=\dfrac{3}{4}$. there exists a holomorphic function $f:D \to D$ with $f\left(\dfrac{3}{4}\right)=-\dfrac{3}{4}$ & $f'\left(\dfrac{3}{4}\right)=-\dfrac{3}{4}$ there exists a holomorphic function $f:D \to D$ with $f\left(\dfrac{1}{2}\right)=-\dfrac{1}{2}$ & $f'\left(\dfrac{1}{4}\right)=1$.   With the help of Schwarz lemma & its applications, we find that $(1)$ is false & $(3)$ is true.  But, I can not think about options $(2)$ & $(4)$.


I am trying to create thread safe singleton class here is my code:  #include<iostream> #include<mutex>  using namespace std; std::mutex mtx;  class MySingleton{ private:     static MySingleton * singletonInstance;     MySingleton();     MySingleton(const MySingleton&);     const MySingleton& operator=(const MySingleton&);     ~MySingleton(); public:     static MySingleton* GetInstance();     void foo(); };  MySingleton::MySingleton(){     std::cout << "Ctor\n"; };  MySingleton::~MySingleton(){     std::cout << "Dtor\n"; };  void MySingleton::foo() {     cout << "Inside Foo" << endl; }  MySingleton* MySingleton::GetInstance(){     //double check     if (singletonInstance == NULL){         std::lock_guard<std::mutex> lock(mtx);         if (singletonInstance == NULL)             singletonInstance = new MySingleton();     }     return singletonInstance; }  int main(void){     MySingleton::GetInstance()->foo(); }   I executed this code in VS2015 and found the below error:  1>Source.obj : error LNK2001: unresolved external symbol "private: static class MySingleton * MySingleton::singletonInstance" (?singletonInstance@MySingleton@@0PAV1@A) 1>E:\CPP\Test\Debug\Singleton.exe : fatal error LNK1120: 1 unresolved externals   I am not sure what is missing in my code,just wanted to call the foo() with the singleton instance. Can any one help to figure out the cause of error?


Suspend process running exe file in xaml application

I have a xaml application that has two buttons: one button starts execution of my exe application:  private void RunExe(string exeName)     {         try         {             process = new Process             {                 StartInfo =                 {                     FileName = exeName,                     Verb = "runas",                     WorkingDirectory = workingDir,                     UseShellExecute = false,                     RedirectStandardOutput = true,                     CreateNoWindow = true,                  },                 EnableRaisingEvents = true             };              process.Start();         }         catch (Exception ex)         {             throw ex;         }     }   The other button is a 'Stop' button. When it's clicked i would like to stop exe execution until user confirms in pop up he wants to stop. If he confirms exe process should be stopped, otherwise it should continue. Is it possible to achive?


in The philosophers stone Ron says he has Charlie’s old wand.   Would it work for him properly. And why would Charlie want a new wand?


I would like to concatenate several tables and just keeping the header in the first line (and thus not having a new header each time that a new table has been concatenate). Does anyone know how to do that?  I am currently using:  find "/dir/folder" name "*.dat" -exec cat {} + >> "/dir/folder/table.txt"   but I can get rid of the header with that.


after I updated my server 1 hour ago to 14.04 LTS I can't find/load the sites hosted on that server. I use apache2 and haven't really configured anything else than 2 enabled sites on it. As of now the site only shows all destinations as empty directories.  The sites are still on the server and looks to be intact but somehow unreachable.


Let G be a group of order $pqr$,where $p<q<r$ are primes. Prove that the Sylow r-group is normal.

I need to show that there exist unique r-Sylow subgroup. I know that the number of Sylow r-groups denoted by $n_r$ is congruent to $1mod  \ r$. Also $n_r$ divides $pq$. So $n_r$ can be $1,p,q,pq$. But $n_r$ can not be $p$ or $q$ since $r$ is greater than $p$ and $q$. Now I need to get a contradiction when $n_r$ is $pq$. Could you please help me on this problem.


Does two weapon fighting's qualifying "attack" have to be part of the "Attack" action?

The rules for  state:     When you take the Attack action and attack with a light melee weapon that you're holding in one hand, you can use a bonus action to attack with a different light melee weapon that you're holding in the other hand.   Emphasis mine. Now, under most circumstances you would wield two light melee weapons, attack with at least one of them during your Attack action, and attack again as a bonus action. However, the rules themselves just say "take the Attack action and attack with a light melee weapon", not specifically "take the Attack action to attack with a light melee weapon" or "attack with a light melee weapon during an Attack action".  In other words, both the requirements "took the Attack action" and "made an attack with a light melee weapon held in one hand" need to be met during a turn, but the light melee weapon could be used to attack separately from the Attack action. Is that correct?  An example for how to accomplish this: An Eldritch Knight Fighter takes the  cantrip and the Dual Wielder feat. That Fighter takes the Attack action, attacking with a Greatsword, then uses Action Surge to take an additional action. He drops the Greatsword (everything I've seen indicates that dropping a weapon doesn't even require an object interaction), then draws two light melee weapons as permitted by Dual Wielder. For the second action, the Fighter casts  (SCAG, p. 142) which states:     As part of the action used to cast this spell, you must make a melee attack with a weapon against one creature within the spell’s range   Thus, after those two actions the Fighter would have both taken the Attack action and made an attack with a light melee weapon in the same turn, and I would expect he could use two-weapon fighting to make a bonus action attack with the weapon not used during booming blade.  Note that this scenario is just an example; I'm not 100% certain there's a way to cast booming blade while holding two melee weapons, but I know there are other ways to make an attack outside of the Attack action and I just couldn't find one quickly that was more definitively possible.


Saving intermediate stages during rendering

I am using cycles and progressive rendering. What I need to do is save all the images coming from intermediate stages. For example, I set the sample number to 500 and what I need to get is having 500 images with more and more samples used. Is it possible? I am new to blender. Sorry if I am asking for a very simple thing.  Best, Krzysztof


Localization at finitely many minimal prime ideals

Let $A$ be a commutative ring with finitely many minimal prime ideals $\{p_1,\dots,p_n\}$. Let $A_{p_1,\dots,p_n}$ be the localization of $A$ away from the minimal primes, i.e. $S^{-1}A$ where $S = A-\bigcup_{i=1}^np_i$.   Question 1 (Answered): A paper I am reading claims that $A_{p_1,\dots,p_n} \cong \prod_{i=1}^n A_{p_i}$. I have established by hand that the natural map from left to right is injective, but surjectivity seems harder. What's the best way to see this isomorphism?  Also, the paper uses the notation $\text{Frac}(A)$ for $A_{p_1,\dots,p_n}$ (actually, $\text{Frac}(A)$ is defined to be the ring obtained by inverting in $A$ all non-zero-divisors in $A_\text{red} = A/\sqrt{0}$, but it's easy to see that this is the same thing). This seems odd to me, since, as far as I know, the standard meaning of $\text{Frac}(A)$ is the localization of $A$ at all non-zero-divisors in $A$. Note that if $A$ is not reduced, then there could be zero-divisors which are not in any of the minimal primes, and hence are inverted in $A_{p_1,\dots,p_n}$ (example: $y$ in $\mathbb{Q}[x,y]/(x^2,xy)$).   Question 2 (Still open): Is this definition of $\text{Frac}(A)$ common? Is there a good reason for preferring this definition of $\text{Frac}(A)$ over the other in certain situations (when $A$ is non-reduced)?  One more observation: I've noticed that with this definition of $\text{Frac}(A)$, we have that a map of rings $A\to B$ extends to a map $\text{Frac}(A)\to \text{Frac}(B)$ if and only if the inverse image of every minimal prime ideal in $B$ is a minimal prime ideal of $A$. Geometrically, this says that the map $\text{Spec}(B)\to\text{Spec}(A)$ maps generic points of irreducible components to generic points of irreducible components. Maybe this is relevant...


I have a windows 7 pc but ubuntu does not allow me to go to a normal windows screen so i want to remove ubuntu from my pc.


Cannot install apps from Google Play Store due to insufficient space

I have an SD card which is 3 GB, but I only have 4 downloaded apps and the  internal storage almost reach its capacity and thus yet I have an insufficient space problems.


I am writing code that checks for the permission to write to and delete from certain directories. The first is fairly easy. To whit:  FileIOPermission writePermit = new FileIOPermission(FileIOPermissionAccess.Write, _ArchiveHome); writePermit.Demand();   But, how do I do the same for permission to delete from a given directory?


［I'm Done］ button is available after ［Save Edits］ even when nothing was edited in First Posts queue

In the First Posts review queue, it's possible to click edit to edit the post, then to immediately click Save Edits without having actually modified anything. If we do so, the button I'm Done becomes available even if we didn't actually do anything.  It's not really important, but it shouldn't be possible to click I'm Done unless we actually did something relevant.


Accessing JavaScript variable across functions

I have a variable I'm setting to true, then later checking things in a couple different functions and re-setting it to false if a check fails.  Setting it here...  $(document).ready(function() {     //Set enable_submit to true, then run checks to see if it should be reset to false     var enable_submit = true; }   Doing other checks.  Then, seeing if it's still true or not here...  function change_submit_button_state() {     if (enable_submit == true) {         $("button[type=submit]").prop("disabled", false);     } else {         $("button[type=submit]").prop("disabled", true);     } }   The problem is I'm getting a "ReferenceError: enable_submit is not defined" and the line referenced in the error is the if (enable_submit == true) { line from above.  Is there a way around this?


How do I make the JButton accept the input from the JTextField?

I'm trying to make a program that will translate English words to Japanese and vice versa that are listed in the given arrays. It will also display the image for the given word. For my actionPerformed method, I coded it to be when the "English to Japanese" button is pressed the for-loop will run until the input from the JTextField is the same as the words listed in the englishWords array. But I'm not sure if that's right. Is it my for-loop that is incorrect or am I approaching the code wrong?   P.S. ignore the non-completed image code, I'm just trying to figure out how to compare the words together  public class Translator extends JApplet implements ActionListener {  //English array String[] englishWords = { "Fish", "Lettuce", "Bike", "Chef", "Teacher" };      //Japanese array String[] japaneseWords = { "Sakana", "Retasu", "Jitensha", "Shefu", "Sensei" };  //Image array Image[] wordImages; Image wrong;  //Java util JButton english, japanese; ImageIcon icon; JLabel label; JTextField words;  public void init() {      //Images     wordImages = new Image[5];     wordImages[0] = getImage(getCodeBase(), "Fish.jpg");     wordImages[1] = getImage(getCodeBase(), "Lettuce.jpg");     wordImages[2] = getImage(getCodeBase(), "Bike.jpg");     wordImages[3] = getImage(getCodeBase(), "Chef.jpg");     wordImages[4] = getImage(getCodeBase(), "Sensei.jpg");     wrong = getImage(getCodeBase(), "Wrong.jpg");      //Layout     setLayout(new FlowLayout());     words = new JTextField(null, 10);     english = new JButton("English to Japanese");     japanese = new JButton("Japanese to English");     icon = new ImageIcon(wordImages[0]);     label = new JLabel( icon, JLabel.CENTER);     icon.setImage(wordImages[0]);     label.setIcon(icon);      //ActionListener     english.addActionListener(this);     japanese.addActionListener(this);      //Install     add(words);     add(english);     add(japanese);     add(label); } public void actionPerformed( ActionEvent ae ) {     Object src = ae.getSource();     if(src == english)     {         for(int x = 0; x < englishWords.length; ++x)             if(englishWords[x] == words.getText())             icon.setImage(wordImages[x]);     }     else if(src == japanese)     {         for(int x = 0; x < japaneseWords.length; ++x)             if(japaneseWords[x] == words.getText())                 icon.setImage(wordImages[x]);      }  }


Is it possible that there are still gravitational waves of the big bang?

We already discovered the cosmic background radiation what are the 'leftovers' of electromagnetic radiation of the big bang. Probably gravitational waves of the big bang (if they exists) would be to low to measure at the moment. But according to the unified theorie all forces existed already 'together' in the beginning. So the question is can the really exist today or are gravitational waves just created after a while and only because of matter what is coming together instead of a kind of an 'explosion' like the big bang?


I need to delete the following file which I managed to create with bunzip2:   -rw-r--r--   1 beginner group    67493376 Feb 17 17:30 -C   The following don't work    rm -rf '-C' rm -rf "-C"   My OS is solaris.


Hi I installed Docker for Windows which enabled Hyper-V on my windows 10 machine. Unfortunately this caused Virtual Box to not work anymore, therefore I removed Docker again, but Hyper-V is still activated.  If I try to disable Hyper-V with any of those ways:  on the reboot it will first try to apply the changes and than say that the changes couldn't be applied and reverts, so Hyper-V is activated again.  Has anybody an idea what could be the issue here?


Is mandatory to use void as outerscope in C programming..?

im trying to declare an array of three pointers to functions and invoke the appropriate function based on an index value passed in as an argument im getting confused,this is the code i wrote int brr,func,arr(int *a[3],float *b[5] ,char *c[6])  {     brr();`func();`     printf("%d\n",brr);     return 0;     }


I have always had a doubt in the definition of the Newton's first law. In general, it is stated in a form like:     An object at rest remains at rest, or if in motion, remains in motion at a constant velocity unless acted on by a net external force.   However, we know that there are reference frames in which the first law is not valid, these are the called non-inertial reference frames. So the first law should be stated as "there are reference frames in which an object at rest remains at rest, or if in motion, remains in motion at a constant velocity unless acted on by a net external force". But the most books don't care about this and state the first law like the first way, what to me is incorrect.  I understand a high school book doesn't talk about non-inertial reference frames (this is not simple), but I have already seen a lot of undergraduate and graduate physics books do this. What do you think? This statement is really incorrect?


Is there any risk in keeping lots of assets with one broker?

I'm in the USA. Currently, the bulk of my net worth is in accounts with TD Ameritrade. Right now, that's only about $30,000, but I plan to keep contributing; hopefully in a few decades, I'll have a couple million.  Are there any risks to keeping millions of dollars' worth of assets with one broker? Of course, there's always the risk that the assets in the account will lose value (the stock market could crash or the US dollar could undergo hyperinflation). But that's not what I'm asking; I'm wondering if there's a significant risk I might lose access to the investments themselves.   The scenarios I have in mind are things like:   TD Ameritrade suffers a computer glitch which results in some assets being lost from my account.  TD Ameritrade has financial problems and is unable to pay me the amount of money in my account.  TD Ameritrade goes out of business and the records of my account are lost completely.    Could something like this happen, or can I rest easy knowing that my assets will still be there no matter what?  In case it matters, most of my investments are in ETFs and individual stocks.


Extract date using dos batch script in specific format

I need to extract the current date and time from the system and create SQL queries using a range of dates.  As i am running this on Windows, it will have to be a dos batch script.  Is there a way a can get the date and time in the DDMONYY,HH:MI:SS format? (e.g. 14MAR11,14:25:26)  I would like to generate ten dates in that format with each being 1 minute later than the previous date and time.   I am not an expert in dos scripting but i have found out how to write a loop in dos but not quite sure how to generate the date in the format i want it to be:  for /L %%i in (1,1,10) do (      currentDate = currentDate + one minute     echo "Insert into dateValue(ArrivalDates) values(%currentDate%)" > insert%i%.sql  )   Thanks in advance


How to draw the graph of function x+y=100

Following is the code for drawing the graph of x+y=4. Now i am thinking to draw the graph of x+y=100 for that what are the necessary changes in the given codes.  \documentclass[12pt,a4paper]{article} \usepackage[a4paper,bindingoffset=0.2in,left=0.7in,right=0.7in,top=0.7in,bottom=0.7in,footskip=.25in]{geometry} \usepackage[centertags]{amsmath} \usepackage{latexsym} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsthm} \usepackage{newlfont} \usepackage{enumerate} \usepackage{makeidx} \usepackage{tikz} \usetikzlibrary{backgrounds,intersections} \begin{document} \begin{tikzpicture} \draw[thick,latex-latex] (-2,0) -- (5,0)node[right]{$x$};     \draw[thick,latex-latex] (0,-2) -- (0,5)node[above]{$y$};     \node at (-0.3,-0.3) {O};     \foreach \x in {-1,1,2,3,4}{         \node[fill,circle,inner sep=1.5pt,label=below:$\x$] at (\x,0) {};         \node[fill,circle,inner sep=1.5pt,label=left:$\x$] at (0,\x) {};     }     \draw[thick,stealth-stealth, shorten >= -2cm, shorten <= -2cm,name path =b ] (0,4) -- (4,0)     node[pos=0.65,above,sloped] {$ $};     \foreach \x/\y/\name in {0/4/B,4/0/A}{         \node[fill,circle,inner sep=2.5pt,label={[inner sep=0pt]above right:\name($\x, \y$)}] at (\x,\y) {};     } \end{tikzpicture} \end{document}


Execute a Linux Cron Job permission denied

I'm using  sudo nano crontab -e   and this is in the map:  0 * * * * /companyname/fetch-schema.sh  @reboot sudo python /companyname/ups-shutdown.py   So it should run /companyname/fetch-schema.sh every hour but its not working.  The error i get when i use @reboot /companyname/fetch-schema.sh > /companyname/fetch-schema.sh is permission denied.  and chmod +x /companyname/fetch-schema.sh - chmod 755 /companyname/fetch-schema.sh are not working


How can I determine the method of this DDoS attack?

My server went down earlier - looks like a DDoS. A spike in traffic to around 13mbit, the swap goes from idle to maxed in about 5 minutes, and server stops responding.   I would like to protect against the attack but I can't determine the method. Server logs show no increased http connections or usage, nor mysql or mail usage above usual levels. Server graphs only show spikes in Network, I/O, and Memory Usage:  Memory Usage:  IO Graph:   I can't fathom what type of attack this is. Where could this be targetting and how can I protect against it? All comments gratefully received.


Make bibtex render the author's first name abbreviations fully

I am using bibtex to render my references in the paper. I have a problem in rendering the authors' first names. The bibtex references I am directly copying from Google Scholar. As an example, see the following bibtex entry:  @article{harikrishnan2006non,   title={A non-subjective approach to the GP algorithm for analysing noisy time series},   author={Harikrishnan, KP and Misra, Ranjeev and Ambika, G and Kembhavi, AK},   journal={Physica D: Nonlinear Phenomena},   volume={215},   number={2},   pages={137--145},   year={2006},   publisher={Elsevier} }   Here, the authors' first names' abbreviations are written as KP and AK. However, in my pdf file, they appear as K and A respectively. One way to resolve this is to put space between these strings: K P and A K. However, I have a very long list of references and I think there has to be a better way to force bibtex to render these first names properly. Any ideas?


$a,b,c>0 \text{ s.t. }a+b+c=1 \implies \sqrt{ab+c}+\sqrt{bc+a}+\sqrt{ca+b} \ge 1+ \sqrt{ab}+\sqrt{bc}+\sqrt{ca}$

How can we show that the assumption $a,b,c>0$ and $a+b+c=1$ implies   $$\sqrt{ab+c}+\sqrt{bc+a}+\sqrt{ca+b} \ge 1+ \sqrt{ab}+\sqrt{bc}+\sqrt{ca}~?$$


I've found an icloud locked iPhone, how can I return it to the owner?

A friend of mine found an iPhone 6 in a festival but she didn't have a way to charge the phone for a couple weeks. She is a maid here in Brazil and didn't have the proper charger neither knew how to use the phone. When she finally gave the phone to me to charge and try to find the owner, I've found out that the phone had an iCloud activation lock.   We took the phone to the carrier but they said that the sim card was deactivated already and belongs to a corporate account with more than 100 numbers associated.   Is there a way for me to contact the owner via Find My iPhone or iCloud? If I wipe the phone, start over and try to activate will that notify the owner via Find My iPhone? If that happens maybe I could just put another valid sim card and wait for the person to text me via iCloud and I can text him back to see how I can return.  I don't want to take it to the police because I'm pretty sure they will just sell the parts (the Brazilian police are super corrupt) and I really want to return this phone because I lost mine already in the past and I was very glad that the person who found returned it to me.


Should I install programs from a source tarball (`.tar.gz`), from the Ubuntu Software Centre, or from elsewhere?

There are several ways to install an application in Ubuntu:   You can download a source tarball (generally a .tar.gz or a .tar.bz2 file) and install it manually. (See ) You can download a .deb file and install it manually, using dpkg or the Software Centre. You can search for the application in the Ubuntu Software Centre and install it there, or use apt with the official Ubuntu repositories. You can find a PPA or a third-party repo, and install it from there.   What are the pros and cons of each method? Please discuss security implications, frequency of updates and program reliability of each method in your answer.


Storage of important documents in Mexico

I'm going to Mexico soon on a solo trip and I want to explore the country as much as I can.  One concern for me is my residence permit. I need it to come back to France (where I actually live). If I ever lose it, it will then be such a hard process for me to come back because I'd need a visa and the French embassy would not give it to me in less than at least 3 months, (which is intolerable for my employer).  So basically my question is: where can I store safely such an important document in CDMX?". I know I can just carry it with me all the time, but since I travel alone this would made me way too cautious and my trip less adventurous (for example I will have to forget about all the water activities).  I have also heard about airport lockers but I don't know if they are safe and cane be trusted for a period of 20 days.  If anyone has an idea or a hint, I would really appreciate it.


Rotating image with caption but to place text below

I wanted to rotate image with caption. It was good, but also I want to keep my text below. It doesn't work:  \begin{landscape} \begin{table}[] \centering \adjincludegraphics[width=150mm]{figures2/comparation1.png} \caption{A comparison of Aloha, tree-based and hybrid protocols} \label{tab:ComparationAll} \end{table} \end{landscape}


Why does a photon take time to travel from one point to another if it travels with the speed of light?

Shouldn't time stop for the photon and the distance contract to zero?


Sidebar overlaps footer on markdown help page

After I scroll down to the bottom of the  page I see sidebar overlapping footer. Almost like in this question:   Screenshot:


Sort Custom Post Type Archive by Taxonomy Term

What is the best method (as of 3.1 or 3.2 beta) to sort a custom post type archive by a given taxonomy term?  I'm trying to make a staff page and I want to sort employees by department. So the taxonomy would be staff and the terms to sort would be sales and support.  I tried query_posts and WP_Query but perhaps I messed up the arg array...


How do I avoid deformations while rendering?

After adding some dunes to my scene, I realized after rendering, it shows polygons as if they were deformed. I tried to "smooth shade" but it didn't work. I also tried to apply subdivision surface, tried with all layers up to x4 to make sure it goes away, but it still doesn't. Take a look at the images below:  See all the polygon changes on top of the dunes?  How can I fix that?


Is there a difference between Weight and Force of Gravity?

Is there a difference between Weight and Force of Gravity or they just mean the same thing? My textbook does not clarifies this point.


How to improve the Alexa rank of my website?

I have good number of visits to my website, but my Alexa rank is as low (in the millions). How can I improve my Alexa rank?


Infinite Primes proof with possible error

In the following  the proof states: P = $p_1p_2 \cdot\cdot\cdot p_n + 1$ and continues to state P is prime "as long as $P \not=1$." However  states that P might not be prime and gives the counter example $2\cdot3\cdot5\cdot7\cdot13 + 1 = 30031 = 59 \cdot 509$ In the previous proof is the assumption that P is prime correct because they assume there is a finite number of primes and only divide P by $p_i$ where i = 1,2,...,n?


Why do native English speakers often use "of" instead of "have"?

This is the second time I am seeing something like this. This sentence is written by a native English speaker:     It looks like it's worked. I thought you must of fixed it.   1- It seems wrong to me, please correct me if I am wrong.   2- If it is wrong, why do they use of rather than have?  3- If it is informal language, is it ok to use it in emails, etc...?


Is there a way (application) to control RAM / swap usage policy at application level.  I have some applications that I use all the time and I want them to stay in RAM all the time and there are also application that I use quite seldom and they might be thrown to swap at demand. I know that default configured windows should give me best performance but I want to check whether I can get more :).  I use windows 7.


Transfer bookmarks from Chrome to Firefox

I have currently got Google Chrome and Firefox installed, but I want to switch to Firefox so I want to some how transfer my mass collections of bookmarks from Chrome to Firefox, so is there any way of doing this?  Perhaps if I export all my Google Chrome bookmarks into an HTML file, can I import them into Firefox then? Or is there any quick and efficient way of sort of manually transferring the bookmarks through the editing of Firefox files? Or any way at all of doing it? And is there any way of doing this without installing a third-party add-on?    OS Information:  Description:    Ubuntu 15.04 Release:    15.04   Package Information:  Google Chrome:  google-chrome-stable:   Installed: 42.0.2311.90-1   Candidate: 42.0.2311.90-1   Version table:  *** 42.0.2311.90-1 0         500 http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages         100 /var/lib/dpkg/status   Mozilla Firefox:  firefox:   Installed: 37.0.2+build1-0ubuntu0.15.04.1   Candidate: 37.0.2+build1-0ubuntu0.15.04.1   Version table:  *** 37.0.2+build1-0ubuntu0.15.04.1 0         500 http://gb.archive.ubuntu.com/ubuntu/ vivid-updates/main amd64 Packages         500 http://security.ubuntu.com/ubuntu/ vivid-security/main amd64 Packages         100 /var/lib/dpkg/status      37.0+build2-0ubuntu1 0         500 http://gb.archive.ubuntu.com/ubuntu/ vivid/main amd64 Packages


Buffering in QGIS3 is returning giant circles

I'm trying to buffer some lines in QGIS. However, the result I'm returning are giant circles. I've tried several different CRS and made sure the project and layer had the same CRS but the result is still the same. The CRS is also not decimal but meters. Not sure what I'm missing.  Any suggestions?


My dedicated server can't handle more than 4Mbits/s of bandwidth. After that, the server don't ping anymore. My provider told me it's because my server isn't well configured.  When I look in the logs (syslog), I see that it's probably a syn flood on the port 8085. So I configure iptable to limit the connexion number per IP      iptables -I INPUT -p tcp -m connlimit --connlimit-above 50 -j REJECT --reject-with tcp-reset   and     iptables -A INPUT -p tcp --dport 8085 -m state --state NEW -m recent --name BLACKLIST --set   iptables -A INPUT -p tcp --dport 8085 -m state --state NEW -m recent --name BLACKLIST --update --seconds 10 --hitcount 10 --rttl -j DROP   I activated syn cookie :  echo "1" > /proc/sys/net/ipv4/tcp_syncookies echo "1024" > /proc/sys/net/ipv4/tcp_max_syn_backlog echo "1" > /proc/sys/net/ipv4/conf/all/rp_filter    To be sure, I installed fail2ban. But there isn't a huge trafic on this port...  Any idea ?  Thank you


What is the correct possessive for nouns ending in "‑s"?

What is the possessive of a noun ending in ‑s?  Are these both right, or is the second one wrong?   the boys' books the boss' car


I understand the size reported by ls corresponds with number of inodes inside the directory, not their actual size.  I have noticed peculiar behavior, when displaying directory size with ls. Here is how to quickly reproduce it:  first create empty directory, the size reported by ls is 4096 (as expected)  mkdir test ll -d test/ drwx------ 2 root root 4,096  2015-Dec-29  22:22:36  test/   create 10,000 files inside. Size reported is now 167,936   touch test/{1..9999} ll -d test/ drwx------ 2 root root 167,936  2015-Dec-29  22:23:24  test/   remove all files. Size should decrease back to 4096  rm test/* ll -d test/ drwx------ 2 root root 167,936  2015-Dec-29  22:23:59  test/   But the size is still reported as 167,936.  why?  can somebody explain this?


I've just noticed, that after rendering if I zoom the text then it look like a low quality text (look at the screen). I've heard that I can install cm-super package. I put \usepackage{cm-super} to the preamble but get an error "cm-super.sty not found". Before If I didn't have any package latex suggested me to install it right in the latex so I didn't have to visit any websites or something. Am I supposed to install it manually?  Anyway, how can I solve the problem?  I have two files in my project: latex file and .sty file. Here's how the preambles look:    In the main file:   \documentclass[10pt, a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T2A]{fontenc} \usepackage[english, russian]{babel} \usepackage{Lections_style}    In the lections style:     \RequirePackage{amsfonts}   \RequirePackage{amsmath}   \RequirePackage{amssymb}   \RequirePackage{graphicx}   \RequirePackage{babel,blindtext}   \RequirePackage{subfigure}   \RequirePackage{hyperref}   \RequirePackage{fancyhdr}   \RequirePackage{cite}   \RequirePackage{amsthm}   \RequirePackage{xparse}   \RequirePackage{mathabx}   \RequirePackage{array}   \RequirePackage{tabularx}   \RequirePackage{multirow}   \RequirePackage{makecell}     There're already 55 pages typed so I would be very glad if there's any solution without a lot of pain. Thank you and sorry for my English.   I've been asked to give a MWE, so here it is:      \documentclass[10pt, a4paper]{article}     \usepackage[utf8]{inputenc}      \usepackage[T2A]{fontenc}      \usepackage[english, russian]{babel}      \begin{document} Проверка текста.      \end{document}


Every separable metric space has cardinality less than or equal to the cardinality of the continuum.  This was stated in my book in a series of questions using the post office metric on $\Bbb R^2$, but I can't think of a way to prove this.


Cyclic Group $Z_{n}$  How do I find all the Subgroups of $Z_{200}$ under additive modulo 200? And how many subgroups are there? I know the definition of subgroups but to find all the subgroups of such a large set is a bit difficult for me. Is there a smart way to find it?     The answer to this question is 12 and I not sure if this is correct.


show that $2n\choose n$ is divisible by 2

I tried using induction, but in the inductive step, I get:  If $2n\choose n$ is divisible then I want to see that $2n +2\choose n +1$  $${2n +2\choose n +1} = (2n + 2)!/(n+1)!(n +1)! = {2n\choose n} (2n+1)(2n+2)/(n+1)^2$$  $$= {2n\choose n} 2(2n+1)/(n+1)$$  Then ${2n\choose n}$ is divisible by $2$ by hypothesis, but $2(2n+1)/(n+1)$ is not even an integer.  What can I do?


In code blocks, Strcpy does not work when I declare a string using char * string but works when I declare it as char string[ ]

#include <stdio.h> #include <string.h> int main() { char t1string[] = "test"; printf("First String value is %s\n", t1string); strcpy(t1string, "lgs"); printf("Modified First String value is %s\n", t1string);  char * t2string = "test"; printf("Second String value is %s\n", t2string); strcpy(t2string, "lgs"); printf("Modified Second String value is %s\n", t2string); return 0; }  Looking at the above pair of strcpy usage, I am trying to understand why the strcpy used in the second instance does not work, or is it something specifically wrong (with either my beginner level understanding or code blocks)? Or is it just telling me I am stupid for not simply doing t2string = "lgs";?


Why is the Sun the centre if relativity is true?

I thought a bit about this, and got confused as to why we always claim the Sun is at the centre of the solar system since relativity tells us that there is no preferred frame of reference. A person sitting on a train is as justified in claiming that he is stationary as a person "standing still" outside the train. If they agree to measure things from the Earth's F.R then, yes, the train observer is the one who is really moving. Now who in the world agreed to measure orbits relative to the Sun and quote it as objective fact? I think circular motion about one's own axis (spin) is not relative but this is circular motion about an axis outside the body. We could make things much easier for ourselves and treat each planet as a person who has 360 degree vision (so that we can ignore the need of spinning motion in comparing relative speeds). I haven't done general relativity yet or slightly more advanced topics so it might turn out that accelerating frames of references are objective and unique in that sense when it comes to motion. Not sure!


Can we shorten Stack Exchange URLs by using .se domains?

I have encountered a problem when trying to introduce new people to the SE network: they can't remember Stack Exchange.  So, for example, I might tell a non-tech user: "You should ask your question on this cooking website, it's called cooking.stackexchange.com." They remember the cooking part very easily (or the diy, or gaming, etc..), but they tend to forget the stackexchange part.  So what I propose is that we buy domains for all Area 51 site proposals that end in *.se. So, for example, cooking.stackexchange.com would be magically transformed into cooking.se.  I understand that it isn't a .com but it could be forwarded to *.stackexchange.com    Most (if not all) of the domains should be available since this is a . I'm not 100% sure if non-Swedish compaines/people can register these domains .  This is not the same as  since it proposes we use *.se.com. Also the accepted answer for  was basically that "all sites will get their own .com once they leave beta," which we now know isn't the plan.


How to in/decrease the volume of a specific application by command?

I want to create a keyboard shortcut to decrease the volume of the application I am currently in. So the first step is to change the volume of one specific application by command. So how is this possible?  Edit: I want to have different volumes per application at one time.


After upgrading a PS3 hard drive, can I put the old one back in?

Let's say I had a 60GB Playstation 3, and I bought a new 500GB hard drive to replace the old one.  I take the 60GB hard drive out of the machine, put the 500GB one in, format it, and get started and.. "Oops! I forgot to back something up from the old hard drive!"   Can I take the 500GB hard drive back out and put the 60GB drive back in (remember, this is the same console; not a new one), and will it still recognize the old drive properly so I can perform a backup?


How to shut down the computer safely by pressing the power button?

So this is pretty simple: when I press the power button whilst the machine is on, it comes up with a menu (of which one of the options is to shutdown)  However, I just want it to just start shutting down once I press the power button without any further interaction!  How do I accomplish this?


How to cut a line in Xcode without selecting the text?

Many text editors and IDEs have this cool feature in which one can cut the entire line without having to select it previously. How can one do this on Xcode? Thanks.


I am trying to set up virtual hosts on my laptop (Ubuntu 19.10, Apache/2.4.41) for my convenience. I followed , with a few modifications to folder paths but I get this error:  Unable to connect Firefox can’t establish a connection to the server at modipis.dev.  My configuration file (modipis.conf) is: <VirtualHost *:80> # Admin email, Server Name (domain name) and any aliases ServerAdmin webmaster@domain1.com ServerName  modipis.dev ServerAlias www.modipis.dev  # Index file and Document Root (where the public files are located) DirectoryIndex index.php DocumentRoot /var/www/html/modip/modipIS/public/ <Directory  /var/www/html/modip/modipIS/public/>     Require all granted     AllowOverride All     Options Indexes </Directory>  # Custom log file locations LogLevel warn ErrorLog /var/www/html/modip/modipIS/various/logs/modipIS.dev-error_log CustomLog /var/www/html/modip/modipIS/various/logs/modipIS.dev-access_log combined  </VirtualHost>  and my /etc/hosts 127.0.0.1       localhost 127.0.1.1       laptop 127.0.0.1       modipis.dev  # The following lines are desirable for IPv6 capable hosts ::1     ip6-localhost ip6-loopback  Any idea why this fails? I also noticed the following:  when I type modipis.dev, the browser redirects to https://modipis.dev. Is this normal? if I type 127.0.0.1 in the browser, it redirects to the modipis site.


In class we are currently covering upper/lower bounds, big Oh and omega and the like. I am pretty good on the "typical" functions one would do, but at a complete loss at "general" statements. This ons function, for example:  $$\forall f\in\mathcal{F}: \lfloor \sqrt{\lfloor f(n)\rfloor }\rfloor \in O(\sqrt{f(n)}).$$  the domain F by the same is all natural numbers that return a real positive number when inputted. My first instinct with something like this is to remove the floors, the general strategy I though to solve this is remove the outer floor, then get rid of the square root, and then the inner floor. But I have no idea how to go about this or if this is even the right way to do it.  Help please? Thanks in advance.


Why don't Qt4 apps in Lubuntu pick up the GTK theme?

I've installed Lubuntu and replaced the default players with Clementine for audio and VLC for video.  The problem I have is that neither pick up the GTK theme, the way they usually do in Gnome/Xfce. Instead they use some pretty ugly and totally off theme.  To be clear, both are Qt4 applications and should pickup the theme by default.  How can I fix this?


I'm willing to buy flight tickets from wizz air. During the last week the price changed many times and I wonder how can I predict when will the price drop again (now they are pretty high). Does anyone know when they release thr cheaper tickets? Carmen


How can I tell whether beetroot is still edible?

I have some raw beetroot I bought about a week ago, having stored them at room temperature since. It's the first time I bought it raw, and I'm unsure whether it's still edible.   It is already soft, and when I cut it, it smells... Well, different than I expected. It's not a rotten smell as such, but it's nothing like the sweet beet-rooty smell I know from the pre-packaged, pre-boiled supermarket variety.  How can I tell whether it's still safe to eat?


In a group $G$:     If $x^2 a x=a^{-1}$, then $a$ has a cube root. (Hint: Show that $xax$ is a cube root of $a^{-1}$.)   So essentially $\exists y\in G:a=y^3$. The hint probably confused me more than anything. How should I approach this? I am looking for hints, not complete solutions. Thanks.


Why can't I define a static method in a Java interface?

EDIT: As of Java 8, static methods are now allowed in interfaces.  Here's the example:  public interface IXMLizable<T> {   static T newInstanceFromXML(Element e);   Element toXMLElement(); }   Of course this won't work.  But why not?  One of the possible issues would be, what happens when you call:  IXMLizable.newInstanceFromXML(e);   In this case, I think it should just call an empty method (i.e. {}).  All subclasses would be forced to implement the static method, so they'd all be fine when calling the static method.  So why isn't this possible?  EDIT: I guess I'm looking for answer that's deeper than "because that's the way Java is".   Is there a particular technological reason why static methods can't be overwritten? That is, why did the designers of Java decide to make instance methods overrideable but not static methods?  EDIT: The problem with my design is I'm trying to use interfaces to enforce a coding convention.  That is, the goal of the interface is twofold:   I want the IXMLizable interface to allow me to convert classes that implement it to XML elements (using polymorphism, works fine). If someone wants to make a new instance of a class that implements the IXMLizable interface, they will always know that there will be a newInstanceFromXML(Element e) static constructor.   Is there any other way to ensure this, other than just putting a comment in the interface?


Importing a laptop from the US as a personal item

Soon I will be travelling from Europe to the US for a week. I have a plan to purchase a laptop online and have it ship to the hotel I am staying at.  My concern is, will I be able to take the laptop back to Europe with me as hand luggage without running into taxation/confiscation and/or other problems?


I keep getting the following error when I try and Build and View/Compile my main TEX file:     \begin{thebibliography} on input line 1 ended by \end{document}. \end{document}   This is a new error, and I cannot work out why it is occurring. My bibliography has been functioning as expected until recently. Below is the code for my main TEX file, which uses a .bib file called "References.bib" which can be seen below the TEX file code. I have cut out a lot of the chapters in a bid to give the question more clarity, but I saw it appropriate to include all of the preamble. It is the very last line of this file "\end{document}" that shows the error.   The main TEX file called "thesis.tex":   \documentclass{report}  \usepackage{gensymb} \usepackage{amsmath} \usepackage{amssymb} \usepackage{natbib} \AtBeginDocument{\renewcommand{\bibname}{References}} \usepackage{graphicx} \usepackage[utf8]{inputenc} \graphicspath{ {images/} } \usepackage[a4paper,width=150mm,top=25mm,bottom=25mm]{geometry} \usepackage{fancyhdr} \pagestyle{fancy} \usepackage{titlesec} \usepackage{pgfornament} \titleformat{\chapter}[display] {\normalfont\bfseries}{}{0pt}{\Huge} \usepackage{caption} \usepackage{subcaption} \usepackage{nomencl} \makenomenclature  \begin{document}  \chapter{Conclusion} \chaptermark{} \input{chapters/conclusion}  \addcontentsline{toc}{chapter}{References} \bibliographystyle{agsm} \bibliography{References}  \appendix \chapter{Appendix} \chaptermark{} \input{chapters/appendix}  \chapter{Project Management} \chaptermark{} \input{chapters/management}  \chapter{Self- Review} \chaptermark{} \input{chapters/review}  \end{document}   Here is the contents of the "References.bib" file:       @conference{Xconference1,     author    = "Avinash Gautam and Sudeept Mohan",     title     = "A review of research in multi-robot systems",     booktitle = " Industrial and Information Systems (ICIIS)",     year      = "2012",     month    = "August",     publisher= "IEEE", }  @misc{ultrasonic_diagram,     author = "Senix",     title = "How-Do-Ultrasonic-Sensors-Work.png",     note = "Online; accessed May 07, 2018",     url = "https://senix.com/frequently-asked-questions/",     %year = "", }  @misc{iRobot,     author = "Army-Technology",     title = "iRobot 510 PackBot Multi-Mission Robot",     note = "Online; accessed September 12, 2017",     url = "http://www.army-technology.com/projects/irobot-510-packbot-multi-mission-robot/     Coastguard National Database",     %year = "", }  @misc{analog_v_digital,     author = "Tarun Agarwal",     title = "Types of Analog and Digital Sensors with Applications",     note = "Online; accessed May 08, 2018",     url = "https://www.elprocus.com/types-analog-digital-sensors/",     %year = "", }  @misc{sensorscite,     author = "P.S Kang",     title = "01 introduce to lego ev3 20140917.",     note = "Online; accessed December 12 2017",     url = "https://www.slideshare.net/JasonYang35/01-introduce-to-lego-ev3-20140917",     year = "2015", }  @misc{polling,     author = "Linus Atorf",     title = "How accurate is the ultrasound sensor when moving?",     note = "Online; accessed May 08 2018",     url = "https://bricks.stackexchange.com/questions/1257/how-accurate-is-the-ultrasound-sensor-when-moving/7",     year = "2012", }   If anyone could help me figure out why this is happening, I'd be very appreciative. I have tried to add the following code to the References.bib file, but it did not work:   \begin{thebibliography}       %Some references   \end{thebibliography}


My utf-8 is not working in php with pdo. when i store België  i have in my db België in my index page of html  i have  <meta content="text/html" charset="utf-8" />  and in my php page i have   I have tried this but this isn't working  $db = new PDO("mysql:host=$host;dbname=$dbname",$username,$password, array(PDO::MYSQL_ATTR_INIT_COMMAND =>  "SET NAMES utf8"));          $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);   When i load the data from the db into a table then i have again the right value België.  But with geocoder when i took a longer value like Jan Breydelstadion, Koning Leopold III-laan, Brugge, België then i get a error Zerro_results.  But when i change the word  Jan Breydelstadion, Koning Leopold III-laan, Brugge, België to Jan Breydelstadion, Koning Leopold III-laan, Brugge, België in my mysql  then my geocoder error is gone.


How to get selected checkbox row's value using Jquery?

I want to get the values of selected check box row's value using Jquery.  For that, First I try to alert a message,if user checked the checkbox using Jquery. But I failed.      Note: I am adding checkbox in a row using Jquery, and then User will select the checkbox.   Here is my code to add checkbox in row through AJAX code  $('#btnSearchVendor').click(function(){     $.ajax({         type:"POST",         contentType:"application/json;charset=utf-8",         url: "GPCreateCheque.aspx/BindData",         data:"{}",         dataType:"json",         success: function (data) {             alert("success = "+data.d[0].DOCTYPE);             for(var i=0;i<data.d.length;i++){                 $("#ContentPlaceHolder1_GridView1").append("
<input id=\"Checkbox"+i+"\" class=\"checkBoxClass\" type=\"checkbox\" />	" + data.d[i].DOCTYPE + "	" + data.d[i].DOCNUMBR + "	" + data.d[i].ActualAmount + "
");             }         },         error:function(result){             alert("Error");         }     }) })   Jquery code to make alert when user select the checkbox  $('.checkBoxClass').click(function () {     alert("Checkbox state (method 1) = " + $('.checkBoxClass').prop('checked'));     //alert("Checkbox state (method 2) = " + $('.checkBoxClass').is(':checked')); });   Above code is working fine, I added the checkbox. Below pic is the output with console