I was trying to upgrade the system but every time its get failed on the Firefox. Even after the error i have tried Sudo Apt-get update then Sudo Apt-get upgrade but same error. Please kindly help me to fix it. Thanks in advance.


I have problem with a simple cube. When i zoom at max in there is that issue, and i dont know what is the problem and even what title to set to this question.


Turtles won't go back to home beach to lay eggs

I've been trying to obtain some turtle eggs (got silk touch on my pickaxe) to get them at my home base for my home beach, however, I keep feeding the turtles sea grass, one does get fatter and I get the XP but whenever they swim off and I follow them (and I've followed several for over an hour) they do nothing but swim aimlessly, and sometimes in circles.. it's not an area I've been before so I haven't destroyed anything and they're free to go as they please.. can someone tell me what I'm doing wrong? It's super frustrating~


Prevent the possiblity of writing data to an unmounted mount point directory

I have an Ubuntu server where I'm automounting an external hard drive each boot.  To do this, I've created an empty folder on the root partition, and the drive gets mounted "inside" this folder.  However, what if I perform a backup to this path when the drive isn't properly mounted? The backup would instead fill up my root partition!  I can ensure that the drive is mounted each time by performing:  sudo mount -a   ... before each backup.  However, what are the best practices to ensure that data is never written to the empty mount-folder (except when the external hard drive is truly mounted)?  Can this be solved without scripting? Say with permissions for example? What are the best practices?


Encrypt Symmetric and Decrypt Off-Platform

I have been asked to encrypt a URL parameter for a project that sends the customer to a non-marketing cloud corporate site. Encryption is easy enough:    set @encryptedString = EncryptSymmetric(@string, "AES", @null, @password, @null, @salt, @null, @vector)   set @encodedEncryptedString = Base64Encode(@encryptedSring)   However, the website developers are having some trouble decrypting the encoded and encrypted string. Given the password, salt, and vector, how can we decrypt this string? Can someone point me to some documentation that would describe the process?


Cannot launch Minecraft: CertificateNotYetValidException

What should I do when my Minecraft Launcher 1.3.11 wouldn't log me in? The console output is:                                              Sorry, but we couldn't connect to our servers. Please make sure that you are online and that Minecraft is not blocked. (CertificateNotYetValidException:NotBefore:Tue Apr 08 20:47:05 CST 2014)


How to prove that the center of the dihedral group $D_{2n}$ is $\{1,r^{n}\}$ and the center of $D_{2n-1}$ is $\{1\}$?  I don't know how to prove it in this general case.


Is there any way to chat over network in Linux 5.5 version like gnome meeting in Linux 3.5? I'm using Ubuntu 14.04.


Chrome can't connect to internet (but other browsers can)

All of a sudden a couple days ago, my Chrome browser (v. 37, on Win7 desktop) stopped working. It just displays the "Google Dinosaur" with the message "Unable to connect to the Internet" (Error code: DNS_PROBE_FINISHED_NO_INTERNET). However, IE and Firefox have no problems. Also, another computer on my home network has no problems with Chrome, which rules out any router issues. I have tried:   rebooting the computer  (deleting all Content &  Cookies; restoring all default browser settings) launching Chrome , as well as in incognito mode  uninstalling and re-installing Chrome temporarily disabling my virus protector (Microsoft Security Essentials) typing in IP addresses directly Command Prompt (Run as Admin):  netsh winsock reset (+ Restart)  (in chrome://net-internals/#dns) growling fiercely at the computer   Nothing helped. (Except the last one, which made me feel slightly better, but didn't resolve the issue). Any other suggestions?  UPDATE: I just realized that I can't even access my router using Chrome (typing the direct IP address), although, again, IE and FF have no problems there either.  UPDATE #2: After following the suggestion to , the cache list began populating with several entries (all **.google.com sites) with this note in the Address field: error: -137 (ERR_NAME_RESOLUTION_FAILED) (a problem which was discussed, though not solved, ). I assume it is all part of the same underlying problem.     UPDATE #3: As @FredsBend's link pointed out, this is a known (and apparently widespread) issue that is being tracked and investigated by the fine folks at Chromium. Star the bug at  to get notified of a fix.


How do I check to see if a value is an integer in MySQL?

I see that within MySQL there are Cast() and Convert() functions to create integers from values, but is there any way to check to see if a value is an integer?  Something like is_int() in PHP is what I am looking for.


Shell command for outputting absolute path of binary

Is there a shell command for outputing absolute path for specified program? I'd like to know where executable binary file is.


Using existing Boot Camp partition with Parallels

I am thinking of buying the latest version of Parallels, version 6, to run on my shiny new iMac. I already have my drive partitioned to use Boot Camp with Windows 7 and everything runs smoothly, but I like the idea of being able to load up Windows to do quick testing of things (i.e. test something on IE8, or a quick compile in Visual Studio) without having to reboot my whole computer and interrupt my workflow.  Are there any gotchas or known problems with installing & using Parallels with an existing Boot Camp partition?


How do I use the repeated squaring method to calcualte 2^176 (mod 177)? I'm not sure, but is there something about the fact that 177 is 1 greater than 176 that makes this a problem?


Correlated features produce strange weights in Logistic Regression

I have a data set with highly positively correlated features that I'm classifying with LR. AFAIK correlated weights are not a problem in the same way they are in Naive Bayes - overcounting will not occur with LR.   The strange things that I'm seeing is that some of the highly correlated features assume opposite weights: feature A might be highly positive and feature B highly negative, though not as much. Is this a symptom of something going wrong with optimization or is this expected (a priori I expect A and B to be positive class indicators)


How do you say to someone that you will reuse a sentence you've just heard from them?

How do you say to someone that you will reuse a sentence (or a joke) you've just heard from them, as-is, because you liked it a lot ?   In Italian we say "Questa me la rivendo", that translated is "I'm gonna resell that one" (ri-vendo / re-sell is the idiomatic part, the other words could be recombined / replaced).  I can't find anything in the web, so... what is the English version ?


I am trying to create a thread for a specific task to run in another class. The thread is starting the task but when I try to stop the thread, it is not stopping. The thread continues till the loop. Could you please help me out.  Thread Class:  package com.development; import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; public class ThreadExample extends JFrame {     MyThread mt;     Thread th;     ThreadExample(){                 JPanel p1 = new JPanel();         p1.setPreferredSize(new Dimension(400,400));         JButton b1 = new JButton("Start");         JButton b2 = new JButton("Stop");         b1.addActionListener(new ActionListener() {             @Override             public void actionPerformed(ActionEvent arg0) {                   mt = new MyThread();                   th = new Thread(mt);                  th.start();             }         });         b2.addActionListener(new ActionListener() {             @Override             public void actionPerformed(ActionEvent e) {                 th.interrupt();                            }         });         p1.add(b1);         p1.add(b2);         this.getContentPane().add(p1);         this.pack();         this.setVisible(true);     }     public static void main(String arg[]) {         ThreadExample mt = new ThreadExample();         mt.setVisible(true);     }     public class MyThread implements Runnable{         private volatile boolean runnable=true;         DisplayMsg dm = new DisplayMsg("Cycle");         @Override         public void run() {             while(!Thread.currentThread().isInterrupted()) {             // TODO Auto-generated method stub                dm.show();                              }             }     }     }   DisplayMsg class:  package com.development;  public class DisplayMsg {     private String dispMsg;      private boolean runnable;     DisplayMsg(String dispMsg){         this.dispMsg=dispMsg;     }     public void show() {         for(int t=0;t<100;t++) {                 try {             System.out.println(dispMsg + t);             Thread.sleep(1000);         } catch (InterruptedException e) {             // TODO Auto-generated catch block             e.printStackTrace();         }         }     }    }


Since Newtonian gravity is analogous to electrostatics shouldn't there be something called negative mass? Also, a moving charge generates electric field, but why doesn't a moving mass generate some other field?


How to use GROUP BY to concatenate strings in MySQL?

Basically the question is how to get from this:   foo_id   foo_name 1        A 1        B 2        C   to this:   foo_id   foo_name 1        A B 2        C


$\mathcal N (A):=\mathcal P(A)\setminus\{\varnothing\}$ notation

Define $\mathcal N$  $\mathcal N (A):=\mathcal P(A)\setminus\{\varnothing\}$  Does $\mathcal N$ has a special name and standard notation?


Does a froghemoth's grapple attack prevent characters attacking it?

The froghemoth from Volo's Guide to Monsters has a tentacle attack that can grapple a target from 20ft away. Grappling means that a targets speed is reduced to 0. Does that mean that characters cannot attack the froghemoth with melee attacks if they are 20ft away and grappled?


Gmail conversation view but how do I prevent it for a specific email?

Say I have a CRM system which sends 20 emails to a single gmail account.   When sent all 20 emails come to Gmail inbox as a "Conversation" since they are coming from a single email.   I can switch off conversation view in Gmail settings to prevent this from happening.   But how do I do it so say if I sent 20 emails at once from my CRM systems email (e.g: admin@somedomain.co.uk they get delivered separately but without SWITCHING OFF the conversation view. So it works for other emails but not the CRM systems email.


Overlap Congratulations block by profile tabs


When is the Pokemon from an egg determined?

Is the Pokemon that will hatch from an egg determined when the player first obtains the egg from a Pokestop, or when the egg hatches?  It seems like it would make more sense for the Pokemon to be determined as the egg is hatching so this information does not need to be stored, but I have observed that eggs from Pokestops in more populated areas yield better Pokemon than those from Pokestops in smaller towns. Does anyone have any thoughts on this?


Exact bijection to prove rationals are countable

It is a well-known fact that the set of rationals $\mathbb{Q}$ is countable. The proof for $\mathbb{Q^+}$, the strictly positive rationals, is the classic "snaking" pattern detailed in a bunch of textbooks and internet sources, e.g . ProofWiki has 4 (!) different proofs outlined , but the proofs of (2), (3) and (4) all assume proofs that the cartesian product of countable sets is also countable, or that the union of $k$ countable sets is also countable. My Discrete Math class will not have been exposed to those facts at the time that I discuss the countability of $\mathbb{Q^+}$, whereas proof (1) is an informal, non-rigorous proof of the "snaking" pattern which is not particularly satisfying to me (or to my best students).  What I'm interested in is a mathematically accurate characterization of the "snaking" pattern; i.e I'm looking to find the formula $f(n)$ for a bijection $f$ from $\mathbb{N}^*$ (strictly positive integers) to $\mathbb{Q^+}$.


Let $N$ normal in $G$ such that every subgroup of $N$ is normal in $G$ and $C_G(N) ⊆ N$. Prove that $G/N$ is abelian.

Let $N$ normal in $G$ such that every subgroup of $N$ is normal in $G$ and $C_G(N) \subseteq N$. Prove that $G/N$ is abelian.  I tried to show that the commutator subgroup of $G$ is present in $N$ but was unsuccessful.


General Rules for Creating Abbreviations

Can you create an abbreviation for any word that has no commonly accepted abbreviation simply by dropping some or all the vowels (i.e., restore:  rstr or restr; replace:  rplc or replc)?


How to grasp the limits of these two integrals?

I find some difficulty in understanding the limits of the two integral below (on Page 27 of Peskin & Schroeder's Quantum Field Theory):  $$D(x-y)=\frac{1}{4\pi^2}\int_m^\infty d E \sqrt{E^2-m^2}e^{-i Et}\sim e^{-imt}|_{t\rightarrow \infty},$$ where 4-vector $(x-y)$ only have time-component, space ones vanish (I omitted one step on the above deduction, because I don't think it's the main purpose here); $$D(x-y)=\frac{-i}{2(2\pi)^2r} \int_{-\infty}^\infty dp\frac{p e^{ipr}}{\sqrt{p^2+m^2}}\sim e^{-mr}|_{r\rightarrow \infty},$$ where in the later correlation function, we set $\vec{x}-\vec{y}=\vec{r}$, and time-component of $x-y$ vashnies.   My only question is how to get the intended approximation above?  If you have some time, please help me out, because I have run into these kind of asymptotic approximations many times and don't know how to deal with it.


Book series set in Celtic times in which a boy talks to a wolf

As per the title, I remember getting about half-way through the first book of the series, which has the following points as far as I can remember (some may be erroneous):   I think there was around eight books in the series The protagonist is a young boy who has befriended a wolf He commands it with a whistle which is ultrasonic (but he doesn't know that) He makes whistles out of sticks, and discovers he can speak to wolves when he makes one too small (the wolf can hear it) I think the narrator is third person, but takes the perspective of the boy and the wolf alternately He travels to a village, possibly after his father dies The villagers are afraid of this wolf-boy combo, but an elder of the village remembers a prophecy that one day someone would come who would speak with the air I think there was some rite involving fire, which the boy overcomes The version I read was paperback, and about 3cm thick I read it at around 2009, and it was a relatively new book. Published since 2000 at a guess It was set in Celtic (or around that time) Britain I think the audience was young adult Originally the boy and his father lived in a cave I think he calls the wolf 'wolf' (imaginative, I know) There's a few references to animal skins. Possibly his father was a trapper I think he was fairly intelligent - using the phosphorous content in evaporated urine to create a flash in a large fire in the centre of the village (which was another part of the prophecy) The prophecy had at least two defining points, and then a promise to save the village The wolf disappears for a while as he goes to the village, and he blows his whistle to call it


How much longer will my 10 year old frame last?

My friends say it will last forever, and not to worry about it. Online results show anywhere from two years to 25. I have no clue what to expect!!  Let me give some context. I bought a decade old Specialized Epic Comp for about $550. There are no real problems with it. I needed to bleed brakes and replace the rear wheel, but that's beside the point.  The m5 alu frame shows no signs of fatigue (eg, no cracks, dents, etc). Based on what the previous owner told me, I calculated that he has probably rode about 45 000 km on this bike. Note that this an XC bike so I don't assume that there would have been much opportunity to abuse the frame.  So with all of this in mind, can anyone give me a rough estimate of how long this 10 year old bicycle frame might last?  Sorry if this question is too vague/specific or already answered to a degree. Im new to this forum 😀.


Does there exist a nonzero $R$-module $M$ so that $M \cong M\oplus M$, where here $R$ is any ring with unity?  I'm not sure if this is true; I don't think it's true but I can't prove that. Clearly $M$ must be infinite for this to be true.


How to extract module from git history to new repo

So I have this big project where I wrote a module. It's encapsulated from the other files and I'd like to extract it to an entirely new repo so I can distribute it, preferably while maintaining it's history. project folder | fileone.code | filetwo.code | module folder | | moduleindex.code | | modulefeature.code | | modulefeaturetwo.code | someotherfile | entryfile.code  Basically how to I cut just everything in module folder and all of the commits that include changes to module folder into a new repo? I assume it involves some sort of git cherry-picking but I don't know how to cherry-pick only changes to a specific file from a specific commit, but I can't find the right guides. Thoughts?


Create own commands for mathematical article. (E.g. Theorem, Proof, Colloral etc.)

si I'd like to have something like:  Theorem 1.1  -----This is some nice Theorem  -----Very nice indeed  Whereas ----- are white spaces. I'll have several such "blocks", like e.g. "Theorem"; "Corrollar", "Prove", "Lemma" etc.  I'm wondering how I can do that in a good practice way.


What is the easiest way to fix a mixup of 32-bit and 64-bit?

I have a machine which I have accidentally install 32-bit 12.04 LTS on.  (Yes, accidentally. I can't recall how I managed that.)  What is the easiest way to fix this? Mucking about with the kernel files or axing it with a reinstall?  Is it possible and safe to have a dual boot of 32 and 64-bit 12.04 LTS?


How to get notified about new questions on tags in new UI?

There will be a  for watching tags, but until that's implemented, I seem to not be able to follow tags the old way. Since that's the only way that currently sends out mails, it should still be possible. But how to do it?


Regression for looping (circular?) variable

I am trying to calculate a regression curve for a dataset, where my independent variable ranges from 0 to 1, but 0 is equivalent to 1. In other words, my independent variable loops around. Therefore, I would expect the regression curve at 0.1 to be heavily influenced by the data at 0.9, unlike a normal regression curve. Ideally I'd like to use a LOESS type of method, but I'm open to anything at the moment that can deal with this problem. I'm at a complete loss as to how to achieve this. Can anyone point me in the direction of a technique that I need? I understand that there is a whole sub-field of statistics called 'circular statistics', although I'm not sure if my problem falls into the 'circular' category.  Any advice or pointers would be appreciated. I can work with MATLAB (ideally), or R.


travelling to uk as a family from ireland

I am travelling to UK with my family which includes my wife and 3 year old child from ireland.I made online application for my me and my wife in the gov.uk website and paid 111 euro each.Our childs name was included as asked in the application and do I have to make another application for my child?


What does the Pauli Exclusion Principle say about a superposition of spin states?

Suppose we have an atom. It is commonly said that because of the PEP, two electrons can't be in the ground state unless they have opposite spins, because no two electrons can have the same wavefunction.  What bugs me is that spin up and spin down aren't the only possible spin states. There's a whole continuum of linear combinations of them, and as far as I can tell the PEP wouldn't exclude the possibility of having lots of electrons, all sharing the same spatial wavefunction but with different combinations of $\mid\uparrow \rangle$ and $\mid\downarrow\rangle$. Why doesn't this happen?


I want to know Which one is bigger ? $ 2011!  \text{ or } 1006^{2011} $. Any proof with logic is most appreciable.


Lightning Web Component and NavigationMixin

In my LWC I'd like to open a standard "new record" dialog with predefined values. I know I can use:  this[NavigationMixin.Navigate]({     type: 'standard__objectPage',     attributes: {         objectApiName: 'Account',         actionName: 'new'     }, });   But how can I specify values for the fields on that dialog?


What is it called when words are deliberately spelled incorrectly but pronunciation is kept unchanged?

For example,      Night -> Nite   Through -> Thru   The -> Da   Though -> Tho     Nite even appears in some dictionaries as having the same meaning as night.  What is it called when words are deliberately written incorrectly but the pronunciation and meaning are kept unchanged?


I am trying to get the value after New : in double quote. I can retrieve the value fine when there is no space in ListName. But if I put space between the list name (eg. NewFinancial History:\"xyz\"), it throws the error below:     parsing "NewFinancial History:"(?[^"]*)"" - Invalid group name: Group names must begin with a word character.    it throws error at below line  var matches = Regex.Matches(contents, regex, RegexOptions.Singleline);  Below is my code.  string contents = " testing NewFinancial History:\"xyz\"   "; var keys = Regex.Matches(contents, @"New(.+?):", RegexOptions.Singleline | RegexOptions.IgnorePatternWhitespace).OfType<Match>().Select(m => m.Groups[0].Value.Trim().Replace(":", "")).Distinct().ToArray();  foreach (string key in keys) {     List<string> valueList = new List<string>();     string listNameKey = key;     string regex = "" + listNameKey + ":" + "\"(?<" + listNameKey + ">[^\"]*)\"";      var matches = Regex.Matches(contents, regex, RegexOptions.Singleline);     foreach (Match match in matches)     {         if (match.Success)         {                                 string value = match.Groups[key].Value;             valueList.Add(value);         }                 } }


I'm using PDO after migrating away from the mysql library. What do I use in place of the old real_escape_string function?  I need to escape single quotes so they will go into my database and I think there may be a better way to handle this without add(ing) slashes to all my strings. What should I be using?


My wizard has just woken from a long rest and is thinking about what spells to prepare for a new day of adventuring. The PHB says on p.114:     You prepare the list of wizard spells that are available for you to cast. To do so. choose a number of wizard spells from your spellbook equal to your Intelligence modifier + your wizard level (minimum of one spell). The spells must be of a level for which you have spell slots.   And:     Preparing a new list of wizard spells requires time spent studying your spellbook and memorizing the incantations and gestures you must make to cast the spell: at least 1 minute per spell level for each spell on your list.   As a 1st level wizard with 16 intelligence I have 4 1st level spells I can prepare.   So my question is, can I prepare 3 spells in the morning and then wait until I see a situation that calls for a particular spell and spend 1 minute studying my spellbook to learn that spell, provided that I still have a 1st level spell slot left?


What is the best way to level up in Clash of Clans?

I've been playing Clash of Clans for a couple of weeks. I'm in the process of upgrading to Town Hall level 5. What is the best way to level up from here?


Compatibility of Ubuntu 20.04 for i5 4th gen laptop processor

I have a Lenovo laptop with Intel Core i5 4200M, Nvidia GeForce GT 740M, and 4 GB of RAM. Can I install Ubuntu 20.04 and use it smoothly? or should I install Xubuntu? I will mainly use it for browsing and office work and some light gaming though


Finding the the Confidence Interval with Linear Extrapolation

Suppose I have some slightly messy data with an r squared of 0.9, and so fits a line pretty well.  If I were to extrapolate based on the slope and intercept of the fit, I would expect my y values to be pretty close while the x values are close to the range of the data, but as my x values got farther out, I would expect more uncertainty.  What would be the best way to find how big the confidence interval is of y values.  So where 95% of scenarios so that match the same slope, intercept and r squared will pass through?


How do ejection systems operate for Rebel pilots?

Rebel flight suits include an ejection harness, Biggs tells Porkins to eject. This seems to suggest that Rebel fighters have an ejection system.  How would they operate for different fighters? Does the whole cockpit separate? Do they function like current aircraft ejection systems - if so what protects the pilot from the vacuum of space?


To create a Horcrux, do you have to kill a human?

So I've already seen   about what sort of killing (accidental? morally justifiable? etc.) counts as murder for the purposes of creating a Horcrux, but here's another question which AFAIK hasn't been asked before on this site.  Does the murder used to create a Horcrux need to be a human's murder?  Firstly, would killing an animal also work? In  the murder that sets the story off is of a pet dog. The murder of an animal can be just as grim and gruesome as that of a human. Could butchers and knacker-men create Horcruxes on a regular basis? And yes, I'm a vegetarian :-) Snakes at least are portrayed in the Potterverse as having near-human intelligence at times, and sometimes cats also. Would someone be able to make a Horcrux by killing Nagini or Crookshanks?  Secondly, what about non-human sentient creatures such as house-elves, centaurs, giants, and goblins? Would someone be able to create a Horcrux by killing Dobby, Griphook, Firenze, or Grawp? What about half-giants like Hagrid?  I suspect the answer will be no to animals and yes to giants etc., but would appreciate any sort of backup for this.


Prove $x^3 + 3 =4y(y+1)$ has no integer solutions

Proof by contradiction:  1. Suppose  $x^3 + 3 =4y(y+1)$ has an integer solution   Then  $x^3 + 3 =4y^2+4y$ Then  $x^3 + 3 + 4 = 4y^2 + 4y + 4$ Then $x^3 + 7  = (2y + 2)^2$   Not sure how to simplify it further...


jquery Cannot work wit dom element just added via ajax

I have a problem with jquery ajax. When i add a new element with ajax, i can't do anything with that. here is my code:  $(".yorum_input").keypress(function(e) {    if (e.keyCode == 13) {     e.preventDefault();     var alt_id = $(this).attr('yorum_id');     var val = $(this).val();     var yazi = $(this).attr('yazi_id');     $(this).val("");      $.ajax({       url: url,       type: "post",       data: {         "alt_id": alt_id,         "icerik": val,         "yazi": yazi       },       success: function(cevap) {         console.log(cevap);         cevap1 = cevap.split('***');         if (cevap1[0] == "succ") {           if (cevap1[1] == "1") {             if (cevap1[8] == "0") {               $("#yorumlar").append("
" +                 "" +                 "" +                 "" +                 "" +                 "
" +                 "" +                 "" + cevap1[5] + "" +                 "" + cevap1[6] + "" +                 "" +                 cevap1[7] +                 "
" +                 "" +                 "
" +                 "

" +                 "" +                 "" +                 "
" +                 "<input type='text' yorum_id='" + cevap1[2] + "'  yazi_id='" + cevap1[9] + "' class='form-control input-sm yorum_input' placeholder='Yorumunuzu yazın!'>" +                 "

");             } else {               $("div[class='alt_yorumlar'][id='" + cevap1[8] + "']").append("
" +                 "" +                 "" +                 "" +                 "" +                 "
" +                 "" +                 "" + cevap1[5] + "" +                 "" + cevap1[6] + "" +                 "" +                 cevap1[7] +                 "
" +                 "" +                 "
");             }           }         }       }     });   } });   When I post a new comment, ajax goes to my php code and if the comment can succesfully added to my database, it returns the needed values for that comment. And then, I create a new DOM element includes an input. but I can't select that new input. Please somebody help me :D I need that for my Website's comments.


What kind of action is it to stop concentrating on a spell?  Our party's initiative order is like this:   20 - Bard  19 - Bad guy  18 - Bad guy  17 - Bad guy 16 - Bad guy 15 - Nobody 14 - Ally 13 - Ally 12 - Ally   Can my bard cast  such that the bad guys cannot take violent actions on their turns, and then stop concentrating as a free action at initiative position 15 so that my allies can act fully?


Does this formula for directional derivative always hold as long as all the partials exist?

If a scalar field $f$ is differentiable at a point $\mathbf{a}$ in $\mathbb{R}^n$, then the directional derivative $f^\prime( \mathbf{a}; \mathbf{y})$ exists for every direction $\mathbf{y}$, and we have  $$ f^\prime( \mathbf{a}; \mathbf{y} ) = \nabla f (\mathbf{a})  \cdot \mathbf{y}. $$  Now my question is, does this formula always hold as long as all the partial derivatives of $f$ exist at the point $\mathbf{a}$? If so, then how to prove this? If not, then what counter-example(s) can we give?   P.S.:  Suppose that $f$ is a scalar field defined on a set $S$ in $\mathbb{R}^n$, let $\mathbf{a}$ be an interior point of $S$, and let $\mathbf{y}$ be any point in $\mathbb{R}^n$ such that all the partial derivatives of $f$ exist at $\mathbf{a}$ and the directional derivative $f^\prime ( \mathbf{a}; \mathbf{y} )$ exist. Now my question is, does the formula  $$ f^\prime ( \mathbf{a}; \mathbf{y} ) = \del f( \mathbf{a}) \cdot \mathbf{a} $$ always hold?   Of course, this formula does hold when $f$ is differentiable at $\mathbf{a}$. This much I know.


How to test hypothesis of no group differences?

Imagine you have a study with two groups (e.g., males and females) looking at a numeric dependent variable (e.g., intelligence test scores) and you have the hypothesis that there are no group differences.  Question:   What is a good way to test whether there are no group differences? How would you determine the sample size needed to adequately test for no group differences?   Initial Thoughts:    It would not be enough to do a standard t-test because a failure to reject the null hypothesis does not mean that the parameter of interest is equal or close to zero; this is particularly the case with small samples. I could look at the 95% confidence interval and check that all values are within a sufficiently small range; perhaps plus or minus 0.3 standard deviations.


If I cut a string, will its length be rational or irrational?

If I cut a string (lets say approximately halfway), will the length of each side (in inches) be rational or irrational?


C# InvalidOperationException AND Cross-thread operation

In my windows form I have a text box and a button, the text box “tb_LogBox” is multiline text box I am trying to create a background worker that is supposed to call a function i.e. “LogTimer.DnT()”  when I compile is and run it Visual studio throws InvalidOperationException.  The actual Error I am getting  Cross-thread operation not valid: Control 'tb_LogBox' accessed from a thread other than the thread it was created on. The following sample code illustrate what I am trying to do  private void button1_Click(object sender, EventArgs e) {     try     {         var bw = new BackgroundWorker();         bw.DoWork += ExecuteOperations ;         bw.RunWorkerAsync();     }     catch (Exception ex)     {         tb_LogBox.AppendText(Environment.NewLine + " =@= " + ex.Message+" "+ex.Source);     } }  private void ExecuteOperations(object sender, DoWorkEventArgs e) {     var FuncCall = new LogTimer();     tb_LogBox.AppendText(Environment.NewLine + FuncCall.DnT()); // the line i am getting the error. on  }  public class LogTimer {     public string DnT()     {         const string datePat = @"d/MM/yyyy";         var dateTime = DateTime.Now();         return dateTime.ToString(datePat);     } }


Would there be issues with giving someone a gift out of a joint account if the total is over the annual limit per person?

My sister and I would like to give another relative $25,000 as a gift.  We have a joint bank account together, and had planned on writing a single check from the joint account for the full amount.  We consider the gift as being half from each of us, so $12,500 per person, safely under the annual gift allowance.  However, since the full amount is over the annual gift allowance and I'd be the only one signing the check, would the IRS consider this more as a single gift from me, which would be over the annual gift allowance?  It would be much less convenient to send two checks, one from each of us, but if it's the only way to avoid having to fill out the gift tax form with my taxes, that's what we would wind up doing.


Discount for specific user group in Drupal Commerce

I need to create 3 user groups and all of these groups must to have discount on all products in percent.  Example:  Group1 have discount of 10% on all products, Group2 have discount of 13% on all products, Group2 have discount of 16% on all products  Any idea how to do that?


Does a barbarian's damage resistance from Rage apply to damage from magical weapons?

As someone who typically GMs, I'm accustomed to seeing resistances specified in monster stat blocks as "resistant to bludgeoning, piercing and slashing damage from non-magical weapons".  However the barbarian class feature Rage states that a benefit of raging is "You have resistance to bludgeoning, piercing, and slashing damage," neglecting any mention of magical weapons.   Though PCs encountering magical weapons may be rare, are there any other rules which stipulate that the basic rage resistances don't apply towards magical weapons?


I want to know a few fonts that look like this:   I want to know what are the colors that were used to write with quill or some colors that could be used in the document.  I would like to split the  in two parts and use one for even pages and another for odd ones.  It would be nice to have a little of transparency in some random and small parts of the text.    Here is the latex code I have so far: \documentclass[svgnames]{article} \usepackage{calligra,xcolor,wallpaper} \usepackage[driver=pdflatex]{hand} \usepackage[T1]{fontenc} \definecolor{red}{HTML}{BC0000}% blue 0D1126 \title{Handwritten document} \author{Arturo} \begin{document}\pagestyle{empty}\CenterWallPaper{}{background.png}   \calligra\Large   {\color{red}\maketitle}   \begin{handpar}     Lorem ipsum dolor sit amet, feugiat ad metus vestibulum at     eget. Condimentum est dictumst, quis cras congue et turpis, ornare     lacinia hendrerit platea in. Nulla est proin pellentesque hendrerit     nulla vitae.   \end{handpar}   \color{MidnightBlue} \begin{handpar}   Quisque ullamcorper placerat ipsum. Cras nibh. Morbi vel justo vitae lacustincidunt ul-trices. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. In hachabitasse plateadictumst. Integer tempus convallis augue. Etiam facilisis. Nunc elementumfermentumwisi. Aenean placerat. Ut imperdiet, enim sed gravida sollicitudin, felis odioplacerat quam,ac pulvinar elit purus eget enim. Nunc vitae tortor. Proin tempus nibh sit ametnisl.Vivamus quis tortor vitae risus porta vehicula. \end{handpar} \end{document}


Let $f:\mathbb{R} \to \mathbb{R}$ assume that for an arbitrary interval $(a,b) \subseteq \mathbb{R}$ inverse image $f^{-1}((a,b))$ is union (not necessarily finite) of open intervals. Show that function $f$ is continuous.   I'd be grateful for any hints, since I have problem with tackling this one


We can see white LED light after a combination of red, green & blue LED together. Then what is the frequency of white light? Whether it lies between 380 Hz - 700 Hz?  There has to be a frequency as every physical object carry its vibrational frequency. Or we have to conclude by saying that there is no existing physical colour called white. It is energy, not a colour. That means we see a direct form of energy through our eye.


Another indicator of a review audit: Question has no tags

I have found another indicator that reveals a post to be an audit in the review queue. The question did not show the tags, although they are normally shown. Here is the image(the image is after I passed, but it didn't show the tags before either):  Review with no tags:    Proof it has tags:    And here is an image of a real review on a question that showed the tags (even though they weren't being changed), which I believe is normal:  Non-audit review with tags:    Obviously, things that indicate that the review is an audit is bad (I have found several, check my previous posts). If someone can please confirm that this is a bug so that it can be fixed?  EDIT: This appears to not be a "known-good audit".


How to view the badges a user does not have

Is there a way to see which badges a user lacks. In particular I wonder if Jon Skeet does not have any badge.  P.S. If such a function does not exist, a nice feature would be be able to see the ../help/badges page for any particular user with ticks next to the badges they have.


I'm having issues preparing column name as parameter using PDO

I've been working with this query to achieve the results I wanted, which I have. During this time I started using PDO and at first worked by just having one varibale to prepare inside the query. While testing, I ended up using two more variables inside the query but left them out of the prepared statement until I was finished. Now that I have the query completed, I went on and tried preparing the three variables as I did with the first one but an error was displayed when I ran the query:  SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '':cdrLastTable' ON a.id = b.`source_customer_billing_zone_' at line 2  I noticed the error was coming from one of the three prepared variables I needed for my query, but the thing is that the one that's failing is the only one placed before the WHERE clause. Excluding it from the prepared statement works fine. After reading and looking at exaples I could not find any with a variable before the WHERE clause so my question is: Can you prepare variables before the WHERE clause? If this is not possible, then what would be the point on using PDO for this query? I'm assuming that this issue does not relate to the query or any syntax error since removing the variable from the prepared statement just works, but I could be wrong as well. This is the query with all variables prepared (the one that gives off the error): $stmtOutgoing = $connAccounting->prepare("SELECT a.`zone` AS zone, init_time, a.`detail` AS sku, b.`source_external_subscriber_id`, count(*) AS llamadas, SUM((CEIL(b.`duration`))) AS duracion, SUM((b.`source_customer_cost`)/100) AS total, SUM((b.`source_customer_cost`)/100)/(SUM((CEIL(b.`duration`)))) AS precio                                          FROM `billing`.billing_zones_history a INNER JOIN :cdrLastTable                                          ON a.`id` = b.`source_customer_billing_zone_id`                                          WHERE source_external_subscriber_id = :source_external_subscriber_id AND init_time >= :queryLastTstmp                                         GROUP BY a.`detail`                                          ORDER BY total desc");                         $stmtOutgoing->execute(array('source_external_subscriber_id' => $source_external_subscriber_id, 'cdrLastTable' => $cdrLastTable, 'queryLastTstmp' => $queryLastTstmp));  You can see the error message points directly at :cdrLastTable right after the INNER JOIN, and effectively removing it like this: $stmtOutgoing = $connAccounting->prepare("SELECT a.`zone` AS zone, init_time, a.`detail` AS sku, b.`source_external_subscriber_id`, count(*) AS llamadas, SUM((CEIL(b.`duration`))) AS duracion, SUM((b.`source_customer_cost`)/100) AS total, SUM((b.`source_customer_cost`)/100)/(SUM((CEIL(b.`duration`)))) AS precio                                          FROM `billing`.billing_zones_history a INNER JOIN $cdrLastTable                                          ON a.`id` = b.`source_customer_billing_zone_id`                                          WHERE source_external_subscriber_id = :source_external_subscriber_id AND init_time >= :queryLastTstmp                                         GROUP BY a.`detail`                                          ORDER BY total desc");                         $stmtOutgoing->execute(array('source_external_subscriber_id' => $source_external_subscriber_id, 'queryLastTstmp' => $queryLastTstmp));  Makes the statement work. For some context: A new table is created each month, hence the need to store the name in a variable unlike the first table which has a 'static' name. The server is running 10.3.23-MariaDB and PHP 7.2.33. I have tried quoting the variable like this: ':cdrLastTable' but did not work. Thanks for the help!


completly removing a package of this kind

hi I was trying to configure my laptop and went online trying to figure out about things to do after installing Ubuntu 14.04. I came across this.  Fix overheating and extend battery life There is a good chance Ubuntu is not handling your fan, battery, etc. optimally but there is a nifty utility that probably will. Do this: sudo add-apt-repository ppa:linrunner/tlp sudo apt-get update sudo apt-get install tlp tlp-rdw sudo tlp start  but it seems to have made my laptop behaving weirdly but shutting down regularly after booting an entering password. how do I remove the whole package? please. Also my graphics seem to turn a bit greyish for a mn or two before returning to normal. I am using a Lenovo w510 Intel core i7 with 4gb ram and 1tb hdd. many thanks.


How can elements be added to a wildcard generic collection?

Why do I get compiler errors with this Java code?  1  public List<? extends Foo> getFoos() 2  { 3    List<? extends Foo> foos = new ArrayList<? extends Foo>(); 4    foos.add(new SubFoo()); 5    return foos; 6  }  Where 'SubFoo' is a concrete class that implements Foo, and Foo is an interface.  Errors I get with this code:   On Line 3: "Cannot instantiate ArrayList<? extends Foo>" On Line 4: "The method add(capture#1-of ? extends Foo) in the type List<capture#1-of ? extends Foo> is not applicable for the arguments (SubFoo)"   Update: Thanks to Jeff C, I can change Line 3 to say "new ArrayList<Foo>();".  But I'm still having the issue with Line 4.


Why can I not save an edit for a question when I only edit a code block?

When I try to edit a question with poor formatting, I received this message:  Oops! Your edit couldn't be submitted because:  Nothing appears to have changed   Here is an example of the edit I tried making: The OP writes, "Here is an example of the code" followed by: http://jsfiddle.net  I tried updating to:  See that? I removed the code block. Is there a better way to make these edits?


Is a CMOS battery rechargeable? If so, what does its charger look like?


CSS - get 3 divs in a line with text on bottom?

Im just having a frustrating time trying to emulate this - where the arrows function as buttons and text sits below the img -     For CSS, Ive tried as other questions suggest:  .ico-selector {   display: inline-block;   width: 123px;   float: left; }     Example    .ico-selector {   display: inline-block;   width: 123px;   float: left; } <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet"/>

My Icon

     but they remain vertically stacked. How can I do this?


Find all integer solutions to $x^2+4=y^3$.  Some obvious solutions are $(x,y)=(\pm2,2)$. Are these the only ones?


0a5c:2100 Broadcom Corp. Bluetooth 2.0+eDR dongle not working

I have a Broadcom BCM2046, it appears as connected in the bluetooth widget over the panel, and the hcitools drops me data, but it doesn't work at all, I've tried to connect from another device and it's inexistent and viceversa from PC to the device  hcitool dev and lsusb  hci0:   Type: BR/EDR  Bus: USB BD Address: 89:21:09:79:B5:1B  ACL MTU: 1017:8  SCO MTU: 64:0 UP RUNNING PSCAN ISCAN  RX bytes:779 acl:0 sco:0 events:27 errors:0 TX bytes:376 acl:0 sco:0 commands:27 errors:0  Bus 001 Device 007: ID 0a5c:4500 Broadcom Corp. BCM2046B1 USB 2.0 Hub (part of       BCM2046 Bluetooth) Bus 001 Device 008: ID 0a5c:2100 Broadcom Corp. Bluetooth 2.0+eDR dongle


i'm developing a website and i'm asking if this little code is vulnerable to SQL Injection or if it's secure:  $param1 = $_GET['param1']; $sql_news="select * from table1 where attr1 = '$param1'";    Can i stay in peace ?   Thanxs


How to run JAVA Desktop application as executable file on another machine

I want to run my JAVA desktop application to another machine as an executable file like .exe  I had already created .Jar file of my application but it not compatible for all machine. Please suggest me how can i achieve this?


Visual Studio keyboard shortcut to automatically add the needed 'using' statement

What is the keyboard shortcut to expand the little red line that gives you the menu where you can choose to have the necessary using statement added to the top of the file?


Create an Incident in serviceNow from Salsforce?

Hi This my apex class and trigger 'm going to create an incident in serviceNow from salesforce but the below code execution i'm getting some errors anyone guide me to resolve them and creating an incident in serviceNow  This is my apex class:  public class SericeNow{ @future public static void servicenowPost(Case incidentCase){     Http http = new Http();  HttpRequest req =  new HttpRequest();  HttpResponse res = new HttpResponse();   String username = 'admin';  String password = '$Test12345';    Blob headerValue = Blob.valueOf(username + ':' + password);   String authorizationHeader = 'BASIC ' +   EncodingUtil.base64Encode(headerValue);   req.setHeader('Authorization', authorizationHeader);    req.setEndpoint('https://dev23577.service-now.com/');   req.setMethod('POST');   req.setHeader('Content-Type', 'application/json');    JSONGenerator gen = JSON.createGenerator(true);   gen.writeStartObject();    //you can add as many mappings as you want   gen.writeStringField('Number', incidentCase.field);   gen.writeEndObject();   //you can now use String pretty as your body   String pretty = gen.getAsString();    req.setBody(pretty);   res = http.send(req);     system.debug(res.getBody());   } }   this my trigger :  trigger servicenow on Case (after insert){  for(Case c : Trigger.New){                                                       SericeNow.servicenowPost(c);                                                                             } }   when executing the above class i'm getting error :  Error: Compile Error: Unsupported parameter type Case at line 3 column 20  Thanks,


du shows completely different folder size for * and folder name

I'm trying to move some data over and to start with I'd like to make sure that the size is ok. I run into a problem however, if I check the folder with   du -sh  myfolder/ 780M    myfolder/   but   du -sh * .. 71M     myfolder ..   I thought it might be something to do with hidden files but this particular folder does not have any inside.  Am I missing something?


Find the volume of a cone whose length of its side is $R$

How can i compute the volume of a cone whose length of its side is $R$ and the vertex of the cone forms an angle $2θ$ .  The top cone is a cap of a sphere of radius $R$.    I tried to solve first in 2 dimension and then use solid of revolution:    Some help please to find the volume of this cone.


Speed of stuff falling into a black hole, beyond the event horizon

We know the escape velocity from the event horizon (EH) $= c$. Anything that crosses the EH is destined to reach the singularity. Whether the escape velocity (beyond the EH) can be calculated, or not, can we say that something falling into a BH, would move faster than $c$ after crossing the event horizon? Or, does the acceleration ends at EH? Why? This is when something is free-falling into a BH, ignoring resistance. I am using the fact that the speed of (hypothetical) absolute free fall will be same as the escape velocity at any point.


If I use ssh to run some command in background, that command gets killed as soon an ssh hangs up:  ssh localhost -t "bash -c '(for i in 1 2 3 4 5; do sleep \$i;done)&'"; ps x|grep sleep   This will not show any running sleep process. (But it would, if I do the ps inside the ssh command.)  However if I manually log in, run it it background and logout, the command keeps running.  ssh localhost bash -c '(for i in 1 2 3 4 5; do sleep $i;done)&';exit ps x|grep sleep   Why is the first command killed? Why not the second one?  (NB: This problem arose when I tried to start a service with service tomcat start which worked fine after a manual login, but no service was running after invoking directly in the ssh command.)    No, this is not a duplicate of . I am not talking about nohup and I am not trying to use jobs instead of ps.


What are the options for a 3rd-World Passport Holder to extend a Class-C Schengen Visa?

I'm a Philippine passport holder. I got my Class C Schengen Visa but I was only given 20 days. What can I do to extend it even just for 90 days (I know that's the max allowed for Schengen short-stay visa)? Can I extend it while already in Europe?


I have an element that already has a class: <div class="someclass">     <img ... id="image1" name="image1" /> </div>  Now, I want to create a JavaScript function that will add a class to the div (not replace, but add). How can I do that?


In Chrome the related questions numbers overlap comments

I do not have the issue on the same box in IE8 nor in FX22/FX23  My specs:   XP Chrome 28.0.1500.95 m (But still the case in Chrome 32) Large system fonts (Is that the reason?) 2560x1440 resolution Zoom: 100%, issue does not go away if I zoom out Example page:    Chrome 28 side by side with FX23    I can right now only reproduce it when I click show more comments   In the example below, the related questions behave nicely, but when I click show more comments, all comments reflow and dip under the related questions  BEFORE  AFTER


SF Story about human adapting to alien environment

This is a story that was read on BBC radio about thirty years ago, and this is about as right as I can remember it: The human pilot of a spacecraft is doing some reconnaissance on an alien planet. He crashes but survives. For some reason, no one will know where to look for him. He sees something in the distance that looks like a building of some sort. When he gets there, it seems to be a home. Very much like a human home. There's furniture, but it's strange and uncomfortable . There's food, but it's inedible. There's a faucet but what comes out of it seems more like acid. Everything looks as though it should be right, but it's not. He leaves the house, wanders and after a few days is desperate for water. But there isn't any water anywhere. He's close to death, crawling on the ground and then something happens. There are cracks in the soil and there appears to be water bubbling up from perhaps some underground stream. The water revives him. He goes back to the house and tries the food again. It's delicious and he eats enough to gain back his strength. Then he decides to try the water again. It's pure and wonderful. He takes a shower and the last line of the story is how refreshing the water is on his skin and something about him lifting his tail.


Options for displaying PostGIS vectors in OpenLayers

I am very new to web-mapping, so this question may be a little misguided.  I want to have a very simple web interface using OpenLayers (or even Google Maps if that will be easier) which can display a number of point and polygon tables that are currently in PostGIS.  I want this to be as simple (and as low maintainence) as possible:   I don't want to have to create tiles (unless there is a very good reason), or have a massive, complex layer of middleware.   Performance doesn't need to be phenomenal, as this is for internal use and thus doesn't need to scale beyond a couple of concurrent users. Styling of the vector layers is of minimal importance. Open source tools are much preferred as I have almost no budget for this.   What is the recommended approach for this?


I'm looking for something to easily measure the height/width of items on screen in pixels.


What does it mean when it looks like this? I'm not sure what I did wrong?


Choosing between transformations in logistic regression

In linear regression, the transformations of explanatory variables is done to have maximum correlation with the dependent variable.  What is the best measure of choosing between multiple transformations in logistic regression as dependent variable is binary and not continuous?  The end goal is to maximize the lift (predictive power) of the model.


I have an old PSU which has an output of 18Amps at 12Volts DC. Is it dangerous if I touch the wires? Or is the voltage too low to jump my body (I heard anything below 40 Volts DC can't be felt by your skin).   I won't open the casing of the PSU so I won't come in contact with the charged capacitors.  I'll use the PSU to power a HHO generator


When I am posting my question I am getting the following error:     Sorry, we are no longer accepting questions from this account.   What can I do?


How to visualise nested AND / OR groups?

I'm wondering if anyone here can shed some light on working with visualising logic for beginning users.  I am struggling with finding a proper way to display logic such as:   "Item name #1  AND (Item name #2 OR (Item name #3 AND Item name #4))".   It's group within a group. My solution becomes a very literal horizontal representation and becomes very disorienting, while I'm looking for a way to display this sequence more vertically so it fits in the application window better. The problem is that it can contain more than 10 items if the user wants to target a very specific group.   The aim with the application is that it filters users down into a target group for further marketing use. It will be used by people who are not tech-savvy. Thoughts?  Rough sketch:


I recently moved to a Nordic country in an academic position. For my first grant application, I collaborated with other researchers at the university. As I was submitting the proposal along with the CVs, I noticed that two of the researchers had mentioned their religion. I have never seen this in academia, at least in South-east Asia where I spent majority of my work life.   Here are other details that I think are relevant:   Our research domain is engineering, not humanities or social sciences. Both researchers are Muslim. The funding agency is a private one that favors industrial collaborations.   My questions:   Is it appropriate to mention one's religion in an academic CV? Does mentioning one's religion help in grant proposals or academic positions? I think in a fair world it shouldn't. Do western countries, especially European, favor candidates who are Muslim?


Is 2 hours 20 minutes enough for a layover in Frankfurt Airport?

I'm studying abroad in Florence this summer and I'm trying to decide on the best layover option (flying from NYC). I've narrowed it down to Frankfurt via Lufthansa, but I'm paranoid about delays...would a 2 hour 20 minute layover be enough time? Or should I opt for 5 hours instead?


Modulo arithmetic: finding “c” when result of right-hand side expression is a float

In my series of questions on modular arithmetic, I stumbled upon cases where normal textbooks don't explain much. Now my problem is to find $c$ when the expression to be solved (right-hand side) includes multiplication and resolves to floating point numbers: $c ≡ a^{5} ∗ b^{−3} \mod 43$ given that $0 \leq c < 43$ and, $a ≡ 27 \mod 43$ and $b ≡ 19 \mod 43$. ($a$ and $b$ are integers). By solving the right-hand side, by replacing the values for of a and b: $c ≡ 27^{5} ∗ 19^{−3} \mod 43 = 1423.768 mod 43$ If I compute this on a calculator, gives: $4.7680$ $c$ must be an integer, should this be approximated to $5$? How should I approach such cases when right-hand side resolves to float numbers and thus the resulting value of the variable of interest? All inputs are valuable. As mentioned, it's new to me and I am trying hard to understand it. Thank you.


(Bukkit Plugin Minecraft) Inventory doesn't clear after I choose kit

I was trying to make some kitPvP plugins but then I was faced with a "bug". When I choose the kit(pvp), it gives me the soups but it doesn't clear the previous inventory (that is the spawn inventory default). Here is the code:  public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {     if(!(sender instanceof Player)) {         sender.sendMessage(ChatColor.RED + "Apenas players podem usar o comando /kit");         return true;     }     Player p = (Player)sender;     if (args.length == 0) {         p.sendMessage(ChatColor.RED + "Precisa defenir qual kit voce quer escolher!");         p.sendMessage(ChatColor.DARK_GRAY + "Comando: " + ChatColor.RED + "/Kit <kit> " + ChatColor.DARK_GRAY + "ou " + ChatColor.RED + "/Kits");         return true;     } else {         if(args[0].equalsIgnoreCase("pvp")) {             if(p.hasPermission("kit.pvp")) {                 if (KitAPI.getKit(p) == "Nenhum") {                     KitAPI.PvP(p);                     p.sendMessage(ChatColor.GREEN + "Voce escolheu o kit PvP");                     BarAPI.setMessage(p, ChatColor.GREEN + "Voce escolheu o kit PvP", 5);                                    p.getInventory().clear();                     return true;                 } else {                     p.sendMessage(ChatColor.RED + "Voce ja possui um kit!");                     return true;                 }             } else {                 p.sendMessage(ChatColor.RED + "Voce nao possui permissao para executar o comando!");                 return true;             }         }         p.sendMessage(ChatColor.DARK_GRAY + "Esse kit " + ChatColor.RED + args[0] + ChatColor.DARK_GRAY + " e invalido!");     }     return false; }   }  Here is the code where is supposted to clear the inventory:  if (KitAPI.getKit(p) == "Nenhum") {                     KitAPI.PvP(p);                     p.sendMessage(ChatColor.GREEN + "Voce escolheu o kit PvP");                     BarAPI.setMessage(p, ChatColor.GREEN + "Voce escolheu o kit PvP", 5);                                    p.getInventory().clear();                     return true;


Injective function from Integers to Naturals?

Can there be an injective (one-to-one) function from all Integers to all Naturals? Or from all Rationals to all Integers? Intuition would imply that this is impossible, simply because Naturals also belong to Integers, meaning there are "more numbers" in Integers than in Naturals. I would imagine this argument valid with finite groups, but what about an infinite group that conatins another infinite group?  Thank you


Is there a good way to check a form input using regex to make sure it is a proper style email address? Been searching since last night and everybody that has answered peoples questions regarding this topic also seems to have problems with it if it is a subdomained email address.


Combinatoric Proof of $\sum_0^n\binom{k-1+i}{k-1} = \binom{n+k}{k}$

$\sum_0^n\binom{k-1+i}{k-1} = \binom{n+k}{k}$  I think there are two different ways to prove the above identity: one is algebraic and the other one is combinatoric.  I have seen there's some ways to handle this problem with some sort of lattice like structure.  Any advice for approaching this problem in "combinatoric" way?


How embeddings relates to weights in skip-gram model (word2vec)?

I'm trying to understand how a skip-gram model trains itself.  Using the input embedding we predict the probability of the output word.  And then using the gradient of the cost function we slightly update embedding of the output.  But also we update weights.    So I cannot understand how we simultaneously update  weights and embeddings? Do they use different gradients or there is some sort of chaining?  I'm trying understand the logic of training weights and embeddings using this example ().


What are different possible ways of proving that $\frac{\sin x}{x}$ is uniformly continuous?

My main preoccupation is to find different Method to prove that the function   $$ f :x\mapsto \frac{\sin x}{x}$$ is uniformly continuous on $\mathbb R$.  Particularly I am not able to prove it direct using the $\epsilon-\delta $ definition .  Here What is I found so far. Since $f$ is continuous and $f(x)\to 0$ as $|x|\to \infty $  we conclude that $f$ is uniformly continuous using  But I believe that there are others ways to overcome this this issue.  Edit: Note that I am asking different possible way to to prove the uniform continuity of $f.$


Is there a standard delay for consumer ratings of apps on the App Store?

I have an app that's been out for a couple of weeks. Its not exactly selling like hot cakes yet, but I'm pretty sure I've gotten a rating or a review by now. But nothing shows when viewing either in iTunes or directly on the AppStore on the iPhone.  Is there a standard delay as to when ratings/reviews show up, that Apple imposes, especially for new apps? Or do you think there is some problem with Apple's system?


Back button doesn't work if question is too long

If I open a question and the question title is too long, then the back button doesn't work and the only way to use the app again is to restart it.   App Version: 1.4.5 Device: iPhone 5s (Global) OS Version: Version 10.0.2 (Build 14A456)


How do you check if a JavaScript Object is a DOM Object?

I'm trying to get:  document.createElement('div')  //=> true {tagName: 'foobar something'}  //=> false   In my own scripts, I used to just use this since I never needed tagName as a property:  if (!object.tagName) throw ...;   So for the second object, I came up with the following as a quick solution -- which mostly works. ;)  The problem is, it depends on browsers enforcing read-only properties, which not all do.  function isDOM(obj) {   var tag = obj.tagName;   try {     obj.tagName = '';  // Read-only for DOM, should throw exception     obj.tagName = tag; // Restore for normal objects     return false;   } catch (e) {     return true;   } }   Is there a good substitute?


Prove that if ($d(x,y)=0$ iff $x=y$) and if $d(x,z)\leq d(x,y)+d(z,y)$ then $d$ is a metric

Let S be a set and d a function from $S \times S$ into $\mathbb{R}$ such that $d(x,y)=0$ if and only if $x=y$ and $d(x,z) \leq d(x,y) + d(z,y)$ for all $x,y,z \in S$. Show that d is a metric.  Here, we are (seemingly) given only 2 of the axioms necessary to show that d is a metric, but are asked to make the conclusion anyway. I suppose that $d(x,y)=d(y,x)$ is hidden within the second given (Wikipedia backs that up), but I can't see how to get to it.


Is it a good idea to use red color in User Interfaces?

Colors like red and green are not visible to people with colour blindness.So is it a good idea to use red or variations of red as a user interface colour?


Inductive proof of $\,9 \mathrel| 4^n+6n-1\,$ for all $\,n\in\Bbb N$

Prove that for all $n\in\mathbb N$, $9 \mathrel| (4^n+6n-1)$.  I have shown the base case if $n=0$ (which is a natural number for my course).  I'm now trying to prove that $9k=4^n+6n-1$.  I substituted $n+1$ for $n$, and have $4^{(n+1)}+6(n+1)-1$, which equals $4*4^n+6n+5$.  I'm stuck. Is that not the right way to go? I don't know how to get from the “$+5$” to “$-1$” so I can substitute $9k$ to the right side of the equation. Any help would be greatly appreciated.


Syntax error in PDO insert using foreach loop

I'm trying to add some survey results to a database using PDO. Because the survey has 50 questions I thought I would add them using a PHP foreach loop to add the result of each question.  There are two different tables. One is the respondent table that contains users details (name, email etc). And the other table is a responses table that shows the respondents answers to the survey and is linked by their ID.  Everytime I run this I get the error:      Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064   The first statement execution runs fine and I can see the users details added to the database, but I cannot get the second statement to run successfully.  //Add respondent to database $sth = $dbh->prepare("     INSERT INTO `respondents` (`id`,`firstname`,`lastname`,`email`) VALUES (?,?,?,?);     INSERT INTO `responses` (`rid`) VALUES (?) ");  $sth->execute([$id, $first, $last, $email, $id]);  //Add survey results $sth = $dbh->prepare("     INSERT INTO `responses` (?) VALUES (?)     WHERE `rid` = ? ");  foreach ($responses as $key => $response) {     $sth->execute([$key, $response, $id]); }   I'm a bit new to PDO and MySQL so I'm sure this isn't the best way to do this so any help would be appreciated. Thanks.  Full error:      Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''1') VALUES ('1'); WHERE rid = 'df3f745ad872d72aa6466e571af743eb''


I am trying to run a batch job of importing items from a csv file. When I click submit on my form and my batch process starts, I do get a batch process bar which says its progressing, but it never calls my callback function or my finished function. I've done a dpm() of th $batch array before I run it, and it seems to be in order. What am I missing?  $count = 1;   while($count <= count($csv) ) {     $operations[] = array('ons_institutional_subscriber_importer_import', array(array_slice($csv, $count, $count + 10)));     $count = $count + 10;   }   $batch = array(     'title' => t('Importing Institutional Subscribers'),     'operations' => $operations,     'finished' => 'ons_institutional_subscriber_importer_finished',     'init_message' => t('Import is starting.'),     'progress_message' => t('Processed @current out of @total.'),     'error_message' => t('Import has encountered an error.'),   );   dpm($batch);   batch_set($batch);   batch_process();   and my callback functions  function ons_institutional_subscriber_importer_import($csv, &$context) {   dpm('hello');   //more code here... } function ons_institutional_subscriber_importer_finished($success, $results, $operations) {   if ($success) {     $message = format_plural(count($results), 'One post processed.', '@count posts processed.');   }   else {     $message = t('Finished with an error.');   }   drupal_set_message($message); }


I am not getting satisficatory explanation for this. Clearly $f(x+T) = f(x)$ for all values of $T$.  If we assume it is periodic, does this mean period =  $0$?


How to encourage answers to be posted on obviously resolved questions

I find a lot of questions, particularly on SO, with no answer but a long trail of comments which once read, it becomes apparent it has been answered. Often with a comment by the OP saying something like "thanks that worked". It makes it a much longer search when looking for an answer.    Posting an answer which covers the content of the comments is considered a good practice, but OP seem disinclined to do (refer  )  To encourage OP behavour my proposal is to specifically give OP rep if they post the answer to their question when its    resolved with no other answers in order to complete the    documentation.  I trust I am not asking something that already has an established approach.


An unmanned spaceship's computer suddenly realizes the computer and ship are seriously damaged

This is a short story I recall reading somewhere about an unmanned ship's computer.  The story begins with a computer's component receiving an unusual signal, but the computer doesn't understand why it is unusual. By attempting to understand the reason for its confusion, gradually it realizes that its core is badly damaged. It attempts to send a drone to install the only remaining replacement core, but the drone and the core hurtles through a hole in the side of the ship, which the computer failed to notice as well (due to the damage). The computer is now stranded drifting through space, with the realization that it is irrevocably damaged and cannot repair itself.


How large a form did Melkor take for his duel with Fingolfin?

After the Elves took many casualties in the , , High King of the Noldor, rode up to the gates of Angband and challenged Melkor to single battle in such a way that he couldn't decline. Melkor being a Vala, Fingolfin clearly couldn't win, but he dealt Melkor seven wounds, survived three blows, and then when he was finally knocked down, dealt a blow to Melkor's ankle that haunted him forever.   I was searching for pictures of the battle, and I noticed that there was a huge disparity in Melkor's depicted height, from about 12 to 100+ feet, and that got me wondering how large he actually was. I looked around but couldn't find even any guesses. Being a Vala, he could have taken any shape or size he desired for the fight.  With the speed-power tradeoff between the two, I've always imagined him to be about 25 feet.  Is there any indication as to how large he was for that fight, or his usual height and form?   Melkor about 12 feet tall  By    Melkor about 50 feet tall  By   Melkor about 100 feet tall  By


Adding migration site when closing a question

When acting to close a question because it belongs on another SE site, the dialog box generally gives a few default sites, but (apparently) no way to add a new such site.  For instance, I wanted to close a question on Mathematics.SE and migrate it to Cryptography.SE, but the only options provided were MathOverflow, Physics, etc.  How do we add new optional migration sites to the list to be considered when closing a question for migration?


Do repulsor lift vehicles exert a reaction force on the ground below them?

Let's say I am lying on the ground when my friend runs over me on his speeder bike, does it feel like I've just been run over by a bike or as though a light breeze just passed over me? There doesn't seem to be much visible disturbance in the film, however, it's possible that's just a budget reason or that the compression of the ground simply isn't very visible.   Alternatively does this vary depending on what that writer wants different models of repulsor lifts, the specifics of the planet their on, the altitude the repulsor lift is functioning at etc. etc.  Legends answers are perfectly acceptable if nothing is found in canon.


Edited: $T/F:$ The automorphism group $\text{Aut} (\mathbb Z/2 \times \mathbb Z/2)$ is abelian.

$T/F:$ The automorphism group $\text{Aut} (\mathbb Z/2 \times \mathbb Z/2)$ is abelian.     Keeping the comments for  in mind I would like to present a solution for the above mathematical problem to get it verified.  My answer to the problem is: FALSE  My Reasons: $\mathbb Z_2\oplus\mathbb Z_2\simeq K_4=\{e,a,b,c\}$ where $K_4$ is the Kelin's $4$-group with $e,a,b,c$ having their usual meaning. I would like to show that any bijection from $K_4$ onto $K_4$ which keeps $e$ fixed, is an isomorphism. Let $\phi$ be one such. Then W.L.G. we are to show that,  $$\phi(ab)=\phi(a)\phi(b)$$  Now, $\phi(ab)=\phi(c)$ and $\phi(a)\phi(b)$ is different from $\phi(a),\phi(b)$ and also from $e=\phi(e)$ since $\phi(a)\ne\phi(b).$   All such $\phi$ forms a group $\simeq S_3.$ Thus $\text{Aut } K_4$ is not abelian.


I want to write some subtitle like the bold sentence inside the box, could anyone give me some guide on how to do it? Basically this subtitle is inside a section environment.   I have no idea how to write this subtitle, as well as how to generate the box. Could anyone give me some help? Thx.


Inheritance of a userControl from another one in wpf

I code in wpf c#  partial class A : userControl { }  partial class B : userControl  { }   But i have to make an inheritance between them   partial class A : userControl { }  partial class B : A { }   But when i do that i have an error saying :  Partial declarations of B must not specify different base classes


Do Orphaned object in java lead to performance Issues

Here's what I have   public void someMethod() {   MyObject myObject = new MyObject();    .. some more initialization code..    myObject = methodThatRetunsMyObject();    myObject.doSomething(); }   Question: Will the orphaned object creation lead to significant performance issues?  The goal is to achieve maximum transactions per second, hence my assumption is, orphaned objects would lead to GC runs which could affect throughput.


How to use @Autowired on field variable when class is not a Bean?

Suppose I have  @Service  public class myService () {     public void sayHello() {         System.out.println("Hello");     }  }  public class myTestClass() {     @Autowired     private myService thisService;      public void transferHello() {         thisService.sayHello();      }  }  public class Application() {     public static void main(String[] args) {         SpringApplication.run(PilContainerApplication.class, args);         myTestClass thisTest = new myTestClass();         thisTest.transferHello();     } }   Since myTestClass() is not a bean like service/controller, thisService would have a null reference when I use myTestClass thisTest = new myTestClass();.  I was wondering how to overcome this.. I tried using public static myService thisService and it said cannot use @Autowired on static fields.   Thank you


How to import local XML file and parse through it using JavaScript?

I have my JavaScript and XML files in the same folder. I'd like to be able to parse through the XML using the JavaScript, but I don't know how to get the JavaScript file to "talk" to the XML file. I've looked up ways, but they all involved server requests, which I don't need. How do I get the JavaScript to read-in the local XML file to make use of it?  I'd eventually want to be able to convert the XML to JSON and then have my JavaScript parse through that, which I think I know how to do. I just don't know how to get the JavaScript to take data from the XML. I'm a beginner so any help is appreciated.  Thanks!


Does "Disarm" basically allow you to steal?

DMG 271 describes the disarm action and states that if the attack roll is successful, the defender "drops the item."  SRD 92 lists things you can do on your turn in tandem with your move and action. One of these options is "pick up a dropped axe," which I can infer means "pick up a dropped anything."  So by the rules as written, can you disarm someone as an action, and then just take the item at no additional cost? Is this really how stealing happens in combat? (I'd always kind of imagined that Sleight of Hand would be involved somehow)  (If it doesn't, )


I understand that enterprise wsdl is a strongly typed wsdl and is tied to a specific configuration of Salesforce. So the Enterprise WSDL changes if modifications (e.g custom fields or custom objects) are made to an organization's Salesforce configuration. Similarly i also know that a Partner WSDL is loosely typed wsdl and is static, and hence does not change if modifications are made to an organization's Salesforce configuration.  My question is:  -   If we hand over the partner wsdl to the customer and then add a field on an object (e.g. on opportunity object) and include that into the integration then do we need to generate the partner wsdl again and give it to the customer?


How to determine the cause of MacBook battery not charging?

I see that the question "why is my MacBook not charging?" gets asked a lot. The problem is, there are multiple reasons. Possible points of failure are: charger, cable, magsafe connector, DC input board, logic board, battery. (Have I missed any?). What is the best sequence for a user to follow, to diagnose the problem? By way of example, here are the first steps that I usually try:  Make sure the charger is working. Either use your charger on a different Mac, or test a spare charger with your Mac.  Check the connection. There might be gunk in your port that's stopping the connector from lying flat.  Try resetting the SMC and PRAM.  If the computer boots, run Coconut Battery to determine battery status.   This is where I get a bit stuck. For example, I have a machine here that boots fine when plugged in, but not from battery. Disconnecting the MagSafe causes the machine to switch off. Sounds like it's a dead battery, except that Coconut reports the battery as detected, in good condition, but not charging. What steps should I take next? Specifically, I'm asking for a generic algorithm to help determine the source of the fault (preferably without swapping out lots of components one by one)?


Leaving MacBook Air on sleep for more than 5 hours causes it to not wake up at all

I am facing an issue with my brand new MacBook Air 2019 Retina True Tone model  When I put my Mac to sleep, close off the lid and let it stay like this overnight (roughly for about 6-7 hours), when I open the lid again, my Mac doesn't starts automatically. Even when I press the trackpad, spacebar etc, it doesn't wake up. I have to press the power button to turn it back on.  However, during the day, in my breaktime I leave it on sleep mode and close the lid for about 1-2 hours, opening the lid wakes up the MacBook normally.  This machine is working just fine for me except for when I wake up every morning and see that I can't start my work from where I left because my MacBook doesn't comes out of sleep.I have to shut down using the power button and then turn on my Mac.  Can someone tell me a concrete solution to this? Because I can't test each solution separately because it would consume too many days since the only time I can leave my Mac on sleep for about 5-6 hours is when I sleep.  Note : Yesterday I had updated my OS to Catalina as per the recommendation of apple chat executive, but the same problem happened today morning aswell and right now my software is up to date.


Why do photos of digital screens turn out the way they do?

When I take pictures of a screen at school or at my house, they turn out really weirdly. When blown up to 100%, they look fine, but when they get sized down, they look really weird, here is a screenshot of my phone to show what I mean


Designing a database structure for companies and stock owners

I'm working on a personal project where I want to make a database that holds the information for every owner of every public company. Say for example "Sears INC" and the program would get the information for every owner in "Sears INC". That is the idea. But I am having a really hard time trying to structure this database. I only have limited experience and knowledge about this subject so any guidance would be greatly appreciated.   Now I was first thinking about making a table called companies, and give them all unique ID's and make a table for every company. Then inside those tables would be all the owners with their unique ID. That would link to their information. I have tried to visualize this here:    Now I know that creating a table for every company would be tedious but I cant think of any other way of doing this. As you all know each company might have the same owner and therefore it would make sense of using Owner_ID to identify each owner.   I have all the other data in a CVS file that I could easily import in PostgreSQL after I have structured the database.  Any help would be greatly appreciated.   TL:DR; Creating a database of stock owners that will be searchable by company name, and need help to structure the database for maximum efficacy.   A person can only have one phone and one address. Same goes for the company, because I have made a script that finds the phone based on this information. The way I differentiate between knowing if a entity is a company or person is by using a column called F_Org which will be larger than 4 digits for companies. This is all handled by the script.


Outputting common lines from 2 files and uncommon lines from both the files in one output file

I have 2 text files. Lets name them file1.txt and file2.txt  file1.txt is as follows  chr10   181144  225933 chr10   181243  225933 chr10   181500  225933 chr10   226069  255828 chr10   255989  267134 chr10   255989  282777 chr10   267297  282777 chr10   282856  283524 chr10   283618  285377 chr10   285466  285995   file2.txt is as follows  chr10   181144  225933 chr10   181243  225933 chr10   181500  225933 chr10   255989  282777 chr10   267297  282777 chr10   282856  283524 chr10   375542  387138 chr10   386930  387138 chr10   387270  390748 chr10   390859  390938 chr10   391051  394580 chr10   394703  395270   What I want to output in a single file is    All the common lines between file1 and file2 All the lines which are in file1 but are not common to both All the lines which are in file2 but are not common to both.   I wrote a Perl script to do this but I am pretty sure there must be a command line or an easier way to do it.


How can I replace end line with fixed text when the next line begins with a defined set of characters?


I am trying to write a function to print std::vectors as  template <class T> void PrintVector(const std::vector<T> vec) {      for(unsigned int j=0;j<vec.size();j++){ std::cout << vec[j] << "\t"; }      std::cout << "\n"; }   This works if I put in the main file of the project. However when I put it in an external file (e.g. functions.cpp and functions.hpp) as  File functions.hpp:  #ifndef functions_hpp #define functions_hpp  #include <iostream> #include <vector>  template <class T>  void PrintVector(const std::vector<T> vec);  #endif    File functions.cpp:  #include "functions.hpp"  template <class T> void PrintVector(const std::vector<T> vec) {      for(unsigned int j=0;j<vec.size();j++){ std::cout << vec[j] << "\t"; }      std::cout << "\n"; }   I receive the following compile error:  Undefined symbols for architecture x86_64: "void PrintVector<int>(std::__1::vector<int, std::__1::allocator<int>   >)", referenced from:   _main in main.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see     invocation)   All the other functions defined in functions.cpp work. How to solve this issue?


Why only 5 reputation points for an upvote to a question?

I just received the second upvote for my question,   I got only 5 reputation points whereas for my previous upvote for the same question I got 10 reputation points. I observed the same problem for some other questions also.


what is @class in Objective C and when to use this directive?

I am so confused what is @class ? What does it when i am using this directive? when to use this directive and why? I did not get any link proper that tells why,what and when to use? Please tell me with an example?


How to recover the Newtonian gravitational potential from general relativity?

To take the newton limit of the geodesic equation:  $$\frac{\mathrm{d}^2x^\mu}{\mathrm{d}\tau^2}+\Gamma^\mu_{\nu\rho}\frac{\mathrm{d}x^\nu}{\mathrm{d}\tau}\frac{\mathrm{d}x^\rho}{\mathrm{d}\tau}=0 $$   We assume obeject is moving slowly so :  $$\frac{\mathrm{d}x^i}{\mathrm{d}\tau}\ll \frac{\mathrm{d}x^0}{\mathrm{d}\tau} \tag{1} \text{   }i = 1,2,3$$  Therefore, we only take the first component of the second term in the geodesic equation.  My question is, does equation (1) necessarily mean that $\Gamma^\mu_{00}\frac{\mathrm{d}x^0}{\mathrm{d}\tau}\frac{\mathrm{d}x^0}{\mathrm{d}\tau}$ is the dominant term of all possible combinations? Because in the affine connection:  \begin{equation} \Gamma^\mu_{\nu\rho} = \frac{\partial{x^{\mu}}}{\partial{\xi^{\alpha}}} \frac{\partial^2{\xi^\alpha}}{\partial{x^\rho}\partial{x^\nu}} \end{equation}  the c terms in $x^0$ which is considered to dominate will be cancelled in the dominator of the affine connection. What makes us still take $\Gamma^\mu_{00}\frac{\mathrm{d}x^0}{\mathrm{d}\tau}\frac{\mathrm{d}x^0}{\mathrm{d}\tau}$ to be the dominate term?


How to make a single line into two new lines

I want to make a single line into two new lines.  My code:  #!/bin/bash dir="$1"      printf "maximum file size: %s" \                      find $dir -printf "%s %p\n" | sort -n | tail -1   with the above code I am facing an probelm while generating output.   Error output:  maximum file size:  116864 /usr/lib/apt/methods/mirror   Expected output(only the path should be in a new line with one tab):   maximum file size:  116864                 /usr/lib/apt/methods/mirror


To prove that a function is linear or two series are convergent

Let $f:[0,1]\rightarrow\mathbb{R}$ be a continuous function and let $\{a_n\}_n$ and $\{b_n\}_n$ be sequences of real numbers such that: $$\lim_{n\to\infty}\int_0^1|f(x)-a_nx-b_n|\text{dx}=0$$ Prove that: a$)$ The sequences $\{a_n\}_n$ and $\{b_n\}_n$ are convergent b$)$ The function $f$ is linear  In this particular problem  which was given in an entrance examination of $10+2$ level,my approach was to do the epsilon delta definition of limit with integration ,but of no avail. I cannot start and arrive at the result... Kindly help anyone.


Python3 regex patterns with bytes confirmation

Just checking that I've got the right handle on this as it seems odd.  I've got a small python3 script looking for substrings in a file where the data are dropped into various 512 byte blocks. So, it's possible for strings to be split. A naive approach takes the substring and splits it into the various pairwise combinations, using these as patterns for re.findall. However, special characters in regex patterns have to be escaped:  >>> a=b'1$2' >>> s=b'1231$234' >>> re.findall (a,s) []     # fails as '$' in a is interpreted as regex 'end of line' >>> c=b'1\$2' >>> re.findall(c,s) [b'1$2']   If I want to iterate over the pairs that make up c in the above code, is there no simple way to avoid having to treat the '\' as a special character? It makes sense from the pattern definition language, which using '\' as an escape character means that c[:2] is an illegal pattern ("1\"). But it's the sort of special case that it would be nice to be without.


Please help-- what object can I use to absorb static shock when getting out of my car?

Whenever I get out of my car and touch the door, I get shocked. This has made me be afraid of going anywhere because I don't want to get shocked.   I already tried the penny, and I got shocked through the penny. What is a really strong object I can buy or find where I can just touch it to the door of my car and it will absorb the entire shock? Penny doesn't absorb the entire shock.   I also am not interested in preventing shock, I don't want to install anything in my car and I don't want to change shoes or anything. I just want a big object that I can touch to my car door so that it will absorb the shock for me. Something that actually works, as a penny doesn't absorb the entire shock. Please help! Please eliminate my fear of driving.


BIOS clock getting changed by Ubuntu - cant sync time with BIOS

I recently installed version Windows7 alongside my Ubuntu 14.04 and noticed that despite the time zone being in the correct setting (Pacific Standard time), that the Clock Was off by several hours in Ubuntu. I searched online for answers and read somewhere that deselecting the 'sync with internet clock' might help the issue. It did seem to resolve the issue for the short-term, but after some updates I have noticed once again that my system clock is 7 hours ahead. Looking into the BIOS I discovered that the clock there was being reset.   What brought it to my attention was that my f.Lux in UBuntu wasn't turning on at the right times, so I went and checked the time in BIOS and noticed that it was forward by 7 hours. This explains a few things, ans I suspected its probably the battery, BUT something weird is happening that tells me otherwise.     If I go into BIOS and set the clock to the correct time, and then load into Windows, everything stays fine. I can restart the system into Windows and nothing changes in the BIOS or Windows time. If I log into Ubuntu via the Windows bootloader the time changes in the Ubuntu Clock to be behind 7 hours. If I reboot again into Ubuntu the Ubuntu clock is still off and the BIOS clock is normal. The only time the clock chnage sin the bIOS is when I change the time in UBuntu clock, (either by selecting manaul or internet sync).    What is strange is that after the BIOS is modified to have the wrong time, the clock in Ubuntu will seem correct by displaying the right time. If I fix the time in the BIOS, log straight Into ubuntu wia windows bootloader, the Ubuntu clock will be off.    Its almost as though Ubuntu cant read the BIOS clock properly or sync with it.   Running Windows7 64 bit alongside Ubuntu 14.04 64 bit


Since English is not my native language, I have a hard time understanding some expressions I hear in movies. From what I gather, it's possible to start a question with "say", such as "Say, do you know any good restaurants around here?"  What is the proper usage for this structure? Do people frequently use it in conversation? Is it a rude thing to say?


How to check if a number is Roman in bash

I found this but i don't undertand it: if [[ "${ARG//[IVXLCDM]/}" != "" ]] then         echo "Wrong input" fi


I'm having trouble using newcommand with the \href   I would like a newcommand like this:   \newcommand\link[2]{\href{#1}{\underline{#2}}}    This command works fine quite all, for exemple:   \link{htt://www.impa.br}{IMPA}    But it does not work when the URL name has code like #1. For example, it does not work in this exemple:   \link{http://matematica.obmep.org.br/index.php/modulo/index#1}{modules}   It does not work because the #1 in the URL name is used with the #1 in the newcommand.   How could I solve this problem?


On the Stack Exchange iOS app version 1.6.6.2, iOS 9.3.5 (old, I know, but it's the highest I can upgrade my iPhone 4s to), I am getting this error repeatedly when trying to log in with Google.    I just updated the iOS app, so version 1.6.6.2 seems to be the latest supported on the highest version of iOS my phone will support.


Partial derivative of normal cdf w.r.t sigma

I am trying to find the partial derivative of univariate normal cdf w.r.t $\sigma$. I just need some direction. So far I have gotten this:  $\frac{\partial }{\partial \sigma}\Phi(x,\mu,\sigma^2) = \frac{\partial }{\partial \sigma} \displaystyle\int_{-\infty}^x \frac{1}{\sqrt{2\pi}}\exp\left(-\ln(\sigma)-\frac{(x-\mu)^2}{2\sigma^2}\right)dx $  $ = \displaystyle\int_{-\infty}^x\frac{\partial }{\partial \sigma}\frac{1}{\sqrt{2\pi}}\exp\left(-\ln(\sigma)-\frac{(x-\mu)^2}{2\sigma^2}\right)dx$  $ = \displaystyle\int_{-\infty}^x\frac{1}{\sqrt{2\pi}}\exp\left(-\ln(\sigma)-\frac{(x-\mu)^2}{2\sigma^2}\right)\times\left( -\frac{1}{\sigma}+\frac{(x-\mu)^2}{\sigma^3}\right)dx$  $ = \displaystyle\int_{-\infty}^x -\frac{1}{\sqrt{2\pi}\sigma^2}\exp\left(-\frac{(x-\mu)^2}{2\sigma^2}\right) + \frac{(x-\mu)^2}{\sqrt{2\pi}\sigma^4}\exp\left(-\frac{(x-\mu)^2}{2\sigma^2}\right) dx$  I don't know how to proceed from there.


Sections of tensor powers of dual of tautologic line bundle are homogenous polynomials.

Let $\mathbb{P}^n$ be the complex projective $n$-space and let $\mathcal{H}$ be the dual bundle of the tautologic line bundle over $ \mathbb{P}^n$. I have a feeling that the author of a paper I'm reading is calling a section of  $\mathcal{H}^{\otimes r}$ a "homogeneous polynomial of degree $r$ in $n+1$ variables". I can (kind of) roughly see why one might conceive of a section of this bundle as such. My question is: is there an exact correspondence between homogeneous polynomials of degree $r$ in $n+1$ variables and sections of $\mathcal{H}^{\otimes r}$, or is it just convenient and intuitive shorthand, or neither?


The following code fails to compile stating  "A local variable named 'st' cannot be declared in this scope because it would give a different meaning to 'st', which is already used in a 'child' scope to denote something else":           var l = new List<string>();         l.Find(st => st.EndsWith("12"));         string st = "why this fails?";   I understand why this won't work:          string preParent = "";         {             string preParent = "Should fail cause we change the meaning";         }   When we do the following we get "CS0103: The name 'postParent' does not exist in the current context":          {             string postParent=string.Empty;         }         postParent = "Should this work?";   What I don't get is why is the compiler smart enough to see that postParent is not within scope, but won't let me define a new variable that has the same name as a variable used within a child scope (which is obviously out of scope at this point).   Is the compiler simple enforcing scope by refusing to let me use the variable? If so this makes sense.  ===========  Edited:   I guess what I also find interesting is how you can have the same variable within two child scopes in a single method, so this is valid:          {             string thisWorks= string.Empty;         }         {             string thisWorks= "Should this work?";         }   I'm just a little curious that you can have two variables with the same name as long as they are at the same level (if you look at scope as a tree). This makes sense because you can have local variables in two methods of the same class with the same name.   I'm just surprised that the compiler is able to differentiate and allow this, while it wouldn't allow the postParent variable. And is this a technical limitation or was this a design decision? That's what I'm really trying to get at;-)


Is there a phenomenon visible to the naked eye that requires quantum mechanics to be satisfactorily explained? I am looking for a sort of quantic Newtonian apple.


I'm trying to describe a json object structure in a javadoc and it shows just fine until I format the code, which flattens the javadoc content.  How it looks when typing (And how I want it to look at the end):  /**  * A configuration blah blah blah  * KBA : {  *     ...  *     crossReferences: {  *         IS : "happy",  *         SJ : "sad"  *     }  * }  * @param value The value of the current node  */   How it looks after formatting (Ctrl+Alt+L):  /**  * A configuration blah blah blah  * KBA : {  * ...  * crossReferences: {  * IS : "happy",  * SJ : "sad"  * }  * }  * @param value The value of the current node  */


I have a problem to attempt to the Order object based on the custom Contact lookup. I use the query:  select Id, (select id from Orders ) from Contact   and the object looks like that:   The error is:     Didn't understand relationship 'Orders' in FROM part of query call.


Visa for Thai wife going on holiday with British husband in Spain

I am a British citizen with a Thai wife, who at the moment is in the UK on a settlement visa. I am looking at taking a holiday with her to Spain in early 2018, 2-3 weeks.  Would my wife need at visa to visit Spain and if so what visa does she need?  If she does need a visa do you have an idea of what the cost would be?  And are there certain criteria that need to be met? She works part time and I'm in full time employment.


Movie featuring  space crew, murders, a forbidden door and ending with a revelation

I searched wide and far and couldn't come up with a title for a movie I watched somewhere around the mid-90ies up to early 00's as a rerun in late-night television (in Germany, specifically on Vox; but I'm sure it was an American movie to begin with).  Basically, what I remember from the story revolves around a crew in a space station or maybe space ship of some sort. Some crew members murder other crew members and there is some kind of door they are not supposed/unable to go through. Late in the movie they do go through the door and I'm pretty sure one of the first views is a skeleton of a dead security guard. It turns out the whole thing was some kind of simulation gone wrong and they find themselves to be in a (nuclear?) wasteland. And that's pretty much the revelation/wrap-up of the movie, as I recall it.  I would be delighted if somebody had any idea what movie this could be :) Thanks!  EDIT: The whole movie was in color and I think it was feature-length, not just 45 mins.