I saw that /proc/cpuinfo update all the time, especially the field "cpu MHz"? I assumed that these details should be constant. When did /proc/cpuinfo begin to update all the time, especially the field "cpu MHz"? Is it depend linux systems or versions? Example :  First run [omerha@hroor tmp]$ cat /proc/cpuinfo  | grep "cpu MHz" | tail -1 cpu MHz         : 1406.195   Second run [omerha@hroor tmp]$ cat /proc/cpuinfo  | grep "cpu MHz" | tail -1 cpu MHz         : 1675.964

The CPU is a i7-3770@3.40GHz. It has 4 cores and each core has 2 threads. Here is the dmidecode output:  # dmidecode -t 4 # dmidecode 2.9 SMBIOS 2.7 present.  Handle 0x0042, DMI type 4, 42 bytes Processor Information     Socket Designation: SOCKET 0     Type: Central Processor     Family: <OUT OF SPEC>     Manufacturer: Intel(R) Corporation     ID: A9 06 03 00 FF FB EB BF     Version: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz     Voltage: 1.1 V     External Clock: 100 MHz     Max Speed: 3800 MHz     Current Speed: 3400 MHz     Status: Populated, Enabled     Upgrade: <OUT OF SPEC>     L1 Cache Handle: 0x003F     L2 Cache Handle: 0x003E     L3 Cache Handle: 0x0040     Serial Number: Not Specified     Asset Tag: Fill By OEM     Part Number: Fill By OEM     Core Count: 4     Core Enabled: 4     Thread Count: 8     Characteristics:         64-bit capable   It will be 8 logic core in a system, like what shows in /proc/cpuinfo. But can any one tell why the cpu MHz of a core is 1600MHz? I guess there is 2 threads in a core, so a hw thread freq may be about the half of the core's? How this number is calculated?  processor   : 7 vendor_id   : GenuineIntel cpu family  : 6 model       : 58 model name  : Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz stepping    : 9 cpu MHz     : 1600.000 cache size  : 8192 KB physical id : 0 siblings    : 8 core id     : 3 cpu cores   : 4 apicid      : 7 initial apicid  : 7 fpu     : yes fpu_exception   : yes cpuid level : 13 wp      : yes flags       : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 x2apic popcnt aes xsave avx lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid bogomips    : 7013.49 clflush size    : 64 cache_alignment : 64 address sizes   : 36 bits physical, 48 bits virtual power management:   Also, here is the output of lshw and lscpu command. There are also 1600MHz mentioned.   lshw info:  #lshw -class processor   *-cpu                           description: CPU        product: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz        vendor: Intel Corp.        physical id: 42        bus info: cpu@0        version: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz        slot: SOCKET 0        size: 1600MHz        capacity: 3800MHz        width: 64 bits        clock: 100MHz        capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp x86-64 constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 sse4_2 x2apic popcnt aes xsave avx lahf_lm ida arat tpr_shadow vnmi flexpriority ept vpid cpufreq   lscpu info:  #lscpu Architecture:          x86_64 CPU op-mode(s):        32-bit, 64-bit CPU(s):                8 Thread(s) per core:    2 Core(s) per socket:    4 CPU socket(s):         1 NUMA node(s):          1 Vendor ID:             GenuineIntel CPU family:            6 Model:                 58 Stepping:              9 CPU MHz:               1600.000 Virtualization:        VT-x L1d cache:             32K L1i cache:             32K L2 cache:              256K L3 cache:              8192K


Not able to edit in Apex class:     This schedulable class has jobs pending or in progress   Can we know in someway which scheduled batch job is causing the issue. So that we can abort that scheduled batch job only.

I am deploying to production using the Ant migration tool. Every class is reporting the error: Apex class has Batchable or Future jobs pending or in progress Even classes such as StringUtils and such which have not future or batchable methods.  Someone asked a similar question here  but it was closed for comment because it was a duplicate of this post:   But that post does not answer my problem.  Nor does the SF posted help here:


I am using a footnotes with urls inside. This works fine for most cases, but for some reason I cannot understand, sometimes the footnotes are not generated and I do not know why.   Here is the MWE (Minimal Working Example) that I am using:  \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{paralist}  \begin{document} \begin{compactdesc}   \item[Speedup\footnote{Am I Here?}] \hfill \\     A missing footnote. \end{compactdesc}  \end{document}   What am I doing wrong here?

It seems like it's not possible to put footnote inside a description list item.  For example in the following code first footnote appears at the bottom of the page, but the second - doesn't:  \documentclass[a4paper,12pt]{article}  \begin{document}     Text text text.\footnote{This footnote is working}     \begin{description}         \item[Label\footnote{This footnote is not working}] Some description     \end{description} \end{document}   Why it's not working this way? And is there any way to put footnote to a list item?


Suppose $z=x+iy$, how to prove that $\lim\limits_{n\to\infty}(1+\frac{z}{n})^n=e^x(\cos{y}+i\sin{y})$?

We are dealing with $z \in \mathbb{C}$. I know that $$ \left(1+ \frac{z}{n} \right)^n \to e^{z} $$ as $n \to \infty$. So intuitively if $z_n \to z$ then we should have $$ \left(1+ \frac{z_n}{n} \right)^n \to e^{z}. $$ If $z_n \in \mathbb{R}$ I would be happy writing $$ \exp \left(n \log\left(1+ \frac{z_n}{n} \right) \right) = \exp \left(z_n \frac{\log\left(1+ \frac{z_n}{n} \right)-\log(1+0)}{\frac{z_n}{n}-0} \right) \to \exp(z \cdot 1) $$ where here we are using the definition of derivative. But if $z \in \mathbb{C}$ the logarithm is multivalued and I'm not sure that the same calculation is allowed. Is there a different way to show this for complex $z$?


I was looking into creating a wizard that remains hidden for the most part from combat (potentially even to go as far as to hide in a fellow party members' backpack, they are a halfling) and thought about this question when it came to using the senses of my familiar as created by Find Familiar.     Find Familiar   While your familiar is within 100 feet of you, you can communicate with it telepathically. Additionally, as an action, you can see through your familiar’s eyes and hear what it hears until the start of your next turn, gaining the benefits of any special senses that the familiar has. During this time, you are deaf and blind with regard to your own senses.   So looking through the senses of my familiar, in this instance let's say it was a Raven and I can see the battlefield through his senses as he flies about 20ft above us providing an aerial view.     Counterspell   Casting Time: 1 reaction, which you take when you see a creature within 60 feet of you casting a spell   You attempt to interrupt a creature in the process of casting a spell. If the creature is casting a spell of 3rd level or lower, its spell fails and has no effect. If it is casting a spell of 4th level or higher, make an ability check using your spellcasting ability. The DC equals 10 + the spell’s level. On a success, the creature’s spell fails and has no effect.   Following the earlier example let's go even further and say that I can see the battlefield from inside the fighters' backpack (hidden completely) and someone, let's say a sorcerer within a 60ft range of the two of us decides to try and cast a spell, since I am in the backpack hidden away I usually would not be able to see out of it, except in this scenario I am using my familiars's senses to see and I can see the enemy sorcerer and the fighter on the battlefield.    Would I then be able to cast counterspell to stop the sorcerer?

I had to make a call today and I'm wondering how this scenario should've gone down   The map was a U-shaped hallway; the party was on the lower left of the U, with the enemies on the upper right. The wizard has an owl familiar who could see an enemy caster, with the wizard seeing through the familiar's eyes, and the wizard was further back.   The enemy caster cast a fireball.  The player claims that since he was looking through the owl's eyes from his turn, he should technically have line of sight for a counterspell.   Could counterspell be cast in this case, even though there was a wall between him and the caster, and he was physically not able to cast towards the enemy caster?  Was I wrong in said judgement?


Rudin gives the definition of a base as follows in Exercise 2.23  A collection $\{V_\alpha\}$ of open subsets of $X$ is said to be a base for $X$ if the following is true: for every $x\in X$ and every open set $G\subset X$ such that $x\in G$, we have that $x\in  V_{\alpha}\subset G$ for some $\alpha$. In other words, every open set in $X$ is the union of a sub collection of $V_{\alpha}$  Munkres Topology gives the definition for a basis of a topological space as follows:  If $X$ is a set, a basis for a topology on $X$ is a collection $\mathcal{B}$ of subsets of $X$ (called basis elements) such that  For each $x\in X$, there is at least one basis element $B$ containing $x$ If $x$ belongs to the intersection of two basis elements $B_1$ and $B_2$, then there is a basis element $B_3$ containing $x$ such that $B_3\subset B_1 \cap B_2$   Are these two definitions (a base and a basis) equivalent? If so, how can I see that the Munkres's version is equivalent to the Rudin version?

The definition of Basis for a Topology as given in Munkres's book is as follows,     If $X$ is a set, a basis for a topology on $X$ is a collection $\mathcal{B}$ of subsets of $X$ (called basis elements) such that         For each $x∈X$, there is at least one basis element $B$ containing $x$   If $x$ belongs to the intersection of two basis elements $B_1$ and $B_2$, then there is a basis   element $B_3$ containing $x$ such that $B_3⊆B_1∩B_2$.      My question is,     In the definition though we are defining "basis for a topology", there is no mention of the topology on $X$. What role the topology on $X$ plays in the definition? Is it just a simple printing mistake or I am missing something?


I have the following HTML structure:    .parent{   border: 1px solid;   width: 60%; }  .child2{   margin: 0 auto; }
   it should stay in the left side
   this should be center
     I need to center a.child2 . I can do this by adding text-align: center to div.parent. But in that case, a.child1 will be centered too and I don't want to.  As you can see, I've also added margin: 0 auto; to a.child2, but  it is still placed on the left side.   To sum up, how can I center a.child2  while mantaining a.child1 on the left side?

How can I horizontally center a
 within another
 using CSS?

Foo foo


How does one calculate the capacitance of two bodies with different charges? I was looking at coefficients of potential, but they don't seem helpful.

I am confused as to whether/how capacitance changes when each plate has a different charge.  For example, consider a coaxial cable and put $20Q$ on the outer cable, and $-Q$ on the inner. Or how about concentric spheres, grounding either the inner or the outer?


In my Google Sheet cell D12 gets the difference of two numbers with =D9 - D4. How do I store the value in cell D12 to a log in another sheet on a daily basis? I would like each row in the log sheet to show the date and the difference. An onEdit() based change tracker will not work for this, because the difference should be saved once a day rather than every time the sheet is edited, and because the value I want to track is in a formula cell that is never edited.

Is there any way I could access Google Spreadsheet revision history through the API?  The reason for that is I have a lot of sheets and simply relying on build-in revision history does not suffice to point me to the sheet where changes were made. I need to check all the sheets to figure out what change was made - highly inefficient approach.  The output I would expect is:  Changes made at 01 Jan 2010 by SomeUser  Sheet name: Sheet1 Updates: [{ address: C1, oldValue: OldValue, newValue: NewValue }, { address: B2, oldValue: OldValue, newValue: NewValue },  ... ]


Numberphile posted a vid on 5-31-17 about Godel’s Incompleteness Theorem.  Near the end of the vid, the professor argues that proving that the Riemann Hypothesis is undecidable would PROVE the Riemann Hypothesis.  His logic, as I understand it, that a RH counter-example would render the problem decidable, therefore if the RH is undecidable no counter-example can exist.    This an Oxford math prof, so I'm sure he knows what he’s doing, but deciding something by proving it can’t be decided seems like a wee contradiction to me.  Can anyone clear this up?

In , Marcus du Sautoy claims that a proof for the Riemann hypothesis must exist (starts at the 12 minute mark).  His reasoning goes as follows:   If the hypothesis is undecidable, there is no proof it is false. If we find a non-trivial zero, that is a proof that it is false. Thus if it is undecidable there are no non-trivial zeros. This constitutes a proof the hypothesis is true, thus it is decidable.   This makes perfect sense, however only seconds earlier he states that the Goldbach conjecture might be undecidable.  It seems to me that the exact same reasoning we applied to the Riemann hypothesis could be applied to the Goldbach conjecture.  Just switch out the words "non-trivial zero" for "even number that cannot be represented by the sum of two primes" and to me this reasoning looks fine.  In fact as far as I can tell any statement that can be verified or falsified by example can be plugged into this to generate a proof it is decidable.  Since Marcus du Sautoy is considerably more qualified than I to speak about this I trust that there is something more complex going on behind the scenes here.  Does this apply to the Goldbach conjecture?  If not why not?  What am I not understanding here?


Let $G$ be a group s.t. every non-identity element has order 2. If $G$ is finite, prove $|G| = 2^n$ and $G \simeq C_2 \times C_2 \times\cdots\times C_2$  I know G is abelian since $ab = (ab)^{-1} = b^{-1} a^{-1} = ba$ for all non-trivial $a,b \in G$ so I have several questions remaining:    How do I prove $|G| = 2^n$? I'd like to say we use induction to prove this but I'm at a loss as to where I would start. Why is $G \simeq C_2 \times C_2 \times\cdots\times C_2$?   I've read several answers to question similar to this yet unfortunately most of them involve Galois Fields and vector spaces, both concepts I'm unfamiliar with. I'd greatly appreciate an intuitive proof.

Let $G$ be a group where every non-identity element has order 2.     If |G| is finite then $G$ is isomorphic to the direct product $\mathbb{Z}_{2} \times \mathbb{Z}_{2} \times \ldots  \times \mathbb{Z}_{2}$.  Is the analogous result   $G= \mathbb{Z}_{2} \times \mathbb{Z}_{2} \times \ldots $.  true for the case |G| is infinite?


I've been happily comment-flagging away on the sites with what I thought was a good understanding of the comment flag system. There are some posts on non-constructive flags, but none that I can see that cover this particular issue:   Then this  in the  made me rethink comment flagging.  As a mod who regularly handles flags, I don't like seeing "gee thanks" being flagged as Not Constructive. Flag it as "too chatty" and a mod will get it. But I'm a bit stuck on process, and an improper NC flag will make me decline the flag and then flag it properly.  This got me concerned about having declined flags. The SO mod continues to reveal:   has a strongly negative connotation and the system looks at it that way too.  The  attitude is:   a punishment. However, the system brings posts with NC flags to our attention, and when you flag a "gee thanks" as NC, you create noise and redundant work for us.  As most of us are not familiar with the mod dashboard, it would be good to have some insight into this. There needs to be consistency between the mods' experiences and the general users' perception of the site tools and how to use them.  was:  @AaronHall what your telling some of us is news. I think there needs to be a featured meta post on that. As far as I'm concerned as an active user on the site. If my NC flags start to be declined I wouldn't be happy. It's like we're punished for doing what we think is the right thing and that really is not the way to approach it as a mod. I think you need to educate the community first.  So the questions are these:  Does the 'not constructive' flag have a strongly negative connotation within the system?  If so, can we have more detailed clarity on its use?  Can we have some mods' perspectives on this?   This is related  but not a duplicate, as this discusses it's use, the other discusses all the comment flags and is a feature request.

The problem Comments are terrible; no one agrees on what they're for, or how long they should be kept. Comment flags are equally terrible, because if no one's on the same page as far as what should be posted in the first place then no one can agree on what should be removed either. On top of that, we have this confusing set of flags where two mean "noise", one means "vile", one means "moderator, help!" and one means nothing at all - the end result is that it's all but impossible to even analyze comment flagging. The solution (or, part of it) Two years ago, in a fit of rage, I . Nothing got done. As always, everyone has a different idea of how things are supposed to work, and I'd bitten off more than I could chew. So, here we are, two years later, and comment flags still suck. So let's start by just cutting the fat: if we can trim down the list of flags to a set of clearly distinct problems, we might have something we can build on. Here's what I'm proposing, based on the past two years of discussion:   Re-word the "rude or offensive" flag to read,  rude or abusive: this comment violates .   Remove the "not constructive", "obsolete" and "too chatty" flags.  Add a new comment flag:  no longer needed: this comment is obsolete, chatty or otherwise unnecessary   Re-word the "other..." flag:  in need of moderator attention: these comments require action by a moderator. Be specific and detailed!    That's it; that's all I'm proposing to start out - simplify things so that we have something to build on. See also:


I followed a course and managed to create a 3D model,this is my very first attempt.I rendered the image ,it was all good.But when I tried to view it on a gltf viewer,it does not appear to be same as the rendered image.I would really appreciate if someone could help me with this,since I am a beginner,stuck up with this and not being able to figure out the issue.

I used node textures in a mesh I exported to .FBX.  I then imported it into Unreal Engine 4 and it didn't import any textures; I clicked the Upload Textures option in Unreal Engine.  Is there something I'm doing wrong or is it Blender?


Is there a way to discover which is my VirtualBox VM's host machine? My VM guests only network is a "bridged adapter" (no NAT). A sample ifconfig is:  CODE: SELECT ALL   EXPAND VIEW enp0s9: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500         inet 192.168.1.36  netmask 255.255.255.0  broadcast 192.168.1.255         inet6 fe80::f821:6317:c27a:16c6  prefixlen 64  scopeid 0x20<link>         ether 08:00:27:f6:b5:54  txqueuelen 1000  (Ethernet)         RX packets 6889970  bytes 9898198227 (9.2 GiB)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 587306  bytes 43842901 (41.8 MiB)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536         inet 127.0.0.1  netmask 255.0.0.0         inet6 ::1  prefixlen 128  scopeid 0x10<host>         loop  txqueuelen 1000  (Local Loopback)         RX packets 1002  bytes 105104 (102.6 KiB)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 1002  bytes 105104 (102.6 KiB)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0  virbr0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500         inet 192.168.122.1  netmask 255.255.255.0  broadcast 192.168.122.255         ether 52:54:00:73:34:0f  txqueuelen 1000  (Ethernet)         RX packets 0  bytes 0 (0.0 B)         RX errors 0  dropped 0  overruns 0  frame 0         TX packets 0  bytes 0 (0.0 B)         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0   Sample netstat -rn output:  CODE: SELECT ALL   EXPAND VIEW Kernel IP routing table Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface 0.0.0.0         192.168.1.99    0.0.0.0         UG        0 0          0 enp0s9 192.168.1.0     0.0.0.0         255.255.255.0   U         0 0          0 enp0s9 192.168.122.0   0.0.0.0         255.255.255.0   U         0 0          0 virbr0   Both Host and Guest machines are Linux CentOS 7.

I have an IP address of a Guest virtual machine running on an VMware ESXi host. I don't know the IP address of this VMware host.  How can I find the IP address of this VMware host?    I have  software installed on my system.  I can ping the IP of the guest machine and it replies. Thanks.


As a habit, I have always tried to answer my own questions on Stack Overflow and other sites if no one provided an answer, and I later found the answer myself. I consider this to be essential to helping other developers in the future. Some examples:  Lack of support of TailwindCSS in webkit browsers  Vim replace regex command  Material theme lack of support for dark theme   I'd admit that many of the original questions I answered were not the best questions. They were often the result of poor research and/or I could have found the answers if I looked hard enough into documentation for long enough. What I would like to stress, however, is that my impression of SO is a site of sharing knowledge. I would really not mind if my questions were downvoted, because of their lack of merit. What I do not understand is why it seems like knowledge-sharing through self-answering is starting to become discouraged.

Historically our beta site has discouraged self-answered questions. The site has been running for 6 years (3 questions/day, 98% answered, 3 ½ answers/question, and very few questions are closed). The topic of the site can be a bit "" (like Parenting, or amateur History), sometimes opinionated, and not entirely dry and technical like Stack Overflow. We have discouraged self-answered questions -- because, as one of the moderators says,  I'm strongly opposed to giving green light to quasi-questions posted with the sole intent to share an opinion, an unsolicited teaching, rambling, philosophical musings etc. [...] self-answering [might be] utilized to take advantage of the SE platform to push unsolicited info at the audience [...] I'm not convinced we should greenlight a random newbie getting on the proverbial soap box [...]. How are we to decide who is allowed to get on the box and who's not? I suppose the main issue here is community self-moderation or rather the lack thereof.  My experience of other SE sites has been that self-answering isn't an important feature -- that the large majority of topics, and of the most upvoted answers, are all people answering other people's questions. So IMO if the community votes it wants to avoid people using self-answered questions to preach on the topic of their own choice (i.e. by posting a rhetorical question and self-answering), then that's fair enough -- i.e. it's not a huge diversion from SE's core mission as a Q&A site. I'm aware that SE also usually  and hopes its sites may become like Wikis (which IMO is fair enough when the subject matter is like SO's). My fear is that self-answered questions may be:  Mostly summaries of or references to material already available online elsewhere A bit spammy (e.g. a summary of something on the OP's blog or YouTube channel) Someone might flood the site with unlimited self-answered topics It can be preachy -- users who disagree in their answers within one topic might use further self-answered questions to continue their disagreement into other topics People (or trolls) might post extremist, unorthodox, unwelcome, controversial views on topics of their own choosing.  Someone recently argued though that "experts" want to be able to post self-answered topics and won't frequent the site if they are not allowed to.  What's your experience (and on which site)?  Are self-answered topics a problem, a distinct category, difficult to control or to quality-control?  How do you (do you even) prevent people posting the kinds of low-quality or problematic content which I listed above)? What implements the prevention -- is it the community, the moderators, or some site-specific policies about what content is welcome?  Do self-answered questions seem a bit spammy sometimes?  says,  Always solve the asker's problem. A good answer should at minimum allow the person whose question you're answering to solve their problem. Not all questions can be answered this way, but if you don't think you can write up a complete solution then you're better off looking for a different question.  ... but a problem with self-answered questions is that there isn't even an asker -- the post is unsolicited, it's not cooperative like answering someone else's question.    Historically when someone posts a question in order to self-answer it, a moderator says, "That's not really conventional on this site, this is a Q&A site which is preferably for answering other people's questions". So we've had little experience with allowing self-answered questions -- and having to quality-control or moderate them. How does a site cope with the various kinds of problem listed above, without deprecating all self-answered questions categorically?


I've already a working Android Studio 1.2 installed on my computer. But seems there is no installed SDK tools on my computer, so when I try to launch the Android Studio a dialog pops up saying please specify SDK location.  I've searched whole of  page and sounds there are only two options.   Android Studio bundle, including IDE and SDK tools Stand-alone SDK tools for IDEs other than Android Studio. (ADT for example).   But I need a third option that only provides SDK tools only tailored for Android Studio. Thus my question would be is there any other repository by which this option is provided?  If there is no such repository, I should download that bundle file again. (Seems would be a nightmare with my snaily network speed :) )  Please note that I've tried already stand-alone SDK with Android Studio, but seems they couldn't couple together.

Please tell me the full process of installing Android Studio and its necessary dependencies.


Normally, I don't see an edit in the revision history where the possible duplicate banner is added after someone  votes to close a question but take a look at , not only can I view the banner being added but I can also edit it out of the post.

For example  was  as a duplicate. The OP, in his infinite wisdom, edited out the duplicate link!  And then someone flagged it for moderator attention, and a moderator rolled it back and locked it with a warning to the OP. This is the way in which such things are handled... --Shog9  Why is this allowed? This should be prevented, or the duplicate question link should be present in the close reason. Now if any future users (who are not used to the Stack Exchange) come, they will see that the question is closed due to it being a duplicate but they will not know what the duplicate link is. I propose that we put a non-editable header at the top of duplicate questions that the OP cannot remove, unless the question is reopened.  Related:


i have an image 1920x900. My client want this size 1920x400 without using crop. i tried to edit image size in image menu in photoshop, but it is not allowing me to do it to maintain its height and width in proportion, becauz 400 is very less than 1920. So kindly help is there any other way.

Hi my client has given me a load of images for the site I'm building for him, they are going in a Javascript Image Nivo Slider Banner at the top, the size of the banner is 720px x 200px but the images aren't.  I can crop the images, but I wonder if there is a way to resize them and change the proportion without destroying the quality, or due to the nature of how pixels work is this not possible?  I would like to be able to turn them into wide angle images and work from there.  I have Photoshop CS6 Ext.


I'm using a SpriteBatcher to rotate and scale a TextureRegion in libGDX. I'd like to rotate the texture around an origin outside of the region, but have the texture scaled around the region's center.  As far as I'm aware, this has to be performed in one action in the SpriteBatcher.draw() method. The region is scaled to the correct size, but scaled away from the origin.  I could compensate by adjusting the origin location, but is there a better method?

I have some models that I want to rotate using quaternions in the normal manner, except instead of rotation about the origin, I want it to be offset slightly. I know that you don't say, in 3d space, that you rotate about a point; you say you rotate about an axis. So I'm visualizing it as rotating about a vector whose tail is positioned not at the local origin.  All affine transformations in my rendering / physics engine are stored using SQT (scale, quaternion, translation; an idea borrowed from the book Game Engine Architecture.) So I build a matrix each frame from these components and pass it to the vertex shader. In this system, translation is applied, then scale, then rotation.  In one specific case, I need to translate an object in world space, scale it, and rotate it about a vertex not centered at the object's local origin.  Question: Given the constraints of my current system described above, how can I achieve a local rotation centered about a point other than the origin? Automatic upvote to anyone who can describe how to do this using only matrices as well :)


What is a closed operation in a vector space? I don't see any difference between a closed operation in some vector Space R$^n$ and the open operation.   What I mean by the closed operation is addition sign that looks like $\oplus$  Also, is a subspace an element of a vector space R$^n$ or no? Like I must first assume that there is a space R$^n$ which is closed first.   Thank you for the help. (Thank you everybody) ありがとう 皆さん

How is direct sum of two vector subspaces different from the sum of two vector subspaces i.e. how is $X\oplus Y$ different from $X + Y$, where $X, Y$ are subspaces.


Determine all the ring homomorphism from $\mathbb{Z}$ to $\mathbb{Q}$  and  $\mathbb{Q}$ to $\mathbb{Z}$ My attempt : Ring homomorphism from $\mathbb{Z}$ to $\mathbb{Q}$ Here $\mathbb{Z}$ is cyclic  and we know that any ring homomorphism send $1$ to $1$ So $f:\mathbb{Z} \to \mathbb{Q}$  send each integer  $n$ to the rational number $\frac{n}{1}$ This implies  identity is the only such homomorphism  from $\mathbb{Z}$ to $\mathbb{Q}$ But here im  confused  that how  to determine the ring homomorphism  from $\mathbb{Q}$ to $\mathbb{Z}?$

Let $A$ be a ring. I'm trying to prove that there is only one ring homomorphism (different from the zero one) from $\Bbb Q$ into $A$ or there are no ring homomorphisms between $\Bbb Q$ and $A$.    I have proven that if $A=\Bbb Z$ or $A=\Bbb R$ then there are no ring homomorphisms between $A$ and $\Bbb R$ (not taking into account the zero one) but I don't know how to prove it for any $A$.


I have the following example:  \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{matrix}  \begin{document}      \begin{equation}      \begin{tikzpicture}[baseline=(current bounding box.center)]         \matrix (m) [matrix of math nodes,nodes in empty cells,         nodes=draw,         right delimiter={]},         left delimiter={[},          row sep=0.1cm,          column sep=0.1cm,         minimum width=1.5cm,         minimum height=1.5cm]       {        \mathbf{M}_0 & \mathbf{0} &        &     &        & \mathbf{0} & A(0)(0) & A(0)(1)  & \mathbf{0}   &        &        & \mathbf{0}   \\        \mathbf{0} & \mathbf{M}_0 &        &     &        &        & \mathbf{0}  & -A(0)(0) & A(0)(1)  &        &        &          \\               &        & \mathbf{M}_0 &     &        &        &         &          & -A(0)(0) &        &        &          \\               &        &        &     &        &        &         &          &          &        &        & \mathbf{0}   \\               &        &        &     &        & \mathbf{0} &         &          &          &        &        & A(0)(1)  \\       \mathbf{0}  &        &        &     & \mathbf{0} & M(0) & \mathbf{0}  &          &          &        & \mathbf{0} & -A(0)(0) \\       \mathbf{M}_0 & \mathbf{0} &        &     &        & \mathbf{0} & A(0)(0) & A(0)(1)  & \mathbf{0}   &        &        & \mathbf{0} \\        \mathbf{0} & \mathbf{M}_0 &        &     &        & \mathbf{0} & \mathbf{0}  & -A(0)(0) & A(0)(1)  & \mathbf{0} &        & \mathbf{0} \\               & \mathbf{0} & \mathbf{M}_0 &     &        & \mathbf{0} &         & \mathbf{0}   & -A(0)(0) &        &        & \mathbf{0}  \\               &        &        &     &        &        &         &          & \mathbf{0}   &        &        & \mathbf{0} \\               &        &        &     &        & \mathbf{0} &         &          &          &        &        & A(0)(1) \\       \mathbf{0}  & \mathbf{0} & \mathbf{0} &     & \mathbf{0} & M(0) & \mathbf{0}  & \mathbf{0}   & \mathbf{0}   &        & \mathbf{0} & -A(0)(0) \\       } ;       \end{tikzpicture}    \end{equation} \end{document}   How can I align all the nodes, some boxes (empty) are somehow out of alignment?  Thanks alot!

I wanted to draw an almost empty matrix of nodes with TikZ similar to the left most one below. All nodes would have same size (through minimum width and minimum height) and no separation between columns and rows. But when I include a text which needs two lines I obtain the central matrix and, if the text just needs one line the right most one. I don't know what's wrong. Do you? I'm using CVS version of TikZ.  \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{matrix}  \tikzset{ proces/.style={draw, minimum height=15mm, minimum width=2cm, outer sep=0pt, text width=1.5cm, align=center} }  \begin{document} \begin{tikzpicture}  \matrix (A) [matrix of nodes,nodes=proces,nodes in empty cells] {  & \\  & \\ };  \begin{scope}[xshift=4.5cm] \matrix (A) [matrix of nodes,nodes=proces,nodes in empty cells] {  & OOO OOO \\  & \\ }; \end{scope}  \begin{scope}[xshift=9cm] \matrix (B) [matrix of nodes,nodes=proces,nodes in empty cells] {  & A \\  & \\ }; \end{scope}  \end{tikzpicture} \end{document}


I'm currently trying to figure out the workflow for using the motion capture features in Blender for animation. I've figured out creating markers and tracking them, but I'm stuck at reconstruction. The one video tutorial I've found uses the Camera Solver constraint to project the points in 3D space, but I can't find a way to turn those points into emptys so I can continue with the workflow. Alternatively, the normal reconstruction option in the Movie Clip Editor projects all the points onto a flat Y plane. Would there be some way to effectively combine these 2 effects, getting usable empty tracks in the 3D view that have some depth to them?  I'm currently in v 2.79.  Edit: the motion is from a single camera, and the camera motion is solved. The tutorial I was following used the Camera Solver modifier to calculate 3D depth for some of the points, so I was mostly looking to see if there was some method to get some sort of depth data with just one camera. It seems like that might be impossible, however.  edit2: The video has a stationary camera and the video subject is someone moving their face with control points painted on.

I already solve my camera and created 3d scene successfully. Now i want to do 2d track the original clip and by using solving data, i want to extract that specific point into 3d coordinate (as empty object or plain axes). How can i do this ?  Thanks


When $\theta$ is very small, why is sin $\theta$ taken to be JUST $\theta$?

I haven't touched Physics and Math (especially continuous Math) for a long time, so please bear with me.  In essence, I'm going over a few Physics lectures, one which tries to calculate the Force exerted by uniform magnetic field on a semi circular current carrying wire.  The mathematics that puzzles me is this, that:  $$ \sin(d \phi) \thickapprox d\phi $$  where $d\phi$ is very small. .


As I researched from documents I found that, when working with classifiers, we generally use 3 sets that are:   A set for training the classifiers A set for testing the classifiers during development An untouched testing set that is only used after the development   So my question is: Why do we really need the 3rd set? And also as I see, why the 2nd set gives, in general, too optimistic results?

I found this confusing when I use the neural network toolbox in Matlab. It divided the raw data set into three parts:   training set validation set test set   I notice in many training or learning algorithm, the data is often divided into 2 parts, the training set and the test set.  My questions are:   what is the difference between validation set and test set?  Is the validation set really specific to neural network? Or it is optional. To go further, is there a difference between validation and testing in context of machine learning?


I wanted to calculate $i^i$ ($i$ is an imaginary unit), and I calculated in this way:  $i^i = (i^4)^{i/4} = 1^{i/4} = 1$ (because $1^x = 1$ for any number $x$)  So, I thought that $i^i$ 's one solution is $1$.  Though, in Wolfram Alpha, it says the solution was $e^{2n\pi - \pi/2}$. It doesn't include $1$. What's wrong with my proof?

We know that $$e^{\pi i}+1=0$$and $$e^{\pi i}=-1$$  So$$(e^{\pi i})^2=(-1)^2$$$$e^{2\pi i}=1$$  Because $1$ is the multiplicative identity,$$(e^{2\pi i})^x=1^x$$$$e^{2\pi xi} =1$$should also hold true.  But we also know that $$e^{xi}=\cos(x)+i\sin(x)$$and so$$e^{2\pi xi}=\cos(2\pi x)+i\sin(2\pi x)$$which does not equal 1 for all values of $x$.  Now I realize I probably didn't break math, so I must be making an invalid assumption. What is wrong with my reasoning?


I am trying to remove all non alphanumeric characters except emojis. So the wrote the following code:  >>> import re >>> re.sub(r"[^a-zA-Z0-9_#@\s\U00010000-\U0010ffff]", '', "THAT ASc776 ^ .? + #> _")   Its works fine and returns:  'THAT ASc776  ?  #> _'   But if I put emoji in the text, I still get the same result:  >>> re.sub(r"[^a-zA-Z0-9_#@\s\U00010000-\U0010ffff]", '', "THAT😋 ASc776 ^ .?😋 + #> _") 'THAT ASc776  ?  #> _'   I realize that Emojis are unicode, so I also tried the following  >>> RE_EMOJI = re.compile('[^\U00010000-\U0010ffffa-zA-Z0-9_#@\s]', flags=re.UNICODE) >>> RE_EMOJI.sub('','AHAT😋 ASc776 ^ .?😋 + #> _') 'AHAT ASc776  ?  #> _'   But it still doesn't recognize the emoji. So what's the correct way to remove all alphanumeric characters excluding emojis from a text.   EDIT:  With python3.5 the code works correctly and produces the correct output. However, I am using python2.7, and it doesn't work with python2.7.

I need to delete some Unicode symbols from the string 'بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ'  I know they exist here for sure. I tried:  re.sub('([\u064B-\u0652\u06D4\u0670\u0674\u06D5-\u06ED]+)', '', 'بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ')   but it doesn't work. String stays the same. What am I doing wrong?


Hi guys what is the BEST way to update driver from AMD.com Right now I am on latest 13.3 Beta 3 and just for future how do I update. On installation tut. you guys saying remove any old drivers before install new one from amd.com. IS this same way updating from 13.3 beta 3 to let's say beta 4 or even 13.3 Gold release ? In other words it's always best to delete everything and re install driver ? Reason I am asking I am not too clear on how to ERASE everything that have to do with amd.  Thanks !

I have 14.04.5/16.04 or newer and an AMD GPU. I'm not getting the performance I want, and some programs say they need things like OpenCL.  I've heard about fglrx, but if I try to install it on my machine, it breaks and I have no GUI.  Is there anything I can do to get my AMD card working to its full potential?


I'm new to bash and I'm working on script that traverses the tar.gz file archive and in each file changes a string specified to an another string. Args of script: name of archive, searched string, target word. My problem is that when archive name contains a space (e.g. I run script with following args: > change_strings.sh "/tmp/tmp.m7xYn5EQ2y/work/data txt" a A) I have following error:  on line if [ ! -f $filename ] ; then  [: data: binary operator expected, dirname: extra operand `txt'.  Here is my code:    #!/bin/bash    filename="${1##*/}"   VAR="$1"   DIR=$(dirname ${VAR})   cd "$DIR"   if [ ! -f $filename ] ; then echo "no such archive" >&2 exit 1 fi   if ! tar tf $filename &> /dev/null; then echo "this is not .tar.gz archive" >&2 exit 1 fi   dir=`mktemp -dt 'test.XXXXXX'` tar -xf $filename -C $dir  #extract archive to dir cd $dir #go to argument directory  FILES=$dir"/*"  for f in $FILES do sed -i "s/$2/$3/g" "$f" done  tar -czf $filename * #create tar gz archive with files in current directory mv -f $filename $cdir"/"$filename #move archive rm -r $dir #remove tmp directory

Or, an introductory guide to robust filename handling and other string passing in shell scripts.  I wrote a shell script which works well most of the time. But it chokes on some inputs (e.g. on some file names).  I encountered a problem such as the following:   I have a file name containing a space hello world, and it was treated as two separate files hello and world. I have an input line with two consecutive spaces and they shrank to one in the input. Leading and trailing whitespace disappears from input lines. Sometimes, when the input contains one of the characters \[*?, they are replaced by some text which is is actually the name of files. There is an apostrophe ' (or a double quote ") in the input and things got weird after that point. There is a backslash in the input (or: I am using Cygwin and some of my file names have Windows-style \ separators).   What is going on and how do I fix it?


I saw a lesson in English, said in Past Simple the following examples:        When did you get married?   When did you graduate?      Now, Why he said at (1) "get married" NOT "marry" like "graduate" in (2). ??

[i] Susan married Ed. (RHD)   [ii] My sister got married last fall. (COCA)   Is there a passive implication in [ii]? That is, the families and so on arrange and perform the marriage ceremonies for two people, and through all this the two get married. Is this implied in the expression [ii], and not in [i]?


is it possible to install ubuntu on a flash drive so that i can essentially plug it into any computer and have my desktop, software and files there ready and waiting for me and doesn't leave anything on the PC i was using once it is unplugged?  If it can, can anyone point me towards a guide for doing this please. thanks for the help in advance.  I've never properly used linux before so i apologize if this is a noob question.

If you are hurrying to reply, System → Administration → StartUp Disk Creator -- no, that's not what I'm talking about.   I want to try Ubuntu 11.04's Unity without touching my existing Ubuntu install.  To do this, I need to install the nVidia drivers first (sigh).  To do this, I need changes to persist a reboot.  To do this, I need to really install Ubuntu on a USB key.  How do you do that?    What I tried   I tried to make a USB key from , then boot from it, then choose "Install Ubuntu." The installer refused to install to the installation media itself. I tried, from my installed copy of Ubuntu:  sudo kvm /dev/sdb --cdrom .cache/testdrive/iso/ubuntu_natty-desktop-i386.iso   ...but the installer didn't detect the disk properly.


I am using android browser (Android 4.1) on Tab which have  1024 x 600 pixels resolution and today I found that layout is not proper, Its messing below is what I am seeing,

I noticed now that Stack Overflow has its padding set to 0, unlike before. Note the padding on left side of the page; it looks shifted to the left and everything is touching the left-hand side of the screen.   Edit: Back to normal on mobile (iPhone 4 v6.1.3 / Safari). Edit: Same problem on mobile full site version, mobile version is fine  (iPhone 5 v6.1.4 / Safari).


When I run apt-get update on my Ubuntu 13.10 Desktop install I get this error:  W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main       amd64 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages) W: Duplicate sources.list entry http://dl.google.com/linux/chrome/deb/ stable/main i386 Packages (/var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-i386_Packages) W: You may want to run apt-get update to correct these problems   What does this mean? how can I resolve it? and what issues can it create?  I want to understand the problem So if I run into it or anyone else I can help resolve it.

I keep getting this warning whenever I try to run sudo apt-get update.  W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise-updates_main_binary-i386_Packages) W: You may want to run apt-get update to correct these problems   Below is the output from /etc/apt/sources.list file:  deb http://archive.ubuntu.com/ubuntu precise main restricted deb-src http://archive.ubuntu.com/ubuntu precise main restricted  deb http://archive.ubuntu.com/ubuntu precise-updates main restricted deb-src http://archive.ubuntu.com/ubuntu precise-updates main restricted  deb http://archive.ubuntu.com/ubuntu precise universe deb-src http://archive.ubuntu.com/ubuntu precise universe deb http://archive.ubuntu.com/ubuntu precise-updates universe deb-src http://archive.ubuntu.com/ubuntu precise-updates universe  deb http://archive.ubuntu.com/ubuntu precise multiverse deb-src http://archive.ubuntu.com/ubuntu precise multiverse deb http://archive.ubuntu.com/ubuntu precise-updates multiverse deb-src http://archive.ubuntu.com/ubuntu precise-updates multiverse  deb http://archive.ubuntu.com/ubuntu precise-security main restricted deb-src http://archive.ubuntu.com/ubuntu precise-security main restricted deb http://archive.ubuntu.com/ubuntu precise-security universe deb-src http://archive.ubuntu.com/ubuntu precise-security universe deb http://archive.ubuntu.com/ubuntu precise-security multiverse deb-src http://archive.ubuntu.com/ubuntu precise-security multiverse   How do I fix it?


So I'm trying to build a laser bolt like in Star Wars, and I added a cylinder with an emission texture. The problem is, in Star Wars, the laser bolts have glare, so I added a glare node in the compositing tab. I rendered the image with the camera, and there was no difference.

What would be a way to create a glow in Blender. For that purpose I've been always using the compositor. However, that is pixels work, which means it is a 2d work. To make a 3d one, do I have to use particles, nodes or maybe some simulator? Because the compositor deals with images, which will make the glow to be out of perspective (flat). is there a way to make a glow with depth in Blender? Here is what I mean (If we assume that the blue color is a glow, it is clear that like other objects it is part of the perspective of the 3d view, which means that it has depth) -     And if possible, how to make one in cycles?


I am fixing my thesis template, and on the middle of it I found some texts are going out of the screen, randomly. After hours of work, I could narrow it down to a simple MWE, so I could post a question here asking about it:  \documentclass[10pt,openright,twoside,a5paper]{memoir} \usepackage[english]{babel}  \usepackage[showframe]{geometry} \setlength{\parindent}{1.6cm}  \begin{document}  \frenchspacing \textbf{textbf: (encoding: T1, family: cmr, series: bx, shape: n, size: 10.5, baseline: 11.0pt)}  \end{document}   Why latex is letting the text goes out of the screen? How I can block latex from doing this?     D:\test2.tex:10: Overfull \hbox (5.92477pt too wide) in paragraph at lines 10--11[]\OT1/cmr/bx/n/10 textbf: (en-cod-ing: T1, fam-ily: cmr, se-ries: bx, shape:

I often see output from TeX with the warning overfull hbox, badness 10000. What does this message mean?


At the end of X-Men Origins: Wolverine, Logan got shot in the head with an Adamantium Bullet which was the only thing strong enough to get though his Adamantium bones.  Is it explained how no one noticed in the first X-Men movie that he had a bullet hole in his "indestructible" skull when Xavier learned his entire skeleton was made of Adamantium?

In X-Men Origins: Wolverine,      Wolverine is shot through the head with what appears to be a vibranium bullet by William Stryker. He remarks that the brain will grow back but the memories won't.   So the projectile penetrated the adamantium skull and damaged the brain. Adamantium is an inorganic substance. It will survive anything that would otherwise destroy the rest of Wolverine's body. But if anything (such as vibranium) manages to damage the adamantium, it is not covered by Wolverine's healing abilities.  Does this mean that Wolverine has an Achilles' heel on his forehead? If so, how did he take a bullet to the exact same spot in X-Men: United (at Ice Man's home)?


(I'm using Arc 10.1)  I'm trying to rasterize a data set. I have a shapefile with geographic coordinates (GCS_GDA_1994) which I want to convert to a raster with 100m grid cells. So I need to project into a projected SRS - I used GDA_1994_South_Australia_Lambert but I don't think it matter which one for my question. So I did that, and afterwards I tried to use 'Polygon to raster' to convert to a raster. However, in the input field 'Cellsize' I get by default a very small value (0.0002 or so) - reading the help file, this makes me thing it is because it is still using degrees as the unit there. And indeed when I put in 100 there (for 100 meters), I get one big cell; it is using the wrong unit. When I check 'linear unit' under the layer properties, it does say 'Meter' however.  So then I tried Feature to Raster and lo and behold, I get a default suggestion in the correct order of magnitude and putting in 100 manually gives me a 100m raster.  Now, Polygon to raster has more options that control how the value of the cell is calculated, and I need that. So my question is: what is the difference between these two tools that makes one use a different unit than the other, and how can I make 'Polygon to raster' use meters?

I am currently trying to get a group on connected polygons that are within the same feature to a raster so I can reclassify it for cost analysis. I noticed that ArcGIS for Desktop has a "feature to raster" and "polygon to raster" tool that I can use. Both of the tools recognize my layer, and they seem like they will accomplish the same task, however, I was wondering if there is one that I should use in my specific scenario over the other, or does it really not matter?


It want to test for the number of players in a gamemode.  I tried /testfor @a[m=0,c=1] but it only tests for the number of players, not the number of players in a gamemode.

I want to run a command when there are only 10 entities left. I know you can use /execute unless entity to detect when all matching mobs have died, but it doesn't work if you want to run a command when there are for example 10 entities left.  A command like /execute if entity @e[limit=10] does not work, it also triggers if there is only one entity.  Such a counting system could also be used to determine once there is only one player left in an arena, meaning they have won a battle or similar.


This is a redo of another question I asked. First I want to clarify that I am indeed using drag and drop. So saying something like "maybe switching to gml will fix your problem" is appreciated, but wont help. Anyway, this is what my block looks like:  [Create Instance]  Object: object11 X: random(room_width) Y: random(room_height) Layer: "Instances_2"  I have used this to randomly generate things in my games before, but I am now realizing it isn't very random. Every time it generates, it is in a random place, but it is that same random place every time I play. Does anybody know how to fix this? (sorry this was so long)  EDIT: this is NOT an exact duplicate. This is FAR different from my original. Please take that down. /

I'm making a game where things randomly generate. It used to work, but now all the sudden they keep spawning in the same area every time. does anybody know a fix?


SQL Server has a long history of failed login attempts into the SA user , occuring about 50 times every 10-20 minutes. and Extended Event auditing shows that the client_app_name is "Microl office":    The PID refers to sqlserver.exe.   Incoming remote connections is disabled for this server so it can't be coming from outside the machine... No firewall rule exist for SQL server so incoming connections are blocked there too No jobs are attempting to login   Any ideas what else this could be or suggestions?

What should I do if my Windows computer seems to be infected with a virus or malware?  What are the symptoms of an infection? What should I do after noticing an infection? What can I do to get rid of it? how to prevent from infection by malware?   This question comes up frequently, and the suggested solutions are usually the same. This community wiki is an attempt to serve as the definitive, most comprehensive answer possible. Feel free to add your contributions via edits.


In Avengers: Endgame, Captain America      lifts Mjølnir and uses lightning to attack Thanos. However, Thor's hammer doesn't have the power to bring lightning, Thor does. I mean, he is the God of Thunder, not Steve or anybody who just becomes worthy of lift the hammer!    How can this be explained?

In Avengers: Endgame, we see Captain America use      Thor's Hammer, Mjölnir. But not only does he wield it, he also uses Thor's powers of lightning while holding it.   Does this not contradict that      In Thor: Ragnarok, it is explained that the hammer itself is not "the source" of thunder, rather this power comes from Thor himself and the hammer is just a weapon that he can use to control it, but it isn't required.   Therefore, how can Captain America possibly control      thunder by merely wielding Thor's Hammer?


My friend sent me yesterday a Scroll of Resurrection for World of Warcraft and I activated it.  I was wondering how much time I have to subscribe for a month if I want to be sure he gets his reward.  Is it before the end of 7 free days?  As pointed in the comments, what I'm really looking for is the window of time I have to buy a month to ensure my friend will have its reward for sending a scroll of resurrection.  Thank you.

I sent the referral link to my boss and he bought the game and applied his CD key.  He now has a paid account linked to mine:    Yet when I view my World of Warcraft account, it seems they didn't give me the free month. It appears I only have the free month that came with my Battlechest purchase.  I just created and bought my account this morning. Would this affect the free referral month in any way?    We haven't seen each other or partied online in the game yet, do we need to do that first in order for me to receive the month?


Given that: $$F = \langle yz-2xy^2, axz-2x^2y+z, xy+y \rangle$$ in which $a$ is some constant.  Now, for what $a$ would make the vector field of $F$ conservative? How can we find an $f$ with $\nabla f=F$? Also for what $a$ would $F$ be the curl of another vector field?

Given that: $$F = \langle yz-2xy^2, axz-2x^2y+z, xy+y \rangle$$ in which $a$ is some constant.  Now, for what $a$ would make the vector field of $F$ conservative? Why is there only one, or are there many? How can we find an $f$ with $\nabla f=F$? Also for what $a$ would $F$ be the curl of another vector field?  For to find for which $a$ the vector field is conservative, do we have to go through the process of finding partial derivative, or is there a much shorter approach. I don't know how to approach my other questions either.


I have one question is local variable stay in memory in javascript ?.  if NOT  then from where this.getSecond function get second variable value ?  function ClassA(){ this.first ='test'; var second ='abc'; this.getSecond =function(){ return second }  }  var a =new ClassA(); alert(a.getSecond())   if YES  where local variable store ?  fiddle link

How would you explain JavaScript closures to someone with a knowledge of the concepts they consist of (for example functions, variables and the like), but does not understand closures themselves?  I have seen  given on Wikipedia, but unfortunately it did not help.


I have a pair of Sony noise cancelling headphones. A few weeks ago the chord was accidentally cut through and a relative was able to reattach them; however, now they headphones will play music alright, but dialogue is extremely quiet and crackly. If I plug the headphones in while watching a movie I can hear the background score but no voices. Is there any way to fix this or are my headphones just screwed?

I'm using stereo headphones on Windows 8. When I play songs I can't hear them normally.  Instead I'm only able to hear just "blurry" music, so I can barely hear the voices singing.  How can I resolve this problem?


I want to make a USB cable of 20 meters and that this is able to deliver 500 mA and keep the voltage at about 5V stable.  I have been testing several solutions, such as connecting a self-powered USB hub on the end of the cable.  I would like to know if there is any device—PIC or something similar—that can perform the same function of a hub, but that is more economical.  A diagram for the cable could be:     USB Connection on a PC <-----------> Repeater <-----------> Cable End   What could I use to achieve this?

I'm planning to use USB port for an application(from a device to a PC) but the distance between the device and the PC will be around 15m. The recommended maximum USB cable length is 5m.  How can I buffer the data without loosing any information, safely? Would a USB hub work?


I am writing a script that will read the creation and modified dates of pdf files. I am using pyPdf package in Python  I have the following code  from pyPdf import PdfFileWriter, PdfFileReader  input1 = PdfFileReader(file('myfile','rb'))  input1.input1.getDocumentInfo()   this code returns  {'/Producer': IndirectObject(185, 0), '/CreationDate': IndirectObject(186, 0), '/ModDate': IndirectObject(186, 0)}   I am not sure how to extract the information from these IndirectObject, any help would be appreciated!

Following this example, I can list all elements into a pdf file  import pyPdf pdf = pyPdf.PdfFileReader(open("pdffile.pdf")) list(pdf.pages) # Process all the objects. print pdf.resolvedObjects   now, I need to extract a non-standard object from the pdf file.   My object is the one named MYOBJECT and it is a string.  The piece printed by the python script that concernes me is:  {'/MYOBJECT': IndirectObject(584, 0)}   The pdf file is this:  558 0 obj <</Contents 583 0 R/CropBox[0 0 595.22 842]/MediaBox[0 0 595.22 842]/Parent 29 0 R/Resources   <</ColorSpace <</CS0 563 0 R>>     /ExtGState <</GS0 568 0 R>>     /Font<</TT0 559 0 R/TT1 560 0 R/TT2 561 0 R/TT3 562 0 R>>     /ProcSet[/PDF/Text/ImageC]     /Properties<</MC0<</MYOBJECT 584 0 R>>/MC1<</SubKey 582 0 R>> >>     /XObject<</Im0 578 0 R>>>>   /Rotate 0/StructParents 0/Type/Page>> endobj ... ... ... 584 0 obj <</Length 8>>stream  1_22_4_1     --->>>>  this is the string I need to extract from the object  endstream endobj   How can I follow the 584 value in order to refer to my string (under pyPdf of course)??


Hi I am a teenager and I recently studied biology and found it very interesting. I want to get a microscope and study further into the microscopic world. What would be the best microscope for me? I would like to see the cells in living organisms. I am willing to spend about $200 as well.

I am a science lover and want to buy a microscope to explore things around me. Like studying cell structures, microorganisms, blood and plants. It would be great if there is way to photograph slides. Just curious to know and explore things around me.  I want to know which features I should consider while buying it?


I have a vhost name example.conf that contains below lines.  <VirtualHost *:80> ServerName example.com ServerAdmin admin@myhost.com  LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined CustomLog /var/log/httpd/app1_access.log combined ErrorLog /var/log/httpd/app1_error.log  redirect / http://example.com/jenkins DirectoryIndex index.html index.php JkMount /jenkins/* failover JkMount /jenkins failover  </VirtualHost>   I want, if anyone hits http://example.com then it should open http://example.com/jenkins  My URL is redirecting to   http://example.com/jenkinsjenkinsjenkinsjenkinsjenkinsjenkinsjenkinsjenkinsjenkinsjenkinsjenkinsjenkinsjenkinsjenkinsjenkinsjenkinsjenkins   Like this.   It is Jenkins on tomcat with apache web server.  Any help would be much appreciated.

This is a  about Apache's mod_rewrite.   Changing a request URL or redirecting users to a different URL than the one they originally requested is done using mod_rewrite. This includes such things as:   Changing HTTP to HTTPS (or the other way around) Changing a request to a page which no longer exist to a new replacement. Modifying a URL format (such as ?id=3433 to /id/3433 ) Presenting a different page based on the browser, based on the referrer, based on anything possible under the moon and sun. Anything you want to mess around with URL   Everything You Ever Wanted to Know about Mod_Rewrite Rules but Were Afraid to Ask!  How can I become an expert at writing mod_rewrite rules?   What is the fundamental format and structure of mod_rewrite rules? What form/flavor of regular expressions do I need to have a solid grasp of? What are the most common mistakes/pitfalls when writing rewrite rules? What is a good method for testing and verifying mod_rewrite rules? Are there SEO or performance implications of mod_rewrite rules I should be aware of? Are there common situations where mod_rewrite might seem like the right tool for the job but isn't? What are some common examples?   A place to test your rules  The  web site is a great place to play around with your rules and test them. It even shows the debug output so you can see what matched and what did not.


How do i use superscript without using math mode?  I want to write 2 m^{2} (2 squaremeters).  When i use the command m^{2} I get the following error: "Command \ae invalid in mode"   I'm writing my thesis in danish, and have a lot of danish references. Writing the danish letter Æ is only possible using the \ae command in citations.   \documentclass[.....]{memoir}  \begin{document}   \end{document}

What is the easiest way to superscript text outside of math mode?  For example, let's say I want to write the $n^{th}$ element, but without the math mode's automatic italicization of the th.  And what if I still want the n to be in math mode, but the th outside?


In my 16.10 I could use ctrl+alt+numpad to put a window into any half or quarter of the screen. Now that I've just wiped and installed 19.10 this no longer works :-(  I want to use a modifier keyboard combo with the numpad so that modifier + Num9 would put the actice window into the top right quarter of my screen.   --> What can I do in order to use the numpad to move+resize a window?  The  is useless. Similar questions on this site are from 2011-2014.

I used to use a lot ctrl+alt+numpad to move windows, how can I use this feature on ubuntu 18 like it was default before?  Thank you in advance


I remember a book from my youth (1979) in my elementary school library, about a kid with a 'cool' uncle that had an elixir. When the boy applied this elixir to his back he grew wings for the night. But when he was seen by someone, the elixir would never work for him again. I remember it being hardback (but that could be wrong) with no picture on the cover.  Does anyone know what book this is?

I'm trying to remember the name of a novel I read as a pre-teen.  If I recall correctly, it would have come out in the 90s (though it may have been a reprint).  The novel is set in modern times.  I recalled this because I've been reading a lot of urban fantasy lately, and this may be the first 'urban fantasy' book I read - our world, but with a touch of magic.  There's a somewhat clumsy, out of shape teenaged (or almost teenaged) boy who doesn't have a father.  His father had been a stage magician who was constantly frustrated by his son's complete inability to preform stage magic, despite a prediction saying he would have a great or powerful magic.  His father had died before the book started, I don't recall how long before.  The boy does something nice for an old woman (I don't recall what) and she gifts him a magical potion.  A drop of it, rubbed on his shoulder blades, will make him grow wings.  The book follows him for the summer, as he spends his evenings flying.  He makes himself a toga-like shirt out of some old curtains and spends time flying around at night.  I recall one scene where he learns about two children out in the middle of the bay (perhaps the book is set in San Fran?  I don't recall) in a rowboat with one oar.  He saves them (by pulling them back to shore using a rope they had with them) and gets mentioned in the paper as an angel.  At the end of the book, the potion has run out.  There's only a tiny little bit left, and when he rubs it in, it creates only a single feather.  Around that point, the boy realizes that he's no longer getting winded going up several flights of stairs and he's gained a lot of self-confidence.  From what I remember of the copy I read, the cover featured a shirtless boy wearing jeans standing in front of a mirror, looking at the large white feathered wings that had grown from his back.


I just bought a Toshiba L75D-A7283 laptop. It has an AMD Radeon HD8330 graphics card in it. Windows 8 is awful, so I figured I would give Linux a try before installing Windows 7.  I'm clueless when it comes to Linux, so anybody know why on this laptop it won't load the GUI but stays at the command line? Also it wouldn't load the GUI off the CD when selecting Try Ubuntu before installing.

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


Let $f$ be a entire function such that $$\lim_{z\to \infty} \frac{f(z)}{z}=0$$  What can we conclude about $f$.  Using the change of variable $w=1/z$ we can conclude $\lim_{w\to 0} f(1/w)w=0$ so at $w=0$ we have removable singularity so we conclude that $f$ has removable singularity at $z=\infty$  Now what should be my next step?

I'm learning Complex Analysis and need to verify my work to this problem since my textbook does not provide any solution:     If $f$ is entire and $\lim_\limits{z\to\infty} \dfrac{f(z)}{z} = 0$ show that $f$ is constant.   My work and thoughts:  From the $\varepsilon$ — $\delta$ definition of the limit we have that  $$\forall{\varepsilon} > 0, \exists{n_0} \in \mathbb{N} : \forall{\left|z\right|} \geq n: \left| \frac{f(z)}{z} \right| < \varepsilon \iff \frac{\left| f(z) \right|}{\left| z \right|} < \varepsilon\iff \left| f(z) \right| < \varepsilon \left| z \right|.$$   Now let $C_R = \{z \in \mathbb{C} : \left| z \right| = R \}$.   For every $\left| z \right| < R$, by Cauchy's integral formula for derivatives we have that   $$ \left| f'(z) \right| = \frac{1}{2 \pi } \left| \int_{|\zeta|=R} \frac{f(\zeta)}{(\zeta - z)^2} \, d\zeta \right|= \frac{1}{2 \pi } \left| \int_{0}^{2\pi} \frac{f(\zeta)}{(\zeta - z)^2} \, \zeta'(t) dt \right| \le$$   $$\le \frac{1}{2\pi} \frac{\varepsilon \left| z \right|}{(R - \left| z \right|)^2} 2\pi R = \frac{\varepsilon \left| z \right|}{(R - \left| z \right|)^2} R.$$  Thus, letting $R \rightarrow \infty$ yields the desired result, that is  $$\left| f'(z) \right| \leq \lim_{R \to \infty} \frac{\varepsilon \left| z \right|}{(R - \left| z \right|)^2} R = 0 \implies f(z) = c \;\; \text{with} \; c \in \mathbb{C}.$$    Is my work correct? Are there parts of the proof that need improvements? I'm also looking for other (possibly quicker) solutions using the  "big guns" theorems. The only one I'm familiar with is Picard's little theorem but it doesn't apply here.


I've been working on a detailed character model for some time. I finished the retopology, hid the sculpt, and now I can't seem to reveal the sculpt again in either object or edit mode (selecting the object from the outliner and hitting tab).   I took a look at my item menu and the sculpt's location and scale look right.  However, when I append the sculpt object into an empty .blend file, it's completely visible.  What's causing this? Thanks in advance!

I'm having this issue where my objects only show up in default view. When I switch to the other workspaces; UV editing, compositing, Nothing shows up at all; not even the cameras, lighting, either. The names show up in the outliner, but in the viewport of the other workspaces. Nothing.   Tried changing Clipping Distance: Didn't work Tried to switch the interface windows around: Didn't Work I am Using Blender 2.79b I am in Cycles Mode, I don't care about Blender Internal Render I tried changing some of the windows to 3D view in the other workspaces: Didn't work I am using the Pie Menu add-on, idk if that could be a problem


I'm trying to redirect in different jsp page logged in user for example "Admin" and in a different view a non logged in user. Here is my method till now...  @RequestMapping(value = "/lidhOfruesKerkues", method = RequestMethod.POST)     public ModelAndView lidhOfruesKerkues(@ModelAttribute("merrPersiperKerkues") Kerkues k, Ofrues ofrues,             Authentication authResult) {         ofruesService.addOfrues(ofrues);         int kerkuesId = k.getKerkuesId();         ofruesService.matchOfruesKerkues(kerkuesId);         String role = authResult.getAuthorities().toString();         if (role.contains("ROLE_ADMIN")) {             return new ModelAndView("redirect:/adminHome");         }          return new ModelAndView("redirect:/ofrojNdihmeView/getKerkuesAktiv");     }   Error thrown is java.lang.NullPointerException: null that comes from "role" when I'm as a non logged in user. If I am logged in as ADMIN it works and redirects me as it should. Thanks in advance.

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 am facing problem in zsh scripting. I have group of files in a directory such as:  001_20160223.txt  /delete 001_20161102.txt  /delete 001_20161209.txt  /keep 005_20160502.txt  /delete  005_20161105.txt  /delete 005_20161206.txt  /keep 009_20160502.txt  /delete 009_20161105.txt  /delete 009_20161205.txt  /keep   Now, we have to sort files having same starting number for eg. 001 and then we have find latest file based on the date written in file name and delete old files. The same way we have to perform for other files also. So the final output in directory would be following:  001_20161209.txt  /keep 005_20161206.txt  /keep 009_20161205.txt  /keep   This is what I have tried so far:  files=($(find . -name "???_*.txt")) | if ((#files > 1)); then rm -- ${files[1,-2]}; fi   but it is deleting all files except the last one. I want to create a separate group of files having same starting name and then to delete it.

My question is a bit different from some older questions simply asking for "deleting all but the most recent n files in a directory".  I have a directory that contains different 'groups' of files where each group of files share some arbitrary prefix and each group has at least one file. I do not know these prefixes in advance and I do not know how many groups there are.  EDIT: actually, I know something about the file names, that is they all follow the pattern prefix-some_digits-some_digits.tar.bz2. The only thing matters here is the prefix part, and we can assume that within each prefix there is no digit or dash.  I want to do the following in a bash script:   Go through the given directory, identify all existing 'groups', and for each group of files, delete all but the most recent n files of the group only. If there are less than n files for a group, do nothing for that group, i.e. do not delete any file for that group.   What is a robust and safe way of doing the above in bash? Could you please explain the commands step-by-step?


So I'm trying to model a pillow with the cloth simulation in blender 2.8. When I try to simulate the model I can see its forming the shape but eventually it starts to float or falls down. I set the Gravity to 0 in the Field weights and enabled object collision but it seems that my model doesn't stay in place. Also is there a way to have a seam to my pillow or do I also have to model it? Any suggestions will be appreciated, Thanks.

How would one freeze a simulated body at frame X and use it as a static mesh?  Following a , I've been able to do a cloth animation to my model, now I'd like to have that made static, without the use of the timeline.   The thing is, I'm modelling something that's not going to be an animation, but a static object (something like a statue/figurine). So I don't need the animation, only the shape at a particular frame that I find convenient. I'd like eventually once this is done, to also modify that deformed grid.   I've tried to follow what was said , but couldn't figure out what chipmasque was saying. I'm quite new to blender (been using it on and off, just enough to forget everything).  I'm using blender 2.63, if it is of any relevance.


I'm reading their  on their wiki, and it's still not 100% clear to me.  I'm trying to (and failing) to understand the Entry signal, (and subsequently, the Exit and Combo signals, because Exit "Works the same as Entry but..." and Combo "Combines Entry and Exit").  So here's what it says on Entry signals:     Block Entry Pre-signal      An entry pre-signal prevents trains from entering   the following block, unless there is at least one green exit signal on   the opposite side of the block. This prevents trains from entering the   block until there is an available exit and obstructing it. Note that   depots have a built-in two way signal (it works as an entry pre-signal   in a pre-signal set). If there are no signals designated as exits on   the block directly behind the entry pre-signal, it behaves as a normal   block signal. This is convenient for bi-directional pre-signals where   only one direction needs pre-signal functionality.   Can anyone please provide a clearer explanation, and perhaps tell me how do Exit and Combo relate to it?

I've read the OpenTTD  page for a few times, but I don't really get it very well.   I usually use the 4th and 6th, but I'm not really sure what each of them does. And what are those things above the semaphores?  I have to note that I'm using signals a lot, but sometimes trains just get stuck and I fix it by randomly switching to other signals.  Can someone explain me train signals quick and easy?


public String toString() { if(zipCode < 10000) {     if(zipCode < 1000)     {         if(zipCode < 100)         {             if(zipCode < 10)             {                 return "0" + "0" + "0" + "0" + Integer.toString(zipCode);             }             return "0" + "0" + "0" + Integer.toString(zipCode);         }         return "0" + "0" + Integer.toString(zipCode);     }     return "0" + Integer.toString(zipCode); } else {     return Integer.toString(zipCode); } }   Is there a loop that i could do that would add a zero in front of the string depending on what exponent of 10 the number stored in zipCode is? I'm not looking to get rid of the zeroes I'm looking to keep the zeroes, but the zeroes are taken away.

How do you left pad an int with zeros when converting to a String in java?  I'm basically looking to pad out integers up to 9999 with leading zeros (e.g. 1 = 0001).


This is just a heads up to the people working on the iOS Stack Exchange app that a Sign In With Apple button will be required to be next to the Facebook and Google login buttons.  From :     Sign In with Apple will be available for beta testing this summer. It will be required as an option for users in apps that support third-party sign-in when it is commercially available later this year.

I'm using the official Stack Exchange mobile app for iOS or Android, and  My app crashed! It doesn't look good on my new smartphone. It won't run after I updated my device. I noticed another bug. I have an idea for a new feature which is currently not in the app.  How do I report bugs with or request features for the iOS and Android apps? Also:  I've used the built-in functionality of the app to report a bug or submit a feature request. Did I do the right thing? The app prompted me to post on Meta after an error occurred. Should I post about it here? I'm wondering why the latest version is from 2017. I've heard rumors that the apps are no longer supported; is that true? I can't find the app on my device's app store anymore! Where did it go?     We get a lot of bug reports from users about the mobile apps, which are unsupported, and at the moment, there is no centralized Q&A pair for those to be closed as duplicates of (the relevant answers are spread across multiple unrelated questions). This question is an FAQ proposal, to serve as a directly-related duplicate target for those questions.


Can I have kids on my PS3 without any mods or the Hearthfire DLC?   By the way, I killed Grelod the Kind and still cannot get kids. I want one because I am married, I have a dog too. All I am missing is a kid. Please help. :-(

Is it possible to have children in Skyrim?


double x= 2.2,y=2.13;  How can i do do operations like  x+y or x-y * x/y? For example x-y should be 0.07 but java gives me 0.07000000000000028

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


I am part of four communities here on Stack Exchange. But in my "Your Communities" list it only shows one. Why is this?

I just signed up for an account on Ask Different. After some time, I noticed that Ask Different got automatically added to my personalized list of Communities in the site switcher.  As I had personalized the list, there shouldn't be any automated changes taking place.    This is getting very annoying. I have been looking at some sites which I reached via the Hot Network Questions. Some of the content is interesting/good and I want to vote/comment. To do that I need to create an account (which happens fairly frequently). As soon as I do that, the site gets added to my manually created list.


I cannot get strikeout to apply inside a tikzpicture. In the example below, strikeout only applies to"Hello World" at the beginning, but not in the tree. How can I solve this problem?  \documentclass[12pt,a4paper]{article}    \usepackage{tikz-qtree} \usepackage{tikz-qtree-compat}  \begin{document}  \sout{Hello World}  \begin{tikzpicture} \Tree [.CP{$\langle t\rangle$} [.DP{$\langle e,t\rangle, t\rangle$} \node(wh){something}; ] [.C$'${$<$(e$_{3}$  $\rightarrow$ t$_{1}$), \hspace{0.1cm} \\$\lbrack e$_{2}$ \rbrack$, \hspace{0.1cm} \\$\lbrack \sout{Hello World} \thinspace e$_{3}$ \rbrack$ $>$ } [.C $\lambda$ ] [.\node[draw]{{$<$t$_{1}$, \hspace{0.1cm} \\$\lbrack e$_{2}$ \rbrack$, \hspace{0.1cm} \\$\lbrack e$_{3}$ \rbrack$ $>$ }};  [.\node[draw]{e$_{2}$ }; ] [.{$<$(e$_{2}$  $\rightarrow$ t$_{1}$), \hspace{0.1cm} \\$\lbrack e$_{3}$ \rbrack$ $>$} [.{$<$(e$_{3}$ $\rightarrow$ e$_{2}$  $\rightarrow$ t$_{1}$),\hspace{0.1cm} \\$\lbrack \emptyset \rbrack$ $>$}  {$<$(e$_{3}$ $\rightarrow$ e$_{2}$  $\rightarrow$ t$_{1}$),\hspace{0.1cm} \\$\lbrack \emptyset \rbrack$ $>$} ] [.\node[draw]{e$_{3}$ };  [. e$_{3}$; ] ] ] ] ] ] ] ] \end{tikzpicture} \end{document}

How can I strikeout words in math mode (similar to \sout with \usepackage{ulem} in text mode)? I've tried \usepackage{cancel} and \(\cancel{1+1=2}\) but that draws a diagonal line.


So right now I only have 1 SSD in my computer.  It is 120 GB Samsung SSD.  I boot windows directly from this SSD.  I would like to buy another totally separate SSD and install and boot Ubuntu from this one.  So 1 PC, 2 drives, and boot windows 7 from 1, and boot Ubuntu from other SSD.  Is this possible?  Any help is appreciated.  Thanks

I have two hard drives. One is used for Windows and one is empty. I want to install Ubuntu on the empty hard drive. The Windows hard drive is disk0 in Windows and the empty hard drive is disk1. When I install Ubuntu and it asks where I want to install it, I choose "Something Else" but I am stuck there. What do I choose for "boot loader installation"?


I have a problem with sendmail.  All of the sudden it started sending emails that its not supposed to send (obviaou spam messages about viagra, porn etc.). I checked some tools that supposedly check if server is an open relay and they say its not, but here is the excerpt of mail.log  Jul  6 18:13:23 onejob sendmail[30792]: t66IDN9E030792: Authentication-Warning: onejob.com: www-data set sender to mari_gill@onejob.com using -f Jul  6 18:13:23 onejob sendmail[30792]: t66IDN9E030792: from=mari_gill@onejob.com, size=480, class=0, nrcpts=1, msgid=<201507061813.t66IDN9E030792@onejob.com>, relay=www-data@localhost Jul  6 18:13:23 onejob sm-mta[30780]: STARTTLS=client, relay=mailin-01.mx.aol.com., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256 Jul  6 18:13:23 onejob sm-mta[30793]: t66IDN56030793: from=<mari_gill@onejob.com>, size=790, class=0, nrcpts=1, msgid=<201507061813.t66IDN9E030792@onejob.com>, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1] Jul  6 18:13:23 onejob sendmail[30792]: t66IDN9E030792: to=twistedkush24@aim.com, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30480, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (t66IDN56030793 Message accepted for delivery)   How do I figure out what causes sendmail to send all those emails?

This is a  about Server Security - Responding to Breach Events (Hacking)   See Also:                  Canonical Version I suspect that one or more of my servers is compromised by a hacker, virus, or other mechanism:   What are my first steps? When I arrive on site should I disconnect the server, preserve "evidence", are there other initial considerations? How do I go about getting services back online? How do I prevent the same thing from happening immediately again? Are there best practices or methodologies for learning from this incident? If I wanted to put a Incident Response Plan together, where would I start? Should this be part of my Disaster Recovery or Business Continuity Planning?   Original Version       2011.01.02 - I'm on my way into work at 9.30 p.m. on a Sunday because our server has been compromised somehow and was resulting in a    attack on our provider. The servers access to the Internet   has been shut down which means over 5-600 of our clients sites are now   down. Now this could be an FTP hack, or some weakness in code   somewhere. I'm not sure till I get there.      How can I track this down quickly? We're in for a whole lot of   litigation if I don't get the server back up ASAP. Any help is   appreciated. We are running Open SUSE 11.0.            2011.01.03 - Thanks to everyone for your help. Luckily I WASN'T the only person responsible for this server, just the nearest. We managed   to resolve this problem, although it may not apply to many others in a   different situation. I'll detail what we did.      We unplugged the server from the net. It was performing (attempting to   perform) a Denial Of Service attack on another server in Indonesia,   and the guilty party was also based there.      We firstly tried to identify where on the server this was coming from,   considering we have over 500 sites on the server, we expected to be   moonlighting for some time. However, with SSH access still, we ran a   command to find all files edited or created in the time the attacks   started. Luckily, the offending file was created over the winter   holidays which meant that not many other files were created on the   server at that time.      We were then able to identify the offending file which was inside the   uploaded images folder within a  website.      After a short cigarette break we concluded that, due to the files   location, it must have been uploaded via a file upload facility that   was inadequetly secured. After some googling, we found that there was   a security vulnerability that allowed files to be uploaded, within the   ZenCart admin panel, for a picture for a record company. (The section   that it never really even used), posting this form just uploaded any   file, it did not check the extension of the file, and didn't even   check to see if the user was logged in.      This meant that any files could be uploaded, including a PHP file for   the attack. We secured the vulnerability with ZenCart on the infected   site, and removed the offending files.      The job was done, and I was home for 2 a.m.            The Moral   - Always apply security patches for ZenCart, or any other CMS system for that matter. As when security updates are released, the whole   world is made aware of the vulnerability.   - Always do backups, and backup your backups.   - Employ or arrange for someone that will be there in times like these. To prevent anyone from relying on a panicy post on Server   Fault.


My code is written as follows:   \begin{equation} \forall x \in \mathbb{R}, \cos(x+2\pi)=\cos(x)  and  \sin(x+2\pi)=\sin(x) \end{equation}   But when I 'execute' it there is no space between cos(x) & and so can you help me cope with this issue? Thanks in advance!  PS: if someone could teach me how to define a new environment so that   \begin{theorem}Equation\end{theorem}   produces immediately a mathbox with the equation inside of it?, I would greatly appreciate your help!

I know that \: in LaTeX produces a space when rendered.  Are there any alternatives, because my LaTeX renderer doesn't support \: (it renders it as text), and there is no help / FAQ that I can find.


So I'm doing some image upload with PHP and I need to make sure that it's either JPG, PNG or GIF.  Is it safe to use pathinfo($_FILES['image']['name'], PATHINFO_EXTENSION) to check the extension and then verify whether it's an allowed file type or not?

On the PHP website, the only real checking they suggest is using is_uploaded_file() or move_uploaded_file(), . Of course you usually don't want user's uploading any type of file, for a variety of reasons.  Because of this, I have often used some "strict" mime type checking. Of course this is very flawed because often mime types are wrong and users can't upload their file. It is also very easy to fake and/or change. And along with all of that, each browser and OS deals with them differently.  Another method is to check the extension, which of course is even easier to change than mime type.  If you only want images, using something like getimagesize() will work.  What about other types of files? PDFs, Word documents or Excel files? Or even text only files?  Edit: If you don't have  or  and system("file -bi $uploadedfile") gives you the wrong file type, what other options are there?


a collegue and me started a discussion on a method that does a lookup for a String and returns an enum value.  We ended with two versions:  public Value lookup(String s) throws IllegalArgumentException {     if ("johndoe".equals(s)) { return Value.JOHNDOE; }     throw new IllegalArgumentException("No value found for lookup on "+s); }   vs  public Value lookup(String s) {     if ("johndoe".equals(s)) { return Value.JOHNDOE; }     return null; }   Which one is the better way of doing it?  The first one says: do not feed me with something I do not know about. If you do so, will exceptionally answer your request! The other one says: I'll try to look up your request. If I cannot serve I will simply give you a void answer.  For me, a void answer is something the caller must deal with. Like looking up some information in a dictionairy. If the entry does not exist it will not burn my eyes for having had tried to look something up. It just simply tells me 'emotionless' the lookup result: nothing.    For the collegue, he claims 'do only things which are capable of being done' - otherwise it will strongly, misunderstandle-free tell you that you should not have done that.  I can somewhat understand my collugues point. Since Exceptions are someone to prevent from the outside I would have to precheck the situation before calling - that would make no sense here since the lookup just needs to do that. On the other hand calling the look up would give the need in more complex code by wrapping the lookup call in a try-catch-statement. On my version I would have to check on a null value to properly work on. Using try-catch to wrap the method call looks more irritating to me.  When writing this I see that I do write very prejudiced. Would someone enlight me on seeing things different or proving what I claim in other words. ...what I also observed during wrinting this question is that I am more convinced on my option. Is there literature about this issue somewhere? - like the clean code book?

I am using java language,I have a method that is supposed to return an object if it is found. If it is not found, should I:  return null throw an exception other  Which is the best practise or idiom?


I need to expand the root partition of the server (not LVM) because of the need of testing. How can I expand the root partition without shutting the server down?  $ df -h Filesystem      Size  Used Avail Use% Mounted on udev            3.8G     0  3.8G   0% /dev tmpfs           779M  3.5M  776M   1% /run /dev/sdb2       126G   24G   96G  20% / tmpfs           3.9G     0  3.9G   0% /dev/shm   $ sudo fdisk -l Disk /dev/sda: 128 GiB, 137438953472 bytes, 268435456 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x4b512b27  Device     Boot Start        End    Sectors  Size Id Type /dev/sda1  *     2048  268433407  268431360  128G 83 Linux

I need to resize root as there is not enough space left in the partition. At present I am not able to install new package nor update ubuntu. I tried sudo apt-get clean and emptying trash but it does not make significant space.  I have dual boot system (windows-7 and Ubuntu 14.04 LTS) with two Internal hard drive. Where Windows is installed in /dev/sda and Ubuntu is installed in  /dev/sdb. I tried to resize root using Gparted but it does not allow. Please let me know the steps of using Gparted for resizing root. I want to transfer space from "/home" to "/".   df -h Filesystem      Size  Used Avail Use% Mounted on /dev/sdb5        14G   13G  271M  98% / none            4.0K     0  4.0K   0% /sys/fs/cgroup udev            3.8G  8.0K  3.8G   1% /dev tmpfs           779M  1.3M  777M   1% /run none            5.0M     0  5.0M   0% /run/lock none            3.8G  160K  3.8G   1% /run/shm none            100M   56K  100M   1% /run/user /dev/sdb1       3.7G  555M  2.9G  16% /boot /dev/sdb7       896G   75G  776G   9% /home   --  sudo fdisk -l Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x38696756 Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT /dev/sda2          206848   976771071   488282112    7  HPFS/NTFS/exFAT Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x000a1848 Device Boot      Start         End      Blocks   Id  System /dev/sdb1   *        2048     7852031     3924992   83  Linux /dev/sdb2         7854078  1953523711   972834817    5  Extended Partition 2 does not start on physical sector boundary. /dev/sdb5         7854080    37148671    14647296   83  Linux /dev/sdb6        37150720    45043711     3946496   82  Linux swap / Solaris /dev/sdb7        45045760  1953523711   954238976   83  Linux   Thank you


I downloaded Wireshark from the Ubuntu 11.10 software center and when I start it and want to select default interface for capture in the list of interfaces are blank. I can't select default interface. Please help me.

A standard installation of Wireshark doesn't give the program permission to access the network interface.   I suppose I have to run the program with sudo, but do not know how to add it to the icon - if that's the way to do it.


I have a lot of questions about variables and functions naming. Just English proficiency is not enough to answer these questions because variables naming has it's own slang and also irregular grammar. So it will be down-voted in Stack Overflow about English language. However, questions like "'targetFileAbsolutePath' and 'absolutePathOfTargetFile' - what is more correct?" most likely will be downvoted on programming Stack Overflow, too. What should I do?

While programming I often have naming questions, such as "how do I name [thing]  in a descriptive but succinct way? Is there already an accepted terms for this/an alternative to [name]?" (Thing could be a programming concept, a function, a class, a variable)  Is Stack Overflow the right place to ask these naming/semantics questions?  I would like to be able to get meaningful answers, not just "Name it [name] and call it a day."


In a $\triangle ABC,$ If $\cot A+\cot B+\cot C =\sqrt{3},$ Then prove that $\triangle$ is equilateral.   $\bf{My\; Try::}$ Using Jensen's Inequality,  Let $f(x)=\cot x\;,$ Where $x\in (0,\pi),$ Then $f'(x) = -\csc^2 x$ and $f''(x) = 2\csc^2 x\cdot \cot x$  So we get $\displaystyle f''(x) = \frac{2\cos x}{\sin^3 x}>0$ in $\displaystyle x\in (0,\pi)-\left\{\frac{\pi}{2}\right\}$  So $$\displaystyle\frac{\cot A+\cot B+\cot C}{3}\geq \cot\left(\frac{A+B+C}{3}\right)=\frac{1}{\sqrt{3}}$$  So we get $\cot A+\cot B+\cot C\geq \sqrt{3}$  But i did not understand how can we prove that $\triangle$ are equilateral  Thanks

If $\cot A+\cot B+\cot C=\sqrt3$ then prove that the triangle is equilateral triangle.   Trial: I can counter check that this is true as $\cot 60+\cot 60+\cot 60=3 \frac{1}{\sqrt3}=\sqrt3$.Here I also know that $A+B+C=180$. But I am unable to show it. Please help.


Sometimes I use a headset with my iMac, but I often need to switch between both. Unfortunately, I need to unplug the headset every time to do this. This is a hassle, because the iMac is located far back at the table and is surrounded by documents and other things.  Back when I had Windows, I could just switch between "Internal Speakers", "Headset" and every other sound-system that was connected to the PC.  When using the options in the sound icon in the menu bar, the "Internal Speakers" option disappears as soon as the Headsets are plugged in.  How can I make them stay? I really would like to choose between both outputs without unplugging the headset.  edit: no workaround like in "Use internal speakers with others plugged in", just making "Internal Speakers" a permanent option without alternative solution

I have a set of surround speakers, connected to my iMac through the headphone jack. I use a switch to control what goes to the speaker set (iMac, iPod, or MacBook/aux). So that I don't have to be constantly unplugging and replugging, I leave the audio cable in the iMac's audio port. This means that when I'm listening to something from another source, I can't hear anything from the iMac unless I unplug the cable.  Is there a way to force sound to come out of the internal speakers, even if there's something in the audio out port?


A few of the Hot Network Questions icons are shuffled around for some reason. For instance, "Really, really hard wood - how is it cut and formed" is not a Workplace link, it is a worldbuilding link. Then "Using a fake name for book" is a writing link rather than a worldbuilding one. "Is main a valid Java identifier?" is Stack Overflow, not some general Stack Exchange.  I've opened  in an incognito window to test with no cache and I can still reproduce this.

I see the same problem has occurred in the past, the most-linked one being   Is this happening for anyone else?   I've marked the icons I could recognize as incorrect.  This exists on every page, is on both chrome and firefox (from Ubuntu 16.04), and persists after hard-refreshes in each.  Edit: The icons in Meta's Hot Network Questions tab appear to be consistently accurate. Every other page I checked (including Unix, Workplace, English Language & Usage, Money, and Sci-fi) have a handful of incorrect ones, even for some of the same questions that are displayed correctly in Meta.  Further note: if it matters, the icons are also incorrect in the drop down community-search feature on the right end of the header. Again, they appear correct on this Meta page, and incorrect on all other pages I've checked. Some of the ones that are consistently incorrect:   computational science constructed languages movies and TV raspberri pi rpg russian language science fiction and fantasy sitecore skeptics super user latex workplace   That distribution seems skewed, but I may just be disproportionately familiar with the sites at the end of the alphabet. Many others could be wrong, those are just the ones I could recognize.    Last edit: apparently my Google skills were lacking -  was asked an hour prior.