Possible Duplicates:              I am using Firebug to inspect HTML codes and CSS. I need to find what are the events and the handlers associated to an element.  Using the Inspect button, I can see all the CSS, but can't find the event handlers.

I need to debug a web application that uses jQuery to do some fairly complex and messy  manipulation. At one point, some of the events that were bound to particular elements, are not fired and simply stop working.  If I had a capability to edit the application source, I would drill down and add a bunch of  console.log() statements and comment/uncomment pieces of code to try to pinpoint the problem. But let's assume I cannot edit the application code and need to work entirely in Firefox using Firebug or similar tools.  Firebug is very good at letting me navigate and manipulate the DOM. So far, though, I have not been able to figure out how to do event debugging with Firebug. Specifically, I just want to see a list of event handlers bound to a particular element at a given time (using Firebug JavaScript breakpoints to trace the changes). But either Firebug does not have the capability to see bound events, or I'm too dumb to find it. :-)  Any recommendations or ideas? Ideally, I would just like to see and edit events bound to elements, similarly to how I can edit DOM today.


I am relatively new to Java programming, I have been using C# for the past 10 years as my main language.  I do work on a Java application every now and then to just add localization to it.  This is where I stumbled upon this NullPointerException.    When I build the java app in Netbeans and run it from there, everything works perfectly fine.  When I deploy it to our local server, I am getting the nullpointer.  This leads me to believe that something is not being deployed with the application when it is built.    Looking into the error log, I am not seeing anything that is helpful in finding the line number the null value is coming from.  Here is a view of the log:  Dec 22, 2017 7:18:34 AM removedcompanyname.appname.b.i a SEVERE: java.lang.NullPointerException     at removedcompanyname.appname.f.a(Unknown Source)     at removedcompanyname.appname.f.a(Unknown Source)     at removedcompanyname.appname.b.n(Unknown Source)     at removedcompanyname.appname.b.<init>(Unknown Source)     at removedcompanyname.appname.b.<init>(Unknown Source)     at removedcompanyname.appname.Main$2.run(Unknown Source)     at java.awt.event.InvocationEvent.dispatch(Unknown Source)     at java.awt.EventQueue.dispatchEventImpl(Unknown Source)     at java.awt.EventQueue.access$400(Unknown Source)     at java.awt.EventQueue$3.run(Unknown Source)     at java.awt.EventQueue$3.run(Unknown Source)     at java.security.AccessController.doPrivileged(Native Method)     at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)     at java.awt.EventQueue.dispatchEvent(Unknown Source)     at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)     at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)     at java.awt.EventDispatchThread.run(Unknown Source)   I have been searching for what to do to see the line numbers, but I have not found anything that has been helped.  Any ideas what I can do to find the null value?    Thanks.

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


What are appropriate steps to take when the corresponding author of a paper one finds very interesting, and potentially very useful, but slightly puzzling (due to the enforced brevity of the publication format) in its nuts and bolts implementation doesn't correspond?  (I do not mean, 'Does not provide instant and copiously detailed answers,' I mean, 'Complete radio silence.')  Clearly, one does not send e-mail after e-mail after e-mail.  That is both rude and insane.  (Expecting different results from the same action.)  Clearly, one does survey that author's other literature (including past theses or dissertations, often the best place to find more verbose treatments of early papers) to see if the nuts and bolts questions are resolved there; one also surveys the literature of the non-corresponding co-authors for the same reason. (In fact, one does this, in my opinion, before contacting anyone in the first place.)  Clearly one does verify that the e-mail is up to date, to the best of one's ability.  When these options fail, and one is still extremely interested in a working implementation of a tersely published technique, are there any other reasonable strategies to apply?  Reasonable, as in, will not cause terrible reputation in the field.

Recently, our group is trying to reproduce the result reported by a paper whose authors are from an Ivy league university. We are unable to reproduce the results because there are several implementation details are not mentioned in the paper. Hence, we decide to write the first author, who is now already a faculty member in another university, an email.  At first, we asked for the code, which we consider is perfectly fine, as the paper has been published. We feel the code in a published paper is no longer a secret in this transparent research era where reproducibility is highly valued. However, he simply ignored our email (3+ weeks, no response).  Then, we thought, OK, seems that he is reluctant to share the code, so let's just ask him to clarify several implementation details so that we can implement the thing ourselves and hopefully, we can reproduce the result. So, we sent a second email which very clearly asks for clarifications. Again, he ignored the email (1.5 weeks+, no response).  We now feel angry and start suspecting the authenticity of their reported results. However, we cannot accuse them of anything, since we are not able to prove that they cheated, which would be a felony if they really did.  We always feel that upon the publication of a paper, its authors, or at least the correspondence author, hold responsible for any inquiries regarding the paper, especially when the authenticity is being doubted. What they chose to do - ignoring our email - is really irresponsible.  What can we do?  Disclaimer  Thanks for the answers and comments! It is interesting that many start besieging me on my "bad" attitude in the email.   Just to clarify,    I wrote perfectly polite emails to the correspondence author; I have NOT questioned his results or whatsoever.


Should match the following:-    (222)-333-4444 (010)-123-3435 (100)-454-6565   But Should disallow:-  (000)-000-0000   The only problem is when the input is entered all zeros. Otherwise my regex:-  ^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$   works fine__.  Demo

I'm trying to put together a comprehensive regex to validate phone numbers. Ideally it would handle international formats, but it must handle US formats, including the following:   1-234-567-8901 1-234-567-8901 x1234 1-234-567-8901 ext1234 1 (234) 567-8901 1.234.567.8901 1/234/567/8901 12345678901   I'll answer with my current attempt, but I'm hoping somebody has something better and/or more elegant.


Motivation:   We know that every open set is a countable union of open intervals with rational endpoints and that every open interval is a countable union of closed intervals. Hence every open set is a countable union of closed intervals. It follows by De Morgan's laws that every closed set is a countable intersection of open sets.  I would like to ask if we can prove a stronger result that      every closed set is a countable intersection of open intervals.   Thank you for your help!

Let's take a metric space. Then any closed set can be written as a countable intersection of open sets.  How can I prove that?


Ubuntu 16.04 LTS was damaged during an upgrade and it can't be fixed. I need to save all my files in the disk in another disk.  When I log in as root during recovery mode, I see all my files there and I can read them without issue.  However when I connect a new disk (usb or hard disk) via USB this is not visible in the media folder, therefore I have no way to copy the files somewhere else, what should be done so that I can connect an external disk and copy all the contents that I need into the other disk?

I only have access to the command line. I need to backup my data (on the user folder) to a pen (USB DOK).    How can I mount a flash drive manually? What should be the copy command?


All:  I just got D3300, one thing really annoying is its parameter menu:  each time after I shot, the LCD will light up and show menu, I wonder how can I close that setting, just manualy control when open that LCD?  Thanks

Is there an off/disable control anywhere? I realize that the INFO button toggles it off, but it comes right back on as soon as you tap the shutter, and that it a problem in low light situations where the LCD keeps blasting me in the eye.


The title is pretty self-explanatory. Do all the photons have the same energy?

Can someone explain  simply?  I know the math, however I don't understand the relevance.   To explain what I'm asking, what is the significance of it when doing quantum mechanical calculations such as getting Planck length or other such equations.


I have the following code:  var cloudShadowBitMask = (1 << 3); var cloudsBitMask = (1 << 5) ; qa.BitwiseAnd(cloudShadowBitMask).Eq(0).And(qa.BitwiseAnd(cloudsBitMask).Eq(0));   Can anyone explain the methods to me?

I'm creating a composite image, in order to create a timeseries. I've already created the composited image, but i am having difficulty masking the clouds of the composite image. I've followed the code from a page having similar problems, however when I run the code (after replacing all the l8_mayo to composite as that is the name of my composite var), I get the error code of composite.map not a function. This error does not come up when I run the exact same code from the previous answer. Can someone explain how to overcome this problem? Here is the page I used:  here is my code and the link to my code:  (point is the long, lat for Lake Manyara, Tanzania)  //load images for composite var sr14= ee.ImageCollection('LANDSAT/LC08/C01/T1_SR') .filterBounds(point) .filterDate('2014-01-01','2014-03-01') .select(['B4','B3','B2']);  // Temporally composite the images with a maximum value function. var composite = sr14.max(); Map.setCenter(35.8244, -3.5799); Map.addLayer(composite, {}, 'max value composite');  var getQABits = function(image, start, end, newName) { // Compute the bits we need to extract. var pattern = 0; for (var i = start; i <= end; i++) {    pattern += Math.pow(2, i); } // Return a single band image of the extracted QA bits, giving the band // a new name. return image.select([0], [newName])               .bitwiseAnd(pattern)               .rightShift(start); };  // A function to mask out cloudy pixels. var cloud_shadows = function(image) { // Select the QA band. var QA = image.select(['BQA']); // Get the internal_cloud_algorithm_flag bit. return getQABits(QA, 7,8, 'Cloud_shadows').eq(1); // Return an image masking out cloudy areas. };  // A function to mask out cloudy pixels. var clouds = function(image) { // Select the QA band. var QA = image.select(['BQA']); // Get the internal_cloud_algorithm_flag bit. return getQABits(QA, 4,4, 'Cloud').eq(0); // Return an image masking out cloudy areas. };  var maskClouds = function(image) { var cs = cloud_shadows(image); var c = clouds(image); image = image.updateMask(cs); return image.updateMask(c); };  var composite_free = composite.map(maskClouds);  Map.addLayer(composite_free, 'composite collection without clouds');


I have two time-series. Data have been logged over time for two different objects. Is there a significance test, applicable in SPSS or Minitab, that can be used to determine whether there is a significant difference between my objects? The data are acquired at the same frequency.

I have collected temperature readings for 4 locations on a beach in Cornwall UK using data loggers. The loggers recorded temperature every 15 mins accurate to .1 of a degree (Celsius). The loggers collected data for 10 days with a one day break to calibrate the sensors. In total I used 30 sensors with 6-7 sensors in each position.  I have now downloaded the data and have produced time-series for temperature over the 10 day period. Visual inspection of the time-series shows how the temperature changes with tides and night and day. I want to investigate whether the time-series differ significantly from one another. Please could someone point me in the direction of a technique to do this in SPSS?


I have a working holiday visa from September 19th 2019 to March 22nd 2020 for Poland. I would like to stay here for 90 more days as a tourist. I traveled to Ukraine during Christmas 2019 for 1 week and then came back to Poland, and they gave me the stamps for entering the Schengen zone.  If I leave the Schengen zone again will I somehow keep my days as a tourist in Poland? I want to travel back to Ukraine before my visa expires.

I am an American citizen living in Poland for 6 months.  I arrived in Poland on February 1, 2016 without a Visa. The count toward my Schengen days began. I received my Work Visa for Poland on April 7, 2016.  The work visa expires on July 7th. I intend to stay in Poland until July 30, 2016 (which is 180 days after I entered on February 1)  My question is, do the days that I am on a Work Visa count toward my "90 days within a 180 day period" as a tourist?  And when my work visa expires on July 7th, will I be able to remain in Poland until July 30?  February 1 -> April 7 = 66 days July 7 -> July 30 = 23 days Total days as a tourist = 89 days


I have different types of file in the same folder, which I have filtered and redirected to a list.txt file, using a separate script.  List.txt has the name of the binary files , which I need to combine together into one binary file.  >type list.txt a.raw b.raw c.raw   Concatenate all the files present in the list.txt to a final.raw file.  >type < list.txt > final.raw  The syntax of the command is incorrect.   Please let me know if there is any option to achieve this on windows cmdline or through some script file.   Note : manually both type and copy cmd is working properly for concatenation. need a script or cmd to do the same.

I have 50 text files in one directory.  Is there a Windows command-line method to concatenate those files into a single file?  I am using .  I don't want to type the name of all files.


I have some classes that have outline like this  class A{     //class A elements     A(typeA1 A1, typeA2 A2, ....){//initialize elements} }  class B extends A{     //class B elements     B(typeA1 A1, typeA2 A2,...... typeB1 B1, typeB2 B2, ....)     {         super(typeA1 A1, typeA2 A2,......);         //initialize B elements     } }   What I am doing to construct B class is pass arguments of both A and B to B's constructor and then call A's constructor through it.  But this gets dirty as number of elements go on increasing. What is a better(maybe with less no of arguments?) way to achieve this?

In some of our projects, there's an class hierarchy that adds more parameters as it goes down the chain. At the bottom, some of the classes can have up to 30 parameters, 28 of which are just being passed into the super constructor.  I'll acknowledge that using automated DI through something like Guice would be nice, but because of some technical reasons, these specific projects are constrained to Java.   A convention of organizing the arguments alphabetically by type doesn't work because if a type is refactored (the Circle you were passing in for argument 2 is now a Shape) it can suddenly be out of order.  This question might be to specific and fraught with "If that's your problem, you're doing it wrong at a design level" criticisms, but I'm just looking for any viewpoints.


how do I render the objects visible in the viewport only ie. only the objects with the open eye 👁 in the object outliner. Thank you

Is there a way to stop blender from rendering hidden objects (that do not show in the rendered view)?


I'm having trouble answering this question, can anyone help explain a full solution of this problem? I will be very grateful. Thanks!

I have been reading through my book of practice proofs and came across this particular question which has stumped me.      $p$ and $q$ are primes. Prove $\forall p \in \mathbb{Z}, \forall k \in \mathbb{Z}, (p^2\mid q^2) \Rightarrow p=q$.   I assume that the proof starts with stating that $p^n$ and $q^k$ in their product of primes form but I am unsure on how division in these forms work or if I'm even correct in assuming that is the first step. Can anyone give me an explanation of the answer so that even a 16 year old can understand? Thanks!


I have used a query  which is like  SELECT app_id, SUM(amount), date  FROM abc  GROUP BY app_id,date   Result is show as follows  1   10   1-2-2000 2   20   1-2-2000 3   30   1-2-2000 1   20   2-2-2000 2   40   2-2-2000 3   50   2-2-2000   I want to get desired result with new column  1   10   1-2-2000 2   30   1-2-2000   # sum of amount of app_id=1 and app_id=2 3   60   1-2-2000   # sum of amount of app_id=1 and app_id=2 and app_id=3 1   20   2-2-2000 2   60   2-2-2000   # sum of amount of app_id=1 and app_id=2 3  110   2-2-2000   # sum of amount of app_id=1 and app_id=2 and app_id=3

I have this MySQL query:  SELECT DAYOFYEAR(`date`)  AS d, COUNT(*)  FROM  `orders`  WHERE  `hasPaid` > 0 GROUP  BY d ORDER  BY d   Which returns something like this:  d  | COUNT(*) | 20 |  5       | 21 |  7       | 22 | 12       | 23 |  4       |   What I'd really like is another column on the end to show the running total:  d  | COUNT(*) | ??? | 20 |  5       |   5 | 21 |  7       |  12 | 22 | 12       |  24 | 23 |  4       |  28 |   Is this possible?


As you can tell, SO has quite a huge amount of bounties.  Can we get a filter option for bounties like these? So similar to shopping sites, we can have filters for highest bounty --> lowest bounty, date expiring, activity, views, etc.

The "featured" tab currently lists questions with open bounties, sorted by the time left until the bounty expires.  Could we also add the ability to sort by largest bounty?  Sometimes I'm looking for best bang for my buck, and there are so many open bounties on SO that it fills more than one page.


Good afternoon, how do I switch from windows to Linux based operating system. I m currently using a 13 dell laptop. Further question is do I need a virtual machine or where do I start to get the linux system. Please advise of the best course of action. Cheers,   lionsray

I would like to see a full how-to guide on how to install Ubuntu.


Given a collection of strings which start all with prefix _abc_ABC( and end with suffix ), for instance,  val a = """_abc_ABC( {   x = 1   y = 2 })"""   how to define a regular expression that strips out the prefix and suffix above ?

For example, this regex  (.*)<FooBar>   will match:  abcde<FooBar>   But how do I get it to match across multiple lines?  abcde fghij<FooBar>


How can I evaluate the limit?  $$\lim_{n \rightarrow \infty} \sin (n {\pi} {\sqrt[3] {n^{3} + 3n^{2} + 4n - 5}})$$  I think the limit is $0$ but I fail to work it out properly. Please help me.  Thank you in advance.

I have this limit: $$\lim_{n\rightarrow\infty}\sin\left(\pi\sqrt[3]{n^{3}+1}\right)$$ I don't even know if it exists. If so, what its value ? Really don't have any idea..


How to run a bash script on ssh authentication failed? I need to notify end user that someone tries to login in his machine?  Something like : $RHOST + $(date)  Where should I put my bash script and how can I get values as IP, USERNAME from where request comes?

Lately, I've been trying to create a Bash script to capture a webcam photo when a fail attempt to login is registered. First of all, I found 2 guides related to this (links at the end), they explained how to create script etc.. It was going pretty good until I noticed my System (Archlinux, Fresh installation) doesn't have PAM's common-auth file. I've checked the entire /etc/pam.d/ directory and still can't find the file or a file with same contents.   My Script so far:  #!/bin/bash  # Let's watch our thief's face n.n   ts=$(date +"%m_%d_%Y_%H_%M_%S")  ffmpeg -f video4linux2 -s vga -i /dev/video0 -vframes 3 /home/haoa2/Logins-Fail/login-$ts.jpg  exit 0   My /etc/pam.d/ directory contents:  chage, chfn, chgpasswd, chpasswd, chsh, groupadd, groupdel, groupmems, groupmod, login, newusers, other, passwd, polkit-1, rlogin, rsh, shadow, slim, su, sudo, su-l, system-auth, systemd-user, system-local-login, system-login, system-remote-login, system-services, useradd, userdel, and usermod  , and a .  (Note: I know there is a related answer out there, but this quetion is more about the PAM's file rather than Scripting.)


I'm trying to test my mac app under OSX El Capitan 10.11 and OSX Yosemite 10.10 , and am currently running macos Sierra 10.12. So far I've tried searching under the app store but none of the older version appear when searching. Also have tried checking the apple developer downloads section  , as well as the 'more downloads' section there.   Are there any options besides attempting to download a torrent of the older OS?

Sometimes it's hard to search for older versions of macOS & OS X  on the App Store.  This is an attempt to provide the canonical QA for this issue, as per the Meta QA -  I expect it to be modified over time to hopefully become a complete information resource.  How can I get any older version of a Mac OS to be able to run as a VM, or to reinstall on my Mac?


I am using this command to list all files that have been modified in the last day (or created)  find ./ -mtime 1 -ls   However it keeps returning files from 30th April when I am running the command just now (2nd May at 19:38)  Can anyone advise why this is occurring and / or give me a better command to use to find files modified or create in the last 24 hours period

I'm struggling to wrap my mind around why the find interprets file modification times the way it does.  Specifically, I don't understand why the -mtime +1 doesn't show files less than 48 hours old.   As an example test I created three test files with different modified dates:   [root@foobox findtest]# ls -l total 0 -rw-r--r-- 1 root root 0 Sep 25 08:44 foo1 -rw-r--r-- 1 root root 0 Sep 24 08:14 foo2 -rw-r--r-- 1 root root 0 Sep 23 08:14 foo3   I then ran find with the -mtime +1 switch and got the following output:  [root@foobox findtest]# find -mtime +1 ./foo3   I then ran find with the -mmin +1440 and got the following output:   [root@foobox findtest]# find -mmin +1440 ./foo3 ./foo2   As per the man page for find, I understand that this is expected behavior:   -mtime n         File’s  data was last modified n*24 hours ago.  See the comments         for -atime to understand how rounding affects the interpretation         of file modification times.   -atime n        File  was  last  accessed n*24 hours ago.  When find figures out        how many 24-hour periods ago the file  was  last  accessed,  any        fractional part is ignored, so to match -atime +1, a file has to        have been accessed at least two days ago.   This still doesn't make sense to me though.  So if a file is 1 day, 23 hours, 59 minutes, and 59 seconds old, find -mtime +1 ignores all that and just treats it like it's 1 day, 0 hours, 0 minutes, and 0 seconds old?  In which case, it's not technically older that 1 day and ignored?   Does... not... compute.


Calculate the area of center square in the following figure:(the big square has a side length of 1 and each vertex of big square has been connected to the midpoint of opposite side)        answer choices  : $\color{blue}{\frac14 ,  \frac15 , \frac16 , \frac17 , \frac18}$      Please review and correct my solution: $$S_{BigSquare}=2S_{BigTriangle}+S_{Paralleogram} \Rightarrow$$ $$S_{Paralleogram}=\frac12 $$ Now let the side lentgh of center square be $x$ , then we have: $$S_{Paralleogram}=\frac12 =2\times Base\times x =2\times\frac{\sqrt5}{2}\times x \Rightarrow $$ $$x=\frac{\sqrt5}{10} \Rightarrow $$ $$S_{CenterSquare}=\frac{1}{20}$$ ???!!! Which is not among the choice!! What's wrong with my solution??!!!

If the lines intersect the vertices of the square. The area of the square is $1$ and the lines also intersect the midpoints of the square lines. How to find the area of shaded region?


I just installed today's daily build. I shouldn't need to reinstall the OS when it officially releases in a few weeks right?

I installed an Ubuntu alpha or beta and have been keeping it up to date.   So, Should I presume that my system has automatically updated to the next alpha or beta, and will be running the official release when it's finished?


Many printers use CMY or CMYK whereas most computer monitors and TVs use RGB. Many cameras, film cameras, image and movie formats use YUV. Why don't they use the same color representation?

Our printer in office uses three Imaging units of Magenta, Cyan and Yellow. I thought the primary colours were Red, Green and Blue?


What determines the height at which a superconductor levitates? Can you just place it randomly in the magnetic field? What are the limits of superconductors?

Quantum levitation, flux pinning -- basically, when a superconductor floats above a permanent magnet, is really fascinating. But does the strength of the magnetic field influence the superconductor's height? And what relationship/formula suggests this?  For example, if I had a coil wrapped around a metal object and then ran a small current through it, a small magnetic field would be generated and a superconductor exposed to it would float about it at some height that I put it on.  But what if I increased the current, so that the magnetic field also increased? What happens to the superconductor? Does its height change? Or does it just get harder to "pull out" of its levitating state?


I would like to learn how to achieve this effect where the only color used to represent an image is blue (or any color, for that matter). It seems useful for printing processes where only one color can be used (i.e. Risograph or screenprinting). Thanks for your time.

I was asked to design a piece of junk-mail advertising. It has to be one color. Here are links of how it should look:      What I want to know is, how do you get your design like that?   It's like everything was full color and changed to black and white.... well in this case to blue and white.  Is there a specific way to design like that. Or can you design in full color, and the printers will print it only in one color?


The scene is at the distance of say 10 feet. I own Nikon d7200 and a lens of 18-140 mm.   There are three cats here and there (not together), but many of my images focused on one/two cats and not all because the third one was a bit away from the rest two. In other photo, the camera focused only on that isolated cat and not those two.   I need the solution that all three cats are focused, surrounding is focused, and nothing is blurred.  Out of many photos, only a few focused on all the cats and background. But I wanted almost all of them to be like that.   For reference,  This is one of them what I wanted. But in other photos, all the cats were not at one place. That's why the camera focused only on one/two cats. The background is just a wall, a plain wall. So, no depth of field is to be worried about.

I am quite new to DSLRs and one of the first things I noticed was the incredible focus points and appearance of depth that you can achieve. That is great in a lot of scenarios, but not in all. When filming a landscape as a whole, I do not want to have the focus on that single tree, but on the whole skyline.  Is there a way by which you can sort-of "disable" the focus, so that the raw image is recorded without any added blur? I suppose something as simple as this is only a small function you can turn off, but I can't seem to find it in the manual of my camera.


I have multiple files all named  seperate1 seperate2   etc. How do I rename them all to have the extension .csv?

I have a directory full of images:  image0001.png image0002.png image0003.png ...   And I would like a one-liner to rename them to (say).  0001.png 0002.png 0003.png ...   How do I do this?


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


I am looking for software to draw graphs with edges and nodes, show colorings, etc. Where can I find such software?

Is there any software that for drawing graphs (edges and nodes) that gives detailed maths data such as degree of each node, density of the graph and that can help with shortest path problem and with algorithms such as Dijkstra ?  Thanks!


My question is What is standard graded Algebra over a field $K$?  I know this question is already posted here  , But still I'm repeating because the concept is not clear to me.  What I know a graded ring $R$ with gradation ${\{R_n\}}$, where $R_n$ is additive subgroup satisfies   $1.$ $R=\oplus$$R_n$  $2.$ $R_mR_n \subseteq R_{m+n}, \forall m,n\ge0$  and similarly we can define graded $R$ module $M$ with gradation ${\{M_n\}}$ satisfying   $1.$ $M=\oplus M_n$  $2.$ $R_m M_n \subseteq M_{m+n}, \forall m,n \ge0$  But the definition of standard graded algebra $R$ over a field $K$ is according to the article   is $R=\oplus R_i$ such that $R_0 =K$, the vector space $R_1$ has finite dimension and $R_iR_j=R_{i+j}, \forall i,j \ge 0$  Can anyone please explain this definition in a simpler way?  Thanks in advance.

I am so sorry if you feel this kind of question is not appropriate for MS. But I hope you can sympathize with me, I tried to find the answer in all my books and even Google but I found nothing.  My question is : What is a standard graded algebra over a ring?  Please help me. Thanks.  Edit:  In the following paper , there is a definition of standard graded algebra. Suppose that $A$ is a ring, $R$ is a standard graded $A$ algebra if $R_{0}=A$ and $R$ is generated by the element of $R_1$. I did not fully understand this definition. Can anyone give here an example?


In my experience, a lot of Americans, on many occasions, don't make the standard /t/ sound in words like "wanted," "twenty," "accidentally," "presented," "interview" etc. I feel like when they don't make the /t/ sound in words of that type, many of them kind of go by the /t/, or probably make a sound that's similar to the flap /d/ sound. I looked up videos on this occasion in American English on Youtube. In all of the videos I saw, the instructors say the /t/ is completely dropped when that happens, but when I hear Americans, mostly it doesn't sound like they completely ignore that consonant. It feels more like they go by it somehow or make a sound similar to the flap /d/ as I said. When I talk also, when I completely drop the /t/ in those kind of words, it sounds kind of off to me. I don't know if it sounds uneducated or totally wrong if I completely drop the /t/. I actually remember noticing that some Americans probably completely dropped the /t/ on some videos involving Americans that I saw before, but those moments were rare. It might depend on the region and education maybe?  is one of the videos on this topic. What do you think? Do you think Americans can completely ignore the /t/ sound in words like, "wanted"? Do you think it is wrong? What kind of sound should I make if I want to go by the /t/ sound like Americans? This is pretty important for me since I have been learning American English for some time.

When you pronounce the phrase "I got a message you wanted to see me", is the "t" usually deleted in the word "wanted"? Thank you.


Love the new version, but can the "trash" receptacle icon be moved to the bar with the rest of the function icons? This would clean up an otherwise beautiful desktop.

I just installed Ubuntu 18.04 and don't like having the trash icon on the desktop rather that in the launcher (Ubuntu dock).   How can I move it back to the launcher? Can other icons be moved from the desktop to the launcher?


I have the following table, Table1:  Id, Speed, Power 1, 1000, 100 1, 2000, 150 1, 3000, 200 2, 1000, 125 2, 2000, 175 2, 3000, 225   I would like to know SQL syntax to return the following:  Speed, Power600V, Power750V 1000, 100, 125 2000, 150, 175 3000, 200, 225   I tried this:  SELECT Speed, Power as Power600V From Table1 WHERE Id=1 UNION SELECT Speed, Power as Power750V From Table1 WHERE Id=2   It isn't returning the data the right way though.


new here first off, so if I need to redirect please let me know kindly.  I am a developer and am currently working on front end stuff, and I need to come up with a set of colors for something I am doing based off of another existing set. The colors I have are:   color: #8a6d3b; //darker brown yellow background-color: #fcf8e3; //eggshell yellow border-color: #faebcc; //slightly darker from above^   There exists 4 of these sets of colors, and I want to make my own for use with my web application. I assume though cannot verify that they use some kind of scale to determine these colors. Say they know what they want the background-color to be, and then decide they want the color to be 50 values below that and the border-color to be only 20 values darker than the background. Are there any tools or methods to determine how much variance in the colors there is so if I give a background color, I could then determine the other colors based on the variance?  I'm not versed in the graphic design world/terminology, so hopefully you get the idea of what I am trying to say. Thanks!

No matter how nice the composition, flow, and lines of my design are, if I am not copying directly from nature, I have a very difficult time picking a decent color scheme.  It either looks too drab, or too garish.  Is there a good resource that will help me to choose a color scheme that has 2 or 3 colors, and the colors do not clash?  I'm not looking for specific colors or color schemes.  What I need is a resource that will help me choose a color (or colors) that go nicely with, or provide a good accent to, whatever main color I am working with on the design.


I have a matrix A, described using an environment bmatrix as in the MWE below.    \documentclass{article}  \begin{document} Consider the matrix  $A=\begin{bmatrix}  1 & 0 & -1 \\  2 & 3 & 1  \\   \end{bmatrix}$  Then its transpose is  $A^T=\begin{bmatrix}  1 & 2 \\ 0 & 3\\  -1 & 1  \\   \end{bmatrix}$  \end{document}   How can I get the transpose of A without typing all its entries? In other word, is there an environment where \ means "end of column" instead of "end of row"?  I hope I could just paste and copy the definition of A and then change bmatrix to vbmatrix or whatever.

As writing matrices in LaTeX is an extremely time-consuming activity, I was wondering if a software or a site exists that automatically gave the transposed form of a matrix, that is to say, given a matrix:  \begin{bmatrix}    0 & -1 & -1 \\    -1 & -1 & 0 \\    -1 & 0 & 1 \\    1 & 0 & 0 \\    0 & 0 & -1 \\    -1 & 2 & 1  \end{bmatrix}   it will produce a transposed matrix, with the columns in place of the lines and conversely...  It would be particularly time-saving!


I wonder what are the best ways to organize different screens in a game?  I am thinking of it like this:  Inheriting a base State class, and overriding update and render methods, to handle the current screen. Then, under certain events a StateManager is able to activate another Screen State, and the game screen changes as only the current State is rendered.  On the activation of a new screen, effects like fading could be added, and also the same goes for its deactivation. This way a flow of screen could be made. By saying when A ends, B starts, allowing for complex animations etc.  Toughts?

I was thinking about how to implement game states into my game. The main things I want for it are:   Semi-transparent top states-being able to see through a pause menu to the game behind Something OO-I find this easier to use and understand the theory behind, as well as keeping orgranised and adding more to.    I was planning on using a linked list, and treat it as a stack. This means I could access the state below for the semi-transparency.  Plan: Have the state stack be a linked list of pointers to IGameStates. The top state handles its own update and input commands, and then has a member isTransparent to decide whether the state underneath should be drawn.  Then I could do:  states.push_back(new MainMenuState()); states.push_back(new OptionsMenuState()); states.pop_front();   To represent the player loading, then going to options, and then main menu.  Is this a good idea, or...? Should I look at something else?   Thanks.


If I am in a free float environment and there is another object at rest relative to me, and then I start to accelerate towards this object, do I know I am the one who is moving, since I am the one who is feeling the acceleration? If I accelerate and then start to coast at a constant speed, can I conclude that the object did not move and that the one who was moving was me, since I felt the acceleration?

A while back in my Dynamics & Relativity lectures my lecturer mentioned that an object need not be accelerating relative to anything - he said it makes sense for an object to just be accelerating. Now, to me (and to my supervisor for this course), this sounds a little weird. An object's velocity is relative to the frame you're observing it in/from (right?), so where does this 'relativeness' go when we differentiate?   I am pretty sure that I'm just confused here or that I've somehow misheard/misunderstood the lecturer, so can someone please explain this to me.


I have a 2K ProRes 4444 film scan in which every fourth frame is duplicate:  ABCCDEFFGHIIJKLL ... etc  Is there an FFmpeg command that can trim every 4th frame? Thankfully it's a silent film, so audio isn't an issue.

I was trying to extract one every N frames from a video using ffmpeg. I tried using this command: ffmpeg -i input.mp4 -vf "select=not(mod(n\,10))" 1_every_10/img_%03d.jpg  I wanted to verify that it is working as expected. So I extracted all frames using: ffmpeg -i input.mp4 -vf "select=not(mod(n\,1))" all/img_%03d.jpg  And then I tried to see if 2nd image from the first command matches image number 20 from the second command, and it didn't match. Confirmed both visually and using diff command like  diff all/img_020.jpg 1_every_10/img_002.jpg  Binary files all/img_020.jpg and 1_every_10/img_002.jpg differ  Anyone knows what could be going on? Thanks!


In Tolkein's "The Silmarillion", page 216 of the chapter "Of Túrin Turambar", the following is written:     "[...] this Wildman was the Mormegil of Nargothrond, whom rumour said   was the son of Húrin of Dor-lómin."   Ignoring the array of proper nouns, shouldn't the subclause read "WHO rumour said was the son [...]", as "who was" is the main verb and subject of the clause? Even when phrased differently, one would say "Rumour said HE was the son", not "Rumour said HIM was the son".   Can somebody shed some light on Tolkein's use of the object case here?   EDIT: This is a slightly different case than the similar question that was linked, as "Rumour said" seems to take a  more gramatically accusative tone, and are able to take an object, unlike "it is forseeable".

From  page 48 of Law: A Very Short Introduction, by Raymond Wacks:     In other words, you owe a duty to persons whom it is foreseeable are likely to be harmed by your conduct.   To try to parse this, temporarily overlook 'it is foreseeable'. Then persons is the subject of the verb phrase are likely to be harmed. So , should the relative pronoun for persons be who instead? Is my parse wrong?   Are the (deleted) comments right: that this style predominates in law texts? If this is correct grammar, what is the general rule? Is it commonly used in other contexts?


Given $\displaystyle \sum_{n=1}^\infty a_n$ is absolutely convergent. Show that $\displaystyle \sum_{n=1}^\infty \dfrac{a_n}{1+a_n}$ also converges absolutely. (If $a_n \neq -1, \forall n \geq 1$ )  I am not sure where to start with this. Any help would be appreciated

Given that the series $(a_n)$ converges absolutely. Show that the series $(\frac{a_n}{1 + a_n})$ converges absolutely.    I am not really sure where to start. Any help would be great.


I am having a problem with my client server program using sockets in java. So I want the client to send the string "chef", and in the server I want it to  send something back if the client sent "chef", otherwise do something else. The problem is the string sent from the client to the server does not match for some odd reason.  This is the snip of code I have on the client class, to send the string:   PrintStream PS=new PrintStream(sock.getOutputStream()); PS.println("chef");   In the server I have this snippet:  Socket sock=socket.accept(); InputStreamReader IR=new InputStreamReader(sock.getInputStream()); BufferedReader BR=new BufferedReader(IR);  String message="";    message=BR.readLine(); if (message=="chef") {     PrintStream ps=new PrintStream(sock.getOutputStream());     ps.println("Chef Connected"); } else {      System.out.println(message); }   So the problem is the server keeps going to the else statement even thought I am sending the correct string "chef". I used System.out.println(message) in the else and it prints the string "chef". So I am very lost at why this is happening. Hopefully I was clear, and any help or clarification would be greatly appreciated.

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


Although this question looks little weird because Ubuntu is meant to be good on GUI based linux. But if I wanted to remove this GUI layer and wanted to leverage only terminal when I boot up my machine. Will this be possible ? If so may I know the proc on how to do it.

Okay my question is that, I want to run a heavy application, on a Virtual Machine (VirtualBox) with just 2 GB RAM (Windows 7 32Bit Host has 4 GB, 3.5 GB effective). Initially I thought of installing Ubuntu Server 12.04.1, which doesn't come with a GUI, so I thought it would be efficient in performance, but I have only Ubuntu 12.04 Desktop.  My question is, is it possible to remove the GUI parts in Ubuntu 12.04 Desktop (Not Server), keeping only the core OS, after installation in a virtual machine?   Or, is there anyway to improve the performance of the OS?  If you need more information, I am ready to provide.  I don't want the GUI or anything, even a small terminal window is fine for me, I can access files through FTP.


I have an app that runs on several mobile devices running either Fedora or Android. To consolidate my codebase and distribution I would like to determine which OS I am on. I tried System.getProperty("os.name"), but that just returns "Linux". Is there something unique to Android in the System properties? Thanks

I would like to determine the operating system of the host that my Java program is running programmatically (for example: I would like to be able to load different properties based on whether I am on a Windows or Unix platform). What is the safest way to do this with 100% reliability?


I want to be able to put certain configuration information in my settings.py file - things like the site name, site url, etc.  If I do this, how can I then access those settings in templates?  Thanks

I have some stuff in settings.py that I'd like to be able to access from a template, but I can't figure out how to do it. I already tried  {{CONSTANT_NAME}}   but that doesn't seem to work. Is this possible?


Let's say I have previously registered a domain blab.la and have already submitted it to google search console, it is indexed and available in search results.  Now, I have purchased another domain blabla.com and would like it to appear in search results instead of blab.la while all links in blabla.com redirect to blab.la. What would be the best way to do it?  The reason why I want to do it is because I was not experienced enough when I purchased blab.la and did not know that you cannot retarget a .la website for worldwide exposure according to Google (while in other search engines you can remove targeting). I do not want to receive traffic from that specific country which already happens so I have purchased another domain in the .com zone.

We are changing domain name but the website is staying exactly the same. We are 301 redirecting every page.  We believe that we wouldn't have to create a new property in analytics or tag manager as everything is the same but the domain name.  In Search Console would we not just use the change of address tool?


After finding the Arrowheads.ai file and following the required steps to create a new symbol of a custom arrowhead (which I named Arrow 40), I want to know if there's a way to add Arrow 40 to the default arrowhead list in the Stroke dialog box. The reason for this is to be able to scale the arrowhead, just like I can with the first 39 default arrowheads in the Stroke dialog box. Is there a way to add my custom arrowhead as a default to this list?

First post here!  What I'm trying to accomplish looks fairly simple but so far I've had no luck in finding a way to accomplish it. Essentially I want to create custom stroke caps (or strke profiles if necessary) that will allow me to create strokes with a shallow rounded end or an angled end as shown below    Is this even possible? If so, how would I go about making this happen? I am working on a typeface where these two shapes will be common, and I prefer to work with pure strokes first, so if I can accomplish this it would be great. Thanks in advance for any tips!


I am trying to build an app with android studio. I am following a tutorial but the thing is, the guy paused the screen to start the emulator and when he played it again a piece of code was missing. I don't know for sure what he did but I tried all of the options presented to me. I am getting this error: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference code: public void onResponse(Call<Users> call, Response<Users> response) {     if (response.isSuccessful()) {         mediaObjectList = (ArrayList<MediaObject>) response.body().getAllPosts();         recyclerview.setMediaObjects(mediaObjectList);                  VideoPlayerRecyclerAdapter adapter = new VideoPlayerRecyclerAdapter(mediaObjectList, initGlide());         recyclerview.setAdapter(adapter);         adapter.notifyDataSetChanged();         recyclerview.setKeepScreenOn(true);         recyclerview.smoothScrollToPosition(mediaObjectList.size()+1);          } else {         Toast.makeText(HomeActivity.this, "Network Error.", Toast.LENGTH_SHORT).show();     } }  I'm getting the error on this line: recyclerview.smoothScrollToPosition(mediaObjectList.size()+1);

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


I seem to be having a problem joining these 2 faces together on the letter A. This is not created using the text feature in blender, but an imported SVG file. I have limited dissolved the mesh to get to where I am now but I can't figure out how to merge these 2 together. Image attached. Any help is greatly appreciated!

So, I'm working on a control station that has buttons. It is a one-mesh creation, that means, I don't want to create buttons and things like that separated from the main mesh, but as you can see, I have problems. I would like to make the highlighted parts to be one with the main part around them. I've tried everything, and I have this problem on multiple creations. Any idea?  Update: I've added another example of the problem. I want them to be one face, instead of two. (2nd picture)


Is there a name for the archaic form of a-verb participle, as in a-walking? It appears in poetry and songs, for example,  As I was a-walking down Paradise Street...   Time is the stream I go a-fishing in.

What's the grammar behind A'warring, from the lyrics of Symphony of Destruction by Megadeth? It's the first time I'm seeing the use of such apostrophe.


Until now I used the numprint package to display the units correctly. But since the solution given by @egreg to this question: , I try to code everything with a single package: siunitx.  The problem is that I can't get the same display as with numprint.  For example, the abbreviation for liter is "l" (lowercase "ell"). Under beamer, it is without serif, which poses reading problems to young students who begin learning units of measurement, because one can confuse it with a stylized number "1".  \documentclass[a4paper, 11pt]{beamer} % Présentation générale et mise en page  \usepackage[french]{babel} \usepackage[np]{numprint} \usepackage{siunitx} \sisetup{locale=FR} \begin{document} Avec numprint: Le bol contient \numprint[l]{0.3} de thé vert.  Avec siunitx: La bouteille contient \SI{0.75}{\litre} de vin.  \end{document}   Output:      Edit: The global detect-all option does not solve this problem. Specifically, the dectect-all option doesn't affect the font used for the units; see the following code and screenshot.  \documentclass[a4paper, 11pt]{beamer} % Présentation générale et mise en page  \usepackage[french]{babel} \usepackage[np]{numprint} \usepackage{siunitx} \sisetup{locale=FR,detect-all} \begin{document} Avec numprint: Le bol contient \numprint[l]{0.3} de thé vert.  Avec siunitx: La bouteille contient \SI{0.75}{\litre} de vin. \end{document}     How to get the same font combination as numprint when printing with siunitx?  Translated with www.DeepL.com/Translator

How can the font used to set the value and unit with the siunitx package be changed to the main text font used in the document?    Intuitively, the main font should be the standard font setting.  However, the math font seems to be used instead, see code below.    % !TeX program = lualatex  \documentclass[a4paper]{article}  \usepackage{fontspec} \setmainfont{TeX Gyre Heros}  \usepackage{unicode-math} \setmathfont{XITS Math}  \usepackage{siunitx}  \begin{document} The gain $G=\SI{2}{dB}$, which is \SI{1}{dB} higher than before. \end{document}


Can we apply De Morgan law on arbitrary Unions and Intersections, or it is only restricted to finite ones?

Let $X$ be a set and $\{Y_\alpha\}$ is infinite system of some subsets of $X$. Is it true that: $$\bigcup_\alpha(X\setminus Y_\alpha)=X\setminus\bigcap_\alpha Y_\alpha,$$ $$\bigcap_\alpha(X\setminus Y_\alpha)=X\setminus\bigcup_\alpha Y_\alpha.$$ (infinite DeMorgan laws)  Thanks a lot!


A piece of string 30 inches long has its two ends joined together and is stretched by 3 pegs so as to form a triangle. What is the largest triangular area that can be enclosed by the string?  I took P = a+b+c and Area = 1/2 (b * h) And found h in terms of a and b.Substituting this value to the h in the area equation I differentiated the Area wrt to b and equated to zero.Is this the right way to do it?  Can this be soved only using heron's forumla(not A = 1/2(base*height)?

If perimeter of a triangle is $2d$, what is the length of sides so the triangle has maximal area?    I found some solution using circle and angles, but I think I have to use derivatives.    I need help.


How many topologically distinct metrizations of countable set are there? One can find countably many different ones by arranging points on a plane for example. Are there more than that? How would one approach this?

I want to find the number of topologically nonequivalent metrics on a set.  I think if the cardinal of set is finite then we have one metric that is the discrete metric  and every metric on this set is equivalent with the discrete metric. Now what is the number of nonequivalent metrics on an infinite  set?


How to write this sentence in indirect speech . Eg  He said" Some pokemons do not listen to their master".  I am confused between these two sentences.  He said that some pokemons did not listen to their master  Or  He said that some pokemons do not listen to their master.  Which one is correct  (as it is not general fact but a imaginary one i thought the first one is correct but the second one sounds more appropriate. so which one is correct)

I know the past tense carries the past tense in every dependent clause, but referring specifically to places or to things that are eternal, like the Earth, seems a bit weird and therefore we sometimes (I believe incorrectly) say     He didn't know that New Jersey was actually on the East Coast.   Because it still is. Or     He thought the Earth was round.   So is it square now?  Logically speaking, would you consider the use of past tense here a bit confusing in a day-to-day speech in these examples? Would you instinctively opt for using the present tense?


If automatic updates are awaiting install and my Windows 7 computer is sleeping that computer will magically wake up and install these updates. I find this to be quite annoying and am curious if there's a way to disable this behavior.  It also seems like it could be pretty problematic if my computer was running on battery. It's asleep, in my backpack, turns on to install updates and then the battery goes dead because Windows was a little too trigger happy to install automatic updates.  Any ideas?  Thanks!

One of my family members has a Windows (Vista) machine which is waking itself up from hibernation in an annoying fashion. Some investigation suggests that Windows Update is the guilty party - it doesn't happen every day, but when it does it's always at the time set for Windows Update to install updates at, and the WindowsUpdate.log file says that it's woken the machine in order to install updates.  I suspect I can fix this by changing it to not install updates automatically, but I'd really rather that I didn't have to. I would prefer if there was some option to simply not wake the machine for it, but I can't see such a thing.  Does anyone know how to stop this from happening? There are quite a few mentions of this kind of thing on the internet but I haven't found any real answers yet.


I have a requirement to disable live chat button when all agent's capacity is full. But I could't find any possible solution for this.   Any help you can give will be highly appreciated.  Thank You

I need to disable the live chat option when all agents are offline.  I used liveagent.showWhenOnline and liveagent.showWhenOffline methods in the controller.   liveagent.showWhenOnline('button_id', document.getElementById('liveagent_button_online_button_id'));  liveagent.showWhenOffline('button_id', document.getElementById('liveagent_button_offline_button_id'));   liveagent_button_online_button_id and liveagent_button_offline_button_id are referring to the element ids of corresponding div.   The functionality is working fine. But need to refresh the page and it takes some time to display/disable the button.  What can be the reason for this delay in response time?   Thank You!


I have never used Ubuntu before.  I am currently running Windows 8 and have installed Ubuntu 12.10 using the wubi install kit.    My comp. will not recognize a DVD drive for now.    I want to destroy Windows 8, while keeping personal files, and make Ubuntu my only OS.    How do I do this?     The problem being that I cannot create a disk... So I am looking to accomplish a full install with only the use of wubi

I have installed Ubuntu on my D: partition using Wubi. Is there any way in which I can remove my Windows from C: drive and move my existing Ubuntu installation to C: drive and make it a regular install.


So, we are trying to find all the solutions to $2^x + 3^y = z^2$ in nonnegative integers. Here are my insights:   First of all, $z^2$ can be either $0$ or $1$ modulo $3$. If $z^2 = 3k$, then LHS cannot be divisible by $3$ unless $y = 0$ and $x=2k+1$, and so we have $2^x+1 = z^2$, so one of the solutions is $(3,0,3)$ (but we still need to show that this is the only solution in this case).   Now let $y > 0$, $x=2k$. In this case $2^x \equiv 1\ (\mod\ 3)$ and $z^2 \equiv 2^x (\mod 3)$. We have $$ 3^y = (z-2^k)(z+2^k), $$ so $(z-2^k)=3^a$ and $(z+2^k)=3^b$, so $3^b-3^a = 2^{k+1}$. If $a > 0$, then $2^{k+1}$ must be divisible by $3$, but it is not, so suppose $a = 0$.  Now we have $$ 2^{k+1} = 3^b - 1, $$ Аnd this is where I stuck. It is easy to find two more solutions just iterating over $k$, but I do not know how to prove that there are no others. As far as I understand, we need to find some kind of an upper bound for $k$. Note: I am trying to avoid the use of Catalan's conjecture here.  Can you please help me to show that there are no other solutions to this equation and that $2^x+1=z^2$ has a unique solution?

Find all possible solutions of $$2^x + 3^y = z^2.$$    My approach.   First I substituted $x = 0$, and got the solution, then for $y = 0$. And for $x >  0$ and $y > 0$ , I just know the Pythagorean triple and got the solution as $(4,2,5)$ and $(4,2,-5)$. Please help me to solve it properly.


I did check some answers on similiar questions here, but I wasn't satisfied with the answer. When we are sitting (or if there is any body) on merry - go - round there should be some net force which acts radially in to keep us rotating relatively to ground. In this case it is said that static friction is this force since we are not moving with respect to merry - go - around. We are looking at things from inertial reference frame (no inertial forces). As far as I know static friction opposes motion when some outer force tries to move it from relatively to some other surface (to move us relatively to merry - go - round). So, there should be some force acting radially out to cause static friction acting radially in, but even in that case sum of forces acting in radial direction is zero since static friction balances outer force trying to move us. If so, there is no net force acting radially in to allow rotation. Where have I gone wrong?

What makes frictional force the centripetal force of a car turning along a curve? As friction is the opposing force and acts anti-parallel so there is no component of frictional force towards the center,right? Then how can frictional force be centripetal force?


please help me to remove the "Abstract title" without removing the content of the abstract.  \documentclass[5p]{elsarticle}  \usepackage{xpatch} \xpatchcmd{\MaketitleBox}{\hrule}{}{}{}% remove first horizontal rule (above abstract) \xpatchcmd{\MaketitleBox}{\hrule}{}{}{}% remoce second horizonral rule (below keywords)  \usepackage{lineno,hyperref} \modulolinenumbers[5]  \journal{Journal of \LaTeX\ Templates}   \begin{document}  \begin{frontmatter}  \title{test title}  \author{ Hariha\corref{cor1}*}   \address{820081,Fukuoka, Japan} %\fntext[myfootnote]{Since 1880.} \cortext[mycorrespondingauthor]{Corresponding author} \ead{me@lab.jp}  \begin{abstract} This template helps you to create a properly formatted \LaTeX\ manuscript. \end{abstract}  \begin{keyword} MEMS %\texttt{elsarticle.cls}\sep \LaTeX\sep Elsevier \sep template %\MSC[2010] 00-01\sep  99-00 \end{keyword}  \end{frontmatter}  %\linenumbers \section{The Elsevier article class}  \paragraph{Installation} If the document class \emph{elsarticle} is not available on your computer, you can download and install the system package \emph{texlive-publishers} (Linux) or install the \LaTeX\ package \emph{elsarticle} using the package manager of your \TeX\ installation, which is typically \TeX\ Live or Mik\TeX.  \end{document}

Good day, I've searched the archives and have tried using  \renewcommand\abstractname{summary}   to change the name of the abstract, but was not successful.   Here's the working example of my code:  \documentclass[preprint,12pt]{elsarticle}  \usepackage{cmbright} \usepackage[T1]{fontenc} \usepackage{microtype}  \renewcommand\abstractname{summary}  \usepackage{amssymb} \usepackage{lineno}  \journal{Journal Name}  \begin{document} \begin{frontmatter}  \title{Characterization of a Murine Embryonic Stem Cell Line} \author{Daniel D.} \address{State University}  \begin{abstract} \end{abstract} \end{frontmatter}  \section*{Introduction}  \section*{Results}  \section*{Discussion}  \section*{Experimental Procedures}   Thank you for any help or insight.


I have a badly written third-party Windows application that only works correctly if the decimal separator and thousands grouping characters are set to the values typical for English, i.e. point for decimal, comma for thousands. This application is used by a number of users with different user locales, some of which (e.g. German) swap these characters for each other.  Is there a way to run this application with its desired locale configuration, without changing it globally and so that the user does not have to do anything difficult?  I have found things like AppLocale and Locale Emulator, but they appear a bit too broad for my purpose – I don't want to change the whole language etc., just the two characters.  Thanks for any advice.

I am using my windows with Turkish language as first choice. Non-Unicode programs also use Turkish language.  My particular program, Visual Studio 2005 (Business Intelligence Studio 2005) is behaving strangely with this language setting. It has no problems with English Language settings.   I would like to start only this program with English Language Settings.   I can use new bat/cmd file. Modify shortcut etc. Every solution is welcome. Only I do not want to change entire windows settings.  I am using Windows 7.


There is a bug below  where the share a link text does not appear correctly.  It is rendered as "Know someone who can answer? Share a link to this question via email, , , or ."

The bug appears, with my account, in every post that haven't any answer yet. At the bottom just above the "Your Answer" section, I always see:     Know someone who can answer? Share a link to this question via email,   , , or .   In my mind, there should be a link to share to Twitter, Facebook, or other social networks, but I'm on any of these.


I am trying to control the position of the figure. I would like to place it right below the title of paragraph, but it does not work.  When I add a text right below the \paragraph, the figure moves below the title as I wish. So I tried some of my ideas such as \phantom, \vspace and things like that to create invisible spacing. But it did not work that way.  Could you help me fix this issue?   P.S., I would also like to make the text start in the next line, instead of starting in the same line with the paragraph. Linebreaking functions did not work..     \paragraph{[2] xxx}  \begin{figure}[h!]  \centering  \includegraphics[width=0.9\textwidth]{P2.png}  \caption{\label{fig:frog}This is a figure caption.}  \end{figure}

I have a problem when a lot of figures are in question. Some figures tend to "fly around", that is, be a paragraph below, although I placed them before that paragraph. I use code:  \begin{figure}[ht] \begin{center} \advance\leftskip-3cm \advance\rightskip-3cm \includegraphics[keepaspectratio=true,scale=0.6]{slike/visina8} \caption{} \label{visina8} \end{center}\end{figure}   to place my figures. How can I tell latex I REALLY want the figure in that specific place, no matter how much whitespace will be left?


I need to handle all the exceptions globally in .NET 2.0 web service (ASMX), i tried using Application_Error event in global.asax, but it's not fired in web services case, it works fine for web based applications.  Any suggestions???

And how to fix it. I'd like to log every thrown exception for maintenance purpose.


I´ve here a few years old netbook Acer Aspire One, 1GB RAM, 16GB HDD, Intel Atom 1,6GHz.  Original OS was Windows XP, but with XPs the system is so slowly. Now, before I trash that, I´d like to try it with Ubuntu. But what Ubuntu I should try into?  When I compare older Ubuntu with the newer ones (or the newest one), how with performance? Should I try to install there any older? Let´s say Ubuntu 8 or 10?  I´ve found a few benchmarks comparing WinXP and Ubuntu 8.04, but it was test with unstandard operations and Ubuntu was there faster. But how with normal using for non-IT, not for me? Just conect to internet, read&write mails and work with MS Word (or Writer in LibreOffice)?  Thanks for advices.  PS. I´m using Ubuntu 12.04 for last two years, so I have no option how to compare previous versions with older ones. But I suppose in currect (or newer) version whould be effects which could be too much for that old netbook.

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


I always wonder that what are holes I know electron and I can imagine it But how holes exist...

I was studying pn junctions and came across the concepts of diffusion currents. From what I understand is, when the junctions come together, since there is an excess of donors on the n side and an excess of a accdeptor impurities on the p side the concentration gradients force a cross junction diffusion phenomena. Now what I would like to know is that what are the particles that move to create the diffusion currents. The notes from where I'm learning says holes and electrons. Now the actual movement of electrons make sense, because atomic ionization is a pretty ordinary event, but what does it mean when they say that a "hole" crosses the junction from the p side to the n side? Does the entire acceptor atom separate itself from the crystal lattice of the semiconductor and cross the junction? It doesn't really make sense to me? Or is it some exotic effect which I'm unaware of?


I'm trying to draw the following picture with TikZ. The desired output is the following:    The problem is that I can't get a way to do two arrows like the ones I drew manually, departing from the green shapes. How can I do these kind of arrows? (The arrows should be on TikZ format, not like the ones I drew).  My code is the following so far:  \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{shapes,geometric,arrows}  \tikzstyle{startstop} = [rectangle, rounded corners, text width=5cm, minimum height=1cm, text centered, draw=black, fill=blue!30] \tikzstyle{process} = [rectangle, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=red!30] \tikzstyle{decision} = [diamond, minimum width=3cm, minimum height=1cm, text centered, draw=black, fill=green!30] \tikzstyle{arrow} = [thick,->,>-stealth]  \begin{document}  \begin{tikzpicture}[node distance=2cm]  \node (start0) [process] {Inicio}; \node (start) [startstop, below of=start0] {Propiedades de la garganta a partir de cámara de combustión:\\ $P_0,T_0,\rho_0 \rightarrow P_t, T_t, \rho_t$}; \node (start1) [startstop, below of=start] {Presión de salida:\\ $P_s \rightarrow T_s, \rho_s, M_s, v_s, \varepsilon$}; \node (start2) [startstop, below of=start1] {Escoger dimensiones garganta y calcular mass flow:\\ $D_t \hspace{1mm} \mathrm{o} \hspace{1mm} A_t \rightarrow \dot{m}, A_s, F$}; \node (dec1) [decision, below of=start2, yshift=-0.75cm] {$ F\geq 500\hspace{1mm} \mathrm{N}?$}; \node (dec2) [decision, below of=dec1, yshift=-1.5cm] {$ P_s \leq P_s (\mathrm{min})$}; \node (end) [process, below of=dec2, yshift=-0.75cm] {Fin};   \draw [arrow] (start0) -- (start); \draw [arrow] (start) -- (start1); \draw [arrow] (start1) -- (start2); \draw [arrow] (start2) -- (dec1); \draw [arrow] (dec1) --  node[anchor=east] {Sí} (dec2); \draw [arrow] (dec2) -- node[anchor=east] {Sí} (end);  \end{tikzpicture}  \end{document}

Say I have a code to draw a flow chart, I want now a arrow from node 3 to node 1, how can I do that?  1<--| |   | 2   | |   | 3----   MWE  \documentclass[class=article,border=0pt]{standalone}  \usepackage{tikz} \usetikzlibrary{shapes,arrows}  % Define block styles \tikzset{     block/.style={rectangle, draw, line width=0.5mm, black, text width=5em, text centered,                   rounded corners, minimum height=2em},     line/.style={draw, -latex} }% <- if you insist in using this in the document add this % here. \begin{document} \begin{tikzpicture}[node distance = 1cm, auto]     % Place nodes     \node [block] (BLOCK1) {a};     \node [block, below of=BLOCK1] (BLOCK2) {b};     \node [block, below of=BLOCK2, node distance=1cm] (BLOCK3) {c};     % Draw edges     \path [line] (BLOCK1) -- (BLOCK2);     \path [line] (BLOCK2) -- (BLOCK3); \end{tikzpicture} \end{document}


I have asked this question before, sorry, but I'm still confused about how I can show it. Hope anybody can help me?  We let $f:\mathbb{R}\to\mathbb{R}$ be infinitely often differentiable function and we let the Taylor series be: $$\displaystyle\sum_{n=0}^{\infty}\left(\left(\frac{f^{n}(0)}{n!}\right)x^n\right) $$Let $\{a_n\}_{n\in \mathbb N }$ be $a_n=\frac{f^{n}(0)}{n!}$. We have to assume that the Taylor series converges toward $f$ in an open interval $(-r,r)$ around zero. Then I have to show that if $a_{2n-1}=0$ for all $n\in \mathbb N$ so is $f(-x)=f(x)$ for all $x\in(-r,r)$. How can I do it? I think I maybe can see on $kx^{2n}$ while all odd joints are zero while $a_{2n-1}=0$? But how can I prove it?


I had removed my linux from my system but had not removed GRUB.Everytime i power on my laptop i have to type exit to load up windows.I am unable to find a proper fix for this i have windows 10 Home.How can i remove GRUB and boot directly to my windows?

I have Windows 8 pre-installed, and then I installed GRUB with Ubuntu. Ubuntu is not my thing, so now I want to remove it along with GRUB. From what I have learned, with UEFI, GRUB does not overwrite the windows bootloader in the EFI partition and is stored elsewhere. How would I remove GRUB and make my PC use the Windows bootloader instead? It should be noted that I created a separate /boot partition when installing Ubuntu.


Look at this program:  #include <iostream> #include <cmath>  using namespace std;  typedef pair<int, int> coords;  double dist(coords a, coords b) {     return sqrt((a.first - b.first) * (a.first - b.first) +               (a.second - b.second) * (a.second - b.second)); }  int main() {     coords A = make_pair(1, 0);     coords B = make_pair(0, 1);     coords C = make_pair(-1, 0);     coords D = make_pair(0, -1);      cerr.precision(20);     cerr << dist(A, B) + dist(C, D) << endl;     cerr << dist(A, D) + dist(B, C) << endl;      if(dist(A, B) + dist(C, D) > dist(A, D) + dist(B, C))     {         cerr << "*" << endl;     }     return 0; }   Function dist returns distance betweeen two points. A, B, C, D are corners of square.  It should be dist(A, B) == dist(B, C) == dist(C, D) == dist(D, A) == sqrt(2).  And dist(A, B) + dist(C, D) == dist(A, D) + dist(B, C) == 2 * sqrt(2)  I am using GNU/Linux, i586, GCC 4.8.2.  I compile this program and run:  $ g++ test.cpp ; ./a.out  2.8284271247461902909 2.8284271247461902909 *   We see, that program outputs equal values of dist(A, B) + dist(C, D) and dist(A, D) + dist(B, C), but condition dist(A, B) + dist(C, D) > dist(A, D) + dist(B, C) is true!  When I compile with -O2, its look OK:  $ g++ test.cpp -O2 ; ./a.out  2.8284271247461902909 2.8284271247461902909   I think, it is a gcc-bug, and it is not directly related to floating-point operation accuracy, because in this case values dist(A, B) + dist(C, D) and  dist(A, D) + dist(B, C) MUST BE equal (each of them is sqrt(2) + sqrt(2)).  When I change function dist:  double dist(coords a, coords b) {     double x = sqrt((a.first - b.first) * (a.first - b.first) + (a.second - b.second) * (a.second - b.second));     return x; }   the program runs correct. So the problem not in floating-point representation of numbers, but in the gcc code.  Edit:  Simplified example for 32-bit compiler:  #include <iostream> #include <cmath> using namespace std; int main() {     if (sqrt(2) != sqrt(2))     {         cout << "Unequal" << endl;     }     else     {         cout << "Equal" << endl;     }     return 0; }   Run without optimization:  $ g++ test.cpp ; ./a.out  Unequal   Run with -ffloat-store:  $ g++ test.cpp -ffloat-store ; ./a.out  Equal   Solution:  Probably, it is "not a bug" in GCC #323:   Compiling with -ffloat-store solve the problem.

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


One tv stopped working while all the others in the house work.  Comcast guy claims the cable in my wall behind my fireplace went bad.  They told me that before and were wrong.  How can I check if there is no signal from the cable?  He has another cable unsightly running across the fireplace.

We bought new house and I need to test network (RJ45) and coax jacks to see which ones are working. How can I do that without actually connecting computers/cable boxes?


I read a story in a collection of short sci fi stories which I can no longer remember the name of.  In the story mankind built large, self-repairing, sentient factories that made war machines and supplies for them (they were fighting other humans on the same planet). The war was so devastating that the command structure of the humans was wiped out, and though the war machines won the war, no-one had the control codes to turn off the factories, so they kept building more and more useless junk for the humans.  The main characters are trying to convince the ruling AI that they don't want more junk, but the AI doesn't care, so they trick it into attacking a different factory, which causes a factory war and the story ends with the factories launching seed factories into outer space to take over the universe.  What is the name of this story?

I read in an anthology book in 1975. It starts with two people watching a “robot” plane glide high and then dive into an opening of a factory causing a massive explosion. I’m not sure but I think the people may have orchestrated the attack on purpose to get the robot armies fighting each other in the hope that it would diminish robot army capabilities and bring them under control. The robot wars did occur, but at the end of the story the people discover a tube sticking out of the ground that is periodically shooting something into the air. Nearby they find a canister that did not get launched out of the “cannon” successfully and it was broken open. After close examination they discover tiny “ants” on the canister that are actually tiny robots which are rebuilding the robot war factories. The robots have adapted and will keep trying to fulfill their mission. This story may  have been in a booked edited by Roger Elwood, but I cannot guarantee it.


I want to batch replace paths in a series of .mxd files using Python. Many of the layers have moved and in some cases the name has changed or its dataset is different.  I've written this code which takes an Excel file with two columns (one column for the old path and one column for the new path) and converts to a dictionary. Then I iterate through the layers in my .mxd files, and iterate through the dictionary, using replaceDataSource to change the data sources.  The trouble is this won't work with annotation feature classes. I've added in a try/except with findAndReplaceWorkspacePath to see if that may work (I don't believe the annotation layers/names have changed), but the code still doesn't address those layers.  One thing to note is that the annotation feature classes are stored in a personal geodatabase, but I don't know if this could be causing any issues.  I am hoping someone has ideas on code that will work to change the path of the annotation feature classes!  Here is my code:  import xlrd, arcpy, os  mxd_path = r'C:\temp\Chapters'  d = {} wb = xlrd.open_workbook('U:\GIS\Chevron_Lokern\Projects\Figures_Update_2014\Lokern_Source_Paths_KL.xls') sh = wb.sheet_by_index(0) for i in range(293):   cell_value_class = sh.cell(i,0).value   cell_value_id = sh.cell(i,1).value   d[cell_value_class] = cell_value_id    for dirpath, dirnames, filenames in os.walk(mxd_path):     for filename in filenames:       fullPath = os.path.join(dirpath, filename)       if filename[-4:] == ".mxd":         mxd = arcpy.mapping.MapDocument(fullPath)         print filename          for lyr in arcpy.mapping.ListLayers(mxd):             if lyr.supports("DATASOURCE"):                 #print lyr.datasetName                 for k,v in d.iteritems():                     #print k,v                     k_path, k_name = os.path.split(k)                     v_path, v_name = os.path.split(v)                     if lyr.dataSource == k and k != v:                         #print 'KEY:',k,'VAL:',v, 'NAME:',v_name                         try:                             print 'trying to change data source for',lyr.dataSource                             lyr.replaceDataSource(v_path,'FILEGDB_WORKSPACE',v_name,True)                         except Exception as e:                             print 'can\'t replace',lyr.dataSource, e                             try:                                 print 'trying to change data source for',lyr.dataSource                                 lyr.replaceDataSource(v_path,'RASTER_WORKSPACE',v_name,True)                             except Exception as e:                                 print 'still can\'t replace',lyr.dataSource, e                                 try:                                     print 'trying to change data source for',lyr.dataSource                                     lyr.replaceDataSource(v_path,'SHAPEFILE_WORKSPACE',v_name,True)                                 except Exception as e:                                     print 'still can\'t replace',lyr.dataSource, e                                     try:                                         print 'trying to change data source for',lyr.dataSource                                         lyr.findAndReplaceWorkspacePath(k_path,v_path)                                     except Exception as e:                                         print 'can\'t replace workspace path for',lyr.datasetName, e         mxd.relativePaths = 'True'         mxd.save() del mxd

I'm testing layers in the current document using the Describe function. My code is:  for lyr in arcpy.mapping.ListLayers(df):      if(lyr.isGroupLayer == False and lyr.isRasterLayer == False):          x = arcpy.Describe(str(lyr))   It's throwing an error on the annotation layer:     "LSDSectionBoundaryAnno\Default" does not exist   I'm thinking that the Describe function doesn't like annotation layers or the subclasses? Can I use Describe on annotation layers and if not, how would I filter out annotation layers? There doesn't seem to be a 'isAnnotationLayer' property.


I am currently using an ASUS X552CL which came pre-installed with windows 8. I had installed windows 7 pro, and then upgraded to windows 10.  I am trying to dual-boot my PC with Ubuntu 14.04.3 LTS (64-bit), but during installation, it says, "This computer doesn't have any OS. What do you want to do?". Also, if I try the "something else" option, it does not detect my partitions (I had partitioned 30 GB to install Ubuntu using the windows disk management tool). All I see is my hard disk in it's entirety.  Honestly, I am new to this, and have been trying to find solutions for a few days now. Thus far, I have disabled hibernate.  I have used   sudo apt-get install gdisk   within the Ubuntu Live desktop, and it finds a valid MBR and a corrupt GPT.  Also, I have found that a BootInfo summary would be useful for people who may assist, so I have generated one using the Boot-Repair tool. Mine can be found here:   Any help will be greatly appreciated. Thanks.

Whenever I startup from the LinuxLive USB, and try to install Ubuntu 12.04, it only gives me two options instead of the usual 3 or 4. My options are "Replace Windows 7 with Ubuntu" and "Something Else". Whenever I go into "Something else", it looks extremely confusing. How do I install it side-by-side while using the "Something else" section? These are my partitions.   /dev/sda /dev/sda1 ntfs (104Mb, System Required Partition) /dev/sda2 ntfs (1000097Mb, Windows 7 Partition)   Or should I try reinstalling my installer on a CD rather than USB and maybe then it will have the "Install alongside" function?


I have a Canadian Student Visa. I did not know that I am supposed to get a C-1 visa for a stopover in LAX for 2 hours. I did not need to change airport so I thought that a visa was not required. I booked with Japan Airline with a connection at LAX to Canada. However, I was detained in LA and the officer told me that I would be deported back to the Philippines where I came from.  Luckily, I explained to them my situation and they made me just pay a visa waiver fee of $585.  They also told me that Japan Airlines (the airline that I took) would be penalized for allowing me to board the plane without checking if I had a transit visa.  My question is:  is Japan Airline liable for allowing me to board their plane without checking?

Case:   Booking of flight ticket from Belgium to Namibia for family with minors in Jan 2018 for flight scheduled on Aug 1st 2018. New regulation on birth certificates requirements for minor introduced by Namibian authorities on July 15th 2018 with activation date on August 1st. (short notice !) Airline denied boarding to family on Aug 1st due to missing birth certificate.   Argument of airline : Passenger should in any case be aware of regulation.  Question : When a passenger books a flight on the website of the airline, is the airline responsible to warn the passenger if there is a regulation change on the required travel documents between the booking time and flight departure time?  Thanks for your replies.  1) In fact the airline told us they have been phoning to all their pax with end destination Namibia to warn them, but unfortunately not us. Their explanation is, because they "subcontracted" the last leg of our journey (JOH-WDH) to a third party airline, our family didn't appear on their list of pax to warn for this new rule ... From a "premium" airline I would have expected a more professional service...  Bad luck for us...  2) Timatic "on line" contained info as of the very date of our departure (Aug 1st). The Timatic paper booklet of July and August did not contain this update yet. The release of the next month (September) did...  Again bad luck for us...


, as part of its effects, has this line.  [T]he first time you hit with a melee attack on your next turn, the target takes an extra 1d6 damage of the triggering type, and the spell ends.  But what happens if you score a critical hit?  When you score a critical hit, you get to roll extra dice for the attack's damage against the target. Roll all of the attack's damage dice twice and add them together.  Is that extra 1d6 considered part of the attack, and thus rolled again? My gut says yes, but I cannot think of any explicit rule that says so

I'm a bit confused on how extra damage works for critical hits. Let's take the following example: A thief with sneak attack rolls a crit. I'm under the impression he rolls double his normal attack damage dice AND double his Sneak Attack damage dice. Is this accurate? Another example, I finished DM-ing my first campaign recently. The Giant Spider enemy monster has an melee attack that causes a constitution saving throw. If the player fails, the enemy rolls an additional 2D8 of damage. In this situation, if there was a critical hit, and the player failed their saving throw, would I also roll double dice on the additional damage? Or is that considered a separate attack?


I would like to seek some guidance on how to upgrade httpd 2.4.6 to 2.4.41 on centos 7. I realised there are similar questions but for RHEL7. The reason for upgrade is due to vulnerability CVE-2017-9788, CVE-2014-3523 for httpd-2.4.6.  How should I go about upgrading the versions? Do I need to build from the the source zip? And would I need to do any symlink or PATH variable or things like that? Do I need to copy the current configuration to new installation path? Sorry if I sounded a bit amateur because I have little experience in this area.   Any help would be appreciated. Thanks.

I am new to Linux and currently need to upgrade the httpd on RHEL7 from 2.4.6 to 2.4.41, to fix CVE-2018-1312. Can someone help me with the command to do this? Do I also need to take any backups before I upgrade?


I have a set of 100 log files, compressed using gzip. I need to find all lines matching a given expression. I'd use grep, but of course, that's a bit of a nightmare because I'll have to unzip all files, one by one, grep them and delete the unzipped version, because they wouldn't all fit on my sevrer if they were all unzipped.  Anyone has a little trick on how to get that done quickly?

Does there exist a magical shell piping which would allow easily to grep through bunch of .gz log files without needing to extract them somewhere?  .gz files are Apache logs, result of log rotation. I'd like to quickly check how often certain URIs are accessed in the past.


I've been installing some software to a new VM today, and started wondering about the PATH variable. Some of the installation scripts I poked through would append to $PATH, and others would prepend $PATH. Personally, I've always just appended whenever I've needed to add to it.  Is there any functional difference between the two techniques, or is it just personal preference? My gut feeling is that it shouldn't make any difference.  Thanks!

I'm wondering where a new path has to be added to the PATH environment variable. I know this can be accomplished by editing .bashrc (for example), but it's not clear how to do this.  This way:  export PATH=~/opt/bin:$PATH   or this?    export PATH=$PATH:~/opt/bin


At the finale of Avengers: Endgame   Steve Rogers is shown passing on the gauntlet (shield) to Falcon.  Why would this be? I haven't noticed that Steve and Falcon have a particularly close relationship, and the natural choice seems like it would have been Bucky, who's Steve's childhood friend and much more powerful than the Falcon. Was this a movie invention or does it happen the same way in the source material?

At the end of the Avengers: Endgame movie,      old Steve Rogers passed down his mantle of Captain America   to Sam Wilson.  Why didn't he choose Bucky for this? Bucky seems more fit for the job as he is a super soldier.


I'm attempting to loop through an array of strings, and do something a little different with one of the values.  The string comparison fails on every element.  arr[0]='red' arr[1]='blue' arr[2]='yellow' arr[3]='green'  ## now loop through the above array for i in "${arr[@]}" do         if [ "$i"="green" ];         then                 echo "i('$i') is equal to green"         else                 echo "i('$i') is not equal to green"         fi  done   I've also tried (with the same result):   if [ "$i"='green' ];   and   if [ $i='green' ];   and   if [ $i="green" ];   Output of each of the above:   i('red') is equal to green i('blue') is equal to green i('yellow') is equal to green i('green') is equal to green   What am I doing wrong with the comparison?

I am using the below script to move two days back when script runs at starting two days of the year and also check first and second days of every month and move two days back. if [$month="01"] && [$day="01"]; then         date="$last_month/$yes_day/$last_year"         fulldate="$last_month/$yes_day/$last_year" else         if [$month="01"] && [$day="02"]; then                 date="$last_month/$yes_day/$last_year"                 fulldate="$last_month/$yes_day/$last_year"         else                 if [ $day = "01" ]; then                         date="$last_month/$yes_day/$year"                         fulldate="$year$last_month$yes_day"                 else                         if [ $day = "02" ]; then                                 date="$last_month/$yes_day/$year"                                 fulldate="$year$last_month$yes_day"                         else                                 date="$month/$yes_day/$year"                                 fulldate="$year$month$yes_day"                         fi                 fi         fi fi  But my bad am getting the below error message Etime_script.sh: line 19: [06=01]: command not found Etime_script.sh: line 24: [06=01]: command not found


I am a brand new user of Ubuntu and cannot figure out how to get to a terminal. What do I need to know?

What is a terminal? How do I open a terminal window? How do I use the terminal?


I am trying to save a sequence of images in visual studio 2008,all with the prefix of "Image". the only differentiating factor should be their number. for example if I am gonna save 10 images then the situation should be    i=1; while(i<10) { cvSaveImage("G:/OpenCV/Results/Imagei.jpg",img2); i++ //"i" is gonna be different every time }   so I need to concatenete the integer with the string...  looking forward to the answer...

I thought this would be really simple, but it's presenting some difficulties. If I have std::string name = "John"; int age = 21;  How do I combine them to get a single string "John21"?


It's a questions that haunts me for some day. I am a phd in computer science and recently when I need to read materials of different forms and take note, I somehow don't know how to decide. With the research area of mine increases, I have to remember vividly more classic materials, or systemically build a way to review them. Currently, the materials include  Papers : only-mathematical wise, normally of pages 20-40, some are typically lengthy to 60 pages. Classic books : 1) code/system wise, which I prefer to read on pc so I could probably code at the same time; 2) more mathematical wise, which I prefer to read on ipad so I could do derivation and take note.  The trade-off is that, the pc has larger screen and is more natural for me to read the books, while less convenient for me to take notes, especially for hand-written note. And it's even hard to collect the annotations and highlight on pdf reader. So I would like some sharing / suggestions / ideas of how to read materials(papers, books), organize and take notes ? Notice that this is not a question about reference manager as , it's rather to balance the usage between pc and ipad for different materials and find a systematic way to combine the note-after-reading.

I'm looking for a reference manager with note-taking/quote-storing capabilities. I don't need a full knowledge management suite, but I want to find a program where I can store and search long notes/lots of quotes, attached to entries in my bibliography.  So far I've used:   Bib(La)TeX + pen and paper Zotero Mendeley Paperpile (Not sure about Endnote, but at least I haven't seen it used for what I need.)   Pen and paper obviously isn't searchable, and funnily enough, neither are the notes in Zotero. All of these programs treat notes as negligible, focusing on PDF metadata import and annotations, PubMed or Google Scholar search and whatnot. Which is all fine but not what I'm looking for. Since I work in the Arts & Humanities I still have my fair share of books accompanying the PDF articles in my work routine. For those I don't need any online specialties but rather a way to attach lots of quotes, notes, summaries and so on.  From what I've heard, Citavi can do some things like that, but I'm nowhere near a Windows computer to try it out. Ideally I'm looking for Linux programs, I could try Mac, and give bonus points for a web interface.


what's the difference in results from:  new WP_Query( array( 'post__not_in' => get_option( 'sticky_posts' ) ) );   and  new WP_Query( array( 'ignore_sticky_posts' => 1 ) );   ?

We all know that  ignore_sticky_posts is used to exclude sticky post from your custom query.  But why on codex page , they use ignore_sticky_posts in querying sticky posts??  $args = array( 'posts_per_page' => 1, 'post__in'  => get_option( 'sticky_posts' ), 'ignore_sticky_posts' => 1 ); $query = new WP_Query( $args );   This is so confusing and doesn't make any sense, you want it and yet you exclude it?


I have a question regarding a SQl query in Oracle where IO need to select rthe row with the most recent date and time where date and time are inserted into two separate columns.  Table TransactionRecords   CustomerID    TransactionDate   TransactionTime -------------------------------------------------------   0206016         17-APR-17         15:29:34   0213570         17-APR-17         15:29:32   0211384         17-APR-17         13:29:34   0487674         16-APR-17         14:29:30   0487759         15-APR-17         13:29:32   0487213         12-APR-17         13:29:32   0191022         11-APR-17         15:29:33   1141158         29-OCT-16         01:25:51   I am expecting my query to rerturn the most recent transaction which should be :     CustomerID    TransactionDate   TransactionTime   ---------------------------------------------------     0206016        17-APR-17            15:29:34   When I am running the following query :   select * from TransactionRecords tst  where tst.TransactionDate  in (select max(TransactionDate) from   TransactionRecords)   I am getting all the transactions that happened on the most recent date. Can someone please give me any suggestions?

Is there a way to make an Oracle query behave like it contains a MySQL limit clause? In MySQL, I can do this: select *  from sometable order by name limit 20,10  to get the 21st to the 30th rows (skip the first 20, give the next 10). The rows are selected after the order by, so it really starts on the 20th name alphabetically. In Oracle, the only thing people mention is the rownum pseudo-column, but it is evaluated before order by, which means this: select *  from sometable where rownum <= 10 order by name  will return a random set of ten rows ordered by name, which is not usually what I want. It also doesn't allow for specifying an offset.


I need to create a "media uploader metabox" and add it to my custom post type. I've already create normal metaboxes, the function to add to the custom post type and the function to save them, I only need to use the wordpress' media uploader but I can't figured out how to do that.  After that I would insert something like "Add more image" that add more metaboxes into the page.  Something like that:

I have a custom post which has a meta tag that needs to be using a file upload (for video files). I am wondering, what is the correct way of adding an "Upload" button that points to the WordPress media uploader and sets the url of the selected uploaded file to the text field that caused that associates the upload button.  I am not looking for code on creating the actual meta tag option, but for a way to actually add a Wordpress media upload button properly.


I got to know two reasons why we don't use Linear Regression for Classification: For example- We want to predict a tumour is Malignant or Benign using one feature-x: Tumor size and we want to predict y: Malignant(1) or Benign(0). We can threshold the classifier output of hθ(x) at 0.5 as follows: If hθ(x) >= 0.5, predict 'y=1' If hθ(x) < 0.5 'predict y=0' So if we apply this same technique with more training data: 1)it may predict wrong. 2)it may predict y>1 or y<0, but we need either 0 or 1 as answer in y. Are there any better answers to my question? Are there better reasons why we don't use linear regression for a classification problem?

I'm trying to justify using of GLM model in my project instead of a simple linear regression. A lot of sources that I've seen contain the statement that "GLM allow us to build regression models for response variables that are not normally distributed". I can't understand what that is supposed to mean since we don't make any assumptions about variable distribution. Could you, please, explain  why it's often more appropriate (theoretically)  to use GLM if your response variable is,  say, count.


I want to show numerical 5 as "five". I couldn't explain more than this. Any help please.

In PHP, is there an easy way to convert a number to a word? For instance, 27 to twenty-seven.


U-tube, of uniform cross section $S$ and opened at both ends, is filled with a liquid column of length $L$ and density $\rho$. In equilibrium the water levels in both arms are at same height. What goes on if liquid in one arm is somehow raised, with a temporary subpressure for example, and then released?    I understand the system will try to return to and tend to oscillate about equilibrium. But I am at a loss as to what exactly drives that. Presently, I can derive the angular frequency of the oscillation as $\omega^2 = 2 g/L$ from the energy balance. But I would like to understand the Newtonian equation.  Pressure at both liquid surfaces is the same so there is no external net force on the fluid as a whole, right? There should be hydrostatic difference in pressure between points A and B equal to $\Delta p = \rho g (2 x)$ which I guess drives the liquid. What's the pressure at C? How does pressure changes from A to B to C?  (Here's  to a similar post, but which doesn't resolve my confusion.)

A vessel (preferably circular) filled with water is accelerating unidirectionally such that the level of water is higher on one end than the other. What I want to know is that if the vessel is immediately stopped, the water level will force itself back to the equilibrium point, but in doing so push the other end up. If water is an ideal fluid, what type of oscillation will occur in this situation.   I can tell that maybe the mathematical expression for this oscillation will be complex, but please do let me know if I am thinking this correctly.   I am considering, finding the oscillation equation for infinitesimally small u-tubes(considering a 2-d plane) and integrating it to get the final expression.  Thanks in advance