I'm working on a project right now and as one of the features, I'm supposed to traverse through a list and output the items in different lines.  The code looks something like this:  dictionary = {'key0': sorted([item + "\n"                for item in mylist}])  print(x[1]) for x in dictionary.items()   However, this leaves a trailing newline every time.   Would something like this work?  string = ''  otherlist = sorted([item + "\n" for item in mylist])  for i in range(len(otherlist)):     string.join(sorted[i])  string.rstrip()  print(string)   Are there any better ways to do this?


How to include external libraries with my QGIS plugin?

I'm developing a plugin which makes use of "networkx" library extensively. However, networkx is not part of Python libraries pre-installed in QGIS.  Is there a way to include this library with my plugin installation, so that my plugin can be portable?  Thanks!


Pipelined Sed does not work on found filename inside Bash command substitution when invoked from Find "-exec"

It looks like 'find', 'bash' and 'sed' in some cases does not work as one expects.  The following example should first create file 'sample.txt', then find the file and finally process it by '-exec' command. The executed command prints found filename, test specimens, and modified filename. The 'sed' command itself is used to replace 'txt' to 'TXT'.  touch sample.txt find ./ -maxdepth 1 -name "*.txt" -exec echo {} $(echo Specimen_before.txt {} Specimen_after.txt |sed -e "s/txt/TXT/g") \;   The expected output is:     ./sample.txt Specimen_before.TXT ./sample.TXT Specimen_after.TXT   Instead it produces:     ./sample.txt Specimen_before.TXT ./sample.txt Specimen_after.TXT   (the example has been tested also with old-school command substitution through backquotes '`' with the same result)  What am I doing wrong?


I've developed some csv reports in the past through Apex code. Now, I've a requirement to develop a report in xlsx format. For CSV, I used ' , ' as delimiter and appended '.csv' to the file name. For XLSX, I used '\t' as the delimiter and appended '.xlsx'. But, if I open the generated file it throws the following error:     Excel cannot open the file 'filename.xlsx' because the file format for the file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file.   I figured out a work around, which is to append '.xls' instead of '.xlsx'. It works, but throws a warning message at the user every time they try to open the file which is something I don't want user to experience.  The warning message is     The file format and extension of ".xls" don't match. The file could be corrupted or unsafe. Unless you trust its source, don't open it. Do you want to open it anyway?   After little research,     I figured out that the issue here is that there should be at least one sheet in the workbook   So xlsx file needs to have at least one sheet wheres ascsv doesn't. So csv reports I developed in the past worked.  Is there any way i can create a sheet in Apex code? I came across some C# and Java code to add sheets. Can we do the same in Apex?   My sample code for xlsx :  String fileContent = ''; for(Account a: someList){     fileContent += a.Name+'\t'+a.Field_One__c+'\t'+a.Field_Two__c+'\t'+a.Field_Three__c+'\t'+a.Field_Four__c+'\t'+a.Field_Five__c+'\n'; } Document doc = new Document(); doc.Name = MyTestFile.xlsx'; doc.FolderId = folderId; doc.Body = fileContent; insert doc;


Asking for "other" user password while restarting a service

I am normal user with sudo privileges. I just installed apache2 and when tried to restart the service, it asked for the password of another sudo user in the system.   I can restart like sudo /etc/init.d/apache2 restart. But why it is behaving like this?  Details::    givinv@87-109:~$  givinv@87-109:~$ uname -a Linux 87-109 4.4.0-47-generic #68-Ubuntu SMP Wed Oct 26 19:39:52 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux givinv@87-109:~$  givinv@87-109:~$  givinv@87-109:~$ apachectl -v Server version: Apache/2.4.18 (Ubuntu) Server built:   2016-07-14T12:32:26 givinv@87-109:~$  givinv@87-109:~$ sudo cat /etc/sudoers | grep 'ashu\|givin' ashutosh ALL=(ALL:ALL) ALL givinv ALL=(ALL:ALL) ALL givinv  ALL=(ALL) NOPASSWD:ALL givinv@87-109:~$  givinv@87-109:~$    Is it related to apache2 or sudo user ? Please let me know if more details needed.


How to detect a click anywhere on the document EXCEPT a specific DIV

I am using Jquery to shown and hide an overlay on the web page.  In my scenario, I am showing an overlay menu and currently close the overlay when an item within the menu is clicked (click event detected and then overlay closed).   $('#menu a').click(function(){ $('.overlay').hide(); });   Nice and simple!  I now have a requirement that I want to hide the overlay when anywhere on the screen is clicked other than the menu item (for convenience).  Here's an example:    $('.overlay').click(function(){     // pseudo code   if (isDivClicked == false){      $('.overlay').hide();   } });   Is there a way to see if the clicked area is the overlay but NOT the div shown (with the menu items).  Thanks in advance!


Why is there content: " " after and before many classes in bootstrap?

In bootstrap.css they have added the following style rules after many classes,    display: table; content: " ";   The classes that include this are:    .clearfix:before, .clearfix:after, .dl-horizontal dd:before, .dl-horizontal dd:after, .container:before, .container:after, .container-fluid:before, .container-fluid:after, .row:before, .row:after, .form-horizontal .form-group:before, .form-horizontal .form-group:after, .btn-toolbar:before, .btn-toolbar:after, .btn-group-vertical > .btn-group:before, .btn-group-vertical > .btn-group:after, .nav:before, .nav:after, .navbar:before, .navbar:after, .navbar-header:before, .navbar-header:after, .navbar-collapse:before, .navbar-collapse:after, .pager:before, .pager:after, .panel-body:before, .panel-body:after, .modal-header:before, .modal-header:after, .modal-footer:before, .modal-footer:after {   display: table;   content: " "; }   My question is why is this blankspace added after and before these classes and why is it's display set to table not something else like display: block or display: inline-block?


Sorry for making a duplicate thread. This was discussed around two years ago and I think we all agreed that the year was 2053. But recently I came across  which states the setting is in 24th century and that this was  which I personally do not remember but still, probably I missed something. So my question is, is the time in 'Fahrenheit 451' the year 2053 or it is 24th century or it is something else?


Syntax Error at GoTo on line "On Error GoTo [label]"

On compilation, I get a syntax error on the line On Error GoTo ErrorHandler "Near Column 15" which is the beginning of GoTo. I also tried adding a colon to the end of the line (On Error GoTo ErrorHandler:) as I've seen some people do, and I get the same error. What is the syntax error that I'm missing? Subroutine: Sub HandleAnError()     On Error GoTo ErrorHandler          Dim X     X = 1/0          Exit Sub      ErrorHandler:     MsgBox "Error " & Err.Number & ": " & Err.Description End Sub


Is there any reason why I get ^[[A when I press up arrow at the console login screen?

Whenever I'm at the console login, I press up arrow intentionally to see the previously typed commands. But I see this ^[[A.  But when I press Ctrl Alt Print Screen Scroll Lock Pause Break Page Up Page Down Win keys doesn't echo any characters.  What might be the reason behind?  Does ^[[A sort of characters imply anything?


Should forms be validated by javascript before submiting?

I am wondering if it is necessary to validate data with javascript before submiting a form. If someone wants to be clever, he can disable javascript in a browser so it becomes useless. How do you think? Is server-side validation sufficient?


How can I add vertices to intersection of two edges?

I need to put a point at the intersection of two edges. Below is a picture with red circles around where I need points to be placed.


Can anybody tell me what is happening in this assignment statement? It was found in some code in a textbook.  Somehow this is where val is initialized and without it it does not compile.  INT_MAX is coming from  The body of the code shouldn't matter too much but I've never seens two values to the right of an assignment operator int lru = INT_MAX, val;   Edit: People need to relax. This is getting downvotes WAY after it was answered. (I lost my ability to upvote which was not cool) I had an honest question that my TA nor my professor could answer. Thats because normally people write int val int lru = INT_MAX  on separate lines. Or they define them both as ints int val, lru and then assign lru = INT_MAX And at the very least put all the assignments/constructions after the definitions int val, lru = INT_MAX It was an honest question. I did research, I looked through previous questions and answers and couldn't find what I was looking for.


I am trying to create a model, but there is something that says there is "no such file or directory". What do I do?


Search folder, find and copy files to new folder corresponding file ending

I have manage to grab some data of a couple of hdd with photorec, but I can't figure out how the files are saved, and it not very convenient searching in those recup_dir.*. So my thought is to categorize by file endings. So all *.gif end up in /home/mike/photorec/12gb/sorted/gif or something like that. But I don't know how to search the root catalog, grab the file extension and move/cp to that folder (and if not present, create the folder).  This way I can just delete unnecessary folders/files like dll.  Lets say I have three folders:   ~/photorec/80gb ~/photorec/120gb ~/photorec/100gb   Photorec creates a large amount of folder naming recup_dir.1, recup_dir.2 etc. like:  . ├── recup_dir.1 ├── recup_dir.10 ├── recup_dir.11 ├── recup_dir.12 └── recup_dir.9     ├── f21750248.jpg     ├── f21750275.gif     ├── f21750277.gif     ├── f21750281.gif     ├── f21750296.jpg   I want to cd 80gb, run a command or execute a bash script inside ~/photorec/80gb/ so that a new folder is created, sorted, and inside sorted I get all files from recup_dirs, sorted by the found files extensions.  . ├── recup_dir.1 ├── recup_dir.10 ├── recup_dir.11 ├── recup_dir.12 ├── sorted     ├── gif         ├── f21750275.gif         ├── f21750277.gif         ├── f21750281.gif     ├── jpg         ├── f21750248.jpg         ├── f21750296.jpg   How can I achieve this?  Edit: This is not just photorec. It could be any folder ofc.


Convert a fraction to infinite repeating decimal?

We all know how to convert an infinite repeating decimal to fraction. It is simple. But now I have these fractions 10/23, 3/29, etc. I know these fractions can be written in infinite repeating decimal, but the repeating digits are too long ( over 10 digits), so it cannot show fully on the calculator screen. So is there any algorithm to find the repeating decimal digits by calculator ? thanks very much.


How do I convert a float number to a whole number in JavaScript?

I'd like to convert a float to a whole number in JavaScript. Actually, I'd like to know how to do BOTH of the standard conversions: by truncating and by rounding. And efficiently, not via converting to a string and parsing.


Re-enable extensions not coming from Chrome Web Store on Chrome v35+ (with enhanced security)

Does anybody know how to re-enable your own extensions after they were disabled by the Chrome v35 update?  (Mostly greasemonkey scripts in my case, thus simple .js files previously drag-n-dropped in to the extension windows. )  When I started up Chrome today I got the warning that some non-ChromeWebStore extensions were disabled.  More info was giving on this :      Extensions disabled by Chrome      You're seeing this notification because one or more of your Chrome   extensions has been turned off to make Chrome safer. The extensions   didn't come from the Chrome Web Store or were installed without your   permission.      For your protection, you can only use Chrome extensions that you get   from the Chrome Web Store.      To see a list of your extensions:         Click the Chrome menu Chrome menu on the browser toolbar.   Select Tools.   Select Extensions.         Extensions that have been disabled are grayed out and you won't be   able to re-enable them.   I was hoping I could still enable them by activating developer mode for my extensions but still no luck..  Any tips anyone?  P.s. this is not a duplicate from  as this is related to the chrome v35 update


C++ OpenGL - 2D Lighting Around Object in a Pitch-Black Environment

I am making a 2D game in C++ with OpenGL where a maze is generated and you have to move the character through the maze and get it to the end. I have achieved all this, but now I want to make it more challenging by having everything pitch-black but a small light around the character. How can I achieve this? I don't want the light to be complicated and I don't want it to only go through the tunnels. I just want a simple light around the character to illuminate that area of the maze.


If  $\lim_{n \rightarrow \infty}f{\left(n\right)}=k$  and $f{\left(x\right)}$ is periodic and continuous, is that enough to imply that $f{\left(x\right)}$ is a constant function?


I dropped my iPhone Xs into a hot dishwasher, will that damage the data on the iPhone?

I dropped my iPhone Xs into a hot, steaming dishwasher, and it seems to be working fine. However, the photos on it are very grainy and pixelated. Could hot steam damage the data on an iPhone X?


glm.fit: fitted probabilities numerically 0 or 1 occurred

Probit <- glm(lfprt ~ expr + educ + age, data = data, family = binomial(link = "probit"), control = list(maxit = 50))  Keep getting an error, don't understand why the error is there. The dependent variable lfprt goes from 0:1


I got an idea for Quadratic Sieve improvement, but I don't know if someone already tried it or how efficient it is. Please tell me if it can work. Let $N$ be the number we wish to factor. We can look at the congruence of squares $x^2 \equiv y^2\pmod{N^2}$, if we can find such $x,y$ we can compute the gcd of $x+y$ and $N$ to find a nontrivial factor of $N$(if it's trivial we just need to find more $x,y$ pairs) $y$ can be stated as $x^2-N^2 = y^2$ -> $(x-N)(x+N) = y^2$ We can then find a pair of $a,c$ such that $x+N=ac$ and $a,c \approx \sqrt{N}$, let's call the $x$ that satisfy this $x`$, then for each $x$ in $f(i)=ia+x`$ we can write $y$ as $(ia + x`-N)(x`+ia +N) = y^2$ -> $a(ia + x`-N)(c+i) = y^2$ Finally, we can start searching for $x,y$ pairs that satisfy $x^2 \equiv y^2\pmod{N^2}$ in $$f(i)=a(ia + x`-N)(c+i)$$ When $f(i)$ is a square then $gcd(\sqrt{f(i)} + ia+x`,N)$ has a high chance if being a non trivial divisor of $N$ If we start running on $f(i)$ from $i\approx \frac{N-x}{a}$ then $ia+x`-N\approx{\sqrt{N}}$ and also $c+i\approx{\sqrt{N}}$. We can use the same technics as we use in QS . Leveregix Dixon's factorization method together with sieving and loggaritmic approximation for faster sieve. The only difference is that we are building two squares instead of one, we are looking for $(ia + x`-N)$ to be a square and also $(c+i)$ to be a square, as they cannot have any commonly dividing values, except $2$ and the factors of $N$. Proof: If a prime $p$ divides $(x-N)$, $(x+N)$ then it must divides $(x-N + 2N)$ since it equals to $(x+N)$. And so it must divide $2N$, that can only happen if $p=2$ or $p$ is a factor of $N$ My theory is that the sieving should be much easier since we are not dealing with squares like in the classing QS where we are searching for $f(x)=x^2-N$ to be a square or SIQS where we are searching for $f(x)=a(ax^2-bx+c)$ to be a square. However from the other side, we need to make two numbers to be a square, so I am not so sure it's indeed easier and hence asking the question here.


ArcGIS Python Add in: Pass Entry from Combo Box (in Toolbar) to mdb

How do you update the python addin wizard code to write directly into access or pgdb? I have a combo box and need to have my users enter data into the combobox to write into the database. Can someone provide an example of how to accomplish this task?


Can I target objects when the spell is an attack, such as Lightning Bolt?

I am playing a wizard in a campaign with a lot of high seas scenes. I wanted to use Lightning Bolt on our enemies' sails and masts, but should it be done with some kind of roll? The PHB says:     A stroke of lightning forming a line 100 feet long and 5 feet wide blasts out from you in a direction you choose. Each creature in the line must make a Dexterity saving throw...   Sails are not creatures, so should I consider it an automatic success? Or can I not even aim the Bolt to attack their sails?  Though I am aware of the range of the Lightning Bolt, I think it would be a good as a pre-approach attack.


How to validate an email id using javascript?

I need to validate an email ID for a user from DB using javascript/jQuery. How can I do that ?


How can I insert a full page image?  No blank space left in the page.  Bonus:  How can I add some text over the image?


MYSQL error: IP address could not be resolved

My website is hosted with Linode, I installed webmin on Ubuntu 14.04 to manage it. Recently my database server keeps shutting down, when I look at /var/log/mysql, there are several log files in there  -rw-r-----  1 mysql adm    14642 Jun 28 07:25 error.log -rw-r-----  1 mysql adm      264 Jun 27 05:48 error.log.1.gz -rw-r-----  1 mysql adm      256 Jun 26 02:23 error.log.2.gz -rw-r-----  1 mysql adm      426 Jun 24 20:19 error.log.3.gz -rw-r-----  1 mysql adm      295 Jun 24 03:18 error.log.4.gz -rw-r-----  1 mysql adm      141 Jun 22 15:07 error.log.5.gz -rw-r-----  1 mysql adm      215 Jun 22 03:38 error.log.6.gz -rw-r-----  1 mysql adm      345 Jun 21 01:28 error.log.7.gz   Most of the error_log contents are like   160621  8:34:52 [Warning] IP address '122.114.126.30' could not be resolved: Temporary failure in name resolution 160621 18:41:36 [Warning] IP address '58.221.71.35' could not be resolved: Name or service not known 160621 21:29:02 [Warning] IP address '58.221.42.196' could not be resolved: Name or service not known 160622  1:36:17 [Warning] IP address '121.41.74.27' could not be resolved: Name or service not known 160622  7:38:24 [Warning] IP address '118.192.162.95' could not be resolved: Name or service not known   I read this  but I am not sure whether I understand the answers correctly. Does this mean people from above IP address were trying to login to my database? If they are attacks, what can I do to deal with them or I can just rely on linode to fend off these attacks? And I notice the earliest of these errors were from 6/21, I wonder there are not any error_logs before that date? Or there are, but they are in somewhere else?  Thank you!


Why do some people only post answers, and not questions?

Why do some people not ask questions on SO? If it is only for reputation (which basically boosts their CV), they could instead do some investigations in spheres that interest them. So what's the point in only answering questions? Training to become a consultant?


I getting a wifi signal at a specific distance from router in windows (computer connects and works) But I am unable to connect to the same wifi at that range in Ubuntu 16.04.   $ sudo lshw -class network   description: Wireless interface        product: RTL8723BE PCIe Wireless Network Adapter        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:08:00.0        logical name: wlo1        version: 00         width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless        configuration: broadcast=yes driver=rtl8723be driverversion=4.4.0-66-generic firmware=N/A ip=192.168.0.11 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn        resources: irq:18 ioport:5000(size=256) memory:c6100000-c6103fff   *-network        description: Ethernet interface        product: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller        vendor: Realtek Semiconductor Co., Ltd.        physical id: 0        bus info: pci@0000:09:00.0        logical name: eno1        version: 0a        size: 10Mbit/s        capacity: 100Mbit/s        width: 64 bits        clock: 33MHz        capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation        configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl8107e-2_0.0.2 02/26/15 latency=0 link=no multicast=yes port=MII speed=10Mbit/s        resources: irq:49 ioport:4000(size=256) memory:c6004000-c6004fff memory:c6000000-c6003fff


In how many ways can $7$ girls and $3$ boys sit on a bench in such a way that every boy sits next to at least one girl  The answer is supposedly $1,693,440 + 423,360 = 2,116,800$


Python - Converting raw hex to type 'int'

I have raw hex from a com port that I want to represent as a hex value that I can use later for bitwise operations.  For example, I have 1035 and I want it as 0x1035.  I am relatively certain the hex() function is not what I want. This converts int(1035) into hex 40B.   I have tried concatenating a '0x' to my value, the problem I found with this is it is then type str, which I can't do bitwise &,|, etc. Converting it to int results in: invalid literal for int() with base 10: '0x1035'  I have tried converting the hex to binary, with the same problem as before with type str and not type int.   Life becomes way easier when I define, hex = 0x1035, for example. But I want this to be reusable for many messages from the com port.  How do I convert a string '0x1035' to a hex int? Or, how do I tell the interpreter that the int I have, 1035, I want interpreted as hex, 0x1035?


Create object with Switch Statement: Cannot make a static reference to the non-static method?

I have trying to create an object based on the type using switch statement. However I am getting this error on the method in main method:      Cannot make a static reference to the non-static method   CreateCoffee(CoffeeFactory.Type) from the type CoffeeFactory   public Coffee CreateCoffee(Type t ) {     ingred = null;      switch (t) {      case LONG_BLACK:            ingred.add(Ingredient.ESPRESSO);          return new Coffee(ingred, t);      case FLAT_WHITE:           ingred.add(Ingredient.MILK);          return new Coffee(ingred, t);      case MOCHA:           ingred.add(Ingredient.CHOCOLATE);          return new Coffee(ingred, t);      default: return null;     }   }  public static void main(String[] args) {     CreateCoffee(Type.MOCHA); }   what am i doing wrong, is it the return new Coffee() statement in each switch case?


When a chat post is edited by another user, it incorrectly shows the editor as the author

Here's this message from Sathya:    It usually shows like this in the rooms when you're in another chat room:    I edited the post to change a word repetition that sounded weird (Can you tell I'm bored and we don't have any flags in our queue?), and suddenly it changed the author to me:    What happened here?


Terminal new window always shows -bash: Searching: command not found

When open terminal, it always shows -bash: Searching: command not found. It does not affect other functions, just each time, even though  open a new terminal window, it still pops up at the top of the window: -bash: Searching: command not found.   How to not display the -bash: Searching: command not found or stop it keep searching?   Screen as below:   Last login: Mon Feb 23 14:11:40 on ttys001  -bash: Searching: command not found -bash: Searching: command not found  Caroline-MacBook-Air:~ Caroline$ echo $PATH /usr/local/heroku/bin:/Users/Caroline/.rbenv/shims:/Users/Caroline/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin


How to merge two dictionaries with same key names

I am new to Python and am trying to write a function that will merge two dictionary objects in python. For instance   dict1 = {'a':[1], 'b':[2]} dict2 = {'b':[3], 'c':[4]}   I need to produce a new merged dictionary   dict3 = {'a':[1], 'b':[2,3], 'c':[4]}   Function should also take a parameter “conflict” (set to True or False). When conflict is set to False, above is fine. When conflict is set to True, code will merge the dictionary like this instead:   dict3 = {'a':[1], 'b_1':[2], 'b_2':[3], 'c':[4]}   I am trying to append the 2 dictionaries, but not sure how to do it the right way.  for key in dict1.keys():     if dict2.has_key(key):         dict2[key].append(dict1[key])


refer a captured group without case sensitivity

I define "Repeating words" as this regex (use PyPI package, not builtin re):  import regex repeating = regex.compile(r"(\w+)(?:\W+\1){4,}")   It will catch words that are repeated 5 times or more, for example     Answer Answer Answer Answer Answer Answer Answer Answer Answer Answer   However, if the word varies by capitalization, the regex fails:     Answer answer Answer answer Answer answer Answer answer Answer answer   How can I modify the regex so it catches "repeating words" that varies in capitalization? I want it to match     answer ANSWER ansWER Answer anSwer AnSwEr   Note: str.lower() is not an option because I need the exact capitalization of the captured group.


Is it possible to use the free Wi-Fi at the Zurich Airport when one cannot receive a text message?


Predicate logic proof, can't get to the right solution

So I have tried to make a solution for a predicate logic proof, and would like if someone could give a hint to come to the correct proof.   I already know that Line 11 is incorrect since it only holds in the assumption.  And the same for line 9, since its in two different assumptions.   Any help to how I should proceed, would help me a lot


VisualStudio: How to save the obj folder somewhere else

Does anyone know how to tell VS(2008) where to save the obj folder when building the solution? We have it save the bin folder to another path in order to keep the source file folders small (ie. emailable), but can't find any way to tell it to do the same with obj...


unkown option natbibapa for package apacite

I have a problem with natbibapa for package apacite. I Have the following text   \documentclass[a4paper,12pt]{article} \usepackage{amssymb,amsmath} \usepackage{amsxtra} \usepackage{amstext} \usepackage{latexsym} \usepackage{multiCol} \usepackage{graphicx} \usepackage[dvips]{color} \usepackage{epstopdf} \usepackage{mathrsfs} \usepackage{pictexwd,dcpic} \usepackage[english]{babel} \usepackage{subfigure} \usepackage{enumerate}  \usepackage[natbibapa]{apacite} \usepackage{setspace} \usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry} \usepackage{xtocinc}  \begin{document}  \bibliographystyle{apacite}  \bibliography{ref} \end{document}    When I run this code there is a message that,     Unkown option natbibapa for package apacite   This is the first time where I use natbib package. I did not download any package from the Internet regarding to natbib. I only add the following sentence to LaTeX:  \usepackage[natbibapa]{apacite}   I feel that in order natbib package working requires a document downloading from Internet.    Could you please help me in this problem?


Suggested question scores do not line up with their titles

The alignment of items in the block Questions that may already have your answer is weird. The first question score is shown before the question and subsequent question and scores doesn't match. Here is a screenshot:     Right now, I'm using Chrome Version 28.0.1500.95 m, but it looks the same on Internet Explorer. Reproduced on Firefox 22.0  Edit: Stack Overflow looks normal.


Download Windows Vista Home Premium to use with my own key?

Is there a place where I could download the Windows Vista Home Premium OEM and simply use the Windows Vista key on my PC?  The reason being is that when I use the HP recovery disc, what happens is that HP installs a lot of HP applications which does not help and simply makes the installation a disaster.  I would rather want to perform a clean install of Vista itself without the unnecessary HP gunk.  Appreciate your response. Thank you.  P.S. I saw on most forums that you could use an installation of the version of Vista installed on your PC and when the activation comes, simply enter the key posted on the PC.


Question about drives (Partition does not start on physical sector boundary)

I have been reading this site quite a bit getting my first ever Ubuntu box running and had a question,  Currently my drive has partitions showing like this     /dev/sda1   *        2048    31459327    15728640   27  Hidden NTFS WinRE    /dev/sda2        31459328    31664127      102400    7  HPFS/NTFS/exFAT    /dev/sda3        31664128   656826936   312581404+   7  HPFS/NTFS/exFAT    /dev/sda4       656828414   976771071   159971329    5  Extended    Partition 4 does not start on physical sector boundary.    /dev/sda5       656828416   971048959   157110272   83  Linux    /dev/sda6       971051008   976771071     2860032   82  Linux swap / Solaris   I believe sda1 is Acer recovery disk or something, sda2 is the one I have been using to boot Windows and sda3 seems to be my main Windows storage drive.  I am wondering what is going on with sda4. It appeared like that after I had to re-install Ubuntu (I messed my first install up trying to get Acer wireless to work).  Should I worry about this? Everything runs fine so far in both Ubuntu and Windows. If I just ignore it, could anything happen?  I am dual booting Windows 7 and Ubuntu 12.04.  I should also note, just before I installed Ubuntu I had to do a recovery/repair of Windows 7. It wouldn't even load past the boot screen so I did a repair from the Windows cd. Not sure that affects anything.  Thanks


If a set of parentheses lies between a subject and its verb, and the parentheses contain an substitutive subject whose singularity/plurality disagrees with the original subject, whose singularity/plurality should be chosen for the verb?  In other words, in the following example, should "questions" (and its verb "are") be singular, or should they remain plural as shown?     Many (if not every) questions on this StackExchange are answered.   My intuition tells me that the two words in question should remain in plural forms, since the text in parentheses only interrupts the sentence (and the sentence would be grammatically incorrect if everything in parentheses were removed and the words were in singular form).  On the other hand, when read aloud (assuming one reads the text in parentheses), this has an uncomfortable sound to it, and I've seen others write in what would be the above example's singular-form case, so I'm curious to find out which is correct.  And, thinking about it, I suppose the same question would apply when commas are used in place of parentheses.


I'm trying to use a bibliography created using BibDesk in my LaTex document. To this extend I have the following (simplified) document:  \documentclass[12pt]{article} \usepackage{fontspec} \usepackage[style=mla,backend=biber]{biblatex} \addbibresource{Bibliography.bib} \setmainfont{Times New Roman}  \begin{document}  Pulitzer Prize-winning \autocite{Pulitzer:2017} novel \emph{The Underground Railroad} \autocite{Whitehead:2016}.   \printbibliography \end{document}   Then I first run XeLaTeX, then Biber, then XeLaTeX twice again. The problem now is that my bibliography for some reason only displays book references, no article or misc references. Also, there is more whitespace between the references than one expects.  Switching to normal LaTex instead of XeLaTeX didn't fix the problem.  How can I solve this issue?  My bibliography is:  @misc{Pulitzer:2017,     Date-Added = {2017-05-14 12:18:29 +0000},     Date-Modified = {2017-05-14 12:27:09 +0000},     Howpublished = {\url{http://www.pulitzer.org/prize-winners-by-year/2017}},     Title = {2017 Pulitzer Prizes}}   @book{Whitehead:2016,     Author = {Whitehead, Colson},     Date-Added = {2017-05-14 11:51:16 +0000},     Date-Modified = {2017-05-14 13:45:53 +0000},     Id = {UBL{\_}ALMA21286889210002711},     Isbn = {9780385542364},     Keywords = {PS3573.H4768; PS3573.H4768 U53 2016; Underground Railroad -- Fiction; Fugitive slaves -- United States -- Fiction; United States -- History -- 19th century -- Fiction; 1800-1899; 1800-1899},     N2 = {"Cora is a slave on a cotton plantation in Georgia. When Caesar, a recent arrival from Virginia, tells her about the Underground Railroad, they decide to take a terrifying risk and escape. Though they manage to find a station and head north, they are being hunted. Their first stop is South Carolina, in a city that initially seems like a haven. But the city's placid surface masks an insidious scheme designed for its black denizens. And even worse: Ridgeway, the relentless slave catcher, is close on their heels. Forced to flee again, Cora embarks on a harrowing flight, state by state, seeking true freedom." --},     Publisher = {New York : Doubleday},     Title = {The underground railroad : a novel},     Ty = {BOOK},     Year = {2016}}


class X {     public static void main(String...a)     {         String a = "meow";         String ab = a + "deal";         String abc = "meowdeal";         System.out.println(ab == abc);     } }   Am getting an output as false... why.  Am preparing for ocjp. I thin we have to get true. Beacuse ab contains "meowdeal". When am trying to assign "meowdeal" to abc this literal is already tehre in string pool. So ab and abc both are pointing to the same object. Then we have to get true.


Guidelines for customizing biblatex styles

Suppose I've just made the switch to . I have chosen one of the built-in styles (numeric, alphabetic, authoryear, authortitle, verbose) or of the custom styles available at CTAN, and I've figured out how to sort/compress citations. The bibliography and the in-text-citations look approximately like I want, but need to be tweaked. I've taken a look at the biblatex documentation for advice, but it is somewhat daunting. How do I get started? To add some focus, customization in the following areas would come in handy:   Suppressing of specific BibTeX fields (e.g., publisher); Formatting of fields for specific entry types (e.g., titles of articles not inside quotation marks); Formatting of citation postnotes (i.e., getting rid of "p."/"pp."); Spacing and punctuation in the bibliography (e.g., commas instead of periods as unit separators); Order of first names and last names of authors/editors in the bibliography; Order of certain fields in the bibliography (e.g., swapping location and publisher); Language-specific terms (e.g., replacing "References" with "Works Cited").   Finally, assuming that I'll want to use my style adjustments in a multitude of documents: Where do I put the relevant macro stuff?


Find the sum of the roots of the floor equation


ClamAV: PUA.Win.Exploit.CVE_2012_0110 FOUND (/usr/share/mime/mime.cache)

I recently scanned my system with (I am running the latest version of ClamAV and my definitions are up-to-date):  sudo clamscan -r --detect-pua --infected --bell /   And this one was of the results:  /usr/share/mime/mime.cache: PUA.Win.Exploit.CVE_2012_0110 FOUND   I have not seen anything like this before, so what is this, is this anything to worry about, and should I do anything about it? Also, what is the purpose of the location that it was found in?  Additional Information:  You can download the mime.cache file here:   And I appear to have found what this CVE_2012_0110 is, as it is one of the vulnerabilities listed on .  I have scanned the file on VirusTotal, and although the only thing which detected something bad was in the Additional information section at the bottom, I don't necessarily trust that all is well because if something was say injected into that file or something, then perhaps it would be more heuristics that would detect it rather than matching MD5 sums. Here is the report:     OS Information:  Description:    Ubuntu 14.10 Release:    14.10


Finding pseudo nodes in free GIS software?

Software gvSIG OA Digital Edition 2010 have tools topology for finding pseudo nodes in linear geometry. I set cluster tolerance 0.00002 and maximum number of errors -10000 for 20000 link count linear geometry. But unsuccessful result.   Are there any solutions that find pseudo nodes in free GIS software?   I need to layer pseudo nodes (one solution to this problem - to use tools topology of ArcInfo, but priority for me is to use free software). Linear geometry created several users in QGIS 1.8.0 in PostGIS (v. 2.0.1) database.  Add new image: 12 linear features with three pseudo nodes in A (line 4/5), B (line 6/7), C (line 9/10). Pseudo nodes should be points instead - two linear features with intersection in one point (node) should be one linear feature (line 4/5 - line 4, ...).  Is it possible to make a request in PostGIS, which will result in a layer of pseudo nodes?  Add new image of examples pseudo nodes: if I receive for linear layer point layer pseudo nodes (blue rects) I corrected following errors in linear layer: A - add missing geometry, B - snapped line in intersection, C - remove pseudo node.


Red dead redemption GOTY vs. undead nightmare DLC

I have already purchased Red Dead Redemption on Xbox 360, and played through it without any DLC content.  I was wondering the GOTY edition has extra add-on content compared to just buying the Undead Nightmare DLC.


ubuntu 12.04 boot once every two/three times

I installed ubuntu 12.04 in an Asus 8gbram i7 sharing drive with windows 7.   tried many options as setnomode, ro, ro quiet, deleting msdos6 and replacing it with6 at set root=(hd0,6) was appearing as set root=(hd0,msdos6) at booting time and get crazy try many combinations  I realized that the problem is that even the same options get sometimes to boot,  sometimes to a purple screen  and sometimes to a smtp message and gets freezed there.  in my bios i have uefi disabled as it was by default in this machine.  dmesg for error just this line when im able to boot:  EXT4-fs (sda6): re-mounted. Opts: errors=remount-ro   Also Im quite suprised as i was expecting the installation to go smooth and suddenly menu.lst is deprecated and my knowledge is old.  Anyone facing/faced similar behaviour?   found this answer  and solved the problem, just turn of vt-d from the BIOS


There are two one-letter words in English (“I” and “a”), and according to  there are 122 two-letter words. Let $A_n$ be the number of strings of n letters that may be formed from some sequence of one- and two-letter words, by concatenating them all together.  Find $a_3$  Give an expression for an in terms of $a_{n-1}$ and $a_{n-2}$, that works for all n ≥ 3.  So far a1 makes sense to just be "I" and "a" so a total of 2. a2 would be the 122 two letter strings plus a combination of adding the one letter words (i and a) giving ai, ia, ii and aa.  This would give a total of 126 for $a_2$.  doing the combinations for $a_3$ gives 495 but that doesn't seem right as there is no evident patter to use the formula $a_n=a_1r^{n-1}$.


Java file not writing to output formatter file

Please help, I cannot for the life of me figure out why my output file is created, but there is nothing written to it. I read on a similar question that I had to close the output file as the information is buffered and only outputs when the file is closed. I had already done that before reading that post, other than that I cannot find any other post that helps me with this  import java.util.Scanner; import java.io.File; import java.io.FileNotFoundException; import java.util.Formatter; import java.util.Arrays; public class MyFile {  public static void main(String[] args) {     try {         // creating a File instance to reference text file in Java         File inputFile = new File("C:\\input.txt");          //creating a Scanner instance to read File in Java         Scanner scanfile = new Scanner(inputFile);          //creating a file to output results of program to         Formatter outputfile = new Formatter("C:\\output.txt");          //read each line of file using the Scanner instance "scanfile"         while (scanfile.hasNextLine()) {             String line = scanfile.nextLine();              //splitting String "line" into 2 parts at the ":"             String[] parts = line.split(":");             String part1 = parts[0];             String part2 = parts[1];              //splitting part2 into an array of integers at ","             String[] lineNumString = part2.split(",");             int[] lineNums = new int[lineNumString.length];             for (int i = 0; i < lineNumString.length; i++ ) {                 lineNums[i] = Integer.parseInt(lineNumString[i]);             }              /*now that we have the line split into an operator (min, max or avg) and an array of numbers             we can identify the operator with an if and else if statements, then manipulate the integer array according              to the operator*/              //Outputting max value if operator is max             if (part1 == "max") {                 String outputText = "The Max of " + Arrays.toString(lineNums) + " is " + maxOfArray(lineNums) + ". \r\n";                 outputfile.format("%s", outputText);              }              //Outputting min value if operator is min                else if (part1 == "min") {                 String outputText = "The Min of " + Arrays.toString(lineNums) + " is " + minOfArray(lineNums) + ". \r\n";                 outputfile.format("%s", outputText);             }              //Outputting avg value if operator is avg             else if (part1 == "avg") {                 String outputText = "The Min of " + Arrays.toString(lineNums) + " is " + avgOfArray(lineNums) + ". \r\n";                 outputfile.format("%s", outputText);              }          }         scanfile.close();         outputfile.close();     }      // print out error messages for input file not found or for being unable to create or write to an output file.     catch (FileNotFoundException e) {         System.out.println("Error.");     }    } // method for determining the max value in an array of integers public static int maxOfArray(int[] inputArray) {     int maxValue = inputArray[0];     for (int i = 1; i < inputArray.length; i++) {         if (inputArray[i] > maxValue) {             maxValue = inputArray[i];         }      }     return maxValue; }  // method for determining the min value in an array of integers public static int minOfArray(int[] inputArray) {     int minValue = inputArray[0];     for (int i = 1; i < inputArray.length; i++) {         if (inputArray[i] < minValue) {             minValue = inputArray[i];         }      }     return minValue; }  //method for determining avg value of an array of integers public static int avgOfArray(int[] inputArray) {     int sum = 0;      for (int i : inputArray) {         sum += i;     }     int average = sum / inputArray.length;     return average; }   }


"And, Dick, all kinds of queer folk live in the trunk of the Faraway Tree," said Jo."   The is not capital here, which means it is not the part of the name? Why is the used here?


To simplify the situation I'm having: I'm trying to terminate a thread while it is still running in Python 2.7, and I'm not sure how to do it.   Take this simple code:  import time import threading  def thread1():         print "Starting thread 1"         while True:                 time.sleep(0.5)                 print "Working"  thread1 = threading.Thread(target=thread1, args=()) thread1.start()  time.sleep(2) print "Killing thread 1" thread2.stop() print "Checking if it worked:" print "Thread is: " + str(thread1.isAlive())   Thread 1 keeps on 'working' and I'm trying to kill it in the main thread. Any idea on how to do it? I've tried:  threat1.terminate threat1.stop threat1.quit threat1.end   This all seems to point that there is no way to really stop it with a simple line of code. What could you suggest?


Express $-1+i$ in exponential form.  My attempt so far  Let $z=-1+i$  $$r=|z|=\sqrt2$$  $$\theta=\tan^{-1}(-1)=-\frac{\pi}{4}$$  Now, this is where I go wrong (I don't know why it's wrong!):  So in exponential form: $-1+i=\sqrt2 e^{-i\pi/4}$  According to the solutions, $\theta=3\pi/4$.  Thanks in advance


I've wondered why each multiplicative group I tested has modulo n either 1 or -1.  Is there a rule?  For example: $$\mathbb Z_{10}^*=\{1,3,7,9\}\\ 1\cdot3\cdot7\cdot9=-1 \:(mod\:n)$$ or $$\mathbb Z_{15}^*=\{ 1, 2, 4, 7, 8, 11, 13, 14 \}\\ 1\cdot2\cdot4\cdot7\cdot8\cdot11\cdot13\cdot14=1 \:(mod\:n)$$ or $$\mathbb Z_{5}^*=\{1,2,3,4\}\\ 1\cdot2\cdot3\cdot4=-1 \:(mod\:n)$$


Probits used in LD_50 is the same as the Wikipedia's probit definition?

During my searches I've come to a strange position; The Probit definition in Wikipedia is simple; $$\operatorname{probit}(p) = \sqrt{2}\,\operatorname{erf}^{-1}(2p-1)$$ Then, I've come to a  that explains using  The probit $Y$ of the proportion $P$ is defined by; $$P(Y) = \frac{1}{\sqrt{2 \pi}} \int_{-\infty}^{Y-5} e^{-\frac{1}{2}u^2}du. $$ I've verified both using the Sagemath, but there is no relation that I can see between these two functions. Am I missing something? Are those the same (actually the inverse of each other)? Note: I'm trying to understand the probits on the concept of the $\text{LD}_{50}$.


Why does the velocity of air flowing over the top surface of aerofoil increase, when there is no contraction in area over the top?


What is the number of distinct subgroups of the automorphism group of $\mathbf{F}_{3^{100}}$?

Let $G$ denote the group of all the automorphisms of the field $\mathbf{F}_{3^{100}}$ that consists of $3^{100}$ elements. What is the number of distinct subgroups of $G$?


Criterion for a group $G$ to be abelian using $Inn(G)$

Let $(G, *)$ be a group. Let $\mathcal S(G)=\{f:G\to G\space|f\space is\space bijective\}$ be the symmetric group and $Inn(G)=\{\kappa_{a}\space|\space a\in G\}$ the inner automorphisms. Now I want to show:     $G$ is abelian $\Leftrightarrow$ $Inn(G)$ is a normal subgroup of $\mathcal S(G)$    Thank you in advance!


I couldn't help but add an additional frame of reference.  Though I personally find the utterance of "orientated" to be a failed attempt at the proper word "oriented", the collective commentary is indeed food for though.  Commonality of the use of this incorrect word seems to be the explanation (justification?) for calling it an acceptable word. While this may drive crazy those that pride themselves on being moderately adept at identifying improper english, the reality is language evolves in this very way. Put another way, if an "incorrect" word is used commonly enough, by a large enough percentage of the population, and over a substantial enough period of time, it often becomes acceptable.  Common error is one of the reasons why multiple spellings for certain words, slang, and other verbal "anomalies" are added annually to the English dictionaries of the word.


Row count result from SELECT COUNT() not matching rows returned by SELECT id

Fairly new to SFDC and primarily using it as a source for our data warehouse.  We're ingesting data using the Bulk API and are manually checking rowcounts through workbench.  Running into an odd issue on Workbench where SELECT COUNT() FROM recordtype returns a count of 31 but SELECT id FROM recordtype returns 20 rows. Surprisingly SELECT id FROM recordtype GROUP BY id returned 31 rows.  Our admin is saying that 11 rows are marked as Reserved/Not usable.  If that's the case, shouldn't COUNT() also exclude them and return 20 as the count? Flummoxed by why the group by id returned 31 rows. Feels like this is a bug. How does Workbench query SFDC? Does it use the standard SOAP APIs or some other mechanism? Is the issue with the API?


java lang null pointer exception on insert database in javaFX

@FXML private void ekle() throws Exception{        try{         Connection conn2 = dc.getConnection();     pst=conn2.prepareStatement(query_ekle);     pst.setString(1, text_no.getText());     pst.setString(2, text_stok.getText());     pst.setString(3, text_tarih.getText());     pst.setString(4, text_garanti.getText());     pst.setString(5, text_marka.getText());     pst.setString(6, text_model.getText());     pst.setString(7, text_aile.getText());     pst.setString(8, text_hiz.getText());     pst.setString(9, text_bellek.getText());     pst.setString(10, text_cekirdek.getText());     pst.setString(11, text_soket.getText());     pst.setString(12, text_watt.getText());     pst.setString(13, text_ie.getText());     pst.setString(14, text_ug.getText());     pst.execute();     pst.close();     } catch(Exception e){         System.out.println(e);     }  }  ////////////////////////////////////////////////////////////////////  private connect dc = new connect();       Connection conn3; PreparedStatement pst=null;  ////////////////////////////////////////////////////////////////  String query_ekle="INSERT INTO urunler(u_no,u_stok_miktari,u_alindigi_tarih,u_garanti_suresi,u_marka,u_modeli,u_ailesi,"             + "u_hizi,u_bellek,u_cekirdek,u_soket,u_watt,ie_no,ug_no) Values('?','?','?','?','?','?','?','?','?','?','?','?','?','?')";  /////////////////////////////////////////////////////////////////// public class connect {      private String url="jdbc:mysql://localhost:3306/";     private String dbAdi="my_database1";     private String userAdi="root";     private String userPass="14907";      public Connection getConnection() throws Exception{          try{               Class.forName("com.mysql.jdbc.Driver");             Connection connection=(Connection) DriverManager.getConnection(url+dbAdi,userAdi,userPass);             return connection;          }catch(Exception e){              System.out.println(e);          }             return null;         } }  ////////////////////////////////////////////////////////


Is there any way to make single cream to double cream?

Whipping cream is hard to find where I live in India. We have a dairy brand named "Amul" which sells cream of butterfat content of 25% and cannot be whipped! Whipping cream has about 35% fat content but its not available here. Can I add butter in it to increase the fat content needed for whipping, while stirring constantly for even distribution of fat?


I have an upcoming trip where I will be flying to and from Copenhagen, through Toronto.  I notice that my departure and return gate in the Philadelphia airport is not in the international terminal.  Where will I clear customs?


Execute a Windows process with lower privileges

I see many threads here about how can a software be programmed to ask for administrator privileges on Windows, but in my case I have a software installer that runs with administrator privileges and, in the end of installation, it must execute another process with limited privileges (as the logged user). Both installer and installed softwares was created by me using Delphi.  I am researching about this subject for all day long and it seems to be a very difficult task to achieve by programm language only. My question is if there is some Windows command that I can use to "call" the executable with lower privileges or maybe a manifest configuration that I can incorporate to the installed software to avoid it runs with admin privileges. Well, any ideas are welcome!  Thank you!


How does Python handle repeated subtraction of floating numbers?

I have a very simple code that takes a floating point number, and uses a while-loop to keep subtracting 1 until it reaches zero:  nr = 4.2 while nr > 0:     print(nr)     nr -= 1   I expected the output to look like this:  4.2 3.2 2.2 etc...   But instead, I get this:  4.2 3.2 2.2 1.2000000000000002 0.20000000000000018   Where do these weird floating numbers come from? Why does it only happen after the third time executing the loop? Also, very interestingly, this does not happen when the last decimal of nr is a 5.  What happened and how can I prevent this?


$$\dfrac{1}{2}\ln(x+7)-(2 \ln x+3 \ln y)$$  Our professor let's us solve this but i do not understand how $\ln$ works. He says it has same properties with $\log$ but i still don't get it. What's the difference of the two?


From Noether's Theorem, is it true that the law of conservation of energy can be proved?

So what I understand is that the law of conservation of energy, likes Newton's law of motion, can't be proved. However, by , if there is a time symmetry, the energy is conserved. It seems to me that we have actually "proven" the law of conservation of energy, is it true?


Why does 128GB iPhone have 113GB capacity?

On the side of the iPhone packaging, Apple defines 1GB as 1,000,000,000 bytes (rather than 1,073,741,824 bytes), so you end up missing 9,438,953,472 bytes (~9GB) calculating it this way for 128GB of space (128,000,000,000 bytes is ~119GB).  My iPhone says that it has 113GB of capacity, but it should be 119GB, so where did the other 6GB disappear to?


Creating and working with list of lists of lists: in Python

I'm new with Python and for some needs I am trying to figure out how to work with list of lists of lists.  Here's what am I doing:  segment_coef = [[list()]*4]*17  print segment_coef segment_coef[0][0].append(1) segment_coef[1][0].append(2) segment_coef[2][0].append(3) print segment_coef   After first print I have :  [ [ [],[],[],[] ] , ... 14 more time ... , [ [],[],[],[] ] ]   After these three append commands I'd like to have smth like:  [ [ [1],[],[],[] ] , [ [2],[],[],[] ], [ [3],[],[],[] ] ]   But I've got:  [ [ [1,2,3],[1,2,3],[1,2,3],[1,2,3] ] , [ [1,2,3],[1,2,3],[1,2,3],[1,2,3] ], ... up to the end ]   What am I doing wrong?


How to determine why Win7 machine is crashing?

When my Windows 7 machine crashes, I can't find any information in the event logs that can help me track down the problem. Is there a setting I can turn on to log more information so I can capture the last action taken before the OS crashes?   I'm more interested in how to troubleshot these problems in general, rather than a specific solution to my current problem. Thanks.


I tried dual booting Windows 10 and Ubuntu 18.04 and accidentally deleted Windows

I have two disks in my laptop, one is a 1TB HDD and one is a 512GB SSD. I had Windows 10 on the HDD and wanted to install Ubuntu on the SSD. As I did that my HDD drive got formatted and is now called DATA and looks like this.    I want to install Windows back on it but I'm worried that it will end up messing up my Ubuntu installation. How do I handle this properly?


Google Chrome Right-Click -> Save As dialogue takes forever to appear

I have a couple of ReadyNAS devices on my network that have some SMB shares where I save various odds and sods from browsing the web during my working day.  Recently I've started to switch off these devices to save on power to help reduce my electric bill. I don't need them for stuff I do in the evening.  However I've noticed that since I started doing this Chrome (Chrome 26 and Chrome Canary 28 on Windows 7) takes an inordinately long time to display the Save As file dialogue when I want to download or Right-Click -> Save As any files/images. We're talking 10-15 minutes before the dialogue will appear.  I suspect this is because Chrome has maybe cached the share locations I've used previously and is perhaps enumerating them (and timing out gracefully) before picking a local drive that is available on my PC.  I've tried updating the default download location (in Advanced Settings) to a local folder on a local drive I know will always be there - this has always been my %USERPROFILE%\My Pictures folder.   I've also tried unchecking the "Ask where to save each file before downloading" option and restarting Chrome but this doesn't solve this problem either.  I also tried bringing the NAS devices online but Chrome still stubbornly refuses to show the Save As dialogue in any sort of reasonable time.  I also notice the "Choose File" button experiences the same problem when trying to upload files. For example I'd post a screenshot showing what Chrome looks like in the task bar (I see the green progress indicator) but I can't from Chrome because of this problem.    The last time this happened I re-installed Chrome from scratch, but I think this is a bit of an extreme solution.  Is there some other setting/trick in Chrome I can use to tell it to completely forget about all the places (such as my offlined NAS shares) it saved files to in the past?  Update:  Upon further investigation with Sysinternals Process Monitor I see Chrome enumerating all my network shortcuts to these NAS boxes when I Right-Click -> Save As:    I captured this trace after I killed Chrome and restarted the NAS boxes (which is why the results all say SUCCESS). Of course Sods law has kicked in and I can't, right at this moment, reproduce the above problem with the NAS boxes powered off.


"What it does is {VERB / to VERB / VERBing} ..."?

For these expressions  What a paper shredder does is tearing the paper/tear the paper in small pieces which can be easily disposed. What he wants to do is to become/become a ballplayer.  Which of these two forms is correct here to become/become, tearing/tear?


Looking for the title/author of story about snail-like creatures

Trying to find title/author of story I read many years ago, around 1964. Story was written from the point of view of a snail like creature. The central character describes (stream-of-consciousness?) himself and other characters moving along a path in a constant search for food. The story ends with the main character falling into what turns out to be the fuel tank of a space ship.


Let's consider this sentence:     The postponement of marriage in order to accumulate credentials or job experience, the willingness to move to further career goals, and — in the case of bohemians — the willingness to accept incomes too low to support children in order to be an avant-garde writer or artist or revolutionary sets intellectuals and other elite professionals apart from the working-class majority whose education ends with high school and who rely on extended family networks for economic support and child care.   (Excerpted from Michael Lind - aldaily.com)  In the above sentence, the subject consists of three components separated by two commas. However, the main verb of this sentence, "sets", does not agree with the subject (since it contain three parts). Therefore, can someone elucidate this sentence for me? Thanks!


Intel Celeron N4020 will work in Ubuntu 20.14?

I have an ASUS 11.6 laptop and the processor is Intel Celeron N4020. Will it work on the newest version of Ubuntu?


How did Newton use his theory without the value of $G$?

I know that Newton extensively used his theory of gravity to calculate many things, but how did he do so without actually knowing the value of the gravitational constant $G$?  Did he estimate it somehow?


Is the set of $n \times n$ diagonalizable matrices with real entries dense in $M_n(\mathbb R)$?

We can prove that diagonalizable matrices with complex values are dense in set of $n \times n$ complex matrices,   I don't think there is many chances but can we show that the set of diagonalizable matrices over $\mathbb R$ with real entries is dense in $M_n(\mathbb R)$?


When you don't want users to use any web services it seems like you can turn off the permission to Use Remote Interfaces. However that permission does not mention REST.  This made me wonder if there was any way to turn it off, at any level. I did some searching but couldn't find anything.   Besides that, even Limited Access grants Use Remote Interfaces. So as soon as some permissions are broken, they are granted that permission even though the perhaps stripped permission level does not grant it.  So, do you know any way to turn off the possibility to use the REST API? Either at farm level, site level or via permissions. And is there any real secure way to turn off Use Remote Interfaces?


Given a bounded above sequence such that $x_{n+1}-x_n \ge -{1\over 2^n}$, prove that $x_n$ converges.

Prove that a bounded above sequence converges given it satisfies the following property:    $$ x_{n+1}-x_n \ge -{1\over 2^n}\\ n\in\Bbb N $$   Since the sequence is bounded above, by definition we have: $$ \exists M \in\Bbb R: x_n \le M, \forall n\in\Bbb N $$  By reversing the sign: $$ x_{n+1} - x_{n} \ge -{1\over 2^n} \iff x_{n} - x_{n+1} \le {1\over 2^n} $$  Then I tried to consider a list of inequalities: $$ x_1 - x_2 \le {1\over 2^1}\\ x_2 - x_3 \le {1\over 2^2}\\ x_3 - x_4 \le {1\over 2^3}\\ \cdots\\ x_{n} - x_{n+1} \le {1\over 2^n} $$  If we now sum up the inequalities one may obtain: $$ x_1 - x_2 + x_2 - x_3 + x_3 - x_4 + \cdots + x_{n} - x_{n+1} \le \sum_{k=1}^n{1\over 2^k} $$  By telescoping we obtain: $$ x_1 - x_{n+1} \le \sum_{k=1}^n{1\over 2^k} $$  So: $$ x_1 - x_{n+1} \le 1 - {1\over 2^n} \iff \\  M \ge x_{n+1} \ge x_1 - 1 + {1\over 2^n} $$  I'm not sure about where to go from here. How to prove what's in the problem statement?


Looking for a simple proof of why you can't mathematically tune a piano

Video states that a corollary of the Rational Root Theorem is that $\left(\frac{a}{b}\right)^n != 2$ for integers $a,b,n$, where $n \gt 1$.  I'm simply looking for a proof by contradiction of this.  I started of by assuming $\left(\frac{a}{b}\right)^n = 2$, but couldn't arrive at a contradiction.  (I'm probably very close).  Any ideas?  I got to: $n(\log a - \log b) = \log 2 = 0.30102..$


How to add two dependent random variables?

I know, I can't use convolution.  I have two random variables A and B and they're dependent. I need Distributive function of A+B


What is a Field? Do all things have them? What types of fields are there?

All “things” have wave properties, & waves operate in fields, so all things have fields, yes? What types of fields (i.a.EM, gravity, Energy) do all things have? Does each type of Field associate with a specific radial distance, velocity or “origin point of emission”?


If $R_{1}$ and $R_{2}$ are relations on a set S with $R_{1};R_{2}=R_{2};R_{1}$. Then $R_{1}$ and $R_{2}$ are bijective maps

For the surjectivity part, I showed that if $(a,b)\in I$ then $(a,c)\in R_{1}$ and $(c,b)\in R_{1}$ and $(a,c)\in R_{2}$ and $(c,b)\in R_{2}$ for some $c\in S$. Now for arbituary $(x,y)\in R_{1}$ we have $(x,z)\in I$ which implies that $(y,z)\in R_{2}$. But also $(y,z)\in R_{1}$, so $R_{1}$ is surjective. Similar argument for $R_{2}$  And for Injectivity, I've tried to show that if $aR_{1};R_{2}c$ and $bR_{2};R_{1}c$, then $a=b$ but I am not entirely sure what $a=b$ means in this context. Do I have to show that there is an equivalence relation containing (a,b)?  edit: $R_{1};R_{2}$ is a composition of two relations and $I=R_{1};R_{2}$


Is there any shortcut key to SELECT ALL text of Terminal?

I am using Ubuntu 14 (with UI) and I was trying to find a shortcut key to SELECT ALL text in the Terminal  Currently I have to click on EDIT > SELECT ALL and this bothers me a lot :P


Show that every real number is a limit of rational number.   I understand that the statement is true and very trivial. But how can I mathematically show that! Please help.


C++: Using const for a function parameter that is currently an enum

We define a function that uses a type defined elsewhere:  auto some_func(const some_type var) -> bool  { ... }   Let's say that currently some_type is an enum.  But it's defined elsewhere in the codebase, and arguably could be changed.  I believe because the type of "some_type" isn't necessarily guaranteed to be an enum primitive type, the const makes sense.  My code reviewer believes that it's a mistake to use const because some_type is an enum.  Does it make sense to leave the "const" in here because someday some_type may change, or does it make sense to leave it out because it is an enum and will likely always be an enum?  For those marking this question as a duplicate, the question is NOT "should I use const on enums" - the question IS "should we use const if we the definition of the type is in another part of the codebase and we can't guarantee that the type will stay an enum"


C++ converting variable integer to string

The problem I am encountering is the warning message I get when running the c++ .cpp code. Is there another way I can convert an integer to a string.     Here is a snapshot of the code I am running, and where the problem is:   string empId2 = to_string(empId);


Is there a simple page, "What is Winter Bash, and what's all this about hats"? Can we have one?

I tried to write , but I couldn't find any simple explanation page to link to. I ended up garbling a home-spun description of my own with a not-terribly-helpful image from 2012.  This  puts it better than I can:     As a new user in 2015 can there please be more information about what is WinterBash. The link took me to a bunch of stick figures running around making (I think) numbers (I think its a countdown clock). It doesn't explain the event or even what a hat is. – Ian Miller Dec 4 at 2:58   All I found on Meta was dead links. For example,  was downvoted to -2 and answered with a link to an FAQ page that no longer exists.


Possible Duplicate:          Hi, what's the better CMS/theme for a review site? It will be a site about movie reviews from editors, and visitors should comment the review. I'm looking for something simple to implement.


I`m using below Outputtext to show negative values in brackets. For example, -1,000.00 to reflect as (1,000.00)  <td>$<apex:outputText value="{0, Number, Currency}">   <apex:param value="{!target}" /> </apex:outputText></td>   Above line works fine except that I want to get rid of decimals. Negative value should appear like this (1,000) without decimals. Can someone please suggest a better way to achieve this? Can I achieve this using LEFT or Right Funtion?


How to record filesystem operations history?

Is it possible to record recent files operation? By operations i mean moving, renaming, deleting, creating etc. Not full log with seeks and stuff.


Show that $f(x) = 0$ for all $x \in [a,b]$ given $|f'(x)| \leq C|f(x)| $

Suppose for real numbers $a<b$ one has a function with continuous derivative $f:[a,b] \to \mathbb{R}$ such that $f(a) = 0$ and there exists a real number $C$ with $$|f'(x)| \leq C|f(x)|$$ for all $x \in [a,b]$. Show that $f(x) = 0$ for all $x \in [a,b]$.  Well, since $f(a) = 0$, we have that $|f'(a)| \leq C|0|$, so $|f'(a)| = 0$. Since $f$ has a continuous derivative, we also know that $f$ is continuous. Since $f$ is continuous on a compact interval, $f$ obtains a maximum, say at $\xi \in [a,b]$. So, $|f'(x)| \leq C|f(\xi)|$. Since the derivative is bounded, we obtain that $f$ is Lipschitz, so $f$ is also uniformly continuous. Suppose to the contrary that $f(\xi) > 0$? The above is pretty much everything I could figure out about $f$, so I'm not sure what to try next. This one is also from an old qual and possibly uses methods from beyond our course. I think maybe I should try to show that $|f'(x)| = 0$ for all $x$, but I don't know how.


Consider the following use of a hyphen:  There are many bear-like animals.  Now, how does the hyphenation change if "bear" is replaced by "grizzly bear"?  Which of the following would be appropriate:  There are many grizzly bear-like animals. There are many grizzly bear -like animals.  The intended meaning is not "There are many grizzly (gray-haired) animals that resemble bears," but rather "there are many animals that resemble grizzly bears (Ursus arctos)".


Identifying source and drain for a transistor

My question is related to  post (the comments below). Basically, how can I identity the source and drain of a transistor ? I thought that drain and source were totally symmetric inside of NMOS or PMOS from the P/N structure behind as also explained . But apparently, in the comment below  post, a PMOS source should be the highest voltage of a circuit and the NMOS source is the ground. I would like to understand why. Also I am not sure to understand this explanation because what happens if actually a NMOS transistor is not plugged to the ground on any of its port (but at some "intermediate" voltage).


function whose limit does not exist but the integral of that function equals 1

Is there a function whose limit does not exist as x approaches infinity but the integral of that function from negative infinity to positive infinity is equal to 1?


How to run Windows 10 from USB on my Mac?

I need to create a portable windows To Go workplace for my job and make it runs on a Mac computer, i tried WinToUSB tool and it didn't work, it keeps stucking at 0% when creating Windows to Go with a USB 3.0, so, is there any other way or tools that can create a WTG drive that can be boot and run on a mac?


How to find the proportion of observations equaling certain values x in a sample of a DRV X when the sample size is unknown?

After completing the question found below, I realized that my calculations (see farther down) are based on the assumption that n, the number of observations, is very large, and that this is not actually stated in the information given in the question... If n were rather small, let's say 3 observations, then the proportion of observations in the sample which are not equal to 0 is not necessarily alpha+alpha=2*alpha because, with only 3 observations, it's likely that there may not even be any observations in the sample which are not equal to zero... But, if my method is not the way to go, then how is this question solved?


Prove that $ S=\{0\}\cup\left(\bigcup_{n=0}^{\infty} \{\frac{1}{n}\}\right)$ is a compact set in $\mathbb{R}$.

Prove that $ S=\{0\}\cup\left(\bigcup_{n=0}^{\infty} \{\frac{1}{n}\}\right)$ is a compact set in $\mathbb{R}$, but $\bigcup_{n=0}^{\infty} \{\frac{1}{n}\}$ is not a compact set.   (Can we use definition of compact set for this problem? )


How do I create a rule in Outlook for handling emails which are not sent using the senders domain

I subscribe to a few newsletters which are obviously using a third party service like MailChimp or Campaign Monitor to send their mails and I cannot find a way to create a rule that moves the newsletters into the appropriate folder that I have created.   All the newsletters follow a format that is structured like this:  Jared Spool <jared.m.spool=uie.com@mail214.atl101.mcdlv.net>; on behalf of; Jared Spool <jared.m.spool@uie.com>   The prolem with using the senders address for newsletters like this is that the full address that these mails are sent from seems to change quite regularly and the rule no longer works. If I try using "use specific words in the senders address" and then fill in the name, or the 'on-behalf of' email address, the rule does not work.  In most cases the subject lines don't follow a consistent format either, so I can't create a rule based on the subject line.  Does anyone have any ideas?


After last update at the top this panel emerged:


How to get the population of the province

I am working on a homework about arrays and while loop in java. The question is to create a method called public int getPopulation(String province) which returns the population of the province. If there is no such province, return a constant called NO_SUCH_PROVINCE, which is an int set to -1. But I cannot get what I want.  public class Country { public static final int ON = 0; public static final int QC = 1; public static final int BC = 2; public static final int AB = 3; public static final int MB = 4;  public static final int NO_SUCH_PROVINCE = -1;  private String[] provinces; private int[] population;  public Country() {     provinces = new String[5];     provinces[0] = "Ontario";     provinces[1] = "Quebec";     provinces[2] = "British Columbia";     provinces[3] = "Alberta";     provinces[4] = "Manitoba";      population = new int[5];     population[ON] = 12851821;     population[QC] = 7903001;     population[BC] = 4400057;     population[AB] = 3645257;     population[MB] = 1208268; } public int getPopulation(String province) {     int i = 0;     int temp = 0;     while(i < provinces.length) {         if(province == provinces[i]) {             temp = population[i];         }else {             temp = NO_SUCH_PROVINCE;         }         i++;     }     return temp; }


What is Barry Allen's aka The Flash's top speed?

Barry Allen, a forensic scientist for the Central City Police Department (C.C.P.D.) was struck by lightning and bathed in chemicals which later granted him super-speed and the power to tap into the Speed Force (essence of speed).  Flash runs at the speed of light for sure, but it never mentions in the Flash series how fast he really is. If anyone knows the answer please tell me. I'm talking about both the new CW TV show "The Flash" and the comics.


Random Boolean array with 10 elements where 3 out of 10 are True

I have been searching all over the forum and google but I think I am using the wrong key words or I do not understand the solution. What I am looking for is to create a list or array with 10 random Boolean elements where I can decide that 1 or 2 or 3 or 4 etc. elements are True. The order must be random, in the end I want a result like this e.g. (a 0.3 chance):  False True False False True False False False True False   Thnx.


On Windows XP, when I try and delete a specific file it says:     Cannot delete blah.blah: Make sure the   disk is not full or write-protected   and that the file is not currently in   use.   How can I go around this warning and delete it anyway?


Converting adjacent singlepart polygons to multipart?

I am interested in converting a polygon featureclass created via  from singleparts to multipart.  QGIS has a very handy tool called singleparts to multipart that does the job, however, I need to stay within the arcpy/Python realm.  The ArcGIS equivalent appears to be Dissolve, yet the tool does not preserve individual feature geometry when the polygons share a border.  The following is an example of the type of fishnet polygon data I am working with, which was generated from the below script.      import arcpy  # Create a fishnet with 9 columns and 9 rows # with origin at (1, 1) and output geometry is set to default (POLYGON) arcpy.CreateFishnet_management("C:/temp/fishnet2.shp", "1 1", "1 9", "1", "1", "9",     "9", "#", "NO_LABELS", geometry_type = "POLYGON")   How can I convert a fishnet polygon from singleparts to multipart using a scripting approach?    *Note. There is a similar question at GIS SE (), although it appears to be limited to desktop tools.  I am looking for any Python or arcpy-based approaches.


Does direction of causality between instrument and variable matter?

The standard scheme of instrumental variable in terms of causality (->) is:  Z -> X -> Y  Where Z is an instrument, X an endogenous variable, and Y a response.  Is it possible, that following relations:  Z <- X ->Y  Z <-> X ->Y  are also valid?  While correlation between instrument and variable is satisfied, how may I think of exclusion restriction in such cases?    NOTE: The notation <-> is not explicit and might lead to different understandings of the problem. Still, the answers highlight this issue and use it to show important aspects of the problem. When reading, please proceed with caution about this part of the question.


I need to query all the related children of an object, the connection is via a lookup relationship.  Query as follows to illustrate:  SELECT (SELECT Id FROM Orders)  FROM Invoice__c   Error message:     sObject type 'Invoice__r' is not supported. If you are attempting to   use a custom object, be sure to append the '__c' after the entity   name. Please reference your WSDL or the describe call for the   appropriate names.   What am I doing wrong?


Problems with introducing ordered pairs axiomatically

(See also ).  Many feel that the usual way to introduce ordered pairs in set theory following K.Kuratowski as  $(a,b) = \{\{a\}, \{a,b\}\}$ is rather unnatural (B.Russell called Kuratowski's definition a trick). But the main drawback of this definition is the emergence of so called "junk" theorems - see    So it seems reasonable to try to introduce ordered pairs in an axiomatic way,  for example, to extend  $ZFC$ by adding to $ZFC$ a new binary functional symbol $g$  and an obvious axiom: Axiom1 := $\forall a,b,c,d( g(a,b) = g(c,d) \rightarrow a=c \wedge b=d)$.  But for further development of set theory we need more axioms, for example Axiom2 :=  $\forall a,b(g(a,b) \in P(P(a \cup b)))$.  So my question is:  Are necessary some other axioms for the symbol $g$?


Position and style of back button in web

After studying about the 'Back' button, I still can't decide on which best suited my case. I am designing an internal portal where the content varies in width.  Button position: A.1  Right side seems like a more common location for the buttons. In other pages, where there is the 'Back' and 'Next' button, it makes more sense that the next button is on the right side of the page.  A.2  left side is good since the location of the button would stay regardless of width size of content.   Style: B.1  I also saw some platform that replaced their back button at the bottom with an arrow beside the page title.


unable to find an interpreter when running a Windows executable

I uninstalled my wine, and installed a higher version of wine by compiling source.  However when I run an exe executable (whose path is in $PATH), it doesn't work as it used to:  $  PDFXCview.exe     run-detectors: unable to find an interpreter for /home/tim/program_files/document/pdfxchange_portable/PDFXCview.exe   I am not sure why I was able to run this executable directly before I uninstalled my old wine and installed the new one. How can I make $  PDFXCview.exe work now?  Note:  $ wine /home/tim/program_files/document/pdfxchange_portable/PDFXCview.exe   will work.   $ wine PDFXCview.exe   wine: cannot find L"C:\\windows\\system32\\PDFXCview.exe"   doesn't work. Note that the path of PDFXCview.exe is still in $PATH  Thanks.


Existence of antiderivative on a part $I$ of $\mathbb{R}$

Let $f$ be a continuous function on a part $I$ of $\mathbb{R}$. Is they exist always a function $F$ differentiable on an interval $J$ containing I such that $F'=f$ on $I$?  If $I$ is an interval , it's ok  if $I$ is an open set , it's ok  But if $I$ is only a part of $\mathbb{R}$  ?


Ive had this every now and then: When writing a comment, and you start off with "@" you receive suggestions about whom youd like to adress. In some rare cases, when trying to adress someone who has a name containing a space, no suggestions pop up, and even wierder, editing a comment to add a @-tag at the beginning and saving does not modify the comment. Has anyone have had similar Problems? For example, I was not able to adress User "Fly By Night" here:  however, he was the one that created the post, does it have to do with that in this case? I have had the same problem is a few other locations aswell, I will try to find those.  Help with finding the problem would be much appreciated.


I have to typeset a bit of verse in which certain lines are indented to approximately the length of the preceding line, as in these lines from Romeo and Juliet.   I tried to use \phantom, like so:  \documentclass{tufte-handout} \begin{document} \begin{verse} I am Laertes' son, Odysseus.\\ \phantom{I am Laertes' son, Odysseus.} Men hold me\\ formidable for guile in peace and war:\\ this fame has gone abroad to the sky's rim.\\ \end{verse} \end{document}   But it doesn't work. Instead I get the result in this picture:   What's the best way to fix this? Once upon a time I used vinphantom, but that command seems unavailable (or else is available only in memoir, which is what I used last time). What's the best solution?


Why Do Some Delphi Components Require "AOwner: TComponent" To Construct Them?

It seems completely irrelevant to require a TComponent as an owner to instantiate an object of some kind.  Why are there so many Delphi components that require this?  For example, TXMLDocument requires a TComponent object to instantiate.  Why is this and if there's a good reason, what should I be using in there to "do the right thing"?


macOS Sierra restarting download instead of resuming

macOS Sierra is a whopping 4GB+ download and on my capped bandwidth ISP connection I've wasted already 10GB just trying to download it. App Store always restarts download instead of resuming from how much it had already downloaded. I frequently get logged out (am guessing its because of heating issues) so the download is interrupted.  Am running OS X 10.10 on Macbook Air mid-2011 11" model.   Any help to fix this?  Update Here's the output of syslog | grep -i "shutdown cause"  Oct  5 15:24:17 leh kernel[0] <Notice>: Previous shutdown cause: 3 Oct  5 17:05:43 leh kernel[0] <Notice>: Previous shutdown cause: 3 Oct  5 17:53:43 leh kernel[0] <Notice>: Previous shutdown cause: 3 Oct  6 18:06:44 leh kernel[0] <Notice>: Previous shutdown cause: 3 Oct  6 23:32:49 leh kernel[0] <Notice>: Previous shutdown cause: 3 Oct  6 23:35:42 leh kernel[0] <Notice>: Previous shutdown cause: 3 Oct  7 23:18:26 localhost kernel[0] <Notice>: Previous shutdown cause: 3 Oct  8 11:46:24 leh kernel[0] <Notice>: Previous shutdown cause: 3 Oct  8 11:52:36 leh kernel[0] <Notice>: Previous shutdown cause: 3   From googling the shutdown code, I  that 3 stands for a dirty shutdown. How do I investigate which app is causing a dirty shutdown?


How can an object move from point A to point B?

If I was at point $A$ and I wanted to walk directly to point $B$, I would have to walk half way to point $B$, but before that I would have to walk half way to halfway to halfway to point $B$ and half of that again and so on and so fourth. if I halved this distance an infinite amount of times then there would be an infinite amount of actions I would need to perform in order to cross from $A$ to $B$. Therefore, if each action took any quantity of time at all, then it would take me an infinite amount of time to cross from $A$ to $B$, even if $A$ and $B$ were only a few centimetres apart!   Because I am not infinitely old and I can move, there must be a flaw in this logic. Where is it?


If $x+2y+3z=10$ find the maximum value of $x^2y^2z^6$.

If $x+2y+3z=10$ where x,y,z are postive real numbers, find the maximum value of $x^2y^2z^6$. I started by trying to find some integer solutions. The first thing I found was $(x,y,z)=(1,3,1)$. But the value of $x^2y^2z^6$ was way too small (it was a multiple choice question in the paper I was solving). The next thing I tried was setting $x=y=z$ because I thought the product of numbers would be highest if they were equal. And I got $x=y=z=\frac{5}{3}$. And so I got $x^2y^2z^6 = (\frac{5}{3})^{10}$ But this answer seems very weird and even my logic is not right, I merely went by intuition. Please help me solve this.


One of the things I haven't learned about using Blender is how look from a camera and use the exact same commands to pan, rotate and zoom with the camera as I do with the viewport. I'm used to doing this with either C4D, Maya, Modo, Max, etc... but in Blender It feels like a different workflow for those who are coming from other 3D applications. Is there anything that can be done about this either in the settings or through an addon?


I am using Ubuntu 12.04 and I have a iPhone 4 with iOS 5.1 that I just recently jailbroke. I was wondering if there was anyway that I can sync my music to my iPhone?


Is there an index on the primary key of a table?

Does having a primary key column mean there is an index on that column? If so, what kind of index is it?


What amplification can I apply to $y=\sin x$ for it to be a perfect oscillating arc?

A perfect arc is $y=\sqrt{|1-(x-1)^2|}$. A sin wave is $y=\sin({\pi x\over2})$  I am curious how I can amplify the sin wave so that it's a perfect alternating arc.  In the link below you can see graphed each of these two equations, as well as the delta between them.  So in the sage code there's function $i(x) = $SOMETHING $\times f(x)$, where $f(x) = \sin({\pi x\over 2})$, but I want to replace the 'SOMETHING' with an expression that transforms the wave to  $$y=\sqrt{|1-(x-1)^2|}+\sqrt{|1-(x-3)^2|}+\sqrt{|1-(x-5)^2|}... + \sqrt{|1-(x-n)^2|}$$     In other words, I want $g(x):g(x)\sin({\pi x\over 2}) = \sqrt{|(1-(x-1)^2|}$ where $0<x<2$   I have no particular goal, I am just curious how I would go about solving that as currently I'm a bit stumped...    thank you kind internet maths wizards!


Can we have an organization account to answer questions related to our technology?

We'd like to know if it is possible to have a group account to answer questions specific to some technologies. The group can have many members and anyone of them can answer questions.  At the end we'd like to know how many questions are answered by individuals and their reputation points.  I don't want reputation as a group. Individuals will work for their own reputation.  The only thing I want that somehow the group of people be seen as coming from one technology background (grouped under one hashTag) and people can see them as part of a technology/organization group and a way to add/remove people from the group by an admin.  Individual profiles remain as they are.


Product of binomial Coefficients involving limit n tends to infinity

Find $$A = \lim_{n \to \infty} \left(\binom{n}{0} \binom{n}{1} \binom{n}{2}\cdots \binom{n}{n}\right)^{1/((n)(n+1))}$$ What I did is convert the product of $\binom{n}{k}$ into $$\prod_{k=0}^{ k=n} \prod_{r=1}^{r=k}\frac {n-k+r}r$$ I am unable to solve it further, so please provide the solution to this problem


Can't log in as a particular user after changing its password

I reset both of my accounts passwords but only one will let me log in.  So I logged in as that account since it has admin privs, I changed the password on the other account (My main one which I really need) and then tried again.  I have tried this several times with different passwords but no luck.  The home file system for this user looks okay.  What should I do?  If I delete the user, will I lose the files under home?


Proof by induction for recursive sequence $a_n =a_{\lfloor n/2 \rfloor} + a_{\lceil n/2 \rceil} +3n +1$

I have to proof the following  $$n\leq 2^k \Rightarrow a_n \leq 3 \cdot k2^k +4\cdot 2^k -1 $$ for all $n,k \in \mathbb{Z}^+$ given the running time for a sorting algorithm that can be described recursively by $a_1 =3$ and $$a_n =a_{\lfloor n/2 \rfloor} + a_{\lceil n/2 \rceil} +3n +1,  \quad  n\geq 2$$  My answer: It should be possible to show this by strong induction. $P(n):$ when $n\leq2^k$ the following holds $a_n \leq 3 \cdot k2^k +4\cdot 2^k -1$ Base step $$P(1): 1 \leq 2^k \Rightarrow a_1 =3 \leq 3 \cdot k2^k +4\cdot 2^k -1 \quad \forall k\in\mathbb{Z}^+$$ Inductive step: Assume $P(1)...P(n)$ is true. We want to show that $P(n+1)$ is also true $$ P(n+1): n+1 \leq 2^k \Rightarrow a_{n+1} = a_{\left\lfloor \frac{n+1}{2} \right\rfloor} + a_{\left\lceil \frac{n+1}{2} \right\rceil} +3(n+1) + 1  $$ Let $\frac{n+1}{2}=m$ $$ n+1 \leq 2^k \Rightarrow a_{n+1} = a_{\left\lfloor m \right\rfloor} + a_{\left\lceil m \right\rceil} +3n+4  $$ ... and this is where I am stuck. How do I use $a_{\left\lfloor m \right\rfloor} + a_{\left\lceil m \right\rceil}$?


I was just wonder if it would be possible to have a "Copy to Clipboard Button" next to each listing which would just copy the verbatim content of the lstlistings environment to the clipboard.  An acroread-only solution would suffice for my purposes.


How are users with usernames such as userxxxx (x are numbers) created?

Did they chose this username, is this some kind of temporary account or they did not fill the username box?


Can we combine resources of multiple servers into 1 and then create multiple vps's from the combined resources? For Example: Lets assume i have multiple servers with different HDD, RAM and Processor sizes and with any tool / mechanism,  i could combined their resources and create multiple VPS of different sizes?


Find all the values of $w$ ∈ C that satisfy the equation.

Find all values of $\omega \in \mathbb{C}$ such that $\frac{\omega - \frac1\omega}{2i} = 2.$  So what I have is:  Let $\omega$ be represented as $x + yi$ (by definition of complex numbers)  Then $\frac1\omega = \frac{x-yi}{x^2 + y^2}$ (by properties of complex numbers)  So, $\frac{x+yi - \frac{x-yi}{x^2 + y^2}}{2i} = 2$  Eventually, I get, via expansion and simplification:  $\frac{x(x^2 + y^2 - 1) + yi(x^2 + y^2 + 1)}{2i(x^2 + y^2)}$  Any hints on how I can continue? I feel like I'm close but missing something.


Why does alias in /etc/bash.bashrc not apply to sudo?

I've added the line   alias ll='ls -l'   to the /etc/bash.bashrc. After a restart, the alias ll from that file affects me, which I checked by commenting out the corresponding alias in my ~/.bashrc (and logging out and back in after that edit). However, it seems to not affect root, as when I type sudo ll, I get "no such command". Shouldn't the alias work in any situation if it's in the system-wide .bashrc?


Why the coverage code is 0?  global with sharing class OutputControllerMap {      @RemoteAction     global static List<Output__c> findAll() {         return [SELECT Id, Name, Project_Type__c,Beneficiary_Full_Name__c, Commune_del__c,  Departement_del__c,     Locality__c, GPS__Latitude__s, GPS__Longitude__s                     FROM Output__c];     }  }   Test class  @isTest public class OutputControllerMapTest {   static testMethod void OutputControllerMapTest()    {     Project__c p = new Project__c();    p.Departement__c = 'OUEST';    p.Project_Name__c = 'Test Mappp';    p.Type_Of_Request__c = 'Collective';    p.Department_FFP__c = 'Agriculture';     insert p;    Milestone_s_Type__c mt = new Milestone_s_Type__c();    mt.Name = 'House';     insert mt;     Milestone__c m = new Milestone__c();    m.Project__c=p.id;    m.MilestoneCategory__c= 'Other';    m.Milestone_s_Type__c = mt.Id;    m.Target_number__c =20;     insert m;    Output__c o = new Output__c();    o.Milestone__c = m.id;     o.Project_Type__c='House';     o.Description__c='hjgjgkjgjhg';     o.Locality__c = 'jklhjlhkjlhjlhkl';  o.Project_Type__c ='House';  o.Departement_del__c ='Ouest';  o.Locality__c ='Leogane';  o.Commune_del__c ='Leogane';  o.GPS__Latitude__s =12.7545;  o.GPS__Longitude__s =-72.54;   Insert o;      Test.setCurrentPageReference(new PageReference('OutputControllerMap'));       OutputController oc = new OutputController();    }  }


Short SciFi story where humans join and evolve into a kind of multi-creature

I'm trying to identify a short story I read many years ago (early/mid 80s maybe?) where humans who congregated together somehow joined and 'evolved' into new blob multi-creatures - I don't think it was a choice, rather it just started to happen to them. These new blob creatures wandered around trying to learn how to control themselves, and I think they maybe fought each other.  I can't remember much more than that, tbh. I don't think there was much plot or reason for this 'evolution' given. The story was told from the point of view of one person, who was watching and documenting the metamorphosis. At the end I think he realised he had no choice but to join with them.  Any help would be greatly appreciated.  (It's not "Four in One", btw)


How do I get a gnome-terminal window to open from a crontab?  I have tried this:      * * * * * /usr/bin/gnome-terminal       * * * * * source /home/user_name/.bashrc ; /usr/bin/gnome-terminal      * * * * * source /home/user_name/.profile ; /usr/bin/gnome-terminal      * * * * * source /home/user_name/.bashrc ; /home/user_name/bin/opengnometerminal.sh   None of these seem to work.


A generic term for both books and movies?

I need to know this for an essay I'm doing. I thinks media might work but I'm not really sure. Do you have any suggestions?


I have a class that is mapped to a table using NHibernate. The problem is that only some of the properties are mapped to columns in the table. This is fine because the only columns we use for display are mapped, however I was wondering if there is any way to query against other columns in the table that aren't mapped to properties in my class.  For example we have a table with the following columns:  Customer ----------- CustomerId Name DateCreated   and we have an object  public class Customer {     public virtual int CustomerId {get;set;}     public virtual string name {get;set;} }   and name and customerId are mapped however DateCreated is not because we never display it anywhere. We would like to query the Customer table for customers that were created by a certain date. Is there any way to do this without mapping the DateCreated?  Also it would be preferable to do this using the criteria API.


What is the functional use of stormtrooper armor?

Throughout all of the Star Wars movies, we see Storm Troopers (and their ilk) wearing their iconic armor.    However, as far as I can remember, in none of the movies does it explain WHY they wear this armor.  It doesn't seem to protect them from blasters at all, as we see a lot of them fall/die when shot.  Is there an explanation (in any canon) as to the functional use/s of stormtrooper armor?


Exception in thread "main" java.lang.NullPointerException com.javainuse.controllers.ConsumerControllerClient.getEmployee(ConsumerControllerClient)

I have taken a reference from  without any customization yet. I was able to run the eureka-server fine, just added below  server.port=8090 eureka.client.register-with-eureka=false eureka.client.fetch-registry=false spring.application.name=eureka-server   I also have employee-producer which also runs fine  application.properties  eureka.client.serviceUrl.defaultZone=http://localhost:8090/eureka eureka.instance.instanceId=${spring.application.name}:${random.value}   bootstrap.properties  spring.application.name=employee-producer eureka.client.register-with-eureka=false eureka.client.fetch-registry=false   when I tried to run the employee-consumer, I am getting below error strong textConsumerControllerClient  @Controller public class ConsumerControllerClient {      @Autowired     private LoadBalancerClient loadBalancer;      public void getEmployee() throws RestClientException, IOException {          ServiceInstance serviceInstance=loadBalancer.choose("employee-producer");          System.out.println(serviceInstance.getUri());          String baseUrl=serviceInstance.getUri().toString();          baseUrl=baseUrl+"/employee";          RestTemplate restTemplate = new RestTemplate();         ResponseEntity<String> response=null;         try{         response=restTemplate.exchange(baseUrl,                 HttpMethod.GET, getHeaders(),String.class);         }catch (Exception ex)         {             System.out.println(ex);         }         System.out.println(response.getBody());     }      private static HttpEntity<?> getHeaders() throws IOException {         HttpHeaders headers = new HttpHeaders();         headers.set("Accept", MediaType.APPLICATION_JSON_VALUE);         return new HttpEntity<>(headers);     } }   The error which I am getting is  Exception in thread "main" java.lang.NullPointerException     at com.javainuse.controllers.ConsumerControllerClient.getEmployee(ConsumerControllerClient.java:28)     at com.javainuse.SpringBootHelloWorldApplication.main(SpringBootHelloWorldApplication.java:21)   SpringBootHelloWorldApplication  @SpringBootApplication public class SpringBootHelloWorldApplication {      public static void main(String[] args) throws RestClientException, IOException {         ApplicationContext ctx = SpringApplication.run(SpringBootHelloWorldApplication.class, args);          ConsumerControllerClient consumerControllerClient = ctx.getBean(ConsumerControllerClient.class);         System.out.println(consumerControllerClient);         consumerControllerClient.getEmployee();      }      @Bean     public ConsumerControllerClient consumerControllerClient() {         return new ConsumerControllerClient();     } }


first of all I'm not sure if I should post this here or in the astronomy stack. I think biologist are more likely to answer my question. To make it short:  Why when looking for any sort of life on other planets, we keep looking for similar conditions we call "life friendly", like nice temperature, oxygen level, pressure etc...  Is there some rule in biology that says life can only exists under these conditions? Why nobody supposes that evolution did not have enough time yet on our planet to generate other living mechanisms, and that on other planets even if the conditions are not suitable for us, there might be something well evolved through time there. After all if we can conceive electric robots that can survive to radioactivity and to high pressures and temperatures, why nature shouldn't be able to?


Retrieve UserId of @mention user from chatter post in Apex

Is there a way to retrieve the user id of @mention user from chatter post in Apex? We can write a before insert trigger on feeditem, but when we display the body (which has @mention user) it simply displays as text. Is there any workaround for this?


Finding the interval where a solution is certain to exist for the equation $y' + (\tan t)y = \sin t$

Given the following problem:     Determine (without solving the problem) an interval in which the solution is certain to exist for the initial value problem $y' + (\tan t)y = \sin t, \space y(2\pi) = 0$.   I was able to get the right answer, but I do lack the understanding as to why it is the right answer. I simply took $2\pi$, and added and extracted $\frac{\pi}{2}$ to get $[\frac{3\pi}{2},\frac{5\pi}{2}$]. Seeing as it is the right answer, I understand that both $\tan t$ and $y(2\pi) = 0$ are essential parts, but the text does not explain this properly.


I have a MacBook Pro (Retina, 15-inch, Mid 2014) running macOS Sierra, the Mac started to be slow due to storage.  When I've checked my storage I was shocked, from 250 GB I have, 180 GB was allocated to the System it self!  I've checked my friends storage and found that the System is only 30 GB!  How can I manage this and why do I have that much storage allocated to the System?


I run a game of about six people and we have a generally good time. However, I have noticed recently that one of the players has started building an almost-identical munchkin to something I've seen on GitP's forums, and can find with a quick Google search. That, and this player has started stealing a lot of the center stage because of how brokenly powerful the character is becoming in comparison to everyone else.  How do I deal with this? I don't want to just arbitrarily kill off the character, nor do I want to run the player off.