I'm getting this error:   Ld /Users/liam_baron/Library/Developer/Xcode/DerivedData/Genetics_2-gplfrpbisvmichdvymcavjcyqveh/Build/Products/Debug/Genetics_2 normal x86_64 cd /Users/liam_baron/Documents/Xcode/Genetics_2 export MACOSX_DEPLOYMENT_TARGET=10.9 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk -L/Users/liam_baron/Library/Developer/Xcode/DerivedData/Genetics_2-gplfrpbisvmichdvymcavjcyqveh/Build/Products/Debug -F/Users/liam_baron/Library/Developer/Xcode/DerivedData/Genetics_2-gplfrpbisvmichdvymcavjcyqveh/Build/Products/Debug -filelist /Users/liam_baron/Library/Developer/Xcode/DerivedData/Genetics_2-gplfrpbisvmichdvymcavjcyqveh/Build/Intermediates/Genetics_2.build/Debug/Genetics_2.build/Objects-normal/x86_64/Genetics_2.LinkFileList -mmacosx-version-min=10.9 -stdlib=libc++ -Xlinker -dependency_info -Xlinker /Users/liam_baron/Library/Developer/Xcode/DerivedData/Genetics_2-gplfrpbisvmichdvymcavjcyqveh/Build/Intermediates/Genetics_2.build/Debug/Genetics_2.build/Objects-normal/x86_64/Genetics_2_dependency_info.dat -o /Users/liam_baron/Library/Developer/Xcode/DerivedData/Genetics_2-gplfrpbisvmichdvymcavjcyqveh/Build/Products/Debug/Genetics_2  duplicate symbol __Z12calcAllCostsRNSt3__16vectorI10chromosomeNS_9allocatorIS1_EEEE in: /Users/liam_baron/Library/Developer/Xcode/DerivedData/Genetics_2-gplfrpbisvmichdvymcavjcyqveh/Build/Intermediates/Genetics_2.build/Debug/Genetics_2.build/Objects-normal/x86_64/chromosome.o /Users/liam_baron/Library/Developer/Xcode/DerivedData/Genetics_2-gplfrpbisvmichdvymcavjcyqveh/Build/Intermediates/Genetics_2.build/Debug/Genetics_2.build/Objects-normal/x86_64/main.o ld: 1 duplicate symbol for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)   Here is all the code:  main.cpp  int main(){  std::vector <chromosome> cromo(NPOP);  calcAllCosts(cromo);                //calculate costs for all chromosomes  return 0;   }  functions.h  #ifndef Genetics_2_functions_h #define Genetics_2_functions_h  #include "chromosome.h" #include "defines.h"   void calcAllCosts(std::vector <chromosome>& cromo){ for (auto& i : cromo){     i.costFunc(); } }  #endif   chromosome.cpp  #include <random> #include <vector> #include "chromosome.h" #include "defines.h" #include "functions.h" #include <random> #include <math.h>  void chromosome::costFunc(){     cost = 3*cos(variables.at(0)) + 1.2*sin(variables.at(1)) / 2*tan(variables.at(2) -     3*cos(variables.at(3))); }   chromosome.h  #ifndef __Genetics_2__chromosome__ #define __Genetics_2__chromosome__  #include <iostream> #include <vector> #include "defines.h"  class chromosome{ private:     std::vector <float> variables;     float cost; public:     void costFunc();                                        //calculate cost to be minimised };   #endif /* defined(__Genetics_2__chromosome__) */   defines.h  #ifndef Genetics_2_defines_h #define Genetics_2_defines_h  #define NVAR 4 #define NPOP 8 #define LOWLIMIT -5 #define UPLIMIT 5 #define NITER 10   #endif   I've been stuck n this for days, and I can't seem to translate the error message into anything useful. Obviously my program contains a lot more code than this, but this is all that is needed to reproduce the error. This is why there are a lot more includes than needed.  If there were any problems with syntax or anything, these error messages would be present instead of this difficult one, so I believe there isn't anything obviously wrong (that someone with my lack of knowledge could fix).  I have tried looking for people with the same issue, but there seems to be a massive variation in possible fixes. Any help at all would be appreciated.  Thanks a lot in advance.  edit: This has been marked as duplicate with a question on templates. Please clarify.

Quote from :     The only portable way of using templates at the moment is to implement them in header files by using inline functions.   Why is this?  (Clarification: header files are not the only portable solution. But they are the most convenient portable solution.)


It has been my understanding that since the first benefit of the  feat (PHB, p. 165) is:     You ignore the loading quality of crossbows with which you are proficient.   ...Then you can fire a light or heavy crossbow as many times as your Attack actions and possible bonus weapon attack bonus actions allow - especially in light of the ruling that the two-handed property means you need two hands to wield it, rather than simply hold it, which means you can free up a hand to reload it in time.  And yet, I see people talking about taking multiple shots with a hand crossbow, explicitly a one-handed weapon. I understand that having the option to fire either it or (depending on interpretation) another one as a bonus action is a desirable quality, but assuming I want my bonus action free, am I able to attack several times with a non-hand crossbow?

In D&D 5e, can a 5th-level fighter shoot a hand crossbow 4 times per turn using the Crossbow Expert feat? The fighter's  feature says (PHB, p. 72):  Beginning at 5th level, you can attack twice, instead of once, whenever you take the Attack action on your turn.  The  feat says (PHB, p. 165):   You ignore the loading quality of crossbows with which you are proficient.  [...]  When you use the Attack action and attack with a one-handed weapon, you can use a bonus action to attack with a loaded hand crossbow you are holding.    Is the following statement valid? The fighter is holding a hand crossbow. He begins his turn. He takes an Attack action; using his Extra Attack feature along with the first benefit of Crossbow Expert, he shoots twice during this action. Then he takes a bonus action. Using the last benefit of Crossbow Expert, he makes this an Attack action. He is limited to using a hand crossbow during this action. He shoots twice using his Extra Attack feature. () It is ambiguous whether "you can use a bonus action to attack" means "you can use a bonus action to take exactly one shot" or "you can use your bonus action for the round as an Attack action". Or even if it does mean "you can use a bonus action to take one shot", it is ambiguous whether it means "an Attack action in which you use a one-handed weapon gives you an opportunity to shoot during your bonus action" or "a one-handed weapon attack made during an Attack action gives you an opportunity to shoot during your bonus action". (One bonus shot per Attack action, or one bonus shot per attack within the Attack action?)


Can anybody give me advice on how to label contours as shown in Figure 2 below? I would like to be able to put the label "on" the line, which is easy enough. But I'd also like for the contour line to have a break in between the label, as shown in Fig. 2. Without the break it is very hard to read the label, unless I use a mask with white background as in Fig 1. Maybe there is some sort of "invisible" masking option that creates the break?? I'm using ArcMap 10.1 on Windows 7 (64 bit)  Figure 1   Figure 2

Is there a way to interrupt a contour line beneath an elevation label using QGIS?


I have just bought an Acer Aspire laptop with Windows 10 installed. Wife wants Windows but I prefer Linux. Had dual boot with Win 7 before and it worked well. I know it did not go well with Vista.  Can I just install Ubuntu alongside Win 10 and let it provide the boot loader as it did before? It was really simple with Win 7.

I need my pre-installed version of Windows 7 (or any other version of Windows), how could I install Ubuntu without erasing it?


I have been searching for design equations for 5v regulated power supply but unable to figure it out. Please check the below circuit diagram   Could anyone explain me why 470uf ? why not 2uf? how can we find out the capacitance value? when only Vrms is known? and also help me to understand the need for 0.01uf on both sides of 7805? Actually I want to connect this 5v output to 8051 micro controller. Any help is greatly appreciated.

Why do we use a capacitor of specific value and not an arbitrary value for a full wave rectifier circuit?  For example in this circuit diagram below shows a 470uF capacitor so why can't I use a capacitor of 100uF or 1000uF?  How can I pick the correct value? Also what is the significance of capacitor C4?


$C$ is cantor set on $[0,1]$.      [Definition: $A_0$ is the interval $[0,1]$. $$A_n=A_{n-1}-\bigcup_{k=0}^{\infty}\Big(\frac{1+3k}{3^n},\frac{2+3k}{3^n}\Big),\space\space n=1,2,\dots$$   The intersection $$C=\bigcap_{n=0}^{\infty} A_n$$   is called Cantor set on $[0,1]$]           (a) Show that $C$ is totally disconnected.          (b) Show that $C$ is compact.          (c) Show that each set $A_n$ is union of finitely many disjoint closed interval of length $1/3^n$, end show that the end points of this interval lie in $C$.          (d) Show that $C$ has no isolated points.          (e) Conclude that $C$ is uncountable.      I have no problem of showing the first four ((a), (b), (c) and (d)) part of the proof. But got stuck at (e). I know this theorem:     Let $X$ be the nonempty compact Hausdorff space. If $X$ has no isolated points, then $X$ is uncountable.   How can I show that $C$ is Hausdorff subspace of $[0,1]$?

I am reading a proof that the cantor set is uncountable and I don't understand it. Hopefully someone can help me.  Let $C$ be the Cantor set and $x\in C$.  Then there exists unique $x_k\in \{0,2\}$ such that $x=\sum_{k\in \mathbb N}\frac{x_k}{3^k}$. Conversely every $x$ with this representation lies in C.  If $C$ would be countable then there would exists a injective map $f:C\rightarrow \mathbb N$.  Let $f^{-1}(i)=\sum_{k\in \mathbb N}\frac{x_{ik}}{3^k}$ or $f^{-1}(i)=\emptyset$.  Set $z_k=2-x_{i_k}$, then z=$\sum_{k\in \mathbb N}\frac{z_k}{3^k}$  Then $z$ is in the cantor set but z isn't in the pre-image of $f$.  Questions:   Shouldn't it be $z_k=2-x_k$? I understand that z lies in C but why it is not in the pre image of f?   Thanks in advance


I have Windows 7 Ultimate, my computer is pretty old (somewhere around 8 years already?). And it makes really weird, beepy-like sounds while copying files to any pendrive(so it's a Windows issue, not unvalid pendrive). It's pretty creepy, but also funny and weird.   About the sound:  The sound goes in 1 pattern but sometimes it does some "extra" sounds, pretty hard to explain, but I feel like playing some old 8-bit RPG game.  It's hearable in headphones, but also in speakers. The fun fact is, that even when I disable all of my sound and/or put all the volume levels to 0 - "the sound" is still here, haunting my ears. Also, when the copying is almost done - "the sound" sounds different, and it's more rapid. A small sound can be heard when I JUST CLICK ON(select) any pendrive's file.  I've tried:  to change default format in Windows' settings, but nothing seems to fix it. Changing the USB port doesn't work, also I'll mention again that this sound occurs with EVERY PENDRIVE  I'd like to know: 1. Why?!  2. How to destroy that sound and live happily.

When I move files, a small 'noise' noise comes through my headphones or speakers.  It only happens when moving files.  Is there a reason why moving files causes this slight static?  It only lasts for as long as the files are moving.  I'm not as much as annoyed as I am curious.  It is a Gigabyte board with a integrated sound card.  I'm running Windows 7.  I don't think it used to do this but I'm not quite sure.


What happens to all the glasses, cups, dishes and eating utensils that get created when people use the food replicators on the enterprise? There are over 1000 people on the star ship that use the food slots. Doesn't the star ship get cluttered?

Whenever someone in Star Trek creates food or drink in the replicator it is generated in the bowl, plate, or cup. It seems like after a few months they would have piles of used dishes from replicator food while making more for every meal. What do they do with all the dishes?


Every time I get an email message in Gmail, the notification bar shows me 3 notifications instead of one: the first labeled important, the second labeled priority inbox, and the third is the regular one. How do I get only one notification and make my incoming mail regular/normal, without the auto-label important or priority?

I've set up a custom notification on a particular Gmail label (call it [special]).   However, when an email with the [special] tag arrives, I get a notification for both the [inbox] and [special].  The audio notification plays the first half-second or so of the mailbox notification, and then switches to the [special] notification. In the notification bar, I get two Gmail icons, both with the same message when I slide the notifications open.  Without removing the [inbox] label from these messages, is there a way to eliminate the duplicate notifications?  I'm on 4.0.4.


I have a simple objective: Keep NumLock always on   and : Linux Mint 17.3 / 18 Cinnamon  I found this:    So, I created this small script  -rwxr--r-- 1 root      root      47 Apr 15 07:50 keep-numlock-on.sh   with content  #!/bin/bash xmodmap -e 'keycode 77 = NoSymbol'   and I added it to sudo crontab -e like this  @reboot /home/vlastimil/Development/bash/keep-numlock-on.sh   To my surprise, it does not work on reboot and I have no clue as to why.  It works if I manually call the script.  Any help appretiated.  Further attempts:  I created this file in ~/.config/autostart  -rw-r--r-- 1 vlastimil vlastimil 308 Apr 15 10:00 NumLock.desktop   with content  [Desktop Entry] Encoding=UTF-8 Name=Keep NumLock always on GenericName=Keep NumLock always on Comment=Keep NumLock always on Exec=/home/vlastimil/Development/bash/keep-numlock-always-on.sh Icon= Terminal=true Type=Application Categories= X-GNOME-Autostart-enabled=true Hidden=false X-GNOME-Autostart-Delay=0   while renaming the script and changing rights to  -rwxrwxrwx 1 vlastimil vlastimil 47 Apr 15 09:56 keep-numlock-always-on.sh   in order to rule out permission issue.  Well, I don't know what I did wrong, but it still does not work :(  EDIT1:  As for the comments, I changed the contents of the script to:  #!/bin/bash /usr/bin/numlockx on DISPLAY=":0" xmodmap -e 'keycode 77 = NoSymbol'   But without luck. This is really annoying to me. Please help and if you solve it, you will be rewarded with 50 points. Thank you.  EDIT2:  sudoedit /etc/X11/xinit/xinitrc   and placed the path to the file in there, still no luck.  . /etc/X11/Xsession /home/vlastimil/Development/bash/keep-numlock-always-on.sh     EDIT3:  xmodmap messes up with my keyboard mappings, making it unusable for this purpose.

Situation: I have a script watching over NumLock status, well not really watching, but turning it On every 1 second. The script is running in the background.  Reasoning: I often accidentally turn off NumLock. And I have no indicator of NumLock status on the keyboard.  OS, DE, DM, WM, xmodmap:  :  $ lsb_release -a  No LSB modules are available. Distributor ID: LinuxMint Description:    Linux Mint 18 Sarah Release:    18 Codename:   sarah   :  echo $DESKTOP_SESSION  cinnamon   :  cat /etc/X11/default-display-manager  /usr/sbin/mdm   :  wmctrl -m | head -n 1  Name: Mutter (Muffin)   :  xmodmap -pm  xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):  shift       Shift_L (0x32),  Shift_R (0x3e) lock        Caps_Lock (0x42) control     Control_L (0x25),  Control_R (0x69) mod1        Alt_L (0x40),  Alt_R (0x6c),  Meta_L (0xcd) mod2        Num_Lock (0x4d) mod3       mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf) mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)   My original Bash script follows:  #!/bin/bash  while true do    numlockx on    sleep 1s  done   As you can see, the script does not care about current status of NumLock. It just keeps turning it on.  Goal: I would like to make the script at least somewhat CPU efficient.  Question: What is the most CPU efficient way to ensure that NumLock is On in Linux (Mint 18)?


The test is a directory which contains nothing, an empty directory.  root@localhost:~# ls -l  /home drwxrwxrwx  2 www-data www-data    4096 Apr 26 17:50 test  root@localhost:~# ls  -l  /home/test total 0   Now I change the username from root into www-data.  root@localhost:~# su  www-data $ rm  -rf  /home/test rm: cannot remove `/home/test': Permission denied $    Why can't I remove the blank directory test which belongs to www-data ? It can be removed when I login in as root.  root@localhost:~# rm  -rf  /home/test  root@localhost:~# ls -lZ /home/test total 0 root@localhost:~# getfacl /home/test/ getfacl: Removing leading '/' from absolute path names # file: home/test/ # owner: www-data # group: www-data user::rwx group::rwx other::rwx  root@localhost:~# ls -al  /home total 8352 drwxr-xr-x 10 root     root        4096 Apr 26 17:50 . drwxr-xr-x 22 root     root        4096 Mar 20 16:32 .. drwxrwxrwx  2 www-data www-data    4096 Apr 26 17:50 test root@localhost:~# ls -al  /home/test total 8 drwxrwxrwx  2 www-data www-data 4096 Apr 26 17:50 . drwxr-xr-x 10 root     root     4096 Apr 26 17:50 .. root@localhost:~#

This seems very strange to me. I'm running kernel 2.6.37.2 and ran:  ~]$ cp -r /proc/ here ~]$ rm -rf here   I get some permission denies when copying as expected and I eventually hit Control-C. I get Permission denied on a lot of files when trying to remove the new directory and files.  As a note, I found this weird behavior because a friend sent me a .tgz of a snapshot of his /proc dir. I extracted the directory and when I was finished looking through it I had the same problem.  rm -rf as root does work.  lsattr shows the e attribute (which is what all of my files/directories show).


My mother in law is Scottish and has lived in Canada for the last 45 years.  She will often omit the word "with."  When asking my child if he is ready to get out of the bathtub she will say "Henry, are you done your bath?" or before clearing his plate she will say "are you done your dinner?"  She has excellent vocabulary and grammar, so this struck me as very odd.  Is this usage proper?  If so, where is this usage common?

My girlfriend, someone from southern New Jersey, constantly says phrases like "I'm done my homework" or "I'm done my dinner."  I try to correct her and say, "I'm done with my homework" or "I'm done with my dinner," but she insists this is what she has always said.  Is her grammar just plain incorrect, or is this allowed if she actually has a different dialect where everyone in the region says the same thing?


biology = ["Sarah", "Ahmed", "Fred", "Gillian", "Shradah", "Max", "Max", "Sara", "Max", "Esther"]  computerScience = ["Sarah", "John", "Fred", "Gillian", "Jermaine", "Max", "Sara", "Juan", "Esther"]  english = ["Nico", "Sharjeel", "Isabella", "Taylor", "Ali", "Ali", "Jean-Baptiste", "Jean-Baptiste", "Jean-Baptiste", "William"]   setThing=set() for word in biology:   setThing.add(word)  listThing=[]  for word in setThing:   listThing.append(word)  print(listThing)  In this, I am trying to take the list called biology and put it in a set so that it gets rid of the repeats. I am trying to turn it back into a list that has the same order of names as the list: biology. But when I turned it into a set, the order of the names completely changed. Is there any way I could use some kind of function to order either the new set or the new list so that the names are in the same order as the original "biology" list?

Is there a built-in that removes duplicates from list in Python, whilst preserving order? I know that I can use a set to remove duplicates, but that destroys the original order. I also know that I can roll my own like this:  def uniq(input):   output = []   for x in input:     if x not in output:       output.append(x)   return output   (Thanks to  for that .)  But I'd like to avail myself of a built-in or a more Pythonic idiom if possible.  Related question:


What is the relationship between The EM waves (light) and photons in some context i studied light as photons and others as EM fields but how they are related....another questions : what's the name of the field of study that allows me to study antenna and wave propagation on the particle level (photons) and the relationship between different kind of particles in the matter

If polarization is interpreted as a pattern/direction of the electric-field in an electromagnetic wave and the frequency as the frequency of oscillation, how can we interpret polarization and frequency when we are dealing with one single photon?


I'm getting an MA in Italian Literature but, writing my thesis on contemporary fiction, I realized that it's not really what I want to specialize in. I would like to switch to Classics/Ancient History. Do you think it is possible to get a PhD with my background? Or should I get a second MA in the new field? One third of my undergraduate studies were in Classics (both Latin and Greek), but it's been a couple of years since I looked at that stuff from an academic point of view, and my Greek is a little rusty. I know what my broad area of interest is, but I still need to check the academic literature in the field. It's hard to ask advice to my current professors, since none of them is a classicist. Thank you in advance. (PS. I'm from Italy: we start studying Latin and Greek when we're in high school. I'm getting a degree here but I'd love to move to the US for the PhD.)

Can I be admitted to graduate school in a different field from my degree?  Specific cases include:   If I've taken plenty of advanced courses in field X in the process of completing a degree in another field, can I apply to graduate school in X? What if I haven't taken many courses in X, but I have acquired a good grasp of X through self-study or working in a related field? What if I've never studied X, but I have done very well in an unrelated field?  Could I be admitted to graduate school in X on the basis of general intellectual promise, and then make up the missing background after enrollment?   Note that this question is an attempt to provide a comprehensive answer, to avoid the need for a profusion of field-specific questions on this topic (see the associated ). Please feel free to edit the question or answer to improve them.


I am designing a practice visual c# program that has you pick your birth date from a dateTimePicker and comparing it to the current date to display in a textBox what your current age is.   I would like to factor in which day of the month you picked to refine the age result rather than just assuming you're a certain age because you were born in that particular month.   This is what I have so far:   public void button1_Click(object sender, EventArgs e)         {              var birthdayYear = dateTimePicker1.Value.Year;             var birthdayMonth = dateTimePicker1.Value.Month;             var birthdayDay = dateTimePicker1.Value.Day;             var currentYear = DateTime.Now.Year;             var currentMonth = DateTime.Now.Month;             var currentDay = DateTime.Now.Day;              int currentAge = DateTime.Now.Year - dateTimePicker1.Value.Year;              if (birthdayMonth >= currentMonth)             {                  currentAge--;              }               string currentResult = Convert.ToString(currentAge);              ageResult.Text = currentResult; }

Given a DateTime representing a person's birthday, how do I calculate their age in years?


I want to make sure that sudo apt-get upgrade does not upgrade mysql 5.7.22 to the latest mysql GA 8.0.  Last time I ran this command mysql 5.7.20 was upgrading to mysql 5.7.22 automatically, which was ok but if it upgrades to mysql 8.x,  the production applications will stop working.    What command to execute to disable auto upgrade of mysql while keeping every other package on auto upgrade list.

Because of  I'd like to prevent apt-get upgrade and Update Manager from updating the "libgtk2.0-0" package.   How can this be achieved?


In a project i am working on, want to add lightning application in salesforce1 tabs(Custom tabs). Please help me out in this.

I have created a lightning component and I need to add it to salesforce1 app. I'm trying to add the lightning component through Lightning Component Tab. But the lightning component that I have created is not visible in the Lightning Component dropdown. How can we add lightning components to the salesforce1 app?


So we learnt that in $\mathbb{C}$, all holomorphic functions are analytic, and hence infinitely differentiable. (This wasn't proved yet.) It was also stated that in $\mathbb{R}$, the infinite differentiability doesn't imply that the function is analytic. This function was given as an example:  My doubts is if a function is analytic in $\mathbb{C}$, is it also holomorphic in $\mathbb{C}$? If not, is there an example for the same?

I am studying some complex analysis and I have found this result. In fact it isn't a single theorem (I am reading Cartan's "Elementary theory of analytic functions" and I haven't found such a theorem, but maybe I just didn't find it), but there are many results that should give us this equivalence. However, I was wondering about two things.   The first is: is this equivalence "perfect"? I mean, could I exchange the terms "holomorphic" and "analytic" in theorems and various results without changing anything, or are there some hypothesis I should satisfy first? I am asking this because even though they should be equivalent, I always find theorems about (for instance) analytic prolongation that always talk about analytic functions, and there is no "holomorphic prolongation", if you understand what I mean. So I was not sure if this was simply a matter of tradition or if analytic functions are more general/poweerful than holomorphic ones.  The second one is: if I have a function from $\mathbb{R}^2$ to $\mathbb{R}^2$ that is differentiable in an open connected set $U$ and in that open set it satisfies Cauchy-Riemann conditions, then it should be holomorphic and analytic, if viewed as a complex function. So, for the prolongation theorem, there should be only one function like that (that is, differentiable and that satisfes Cauchy-Riemann)on $U$. So, are you telling me that if I have a differentiable function satisfying Cauchy-Riemann in an open connected set, not only it is the only function (unless you add/subtract constants obviously) that does that, but (being analytic in $\mathbb{C}$) it is also $C^{\infty}$. It would be so incredible I can't believe it!


Basically, I'm trying to make an edit profile modal with fields that are already prepopulated by the user's original data. I passed django models into my javascript files by using these brackets {{}} but it doesn't seem to work for {{user}} (as in request.user).   This is what I did for simple fields:
     Email     <input value={{user.email}} type="email" name="email" placeholder="Email">
   {{user.email}} successfully is set as the default value for the input.  Is there a different way to prepopulate fields? If there is, let me know and I might not have to deal with this next situation.   My naive solution works for text fields but if I have a multiselect like:
     Native Language         <select name="nativelanguage" id="nativedrop" class="ui fluid search selection dropdown">         <option value="">Language</option>         <option value="English">English</option>         <option value="Spanish">Spanish</option>         <option value="French">French</option>     </select>
   my solution no longer works. I want to pass {{ user }} into a javascript function like myFunction({{ user }}) but it seems that this is not possible.   Could anyone give me advice on how to prepopulate fields or fix the second issue below? Thanks!

When I render a page using the Django template renderer, I can pass in a dictionary variable containing various values to manipulate them in the page using {{ myVar }}.  Is there a way to access the same variable in Javascript (perhaps using the DOM, I don't know how Django makes the variables accessible)? I want to be able to lookup details using an AJAX lookup based on the values contained in the variables passed in.


I have been told the statement in the title, but I don’t see how to construct such a function. An hint was to “collapse the $S^1$”, but I am not sure what that means. I should find a surjective function that is homotope to the identity, maybe?

I'm trying to find a smooth degree 1 map from the torus $T^2 = S^1 \times S^1$ to the $2$-sphere $S^2$.  My first thought was to use the two coordinates $(\theta_1,\theta_2)$ to map onto the usual spherical polar coordinates on the sphere - however I can't quite get that to work because it seems that one of these coordinates would cover the sphere twice and so give a degree $2$ map?  Alternatively I thought about using the winding number. So in general if we embed circles into $\mathbb{R}^3$ by the maps $f_1,f_2: S^1 \to \mathbb{R}^3$ we can then define a map $F:T^2 \to S^2$ by:  $$F(\theta_1,\theta_2) = \frac{f_1(\theta_1) - f_2(\theta_2)}{\| f_1(\theta_1) - f_2(\theta_2) \|}$$  However I'm now struggling to make suitable choices for $f_1$ and $f_2$, my guess is that I'd want to make the circles cross over each other once but I'm struggling to visualise this and write down a map so I would appreciate any help.


How would we factor $6+x$ over $\mathbb{Z}[[x]]$, the ring of formal power series with integer coefficients? Proving things are prime is easy, but factoring a nonprime is difficult. Thanks in advance.

$\mathbb{Z}[[t]]$ is the ring of formal power series with integer coefficients, and the problem asks to show that $100+t$ is reducible. This means I need to find two power series, $\sum_{i=0}^\infty a_i t^i$ and $\sum_{j=0}^\infty b_j t^j$ with $a_i,b_j\in\mathbb{Z}$, that when multiplied give $100+t$. Since the integers are an integral domain, I know that neither of these power series may be finite, but I'm having a really hard time figuring out how to come up with two series that will telescope properly. Any suggestions?


Is there anyone left that's not using JavaScript? When designing websites, is it worth to care about that fraction of visitors? At least in Firefox you can't even disable it anymore.

If you have developed a JavaScript based website, is it worth doing the extra work to make it accessible for visitors who don't have JavaScript enabled?   What percentage of visitors are in this position? Which browsers does it particularly affects? Are mobile devices JavaScript enabled?


What would be the nicest way to execute any code on post_status change. In our case we need execute a function the moment the post_status changes from draft to publish. As far as I can find there is nog action to do this.

I try to use this function i have created when a post is published for the first time.  function a_new_post($post){   $post_id = $post->ID;    if ( !get_post_meta( $post_id, 'firstpublish', $single = true ) ) {       // ...run code once       update_post_meta( $post_id, 'firstpublish', true );   } } add_action( 'draft_to_published', 'a_new_post' );   I can't see anything wrong with it, but when i try to create some sample posts i check the database and the field "firstpublished" has not been created.  Does anyone see anything wrong?


In the past there used to be an option in Settings->Appearance->Behavior to toggle between using the Application Menu in the top menu bar and a window-specific menu button.  In 20.04, I don't see that option anymore.  Not in settings, and not in gnome-tweaks.  This is an example of the menu that I'd like to move down from the top of the screen into the application's window:    Can someone tell me how to do this in Ubuntu 20.04?

Using GNOME Tweak Tool to disable the  (reference: ) is no more working in Ubuntu 20.04.   How do I get the same effect now?


Is there a way to create and execute a script file in Ubuntu 14.04?  Perhaps something like Windows batch files.  Specifically, I mean the default scripting language of the Ubuntu terminal (Bash).  How do you make a text file containing bash commands which will be run by the Ubuntu terminal from the top of the file to the bottom.

In Windows I can write a file containing commands for cmd (usually .cmd or .bat files).  When I click on those files it will open cmd.exe and run them commands the file contains.  How would I do this in Ubuntu?         I'm sure this is a duplicate, but I can't find my answer. Its similar to these questions, but they don't answer the question:


I came across this Lemma:  "Let $R$ be an integral domain, and let $a,u\in R$ such that $u$ is invertible. Then $a$ is a prime if and only if $au$ is a prime.  I tried to prove it unsuccessfully, but would appreciate your help with a formal proof.  thanks :)

$R$ integral domain : $u\in R^*,\; a \text{ is prime} \iff au \text{ is prime}$   I started by looking at $auu^{-1}$. What should I do next? I'd be glad for help.   Note: $u \in R^*$ meaning is $u$ is invertible.


Can anyone tell me please what I'm doing wrong?  PS: here is a link:

Well I know how to open a folder in the terminal (using cd). But when the name of this folder have space? Ex: Eclipse Indigo. If you use cd Eclipse Indigo does not recognize


Does arguably mean "something could be argued", or "could be arguable, is debatable or questionable"? But more often it seems to emphasize an adjective, for example:     It is arguably the best, the finest, the most powerful, etc.

According to , the adjective arguable has two definitions        susceptible to debate, challenge, or doubt; questionable: Whether   this is the best plan of action or not is arguable.   susceptible to being supported by convincing or persuasive   argument: Admirers agree that it is arguable he is the finest pianist   of his generation.      I find that these two definitions are a bit contrary to each other. The first one emphasizes that something is doubtful, while the other means that something is probably convincing. How to distinguish between the two definitions from a sentence? Example from google news (including the adverb "arguably")        Carl Lewis, arguably the world's greatest-ever Olympian, is involved    in another running battle – to become a politician.   Here, the appellants have an arguable case that the minister's decision exceeded his jurisdiction


Assume you have a circle with some radius r. What is the average distance between two random points inside the circle?  (Edit: This is different from , because here the points are inside the circle area, not on the circle circumference.)

I have the following problem (related to ):  Given a circle of radius $a=1$. Choose 2 points randomly on the circle circumference. Then connect these points using a line with length $b$.   What is the expected length of this line? ($\mathbb{E}[b]$=..?)  I have tried this:  $x_i=\cos(\theta_i), y_i=\sin(\theta_i), \quad i=1,2$, where $\theta_i$ is uniformly distributed on $[0,2\pi]$  Then I tried to compute the squared distance. The squared distance between two points in the Eucledian space is:  $$d^2=(\cos(\theta_1)-\cos(\theta_2))^2+(\sin(\theta_1)-\sin(\theta_2))^2 $$  Now taking expectations I got:  $$E(d^2)=2-2 \ ( \ E(\cos(\theta_1)\cos(\theta_2) + E(\sin(\theta_1)\sin(\theta_2) \ )$$ (as $E(\cos^2(\theta_i))=E(\sin^2(\theta_j))$  Then $$E(\cos(\theta_1)\cos(\theta_2))\overset{uniform}=\int_0^{2\pi}\int_0^{2\pi}\theta_1 \theta_2\cos^2(\frac{1}{2\pi})\ \mathrm{d}\theta_1 \ \mathrm{d}\theta_2 = 4\pi^4 \cos^2(\frac{1}{2\pi})$$  and  $$E(\sin(\theta_1)\sin(\theta_2))\overset{uniform}=\int_0^{2\pi}\int_0^{2\pi} \theta_1 \theta_2\sin^2(\frac{1}{2\pi})\ \mathrm{d}\theta_1 \ \mathrm{d}\theta_2 = 4\pi^4 \sin^2(\frac{1}{2\pi})$$  so that $$d^2=2-4 \pi^2 \left(\cos^2(\frac{1}{2 \pi}) + \sin^2(\frac{1}{2\pi})\right)=2-4 \pi^2$$  But that doesn't make sense since it is negative. Any help would be appreciated


How to solve the following integration?$$\int_{-\pi}^\pi\frac{1}{1+a \cos x}$$

I'm having a trouble with this integral expression:  $$\int_0^{2\pi} \frac{d\theta}{A+B \cos\theta}$$  I've done this substitution: $t= \tan(\theta/2)$  and get: $\displaystyle \cos\theta= \frac{1-t^2}{1+t^2}$ and $\displaystyle d\theta=\frac{2}{1+t^2}dt$ where $\displaystyle \cos^2\theta/2=\frac{1}{1+t^2}$  then the integral becomes:  $$\int\frac{2 \, dt}{(A-B)t^2+(A+B)}= \sqrt\frac{A+B}{A-B} \arctan \left(\left(\sqrt\frac{A+B}{A-B} \right) t\right)$$   However, I'm not sure about the new limits since $\tan$ has period $\pi$ so what I have to do at this point to decide the new limits? And of course if you find some mistake in what I've done before, please let me know!


By default under Bionic Beaver 18.04 LTS the dock is on the left of the screen and I would like to move it either to the bottom or the right of the screen. How do I do this?

Just upgraded from Ubuntu 17.04 to Ubuntu 17.10.  Please help me to shift the side bar (aka Ubuntu Dock) to bottom.   I tried running the following command which used to work with older Ubuntu releases   gsettings set com.canonical.Unity.Launcher launcher-position Bottom   but it's not working.


I clipped a small scene out of a larger orthophoto and the output file is 3 times as big (7.5 GB) as the original tiff-file (2.5 GB). How to get it small while keeping the original resolutuion?

I have a geo-tiff created by Pix4D which is about 375 Mb in file size.   I have clipped it to a smaller area using Qgis 2.8(using Raster ‣ Extraction ‣ Clipper), and the output file is about 900 MB in size.  Why did the clipping process generate such a large file, when the source file was smaller?   How do I run the clipper tool so that it produces a smaller size?


I am new to python and am having some difficulties. How would I make this so that I can round the float(roll)*100 rounded to 2 decimal places.   for x in roll1:         print('%d - %d %f%%' %(x,roll1[x], float(roll1[x])/float(roll)*100))   This is the output currently. I need to make the numbers rounded to 2 decimal places. Thanks!  1 - 1794 17.940000% 2 - 1620 16.200000% 3 - 1620 16.200000% 4 - 1611 16.110000% 5 - 1650 16.500000% 6 - 1705 17.050000%

I want a to be rounded to 13.95.  >>> a 13.949999999999999 >>> round(a, 2) 13.949999999999999   The  function does not work the way I expected.


I have a recipe that calls for 5 leaves of tarragon, how much dried tarragon should I use?

When replacing a fresh or leaf herb in a recipe with the dried or powdered kind, what is the ratio I should normally use for the substitution?  E.g. if the recipe calls for 2 teaspoons finely chopped rosemary, how much dried rosemary should I use?


I have a B1/B2 visa, valid for a 10-year period.   I traveled to the US for the first time in 2016, stayed for four months, and left in August 2016.   I am planning to return in February 2017, just six months after my departure.  I'm concerned about how that will seem when I arrive at the border, and whether I will be questioned about my reasons for returning so soon.  Am I risking losing my visa since I just spent 4 months in the US and am going back so soon?

I hope someone can help me.  I am currently on holiday for 3 months in America under the Visa Waiver Program and would like to stay an extra 2 or 3 weeks. I know I will have to leave the country, renew my visa waiver and then reenter and so wanted to know if I will have an issue reentering.  I will only be out of the country for about 24 to 48 hours, just enough to renew the visa and get on a plane. I understand it is up to the border control person on the day, but does anyone think I will have an issue??


I have a  in play and a  in my graveyard with no other creatures on the battlefield. At the start of my combat, I use the ability of God-Pharaoh's gift to "eternalize" the Myriarch. When it enters the battlefield, what is its power and toughness? Based on the rulings for eternalize, I assume the Myriarch will be a 4/4 with no additional power and toughness (from gatherer, emphasis mine):  The token copies exactly what was printed on the original card and nothing else, except the characteristics it specifically modifies. It doesn’t copy any information about the object the card was before it was put into your graveyard. The token is a Zombie instead of its other types (unlike Zombies created by an eternalize ability) and is black instead of its other colors. Its power and toughness are 4/4. These are copiable values of the token that other effects may copy.  Is this correct? Does eternalize override the variable power and toughness ability of Myriarch?

If I control  and I activate his second ability and target  is the token copy a 4/4 or is it still equal to the number of cards in my opponents' graveyard?


I am trying to include a signature on my cover letter in latex.   I would like to know if it is possible to create a signature in Latex. I am new to latex and I want to be able to create a signature with halohandletter font {Batman}. Can anyone show me how this can be done ?   I apologise I do not have a minimum working example.

Nowadays many job applications are sent in digital form as PDF. We use of course LaTeX to create such. Usually you add a cover letter to your CV and credentials. If you sent this as print-out by classic mail you sign this letter (at least in Germany), but what (and how) do you do for an online application?  I would say either:   leave it empty add your name in the usual font as normal text add your real signature as scanned image add your name in a special font so that it look more like a signature (but you can still see that it isn't a real one)   I'm planning to go with the last method and I'm looking for suitable fonts for it which I can use with PDFLaTeX (XeLaTeX and LuaLaTeX answers are fine too, but will be taken as non-competitive). I would also be happy to get some style guidelines if I should not got with an other method (with a rationale to avoid subjective opinions).    I already had a look at   which is similar but still too different. I don't need or want any rule and the shown font in the accepted answer are looking too real.


I cannot understand why I can't select a group of buttons with Jquery.  This is my HTML (The tbody is built on an ajax call) on the page load.

           Groups

        xxx123	        <button class="btn btn-info delete" type="button" value="xxx123">Delete</button><button class="btn btn-info view" type="button" value="xxx123">View</button>
        // more and more rows omitted

   I'm my javascript file I have (which is placed in document.ready):  $("#tblGroup tbody .view").on("click", function () {     alert("view"); });   I do not see the alert when I click the view button.  However if I type from the console  $("#tblGroup tbody .view")   It will find all of the buttons.    I'm at a total loss why my button click event won't work.

I have a bit of code where I am looping through all the select boxes on a page and binding a .hover event to them to do a bit of twiddling with their width on mouse on/off.  This happens on page ready and works just fine.  The problem I have is that any select boxes I add via Ajax or DOM after the initial loop won't have the event bound.  I have found this plugin (), but before I add another 5k to my pages with a plugin, I want to see if anyone knows a way to do this, either with jQuery directly or by another option.


For some reason the CSS files for my Django webpages won't load in. It originally was loading fine, and changes to the CSS would update accordingly, however often it stops updating the CSS as it is changed, and instead continues loading the previous version of the CSS file. Quitting and reopening the server does not work. The CSS loads in fine on Chrome and Safari, so it can't be a problem with the static path I don't think. Does anyone have any clue as to why this occurs and any way to fix it? Thank you :)

I have noticed that some browsers (in particular, Firefox and ) are very zealous in using cached copies of .css and .js files, even between browser sessions. This leads to a problem when you update one of these files, but the user's browser keeps on using the cached copy. What is the most elegant way of forcing the user's browser to reload the file when it has changed? Ideally, the solution would not force the browser to reload the file on every visit to the page.  I have found  and  suggestion to be useful. It turns out there is a term for this: auto-versioning. I have posted a new answer below which is a combination of my original solution and John's suggestion. Another idea that was suggested by SCdF would be to append a bogus query string to the file. (Some Python code, to automatically use the timestamp as a bogus query string, was .) However, there is some discussion as to whether or not the browser would cache a file with a query string. (Remember, we want the browser to cache the file and use it on future visits. We only want it to fetch the file again when it has changed.)


Can anyone advise how to interpret this resulting residuals vs fitted graph and what may be wrong with the model?

I am observing strange patterns in residuals for my data:   [EDIT] Here are the partial regression plots for the two variables:      [EDIT2] Added the PP Plot   The distribution  seems to be doing fine (see below) but I have no clue where this straight line might be coming from. Any ideas?   [UPDATE 31.07]  It turns out you were absolutely right, I had cases where the retweet count was indeed 0 and these ~ 15 cases resulted in those strange residual patterns.   The residuals look much better now:   I've also included the partial regressions with a loess line.


In a similar vein to , questions from es.SO should probably be excluded from the Hot Network Questions list, at least until a  of handling them can be implemented.

As figured out in  localized SE sites must not be displayed in the HNQ's. But  actually is.        Has to be fixed I guess?


Anime directors plan on making on an anthology film. A newcomer wants to join. Why is that?

In the case of Robot Carnival, Neo Tokyo, Memories and The Animatrix, anime directors plan on making an anthology film, but they hire one who never directs anime. Why is that?


I am pretty new to Latex but I thought it would be better to write my bachelors thesis in latex than in word... its pretty easy to look up the main parts for latex but I'm at my wit's end:  A specific entry in my .bib file results in some problem in in-text citation. Following is my pre amble for the bibliography (I copied it from a friend's template. It should (and does nearly every time except this one) cite and build references in APA-Style   \usepackage[babel=true]{csquotes} \usepackage[style=apa,backend=biber, %minbibnames=5, maxbibnames=5, %mincitenames=1,  %maxcitenames=6,  doi=false, url=false, sortcites=true, natbib]{biblatex}   %\usepackage{apacite} \bibliography{literatur.bib} \DeclareLanguageMapping{ngerman}{ngerman-apa} \DefineBibliographyStrings{ngerman}{andothers={et\ \addabbrvspace al\adddot}} \AtBeginBibliography{%   \renewcommand\finalandcomma{\addcomma}%   \renewcommand*{\finalnamedelim}{%     \ifthenelse{\value{listcount}>\maxprtauth}       {}       {\finalandcomma\addspace\&\space}}} \newcommand*\mcite[1]{\citeauthor{#1} (\citeyear{#1})} %\newcommand*\asdcite[1,2]{(\citeyear{#1};\citeauthor{#2},\citeyear{#2})} %\newcommand*\xcite[1]{\citeauthor{#1} (\citeyear{#1}} %\newcommand*\ycite[1]{\citeauthor{#1}, \citeyear{#1})} \AtEveryBibitem{%       \clearfield{day}%       \clearfield{month}%       \clearfield{endday}%       \clearfield{endmonth}%     }    \renewcommand\maxprtauth{12} \DeclareNameFormat{apaauthor}{%   \ifthenelse{\value{listcount}=\maxprtauth \AND\value{listcount}<\value{listtotal}}     {,~et~al.\addspace\setcounter{listcount}{\thelisttotal}}     {\ifthenelse{\value{listcount}>\maxprtauth\AND\value{listcount}<\value{listtotal}}       {}%       {\ifthenelse{\iffieldequalstr{usere}{unkauth}\OR\iffieldequalstr{usere}{unkauthdate}}%         {\iffirstinits           {\mkbibbrackets{\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}?}}%           {\mkbibbrackets{\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}?}}}%         {\iffirstinits           {\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}}%           {\usebibmacro{name:last-first}{#1}{#4}{#5}{#7}}}}}%   \ifmorenames{\andothersdelim\bibstring{andothers}}{}} \renewcommand\finalandcomma{\addcomma}   Now...I came across a weird error. I use the \citep and \citet options to cite my references in APA-Style either name and year in parentheses or only year in parentheses respectively. The error results when I want to cite a paper from Cohen, XY. First I thought there was something wrong with my bibliography but that wasn't the case.  The error looks like this: when I cite a reference the code generates a citation in APA style that does not contain any first names. But when I want to cite a paper written by an author called Cohen the \citep and \citet options result in compiling the first names into the citations.  As an Example  It was shown by \citep{cohen} that cows don't fly.   would result in  It was shown by M. M. Cohen & Massaro (1993) that cows don't fly.   and not in   It was shown by Cohen & Massaro (1993) that cows don't fly.   with the bibliography entry being:  @incollection{cohen, title={Cows don't fly}, author={Cohen, Michael M and Massaro, Dominic W}, booktitle={Pigs fly}, pages={139--156}, year={1993}, publisher={Springer}, location={Tokyo} }   This only happens if the first name after author={ is Cohen. I tried mixing the order of the names and stumbled upon that fact.   The best solution would be to mix the names up...but that is not the point of the references if this is the first named author.  I hope that someone will be able to help me =)

I had been using bibtex and then biblatex for quite some time. For the newest edition of my book I moved to biber. I happened t notice that firstnames are sometimes generated and sometimes not. Has this been observed by others?   I have tried to make a minimal example but without success. Using the following code, which shows all the commands related to biblatex I have in my preamble I could not get the firstnames to be shown. Even with the stylefile I made for this book (second line) the error did not occur.  I have a dropbox with the latex files for the book available. I can give access to these.   What do you propose?  \documentclass[fontsize=10pt,twoside]{scrbook} \usepackage{hormonbuch} \usepackage[%   style=authoryear%   ,natbib=true%   ,sorting=nyt,backend=biber,doi=false,isbn=false,url=false]{biblatex} \addbibresource{../Literatur/EndokrinologieKundeNourl.bib}  \renewcommand*{\bibpagespunct}{\addcolon} \DeclareFieldFormat{pages}{#1}  \renewrobustcmd*{\enquote}{}  \renewbibmacro{in:}{%       Herbert Voss auf http://tex.stackexchange.com/questions/10682/suppress-in-biblatex   \ifentrytype{article}{}{%   \printtext{\bibstring{in}\intitlepunct}}}  \renewbibmacro*{journal+issuetitle}{%   \usebibmacro{journal}%   \setunit*{\addspace}%   \iffieldundef{series}     {}     {\newunit      \printfield{series}%      \setunit{\addspace}}%   \usebibmacro{volume+number+eid}% %  \setunit{\addspace}%   \newunit}  \renewbibmacro*{volume+number+eid}{%   \printfield{volume}% %  \setunit{\addcolon\space}%   }% % \renewbibmacro*{note+pages}{%   \printfield{pages}%   \newunit} % \begin{document}  \citet{CRT+88,FDe+85} \citep{CRT+88,FDe+85} \cite{CRT+88,FDe+85}  \printbibliography  \end{document}


I'm sure it's a simple question but this is all very new to me and after a lot of internet searching my points are still in the sea!  I have a set of UK postcode data that I have converted into latitude and longitude. I also have a UK counties shapefile.  The code that I have used to convert the latitude/longitude to a geometry point column is as follows:  ALTER TABLE colic ADD COLUMN longlat geometry(POINT,27700); update colic set longlat = st_setsrid(st_point( longitude, latitude), 27700);   And this produces a column that has values as follows (I've only included a couple!):     "0101000020346C000048BF7D1D3867E83FC05B2041F1334A40"   "0101000020346C0000F085C954C1A8F7BFA1F831E6AE954A40"   "0101000020346C000020D26F5F07CEF4BFE3361AC05B504A40"   "0101000020346C00007D3F355EBA49F73FB6847CD0B3614A40"   The .prj from my shapefile is:     PROJCS["British_National_Grid", GEOGCS["GCS_OSGB_1936",   DATUM["D_OSGB_1936", SPHEROID["Airy_1830",6377563.396,299.3249646]],   PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],   PROJECTION["Transverse_Mercator"],   PARAMETER["False_Easting",400000.0],   PARAMETER["False_Northing",-100000.0],   PARAMETER["Central_Meridian",-2.0],   PARAMETER["Scale_Factor",0.9996012717],   PARAMETER["Latitude_Of_Origin",49.0], UNIT["Meter",1.0]]   And I set its SRID to 27700 when I upload it using the PostGIS shapefile uploader.  In PG Admin, when I ask:  select st_srid(geom) from counties limit 1; select st_srid(longlat) from colic limit 1;   I get 27700 for both.  But... when I try any spatial query I get no response, and when I load the layers into QGIS, the point data are off the tip of Cornwall in the North Atlantic, and only represented as one dot on the scale of the counties map.    If I zoom in on them, they are 'there', but just not in East Anglia where they should be!    This is my first attempt at both SQL and mapping - I'm sure there is something really simple that I have missed but I would be so grateful if someone could help me.

I have two Postgres tables with different SRIDs: 4326 and 900913. I want to convert the latter to 4326. I first changed the SRID using:   Select UpdateGeometrySRID('table', 'geomcolumn', 4326).     I then transformed the reference data using:   update table set geomcolumn = ST_Transform (geomcolumn, 4326).    This seemed to work. But when I changed the SRS setting of the relevant layer in TileMill to WGS84, I get this error:      Detected out of bounds geographic extent.     Presumably the transformation didn't work but it's not clear why.


I have a canon EOS Rebel T2i with quite a few EF-S lenses. I would like to upgrade to the new Canon EOS Rebel T6s (or T6si (not sure the difference)). I was wondering if my EF-S lenses would work with the T6s(i) body or not. Thanks.

This is specific to Canon, but what is the difference between EF and EF-S lenses?


I'm having trouble understanding Charles Dickens book called The Haunted House. Could anyone tell me in which dictionary I can find parts I don't understand? Is there a dictionary for nineteenth century literature?

To prevent myself from asking an obvious, silly question multiple times: What are the English language tools you found most useful?  I found  extremely useful for looking up .   Please, one tool per answer.


What do you think about this set?   K = 0 $ \cup$ {1/n : n $\epsilon$ Natural numbers}   It has one limit point which is zero, so it is countable and it is compact. Is this correct?   Also, do you have any ideas of compact sets that come to mind whom you can count there limit points, and they have a countably infinite amount of them?  Let G = 0 $\cup$ {1/n : n $\epsilon$ Natural numbers}   Let {$G_n$} Be a collection of sets Such that N $\cup$ {N + 1/r} For r = 1,2.3.... and N = 0,1,2......   Let me explain, you first start with N = 0. For N = 0 you calculate all the values of r. For N = 0 that will give you a limit point of 0. For N = 1, you do the same, and that should give you a limit point of 1, for N = 2 the same, so on and so on.   I don't know if wrote the proper notation for the set I'm envisioning, but I feel like it gets the job done. What do ya'll think? Also, can you guys think of any other ones?

I searched and found out that the below is a compact set of real numbers whose limit points form a countable set. I know the set in real number is compact if and only if it is bounded and closed. It's obvious it is bounded since $\,d(1/4, q) < 1\,$ for all $\,q \in E.$  However, I'm not sure how this is closed.  Is there any simpler set that satisfies the above condition?  Thank you!  $$E = \left\{\frac 1{2^m}\left(1 - \frac 1n\right) \mid m,n \in \mathbb N\right\}.$$


If we have $$ f(z) = \sum_{n=0}^\infty a_n z^n, $$ How do we show that $$ \frac{1}{2 \pi} \int_0^{2 \pi} |f(re^{i \theta})|^2 \, d\theta = \sum_{n=0}^\infty |a_n|^2 r^{2n}? $$ I can show $ \leq $ by using the triangle inequality but I don't know how to show equality. Your help is much appreciated.

Let $f(z)=\sum_{n=0}^{\infty}a_nz^n$ with radius of convergence equals to $R$. Show that for every $r<R$:  $$\frac{1}{2\pi}\int_{0}^{2\pi}|f(re^{it})|^2dt=\sum_{n=0}^{\infty}|a_n|^2r^{2n}$$  I tried this:  $$\int_{0}^{2\pi}|f(re^{it})|^2dt=\int_{0}^{2\pi}f(re^{it})\overline{f(re^{it})}dt=\int_{0}^{2\pi}\sum_{n=0}^{\infty}a_nr^ne^{int}\sum_{n=0}^{\infty}\overline{a_n}r^ne^{-int}dt= \int_{0}^{2\pi}{\sum_{n=0}^{\infty}\sum_{k=0}^{n}}a_k\overline{a_{n-k}}r^ne^{int}$$  But this is about it. Any ideas?  Thanks!


So I have this video:   I'm wondering, is it possible in a scene to add a water source on top and a rigid-body ball on the floor, and with the correct viscosity and friction between the floor and the ball, would the Blender physics engine by itself be capable of reproducing this effect?  That last part is important. I don't mean if it is possible to reproduce doing the animation by hand, I mean if the physics engine itself is capable of doing the animation just by having the initial parameters.  For this it's necessary for there to be friction due to viscosity between the liquid and the ball, and friction due to surface irregularities between the ball and the floor.  Any comment is appreciated, thanks.  Edit: this question () was posted on 2013, as well as its answer, and I wanted to see if something had changed.

For example, rigid bodies and fluid. I know it's kind of possible by setting the rigid bodies as fluid obstacles, but it's not "true" interaction in that the fluid does not affect the rigid bodies...  By "true" interaction I mean where two (or more) physics systems affect each other simultaneously. For example, with rigid body and cloth, the rigid body affects the cloth but the cloth doesn't affect the rigid body (at least the way I'm doing it), so the rigid body just eventually stretches the cloth to an extreme and falls through...  Are there any ways to achieve this? (for any interaction, not just rigid bodies and fluid)  Or, if not, does anyone know whether there are any plans to implement this sort of feature?  Thanks


I am playing a half-orc fighter level 7 and warlock level 3. When I gain a warlock class level, I will gain an Eldritch Invocation, and I will pick Thirsting Blade. How many attacks can I make, since I have both Thirsting Blade and Extra Attack?

The warlock's Thirsting Blade eldritch invocation cannot be normally used with the (non-warlock) class feature Extra Attack, since both feature explicitly say you attack twice instead of once. But it seems to me that you could use both features (if you have them) when using Two-Weapon Fighting.  Assume your character is wielding two light weapons, one of which is your pact weapon. You take the Attack action on your turn to attack twice with your non-pact weapon using your  class feature.  Then, given the Two-Weapon Fighting rules, you use your bonus action to attack once using your pact weapon this time.  The  rules (PHB p. 195) state:     When you take the Attack action and attack with a light melee weapon that you're holding in one hand, you can use a bonus action to attack with a different light melee weapon that you're holding in the other hand.   But since your have the Thirsting Blade invocation, and you used the Attack action, you get to attack twice with your pact weapon.  The Thirsting Blade  (PHB p. 111) says:     You can attack with your pact weapon twice, instead of once, whenever you take the Attack action on your turn.   Does this combo work within the rules, or is there any interaction I'm not aware of?


I'm trying to make a simple calculator with a graphical user interface; however, I'm having trouble adding two values from the text fields. Each time I try and calculate the values, I receive an exception. Could someone help me out with this? I'm fairly new to java, and I'm open to feedback and suggestions. The exception is down below.  Thank you,  Kyle  public class Calculator extends Application  { private Label firstValue; private Label secondValue; private Label sum; private Button myButton; private TextField textSum; private TextField textFirst; private TextField textSecond;  public String calculation() {     String getTextFirst = textFirst.getText();     String getTextSecond = textSecond.getText();      int total = Integer.parseInt(getTextFirst) +      Integer.parseInt(getTextSecond);     String realTotal = String.valueOf(total);     return realTotal; }  public void start(Stage myStage) {      myStage.setTitle("Simple Calculator");     GridPane rootNode = new GridPane();     rootNode.setAlignment(Pos.CENTER);     rootNode.setPadding(new Insets(30));     Scene myScene = new Scene (rootNode, 400 , 300);     firstValue = new Label ("First Value: ");     secondValue = new Label ("Second Value: ");     sum = new Label ("Sum is: ");      textFirst = new TextField();     textSecond = new TextField();     textSum = new TextField();      textSum.setEditable(false);     myButton = new Button ("Calculate");      rootNode.add(firstValue, 1, 0);     rootNode.add(textFirst, 2, 0);     rootNode.add(secondValue, 1, 1);     rootNode.add(textSecond, 2, 1);     rootNode.add(sum, 1, 2);     rootNode.add(textSum, 2, 2);     rootNode.add(myButton, 2, 3);      myButton.setOnAction(new ButtonHandler());       myStage.setScene(myScene);     myStage.show();    }  class ButtonHandler implements EventHandler<ActionEvent> {     public void handle(ActionEvent e)     {         Calculator finalTotal = new Calculator();          myButton.setText("Calculating");          textSum.setText(finalTotal.calculation());     } }   public static void main(String[] args) {     launch(args); } }     Exception in thread "JavaFX Application Thread"  java.lang.NullPointerException at Calculator.calculation(Calculator.java:22) at Calculator$ButtonHandler.handle(Calculator.java:75) at Calculator$ButtonHandler.handle(Calculator.java:1)

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


How can I check using a script that CD-drive is connected to USB port?  I don't want to allow cd-rom to be used as usb device under any circumstance in my system. Is there a way to check this?

When inserting a USB stick or device to computer, there is always the risk that the device is malicious, will act as an HID and potentially do some damage on the computer. How can I prevent this problem? Is disabling HID on specific USB port sufficient? How do I do that?


#include<stdio.h> int main() {     union emp;     union emp{     int age;     char name[2];     };     union emp e1={512};     printf("%d,%d,%d",e1.age,e1.name[0],e1.name[1]);     return 0; }   Here ive tried to craete a union and initialize its 1st member i.e "int age". As per my knowledge ANSI C compilers support this. My question is why i am getting an output like "512,0,2". If i replace 512 with 513, 514 and 768 i get the following oytputs. "513,1,2", "514,2,2", "768,0,3", Now i can see that the e1.name[0] is storing (the number)%256 and e1.name[1] is storing (the number)/256. It would be greatly appreciated if it is explained that why and how this happens. Thank you all.

Is there any good example to give the difference between a struct and a union? Basically I know that struct uses all the memory of its member and union uses the largest members memory space. Is there any other OS level difference?


I am trying to save bash completion suggestions to use them. So, I am trying to simulate two tabs and pipe the result to something else. I am looking for something like:      $ getCompletions git checkout     master     branch_1     otherBranch     $ getCompletions git checkout | grep '^ma'     master   I am trying to find a solution for an arbitrary command or at least just git.

Some of the git commands have many options, and it would often be useful to search through them for the one I need - I was just looking for the option which controls the TAB width in git-gui, but there are about 200 completions for git config. An obvious workaround is to copy all the completions into an editor and search through them, but I'd rather do  [something] | grep tab   There are no man or info pages for compgen, help compgen doesn't even explain its own options, and there's no auto-complete for compgen (how's that for irony?).  PS:  doesn't work.  PPS: This is not a question about git-gui - The  was elsewhere.  PPPS: This is not about auto-completing commands, only command parameters.


I cd to my '~' directory, then I made a bash_profile with nano ~/.bash_profile with an alias alias test = 'mkdir test' then when i type source ~/.bash_profile it says   -bash: alias: mk: not found  -bash: alias: =: not found  -bash: alias: mkdir test: not found`   Why is that?

I recently installed the apache2 package using the Software Centre, I want to create an alias apacheres which will replace the more cumbersome command /etc/init.d/apache2 restart.  I opened the .bashrc file in my home directory, and it contains the following lines:  # Alias definitions. # You may want to put all your additions into a separate file like # ~/.bash_aliases, instead of adding them here directly. # See /usr/share/doc/bash-doc/examples in the bash-doc package.  if [ -f ~/.bash_aliases ]; then     . ~/.bash_aliases fi   So I created a .bash_aliases file in my home directory, and added only this line:  alias apacheres ='/etc/init.d/apache2 restart'  When I started my terminal, I get this error message:  bash: alias: apacheres: not found bash: alias: =/etc/init.d/apache2 restart: not found   The shell has obviously read the file, otherwise it wouldn't know of its existence. I have checked the directory path and I can find the file apache2 there. What do I need to do to make this alias work?


Using the method of Lagrange multipliers (or otherwise) find the maximum possible volume of a (right circular) cone which can be inscribed in a sphere of radius a.

I checked this  but didn't fully understand it.   I know that the volume of a right circular cone is $V = \frac{1}{3}\pi x^2h$  I know that I must take the first derivative and set it equal to zero, which will find the maximum.   My problem is how to deal with the variable $h$, the height?   How can I rewrite that in terms of $x$ or $r$.      I have tried to implicitly differentiate this equation, but that wasn't helpful for me.


I am trying to use the Overpass Turbo to retrieve from OSM all cemeteries in a given area (say, Carinthia), as well as the municipality (or other administrative unit) each is in.  Getting all cemeteries is easy enough − I made this  (adapted from taginfo) which works fine.  What I am struggling with is to add geocoding details − I want for each cemetery to know the city (or the county, or other adminstrative unit) it is in.  I have been trying to draw from examples on the wiki (particularly ) for this, but could not figure it out.  (Also, if I understood correctly, the is_in operator can only be applied on nodes, and cemeteries can be mapped as nodes, ways or relations)  EDIT:  Building uponh @mmd answer in , I made this  area[wikidata="Q37985"]->.boundaryarea; (   node["landuse"="cemetery"](area.boundaryarea);   way["landuse"="cemetery"](area.boundaryarea); );   foreach(     node(w)->.n;     .n is_in->.a;     area.a[name][boundary=administrative][admin_level~"^[2-9]$"] -> .a;     out center;     convert way ::=::,               ::id = id(),               is_in=a.set("{" + t[admin_level] + ":" + t[name] + "}");     out body;   );   This does not process relations correctly yet though.

I'd like to extract a list of churches from OSM with their name, their coordinates and the name of the lower administrative division they belong to. I managed to get the first ones with:  area["name"="Mayenne"]->.boundaryarea; way(area.boundaryarea)["building"="church"]; out tags center;   I deliberately ignore nodes and relations as they don't seem relevant in this case.  I can't find a way to retrieve the name of the lower administrative division. Is there a way to do it?


\documentclass{beamer} \usetheme{CambridgeUS} \useoutertheme{infolines} \usepackage{tikz} \usepackage{tabularx} \usepackage{ragged2e}    \begin{document} \begin{frame} \frametitle{Introduction}  \begin{itemize}         \item Text:         \break         \begin{itemize}            \item \justify \textbf{What is lorem ipsum}: Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. \break             \item \justify \textbf{why do you use it}:It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).          \end{itemize}         \break         \end{itemize}   \end{frame} \end{document}   I use the package ragged2e to align text. However when I use \justify every item in the list lose the bullet in front of it

I would like to justify text inside an itemize environment with the beamer class. Text appears to be justified by default with the article class, but not with the beamer class.  The following code justifies text left and right:      \documentclass{article}     \usepackage{lipsum}     \begin{document}     \begin{itemize}     \item \lipsum[1-1]     \end{itemize}     \end{document}   The following code does not:      \documentclass{beamer}     \usepackage{lipsum}     \begin{document}     \begin{frame}     \begin{itemize}     \item \lipsum[1-1]     \end{itemize}     \end{frame}     \end{document}   I have tried this:      \documentclass{beamer}     \usepackage{ragged2e}     \usepackage{lipsum}     \let\olditemize=\itemize      \renewenvironment{itemize}{\olditemize\justify}{\endlist}      \begin{document}     \begin{frame}     \begin{itemize}     \item \lipsum[1-1]     \end{itemize}     \end{frame}     \end{document}   but it won't justify text on the right. Any suggestions welcome!


A set $A\in \Bbb{R}^n$ is compact $\iff$ every continuous function on $A$ is bounded. I have a problem proving the direction according to which $A$ is compact. First direction I said: If $A$ is compact, then since it is bounded, so is every continuous function whose domain is $A$, according to Weierstrass. Supposing that every continuous function on $A$ is bounded, assuming by contradiction that there is a set $x_n\in A$, such that $x_n\to x$ but $x\notin A$. For every such $f$, $\lim\limits_{n\to \infty}f(x_n)=f(\lim\limits_{n\to \infty}x_n)=f(x)$ which means I arrive at no contradiction. Maybe it has something to do with the fact that $f$ isn't necessarily defined on $x$ as $x$ is not in $A$? If so, how is it argued? Any help would be much appreciated.(Besides, can you help me with the tags? It is a question from my calculus course, but I am not sure what tag fits the best.)

I need to prove that $K\subseteq \mathbb{R}^n$ is a compact space iff every continuous function  in $K$ is bounded.  One direction is obvious because of Weierstrass theorem. How can i prove the other direction? I tried to assume the opposite but it didn't work for me.  Thanks a lot.


"can be performed at any time", but how quickly can they be used?  Does it mean a spell like  could be used to avoid (for instance) fireball?  Ie   Wizard Bob sees his arch rival Wizard Zob; at long distance, initiative time! Wizard Zob wins initiative and several rounds go by of mage battle. Wizard Zob's next round, he decides it's fireball time! Bob thinks fast and casts emergency force sphere around himself to stop the fireball.   Can Bob do that?  Looking for answers primarily for Pathfinder, but answer for 3.5 as a bonus (if it's different)

As we all know, immediate actions are just like swift actions, but can be performed outside of one's turn.     However, unlike a swift action, an immediate action can be performed at any time - even if it's not your turn.   However, it is still unclear if one can use an immediate action during someone else's action.  For example:  A monster swings at a conjurer.    Can conjurer abrupt jaunt outside monster's reach right after the attack was rolled, thus wasting an attack?  What about right after the damage was rolled, but not yet applied?  What about casting celerity and baleful transposition on yourself and monster's ally so the monster would hit his ally, given high enough attack roll?   Let's complicate a bit with a complex, full-round action on a monster's side.    Can one use immediate action in between attacks in full attack? What about after movement part of a charge?


Please no hate for lack of knowledge:  I am somewhat fascinated with the subject of black holes. However, I do not understand a concept which is constantly attributed with black holes: that a black hole can attract light and therefore light cannot escape it. What I don't understand is, how? Gravity, as far as I understand, only attracts matter. However, light has no mass (right?), so how can a black hole attract light?

Light is clearly affected by gravity, just think about a black hole, but light supposedly has no mass and gravity only affects objects with mass.  On the other hand, if light does have mass then doesn't mass become infinitely larger the closer to the speed of light an object travels. So this would result in light have an infinite mass which is impossible.  Any explanations?


If i use one ground wire for two outlets, will my equipment get damaged?  Here is what I want to do:     If my air conditioner sends voltage through the ground wire shared with the outlet powering my computer, would my computer short out and or get damaged?

Can a single ground wire ground 2 outlets? I don't want to run another wire through the wall, if I can run a wire to that other ground wire (and have 2 outlets being grounded by one wire).  In other words,     I also have concerns about equipment protection.  Will adding a ground wire be worse for my electronic equipment in any way?   If I am having problems with equipment taking damage, will this help?


I've been writing a little program for my mother, in which I have to display a list of prices based on the work they ask her to do. Since she needs all the decimals in the price I set the Cell Format on Excel to have 7 decimals. The problem is that debugging my program, when I go reading a cell with a price in it, it adds several zeros after the number which are not actually written on the cell. I can't understand what's going on and I'm using OpenOffice saving the file as an Excel 97/2003 file, so as "listino.xls". Here's the code I'm using to get the title of the work and the price:  public Lavorazione[] creaLavorazioni(Lavorazione[] lavorazioni){ //create Work      char[] stringa = new char[8];     double prezzo = 0;     String prezzostringa = "";      for(int righe=1;righe<workbookR.getSheet(0).getRows();righe++){ //until the rows of //the excel table end          try{             lavorazioni[righe-1].setLavorazione(l.LeggiCella(listino, 0, righe));             stringa = l.LeggiCella(listino, 2, righe).toCharArray();             for(int i=0;i<stringa.length;i++){ //getting number and switching "," //with "."                 if(stringa[i]==',')                     stringa[i]='.';                  prezzostringa += stringa[i]; //Creating the price string             }              prezzostringa=prezzostringa.substring(0, 8); // deleting extra zeros, just //in case             prezzo = Double.parseDouble(prezzostringa); //casting to double             lavorazioni[righe-1].setPrezzo(prezzo); //setting in lavorazioni.prezzo          }catch(Exception e){             System.out.println("è successo qualcosa in creaLavorazioni!");         }         prezzostringa=""; //resetting for the next cycle     }      return lavorazioni; }   the class Lavorazione is made by me and it's this:   public final class Lavorazione {  private String lavorazione; //name of the work to do private double prezzo; //price of it  public Lavorazione(String lav, double costo){     this.setLavorazione(lav);     this.setPrezzo(costo); }  public String getLavorazione() {     return lavorazione; }  public void setLavorazione(String lavorazione) {     this.lavorazione = lavorazione; }  public double getPrezzo() {     return prezzo; }  public void setPrezzo(double prezzo) {     this.prezzo = prezzo; }   So it just has the name of the work and the relative price. In a few words, when there's "0,05423" in the cell, it writes "0.05423000000000001". Can anyone help me about this? Is using the java.util.Locale a good idea? If you need more info, ask me please.  EDIT: I'm using the jxl api.

double r = 11.631; double theta = 21.4;   In the debugger, these are shown as 11.631000000000000 and 21.399999618530273.  How can I avoid this?


Problem:  Suppose $\sum_{n=0}^{\infty} a_n$ converges absolutely and $\sum_{n=0}^{\infty} b_n$ converges. Give an example where the Cauchy product, defined as $\sum_{n=0}^{\infty} c_n$ where $c_n=\sum_{k=0}^{n} a_k b_{n-k}$, does not converge absolutely.  Question:  I have been scratching my head over this for a while. What would an example be?

Give an example of convergent series $\sum_{n=0}^{\infty}a_n$ and $\sum_{n=0}^{\infty}b_n$ whose Cauchy product diverges.   So at least one series must not be absolutely convergent, since if both are absolutely convergent then the Cauchy product absolutely converges. I'm thinking about the sequence $\{a_n\} = 1, -1/2, 1/3, -1/4, \ldots$, but it seems hard to find the Cauchy product.


Sometimes one writes $i^2=-1$ to characterize the imaginary number and sometimes as the root of $-1$. So when I resolve the first equation, I get for the imaginary number two roots of $-1$ and thus two complex numbers. I am confused.   Is it a question of definition or are the both definitions the same?  Thanks for your comment.

Suppose now we are trying to explain to students who do not know complex numbers, how do we distinguish $i$ and $-i$ to them? They will object that they both squared to $-1$ and thus they are indistinguishable. Is there a way of explaining this in an elementary way without go into introductory things in complex analysis?


Is it possible to run two instances of Minecraft and have two players on the same world on the same PC with no internet connection? Does anyone know how this could be done. I have tried to run Minecraft twice but there was just one player not two.

I just bought Minecraft. Now, my brother wants to play with me but my Mom doesn't want to buy another. We use the same Wifi network. Can we do this?


I just gave this command by accident   mv *   while I was in a directory, needless to say that the content of my dir is gone and I have almost no hope to recover it, luckily it wasn't something relevant, but I'm surprised that mv accepts 1 argument and it also does some business with a simple * .  What does this command do ?  I'm under Ubuntu with bash.    EDIT:  given <rootName> as the directory where you are in when you give the mv * command, I can confirm that you should end up having another directory with the same name inside your root, something like <rootName>/<rootName> .  The problem now is that I already trashed my <rootName> without caring too much about the its destiny, so I can't say what's inside <rootName>/<rootName>, but I think that the logic of the given explanation is pretty clear and I can easily imagine that all my files went there .

I accidentally forgot to specify destination before hitting the Return key. Where does mv ./* without specifying destination move the files and directories under current directory to?


I have a class like this:  class example { public:     static void setStaticVar() { example::var = 1; }; private:     static int var; };   But it gives me linker errors and I have no idea why. I want to store some data in the variable that is the same for every instance. That's why I want to use a static variable instead of an instance variable (with an instance variable I would store the same data in every single instance of the class which is a waste of memory).  How do I do this?

What is the best way to initialize a private, static data member in C++?  I tried this in my header file, but it gives me weird linker errors:  class foo {     private:         static int i; };  int foo::i = 0;   I'm guessing this is because I can't initialize a private member from outside the class.  So what's the best way to do this?


In first order logic, can an argument that has a conclusion that is necessarily false (e.g. It is raining and it is not) possibly still be valid?

I have an argument with the conclusion: 'The sky is blue and it is not the case that the sky is blue'.  Without knowing the premises of this argument, am I right in saying this argument is invalid since the this conclusion is necessarily false?


I want to edit the screen which is displayed when windows 8 (starts) loads (/loading).   As for now it has the Toshiba logo, I want my custom logo or the windows default logo.  I have found that UEFI has something called "Boot Graphics Resource Table" and that it overides the default logo if there is a image present ()  How can I edit the logo stored in UEFI firmware or Boot Graphics Resource Table?  if it's in the "bootres.dll", which does UEFI use? My disk (spread across a few system/usefi/windows/etc partitions) has around twenty bootres.dlls.  The bootres.dll is signed by Microsoft, but I don't have to worry because I can sign the file I edit myself with my own certificate.

I know HP, Lenovo, Dell, etc. change the Windows 8 boot logo to match their logo. I would like to do that for a custom-made computer that I built running Windows 8. I'm not refering to the BIOS screen since that can't be changed easily. I'm talking about the logo that appears while Windows 8 is loading. For those of you that don't know, added in Windows 8 was an option for OEMs to customize the boot screen but I don't know where it is.


i try to allocate a char array with malloc but the size is always "8" : char *d = malloc(2356 << 1); printf("size of *d: %d\n", sizeof(d));  output: size of *d: 8  char *d = malloc(2356 * sizeof(*d); printf("size of *d: %d\n", sizeof(d));  output: size of *d: 8  char *d = malloc(2356 * sizeof(char)); printf("size of *d: %d\n", sizeof(d));  size of *d: 8  Please help me, what's is wrong with my code? Thanks!

First off, here is some code:  int main()  {     int days[] = {1,2,3,4,5};     int *ptr = days;     printf("%u\n", sizeof(days));     printf("%u\n", sizeof(ptr));      return 0; }   Is there a way to find out the size of the array that ptr is pointing to (instead of just giving its size, which is four bytes on a 32-bit system)?


I've done the research, I've looked up as many other solutions as I can but as the fact this can be described as nothing but a "render issue" most results are of people with vastly different or common mistakes. The issue looks like this:  This only happens when attempting to preview render, or render, normal solid or wireframe views are fine, this happens in both Cycles and Eevee with the same outcomes. I have been actively using blender since 2015, and I have came across issues similar to many times but they were simple enough to fix, and worst comes to worst, you could've just reset or reinstalled, I've done that, no luck, additionally it is not my .blend, even a new start up file from a fresh install will also do this.  I've not been able to fix it, but this only started happening a couple days after I updated my graphics card drivers, so that's my assumption as to why, later I'm going to rollback drivers as a final option. For now, I post this in case any one else comes across this issue, and hopefully to see if I can mark it down as a known issue. In case you're having the same issue, my specs are as follows: Windows 10, 16gb ram, AMD R9 390, AMD Ryzen 7 2700x

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


I have this dictionary:  {'id': 'centos7', 'remoteVersion': '7.6'}   and this one:  {'id': 'centos7', 'localVersion': '7.5'}   I'd like to get:  {'id': 'centos7', 'remoteVersion': '7.6', 'localVersion': '7.5'}   Is there a pythonic way to do it without having to iterate over all the items?

I have two Python dictionaries, and I want to write a single expression that returns these two dictionaries, merged (i.e. taking the union).  The update() method would be what I need, if it returned its result instead of modifying a dictionary in-place. >>> x = {'a': 1, 'b': 2} >>> y = {'b': 10, 'c': 11} >>> z = x.update(y) >>> print(z) None >>> x {'a': 1, 'b': 10, 'c': 11}  How can I get that final merged dictionary in z, not x? (To be extra-clear, the last-one-wins conflict-handling of dict.update() is what I'm looking for as well.)


I have a custom collection that stores compressed data.  How can I easily get the size in KB or MB of the collection?  I want to see how efficiently my data is being stored, and the effect of compression on some of the data.

I have an application that reads a CSV file with piles of data rows.  I give the user a summary of the number of rows based on types of data, but I want to make sure that I don't read in too many rows of data and cause OutOfMemoryErrors.  Each row translates into an object.  Is there an easy way to find out the size of that object programmatically?  Is there a reference that defines how large primitive types and object references are for a VM?  Right now, I have code that says read up to 32,000 rows, but I'd also like to have code that says read as many rows as possible until I've used 32MB of memory.  Maybe that is a different question, but I'd still like to know.


In some ICs the pin numbers are not in proper order. For example, in msp430x12x2 series (following pic).   In the pic, why don't P2.0 be available at pin 20 (or adjacent to P1.0 ??)  Why is that few pins of both ports P2 and P3 are on either sides of the IC?

Simple question, the curiosity is killing me. Why do microcontrollers (and other IC also, like RAMs) have pins not grouped together?   Like in STM32, for example you have portA and it has 8 bits on one side of IC and the other 8 bits at the opposite corner of IC... Why? It make routing PCB much harder. What is the reason or purpose of such alignment? Why couldn't they put it next to each other? And why do 32-bit uCs (like STM32) have 16-bit wide ports, when they could have 32-bit wide?  The same goes with RAMs - address pins and data pins are scattered almost randomly over the IC. Why?  Inside the IC there are plenty of routing layers, so what's the reason they couldn't add one more to group pins in some logical order?


I'm asking my question here because I can't find an answer anywhere else and the Ubuntu forums have not helped at all.  I am running Firefox and Ubuntu 11.04 on a Dell Dimension 9200. Everything was working fine up to the point where I opened a file in Firefox...  I downloaded several file using Firefox 4.01. While downloading the files Firefox opened the small Downloads browser window as is normal. I then right-clicked on a PDF file and chose Open with Okular. The file did not open. I did a right-click on the same file and chose Open Containing Folder. This failed as well.  The problem I now have is every time I try to open anything from the Firefox Downloads browser window it tries to open it with Okular. I also cannot right-click the file and use Open Containing Folder because it also tries to open in Okular. Everything now tries to open in Okular. What is stranger still is that now if I try to open any of my folders fro the Ubuntu Places menu (such as Home Folder, Videos, Pictures, etc.)  they all try to open in Okular. None of them actually open and all I get is the following error message:     Failed to execute  default file manager. Failed to execute child process " /user/bin/okular"   I have uninstalled and reinstalled both Okular and Firefox. I even deleted all of the Firefox preference files and I still get this error message.  I am also wondering if it may be that my Kensington Exper Mouse trackball driver/software has associated all of these actions with the right-click on the mouse (that is, everything that happens with the right-click tries to open in Okular).  Any suggestions on how to correct this problem?

No matter what changes i make to file associations (actions) in the 'Applications' tab in Firefox, they're totally ignored. For example, i set .wmv and .avi files to open with 'smplayer' but when i download a file and double-click on it (through the 'Downloads' window), it keeps opening with Totem player.    The default file associations through nautilus ('open with' tab) work fine, i.e. i've set smplayer as the default player and when i double-click a video file it open correctly.  I've tried to delete and recreate mimetypes.rdf but that didn't help.  Any ideas on what else should i check?


Is there a way from a node--'type'.tpl.php template to remove the image style of an image field?

I need to print individual fields from the $content variable in node.tpl.php file in separate div tags. How do I do that and how do I find out what the field's names are?


For example, when asked "What did you put in your tea?"  A normal response might be "Honey."  A ______ response might be "The sweetest honey, from the greatest of flower orchards.  I could literally taste every sweet petal of the flowers that became the honey comb.  The flavor began as a light sweetness and then crescendo-ed into a grand orchestration of savory, blissfully sweet, yet earthy delights! I became enraptured and clenched my fists, looking towards the sky and exclaiming, 'WWWOOOOOOOWWWWW!!  That's some great honey!'"

Example 1 - When reviewing résumés I don't want someone to use 1.5 pages to describe one job.   Example 2 - When a person uses excessive description to answer a simple question.


Two of my independent variables are correlated with the dependent variable but in multiple regression they turned out to be insignificant predictors of the same.   Is it possible? and how to report this difference in data interpretation?

My multiple regression analysis model has a statistically significant F value however all beta values are statistically non-significant.   All the regression assumptions are met. No multicollinearity was found. Correlations among all predictors are all less than 0.60.   What else might be the cause of the insignificant predictors?


I'm trying to think of this word that is similar to a shibboleth but slightly different.   It's generally a question asked to someone to indicate something deeper.   For example, if you wanted to know if someone was telling the truth you could ask them a more general question. E.g. If you were at this location, then you should know what color the door is. It's not only used in interrogations but is used more widely.   Another example, if you wanted to know which political leanings someone had, you could has them a question on a specific issue which you could then infer more about without specifically asking.   There is definitely a specific term for this that is on the tip of my tongue and driving me crazy because I cannot remember it! Anyone know what I'm talking about?

I came across a phrase for a type of question which is designed to discover someone's religious background, particularly in the context of sectarianism and divided societies but can't for the life of me remember it.   For example, if you are in Scotland and I ask you what football team you support, that may reveal your religion. Or in N.Ireland, if I ask what school you attend, likewise that may do the same.  It's like a 'veiled question' only that's not the term I'm looking for. Any help appreciated.  I've a feeling that the second part of the phrase is (question) as in, a INSERT TERM question, but not 100% sure.


I'm trying to create multiple objects from user input from a Jframe form. I've seen many posts on here on how to do this with the console, which all the answers end up being put in a loop; however none asking how to do this from a Jframe form.        private void CreateAccount() {     String selected = UserSelectList.getSelectedValue();     String setName = nameTboxSet.getText();     String setType = UserTypeBoxSet.toString();                  if ("user1" == selected) {user1.setName(setName); user1.setUserType(setType);}     else if ("user2" == selected) {user2.setName(setName); user2.setUserType(setType);}     else if ("user3" == selected) {user3.setName(setName); user3.setUserType(setType);}     else if ("user4" == selected) {user4.setName(setName); user4.setUserType(setType);}     else if ("user5" == selected) {user5.setName(setName); user5.setUserType(setType);}     else if ("user6" == selected) {user6.setName(setName); user6.setUserType(setType);}     else if ("user7" == selected) {user7.setName(setName); user7.setUserType(setType);}     else if ("user8" == selected) {user8.setName(setName); user8.setUserType(setType);}     else if ("user9" == selected) {user9.setName(setName); user9.setUserType(setType);}     else if ("user10" == selected) {user10.setName(setName); user10.setUserType(setType);} }   Above is what I have currently come up with, however honestly i dont think a list is necessary, i've tried many things to try and figure out how to get this work.

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


In most IDEs, you can jump to the implementation of a method by only pressing ctrl and click on it, for instance, if I want to see the implementation of method() from X.method();. My question is: What if I want to do the reverse! In other word, from the method signature, is there a way to identify the original caller?   The reason of this question is because I am currently studying a huge project that includes too many classes and packages and sometimes I want to track back the original caller of a specific method.  Thank you

Is there a shortcut key to bring up the call hierarchy of a method inline with the code, in the quick menu format, rather than bringing up the call hierarchy panel?


When I am playing the pewdiepie's game, I already reach the level 11 of the game and suddenly I decided to restart my phone due to the laggy thing of the phone, then when I try to open it up again (the app) I didn't see the level 11 game that I played before, it starts again in the beginning. What should I do and why does this error happens?

I did one of the following and can't play PewDiePie's Tuber simulator with the progress linked to my account:   I logged out and can't login I logged out and tried to login in another device I tried to login on a second device without logging out My device broke and I can't login from another one I restarted my device / reinstalled the game and my progress didn't save   And possibly even:   I don't know how to login I forgot my login name and password   How can I fix each of these problems, and can I prevent them somehow?