Harry Potter and the Chamber of Secrets - Basilisk birth and rarity

Why are Basilisks so rare if they are born from such common conditions? (A Chicken egg and a Toad sitting on top whilst hatching) A simple charm should keep the Toad stationary you'd have thought? A chicken and a toad are all that are mentioned from what I can find. I understand the mythology is borrowed from the Cockatrice, but if this is genuinely the way these serpents are born then surely these creatures would litter the Wizarding world? I imagine these would also be quite common naturally if a toad happened to hop on an egg in a farmhouse. Also Hermione finds this in the library, I assume not from the restricted section since only the older students studying Defence against the dark arts can use this without a note from a Teacher. So technically any student in the school could walk into the library and create one of the most feared creatures known to Wizard-kind. This doesn't seem right? Some extracts below for context.  "This snake, which may reach gigantic size, and live many hundreds of years, is born from a chicken's egg, hatched beneath a toad." "It is a creature bred by Dark Wizards. Herpo the Foul was the first to breed a Basilisk; he accomplished this by hatching a chicken egg beneath a toad which resulted in the creature known as a Basilisk. Basilisk breeding was banned in Medieval times. The practise can be hidden when the Department for Regulation and Control of Magical Creatures comes to check by simply removing the egg from the toad."


Bare infinitive after "can see"/ "can hear"

After can see/hear, can the bare infinitive be used?    e.g.,       I could see John get on the bus.     We can say "I could see John getting on the bus," but is it possible to say "I could see John get on the bus."  This is in response to Roguemue's comment that this is a replicant of a post. Roguermue's suggested post is about the verb hear + personal pronoun: this post is about the modal + can + see/hear + infinitive without to. To go on further, as posted down below, it was my assumption that the construction is okay, but Swan, Practical English Usage, wrote that it's an invalid construction "After can see/hear only the -ing structure is used. I could see John getting on the bus. (NOT J could see John get ... ) These structures can be used after passive forms of hear and see. In this case, the infinitive has to." (Practical English Usage, 242, pg. 222)   I am looking to either confirm Swan's usage rule or to find opposing evidence.


When can/can't I upload full-text to researchgate?

I just joined research gate (finished PhD in December - published 3 papers early this year) and as soon as I made an account, it shows that someone requested full text of one of my papers 20 weeks ago.  Am I allowed to just upload the .pdf? What are the rules there and how will I know if/when it is appropriate?


I wanna give away my old iPad to my kid, and would like to delete my Gmail account from the old iPad.  Questions:  1) Will my Gmail account be totally erased when I delete my Gmail account on my iPad?  2) I have thousands and thousand of contacts in my iPad which is linked to Gmail, I'm afraid if I delete the Gmail account, all contact details will be gone forever.  Thanks and looking forward to your favorable reply.


Compute this factor group: $\mathbb Z_4\times\mathbb Z_6/\langle (0,2) \rangle$

So I'm going through example 15.10 in Fraleigh, which is computing $G/H$, where $G = \mathbb Z_4\times\mathbb Z_6$ and $H = \langle (0,2) \rangle$.   We have $H =\{(0,2), (0,4), (0,0)\}$, so the subgroup generated by $H$ has order $3$.  Since $G$ has $24$ elements and each coset has the same number of elements as $H$, there are $24 / 3 = 8$ cosets in $G/H$.  Fraleigh says, The first factor $\mathbb Z_4$ of $G$ is left alone.  The $\mathbb Z_6$ factor is essentially collapsed by a subgroup of order $3$, giving a factor group in the second factor of order $2$ that must be isomorphic to $\mathbb Z_2$. So $G/H$ is isomorphic to $\mathbb Z_4\times\mathbb Z_2$.  The bolded is what confuses me. Here are the elements of our factor group (the cosets of $H$ in $G$):  $(0,0) + H = H$  $(0,1) + H = \{(0,1), (0,3), (0,5)\}$  $(1,0) + H = \{(1,0), (1,2), (1,4)\}$  $(1,1) + H = \{(1,1), (1,3), (1,5)\}$  The process continues and we have $4$ more cosets.  I don't see how Fraleigh computes this factor group so quickly / without writing out the cosets.  Even with writing out the cosets, I'm not sure why it's clear that $G / H$ is isomorphic to $\mathbb Z_4\times\mathbb Z_2$.  Any help much appreciated, Mariogs


Infant turns in her sleep, is that a concern?

It´s summertime now where we live, and it can be pretty hot (30 degrees Celsius or 86 Fahrenheit). So we put our daughter of 5 month to sleep on her back without blanket or sleep sack.  However, she sometimes turn on her tummy in her sleep. Is that a concern ? Should we turn her back on her back ? Should we put a light blanket to prevent her from turning while sleeping ?


Innertube fat on one side, skinny on the other

I just bought a bicycle/bike tube (20"), when i inflate it, 1 side of it goes big/fat and the other just inflates normally, what should i do? , its happened with some of my other tubes.


What is best practice for designing form error messages?

I've seen quite a lot of research on form design, but so far, I haven't come across any studies on error message design best practices. The only piece of advice seems to be that each error should clearly be associated with the invalid form field that it aims to correct. Has there been any research on this?  I have some specific issues I'm trying to work through and would appreciate any insight or resources.  Error message location  When you have live form validation, where should an error (or success) message appear in relation to the form element?  Some options:    To the right of the input         – Wireframes created with     To the right of the label            Above the label            Below the label            Below the input            There are some thorny issues that also need to be taken into account regarding location:   How are errors displayed for radio or checkbox groups? How wide is the error message? Is the error message multi-line?   Error message visibility  Besides location, I'm also interested in how the visibility of the error message affects its usability. Does it matter or is it strictly a aesthetic decision?  Consider the following 3 options:          Edit: There have been some excellent points on accessibility in some of the answers so far, as well as some interesting examples. However, I really would like to see some data from actual studies, if possible. Also, none of the answers so far have really addressed the two questions I had above:   Where should the error be located in relation to the input and label? How does the design and visibility of the error message itself affect its usability?   Regarding the accessibility of the forms, it seems to me as if there might be two potentially conflicting use cases, live validation and server-side validation (which would require reloading the page). If the page is reloaded and the user again starts at the top of the form, an error summary makes sense, especially from an accessibility perspective. However, in the case of live validation, the error summary at the top makes much less sense, both for form design and for accessibility purposes.   Consider how a user would actually use a form with live validation:  The validation occurs on the blur event. Usually, the focus of will be on the next form element, not the list at the top. As I understand screen readers, there wouldn't be any reason to return to the top of the form to read the error list. For users not using screen readers, the error list at the top pushes the entire form down, doubly so if the error takes up vertical space near the form field as well. In longer forms, this is a usability issue as the error summary may not be visible. In shorter forms that have per-field errors, like a login, the error summary just looks like overkill. For all forms, the interface would be pushed down, making a poor user experience.  For live validation, if you really want to make the form errors accessible, I think using  might be the preferred solution.


Using dnsmasq to resolve all hosts to the same address

I'm running Ubuntu server on a computer used as a wireless AP, but this AP should resolve all DNS requests to an internal IP address rather than actually performing the lookup.  I want to do the same thing that paid public WiFi hotspots do - you can connect but if you attempt to load any websites they show a default page. I've noticed that they do this by resolving all domains to an internal IP address.  I've added these lines to /etc/dnsmasq.conf:  # Add domains which you want to force to an IP address here. # The example below send any host in double-click.net to a local # web-server. address=/com/192.168.2.1 address=/uk/192.168.2.1 address=/org/192.168.2.1 address=/gov/192.168.2.1 address=/net/192.168.2.1 address=/us/192.168.2.1   which works fine for those TLD's, but I'd like to be able to do it with all domains so I can sleep at night.


Does the Mage Slayer feat interrupt the triggering spell?

If a mage casts a spell within 5 feat of a character with the Mage Slayer feat, does the reaction of attacking the casting character go off first, or does the spell go off first?  The  feat (PHB, p. 168) says:     When a creature within 5 feet of you casts a spell, you can use your reaction to make a melee weapon attack against that creature.   So which happens first?  Another reaction, the  spell, says that when you are hit by an attack, you get +5 AC against all attacks, including the triggering one - but if the attack didn't hit then the reaction couldn't have been triggered. So I assume both interrupt the triggering action, and are then treated as occurring before the trigger.


I want to add different items to a list and then delete each one of them using a 'click' event. However, the bellow snippet only allows me to delete those preset items but not those I have added. Could anyone tell me what I'm doing wrong ?  HTML

List

Buy groceries

fresh figs

pine nuts

honey

balsamic vinegar

<button href="#" id="showForm">new item</button>
   <form id="newItemForm">     <input type="text" id="itemDescription" placeholder="Add description..." />     <input type="submit" id="addButton" value="add" />   </form>
        jQuery  $(function() {   var $newItemButton = $('#newItemButton');   var $newItemForm = $('#newItemForm');   var $textInput = $('input:text');    $newItemButton.show();   $newItemForm.hide();    $('#showForm').on('click', function(){     $newItemButton.hide();     $newItemForm.show();   });    $newItemForm.on('submit', function(e){     e.preventDefault();     var newText = $textInput.val();     $('li:last').after('
' + newText + '
');     $('li:last').attr('class','hot');     $newItemForm.hide();     $newItemButton.show();     $textInput.val('');   });   var $listItems = $('li');   $listItems.on('click', function(){   $(this).animate({       opacity: 0.0,       paddingLeft: 50     }, 500, function(){       $(this).remove();     });   }); });


When adding a bug report via Android app, list of specification items added to message body automatically. And for the last one (OS) extra space character is added (you can also see it in current post).   App Version: 1.0.85 Device Manufacturer: LGE Device Model: LG-D802   OS Version: 5.0.2 (152331922a212)


I have two tables : orders and clients. Clients have one or more Orders (JOIN condition : clients.id = orders.client_id). I need to retrieve every client with their most "recent" order, based on a date column (named created) in orders table, in one request if possible. Everything I tried retrieve each client with the first order found, not the last (and I can't rely on the primary key for that). How should my request look like? I could try a subquery with a MAX(created) but two problems:  There could be more than one order with the same date. I'd need to order them by ID but it's impossible inside a subquery? I need to retrieve more than just the date column.


What are the mechanics by which Time Dilation and Length Contraction occur?

What are the mechanics of time dilation and length contraction? Going beyond the mathematical equations involving light and the "speed limit of the universe", what is observed is merely a phenomenon and not a true explanation of why time dilates or length contracts.  It has been proven to work out, but do we know why?  Is it something that happens at a subatomic level?


Prove $\frac{d}{dx} x^n=nx^{n-1} : \forall n\in \mathbb{Z}_{+}$ by induction

Problem  Prove $$\frac{d}{dx} x^n=nx^{n-1} : \forall n\in \mathbb{Z}_{+}$$ by mathematical induction.   Attempt to solve   Base case  when $n=1$  $$ \frac{d}{dx} x^1 = 1 \cdot x ^{0}=1 $$  which is true  Induction step $$\frac{d}{dx}x^{n+1}=(n+1)x^{n+1-1}= (n+1)x^{n}$$  At this point not quite sure how to prove this with induction without proving operator $\frac{d}{dx}$ with   $$ \frac{d}{dx}f(x)=\lim_{h \rightarrow 0}\frac{f(a+h)-f(a)}{h} $$ and then proving existence of such limit with:  $$ 0<|x-a|< \delta \implies|\frac{f(a+h)-f(a)}{h}-\frac{d}{dx}f(a)| < \epsilon $$  and then we can arrive at implication that $$\frac{d}{dx}x^n=nx^{n-1} \implies \frac{d}{dx}x^{n+1}=(n+1)x^n$$  Most likely there is easier by induction which is capable of showing that $$ \frac{d}{dx}x^n=nx^{n-1} $$ is applicable $\forall n \in \mathbb{Z}_+$?


Do skilled cyclists really "use the front brake alone probably 95% of the time"?

Sheldon Brown's  page states that:     Skilled cyclists use the front brake alone probably 95% of the time   and     "Generally I advise against using both brakes at the same time."   I certainly use my front brake more than my rear brake, but not exclusively. Specifically, I pull two or three times harder on the front brake than on the rear, and as I come to a stop and feel less traction on the rear wheel, I gradually let up on the rear brake. Sheldon's advice implies that it would be better to use the front brake exclusively.  The page states cases for the exceptions where a cyclist should use both brakes together or the rear brake alone but doesn't provide a rationale for why not to use the two brakes together. In normal conditions, is using the front brake alone truly better than using both brakes, and if so, why?  (Related question: )


Example to prove that $ C^1[0,1] $ is not a Banach space for the uniform norm?

The space $ C^1[0,1] $- the space of all continuously differentiable functions on $ [0,1]$ is not a Banach space with respect to the sup norm,$ \|.\|_{\infty} $ since the uniform limit of a continuously differentiable function need not be differentiable.  How can I illustate this statement using a counter example? Can I use $ f_{n}=\frac1 n \sin nx $ as a counter example?  Also, is $ C^1[0,1] $ is same as the space given by $ X=\{f\in C^1[0,1]:f(0)=0 \}$. Can I use the same example to show that this is not a Banach space?  More help is appreciated! Thanks!


What is ubuntu safe graphics and can I enable them for normal use

I'm been having graphics issue with Linux (blank screen or screen flickering). Since I can't solve them I'm trying another path. When I installed ubuntu I used safe graphics mode and everything went smoothly, so my question is what is it and how can I use them for my install, if that is possible.


Work and energy - explanation of definition

I have a question about the definition of energy.  the definition is "ability to do work". what does it mean? what is the ability that the definition talks about? what is the meaning of ability in energy? I understood the concept of work, and it would be great if someone could explain to me the concept and definition of energy.


Is my way of using mysql completly save from SQL Injection?

I read so much about types to prevent sql injections. I probably don't want to use prepared statements if there is another way to prevent them by 100% of the cases.  Currently I'm sticking to this:  $safe_var = mysql_real_escape_string ( $unsafe_var); mysql_set_charset("utf8"); $sql = "REPLACE `news` (`id`, `author`, `title`, `text`, `time`)" . "VALUES ('".$id."', '$author', '$title', '$text', UNIX_TIMESTAMP());"; mysql_query ( $sql );   For this example all the variables in the sql statement are constructed as the safe_var at the start. I see many opinions on what is save in sql and what not so I don't know what is right. My question is, is this 100% save and is it save to use this way in every possible sql statement, by using mysql_real_escape_string and putting the variables in single quotes as I did in the statement?  Thanks in advance for help!  PS: I know there are many question likes this but everyone keeps saying diffrent stuff and I still not found anyone that says that my way is safe from sql injections in every possible statement.


Singular or plural verb after parenthetical material containing a conjunction?

I would tend to say     Sara (and all of us) have a lot to think about now.   ...but it occurs to me that if I remove the parenthetical it's clearly incorrect. Is it proper to say     Sara (and all of us) has a lot to think about now.   ...that sounds really strange to my ear.  Also, does it change the rules in any way if I use an em dash, e.g.     Sara–and all of us–have a lot to think about now.


I need a simple script for JavaScript countdown for quiz preparation.   Initially quiz page loads, countdown timer to be start for 30mins After 30mins over, it shows alert message to user.   Below is the code which am using, but after 30mins it decrementing..  <html> <head> <title>Countdown</title> <script type="text/javascript">  var mins = 30;   var secs = mins * 60; function countdown() {     setTimeout('Decrement()',1000); } function Decrement() {     if (document.getElementById) {         minutes = document.getElementById("minutes");         seconds = document.getElementById("seconds");         if (seconds < 59) {             seconds.value = secs;         } else {             minutes.value = getminutes();             seconds.value = getseconds();         }         secs--;         setTimeout('Decrement()',1000);     } } function getminutes() {     mins = Math.floor(secs / 60);     return mins; } function getseconds() {     return secs-Math.round(mins *60); } </script> </head> <body>  <div id="timer">     This is only valid for the next <input id="minutes" type="text" style="width: 14px; border: none; background-color:none; font-size: 16px; font-weight: bold;">  minutes and <input id="seconds" type="text" style="width: 26px; border: none; background-color:none; font-size: 16px; font-weight: bold;"> seconds. </div> <script> countdown(); </script>   Thanks in Advance.


See the comment of @DVK on this question (in desktop view, not mobile):   How to make font size of a comment big? What's the markup?  Can all users do it? Or, only selected guys have this privilege? @DVK in question is topmost guy on SFF.SE and has Gold Badge in harry-potter tag. Has something to do with that?  Update: Here's the screenshot as some guys are unable to see it:   Web Browser is Firefox for Android. I am not using any script or mod.


Is it possible to make slideshow with u3d files in a beamer template?

I'm just interested if there is a technical way to merge between animate package and movie15 package in order to get an interactive 3D slideshow (like that shown below in the link) with full features of movie15, like including .u3d files, rotating and zooming each 3D figure in each slideshow.    The above link gives an example of how to make an interactive slideshow, but without 3D capability of each slide that can be satisfied by using movie15 package  I have tried to find someone documents or information regarding this point, but I think either it is impossible or still nobody did that.  I think if it is possible, then it will be a great add-on that could help everyone.


Recently the  bot was ran on Ask Ubuntu Meta to migrate all the MSO links to MSE links. But in the process, the bot converted all the posts written in markdown to HTML. An example preview:    This bot doesn't like markdown and I want it to be handed a time-bound suspension. It has vandalized all the posts that were written in markdown to convert to a different language. Moreover, the bot has edited 289 posts on our Meta in a span of less than a second.  In addition to the suspension, it would be better if all the posts can be re-converted to markdown.


My 15-month old has 2 long sleeps during the day. From 10am to 12 or 1pm and the second sleep from 3.30pm to 6pm.  I have read around that at this age he should be sleeping around 2 hrs during the day, which means my little one is sleeping up to 3x more!  Is this bad? Should we wake him up? Anyone with similar experience?


Choosing between meaningful and meaningless hostnames

Assume an environment with a puppet-managed cluster of different servers - various hardware, software, operating systems, virtual/dedicated, etc.  Would you choose meaningful hostnames (mysqlmaster01..99, mysqlslave001..999, vpnprimary, vpnbackup, etc.) or would you prefer meaningless hostnames such as characters from a book or movie?  The problem I see with meaningful hostnames is that names usually represent a single service and if a server has more than one purpose it gets really messy (especially if server roles change often).  Isn't mapping a service name to an IP address and maintaining that mapping what DNS is supposed to do?  What are the advantages and drawbacks of both approaches and what actual problems have you had to tackle with the approach you chose?


Since updating to iOS 11, search is unable to find my apps. Is this a new feature of iOS 11; a bug; or something that will eventually resolve itself over time?  I have so many apps that the only practical way to find them is to search for them, and in the past this has worked perfectly. E.g. simply typing "stack" (in fact just "st") suggests several apps including the one I'm looking for,  listed right at the top of the screen.  Now however I get a very different result:    A bunch of useless search results at the top, and a suggestion from the app store for an app I'd never want. No sign of the frequently used app sitting right on my device.  What's going on here. Is there anything (short of restoring iOS 10) that I can do do address this?    Judging from the behavior I'm seeing I wonder if Apple hasn't changed the meaning of the Siri setting for apps from meaning "search in the app" to "search for the app": the only apps I see at all are ones where this setting is enabled. Is that perhaps what's happened (or does having this on just get those apps indexed first)?


Handle expired SQL login's passwords in SQL Server

Is it possible to change the password for a login with an expired password using SQL Server Management Objects (SMO) programming? Many times during working hours I got this message from a production server. I have a 'sa' level privilege in SQL Server.  Working Environment  Microsoft SQL Server 2012 Express Windows Server 2012 R2 VMware,Inc. VMware virtual platform


What is the determinant value of $J-I$ if $I$ is identity matrix and $J=(1)_{101\times 101}$?

Let $J$ be a matrix of order $101\times 101$ which each entry is 1 and suppose $I_{101}$ is identity  matrix of order $101\times 101$. The question is : what should be the determinant value of $J-I$ ?  This one I trying last one week but in vain. What I find is $J-I$ is a matrix which leading diagonal entries are all zero and all other entries as 1. Some thing like this  $$J-I=\left(\begin{array}{ccc}      0 & 1 & 1 &\cdots & 1 \\      1 & 0 & 1 &\cdots & 1 \\      1 & 1 & 0 &\cdots & 1 \\       & \cdots &  & \cdots  &  \\      1 & 1 & 1 & \cdots & 0 &   \end{array}\right)$$  Its a  Toeplitz matrix if I am not wrong. In websites, I have searched how to get the determinant values of such matrix but what I have got is very very complicated idea and I do believe that the solution strategy for this problem would not be that much difficult. But then how to figure it out ?   How to compute its determinant ?


cd command not working properly, can't get to desktop

I am really new to Linux and Ubuntu 12.04. Even though I already have the regular Firefox, I'm trying to install Firefox from Mozilla's site. Since I (at least think) that I can't install through a GUI, I'm trying to install through the terminal using , however, every time I try to use the cd command, like, for example cd home/myusername/desktop , it returns with the phrase "No such file or directory."   What am I doing wrong?


Early 90's scifi cartoon - Boy under a purple dome with a 'mic' and an animal

It was a bit weird as I remember it - a boy was lost on a planet, was with a pet, looked a bit like a llama, went under a dome shaped thing that looked like purple trees entwined. He had this egg shaped speak with him (think it was red and white) that he called Mic.  I think it was communicating with the ship that was coming to rescue him.  The Llama creature went into a cave and got eaten by tentacles.  I think the boy eventually got rescued, and I also remember something about faceless humanoid things with wings…. Never been able to find or identify it and I would really like to know what it is and if it’s as weird as I remember it…?


Is rebasing the best strategy to merge the branches

I have a parent branch and child branches.   when I want to merge a child branch into a parent branch , it's said that Re-basing the branch is the best way to merge.   If we're rebasing all the changes made in the other branch will come into the current child branch right ?   Then when someone wants to see what are the new changes made in the child branch will have the changes of the other branch too right.  Can someone throw some light on Rebasing vs Pull request vs Merge ?  I'm trying to find the best way go about merging the branches.


How to reconcile Tiefling's Infernal Legacy's Hellish Rebuke with melee warrior?

Infernal Legacy grants tieflings ability to cast Hellish Rebuke as a reaction at 3rd level, as if it was cast using a 2nd level spell slot. Hellish Rebuke as spell has Verbal and Somatic components.  How can a tiefling using a sword and a shield (or wielding two weapons, separate item in both hands anyway), cast it in a battle, as a reaction? Is there something which allows practical use in regular battle, or is this class feature nearly useless for most front line fighting tieflings? Am I missing something obvious here?  The spell description does say "point a finger", which could be plausibly done with weapon in hand, but I don't think requirements of somatic component allow such exceptions strictly RaW?  I mean, it can still be used in bar fights, but 3d10 fire damage seems rather excessive retribution for some peasant hitting you with a beer mug... And I guess there's the odd ambush where damage is done when the PC does not have weapon in hand yet. And a principled good-aligned warrior might walk into a battle with an empty hand, and only envelope the baddie in hellfire after receiving a damaging hit, and then draw a weapon, but that is getting a bit ridiculous...    Alternatively, are there other options for making that high-AC front-line tiefling warrior, who can use its racial abilities in battle well?


there was an accident on dam neck road / there was an accident at dam neck road

How do you determine when to use which proposition? (in on at...)  Its easy to say I'm sitting on a box or in a box  But sometimes its confusing  Like for example, do you say -I'm in school Or -I'm at school  -there was an accident on this road Or -there was an accident at this road


Suppose $a_n>0$ and $\sum_{n=1}^{\infty}{a_n}$ diverges. Determine convergence of $\sum_{n=1}^{\infty}{\frac{a_n}{s_n^2}}$, where $s_n=\sum^n a_n$.

Suppose $a_n>0$ and $\sum_{n=1}^{\infty}{a_n}$ diverges. Determine whether $\sum_{n=1}^{\infty}{\frac{a_n}{s_n^2}}$ converges, where $s_n=a_1+a_2+ \cdots + a_n$.  My attempt:  By testing a few examples, the series $\sum_{n=1}^{\infty}{\frac{a_n}{s_n^2}}$ converges. We proceed to prove it.  Note that   $$\frac{a_n}{s_n^2} \leq \frac{a_n}{n^2(a_1a_2\cdots a_n)}$$  Now if I manage to prove that $a_1a_2\cdots a_n \geq 1$, then the inequality above becomes   $$\frac{a_n}{s_n^2} \leq \frac{1}{n^2}$$. My guess is that it should have something to do with the divergent series $\sum_{n=1}^{\infty}{a_n}$.   Then by the Comparison test, we are done. However, I have difficulty to prove the claim. Can anyone give some hint?   UPDATE: So I made some mistake in my working. Here is my another 'promising' claim: $$a_n \leq (\frac{a_1+...+a_n}{n})^2$$ It seems to work for any series satisfying the question. But I am unable o prove it.


I am doing a multiple choice test, and they say that   $(p\oplus q)\land q$ is logically equivalent with $\neg (p \land q)$  I am confused about this, because normally I can verify with a truth trable, But I do not understand $\oplus$ could someone explain this for me?


How do I suppress the "In: " before the journaltitle? Like so:     In: Journal of Applied Physics


Flatten the curve between all points (with an optional constant)

I've been given a series of points equidistant from one another, where each point can be raised (incremented) by a maximum value of a common constant c (each point can be incremented anywhere from 0 to c units) in order to help flatten the curve of the graph of these points as much as possible. I was wondering if anyone could help point me in the right direction as to what kind of formulas or functions would help flatten the curve as much as possible given the conditions above. I believe this is an optimization problem but I could be wrong and I would greatly appreciate a nudge in the right direction. (I believe I am trying to optimize for the flattest possible slope between each point) For example, Given the initial list of 10 equidistant points [75, 110, 115, 105, 95, 85, 75, 65, 45, 50] where each point can be incremented anywhere from 0 <= c <= 6, return a new list of 10 equidistant points where the slope between each point in the graph has been minimized by adding a c value to any/all of the points in the initial list. This is not school related so there is no need to solve the above problem if you don't want to. Any explanation as to how I may get a result is greatly appreciated.


Are L-shaped and T-shaped Magsafe 1 interchangeable?

I want to buy replacement Magsafe 1 cable for my MBP 17" Late 2011, and they are available in two options — L-shaped and T-shaped. My computer was shipped with L-shaped connector, however I want to swap it for T-shaped, as I find it more convenient.  So, will it fit? Are there current restrictions on T-shaped connectors, e.g. won't they overheat when powering 85W MBP?


I thought a few good options would be "amble"; "slog"; "plod" - but they are mostly used in context of walking.  I want to use the word in a sentence like -       I (insert word) over a book for days.


In 2018 about 50,000 people were involved in it, most of them part time or seasonal staﬀ working from small offices in rural areas. Should there be a "being" between "most of them" and "part time or seasonal staff"? It seems weird when there are only nouns. thank you for help


LatexDraw is a PSTricks code generator for Latex. LatexDraw generates PSTricks codes of any fugure are drawn.    Are there any such tools that will generate pgf-tikz code of any figure for latex? If yes please suggest me. Thank you in advance.


How can I force a restart ubuntu 18.04 locked up?

Ubuntu 18.04 has locked up.  Can a restart be forced other than by shutting down?


Is there a feminine equivalent for "Casanova" without negative connotations?


Why is it harder to flip my cell phone about one axis than the other two?

There are three ways (three differenent axis about which) I can flip my cell phone - over the front (like a frontflip), about the center (like a disc of pizza dough being spun by a baker), and over sideways (like a dog rolling over, or like a pizza roller rotating as it rolls over the dough). Of all these ways to rotate, I've found that the first way, the frontflip-like rotation, is almost always unstable. It doesn't only rotate about that axis, even when I try really hard to make it do so. About the other two axes, however, it flips/rotates about only one axis, just as I intend it to.    Why does this happen?


How to install previous Firefox version?

I'm using Ubuntu 14.04 and I use the Perapera Chinese add-on for Firefox. It worked up to version 39, but now in version 40 it just stopped working. So I tried to downgrade to version 39 following , where there are two options:  1) Choose from the list , but I have no idea which of the 11 subversions should I use.  2) Download the only version suggested in the link above, i.e. .  I chose the 2nd option, but after decompressing the file, I have a 'Firefox' folder with lots of files and executables that don't run, just give an error message:  XPCOMGlueLoad error for file (...)/firefox/libxul.so: libXcomposite.so.1: cannot open shared object file: No such file or directory Couldn't load XPCOM.   There's a 'run-mozilla.sh', but 'bash run-mozilla.sh' gives:  run-mozilla.sh: Cannot execute .   I REALLY would like to use Perapera add-on to study Chinese. So, is there an easy way to downgrade to Firefox 39? Thanks in advance.


Prove that if $d$ divides $n$ then $φ(d)$ divide $φ(n)$ for $φ$ denotes Euler’s φ-function.

Prove that if $d$ divides $n$ then $φ(d)$ divide $φ(n)$ for $φ$ denotes Euler’s $φ$-function.  I know that $d|n$ mean there exists some integer $k$ such that $n=kd$, but how can I use this to prove $φ(d)$ divide $φ(n)$


Finding the improper integral $\int^\infty_0\frac{1}{x^3+1}\,dx$

$$\int^\infty_0\frac{1}{x^3+1}\,dx$$  The answer is $\frac{2\pi}{3\sqrt{3}}$.  How can I evaluate this integral?


What's the word for the when you suck snot back up your nose?

My mom and I say 'soup' like: "Why are you souping the snot back up your nose?" But I realise that this is not accurate. So what's the word?


Set default screen position for Emacs GUI app

I'm using the GUI version of Emacs installed using Homebrew-Cask. I launch it by searching into Spotlight, which as I understand is equivalent to opening it from the Applications directory.  App launches fine, but the window (or "frame", in Emacs lingo) always opens up on the upper left corner of the screen. I personally prefer everything to be right in the centre of the screen. Hence, every time I open Emacs, I have to manually drag the window to the center.  Is there a way to set the default position of the window to the centre of the screen so that I don't have to drag it every time I open Emacs?


Why does kirchoffs voltage law hold in AC circuits?

We came across the more general form of faradays law in my EM lecture:  $\oint E \cdot \,dl=-\frac{\partial}{\partial t}(\int B \cdot dA)$  Pretty sure this is me misunderstanding magnetic fields in circuit theory, but in the case of a DC circuit, B is constant and so the rhs of the equation is 0, which gives KVL, the sum of the potential differences in a closed loop = 0. If the currents are varying, so will the magnetic fields they generate. In which case I can't see why in AC circuits KVL holds as the RHS no longer = 0. Can someone explain where my  reasoning has gone wrong.  Edit:  I am more specifically asking where my reasoning has gone wrong. I am already aware that it is valid under ideal circuit theory as an approximation to what really happens.


How do I get Mewtwo after I made it faint?

I accidentally made Mewtwo faint and it won't come back. I tried leaving and coming back, but it didn't work. How can I get it back so that I can catch it?


Is there any condition for groups that have subgroups of order of all divisors of its order?

I want to find the condition of a group $G$ such that for all $a\big||G|$, there exists $H\leq G, |H|=a$. For instance, If $G=C_n$, then for all $a|n$, $C_a\leq C_n$, so $C_n$ satisfies the condition.


Trvially, the empty set $\emptyset$ is a subset of every set $V$(say). Does it mean that $\emptyset$ is also a subset of every subset of $V$? i.e , if $A$ is an arbitrary subset of $V$, then will it be right to say that $\emptyset$ $\subseteq A$?


How can I find out what is taking up space on my hard drive?

I have a tiny hard drive - 128 GB. I am not that technical. I see that other files under storage is taking up say 40 GB of space. My boyfriend got me a WD NAS hard drive and I was able to move my photos from iPhoto, and iTunes, there to free up some space. I accidentally deleted iPhoto so in order to install it. My boyfriend showed me a script that showed the size of some big directories.  .3G   /Applications/iMovie 9.0.9/iMovie 9.0.9.app/Contents/Resources 1.3G  /Applications/iMovie 9.0.9/iMovie 9.0.9.app/Contents 1.3G  /Applications/iMovie 9.0.9/iMovie 9.0.9.app 1.3G  /Applications/iMovie 9.0.9 2.0G  /Applications/iMovie.app/Contents 2.0G  /Applications/iMovie.app 5.3G  /Applications/Install OS X Yosemite.app/Contents/SharedSupport 5.3G  /Applications/Install OS X Yosemite.app/Contents 5.3G  /Applications/Install OS X Yosemite.app 1.1G  /Applications/iPhoto.app/Contents/Resources 1.3G  /Applications/iPhoto.app/Contents 1.3G  /Applications/iPhoto.app 1.0G  /Applications/Microsoft Office 2011/Office 1.2G  /Applications/Microsoft Office 2011  Can i delete the iMovie directory and maybe download it at a later time? Is there a better way to figure out where all the space is being taken up? Like lets say I had an 18 GB zip file saved on my desktop. Theoretically that would be under the other space category but OS X isn't helping make me aware of that file. How do I find big files like that? Mind you i don't have a 18 GB zip file sitting around but I am trying to find if I have any big files sitting around to delete.


My loss is either 0.0 or randomly very high - Tensorflow

I am making a CNN with 6 classes. The 8400 training samples are batched into 84 batches of size 100. I run the model and print out the loss after every batch, the loss is always either 0.0 or some arbitrary number in scientific notation such as 1.74463e+06. Is this normal or am i doing something terrible wrong?    def train_network(x):     pred = convolutional_network(x)     loss = tf.reduce_mean(tf.nn.sparse_softmax_cross_entropy_with_logits(labels = y, logits = pred))  train_op = tf.train.AdamOptimizer(learning_rate=0.01).minimize(loss) with tf.Session() as sess:     sess.run(tf.global_variables_initializer()) # Initialize all the variables     saver = tf.train.Saver()      print("RUNNING SESSION...")     for epoch in range(num_epochs):         train_batch_x = []         train_batch_y = []         for i in range(0, 84):             train_batch_x = BATCHES_IMAGES[i]             train_batch_y = BATCHES_LABELS[i]              print('Starting feed_dict on batch ', i)             _, loss_value = sess.run([train_op, loss], feed_dict={x: train_batch_x, y: train_batch_y})             print('Finished batch --- loss: ', loss_value)         print('Epoch : ', epoch+1, ' of ', num_epochs, ' - Loss: ', loss_value)      correct = tf.equal(tf.argmax(pred, 1), tf.argmax(y, 1))     acc = tf.reduce_mean(tf.cast(correct, 'float'))     print('Accuracy:', acc)      save_path = saver.save(sess, MODEL_PATH)     print("Model saved in file: " , save_path)   ```   When printing the output i get something like this:


How to edit and overwrite a Microsoft Word file in Google Drive

I have an MS Word document on Google Drive.  I want to edit this file and save it (overwrite the file).  But every time it gets opened by Google Docs a new Google docs document is created. Is there a way to just edit and save it? I could not find a save item on the menu.


get number files and folders under a given folder

in Microsoft Windows you can right click on a folder for Properties and it will report Contains # files and # folders  Is there a way to do this in linux on the command line?  I want to know the total number of files and the total number of folders under a given folder as well as within any and all subfolders from that starting folder.


let $A = \left( \begin{array}{} 1 & 0 & 3 \\ 0 & 1 & 2 \\ 0 & 0 & 1 \end{array} \right)$  $A$ has one eigenvalue $\lambda=1$ with algebraic multiplicity $3$ but it has only two linearly independent eigenvectors $\left( \begin{array}{} 1  \\ 0  \\ 0  \end{array} \right),\left( \begin{array}{} 0 \\  1  \\ 0 \end{array} \right)$(this can be easily checked since $A-\lambda I=A-I=\left( \begin{array}{} 0 & 0 & 3 \\ 0 & 0 & 2 \\ 0 & 0 & 0 \end{array} \right)$ and both vectors are in $ker(A-I)$), so the geometric multiplicity is $2$ which is less than 3, the algebraic multiplicity.  and from here, I was told that I need to compute something like $(A-I)w=v$ to find $w$ where $v$ is the eigenvector. but I have two $v$'s, so I don't know which $v$ I should take.  and as I put $A$ in the Wolfram Alpha, I found its Jordan decomposition and there was no $\left( \begin{array}{} 1  \\ 0  \\ 0  \end{array} \right)$ in the column of $S$, such that $A=SJS^{-1}$, where $J$ is the Jordan form.   exactly how to find $S$? I'm so confused.


Avoid rendering hidden objects (blender 2.8)

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


Help Installing Linux W/ Ubuntu onto a Usb stick to boot from another computer From a Linux Machine

Im tryng to boot my computer with Linux w/ Ubuntu through a Usb stick/flash drive. I know how to do it from a windows computer but not from another linux machine...Help?


Is Heritage Druid's ability limited by summoning sickness?

's ability is:     Tap three untapped elves, add {G}{G}{G} to your mana pool   Once I play Heritage Druid, can I tap three elves (Heritage Druid being one of them) and get {G}{G}{G} to my mana pool?  Just trying to be specific here, thought that several players might have the same problems and could solve it with this thread. But still, thank you all for reading and trying to answer this problem for me.


Blender newbie here.   I've created a really simple scene consisting of a subdivided and smoothed sphere, then applied a texture and created a Sun light. Rendering in Cycles I'm experiencing a very odd looking shadow edge. Anyone encountered anything like this? From Maya I'm used to be able to increase the sample of individual lights but I can't seem to see a similar option.     I'm in 2.8 by the way.  By comparison the shadow is actually looking pretty decent in Eevee without changing anything.  Thanks for all your expertise!


Please, please don't show me my own suggested edits in the 10k bar

I recently passed 2k on a public beta site, getting me the moderator tools.  I'm quite active in suggesting tag wiki edits, and it bugs me to no end when the little brown circle has a 4 in it, but I can't review them.  Could you please only show me edits I can do something with? Please?


Prove $e^x > 1 + x +\frac{ x^2}{2!} + ··· + \frac{x^n}{n!}$ for $x>0$ with induction.

I'm having trouble starting with the base case even. So far I've set  $$ f_n(x)=1 + x +\frac{ x^2}{2!} + ··· + \frac{x^n}{n!}. $$  For $n = 0$, $e^x>f_0(x)$, but I'm not sure that's the correct base case since usually $n=1$ is used.   From there, I'm having dificulty establishing $e^x>f_{k+1}(x)$.  I can use derivation, but cannot use integration of any kind. I must use indiction. I do not have a formal definition of $e^x$, and my textbook is not useful or good.  EDIT: I cannot use the power series of $e^x,$ my apologies for taking the question incorrectly!


Previous title:  Lubuntu splash screen problem bc of Nvidia driver.  I'm new to linux and getting under the hood of computers in general.  I'm doing my research but it'll take awhile for me to gain a working literacy in this respect. Please bear with me if I use incorrect terminology.  I'll try to explain what I mean clearly enough for you to infer. Ubuntu saved my hide when Windows XP crashed on me and now I'm using Lubuntu. I love the idea of open source and not being at the mercy of Windows. I use Timeshift to go about things empirically (ie undoing everything I did so I don't get in over my head and cause new problems).  With that out of the way, here's the problem:  My splash screen at boot up and shut down is broken and I'm unable to fix it. It annoys me to no end, and I'm not sure if this is indicative of other problems with my graphics card's performance. I don't know what optimal performance looks like with the card because I just got it. I'm tired of plugging in various commands into the terminal, plymouth-related or otherwise, and getting nowhere. Most of the time I get info that solves my problems but not with this.   When I use any of the Nvidia graphics card's proprietary drivers, the splash screen turns into a blue screen with a janky font that looks like it's straight out of the 80s. The logo and the dots look nasty when this happens. It doesn't freeze up or anything.  When I go back to the open source driver, I get the nice logo back.  My understanding is that I need to use the proprietary driver for 3D graphics, so I'd like to just cut the splash screen out of the bootup/shutdown process entirely.  I'd rather see a black screen for a few more seconds if I can't fix it.   How do I go about that? Is it possible?   Sorry if this has been addressed in another thread.  I'm not sure if 'disabling the splash screen' is the search that puts me on the right track.  Thanks in advance for any polite responses.


What I mean by one way relay is manually reset it to run again. What I need it for: I want a pump to run when a relay is on(manually turned on), when there is no power the relay trips and stays like that in off position. Because even if the power comes back on I don't want the pump on. Until I reset the relay. I keep saying a relay, but it doesn't have to be. Anything that could handle 240V. Is there anything I could use for this?


Do i still need to cancel my existing visa which is expiring before my flight?

I have an existing Schengen visa given by Netherlands and expires on April 27, 2019. I am applying again for a visa going to france, my flight schedule is on April 29-may 6 2019. Do I still need to process the cancellation of my existing visa where in fact it is expiring before my flight. Some said existing visa should be cancelled before you can apply for new visa.


Limit of $\underset{n\to \infty }{\text{lim}}\frac{\ln (n+1)}{\ln (n)}$ without L'Hôpital

I intuitively understand that the limit goes to 1 and I can solve with L'Hôpital but I can't without it. I tried to call it equal to y and rise both sides to the base e but doesn't seems to work. $\underset{n\to \infty }{\text{lim}}\frac{\ln (n+1)}{\ln (n)}$


Through some way I have completely erased all accounts from my laptop. When I try to add a new admin account it asks for the root password. I've tried my password from my previous account and it didn’t work. What do I do to get an admin account back?  Edit: I'm logged in through a guest account right now.  Edit: I have access to recovery mode but I'm not Sure how to get into the root account.  Hasiya Rulzz, I tried this but I don't have any accounts to change the password on and it didn't work with the root account.  Edit: I am not able to download the rescue cd


Test if player has specific item in specific hotbar slot [1.8]

How can I test for a player that has a wooden button in his 1st hotbar slot? (no matter if selected or not).  I tried:  /testfor @a {Inventory:[{Slot:0,id:"minecraft:wooden_button"}]}   But the command block outputs:     [player name] did not match the required data structure


Does GNOME Files (Nautilus) support copy queue in sequential mode?

When dragging/dropping files one by one from one GNOME Files (Nautilus) window to another they will be copied in parallel. This leads to a large and not needed workload without speeding up the transfer of any single file.  Does anyone know how to force GNOME Files to use the file copy queue in sequential mode (one file after another)?  To make my question more precise: I do not ask how to queue sequentially with the help of another program. I expect GNOME Files to be able to handle sequential mode, but simply don't know how to activate it.


Show $2+\alpha$ is a primitive root of $\mathbb{F}_{25}$.

Suppose $\alpha \in \mathbb{F}_{25}$ is an element with $\alpha^2 = 2$, I need to prove that $2+\alpha  \in \mathbb{F}_{25}$ is a primitive root (that is: a generator of the cyclic group $\mathbb{F}_{25}^\ast$ of order 24).  So far, I have tried the following.  Since $\mathbb{F}_{25} = \mathbb{F}_{5^2}$, consider $f = X^2+X+2 \in \mathbb{F}_5[X]$. This is irreducible since it has no roots in $\mathbb{F}_5$. Furthermore we have $$ f(2+\alpha) = (2+\alpha)^2+(2+\alpha)+2 = \alpha^2 + 4\alpha + 4 + 2 + \alpha + 2  = \alpha^2 + 3 = 5 = 0.  $$ So it follows that $f$ is the minimum polynomial of $2+\alpha \in \mathbb{F}_{25}$, hence $$ \mathbb{F}_{5}(2+\alpha) \cong \mathbb{F}_5[X]/(X^2+X+2) \cong \mathbb{F}_{25}.  $$ How to proceed from here though?


How can I modify multiple properties of an Operator in a Panel?

I have an operator that has properties like below  class WM_OT_SceneOpen(bpy.types.Operator):     bl_idname = "wm.sceneopen"     bl_label = "Scene Open"      f_path=StringProperty(default="")     mybool=BoolProperty(default=True)      def execute(self,context):         #some stuff   Now I call this in a panel like this and works   layout.operator("wm.sceneopen").f_path=str(file)    However I also want to be able to pass/modify the mybool property as well during the panel execution but I cant find a way to do that.  This must be possible. But how?  Thanks


Is it better to shoot with a higher ISO, or use lower ISO and raise the exposure in post-processing?

Suppose there are two photos taken in the following scenario:  Scenario 1 - Photo taken using ISO of 3200.  Scenario 2 - Photo taken using ISO of 100.  Both photos are taken in a medium light scenario. The photo in Scenario 2 is quite dark, while the photo taken in Scenario 1 looks good.  From my understanding, higher ISO gives a more grainy photo. So could a photo in scenario 2 (which appears quite dark) be modified in software (e.g. Photoshop) to increase the brightness, and be better than the photo taken with a higher ISO?


how to filter view by hours in sharepoint?

Any ideas how to modify view to filter the last created items in the past 2 hours?   Respect any thoughts without code


70s/80s Sci-Fi book with teleport gates on sub-light spacecraft and an army space suit

I must have read this 35 years ago.  The book was a not particularly thick paperback, which as I recall had a picture of a spacesuit helmet on the cover - white helmet with a green visor which looked a bit like oversize Aviator sunglasses.  The story was about a man whose job was to go through teleport gates onto spacecraft. The spacecraft were unmanned exploration craft and had been operating for many decades. The teleport gates provided the way of maintaining them.  Once the ships reached a world, the gates formed the beach-head for colonisation and exploration, with more people and bigger gates and other equipment being teleported through. The navy dealt with stuff in orbit, and the army with stuff planet-side. The ships were slower than light, unmanned, automated exploration vessels launched in large numbers.  Teleportation could only be achieved between two gates, so the far gates were carried on the space craft.  As I recall the main character is ex-army, which becomes important because his suit is army rather than navy and more heavily armoured. Normally in his job he would be navy/have a navy suit. When aliens are encountered this saves him.  There is some kind of orbital battle when a ship reaches a new world and is either jumped by aliens nor they are already there.  I also recall a teleport gate being on a crashed ship on Venus, and this is a key part of the main plot line which involves some sort of conspiracy (getting hazy now). I think there is a girl involved on Venus too. I vaguely remember that some of the maintenance men had not been coming back from their trips out to the space craft and that may have been why the main character was brought in.  I fancied at one time that it was a book by Brian Aldiss, but I have searched and can't find anything by him which fits the bill.


Access a variable from outside of the function that it's declared in

Is there a way to access a variable outside of the function that it's declared in?  var checkWidth = function () {   var $width = $(window).width(); }  $(window).on('resize', checkWidth);  // access $width here with the value from the resize   Solution:  var $width = $(window).width();  $(window).resize(function () {   var $resizeWidth = $(window).width();    updateWidth($resizeWidth);  });  function updateWidth(a) {   width = a;    // use the new width here }


iball 3.75G-72 connect mobile broadband USB modem not detected in Ubuntu 12.04. how to detect that modem?

I have bought new iball 3.75g modem to connect with Ubuntu1 2.04. But,Ubuntu 12.04 doesn't detect my device. I have already use Gnome ppp tool to detect my modem. But, the tool couldn't detect my modem and shows error message like "no modem found" . What can I do for this problem? please help me. Its urgent.  I don't find any answer yet. help.  siva@siva-XPS-L501X:~$ lsusb  Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 004: ID 0408:2fb1 Quanta Computer, Inc. Bus 003 Device 002: ID 2020:0002


I am have a table:  Student| Grade qwe    | 100 qwe    | 95 qwe    | 90 asd    | 85 asd    | 90 zxc    | 80 zxc    | 75 zxc    | 100   and my Expected output like this, How can I do that?   Student | Grade qwe     | 100; 95; 90 asd     | 85; 90 zxc     | 80; 75; 100   I tried like this but it is wrong:  SELECT d.Student, d.Grade FROM Data d GROUP BY d.Student   Please, help.  Thanks to everyone. I used this query and it works:  SELECT DISTINCT t1.Student,  ( SELECT t2.Grade+'; '    FROM Data t2    WHERE t2.Student = t1.Student    FOR XML PATH('') ) Concatenated FROM Data t1


Why was I awarded the revival badge twice for one answer?

I am just .   I checked  and  but can't figure out why. I also checked  and I think I understand that it can be awarded to multiple answers to the same question.   But the same answer? Why?


How do I fix "E:Type 'b-src' is not known on line 'X' in source list" error?

This is the error I'm getting from using sudo apt-get update   E:Type 'b-src' is not known on line 2 in source list /etc/apt/sources.list.d/tiheum-equinox-precise.list   How can I fix this?


is it possible to have two settings fields in one form?  <?php     echo '<form method="post" action="options.php">';     settings_fields( 'my-plugin-settings-group-1' );     settings_fields( 'my-plugin-settings-group-2' ); ?>   I tried it but it doesn't work, only one settings_fields is saved.  any ideas or other solutions?


Explanation needed about the & operator in PHP?

i'm new here and i have a question that i couldn't find an answer to:  <?php  $val1 = 25;  $val2 = 15;  echo ($value & $value1); // output : 9 ?>   Can anyone explain step by step how this returned 9 ?  Thank you


how to display current section title in header insted of chapter title?  I'm using book and fancychap   MWE  \documentclass [11pt,oneside,final]{book} \usepackage[nohints]{minitoc} \usepackage[round]{natbib} \usepackage{longtable} \usepackage[font={footnotesize,it}]{caption} \usepackage{bookman}  \usepackage[T1]{fontenc}  \usepackage{setspace} \doublespacing %\onehalfspacing \usepackage{multirow} \usepackage[left=35mm,top=30mm,right=30mm,bottom=30mm]{geometry} \pagenumbering{Roman} \usepackage[small,compact]{titlesec} \usepackage[Lenny]{fncychap} \usepackage{arabtex} \usepackage{cp1256} \setcode{cp1256} \usepackage{float} \usepackage[final]{graphicx} \usepackage{epstopdf} \usepackage{array}  \setarab \raggedbottom \begin{document} \chapter{introduction} \thispagestyle{empty}  \section{one} bla bla bla bla bla  \section{two} bla bla bla bla   \end{document}


What is KDE, GTK, GTK+, QT, and/or GNOME?

I'm new to Ubuntu (and Linux in general).  Sometimes when looking at programs in the Ubuntu Software Center, I see things about the programs being 'for the GTK+ environment', or 'for GNOME', or a whole lot of other things.  All I know is that I've got Ubuntu 12.04 LTS, and what I'm seeing through my monitor appears to be the controversial Unity interface.  What are these other things I see mentioned in the descriptions of programs (such as KDE, GTK, QT, GNOME, GNOME 'shell', etc.)?  Are they Linux GUIs that are alternatives to Unity?  Are they dependencies that I need to have?    I've spent the last several months getting used to Ubuntu in its present form (though I confess, I have played around with Compiz, which is fun as hell).  Will these other things completely turn my world upside down if I use them?


Silly question, let me know if this should be on Meta, but should you say "a Ubuntu (computer, LiveUSB, etc.)," pronouncing Ubuntu as "You-boon-too", or should you say "an Ubuntu (computer, LiveUSB, etc.)," pronouncing Ubuntu as "Oo-boon-too"?  Note: I just tagged it as 19.04 because no tags fit.


Regex: Remove every two or more spaces between specific tags and leave just a space instead

I want to remove every two or more spaces between specific tags and leave just a space instead:  For example:
  The context of articles,   stories, and conversations helps you     figure out and understand the meaning   of English words in the text that are new to you.
  My desire output:
The context of articles, stories, and conversations helps you figure out and understand the meaning of English words in the text that are new to you.
  I tried something but it did not work  (?<=
)\s*|\s*(?=
)


Using an email address with two different names in Gmail? (as two aliases)

I've setup Gmail to use my own email address, like info@mycompany.com. When using this address as from-address, sometimes I want it to prefix with my personal name, and sometimes my company name. I mean the possibility to use either: John Doe <info@mycompany.com> or Acme Inc <info@mycompany.com>. Same from-address, but prefixed with a different name.  However, if I add one (in Accounts and Imports) and then add the other, it says: address already exists. Yes, that's right, but I want to use the same address with different names.  How do I go about this, or is this impossible in Gmail?


What happens if you miss a connecting flight?

What happens if you book tickets through an airline or travel agent, but on the travel date miss a connecting flight (either because the first flight was delayed, or because immigration/security took too long at the connecting airport)? Will you be put on the next flight for free? Are you expected to pay for a new ticket or a change fee? I'm specifically wondering about Continental/United, but also curious about airlines in general.


selinux restorecon on systems without selinux like ubuntu

recently i had to change two files on a fedora raw image mounted via loopback on ubuntu, which usually runs in a kvm on the ubuntu host. That made a lot of troubles with selinux after booting from the image because of wrong selinux labelling, the system could not access these files without proper selinux labels.  while i know that i can set on fedora a .autorelabel, it is a long and tedious boot process (about 1 hour on slow disks) and it seems to be too much as I have changed only 2 files (network & passwd). I also do not want to turn off selinux for Fedora!  Is there possibility to mount a fedora image on a ubuntu system, change files and  relabel on Ubuntu. Note that Ubuntu has no selinux active.  "restorecon", which is always mentioned in the web only seems to work with an active selinux, which does not work in this case, with a fedora image mounted via loopback on unbuntu. Is there any way to relabel the changed files correctly, assuming that this labels are part of the ext2/xfs filesystems fedora uses?


How do you make sure that yor medication is legal to travel with?

I have certain medication I have to drink every night, if I where to travel overseas how would I insure that if my bags are searched and they find the pills they dont decide it is drugs?


What is the best way to filter a Java Collection?

I want to filter a java.util.Collection based on a predicate.


Determining percentage of Chamorro ethnicity?

My paternal great grandfather was Chinese from China married my paternal Great grandmother who was Chamorro. They gave birth to my paternal grandfather. This makes my paternal Grandfather 1/2 Chinese 1/2 Chamorro. My paternal grandfather married a Chamorro woman and gave birth to my father. What does that make my Dad? My Dad married my mother who was Chamorro and gave birth to me..What does that make me?


All Menu Items Disappear Seemingly at Random

For the last month or so, seemingly at random and with no discernible pattern, my menu disappears. However, when I look at the Dashboard, what I find is that all the menu items have been deleted but the menu itself is still there. I can select and add the items back and they reappear. There is nothing in my error logs, and I'd guess it's happening about once/week, though that's just a guess.  I am using a modified default theme, though the theme has not changed for over a year and this problem started recently.   Because I cannot predict when this will happen it's difficult for me to remove all plugins indefinitely while I wait as it will break lots of functionality on my site. However, none of the plugins are directly related to the menu system. And they've all been in place for quite a while.   I've seen some posts that seem related to this problem but they all involve huge menus. My menu only has 4 items! The items all point to Pages. The structure/contents of the menu have not changed for a couple years.  Any ideas? Even ideas on how to troubleshoot this would be appreciated.


how do I go from CDG airport to Montparnasse gare quickly and cheaply?

I am coming from India. My flight will land at terminal 2 of Charles De Gaulle airport, Paris. From there I will go to Montparnasse gare where I have TGV train for Rennes. My flight will land at 9.30 am and my TGV train is booked at 3 pm from Montparnasse. So there is enough time I hope.  I would like go from CDG airport to Montparnasse Gare within 2 hours, non-stop or 1-stop (like RER train, Bus etc) and of course I would prefer it to be cheap.


Is the following sentence odd? "I find them comic"

But this is the Old Bailey. He's a Lord — or she's a Lady. You may   find the wigs and the ceremonial ways that people refer to each other   strange or intimidating. I was advised. But I don't find the wigs   intimidating any more than the arcane forms of address; I find them   comic.    p6, Apple Tree Yard By Louise Doughty    My head tells me it should be "comical". My Oxford Advanced Learner's Dictionary tells me that comical is an adjective which means funny, amusing, often because it is odd or absurd.       He looked highly comical wearing that tiny hat    Merriam-Webster (which is an American English Dictionary) says  is: causing laughter especially by being unusual or unexpected. And causing laughter especially because of a startlingly or unexpectedly humorous impact. This matches The OALD's definition.     I must have looked comical in that big hat   And  provides this example:     It made me jump at first, but once I was used to it, I found them strangely comical.   The OALD says that comic is [usu attrib] making people laugh; funny. 2. [attrib] of comedy: comic opera, comic actor  However, The Chambers Dictionary tells us that comic adj. is related to comedy; raising mirth or laughter, funny, humorous while comical adj. means funny, amusing.  For  M-W has: causing laughter or amusement, funny     a comic monologue   His comic timing is impeccable.   If comic is normally used attributively and two dictionaries seem to confirm this, am I right in thinking the following sentence " I find them comic" sounds odd, or worse incorrect?  What if the phrase were the following:     I find him (the judge) comic   Would that be exactly the same?  EDIT I've read the post  but it hasn't answered my query, because that asks about the difference in meaning. The definitions are included in my post therefore I am asking about a specific sentence in a novel  and its grammaticality or appropriateness.


Is it possible to have window transparency in Mutter/Gnome Shell?

I really like the transparency effects in compiz with GNOME2 and wanted to know if there was any way (I'm assuming without using compizconfig) to have some kind of transparency in the windows. Is there something similar to compiz for Gnome Shell?


Why anova disappear in robust regression

My question is  When we run ols regression anova table is given and when we run robust regression then anova table disappear and adjusted r square is also not given why? I want to know the logic behind it and by ANOVA I mean analysis of variance.


Whats the validity period for a US B-1 visa for a Nigerian?

I am a Nigerian. I plan on visiting the United States as I have a an invitation letter for a symposium in February next year.  On a B-1 visa, how long is the validity period? On this site, I see that some say it's valid for 24 months (2 years) and others say it's only valid for 6 months.


Why I can't scan QR code inside Whatsapp?

I have Whatsapp latest version & have the Whatsapp Web Option I put it to scan but it just doesn't scan it. I Installed a QR Scanner app and it works perfectly. I uninstalled the QR Scanner app to see if that was the issue and still doesn't work. My phone is a Sony Xperia E1 Dual... anyone help me...


Like the ModelBuilder of ArcGIS Desktop to run simultaneous geoprocessing tools, is there any model builder available in QGIS?


I want to install amd graphic driver . I using ubuntu 20.04 . when i press install button , i get an error . please help me .    I will check this post every 2 minutes because I am getting tired of linux and I searching for a solution. please help me .


Retrieve multiple values from CheckboxList using SQL WHERE IN

I have a problem with the retrieval of multiple checkbox values in my program. So as you can see below, I'm trying to retrieve from my database based on a set of values from the checkboxlist.  If I select ONE check box value, the database would be able to retrieve the item, however if I select MORE THAN ONE checkbox value, nothing will appear. Can someone help me please? I've spent quite some time on it.  I've seen other solutions but it doesn't seem to have helped me. Thank you.  protected void chkBoxCategories_SelectedIndexChanged(object sender, EventArgs e) {     // Create the list to store.     List<String> YrStrList = new List<string>();      // Loop through each item.     foreach (ListItem item in chkBoxCategories.Items)     {         if (item.Selected)         {             // If the item is selected, add the value to the list.             YrStrList.Add(item.Value);         }         else         {             // Item is not selected, do something else.         }     }      // Join the string together using the ; delimiter.     Session["UPCategories"] = String.Join(", ", YrStrList.ToArray()); }   The following code is on the other page:   SqlDataSource1.SelectCommand = "SELECT sf.*, sfc.* FROM SkillsFuture sf INNER JOIN SkillsFutureCategory sfc ON sfc.SFCatID = sf.fkSFCatID WHERE sfc.SFCatName IN (@catnames) AND sf.SFPrice BETWEEN @min AND @max AND sf.SFCertStatus='Verified'";  SqlDataSource1.SelectParameters.Add("catnames", Session["UPCategories"].ToString()); SqlDataSource1.SelectParameters.Add("min", Convert.ToDecimal(Session["UPBudgetMin"]).ToString()); SqlDataSource1.SelectParameters.Add("max", Convert.ToDecimal(Session["UPBudgetMax"]).ToString());  SqlDataSource1.DataBind();


Maybe this is an easy one, but I struggled with this now too long :)  I want to have a footnote in a caption of a figure, see the example.   \begin{figure}[!ht]   \caption{a figure caption\footnote{where i got it from}}   \label{somelabel}   \begin{center}        \pgfuseimage{...}   \end{center} \end{figure}   The compilation error reads as follows  ! Argument of \@caption has an extra }. <inserted text>              \par  l.192 ...i got it from}}   The actual tex code for my figure with the answer of Leo  \pgfdeclareimage[width=6cm]{aba.medcenter}{aba.medcenter}  \begin{figure}[!ht]   \begin{minipage}{\textwidth}     \caption[Medcenter Monthly Medication System]{Medcenter\textsuperscript\textregistered Monthly Medication System\footnote{Quelle Bild: http://www.amazon.com/dp/B000RZPL0M}}     \label{aba.medcenter}     \begin{center}       \pgfuseimage{aba.medcenter}     \end{center}   \end{minipage} \end{figure}   leads to the error  ! LaTeX Error: Command \itshape invalid in math mode.   in the same line. If I comment out the foot note, everything compiles fine. \textsuperscript\texttrademark isn't the problem, too.


Finding distribution of two random variables

Given two independent random variables $X_1\in NB(p,r_1)$ and $X_2\in NB(p,r_2)$, find the distribution of random variable $X_1+X_2$   I came up with an answer that is obviously wrong since it's different from what's on the textbook ( $X_1+X_2 \in NB(p,r+s)$), how do I go about showing this?


Can I add a new method to the class String?

I'll explain myself, I would want to add a replaceLast into String class, is that possible? At the moment I'm using a self-made method, which is:   public static String replaceLast(String string, String toReplace, String replacement) {             int pos = string.lastIndexOf(toReplace);             if (pos > -1) {                 return string.substring(0, pos) + replacement + string.substring(pos + toReplace.length(), string.length());             } else {                 return string;             }         }   Is there any way to be able to use this method like:  String str = "Hello World"; str.replaceLast("l", ""); //being the first String the one to be replaced and the second one the replacement   like it is used:  String str = "Hello World"; str.replaceFirst("o", "e");


Taking the second derivative of a parametric curve

I understand that for the parametric equations  $$\begin{align*}x&=f(t)\\   y&=g(t)\end{align*}$$  If $F(x)$ is the function with parameter removed then $\displaystyle F'(x) = \frac{\text{d}y}{\text{d}t}\big/\frac{\text{d}x}{\text{d}t}$  But the procedure for taking the second derivative is just described as " replace $y$ with dy/dx " to get   $$\frac{\text{d}^2y}{\text{d}x^2}=\frac{\text{d}}{\text{d}x}\left(\frac{\text{d}y}{\text{d}x}\right)=\frac{\left[\frac{\text{d}}{\text{d}t}\left(\frac{\text{d}y}{\text{d}t}\right)\right]}{\left(\frac{\text{d}x}{\text{d}t}\right)}$$  I don't understand the justification for this step. Not at all.   But that's all my book says on the matter then it launches in to plugging things in to this formula, and it seems to work well enough, but I don't know why.  I often find answers about question on differentials are beyond my level, I'd really like to get this, it'd mean a lot to me if someone could break it down.


I don't use things like Ubuntu One. How do I disable it from Startup Applications? I believe it is hidden by default along with some other apps.


Assume that I have a dict.  data = {1:'b', 2:'a'}   And I want to sort data by 'b' and 'a' so I get the result  'a','b'   How do I do that? Any ideas?


Is it safe to remove the downloaded tar once the program is installed (once I run ./configure, make, make install)?


How do "pet" Walkers help ward off other Walkers?

In both the comics and the show, Michonne first appears with two walkers that she essentially keeps as pets.    The comics sort of half-explain this - as per :     She notices walkers don't attack one another and hacks off the arms and lower jaws of Mike and Terry. She chains them up by their necks to use them as escorts for an escape that was successful.   In , we see that even if they still sort of smell like Walkers, the Walkers can smell/detect the living and will attack.  In ,      We see Andrea effectively making a new "pet" so that she can use to deter the Walkers that she comes across on her trip to the prison. Along the trip, she is shown to come within close range of Walkers, but they give her space when she points the "pets" in the right direction.   Why would the Walkers not just attempt to go around the "pets"? What about them creates an effective protective barrier?


How can I make Illustrator recognize Linux Libertine fonts?

I use MikTeX 2.9/pdfLaTeX on my Windows 7 machine to compile the following document, typeset in Linux Libertine font:  \pdfoutput=1 \documentclass{scrreprt} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{libertine} \usepackage[protrusion=true,expansion=true]{microtype} \begin{document} My text \end{document}   The document compiles without errors and warnings. I need to edit this document (well, others like it) in Adobe Illustrator CS6, but when I open it, I get the error messsage:  Die Schrift LinLibertineT fehlt.   Betroffener Text wird mit einer Ersatzschrift angezeigt.    Translated to English:  The font LinLibertineT is missing. The affected text will be displayed with a replacement font.   I downloaded and installed  fonts from the , but Adobe Illustrator still does not recognize the font. I poked around in the , and there is a file called LinLibertineT.pfb that has a promising filename, but I could not figure out how to use it.  Is there a way to install the Libertine font in such a way that Adobe Illustrator can open my document?   Alternatively, I could try to use the fonts in a different way, for example by using XeTeX, but is not without problems itself (microtype). I would prefer persuading Illustrator to work with the current pdf.


UK visa: my partner doesn't want to submit his bank statement

My boyfriend is inviting me to visit him in the UK. He's originally from our country and migrated there almost 20 years ago. He's now a citizen. He will pay for my roundtrip tickets, accommodation and I will only pay for the visa application here.  We have already completed all the requirements we think we need. I have my passport, certificate of employment, bank statements, payslip etc. He also gave everything above to me already EXCEPT for his bank statements. He said it would not be required on his end. I know he earns a lot there according to his payslips and P60, but I really do think that his bank statements are required. What do you think? Any help would really be appreciated. Thanks in advance!


70's/80's sci-fi book about conscript trained to be a powerful warrior

I read a futuristic sci-fi book in the 1980's (maybe the 70's), about an overweight orphan who lived in slums, known as "the rat" (not the stainless steel rat), who was conscripted into space military service (in chapter 1). He was trained and became a powerful warrior and teamed up with others, and towards the end may have overthrown the governing beings.


Text alignment issue in custom Table of Contents

As you can see from the image below, I have an issue with the text alignment of extra long chapter names. How can I fix it so that the text will not go further left than the start of the chapter name? That is, I don't want any text to be underneath the "Appendix A" part.  I added that red line just to show how I'd like it aligned, if possible.    Here's my MWE:  \documentclass{book} \let\cleardoublepage\clearpage  \RequirePackage{titletoc} \RequirePackage{tikz} \RequirePackage[explicit]{titlesec} \RequirePackage{DejaVuSansCondensed} \RequirePackage[normalem]{ulem} \RequirePackage[   left=2.25in,   right=0.75in,   top=1.25in,   bottom=1.25in,   marginparwidth=1.75in,   marginparsep=.25in,   asymmetric]{geometry}  \renewcommand*\familydefault{\sfdefault} % Set default font  %%% Table of Contents ---------------------------------------------------------- \setcounter{tocdepth}{1} % Show only Chapters and Sections  %%% Change font/color/layout of TOC \makeatletter \titlecontents{chapter}[-2em] {\color{cyan}\bfseries\LARGE\addvspace{3mm}} {\makebox[4.4em][r]{\@chapapp}\contentslabel{-0.25em}\hspace{1.9em}} {} {\hspace{3em}\contentspage} \g@addto@macro{\appendix}{%   \addtocontents{toc}{\protect\renewcommand*{\protect\@chapapp}{\protect\appendixname}}% } \makeatother  \titlecontents{section}[5.3em] {\color{cyan}\large\itshape\addvspace{3mm}} {\contentslabel{0em}\hspace{3.2em}} {} {\hspace{3em}\contentspage} [\addvspace{0mm}]  %%% Chapter Header ---------------------------------------------------------- \makeatletter \titleformat{\chapter}   {\normalfont\sffamily\Huge\scshape}   {}{0pt}   {\thispagestyle{empty}    % Remove page number on new chapters   %\setcounter{definition}{0}   \begin{tikzpicture}[remember picture,overlay]     \node[yshift=-3cm] at (current page.north west)       {\begin{tikzpicture}[remember picture, overlay]         \draw[fill=cyan] (0,-1) rectangle           (25cm,3cm);         \draw[fill=cyan] (0,-24) rectangle           (25cm,-25cm);         \ifttl@label% <---------------------- Added condition on \ifttl@label           \node[anchor=west,xshift=.21\paperwidth,yshift=-.01\paperheight,rectangle]               {\color{white}\LARGE \MakeUppercase{\@chapapp} \Huge\thechapter};         \fi% <------------------------------- end condition on \ifttl@label        \end{tikzpicture}       };    \end{tikzpicture}\endgraf   \vskip-.7cm   \color{cyan}\Huge\raggedright\leftskip-1cm    \noindent\MakeUppercase{#1}\endgraf   } \makeatother  \titlespacing*{\chapter}{0pt}{10pt}{0pt}{}  \titleformat{\section}{\color{cyan}\itshape\LARGE}{\llap{\thesection} #1}{1em}{}[\titleline{\color{cyan}\titlerule[1pt]}] \titleformat{\subsection}{\color{cyan}\normalfont\large}{\; #1}{1em}{}  \begin{document}   \tableofcontents   \chapter{Turing Machines}     \section{The Turing Machine}     \section{Variations of the Turing Machine}       %\subsection{Non-deterministic Turing Machines}     \section{The Church-Turing Thesis}   \chapter{Decidability}     \section{The Universal Turing Machine}    \appendix   \chapter{ON COMPUTABLE NUMBERS, WITH AN APPLICATION TO THE ENTSCHEIDUNGSPROBLEM} \end{document}


I try to develop a super basic template language, and I have a problem with RegEx, I try to convert this:  # Tilte ## Subtitle ### Subsubtitle Lorem ipsum b(dolor) sit i(amet), consectetur u(adipisicing) elit   to this:
Title

Subtilte

Subsubtitle
 Lorem ipsum dolor sit amet, consectetur adipisicing elit   But I get this:

TEma 4

Subtitle
 Lorem ipsum Subsubtitle sit i(amet), consectetur u(adipisicing) elit   Here is my code:  input = ARGV[0]  regExes = {      h1: [/^# (.*)$/, "
", "
"],     h2: [/^## (.*)$/, "
", "
"],     h3: [/^### (.*)$/, "
", "
"],     b: [/b\((.*)\)/, "", ""],  }  strFile = File.read input  puts "\t", strFile  for index, regEx  in regExes      actualNode = regExes[index]     print actualNode, "\n"     strFile.gsub! actualNode[0], "#{actualNode[1]}#{$1}#{actualNode[2]}"  end  puts strFile   What should I do?


20.04.1LTS GNOME3.36.4 Unable to open desktop files when set default program as Vim

I associated plain text files with vim with right click - properties -   open with, and it works fine within nautilus, however when I click or   right click - open a text file at the desktop, vim is not called and there is either not a error message, and no other editors (like gedit)  is opened. However, right click - open with other application - choose vim works fine. Logs from journalctl /usr/bin/gnome-shell: gnome-shell[1267]: Could not create transient scope for PID 8605:        GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process     with ID 8605 does not exist.                                                                                gnome-shell[1267]: ../clutter/clutter/clutter-actor.c:10558: The         clutter_actor_set_allocation() function can only be called from within   the implementation of the ClutterActor::allocate() virtual function.      The vim version is 8.1. (runs at the terminal and vim-gtk not installed) It works normal before changing the default open-with settings. However, I just tried to set the associate program back to gedit, but surprisingly files on the desktop still not able to open with left click and right click - open, even I set back to gedit.


Rounding a number to the nearest 5 or 10 or X


Two reasons why this could be possible (correct me if I'm wrong):   Harry eventually became the owner of all the Hallows. The cloak of invisibility (from his father), the elder wand and the resurrection stone. (is he still the owner if one is broken and one is lost? And does Master of Death mean immortal?) Trelawney's prophecy is as thus:      "The one with the power to vanquish the Dark Lord approaches... born to those who have thrice defied him, born as the seventh month dies... and the Dark Lord will mark him as his equal, but he will have power the Dark Lord knows not... and either must die at the hand of the other for neither can live while the other survives... the one with the power to vanquish the Dark Lord will be born as the seventh month dies...."   Pay particular attention to,     and either must die at the hand of the other for neither can live while the other survives...   Does this mean Harry can only be killed by Voldemort?


Proof that a continuous function with $f(x) = f(x^2)$ is constant.

Given a continuous function $$ f: \mathbb{R} \rightarrow \mathbb{R} \quad \text{with} \quad f(x) = f(x^2) \quad\quad \forall x \in \mathbb{R} $$  How can I show that $f$ must be constant?


How can I find the limit without using a closed form expression

I am trying to evaluate this limit without using the closed form expression for the sum of natural numbers raised to $k$th power.  $$\lim_{n \to \infty} \dfrac{ 1^n +2^n+\cdots +n^n}{n^n}$$   So far I have tried l'Hôpital which complicates it rather than simplifying and Cesaro Stolz doesn't seem to work either.


How to design a fitness function for an evolving neural network?

I'm working on making my own neural network using the NEAT algorithm. I have programmed the algorithm from scratch because I can't seem to get any of the libraries online working, but I'm 90% sure the actual algorithm for genetic breeding is working.  My issue is the creating of a fitness function because none of the ones I have tried to use seemed to have worked. All I'm trying to make is a simple XOR gate with two inputs and one output. I have tried something as basic as testing all the possible inputs ($[0,0], [0,1],$ etc.) and determine how close they are to the resultant by using a function similar to $(x^2-1)/(x^2+1)$, and then for each one of the different inputs add the result of the function to the fitness. That didn't seem to work well.   I can't seem to find any information online on the best methods for creating a fitness function, so I wasn't sure if there is some sort of guideline/equation to follow. Any information will help. Thank you.


I know that i can make two columns unique keys, but that's not exactly what i want.  I want that for example if col1='1', col2='2' then there can't be another row with col1='1', col2='2', but totally possible to do the following:  +--------+--------+ |  col1  |  col2  | +--------+--------+ |    1   |    1   | |    1   |    2   | |    2   |    1   | |    2   |    2   | +--------+--------+   while this is impossible:  +--------+--------+ |  col1  |  col2  | +--------+--------+ |    1   |    1   | |    1   |    1   | +--------+--------+   Making both unique keys is not an option as in col1='1', col2='1' and col1='1', col2='2' col1 is the same and that's not allowed if both are unique keys.


How to capture PRINT statements from TSQL called by CLR stored procedure

I have a CLR stored procedure that (among other things) calls a TSQL stored procedure. The TSQL stored procedure runs some dynamic SQL, and it prints the SQL before it runs for debugging purposes. Nothing from the PRINT statements shows up in the client. What is a good way to allow us to see these commands when we need to troubleshoot?  Sample code:  C# code in dll  public static void Print_CLR() {     using (SqlConnection conn = new SqlConnection("context connection=true"))        {             conn.Open();             using (SqlCommand c = new SqlCommand("exec dbo.Print_TSQL", conn))             {                c.ExecuteNonQuery();             }     } }   Proc called by CLR  CREATE PROC DBO.Print_TSQL AS PRINT 'WTF' GO --Exposing proc to SQL CREATE PROC dbo.Print_CLR AS EXTERNAL NAME  [CLRUtility].[CLRUtility.CLRUtility].Print_CLR GO --Executing, nothing is PRINTed for the client EXEC dbo.Print_CLR


Equation of line in the form $ax+by+cz+d=0=a'x+b'y+c'z+d'

Let the line equation be represented as $ax+by+cz+d=0=a'x+b'y+c'z+d'$, is there any way to convert this equation of line in parametric form $\frac{x-\alpha}{l}=\frac{y-\beta}{m}=\frac{z-\gamma}{n}$.  There is one way put x=0, we can find value of y and z , then put y=0, we can find the value of x and z using two find we can find the slope. I want a simple method of solving it.


We are given the following experiment:  Consider an experiment which is a Bernoulli trial: it either succeeds with probability p or fails with probability 1− p; trials are independent of one another. Throughout this question we specify a null hypothesis H0 : p = 1/ 2 , and an alternative hypothesis HA : p = 2/ 3 . We perform the experiment 50 times, and our observation is r = 33 successes and 17 failures. Only one-sided tests are considered here.  We are asked to give a precise definition of the p-value. I don't understand what the question is asking really but I attempted it.  Attempt:  > dbinom(33,50,0.66) [1] 0.1184165]  Our p-value is greater than 0.5 meaning we reject the null hypothesis.   Am I answering the question correctly or did I misunderstand the question entirely?


This question pertains to the sequence of functions $f_n(x)=x^n$ on the interval $[0,1]$.  It can be shown this sequence of functions ${f_n}$ converges point-wise to the limit $f$ where $f$ is defined by $f(x)=0$ on $[0,1)$ and $f(x)=1$ at $x=1$.  However, this sequence of functions ${f_n}$ does not converge uniformly to $f$. One way to prove this (which I have seen) is via a theorem which proves that if a sequence of functions ${f_n}$ converges uniformly to $f$, then $f$ is continuous. And clearly it is not the case that $f$ is continuous in our example, so our convergence is not uniform.  However, I have seen another test for uniform convergence on an interval $s$. That is that:  $${\rm lim}\ [{\rm sup}\ \{ |  f_n(x)-f(x)|\ :\ x\in S\ \}]=0$$  This conception of uniform convergence can be found in my Walter Rudin analysis book for example. My question is, how can we use this definition of uniform convergence to show $x^n$ is not uniformly convergent?  I am having trouble seeing how to apply this definition to this example, especially since the limit $f$ is defined piece-wise. But I know I need to find the sup of the difference between $f_n$ and $f$ over the interval $[0,1]$ (how do I find this sup?). And then once I find it, I need to take the limit as $n\to\infty$ and show it does not equal $0$.  Thank you for your help!


I am fairly new to Linux and I need to find a way to show the contents of my Bash History via the command line, and unfortunately I can't seem to find anything that works, or that I can understand. I am using Linux Ubuntu 11.10, and when I open the Bash History manually by finding the file, it opens with something known as gedit. How will I be able to view the contents of my Bash History via the command line? Many Thanks! ~ShadedVeil


What is the IP address of my home computer from the perspective of the outside world? I need this in order to grant myself permissions to connect to a mysql database on a work server.  I'm working on an Ubuntu 14.04 computer.  Here is my output from the command ifconfig  selah@selah-Aspire-5745:~$ ifconfig eth0      Link encap:Ethernet  HWaddr 60:eb:69:9d:38:86             UP BROADCAST MULTICAST  MTU:1500  Metric:1           RX packets:0 errors:0 dropped:0 overruns:0 frame:0           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)  lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:65536  Metric:1           RX packets:10062 errors:0 dropped:0 overruns:0 frame:0           TX packets:10062 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:0            RX bytes:1005650 (1.0 MB)  TX bytes:1005650 (1.0 MB)  wlan0     Link encap:Ethernet  HWaddr 4c:xx:xx:xx:xx:xx             inet addr:192.168.1.6  Bcast:192.168.1.255  Mask:255.255.255.0           inet6 addr: fe80::4e0f:6eff:fe92:41f5/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:191106 errors:0 dropped:0 overruns:0 frame:0           TX packets:92154 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:235057203 (235.0 MB)  TX bytes:14859361 (14.8 MB)


What do fractions mean when talking about electrical wiring

When buying extension cords and other types of wiring,I consistently see fractions. I see that it may be a reference to the conduction capabilities of the wire? Please explain. For example:  "Southwire 18/5 thermostat wire"


Any travel booking sites that let you search for a mixed itinerary?

Travel sites that search all the major air lines are a dime a dozen.  And in some localities, there are travel sites that at least pay lip service to searching major bus carriers.  But are there any travel sites that will search all major forms of transportation, and let you form a mixed itinerary? I'm thinking at least air, bus, and train.  For instance, if I want the cheapest way to get from Town A to Town B, I'd like options like:        Take Foo Bus Line from Town A to City Q   Fly Bar Airline from City Q to City Z   Take Baz Passenger Train from City Z to Town B      For bonus points, it might even include public transit options, in localities where it's actually feasible to take public transit between major cities.


Why isn't providing feedback mandatory on downvotes, and why are ideas suggesting such negatively received?

Sometimes my post receives downvotes with no explanation on what I've done wrong. Even worse, sometimes I just get snarky comments! It seems like this is especially bad for new users, who are made to feel unwelcome by veteran users. Stack Exchange's rules can be difficult to grasp, especially for newbies, and downvotes can feel hostile and discouraging. Several ideas have been proposed for how to fix this, including:  Every downvote should be accompanied by a mandatory comment Downvotes should be accompanied by a mandatory, anonymous comment Downvotes should be accompanied by a reason selected from a drop-down menu The first downvote should be accompanied by a mandatory comment Downvotes should cost reputation points unless accompanied by a comment …and other variations.  However, whenever someone suggests one of these changes on Meta, it gets unceremoniously rejected and (ironically) downvoted without a detailed explanation! Why are all of these ideas rejected? Is it because people here are curmudgeonly trolls who just hate people and don't want new users to feel welcome? This question was originally from . While there are many posts related to this issue which get closed as duplicates of , that question doesn't adequately explain to new users why this is always turned down. The purpose of this question is to be the network-wide community-approved FAQ to be used as a duplicate target for questions asking for mandatory feedback on downvotes.


Following up on a recent post,   "I am looking for some clarification on the card Gleam of Authority. The wording on the card is  Enchantment - Aura  Enchant Creature  Enchanted creature gets +1/+1 for each +1/+1 counter on other creatures you control.   There is also a tap ability to bolster and vigilance.  The problem I'm seeing with adjusting continuously, is if multiple Gleam of authorities are played. Does this create an infinite loop?


I had studied group theory a year ago, but still could not understand the proof involving The Correspondence theorem.  let $G$ be a group and let $N⊴G$, where  $N⊴G$ indicates that $N$ is a normal subgroup of $G$. Then there is a bijection from the set of subgroups $A$ of $G$ that contain $N$ onto the set of subgroups $\overline A $=$A/N$ of $G/N.$  Can anyone explain the steps to me in:  $(1.)$ a very easy-going manner so that I understand importance of each step. $(2.)$I don't require the proof but only how the step follow each other .  I'll be thankful if there is anyone kind enough to do this....


I'd like to get a remote file with SFTP, but choosing stdout as the local destination. I tried the obvious code below, but it failed: echo 'get <Remote file> /dev/stdout' | sftp <User>@<Host>: sftp> <Remote file> /dev/stdout    Fetching <Remote file> to /dev/stdout  <Remote file>                                               100%   28KB  57.6KB/s   00:00 ftruncate "/dev/stdout": Invalid argument Couldn't write to "/dev/stdout": Illegal seek  The reason for that is that I want to download /etc/passwd and /etc/group to find numeric uids/gids for later chown and chgrp commands, in order to solve . But it would be nicer if I could download such files to a variable, instead of a temporary local file. A possibility would be to create a local named pipe, and save remote file to it, but I'd like to find a less complicated solution. An alternative would be an additional SSH session to get such data but, since we use timed tokens (TOTP), that would mean additional 30s per remote host... SCP is forbidden in our network so, unfortunately, it's not an option. Can SFTP get "save" to stdout? Thanks!


What are the Time Operators in Quantum Mechanics?

I don't understand at all what the time operators are in quantum mechanics. I thought that given a wave function, because it's a function of time, we could simple put in any time in the future to find it's time evolution. What is this time operator, why is it unitary, and how does it work?


How to show similar display of codes of different programming languages in LaTeX

I am very new to LaTeX and I am writing my thesis. In a chapter, I want to show my codes, which are in Mathematica.   I use the listings package as follows:  \documentclass{article}   \usepackage{listings}   \begin{document}   \lstset{language=Mathematica}    \begin{lstlisting}   Do[i^j,{i,1,10},{j,1,10}]   \end{lstlisting}    \end{document}   However, the output is much different to what the code looks like in the Mathematica IDE (even if I use other languages in \lstset{language=<name>}):    I read some questions on the site but, in some of them, the font or color of the codes were not the same. Could you please help me to display something like the picture below in LaTeX?  If it is important, I am using the BiDi package.


How to remove unwanted bold text after \bf{}?

I have used the following script-  Let's consider That you are constructing \bf{rational numbers}for the first time using natural numbers and so we don't have any idea about the \bf{division operator}   And the ouput produced is -  Let’s consider That you are constructing rational numbers for the first time using natural numbers and so we don’t have any idea about the divi sion operator .  But I want only want the characters in between \bf{} to have bold font. How to do it ??


Get rid of all the access white space except the actual design

Is there a way that I can get rid of all the extra white space apart from the rectangle shown in the image.   Please let me know if I need to provide some extra input.


Attempt 1 >>> width = 3 >>> height = 2  >>> zeros = [[0]*width]*height >>> print(zeros) [[0, 0, 0], [0, 0, 0]] >>> zeros[1][2] = "foo" >>> print(zeros) [[0, 0, 'foo'], [0, 0, 'foo']]  Expected result was [[0, 0, 0], [0, 0, 'foo']]. It seems that the * operator populated each row with references to the same object, so modifying zeros[1] also modified zeros[0]. Attempt 2 So now we create the initial list object using list comprehension instead: >>> zeros = [[0 for i in range(width)] for j in range(height)] >>> print(zeros) [[0, 0, 0], [0, 0, 0]] >>> zeros[1][2] = "foo" >>> print(zeros) [[0, 0, 0], [0, 0, 'foo']]  Great, this is the expected result. The question is... If the * operator populates each row with references to the same object, then why doesn't every element within each row refer to the same object? That is, with a (partial) understanding of why Attempt 1 didn't produce the expected output, I would expect that if ANY element of zeros is modified, ALL elements would be changed, that is: >>> zeros = [[0]*width]*height >>> print(zeros) [[0, 0, 0], [0, 0, 0]] >>> zeros[1][2] = "foo" >>> print(zeros)  is expected to return: >>> print(zeros) [['foo', 'foo', 'foo'], ['foo', 'foo', 'foo']]  but instead returns: >>> print(zeros) [[0, 0, 'foo'], [0, 0, 'foo']]  So why does the second * operator populate each row with references to the same object, but each of the elements WITHIN any given row are unique objects? Answer  tl;dr: Integers are immutable, so [0]*3 creates copies the elements of [0], not references. However [0,0,0] is an object, so [0,0,0]*2 creates a new reference to the original object.