how do you calculate the tipping angle of a  box? That is the maximum angle a which a box can reach before tipping over. help, please!

So I'm designing an outdoor lamp post and trying to calculate whether it will withstand the heavy winds at the worst case scenario. Here are the parameters and what I've done so far:  The lamp post is 2.8m tall with the base radius of 0.9m. Assuming that the post itself, m1=50kg and the base, m2=30kg, the center of mass stands at 1m above the base. I have chosen the wind speed that it needs to withstand as 20m/s which corresponds to Beaufort Scale 8.  Through the wind load formula, F=A * P * Cd, I found out that the force in which the wind exerts on the body is roughly 400N.  Assuming that 400N of force is applied to the lamp post sideways at the tip of it, how can I calculate whether it will tip over or not? If not, how can I figure out how much I need to increase the weight of the base to withstand the wind forces? Does torque equation help? Any answers that could point me in the right direction are much appreciated.


Why do I sometimes see a user card under a question or answer which looks like the following?        Has the user been deleted?

Sometimes when reading through user comments on a particular answer, some usernames that appear like user[digit] e.g user12345 are not links. Is this a known behaviour or any other thing I am not aware of?


I have a problem after installing 14.04 64bit on my dell laptop. The error message is serious errors were found while mounting disk drive for /

I have just set up my new system by creating three partitions on a whole hard disk (/boot, /home, swap and /). I saw  article and now I am getting those errors and the system provide me with some options: (I to ignore, S to skip mounting or M for manual recovery).   I am forced to choose skip mounting because I don't know what manual recovery is. Despite the error I get I think that the system boots okay because I can use the system but this error is very annoying.


I was executing following C code-  float a=3.25678932; printf("%0.10f\n",a);   The above printf() statement giving following output:  3.2567892075   I am not able to understand how other four digits('2075') are coming after first six digits('256789') after decimal.

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


Is there an option to provide line numbers on output from the C++ Execution to trace the errors? Sid Kraft

Presuming that your C++ compiler supports them, is there any particular reason not to use __FILE__, __LINE__ and __FUNCTION__ for logging and debugging purposes?  I'm primarily concerned with giving the user misleading data—for example, reporting the incorrect line number or function as a result of optimization—or taking a performance hit as a result.  Basically, can I trust __FILE__, __LINE__ and __FUNCTION__ to always do the right thing?


I have an EBS volume that is 800GB and I am using only 5GB of this. I want to shrink it but AWS doesn't support this, after a bit of a research, I have found that I can mount both volumes and rsync the content of the bigger one to the new one. This should work considering I have a data volume. While in my case, this is a root volume (mounted at "/"). So rsync didn't work.   I have tried to mount both volumes to a different EC2 instance (so I can avoid having the big volume mounted "/") but I couldn't mount it.   root@****:~# lsblk NAME    MAJ:MIN RM    SIZE RO TYPE MOUNTPOINT xvda    202:0    0      8G  0 disk ├─xvda1 202:1    0 1007.5K  0 part └─xvda2 202:2    0      8G  0 part / xvdf    202:80   0     10G  0 disk xvdg    202:96   0    800G  0 disk ├─xvdg1 202:97   0 1007.5K  0 part └─xvdg2 202:98   0    200G  0 part root@****:~# sudo file -s /dev/xvdf /dev/xvdf: Linux rev 1.0 ext4 filesystem data, UUID=ad182c34-1f1f-440b-af0b-3aa94ae57f71 (extents) (large files) (huge files) root@****:~# sudo file -s /dev/xvdg /dev/xvdg: DOS/MBR boot sector, extended partition table (last) root@****:~# mkdir new old root@****:~# mount /dev/xvdf new root@****:~# mount /dev/xvdg old mount: wrong fs type, bad option, bad superblock on /dev/xvdg,        missing codepage or helper program, or other error         In some cases useful info is found in syslog - try        dmesg | tail or so.   Is there a way I can mirror everything in the big partition to the small one including file system and DOS/MBR boot sector?

Enlarging an EC2 instance is easy like a breath (for instance, create an AMI, launch an instance from it and then change the storage size).  But reducing it becomes more difficult. I’d like to reduce an Amazon Web Services (AWS) EC2 instance Elastic Block Store (EBS) root volume size. There are a couples of old high level procedures on the net. The more detailed version I found is a one year old answer on a StackOverflow question: , steps have a pretty high level:     Create a new EBS volume that is the desired size (e.g. /dev/xvdg)      Launch an instance, and attach both EBS volumes to it      Check the file system (of the original root volume): (e.g.) e2fsck -f /dev/xvda1      Maximally shrink the original root volume: (e.g. ext2/3/4) resize2fs -M -p /dev/xvda1      Copy the data over with dd:         Choose a chunk size (I like 16MB)   Calculate the number of chunks (using the number of blocks from the resize2fs output): blocks*4/(chunk_size_in_mb*1024) - round up a bit for safety   Copy the data: (e.g.) dd if=/dev/xvda1 ibs=16M of=/dev/xvdg obs=16M count=80         Resize the filesystem on the new (smaller) EBS volume: (e.g.) resize2fs -p /dev/xvdg      Check the file system (of the original root volume): (e.g.) e2fsck -f /dev/xvdg      Detach your new EBS root volume, and attach it to your original instance   I’m unable to find a detailed step by step “how to” solution.   My EBS root volume is attached to a HVM Ubuntu instance.  Any help would be really appreciated.


How to express the following number as a ratio of integers:  $10.1\overline {35}$  where 35 repeats infinetly. so:  $10.135353535353535353535353535\cdots$  Basically I did this so far  $\frac {101}{10} + (.35) *$ geometric infinite series $\left(\frac 1{10}\right)^n$  But this isn't right. What am I doing wrong with my infinite series? I want to make it correct so I can use the sum formula.  The answer is: $\frac {5017}{495}$  But I'm not sure how to get that answer.

So I'm supposed to express:  $$1.24\overline{123}=1.24\;123\;123\;123\;\ldots$$ as the ratio of two integers.  So I got $$1+\frac{24}{100}+\frac{123}{10^5}+\cdots$$  I don't know if this is correct, and if it is, I also don't know how I would get the common ratio from this. Would the common ratio just be $\frac{1}{10^5}$? Am I doing this wrong?


I have to call 2 URL on click of command Link , one will Record Edit Page URl and Another is different Webserver URl  I have tried two Ways Both are Not Working.....I mean both action is Not Performing  OPTION 1  <apex:column >    <apex:commandLink value="Click" action="{!meth1}" target="_blank" onclick="methodInJavascript();">          <apex:param value="{!ll.Mobile__c}" assignTo="{!toMObile}" name="assignvalue" />    </apex:commandlink> </apex:column>    <apex:actionFunction action="{!meth2}" name="methodInJavascript" />   Apex Class  public PageReference meth2() {     Pagereference p2 = new  Pagereference('https://ap2.salesforce.com/a0A28000000okkjEAA/e'); p2.setredirect(true);  return p2;     }       public PageReference meth1() {     Pagereference p1 = new Pagereference('https://www.google.com'); p1.setredirect(true);  return p1;     }   Here Only  Meth1() is Executing  OPTION 2  <apex:column >    <apex:commandLink value="Click" action="{!meth1}" target="_blank" onclick="window.open('https://ap2.salesforce.com/a0A28000000okkjEAA/e')">          <apex:param value="{!ll.Mobile__c}" assignTo="{!toMObile}" name="assignvalue" />    </apex:commandlink> </apex:column>   Pagereference URL will be dynamic....I will be Passing parameters  ' ' + a.id + '/e';

I have a visualforce page which on load should call 4 methods one after the other. For that purpose, I tried using apex:actionFunction  <apex:page sidebar="false" showHeader="false" controller="PullFromTaleo">   <apex:form >     <apex:actionFunction name="Method1" action="{!Method1}" immediate="false"/>     <apex:actionFunction name="Method2" action="{!Method2}" immediate="false" />     <apex:actionFunction name="Method3" action="{!Method3}" immediate="false"/>     <apex:actionFunction name="Method2.1" action="{!Mehtod2}" immediate="true"/>     <apex:actionFunction name="Method4" action="{!Mehtod4}" immediate="true"/>  </apex:form> </apex:page>   However none of the above functions are executed. Not sure how to call multiple functions in sequence from a visualforce page.


I want to create a method it returns string and (calculate the period expires days) differences between expires date and current date.   if the differences is less than 1 minutes i will return in second ex: 8 seconds if the differences is less than 1 hours i will return in minutes ex: 28 minutes if the differences is less than 24 (a day) hours i will return in hours ex: 7 hours default if not matches any case I will return days ex: 3 days   what I have already tried is   (item.EndDate- DateTime.Today).Days   But is does not work when the difference less than 24 hours it will return 0.  Can you give me suggestion?

Given a specific DateTime value, how do I display relative time, like:   2 hours ago 3 days ago a month ago


I have an object with a property:  @interface Car @property(strong) NSLicensePlate *licensePlate; @end   I use the property in a method:  - (void) doSomething {     [_licensePlate frobnicate]; }   And the property value can be changed in another method:  - (void) doSomethingElse {     [self setLicensePlate:[_licensePlateDealer cleanLicensePlate]]; }   Now, if the -doSomethingElse method is called from another thread while I access the license plate property using the instance variable (as seen in the -doSomething method), is it possible to get a segfault?  Is it possible that the -setLicensePlate setter releases the value stored in _licensePlate right before I call -frobnicate on it and before a new valid value is assigned? And would it help to call [self licensePlate] instead of using _licensePlate directly?

What do atomic and nonatomic mean in property declarations?  @property(nonatomic, retain) UITextField *userName; @property(atomic, retain) UITextField *userName; @property(retain) UITextField *userName;   What is the operational difference between these three?


Can anyone help me understand why the below two table evaluations produce different results. I built the table twice in my terminal iPython editor and the table built the table thing but when running I am not getting the same results.  The second table evaluation worked for the overall problem. However the first did not. In the terminal both table creations make a table with the same dimensions and == for the tables returns true. Why are the results different when running the program depending on how table is made if they evaluate to the same on the console?  def longestCommonSubsequence(text1: str, text2: str) -> int:     #This table evaluation does not work. Why?     #table = [[0] * (len(text2) + 1)] * (len(text1) + 1)     #The table evaluation below worked for overall problem. In terminal table_above == table_below when using different variable names. So why the different results?     table = [[0] * (len(text2) + 1) for _ in range(len(text1) + 1)]     for i, t1c in enumerate(text1):         for j, t2c in enumerate(text2):             if t1c == t2c:                 table[i+1][j+1] = 1 + table[i][j]             else:                 table[i+1][j+1] = max(table[i][j+1], table[i+1][j])     return table[-1][-1]

I needed to create a list of lists in Python, so I typed the following: my_list = [[1] * 4] * 3  The list looked like this: [[1, 1, 1, 1], [1, 1, 1, 1], [1, 1, 1, 1]]    Then I changed one of the innermost values: my_list[0][0] = 5  Now my list looks like this: [[5, 1, 1, 1], [5, 1, 1, 1], [5, 1, 1, 1]]    which is not what I wanted or expected. Can someone please explain what's going on, and how to get around it?


Before you mark as a dup, yes I've seen , and no, it didn't really answer my question, basically because I'm pretty new to Java, so I didn't really understand allot of the answers.  This is kind of some mashed up Java / C++,  is there any reasonable way to do this in Java?  public class Foo {     private int _data;      /* various other functions */          public boolean test1( Foo other ) {  /* do test */ }     public boolean test2( Foo other ) {  /* do test */ }     public boolean test3( Foo other ) {  /* do test */ }     public boolean test4( Foo other ) {  /* do test */ } }  public class Bar {     private Foo[] _foos = { /* Init an array of Foos */ };      public Bar doSomething() {         _foos = new Foo[4];          _foos[0] = getTest(Foo::test1);         _foos[1] = getTest(Foo::test2);         _foos[2] = getTest(Foo::test3);         _foos[3] = getTest(Foo::test4);     }      /*       * Now we only have a single function which takes function pointer.      */     private Foo _getTest(boolean Foo::*func()) {         Foo current = _foos[ 0 ];          for ( int i = 1; i != _foos.length; i++ )             current = current.*func( _foos[ i ] ) ? _foos[ i ] : current;          return current;     } }

I have a method that's about ten lines of code.  I want to create more methods that do exactly the same thing, except for a small calculation that's going to change one line of code.  This is a perfect application for passing in a function pointer to replace that one line, but Java doesn't have function pointers.  What's my best alternative?


I am trying to evaluate the following integral:  $$ \int_{-2}^2 \left(x^3 \cos \left(\frac{x}{2}\right)+\frac{1}{2}\right) \sqrt{4-x^2} \, dx. $$  The answer is pi based on online calculations. But I want to share this to my students that we can express this as pi. I found out that integrating the 2nd term from the left, based on its boundaries, is equivalent to pi. Meaning, I need to show that the integration of the first term from the left is zero based on its boundaries. I need to know how to manually solve the intragral solution to show that the whole expression is equivalent to pi:

I saw this today, I checked in Mathematica and the integral comes out to $\pi$, but I have no idea how to solve it.     FREE Wi-Fi: The Wi-Fi password is the first $10$ digits of the answer.   $$\int_{-2}^2\left(x^3\cos\frac x2+\frac12\right)\sqrt{4-x^2}\ dx$$


What made the big bang start in the first place? I don't see what could have caused it. What made it burst apart?

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


So here is the story guys please bear with me:  I have registered my domain and deployed my web app and everything is fully functional and working 100%. Then out of the blue I get these SEO scams telling me to pay for SEO. Of course I knew it's a load of bull and I simply deleted all emails. I then wanted to check my web site's ranking so I googled my site's domain and I got my website's pages but with a different domain name! and when I click on them they actually get me to my site while the URL maintains that same weird shady not-domain of mine. I won't be mentioning the domain of my web app or even the one imitating mine since it's a social network still in the works.  I go to godaddy where I registered my domain and then changed my domain to private, and after a few days I checked again and it was gone(the shady domain) and I was like "Thank God, finally". And just now I check again and it's back! what do I do?  The only thing the private domain helped in is giving you a certificate warning when trying to access the shady domain either through google search or directly from URL.  I honestly need help guys, nobody has addressed this problem and I looked all over. Thank you all

There is a site of ill-repute known as thedirty which has completely mirrored my site and now has links appearing on Google at the #1 spot using my content.  I checked my log files and noticed that this site has been crawling mine for sometime, and also has 10,000 links from their site to mine.  I have blocked user access which is referred from this site and reported them as web spam to Google already.  I also disavowed the domain.  How are they getting top links in Google (even overtaking mine) for such nefarious tactics?  What are the steps to completely eliminating an issue such as this?  UPDATE 8/28/2014:  I thought I would provide an update on this as I have more information now.  So thedirty pointed their subdomains to my ip which had the effect of making their subdomains look like my website.    For a couple of days this didn't matter much because using htaccess, I redirected all HOSTS not of my domain, back to my domain which basically meant I was getting their subdomains traffic links on Google.  After a couple of days thedirty changed their subdomains to point back to their website so that I no longer benefit from this.  So the whole point being they used my content to get top ranks on Google, and are now pointing those links back to their website to drive more traffic to theirs.  It is a dirty tactic by a dirty website.  My hope is that Google punishes such behavior.


Moot can mean  Subject to debate; arguable or unsettled. Of no practical importance; irrelevant.  These two seem to me to be opposites in many cases. I've seen people say "that's a moot point" in response to a proposal/idea: do they mean "that warrants debate" or "we should not bother talking about this"? Is there a correct usage, or a way to use it while avoiding ambiguity? Or have I misunderstood the definition?

I was recently called out for using the phrase "the point is moot" incorrectly. My intent was to indicate that I felt that the point wasn't really worth debating or discussing. I was then shown that the definition also includes "open to discussion" which left me scratching my head. While the two definitions are not strictly opposing, they do seem to go off in rather distinct yet related directions.  I am left feeling like this discussion is perhaps moot — is it best to just avoid using the word entirely? Is there a proper or accepted way to use it correctly?


First of all I don't have experience with Excel scripting, just basic formulas. I've seen  on SU but I'm not sure if that's exactly what I need or how to adapt it to my needs.  Here's what I'm trying:  I have a spreadsheet with 3 columns and 10 rows, each of them having unique values. For example:  Column A -------- White  Black  Blue  etc (until 10 items)  Column B -------- USA Canada  Mexico  etc (until 10 items)  Column C -------- English French  Spanish  etc (until 10 items)   So in total there are 30 elements. I would like to create a new table with those 3 Columns and 1000 rows, where each row would have a unique combination of those 3 elements (so 2 rows will never have the same 3 elements). Just for clarification, the order of the Columns has to be the same (A, B, C) and of course elements of one column always stay in that column.  Examples of resulting rows:  White | USA | English White | USA | French Black | USA | English Black | Canada | English ... up to 1000 combinations   Any help would be appreciated!  EDIT  The point of this question is: 1. Understand if the solution provided in the linked answer applies to my case 2. Know if there a re other ways of solving this that aren't scripting (formulas, excel tools, etc)

I have three tables and i need an out put which has data from two tables, i would like to create the same using macro.  Table A  A B C D   Table B  Apple Orange Pears   Table C  Americas Asia Europe   The Output i need is  A Apple Americas A Apple Asia A Apple Europe A Orange Americas A Orange Asia A Orange Europe   So i guess for each letter from Table A, there would be 12 additional rows created. The above is the sample data and I have around 5000 rows in Table A.


For the closed part, I just noted that it's a compact subspace of a Hausdorff space and therefore it's closed. For the bounded part, I know intuitively that since every open cover has a finite subcover, I just have to take the largest ball that includes all these covers, but I don't know how to write it rigorously. I know they'd all fit a large ball...  I also must find a metric space in which not every closed subspace is compact. Which is an example of a metric space in which not every closed is compact? Because once I know that, I could just take the metric $0,1$

Rubin's Theorem 2.34 says that "Compact subsets of metric spaces are closed." But I'm wondering should it also be true that, compact subsets of metric spaces are closed and bounded at the same time? The closeed-ness comes from Rudin's proof, and the bounded-ness comes from the fact that for a compact subset $E$, we can take the finite open cover and than this open cover is what bounds $E$? Discussions are welcomed! Thank you!!!


All of my materials just became like this in Material & Rendered Preview. This affects all of my .blend file, even the newly created ones.  Texture in Solid Preview is still normal though. I don't know how did I created this mess. Any suggestion ?

I don't know why but now, when i go in material preview or rendered (in solid mode it works fine), my object is entirely gray, or invisible idk, because it has the same color of the background. I've been working for days on this project without having this issue, it suddenly showed up. I tried opening other old projects and suddenly they all do the same so i guess it is some blender program setting that applies for all the projects, but idk how it happened cuz i didn't change anything :/, anyone got any tips?


The output of the ip a command in CentOs 7:  259: veth2060b59@if258: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master docker0 state UP     link/ether c6:1b:2a:b3:f6:c3 brd ff:ff:ff:ff:ff:ff link-netnsid 1     inet6 fe80::c41b:2aff:feb3:f6c3/64 scope link        valid_lft forever preferred_lft forever    Why there is "@" in the interface name? What is the significance of it.?   Note:   Output of ifconfig command:   veth2060b59: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500         inet6 fe80::c41b:2aff:feb3:f6c3  prefixlen 64  scopeid 0x20<link>         ether c6:1b:2a:b3:f6:c3  txqueuelen 0  (Ethernet)         RX packets 1878  bytes 161872 (158.0 KiB)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 3262  bytes 372175 (363.4 KiB)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0    there is no "@" in interface.  List of interfaces in /sys/class/net:   [root@nix-lin415-01 net]# ls /sys/class/net/  docker0  eno16777984  lo  veth2060b59    note that interface name is veth2060b59 and NOT veth2060b95@if258.

I'm having hard time reading the output of ip a command. Normally it prints something like this:  3: enp0s25: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UP group default qlen 1000     link/ether aa:bb:cc:dd:ee:ff brd ff:ff:ff:ff:ff:ff   Which is fine.  But inside the LXC container (not always) I can see something like that:  11: eth0@if12: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000     link/ether XX:XX:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff link-netnsid 0     inet 10.10.44.44/16 brd 10.10.255.255 scope global eth0        valid_lft forever preferred_lft forever     inet6 fe80::24cb:a3ff:fefe:72cc/64 scope link        valid_lft forever preferred_lft forever 13: eth1@if14: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000     link/ether XX:XX:XX:XX:XX:XX brd ff:ff:ff:ff:ff:ff link-netnsid 0     inet 192.168.1.29/24 brd 192.168.1.255 scope global eth1        valid_lft forever preferred_lft forever     inet6 fe80::b471:7eff:fea7:a8bc/64 scope link        valid_lft forever preferred_lft forever   What is this @if1[2,4]? Moreover ifconfig always prints eth[0,1]


From my understanding, my instructor told me that in order to use the Lagrangian, defined as $$L \equiv T - V,$$ to find the equations of motion via the Euler-Lagrange equations, the generalized coordinates of the system must be derived from the positions of the particles in an inertial reference frame. Is this correct? Also, is this requirement built into the definition of generalized coordinates?  What if we use the most general definition of the Lagrangian, i.e., the one that says the Lagrangian is the function such that the Euler-Lagrange equations give the correct equations of motion?

Do Euler-Lagrange equations hold only for inertial systems? If yes, where is the point in the variational derivation from Hamilton's principle where we made that restriction? My question arose because I was thinking how could you describe the motion of pendulum with an oscillating suspension point, something like this:  If you take your coordinate frame fixed in the suspension point, you would get the motion of a simple pendulum, which is false (because it's a non-inertial frame and you should have virtual forces). But if it were moving at constant speed, a moving coordinate frame should give the same equations of motion. So where does the restriction to non-inertial frames come from in the Lagrangian formalism? I've read that in non-inertial frames the lagrangian would be $L(q,\dot q, \ddot q, \dddot q..., t)$, but I didn't see a detailed explanation. And I'm not sure if the situation would be similar to Kepler's problem in polar coordinates.


I've tried doing this but when I save the QGIS Project to my desktop its only a few KB's so when I try to open this up on a different computer all the information inside the actual file is missing.  I'm wondering if there is a way to save all the data to a location or how to find where the data is currently being saved.

For purpose of a project, I created a project in QGIS - aerophoto base and 3 layers. It works perfect on my computer, but if I save it on CD, the project doesent work on any other computer... I saved all data for layers & project works from CD, but only on computer, where it was created.  How can I save it, so it will be working on other comps, since I have to distribute this project to other partners?  I am using windows and QGIS 1.8.0. Lisboa  EDIT & MORE INFO: my project is aerophoto based with one raster and 2 vector layers. It works on my comp (where QGIS 1.8.0 Lisboa is installed).  Now I need to put it on USB (and few on CD), so I can take to my menthor and cooperants to see it...  I copied all data (those are in same folder), I downloaded the QGIS Lisboa (.exe file) so everyone can install it. Now all is on usb. It works on my computer, where this was created. But when I try to see it on laptop (after installing QGIS), it serves me with error (runtime error) - same on my friend computer.  Proposal to make a USB option of qgis is nice, I am in a process of trying, but i suspect there is something else, because error is reported.  if possible, step by step solution, because I am comp analphabet actually :(


I never upgraded my 3 speed Suntour XCT302 I got with my Cycle 7 years ago. It seems to work well and I don't find the need to upgrade it anytime soon in the future but what I wanna know is how do expensive cranksets affect the performance? Initially, I thought it was some marketing gimmick and I didn't bother much but lately, I have found cranksets that are ridiculously priced. I do wanna mention that I am a beginner and I don't have much experience with cycle parts so please forgive my ignorance. Thank you!

What are the advantages of upgrading the crankset on a bicycle?  For example, my bike () comes with a  crankset. I'm assuming this is a pretty basic crankset since it lies at the bottom of their .  Would there be a substantial improvement by upgrading to something nicer? My (uneducated) guesses are that a higher end crankset would be lighter (e.g made from carbon) and possibly have less flex under power application.


So I recently had to get my windows hard drive replaced with a bigger drive, and I have ubuntu 20.10 loaded on a separate drive, but now I can't access the Grub menu even through BIOS. It only gives me one option, Windows, but when I use my 20.04 install drive, it recognizes that my other drive has ubuntu on it, as well as windows on my other drive. How do I get the Grub menu to show back up?

I installed Windows 7, which ate Ubuntu's boot file. When starting up the computer, it now goes straight to Windows, without giving me the option of booting Ubuntu.   How can I get Ubuntu back?


This is a simple question. I have two double numbers in VB.NET 2.0.  A = 226.8 B = 224.4  Dim result As Double = A - B   And what I got in result is 2.4000000000000057  Why is .NET putting there all those zeroes???  Thanks a lot

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


If the fielder has a ball in his hand and he is going for run out. Suppose his body  hits the wicket while doing the stumping not his hand then what will happen?

If a batsman hits the ball inside the ground and begins running between the wickets and now the ball is thrown back to the Fielder/Bowler/WK(FBWK)    If the FBWK catches the ball in one hand and hits the stumps with other hand before the batsman gets reached, is this a run out? If the FBWK catches the ball in hands and hits the stumps with leg or any other part of his body before the batsman gets reached, is this a run out?   This scenario can occur, when the ball was thrown far away from stumps.


Any way to set a custom tile size via the registry in Windows 8?  Now I don't mean I want to change the tile size of x tile to "small", "medium" or "large". I want to be able to set the exact size of a tile to whatever I damn well please.

Well I really love the MetroUI in Windows 8 but is there any possibility to resize the tiles ?


I'm pretty sure that I have asked 5 (really 6) well-received questions on this site, my questions are , but for some reason, I don't have the 5 separate days of asking a good question. Why is this? Is this a bug?

Formerly List of all badges with full descriptions.  What are badge name's requirements? Why didn't I get badge name ? Which badges can I earn multiple times?    Jump to:                    Note: Some badges are awarded based on score. The term score means the total number of upvotes minus the total number of downvotes.  Any badge with a *** next to it is one of 20 badges that count towards the  displayed on a moderator candidate in an election. The candidate score is a total of 40 points: the first 20 are awarded based on the user's rep divided by 1000 and rounded down; the second 20 represents the total number of unique badges earned of the 20 that count. Note that if the same badge is earned multiple times, it will only count once towards the candidate score.  Any badge with a "(retired)" next to it is no longer awarded, but is retained by users who previously earned them. See  for more info on what it means for a badge to be retired.       Visit the  of the  on any site to see a complete list of badges that you can filter by earned, unearned, or type.


I need to escape array's, I am using array_map with mysqli_real_escape_string.  I have multiple arrays like  $_post['countries']; $_post['categories']; . .   How do I perform escaping on these arrays  I am doing this way   $countries=array_map('mysqli_real_escape_string', $_POST['countries']); $categories=array_map('mysqli_real_escape_string', $_POST['categories']); . .   but it shows me error as Warning: mysqli_real_escape_string() expects exactly 2 parameters, 1 given in  also doing  $categories=mysqli_real_escape_string($connection, $_POST['categories']);    gives error as   Warning: mysqli_real_escape_string() expects parameter 2 to be string, array given in   Please see and suggest a way or another better way to do this.  Thanks

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


I'm writing some images back to block devices, with dd, and getting very strange output I've never seen before.  # xz -dc goren.img.xz | dd bs=1M of=/dev/storage2/goren 35+2475166 records in 35+2475166 records out 21474836480 bytes (21 GB) copied, 222.912 s, 96.3 MB/s # xz -dc gronn.img.xz | dd bs=1M of=/dev/storage2/gronn 50+2413782 records in 50+2413782 records out 21474836480 bytes (21 GB) copied, 233.478 s, 92.0 MB/s # xz -dc grummle.img.xz | dd bs=1M of=/dev/storage2/grummle 63+2443466 records in 63+2443466 records out 21474836480 bytes (21 GB) copied, 222.898 s, 96.3 MB/s # xz -dc hozen.img.xz | dd bs=1M of=/dev/storage2/hozen 19+2556787 records in 19+2556787 records out 21474836480 bytes (21 GB) copied, 250.989 s, 85.6 MB/s   The output I expected to see in each case (and what I got when creating the image files) is:  20480+0 records in 20480+0 records out   As far as I can tell the images are being written correctly, though I am concerned with the number of records shown. This is obviously not correct in any of the cases. Though, as I said, the written images match the originals, pass filesystem checks, etc.  I'm using Fedora 21 x86_64 with coreutils 8.22.

I am running the following command on an ubuntu system:  dd if=/dev/random of=rand bs=1K count=2   However, every time I run it, I end up with a file of a different size.  Why is this?  How can I generate a file of a given size filled with random data?


i am tyrinig to clone an object, do you know if exist a better solution of this one?     this.objClone =   JSON.parse(JSON.stringify(this.obj));   I am using redux and i have this error:     ERROR TypeError: Cannot assign to read only property 'value' of object   '[object Object]'

What is the most efficient way to clone a JavaScript object? I've seen obj = eval(uneval(o)); being used, but . I've done things like obj = JSON.parse(JSON.stringify(o)); but question the efficiency.  I've also seen recursive copying functions with various flaws.  I'm surprised no canonical solution exists.


I have some text I want to copy, for example from an office document, from a mail document or anything else, into the windows explorer (the browser) without formatting.   I have tried to paste the text using WIN-V or SHIFT-WIN-V, which does not work. Neither does  seem to work (formatting still pasted).   So how can I paste some text into a Windows Explorer field with all formatting (e.g. enumeration) removed?

Windows copies and pastes Rich Text. I want it to copy and paste only raw text. Is there any way to change this behaviour globally?  Someone in  suggested to use AutoHotKey tho change this, but I don't think this will work with my current clipboard manager


I have a c++ class that I've defined in a header file testclass.hpp  the code works fine in as an .exe now I want to use it for a dll  and I don't know how to do it I visted MSDN site and did what they tell there but in didn'T help , any idea how to do this. here a code example :  #ifndef TESTCLASS_H #define TESTCLASS_H  #include <iostream>   class Test{     private:       int variable1;      int variable2;     public:      Test(float,int);      ~Test();      void doStuff();      int getstuff();  }; #endif   and this is what I tried :  #ifndef TESTCLASS_H #define TESTCLASS_H #ifndef TESTCLASSDLL_EXPORTS #define TESTCLASSDLL_API __declspec(dllexport)  #else #endif #define TESTCLASSDLL_API __declspec(dllimport)  #include <iostream>   class Test{     private:      static __declspec(dllexport) int variable1;     static __declspec(dllexport) int variable2;     public:     TESTCLASSDLL_API Test(float,int);     TESTCLASSDLL_API ~Test();     TESTCLASSDLL_API void doStuff();     TESTCLASSDLL_API int getstuff();  }; #endif

Most of my C/C++ development involves monolithic module files and absolutely no classes whatsoever, so usually when I need to make a DLL with accessible functions I just export them using the standard __declspec(dllexport) directive.  Then access them either dynamically via LoadLibrary() or at compile time with a header and lib file.   How do you do this when you want to export an entire class (and all it's public methods and properties)?  Is it possible to dynamically load that class at runtime and if so, how?  How would you do it with a header and lib for compile time linking?


We invoke something using an invocation.  Is the use of a k and a c in words of the same root like this unusual? Might I reasonably expect invocation to be spelled invokation?

I was wondering about this for a while now. Could anyone explain this phenomenon or is it just "English quirks"?  Examples:   invoke/invocation provoke/provocation revoke/revocation


Not all verbs work with all nouns.  It is better to say "fix errors" than "solve errors", for example.  In linguistics, is there a name for semantic compatibilities between nouns and verbs that go before them like this?

Or vice versa. Or perhaps a name for the pair itself?  For example:   hold an opinion make a complaint offer an apology   Also, where might I find a list of such pairs?    EDIT: I chose my title wording randomly. I have no idea whether 'cognate verb' is the correct term for these things. However, I've just found out that 'cognate objects' are a defined class in linguistics, so perhaps my choice of words was inappropriate. I'm going to leave the title as it is, anyway.


A document I could compile last year now gives the error in the title. I freshly updated my texlive 2019 again, to no avail.  I could cut my code to the following MNWE :  \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.6} \begin{document} \begin{tikzpicture} \begin{axis}[xmin=0.5, xmax=3.5,ymin=0,ymax=5] \draw [fill=black] (2.8469202923297705,0) circle (1.5pt); \end{axis} \end{tikzpicture} \end{document}   Setting compat to 1.5 gets rid of the error, as does removing any one of the four viewport specifications xmin, xmax, ymin, ymax.  However, in those circumstances the code does compile but the resulting plots are not looking right (it seems all the points are at the same place).  Last year I used to compile with compat=1.15.  I manually reverted pgfplots to version 1.15 but the problem persists.

With a fresh installation of TeX Live (updated just before writing this post), circles in axis environments are distorted. Consider the following MWE:  \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.16}  \begin{document}  \begin{tikzpicture} \begin{axis}[   ymin=-3, ymax=3,   xmin=-3, xmax=3 ]  \draw (1,0) circle [radius=1.5]; \fill (1,0) circle [radius=1];  \end{axis} \end{tikzpicture}  \end{document}   The output looks like this:   Obviously, the circles aren't even circles. I haven't encountered this problem before. Did I do anything wrong while setting up my new system?  EDIT: It's not an issue of using axis equal or not since the axes are scaled more or less equally already. Instead, the circles appear as rotated ellipses that are strongly stretched out in one dimension.  EDIT 2: Here's the output of \listfiles:  article.cls    2019/12/20 v1.4l Standard LaTeX document class   size10.clo    2019/12/20 v1.4l Standard LaTeX file (size option) pgfplots.sty    2018/03/28 v1.16 Data Visualization (1.16) graphicx.sty    2019/11/30 v1.2a Enhanced LaTeX Graphics (DPC,SPQR)   keyval.sty    2014/10/28 v1.15 key=value parser (DPC) graphics.sty    2019/11/30 v1.4a Standard LaTeX Graphics (DPC,SPQR)     trig.sty    2016/01/03 v1.10 sin cos tan (DPC) graphics.cfg    2016/06/04 v1.11 sample graphics configuration   pdftex.def    2018/01/08 v1.0l Graphics/color driver for pdftex     tikz.sty    2020/01/08 v3.1.5b (3.1.5b)      pgf.sty    2020/01/08 v3.1.5b (3.1.5b)   pgfrcs.sty    2020/01/08 v3.1.5b (3.1.5b) everyshi.sty    2001/05/15 v3.00 EveryShipout Package (MS) pgfrcs.code.tex  pgfcore.sty    2020/01/08 v3.1.5b (3.1.5b)   pgfsys.sty    2020/01/08 v3.1.5b (3.1.5b) pgfsys.code.tex pgfsyssoftpath.code.tex    2020/01/08 v3.1.5b (3.1.5b) pgfsysprotocol.code.tex    2020/01/08 v3.1.5b (3.1.5b)   xcolor.sty    2016/05/11 v2.12 LaTeX color extensions (UK)    color.cfg    2016/01/02 v1.6 sample color configuration pgfcore.code.tex pgfcomp-version-0-65.sty    2020/01/08 v3.1.5b (3.1.5b) pgfcomp-version-1-18.sty    2020/01/08 v3.1.5b (3.1.5b)   pgffor.sty    2020/01/08 v3.1.5b (3.1.5b)  pgfkeys.sty pgfkeys.code.tex  pgfmath.sty     pgfmath.code.tex pgffor.code.tex tikz.code.tex l3backend-pdfmode.def    2020-02-03 L3 backend support: PDF mode supp-pdf.mkii epstopdf-base.sty    2020-01-24 v2.11 Base part for package epstopdf epstopdf-sys.cfg    2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live


I got a facebook looking back movie, however, I didn't post it immediatly. I then deleted some photos and went back to watch the rest of the video then share it, but all I saw were like six pictures.I wish to know if I will ever get a video again.

I was able to successfully create and share the FB Lookback movie, but had to delete it when I saw a picture had been included that should not be shared (someone with their ex).    After deleting the picture I tried to go back to  but it now only gives me a still collage of 6 pictures.  Does anyone know how to get a second chance at the movie?


I'm trying to use the Vector Geoprocessing Difference Tool in QGIS to "take a bite" out of one polygon using another in another layer. The tool menu Difference icon is exactly what I'm trying to do - it shows a circle that it "taking a bite" out of the overlapping corner of a rectangle beneath it.  I've tried every combination of input in the dialog (swaping input layer and difference layer, using selected polygons, etc.) I get three results: The union of the two layers (!), all of layer one, or all of layer two. I only get results by selecting "use only selected features". When I don't "use only selected features" it simply churns away and never produces anything at all.  The dialog seems simple and straight-forward, the operation is pretty basic, so I wonder what I am doing wrong.   Is there some twist or trick to this that I'm missing?   I've looked for detailed tutorials and/or instructions, but have not found any.

I want to erase the pink polygon from the blue polygon. I've tried clip, difference, and symmetrical difference. Clip produces an empty polygon. Difference produces just another blue polygon.


okay so im having some issues. im very new to linux at this point ive only used it for about a day. and i bought a tp link wifi adapter for better internet. while ubuntu seems to notice it and connect through it, im having a lot of trouble downloading and installing drivers. the guide they give seems to have incomplete commands for me to follow along with in terminal and the only drivers im getting are a folder with some text files and code. i was kind of following it until it told me to compile the drivers by going into the driver directory. i don't know were whats installing to. please i dont want to bother people but im totally lost and i don't want to feel like i just wasted 30 dollars on a hunk of broken plastic. and so far ive only seen threads about it on ubuntu 14 and 16.   also im very sorry for not giving you the wireless info script. terminal keeps telling me its unable to resolve host adress, this is also not a connection problem its a speed problem. installing the drivers as ive been told dont work. i get a bunch of error messages. when installing things like sudo apt-get install rtl8192cu-dkms terminal tells me it is unable to locate the package. there's supposed to be a chip.ko file in the directory but i dont see any chip.ko file or any new file names from what comes in the base download.  edit: the kernal version for ubuntu 18 is too new to work with this device.  please stop flagging this as a duplicate when the threads talking about this device do not address any of these issues.

I plan to install Ubuntu soon on my PC. I currently use a TP-LINK TL-WN822N wireless adapter. I want to know if it will work without additional setup.


I would like create something like that in QGIS:   I have a huge amount of points and I can import in QGIS (lat, long). I can create also heatmap but the result isn't like image above. if it is useful to the purpose, I have also the possibility to import a huge amout of line (I can join all my points with index before import in QGIS).  How can I obtain the lines density like the image above?

I want to perform a line density analysis for my line data, based on an attribute.   The heatmap option (kernel density analysis) seems to be only possible for point data.  I have tried to convert my line data into points, and create a heatmap, but the attributes for the weight were lost on the conversion.  This is a line density analysis performed with ArcGIS. I was looking to do the same with QGIS.    Is it possible to perform a similar line density analysis in QGIS?


I am searching for an answer to the use of 'for' in the following sentences:   I would like for you to keep it. Life was too weird for Jeff to return to class.   I've found some answers. For example: 'because' or 'since' and also as a conjunction instead of as a preposition and I've seen it described as an intensifier. But I don't think it's any of those here. Is it a prepositional phrase?  If so, why is it possible to take out 'for' in the first sentence but not in the second?

Is there any difference between "To like for somebody/something to be something" vs. "to like somebody/something to be something"?   In the following case there seems to be a difference, because the former seems to suggest that one would like so for the sake of the other, and latter for ones own.          "I would like for you to be happy" vs. "I would like you to be happy"  Here, the above distinction makes no sense, since the weather is inanimate. Is the former a valid thing to say at all?     "I would like for the weather to be nice" vs. "I would like the weather to be nice"


I boil an eclectic mix of vegetables and some chicken breast (I boil the vegetables and chicken breast separately) then blend everything together in a blender (using water from boiling the vegetables plus some more water). I then pour this smoothie into a Tupperware container and put it in the freezer. My questions are:   If after X days, I put my Tupperware container with my frozen smoothie inside the microwave and heat it until it's not frozen (but still cold), will my smoothie still be edible? How high can X be (for how many days can I keep my smoothie frozen before it spoils)? If the answer to 1. is 'yes', approximately for how long will my smoothie be edible? i.e. If I defrost my smoothie in the morning (using a microwave) so that it's a cold liquid then put it in the fridge, will my smoothie still be edible 12 hours later? What could compromise the edibility and the nutrients/enzymes content of my smoothie?   Note that I do not care about taste or texture. Also note that I will not be re-freezing anything defrosted.

How do I know if a given food or ingredient I have is still good, or if I should discard it?  How can I best preserve a food or ingredient?     This broad question is intended as a "general reference" question to quickly answer many how long will food keep for? questions. Please feel free to edit this question to expand and clarify as needed.


Find the inverse of $5$ under multiplication modulo $11$ on $Z_{11}$  Please help me with problem. Can't show any work because I don't know how to proceed.

I need to find out the modular inverse of 5(mod 11), I know the answer is 9 and got the following so far and don't understand how to than get the answer. I know how to get the answer for a larger one such as 27(mod 392) but am stuck because they are both low numbers.  11=5 (2)+1  5=1 (5)


That's pretty much it, my Sony Xperia Z3 Compact came with AVG antivirus preinstalled and I can't see how to uninstall it, since it does not show up in Play Store under My Apps / Installed (or anywhere else). My Android version is 4.4.4 .  Note that my problem is not the one mentioned in . In my case under Settings > Security > Device administrators the checkbox next to AVG was already unchecked. Instead my problem is simply that I don't know where to start the uninstallation process (and I don't understand why all my installed apps do show up as expected under My Apps but AVG does not).

I'm using a Samsung I9000 and I have some annoying apps that came pre installed by the phone vendor, like a music store, a custom web browser and other memory leaking apps.  Those crappy apps can't be uninstalled neither by Manage applications tool, nor by editing the apps tiles in the front menu.  I guess I have to be a root user or something to get rid of those apps, but I don't know how.


Google Code Prettify currently does not support syntax highlighting for the Dart language (no wonder why). Currently there are already few questions (and answers) about Dart which contain code blocks. As they are not highlighted, would it be right to edit them and explicitly specify an other language (lang-javacript seems to provide the best highlighting options for Dart code)? Like this:  <!-- language: lang-javascript -->  Or it would be better to leave them as is and wait until Google Code Prettify author adds a support for the Dart?

I just approved several edits from a user adding  to questions with the  tag. Apparently , Google Code Prettify has added support for Dart.  I suggest it's time to follow suit and update the default syntax highlighting associated with the  tag. Adding it manually to every question sounds like way too much work, even if I all I have to do is click the "Approve" button.


When I click on an empty space in a folder view, I get this menu:    I'd like to replace Open PowerShell window with Open Command Prompt Here.  Note, that I am not right-clicking on a folder, but rather on an empty space within a folder.  P.S.  This question is about clicking on an empty space in Explorer, not clicking on a folder.

Shift-rightclicking an empty spot in Explorer displays "Open with PowerShell" instead of "Open with Command Prompt" since the  (2017-04). How can I get the old behaviour back where it shows "Open with Command Prompt"?  I tried changing the setting "Show PowerShell instead of Command Prompt when rightclicking the Start Menu or pressing Windows + X" to off, but that didn't change the shift+rightclick menu.


I'm trying to edit a speech and found a commonly used phase which I'm not sure if I should amend it or not. The sentence goes like this:      [a subject] is committed to supporting [a project].    Should I amend it to the following?      [a subject] is committed to support [a project].    Is the original version fine? Does the meaning change if I amend it?

Does "feel committed to" require an infinitive or gerund complement?   For example, which of the following is grammatical?        I feel committed to following up on that.   I feel committed to follow up on that.


the output of dmesg | grep Blue:     [   26.323574] Bluetooth: Core ver 2.22 [   26.323590] Bluetooth: HCI device and connection manager initialized [   26.323593] Bluetooth: HCI socket layer initialized [   26.323596] Bluetooth: L2CAP socket layer initialized [   26.323601] Bluetooth: SCO socket layer initialized [   26.622067] Bluetooth: hci0: BCM: chip id 70 [   26.623062] Bluetooth: hci0: BCM: features 0x06 [   26.639063] Bluetooth: hci0: foola-X555LA [   26.639067] Bluetooth: hci0: BCM (001.001.011) build 0000 [   26.752454] Bluetooth: hci0: BCM: Patch brcm/BCM.hcd not found [   28.764082] Bluetooth: hci0: command 0x1003 tx timeout [   28.765089] Bluetooth: hci0: unexpected event for opcode 0x1003 [   37.549122] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [   37.549124] Bluetooth: BNEP filters: protocol multicast [   37.549127] Bluetooth: BNEP socket layer initialized [   40.604056] Bluetooth: hci0: command 0x1003 tx timeout [   40.605066] Bluetooth: hci0: unexpected event for opcode 0x1003 [   67.695736] Bluetooth: RFCOMM TTY layer initialized [   67.695745] Bluetooth: RFCOMM socket layer initialized [   67.695751] Bluetooth: RFCOMM ver 1.11 [  141.765044] Bluetooth: hci0: command 0x1003 tx timeout [  141.766235] Bluetooth: hci0: unexpected event for opcode 0x1003  The output of lspci -knn | grep Net -A2; lsusb: 03:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM43142 802.11b/g/n [14e4:4365] (rev 01)     Subsystem: Lite-On Communications Inc BCM43142 802.11b/g/n [11ad:6675]     Kernel driver in use: wl Bus 001 Device 002: ID 8087:8000 Intel Corp.  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 004: ID 04ca:2006 Lite-On Technology Corp. Broadcom BCM43142A0 Bluetooth Device Bus 002 Device 003: ID 0bda:57b5 Realtek Semiconductor Corp.  Bus 002 Device 002: ID 1b3f:2008 Generalplus Technology Inc.  Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub  Any help I would be very grateful!

Bluetooth is on but can't find or be found by any other devices.  Output of sudo service bluetooth status:  ● bluetooth.service - Bluetooth service    Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)    Active: active (running) since ხუთ 2015-06-04 22:33:18 GET; 13min ago  Main PID: 26678 (bluetoothd)    CGroup: /system.slice/bluetooth.service            └─26678 /usr/sbin/bluetoothd -n  ივნ 04 22:39:14 Rangoo bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/HFPAG ივნ 04 22:39:14 Rangoo bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/HFPHS ივნ 04 22:39:14 Rangoo bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/A2DPSource ივნ 04 22:39:14 Rangoo bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/A2DPSink ივნ 04 22:39:14 Rangoo bluetoothd[26678]: bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/HFPAG ივნ 04 22:39:14 Rangoo bluetoothd[26678]: bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/HFPHS ივნ 04 22:39:14 Rangoo bluetoothd[26678]: bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/A2DPSource ივნ 04 22:39:14 Rangoo bluetoothd[26678]: bluetoothd[26678]: Endpoint registered: sender=:1.63 path=/MediaEndpoint/BlueZ4/A2DPSink ივნ 04 22:39:14 Rangoo bluetoothd[26678]: Adapter /org/bluez/26678/hci0 has been enabled ივნ 04 22:39:14 Rangoo bluetoothd[26678]: bluetoothd[26678]: Adapter /org/bluez/26678/hci0 has been enabled   Output of lsusb:  Bus 003 Device 005: ID 0a5c:21d7 Broadcom Corp. BCM43142 Bluetooth 4.0   How can I fix it?


I am trying to power off and power  on  usb port in Ubuntu 12.04 without success.    I tried the steps listed below:  echo "0" > "/sys/bus/usb/devices/$port/power/autosuspend" echo "auto" > "/sys/bus/usb/devices/$port/power/level"   and    echo "auto" > "/sys/bus/usb/devices/2-1.3/power/control"  echo "0" > "/sys/bus/usb/devices/2-1.3/power/autosuspend_delay_ms"   and   echo suspend | sudo tee /sys/bus/usb/devices/XXXX/power/level

Is it possible to on/off a specific USB port using the terminal in Ubuntu?  lsusb displays the following result:  Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 003: ID 2232:1020 Bus 002 Device 009: ID 0bc2:a013 Seagate RSS LLC Bus 002 Device 003: ID 0a5c:219c Broadcom Corp.    is my external hard disk drive. Can I power it off in the terminal?  I tried . But I am confused about what should be replaced in place of usbX.


I was reading about arrays and I programmed the first code below . The teacher did program the second code for searching in an array for a specific number. What is the difference in ordo notation between the two following codes in java . Which code performs better and what its big O notation.  My code  public static void main(String[] args) {     int[] data = { 100, 110, 120, 130, 140, 150 };    int index = binarySearch(data, 120);    System.out.println(index); }  private static int binarySearch(int[] data, int i) {     if (data.length == 0)    {       return -1;    }     for (int k = 0; k < data.length; k++)    {       if (data[k] == i)       {          return k;       }    }     return -1; }        Teacher's code  public static void main(String[] args) {    int[] data = { 100, 110, 120, 130, 140, 150 };    int index = binarySearch(data, 120);    System.out.println(index); }  static int binarySearch(int[] keys, int v) {    int position;    int begin = 0, end = keys.length - 1;    while (begin <= end)    {       position = (begin + end) / 2;       if (keys[position] == v)       {          return position;       }       else if (keys[position] < v)       {          begin = position + 1;       }       else       {          end = position - 1;       }    }    return -1; }

I'd prefer as little formal definition as possible and simple mathematics.


A very long time ago I saw an anime or cartoon, this was at least 20 years ago, but most likely less then 30. In the story there were some astronauts battling a bird creature in space. One of the female astronauts got hit by an space-bird-egg, and because she had space-bird-egg-yolk in her hair, she then worked for the bird. Later, the other astronauts confronted her in the lair of the space-bird, and they were confused as to why she switched sides, but as they saw the space-bird-egg-yolk, they were like "of course, the egg caused this!", as if mind-controlling-space-bird-egg-yolk was common knowledge. I don't remember anything else about it, but I think that the art style was similar to the Daft Punk music videos.

What is the name of an anime from 80s-90s movie/series in which there is a scene, maybe the end, where a girl (who has an armor) exchanges age with a dying man in a beach, so the man transforms into a baby and the girl grows to a woman?


I wouldn't call it hard by mouthfeel, but after using the boil and soak method on some dried pinto beans and cooking in a chili pot for 1.5 hours,

I made a bit of a mistake, being a lazy bachelor and inexperienced at cooking.  I was making chili and when it came time to add beans I discovered I didn't have any canned beans.  I did however have some dried beans.  I decided to save time and add these directly to the pot of chili and add some water.  However, after much simmering the beans maintain a certain unpalatable crispness.  I have also read that undercooked beans contain a chemical lectin which can cause stomach discomfort.  I have also read that beans should be soaked, the water discarded to remove the lectin, and then boiled to cook them.  Is there any way to salvage this?  Should I just continue cooking the chili for hours?  Will I have to throw out my potentially delicious chili?


I see following code in a script:  OLD_IFS="$IFS" IFS='something-special' # code that needs the special IFS # ... IFS="$OLD_IFS"   If the IFS is not set before the script fragment then the script sets it to an empty string and the empty IFS and undefined IFS are different.  The script probably assume the IFS is always set. Is it safe to make such assumption?

I am always really hesitant to mess around with $IFS because it's clobbering a global.   But often it makes loading strings into a bash array nice and concise, and for bash scripting, conciseness is hard to come by.   So I figure it might be better than nothing if I try to "save" the starting contents of $IFS to another variable and then restore it immediately after i am done using $IFS for something.   Is this practical? Or is it essentially pointless and I should just directly set IFS back to whatever it needs to be for its subsequent uses?


In creating javascript objects, I can put a method declaration either in the constructor function or in the prototype.  For example, say I want a Dog class that has a Name property and a Bark method.  I can put the declaration of the Bark method into the constructor function:  var Dog = function(name) {     this.Name = name;     this.Bark = function() {         alert(this.Name + " bark");     }; }   or I could put in as a method on the prototype object:  var Dog = function(name) {     this.Name = name; }  Dog.prototype.Bark = function() {     alert(this.Name + " bark"); };   When I instantiate objects of type Dog, both approaches seem to work fine:    var dog = new Dog("Fido"); dog.Bark();  //Both approaches show "Fido bark"   Should I prefer one of these approaches over the other?  Are there any advantages to using one over the other?  Behind the scenes, do these two approaches end up doing exactly the same thing?  Which approach do most people tend to favor?  Thanks for the help.

What's the difference between  var A = function () {     this.x = function () {         //do something     }; };   and  var A = function () { }; A.prototype.x = function () {     //do something };


My F3 button doesn't work in Minecraft and no I don't want to brighten me screen but the F3 button is used for opening the coordinates and a lot of other things but for some reason I press the button to do but it brightens the screen instead.

I can't get the coordinates on my computer because it keeps changing the brightness.  I have a windows 8 Samsung, and I'm playing Minecraft version 1.6.4.


In  it is stated that $$ \sum_{n\geq1}\frac{1}{n^2}=\sum_{n\leq x}\frac1{n^2}+\mathcal O(1/x). $$ Is this statement true as $x\to\infty$? What I've done: If $x$ is fixed, then I think the answer is almost trivial, because we may set $C=\pi^2x/6$, so $$ \sum_{n=x}^\infty\frac1{n^2}\leq\sum_{n=1}^\infty\frac1{n^2}=\frac{\pi^2}{6}=\frac{C}{x}, $$ therefore $$ \sum_{n\geq1}\frac1{n^2}=\sum_{n\leq x}\frac{1}{n^2}+\sum_{n=x}^\infty\frac{1}{n^2}\leq\sum_{n\leq x}\frac{1}{n^2}+C/x=\sum_{n\leq x}\frac{1}{n^2}+\mathcal O(1/x). $$ But is there a constant independent of $x$ that makes this true?

I have been told it is very simple, but I cannot work it out. I was thinking I use that I know the left hand side converges?


We are in the process of upgrading our ASP.NET 4 website from XHTML 1.0 to HTML 5. The <form> tag is generated automatically as it is ASP.NET, and it looks like:  <form method="post" action="" id="MainForm">   Almost on all pages of our website we do not have any special button that should lead to an action, so it's OK to have the action attribute empty (action=""). However, every HTML 5 validator tells us that the action attribute should not be empty.  How can we overcome this problem without changing the existing website functionality? Or, maybe, we can live with that and this will never affect such serious things as Google SERP positions, etc...?

Some SEO analysts says that fixing W3C validation errors of a website is an important On Page Optimization if so why www.google.com has 23 W3C validation errors, 4 warning(s)? Does Google consider those errors?


how many numbers can we generate from n digit? For example: from 1,2,3, we can generate 1,2,3,12,13,21,....321. And how can we generate a list containing those numbers in python?

I have a list with 15 numbers in, and I need to write some code that produces all 32,768 combinations of those numbers.   I've found  (by Googling) that apparently does what I'm looking for, but I found the code fairly opaque and am wary of using it. Plus I have a feeling there must be a more elegant solution.  The only thing that occurs to me would be to just loop through the decimal integers 1–32768 and convert those to binary, and use the binary representation as a filter to pick out the appropriate numbers.   Does anyone know of a better way? Using map(), maybe?


I am trying to compute the total cost and using alert to display the total cost when the user hit the Submit button. I don't know how to call a var from other functions. Is there a way to do it? Any help will be appreciated. Thank you!    <script type = "text/javascript"> function CostCalculate(){     var TotalCost = AppleCost + OrangeCost + BananaCost;     alert("Your total cost is $ " + TotalCost); } function getQuantity1(){     var promptNum = prompt("Enter numbers of Apple: ");     var AppleNum = parseInt(promptNum);     var AppleCost = AppleNum * 0.59; } function getQuantity2(){     var promptNum = prompt("Enter numbers of Orange: ");     var OrangeNum = parseInt(promptNum);     var OrangeCost = OrangeNum * 0.49;       } function getQuantity3(){     var promptNum = prompt("Enter numbers of Banana: ");     var BananaNum = parseInt(promptNum);     var BananaCost = BananaNum * 0.39; }

I've heard from a variety of places that global variables are inherently nasty and evil, but when doing some non-object oriented Javascript, I can't see how to avoid them. Say I have a function which generates a number using a complex algorithm using random numbers and stuff, but I need to keep using that particular number in some other function which is a callback or something and so can't be part of the same function.   If the originally generated number is a local variable, it won't be accessible from, there. If the functions were object methods, I could make the number a property but they're not and it seems somewhat overcomplicated to change the whole program structure to do this. Is a global variable really so bad?


I have seen a solution to a similar problem:    But what is the solution for a zte modem? I don't think it is the same as that of bcm_wimax.  Help please.

I am facing this issue on Ubuntu 12.04, which is for my Wimax modem with beceem chipset.    If I replug the device Ubuntu goes in hang state. Its happens very often. If I plug the USB and restart it works most of the time. But it is very annoying to restart every time it hangs. The modem works smoothly in Windows 7. And it used to work OK in  Ubuntu 11.10.   Jun 13 19:25:54 iftekhar-HP-520-Notebook-PC dbus[1102]: [system] Activating service name='org.freedesktop.UDisks' (using servicehelper) Jun 13 19:25:54 iftekhar-HP-520-Notebook-PC dbus[1102]: [system] Successfully activated service 'org.freedesktop.UDisks' Jun 13 19:26:00 iftekhar-HP-520-Notebook-PC goa[2168]: goa-daemon version 3.4.0 starting [main.c:112, main()] Jun 13 19:26:47 iftekhar-HP-520-Notebook-PC udevd[432]: timeout 'cdrom_id --lock-media /dev/sr1' Jun 13 19:26:48 iftekhar-HP-520-Notebook-PC udevd[432]: timeout: killing 'cdrom_id --lock-media /dev/sr1' [1072] Jun 13 19:26:49 iftekhar-HP-520-Notebook-PC kernel: [   85.820162] sr 2:0:0:0: Device offlined - not ready after error recovery Jun 13 19:26:49 iftekhar-HP-520-Notebook-PC udevd[432]: timeout: killing 'cdrom_id --lock-media /dev/sr1' [1072] Jun 13 19:27:20  udevd[432]: last message repeated 31 times Jun 13 19:27:25  udevd[432]: last message repeated 4 times    What can I do to avoid this hangs and restarts?


I am using TeX Live on a Linux system. My current OS version is a bit old and the Tex Live packages shipped are not the most recent. I need to use a custom texmf in TEXMFHOME for some CTAN packages. Most of them come with a TDS file, so I can just unzip the TDS archive into my local texmf tree. However, when I want to remove some packages from this local texmf tree, I have to list files in the original TDS archive to make sure I am not removing more or less than necessary. I think I am doing the typical job of a package manager.  I noticed TeX Live comes with a binary tlmgr that looks like a package manager. But my OS prevents me from running this binary, warning me that I should be using the OS package manager (that ships old packages). I don't want to have a separate standalone install of TeX Live because all I need are a few more packages, not an entire copy of TeX Live. It would be great if tlmgr can manage CTAN packages in my local texmf tree. Is this possible?

I am looking for a Python-style virtualenv or venv to create a virtual environment where I can install LaTeX packages such that the packages are available to my current LaTeX project only (but not available system-wide).  I am expecting something like the following:   Create a virtual-environment path, say, ./venv. Set some environment variables or modify tlmgr install commands such that new packages are installed into ./venv with the proper directory structure. Set some environment variables or modify pdflatex commands such that the new documents I compile use packages from the ./venv directory along with the packages in the system-wide paths that came with Tex Live distribution. I do not however want to hardcode any ./venv paths in the LaTeX documents (the .tex files). The source code in the .tex file should be agnostic of whether it is being compiled with a virtual environment or not.


I have recently been encountering sentences like "I have a bed that needs made." "You have a face that needs punched."  Is this proper grammar, and if so; is there a name for this construction?

I'm from Central Pennsylvania, and apparently, we have a strange language construct in this area. I was recently talking about how "my car needs washed" to a friend from NJ, and she told me that my sentence was grammatically incorrect.   I realize she's right, and I realize my options are "my car needs to be washed" or "my car needs washing". But I'm not clear on the precise rule being invoked.


It would be a great feature if one could "subscribe" to the questions of any particular user. Some users ask good questions from your area of expertise, so you want to be notified when it happens.

Is there a way to follow a particular person (or List<Person>) easily? Some people answer the questions in a very educative way, and I don't want to miss them.


In many Algebra textbooks, why rationalizing the denominator is defined to be the simplest form ? I try to understand it but I cannot.Why is $\frac{\sqrt 3}{3}$ simpler than $\frac1{\sqrt 3}$?

In grade school we learn to rationalize denominators of fractions when possible. We are taught that $\frac{\sqrt{2}}{2}$ is simpler than $\frac{1}{\sqrt{2}}$.  says that "there is a bias against roots in the denominator of a fraction". But such fractions are well-defined and I'm failing to see anything wrong with $\frac{1}{\sqrt{2}}$ - in fact, IMO it is simpler than $\frac{\sqrt{2}}{2}$ because 1 is simpler than 2 (or similarly, because the former can trivially be rewritten without a fraction).  So why does this bias against roots in the denominator exist and what is its justification? The only reason I can think of is that the bias is a relic of a time before the reals were understood well enough for mathematicians to be comfortable dividing by irrationals, but I have been unable to find a source to corroborate or contradict this guess.


I give a review here from the film "X-Men Apocalypse" below  "This is Bryan Singer's fourth X-Men film (fifth superhero film overall). This breaks the record set by Sam Raimi and Christopher Nolan, who managed to direct three superhero films (Spider-Man and Batman, respectively).  Here I don't understand the part above "This breaks the record set by Sam Raimi........."  It should be present perfect tense such as ''this has broken the record....'' or it should be in the past simple tense such as "this broke the record......"  a. Is there any rule in English that I can use "present simple tense'' instead of ''present perfect tense"?  b. If it is, then when to use them? (in which situations)  c. Do they carry the same meaning sometimes?  Please see the part no.12 in the site given below  source:

Statement is as follows:      Obama makes a surprise visit to Afghanistan.   Is this a simple present tense? If yes then please explain  As per the definition of simple present tense, this statement does not fall into any of the following categories:   For repeated or regular actions in the present time period. For facts. For habits. For things that are always / generally true.   This statement is one of the headlines in the New York Times.


Ubuntu allows us to set customized login screen (where it will show up only during logout session).  So, by default it shows just a purple background. I managed to find location directory of that file somehow.  But the thing is, during logout session, when we scroll wallpaper over to checkout user profile screen (DM).  It shows just a grey background, is there any possible way to setup custom image instead of simple grey color?

Before you mark the question as a duplicate, I read all of the posts regarding this, but nothing helped me. I'd like to change the background picture of the lock screen.    I changed the ubuntu.css and gdm3.css accordingly to   #lockDialogGroup {   background: #000000 url(file:///usr/share/wallpapers/minimalistic-gray_00323985.jpg);   background-repeat: no-repeat;   background-size: cover;   background-position: center; }   Which results in a change of the Background of the log in screen, not the lock screen. When I press super + L the screen containing time has the correct background. When I swipe it up to tipe in my password, the purple Ubuntu screen still appears. If I click to change the user, the log in screen appears with the right background. I have the same background picture enabled in gnome tweaks for desktop background and lock screen.   I'm running Ubuntu 18.04 GNOME on a TuXedo Laptop. And I use Communitheme - maybe thats the problem?  Any ideas why it doesn't work? (I rebooted multiple times, so that's not the problem.)  EDIT: The output of sudo nano /usr/share/gnome-shell/modes/ubuntu.json is  {     "parentMode": "user",     "stylesheetName": "ubuntu.css",     "enabledExtensions": ["ubuntu-dock@ubuntu.com", "ubuntu-appindicators@ubuntu.com"] }


Using the left action of $\text{SO}(2)$ on $\text{SL}(2,\mathbb{R})$,   show that $\text{SL}(2,\mathbb{R})$ is homeomorphic to $S^1 \times  \mathbb{R}^2$   I tried defining the action by $\psi: \text{SO}(2) \times \text{SL}(2,\mathbb{R}) \to \text{SL}(2,\mathbb{R})$ by $(A,B) \mapsto AB$.  The kernel of this map are pairs $(A,A^{-1})$ such that $A \in \text{SO}(2)$.  Clearly this map is surjective, so I wanted to show that I can now find a canonical homeomorphism $\phi: \text{SO}(2) \times \text{SL}(2,\mathbb{R})/ \ker \psi \to S^1 \times  \mathbb{R}^2$. For instance, maybe the map $(A,B)\ker\psi \mapsto (A,(\cos xb_{1,1} -\sin xb_{1,2}, \sin xb_{2,1} +\cos xb_{2,2}))$ where $A$ is rotation by $x$.  However, I'm not entirely sure this is well defined, and even if so, if it is injective and open.  Using the theory of Lie groups, how should I approach this problem?

Let's consider a group $M$ (under multiplication) of all matrices $A$ of size $2 \times 2$ over $\mathbb{R}$ so that $\det(A)=1$. How to show that the group is homeomorphic to the $S^{1} \times \mathbb{R^{2}}$?  Topology on $M$ is induced by the norm $||A||=\sqrt{x_{1}^{2}+x_{2}^{2}+x_{3}^{2}+x_{4}^{2}}$, where $A = \begin{pmatrix} x_{1} && x_{2}\\ x_{3} && x_{4}\\ \end{pmatrix}$ so it's the same as considering matrix as a point in $\mathbb{R^{4}}$. According to $Q = S^{1} \times \mathbb{R}^{2}$,, the topology on $Q$ is induced by the standart one from $\mathbb{R}^{4}$.   The common idea is to start with considering the $x_{1} x_{4} - x_{2} x_{3}=1$, but i can not find some rigorous ways how to conclude that it's precisely homeomorphic to $Q$.  Any help would be much appreciated.


I have looked at many proofs that show that there exists a normal subgroup of size $p^{k-1}$, but no proofs that all subgroups of size $p^{k-1}$ are normal.

Generalizing the case $p=2$ we would like to know if the statement below is true.  Let $p$ the smallest prime dividing the order of $G$. If $H$ is a subgroup of $G$ with index $p$ then $H$ is normal.


in continuity to the post  and as demanded by matthew this is a post explaining the data i have and the problem  in fact i have a data composed of 46274 values and 68 variables one y=(0=normal cell/1=abnormalcell) and 67 quantitative variables what i want is doing logistic regression y~ (other variables) but i have the following warnings  gg=glm(y~.,data=datf,family=binomial()) Warning messages: 1: glm.fit: algorithm did not converge  2: glm.fit: fitted probabilities numerically 0 or 1 occurred   and what surprises me is that all variables are significant according to summary in addition the accuracy of confusion matrix is equal to 0.99  Call: glm(formula = y ~ ., family = binomial(), data = datf)  Deviance Residuals:     Min      1Q  Median      3Q     Max    -8.49    0.00    0.00    0.00    8.49    Coefficients:               Estimate Std. Error    z value Pr(>|z|)    (Intercept) -1.795e+16  4.304e+07 -417170033   <2e-16 *** a1          -3.220e+13  6.216e+05  -51803034   <2e-16 *** a2           9.065e+13  5.924e+05  153010830   <2e-16 *** a3          -1.767e+13  5.232e+05  -33763208   <2e-16 *** p1          -1.223e+13  1.758e+05  -69542630   <2e-16 *** p2          -9.098e+12  1.752e+05  -51928139   <2e-16 *** p3           8.917e+12  1.564e+05   57009154   <2e-16 *** cont         1.867e+14  1.030e+07   18118056   <2e-16 *** eg           6.280e+14  7.219e+06   86983250   <2e-16 *** h            5.468e+15  3.476e+07  157292659   <2e-16 *** c1           6.532e+15  9.454e+07   69089908   <2e-16 *** c2          -1.284e+14  3.977e+05 -322837213   <2e-16 *** c3          -5.017e+13  1.775e+05 -282705283   <2e-16 *** c4          -4.230e+13  8.652e+04 -488886033   <2e-16 *** ....  Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  (Dispersion parameter for binomial family taken to be 1)      Null deviance: 64149.4  on 46273  degrees of freedom Residual deviance:  7497.1  on 46205  degrees of freedom AIC: 7635.1   then after doing stepwise regression all the variables(33 variables) of selected model were non significatives the warning messages persist and  accuracy was equal to 1                  Estimate   Std. Error  z value   Pr(>|z|) (Intercept)    3.945e+04  3.178e+04   1.241     0.215     a1            -2.499e+02  1.938e+02  -1.289     0.197     p3             2.908e+01  2.391e+01   1.216     0.224 cont           1.279e+04  1.016e+04   1.259     0.208     h              5.125e+04  3.948e+04   1.298     0.194     c1            -2.490e+05  1.871e+05  -1.331     0.183     c2            -3.996e+02  2.989e+02  -1.337     0.181 c7            -5.221e+01  3.932e+01  -1.328     0.184 ....  (Dispersion parameter for binomial family taken to be 1)  Null deviance: 6.4149e+04  on 46273  degrees of freedom Residual deviance: 2.4470e-02  on 46240  degrees of freedom AIC: 68.024 Number of Fisher Scoring iterations: 25   what conclusion should i put or what correction should i do  thanks a lot in advance for any help

Why is it that logistic regression becomes unstable when classes are well-separated? What does well-separated classes mean? I would really appreciate if someone can explain with an example.


I moved a minimal background I had to another layer, then decided to just delete it and remake it on that layer, better than before. I made a nice background, and then I went to test it out, and moved it back to render it, and it showed the same everything I had last time! Nothing I had deleted or added was changed! I added and deleted a few things to test it out, and the render stayed the same, no matter where I moved the camera, or moved on the timeline.  I have no idea what to do! I saw a bunch of people say "Maybe you used H to hide it instead of deleting it." I tried the solution and it didn't work. I've been using X to delete everything.

Blender is rendering an older version of my project, not the most recent one. I have made it using the Blender Render but it does not want to render in cycles either. A black and grey screen is rendered as if everything is transparent. Checked general camera, lighting and compute devises in case I messed something up but I can't find anything. All my textures and objects look normal, does anybody know what is wrong or what to check?  Ok added link:


We know if there exist a Lagrangian of some ODE, then it must exist many equivalent Lagrangian.   My question:  Then must there exist a Lagrangian for any 2nd order ODE? If not, do we have some necessary or sufficient conditions for a dynamical system which can be described by some Lagrangian?

We see variational principles coming into play in different places such as Classical Mechanics (Hamilton's principle which gives rise to the Euler-Lagrange equations), Optics (in the form of Fermat's principle) and even General Relativity (we get Einstein's equation from the Einstein-Hilbert action). However, how do we explain this very principle, i.e., more mathematically, I want to ask the following:      If I am given a set of generalized positions and velocities, say, $\{q_{i}, \dot{q}_{i}\}$, which describes a classical system with known dynamics (equations of motion), then, how do I rigorously show that there always exists an action functional $A$, where    $$A ~=~ \int L(q_{i}, \dot{q}_{i})dt,$$    such that $\delta A = 0$ gives the correct equations of motion and trajectory of the system?    I presume historically, the motivation came from Optics: i.e., light rays travel along a path where $S = \int_{A}^{B} n ds$ is minimized (or at least stationary). (Here, $ds$ is the differential element along the path). I don't mind some symplectic geometry talk if that is needed at all.


Sometimes there are questions asked on a site, but never belong to this site, and are a very good fit for another site. In such cases I would like to vote to migrate this question to the site it fits. However, I can't see such option. For example,  Workplace.SE question fits Security.SE (or perhaps Stack Overflow?), but I can only vote to migrate this question to the corresponding meta site. Is this intentional? Do I not have the privileges to do this? I can't see such a privilege among the .  I am not sure whether it is a bug, something intentional or was not yet implemented, so I am tagging this as .

Wouldn't it be a good idea to be able to vote for questions to be moved to any Stack Exchange site? For example, I just voted  as off topic, but that was all I could do. I wish I could've voted it be moved to .  It's OK to have the predefined list of sites that is now when voting to move, but it would be nice to have a more link, where we could pick any Stack Exchange site.  Here's a quick mockup of how I see this implemented:    When the more link is clicked, a list of all the Stack Exchange sites should appear.


While I'm trying to build rpm using  for Phusion Passenger 4.0.53 (), I get the following error. Any help is most appreciated.  $ ./build -p /srv/passenger_rpm_automation/passenger -P /srv/passenger_rpm_automation/passenger-release-4.0.53 -o /srv/passenger_rpm_automation/out -d 'el6' -a 'x86_64' -c /srv/passenger_rpm_automation/cache  . . rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 -- Error unpacking rpm package filesystem-2.4.30-3.el6.x86_64 rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 -- error: unpacking of archive failed on file /sys: cpio: chown failed - Read-only file system rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 -- /usr/share/info/dir: could not read (No such file or directory) and could not create (No such file or directory) rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 -- /usr/share/info/dir: could not read (No such file or directory) and could not create (No such file or directory) . . . rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 --   xz-lzma-compat.x86_64 0:4.999.9-0.5.beta.20091007git.el6 rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 --   zlib.x86_64 0:1.2.3-29.el6 rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 -- rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 -- Failed: rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 --   filesystem.x86_64 0:2.4.30-3.el6 rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 -- rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 -- rpm:passenger:el6:x86_64: 2014-12-11 15:17:10 -- DEBUG: kill orphans *** Command failed: /usr/bin/mock --verbose  -r epel-6-x86_64 --resultdir '/output/el6-x86_64' --uniqueext passenger-el6-x86_64 rebuild /output/el6-x86_64/passenger-4.0.52-1.el6.src.rpm ----- Task errored: Building binary RPMs -> passenger:el6:x86_64 ----- --------------------------------------------- Current time: 2014-12-11 15:17:10 Start time  : 2014-12-11 15:15:45 Duration    : 1 min 24 sec   Environment: Ubuntu 14.04 LTS 64bit Docker version 1.3.2

I recently migrated a RAID1 from a CentOS 5 system to a CentOS 6 system and ever since when I attempt to perform a check I get the following:  $ echo 'check' > /sys/block/md127/md/sync_action -bash: /sys/block/md127/md/sync_action: Read-only file system   This actually shows up from a CRON too, specifically, /etc/cron.d/raid-check. this is included in the mdadm RPM:  $ rpm -ql mdadm | head -5 /etc/cron.d/raid-check /etc/rc.d/init.d/mdmonitor /etc/sysconfig/raid-check /lib/udev/rules.d/63-md-raid-arrays.rules /lib/udev/rules.d/65-md-incremental.rules   Here I'm running the same command that's used by the CRON:  $ raid-check /usr/sbin/raid-check: line 96: /sys/block/md127/md/sync_action: Read-only file system   This typically runs once a week and sends an email which is what originally alerted me to the issue. But at any rate I'm at a loss why this RAID seems to be unable to be checked.  The RAID seems fine on inspection though.  $ cat /proc/mdstat  Personalities : [raid1]  md127 : active raid1 sda1[0] sdb1[1]       976759936 blocks [2/2] [UU]  unused devices: <none>   I point this out only because while googling I found this thread regarding a bug in mdadm but this was for a older version of mdadm.      Version info  $ lsb_release -d Description:    CentOS release 6.6 (Final)  $ rpm -q mdadm mdadm-3.3-6.el6_6.1.x86_64  $ mdadm --version mdadm - v3.3 - 3rd September 2013


Whenever I try to delete a field associated to a content type, I get the following error:     Drupal\Core\Field\FieldException: Attempt to create a field   field_cert_fields that does not exist on entity type node. in   Drupal\field\Entity\FieldConfig->getFieldStorageDefinition() (line 286   of core/modules/field/src/Entity/FieldConfig.php).   the field field_cert_field is not actually there in any of the content types.   How can i resolve this problem? Even if am getting this error, the field I wanted to delete is deleted.  UPDATE    I have a custom module that defines a custom field in  /modules/certfield/src/Plugin/Field folder .I cant uninstall the module and it says :     The following reason prevents SSl Cert Field from being uninstalled:   Fields pending deletion   once i removed the module manually when it cant uninstall via drush .  I guess that makes the issue . Anyway to get rid of this ?

I'm stuck with an uninstallable module. Drupal insists that there are Fields pending deletion and that the module can not be uninstalled. I've run cron zillion times already as advised for such situations but without success. Cron runs fine, but drupal insists that still, Fields pending deletion.  Visiting /admin/reports/fields gives no clues - the fields provided by that module are not listed. I even tried using drupal console to uninstall module with --force switch, but also without success.  I also tried drush field-info in hope to get some clues, but that's apparently not yet implemented as drush 8.1.2 gives fatal error:     Call to undefined function field_info_fields().   How do I make drupal delete those fields that pending deletion? Do I have to do this manually in database?  I've seen few tables like field_deleted_data_f5e7b87e32 or field_deleted_revision_be01eddd10 but they are all empty. Is that even relevant?


Is there a standard way to cite a volume of a multi-volume series that appeared again in a multi-volume 'collected works' edition.  Like, I wanna cite 'Volume 6 of Series 6 of the collected Works of G.W. Leibniz'. There are 53 volumes total, but for each series, the numbering starts again from 1. So, the Output should be sthg like that: Akademie Edition, Ser. III, Vol. IX, p256  I could solve it with using shorthands, I guess. my .bib file so far Looks like that:  EDIT: MWE  \documentclass[12pt]{article}  \usepackage[ backend=biber,  style=verbose]{biblatex}  \begin{filecontents}{\jobname.bib} @mvbook{A, Author = {Leibniz, Gottfried Wilhelm}, Title = {S{\"a}mtliche Schriften und Briefe}, Volumes = {53}, Year = {1923-}}  @book{A:VI:vi, Author = {Leibniz, Gottfried Wilhelm}, Maintitle = {S{\"a}mtliche Schriften und Werke}, Series = {Philosophische Schriften}, Number= {6}, Title = {Nouveaux Essais}, Volume = {6}, Year = {1962}} } \end{filecontents} \addbibresource{\jobname.bib} \begin{document} \section{Title}  \cite[123]{A}  \cite[123]{A} ***  \volcite[c.f.]{2}[123]{A}  ***  \cite[123]{A:VI:vi}  \cite[123]{A:VI:vi}  \printbibliography \end{document}

My question is related with Biber and Biblatex (latest versions). I need to quote the number of a paragraph of an old Christian text which is published within a book printed nowadays.   More clearly, I'm working with this Biblatex item (it's in Italian):  @INBOOK{Clemente1984Lettera,   author = {Clemente di Roma},   title = {Lettera di Clemente Romano ai Corinti},   year = {1984},   booktitle = {I Padri apostolici},   editor = {Quaquarelli, Antonio},   location = {Roma},   pages = {41-92},   publisher = {Città Nuova} }   I quote it in a common LaTex file with the BibTex key:  \cite[42]{Clemente1985Lettera}   With a humanistic Biblatex style, the final citation is:  Clemente di Roma, Lettera di Clemente Romano ai Corinti, in "I Padri apostolici", edited by A. Quaquarelli, Roma 1985, p. 42.  Anyway, I need to quote specifically the n. 2 of the letter of Clement, so I have to print this number just after the title "Lettera di Clemente Romano ai Corinti". So, I'd like to have this citation:  Clemente di Roma, Lettera di Clemente Romano ai Corinti, n. 2, in "I Padri apostolici", edited by A. Quaquarelli, Roma 1985, p. 42.  Now, I can find no Biblatex field to store the "n. 2" text, and no way to print it after the title. Of course, I could create a specific item in the bibliographic file in which the title field, or another one which is supposed to follow it, contains the "n. 2" indication. Anyway, this solution is very bad to me, because I should fill my archive with items of specific citations, and not of single titles.  What I'm looking for is what I've already implemented in the Bibfilex citations system (), which is moreover far less powerful that Biber: the possibility to add a pipe in the postnote of a BibTex key to separate a possible indication of a number of a paragraph, to be printed just after the title, from the pages of the volume. So a key like that  \cite[2|42]{Clemente1985Lettera}   should print   Clemente di Roma, Lettera di Clemente Romano ai Corinti, n. 2, in "I Padri apostolici", edited by A. Quaquarelli, Roma 1985, p. 42.  Anybody knows how to do that with Biber and Biblatex?  Thanks.


SELECT ID, Name, Marks, Grade  FROM Students AS s  JOIN Grades AS g ON s.Marks BETWEEN g.Min_Mark AND g.Max_Mark;   I browsed numbers of resources about left join, right join, inner join and full outer join, but I have no idea what is this "join" means. Is this some shortcut? if not, what is this?  Thanks.

Both these joins will give me the same results:  SELECT * FROM table JOIN otherTable ON table.ID = otherTable.FK   vs  SELECT * FROM table INNER JOIN otherTable ON table.ID = otherTable.FK   Is there any difference between the statements in performance or otherwise?   Does it differ between different SQL implementations?


Why LaTex return error when I write _ in normal mode (not math mode). Why we have decided to return error, we couldn't just print _. I mean if we write _ in a normal mode it print _ and in normal mode it will have another definition.  What are the reasons for choosing that decision?

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


Ok, so this is code:  \begin{table}[t] \caption{random123} \label{name} \begin{tabular}{|r|l|} \hline  test1 & test2\\ \hline test3 & test4 \\ \hline \end{tabular} \end{table}   And this is how it looks like and what I want to achieve:    Any ideas how can I achieve similar result?  Thanks in advance for help!

I am using this for captions:  \usepackage[font=small,format=plain,labelfont=bf,up,textfont=normal,up]{caption}   But they all come out centred - I want them aligned with the left margin - how can I do this?


Problem:  Trying to use tabularx to align text to a number of images. I have opened a similar question regarding tabular but decided to open a new specifically for tabularx since the tabular approach generated a number of errors which I could not solve.  Since I have figures I did not know how to make a MWE of them. Instead I will try to explain where the issue is.  Code:  \begin{figure}[tbh] \begin{tabularx}{\textwidth}{cX} \includegraphics[scale=.5]{figure8_1_server.eps} & This is some text that describes the first figure. It will take up as much space as is needed and will remain centred I hope.\\ \includegraphics[width=.5in]{figure8_1_arrow.eps} & \\ \includegraphics[width=1in]{figure8_1_database.eps} & This is some text that  describes the second figure. It will take up as much space as is needed   and will remain centred. As the text gets longer  it centres in the way   that we want. So it seems that this is working. \\  \includegraphics[width=.5in]{figure8_1_arrow.eps} & \\  \includegraphics[scale=.5]{figure8_1_table.eps} & This is some text that describes the first figure. It will take up as much space as is needed and will remain centred I hope.\\  \includegraphics[width=.5in]{figure8_1_arrow.eps} & \\  \includegraphics[scale=.5]{figure8_1_row.eps} & This is some text that describes the first figure. It will take up as much space as is needed and will remain centred I hope.\\  \includegraphics[width=.5in]{figure8_1_arrow.eps} & \\  \includegraphics[scale=.5]{figure8_1_cell.eps} & This is some text that describes the first figure. It will take up as much space as is needed and will remain centred I hope. \end{tabularx} \caption{Syntax för iterationen for och dess delar.} \label{fig:database} \end{figure}   Outputs:    Desired outcome:  To have the text vertically aligned with the photos.

Problem:  I have searched how you can align text without the use of tables using LaTex. What I am after is to align images after each other on one side and text to align to respective image on the right hand side.  Example of problem:    Desired outcome:  Basically I am after to be able to align a photo and corresponding text exactly aligned horizontally to the middle of that photo. Each photo/text part should be divided by an arrow which is exactly aligned vertically in the middle of each photo.  I would appreciate if someone could give advice what the best practice is without using any tables.


There two programs  Why is the first code code working?I expected it to throw a Run time Exception  while accessing the elements as String is added instead of Integer  Similarly..  The second code is throwing Run time Exception while accessing the element though it is able to add Integer in the arrayList comfortably despite declaring it to hold String.  In both the codes,We are successful in adding the different Data types,but the problems seems to appear while accessing elements       import java.util.ArrayList;  public class Test {     public static void main(String[] args) {          ArrayList<Integer> arrayList = new ArrayList<>();         Test.addToList(arrayList);          System.out.println(arrayList.get(0));     }      public static void addToList(ArrayList arrayList) {         arrayList.add("i");      } }       import java.util.ArrayList;  public class Test {     public static void main(String[] args) {          ArrayList<String> arrayList = new ArrayList<>();         Test.addToList(arrayList);          System.out.println(arrayList.get(0));     }      public static void addToList(ArrayList arrayList) {         arrayList.add(1);      } }

I read about Java's type erasure .  When does type erasure occur? At compile time or runtime? When the class is loaded? When the class is instantiated?  A lot of sites (including the official tutorial mentioned above) say type erasure occurs at compile time. If the type information is completely removed at compile time, how does the JDK check type compatibility when a method using generics is invoked with no type information or wrong type information?  Consider the following example: Say class A has a method, empty(Box<? extends Number> b). We compile A.java and get the class file A.class.  public class A {     public static void empty(Box<? extends Number> b) {} }     public class Box<T> {}   Now we create another class B which invokes the method empty with a non-parameterized argument (raw type): empty(new Box()). If we compile B.java with A.class in the classpath, javac is smart enough to raise a warning. So A.class has some type information stored in it.  public class B {     public static void invoke() {         // java: unchecked method invocation:         //  method empty in class A is applied to given types         //  required: Box<? extends java.lang.Number>         //  found:    Box         // java: unchecked conversion         //  required: Box<? extends java.lang.Number>         //  found:    Box         A.empty(new Box());     } }   My guess would be that type erasure occurs when the class is loaded, but it is just a guess. So when does it happen?