Droideka/destroyer droid's shields seem crazy over powered I.e.  Blocking (deflecting?) blaster shots.   So why aren't there more droidekas instead of standard battle droids or at least more droids with inbuilt shields?   I understand the advantage of super battle droids as they have better manoeuvrability than droidekas and wrist rockets for any anti-vehicle situations. However, standard battle droids seem roughly the same size as a rolling droideka (for transportation purposes), and a droideka would do a better job than a standard battle droids any day.


Cannot change soft block setting to "no" for AR9287 Wireless Network

My wireless works, but I have to right click the network manager applet and enable wireless on every boot which is annoying.   This is the output of rfkill normally:  x@Triela:~$ rfkill list 0: acer-wireless: Wireless LAN     Soft blocked: yes     Hard blocked: no 1: phy0: Wireless LAN     Soft blocked: no     Hard blocked: no 2: hci0: Bluetooth     Soft blocked: no     Hard blocked: no   When I rfkill block 0; rfkill block 1 this is what I get:  x@Triela:~$ rfkill list 0: acer-wireless: Wireless LAN     Soft blocked: yes     Hard blocked: no 1: phy0: Wireless LAN     Soft blocked: yes     Hard blocked: yes 2: hci0: Bluetooth     Soft blocked: no     Hard blocked: no  When I rfkill unblock all, it clears all but the soft block on 0. My wireless is switched on/off by fn + f3. The indicator light for it is lit when connected, and blinks when there is activity, but it does not show me the on/off state.  I have tried everything I could find on the internet, but nothing has worked to unblock it or keep wireless enabled.  This is the output of my wifi card from lspci -v:  06:00.0 Network controller: Atheros Communications Inc. AR9287 Wireless Network Adapter (PCI-Express) (rev 01)     Subsystem: Foxconn International, Inc. Device e034     Flags: bus master, fast devsel, latency 0, IRQ 17     Memory at d0200000 (64-bit, non-prefetchable) [size=64K]     Capabilities:      Kernel driver in use: ath9k     Kernel modules: ath9k


is there any way to know, who are children of the specific process ? for example those children which their parent ID is foo ?


Pythonic way to return lists of every N items in a larger list

I have a larger list of approximately 250 elements. I need to group every 50 elements into a sub-list and iterate through each of the sub-lists.  For example:  largerList = [0, 1, ... ..., 268]   I want the sub lists to look like:  subLists = [[0, 1, ... ..., 49], [50, 51, ... ..., 99], ... ..., [250, 251, ... ..., 268]]   Then I will be able to iterate the sub lists and do something for each of them.  for ls in subLists:   for i in ls:     DO SOMETHING...


I have read many online articles. I've read questions and answers on this site. I still can't get my head wrapped around the difference between past simple and present perfect  I know the difference is between finished time (use past simple) and unfinished time (use present perfect). But as a non-native English speaker, this still makes no sense to me. I am not implying any kind of time period.     I have posted on SE   I posted on SE   I just want to convey that the action completed in the past. I don't want to provide any connotation whether the action just completed, or completed at certain period in past.  Maybe with "I", I know the time period, but what if I am talking about someone else.     He has posted on SE   He posted on SE   I don't know the time frame that "he" did the action. I don't know what "he" was planning (continuous action, or at specific time). I just know the action took place in the past. I don't know if it just finished. I don't know if there is a consequence to the action or not.  It seems to me that I am forced to imply a time frame. So my question is: if I don't want to imply any time frame, or at least to imply as little as possible, what should I use?


Proof Using Modular Arithmetic - Divisibility using co-prime numbers

If a number is divisible by two or more co-prime numbers, then that   number is also divisible by the product of the co-prime numbers also.   How to prove this using modular arithmetic?   Let $N$ be an integer Let $p_1,p_2,p_3$ be co-prime numbers.  $N \equiv 0 \pmod{p_1}\cdots(1)\\ N \equiv 0 \pmod{p_2}\cdots(2)\\ N \equiv 0 \pmod{p_3}\cdots(3)$  Then, $N \equiv 0 \pmod{p_1p_2p_3}\cdots(4)$  i.e., if first three equations are true, 4th equation must be true.  I hope, I have written this correctly. But, how to prove this. please help  I tried to rewrite the first first three equations as follows, to reach the fourth, but it did not help     $(1) \implies N = k_1p_1\\ (2) \implies N = k_2p_2\\  (3) \implies N = k_3p_3$   Note: modular arithmetic is not in my syllabus. But I am learning as it is a very interesting topic. appreciated if anybody can provide links to any online material or book to understand these kind of concepts.


Is the Square Root of a Real Number both positive and negative?

Is the "Square Root of 4" equal to ±2 or 2? And the twist here is that if it is equal to ±2, then, what is "√4 + 2"? Is "√4 + 2" equal to just "4", or "4 and 0"? I am studying root right now and I just cant figure it out.


Integration by Parts and the Constant of Integration

The constant of integration only seems to be used at the very end of integration by parts despite the use of integrals beforehand.  An example of this would be: $$∫ x\sin  \left(x\right)\ dx = x∫ \sin \left(x\right)\ dx - ∫ x'\left(∫ \sin \left(x\right)\ dx\right)\ dx$$ Ordinarily, the right side of the equation would be simplified to: $$x\left(-\cos \left(x\right)\right) - ∫-\cos \left(x\right)\ dx$$ And further to: $$-x\left(\cos \left(x\right)\right) + \sin \left(x\right)$$ Then finally arranged and given the constant of integration: $$\sin \left(x\right) - x\cos \left(x\right)+ C$$  What I am confused about is why $C$ is only added at the very end of this instead of at each integral.  I would be more inclined to use try something more like this: $$x\left(-\cos \left(x\right) +C_1\right) - ∫ -\cos  \left(x\right) + C_2\ dx$$ Which would simplify to: $$-x\left(\cos \left(x\right) -C_1\right) - ∫-\cos \left(x\right)\ dx + ∫ C_2\ dx $$ And further to: $$-x\cos \left(x\right) +C_1x +\sin \left(x\right)+ C_3 + C_2x + C_4 $$ Which finally arranges itself as: $$\sin \left(x\right) - x\cos \left(x\right) + C_5x + C_6$$ Where $C_5=C_1 + C_2$ and $C_6=C_3 + C_4$  I also feel I should probably mention I am a bit of an oblivious idiot so if the answer is completely obvious or my math is full of errors, I apologize.


Just wondering, how can I bring back the gray color to my status bar on top of my screen? This black one makes it hard to read the gray fonts (Also it is too dull) ._.  My bad: Please replace orange with gray.


What is the best way to merge mp3 files?

I've got many, many mp3 files that I would like to merge into a single file.  I've used the command line method  copy /b 1.mp3+2.mp3 3.mp3   but it's a pain when there's a lot of them and their namings are inconsistent.  The time never seems to come out right either.


Do the Magic Mouse or Magic Trackpad support “middle click”?

I'm currently using the old Apple Mighty Mouse and I configured clicking on the trackball as a "middle click" that's been very handy for opening links in new tabs, closing tabs, etc. However, the mouse is starting to show its age and I've been looking at Apple's Magic Mouse and Magic Trackpad, and I'm wondering - do either of these support the "middle click" operation? If not, is there a gesture or a multi-finger click that can be used for the same things (i.e. opening new tabs, etc)?


What is Windows' equivalent of the "which" command in Unix? Is there an equivalent PowerShell command?

In Linux, we have the "which" command to find out the path of an executable. What is its Windows equivalent? Is there any PowerShell command for doing that?


I can't find the solutions for this one. Basically the object are not showing up when I switch to render view ( the legs in cycles , the round base in Blender render )


How to read 2 claws in a Pathfinder monster stack block?

An example of the monster I have a question over is a Crab, Giant. It's Melee looks like this:  2 claws +4 (1d4+2 plus grab)  I am wondering about the "2 claws" part. Does that mean the crab gets to strike twice with both its claws as a full round action, thus possibly rolling 1d4+2 twice? Or is the stat block saying the crab attacks with both of it's claws and together does only 1d4+2?  Also, what if the Melee looked like this:  2 claws +4 (1d4+2 plus grab), bite +5 (1d8+4)  Does the above melee line allow for three full attacks as a full round action? Or only two attacks?  I just started DMing for the first time and am trying to become prepared.


My teacher gave the following definition while teaching chapter "Center of mass": "It is defined as the product of mass of the particle and distance of particle from point about which mass moment is taken" I could not understand this, so I searched the internet and found a common definition: " the moment of inertia is the tendency of a body to resist angular acceleration, by a torque." I am really confused now.


Is it possible for something to have no cause?

Bertrand Rusell writes in his essay :     There is no reason why the world could not have come into being without a cause; [...]   Warren Rachelle, however, states in :     To simply state that "there is no reason why the    world could not have come into being without first cause" without defending this    assertion is an inadequate argument against the notion of the Prime Mover.   My question is very simple: Is it, as Russell seems to imply, possible for something to have no cause and why?


In my quantum mechanics class, my professor explained that the Hamiltonian along with position and momentum operators can be represented by matrices of countable dimension. This is especially usefull in harmonic oscillator problems. My professor explained that the eigenvalues of the Hamiltonian are (of course) the discrete allowed energies of the system, while the eigenvalues of the position operator are all possible positions, a continuum. How can a countable matrix have an uncountable number of eigenvalues? Why do the Hamiltonian and the position operator have the same dimension but different numbers of eigenvalues?


What is the purpose of apply scale option?

I know why we have to apply scale but what purpose does it serve ? Why not keep object scale to always 1  ?  Thank you.


I was going through an Advanced JavaScript text and came across these codes, I think the writer was trying to demonstrate closures but didn't explain the codes. I've been staring at these sets of codes for hours and still can't figure out why they will produce different output.  for (var i = 0; i <= 2000; i += 1000) {     setTimeout(function () {       console.log('i value in closure is ' + i);     }, i); } //Output // i value in closure is 2000 // i value in closure is 2000 // i value in closure is 2000`   and   for (var i = 0; i <= 2000; i += 1000) {    (function (i) {      setTimeout(function () {        console.log('i value in closure is ' + i);      }, i);    })(i);  } //Output // i value in closure is 0 // i value in closure is 1000  // i value in closure is 2000`


Removing duplicate lists within another list

t = [[a, b], [c, d], [a, e], [f, g], [c, d]]   How can I get the a unique list of lists, so that the output equals:  output = [[a, b], [c, d], [a, e], [f, g]]   [c,d] is present twice so it needs to be removed.  [a,b] and [a,e] are unique lists regardless of the duplicated 'a'.  Thanks!


Is it correct to omit "be" verbs and conjunctions when reporting a sentence?

Can you say "Actor dead aged 44" instead of elaborately saying "Actor dies at age 44"?


What is the proof of divisibility by $13$?

While solving the question of  a question arrived in my mind; the question was  Everyone knows the divisibility rule of $13$.  Test for divisibility by $13$: Add four times the last digit to the remaining leading truncated number. If the result is divisible by 13, then so was the first number.   For Example : $$50661$$ $$5066+4=5070$$ $$507+0=507$$ $$50+28=78$$   and $78$ is $6\times13$, so $50661$ is divisible by $13.$  Please help me!!!


The F-test is a test for variance so why do we use F-test in ANOVA?

To test the mean vector we use ANOVA, and to test two variances we use the F-test, but my question is in ANOVA why we do use the F-test ?


In The Last Jedi, we see Snoke has 8 guards with red armor in his throne room.  They are, obviously, similar to the Emperor's Guards from the Original Trilogy, who were (if I recall correctly) highly trained baseline humans.  They were not Force-Sensitive, Dark Jedi, or anything similar.  They carry weapons which are capable of blocking lightsabers (which isn't novel in the First Order, as we have seen 'normal' First Order Troops with similar weapons) and are well-trained in their use.  When we do see them in action      Against Kylo Ren and Rey, after Snoke dies   they are able to fight effectively against trained, lightsaber-wielding Force users      Wounding Rey and battling Kylo to a standstill until he got support.   Outside of being well-trained and well-equiped, was there anything special about these guards?      Were they the other students Kylo took with him from the Temple Massacre?


Now I have this bug which shows up occasionally. It prevents me from editing my comments. While I have only seen the bug on Stack Overflow, I think that is because I use Stack Overflow the most. It may also be present in other Stack Exchange websites.


Words to describe people with good/poor vocabularies. I am looking for words which I can use to describe characters and I would also like to describe their vocabularies, and explain how their vocabularies stem from their upbringing


I got this weird message about forcing UEFI installation when trying to install ubuntu 16.04 alongside windows 7?

I am trying to install ubuntu alongside windows 7 using a usb flash drive and when I went to install it I got this message:  "This machine's firmware has started the installer in UEFI mode but it looks like there may be existing operating systems already installed using "BIOS compatibility mode". If you continue to install Debian in UEFI mode, it might be difficult to reboot the machine into any BIOS-mode operating systems later. If you wish to install in UEFI mode and don't care about keeping the ability to boot one of the existing systems, you have the option to force that here. If you wish to keep the option to boot an existing operating system, you should choose NOT to force UEFI installation here."  Then I have to options, 1. Go Back and 2. Continue in UEFI mode  I clicked go back and it still proceeded to the next part of the installation, so I quit so I can ask here if I am doing something wrong because I don't want to mess with anything in windows 7 or my BIOS after I install ubuntu. I have used this flash drive to install ubuntu alongside windows 7 on two other pcs and never got that message.  What does this message mean? Should I be doing something differently? I don't even know what Debian is (I am trying to install Ubuntu)?


Is there a way to knock someone unconscious with a spell or ranged attack?

RAW:     When an attacker reduces a creature to 0 hit points with a melee attack, the attacker can knock the creature out. The attacker can make this choice the instant the damage is dealt. The creature falls unconscious and is stable.   Is there a way other than a melee attack to achieve the same result? A spell or a ranged attack, maybe a feature or ability of a class I'm not aware of? Or is it simply impossible with RAW?


Install WhatsApp on Android running under Virtualbox

I've just installed Android using Virtualbox on Ubuntu, and now I want to install WhatsApp on it.  When I visit Google Play and try to install WhatsApp, it tells me that I have to associate a device via my Gmail account. When I'm connected, it's saying that I have to choose another device (because I've already installed it on my Nexus) but it doesn't list me the Virtualbox install as an option.  What's causing this problem?


Do I need to give a real passport number at the time of booking for a flight from HKG to the United States?

I am planning a trip to Hong Kong in June.  When I tried to book my return flight (a direct flight from HKG to SFO) on Singapore Airlines's website, it requires that I enter my passport information (number, expiration date, etc.).  My passport is currently being renewed and I don't have this information yet, but I'm hoping to book the flight now while the fares are reasonably low.  My friend, who booked the same flight, seems to be able to change his passport information for his booking without issue.  My question is: Can I just put in made-up information for now, and then enter in the real information when I get my new passport?  What can go wrong?


How to use one connection to the Internet for VPN and another for accessing other websites?

I have two network cards. If I connect to a network using VPN then to access other websites I have to pass through a proxy server.  Is it possible to use my other network card to connect to the Internet directly without passing through the proxy?


Why does this schematic have a "Do Not Mount" component? Why not just remove it from the BOM and drawings?

While reviewing the reference design for the , and the associated parts list, I noticed one component (C254) states "DNM - Do Not Mount".     What is the reason for this?  Why even draw this on the schematic if you don't intend the component to be populated?  if they go to the trouble to change the schematic to read "DNM", why not just remove the component altogether?  OR, are they using the two unpopulated SMT pads as a capacitor?  That seems strange.  OR, is this a placeholder for a cap that would be added later, to properly tune the antenna if needed?


Is "aren't you too old to be..." proper grammar?

My reasoning is that aren't stands for are not so the sentence would read are not you too old to be... which is not proper grammar.


This is what I currently have. I'm not sure how to continue. Can someone show or teach me how it's done?  Edit:  Work:  \begin{array}{*{20}c} {z = \frac{{ - 1 \pm \sqrt {1-4} }}{{2}}} \\ \end{array}  \begin{array}{*{20}c} {z = \frac{{ - 1 \pm{i}\sqrt {-3} }}{{2}}} \\ \end{array}  $$z^4 ={r^4(\cos(4θ))(\sin(4θ)}$$


How to make a file or folder undeletable?

I want to make a file or folder undeletable, even the superuser can't be able to delete that file.Chattr command makes a file undeletable only if the files were in Linux filesystems (ext2,ext4). But I want to make a file undeletable which was present in ntfs filesystem.


How to create a new array, from another array at increments specified in Python?

Say if I have an array:   a = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])  I want to create a new array which takes a and an increment, and creates a new array, for eg: If I want increments of 2, then my new array would look like: [1, 3, 5, 7, 9]  or if I want increments of 3, then: [1, 4, 7, 10]  Is there any functions in numpy or python in general which allows me to do this? Instead of having to create a for loop which iterates through and creates a new array?


How to properly install missing firmware during Debian setup

This issue has followed me over the years, every once in a while I resolved it, but I never found the one solution.  Most of the times, the issue is a missing wireless firmware, in the current instance .  I usually create the install drive with dd if=./debian.iso of=/dev/sdb.  Now in the past, I've tried to find the firmware file and copy it onto a USB flash drive. The first issues were:   I couldn't find the exact, required file (e.g. b43/ucode16_mimo.fw). I believe that  file once, but didn't work this time. The install medium is read-only, so I used a second USB drive, where I don't know if it's accepted or not. I have no clue where to place the files on the USB drive.. is it in /, /firmware/,  /lib/firmware or somewhere entirely else?   Lately I failed there and wasn't able to add the firmware during the setup, that's where I found the , which felt like a holy savior at this point.  But that didn't change a thing, I was prompted with the same error about missing firmware again.  TL;DR and my question:  How do I correctly add missing firmware during a Debian setup and where do I find the suggested firmware files?


How to get VLOOKUP to return the *last* match?

I'm used to working with VLOOKUP but this time I have a challenge. I don't want the first matching value, but the last. How? (I'm working with LibreOffice Calc but an MS Excel solution ought to be equally useful.)  The reason is that I have two text columns with thousands of rows, let's say one is a list of transaction payees (Amazon, Ebay, employer, grocery store, etc.) and the other is a list of spending categories (wages, taxes, household, rent, etc.). Some transactions don't have the same spending category every time, and I want to grab the most recently used one. Note that the list is sorted by neither column (in fact by date), and I don't want to change the sort order.  What I have (excluding error handling) is the usual "first-match" formula:    =VLOOKUP(  [payee field] , [payee+category range] , [index of category column] ,  0 )   I've seen  like this, but I get #DIV/0! errors:  =LOOKUP(2 , 1/( [payee range] = [search value] ) , [category range] )   The solution can be any formula, not necessarily VLOOKUP. I can also swap the payee/category columns around. Just no change in sorting column, please.    Bonus points for a solution that picks the most frequent value rather than the last!


IS or ARE, when do you use one or the other?

The 1% is doing it.  The 1% are doing it.  Which of the sentences is/are correct?


In my latex file I have lots of equations. Some equations are like a set. So I normally used align environment to align my sets of equations. But I am getting lots of white spaces in my document. It figured out that latex is taking the align environment as a single block and tries to fit to the page.Whenever it's not possible they are putting it in the next pages. So I decided to create different blocks for all my equations so that latex can use that blocks to fit to the page. Now the problem is I want to align my equation blocks. How can I do that?


What does Fermi level in the band gap mean?

What does it mean that the  for some semiconductors lie in the band gap?  Is Fermi level definition different from what is know as usual?  We define the Fermi level as the highest level of energy which is occupied by electrons.  Then what is missing here?


my daughter has recently changed her name via marriage. But, she still has her valid visa on her old passport which is expired. So, my question is, can she travel United States bringing 2 passports and the proofs of name changes?  And what proof does she have to bring ?


Formula to move data from every third row to a column?

I have an excel sheet (mac, Excel 2011) that contains names (1st row), job titles (2nd row), and company/institution (3rd row) in one big column. I am trying to separate them into three different columns. I've tried all the macros i could find. Please help.   So instead of reading like this, as it does now:  Joe Joe SomeJob MyCompany   It would read   JoeJoe    |   SomeJob   |  MyCompany


In the BibDesk wiki (BibDesk Tips and Tricks) there is some information on customizing BibDesk for biblatex, including a link to a TypeInfo file that can be used to create all of the biblatex fields automatically.  The has to be saved as ~/Library/Application Support/BibDesk/TypeInfo.plist.  Im using texmaker, bibDesk under osx 10.9.5. The folder doesn't exist so I created it. Didn't help.  Does anybody know where to copy the "TypeInfo.plist" file?   Alan Munn refers to this in that Question:


What are the odds of drawing five specific cards from a sixty card deck?

In Yugioh, you start out with a five card hand. You have a 40-60 card deck. I run a 60 card Exodia deck, and twice I have drawn all five pieces of Exodia in my starting hand. For those who don’t play, having all five pieces in your hand at one time causes you to immediately win the game. I would like to know what the actual odds of that happening once, let alone twice.


My distro:  lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:    Ubuntu 19.10 Release:    19.10 Codename:   eoan   My kernel:  uname -a Linux n552vw 5.3.0-46-generic #38-Ubuntu SMP Fri Mar 27 17:37:05 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux   Updates:       Ubuntu 20.04 has been officially released 4 days ago.  Trying to update  sudo do-release-upgrade -c Checking for a new Ubuntu release No new release found.   Questions   Are there any reasons why the system still does not prompt to update?   Notes   I DO NOT want the development version (the -d flag) - I want FINAL VERSION. Why the official page  the -d flag (update-manager -c -d)?


do I only get a limited number of at-will powers?

In the pre made characters for the 4e adventure Keep on the Shadowfell they only give each character about 3 at-will powers. reading through the PHB I find that most characters have about 4-6 at-will powers. It doesn't ever seem to explicitly say I have a limited number of powers but I can't tell for sure.


How to evaluate the integral $\int \sqrt{1+\sin(x)} dx$

To find:  $$\int \sqrt{1+\sin(x)} dx$$  What I  tried:  I put $\tan(\frac{x}{2}) = t$, using which I got it to:  $$I = 2\int \dfrac{1+t}{(1+t^2)^{\frac{3}{2}}}dt$$  Now I am badly stuck. There seems no way to approach this one. Please give a hint. Also, can we initially to some manipulations on the original integral to make it easy? Thank you.


Rails: how to get the current host, or build a URL with it?

I need to use the host to build a URL with a different port.  For example, if the host is example.com, I need to generate a URL like   I need it to be portable, so when I'm in my local enviroment it shows  instead.  Any ideas?


How do Middle-Earth Elves age (if they age at all)?

This is coming from someone who has only briefly read the books a while ago and mostly remembers the film.  Elves are immortal. But they are depicted at different stages of aging. Do they just age up to a certain point and then stop? Or is the aging process just ridiculously slow?   Do they have a childhood? If so, do Elves reproduce similar to mortal men?


Open Attachment on Create of Child Record

I have a requirement for a custom app I am building to open an attachment on the parent record in a new window on create of a child record.  I have parent object Quality_Assessment__c with child object Chart_Review__c. Quality_Assessment__c has a PDF attached to it in the Notes & Attachments section. When a user clicks to create a new Chart_Review__c record I need to have the PDF attachment on the Quality_Assessment__c record open in a new tab as well as the record create page for the Chart_Review__c record. Looking for help in generating the needed javascript for a custom button to accomplish this.  The 'Quality_Assessment__c' record will have a PDF file attached to it prior to the user clicking the 'New Chart Review' button.  My use case is to have users open the 'Quality_Assessment__c' record and perform what we call a Chart Review. To perform the Chart Review the user would click on a custom button called 'New Chart Review' which would do two things.   create a new 'Chart_Review__c' record displaying the new record edit page  open the PDF attachment from the related 'Quality_Assessment__c' record.    Preferably on click of the button the new record page would open in existing tab and a new tab with the PDF would open simultaneously.


bisectors of an angle in a triangle intersect at a single point - proof verification

Let´s consider a general triangle ABC. Let´s draw two angle bisectors from vertices A and B.  It is obvious that these two angle bisectors intersect at a single point X. Since X lies on the angle bisector from A its distance from side b is the same as its distance from side c. As X also lies on the angle bisector from B, its distance from side c is the same as its distance from side a.  By transitivity the distance from the point X to the side b has to be the same as the distance from X to the side a. Therefore the angle bisector from C (which is the set of points equidistant from b and a) has to go through X.  It seems as a very simple argument. Is it correct?


I have the following code:  DECLARE @Latest TABLE (     DomainId bigint,      [date] datetime2 )  DECLARE @Rows int DECLARE @History int  INSERT INTO @Latest (DomainId, date) SELECT DomainId, MAX(Date) FROm DomainDetailDataHistory GROUP BY DomainId  SELECT @Rows = COUNT(DomainId) FROM @Latest  SET @History = @Rows * 5  SELECT DISTINCT TOP(@History)    c.DomainId   , c.[Date]   , Passed  FROM DomainDetailDataHistory c JOIN  @Latest h ON h.DomainId = c.DomainId WHERE c.[Date] != h.[Date] ORDER BY c.Date DESC   This code gets me the latest inserted row given by Id and the last 5 insertions.   Problem:   This works all good when I have 5 insertions of every unique DomainId.  I tried adding a new one and since the new one did not have any prior insertions the code gave me the top 7 insertions to compensate for the extra domain.   Clarity:  @History gives me how many different domains I have. I multiply this by 5 to get 5 of each.   Problem is when one of the domains do not have 5 insertions, lets say it only has one then I get more than the top 5 of the other domains.  How do I make sure that I always only get 5 of each and NOT MORE?


I’m using TeXLive 2015 and compile with lualatex or xelatex. When loading the unicode-math package, the command \not produces a ‘6’ instead of striking through stuff (as in ‘ø’ with \not o). The following example code \documentclass{scrreprt}      \usepackage{         fontspec,         unicode-math,     }  \begin{document}     $\not o$. \end{document}  produces the following output:  I tried to googe this, but couldn’t find any results. It seems unusual that noone else had this issue before – is this intended behaviour? If so, how do I get what I what, namely a ‘ø’ (and actually, I need the result of \not \mapsto)? I have uploaded a paste of a compiilation’s log under .


Prove or disprove: $S_{10} = \langle (1,3),(1,2, ... ,10) \rangle$    I know that $S_{10}=\langle (1,2) , (1,2,...,10) \rangle$. I tried to use this fact to prove the above but failed. It made me think it is not true, but I couldn't find an explanation. Any thoughts?


How can I replace a string in a file(s)?

Replacing strings in files based on certain search criteria is a very common task. How can I    replace string foo with bar in all files in the current directory? do the same recursively for sub directories? replace only if the file name matches another string? replace only if the string is found in a certain context? replace if the string is on a certain line number? replace multiple strings with the same replacement replace multiple strings with different replacements


"Learn more" buttons are misaligned in the next privilege info panel

Addressing the duplicate: This was closed as a dupe of  and while that is , this specific button is still misaligned. Here's a screenshot that I took today:  As such, I don't believe this is a duplicate any longer, and can be reopened as its own bug report, given that the "Newest badge" popup's button is aligned correctly now and this one isn't.  Directly related:  The "Learn more..." button in the profile page's next privilege tracker is aligned to the left instead of the right. Screenshot:  Looks like another user interface regression, which  in a fix to a similar issue. Could this be fixed as well?


Is there a name for this database schema of key values?

We process a routine data feed from a client who just refactored their database from a form that seems familiar (one row per entity, one column per attribute) to one that seems unfamiliar to me (one row per entity per attribute):  Before: one column per attribute  ID   Ht_cm   wt_kg   Age_yr  ...  1      190      82     43    ... 2      170      60     22    ... 3      205      90     51    ...   After: one column for all attributes  ID    Metric   Value  1     Ht_cm     190  1     Wt_kg     82  1     Age_yr    43  1      ...  2     Ht_cm     170  2     Wt_kg     60  2     Age_yr    22  2     ...  3     Ht_cm     205  3     Wt_kg     90  3     Age_yr    51  3     ...   Is there a name for this database structure?  What are the relative advantages?  The old way seems easier to place validity constraints on specific attributes (non-null, non-negative, etc.) and easier to calculate averages.  But I can see how it might be easier to add new attributes without refactoring the database.  Is this a standard/preferred way of structuring data?


add a space in \addcontentsline command for list of equations

This is a follow-up question to .  I think the spacing issue happened when the equation number is greater than 9 (shown in the image). I tried to add a space with \vspace and \quad in \addcontentsline but it didn't work any one have a clue?


How to compare two objects in JavaScript?

i have two  different object with same values  for example :   obj = {name:"John"} obj 2 = {name :"John"}   when i am trying compare both object, not values its giving me false   obj === obj 2 or obj == obj 2       //i tried both   i thought i will return true , but i don't know why it return false even both values are same ;  And when i did this   obj 3 = obj obj 3 === obj   it returns me true as output.  help me.  . Thanks in advance.


I'm using Blender and UE4, and I've got a problem: For most materials I use several textures (Color, Roughness, Metalic, etc.) I recently discovered painting with Blender and I love it, but I would like to know how can I paint several layers at once. For example, I might have a mesh with a Color and a Roughness layer, and when I add rust to it, I want the Roughness layer to also be affected.  Any ideas?


dealing with exponentials in python - infinities and overflows

In a machine learning algorithm that I'm using, I need to get the exponential values of something in one of the steps.  This is the step that I'm dealing with right now:   I've already got all the 1+g_j(X_i) etc etc calculated, there's no problem in that. Let's call it calculated_value. That's fine.  The problem is, I am getting infinities and overflows when implementing this function in code.   What's the solution for this? What would the logarithmic version of the same function, that I could use in place of the function above?  In case it matters, β is going to be used as a coefficient to some variables, including partially to calculate the weights for a weighted regression solution.


The idea of my PS1 configuration is to show some extended info like Mercurial or Git repo status, command execution time, etc. The prompt is split by two lines because it produces too many characters to fit into a single line. Here is my PS1 in my .bashrc (not sure if the entire source code is necessary here):  function prompt_status {         local color_app="\e[1;38;5;214m"         local color_branch="\e[1;38;5;32m"         local color_revision="\e[0;38;5;64m"         if git rev-parse --is-inside-work-tree &> /dev/null; then                 local branch="$(git rev-parse --abbrev-ref HEAD | tr -d '\n')"                 local revision="$(git rev-parse HEAD | tr -d '\n')"                 echo -ne $color_app"git "$color_branch"$branch "$color_revision"($revision)"         elif hg status &> /dev/null; then                 local branch="$(hg branch | tr -d '\n')"                 local revision_number="$(hg identify -n | tr -d '\n')"                 local revision="$(hg parent --template '{node}' | tr -d '\n')"                 echo -ne $color_app"hg "$color_branch"$branch "$color_revision"($revision_number:$revision)"         else                 return         fi         echo -e " \e[0m" }  function prompt_return_value {         RET=$?         if [[ $RET -eq 0 ]]; then                 echo -ne "" #echo -ne "\e[32m$RET\e[0m"         else                 echo -ne "\e[1;37;41m$RET\e[0m "         fi }  function timer_start {         timer=${timer:-$SECONDS} }  function timer_stop {         seconds_elapsed=$(($SECONDS - $timer))         unset timer }  function prompt_seconds_elapsed {         local c;         local t=${seconds_elapsed}s         if [ $seconds_elapsed -ge 60 ]; then                 c=196                 t=$(format_seconds $seconds_elapsed)         elif [ $seconds_elapsed -ge 20 ]; then                 c=214         elif [ $seconds_elapsed -ge 10 ]; then                 c=100         elif [ $seconds_elapsed -ge 5 ]; then                 c=34         elif [ $seconds_elapsed -ge 1 ]; then                 c=22         else                 return         fi         echo -ne "\e[0;38;5;${c}m${t} \e[0m" }  function format_seconds {         ((h=${1}/3600))         ((m=(${1}%3600)/60))         ((s=${1}%60))         printf "%02d:%02d:%02d\n" $h $m $s }  trap 'timer_start' DEBUG PROMPT_COMMAND=timer_stop  export PS1="\n\e[1;38;5;106m\u@\h \e[0;38;5;136m\w\[\e[0m\]\n\$(prompt_return_value)\$(prompt_seconds_elapsed)\$(prompt_status)\$ "   The problem is that the prompt looks broken when a terminal window has small width. This is what I get for 80 columns:  username@some-very-long-hostname ~/tmp/d 06a14b06cac) $ 9866c9d0d26d2b27063a89ee1c330   It's like wrapped at the 2nd line causing total mess (see the $ sign in the middle). It works almost perfectly for a larger terminal column number, say 120:  username@some-very-long-hostname ~/tmp/d hg default (0:69866c9d0d26d2b27063a89ee1c3306a14b06cac) $   Also I noticed that add more text to the end of the terminal line causes an issue that's very similar to the effects described for 80 columns above. The question is: does bash handle new lines or "too long" incorrectly for PS1?  Thanks.    UPDATE  This question is not an exact duplicate of  . After some discussion with @AdamKatz, it seems that zero-length output escapes \[ and '] work only when they are literally put in the PS1 string, but they does not seem to work when returned from a function causing to appear unescaped on terminal.


dual boot win 7 (pre installed) and ubuntu 12.04

friends i am new to ubuntu forum.  please guide me installing ubuntu alongside win 7(preinstaled). I want to run both operating system for now. Please walk me through all the  steps to be carried out to install. i will be great full to everybody. Thankyou people.


Validity of maximising log-likelihood for maximum likelihood estimation

For reasons owing to mathematical convenience, when finding MLEs (maximum likelihood estimates), it is often the log-likelihood function---as opposed to the standard likelihood function---which is maximised.  From what I've gathered, this approach is deemed valid as a result of the monotonically increasing nature of the (natural) logarithm function.  My understanding of a monotonically increasing function is: for all $x$ and $y$ (defined on a subset of the reals), if $x \leq y$ then $f(x) \leq f(y)$.  This, however, does not appear to be the case for all log-likelihood functions; for example: for the log-likelihood $\text{Gamma}(3, 5)$ function, if $x = 0.15$ and $y = 0.46$, then $f(x) = -0.59$ and $f(y) = -1.19$.  Clearly, I've misunderstood this concept. Fundamentally, I guess I'm asking can somebody (preferably mathematically) demonstrate why:  $$ \hat{\theta} = \text{argmax} \text{ } L(\theta) = \text{argmax} \text{ } \text{log} \text{ } L(\theta) $$  where $\hat{\theta}$ is the MLE for a given likelihood function.


Sci fi book or series from the 1980's, constant information

As in the header, I remember very little about this book or series   Some guy who is a key leader, either Earth Government or a corporation or a power bloc. There was a space trading element but I really can't remember anything about that. I don't think this person was the main character.  The key point I remember is, from the moment he wakes up, there's a little device or implant at one of his ears. All day long he gets updated on stock market and political info and military dispersals. A continuous low murmur.


Can we find out who has developed the app by looking on the signature?

Is it possible that the published app is not signed by its developer andd if yes, How can we find out who is the app developer?


How do I code the Fibonacci series in Python?

I am beginner in python. I'm trying to make a Fibonacci series, but it gives me an error and says "invalid syntax." Second thing is that I should be able to add any float value, not only integers. Code:  n = input "Enter a number:"  s1=0, s2=1,i=1,sum=0  while i <= n:     print s1      sum = s1 + s2      s1 = s2      s2 = sum     i += 1


Distance between footnote and the line above it

How can I edit the distance between footnote and the line above it?


After installing Windows 8 next to Ubuntu, I can only boot 8

I bought a new HP laptop with Windows 8 to replace an old laptop running Ubuntu. Using Acronis I cloned the Ubuntu installation over to my new laptop... accidentally overriding the Windows installation.   No big deal, I thought. It was a new computer and I didn't have anything special on it so I popped a Windows 8 disc in the drive, and loaded onto my second partition.  Now, the computer only boots to Windows 8 and I have no idea how to get it boot to Ubuntu.  I have already turned off the UEFI and Secure Boot options from the BIOS but I have no idea where to go from here.


Passing contents of file on the command line for c++ program

I have the following program (let's call it program.cc):  int main() {   int x, y, sum;   std::cout << "A program which adds two integers\n";   std::cout << "Enter 1st integer: ";   std::cin >> x;   std::cout << "Enter 2nd integer: ";   std::cin >> y;   sum = x + y;   std::cout << "Sum is " << sum << std::endl;   return 0; }   I'm currently writing a bash script that would take a file and push it through the command line as arguments being passed to this cpp program. As you can see, the above program asks for two inputs.  I know how you can pass the contents of a file for use as input on stdin. But how would you do this if you want to pass the contents of a file as arguments through the command line?   To elaborate, let's say file.txt is the file i'm interested in, which simply contains two integers on separate lines.   EDIT: I tried the xargs command:         xargs program.cc < file.txt > outputresult.txt   But this ends up printing what I have in cout, e.g.:       A program which adds two integers      Enter 1st integer: Enter 2nd integer: Sum is 2   I only want what is cout'ed AFTER all my arguments have been passed. How do I do this?


Sum involving Harmonic numbers and binomial coefficients

Prove that $$\sum_{r=1}^{n}(-1)^{r-1} \, H_{r} \, {}^{n} C_{r} = \frac{1}{n},$$ where ${}^{n}C_{k} = \binom{n}{k}$ and the Harmonic numbers are defined by $$H_{n} = \sum_{j=1}^{n} \frac{1}{j}.$$  My attempt: I opened the summations, and re-combined the series but I am getting the same terms again.  Using integration I was able to resolve the series and it converted into  integration of $$ \int_{0}^{1} (1-x)^{n-1} \, dx.$$


Print item from list in chunks of 50 in Python

I have a list with 2,500 items. I want to print the first 50 items in a line and the next 50 items in the next line. So there will be a total of 50 lines with 50 items in each line.  myList = ['item1', item2,..., 'item2500']   line1 = item1, item2, ..., item50 line2 = item51, item52,...., item100 . . line 50 = item2451, item2452,...., item 2500   Tried some while loops but it didn't quite work out. Is there a built-in functions or an easier way to do this? Thank you.


I was trying to execute a query on data.stackexchange.com without being logged in, and it throws up this error (screenshot):    The devs might want to look into it, since this may be happening elsewhere as well for other users/sites and is time bound.


Was the whole changeling/Dominion plot planned from the beginning?

I am just rewatching Star Trek: Deep Space Nine.  I was wondering whether the producers planned the Dominion plot, and especially that the Founders are changelings, from the beginning.   In the first episodes it was established that Odo was the only (known) one of his kind. It is only natural to explore his origin within the series. Was this meant to be the Founders/Dominion plot from the beginning?


I am trying to include the bibliography in a file I'm writing. The editor I'm using is TeXShop (OS is mac OSX).  I'm following a tutorial where I found that to include the bibliography using Biber I need a .bib file and the following commands:  \usepackage[autostyle]{csquotes}  \usepackage[backend=biber]{biblatex} \addbibresource{bib_file.bib}   and then  \printbibliography   Then it says that, in order to make the bibliography appear in the document, I should:   Compile Run Biber from the editor Re-compile twice   But how do I run Biber from TeXShop?  PS I've already set Biber as my default BibTeX Engine in Preferences/Engine, but I don't know how to run it. If I simply compile the document (i.e. press "Typeset") no bibliography will appear.


Migrating BLOB in Oracle into PostgreSQL

I use the data type BLOB in an Oracle table to store images and document files.  Now for Postgres(9.4.5), I have two options, i.e., BYTEA or OID.  With consideration of passing the params (SAVING) from the Java side as follows:  DiskFileItemDeepy file  =  myFile;   InputStream is = null; long fileSize = 0; if (file != null && file.getFileSize() > 0){    is = file.getInputStream();    fileSize = file.getFileSize();    call.setBinaryStream(1, (InputStream)is,  (long)fileSize); } ... call.execute();   //When retrieve the data use:  java.sql.Blob blob = (Blob) resultSet.getBlob(tableColumnName);     For the purpose mentioned above, which Postgres data type is a better candidate for replacement of the BLOB, is it BYTEA or OID?


I found the source code like this. I am familiar with javascript anonymous function though,  what is :?  For example  When I call createOverlays function with argument, how can I make it ?   I am googling around about : but unable to find good explanation.  I might not understand the basic javascript structure.  Please give some hint.  var World = {     init: function initFn() {            this.createOverlays();     },      createOverlays: function createOverlaysFn() {          // some function     }, }     simply solved. I can pass the argument like this.   var World = {     init: function initFn() {            this.createOverlays(1);     },     createOverlays: function createOverlaysFn(arg) {          // some function          console.log(arg) //show 1     }, }


A friend and I are having a debate about a most perplexing piece of English grammar. Now, I am a native English speaker, and he is Polish - this means that he is rather clued up on the grammatical side of things, whereas I know diddly squat, but know what feels right.   We were discussing Poland's next world cup match tomorrow, when Poland plays against Colombia, and I wrote to him after he me sent a heartwarming video (jokingly, of course), that 'I think threats of stoning if they don't succeed would be more effective.'  He replied that such a sentance should be in the second conditional tense, and thus go like 'I think threats of stoning if they didn't succeed would be more effective.'  So after a lively debate as to whether this is the second, first, or not even a conditional, I have no choice but to turn to the denizens of the interweb, to ask them to apply their grammatical expertise to resolve this vital question.  Thanks in advance, Conor


Why does the space after \AA disappear?  \documentclass{article} \begin{document} 5 \AA wavelength \end{document}     Since extra spaces don't achieve anything in LaTeX, what can be done besides forcing a space?  Also, why is this symbol causing this affect?


sending email via php mail function goes to spam

I am facing problem in sending mail to my inbox (gmail account) but everytime it goes to spam folder. Here is the code snippet      //$ticketDetail is array which contain required information to send.        sendOwnershipEmail('dineshnagarscriet@gmail.com', $ticketDetail);             function sendOwnershipEmail($email, $ticketDetail) {             $param = new stdClass();      $param->content = "

".$ticketDetail[0]['ticket_number']."

Ticket with ticket number ".$ticketDetail[0]['ticket_number']." has been requested for tranfer from

".$ticketDetail[0]['oldDepartment']." to ".$ticketDetail[0]['newDepartment']." Department

";                          $param->sendTo = $email;             $param->subject = "Request for Department transfer";                      sendMailFunction($param);     }               function sendMailFunction($param) {             $to = $param->sendTo;             $subject = $param->subject;             $headers = 'MIME-Version: 1.0' . "\r\n";             $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";             $headers .= 'From: successive.testing@gmail.com' . "\r\n";             $message = "" .                    "<meta http-equiv='Content-Language' content='en-us'>" .                    "<meta http-equiv='Content-Type' content='text/html; charset=windows-1252'>" .                    "" .$param->content.                            "

";           mail($to, $subject, $message, $headers);     }  And I have tried a lot like setting headers as  Reply-To, Return-Path etc but every time it goes to spam. Can you please figure out whats the problem?


I'm in the 11th grade. At the bachelor exam, my main focus will be on mathematics and informatics.  I'm a hard working man, but due to the school norms, I can consider myself idiot at math. Why? Because the math that's studied at school is rubbish. It makes you reproduce, and not think. I'm also tutored at math, but with the same results.  I want to go on the same way I went with informatics, and this is by learning in private, alone.  Could you recommend me some books that can help me understand the whole high-school curriculum? A book/books that takes me from the very below (9th grade) till 12th grade?


I fed multiple ocelots raw salmon until they had the hearts coming off of them but they wouldn’t tame. They didn’t run away but they didn’t become tame cats and they wouldn’t follow me. Essentially the previously wild ocelot became like any passive mob such as a pig: you can lure it but it’ll never become domesticated. I guess basically it was only in “breeding mode” but it clearly “loved” me, however, for some reason, it didn’t want to follow me.


Fancyhdr: How to remove name of the subsection from header

I need help with removing the subsection name from the header. My LaTeX file names both subsection (to the left) and section (to the right) at the header, I only want the section name to be in the header. For example, looking at the picture below, I want to remove "2.1 Background" but keep the "2 Global Climate Change". A picture of my latex code is illustrated below. Thanks in advance!


What's a reliable way to detect math mode (including align*)?

I thought \ifmmode detected math mode, but clearly it does not: \documentclass{article} \usepackage{amsmath} \begin{document} \[     \ifmmode math \else not math \fi \] $\ifmmode math \else not math \fi$ \begin{align*}   \ifmmode math \else not math \fi \end{align*} \end{document}   How do I reliably detect math mode, including within align*?


I have looked all over but I can't really find  a clear example of this...  If $\mathbb{Z}_5$ is set $\{0,1,2,3,4\}$ prove that it is a field... I understand that from the table we can see that the set is commutative, associative, and it has an identity. I'm not sure how to show the inverse $-a$ is in $F$, but by the table we can see that for take $2$  is in $F$ then if the inverse exists $-2$ is in $F$, and $2 + (-2) = 0$ but in the table we can see that $2 + 3 = 0$ so then $-2 = 3$? But I am just confused how that is possible, I know maybe it has something to do with mod but not sure how to tie it all together


error: cannot bind ‘std::ostream {aka std::basic_ostream}’ lvalue to ‘std::basic_ostream&&’

Hello everonye even I found many answers here about this questions one simply could not explain me how things going could not fix it trying everything.  So my question is I have a class called Matrix when I try to implement operator << as inline method I get following error    error: cannot bind ‘std::ostream {aka std::basic_ostream<char>}’ lvalue to ‘std::basic_ostream<char>&&’   Here is how implementation of my method looks in class   ostream& operator<<(ostream& out) {      for (int i = 0; i < this->getHeight(); ++i) {         for (int j = 0; j < this->getWidth(); ++j) {              out << this->(i, j) << "\t";         }         out<< "\n";     }      return out; }   When I implement it as function like this       template <typename U> ostream& operator<<(ostream& out, const Matrix<U>& c) {      for (int i = 0; i < c.getHeight(); ++i) {         for (int j = 0; j < c.getWidth(); ++j) {              out << c(i, j) << "\t";         }         out << "\n";     }      return out; }    It works :( Can anyone explain me what I m doing wrong here


Do I need a transit visa in JFK en route to St. Kitts and Nevis?

I'm Nigerian, passing through JFK on Delta Air on my way to St. Kitts and Nevis on tourist visa on arrival policy. I want to know if it is possible without a transit visa.


Why does C++ show characters when we print the pointer to a character type?

Consider the following code:  char char_a = 'A'; int int_b = 34;  char* p_a = &char_a; int* p_b = &int_b;  cout<<"Value of int_b is (*p_b) :"<< *p_b<<endl; cout<<"Value of &int_b is (p_b) :"<< p_b<<endl;  cout<<"Value of char_a is (*p_a) :"<< *p_a<<endl; cout<<"Value of &char_a is (p_a) :"<< p_a<<endl;   When I run it, output is:    So why doesn't it show the address in the case of char pointer as it does for the integer's pointer?


How to obtain a specific table with a missing cell

How should I proceed to obtain the  following table:     What I've tried is:   \begin{tabular}{ | c | c | c | c | c | } \hline  7 & 4 & 7 & 9 & 27\\ \hline  10 & 9 & 9 & 6 & 34\\ \hline  17 & 13 &  16 & 15 & \multicolumn{1}{r}{ } \\ \hline \end{tabular}   but it does not work anymore.  Thanks!


Can anyone tell me what is Fixed effect and Random effect models? How to make out that when to use fixed effect and random effect model? What algorithms are the examples of fixed effect and Random effect models?


I know there are Login Items under Users & Groups and /Library/LaunchAgents and /Library/LaunchDaemons under Library, System/Library and Users/FooUser/Library. And then there's right click on Dock icon -> Options -> Open at Login.  What other methods are there for apps to auto-start? The reason why I'm asking is because the Spotify App (downloaded from ) keeps starting up whenever I restart my Mac, even though I made sure there is no corresponding entry in any of the above mentioned places.


How can I disable the Document Library drag and drop function?

Before I start - I'm new to this SharePoint development lark and am slowly familiarising myself with it.  We're using SharePoint online and I have amended the SharePoint out-of-the-box document library to include some extra fields that are required when the user adds a new document.  If the user creates or uploads a new document then they are prompted to enter the required information. However if they use the drag and drop functionality the entry of the necessary fields is bypassed.  During my search I came across  which asks how to enforce metadata entry (which would be another good option for me). It also mentions disabling the drag and drop functionality by editing dragdrop.js and removing content from various methods.  I've had a look at the site collection I'm working on (to which I have full control) and I can't seem to find dragdrop.js (or the layouts folder for that matter).   Is this something that's held at site collection level or is it held at a higher level? I don't have admin rights above my site collection, do I need them? Do I need to use Visual Studio to make the necessary changes? (Currently I'm doing things through the web and having a bit of a play with Napa I don't have Visual Studio installed)  When I get there is it obvious what methods need to be removed? How can I tell SharePoint to use the new version of dragdrop.js? Is it just a case of saving a copy of the existing one to a different name and then editing the existing file?      I suppose the best place for me to have asked this question would probably have been on the existing post, but I am unable to post a comment on there, sorry...


Every metric space with a countable base is separable

I know that every separable metric space has a countable base.  I was wondering if we can get a countable dense subset from every metric space that has a countable base.  Thank you very much!!


Best way to display more table columns and rows than I have room for?

I have a similar problem to what is mentioned in . But to make things a little more difficult, the table has approximately 1000 rows and 64 columns. I thought of splitting up the table but the users insist on viewing all the columns at once. Hence I have come up with one option where the first two to three columns with name, ID are set to a freeze state (like in excel) and rest of the columns scroll under these columns; i.e. the table gets a horizontal scroll and to solve the row issue i have given a pagination. I have recommended that the table will be displayed only if there are 100 rows, if there are more than 100 rows the user will get an export to excel/import from excel option.  Is there a better way to handle this?


Find $\mathbb{P}[\exists n>0 : X_n=j \mid X_0=i]$ in Markov Process

Let $\left\{B_n\right\}_{n=0}^{\infty}$ be an i.i.d. process, such that, for every $n\in\mathbb{N}\cup{0}$: $$\mathbb{P}[B_n=-1]=p \\ \mathbb{P}[B_n=+1]=q$$ Such that $p+q=1$. Let $\left\{X_n\right\}_{n=0}^\infty\subset\mathbb{S}$ be a markov chain, where $\mathbb{S}=\left\{i\right\}_{i=0}^K=\left\{0,1,...,K\right\}$ for some $K\in\mathbb{N}$, such that: $$X_n=X_{n-1}+B_{n}\qquad0<X_{n-1}<K \\ X_n=X_{n-1}\qquad\qquad \ \ X_{n-1}\in\left\{0,K\right\}$$ I drew the diagram of the process in order to see things more clearly:  Define the probabilty $\rho_{ij}$ for every $i,j\in\mathbb{S}\setminus\left\{0,K\right\}$ such that: $$\rho_{ij}\triangleq\mathbb{P}[\exists n>0 : X_n=j \mid X_0=i]$$ (In other words, $\rho_{ij}$ is the probability that the chain would somewhen visit the state {$j$}, given that the initial state is {$i$}. It is clear that if the initial state is $X_0=0$, then it is certain that the chain would visit the state {$0$} again, but never any other state. In other words, $\rho_{0k}=\delta[k]$ where $\delta$ is the delta of kronecker.) It is given that $p=q=1/2$. Find $\rho_{ij}$ for every $i,j\in\mathbb{S}\setminus\left\{0,K\right\}$.  I feel like I've tried everything. It seems that doing this straightforward is impossible, since the total number of paths that must be considered is too large. I understand that the expression would be different for the three cases $i=j,i>j$ and $i<j$. Finding $\rho_{ii}$ shouldn't be a problem if I knew $\rho_{ij}$ for $i>j$ and $i<j$, since: $$\rho_{ii}=p\rho_{i-1,i}+q\rho_{i+1,i}=[\rho_{i-1,i}+\rho_{i+1,i}]/2$$ And obviously $i>i-1$ & $i<i+1$. Thank you very much!


How could I get the terminal to be launched once I have logged in, so that typing commands is much simpler?


Changing feature class and field aliases in bulk using ArcPy?

I have over a hundred FCs, each with 10 or 20 attributes to add or change the aliases for, two or more times a year. Needless to say, this is not something I'm going to grunt my way through. How can I automate this process?  Python solution preferred but will use anything that works.  I have access to Arcgis 9.3.1 and 10 (ArcInfo license level).


I am stuck at the following problem:     Let $\varphi$ be a sentence in a predicate calculus $T$ and $\Sigma$ a set of sentences in $T$. Show that $\Sigma \vdash\varphi$ if and only if $\Sigma\,\cup \{\neg\varphi\}$ is inconsistent.     My attempt:  $(\Leftarrow)$ Suppose $\Sigma\,\cup \{\neg\varphi\}$ is inconsistent, then there exists a formula $\psi$ such that  $\Sigma\,\cup \{\neg\varphi\}\vdash\psi$ and  $\Sigma\,\cup \{\neg\varphi\}\vdash\neg\psi$.   $(\Rightarrow)$ Suppose $\Sigma \vdash\varphi$. Then, since every theorem of predicate calculus is logically valid, $\varphi$ is  logically valid. Then $\neg\varphi$ is not satisfiable.  WTS: $\Sigma\,\cup \{\neg\varphi\}\vdash\psi$ and  $\Sigma\,\cup \{\neg\varphi\}\vdash\neg\psi$   $\Sigma\,\cup \{\neg\varphi\}$ is inconsistent


Camera image in pixel to real image in meters size relation

first post so please be nice. I am doing an image processing project and my problem is now that I would like to know how big my digital image is in the real world.  I have: digital image: 336x256 pixel  camera focal length: 9mm  camara aperture: f/1,25  camera distance: 40m  pixel pitch: 17 micro m  FOV: 35° x 27°1.889 mr  Is there a way to calculate the real width and height of the image?


Does SR treat time and space symmetrically? Then why does $t$ dilate while $\ell$ contracts?

Can you resolve this paradox: Time and space are supposed to be treated symmetrically in SR, yet time dilates while length contracts. I've been working on this for weeks, and I can't resolve it.  The mirror experiment shows that time and space both expand for the moving observer, in contradiction to the results one derives from the LT, yet a well-known text, Eisberg's Fundamentals of Modern Physics (pp. 20-21) incorrectly concludes the usual asymmetrical results from that, by changing the definition of time dilation! He defines it as meaning that time measured in the moving frame is longer, when tau is actually well-known to be shorter. Time dilation refers to the mover's time UNITS LOOKING longer to the stationary observer because the total number of time units is FEWER, the opposite situation from the mirror experiment.


How does the Death Star travel in hyperspace?

Is there any reference in Canon or Legends on how the hyperspace travel of the Death Star is performed?  Is it in anyway similar to the hyperspace travels performed by other starships in the Star Wars universe? Or is there another kind of ftl-drive I am not aware of?  I understand that a , but is this referenced anywhere else? As a more technical approach, how would a massive body like this would achieve integrity in a hyperspace jump? Would all of these supposed hyperdrive thrusters need to be synchronized before the jump in order for the entire Death Star jump?


In Bayesian inference, why is p(D) sometimes called "the evidence"?

Bayes's Theorem states that  $p(H|D) = \frac{p(D|H)}{p(D)}p(H)$  where H is the hypothesis and D is the new data. It can also be written as  $posterior = \frac{likelihood}{evidence} * prior $  p(D) is sometimes called the "marginal likelihood", because it is the likelihood of the data regardless of whether the hypothesis (or anything else) is true or not, and is sometimes referred to as the "normalising constant".  But why is it sometimes called "the evidence"?


I have a really lightweight Single Page App with a common header+footer and a dynamic middle piece. In one view of this middle piece is a dynamic table where the final column has a "confirm" button in it. If this is the first view loaded, clicking the button creates a proper function call. If it's been swapped in after the first full page load, the function in my core javascript isn't called.  I'm using the following to inject an HTML template post-page-load  $('#view2_button').click(function() {     $.get("/view2", function(data, status) {         document.getElementById("mainview").innerHTML = data;     }); });   And here is the javascript for the "confirm" buttons which are in a dynamic table in the partial view "view2." Again, this code works exactly as intended if "view2" is the first partial view rendered upon loading the app.  $('td.confirm').click(function() {              toggleOverlay();             const confirmId = this.id.split('_')[1];             if(confirm(  'By clicking OK, you are confirming:\n'             //...     //...  });   Is the only solution to this to embed "OnClick()" into the button div itself, or is there a proper way to keep the code separate from the markup without having to rely on something as heavy as Angular, React, or Vue?


Complete reducibility of a representation of a lie algebra

I am slightly confused over the semantics of the definition of complete reducibility of a representation of a Lie algebra. Here's what I understand it to mean:  First, A representation $\phi:g \rightarrow gl(V)$ of a Lie algebra $g$ is irreducible if the vector space $V$ has no invariant subspaces.  Where we say a subspace $W$ of $V$ is invariant if it is invariant under $\phi(x)$ for all $x$ in $g$.  Now, it is said that a representation is completely reducible if it decomposes into a direct sum of irreducible representations (Wikipedia).  I struggle to understand what the last sentence means. What I think it means is that $V$ decomposes into a direct sum of vector spaces $V_i$ which are all irreducible (IE have no invariant subspaces).  This makes sense to me, but I also am not quite sure that I understand why it's not trivial. Should it not be the case that for any representation we will always be able to decompose $V$ into a direct sum of subspaces which are irreducible? I mean, the answer is obviously not (unless $g$ is semisimple), but I'm struggling with an intuitive understanding of that. Any help is appreciated.


Why does a rigid body rotates about it's centre of mass?

When an impulsive force is acted upon a rigid body, (and the force doesn't pass through the centre of mass) why does the body rotates specifically about an axis passing through centre of mass ?


Is there any canon reference to the Mirror Universe Borg that would explain more about them?   I've tried searching on my own and haven't found anything.


When updating Cell in Excel using Fillo , getiing error as "NullPointerException"

I am using below code,i have checked pathname and sheet name is all fine. I am using fillo version fillo-1.15.  public class T_Test {     public static void main(String[] args) throws Exception{         try {             com.codoid.products.fillo.Fillo fil_res = new com.codoid.products.fillo.Fillo();             com.codoid.products.fillo.Connection con_res = fil_res                     .getConnection("C:\\Users\\admin\\workspace\\Good Connect\\Test_Data/Result\\LifePlanner_Result.xlsx");             String sql_res = "update Result_Data SET Product_ID = 'Sampoorna Raksha' Where TestCase_ID = 'TC1_SIS' ";             System.out.println(sql_res);             com.codoid.products.fillo.Recordset recordset_rec = con_res.executeQuery(sql_res);             con_res.close();         } catch (Exception e) {             System.out.println("Exception result set:" + e.toString());         }     } }   Error is below:     java.lang.NullPointerException   Exception result set:java.lang.NullPointerException       at com.codoid.products.parser.SelectQueryParser.isWherePresent(SelectQueryParser.java:66)       at com.codoid.products.fillo.Select.getRecordset(Select.java:47)       at com.codoid.products.fillo.Connection.executeQuery(Connection.java:56)       at GoodSolutionAgence.T_Test.main(T_Test.java:89)


How to make long references inside the text? Latex

I'm using texmaker and I inside my text I mention a particular phenomenon. I then want to make reference to a series of papers, you know, like "... gaussian beams, [10,11]", but my list is longer than that. I wanto to write the reference as [10-14] but the best I can do is [10,11,12,13].  I'm using the command \cite{ref11, ref12, ref13, ref14}. How can I achieve this [10-14] form?


I want to do:  int a = 255;  cout << a;   and have it show FF in the output, how would I do this?


mce_external_languages: how does it really work?

I have been reading very carefully and more than once the , yet I don't understand how to provide a plugin with multiple languages.  In the example there is an array, such as:  $strings = array(     'somestring' => __('My custom Tinymce plugin', 'textdomain'), );   but I am not clear on how to provide the same text in other languages... I am sure I just misunderstood something very simple but I cannot find my way out of it...  I also went through  but I don't see a clear example with at least 2 different languages.  Thanks for your help!


Does taking log affects units of original values

We know that  $\log (a) - \log (b) = \log {(a/b)}$, suppose if $a$ and $b$ are some values with units say metre, the operation $\log (a)-\log (b)$ results in $x$ output with units, but the$ \log {(a/b)}$ results in cancellation of units. Can someone explain it to me?


The Situation:  A ball is placed in a beaker filled with water and floats. It is also attached to the bottom of the beaker via a string.   The Question:  The ball is attached to the beaker, thus making the ball and beaker (and string included) a system. However, it is floating. Does the ball add to the weight of the beaker?


What's going on with the user summary page on StackOverflow?

Has there been a redesign of the User Summary page that only applies to StackOverflow?   I couldn't find any mention of this from a search on meta.   Or have I somehow changed a preference setting somewhere that changes the view I see? When visiting my own profile page (but not that of other people) it looks as follows.    The helpful flags count has disappeared as well as the information about consecutive visits. I don't see this on my profile on other sites.


I have a cheap clone android (benss b3) that I managed to connect to win 7 by editing the .inf file in usb drivers. Now I want to load different ROMs via fastboot. However, when I boot to fastboot mode (?, power on with back + power button pressed), I get a new device in windows  device manager. I can't get the usb drivers working and no devices appear with fastboot.  How can I get the fastboot to detect my device?


Is it already possible to download Whatsapp on Ubuntu mobile through the software center? Or can someone show me how to download and install this step by step? I don't have an Ubuntu phone yet but I would love to try it but only if it is possible to run Whatsapp


Finding mean squared error of estimators of $\pi$ when $X\sim\operatorname{Bin}(n,\pi)$

Now I am really struggling to understand the definition of the mean squared error.  The question I am working on:  $X\sim \operatorname{Bin}(n,\pi)$. Find the mean squared error of the estimators $\widehat{\pi}=\frac{X}{n}$ and $\stackrel\sim \pi = \frac{X+1}{n+2}$.  Given that $E(X)=n\pi$ and $\operatorname{var}(X)=n\pi(1-\pi)$.  I am trying to get my head around the notation used in the definition of the MSE.  Now the bias is the expectation of $X$ minus $\pi$? Then the MSE would be the given variance plus the bias squared? Any help would be appreciated.


How to include orcid icon with link, like this:  I using pdflatex, and IEEE Access template for Latex. Thanks


I have a setup where theorems are numbered automatically. Now I want a single theorem be numbered with special number, e.g. after Theorem 2 write Theorem 2'. Is it possible?


"The horizontal and vertical transfers" vs. "the horizontal and the vertical transfers"

The Horizontal and vertical tranfers in Local Governement    Is this fragment grammatically correct?


I am familiar with group theory and topology. Now I am studying the concept of  topological group. As per , it is defined as follows: Let $G$ be a group together with a topology $\textit{T}$ defined on it. Then the topological space $(G,T)$ is said to be a topological group, if the following two functions  $G \times G \to G$, $(x,y) \mapsto xy$, $G \to G$, $x \mapsto x^{−1}$  are continuous. I can understand that the first condition gives a relationship between the binary operation defined on $G$ and the topology $T$. But I couldn't get why the second condition is necessary ? What will happen if we exclude the second condition ?


Is the ideal $I = \{f\mid f (0) = 0\}$ in the ring $C [0, 1]$ of all continuous real valued functions on $[0, 1]$ a maximal ideal?

Is the ideal $I = \{f \mid f (0) = 0\}$ in the ring $C [0, 1]$ of all continuous real valued functions on the interval $[0, 1]$ a maximal ideal?


Where does $xe^x$ solution come from when the characteristic polynomial is square?

When solving the differential equation $y'' + ay' + by = 0$ (with constant, real coefficients $a$ and $b$, although they could be complex if you like), you do it by setting up the characteristic equation $r^2 + ar + b = 0$, finding its solutions $r_1, r_2$, and then the general solution to this equation is $Ce^{r_1x} + De^{r_2x}$. This works both when the solutions are real and when they are complex.  However, when we have a double root $r_1 = r_2$, we get a different general solution, namely $Ce^{r_1x} + Dxe^{r_1x}$. I have no trouble seing that this is indeed a solution, and intuitive reasoning on degrees of freedom dictates that we must have a linear combination of two terms in our general solution, while $e^{r_1x}$ and $e^{r_2x}$ are the same. So the fact that there is a second term of some other form is not surprising.  I have, however, yet to see a "natural" explanation of this $xe^{r_1x}$ term. If one were developing the theory from scratch, how would one find this solution (other than blind luck)? If I wanted to teach ODE's to a class of students "the right way", i.e. with good explanations and motivations for everything (as opposed to just pulling out ready-made solutions like what was done to me when I was learning this exact thing), how would I motivate even considering a term like $xe^{r_1x}$ (other than "Well, exponentials aren't quite cutting it, but this is kindof like an exponential, right? Let's try it.")? And is there a way of solving the general differential equation that does not involve splitting into cases depending on whether the characteristic polynomial is a square?


Wrapper around `picture` environment causes page break

A picture environment at exactly the size of the text area can fit snugly on one page. However when I replace the environment with a wrapper environment with exactly the same definition, it takes two pages instead! This is a problem because I need to define my custom full-page environment but it is critical that an extra page not be inserted after it.  To be precise, the following compiles into one page:  \documentclass{article} \usepackage[margin=1in]{geometry}  \newenvironment{wrap}{   \begin{picture}(6.5,9) }{   \end{picture} }  \begin{document} \setlength{\unitlength}{1in}  %\begin{wrap} %\end{wrap}  \begin{picture}(6.5,9) \end{picture}  \end{document}   However if you comment out \begin{picture}...\end{picture} and un-comment \begin{wrap}...\end{wrap}, it compiles into two pages, even though it has exactly the same definition. Why is this the case?  Narrowing it down: replacing 9 with 8.5 solves the problem, that is, both wrap and picture versions compile to one page. So it seems that the problem is that while the 9-inch picture environment maxes out the space, while the wrap environment adds an extra sliver of space from \newenvironment that causes a page break. Can someone verify this guess?


I've read another post about excel at or excel in. But it was too general.   What if the object is a language? When we say "in English" or "in German" it means written or spoken in the mentioned language. But what about "excelling" at/in that language? It feels wrong to say "at", and the same with "in".  Native speakers, please help! Which one sounds or feels natural to you?      excel at English   or   excel in English


$x\in \mathbb{R}\setminus\{0\}$ and $x + \frac{1}{x}$ is an integer. Prove $\forall n\in \mathbb{N}$ $x^n + \frac{1}{x^n}$ is also an integer.

Let $x$ be a non-zero real number such that $x + \frac{1}{x}$ is an integer. Prove that $\forall n\in \mathbb{N}$ the number $x + \frac{1}{x}$ is also an integer.   Attempt at solution using induction:  base case: $n = 1$ then $x^n + \frac{1}{x^n} = x + \frac{1}{x}$ which is an integer  Inductive assumption: Assume that for some $k\in \mathbb{N} : x^k + \frac{1}{x^k}$  We have to show that $ x^{k+1} + \frac{1}{x^{k+1}}$ is an integer.  $$ x^{k+1} + \frac{1}{x^{k+1}} = x^k\cdot x + \frac{1}{x^k\cdot x} =  \frac{(x^k\cdot x)\cdot (x^k\cdot x)+1}{x^k\cdot x}$$  I can't find a way to seperate $x$ and $\frac{1}{x}$ from the term so I can use the inductive assumption.  Edit: I don't think that this question should count as a duplicate since the linked question is asking to specifically solve another problem and one of the answers of that question utilize the proof from this question in their answer but that question itself is different and not related to this question since that question can be solved without using this proof as other answers of that question don't include it.


I am perfectly capable of watching Netflix on Google Chrome, since it's supported, but, I would like to know if it's possible to use Firefox to watch Netflix since I prefer this web browser over Chrome.  Thanks


Natbib produces different output than expected

I'm preparing a submission to a journal that expects citations in the format [Author(year)]. Based on the examples in, for example, , abbrvnat seems to fit my requirements. Unfortunately, citations appear differently in my example.  My document looks as follows:  \documentclass[]{article} \usepackage[square]{natbib} \usepackage{filecontents}  \begin{filecontents*}{ref.bib}   @book{Knu86,     author = {Knuth, Donald E.},     year = {1986},     title = {The \TeX book},   } \end{filecontents*}  \begin{document}  Text including citation \cite{Knu86}.  \bibliographystyle{abbrvnat} \bibliography{ref}  \end{document}   I'd expect the following output:    Instead, running pdfLaTeX and bibTeX produces the following result:    What can I do to achieve the expected output?  I'm open to switching to Biblatex, but the solution  formats citations as [Knu86] instead of [Knuth(1986)]. I'd be interested in customizing Biblatex to fit my needs, but what I don't understand is why abbrvnat doesn't already do what I expect. Clearly, I end up with a different result than every example of abbrvnat I can find.


List Box string changes on the basis of Time

I am developing an application related to display screen at Airports. For that purpose, I intend listbox UI controller to the display that includes Flight information, like (Flight#, Destination, Status). I wish to include the functionality so that an automatic change of status takes place after some specified time. For example, after 10 minutes, Check-In gets changed to Boarding and after 10 more minutes, boarding gets changed to Ready-To-Takeoff.   I am reading the data from file and adding strings into listbox as individual flight details as: PK101  London Check-In. On button click event, file is read and flight data is added to listbox as string rows.   However, I am unable to implement, status can change its value.   void addFlights()     {         string[]    lines=File.ReadAllLines(@"D:\FlightsSchedule\flights.txt");         foreach (string line in lines)         {             listBox1.Items.Add(line);              Thread.Sleep(500);         }      }     private void button1_Click(object sender, EventArgs e)     {         Thread thrd=new Thread(addFlights);         thrd.Start();      }   On the basis of certain time (System generated),    status on listbox may get changed as:                   Flight Destination Status    After chek-in: PK102  KHI        boarding   After Boarding:TK103  London     Take-Off


YA SF novel about 3 teens who survive a catastrophe in an underwater cave

My kids read a YA science fiction novel about three teens who survived a world-wide catastrophe by hiding in an underwater cave that they reached with a mini-sub. At the urging of my kids, I read the book and, now that I'm trying to recall it, they have no idea what I'm talking about.  The details aren't all that clear in my mind, but there was some sort of catastrophe, possibly begun by radio communication with aliens, that ended up killing everyone else except two boys and a girl. Time travel may have been involved towards the end of the book. I would have read this sometime in the last five years.  It may have taken place in Australia or New Zealand.  I'm hunting for the physical copy of the book, but we have so many books and it could have been given to a friend of theirs, so I'm not too hopeful. I'm trying to put a list together of all the books I've ever read, and this is just one more I want to capture. I know that's a hopeless and vainglorious goal, but still.


Getting a vector into a function that expects a vector

Consider these classes.  class Base {    ... };  class Derived : public Base {    ... };   this function  void BaseFoo( std::vector<Base*>vec ) {     ... }   And finally my vector  std::vector<Derived*>derived;   I want to pass derived to function BaseFoo, but the compiler doesn't let me. How do I solve this, without copying the whole vector to a std::vector<Base*>?


I'm using a laptop with built-in touch-pad that works in Windows 7. But after I switched to Ubuntu 12.04 LTS, it's not working now.


Does the recent announcement of information transmission via entanglement really indicate superluminal information transfer?

Given that various answers here at Physics assert that information isn't transferred (such as this ), and given recent , does this invalidate our understanding of what's happening? Is information actually translated superluminally?


How can I add an application icon to Gnome app launch menu

I recently installed an application (VueScan) on Ubuntu 20.04. Works great but I noticed there is no icon in the Gnome app launch menu.  I have to execute the program from the terminal. Once the application (VueScan) is up and running, it works great but I noticed that the icon in the dock is missing too. Any way I can add a missing icon for an app in the dock and create an app icon in the Gnome app launch menu?


How to use If statements from JTextFields

I've Tried Just About Everything and I still can't this dang code to run properly  public void Action(ActionEvent event) {     //We get the text from the textfield     String fromUser = textfield1.getText();      if (fromUser != null) {         if(x<1)         {             if(fromUser.length() <= 10)             {                                                 USERNAME = fromUser;                 x++;                 textfield1.setText("");             }             else             {                 textarea1.setText("Username Surpasses Size Limit Please Try Again\nUsername Must Be 10 Characters Or Less");                 textfield1.setText("");             }         }         else         {             if(x==1)             {                 textarea1.setText("");                 x++;             }             //We append the text from the user             textarea1.append(USERNAME+"> " + fromUser + "\n");             //The pane auto-scrolls with each new response added             textarea1.setCaretPosition(textarea1.getDocument().getLength());             //We reset our text field to "" each time the user presses Enter             textfield1.setText("");              //This is Where my code should work             if(fromUser == "n")             {                 InitiateText("North");             }             else if(fromUser == "s")             {                 InitiateText("South");             }             else if(fromUser == "w")             {                 InitiateText("West");             }             else if(fromUser == "e")             {                 InitiateText("East");             }             else             {                 InitiateText("I don't comprehend");             }         }     } }     public void InitiateText(String Where) //Where are you on the map {     //We append the text from the user     textarea1.append("Map > " + Where + "\n");     //The pane auto-scrolls with each new response added     textarea1.setCaretPosition(textarea1.getDocument().getLength());     //We reset our text field to "" each time the user presses Enter     textfield1.setText(""); }   This was my latest attempt to do something, the method of adding the text works fine but the if statements won't work, i'll input "n" and it will not recognize the "n" I've inputted. What am I doing wrong??


I have happened upon this use of a in a  on english grammar. It is at around 7 minute and 35 second. Here it goes:     Fine wines, and a knowledge thereof, are luxury few can afford.   I am aware that when a mass nount used with an adjective then an article is needed, but there a mass noun is alone. Tell me please why the teacher decided to use a before the word. Does a mean a little there?


I need some guidance in helping me solve this proof. Here is the question:  Give a proof by cases that $\lfloor 4x \rfloor = \lfloor x \rfloor + \lfloor x + 1/4 \rfloor + \lfloor x + 1/2 \rfloor + \lfloor x + 3/4 \rfloor$


I'm having some trouble resetting my Windows 10 PC. Whenever I start the reset process, it always shows up an error message, saying "there was a problem resetting your PC".  Can anyone suggest as to what could be the source of the problem and how to overcome it.


Freecell: How many cells are used in one "supermove"

A supermove in Freecell is when you move more than one card at the same time and automatically takes into account any free cells and free columns you have in order to maximise the number you can move. The exact formula is not a problem: 2^emptycolumns * (freecells+1)  My question is, when I make a supermove how can I calculate how many moves were made to cells. I am not talking about how many cells were used. This would be easy to calculate. What I mean is, for example, you move 10 cards because you have 4 free cells and 3 free columns, it is simulating a number of steps that include moving to cells and columns and back. So, how many moves were to cells?  Edit:  does not answer my question. That just gives the formula to calculate how many cards can be moved but not how many cell moves are needed.


PHP form sending email in spam and have problems whan refresh page it send email again

I uploaded code on server, whan i send ain on mine outlook email, email is put to spam folder, same problem is when i refresh page, mail get sent again. Can anyone help me out with code? Forword, Thank you very much!


What sort of experiment would directly test time reversal invariance?

I guess the title says it all: how could/would you experimentally test whether our universe is truly , without relying on the ? What experiments have been proposed to check this? Have any of them been performed?  I know that there are indirect tests of time reversal invariance by observing , in the decay $K_L \to 2\pi$ for example. Then if you assume that the necessary conditions for CPT symmetry are satisfied in our universe, that means there must be time reversal symmetry violation as well. But I'm curious about ways to test time reversal invariance without relying on CPT.  Basically, how could we distinguish between the Standard Model, which predicts T violation, and some hypothetical other theory that matches current experimental results as well as the SM, but in which CPT symmetry does not hold?


I'm trying to search for questions that have specific words in their titles using the  search feature, but it seems that it does not return any search results.  Using this feature, I tried to search for questions on Stack Overflow with , but this search query returns no results.  Is it still possible to filter the search results based on words in question titles?


By mistake I wrote something like this:  int tab[2][4] = {{1, 2, 3}, {4, 5, 6}}; int c = tab[1, 2]; /* expect compilation failure */   I expect this syntax cause compilation failure (linux, gcc 4.7), but gcc warn and compile. What is the meaning of the second line? Is the behavior defined in the standard? I don't find answer in it.  Thank you.


I am not a professional photographer, but I travel a lot, and I want to be able to take better photos on the way. Currently Im using my smartphone - Samsung Galaxy S7 Edge. I want to buy a camera for this purpose, for up to ~400 euro. Will such a camera be better than my current smartphone? Or do I have to actually pay much more for this to be better?


not able to execute multiple commands on multiple linux machines?

I have around 50 ubuntu machines on which I need to run below commands:  sudo apt-get install htop sudo scp -r todd@machineA.host.com:/home/todd/pip /tmp/ sudo apt-get install python-pip sudo pip install --no-index --find-links="file:///tmp/pip/" kazoo sudo scp -r todd@machineA.host.com:/home/todd/parallel-gnu.tar /tmp/ sudo su cd /tmp tar -xvf parallel-gnu.tar cd parallel-20101112/ sudo ./configure && make && make install sudo mkdir /appholder sudo chown -R golden /appholder/ sudo mkdir -p /opt/lnp sudo scp todd@machineA.host.com:/keeper/data/release/comp.tar.gz /opt/lnp/ sudo chown -R golden /opt/lnp/ sudo mkdir -p /comp/core sudo chown -R golden /comp/core   So I made a shell script file with above commands as commands.sh and I created another file called machines.text in which I have all 50 machines.  My list of machines is in this file machines.text:  somemachineA somemachineB   And my commands are in this file commands.sh:  #!/bin/bash sudo apt-get install htop sudo scp -r todd@machineA.host.com:/home/todd/pip /tmp/ sudo apt-get install python-pip sudo pip install --no-index --find-links="file:///tmp/pip/" kazoo sudo scp -r todd@machineA.host.com:/home/todd/parallel-gnu.tar /tmp/ sudo su cd /tmp tar -xvf parallel-gnu.tar cd parallel-20101112/ sudo ./configure && make && make install sudo mkdir /appholder sudo chown -R golden /appholder/ sudo mkdir -p /opt/lnp sudo scp todd@machineA.host.com:/keeper/data/release/comp.tar.gz /opt/lnp/ sudo chown -R golden /opt/lnp/ sudo mkdir -p /comp/core sudo chown -R golden /comp/core   I have a script like this execute.sh which I am running like this ./execute.sh machines.txt:  #!/bin/bash while IFS='' read -r line || [[ -n "$line" ]]; do     echo "###################################################"     echo "Machine Name: $line"     scp commands.sh $line:/tmp/commands.sh     ssh -t $line 'script /dev/null . /tmp/commands.sh'     echo "###################################################" done < "$1"   After running above, I see below error and it hasn't executed any of those commands in somemachineA:  todd@testMachine:~$ ./execute.sh machines.text ################################################### Machine Name: somemachineA todd@somemachineA's password: commands.sh                                                                                100%  104     0.1KB/s   00:00 Pseudo-terminal will not be allocated because stdin is not a terminal. todd@somemachineA's password: Script started, file is /dev/null Script done, file is /dev/null todd@somemachineA:/home/todd$ somemachineB: command not found   What wrong I am doing and how can I execute multiple linux commands on multiple linux machines?


Does a PR card holder of Canada require transit visa in Amsterdam?

My daughter is a Permanent Resident of Canada. She is travelling from Moscow to Toronto, and with a return journey from Toronto to Moscow via Amsterdam (KLM flight) and will have a 6 hours layover at Amsterdam on the return journey, and on-board time 1:30hrs time to board for the Toronto flight.    Will she require a transit visa in Amsterdam?


I know it's $\frac{\sqrt{\pi}}{2}$ but how can this be evaluated by hand? (Or can it not?) For quick reference: $$n!=\Gamma(n+1)$$ $$\Gamma(n)=(n-1)!$$ $$\Gamma(n)=\int_0^\infty x^{n-1} e^{-x}\,dx$$ Thanks. And if it's not too much trouble, maybe some guidelines in solving general Gamma functions.


Recursive neural networks for Part-of-speech tagging?

So, I've been reading quite a bit about neural networks lately and from what I've read it seems that the recurrent neural networks are one of the most common once in the field of NLP.   However, the recursive neural network model is also meantioned to be very effective in the same field.   What I've seen is that studies have conducted research about Part-of-speech with reccurent neural networks and syntactical analysis such as parse trees with the recursive model.   How come? Is it possible to do as the title suggests? Since I'm not an expert in the area I would like to know what the applications of the different models are and what fundamentally makes them different from each other.


Why is the axiom of choice separated from the other axioms?

I don't know much about set theory or foundational mathematics, this question arose just out of curiosity. As far as I know, the widely accepted axioms of set theory is the Zermelo-Fraenkel axioms with the axiom of choice. But the last axiom seems to be the most special out of these axioms. A lot of theorems specifically mention that they depend on the axiom of choice. So, what is so special about this axiom?  I know that a lot of funny results occur when we assume the axiom of choice, such as the Banach-Tarski paradox. However, we are assuming the other ZF axioms at the same time. So why do we blame it to the axiom of choice, not the others? To me, the axiom of regularity is less convincing than the axiom of choice (though it's probably due to my lack of understanding).


Before asking my question, I'll use an example to clarify the idea.  Say that a company used to sell horses and then they turn into a sheeps business. While some of the old pages can be mapped to the new pages using a 301 redirect, because they're really related in the content and the company don't want to lose users and link juice, there are a lot of pages strictly related to horses that they want to shutdown.  What's the best practice? Is there a way to say to users and Search Engines the content you were looking for won't be available any more?  Basically a 301 redirect of the closed pages to new ones seems not so good, because you'll show a content totally unrelated to the searched one.  P.S: I'm aware that probably the best fallback is to simply map those pages to the homepage but I hope in a smarter solution.


I am new to ubuntu and I had the 12.04 version installed by a friend of mine. When installing, he kept the windows os I already had in my PC, creating a partition. Now I'd like to replace the partition (I don't need windows anymore) and install the new Ubuntu 14.04 LTS (from USB) only. Can I do that straightforward installing 14.04 or do I have do delete the partition before? Thank you in advance!


In the Monster Manual, It says how to craft an amulet to control a shield guardian, but is there any book that includes the process of actually building a shield guardian?


Android null Exception onClickListener()

I am trying to copy a simple text view to another textview in android with the help of an onClick event of Button. I am new to android. I am getting following exception  FATAL EXCEPTION: mainProcess: com.example.administrator.test1, PID: 4425               java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.administrator.test1/com.example.administrator.test1.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference   MainActivity.java  package com.example.administrator.test1;  //import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView;  public class MainActivity extends AppCompatActivity {     Button b1;     TextView Text1;     TextView copiedText;     @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);          b1=(Button)findViewById(R.id.CopyText);         Text1 = (TextView)findViewById(R.id.Textbox1);         copiedText = (TextView)findViewById(R.id.TextBox2);         b1.setOnClickListener(new View.OnClickListener(){           @Override             public void onClick(View v){                 String a= (String) Text1.getText();                 copiedText.setText(a);             }          });   activity_main.xml  <?xml version="1.0" encoding="utf-8"?> <RelativeLayout     xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:id="@+id/activity_main"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:paddingLeft="@dimen/activity_horizontal_margin"     android:paddingRight="@dimen/activity_horizontal_margin"     android:paddingTop="@dimen/activity_vertical_margin"     android:paddingBottom="@dimen/activity_vertical_margin"     tools:context="com.example.administrator.test1.MainActivity">      <TextView         android:id="@+id/Textbox1"         android:textSize="25dp"         android:hint="Enter Your Text Here"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:layout_alignParentLeft="true"         android:layout_alignParentStart="true" />      <TextView         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:textSize="25dp"         android:layout_marginTop="30dp"         android:id="@+id/TextBox2"         android:layout_below="@+id/Textbox1"         android:layout_alignParentLeft="true"         android:layout_alignParentStart="true"         android:hint="Your Text Appears Here"/>      <Button          android:text="Copy Text"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:id="@+id/CopyText"         android:layout_marginLeft="107dp"         android:layout_marginStart="107dp"         android:layout_below="@+id/TextBox2"         android:layout_alignParentLeft="true"         android:layout_alignParentStart="true"         android:layout_marginTop="85dp" />  </RelativeLayout>