Python script to export .csv tables from GDB

I am very new to Python programming and have been tasked with writing a program to export a csv file from a file geodatabase feature class. The csv should contain only certain fields and the records exported should be based on last edit date.  In other words the csv file will be created on a daily bases containing only the last features added based on "last edit date field".  I have this so far:  import arcpy import os import csv import domainvalues  def export_to_csv(dataset, output, dialect):     """Output the data to a CSV file"""     # create the output writer     out_writer = csv.writer(open(output, 'wb'), dialect=dialect)     # return the list of field names and field values     header, rows = domainvalues.header_and_iterator(dataset)      # write the field names and values to the csv file     out_writer.writerow(map(domainvalues._encodeHeader, header))     for row in rows:         out_writer.writerow(map(domainvalues._encode, row))  if __name__ == "__main__":     # Get parameters     dataset_name = arcpy.GetParameterAsText(0)     output_file = arcpy.GetParameterAsText(1)     delim = arcpy.GetParameterAsText(2).lower()     dialect = 'excel'     if delim == 'comma':         pass     else:         dialect = 'excel-tab'     try:         export_to_csv(dataset_name, output_file, dialect)     except Exception as err:         arcpy.AddError('Error: {0}'.format(err))   However its exporting everything.


I have been trying to solve this following problem:  If $2^p-1$ is a prime then prove that $p$ is a prime, where $p \geq 2$.   which way should I go to prove this? Using fermat's or Bezout's theorem? or is it something else?   This is what I managed to come up with,I am confused about it and  not sure if it is correct:  If $p$ is a prime and $2 \nmid p \rightarrow$ gcd$(2,p)=1$  so,  $2^{p-1} \equiv 1(p) $  $2^p\equiv2(p)$   so, $2^p\not\equiv 1(p) $ and since $2\not\equiv 1 (p)$   conc: $p\nmid2^p -1$   Any hints are appreciated.


how food moves in horizontal coils of small intestines

This is a very very basic question, and I am looking at it more from point of view of physics. The small intestine is a highly coiled structure, which means it has horizontal coils as well. I can understand the vertical downward movement of food (when the person is in standing position) due to gravity, but how come the food can move in horizontal direction?  Any insights will be highly appreciated.  Thanks


How to recovery files from lost a deleted partition

I've deleted the wrong partition of my disk where is my ubuntu, and I have important files there, is there any way to recovery them?


Does damping force affect period of oscillation?

In my physics notes, it has been given that the damping force increases the period of oscillation. I am unable to understand this part. How is this possible? The only relation I know is that as the damping force increases the amplitude decrease. But how does this contribute to increased time period of oscillation?


Modus Operandi. Formulae for Maximum and Minimum of two numbers with a + b and $|a - b|$

I came across the following problem in my self-study of real analysis:     For any real numbers $a$ and $b$, show that $$\max \{a,b \} = \frac{1}{2}(a+b+|a-b|)$$ and $$\min\{a,b \} = \frac{1}{2}(a+b-|a-b|)$$   So $a \geq b$ iff $a-b \ge0$ and $b \ge a$ iff $b-a \ge 0$. At first glance, it seems like an average of distances. For the first case, go to the point $a+b$, add $|a-b|$ and divide by $2$. Similarly with the second case.   Would you just break it up in cases and verify the formulas? Or do you actually need to come up with the formulas?


Every website (e.g. Stack Overflow, Server Fault) of the Stack Exchange network has the same code base (cf. ), but also has unique features like a custom theme and data (e.g. questions, users).  How do you manage this?   Is it a single instance that responds to multiple domains (multi-tenant)?  Or do you have multiple instances with different configurations?  If so, how do you tell the code base which instance should be run? Environment variables? Symlinks to custom code?  Same question for the database: do you have separate databases or one large database?


How to prevent edits from being rejected unreasonably?

I recently  to an answer where the poster made a simple and obvious typo which renders the answer incorrect. I also added some additional information on how to install the relevant program if it is missing on the user's system. The edit was rejected. I then submitted a , this time restricted to just fixing the typo. Anyone with even basic knowledge of the subject matter would spot the typo immediately and agree with the correction.  However, the edit was rejected again by two people, neither of whom apparently even bothered to read the edit properly.  The first given reason:     This edit deviates from the original intent of the post. Even edits   that must make drastic changes should strive to preserve the goals of   the post's owner.   On the contrary, my edit was intended to fix the answer in line with the original intent of the post's owner.  The second reason is even more silly:     This edit defaces the post in order to promote a product or service,   or is deliberately destructive.   Even if I had made a mistake with my edit, it's obvious that I wasn't deliberately defacing it or trying to promote a product or service.  This is a trend I noticed frequently on Stackoverflow, until I got full edit privileges on that site.  Is there any technique I can employ when suggesting edits, to increase the chances that reviewers will give it more care and attention?


i would like to check a combobox, if the Layer is "LVS" or "PRJ". If one of these is selected, i want to return a Path as a String, but the function always return "null". Can someone help me maybe?  private String getGroovyPath(MyTitleAreaDialog dialog) {     String LayerLVS = "lvs/dev/scripts/123/aderf/de/lock/clt/Simplescript.groovy";     String LayerPRJ = "prj/dev/scripts/123/aderf/de/lock/clt/Simplescript.groovy"";      if(dialog.getLayer() == "LVS")     {         return LayerLVS;     }     else if(dialog.getLayer() == "PRJ")     {         return LayerPRJ;     }     return null; }


How to install the latest (unstable) version of libglm-dev?

I'm using Ubuntu 18.04.  What is the right way to install an unstable/development version of a package with ? In my case, libglm-dev 0.9.9.7:   At the time of writing, the version installed by apt install libglm-dev is 0.9.9.0.


Mapping letters in a string to number of occurences, using Stream

I've got a string s, and I'm trying to map each letter in s to the number of times it appears in s, using the Stream API. For example, giraffe -> {1, 1, 1, 1, 2, 2, 1}. The code I've tried using is: String s = "giraffe"; int[] occurences = s.chars().map(c -> count(s, c)).toArray();  public int count(String text, char ch) {     return (int) text.chars().filter(c -> c == ch).count(); }  but I get incompatible types: possible lossy conversion from int to char on the line that starts with int[] occurences = ... I've tried some different variations but nothing has worked. Any ideas? Thanks


My Macbook Pro lasts me about 1.5 to 2 hours max on a single charge. This feels ridiculously low.  What can I do to increase the battery life on Macbook Pro?  Battery Information:    Model Information:   Manufacturer: SMP   Pack Lot Code:    0000   PCB Lot Code: 0000   Firmware Version: 0201   Hardware Revision:    000a   Cell Revision:    0157   Charge Information:   Charge remaining (mAh):   6079   Fully charged:    No   Charging: Yes   Full charge capacity (mAh):   6930   Health Information:   Cycle count:  3   Condition:    Normal   Battery Installed:    Yes   Amperage (mA):    2139   Voltage (mV): 12492


Which is the differences between an .ai and a editable .pdf file?

Why do I save in .ai though the editable .pdf do the same thing?


Wifi not working after Ubuntu 16.04 installation

I have a Dell xps 13 and I installed Ubuntu 16.04. It installed the broadcom drivers but it doesn't work. For me it's not possible to connect to the internet via cable. Is there any working solution, how I could possibly get it work.  It was working with Ubuntu 14.04. At some point, I don't know why, it stopped showing up wifi networks and didn't connect. So I fresh installed Ubuntu 16.04. But the problem didn't diminish.   At this point, I don't know what to do. I downloaded kernels and drivers and tried reinstalling, but it's still the same. The solutions on the internet I found, are not working for me.   Is there anyone, who could lead me to the right direction. I don't know where to begin.  Thx a lot  Output of lspci -knn | grep Net -A2:      02:00.0 Network controller [0280]: Broadcom Corporation BCM4352 802.11ac    Wireless Network Adapter [14e4:43b1] (rev 03) Subsystem: Dell BCM4352 802.11ac Wireless Network Adapter [1028:0019] Kernel driver in use: bcma-pci-bridge Kernel modules: bcma   I deactivated secure boot in the bios and that solved the problem.


\includegraphics restriction to the number of calls

Is there any restriction about \includegraphics usage? This question arise from a LaTeX document where the number of \includegraphics has an uncommon result. When exceeded a limit number of includes at a particular section, the following includes aren't displayed (no error).


How to change "to" to "-" while displaying start and end date in views?

When using views to display start and end date by default it adds "to" text in between two dates, I was wondering what is the appropriate way to convert "to" to "-" or anything else.  Thanks


Grammatical reason for using "what" in "a technical medical term for *what* most people refer to as..."

Below is the question and the answer is "what."     Xerosis is a technical medical term for ___ most people refer to as dry skin.    From my instinct, I understood why "what" should be an answer. The problem is I can't explain why "which" can't be an answer.   If I chose "which" for this question, then "which" indicated the word "term," but it couldn't be like that. I need an explanation based on grammar.


Why did the Daleks bother to leave Adelaide Brooke alive?

In The Waters of Mars, it is shown that a Dalek left Adelaide Brooke unharmed when she was young during the events of The Stolen Earth, because she was a "fixed point in time", according to the words of the Doctor.  However, if they had succeeded in stealing the Earth (and they rather planned on it by taking any action at all) the future that is written for her (death on Mars on the first off-planet base) couldn't ever happen because there would be no more Earth in the solar system (nor humans, etc.), so leaving her unharmed is quite senseless.  Similarly, if she has to die on Mars she needs first to get to it, so when the Daleks spot her and realize the fixed point issue, why didn't they just abandon their whole plan as it has to fail to allow events of The Waters of Mars to happen?


If $p$ is prime, then for any integer $m$, $0 < m < p$, there is a unique $n$, $0 < n < p$, such that $mn$ is congruent to $1\pmod p$

So far I know that $1 \bmod p$ will always be $1$ as the lowest $p$ can be is $2$, meaning that $mn \bmod p$ will have to $= 1$. This means either $mn < p$ or $mn = p + 1$.  I've also figured out that to prove the above statement I would need to show the following   $n$ exists (obviously) $n$ is unique $0 < n < p$   This is were I get stuck. I can see that this is the case (and show that there is an n such that this is the case,) however, I am having trouble proving that n is unique.


A few weeks ago I've installed OpenVPN for Android from FDroid. Somehow it started to malfunction so I've rebuild the OpenVPN profile. While trying to activate the profile the device showed a screen about that the app should not be trusted and a weird claim that trusting it could result in data being encrypted by the app. I selected the checkbox to permanently trust the app. Unfortunately there was something wrong so I deleted the profile again to start from scratch. The warning appeared again but now I could not select the checkbox and the OK button was greyed out. I decided to delete the app completely and reinstall it. Now I can download the app but clicking on the install button does nothing. It looks like Android has permanently blocked the app or something. The same app downloaded from Google Play can be installed but this one too refuses to activate the profile. What is wrong with Android? BTW: it's Android 4.4.


Merge two anchors from different objects in Adobe Illustrator

Is it possible to merge/lock two anchor points together in Adobe Illustrator? What I'm trying to achieve is to lock a line segment to a circle so that when I drag the circle, the connected endpoint of the segment moves with the circle but the other endpoint stays in place.


LTS vs non LTS which is more suitable to me?

I am new to Ubuntu I want to know which is more suitable to me?  I want to use if for web design and hosting and for programming


It is known that mean value inequality is very useful. It is:     For any $0 \le a_i (i=1,2,\dots,n)$,    $$ a_1 a_2\dots a_n\le (\frac{a_1+a_2+\dots + a_n}{n})^n \tag1 $$   My question is: how many ways by which the mean value inequality can be proved?  Thanks for your help.


How do you summon a Zombie with enchanted armor?

I asked a question earlier "How do I spawn a Zombie with Armor", After about a week of trying to summon a zombie with enchanted armor on my own, I turn to you guys to help me.  I have tried /summon Zombie ~ ~ ~ {Equipment:[{id:"minecraft:leather_chestplate",ench:[{id:34,lvl:1}]},CustomNameVisible:1,CustomName:"Lv.1 Zombie"}  The command block output Error says "Data tag parsing failed: Unbalanced curly brackets {}"


What are the different tiers of technology?

All the technology upgrades I've found have a suffix which seems to determine the tier or effectiveness, such as "Tau" or "Sigma". How many of these tiers are there and which is the strongest?


Probability of visiting all states at least once in N trials

Assuming my world is made up of 100 distinct states such that:  $$S = (s1, s2, s3, ... s100)$$  Let's call the number of states 'K'.  And assuming that I perform N trials, wherein each trial I visit one of the states in S randomly, with replacement.  What is the probability that I visit all states at least once in N successive independent trials?  Here's what I have so far: The probability of visiting all states at least once is the inverse of the probability of never visiting a particular state, for each state $s_i$.  $$P(S_{once}) = N * (1 - P(s_i))^{N}$$  However, the math shows I am wrong here. Assuming N = 200, In this example, this works out to: $$P(S_{once}) = 200 * (1 - \frac{1}{100})^{200}$$  Clearly, this seems wrong. For one thing, the probability is greater than 1 at the end of this exercise. My guess is I am assuming some independence here which does not hold true. Can you help me come up with the right formula here, assuming there is one?   Update  I made an error in translating my words to formula:  The probability of visiting all states at least once is the inverse of the probability of never visiting a particular state, for each state $s_i$  This should be represented by the formula:  $$P(S_{once}) = K * (1 - P(s_i))^{N}$$  Answer  Thanks to the comments pointing me to the Coupon Collector problem, I have my answer now.  The number of trials T required to visit all K states is:  $$ T = K * \sum_{i=1}^K\frac{1}{i} $$  This is approximately equal to $K ln K$  Reference:  Note: The video has a typo on the final formula, the summation is from 1 to K (not K-1).


Would it be correct to say "Writers' Contest" or "Writers Contest" for a competition that invites writers to submit their work? I believe there should be an apostrophe because the contest is for the noun (writers), but someone else says that the writers are not possessing the contest and instead participating in it, so there should not be an apostrophe.


Do we still need swap partitions on desktops?

I have read , but it was asked in the context of servers not desktops or notebooks.  If a good amount of RAM is installed on a notebook, say 8 GB, do we still need a swap space?


Is the doctype declaration HTML or SGML?

Doctype declaration is not a HTML tag nor element, but is it HTML code? Some of my peers told me it is HTML still because it is part of a HTML document, but others told me it is instead something called SGML. Can someone please clarify?


Why can't I add a base map to my data frame in ArcMap?  I am using ArcGIS 10.2 for Desktop and the options under Add Data for Add Basemap and Add Data From ArcGIS Online are both disabled (grayed out).


How to set default auto mount options for removable media?

I have quite a bit of removable media (flash drives, external hard drives, etc) that I want to adjust auto mount options for. How does one do this? Is there something similar to /etc/fstab?


How does the increment operator work in an if statement?

#include <stdio.h>      int main()     {         int x = 0;          if (x++)             printf("true\n");         else if (x == 1)             printf("false\n");         return 0;     }   Output:  false   Why is the output false?  x++ is post increment; this means that the value of x is used then it is incremented. If it is so, then x=0 should be used and the answer should be true.


I just do not understand how myelination speeds up action potentials

first off, I've watched like 7 youtube videos, read a bunch of articles, and the explanations for why myelination actually increases action potential propagation differ each time are very vague. I've read and heard that because action potentials only occur on the nodes of Ranvier, that it simply takes less time for them to travel down an axon. I get that, but I was under the impression that increased +ve charge = further generation of action potentials. if that is the case, wouldn't that mean that myelination should slow it down as there is less +ve charge influx? I understand that it takes time for action potentials to be generated, but is the variable affecting the rate at which they occur not the influx of +ve charge, and wouldn't this positive charge be less if there are fewer action potentials generated? it's not like myelination decreases the time taken for particular na+ channels to open, right? ftr, I'm not doubting that myelination speeds up action potential propagation, I just don't get it and the explanations are contradictory (nothing that I've mentioned here is contradictory to my knowledge FYI, I just mean that I have heard other contradictory explanations). I understand that it insulates the neuron, thus preventing k+ leakage. Does the insulation possibly increase the rate of propagation by decreasing the ability of extracellular ions from interacting with intracellular neurons? I would understand that I suppose since then there wouldn't be positively charged particles on the exterior exerting electric force upon the intracellular +vely charged particles, thus making it easier for +ve charge to spread throughout the negatively charged axon. even if there is any truth in that, could that possibly compensate for the decrease in intracellular sodium that the decreased amount of na+ influx channels would imply? thanks to anyone who responds! a long one for sure, lol.


How to make an extensible double-fraction bar

I want to express a certain kind of quotient with a double-bar. The solution to the question this is a duplicate of () works for me, but I'd like to tinker with it a bit regarding    the spaces between numerator/demominator and bars the spaces between the two bars the width of the bars   to achieve an aesthetic closer to the rest of my document.  What parameters can I modify?


Evaluate the limit $ \lim_\limits{n \to \infty} \frac{1^a+2^a\cdots+n^a}{n^{a+1}} $

The exact question is- Find the real value(s) of $a (a \ne -1)$ for which the limit $$ \lim_{ n \to \infty} \frac{ 1^a+2^a\cdots+n^a}{(n+1)^{a-1}[ (na+1)+(na+2) \cdots+(na+n)]} = \frac{1}{60}$$  I simplified it a bit to get that limit. However,  I got the answer from Wolfram Alpha $\frac{1}{a+1}$ without a solution and an assumption that $|a|<1$ however the answer that I got on further solving (and given) is $a=7$ and $a=-\frac{17}{2}$  How is it solved?


Upload multiple image with media_handle_upload with multiple file field

I need to add multiple images with image descriptions form wp admin.  Admin Form:   Image <input type="file" name="image[]"/> Description <input type="text" name="imgdesc[]"/>  Image <input type="file" name="image[]"/> Description <input type="text" name="imgdesc[]"/>                  .                  .                  .  // number of image and description is dynamic  <?php wp_nonce_field('image', 'image_upload_nonce'); ?>   Here my PHP code during form submission.  <?php if (isset($_POST['image_upload_nonce']) && wp_verify_nonce($_POST['image_upload_nonce'], 'image')) {      require_once( ABSPATH . 'wp-admin/includes/image.php' );     require_once( ABSPATH . 'wp-admin/includes/file.php' );     require_once( ABSPATH . 'wp-admin/includes/media.php' );      //Here my doubt to handle multiple images     $attachment_id = media_handle_upload('image', 0);      if (is_wp_error($attachment_id)) {         echo $attachment_id->get_error_message();     } else {         // The image was uploaded successfully!     } } else {     echo "The security check failed, maybe show the user an error."; }   I don't know whether my approach is right. If not please correct me.


Edit toolbar and preview aren't loading correctly for tag wikis

When I try to create or edit a tag wiki, I don't see the edit toolbar, neither do I see the preview below the post:    When I attempt to load an editing form for a post, it briefly shows like this, but then the toolbar and preview load properly. However, when loading an editing form for a tag wiki, it remains stuck at this state. I see the following in my JS console:   "showLowRepImageUploadWarning"in e.imageUploader||(e.imageUploader.showLowRepImageUploadWarning=e.showLowRepImageUploadWarning  Invalid operand to 'in': Object expected  Using Microsoft Edge.


I am trying to produce a presentation where code for a pair of arrays appear in the same position of a beamer slide.  I tried something like this (with different combinations and braces) and did not work.  \begin{verbatim}\only<1>       V1 V2 V3 V4 [1,]  0  1  1  0 [2,]  1  0  1  0 [3,]  1  1  0  0 [4,]  0  0  0  0   \only<2>       V1 V2 V3 V4 [1,]  0  1  0  0 [2,]  1  0  1  0 [3,]  0  0  0  0 [4,]  0  0  0  0  \end{verbatim}    Appreciate any suggestions.  Thanks!


Removal of lines with no more or fewer than 'N' fields?

I am working on mac with sed, perl, awk, bash..  I have a large-ish (10GB) text file which has 13 fields (columns) of TAB delimited data. Unfortunately some of these lines have extraneous TABs , so I want to delete the entire line where we have extra TABs , and thus unequal fields.  (I don't mind discarding the lines in their entirety)   What I currently have writes the number of fields into another file.    awk -F'\t' '{print NF}' infile  > fieldCount  head fieldCount 13 13 10 13 13 13 14 13 13 13   I would like to construct a short script that removes any line with more (or less) than 13 proper fields (from the original file).    speed is helpful as I have to do this on multiple files doing it in one sweep would be cool I currently am porting the fieldCount file into Python, trying to load with line by line.   EDIT:  vaild (13 columns)  a       b       c       d       e       f       g       h       i       j       k       l       m   invalid (14 columns)  a       b       c       d       e       f       g       h       i       j       k       l       m       n


Note: #1265 Data truncated for column 'starts' at row 1

I have created a database for poll application called poll and tables called polls and users.  When I added SQL for second question:  INSERT INTO `poll`.`polls` (`id`, `question`, `starts`, `ends`) VALUES ('2', 'What''s your favourite web language?', NOW(), '2015-08-12');   Warning from title comes up. Here is export:  -- phpMyAdmin SQL Dump -- version 4.2.12deb2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 10, 2015 at 02:46 PM -- Server version: 5.5.44-0+deb8u1 -- PHP Version: 5.6.9-0+deb8u1  SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00";   /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */;  -- -- Database: `poll` --  -- --------------------------------------------------------  -- -- Table structure for table `polls` --  CREATE TABLE IF NOT EXISTS `polls` ( `id` int(11) unsigned NOT NULL,   `question` text,   `starts` date DEFAULT NULL,   `ends` date DEFAULT NULL ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=latin1;  -- -- Dumping data for table `polls` --  INSERT INTO `polls` (`id`, `question`, `starts`, `ends`) VALUES (1, 'What do you think about new whey protein?', '2015-08-10', '2015-08-12'), (2, 'What''s your favourite web language?', '2015-08-10', '2015-08-12');  -- -- Indexes for dumped tables --  -- -- Indexes for table `polls` -- ALTER TABLE `polls`  ADD PRIMARY KEY (`id`);  -- -- AUTO_INCREMENT for dumped tables --  -- -- AUTO_INCREMENT for table `polls` -- ALTER TABLE `polls` MODIFY `id` int(11) unsigned NOT NULL AUTO_INCREMENT,AUTO_INCREMENT=3; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;   Is it caused by second questions' apostrophe sign?  EDIT: This is not duplicate because I'm doing this in phpMyAdmin and I know what is SQL injection :)


From what I have read on , Darth Maul survived by using the Force, drawing from his hate to hang to a air vent, but then what? He crawled to a spaceship with his entrails sliding out?


I was doing a do-release-upgrade from command line and it was taking a lot of time. So I left it overnight and in the morning I saw that the charge gas been exhausted and my laptop turned off. When I tried to reboot, grub menu appeared, but when I chose ubuntu , it just gets stuck at the screen that appears before file checking (where it shows the name of the company of laptop). Is there any way to recover the system? I have a bootable usb stick with ubuntu 20.04. I booted from that and checked my /home partition. My files are safe. So I was thinking whether it is possible to just overwrite the root (/) partition and install ubuntu 20.04 on it while keeping my /home partition intact. Is it a feasible option? If yes, how? P.S. I don't have any backup


The following is a part of  in FT.com.     Why do estate agents still exist? Travel agents are gone — or going. Estate agents, who were hated long before Tim Berners-Lee gave up train spotting to invent the world wide web, were always going to be the first to go, come the internet age. Instead the reverse is happening: as I cycled through Islington on my way home the other day I counted 17 estate agent shop windows in one street.   I suppose the essence of the sentence including the phrase come the internet age is     Estate agents were always going to be the first to go, come the internet age.   Then, what is the grammatical role of the phrase "come the internet age" in the sentence? Is "come" subjunctive? If so, what is the meaning?


Grammatically correct use of whom vs who

Which of the following is correct?  Franz did not like his teacher M. Hamel either; whom he felt was strict and cranky. Vs Franz did not like his teacher M. Hamel either; who he felt was strict and cranky.  I feel the former is more appropriate than the latter but book says it with "whom". Can someone clear up the rules of who vs whom again?


What's the difference between temp=$1 and temp=1? Why do I need the dollar sign?  For example:   #!/bin/bash  temp=$1 cell=$((($temp-32)*5/9))  echo $cell


How do I disable the guest session in Ubuntu 11.10 or higher? I don't want people to be able to use my computer without using a password to log in!


Google forms hierarchical multiple choice questions

Supposing I have 2 multiple-choice questions concerning:   Country students are from: ..... (choices include USA, UK, China ....) States where they are from: then if they selected USA in the first question, the options shown will be LA, Cali or somewhere in the US but not somewhere in UK  or Russia   Can we do this in Google forms?


Does anyone have  a proof for $$\int_0^{\infty}\frac{\sin(x^2)}{x^2}\,dx=\sqrt{\frac{\pi}{2}}.$$ I tried to get it from contour integrating $$\frac{e^{iz^2}-1}{z^2},$$ but failed. Thanks.


What is the need of creating a new user for tomcat?

I am new at Linux(Ubuntu) and I was searching for a guide to install and configure Apache Tomcat on Ubuntu Linux. By following  tutorial I successfully managed to install and configure Tomcat. In the Step 3 of that tutorial, it is mentioned that it will install tomcat under the user tomcat and change the owner of the tomcat directory to the tomcat user, and make all files in the bin directory executable. So, the question that I want to ask is that what is the need of creating a new user for tomcat ? Thanks.


Can I check iPhone, iPad, Watch battery on Mac?

My goal is to have battery status of other Apple device on my Mac (preferably on menubar). I'd like to have a glimpse of the battery status of my iPhone, iPad, Watch, and Airpods.  I'm a user of Bitbar and iStat menu, but I haven't found any widgets can wirelessly check other Apple device's battery status.  What I know is that I can click the Wi-Fi icon on menu bar and it will show my iPhone battery status. To show the percentage, I have to option + click the Wi-Fi icon and hover over my mouse on the iPhone hot spot section. It's pretty clunky, but I guess at least the API is there.  I am also open to third party apps which can let me see battery status across devices.


Watch /tmp for file creation and prevent deletion of files?

I have a binary that creates some files in /tmp/*some folder* and runs them. This same binary deletes these files right after running them. Is there any way to intercept these files?  I can't make the folder read-only, because the binary needs write permissions. I just need a way to either copy the files when they are executed or stop the original binary from deleting them.


Question conncerning how to show ring isomorphism

For the following ring isomorophism question: Let $\mathbb{Z}^{*}$ be n integral domain defined by the following operations: $a\oplus b=a+b-1$  $a\odot b=a+b-ab$, where $a,b\in \mathbb{Z}$  Show that $\mathbb{Z}$ and $\mathbb{Z}^{*}$ are isomorphic.   I need to construct a homorophic bijective function $\phi(x)$ which maps $\mathbb{Z}$ to $\mathbb{Z}^{*}$ $\phi(x)$ is a one variable function but both $a\odot b$ and $a\oplus b$ are binary operation consisting of two element.  I am assuming that when either $a\odot b$ or $a\oplus b$ and gets plugged into $\phi(x)$, it is treated as a single variable.  But because of the following property of homomorphism: $\phi(ab) = \phi(a)\phi(b)$, I can write $\phi(a \odot b)$ in terms of $\phi(a)$ and $\phi(b)$  Also, I know of the following facts after doing some calculations. $a\oplus 1=a$  $a\oplus 1-a =0$  $a\odot 1=1$  $a\odot 0=a$  $a\odot \frac{-a}{1-a}=0$  The function $\phi(x)=1-x$ is the supposed function. The supposed function seems to be found by making use of the additive zero element/multiplicative identity $1$ and let $a\odot b=1$ so that $1 - a\odot b=(1-a)(1-b)$. We then obtain $\phi(a\odot b) = \phi(a)\odot \phi(b)=(1-a)(1-b)$.  What I want to ask is, is this a general strategy I can use for showing isomorphism between other rings, where one of the rings are defined by a different set of defined addition and multiplication operations.  Thank you in advance


I was confused while looking for the meaning of bi-weekly. Is it twice per week or once per two weeks?


Is Faraday's Law universally applicable?

I would say it is NOT a duplicate of this question:  .   While I was studying Faraday's law of classical electromagnetism, I came across this picture:   It is called Faraday's disk and it works as a DC dynamo on a constant magnetic field. However, when I tried to apply Faraday's law I failed: $$ \epsilon = - \frac{d\phi_B}{dt} $$ If both the area of the circuit and the magnetic field are constant (even their direction), I would expect the flux to be also constant. Furthermore, knowing the flux is constant its derivative to time must be zero, so there shouldn't be any inducted electromotive force. It turns out there is.  This is called the Faraday Paradox and it even has its own  article and it is also mentioned here: .  Moreover, the second article (which gives a mathematical proof of the Law from Maxwell Equations) claims that Faraday's Law is not universally applicable and also that Faraday's Disk is a nice counterexample. Is this statement true?   If so, when can this Law be applied and why (mathematical explanations are also welcome)?  If it is an universal law, how can this case be explained?


How to custom file formats work, encryption, packing etc

So say I take an example from Telltale games, they pack all their file assets into ttarch files, now I guess this is a custom file format that allows many file assets such as dds, jpg, bik, wav, 3ds etc to be packed into one file.  So someone has worked out how to explore these ttarch files and inside as you would imagine there are hundreds of files each with non standard file extensions(apart from the  lua files) such as d3dtx, d3dmesh, vers, spline, style, scene, there are also lua files which we all know.  The d3dtx files will be dds, jpg, bmp etc, so do you actually encrypt a dds file in this way, can someone enlighten me on the process of file encryption/packing files together?


Tooling API - ProfileMetadata not being returned v32

I am attempting to use the Tooling API to retrieve all the data for a particular profile. According to the Tooling API documentation from v32 there is a Profile object which contains a set of ProfileMetadata. I am running the following anonymous code:  HttpRequest req = new HttpRequest(); req.setHeader('Authorization', 'Bearer ' + UserInfo.getSessionID()); req.setHeader('Content-Type', 'application/json'); req.setEndpoint('https://na11.salesforce.com/services/data/v32.0/tooling/sobjects/Profile/00eA0000000WrUv'); req.setMethod('GET'); Http h = new Http(); HttpResponse res = h.send(req); system.debug(res.getBody());   The profile being referenced is a custom profile with permissions on objects etc however the debug output is as shown at   As you can see certain data is not coming through (objectPermissions is what I need out of this) and I wondered if anybody had any idea how to get that data? Thanks.


Viewing votes breakdown on mobile version of the site?

I was really excited, cause I hit 1k on elu today, and was looking forward to seeing the breakdown of upvotes and downvotes, when I realized it doesn't seem like there's a way to do this on the mobile version of the site.  Is there a way to do this?  Or is the privilege reserved for the full desktop site.


buttons inside table don't respond to onclick listener

I used following code to insert some buttons inside different table rows:  $('#' + data.Symbol).append('<button id="deletestock' + data.Symbol + '" type="submit" class="btn btn-default"></button>	');   And then when I tried to set an onclick listener to these button, they didn't work, my code of listener is as follow:  $(function(){ $('button').on('click', function(event){      alert(this.id); }); });   Could you please help me with this? Thank you so much!


I'm trying to get  to run on my Kubuntu 14.10 machine. I've managed to install it under wine and now have an .exe file to start the fire effect (which works exactly as it should, go wine!). However I am at a loss as to how I can get Kubuntu to use it as a screensaver. I've tried creating a custom screensaver under '/usr/share/applications/screensavers/' by copying one of the existing files and then replacing the proper values with my .exe file but it just won't show up in the screensaver select screen. I'd be grateful if anyone could explain how I can get it to work or offer a worthy alternative. IT IS VITAL THAT MY COMPUTER HAS SOME SORT OF FIRE EFFECT.


Does setting the Computer Sleep setting to 'Never' prevent sleep?

I'm running OS X 10.8 Mountain Lion on several servers. We're about to ship them off to a colo provider, and I wanted to prevent them from sleeping.  My question is, does setting the System Preferences > Energy Saver > Computer Sleep option to 'Never' reliably prevent sleep?  I noticed yesterday that all the mac minis were off, despite the 'Never' option being set. However, I'm thinking their power strip may have just been accidentally unplugged for a second.


What is the difference between the Resistance and Impedance? When we will say it is an Impedance and when we will say it as an Resistance? Can you explain it with diagram (If possible) and real time example.    And how the reactances will form in the circut where the Capacitors and inductors are not available in our circuit? How we will find the reactances in the circuit and its values in real time?   I means is this possible to calculate the reactance by using any instrument? Do the reactance was intentionally kept by the designer or generally it'll forms with in the circuit?   All answers are appreciated.


Difference between Firefox and Chrome Installation in Ubuntu

I'm a new Ubuntu user and I'm learning about how to install different software. I have installed Firefox browser successfully and now I want to install Chrome browser.  apt-cache search firefox - I used this command to search Firefox on the internet.  sudo apt install firefox - I used this command to install Firefox  I have searched on the internet for information about Chrome installation and I see it is a different way to install it.   I want to know why I can't install Chrome with the same commands used to install Firefox. Also, what is the best way to install Chrome with terminal commands?


What happens when you write to /dev/null? What’s the point?

Tried echo "Some text" >> /dev/null then cat null with no output. Can someone explain why this is?


Where can I get images for commercial use?

I am running a web site design service for local small business owner. I want avoid legal issues on the images I use. Usually, the images found on Flickr are forbidden for commercial use. Where would be a normal channel to get pictures for commercial use with minimal cost? How can I validate that the picture I used has no legal risk?


Drawing labels on Finite State Machines with TikZ

I am trying to draw up some finite state machines with TikZ. However, when I compile the following code it puts my labels into the regular document rather than in the nodes. Can someone explain what I am doing wrong?   \documentclass[12pt]{article} \usepackage{tikz}  \begin{document}  \begin{center} \begin{tikzpicture}[scale=0.2] \tikzstyle{every node}+=[inner sep=0pt] \draw [black] (15.6,-19.2) circle (3); \draw (15.6,-19.2) node {$q_1$}; \draw [black] (15.6,-19.2) circle (2.4); \draw [black] (33.9,-19.2) circle (3); \draw (33.9,-19.2) node {$q_2$}; \draw [black] (17.49,-16.883) arc (132.7489:47.2511:10.695); \fill [black] (32.01,-16.88) -- (31.76,-15.97) -- (31.08,-16.71); \draw (24.75,-13.54) node [above] {$1$}; \draw [black] (7.9,-19.2) -- (12.6,-19.2); \fill [black] (12.6,-19.2) -- (11.8,-18.7) -- (11.8,-19.7); \draw [black] (14.277,-16.52) arc (234:-54:2.25); \draw (15.6,-11.95) node [above] {$0$}; \fill [black] (16.92,-16.52) -- (17.8,-16.17) -- (16.99,-15.58); \draw [black] (30.9,-19.2) -- (18.6,-19.2); \fill [black] (18.6,-19.2) -- (19.4,-19.7) -- (19.4,-18.7); \draw (24.75,-18.7) node [above] {$0$}; \end{tikzpicture} \end{center}  \end{document}   This is the output that I am getting from the above code.


Multiclassed spellcaster, full spell knowledge?

I am making an arcane/divine multiclass to later prestige as a mystic theurge. I have 'practices spellcaster' twice, as to have full caster level in both spellcaster classes. My question is if there is something similar I could do so I could advance spells known like my full character level. Or is that an unavoidable drawback with the arcane/divine multiclass-prestigeclass? When I get to lvl 7, I could get the first level of mystic theurge, but is counted as lvl 4 of his both base classes when determining spells known & per level. If there was something to make it Count that as lvl 7 as well, it would truly be super


Reduce white space before and after multicols environment

I wonder how to reduce the vertical space before and after a multicols environment. I have something like below  \begin{multicols}{3}    {       \begin{equation}\sum F_x = 0\end{equation}       \begin{equation}\frac{dP}{dx} - p = 0\end{equation}    }    {       \begin{equation}\sum F_y = 0\end{equation}       \begin{equation}\frac{dQ}{dx} + q = 0\end{equation}    }    {       \begin{equation}\sum M = 0\end{equation}       \begin{equation}\frac{dQ}{dx} + q = 0\end{equation}    } \end{multicols}   But there is extra white space before and after the multicols environment. How can I reduce it?


Cross Platform Python Sound Library for Linux, Windows, and Mac OS

I am developing a little sound player in python (wxPython) which I would like to use on Linux, Windows, and OSX.  Looking for a sound library that I can use cross platform.  Ideally one that has support for most of the major codecs (or uses what is installed on the user's system).  Fading between files would be a plus, however not a necessity.  No manipulation of the actual audio files is needed- just a way to play them from within Python.


Pink lines around windows on Windows 10 Anniversary

Since updating to the windows 10 anniversary I now have these strange lines of pink around every windows that isn't maximised.I found on Reddit that someone else is having the same issue as me, but there have been no replies to their problem, just wondering if anyone else is experiencing the same problem?   As you can see, I'm downloading the ATI 5650m graphics driver for Windows 10 to see if this fixes my annoying problem.


How to draw a picture by using tikz as backgroud of a character?

I am writing some Chinese character and hope to draw simple pictures by tikz and use it as background of this chinese characters. In a short I'd like to get some results as this picture (ignore the lower right noise):    How could I do? Thanks in advance. As an example for least workable code:  \documentclass{article} \usepackage[CJKnumber]{xeCJK} \setmainfont{KaiTi}  \begin{document} \Huge 明月出天山 \end{document}


Who's the random kid standing in the gathering at the end?

At the end of Avengers: Endgame, there's a gathering...       for Tony Stark's funeral.   During it, they move the camera over several characters, often Avengers grouped together. One person they pan over is a single teenager with brown hair. Who is that character?


How can Welch's t-test be expressed in lme4

In a previous question () it was asked whether nlme  can reproduce Welch's t-test.   Below is an abridged version of this older question:      A standard independent samples t-test (where it is assumed that the samples being compared are drawn from populations with equal variance) can be expressed as follows:           $$Y_i = \beta_0 + \beta_1 X_i + \varepsilon_i$$         where $Y$ is the outcome and $X$ is a binary variable corresponding to group membership. The significance test of $\beta_1$ will produce the same t statistic as the standard independent samples t-test. Thus, the two commands below produce the same statistics (with the same degrees of freedom):   t.test(extra~group, data = sleep, var.equal = TRUE)   lm(extra~group, data = sleep)   The provided answer to this question indicated that using gls (in the nlme package) with specificed weights   weights=varIdent(form = ~ 1 | group))    would do the trick.  I am curious whether this can also be implemented in lme4 (using lmer). When going through the help file of lme4 I could not find anything that corresponds to the weight option in nlme::gls.


How to avoid kill command output message?

script:  echo $$ fun() {     kill -9 $* && echo Signal Trapped }  trap "fun" 10  while [ 1 ] do       sleep 100 &     trap "fun $!" 10     wait $! done   Output:  $ bash t.sh  PID = 4243 Signal Trapped t.sh: line 1:  4244 Killed                  sleep 100 Signal Trapped   when I execute the script, the above is output. Here, the message is shown as "t.sh: line 1:  4244 Killed                  sleep 100" once the process is killed. I tried the output and error redirection to /dev/null. But it does not worked. So, Is there any way to suppress the message which is arised by bash.


My Ubuntu gets stuck in a login loop due to the incompatibility with nvidia driver

I reinstalled Ubuntu 16.04, then installed nvidia-current and run sudo dpkg-reconfigure xserver-xorg  rebooted and gets stuck in a login loop. My graphic card is GeForce 6150SE nForce 430. Can some help me solve the issue?


Let $\Omega$ be an infinite set. Show that any infinite sigma field, $\mathcal{F}$ generated by subsets of $\Omega$ is uncountable, i.e. $|\mathcal{F}|\geq 2^{\aleph_0}$. obviousy we have that $|\mathcal{F}|\leq 2^{|\Omega|}$ and $2^{\aleph_0}\leq 2^{|\Omega|}$. but am having trouble showing that$\mathcal{F}$ is uncountable as sigma algebras are made up of counbable unions etc.  Any help am really stuck. Any ideas on how to define injection from $2^{\aleph_0}$ to $\mathcal{F}$, but thinking there is probably a quick way to show this with resoting to defining an injection? Thanks in advance for any assistance


{ScannerObject}.nextLine() is not equal to a string that matches the exact same text

I have googled and searched SO for a solution to this seemingly simple problem, but to no avail. Sorry for wasting space with this newbie question, but I cannot for the life of me figure out what is wrong.  I initialized a scanner object, then I set a string to be equal to the object.nextLine(). Then I checked whether the string matches the string "hello" in an if statement. When I run the program, I type in "hello" and press enter, but the if statement is not coming out as true. Here is the code:  private static void getCommand(){      Scanner commandScanner = new Scanner(System.in);      System.out.println("Enter your command");     String commandString = command.nextLine();     if(commandString == "hello"){         System.out.println("it worked");     } }   This method worked perfectly for checking scanned ints and doubles, but it is not working for strings.   Another small issue with the code, but not my main focus, is that I am getting a warning in eclipse: "Resource leak - commandScanner is never closed."


What does the 'cosmological constant' represent?

Newtons theory of gravity involves a gravitational constant $G$, however one does not refer to it directly, we speak instead of gravity or the force of gravity.   Now Einsteins introduced a  in his equation for GR, and ever since it's been referred to as such; however, this usage seems strange to me, given the above parallel; it seems to me we ought to be referring to something physical, which can then be quantified and whose quantification involves the cosmological constant.   Does the cosmological constant then refer to a cosmological force? A force that is, contra gravity, repulsive? And which is even weaker than gravity, kicking in on the scale of galaxies rather than solar systems?


I am trying to prove the identity $a\times(b\times c)=\langle a,c\rangle b-\langle a,b\rangle c$ Like other proofs (such as this ) , I have managed to find that $a\times(b\times c)=\lambda\langle a,c\rangle\cdot b-\lambda\langle a,b\rangle\cdot c$ That is true for some $\lambda \in \mathbb R$, in the proof that I mentioned above, they state that this constant $\lambda$ is the same for all three vectors $a,b,c\in\mathbb R^3$. I just cant understand why this constant is the same for every trio, I would appreciate any explanation, Thanks.


The Problem  My WiFi network disconnects itself randomly and starts asking for password. The password is already stored, I just have to click on connect. When I click on connect, it remains connected for some time then again disconnects and sometimes it even does not connects. The speed while being connected is very low and torrents are not downloading. When I sometimes connect to WiFi I get System encountered a error dialogue box  What did I do  I go to Edit connections and make sure that All users can connect is ticked. I also deleted config file of connection from /etc/NetworkManager/system-conncections  I still can't connect to WiFi sometimes and it disconnects automatically if I'm ablee to get connected after some time. So what should I do? After googling I found that this problem has been encountered in earlier versions, I'm using Ubuntu 16.04 so if there is a permanent solution which can help everyone that will be the best. P.S.- I have already tried these links:     .  Also the WiFi network works fine with my mobile.If more information is needed than let me know and how I can find it. Also after seeing this  i found that no card was soft or hard blocked and rest info I found after using commands are on  Output of lspci -knn | grep Net -A2  02:00.0 Network controller [0280]: Intel Corporation Centrino Wireless-N 130 [8086:0896] (rev 34) Subsystem: Intel Corporation Centrino Wireless-N 130 BGN [8086:5005]   Kernel driver in use: iwlwifi  New Update: I can't connect to my WiFi network, I have to use USB tethering in mobile to use internet on my laptop.


Remove the (1) when saving duplicate files in Google Chrome

So when i save a duplicate file from the net, the system automatically adds a (1) right at the end, before the extension and I have no idea if I can change it.  How do i keep the original file name so I can overwrite the existing one without manually removing the (1)?  Can it be done?


File get contents retrieve question diamonds characters

I've created my crawler using file_get_contents function but when I crawl some sites I'm getting this character: � when I should get this: é. Some ideas of what is happening?  This is for a windows vps server running php.   I've already tried:          But all these things didn't work.   PD: My file where I'm running this code is on UTF8.      $url = "https://play.google.com/books/reader?id=4rqYDwAAQBAJ&hl=en_US";     $options = array('http'=>array('method'=>"GET", 'header'=>"Accept-language: en-US,en;q=0.8\r\n" ."Accept-Charset: UTF-8, *;q=0"));             $context = stream_context_create($options)             $profile = file_get_contents($url,false,$context); echo $profile   I'm expecting to get accented characters and not this diamond character �.


I read a story in the 1980's (before 1984) about a future where race (black, white, etc.) had disappeared and for some reason "they" were attempting to bring back the races. The main character was a white boy. At the beginning of the story he meets a girl of another race that is also part of the project to bring back distinct races.   I thought the title was "killing time" but that really does not fit with the story I remember and none of the books I have found with that title fit.  The other detail I remember is that the people counted in octal (base 8) which I thought was cool.


Dimension of the quotient space $\frac{C_{0}}{M}.$

Let $C_{0}=\{(x_{n}):x_{n}\in\mathbb{R},x_{n}\rightarrow 0\}$ and $M=\{(x_{n})\in C_{0}:x_{1}+x_{2}+\cdot\cdot\cdot+x_{10}=0\}.$ I have to find dimension of the space $\frac{C_{0}}{M}.$ According to me its dimension is infinite. But i am not correct. Please tell me what is the exact dimension of the quotient space and how to find it? Thanks in advance.


My roasted chicken bled while it rested under foil. I refrigerated it over night. Can I bake it more today to finish it without drying it out?


Color vs Colour: which spelling should you use?

When considering Color vs Colour. I'm just wondering when you should use which spelling and why there are these two spellings for the same word?


Zombies are always after human beings. How do Zombies differentiate between a zombie and a human being? Why don't zombies eat each other?


I found  in the old ESRI forums with the same type of problem I am facing today. The solution to the problem is explained in little detail and since I am not an expert, I was wondering if somebody could describe it to me in little more detail.  We are doing a mental map analysis. We have let's say 50 polygons of a certain city square which are all different in shape, size and location. Our goal is to create a single polygon which would represent the answers from our whole input data. So basically, we need a method for generating a single polygon out of these 50 which would be an "average" polygon in size, shape and location.  Can somebody explain the process?


How to smooth camera animation to have fluid feel?

When dealing with camera motion, its very sensitive to any movement discontinuities. Is there a way to easily achieve natural looking motion when dealing with complicated motion paths and timings?  Follow path animation feels too robotic unless I adjust all the keyframe easings carefully and this has to be re-done everytime the animation changes (the automatic bezier type just doesn't work).


Create a content type after checking out a product

I am using Ubercart and I want to create a certain content type after a user checks out a different content type. I'm having the same problem with  but the conversation seems to be too short that I wasn't able to understand what was going on. I'm new to Drupal development, I hope someone might be able to clarify this for me.


understanding the difference between java.lang.String s = new String("hello") and String hold = "hello"

I came across this code and got a bit confused  java.lang.String s = new String("hello");   Im not sure what variable s is being initialized as java.lang.String , and what is the purpose of this vs String hold = "hello".  I tried to look through some some documentation but could not find anything.


I am trying to understand the following           var obj1 = {             value: "first value"         };          var obj2 = {             value: "second value"         };          var  obj3 = obj2;          function change(obj1, obj2) {             obj1.value = "asdasd";             obj2 = "lol";         }          change(obj1, obj2);          console.log("1",obj1.value);//"asdasd"         console.log("2",obj2.value);//"secondvalue"   why only obj1.value is changed ??


Is it safe to give my MacBook to a service center with my data on it?

I have to give my Macbook Pro to a service center for a few days to replace the display. Is it safe from the data perspective? Can they access it? (user login is password protected, but I think the data is not encrypted) Can they just take hard drive and copy everything? What should I do to avoid it?


What influences the lollipop growth in candy-box-2

I found that planting lollipops will increase the growth rate up to 100 and that you generate triple that with the dust you find. Also lolligators help make more. What else is there and how does it affect growth rate?


Difference between shell variables which are exported and those which are not in bash

Bash seems to differentiate between variables which have been exported and those which have not.  example:  $ FOO=BAR $ env | grep FOO $ set | grep FOO FOO=BAR   set sees the variable but env does not.  $ export BAR=FOO $ env | grep FOO BAR=FOO $ set | grep FOO BAR=FOO FOO=BAR   set sees both variables but env sees only the exported variable.  I know that set is a bash builtin and env is not.  What are the differences between variables which are exported and those which are not?


What lexical category are the wh- question words?

As in title, can anyone tell me what lexical category the words 'who, what, why, where, when, how' are in?     Who are you? What are you? Why are you here? Where did you come from?   When did you come? How is that possible?   I have read 'adverb', but there seems something unusual about them and that this isn't quite specific enough or necessarily correct.  Thank you


Suppose that $a_0 >a_1 >...>a_{2013} >0.$  Prove that $\sum_{n = 0}^{2013}a_nz^n \neq 0$ when $|z|<1$  Not sure where to begin with this.  Any suggestions?  Thanks.


I hope to draw the following diagram    Thanks a lot for your help.


I mostly used conventional sneakers for cycling  and never wore bicycle shoes in my life. At this moment of my life I decided to level up a bit. I've built myself a road bike and now I'm looking into proper footwear. It's a whole new world for me and I'm completely lost. My first impression is that there are several types of pedals, cleats and shoes and you have to choose the right ones in order to fit them all together.  I'd really appreciate a brief consultation on how to choose a proper footwear gear. Which pedals play good with which shoes and/or cleats and how to buy the right combination?  Thanks guys! You're the best!!


How to Prove that if $f(z)$ is entire, and $f(z+i) = f(z), f(z+1) = f(z)$, then $f(z)$ is constant?

So the problem states that if $f(z)$ is entire, and satisfies the relation $f(z+i) = f(z)$ and $f(z+1) = f(z)$, show that $f(z)$ is constant. So I was thinking that since any point in $\mathbb{C}$ can be written as $\alpha * 1 + \beta * i $ we can say that $f(z + z_0) = f(z) $ in which case it is constant, but I'm having trouble breaking down the steps and using the fact that $f$ is entire, which makes me feel like I'm missing something. What should I review to figure this out?


If downvoting is so important, why does it cost reputation?

I've just read that . However, there are many, many members who will never dare downvote anything because of that little 1 rep. (Besides, I think downvoting is not taken into account in the 200 daily reputation limit, but I'm not sure.) This has, as a side effect, that only really, really bad questions get downvoted.  I understand that downvotes remove rep from the people who receive it, so it must not be abused. But maybe users could have, like, (reputation / 1000) free downvotes every day?  Currently, the incentive for downvoting is a strong sense of duty. The incentive for not downvoting is OHEMGEE LOOK AT MY REP. And often, the latter is stronger.


In Jmeter, how do I make my thread group to start next loop on error on the first part of my thread group and continue on error on the second part?

I have a thread group with a login part and a part that checks different webpages. I want the thread group to loop forever, since its used for monitoring. However I want to start the next loop when an error occurs on the login part of the thread, but I want the thread to continue when an error occurs on one of the webpages. I have tried to do this using jsr223 postprocessors/samplers/listeners with the following code:  Boolean result = sampleResult.isSuccessful();  if ( result == false){     sampleResult.setStartNextThreadLoop(true); }   I've also tried this using if controllers/while controllers but I cant figure out how I can accomplish this.   Can anyone help me out?


On the reducibility of $x^4+ a$ over the rationals

Let $a \in \mathbb{Z^{+}}$. Show that $x^4+a$ is reducible over $\mathbb{Q}$ if and only if $a=4b^4$ for some integer $b$.  My idea for one implication was to assume reducibility and write $x^4+a = (x^2+\alpha_1x + \beta_1)(x^2+\alpha_2x + \beta_2)$, leading to the system of equations: $\alpha_1 + \alpha_2 = 0$, $\beta_1+\beta_2+\alpha_1 \alpha_2 = 0$, $\alpha_2 \beta_1 + \alpha_1 \beta_2 = 0$, $\beta_1 \beta_2 = a$. But I wasn't able to get much farther than this. This is a practice problem for an exam, any help is appreciated.


citing first name on top of family name while using \cite

I am using natbib for citations. And I want to dislpay the whole name of the author while citing in the body of the text  \citep{smith1990}           give usually only the family name (Smith, 1990).  I want an option that would display the whole name something like: (John Smith,1990). It seems as an obvious question but I cannot find the correct trick.


Do both the following sentences mean the same? If not, what's the difference?  1- Which colleges in India are run by the right wing students' group?  2- What colleges in India are run by the right wing students' group?


Can I use 2 different passports while traveling? (while living in none of those countries)

So i have a Syrian passport and and Egyptian one, i work in Russia and my working visa is on my Syrian passport, i wanna travel to Indonesia, going there for Egyptians is visa free.  My question is, Can i leave Russia with my Syrian passport, and enter then leave Indonesia with my Egyptian one, and go back to Russia with my Syrian one (since the visa is on there)?  there are 4 countries involved, 1 visa, and 2 entries! i hope the description makes it clear ^


Confusion about basic bashscript loop - until/done

I have a bash script I'm working on to help with an installer. why doesn't this work?  function fn_myFunc(){         local MYVAR=0         until ["$MYVAR" -ne 0]; do                 whiptail --yesno "Yes or No?" --no-button "No" --yes-button "Yes" 10 70                 MYVAR=$?                 echo $MYVAR         done }   This code loops infinitely, even though if Yes is selected, the echo $MYVAR prints out 0 and it prints 1 if no is selected.


Has everything we see happened in the past?

Whatever we see is basically based on the light that hits our eyes, right? When we look at the Moon we are looking at the Moon as it was couple of seconds ago, as the light takes some seconds (~2 seconds I believe) to reach us. In a way aren't we ALWAYS seeing the past as, no matter how close we are to something, we can never be at distance 0. Am I wrong in thinking about it like that?


Sum of free submodules of a module over a PID

It's possible to produce an example of an integral domain $R$ and a free $R$-module $M$ with free submodules $L, L'$ such that $L+L'$ is not free. We can take $R=M=K[x,y]$ , $L=\left<x\right>$ ,  $L'=\left<y\right>$.  If $R$ is a PID and $M$ is free $R$-module, then for every pair of submodules $L, L'$ of $M$ we know that $L+L'$ is free.  My question is the following.      If $R$ is a PID and $M$ is an $R$-module, is it true that $L+L'$ is free whenever $L$ and $L'$ are free submodules of $M$?   Thanks!


Assign buffer an attribute based on the largest polygon inside

I would like to assign a buffer polygon a value from another layer. I have cliped the two layers together. I then tried to dissolve the new layer by buffer ID, but I could not manage to get the largest area inside to be the value for the whole buffer.   I tried to do it by using calculate field, but im not very good at python.


I have a large list of tabs which are open in each terminal. I'd need to save them with a meaningful name and restore later when I need them. From what I've checked in another thread you could use: gnome-terminal --save-config However in my gnome-terminal:  $ gnome-terminal --save-config=/tmp/cfg Option "--save-config" is no longer supported in this version of gnome-terminal.  $ gnome-terminal --version GNOME Terminal 3.22.1 Using VTE version 0.46.1 +GNUTLS   Any other option available?


How do I disable middle mouse button click paste?

Is there a way to disable the middle mouse button paste behavior that is here by default on gnome?  I have a sensitive mouse wheel and whenever I scroll texts, sometimes it pastes stuff randomly into the text. I lose quite a lot of credibility when I send a file to someone else that has random text snippets pasted all over it.  I have seen a  that goes by mapping the mouse's middle button to a non-existant mouse button, but that implies getting rid of the middle mouse button altogether (i.e. no tab-closing, opening links into a new tab automatically, etc.). I'd like to keep my middle mouse button active, just disable the pasting behavior.  This also happens when I scroll text with my touchpad (accidentally hit two-fingers without moving, bam.)   So the problem will not be fixed just by changing for a new mouse (in fact I believe it happens more often with my touchpad than with my mouse).


jquery doesn't recognize modified elements by ajax

I update pagination with ajax. Once the pagination is update with ajax, jquery doesn't respond to clicks any more. How do I make jquery recognize the new added elements? Here is my js code: $(document).ready(function () {      $(".page").click(function () {         $.ajax({             url: '/ajax_request',             type: 'POST',             contentType: "application/json; charset=utf-8",             data: JSON.stringify({                 "page": page,             }),              success: function (response) {                 $('#main_table').find("tr:not(:nth-child(1))").remove();                  const pagination_div = $('div.pagination');                 pagination_div.empty()                 let html = '';                 $.each(response['pages'], function (indx, value) {                     html += '' + value + ''                 })                  pagination_div.html(html);              }         })     }) })


Installing Ubuntu on existing RAID 1 with complete rebuild

My desktop machine is currently running Windows XP (32 bit) on an AMD Sempron processor.  For various reasons, this is far from satisfactory, & my plan is to do a complete rebuild, with Ububtu (64 bit) as the operating system.  Currently, I have two 500 GB drives set up as a RAID 1 mirror (I believe they are being supported by what's termed "fakeRAID").  Is there a procedure by which, when I have the two drives plugged into the new motherboard, I can then install Ubuntu in such a way as to have it treat them as an existing RAID 1, rather than as two separate discs?  Can this be accomplished by running the software RAID manager from the Live USB device, or what do I need to do, assuming I can do anything?


Characterization of Polynomial In terms of Derivative

In many problem or theorem in which I have to show that given function is polynomial, there is the argument that for some k show that $f^{(n)}(z)=0, \forall n>k $ . I know that by definition of polynomial above characteristics is ok. But I am not convinced with fact that converse part. that there is no function other than polynomial which satisfies this property. Where am I  missing? Any help will be appreciated.


chmod 400 will not change the permissions of a file

I have to change an RSA key file (.pem)'s permissions to 400 so I can use it to connect to an AWS EC2 instance but for some reason I cannot seem to do so. I am in the folder where the file is located and the command sudo chmod 400 3dcitydb.pem gives no output but has no effect on the file.  I even logged in as root and I still cannot do it:  root@ib:/media/isaac/Data/MOSS_application/aws_keys# sudo chmod 400 ./3dcitydb.pem  root@ib:/media/isaac/Data/MOSS_application/aws_keys# ls -l total 4 -rwxrwxrwx 1 isaac isaac 1692 Jul  4 21:13 3dcitydb.pem   Any idea of what this could be? Any time I try to search this I either get people mistyping the chmod command, people unable to do so on an external hard drive due to a different partition system or people who didn't realize they had to change the file permissions in the first place.  Ubuntu version is 16.04


Let $A \in M_{n,m}$. Is this true that $\operatorname{rank}A=\operatorname{rank}(AA^*)$?


I'll start by explaining my scenario: I am creating a MMORPG and I want to get a better understanding of the most efficient way to store items in an inventory. From my research, I found that most games have an INVENTORY table where the rows have the ITEM_ID, the ITEM_QUANTITY, the USER_ID, and the SLOT_ID.  I'm thinking that this table could potentially have millions of rows.  So If I use a simple statement such as:  SELECT ITEM_ID FROM INVENTORY WHERE USER_ID = 25;   then how does the database really "find" the result to return? Does it have to "loop" through every single record until it finds the match? My concern is that, if that is in fact the way it is done, then wouldn't some SELECT FROM WHERE statements take forever?  Thanks, Ian


I read information from the database with ef core var dbQuery = db.ManifestTable.Select(x => new {     x.Id,     x.Uri,     x.Code,     x.Version }); var data = await dbQuery.ToListAsync();  return data     .GroupBy(x => x.Id)     .OrderBy(x => x.Key)     .Select(g => new myModel     {         Id = g.Key,         Uri = g.Select(x => x.Uri).First(),         Code = g.Select(x => x.Code).First(),         myVersion = g.Select(x => new myVersion { Version = x.Version, Uri = x.Uri }).OrderByDescending(x => x.Version).First(),         Versions = g.Select(x => new myVersion { Version = x.Version, Uri = x.Uri }).OrderByDescending(x => x.Version).ToList()     });  The problem is that there are duplicates items in the Versions field I tried to use the Distinct method but it did not work How can I remove duplicates versions from the Versions field?


As my question says,   $$\frac 1{1.2.3}+\frac 1{2.3.4}+\frac 1{3.4.5}+...$$  As far as $\frac 1{1.2}+\frac 1{2.3}+\frac 1{3.4}+...$ is concerned, we can write it as $\frac 1{n-1} - \frac 1{n}$ What can we do here?


I got two distribution which are not pairs. It's difficult to say that they are also from a normal distribution because they have different length.  The distributions of the vectors are, for gas:  65  65  65  65  74  74  74  74  74  77  78  81  81  83  83  83  85  85  85  85  85  87  87 89  89  90  91  91  91  91  91  91  94  94  94  95  95  95  95  98 101 101 101 102 102 102 102 102 103 103 103 103 103 104 104 104 104 104 104 106 106 106 106 107 108 108 110 110 113 113 115 115 115 118 118 118 118 119 119 121 122 122 122 125 125 125 128 128 128 128 128 129 129 134 134 134 134 134 134 137 137 137 142 145 145 148 148 148 148 150 150 150 150 150 150 150 153 153 154 154 154 158 158 161 161 161 161 161 161 161 161 164 164 168 168 168 168 168 186 188 188 192 192 194 194 197 197 231 256   while for the diesel vector distribution is:  65  91  91  93  93  93  93  94  94  95 122 128 161 161 161   I made the t.test and the wilcox.test and I got these results:  Welch Two Sample t-test  data:  diesel_type and gas_type t = -1.7104, df = 18.149, p-value = 0.1042 alternative hypothesis: true difference in means is not equal to 0 95 percent confidence interval:  -31.873874   3.256425 sample estimates: mean of x mean of y  109.0000  123.3087    and      Wilcoxon rank sum test with continuity correction  data:  diesel_type and gas_type W = 843, p-value = 0.1179 alternative hypothesis: true location shift is not equal to 0   I could accept the null hypothesis in the t.test, saying that the means are equals because the p-value is over the 5%. Should I accept the null hypothesis in the Wilcoxon test too? Are the medians equals? What could I say about these results?


I am hoping someone can give me some pointers and a little direction. I love photography and I am currently in a rut career wise. I would love to start on a path to make a living of some kind from photography and want to get an idea as to the best way to start.  I am happy to be labelled a complete novice and would like to know the best courses that I can enrol on to learn nthe basics. I have a digital SLR and an eye for a photo (I think anyway!) and a genuine love for photogaphy and in a perfect world when it all works out I would be doing portraits/landscapes, but that's a way away just now.  So if anyone can recommend a great course and offer advice I would be really grateful. I live in London so courses local to that would be preferable.  Really hope to get some feedback and thanks in advance.


/give command not working in Minecraft 1.8.8

This is the not working command:  /give @p golden_sword 1 0 {Unbreakable:1,ench:[{id:9,lvl:0},display:{Name:Gold Sword Of The 1979 Of The GOLDEN AGE,AttributeModifiers:[{Operation:0,UUIDLeast:3,UUIDMost:3,Amount:.1.5,AttributeName:generic.Speed,{AttributeModifiers:[{Operation:0,UUIDLeast:3,UUIDMost:3,Amount:20.0,AttributeName:generic.maxHealth,AttributeModifiers:[{Operation:0,UUIDLeast:3,UUIDMost:3,Amount:1.0,AttributeName:generic.attackDamage}]}   It's saying Unbalanced Curly Brackets {} or Unbalanced Brackets. I'm using Minecraft version 1.8.8.


When a permanent is being made to copy another, does it count as entering the battlefield?

I want to cast  on a strong creature on my battlefield so that my 's ability will trigger.  The creature that will become the copy is already on the battlefield, but when it becomes a copy of the strong creature, will this trigger my Hamletback Goliath's ability?   For reference, Hamletback Goliath reads:     Whenever another creature enters the battlefield, you may put X +1/+1 counters on Hamletback Goliath, where X is that creature's power.


I teach a course in C++ and want my students to post questions about the course material in a professional forum, and have other students answer them. They do not use Stack Overflow directly due to several reasons:    Their questions are often specific to the course, e.g. "what did you mean in slide 39?" or "why doesn't my code compile in the automatic homework grader?". On Stack Overflow they will probably be closed. Many of them are not good at writing in English. If they post in Stack Overflow, their post will have to be massively edited for grammar errors.   Is there a way to open a new Stack Overflow-like forum that will be specific to a class? It does not have to be secret - I don't mind if outside developers will also post questions or answers. All I need is to moderate the forum myself, so that I can allow questions specific to the course and in the students' native tongue (Hebrew).


Are there any known uncountable transfinite increasing sequences of real numbers?

The real numbers are uncountable, so assuming the axiom of choice there is at least transfinite sequence of real numbers $r_0, r_1, r_2, ..., r_\omega, r_{\omega + 1}, ..., $ up to (and possibly including) $r_{\omega_1}$ that contains an uncountable number of terms. However, it's not guaranteed that $r_0 < r_1 < ..., r_\omega < ...$  Is there a known transfinite sequence of real numbers that is monotonically increasing and which contains uncountably many real numbers?  Thanks!


I have about 25K of bounty vouchers but I cannot seem to redeem them. I believe I am sitting in the proper station and it has a office to redeem claimed bounties.  Bounty: 25,380 CR BOUNTY IN INDEPENDENT ERAVATE FREE  STATION: CLEVE HUB / INDEPENDENT ERAVATE NETWORK   If I am in the wrong station how do I find the information needed to travel to the correct station. Where can i see the faction running the station prior to flying there?


When browsing though LaTeX source code, I have noticed that many people put % at the end of a line or after closing brackets. I would like to know if there is any benefit in this practice.  Moreover, I find difficulty in finding advice on LaTeX coding style. When I say style I mean LaTeX source and not the compiled document. For me the code it self is kind of an art as well so if there are any tips are welcome.


Mathematical induction prove that 9 divides $n^3 + (n+1)^3 + (n+2)^3$ .

How can I use mathematical induction to prove that $9$ divides $n^3 + (n+1)^3 + (n+2)^3$ whenever $n$ is a nonnegative integer?


How to find      $$ I=\int_{0}^{1}{\ln^{2}\left(x\right)\ln^{2}\left(1 - x\right) \over 2 - x} \,{\rm d}x $$   My idea:   Let $x=1-t$, then     $$ I =\int_{0}^{1}{\ln^{2}\left(1 - x\right)\ln^{2}\left(x\right) \over 1 + x}\,{\rm d}x $$   I can't proceed any further. I can't remember that Math SE has this similar problem already posted.  this integral problem is from This Euler Sums  : $$\sum\limits_{n = 1}^\infty  {\frac{1}{{{n^2}}}} \left( {\sum\limits_{k = 1}^n {\frac{{{{\left( { - 1} \right)}^{k - 1}}}}{k}} } \right)\left( {\sum\limits_{k = 1}^n {\frac{{{{\left( { - 1} \right)}^{k - 1}}}}{{{k^2}}}} } \right) =  - \frac{{23}}{{1440}}{\pi ^4}\ln 2 + \frac{1}{{18}}{\pi ^2}{\ln ^3}2 - \frac{1}{{18}}{\ln ^5}2 - 4L{i_4}\left( {\frac{1}{2}} \right)\ln 2 - 8L{i_5}\left( {\frac{1}{2}} \right) + \frac{1}{{12}}{\pi ^2}\zeta \left( 3 \right) + \frac{{27}}{4}\zeta \left( 5 \right)$$  when I deal this series,then we must solve this integral .  Thank you.


Can someone please tell me what purposes logarithms have in the everyday world? What non-theoretical applications are they in and when would one use them?


Add a warning about cross-site duplicates

In case a user asks the same question on two different SE, it would be great to automatically warn the readers that the question has been cross-posted and give a link to the cross-posts.  The motivation is twofold: making cross-posting abuses easier to detect and avoiding answering a question that has been answered on a different SE.


How can I link an accidentally-created guest account with my network account?

When signing into a new community, I accidentally created a guest account. How can I link this with my registered account, with which I have participated in a number of communities?


dpkg error when running sudo apt-get upgrade

root@kali:~# sudo apt-get upgrade Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 5 not fully installed or removed. Need to get 0 B/587 kB of archives. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] Y dpkg: error processing package tk8.6-blt2.5 (--configure):  package is in a very bad inconsistent state; you should  reinstall it before attempting configuration dpkg: dependency problems prevent configuration of python-tk:  python-tk depends on tk8.6-blt2.5 (>= 2.5.3); however:   Package tk8.6-blt2.5 is not configured yet.  dpkg: error processing package python-tk (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of blt:  blt depends on tk8.6-blt2.5 (= 2.5.3+dfsg-4); however:   Package tk8.6-blt2.5 is not configured yet.  dpkg: error processing package blt (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of tcpwatch-httpproxy:  tcpwatch-httpproxy depends on python-tk; however:   Package python-tk is not configured yet.  dpkg: error processing package tcpwatch-httpproxy (--configure):  dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of python-pil.imagetk:amd64:  python-pil.imagetk:amd64 depends on python-tk (>= 2.7.7-2); however:   Package python-tk is not configured yet.  dpkg: error processing package python-pil.imagetk:amd64 (--configure):  dependency problems - leaving unconfigured Errors were encountered while processing:  tk8.6-blt2.5  python-tk  blt  tcpwatch-httpproxy  python-pil.imagetk:amd64 E: Sub-process /usr/bin/dpkg returned an error code (1) root@kali:~#    Why am I getting this error?


Which of the following is a continuous image of $GL_n(\mathbb{R})$?  The real line $\mathbb{R}$  The subspace $\{(x,\frac1x):x\in \mathbb{R},x \ne 0\}$ of $\mathbb{R}^2$  $\mathbb{R}^2 \setminus \{(x,\frac1x):x\in \mathbb{R},x \ne 0\}$  $\{(x_1,x_2,...,x_n):x_1^2+x_2^2+...+x_n^2 \le 1\}$ of $\mathbb{R}^n$   How do I proceed? $GL_n(\mathbb{R})$ is not compact, not connected, so I cannot rule out some options using topological properties.


Changing dimensions of shapes in Blender 2.8

For anyone who is using Blender 2.8 right now, does anyone know how I can change the dimensions of the shapes in Blender 2.8.  Take the sphere for instance: I want to change the number of rings and grids on the sphere, which was a process I usually did in 2.79b. Does anyone know how I can do this in Blender 2.8?


Prove that $v, Tv, T^2v, ... , T^{m-1}v$ is linearly independent

Suppose $T$ is in $L(V)$, $m$ is a positive integer, and $v$ in vector space $V$ is such that $(T^{m-1})v \neq 0$, and $(T^m)v = 0$. Prove that  $[v, Tv, T^2v, ... , T^{m-1}v]$  is linearly independent  I get that $(T^j)v \neq 0\ \forall\ j < m$. Additionally, since $T$ is nilpotent, $V$ has a basis with respect to which the matrix of $T$ has $0$s on and below the diagonal. However, I'm not sure if these can be used to show linear independence or if they're even relevant to the problem at all. Any help is appreciated!


how can I edit the text in a windows form element if the code that is editing the text 'belongs' to a seperate thread from the one that contains the windows form? I get the exception:     Cross-thread operation not valid: Control 'textBox1' accessed from a thread other than the thread it was created on.   Thank you.


Is there a function to round a float in C or do I need to write my own?       float conver = 45.592346543;   I would like to round the actual value to one decimal place, conver = 45.6.


Oracle 11g: increasing buffer cache with AMM

On a 2-node RAC we have enabled Automatic Memory Management. The advisor views indicate that increasing the buffer cache by 4 GB will half the physical reads, and we have 4 GB to give.   How must we do this? By increasing memory_target and letting Oracle grab more memory for the buffer cache? Or by explicitly setting a value for db_cache_size (which now is zero)?


Ok, so I got an error when I tried to print something based on the user's input. Pretty standard stuff, right? So, if the program would have worked correctly, the user would have entered six words or phrases that would be stored in the string named PhrasesAndWords. Then, each part of the array would have been tested, by creating a while-loop, using the counter as the index in the switch statement. Well, apparently, this didn't work, because it wasn't a constant expression, or a constexpr. The variable can't be a constant expression, though, since that would result in an infinite loop. By the way, here is the error:  C:\Users\henry\Desktop\NotTheActualPathForThisProject\main.cpp|34|error: switch quantity not an integer|  Aaand here's the code I wrote (I have gotten rid of irrelevant variables and such, though):  int main() {  string phrasesAndWords[6];  cin >> phrasesAndWords[0] >> phrasesAndWords[1] >> phrasesAndWords[2] >> phrasesAndWords[3] >> phrasesAndWords[4] >> phrasesAndWords[5]; // Recieve input  int counter = 0;      while (counter < 6) {     switch(phrasesAndWords[counter]) {          case "RandomString":             print("That sure was quite random. \n")         default:             print("I don't understaahnd... \n")     };     counter++; };   };


Intuition behind logarithm inequality: $1 - \frac1x \leq \log x \leq x-1$

One of fundamental inequalities on logarithm is: $$ 1 - \frac1x \leq \log x \leq x-1 \quad\text{for all $x > 0$},$$ which you may prefer write in the form of $$ \frac{x}{1+x} \leq \log{(1+x)} \leq x \quad\text{for all $x > -1$}.$$  The upper bound is very intuitive -- it's easy to derive from  as follows: $$ \log(1+x) = \sum_{i=1}^\infty (-1)^{n+1}\frac{x^n}{n} \leq (-1)^{1+1}\frac{x^1}{1} = x.$$  My question is: "what is the intuition behind the lower bound?" I know how to prove the lower bound of $\log (1+x)$ (maybe by checking the derivative of the function $f(x) = \frac{x}{1+x}-\log(1+x)$ and showing it's decreasing) but I'm curious how one can obtain this kind of lower bound. My ultimate goal is to come up with a new lower bound on some logarithm-related function, and I'd like to apply the intuition behind the standard logarithm lower-bound to my setting.


The cardinality of a countable union of countable sets, without the axiom of choice

One of my homework questions was to prove, from the axioms of ZF only, that a countable union of countable sets does not have cardinality $\aleph_2$. My solution shows that it does not have cardinality $\aleph_n$, where $n$ is any non-zero ordinal (not necessarily finite). I have a sneaking suspicion that my solution is actually invalid, but I can't find any reference which invalidates my conclusion.  I have read that it is provable in ZF that there are no cardinals $\kappa$ such that $\aleph_0 < \kappa < \aleph_1$, but I believe the conclusion of my proof does not preclude the possibility that the cardinality is incomparable to $\aleph_1$ or some such.   I think the weakest point in my solution is where I claim that the supremum of a countable set of countable ordinals is again countable. This is true, of course, but it sounds uncomfortably close to the claim "a countable union of countable sets is countable", which is well-known to be unprovable in ZF. Can anybody confirm that the ordinal version is provable in ZF though? If not, I think I can weaken the claim to "the supremum of any set of countable ordinals is at most $\omega_1$", and this establishes the weaker result that the cardinality of a countable union of countable sets is not $\aleph_n$ for any ordinal $n \ge 2$.


how to handle captcha in selenium webdriver?

how to handle captcha in selenium webdriver: I am using this code but it gives error"Error communicating with the remote browser. It may have died." code is below: driver.findElement(By.xpath(".recaptcha-checkbox-checkmark")).click();


How do I return multiple variables into a method in Java?

I have the following code of a class used to read a file (.txt that contains 3 lines of 180 numbers each) and it runs perfectly. The problem is that as you may see I am just returning the array "data1", and I would like to return 3 arrays (data1,data2,data3) and 3 integer (total1,total2,total3) into the same method. Any ideas of how could i do it?. Thank you so much ;)!  public int [] OpenFile() throws IOException {     FileReader reader = new FileReader(path);     BufferedReader textReader = new BufferedReader(reader);      int numberOfTimeZones = 3;     int[]  data1 = new int[180];     int[]  data2 = new int[180];     int[]  data3 = new int[180];     int total1 = 0;     int total2 = 0;     int total3 = 0;      for (int i = 0; i < numberOfTimeZones; i++){         if (i == 0)         {             String firstTimeZone = textReader.readLine();              String[] val =  firstTimeZone.split ("\\s+");             for (int u = 0; u < val.length; u++)             {                 int stats =  (int)(Math.ceil(Math.abs(Double.parseDouble(val[u]))));                 total1 += stats;                 total1= total1/180;                 data1[u] = stats;             }          }         else         if (i == 1)         {             String secondTimeZone = textReader.readLine();             String[] val =  secondTimeZone.split ("\\s+");             for (int u = 0; u < val.length; u++)             {                 int stats =  (int)(Math.ceil(Math.abs(Double.parseDouble(val[u]))));                 total2 += stats;                 total2= total2/180;                 data2[u] = stats;             }          }         else         {             String thirdTimeZone = textReader.readLine();             String[] val =  thirdTimeZone.split ("\\s+");             for (int u = 0; u < val.length; u++)             {                 int stats =  (int)(Math.ceil(Math.abs(Double.parseDouble(val[u]))));                 total3 += stats;                 total3= total3/180;                 data3[u] = stats;             }         }     }     textReader.close();     return data1; }   }


Calculation of Distance of an object given the field of view of camera

I am using an Olympus M. Zuiko 45mm f/1.8 Camera, I have to calculate the distance at which the lens should be present so that it captures the complete object at once.  I know that the field of view of the camera is 27 degrees, and the aspect ratio is 4:3. Assuming that they are talking about the diagonal field of view.  I want to ensure that the camera at least captures the complete width of the object, so suppose if the camera is capturing a width w, it will be capturing the length 4w/3, therefore the diagonal would come out to be 5w/3.  now, I use simple trigonometry to calculate the desired distance  tan(field_of_view/2) = (diagonal_length/2) / (desired_distance)  so, desired_distance = diagonal_length / (2 * tan(field_of_view / 2))  Although the math looks correct to me, somehow the results do no match the actual phenomenon, can someone please go through this and suggest corrections?


How to get rid of update notifications for a given app in Google Play Store?

General question I have an app X installed on my device in version Y. I don't want to update it to any newer version (Y+z) for some reason. Still, the Google Play Store app always lists updates for X, which keeps me from a simple "update all". My question, put to a single sentence:  How to hide updates for X permanently from the "available updates" list?   Specific examples First, I know there are alternatives as e.g. the , which can handle this quite well (skip this update, skip all future updates). I prefer a "generic solution", which does not depend on a 3rd party's market app. Second, I know that  includes a "Market doctor", which can be used to disconnect an app from Google Play.1 However, in my specific case that only worked for a few hours: I disconnected GTalk, as I don't want it replaced by Hangouts. The update notification disappeared for a few hours, then it was back. No idea what restored the "link". Third, just to make sure: I'm not talking about the "auto update" feature as discussed e.g. in . I was rather hoping for something close to , but without the need to "freeze" the app in question (which I still want to use, but in the version installed, not in a "future version" available). Fourth: No, uninstalling the app in question is no option here, though it would perfectly hide any future updates from being displayed :) Nor is "freezing", as the app is used regularly. Fifth: There is a related question for my GTalk example:  However, I want the opposite: No update.  It might very well be that "Google Apps" (and other pre-installed apps) are handled in some specific way, and restore their "market links" themselves somehow. For this case, my question includes: How to prevent that from happening?  Update There's a  discussing the very same issue. Until recently, a work-around for "user installed apps" was to uninstall them and then sideload the .apk – but even that stopped working. Well, re-signing the .apk with a different key might work for user-apps. But both would fail for pre-installed apps (can't sideload them to override; different signature would refuse that install completely). Moreover, there's an  on this by some "joel.bou..". Not hard to guess, though blanked out: that would be Joël Bourquard. If it's really him, then that's really an issue (for those who don't know: Joël is the dev behind Titanium Backup). Let me quote from the issue:  For the record: in the Android Market days it was possible to "Attach" or "Detach" apps (on rooted devices) with a system tool such as Titanium Backup. But nowadays (with the Google Play Store app) this has become nearly impossible to do, because the complete app list seems to sync from Google's servers and the user has no control over that.  Which explains why detaching with apps like Titanium Backup is no longer permanent. And I'm afraid I've asked the impossible. But I thought the same in the past with other questions, and surprisingly got solutions here. So I do not yet give up hope on this one!  1: what that does is explained by eldarerathis  (thanks to  for digging that up!)


Refreshing a lightning app page component (visualforce page used as component) when opportunity stage is changed

I have created a lightning app page with type 'Record Page' and overridden default Opportunities page. I have added a new tab to its content and added a visualforce page as its component. Please see the image below.     The visualforce page contains codes to display documents and download link based on the current stageName of the opportunity. The code is as below.   <apex:page controller="stageDocus">     <apex:panelGrid columns="5" id="theGrid" width="80%" style="margin:30px auto; text-align:center;">         <apex:repeat var="sld" value="{!docs}">             <div style="float:left; width:20%;">             <apex:panelGroup id="theGroup1">                 <apex:image width="100%" id="theImage1" value="http://icons.iconarchive.com/icons/alecive/flatwoken/512/Apps-Google-Drive-Slides-icon.png"/>                 <apex:outputLink value="/servlet/servlet.FileDownload?file={!sld.Id}" target="_blank" id="theLink1">{!sld.Folder.Name}/{!sld.Name}</apex:outputLink>             </apex:panelGroup>             </div>         </apex:repeat>     </apex:panelGrid> </apex:page>   The page is working fine when loaded. But if we change the stage, the content is not refreshing. We have to reload the page to see the updated content based on the new stage.  The apex class code I used is a below  public  class stageDocus  {     public String currentRecordId {get;set;}     public Opportunity Oppo{get;set;}         public stageDocus() {         currentRecordId  =  ApexPages.currentPage().getParameters().get('Id');          Oppo = [SELECT Id, Name, StageName, Amount FROM Opportunity WHERE Id = :currentRecordId];     }     public List<Document> getdocs()     {         List<Document> doc = [SELECT Id, Name, FolderId, Folder.Name FROM Document WHERE Folder.Name like :Oppo.StageName];         return doc;     } }   How can I refresh the visualforce page used as lightning page component whenever the Opportunity StageName is updated. Please help me.


Book recommendation regarding complex numbers.

I have just studied complex numbers from a standard text book for high school (NCERT in India), so I posess rudimentary knowledge of complex numbers, but I would like to brush up my basics again as well as gain knowledge of the tools required for olympiad level problems (not participating in one, but would like to solve such problems). Does anyone have recommendations for such books which I can use to both brush up my basics and learn and study a bit advanced level problem (along with proper explanation, ofcourse)? Also please recommend books limited to high school level (+ national olympiad level). Your help would be really appreciated. THANKS


Password for Windows in language which is not available

My Password to enter Windows is in Greek, but in the logon Screen the Greek language is not supported.  The same thing happened with another person in the (), but the answers cannot help me... First I don't have a recovery disk. Second, on the end, he solves the issue with a solution is on a  written in Turkish, which I don't speak.  Please, can somebody somehow help me?  This is really a Problem which Microsoft should have not allowed to happen.    Edit #1  Issues occurs even if I have a CD.  Because until the command line I can make it, even without CD, but the language which I have to write is Greek, and the commands which I have to type are in English.   I turn on the Computer; I press F8; I choose "Repair Computer"; System asks for an input language;  4.1. I choose greek. System asks for Username and Password. In Username, there are 2 options:  5.1. My Administrator Account, which has a Password in Greek language;  5.2. The second option is an accound I see first time - HomeGroupUser$ - which I dont know the Password. I choose my account and I put my password (in greek); Now I have some more options, but the language I can write is greek... and that's the Problem.


Git hub repository pages inside the nested folder are not ranking

I have a git hub repository for hackerrank solutions which is ranking very well.  Here is the link-   My repository is ranking well if someone searches for hackerrank solutions but it's not ranking for files and folder which are present in the nested folder in the repository.   ex-   people are not able to find the solution for drawingbook.java  If anybody search drawingBook it's not ranking at all. Can anybody explain why and provide the solution for the same?  What I should do to rank my java programs?  Note: I really dont understand whether this question should be a part of seo or not because its related to git hub repository.


This problem and the regular aspect ratios for non-Meta emails were tested in both Chrome and Firefox on my Mac.    So I got this email about Meta automatically, and the aspect ratio is very, very off:    This problem only applies to Meta emails, that I know of;  , , and  don't have this problem.


Is this fastest way to get random records in mysql?

NOTE : Yes! there are number of related questions to this.But I have unique approach which is not mentioned in any other post and I want to know if it is fast.  So all other questions have accepted answer as below  SELECT * FROM catalogue order by RAND() LIMIT 5   But I heard it is too slow for large table.So I want to know if below approach is faster than above code.  //I know my row count.500k <?php $rand = rand(1,499990) $limit = "$rand , ",$rand+10;   and my query wil be   SELECT * FROM catalogue  LIMIT $limit   where $limit will be like 1,10 , 450,460 etc...


how to reverse the words in a string but not characters in C Programming

I have this program  #include <stdio.h> #include <stdlib.h>  int main() {     char text[30];     int i,j,n;     puts("Enter the Text:");     gets(text);     n=strlen(text);     for(i=n;i>=0;i--)     {        if(text[i-1]==' '||text[i-1]==NULL )        {            for(j=i;text[j]!=' ';j++)            {                printf("%c",text[j]);            }        }         printf(" ");       }      getche(); }   Suppose if i input is "I am Happy" then my output is "Happy am I"  I am not sure where i went wrong in this program, i am not getting all the words , I am getting result as "happy [=w   am " .Please programmers help me.  Thanks In Advance.  i have found the answer , thanks for your helps, Below is my code  #include <stdio.h> #include <stdlib.h>  int main() {     char text[100];     int i,j;     puts("Enter the Text:");     gets(text);     strrev(text);     for(i=0;text[i]!='\0';i++)     {        if(text[i+1]==' ' || text[i+1]==NULL)        {            for(j=i;j>=0 && text[j]!=' ';j--)             printf("%c",text[j]);        }        printf(" ");     }     getche(); }