Meaning of "Don't settle for no f-ing s#*t"

I have seen this phrase in pictures:      "Don't settle for no fuck shit"    What does that mean?


How to keep the Linux prompt unchanged on changing directory?

I don't want my prompt to grow as I change directory. It becomes pretty lengthy on ubuntu terminal and goes into multiple lines. Is there a way I change customize the PS1.


What happened to StackExchange a short while ago? Why had it gone down?

No StackExchange site was accessible a short while ago. Even  said it was unreachable. See there ping results (16.Feb.2014 10:51   0 ms.)  What had gone wrong?


I have studied at 4 universities, and in 3 different programs. I always observed that STEM professors are not good at teaching. I suspect this is because they do not have  and so on. Do STEM professors generally hold training in teaching from faculty of education or not? If YES, what am I missing? If NO, why?


I understand that when you put Resistors in parallel the resistance decreases, my question is why does this actually happen? What causes the Resistance to decrease? When Resistors are in serial, their Resistances are added, why when we put them in parallel do the Resistors resist less current? I don't understand how that's possible?


Reciprocal Time Dilation in Special Relativity

I'm trying to understand theory of special relativity, but there is one thing that really makes me confused which is reciprocal time dilation in special relativity.  In special relativity, the time dilation effect is reciprocal: as observed from the point of view of either of two clocks which are in motion with respect to each other, it will be the other clock that is time dilated. (This presumes that the relative motion of both parties is uniform; that is, they do not accelerate with respect to one another during the course of the observations.) - Wikipedia   This paragraph tells us that: as your friend flying on a high-speed moving rocket passes around you (who is at the rest in space), you see her age more slowly than yourself. She in turn will see you age more slowly.  This conclusion seems rather contradicting to me. What does this conclusion gives as the result of age-relationship between you and your friend? Does it mean if the rocket were forever in the uniform motion going away from you, you will be always older than your friend, and friend will be always older than you depending on which frame of reference you take?


Is there an English word for a skill which doesn't require voluntary actions?

In the  Merriam-Webster dictionary skill is defined as     1.      a: the ability to use one's knowledge effectively and readily in execution or performance      b: dexterity or coordination especially in the execution of learned physical tasks      2.      learned power of doing something competently : a developed aptitude or ability   In Russian there are two words for different kinds of skills, "умение" (umeniye) and "навык" (navyk). The first word designates skill in the above three (1a, 1b, and 2) senses. The second word designates the kind of skill which doesn't require voluntary actions.  For example, a basketball coach teaches a kid to shoot a ball: the coach shows how to put a ball in a hand, how to locate and move an arm, how to use legs, how to release a ball, etc. After few attempts (let's assume that the kid is very talented) the kid is able to execute a shot in the way the coach taught him/her. The kid has acquired a shooting skill in the sense of умение (umeniye), because the kid still has to pay attention to his/her body position, arm movement, releasing technique... But after several days of practice the kid doesn't have to pay any attention to those things, because all these movements are done automatically (unlike, for example, shot selection). So the skill in the sense of умение (umeniye) became the skill in the sense of навык (navyk).  So I'm wondering is there a word in English to designate this notion of skill.    I have considered several options, but I’m not sure of their accuracy. The word ‘habit’ seems like the closest one.  However, the main distinctive feature of the word ‘navyk’ is automatic or involuntary trait of an action, so the English analogue has to have the same feature. To me the main feature of the notion ‘habit’ is an inclination to do something in a particular manner. For example, I could say ‘I have a habit to eat eggs for breakfast’. Habit in this context doesn’t require any skill, while shooting a basketball does. Moreover, I could lose a skill (or even ability) to do something, but a habit could remain, I just won’t be able to satisfy my habit (or it would be more difficult if I lose a skill in the sense of 'navyk').  Update.  The word "skill" could be applied not only to physical activities, such as shooting a basketball, but also to mental activities. For example, we can say “communication skills” or “mathematical skills” etc. And the distinction between the two types of skills I mentioned in the original question is applicable for mental activities as well.  Let me give an example of what I believe is called a spelling skill. For most of the words we use we don’t have to think about how to spell them, because we read or wrote them too often. But in some cases we have to think about the correct spelling by remembering some rules or etymology of a particular word. Here, again, we can distinguish two kinds of skills: first is the one I called “navyk”, and the second one is “umeniye”.  This example illustrates that the notion of muscle memory, which has been offered, doesn’t really fit the concept I’m trying to find a word for.


What UX guidelines should one keep in mind when designing the GUI for a automobile center stack/console?

Desgining the UI for a center stack (100% touchscreen), still in the wireframe stages. However, when mocking up the home screen, it dawned on me I don't know much about UX (I do mostly backend work, and am slowly breaching my way to design). So, that leaves me two options:   Blindly follow the OEM's design just because it's the OEM's design, while changing simple things like icons and backgrounds. Create a new design from the ground up, while taking into account hig (if any exist for this sector).   I would like to go with #2, to set my UI apart from the rest, but still be easy to use. I have a few guidelines in mind, but want a 'sanity check' and also if any documentation exists on this somewhere then also have that as a resource (I'm still googling for this at the time of this writing).  Here is what I have so far:   Anything potentially used by the driver while driving should be easily identifiable at a glance, and easy to use/change (i.e. BIG BUTTONS with familar pictures Settings/Options most likely used should be not be more than 1-2 levels deep, if at all possible. Important/Relevant Information should be displayed on every screen such as the clock, important diagnostic/service information such as battery charge for electric vehicles, etc. Fast response time, meaning no (or very little) cheesy screen transitions. My theory is that on this platform it wastes time, and the longer it takes to refresh the screen with new content, the longer the driver's eyes are off the road (potentially). Not a big deal at a red light, but obviously almost everyone has changed the heat or radio on a freeway, where taking one's eyes off the road for 4 seconds @ 60mph is equivalent to traveling the length of an entire American Football field blind.   I'm sure I have more, but those are the high points of course. Any more info is welcomed.  Update    To be crystal clear, I am asking what (if any) UX guidelines exist for the automotive platform, or what one should keep in mind. This is not a 'port' of an existing application to a platform that has publicly established hig. user1757436's link provided valuable documentation on some of the research done in this domain.


On my machine the command mysql -e "show databases" generates the following output: $ mysql -e "show databases  +--------------------+ | Database           | +--------------------+ | information_schema | | database1          | | database2          | | mysql              | | performance_schema | | sys                | +--------------------+  However, when I pipe this to any command (or redirect to file), the formatting vanishes: $ mysql -e "show databases" | cat  Database information_schema database1 database2 mysql performance_schema sys  I thought that the formatting may come through stderr, but this does not seem to be the case: $ mysql -e "show databases" 2>/dev/null  +--------------------+ | Database           | +--------------------+ | information_schema | | database1          | | database2          | | mysql              | | performance_schema | | sys                | +--------------------+  Why do the formatting characters not go through the pipe? Can I change this behaviour?


Finding a curve with maximal number of $\mathbb{F}_{q}$-points

Let $q = p^{n}$ and let $E$ be an elliptic curve. Hasse's bound from the Weil's conjecture tell us that  $$ |\sharp E(\mathbb{F}_{q}) - q - 1| \leq 2\sqrt{q} $$ for any $q$. Since this is a uniform bound over $E$, there should exists an elliptic curve $E$ that $\sharp E(\mathbb{F}_{q})$ takes a maximum value among all the elliptic curves (over $\mathbb{Q})$.   My question is: is there any algorithm to find such $E$ for any given $q$? It seems that the distribution for fixed $p$ and varying $E$ is something called 'vertical' Sato-Tate conjecture, and the above bound seems to be sharp.


Is manufacturing roughness really the only reason we don't see optical interference in thick dielectrics like windows?

I had always kind of wondered why we didn't see interference in things like windows -- we were taught that the condition is that the thickness of the film/slab/medium just has to be an integral number of wavelengths, $d=m\lambda$. My logic was, if visible light has wavelengths ~400-780nm, any window pane has got to be an integral number of wavelengths (or close to integral) for some of the wavelengths in the visible.  For example, if a window is, $6mm = 6\times10^6nm$ thick, then you should see interference for wavelengths (and some range around them) 200nm, 250nm, 300nm, 400nm, 500nm, 600nm... Because 6mm is an integral number of each of those.  Obviously that would be really annoying and isn't the case. I found  (warning: PDF) source that seems to explain it and I was wondering if what they're saying is sound. On the 10th page (p171 for them), it says that the reason we don't see this interference is that no window is that smooth, it has a variance in the thickness of at least several wavelengths, so the interference effect is effectively average out among all those thicknesses, which usually gets rid of it. They do the math and show that.  Is that the reason?  If so, that leads me to two questions: Could we, if we were really careful and used something like MBE, make a glass window with that sort of accuracy, and then see interference effects in the optical range? I know that quartz crystal monitors can easily give you nanometer accuracy for evaporators and sputterers, but they also have pretty limited growth rates.  My second question is, then, do we see interference effects in glass windows with electromagnetic radiation of a comparable wavelength, like microwaves?  Thanks!


What is secure way to use PHP variables in PDO queries?

Yesterday a post a question about how to Update using PDO, and some users told me that the folowing code line is very unsafe, because everybody can modifie my database. Well I undestrand why is not safe but what should I do with my variables berofe use it in mysql?   Example of unsafe use:  $bdd->prepare("UPDATE `articulos` SET `visto` = `visto` + 1 WHERE `ID` =$_GET['variable'] ");   I gues that if a use $_POST it still not secure.  And if I do this is unsafe too:   $getVar=$_GET['variable'];  $bdd->prepare("UPDATE `articulos` SET `visto` = `visto` + 1 WHERE `ID` =$getVar ")   So what is the safe way to insert variables in SQL queries?  Thak you.


I had applied twice for a UK visit visa in January for the purpose of sitting the PLAB 2 medical exam , but my applications were refused , though my cousin who is a consultant doctor in UK-NHS sponsored me for the visit.  The first refusal was because I didn't provide a bank statement, and the hotels that I booked were found to be cancelled ( I cancelled the bookings because my cousin advised to do so as he was more aware of better hotels ).  In the second application , I provided my bank statement. But however the application was refused again on the grounds that the statement contained only two transactions and didn't reflect my income and savings.  I am a doctor and live in Iraq . I receive my salary in cash like most governmental employees here. I have tried to make an active bank statement in the last 5 months with numerous cash transactions so that they can mimics my savings and expenditure.  I am looking forward to hearing assistance regarding this soon , it's really frustrating.  Kind regards  Refusal papers 1 & 2


How to prove that in any finite graph, the number of vertices with odd degree is even

I am trying to solve problem described in the title. What I've tried I tried to consider simple examples of graph with 0, 1 and 2 vertices and figured out that every edge has start node and end node, so number of edges can be calculated as follows: E - number of edges in graph Nd - degree of node $$E=\frac{\sum Nd}{2}$$ Since number of edges must be integer, $\sum Nd$ must be even. It is only even if there is even number of odd sum components. Questions Is this enough to prove the conjecture? Is there other way to prove that?


I am currently using a wizard. I was wondering, if I decided to take a feat that would allow me to use heavier than light armor, would that affect my spellcasting?  I thought I read something about it in the rule book but I can't find it.


File exists but not visible from other programs

I have an .EXE file installed on c:\windows\system32 (Win7) which is not visible for other programs except by Windows applications (Explorer, cmd, etc)  I can run it from any cmd terminal. However, other programs cannot open this file. They can't even list it on their OpenFileDialogs. I also tried running this program from Python os.system() and got a "File not found".    I can normally see and run other programs that are located at the same directory (e.g.: PING.exe)  I'm really sure the file is there. This problem happened on 3 different computers, all running Windows 7.  The file, in this case, is TFTP.exe, made by Microsoft.   The following images show this condition: 1 - Windows Explorer showing the file exists on c:\windows\system32 2 - Open file dialog, from depends.exe, can't see the file on the same directory


Export KDE settings between different machines

KDE version: Plasma 5.6  How can I export the settings of KDE from one machine to another? I am referring to all the KDE application settings, shortcuts, konsole theme settings etc... I am using Kubuntu 16.04.


I cannot remove any bluetooth devices from my computer. I tried so many ways. Removing it from device manager, control panel, settings, bluetooth. None work. Why this is a problem? Say I change bluetooth adapter. I can't add the device because the device is still there. I can't connect either because it's not paired correctly with the new adapter. I tried unhide devices remove them. Shows up again in device manager. There are solutions that some programs do some long time ago. The program no longer exist. This is a bug that happens in many windows 10. What should I do? I just want my computer to "forget" all bluetooth device and start a new Where are all those Bluetooth device stored? I can delete them all. Someone told me to paste something in powershell. Something like Keith Miller's answer. This is the result. not only device I really want to remove is not listed, I cannot remove any devices at all      Select a device to remove (0 to Exit): 17     Removing device: Mi Phone mimax 3     Sorry, an error occured.          ******** Bluetooth Devices ********              1 - Generic Attribute Profile         2 - Bluetooth LE Generic Attribute Service         3 - Galaxy A70         4 - Device Information Service         5 - 小米蓝牙手柄         6 - Bluetooth LE Generic Attribute Service         7 - Generic Attribute Profile         8 - Bluetooth LE Generic Attribute Service         9 - Generic Access Profile        10 - Lenovo A6000        11 - Bluetooth LE Generic Attribute Service        12 - MX Master        13 - Generic Attribute Profile        14 - Device Information Service        15 - Device Information Service        16 - BT-163        17 - SMI-M1        18 - Bluetooth LE Generic Attribute Service        19 - Bluetooth LE Generic Attribute Service        20 - Avantree Saturn Pro        21 - Generic Access Profile        22 - Bluetooth LE Generic Attribute Service        23 - MX Master        24 - Generic Access Profile        25 - Bluetooth LE Generic Attribute Service          Select a device to remove (0 to Exit): 24     Removing device: Generic Access Profile     Sorry, an error occured.       I am looking for a more lower level solution. Things like getting rid some registry entry or some directory. Where do all info about these devices stored? I want to just delete them


Adding onclick href for a dynamically created nested div

In this case I am not able to escape the quotes I think.   I am trying this from last one day  var obj = deals[i];  var1 = "my var" var url =  "index.html?name="+obj['a']+"&user="+var1+"+obj['a'];  var div = document.createElement('div'); div.innerHTML = '
' + '
' + '

' +  obj['a'] + '
' +  '
' +  '
' +  '
' +obj['b']+'

' + '

'+'

 '+'
';    document.getElementById('deals').appendChild(div)   How do I add the url as onclick href url to the newly created div?  OK I am rewriting this question again to convey where I am stuck exactly  var obj = deals[i];  var1 = "my var"  var url =  "index.html?name="+obj['a']+"&user="+var1+"+obj['a'];     var div = document.createElement('div'); div.innerHTML = '
' + '
' + '

' +        obj['a'] + '
' + '
' + '
' + '
'       +obj['b']+'

' + '

'+'

 '+'
';  document.getElementById('deals').appendChild(div)   I have added      onclick="location.href='+url+'     to the external div but its not working?


I have written a trigger on case, to prevent closing the case when all the associated tasks are not closed.  Facing this error while saving the trigger:      Error: Compile Error: No such column 'What' on entity 'Task'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names. at line 7 column 18       Here is my trigger.  trigger updateCase on Case (before update)  {      Map<Id, Task> taskMap = new Map<Id, Task>();       for(Task t : [SELECT Id, What FROM Task WHERE IsClosed=false AND What IN :trigger.newMap.keySet()])     {         taskMap.put(What, t);     }       for(Case c : Trigger.new)     {          if(taskMap.containsKey(c.Id) && c.IsClosed && c.IsClosed != Trigger.oldMap.get(c.Id).IsClosed)             c.addError('Case Cannot be closed with open tasks');     } }


Is there a problem with the ClearBits data dump?

I tried to connect to  and got an error message:      ERR_ADDRESS_UNREACHABLE.   Is this a known problem? Do you expect that the problem will be solved soon?


Is it the TARDIS that allows the Doctor to speak baby?

In  The Doctor shows off the fact that he can 'speak baby' with . In previous episodes we see that the TARDIS lets anyone who's been in it can speak as though they've got a universal translator.  Amy Pond never seems to speak to her child, though neither does the Doctor at that point in time so is this just a natural talent of the doctor, or is it an upgrade the TARDIS provides?


is a fairly straightforward concept. How can this be calculated in postgis given a series of linestrings that represent the path?


Is it true that for $x\in[0,2\pi]$ we have $$\sum_{n=1}^{\infty}\frac{\cos(nx)}{n^2}=\frac{x^2}{4}-\frac{\pi x}{2}+\frac{\pi^2}{6}$$ How can I prove it? For other intervals what is the value of above series if is convergent?


"Not enough memory" vs. "no enough memory"

Which is correct? Why?   Not enough memory No enough memory    seems to be significantly more popular on the Internet than the .  I want to use such construction as an error message in the program. I think it is a short version of the sentence "There is not enough memory".


Sorting Dictionary with child dictionary of object value type

I have a Dictionary<string, Dictionary<string, object>> that needs to be sorted depending on a certain value of the child dictionary. e.g {   "James": {     "Age":  21,     "Surname": "Doe",     "Temp": 80.6   },   "Tobi": {     "Age":  26,     "Surname": "Doe",     "Temp": 60.5   } }  The dictionary with key James and Tobi needs to be sorted depending on i.e.  the temp value. The string "Temp" would be given to the method to indicate the key to be sorted on. The object values type would differ depending on the context but the type would be known to the method allowing to cats the object to the correct type for comparison. Creating a specific object would not be possible for the solution as dictionary<string, object> represents the object properties and would differ with each implementation of the method. All child dictionaries would have the same "properties" so the child dictionary not having the value would not be a problem. so in plain description, a method taking in: {   "James": {     "Age":  21,     "Surname": "Doe",     "Temp": 80.6   },   "Tobi": {     "Age":  26,     "Surname": "Doe",     "Temp": 60.5   },   "Jessica": {     "Age":  18,     "Surname": "Samms",     "Temp": 50.67   } }  and string "Temp" and posibily Temp type of string "double" that returns IEnumerable<KeyValuePair<string,Dictionary<string,object>>> {   "Jessica": {     "Age":  18,     "Surname": "Samms",     "Temp": 50.67   },   "Tobi": {     "Age":  26,     "Surname": "Doe",     "Temp": 60.5   },   "James": {     "Age":  21,     "Surname": "Doe",     "Temp": 80.6   } }


Is it always possible to put a cell structure on a manifold? in other words is it possible to decompose a manifold as a CW complex? I know that by Morse theory we always have a handle decomposition of the manifold which shows that it is homotopy equivalent to a CW complex, but it does not show that it is homeomorphic or diffeomorphic to a CW complex.


I have a child´s chest, a child´s bed, and light. I tried to adopt children from the orphanage but it doesn't work.


After completing download 100% from google play store app wont install. but after 3 to 4 hour it install itself. What could be the problem?

After completing download 100% from google play store app wont install but after 3 to 4 hour it install itself. What could be the problem??


I have seen many articles' titles, with almost all words having the first letter capitalized. For example:      We can see many examples where many seriously big publishers follow this trend. There is something common they're following, but I can't figure out what. Question:  Does capitalizing affects a user's readability? If not, why is it common amongst big publishers?  Note: The links are given as examples.


how can I hide files in Nautilus permanently? When I uncheck the "show hidden files" button, the files get hidden. But when I open Nautilus the next time they are always back, which is quite annoying and makes Nautilus unusable.


Why does the symbol for the multiplication operation change shape?

Why does the "$\times$" used in arithmetic change to a "$\cdot$" as we progress through education? The symbol seems to only be ambiguous because of the variable $x$; however, we wouldn't have chosen the variable $x$ unless we were already removing $\times$ as the symbol for multiplication. So why do we? I am very curious. It seems like $\times$ is already quite sufficient as a descriptive symbol.


Creating a case-insensitive and accent/diacritics insensitive search on a field

I would like to know if it makes sense to create an index combining two functions while using Full Text Search: lower(name) and f_unaccent(name) Where f_unaccent is just my wrapper to make unaccent function immutable.  I do have an index working on: f_unaccent(name) using varchar_pattern_ops. My question is: would an index that combines lower and unaccent functions be triggered by full_text_search lower(f_unaccent(name)).  I don't know if the lower function would be useful working with Full Text Search algorithms.


Towards a Stackexchange-like comment/reputation system for research papers

We have had quite a few discussions on how to gauge the quality of research papers and academic journals. The consensus is that it is tough to identify a single metric which could reveal this quality factor.  I had an idea in this context. In the past newspapers used to have a single "Letters to Editor" section to which comments on all articles were sent. With the advent of the Net, we have a comments section under every article.    Similarly, why don't reputable journals introduce a comment space for their published papers, where fellow researchers could appreciate/criticise/query the works? What hinders us from having a reputation system for published papers - something where registered users could vote based on their perceived utility?


Derivation of $p(\omega|X,Y) = \frac{p(Y|X, \omega) p(\omega)}{p(Y|X)}$ in bayesian modelling

I am reading  on Bayesian modelling explanation and there is a statement (section 2.1) there which I can't understand:    Here we have a regression problem, where $X$ are our inputs, $Y$ are outputs and $\omega$ are model parameters.  Why we have $p(\omega)$ instead of $p(\omega | X$)? If we apply Bayes rule to $p(\omega|X,Y)$ we get:  $$p(\omega|X,Y) = \frac{p(Y|X, \omega) p(\omega | X)}{p(Y|X)}$$  The only way to get the statement from the paper is to assume either $p(\omega | X) = p(\omega)$ or $p(X,Y) = p(Y|X)$, both of which feels wrong to me.


What sections should a high quality Bug report contain?

I am a newbie in testing and i just write in the bug report, the pre-requisites , actual results and expected result section under "description".  Other testers say that my report is not professional and it's incomplete.  How can I improve my verbiage in expected results. Is it like - "user should be deleted on clicking delete button ' or "user is or must be deleted?  How to write a high quality bug? Refer to a sample bug report written by  testing experts.


How long can chicken stay out raw at room temperature before becoming unedible?

I know chicken isn't edible raw, but how long can it stay outside the refrigerator without gaining bacteria to where you can't even cook it?


Velocity of different sized balls rolling down the same rail

During mechanics lab we conducted an experiment in which we rolled two balls (glass and steel) down an eliptic heightened rail and measured the impact point. The lines of the rail were 0.76~cm. The balls had a different radius, steel - 0.825cm, and glass - 0.75cm. In this experiment the steel ball got to a shorter range consistently. $\\$I tried the following explanation, assuming no work is done by friction (since the ball is mostly rolling): $$mgh=\frac12mv^2+\frac12Iw^2$$ And using $v=wr$ when $r$ is the radius where the ball is touching the rail, and $I=\frac25mR^2$: $$gh=\frac{v^2}{r^2}(\frac12r^2+\frac15R^2)$$ so $$v=\frac{gh}{0.5+0.2\frac{R^2}{r^2}}$$ But the experiment gave an opposite result, for smaller $r$ we get smaller final speed.Are my calculations wrong? Or is there another reason the balls had different speed when leaving the rail? (My instructor had told me that the key two the answer is the width between the rails so I'm not keen to say that I got opposite results due to friction or sliding).


Batch to change Proxy settings based on Wireless SSID

I have created a batch file that changes the proxy settings based on the wireless SSID connection. I have set it to the Task scheduler, so that whenever I am logged in at the office, the proxy settings will kick in. Here is my batch file.   Set SSID=%VAR1% %VAR2% echo ------------------------------------- Echo Current Wireless Network: "%SSID%" echo ------------------------------------- echo .  If "%SSID%" == "NameOfSSID" (     ECHO ------------     echo Enable Proxy     ECHO ------------     SETX /M HTTP_PROXY "proxy.company.com:80"     SETX /M HTTPS_PROXY "proxy.company.com:80"     SETX /M NO_PROXY "127.0.0.1,localhost" ) ELSE (     SETX /M HTTP_PROXY ""     SETX /M HTTPS_PROXY ""     SETX /M NO_PROXY "127.0.0.1,localhost" )   The batch file kicks in when I login and runs. But when I try to browse, I have to manually enable it in the Internet connection settings as shown below. (shortcut to this settings is proxycfg in windows start).     I understand that there are many questions (and answers) on SuperUser. I just can't find the solution for this issue. Please help.


Wouldn't the Elder Wand belong to Neville, not Harry?

In the Harry Potter series, wouldn't the Elder Wand belong to Neville, not Harry? Since it belonged to Dumbledore, then Snape killed him, then Nagini killed Snape, then Neville killed Nagini, wouldn't it belong to him instead?


Why is Einstein gravity not renormalizable at two loops or more?

(I found this related Phys.SE post: )  I want to know explicitly how it comes that Einstein-Hilbert action in 3+1 dimensions is not renormalizable  at two loops or more from a QFT point of view, i.e., by counting the power of perturbation terms. I tried to find notes on this, but yet not anything constructive. Could anybody give an explanation with some details, or a link to some paper or notes on it?


Why people die of infection from microorganism, when germs can keep breeding for longer if they dont kill host? Would not millions of years of evolution make germs evolve to not to kill human but feed on them just enough to not to kill them ?


If I were president...   Why don't we have article "a"  before "president"?   Thank you!


What would happen if I choose a connector with current rating smaller than the actual current?

I need a butt splice connector that can handle up to 150A, which is really hard to find. What would happen if I connect it to a 12-10AWG butt splice connector?   Other type of connectors are not desirable because this is an automotive connection.


List of books written in LaTeX with the source available

Is there a list of open source LaTeX books? I've only found  (the link points to a web archive), but I want to know if there is a list with more diversity as this has only mathematical books. I want to find open source books about physics, chemistry, electronics...  My aim is to use these as a source of inspiration.  For example if I wanted to do a digital circuit I would like to take a look at a book written with LaTeX about electronics just to see how other people do it. Here for example is a physics book with the source available  .  In this book I've seen that putting images in the chapter entry looks nice.


I would like an 'enlarge' option for text blocks that are wider than the window, such as an enlarge link below wider blocks, or something similar.   I did find  about resizable text blocks, which would be fine, too, but the answers don't seem to fit how I see SE working in my browsers. The answer from Cody Gray I can't repeat on any of my browsers (I can't resize any of the blocks, can you?). Reformatting an entire log snippet to fit the window is tedious and I find harder to read than having everything on one line.  I did observe that the site is slightly wider on my 2560 wide monitor than on my 800 wide tablet, but only by about 6 characters.  In the Android app, I can click on a text block and have it move to the foreground and be as wide as the screen. I would like to have this functionality in the desktop version of the site, as well.


Server 2008 Setup Remote Desktop Services

I have a 2008 server that I can access via remote desktop as I am the domain admin at my work environment. We are installing some software that will require a handful of users to login and use the software. I've always been confused to what type of licenses I need and the steps to install Remote Desktop Services. Do I just need to buy 5 CALs and install them once I install the required features? It looks like I'll need to install the Remote Desktop Session Host and Remote Desktop Licensing Service? Do I need any license for this part of the install, or does the 5 CALs cover me if I only need 5 concurrent users max?


Is it possible to rename default directories like ~/Documents, ~/Music, ~/Videos?   Especially I want to rename Videos to Movies.


How does mission progress work in multiplayer?

In the first Borderlands, I got quite frustrated with the confusing affects multiplayer had on my character in singleplayer. Many times, someone in my party got a message saying they were ineligible for a quest and that they would not get credit for it.  Eventually, we all decided to make characters that we would all play only with each other and never play in single player.  This was quite an unideal solution.  Has Borderlands 2 solved any of these problems? What happens if I connect to a game with someone ahead of me in the story? What happens if I connect to a game with someone behind me? And what if I host in each of those situations? Is mission progress saved? Does everyone get XP and rewards?


Is any divergence-free curl-free vector field necessarily constant?

I'm wondering, for no particular reason: are there differentiable vector-valued functions $\vec{f}(\vec{x})$ in three dimensions, other than the constant function $\vec{f}(\vec{x}) = \vec{C}$, that have zero divergence and zero curl? If not, how would I prove that one doesn't exist?  I had a vague memory of learning some reason that such a function doesn't exist, but there's a pretty good chance my mind is just making things up to trick me ;-) But I thought about it for a little while and couldn't think of another divergence-free curl-free function off the top of my head, so I'm curious whether I was thinking of real math or not.


/Why is the output false here on comparing cat and dog references??/  public class Test {       public static void main(String [] main) {           final String cat = "length: 10";           final String dog = "length: " + "10";          System.out.println("Animals are equal :" + cat == dog);    }  }


Why did Eren have a flashback about titans in episode 1?

For those who have finished Attack on Titan season one: If you take all that you know into account and rewatch the first episode up to the the first 3 minutes, you will see that Eren was dreaming about the titans before he had ever met one. Do you think that Eren can live in another world or subconsciousness? Is there any explanation for him seeing this dream?


I've made an animal model, which consists of two objects: eyes and a whole body. I decided to make them into one object. When I tried to do that with Ctrl  + J one eye joined to the body and the other disappeared. What's the problem?


If $\gcd(|G:U|,|G:V|)=1$ for group $G$ and subgroup $U,V$ show $G=UV$.

Let $U,V$ subgroup of G with $|G:U|,|G:V|<\infty$. Also  $\gcd(|G:U|,|G:V|)=1$. Show that $G=UV$.  Please help to proceed with this question , first step where I get stuck is whether I can conclude G finite or not also I think I have to show $\gcd(|U|,|V|)=1$ which implies $U\cap V =\varnothing$ thus $G=UV$ . But I don't know how to proceed .


What is the word for a person who thinks/afraid others can change them?

To give some context, A person believes somethings (for example religious practices) but if someone tries to prove that those beliefs are wrong, the person gets into defensive mode - and can even burst with anger or get ready to fight. So, this is a person who wants to protect his/her beliefs and if someone shares their beliefs he/she thinks that they are attacking their personal beliefs. This person doesn't want to change their beliefs. They protect them with their life if needed. FYI, in this context, belief is different than knowing things. We know we have two hands but don't believe it.  What is the word for such a person? (I don't think it is believer)


Should you use a comma/period after "Thanks"/"Regards" in email signatures?

Normal practice is to end emails with a Thanks or Regards. My question is should there be a comma or a period or nothing after Thanks/Regards?      Thanks,       John Doe   Or     Thanks.       John Doe   Or     Thanks       John Doe   I have seen all three versions as part of email signatures. Which among these three is correct? Why?


How to prove that $ \lim_{n\to\infty}\left( \sum_{r=1}^n \dfrac 1 {\sqrt{n^2 + r}} \right) = 1$

We have to show that  $$ \lim_{n\to\infty} \left( \dfrac 1 {\sqrt{n^2 +1}} +\dfrac 1 {\sqrt{n^2 +2}} + \dfrac 1 {\sqrt{n^2 +3}} + \ldots + \dfrac 1 {\sqrt{n^2 +n}} \right) = 1$$  Now, I thought of doing it as a definite integral, however the terms don't translate into a function of $\left(\dfrac r n\right)$. I tried searching wolfram-alpha, but it used Hurwitz-zeta function, of which I have no clue. (This is an assignment problem)


I've got a few buttons with the class PhotoUploadSubmit, and when a button is clicked, a custom click handler is used to look at sibling elements, etc.  The click handler doesn't work, debugger never goes off, breakpoints are not hit, and I'm totally baffled.
     <input type="file" name="ImageData" style="display:none" />     <button class="PhotoUploadSubmit"></button>
     In terms of what I've tried, I've tried putting the click handler outside of document.ready, I've tried using the debugger; keyword, and I've tried setting breakpoints.  There's no console errors.


What happens if you enter a Steam powered serial key by accident of a game you already owned?

When you have a vast collection you might get confused. What happens if you try to activate a Steam powered game with a serial of a game you already owned? Does the key get lost? How can you tell if it was used?


What are the playable D&D races in 5e, and where can I find them?

There's not a lot of material published by WotC for 5e (relative to previous editions), nor is there planned to be. However, there are playable races for D&D scattered around in a few different locations in published products that people may not even know about. What are all the playable races, and where can one find each?  To be clear, we're talking about first party D&D 5e materials published by Wizards of the Coast.  Both "official" races (sanctioned for Adventurers League Play) and others, like races from Unearthed Arcana or from other WotC sources outside the D&D team that are less canonical, are of interest, but please designate whether they're considered official and sanctioned or not.     Topicality and utility of this question discussed in Meta . Inspired by .


Is the below true? I have that \begin{equation} (x*h)(t) = \int\limits_{-\infty}^{\infty}x(u)h(t-u) \ du = \int\limits_{-\infty}^{\infty}x(t-u)h(u) \ du \tag{1} \end{equation} So my question is, if you change the shift in the functions, does it change the convolution? My reasoning is this. If we substitute $y=t-u$ in the left integral we get $u=t-y$ and $du=-dy$ so the integral becomes \begin{equation} -\int\limits_{-\infty}^{\infty}x(t-y)h(y) \ dy = -(x*h)(y) = -(x*h)(t-u) \tag{2} \end{equation} However i now have $-(x*h)(t-u)$ and not $(x*h)(t)$.


I want the following piece of code to replace few strings in a file and save the changes. It is doing the right job but just adding the changed lines to the previous file without replacing it. I just want the file to be overwritten. What's wrong in my code?  import os import sys  fileToSearch  = 'sample.csv'  replace_values = {     'text1'     :   'text1_new',     'text2'     :   'text2_new',     'text3'     :   'text3_new' } with open(fileToSearch, 'r+') as tempFile:     for line in tempFile:         for key, val  in replace_values.items():             if key in line:                  tempFile.write(line.replace(key, key.replace(key, val)))


Can accounts of deceased users be given a "deceased" indicator on their profile?

It's going to happen, and probably has already - the user dies.  Subject to a reasonable process (email from relative, plus attempt to contact user, etc), set a flag on the user's profile to indicate they are no longer with the living.  Why? No really compelling reason; AFAIK Facebook has this feature, and it would prevent fruitless entreaties to contact them.


Prove that if one of $\lim_{x \rightarrow 0 }{f(x)}$ and $\lim_{x \rightarrow 0}{f(x^3)}$ exists, then the other one also exists.

Prove that if one of $\displaystyle\lim_{x \rightarrow 0 }{f(x)}$ and $\displaystyle\lim_{x \rightarrow 0}{f(x^3)}$ exists, then the other one also exists. Can anyone guide me on this ? I have no idea on how to start .


Cannot register SPN, error 0x80090350, state 4

This is my first time trying to configure kerberos. I need it for SQL Server.  Considerations   I'm running SQL Server 2008 R2 on Windows 2008 R2 server. I have an Active Directory account for SQL Server 2008 R2. The account is delegated for kerberos. The account is configured to start SQL Server services. This works without problems. SPNs are registered for both netbios and FQDN for computername and also computername:1433. The same SPNS are registered for the server and the account.   I mean, if I do    setspn -L domain\serviceaccount   or    setsqpn -Q MSSSQLSvc/Server.domain.local,   I get  MSSQLSvc/Server:1433  MSSQLSvc/Server.domain.local  MSSQLSvc/Server.domain.local:1433   When I run this query:  select auth_scheme    from sys.dm_exec_connections   where session_id=@@spid   ...the result is NTLM.  This query I'm running from another server, connecting to the SQL Server that I need to use Kerberos on.  When I restart SQL Server services I see this error in the log:     The SQL Server Network Interface library could not register the Service Principal Name (SPN) for the SQL Server service. Error: 0x80090350, state: 4. Failure to register an SPN may cause integrated authentication to fall back to NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies.   Any idea what I'm missing?


How to add \= ("macron", "overbar") in an equation?

I am trying the following code          \begin{equation}         \bm{F}=\bm{F}_{vol}\={\bm{F}}     \end{equation}   But it's some errors. I think the error might be because I cannot use macron in math environment. how can I resolve this?


How can I solve $x^{5}\equiv 13 \pmod{18}$.

I need to solve the congruence of $ x^{5}\equiv 13 \pmod{18}$ and find whether it is solvable.  Actually I can solve $x^{k}\equiv \pmod{q}$ when $q$ is odd. But now it is composite, and I do not know how to apply the theorem. Can you help me?


Computation of likelihood when $n$ is very large, so likelihood gets very small?

I am trying to compute this posterior distribution:  $$ (\theta|-)=\frac{\prod_{i=1}^{n}p_i^{y_i}(1-p_i)^{1-y_i}}{\sum_{\text{all}\,\theta,p_i|\theta}\prod_{i=1}^{n}p_i^{y_i}(1-p_i)^{1-y_i}} $$  The problem is that the numerator, which is the product of a bunch of $\text{Bernoulli}(p_i,y_i)$ probabilities is too small. (My $n$ is large, about 1500).   Hence, the posterior values for all $\theta$ all get calculated to be 0 (I am doing calculations in R).  To clarify, each $y_i$ has its own $p_i$, together these $p_i$'s make a vector of $n$ elements for $n$ $y$'s. Each $\theta$ has its own $n$-element vector of $p_i$.  EDIT: Adding a reproducing example (for the numerator)  p <- sample(seq(0,1,by=0.01), 1500, replace=T) y <- sample(c(0,1), 1500, replace=T) dbern(y, p) # 1500-element vector, each element is < 1 prod(dbern(y, p)) # produce 0 exp(sum(log(dbern(y, p)))) # produce 0 since the sum is very negative


What's the name of this flat illustration style?

I want to buy some stock photos like the ones below. What is this design called?  I don't even know how to start searching...


Grok pattern matches but result also contains pattern

I'm using  to create a reg_exp that matches the content of xml.  I'm not trying to parse xml but only to extract it.  <xml> <balise1> </balise1> <table> <tr> <td> cas1 </td> <td> cas2 </td> </tr> <tr> <td> new </td> <td> line </td> </tr> </table> </xml>   This is the pattern I wrote to match the content of tr tags.   (?<content>(<tr>(.)*</tr>))   So, the output of this regular expression gives :  {   "content": [     [       "<tr> <td> cas1 </td> <td> cas2 </td> </tr> <tr> <td> new </td> <td> line </td> </tr>"     ]   ] }   When I want it to be :   {   "content": [     [       "<tr> <td> cas1 </td> <td> cas2 </td> </tr>"     ]   ] }   The problem seems to be that the first occurrence is not detected and only the last occurrence is.  How can I specify that "any number of char" must not contain a new tr tag ?  Do you have suggestions ?


Delphi - Is it possible to detect if the Screen monitor is ON or OFF by software?

There's a way to detect if my Screen of the Desktop PC, is ON or OFF in Delphi? When I say OFF is that you press the power button of the monitor. I was thinking today about it, the power button is pure hardware or is possible to detect by software?


Is there a way to output gif animation from blender?

Is there a way to output an animation or video file in gif format from blender?  If not, what about VSE? Or can I record a screen inside blender?  Thanks a lot.


Is Gringotts really the only worldwide wizarding bank?

In the first Harry Potter book, Hagrid tells Harry that Gringotts is the only bank:     ‘They didn’ keep their gold in the house, boy! Nah, first stop fer us   is Gringotts. Wizards’ bank. Have a sausage, they’re not bad cold –   an’ I wouldn’ say no teh a bit o’ yer birthday cake, neither.’      ‘Wizards have banks?’      ‘Just the one. Gringotts. Run by goblins.’      Harry Potter and the Philosopher's Stone, Chapter 5: Diagon Alley.   In the second one, we learn that Gringotts has people working in others places of the world:     Bill was the oldest Weasley brother. He and the next brother, Charlie,   had already left Hogwarts. Harry had never met either of them, but   knew that Charlie was in Romania, studying dragons, and Bill in Egypt,   working for the wizards’ bank, Gringotts.      Harry Potter and the Chamber of Secrets, Chapter 4: At Flourish and Blotts.   It has been suggested on this very website that there is probably more than one currency in Harry Potter's wizarding world: . (Personally, I'm of the opinion that Rowling used a hyperbole in the passage discussed in that question).    So, was Hagrid exaggerating? Was he referring just to the United Kingdom? Is Gringotts really the one and only bank on Earth? And, more importantly, is there any canon answer that supports either hypothesis?    Possible answer:


What is the basis for planet numbering system used in Stargate SG-1?

In SG-1, we see/hear planet designations like P3X-421.   Do these designations follow any sort of system, or is it all "writer discretion"?   If there is a system to these designations, what is it (either in-universe or out-of-universe)?


Can I use cron to chime at top of hour like a grandfather clock?

I get lost in askubuntu reading Q&A and experimenting with recommended code snippets. So I often miss switching TV news channels on the internet at the top of the hour. Not a big problem for youtube channels that allow time-shifting, but it's a "show stopper" for tv channels using flash player.  Can cron be configured to run a job at the top of each hour where I provide a script to sound a grandfather like clock chime (with subtle sound volume of course!)? A minor chime could be sounded at the bottom of the hour too. I'm sure I can locate suitable .ogg or .oga files on the net and I know I can use ogg123 to play them. I just don't know if cron could do it. I know I could use a script that sleeps and wakes up to test time but don't like the thought of having something running all the time (there's enough of that going on already I think).  If this can be done with cron can someone answer how to set it up?  Thank you.


I wanna reset the nether because 1.10 is a thing and I want the new magma blocks. Is it possible? I don't know if I even need to because I barely even go to the nether and I think I can load new chunks. Please tell me. I haven't even tried loading the new chunks. Oh, and I can't start a new world.


Behavior of a source with internal resistance connected in parallel with a resistor $R$

For a source with electromotive power $E$  with internal resistance $ r $ connected in series with a resistor $ R $, we have: $I = \frac{E}{r+R}$. Is there any mathematical development that describes the current value when the connection is made in parallel? As well as for which $R$ value the current and the dissipated power is maximum. I found in the books only deductions for when the connection is made in series.


Let's say I have:  \bigcup_{a \in X}   This will print a big U with $a \in X$ below it. Now, let's say I also want to write $b \in Y$ and $c \in Z$below that big U. Is this possible?


This code works correctly:  \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning,calc} \begin{document}  \begin{tikzpicture}   \tikzset{     every picture/.prefix style={       execute at begin picture=\shorthandoff{;}     }   }   \def\names{{"1", "2"}}   \foreach \i in {0,1} {%     \ifnum\i=0\relax       \node (\i) [draw] {\pgfmathparse{\names[\i]}\pgfmathresult};     \else       \pgfmathparse{int(\i-1)}       \node (\i) [draw,right= 1cm of \pgfmathresult]             {\pgfmathparse{\names[\i]}\pgfmathresult};       \draw[dotted] ($(\pgfmathresult.south east) !.5! (\i.south west)$)             -- +(0,1cm);   \fi } \end{tikzpicture} \end{document}   But when I add  \usepackage[utf8]{inputenc} \usepackage[german]{babel}   to the preamble, it starts giving an error:  ! Argument of \language@active@arg" has an extra }. <inserted text>                  \par  l.25 }   the same for russian. It is somehow related to the quotes in the array:   \def\names{{"1", "2"}}   I tried the tricks, shown here for the french, but they don't work.


What site for general question about handling installation of software on Linux?

I commonly need to install packages on a Linux server behind a firewall.  The Linux repositories are not enabled, and there is no internet connection.  I often go to the Internet, get a file manually, then I try to install it.  I discover that a dependency is not installed or not the right version.  I repeat process to fix the problem.  There is an endless cycle of dependencies.    What is the solution to this problem?  Numerous systems administrators must go through this laborious problem.  If enabling repositories isn't an option, and going directly to the Internet from the Linux server is not an option, what should a systems administrator do?  I'd like to have a complete list of every dependency (and every dependency thereof) with compatible versions and locations on the Internet where a binary file exists to transfer over and install.  Installing from source is more tedious than installing binaries.  I'd like to ask this on  or  but I think the moderators don't like questions like these.  I am reluctant to think the solution would come from  but that doesn't sound like a bad idea.    Which site is the most appropriate for my question?


How long can cream cheese frosting be safely stored in the fridge?

I made a cream cheese frosting a while ago.  I didn't use all the frosting, so I put the rest (quite a lot actually) in the fridge with the intent to freeze it by the weekend if I hadn't used it.  Fast forward a month and it's still in the fridge.  I don't have the exact recipe in front of me, but it's cream cheese, powdered sugar, butter, extract, and milk.  The milk is minimal and I can't remember if I actually used it (I don't always).    I should note that I keep my refrigerator very cold (veggies usually freeze after a couple days - I like milk super cold).  I don't know if that would help preserve it longer, but thought it might be relevant.


I want to disable GNOME keyring globally on my machine. So I deleted the lines  auth    optional        pam_gnome_keyring.so session optional        pam_gnome_keyring.so auto_start   in /etc/pam.d/gdm. It seems to me that this has no effect. When I lock in the syslog writes  Aug 24 18:37:03 foobar gnome-screensaver-dialog: gkr-pam: unlocked login keyring   and another user sees a menu window where he hs to enter his credentials. So what is the correct way to disable keyring for every user on that machine?


I am unable to upload SVG image files to Stack Overflow. So I would like to know why it is blocked while other image formats are allowed.  SVG images are useful for diagrams such as tree diagrams for algorithm discussions.


What are the odds of both my Grandmothers passing away on the same 24 hour day?

Yesterday (April 7th, 2018), my Grandmother from my Mom's side passed away. Later on that same day, less than 24 hours apart, my other Grandmother (Dad's Mom), passed away. My question is simple; what are the odds of this happening? I searched around but haven't found anything close to this.


I am looking for a way to start rendering a .blend file the moment it is opened. Doing this with a python script that is executed on load is not an option.  That setup will render the image before the interface is fully shown. So basically you're looking at a grey screen until the image is fully rendered in the background.  What I want is that when the file is openend, it starts rendering and you can see the rendering process. Ideally, Blender should quit when the render is completed.


How can get the character's ASCII value without using any library function in python?

How can I get the character's ASCII value without using any library function using python.


What is the difference between re.search and re.match?

What is the difference between the search() and match() functions in the ?  I've read the  (), but I never seem to remember it.  I keep having to look it up and re-learn it.  I'm hoping that someone will answer it clearly with examples so that (perhaps) it will stick in my head.  Or at least I'll have a better place to return with my question and it will take less time to re-learn it.


In how many ways we can put 12 different balls to 4 equal boxes

We put 12 different balls to 4 equal boxes. How many configurations are possible?  If the boxes were distinguishable it would be simply $4^{12}$, but I do not know how to consider the fact that they are distinguishable.


Tag formatting doesn't work if tag contains *wildcard characters; ie: [tag:git*]

Formatting tags with [tag:] does not work if the tag contains .  For example:   [tag:git] →  [tag:git*] → [tag:git*]


short story about astronauts/colonists in a hostile planet

All die but one, he continues to try to grow plants.... he dies at the end, but is successful growing stuff. I seem to recall the problem might be ammonia in the soil or the air..?


As I watched the murder of crows sitting on the line above my house this evening, I got wondering where all of the collective nouns for animals (pod of whales, gaggle of geese, pride of lions) came from and why we need so many.    If sheep can be a flock, why can't whales, geese, lions, and crows?


Use mathematical induction to prove that for all natural numbers $4^n < 5^n$?

I'm stuck at the inductive step, which is $4^{k+1} < 5^{k+1}$ , where $k> 0$. Any help would be much appreciated on how to prove my inductive hypothesis.


I hope I'm not asking something preposterous but I'd like to understand how 120V USB power adapters work so that I can think about how to put one onto a board that I'd like to have made. The main problem is I don't know what to call them other than "USB power adapter". Can you tell me what components are involved and what resources I can look at to learn more? Thanks.


Can two nonisomorphic groups have the same subgroup lattice?

Subgroup lattice is sometimes said to represent the structure of a group.But does it give a complete information about the group.I mean from a given subgroup lattice is it possible to construct a new group.We can frame the question saying that whether two nonisomorphic groups can have the same lattice structure or not.Then subgroup lattice will not be sufficient to determine the structure of a group.


Change the mouse wheel scrolling acceleration

I am new Mac user and I don't really like the Magic Mouse so I reverted to a good old 3 button mouse with a scroll wheel.  When I turn the wheel slowly, it only scrolls pixel per pixel (or per two pixels) If I turn the wheel more quickly, it scrolls nearly line by line. There is a kind of scroll wheel acceleration where the amount scrolled for each wheel step depends on the rotation speed of the wheel.  This behavior is not present in Windows where you always scroll a few lines per wheel step.  Is there a way to disable this behaviour or to tweak it in Mac OS X Lion?


I get an linker error (2001, unresolved external symbol) with the following code. It only happens with templates, i can perfectly do the same thing with void, int, etc.  //a.h  template<typename T> T foo( DWORD );    //a.cpp  #include "a.h"  template<typename T> T foo( DWORD bar ) {     return T(); }    //main.cpp  #include "a.h"  void something() {     int hello = foo<int>( 1 ); }   It does work when i put the declaration of foo inside the header file like this  //a.h  template<typename T> T foo( DWORD bar ) {     return T(); }


Any free and reliable app to display Markdown documents in macOS?

Sometimes we add a file readme.txt in our folder for notes or things to know about.  Using Markdown, it is pretty easy to make it into a nicely formatted document. Can we write a README.md and can use any free and reliable app and use the Mac to read it?  (So far I know  which can be activated by using the keyboard shortcut Control + Shift + M, but if there is a one click preview app, it'd be the best. There is , but I am wondering if I should alter my OS? If there is a trustworthy app that can do it, it'd be best).


Regex custom start & end with quotes .Net

I am trying a couple of regex´s to try to extract a txt from a file. I try  with no sucess lets say I have this string: This is _localizer["my test 1."]' (here I want 'my test 1.') or This is _localizer["my test 2."] And this is _localizer["my test 3."]' (here I want 'my test 2.' and 'my test 3.') In other others, the regex need to understand the begin anchor (_localizer[") and the end anchor ("]) and need to know that sometime there are multiple 'localizer' in the same line. In the txt I want to extract sometimes will have / or \ and others characters that may will make regex fail. What I am trying to do: Regex r = new Regex(@"_localizer[(.+?)]");                 var matches = r.Matches(txt)                                 .Select(xx=> xx.Value)                                 .Distinct();  cheers


Extra payments toward mortgage or student loans?

So I have roughly $5000 in student loans at 5% and about $65000 on my mortgage at 3.875% (5/1ARM).  Should I put extra payments towards the student loan or the mortgage?    5% is higher, so if it's really a matter of playing off the higher interest rate that would be it, but it seems like the mortgage is a lot more "top-heavy" (not sure of the proper term) with most of the interest in the beginning and principle later on, so payments early on would have a bigger effect than later on.  Edit (originally a comment but felt it should be part of the question): Paying the highest interest first seems to make the most intuitive sense, and that's what I hear the most, however when I plug in to interest calculators, it shows that on the 5% student loan I'll be paying $1000 in interest making min payments, so hypothetically if I pay that off right now in one lump sum I'd be saving about $1000. On the other hand, if I instead take that amount of put it towards my mortgage, the calculator for that shows I'd save $10,000 in interest over min payment (over the lifetime of the loan).   Am I missing something?


how to extract tar.7z files from command line?

Is there a way to extract files of tar.7z format using command line tools in Ubuntu?


How can I make my microSD card writable?

I have a macbook pro running Snow Leopard.  I have Tuxera NTFS drivers.    I have a microSD card, in an adapter, in the slot.  The "lock" slider is in the "unlocked" position.  'Get Info' tells me the drive is formatted to FAT16.  The permissions panel tells me that I can only read.  Disk utility tells me it's not writable.  (It does this for the volume and also for the higher level Apple SD Card Reader Media)  What do I need to do to change permissions to turn this card writable?


Problems converting Javascript canvas to PNG

I have this program which draws the Mandelbrot sets onto a canvas, and even does some creative things with the concept of it. I want this program to automatically save this canvas to my downloads folder once it's done as a .PNG file. I tried looking around this website for some help and the best thing I was able to find and somewhat understand enough to apply to my program is this:  var image = c.toDataURL("image/png").replace("image/png", "image/octet-stream"); window.location.href = image;   Where 'c' is the canvas. While this does save the image to my downloads folder, it doesn't actually store it as a PNG file. As far as I'm able to grasp it doesn't specify a filetype at all since properties of these files tell me the filetype is 'Bestand' which I'm sure is just the Dutch translation for 'file'. Does anyone know how to directly store this as a PNG file? Note: I tried opening the images in Paint and that does seem to be able to read the file. It seems to me the image is correctly saved but no filetype is specified, nor is a name of the file given at all.


How to remove unwanted mesh generated with subdivision surface modifier

I want to make a model for a game with Blender, right now I am making an escape pod for a spaceship, just the basic mesh structure that will have a texture (which I will figure out if there's any problems later), but here's the problem, I am getting an unwanted corner mesh when making the doorway into the pod.  Couldn't post a picture here, sorry  But I have tried making more cuts and they don't work when using them to cut down the mesh, here is the blend file:   PS:(It is happening to all four corners of the doorway so it'll most likely work for all if it works with one)   Here's a blend without all the cuts if it makes it easier:  NOTE: The nose cone isn't done in this version!


How to construct a bijection from $[0,1]$ to $[0,1] \times [0,1]$?

I'm trying to find a bijective map $f$ such that   $$ f : [0,1] \mapsto [0,1] \times [0,1] $$  I've succeeded in constructing one in the 1D case : $[0,1] \mapsto [0,1]$, but I don't know how to approach in 2D case as the above.   Is there anyone to help me out?


understanding anonymous function works in javascript code

I am a bit perplexed when i saw a piece of code and trying to understand why calling it anonymous keeps the value of total and not otherwise.  var adder = function (total) { // the following function is returned  // and assigned to adder      var inner_function = function (summand) {         total += summand;         alert(total);     }      return inner_function;  }(0) // <- we call the annonymous function  //    and assign the returned function to adder adder(2); // -> 2 adder(3); // -> 5   What I don't understand is if i don't invoke anonymous function, it doesn't keep the value of total. why? without (0) if i am calling adder(2) shouldn't it behave like the first call where it keeps the value of total and then assign internal_function to variable adder?  It says in the blog that  "And when you call adder, that is the inner_function, it has access to total due to Lexical Scoping, even though the function that had the total. total itself was declared in the scope of a function that has returned a long time ago."   just trying to understand how anonymous works in this case


clear out all variables without closing terminal

I want to know how to clear all variables which I defined in command prompt without closing terminal ?  for example, if I set a variable in command prompt as:  $ a=1   now I want to delete the variable $a (and many other variables defined in similar way) without closing terminal. I could use unset but it will be hectic if there are large no. of variables


How to solve this limit problem? $\lim_{n \to \infty} \left ( \sqrt{n + \sqrt{n}} - \sqrt{n - \sqrt{n}} \right )$

I am stuck with the following question from my homework:  $\lim_{n \to \infty} \left ( \sqrt{n + \sqrt{n}} - \sqrt{n - \sqrt{n}} \right )$  Using  gives me 1 for the solution. However, I would like to know how you come up with this result. I hope someone can explain this to me.


Radial length contraction in general relativity

Consider a single source of gravity with large mass (say a heavy star). I am looking for an intuitive explanation of why there is radial length  contraction, and how to arrive at this using the principle of equivalence. Clocks slowing down near a gravitational field are easily explained, and there are lots of articles explaining this in books as well as on the net. However (as far as I know) there is not a single article/ note that  explains radial length contractions WITHOUT USING THE FIELD EQUATIONS IN VACUUM SOLUTION.  Suppose for sake of discussion, there is no radial length contraction, only clocks slowing down near the source of gravity. Then under this assumption,  is there a thought experiment that people have devised that will violate  some result of result of special relativity when we apply principle of  equivalence?


How solve: Underfull \vbox (badness 6876) has occurred while \output is active

I am solving all my warnings/errors in my document. I have solved everything except for 2:     Underfull \vbox (badness 6876) has occurred while \output is active   [18]   and     Underfull \vbox (Badness 2142) has occurred while \output is active   [30]   My first question:   How can I found out where this error occurs? Is [18] and [30] the pagenumber? I cannot find anything strage there. How can I get more information where error occurs? Is there a debug option (like for overfull).    I found already this  with debug option:  \showboxbreadth=50  \showboxdepth=50   But that did not help.  How to deal with this?


Solving the matrix equation and finding the matrices inverse

Suppose that $E_1 \begin{bmatrix}12\\35\end{bmatrix} = \begin{bmatrix}48\\35\end{bmatrix}$ Find $E_1$ and $E_1^{-1}$   I set up the equation and saw that $E_1 * A = B$ so I know that:  $E_1 = A^{-1} * B$   where $I_m =$ Identity Matrix   So I attempted to find $A^{-1} = A*I_m = \begin{bmatrix}12&1\\35&0\end{bmatrix}$  After RREF I got: $A^{-1} =\begin{bmatrix}1&1/12\\0&35\end{bmatrix}$  So then I tried $E_1 = \begin{bmatrix}1&1/12\\0&35\end{bmatrix} * \begin{bmatrix}48\\35\end{bmatrix}$ but It is saying that I am incorrect? What am I doing wrong?


My website is based in the UK with a .co.uk domain. We are now expanding into the US. I' m wondering whether I should use .com or .us for this domain? If I use .com, will this appear in the UK over my .co.uk domain?


How to make an (open) object behave like rubber when penetrated by another

So uh i've got this problem with a penetrating object and another object that serves as something like a condom if you will    So what I want, is for the penetrating object to not deform while moving into this "rubber cylinder", while the rubber cylinder does deform and reshape itself to the outer form of the penetrating object. That is, if the pen. object is bigger than the entrance hole ofc.  Also, when the object leaves the "rubber cylinder" I want the outer edges to follow (mid object in picture) and then jump back (right object in picture)    Parenting the size and position of the "rubber cylinder"-entrance to the position of the penetrating object would work i guess, but I think it'd create problems when the pen. object enters from another angle (not perpendicular to the entrance). I just read another post where someone mentions Vertex Weight Proximity modifier in a combination with a cast modifier. Don't know if thats gonna work yet. Couldn't find the time to test it.


Prove inequalities $2\sqrt{n+1}-2 \leq 1 + 1/\sqrt{2} + 1/\sqrt{3} + .... + 1/\sqrt{n}\leq 2\sqrt{n}-1$

Prove that for any positive integer $n$, $$ 2\sqrt{n+1}-2 \leq 1 + 1/\sqrt{2} + 1/\sqrt{3} + .... + 1/\sqrt{n}\leq 2\sqrt{n}-1 $$  the middle part can be expressed as a sum. of $1/\sqrt{x}$ from 1 to $n$, which leads to a $Hn^{0.5}$. Im not sure how that helps.  I tried differentiating both end functions and found they are both increasing.. But it doesn't seem to help much... help pls


Trying to multiply a float in bash not working

I have this script that is to rescale images to a percentage value  #!/bin/bash  percent=$1 echo $percent   for img in `find *.png`; do   echo Processing file $img   width=$( mdls $img  | grep kMDItemPixelWidth | tail -n1 | cut -d= -f2 )   height=$( mdls $img | grep kMDItemPixelHeight | tail -n1 | cut -d= -f2 )    newWidth=$((width*percent))   newHeight=$((height*percent))   echo $newWidth $newHeight   sips -z $newWidth $newHeight $img done   My bash is configured to accept commas as decimal separators.  So, whey I type  rescale 0,3019   I am trying to rescale the images to 30.19% of their values  the problem is that the line    echo $newWidth $newHeight   shows me the values as they were multiplied by 3019. Strangely the first echo  echo $percent   shows me 0,3019 (the correct value)  what am I missing?


iterated expectation conditional on two variables

How to prove that $E[Y]=E[E[E[Y|X_1, X_2]]]$ ?  PS. I don't see how $E[E(Y|X_{1},X_{2})|X_{1}]=Y[Y|X_{1}]$ and $E[Y]=E[E(Y|X_{1})]$ can be used here. But it feels close. Please help, I'm stuck PPS. Thanks @Deep North. Let's consider the case when X1 is independent of X2


Seems this should be simple, but I'm unable to find the combination of GPO options to default the home page so that the user can't change it, but to let them add any of their own home pages to the list of tabs?  Thanks.


This article was very helpful, but would also like to include a previous button, is it possible?


If $\alpha\in (0,1]$ and $x_n=\alpha x_{n-1}+(1-\alpha)x_{n-2}$, show that the sequence $\{x_n\}$ is convergent.

If $x_1$, $x_2$ are arbitary real numbers, $\alpha\in (0,1]$ and  $x_n=\alpha x_{n-1}+(1-\alpha)x_{n-2}$ for every positive integer $n$ (>2), show that the sequence $\{x_n\}$ is convergent. (Given $x_1<x_2$)  I cannot rearrange to test convergency. Please help me by solving the problem.   Edit  I want to prove by using the property below:     If $\{x_{2n}\}$ and $\{x_{2n-1}\}$ converges to same limit $l$ then $\{x_{n}\}$ converges to $l$.


What is the effect of an increase in pressure on latent heat of vaporization?

What is latent heat of vaporization ($L_v$) in the first place?  seems to indicate that it is the energy used in overcoming intermolecular interactions, without taking into account at all any work done to push back the atmosphere to allow for an increase in volume when a liquid boils.  If that is so, then would it be correct that $L_v$ decreases as boiling point rises, because at the higher boiling point, less energy is required to overcome the weaker intermolecular interactions?  Otherwise, would it then be correct to say that $L_v$ increases as boiling point rises, assuming constant-volume?  Let's say there is a beaker containing 1 kg of liquid water at the boiling point, and an identical beaker, containing an identical amount of water at the same temperature. However, this second beaker is perfectly sealed such that the volume of its contents, both liquid and gaseous, will not change.  Since both liquids are at the boiling point, applying heat should cause boiling to occur. Compared to the first beaker, then, would the second beaker (in theory) require more or less heat for its 1 kg of liquid water to completely boil?  Thanks!


Is there a major difference using x: [u8; 0xFF] instead of x: [u8; 255] in rust?

Hello I am pretty new to rust, is there a reason to use (0xFF, OxFFFF and so on) x: [u8; 0xFF] instead of x: [u8; 255]


How to define a map with id and list of records of an object

I have a custom object called entity_c, this has a field called product which is a lookup to product. There could be many records in entity_c for a particular product.  I need to store it in a map with productId as the key and all the records for that product in a list.  Here is what i have till now    Map<id,List<Entity__c>> mapProductEntity = new    Map<id,List<Entity__c>>();   for(Entity__c et : [SELECT name,Field1__c, Product__c, Field2__c FROM Entity__c WHERE Product__c IN : Items ORDER BY Product__c ]{         if (mapProductEntity.containsKey(et.Product__c)){             mapProductEntity.get(et.Product__c).add(new Entity__c(    field__c = et.field1__c,product__c = et.product__c, field2__c = et.value__c ));         }         else{       // Not sure how to add it for first time                    //mapProductEntity.put(et.Product__c, lsEntit.add(new Entitlement__c(   field1__c = et.field1__c,product__c = et.product__c, field2__c = et.value__c )));         }   Is this a right approach? Is there a simpler way to do it?


In Doctor who how many times did he regen

Well I say 15 1 2 3 4 5 6 7 8 9 10 - the tenth used the regen to fix himself then put all the energy in to his hand  11 - river gave him the power to fix himself and it went out of his hands 12 war doctor   So did he regen 15 times


Proving $f'$ can't have a jump discontinuity point

I was given a hw question that I just cant seem to solve. It goes:  Let $f$ be defined and differentiable in $(a,b)$. Prove that $f'$ can't have a jump discontinuity point.  I think that by using Darboux's theorem you could get to that conclusion but we were instructed to use Lagrange's theorem.  What I did do:  Suppose $x_0\in(a,b)$ is a jump discontinuity point. We can look at $(x_0,x_0+\delta)\subset(a,b)$ all the conditions of Lagrange's theorem are met so we have a point $c\in(x_0,x_0+\delta)$ such that $f'(c)=\frac{f(x_0+\delta)-f(x_0)}{\delta}$  And this is where I'm stuck. I understand that the right side reminds the derivative definition of $f(x_0)$ but I don't understand how to connect it all.


let p be a prime number such that {p = 3 [4]} show that the equation {x ^ 2 + 1} = {[p]} does not admit solutions in Z


Probably a really simple one this - I'm starting out with C# and need to add values to an array, for example:  int[] terms;  for(int runs = 0; runs < 400; runs++) {     terms[] = runs; }   For those who have used PHP, here's what I'm trying to do in C#:  $arr = array(); for ($i = 0; $i < 10; $i++) {     $arr[] = $i; }


Showing that if $X_1, X_2, \ldots$ are independent r.v.'s with a particular distribution, their average converges almost surely to $-1$?

I have that $X_1, X_2, \ldots$ are independent random variables such that $X_n = n^2-1$ with probability $\frac{1}{n^2}$ and that $X_n = -1$ with probability $1-\frac{1}{n^2}$. If I define the sum to be $S_n = X_1+\ldots+X_n$, I would like to show that $\frac{S_n}{n} \to -1$ almost surely. My approach here is to use the Borel-Cantelli theorem. Ultimately, I would like to show that $P(\frac{S_n}{n} \to -1) =1$. To do this, it instantly implies by intuition and by backtracing that I would like the sum $\sum_n P(X_n \neq -1)$ to be convergent to some real number. However, I cannot fully understand why this is or how I can get such a sum. Am I missing something here? thanks!


analog audio output card not seen. audio card bcm2835 ALSA

I'm on Ubuntu 16.04 and my monitor has no speakers and the audio won't play out of the headphones I have connected I've tried pulse audio and sound settings. I'm not sure my audio card is being seen.  System settings shows: bcm2835 ALSA 1 output/1 input Analog Audio Output  Output tab and pulse only show HDMI output


How do I disable a Macbook pro A1502 keyboard, under Catalina 10.15.7? Karabiner does not work. The terminal command "sudo kextunload

The shift keys, left and right, are stuck ON.  This causes MANY problems.  An external keyboard works, but the internal keyboard is the default on reboot, so it boots in safe mode and Safari stumbles badly with the shifters stuck ON.  Be gone internal keyboard!


How do I make my folders inaccessible by other administrator accounts on Windows 8?

I want to make my folders private, so that they can only be accessed after logging in with my own account, but be inaccessible by other local accounts, even the administrator accounts.  I have a PC with windows 8 Professional.   I know I can set the security options for a folder and deny full control access for any other account already created. But since there are other Administrator accounts, new accounts can be created from there and then my folder will be accessible from there.  And if I deny access for ALL administrator group, then even I myself wont have access to my folder!  What is the solution?


Do I really need resistors when controlling LEDs with Arduino?

I'm just trying out Arduino Uno for the first time with 2 blinking LEDs on a breadboard. All the tutorials on the Internet seem to use a resistor. I do know the function of resistors, but does it really matter here? These LEDs are working just fine without a resistor.


Prove that a non-empty closed convex $S$ has an extreme point iff it does not contain any line

I am wondering how to prove the following theorem: Let $S \subset \mathbf{R}^{n}$ be a non-empty closed convex set. Then $S$ has at least one extreme point iff $S$ does not contain any line. Extreme point $x \in S$ means that there is no couple of points $y, z \in S$ and $\lambda \in (0;1)$ such that $x = \lambda y + (1-\lambda)z$. I know that every non-empty closed convex set can be represented as an intersection of all closed half-spaces containing the set but I do not know if it is helpful in proving the theorem.


Has “if I was” become grammatically correct in a southern US dialect?

Living my whole life in Arkansas in the United States, I’m certain that if I were is never used by locals. Instead, phrases like if I was and you was and they was have all replaced their equivalents in other regions. I’ve heard these so often that I think it’s necessary to ask if they are grammatically correct as a part of a southern dialect. Does their appearance in a certain region as acceptable excuse their application in formal writing? Personally, I indeed believe that anything not found in generic, “accent-free” areas should not be considered correct. But officially within a southern U.S. dialect, are these constructions grammatical?


If $(X,d)$ is a complete metric space and $A$ is closed then show that for $x \in X$ there exists an element $a_0 \in A$ such that $d(x,A)=d(x,a_0)$

If $(X,d)$ is a complete metric space and $A$ is closed in $(X,d)$ then show that for each $x \in X$ there exists an element $a_0 \in A$ such that $d(x,A)=d(x,a_0).$   I tried this problem several times but always got stuck at some point or another. For instance, I initially thought about showing the existence of a Cauchy sequence $(a_n)$ in A such that $d(x,a_n) \to \operatorname{inf}\{d(x,a):a \in A\}=d(x,A)$ and then by completeness of $A$ and by continuity of the function $f(a)=d(x,a)$, to prove the existence of an element $a_0$ in $A$ such that $a_n \to a_0$ which would imply $d(x,a_n)=f(a_n) \to f(a_0)=d(x,a_0)=d(x,A)$. But the problem was that I could not construct such a Cauchy sequence in $A$. All my other attempts have similarly gone in vain.  If anybody has any answer, please reply. Thank you.


Blender split the 3d view into 4 parts,I don't want this,I want the default blender 3d view,How do I go back?  Here is a screenshot:


I'm looking for some advice on the URL structure on a growing website, we were a niche site, so our homepage was essentially a hub page of all our sub-categories with a URL structure of   example.com/sub-cat/   Where as now we are expanding to cover a few niches.  The question is whether we go for:   Keep all example.com/sub-cat/ URLs as they are and just add new example.com/category/ pages for each of the categories, which would link to all our sub-category pages. This would potentially effect the flow through the directories/breadcrumb trail, as the hub page would be disjointed? Does this matter? Create the hub pages for example.com/category/ and then redirect the sub-category pages across to example.com/category/sub-cat/ which would keep the breadcrumb trail and directory structure more sensible in my mind. It would involve redirects though and a longer URL. Pretty much the same as 2, though with altered names. Say for example if we previously had carthings.com/car-parts/ we could go carthings.com/car/car-parts/ or carthings.com/car/parts/ - this one would have the key phrase car wheels in one level of the URL so potentially better SEO wise, though it looks slightly more spammy, especially when you consider that in the niches we are in we would have to have a term relating to cars in the next level, for example carthings.com/car/car-parts/car-wheel-trims/.   In my mind, the least spammy one would be carthings.com/car/parts/car-wheel-trims/ but that takes out a key phrase "car parts" and adds an additional level to it.  Hope this makes sense, I couldn't think of a better example for the 3rd one.  I have looked at other questions here trying to find an answer though the ones I could find seem to not quite be the situation we are looking for, and we are particularly keen on trying to rank with our newly introduced hub pages.


Changing the antennas on a consumer grade WiFi extender

I have a spare (e.g. 'expendable') Netgear EX6130 WiFi Extender and I have put it in my garage so I can get internet when I'm working out there.  I've configured it the way I want and that all works apart from a very poor uplink WiFi connection to the ADSL router in the house.  For several reasons I'm not able to lay an Ethernet cable out to the garage.  The WiFi signal has a brick wall and a sheet steel garage door to get through.  It nearly works, but the signal drops out a lot and I think the garage door is the primary culprit, because the connection is about 40% better when the door is open.  I need to circumvent the door somehow!  The new WiFI hotspot provided by the extender is very strong and reaches everywhere I need it to get to.  It's just this bottleneck link back to the house I want to solve.  The Question: I am wondering if I could swap the Netgear's crappy built-in antennas for a pair of mag-mount WiFi antennas (with SMA connectors and 2 meter long coax cables).  This means I can run the coax through the wall of the garage and place the antennas a couple of meters apart on the roof of the garage (there's a magnetic steel strip on the roof that holds down the waterproof membrane) I can stick the antennas to that metal as a ground plane.  This would neatly side-step the steel door I believe.   +     I've already taken the device apart to see if it has U.FL antenna connectors (it does), and I have some U.FL to SMA connectors ready.  Is this a bad idea?  Is this likely to destroy the RF stage of the WiFi transceiver?  One one hand I know that antennas need to be compatible with a transceiver, but on the other hand the Netgear will have the cheapest possible antennas built-in and will probably not be the best way to get optimum WiFi signal.  I have no budget, I'm having to use parts at my immediate disposal.  I know I could just try it but I don't want to risk destroying a perfectly good device on a whim.  Any opinions welcome.


Install 4.3 (OTA) on rooted Nexus 4 (CWM + stock rom, kernel)

I'm running Android 4.2.2 on my Nexus 4. It is rooted, and I have ClockworkMod recovery installed, but rom and kernel are stock. I received the OTA update to 4.3, and would like to install it, but it failed. (With a message that CWM couldn't verify a signature. I remember that the previous OTA worked, and I think I had to re-root, but that was easy.)  How can I get the stock 4.3 update on my phone, while keeping root and CWM, and especially keeping all my data? Step-by-step instructions would be great.  Also, I'm curious, what is the technical reason that the update doesn't install?    Update: I found some , however they didn't work for me. I get the following error from CWM while applying update.zip:  Installing: /sdcard/0/update.zip Finding update package... Opening update package... Installing update...  Warning no file_contextsVerifying current system...  assert failed: apply_patch_check("/system/bin/app_process", "76c3a9a7a6d400a9ff3e4db391327daa33aa0663", "2a221441bf06f2618aa6c35ae0cade13bd4f6e1b") E:Error in /sdcard/0/update.zip (Status 7) Installation aborted.   Update 2: I forgot that I tried out Xposed some time ago. Apparently this modified /system/bin/app_process. I removed it by starting Xposed Installer, and then selecting "Uninstall (restore app_process)" and (probably not neccessary), "Clean up (complete removal of the framework)". I did one complete reboot, and then rebooted into recovery mode to continue the update. But now it hangs because "build.prop" is modified (don't remember changing that). I wonder if there is a way to just flash the new OS files (not patches), overwriting any modifications, but keeping all settings and user files...


What is the difference between /a/ and /æ/?

I don't quite understand the difference between /a/ and /æ/. Google gives the transcription for 'add' as /ad/, while Wiktionary returns /æd/.  Are these sounds actually distinct or is this just two different ways of writing the same one?


What defines the upper limit for speed of Subspace Communications?

mentions there to be a definite upper limit as to the speed of Subspace Communications. Is the reason for this ever touched on in any of the Star Trek media (Canon or not) or is it "speed of plot"? This  would suggest speed of plot but I'm curious what would provide an upper limit if light doesn't?


How to distinguish between permutation and combination questions?

You own 5 songs by Adele, 4 by Lady Gaga, and 3 by Katie Perry. How many playlists (ordered list of songs) can be formed that consist of 3 Adele, 2 Gaga, and 2 Perry songs if:  (a) Repetitions are allowed?  (b) Repetitions are not allowed?  I am struggling on what questions I should ask myself when approaching a problem like this? Is this a permutation, or a combination? Or neither?


Blender 2.8: How to use image sequence as a texture?

I wish to use an image sequence as an animated texture on an object (if possible). For example: I have image01.png, image02.png and image03.png and I wish to apply those as a texture on an object, while they work as an animated image sequence prefereably looped, if possible.I use Blender 2.8. So what I seek is an image sequence on an object (UV wrapped), which is not a plane. Do you know if this is possible and how? There is also alpha in the PNGs, but I guess that is not difficult to set up a transparency after the animated image sequence as texture works.


Unable to download software center from package manager: 404 Not Found

I removed software center from the terminal and after that I tried to install it from synaptic package manager.  Now I get a message saying that it's unable to retrieve a few packages.  Have a look:  W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/k/kdepimlibs/libkmime4_4.7.1+git111001-0ubuntu1_i386.deb   404  Not Found [IP: 91.189.92.170 80] W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/k/kdepimlibs/libkimap4_4.7.1+git111001-0ubuntu1_i386.deb   404  Not Found [IP: 91.189.92.170 80]   W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/a/akonadi/akonadi-server_1.6.1+git110927-0ubuntu1_i386.deb 404  Not Found [IP: 91.189.92.170 80]   ...   W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/pool/main/k/kdepim-runtime/kdepim-runtime_4.7.1+git111001-0ubuntu1_i386.deb 404  Not Found [IP: 91.189.92.170 80]   I actually was getting report error pop-ups and was irritated with it so removed the software center and after that I never got this error.  Please help me.


why NullPointerException appears in java programm while second time initing bufferreader? How can I fix it?

I created program in java. which reads files from several ftp servers. But it reads first file by bufferreader and second time occures NullPointerException. Here is my code:      while(true){//READ .CSV AND WRITE TO DB         client=new FTPClient();         try {             client.connect(ftps.getIp());             client.enterLocalActiveMode();             client.login(ftps.getLogin(),ftps.getPassword());             System.out.println("Connected with ftp "+ftps.getName());             String[] files = client.listNames();             InputStream ins;             BufferedReader bf;             for(int i=0;i<files.length;i++){                 ins=client.retrieveFileStream(files[i]);                 bf= new BufferedReader(new InputStreamReader(ins));                 try {                     String str = "";                     do                     {                         lines.add(str);                                                     str = bf.readLine();                     } while (!str.equals(null));                 }catch (NullPointerException ex){                                         }                 catch (Exception ex){                     System.out.println("Error while reading file "+files[i]+" from ftp "+ftps.getName()+" ERROR "+ex.toString());                 }                 finally {                     bf.close();                                         }             }         } catch (Exception e) {             System.out.println("Error in executing ftp "+ftps.getName()+e.toString());          }finally {             if(client.isConnected())                 try{                     client.disconnect();                 }catch (Exception ex){                     System.out.println("Error while disconnecting with  ftp "+ftps.getName());                 }                 System.out.println("Disconnected with ftp "+ftps.getName());         }   Error in executing ftp ftpserver's name appeares in console.


The code is:  \documentclass{article} \begin{document}     hello world \end{document}   WinEdt in WIN7  Error messages:  Command Line:   xelatex.exe --interaction=errorstopmode --synctex=1 "Chinese.tex" Startup Folder: D:\work\Latex\Xelatex  This is XeTeX, Version 3.1415926-2.3-0.9997.5 (MiKTeX 2.9) entering extended mode (D:\work\Latex\Xelatex\Chinese.tex LaTeX2e <2011/06/27> Babel <v3.8m> and hyphenation patterns for loaded. ("D:\Program Files (x86)\CTEX\MiKTeX\tex\latex\base\article.cls" Document Class: article 2007/10/19 v1.4h Standard LaTeX document class ("D:\Program Files (x86)\CTEX\MiKTeX\tex\latex\base\size10.clo")) (D:\work\Latex\Xelatex\Chinese.aux) [1 ! I can't write on file `Chinese.pdf'. Please type another file name for output:    Any file name for out put will fail.  How to deal with this?


I have a question regarding an older question on StackExchange, because the answers are confusing me.    How do I create the dual of a term?  1) A = A and B , Ad = A or B  2) A = A and B , Ad = not A or not B


What is wrong with this proof there is no $\omega$-th worldly cardinal

Call a cardinal $\kappa$ worldly iff $V_\kappa\vDash ZFC$. Let $\kappa_\alpha$ be the $\alpha$th worldly cardinal, i.e. the least worldly cardinal such that $\{\beta\lt\kappa_\alpha|\beta\text{ is worldly}\}$ has order-type $\alpha$. Since the class of worldly cardinals are closed, then $\kappa_\omega=\sup\kappa_n$. Therefore, $V_{\kappa_\omega}\vDash\forall\alpha(\exists\delta\gt\alpha(V_\delta\vDash ZFC))$. Now define $f: \omega\rightarrow\kappa$ by $f(n)=\kappa_n$. We have that $f(n)$ is definable and absoloute to $V_{\kappa_\omega}$. Therefore, $f"\omega\in V_{\kappa_\omega}$ by the axiom of replacement. But this is impossible.


What's the best way to show you can scroll on mobile devices?

I'm trying to find the best method of showing users on mobile devices that they can scroll in a <div>.   As iPhones/iPads don't have scrollbars, I will need an indicator to show that you can scroll. This should be subtle but present the idea well.


Passing types at run-time to a generic method

I'm trying to refactor some code but I'm not sure if I'm going about it the right way.  Below is a simplified switch where I'm creating an observable collection based on 2 parameters passed to a generic function. The first parameter is always an observable collection and the second is the type of the object stored in the observable collection:  switch (csvDataType) {   case CsvDataTypeEnum.Supplier:     dataCollection = ConverterService.ConvertCsvDataToCollection     <SupplierCollection, Supplier>(csvData);     break;   case CsvDataTypeEnum.Currency:     dataCollection = ConverterService.ConvertCsvDataToCollection     <CurrencyCollection, Currency>(csvData);     break;   case CsvDataTypeEnum.Custom:     dataCollection = ConverterService.ConvertCsvDataToCollection     <CustomDataObjectCollection, CustomDataObject>(csvData);     break; }   Based on the above, I was hoping to refactor the code to something similar to this:  ObjectInfo objectInfo = new ObjectInfo(csvDataType);  Type objectType = objectInfo.ObjectType; Type collectionType = objectInfo.CollectionType;  dataCollection = ConverterService.ConvertCsvDataToCollection <collectionType, objectType>(csvData);   My ConvertCsvDataToCollection generic function is defined as follows:  public static U ConvertCsvDataToCollection<U, T>(string csvData)  where U : ObservableCollection<T> { .... }   I then use an implicit type using var:  var dataCollection = Activator.CreateInstance(collectionType);  and it create the correct observable collection of the required type but I can't get my generic function to take in the Type collectionType and objectType types as I was hoping for by calling it this way:  dataCollection = ConverterService.ConvertCsvDataToCollection <collectionType, objectType>(csvData);   but I get the following error:   the 'type or namespace name 'collectionType' could not be found. Are you missing a directive or assembly reference'   for both the collectionType and the objectType parameters I'm passing to my generic function.  Is there a way to achieve this? I know this may have been previously asked in the past but I need clarification as the other similar issue I've read so far are still not addressing my problem, or I've totally missed their points. Sorry if that's the case!  Thanks.


Why does ~ from Python file look so weird when imported into Latex?

After inserting a Python file into my latex file via \lstinputlisting[language=Python]{Thesis.py}, I get    Normally, it should be ~, but it is at higher than it should be. When I copy it from the output PDF , I no longer get ~.  Could you please elaborate on this issue and how to get the normal ~?


I have a device which has a dc barrel jack with inside + and outside -. If I plug in a barrel connector which has 2 wires to connect to a DC voltage source (battery) how do I know which wire to connect to the positive terminal and which wire to the negative terminal?


I am using TeX (not LaTeX). I want to print our company logo in TeX Generated Invoice. Kindly help.


Why am I getting strange results when using a power meter to measure CFLs?

Over the years we have replaced just about every bulb in the house with a CFL. But here is the problem. Our electric bill is going up and not down. When I moved here 3 years ago we spent about $140-160. As of this summer we topped $210. Electric rates have raised of course but that doesn't explain why our physical electric usage is has gone from 800 to 1100+ kwh  I purchased a Reliance Controls THP103 AmWatt Generator Appliance Wattage/Amps Load Tester to see if it was something that was busted like the compressor on the fridge that always makes noise. Sears says no and my meter suggests no.  After testing ever in the house I decided to test the CFL's. Different brands, some generic some branded. Meter said that a incandescent bulb of 40w was using 39 and a 60w was using 59. But it also said that an 11w CFL was using 45w and all of the other CFL's had similar readings.  Is this normal?


Protected by Community for a simple question

Why has the question  been protected by Community?     Is that a bug or really community found it very useful?