How many even numbers will $99$ dice show if we roll them for eternity under a certain condition?

Consider a six-sided die with numbers from $1$ to $6$. Imagine you have a jar with $99$ of such dice. You throw all dice on the floor randomly. You look at one of the dice on the floor at a time. For each die, you do the following:   If it landed at an even number $(2,4,6)$, you turn the die so that it lands on the number $1$. If the die landed on an odd number $(1,3,5)$, you throw the die up in the air, so it can land on any number.   After you finish doing the above for all dice on the floor, you come back to the first die and repeat the entire process again. You keep on doing this until eternity (for a billion years, let’s say). If I come into the room after a billion years, how many dice on the floor will have even numbers up?


Javascript: negative lookbehind equivalent?

Is there a way to achieve the equivalent of a  in javascript regular expressions?  I need to match a string that does not start with a specific set of characters.  It seems I am unable to find a regex that does this without failing if the matched part is found at the beginning of the string.  Negative lookbehinds seem to be the only answer, but javascript doesn't have one.  EDIT: This is the regex that I would like to work, but it doesn't:  (?<!([abcdefg]))m  So it would match the 'm' in 'jim' or 'm', but not 'jam'


How do I overwrite an element from an array?

Can anyone of you help me overwrite something from my Spherocylinder array?  I've got this currently:     public Spherocylinder deleteSpherocylinder(String labelIn)    {       Spherocylinder result = null;       int index = 0;              for (int i = 0; i < elements; i++)       {          if (object[i].getLabel().equalsIgnoreCase(labelIn))          {             //My issue is with the line of code below, i know this is              //how i delete an element in an arraylist but i know want to              //delete it using an array.             result = object.remove(i);          }       }        return result;    }   where (object) is the name of my Spherocylinder array and (elements) is an int I use which tells me how many elements i have in my array. This line of code is just one of my methods in my class, any help would be appreciated.


Content of file display.props, loaded via .xml  Xvfb Display Properties Wed Jul 27 18:31:50 CEST 2016 DISPLAY=\:20 XAUTHORITY=/tmp/Xvfb4443942380574278711.Xauthority   Now I want to read this file and get the disply number (20)      String xvfbPropsFile = System.getProperty("display.props");     Pattern p = Pattern.compile("DISPLAY.*([0-9][0-9])",             Pattern.MULTILINE|Pattern.DOTALL);     Matcher m=p.matcher(xvfbPropsFile);   However this match and all the others that I tried do not work, any ideas?


Updated Ubuntu 16.04, now I'm running Kali?

Updated Ubuntu 16.04 today using the software updater. Now my PC is running Kali? There were something like 2Gb of updates, which I thought at first was because I haven't updated in a while. Now I'm thinking that it was downloading Kali. Here's a  of the new boot-up process.  The screen will continue to flicker for another 30 seconds or so, then stop flickering leaving the text on the screen. I tried switching the display manager from gdm to lightdm, which will boot me straight to the console and without flickering, but still no desktop.  I'm not altogether sure how I managed to accomplish this. It must have been when I was trying to get Katoolin running.  Any tips as to how I can either get the desktop or revert the updates?  Contents of cat /etc/lsb-rolling:  DISTRIB_ID=Kali DISTRIB_RELEASE=kali-rolling DISTRIB_CODENAME=kali-rolling DISTRIB_DESCRIPTION="Kali GNU/Linux Rolling"


How can I optimize my web server to run MyBB faster?

I am running a web server with MyBB and Pingdom says it takes 629ms to load my site's index. I was wondering if there is a way to lower this. This is the information I have about page generation time:  MyBB Debug Information  Page Generation  Page Generation Statistics Page Generation Time:   55 ms   No. DB Queries: 16 PHP Processing Time:    53 ms (96.13%)  DB Processing Time: 2 ms (3.87%) Extensions Used:    mysqli, xml Global.php Processing Time: 47 ms PHP Version:    5.5.9-1ubuntu4.19   Server Load:    0 GZip Encoding Status:   Disabled    No. Templates Used: 78 (75 Cached / 3 Manually Loaded) Memory Usage:   2.5 MB (2621440 bytes)  Memory Limit:   128M   To provide further debugging information I am providing this link to Pingdom's site speed test to provider further information about the page:   I am trying to optimize the site to run as fast as possible. I am running the apache2 web server and would like to know what steps I can take to optimize it's load time as much as possible. I also have CloudFlare in front of the site since they cache certain files. PHP5 is configured to utilize the opcode caching.  EDIT: This is not a duplicate question. I asked how to optimize my web server not how to do load testing. Can someone please explain how they are remotely similar?


Discrete Mathematics Wording Difference Between "Show" and "Prove"

I just took a midterm for a Discrete Mathematics class. On couple of questions, it says "Show why this is true". For example, a sample question might have said "Show that five consecutive numbers is divisible by 120"  My question is, is there a difference between "show" and "proof"?


Why do Unix man pages use double backticks in place of double quotes?

I've noticed that man pages and other documents formatted by Unix utilities often use double backticks `` followed by double single quotes '' to wrap quoted phrases instead of the double quote character ". Single quotes are similarly replaced. Why is this?  Here are a couple examples, from the man page for grep:   To find all occurrences of the pattern `.Pp' at the beginning of a line:         $ grep '^\.Pp' myfile   The apostrophes ensure the entire expression is evaluated by grep instead  of by the user's shell.  The caret `^' matches the null string at the  beginning of a line, and the `\' escapes the `.', which would otherwise match  any character.   The grep utility is compliant with the IEEE Std 1003.1-2008 (``POSIX.1'')  specification.


Document with 2 asymmetrical/slanted columns?

I was wondering if it is possible (I think so) and how to have to asimmetrical/slanted columns on a page in a LaTeX document like in the following picture:    What's the easiest (i.e.: no Tikz) way to achieve such result? Thanks to anyone in advance!


How to restrict the number of elements in python lists

I came from C world where the size of buffers can be controlled in advance. For instance, declaring a buffer of doubles that holds 10 elements, we do:  double *buffer = calloc(10, sizeof(double));   In Python, it is quite the contrary in the sense that we don't need to worry about the details and the size of the buffer by saying buffer=[].  My question is: If I want to restrict a python list to hold an arbitrary number of values, say 10 doubles, how can we do that with default python lists or maybe numpy?


To find all $n$ such that $(n-1)!+1$ is a perfect power of $n$

How to find all positive integers $n$ such that $(n-1)!+1$ can be written as $n^k$ for some positive integer $k$?


A rigid steel bar with mass $M$ is hit sideways (very close to its end) by a steel ball with mass $m$ and velocity $v$. What are the equations of motion after elastic impact and how about conservation of momentum and energy?


I wonder whether the past tense is interchanged with the present tense

The reason I stopped smoking was that all my friends had already stopped smoking.   The reason I stopped smoking is that all my friends had already stopped smoking.   -  I wonder if the verb "was" is replaced for "is", which reflects the present time. I think it's not possible because the time I stopped smoking was the past, and the cause inspiring the determination to stop smoking was also the past thing.  Is it right?


Invalid attempts to ssh my server, how do I prevent this?

I have a mail server with ssh keypair auth. In the log file, I always notice these kinds of attempts to log in. Can anyone please explain what mistake I made?       debug1: session_input_channel_req: session 0 req winadj@putty.projects.tartarus.org Jan 16 10:44:58 mail sshd[20519]: debug1: Forked child 18504. Jan 16 10:44:58 mail sshd[18504]: debug1: Set /proc/self/oom_score_adj to 0 Jan 16 10:44:58 mail sshd[18504]: debug1: rexec start in 4 out 4 newsock 4 pipe 6 sock 7 Jan 16 10:44:58 mail sshd[18504]: debug1: inetd sockets after dupping: 3, 3 Jan 16 10:44:58 mail sshd[18504]: Connection from 211.222.177.29 port 58735 on 192.168.88.10 port 22 Jan 16 10:45:01 mail CRON[18510]: pam_unix(cron:session): session opened for user root by (uid=0) Jan 16 10:45:01 mail CRON[18510]: pam_unix(cron:session): session closed for user root Jan 16 10:45:18 mail sshd[18504]: Did not receive identification string from 211.222.177.29


custom print all month_year values using start and end values in python

I've a start year_month 202009 and I've a end year_month 202104. How do I print all the year_month values between them? >202009,202010,202012,202101,202102,202103,202104


What's a replacement for Univers Condensed?

I'm failing to find a replacement for  to use on the Web. I'm using  (portfolio), and right now using  which is much wider than Univers. I tried Googleing but no luck, so I decided to sign up and ask the pros.


How can we run a command stored in a variable?

$ ls -l /tmp/test/my\ dir/ total 0   I was wondering why the following ways to run the above command fail or succeed?  $ abc='ls -l "/tmp/test/my dir"'  $ $abc ls: cannot access '"/tmp/test/my': No such file or directory ls: cannot access 'dir"': No such file or directory  $ "$abc" bash: ls -l "/tmp/test/my dir": No such file or directory  $ bash -c $abc 'my dir'  $ bash -c "$abc" total 0  $ eval $abc total 0  $ eval "$abc" total 0


I want to know wether if |f| is continuous at every point of R, then f is continuous also or not?  and what about its converse? if f is continuous in every point of R, does that means |f| also continuous?  Thank you


Determine if an HTML element's content overflows

Can I use JavaScript to check (irrespective of scrollbars) if an HTML element has overflowed its content? For example, a long div with small, fixed size, the overflow property set to visible, and no scrollbars on the element.


How is $\displaystyle\lim_{n\to\infty}{(1+1/n)^n} = e$? Please help by letting me know why in a very simple way. Thank you.


Quotient groups and isomorphisms, example

I am wondering whether it is possible or not thata:  $G \cong H$, $G_0 \cong H_0$ but $G/G_0 \not\cong H/H_0 $. In fact I found tahat as exercise asking to find such example but I can not find any. What is more important I can not understand how can it be possible. I thought isomorphisc groups are in fact thesame object with maby different names so I would be grateful also for some comment connected with that doubt.


Why prefer composition over inheritance?  What trade-offs are there for each approach?  When should you choose inheritance over composition?


variation of a function over countable intervals

Let $f$ be a function of bounded variation on $[0,1]$. Let $\{[a_n,b_n]\}_{n=1}^\infty$  such that $(a_n,b_n)$ are pairwise disjoint and $\cup_{n=1}^\infty [a_n,b_n]=[0,1]$. (for example, $[1/2, 1], [0,1/3], [1/3,1/3+1/3^2], \cdots$ ) Can we write  $$ \operatorname{Var}_{[0,1]} f=\sum_{k=1}^\infty \operatorname{Var}_{[a_k,b_k]} f? $$


Is there an open dense set $S \subset [0,1]$ such that $m(S)<1$?

$m$ is the Lebesgue measure. I was thinking that: $\Bbb Q$ is dense and $m(\Bbb Q)=0<1$ but it fails to be open, but maybe I could construct an open set from this fact, or also using that $(0,1)$ is a dense and open subset but $m(0,1)=1$.   Any hints or ideas will be very appreciated. Thanks.


Can I enter **FIRST** to a different schengen country from my d-type national visa

I'm a non-EU country citizen and going to start my study at end of this month in Italy. I'm a valid D-type national Italy visa holder, it's multiple, valid for 5 months (>150 days long-stay) from now on and it says "VALID FOR: ITALIA". I don't have anything else but that visa.  I've changed my travel plan yesterday, I want to stay for couple days in Sweden before entering to Italy. After my trip I will turn back my non-EU country and later I'll go to Italy.  Authorities I asked in my country said, It's valid for Italy and the situation belongs to the officers in the airport. They can let you go or decline.  Can I enter to Sweden with my visa? Do I need anything else? Like supporting documents or anything else? I have all my travel docs, for Italy and will have for Sweden if this thing can be.


When I search about the cardinality of real number set in Wiki ()  I found: By the  Cantor–Bernstein–Schroeder theorem we conclude that $c=|P(\mathbb{N})|=2^{\aleph_0}$  And the Cantor–Bernstein–Schroeder state that if $A\preceq B$ and $B\preceq A$, then $A \sim B$.   How can I use it to prove that $c=|P(\mathbb{N})|=2^{\aleph_0}$. How to create a bijection function mapping $P(\mathbb{N})$ onto $\mathbb{R}$?


I had a problem with installing Octave. Now I am unable to close it once it is opened. And I am unable to shutdown the computer. What path should I set, what /etc/environment should I set? I had used these commands to install: $ sudo apt-add-repository ppa:octave/stable $ sudo apt-get update $ sudo apt-get install octave $ octave


Is it worth spending the coin on turn 1 to summon a Novice Engineer

is a 1/1 creature, costs 2 mana and allows the player to draw a card when it is played. Under what circumstances (if any) would it be worth playing the coin on the first turn to summon this card, sacrificing future mana advantage for immediate card advantage?


Retroactively approve suggested and rejected edits

There were    questions on applying rejected suggested edits to one's own post. Could this functionality be implemented? It is always possible to do so by hand, but this  does not credit the editor (rep, edit count, etc) is a bit tedious  Implementation could be to use some of the free space at the suggested edit page left to the Next-button. Have a button there with No, this looks good, accept, for example.  Advantages  Saves the tedium of having to manually apply rejected edits by hand. Gives credit where credit is due. Only appears on your own posts, does not clutter the UI. Design already there.  Disadvantages  Implementation overhead Does not school the editor to rather leave a comment, but: Many would probably prefer to have the edit spelled out rather than hinted in a comment


Curve Object Deformed by Curve - Distortions (Artefacts)

Shaping curve object by curve (modifier) results in a terrible shape with cracked surface. Here is an extreme situation, but good visible issue.  Perspective   Top   How can I curve it smootly without adding more control points or remeshing?


Removing dotted assist lines? Problem only occurs when Appending!

When I open the file directly from my desktop, these assist lines don't seem to show. But when I Append it, these random dotted lines appear that seem to point to its parented object. Is there any possible way to hide these lines, because they can start to get really distracting when animating. Picture of my problem:


Community♦ user edit: How does it know what to edit?

I just noticed that the  user edited a ~1 year old  of mine. As you can see, the method call was changed from getSfGuardUser to getGuardUser:    Now I checked the documentation and it seems that the edit is correct.  But how did Community know about that? As far as I know, it is an automated process. Does it have a reference of all possible APIs of languages/frameworks (which seems very unlikely) or is there a routine admins can trigger, for replacing content? Or is it a secret?


Do we know who is in Cersei's Queensguard?

We obviously know that The Mountain is in the Queensguard but do we know any of the other members in it?  Can we assume that those that were in Joffery's/Tommen's Kingsguard and were still alive at the time Cersei was made queen are in it?


How do i fill in void space's with poly's?

I am poly modeling a head and I was wondering if there was a shortcut to insert poly's into this blank space. I have tried watching video tutorials but I dont see anything useful.


Find the line number which contains the pattern using custom regex delimiter

As in  I'm trying to get line numbers which contains the pattern. My pattern contains slashes so I wanted to add custom delimiter.  This simple one works:  sed -n '/file/=' temp.txt   Using delimiter for string replace works too:  sed 's|file|gile|' temp.txt   but when I want to add delimiter to first example it doesn't:  sed -n '|file /etc|=' temp.txt   I know I can escape slashes but I would prefer to add custom delimiter. Any idea how to fix my command?


i wanted to make eyes similiar to robot in image.I tried intersect face with another cylinder but while adding sub surface modifier the mesh distorts


I am a total newb to python. I pieced together a code that works great except when I have brackets in the string for the find_str variable. I tried using double brackets but it doesn't work either.  The goal is to replace all text in a list of CSV's that contain _(FAIL)_ with SUCCESS.  Here is my code:  import glob import re   filenames = sorted(glob.glob('*.csv')) filenames = filenames for f2 in filenames:      csv_name=f2      # open your csv and read as a text string     with open(csv_name, 'r') as f:         my_csv_text = f.read()      find_str = "_(FAIL)_"     replace_str = "SUCCESS"       # substitute     new_csv_str = re.sub(find_str, replace_str, my_csv_text)       # open new file and save     new_csv_path = csv_name      with open(new_csv_path, 'w') as f:         f.write(new_csv_str)


Formulate and Prove by induction a general formula

$1^3=1$ $2^3=3+5$ $3^3=7+9+11$ $4^3=13+15+17+19$ Please help me to find the formula. I have no idea about this


I have an Emirates flight from Luanda to Dubai arriving at terminal 3 and then an onward flight to Delhi on Air India Express from terminal 2 at Dubai. What do I need to do with my checked in bags? Do I have to collect them and check in again at Dubai? Also, do I require a transit visa at Dubai for changing terminals?


Should I buy a flight ticket before I apply for my visa?

I am traveling through Schengen (Germany) and I have to extend my visa and immigration needs to see an itinerary. If they do not allow me to extend, I will need another ticket - so I don't want to pay for this before I hear back about the visa.  Should I buy a flight ticket before I apply for my visa ?


Is it possible to let \w regexp pattern to allow characters such as é as well? If not, what alternatives are there?

Lets say I have  a regexp that looks like:  \w+   Then this string would pass:  helloworld   However this won't:  héllowörld   It will stop at é (and theöwill break it as well)  even though for a human héllowörld doesn't sound so far fetched as a single word.  Is there a way I can improve \w so it will also include special word characters? Or do I have to append every special latin character into my regexp like this into:  [\wéèåöä...........]+   Because that doesn't seem like the best option to try and figure out what all the different special latin characters there are in the world that would be reasonable.  What options do I have?


The essential Number theory required for Algebraic Number theory and Arithmetic Geomtry

So far I've studied a lot of courses like Algebraic topology, Homological Algebra, Differential Geometry and Manifolds but I've never studied Number theory and I am going to be enrolled to a master programme that includes in its curriculum the courses Algebraic Number theory and Arithmetic Geometry. I would like recommendations of number theory books (ideally with solved exercises) that build solid background for these two courses. Thank you very much in advance!


Permission issues - cannot write www-data:www-data /var/www

When I set up a site on my server I set permissions to /var/www/ like so:  chown -R $USER:$USER var/www/   However, when I try and write to my image directory I get a permission denied error. The only way I have found is setting the permissions like this:  chown -Rf www-data.www-data /var/www/   So this fixes that problem, but creates another one. Now I cannot save any files to my server via ftp on my ide.   I'm a bit new to this and don't fully understand the difference between the two ways of setting permissions. Any help would be appreciated.   EDIT Not a dupe. I've done my research. This is not an issue about using sudo in /var/www. I'm getting permission denied errors when generating and trying to save images to a specific directory using GD Lib.


let's say I have an ADC with a full scale input from 0V to 2.1V. I want to protect the input of the ADC from voltages > 2.1V. I thought about using 3 diodes like shown below. Each diode has a breakdown voltage of 0.7V: When I use this circuit the ADC should be protected from voltages > 2.1V, right? Is their maybe a better way to protect the ADC inputs?


Sort dictionary of arrays by highest element

I have a dictionary, where each key maps to an array. I want to sort the dictionary based on the highest value in the array of each key. For example, the dictionary: {'r': [2, 2], 'e': [4, 5], 't': [1, 1], 'h': [2, 2], 'y': [1, 2], 's': [0, 1], 'a': [0, 1]}  should become: { 'e': [4, 5], 'h': [2, 2], 'y': [1, 2], 'r': [2, 2], 't': [1, 1], 's': [0, 1], 'a': [0, 1]|


Where are "notifications" in the new topbar-design?

I cannot find the good old "notifications"-section in the new...lets say layout. Is it just scapped, does it have a new location or am I just missing something obvious?   To be clear : It is the StackExchange▼ drop down box I am referring to.


we add the following user to the group white_house  kuku , trump , karter  usermod -a -G white_house kuku usermod -a -G white_house trump usermod -a -G white_house karter   as all know we can verify that users was added to the group by   grep white_house /etc/group   but is it possible to verify it by some command line or more elegant way ?


Im using a rock generator add on to create rocks, and have been looking at collisions between rocks using rigid bodies. I found that the rocks dont actually collide, but come close, this lead me to look at edit mode and look at (what I think is) the mesh of the rock.  This rock generation add on is great for producing lots of rocks quickly, so I dont want to create rocks (up to thousands) individually. Is there a way to remesh this to have the mesh intersect with the actual object? Ive tried the remeshing tools in blender, but these alter the shape of my rock (I dont mind a small change, but the changes were quite drastic)


I have a question regarding using the word it in a sentence. My question is whether I am properly using the pronoun it in the text below:     Making mistakes is an expected part of life; it is inevitable.   Thank you for your time. Any feedback is very much appreciated.


Why do we say "who you were" and not "whom you were"? Isn't it the object of the verb?

I have a grammar which says that "whom" is used when it follow a preposition.  E.g: to whom am I speaking. to whom it may concern.  The grammar also says that "whom" is the object form of "who". E.g. He was a person whom everyone regarded as trustworthy. (Whom is the object in the sentence.) "However, this is now felt to be excessively formal by most speakers and who is commonly used instead." (VINCE, M. and SUNDERLAND, P.,2003).  I'm reading "Inferno" and there is this sentence:  "Nobody had any idea who you were (...)"  Wouldn't that be whom? Is "who" in that sentence an object? You is the subject and who would be the object.


I am trying to build the multi-level model as demonstrated. When a user creates a campaign they will select some categories and some metros from tables Category and Metro. Those selections will then be placed within two tables as campaign_category and campaign_metro. But upon the creation of those entries I wish for then another table to be populated with the permutation of those combinations within table campaign_category_metro to allow for linking the campaign, the category and metros selected for a user to set a bid price on.  For example say a user creates a campaign that has id 10 and selects category with id 1 and 2, and metros with id 3 and 4. In the tables campaign_category appears:    and in table campaign_metro appears:     In campagin_category_metro I want to have those permuted rows from the tables above as:    Then a user can set a bid on those campaign/metro combinations.  As of now, in creating a campaign, and selecting categories and metros I can get the tables campaign_category and campaign_metro populated but the final table, campaign_category_metro, remains blank. Below is my model as is:  First Level:  class Campaign < ActiveRecord::Base        has_many :campaign_metros, dependent: :destroy     has_many :metros, through: :campaign_metros      has_many :campaign_categories, dependent: :destroy     has_many :categories, through: :campaign_categories end  class Category < ActiveRecord::Base     has_many :campaign_categories, dependent: :destroy     has_many :campaigns, through: :campaign_categories end  class Metro < ActiveRecord::Base        has_many :campaign_metros, dependent: :destroy     has_many :campaigns, through: :campaign_metros end   Second Level (populates, but the relation to campaign_category_metro does nothing):  class CampaignCategory < ActiveRecord::Base     belongs_to :campaign     belongs_to :category      has_many :campaign_category_metros, dependent: :destroy     has_many :campaign_metros, through: :campaign_category_metros end  class CampaignMetro < ActiveRecord::Base     belongs_to :campaign     belongs_to :metro      has_many :campaign_category_metros, dependent: :destroy     has_many :campaign_categories, through: :campaign_category_metros end   Third Level (Nothing shows up upon creation of a campaign):  class CampaignCategoryMetro < ActiveRecord::Base     belongs_to :campaign_category     belongs_to :campaign_metro end   How can I allow for the third level table to be populated with the total permutations of selected category and metro upon the creation of a campaign?


Single entry schengen visa for a cruise?

If I am taking a cruise starting from Rome and covering only Schengen countries. Is single entry Schengen visa adequate for the trip


Installed 13.10 ubuntu in my HP laptop, after booting up, it doesn't the display

i installed 13.10 and installation completed successfully but the display doesn't come up after booting up from Ubuntu screen. please help me troubleshoot this issue. ASAP


How do I find out what tool a shortcut is triggering?

I used to have problem with connecting two objects, because when I smooth the final object, there was a darker line on the connected parts (for example when I was making head, I've had eyes darker this way). Then I found out that I can get rid of it by hitting Ctrl+N, but I don't realy know what it does. I can just see that the lines are gone. So, what does Ctrl+N do?


How to decide whether a number in a dictionary is a str or float?

I am asking this because I saw a dictionary produced from two different sources, in which one number is a float, and the same number is a string.  data = {'name': 'jack', 'confidence': '0.95'}  The 'confidence' is a float in once case, and a str in another case. Why is that?   conf = data.get('confidence')


How to remove the box and work with the vertices?

Hi I am new to Blender (and 3d design), I have seen that some people can do this. I mean that they can create a cube, apply the "Subdivision Surface" modifier to it and be able to modify the object using the vertices that are formed when applying the modifier. On the other hand, if I create a cube, and apply the modifier "Subdivision Surface", it looks like this  The object still has the shape of the cube and I can only modify it by modifying the surrounding cube. I would need to know how to remove the cube and be able to modify it using the shape of the object. Thanks in advance.


Depletion Mode MOSFET Modelling in SPICE

Does anyone know how to model a depletion mode N channel MOSFET in spice?  I have looked online however the majority of resources have shown how to model a depletion type or enhancement type. I specifically want to model a FET that is fully on when there is a 0 Vgs voltage.  Resources i've looked at


I want my old speed dial page on google chrome

I know this has been posted alot around here. But this is about the new google update after I tried to install google chrome on a new laptop. Google Chrome Version 29.0.1547.76 m has ruined the speed dial look I once had. It now shows a search input box and a smaller set of speed dials below it. (see image please)    Is there a way to get back the nice clean speed dial page we all love?


Convergence of recursive sequence $a_{n+1} =\frac{ 1}{k} \left(a_{n} + \frac{k}{a_{n}}\right)$

Let $$ a_{n+1} =  \frac{1}{k} \left(a_{n} + \frac{k}{a_n}\right) ; k>1, a_1>0 $$ The problem is to show that it converges.  Attempt: The sequence is not monotone but it has a lower bound. It seems that odd terms subsequence and even term subsequence are monotonic sequences (I wrote some basic code to make this observation) though I am not able to prove it analytically. I also know that if odd subsequence and even subsequence converge to same limit then the sequence also converges. So, that tells me that I am on the right track.  Please provide any hints.


How to properly scan input file and return integers inside

I am currently having some trouble on one of my assignments. I want to use a scanner to read the input file and put each number in the file into a int array. I found an answer through .  But when I used this code it returned something weird. Below is my input, code, and output.   20401 11087 62176 70095 20947 20098 90914 53475 51251 20065  Scanner s = new Scanner(new File(fileName));     int[] list = new int[10];     int i = 0;     while(s.hasNextInt())     {         list[i] = s.nextInt();         i++;     }     s.close();     System.out.print(list);   The output is [I@42a57993. Can someone please explain what I might be doing wrong.   Soultion: System.out.println(Arrays.toString(list)); Returns it properly. Thanks


Can light exist in $2+1$ or $1+1$ spacetime dimensions?

Spacetime of special relativity is frequently illustrated with its spatial part reduced to one or two spatial dimension (with light sector or cone, respectively). Taken literally, is it possible for $2+1$ or $1+1$ (flat) spacetime dimensions to accommodate Maxwell's equations and their particular solution - electromagnetic radiation (light)?


How do I prove that $S_3 \times \mathbb{Z}_2$ is isomorphic to $D_6$?

I was able to find an element of order 6 within $S_3 \times \mathbb{Z}_2$. I was also able to define a function mapping all 6 elements of $S_3 \times \mathbb{Z}_2$ to $D_6$ I the homomorphism portion would be too exhaustive to prove all 36 cases. How do I prove this.


Do creatures with summoning sickness count as tapped?

My friend played  (Destroy target tapped creature) and targeted a creature of mine with summoning sickness. Is a creature with summoning sickness considered tapped?


if I create an enum like so  enum test {   a=0,   b };   Is a variable of type enum test stored as 1 bit in memory, as that's the minimum needed to represent it?


Stack Exchange Android app doesn't display LaTex correctly

Why doesn't the Stack Exchange Android app display LaTeX as mathematical formulas correctly instead of just showing the LaTeX code ? It just shows the Raw LaTeX code which doesn't help when trying to read the mathematical formulas...


Does using versatile weapons with 2 hands disqualify them as Monk weapons?

When using either the quarterstaff or spear as a Monk weapon, do you still gain the unarmed bonus action from Martial Arts if using 2 hands(1d8)?   On pg.78 of the PHB under Martial Arts it states that a Monk weapon cannot have the 2-handed or heavy property, so I assume since the versatile property is not the 2-handed property or heavy property then it does not matter if I use it in one or two hands. However, why then would a distinction be needed since the only simple weapon that does have the 2-handed property is a Greatclub, which is also mechanically identical to a quarterstaff used in two hands. Why make a rule that doesn't apply to anything?  The other interpretation is that you're meant to use 1d6 for damage in order to gain the Monk's Martial Arts bonus action, and using a 1d8 will forfeit the bonus because the quarterstaff is now considered 2-handed. Pg.147 under Versatile states "A damage value in parentheses (in this case 1d8) appears with the property—the damage when the weapon is used with two hands to make a melee attack."


I have become a more honest person.   Is there a way in which I can replace the word honest in the above sentence with an adjective with the same root as integrity?


How can I print chunks of size 5 from a list and the remaining tail end that does not have chunk size of 5  For example  a = list(range(23))   I want to produce print out   [0,1,2,3,4], [5,6,7,8,9], [10,11,12,13,14], [15,16,17,18,19], [20,21,22]


Area 51 login no longer redirects nor logs in

For a long time, Area 51 has required a separate login process even after one has logged in to the rest of the network. One would click on the "log in" button in the header on Area51 and then be told to wait for a redirection back. That redirection is no longer working. Instead, I see a static page that looks like this:  Completing log in to Area 51 You will be redirected automatically  Even after waiting a whole minute, there is no change, and attempting to navigate back to  shows that I am still not logged in there.  Microsoft Windows 8.1 Mozilla Firefox 75.0 64 Bit


When I use the documentclass book, I notice that it will align even numbered pages to the right and odd numbered pages to the left, so that when printed, the text of my document will be closer to the center.  Is there a typographical reason for this, or even a logical one? I would have assumed the opposite alignment so that you would never have the problem that text would become hard to read in the center (oddly worded, sorry) when printed.


Why is Linux's filesystem designed as a single directory tree?

Can anyone explain why Linux is designed as a single directory tree?  Whereas in Windows we can have multiple drives like C:\, and D:\, there is a single root in Unix. Any specific reason there?


If $a \mid r$ and $b \mid r$ show that $\operatorname{lcm}(a,b) \mid r$ by using only elementary properties of numbers.


impact on hypothesis if t-stat is equal to t-critical value for one-tail two-sample t-test?

I have a two-sample t-test where the t-statistic is equal to the critical t-value (at three decimal points) at a p-value of 0.05. does this mean i reject the null hypothesis or the opposite? thank you so much!


If I want to use the plural of "moderator" and also add the apostrophe plus S, how do I pronounce it? How do native speakers pronounce it?  Moderators = moderatorz Moderators's = moderatorziz or just moderatorz?  A sentence is:  "I always thought that moderators's decisions seemed fairly arbitrary."   I guess moderatorziz is correct but it sounds weird to me. Do native speakers pronounce it as moderatorziz?


uncountable noun + and + uncountable noun

Which sounds better?    There is water and butter in my fridge. There are water and butter in my fridge.   I think it should be: is.  But what if we said:    How much flour and butter is needed to make a pizza? How much flour and butter are needed to make a pizza?   In that case, I think the plural verb: are, is the correct choice, which means (I think) there is a contradiction between both sentences.


Let $X_1,X_2,X_3,X_4$ be independent $N(0,1)$. Find the distribution of $Y= X_1X_2+X_3X_4$  I am having difficulty in solving this question or atleast how to approach it.


Now that iOS 11 supports HEIC images as first-class citizens, I'm wondering if there's any way to convert existing JPEG images from the camera to the new format?  My wife's iPhone 6 is stuffed to the gills, and the vast majority of it is photos. Upgrading them in-place would save many gigs.


Lets say there's a function that produces a random number between 1-10000. We need to verify that the generated numbers are truly random and that the distribution is uniform.   How do we test the randomness? How many numbers we need to know that the results are statistically significant?


What would you call a person who helps you only to later boast about it or repeatedly, emphatically mention it during a fight?

Say someone helped you of their own volition. You express your gratitude for it. Then, whenever you have an argument over something, anything, they see it fit to repeatedly mention the fact that they helped you this one time or two times or so. Is there a word or an idiom fit for this situation?


If I flag a question, then get close vote privileges, I should be allowed to vote to close it

I've just passed the threshold for being able to vote to close on another SE site. Some of the questions I flagged prior to having this privilege are still in the review queue because not enough votes have been cast to close them yet (it's a much smaller site than SO).  It seems that once you have the close vote privilege, . However, it's not clear whether this is retroactive and applies to the still-open flags I raised before getting this privilege.  When I go to the close vote review queue, these questions are still visible in the queue. Then when I click on "close" to agree with the close vote it says "You already flagged this question for closure". Searching on meta reveals that this (IMO very confusing) wording is because once you have privileges .   However, it's still not clear whether the old flags are converted to close votes. This is quite confusing.  So here's my suggestion.    If the flag that I cast when I did not have privileges to vote to close has not been retroactively converted to a close vote (which seems more likely) then I should be allowed to cast a close vote. If my previous flag does now count as a vote, I think this should be worded more clearly: You already voted to close this question (as opposed to You already flagged this question for closure) and/or make it not appear in my close vote queue to begin with (since I've already voted and it won't let me vote again).


Can this prepared statement prevent SQL injection?

$string = trim($_POST['string']) $sql = "INSERT INTO table (string) VALUES(:string)"; $query = $db->prepare($sql); $query->execute(array(     ":string" => $string ));   Can this block of code prevent SQL injection?  EDIT: This is the connection that I am making to the database. Does the charset of this code allows the above block of code to be executed and prevent the SQL injection?  //database credentials define('DBHOST','localhost'); define('DBUSER','root'); define('DBPASS',''); define('DBNAME','table');  //application address define('DIR','http://localhost/'); define('SITEEMAIL','noreply@example.com');  try {  //create PDO connection  $db = new PDO("mysql:host=".DBHOST.";port=3306;dbname=".DBNAME, DBUSER, DBPASS); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);     $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false);  } catch(PDOException $e) { //show error echo 'Looks like server is down please check back later'; exit; }


I could not seem to find a specific answer to my question through searching, so I thought I'd post it.   I am doing an ANOVA and I have a significant three-way interaction, each factor has only 2 levels, though. Is the Tukey HSD command in R software appropriate to tell where the differences are-- or do I need to do a simple-effects analysis?  Thanks everyone.


What is a standard deviation, how is it calculated and what is its use in statistics?


How to explain irrational numbers to laymen?

I am trying to describe how irrational numbers, which are all modeled as a series of fractions, can themselves not be fractions, and are instead part of a unique group of "decimal numbers" outside of fractions, called the irrational numbers. I am confused atm.    From , some example irrational numbers include:   $\sqrt 2$ the golden ratio The sqrt of all natural numbers which are not perfect squares Logarithms   Then they say:     Almost all irrational numbers are transcendental and all real transcendental numbers are irrational. Examples include $e^\pi$.   Rational numbers are fractions, which are included in the set of irrational numbers. Irrational numbers, however, are decimals and include things that "can't be represented as fractions" it seems.  But where I'm confused is, sqrt 2 can be represented by a series of fractions:  $${\displaystyle {\sqrt {2}}=\prod _{k=0}^{\infty }{\frac {(4k+2)^{2}}{(4k+1)(4k+3)}}=\left({\frac {2\cdot 2}{1\cdot 3}}\right)\left({\frac {6\cdot 6}{5\cdot 7}}\right)\left({\frac {10\cdot 10}{9\cdot 11}}\right)\left({\frac {14\cdot 14}{13\cdot 15}}\right)\cdots }$$  Similarly, $\pi$ can be represented by a series of fractions:  $${\displaystyle 1\,-\,{\frac {1}{3}}\,+\,{\frac {1}{5}}\,-\,{\frac {1}{7}}\,+\,{\frac {1}{9}}\,-\,\cdots \,=\,{\frac {\pi }{4}}.}$$  Finally, the natural logarithm can be written as a series of fractions:  $${\displaystyle \ln(1+x)=\sum _{k=1}^{\infty }{\frac {(-1)^{k-1}}{k}}x^{k}=x-{\frac {x^{2}}{2}}+{\frac {x^{3}}{3}}-\cdots }$$  It has been a while since I have added/divided/subtracted/multiplied fractions, but from what I remember doing any of those operations results in a new fraction. So I'm wondering what I'm missing when it comes to understanding irrational numbers. If irrational numbers can represent non-fraction numbers, yet they are themselves represented by a series of fractions, it seems the result of the series would itself be a fraction, and so the irrational numbers are all rational numbers. Looking for an understanding of how to explain the difference between rational and irrational numbers. I tried saying "irrational are decimal numbers you can't represent with a fraction", but then when getting into the definition of a rational numbers (fraction numbers), I was unable to explain how , how they themselves aren't representable as fractions. Thank you for your help.


Wi-Fi problems Acer Aspire e15 E5-575G-53VG Ubuntu 16.04 LTS

I've been having this wifi problem on my Qualcomm Atheros for a very long time and have looked for solutions everywhere, I've tried wicd, updating my driver from kvalo, etc..   I have though ran lspci -nnk | grep -iA2 net; dmesg | grep ath10k and get this error:  Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2   Please I really need help, my wireless-info will be found below    Edit: Forgot to mention this is a dual boot system along with windows 10


UBUNTU 14.04 LTS - FREEZES - How to Analyse?

Yesterday, I update the software in Ubuntu 14.04 LTS. After that, the desktop freezes after 10 minutes.  I am not using any Proprietary Graphics drivers. For me to analyze this issue, I would like to know where I have to start and what log files I need to look for pin pointing the problem.


How do I download vlc media player? E: Unable to acquire the dpkg frontend lock

E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 3476 (aptd) N: Be aware that removing the lock file is not a solution and may break your system. E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it?


What is the meaning of "algebraically indistinguishable"

I heard the term couple of times (in Field theory class and book), for example: The different roots of $p(x)=x^3-2$ are "algebraically indistinguishable".  I understand the meaning intuitively, but what does it really mean ?


If someone wants to turn a conversation into political way, we call it "politicize"  If someone wants to turn a conversation into drama, we call it "dramatize"  What do we call it when someone wants to turn a conversation into logical conversation?


Offsetting Overlapping Routes in Network Analyst

I've seen some questions tackle this issue, but havent myself found a working solution. Using ArcMap 10.2.2 Advanced with Network Analyst.   I use the Vehicle Routing Problem to route a couple delivery vehicles around, some resultant routes overlap.  Is there anyway to show all the routes at once? From my picture for instance, the intersection of the yellow/red/green lines, I would like to see all 3 travelling down Valley Blvd, instead of the highest ranked route.


How to empty/remove an input from JTextField when about to select another item from JList?

I am using JFrame for my program . When you enter value of a quantity in the text field and selects another item from the Jlist, the value stays and doesn't empty the text field. So what i want to happen is emptying the text field when I am about to choose another item from the list.  Here is the code for that portion:  if (selected == "SBCA Jacket"){         photo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/jacket.jpg")));         double p = 700;         String price = Double.toString(p);         priceField.setText(price);         int s = 500;         String stock = Integer.toString(s);         stockField.setText(stock);         int qty = Integer.parseInt(qtyField.getText());         int rstock = s - qty;           rstockField.setText(Integer.toString(rstock));         double total = p * qty;         totalField.setText(Double.toString(total));      }else if (selected == "SBCA T-shirt"){     ...


Android mobile app crashes when touching a job offer

As soon as I tab on a job offer on the start page (recommended jobs) the mobile app for Android of stack exchange crashes. "Crashes" in this case means that it just gets closed. No error message or something. Just like someone hit the "back" button. Is this a bug?


Does the existence (now proved) of gravitational waves imply the existence of Gravitons?

I studied the theoretical part about the Gravitational waves in General Relativity (linearization of gravity and small perturbations of the metric and so on).  But I was wondering about: since electromagnetic radiation is composed/carried by Photons (or better:the EM force), shall gravitational waves be composed/carried by Gravitons?   In the end:do gravitational waves imply the existence of gravitons? Or it's something unrelated and off topic?


I have mobile safari on my iPhone 5, but I don't get the mobile theme on Stack Overflow.    Is there any way to force mobile theme? The regular theme is causing me an issue for Ask Different. Ask Different Meta is Mobile theme for me.


Convert underscore to PascalCase, ie UpperCamelCase

If I have a string that looks like this:  "this_is_the_string"   Inside a bash script, I would like to convert it to PascalCase, ie UpperCamelCase to look like this:  "ThisIsTheString"   I found that converting to lowerCamelCase can be done like this:  "this_is_the_string" | sed -r 's/([a-z]+)_([a-z])([a-z]+)/\1\U\2\L\3/'   Unfortunately I am not familiar enough with regexes to modify this.


I have windows 10 + Ubuntu 18.04.4 LTS Dual boot setup I want to upgrade to Ubuntu 20.04.1 LTS from Ubuntu 18.04.4 LTS. I am not sure how to upgrade it. Using a dual-boot, do I need to do any different steps for a successful release-upgrade ? Thankyou


I'm not really sure if there is a solution to this but it strikes me that 90% of the time you are going to get most of your points by answering questions from beginners.  These tend to get mass answered and lots of upvotes occur.  I see no major issue with that.  However when a complex question is posted you are unlikely to see a large number of up-votes.  This means that those that answer easy questions will, on average, get more reputation points (I fully admit that the vast majority of my reputation points come from helping beginners).  Can anyone think of a way round this problem?  The only option, really, would be to get more "experts" (I mean no offence to the plenty of experts there already are on here ;)) on board or to, somehow, encourage up-voting of the more niche questions.  After all it strikes me that you can gain a good reputation for helping beginners but the best area to build a reputation is in the more complex niche areas.  Using stack overflow to demonstrate that you are a niche expert would, overall, make stack over flow a far more useful tool for things like job hunting.  Can anyone think of a solution to this?  Is there, even, a solution to this?  Edit: To clarify, I have no issues with helping beginners and do so myself a fair bit.  My point is that it seems to me for the more niche areas the system should be weighted somehow.  Otherwise the system encourages only helping beginners and not getting your teeth stuck into the more complex problems.  I regularly see questions left unanswered that someone with experience really ought to be able to answer.  As much as I can I try to answer these questions and get my 10 rep points + 15 for having my answer accepted.  However If I answer a more beginner question I can expect to see significantly more rep points.  This bias towards beginner questions then makes advanced users less inclined to ask and answer questions.  As a result, the usefulness of stack overflow to the more advanced users is diminished.  I would have thought it would be good to keep stack overflow useful for beginners AND make it useful for more advanced users.  Otherwise it will end up being seen as a beginner's resource.


Considering my program is generating a shapefile that has to be added to the "Layers" tab in QGIS interface. However, once the utility of the layer is completed, I need to remove the layer in the middle of the code. I want to remove only the active layer and not all.   To put it in easier words, is there an opposite to self.iface.addVectorLayer() ?


Dell Latitude E6540 keeps restarting after turning it off

I just got a Dell Latitude E6540, but every time I try to turn it off, it restarts automatically. It is running on a 64b Win 7 OS. Can anyone help me please?


Is $\sin^2(z) + \cos^2(z)=1$ still true for $z \in \Bbb{C}$?

Is $$\sin^2(z) + \cos^2(z)=1$$ still true for all $z \in \Bbb{C}$? I've tried rewriting it using complex definitions of $\sin$ and $\cos$, and I don't see why it wouldn't, but the text I'm reading asks this question as if it shouldn't hold?


Indiscernible to create descending chain of elementary models

Let $M$ an infinite structure such that $\mid M \mid \ge \mid L(M) \mid $. Show that exists a proper elementary extension $N$ and a chain $\langle N_{i} \mid i < \omega \rangle $ such that $$N=N_{0},    \  \ N_{i} \succ N_{i+1} $$ for all $i< \omega $ and $M=\bigcap_{i< \omega} N_{i}$   That this exercise comes as an application of sequence of indiscernible, the procedure would be to find a sequence of indiscernible and with this sequence and with $M$  build the first model $N_{0}$ of the chain of elementary extensions of $M$. I'm not sure if that is the correct. Thanks for any hint.


Switch to EN keyboard layout on Ubuntu login screen after each logout

Is there some solution to setup default EN keyboard layout for each Ubuntu logout?


How do i resolve permission denied (public key) on ec2 aws

I have tried everything and i have been on this for two days, no progress.  i can access the same server (hadoopmaster) but when i try to copy the key or ssh into the slave (hadoopslave-1) i get the permission denied (publickey) error. Am here to get help.  Because i want to make them to be able to ssh into each other one namenode and two datanodes , i have already installed ambari and trying to setup on ambari on the cluster.     i used ssh -i ~/.ssh/id_rsa -v ubuntu@ec2-54-186-26-168.us-west-2.compute.amazonaws.com   Also tried to copy key but same error message  ssh-copy-id -i $HOME/.ssh/id_rsa.pub ubuntu@hadoopslave-1


Möbius transformations and concentric circles

Given a Möbius transformation that maps one pair of concentric circles to another pair of concentric circles, why is the ratio of the radii preserved through the map?   I thought about how Möbius transformations are compositions of rotations, scaling, inversion, and translation, and that intuitively, these types of maps shouldn't change the ratio of radii between two circles.   Would it be correct to just say that if $\frac{r_1}{r_2}$ is the ratio of radii between the two circles, then   1) The radii are invariant under translation, $z \mapsto z+a$, so $\frac{r_1}{r_2}$ stays the same  2) Under scaling by a factor $z \mapsto az$, $\frac{ar_1}{ar_2} = \frac{r_1}{r_2}$   3) Under inversion, $z \mapsto \frac{1}{z}$, $\frac{1/r_1}{1/r_2} = \frac{r_2}{r_1}$  Or is there a different/better way to think about this problem?


Auto-Updater: Requires installation of untrusted packages

In the recent week or so, I get the above message when letting the auto-updater run from the UI. The message goes on to say: "This requires installing packages from unauthenticated sources". I read that it is recommended to apt-upgrade. But I had not found any explanation why this is the intended solution.    I would like to understand the process of auto-update releases, in regards to why does it require the apt-upgrade right now, before I touch my otherwise very stable system that way. I do not recall updates requiring this for my system in the last few years.  Ubuntu 14.04 LTS.  Thanks!


Does it matter if I add cornstarch to my sauce instead of pasta water?

Since it is starch in hot water in both cases, I wonder why starchy pasta water is so prized over adding (trigger warning for Italians) warm water and cornstarch when tossing pasta.


What happens if the entity a warlock has a pact with is killed?

Fiends and Archfey could be killed by a rival trying to usurp their power.  If this is not covered in the 5e RAW, is there a good resource from another edition that could be helpful in determining how the death of the being with whom a Warlock has a pact with affects a Warlock?


Find point at distance d perpendicular to endpoint A of given line segment AB

Given a line segment from point $A$ to point $B$, how do you find a point $A_2 $ that is perpendicular to the point $A$ at a distance $d$ from $A$? Points $A, B$ and distance $d$ are given.  I cant seem to figure out the correct way to solve this problem and my linear algebra / geometry are a bit rusty. It seems as though using Orthogonal Projection may work since I have the distance but I cant figure out the location of the point. Any ideas?  Take a look at the following Diagram for clarification.


Hash different data into SHA 256 - same results

Existing SHA-256, how to update it with another or multiple different data types      BigInteger d = new BigInteger("773182302672421767750165305491852205951657281488");     BigInteger r = new BigInteger("1354751385705862203270732046669540660812388894970");     String R_ID = "id_b";     String C_ID = "id_b";      MessageDigest sha_c = MessageDigest.getInstance("SHA-256");     sha_c.update(r.toByteArray());     sha_c.update(d.toByteArray());     sha_c.update(C_ID.getBytes());     System.out.println(Arrays.toString(sha_c.digest()));      MessageDigest sha_b = MessageDigest.getInstance("SHA-256");     sha_b.update(r.toByteArray());     sha_b.update(d.toByteArray());     sha_b.update(R_ID.getBytes());     System.out.println(Arrays.toString(sha_b.digest()));   Same results: result with update with sha_c.update(C_ID.getBytes());     [114, -62, 50, -44, -118, 20, -29, 34, -112, 99, -17, -6, 97, -64,   -121, 20, 30, -55, 110, 54, 9, -90, 100, 125, -28, 75, 106, -15, -87, -109, -51, 46]   result with update with sha_b.update(R_ID.getBytes());     [114, -62, 50, -44, -118, 20, -29, 34, -112, 99, -17, -6, 97, -64,   -121, 20, 30, -55, 110, 54, 9, -90, 100, 125, -28, 75, 106, -15, -87, -109, -51, 46]


In getContext() its showing "Non-static method 'getContext()' cannot be referenced from a static context" how to solve it,or what should i call instead of it.  public class CategoryAdapter extends RecyclerView.Adapter<CategoryAdapter.ViewHolder > {  private List<CategoryModel> CategoryModelList;  public CategoryAdapter(List<CategoryModel> categoryModelList) {     CategoryModelList = categoryModelList; }  @NonNull @Override public CategoryAdapter.ViewHolder onCreateViewHolder(@NonNull ViewGroup viewGroup, int viewType) {     View view = LayoutInflater.from(ViewGroup.getContext()).Inflate(R.layout.category_item,viewGroup,false);     return null; }  @Override public void onBindViewHolder(@NonNull CategoryAdapter.ViewHolder holder, int position) {  }  @Override public int getItemCount() {     return 0; }


How to restrict access to my server from the Tor Network AND Browser?

I am working on a secure application, and for security and other purposes, I would like that people not be able to access my site via the Tor Network AND the Tor Browser.  I am using an server based on the LAMP Stack with .htaccess enabled.  Any thoughts on how I can achieve this?


I'm trying to understand how namespaces work in XML. When I have an element like foo:bar, the attributes will often not have namespaces on them. But sometimes they will. Are the attribute in the namespace of the element, even when the default namespace has been declared? Looking over the xsd for xhtml it seems the attributes are part of the schema and should be in the namespace for xhtml, but they are never presented that way...


I've applied smooth shading and auto smooth to this sphere shape, and when I apply the subsurface modifier I'm getting artefacts on top of the sphere. Ive tried adding loop cuts, and also deleted the top faces and did a grid fill but only made it worse. How can I fix the sphere not to have that weird pinching on the top?  Thank you.


"the best thing I have ever done" or "the best thing that I have ever done" Which form is correct?

I have seen that some write "the best thing I have ever done" or the best thing that I have ever done. Which one is correct? I would use the first one.


let $ \sum_{n=1}^{\infty}a_{n}=1+\frac{1}{2}-2\cdot\frac{1}{3}+\frac{1}{4}+\frac{1}{5}-2\cdot\frac{1}{6}+\frac{1}{7}+\frac{1}{8}-2\cdot\frac{1}{9}+... $ Meaning, $ \sum_{n=1}^{\infty}a_{n} $ is the seires which we multiplyed each third element of the harmonic series by $ -2 $. I have to tell if this series converge/diverge. Here's what I tried: First, I defined $ S_{p}=\sum_{n=1}^{p}a_{n} $ and then I defined $ b_{k}=\frac{1}{3k-2}+\frac{1}{3k-1}-\frac{2}{3k} $ ( I summed each 3 elements of the original series and named it $ b_k $ ). Thus,   $ T_{P}=\sum_{k=1}^{p}b_{k}=\sum_{n=1}^{3p-2}a_{n}=S_{3p-2} $ So basiclly $ T_p $ is a subsequence of $ S_p $, therefore its enough to show that $ \sum_{k=1}^{\infty}b_{k} $ diverges, and it will imply that also $ \sum_{n=1}^{\infty}a_{n} $ diverges, because otherwise $ S_p $ is a convergent sequence and eny subsequence of $ S_p $ should converge to the same limit. Thats my idea, it required a bit of work and eventually I managed to show that  $ \sum_{k=1}^{\infty}b_{k}=\sum_{k=1}^{\infty}\frac{9k^{3}+9k^{2}-4k}{3k\left(3k-1\right)\left(3k-2\right)} $ diverges. I wander if there's simplest way to prove that this series converges (if it is a convergent series at all). Thanks in advance.


Why does Firefox take nearly 300MB+ of RAM just to open one tab?

I have been peaking in macOS Activity Monitor and found this:  One tab spawns atleast 3 processes:   Firefox ~400MB FirefoxCP Web Content ~200MB FirefoxCP Web Extensions ~200MB     Update - ran again and got these numbers ...


Compute $I=\int_0^2\frac {\arctan{x}}{x^2+2x+2}dx$   My 2 attempts:  First:  We observe that $\frac {1}{x^2+2x+2}=\frac {1}{(x+1)^2+1}$ and $\frac 1{(x+1)^2+1}=(\arctan{(x+1)})^{'}.$ Then:  $$\int_0^2\frac{\arctan{x}}{x^2+2x+2}dx=\int_0^2\arctan{x}(\arctan{(x+1)})^{'}dx=\left.\arctan{x}\arctan{(x+1)}\right|_0^2-\int_0^2\frac{1\times\arctan{(x+1)}}{1+x^2}dx=\left.\arctan{x}\arctan{(x+1)}\right|_0^2-\int_0^2\frac{(1+x^2-x^2)\times\arctan{(x+1)}}{1+x^2}dx=\left.\arctan{x}\arctan{(x+1)}\right|_0^2-\int_0^2\arctan{(x+1)}dx-\int_0^2\frac{x^2\arctan{(x+1)}}{1+x^2}dx$$  Where the second integral is pretty easy to solve using integration by parts but the second one is not very pleasant so... I thought I should try something else.  Second attempt:  Let $u=\arctan(x+1)$ then $x=\tan u-1$ then $$I=\int_{\arctan1}^{arctan3}\arctan{(\tan u -1)du}$$  then I could let $w=\tan(u)-1$ then $dw=((w+1)^2+1)du$... but it's a lot of work and I really think you can do this more easily...  Any hints?


Cannot remove file: "Structure needs cleaning"

I have an external hard drive which is encrypted via LUKS. It contains an ext4 fs.  I just got an error from rsync for a file which is located on this drive:  rsync: readlink_stat("/home/some/dir/items.json") failed: Structure needs cleaning (117)   If I try to delete the file I get the same error:  rm /home/some/dir/items.json rm: cannot remove ‘//home/some/dir/items.json’: Structure needs cleaning   Does anyone know what I can do to remove the file and fix related issues with the drive/fs (if there are any)?


Can I request a moderator to re-activate my SO account that has been suspended because of mistake?

I have been participating on Stack Overflow for the last 4 months. I found that it is the best Q&A site for beginners, and I received solutions to many of my problems there. So I started sharing my knowledge.  But 2 days ago, I made one mistake of copying one answer from Stack Overflow and posted it as my own answer. I didn't know that was a bad thing, and my account got suspended.  Now I would like to request that the moderators please kindly forgive me once. This kind of mistake will never happen again. How can I request that a moderator do this? I desperately want to come back to SO.


Is there a way to modify a file in-place?

I have a fairly large file (35Gb), and I would like to filter this file in situ (i.e. I don't have enough disk space for another file), specifically I want to grep and ignore some patterns — is there a way to do this without using another file?  Let's say I want to filter out all the lines containing foo: for example...


Is it possible to left-align the Beamer "Berlin" theme heading?

When the "Berlin" LaTex Beamer class is used for presentation sub-sections that have many slides, it happens that the prescribed alignment of the sections in the headline makes some  either invisible, or they overlap with each other.   Here is the minimal working example:  \documentclass{beamer} \usetheme{Berlin}  \begin{document} \section{A} \subsection{AA}  \begin{frame}A\end{frame} \begin{frame}A\end{frame} \begin{frame}A\end{frame} \begin{frame}A\end{frame} \begin{frame}A\end{frame} \begin{frame}A\end{frame}  \subsection{AA}  \begin{frame}A\end{frame} \begin{frame}A\end{frame} \begin{frame}A\end{frame} \begin{frame}A\end{frame} \begin{frame}A\end{frame} \begin{frame}A\end{frame} \begin{frame}A\end{frame} \begin{frame}A\end{frame}  \section{B} \subsection{BA} \begin{frame}B\end{frame} \begin{frame}B\end{frame} \begin{frame}B\end{frame} \begin{frame}B\end{frame} \begin{frame}B\end{frame} \begin{frame}B\end{frame} \subsection{BB} \begin{frame}B\end{frame} \begin{frame}B\end{frame} \begin{frame}B\end{frame} \begin{frame}B\end{frame} \begin{frame}B\end{frame} \begin{frame}B\end{frame} \begin{frame}B\end{frame} \begin{frame}B\end{frame} \subsection{BC} \begin{frame}B\end{frame} \begin{frame}B\end{frame} \begin{frame}B\end{frame} \begin{frame}B\end{frame} \begin{frame}B\end{frame} \begin{frame}B\end{frame} \begin{frame}B\end{frame} \begin{frame}B\end{frame} \begin{frame}B\end{frame} \begin{frame}B\end{frame} \begin{frame}B\end{frame} \begin{frame}B\end{frame} \begin{frame}B\end{frame}  \section{C} \subsection{CA} \begin{frame}C\end{frame} \begin{frame}C\end{frame} \begin{frame}C\end{frame} \begin{frame}C\end{frame} \begin{frame}C\end{frame} \begin{frame}C\end{frame} \begin{frame}C\end{frame} \begin{frame}C\end{frame} \begin{frame}C\end{frame} \begin{frame}C\end{frame} \begin{frame}C\end{frame} \begin{frame}C\end{frame} \subsection{CB} \begin{frame}C\end{frame} \begin{frame}C\end{frame} \begin{frame}C\end{frame} \begin{frame}C\end{frame} \begin{frame}C\end{frame} \begin{frame}C\end{frame} \begin{frame}C\end{frame} \begin{frame}C\end{frame} \begin{frame}C\end{frame} \begin{frame}C\end{frame}  \section{D} \subsection{DA} \begin{frame}D\end{frame} \begin{frame}D\end{frame} \begin{frame}D\end{frame} \begin{frame}D\end{frame} \begin{frame}D\end{frame} \begin{frame}D\end{frame} \begin{frame}D\end{frame} \begin{frame}D\end{frame} \begin{frame}D\end{frame} \begin{frame}D\end{frame} \begin{frame}D\end{frame} \begin{frame}D\end{frame} \subsection{DB} \begin{frame}D\end{frame} \begin{frame}D\end{frame} \begin{frame}D\end{frame} \begin{frame}D\end{frame} \begin{frame}D\end{frame} \begin{frame}D\end{frame} \begin{frame}D\end{frame} \begin{frame}D\end{frame} \begin{frame}D\end{frame} \begin{frame}D\end{frame}   \end{document}   And it generates this result:    If you take a look at the upper right corner, the D section seems to be missing some navigational dots. In another configuration, the horizontal navigational dots of the theme may overlap.   Sure, an obvious answer would be to use a fixed smaller number of slides in each section. This is however sometimes not possible.   Is there a way for the sections with their navigational dots to be left-aligned in the headline? There seems to be ample space between them in the image above.


How to solve this integration that I got from differential linear equation?

I worked differential linear equation and at end of equation I got this integral.Can someone give me a hint to do this: $$\int \frac{1}{\left(u^2+1\right)^2}du$$


Attempted to add to this question: , however wasn't able to.   After installing nvm im having the same issue, here is the log from terminal:  Michael-iMac:~ michaels_imac$ curl https://raw.github.com/creationix/nvm/master/install.sh | sh   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current                                  Dload  Upload   Total   Spent    Left  Speed 100  1202  100  1202    0     0   5759      0 --:--:-- --:--:-- --:--:--  6829 => NVM is already installed in /Users/michaels_imac/.nvm, trying to update =>   Already up-to-date.  Michaels-iMac:~ michaels_imac$ nvm install 0.8  -bash: nvm: command not found


Where is file for IEEE information stored in Windows Miktex installation to modify the @phdthesis entry?

I am trying to modify the entry for @phdthesis  to show "PhD dissertation" instead of the normal "PhD thesis" as per the suggestion made .  However, on windows that has a Miktex installation, I cannot find the file where to make this change.  I am using this setup:  CODE  \documentclass{article}  %====================================================================================== %   BIBLIOGRAPHY %====================================================================================== \usepackage[backref=false,             defernumbers=true,             style = ieee,             %sorting=none,             sortcites=true,             backend=biber]{biblatex} \renewbibmacro{in:}{} \addbibresource{yourbibliography.bib}% BibTeX \defbibheading{bibempty}{}  \usepackage{filecontents}  \begin{filecontents*}{yourbibliography.bib}  @phdthesis{Cedra-Villafana:2005, abstract = {Gust avo C erda-V illafan a, B .En g ., M.Eng. t1{\~{}} University of m{\~{}} BRISTOL}, author = {Cedra-Villafana, Gustavo}, school = {University of Bristol}, title = {{Artificial intelligence techniques in flood forecasting}}, url = {https://research-information.bristol.ac.uk/files/34499658/412360.pdf}, note = {(Date last accessed 06-May-2019)}, year = {2005} }  \end{filecontents*}   \begin{document}  This is just some text \cite{Cedra-Villafana:2005}  \nocite{*} \printbibliography[heading=bibempty]   \end{document}   The closest that I came across was the ieeetr.bst file found in ...\user\Program Files\MiKTeX 2.9\bibtex\bst\bibtex.  I made the change here but it did not make a difference.    Is there a different place or .bst file that I have to modify to show up PhD dissertation in the references?  Thanks.


How to solve Frog-stair problem with combinatorics instead of recursion?

The problem about a frog climbing a stair of size N, in steps of size 1 or 2, can be formulated as Fibonacci; and if it can jump in steps of size $1,2,...k$ there must be $k$ recursive calls.  I want to know if its possible to solve this problem using combinations with repetition instead of using recursion?   Im trying to use combinations with repetition formula to give number of positive integer solutions to the restricted equation representing the problem (for example k=3 and N=4, the equation  $a+b+c+d = 4$ with $1 \le a,b,c,d \le  k$ ) and after that subtracting the impossible solutions (i.e. solutions wich contain value of zero for one or more variables), but I'm having trouble restricting the equation and counting the impossible solutions.  Wonder if Im walking in the right direction here?


How to run a script at startup and access it later

I want to run a script at startup that I will need to interact with later.  I could find ways to run a script at startup, but no ways to come back to it after it has run.  The script never ends.  I need to be able to enter things into the script.  I know nohup would work for starting it but I could not find a way to resume the script and interact with it.  I know tmux and screen will work for interacting with it, but I do not know how to run these commands in a single line to run them at startup.  TLDR: I need a way to run a never ending script at startup and resume this script later on.  Edit: It is for a minecraft server.  As far as interaction, I would need to be able to type commands and see the output.  All of this is through the command line.  This is very similar to an ssh session.  Very much like tmux and screen, I want to be able to resume a session at any time.


What is the difference between will be better and would be better?

it will be better to add more photos in the website. it would be better to add more photos in the website.  Is both statement are same?  if no please clarify me


Theorem and lemma and proposition numberings with the numbers first

If one considers the following MWE one sees that theorems and lemmas have their number as a suffix:  \documentclass[fleqn]{scrartcl} \setkomafont{disposition}{\normalfont\bfseries} \makeatletter\let\TTTemp\cap\makeatother \usepackage[greek,english]{babel} \usepackage{teubner} \makeatletter\let\cap\TTTemp\makeatother \usepackage{eurosym} \usepackage{amssymb} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{lgreek} \usepackage{graphicx} \usepackage{textcomp} \usepackage{cancel} \usepackage{soul} \usepackage{cjhebrew} \usepackage{mathtools} \usepackage{rotating} \usepackage{esvect} \usepackage{natbib} \usepackage{MnSymbol} \usepackage{centernot} \usepackage{cancel} \usepackage{scalerel} \usepackage{hyperref} \usepackage{tocbibind}   \allowdisplaybreaks   \newbox\gnBoxA \newdimen\gnCornerHgt \setbox\gnBoxA=\hbox{$\ulcorner$} \global\gnCornerHgt=\ht\gnBoxA \newdimen\gnArgHgt \def\Godelnum #1{% \setbox\gnBoxA=\hbox{$#1$}% \gnArgHgt=\ht\gnBoxA% \ifnum     \gnArgHgt<\gnCornerHgt \gnArgHgt=0pt% \else \advance \gnArgHgt by -\gnCornerHgt% \fi \raise\gnArgHgt\hbox{$\ulcorner$} \box\gnBoxA % \raise\gnArgHgt\hbox{$\urcorner$}}  \newcommand{\bleq}{\mathrel{\mathpalette\bleqinn\relax}} \newcommand{\bleqinn}[2]{%   \ooalign{%     \raisebox{0.04ex}{\scalebox{1.24}[1.15]{$#1\blacktriangleleft$}}\cr     $#1\leq$\cr   }% }  \newcommand{\blt}{\mathrel{\mathpalette\bltinn\relax}} \newcommand{\bltinn}[2]{ \ooalign{ \raisebox{0.04ex}{\scalebox{1.23}[1.22]{$#1\blacktriangleleft$}}\cr $#1$\cr } }   \newcommand\fat[1]{\ThisStyle{\hstretch{1.4}{\ooalign{%   \kern.46pt$\SavedStyle#1$\cr\kern.33pt$\SavedStyle#1$\cr%   \kern.2pt$\SavedStyle#1$\cr$\SavedStyle#1$}}}} \def\fvee{\mathbin{\fat{\vee}}}  \newcommand*{\aoverb}[2]{\ensuremath{\genfrac{}{}{0pt}{}{#1}{#2}}} \newcommand\updown[1]{\rotatebox[origin=c]{180}{\ensuremath{#1}}} \newcommand\atangle[2]{\rotatebox[origin=c]{#1}{\ensuremath{#2}}}  \renewcommand*{\koppa}{\ensuremath{\text{\textgreek\coppa}}} \renewcommand*{\Koppa}{\ensuremath{\text{\textgreek\Coppa}}}  %\newcommand*{\koppa}{\ensuremath{\c{k}}} %\newcommand*{\Koppa}{\ensuremath{\c{K}}}   \newtheorem{theorem}{Theorem}[section] \newtheorem{acknowledgement}[theorem]{Acknowledgement} \newtheorem{algorithm}[theorem]{Algorithm} \newtheorem{axiom}[theorem]{Axiom} \newtheorem{case}[theorem]{Case} \newtheorem{cannon}[theorem]{Cannon} \newtheorem{claim}[theorem]{Claim} \newtheorem{conclusion}[theorem]{Conclusion} \newtheorem{condition}[theorem]{Condition} \newtheorem{conjecture}[theorem]{Conjecture} \newtheorem{corollary}[theorem]{Corollary} \newtheorem{criterion}[theorem]{Criterion} \newtheorem{definition}[theorem]{Definition} \newtheorem{example}[theorem]{Example} \newtheorem{exercise}[theorem]{Exercise} \newtheorem{hint}[theorem]{Hint} \newtheorem{lemma}[theorem]{Lemma} \newtheorem{notation}[theorem]{Notation} \newtheorem{postulate}[theorem]{Postulate} \newtheorem{postulation}[theorem]{Postulation} \newtheorem{problem}[theorem]{Problem} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{remark}[theorem]{Remark} \newtheorem{solution}[theorem]{Solution} \newtheorem{summary}[theorem]{Summary} \newenvironment{proof}[1][Proof]{\noindent\textbf{#1.} }{\ \rule{0.5em}{0.5em}}  \title{Test}  \author{Frode Bj\o rdal}  \date{}  \begin{document}       \section{Test}      \begin{theorem}     This is a theorem.     \end{theorem}      \begin{lemma}     This is a lemma.     \end{lemma}      \begin{proposition}     Ths is a proposition     \end{proposition}       \end{document}   How can I have the numbers as a prefix? Just adding the amsthm with swapnumbers give errors.


Is it true that $|d(x, z) - d(y, z)| \leq d(x, y)$ and how do I prove it?

I tried $|d(x, z) - d(y, z)| \leq d(x, z) + d(y, z)$, but the the triangle equation goes the wrong side. Is there an analogue to the reverse triangle inequality with metrics? The reason I want to know this is to proof that $d(x, A)$ is continious where $A$ is a set. (Let $|x - y| < \delta$, then after some algebra $|d(x, A) - d(y, A)| = \inf(\{|d(x, a) - d(y, a)| \ | \ a \in A \})$.


For years I thought gingerly meant "with spirit or liveliness," I suppose because "spirit and liveliness" define the noun ginger.   But no; gingerly means "cautiously or carefully." How did it take on this meaning?  The Online Etymology Dictionary's entry is woefully unsatisfying:     gingerly (adv)   1510s, "elegantly, daintily," perhaps from Old French gensor, comp. of gent "dainty, delicate," from Latin gentius "(well)-born" (see gentle). Meaning "extremely cautiously" is from c.1600.


When was it first revealed how Anakin became Darth Vader?

I remember knowing back in the mid-80s that Luke's father and Obi-Wan Kenobi fought on a lava planet which resulted in Luke's father being hurt badly enough to need the head-to-toe black leather outfit with cape and flashing lights that we knew already as Darth Vader.  But at that time, where would I have learned this from? Was it mentioned in one of the novel adaptations of movies IV, V or VI? Or am I just psychic?  It's been bugging me for 30 years now wondering how I knew this happened.


Apart from 'street-smart' what is another word for street-wise?


I am working on a project with an energy friendly MCU from Silicon Labs. The EFR32BG1B132F256GM32 to be exact. My goal is to use as little power as possible to maximize the lifespan of the CR2032 battery I am using to power the application. The consumption in idle and the lowest energy mode possible for what I am doing turns out to be like 4uA which is to be expected according to the datasheet. Now the problem:   I have a reed switch, one side is hooked up to the VDD rail and the other side to a GPIO pin. The GPIO features pull up or pull down and button debouncing internally. In my case I have button debouncing and the pull down enabled. If the reed switch is open, the current draw remains at 4uA, but if it closes, the current goes up to 80uA and remains there until the switch is open again. I assume since there is a path from VDD to GND via the pull down resistor power gets dissipated according to its resistance (unknown - could not find it in the datasheet..). But the problem is, that the application I want to use the reed switch in, holds it closed like 50% of the time and I cannot afford the high current draw during this time. I also tested it with pull up and the other side of the reed connected to GND - obviously same result. What could I do to resolve this? I thought about letting the pin floating and use a very high pull down like 10M externally but I also do not want the switch to trigger if it gets touched or something. Any comments are appreciated!


Mapping unit disk with slit at $[0,1)$ conformally onto unit disk

Let $\mathbb{D}$ denote the unit disk in the complex plane $\mathbb{C}$. I want to find a conformal mapping of the slit disk $\mathbb{D}-[0, 1)$ onto $\mathbb{D}$.    Here's what I know so far: The conformal mapping $$\phi(z)= e^{i \theta} \frac{z-a}{1- \bar{a}z}, |z|<1$$ with $a \in \mathbb{C},|a|<1, 0 \leq \theta \leq 2 \pi$ maps $\mathbb{D}$ onto $\mathbb{D}$. I'm also familiar with the standard mappings from the upper half plane onto the unit disk and vice versa. Since we are considering a slit disk to be mapped onto the unit disk, would that entail the composite of $\phi$ with an appropriate branch of the square root function? I'm still trying to come up with an explicit mapping of some sort, but haven't gotten very far yet. Any suggestions would be helpful.


Should you reject $H_0$ at the 0.10 level?

If the p-value is greater than 0.900, should  you reject $H_0$ at the 0.10 level?"


1.000 people attempted a task and 30 succeeded. Given this information, we can say that the success rate was 3%.   But what if I want to estimate from this sample a confidence interval for the success rate in the population? For example, given that previous data, the success rate is between let's say 1% and 5% in 95% of cases.  How can I calculate that interval with a 95% certainty? is there any tool online?  Thank you, Luca


I have a similar issue as . You can pretty much take his screen shot and apply it to my issue: Windows 8.1, 99% disk usage or in that vicinity for a longer period of time (minutes). Yet the individual disk usage stats don't add up to more than roughly 1MB/Sec. I have an SSD disk capable of much higher throughput.  The question I linked to doesn't provide much answer, but one comment hints to low free disk space. That is an issue with my disk. I have only ~1GB left of free space on my C drive. But my follow-up question is why would that matter? Windows does pre-allocate 6GB of virtual drive, doesn't it? At least that's how I interpret "currently allocated" in the Virtual Memory settings screen under System Properties → Performance options.  I've tried to use the  to gain some information on what's using the disk, but the amount of data logged in just a couple of seconds is so vast that I don't know where to start. The only thing I see is that service.exe accesses the registry a lot... But I guess that's normal? If anyone care to take a look, the log dump is  (19MB)  To summarize:   Does the disk usage really go up when free space declines? If so, why? Can anyone deduct from my Procmon log file what program or process causes 99% disk usage?   edit: To comment on the "malware"-answer in the other post: I'd like to know, not guess. I doubt it is malware in my case, but if it is, my logs should show that.  update: Similar case just happened. Any clues from these two ResMon screenshots?      "System" doesn't really tell me much.


What's the difference between eating 2000 Calories at once compared to eating 4 times a day at 500 Calories?

I wonder is there any difference in how many times I eat per day?  Let's say I eat one big meal in the morning at 2000 Cal (at 9am). Is that any different than having 4 meals at 500 Cal throughout the day (at 9am, 1pm, 5pm, 9pm)?  I think I will be hungry by the end of the day if I eat just once in the morning. But I won't be hungry if I eat 4 times a day at smaller portions? How is that possible? It's still 2000 Calories. Did I just cheat science?  Which way is it better to eat? Maybe twice a day at 1000 Cal? (9am and like 4pm?)  Head scratch.


How can this theorem about weakly measurable functions on $\sigma$-finite measure spaces be deduced from the finite measure space case?

I am reading a theorem about measurability of vector-valued functions in a note on functional analysis:     Theorem 3.6.1. If $X$ is a separable, metrizable locally convex space, $(\Omega, \Sigma, \mu)$ is a $\sigma$-finite measure space, and $f : \Omega \to X$ is weakly measurable, then $f$ is strongly measurable.   The proof begins     We can restrict ourselves to the case of finite measures.   Could somebody explain how the general case (when $(\Omega,\Sigma,\mu)$ is "$\sigma$-finite") can be deduced from the "finite" case?    For completeness, here are some definitions. Let $( \Omega, \Sigma, \mu )$ be a measure space, let $X$ be a Hausdorff locally convex space, and let $f : \Omega \to X$. We say that   $f$ is measurable if $f^{-1} (G) \in \Sigma$ for every open set $G \subset X$. $f$ is weakly measurable if $\varphi \circ f$ is measurable for every $\varphi \in X^*$. $f$ is strongly measurable if there exist simple functions $f_n : \Omega \to X$ such that $f(\omega) = \lim_{n \to \infty} f_n(\omega)$ for $\mu$-almost every $\omega \in \Omega$. (A simple function is a measurable function which takes only finitely many values.)   An image of proof, and surrounding definitions, can be seen .


$\pi\approx 3.141592654$   Why is it so close to $3$?   I find this intriguing, this cannot be a coincidence.


A function takes every function value twice - proof it is not continuous

I want to prove the following nice statement I've found:  A function $f: [0,1] \rightarrow \mathbb{R}$ takes every function value twice - proof it is not continuous  I've already found an answer to my question but one thing is still not clear to my mind. The answer I found was :   Whole post:  "Assume that you have a function $f$ that does take every real value exactly twice. Let $f(a) = f(b) = 0$ with $a < b$. Let $c \in (a,b)$ be given, and assume without loss of generality $f(c) > 0$. Then for every $0 < \epsilon < f(c)$ there exist $d \in (a,c)$ and $e \in (c,b)$ such that $f(d) = f(e) = \epsilon$. So on the intervals $[0,a)$ and $(b,1]$ our function cannot go any higher than zero. That means that $f$ should take every positive real value on the interval $[a,b]$. However the restriction of $f$ to $[a,b]$ is continuous from a closed interval to $\mathbb{R}$ and thus bounded. Contradiction."  Now everything is clear here except for:  "However the restriction of $f$ to $[a,b]$ is continuous from a closed interval to $\mathbb{R}$ and thus bounded. Contradiction."  Well I think know what Arthur is telling there: Because of the boundary there is always at least one function value that can't be taken twice by the function, e.g. just like the peak of $-x^2$.  But that is exactly where I was stuck before I started researching that issue. Is it really possible to just say it the way Arthur did? I thought that I'd have to further somehow prove the statement that boundary leads to that contradiction.    I hope that it is clear what I was trying to express here...  Anyways as always - thank you for your help!  FunkyPeanut


Prove that any complex matrix can be expressed in term of Hermitian and anti-Hermitian matrices

How can we prove that any complex matrix can be expressed in term of hermitian and anti-hermitian matrices of the following form $A = H_1 + iH_2$ Where, $H_1$ is hermitian and $H_2$ is an anti-hermitian matrix


I had "open in terminal" in my previous ubuntu of 14.04 and it was a life safer, I can open terminal at a specific location and path. In ubuntu 16.04 also I want some thing like that so I followed  and installed nautilus-actions. The problem with this is that it will work only inside a nautilus and not work in desktop. Is there a light weight software which can be used to "Open  terminal here" in both the desktop and nautilus?  EDIT:  I somehow missed "open in terminal" in my nautilus window. It seems  that ubuntu 16.04 has built in "open in terminal" for nautilus. But my problem still exists. I cant open "open in terminal" from desktop.


I try to find a counterexample of the exercise 2.5 in Commutative Ring Theory by Matsumura, when $A$ is not commutative. The exercise says.     Let $A$ be a commutative ring. If $A^n \simeq A^m$, then $m = n$.   I have thought that the module $A^m$ has a minimal base with $n$ elements $\{x_1, ..., x_n\}$ and need to take the $\phi : A^n \rightarrow A^m$ such that $\phi (e_j) = x_j$ where $e_j$ is the canonical base.


Modular exponentiation with large modulo

I can calculate module exponentiation of square powers of $7$ modulo $35$ or things alike by hand but for computing modulo exponentiation of square powers of $7$ modulo $1000$, then I need a calculator. For instance  $$ \begin{alignat*}{2} 7^1&\equiv7&&\pmod{1000}\\ 7^2&\equiv49&&\pmod{1000}\\ 7^4&\equiv(7^2)^2\equiv49^2\equiv401&&\pmod{1000} \\ 7^8&\equiv(7^4)^2\equiv401^2\equiv801&&\pmod{1000} \\ 7^{16}&\equiv(7^8)^2\equiv801^2\equiv601&&\pmod{1000}\\ 7^{32}&\equiv(7^{16})^2\equiv601^2\equiv201&&\pmod{1000}\\ 7^{64}&\equiv(7^{32})^2\equiv201^2\equiv401&&\pmod{1000} \end{alignat*} $$ Is there an easier way without using a calculator?


How can I export gmail message subject lines from a search?

I have a label that sorts all my email marketing from one company. I want to export the search results so I can grab the subject lines. There are about 350 messages, and I wanted to research the subject lines. Any ideas?


I'm doing some computer network homework and I'm supposed to develop some sort of Peer to Peer file sharing software, and when I wanna test it I need to run a few (5) instances on my linux/Ubuntu 11.10 . which means each one need to has a unique IP address. I heard I can do that but I dunno how. how can I have many IP addresses on a single computer? thanks


Models are my life, vs models is my life

I am wondering which one of the following is correct:   I love building mathematical models. Models are my life. I love building mathematical models. Models is my life.


Proof that a trigonometric function of a rational angle must be non-transcendental

Suppose I was working in radians and took  $$\sin \left(\frac{a\pi}{b}\right)$$  where both $a$ and $b$ are integers.  Is there a proof that the output of this function cannot be transcendental? Or, conversely, that   $$\arcsin \left(t \right)$$  where $t$ is some transcendental number, e.g., $e$, cannot be a rational angle $\left(\frac{a\pi }{b}\right)$?  Sadly, I couldn't get very far with this problem with my maths teacher so any information on the topic would be very useful.


Convergence of alternating zeta function

I have been studying the Riemann zeta function and I came across such a representation of zeta function  $\zeta(s)=(1-2^{1-s})^{-1} \sum_{n=1}^{\infty} (-1)^{n-1} n^{-s}$.  Then it says in the book that this alternating series converges for $Re(s) > 0$. And there is my question. How can we show that this series converges in that region? We can't use the alternating series test because we deal with complex numbers, but please correct me if I'm wrong, so how can we do it? Also, could anyone explain to me or recommend any book to read why the imaginary part does not have any impact on convergence of a series? Thanks!


Should I use "half the time" or "half of the time"?

If I wanted to say that someone finished in 30 minutes when they had one hour to complete a given task, should I say "he did it in half the time" or "he did it in half of the time"?


Can Yum express a preference for x86_64 over i386 packages?

I run a 64-bit version of CentOS5. At the moment, when I run Yum updates or installs, unless Yum is purged of i386 packages prior, it will install i386 packages when x86_64 are available.  Is it possible for Yum to install x86_64 packages as first preference and then if no 64-bit packages are available, install i386 packages instead?  I know that I can set preferences so that only 64-bit packages are installed, but I don't want to do this, as it prevents 32-bit packages from being installed if they're the only option.


Will a solution undissolve if left for a long time?

Simple questions:   In a solution of NaCl (aq) that is unsaturated, will the Na and Cl ions eventually start collecting in the bottom of the container because of gravity pulling them down?   OR   Will ions in an unsaturated solution be distributed evenly if left out for a long time (assuming no reaction with air, just the force of gravity pulling the ions down)?


I want to get user input in one page, store that in a php variable and use it in another php page. I have tried using 'sessions' but it doesn't seem to be working. Is there another safe alternative? This information is likely to be usernames and passwords.


Can the wearer of power and light armors benefit from two force fields?

Although one suit of armor cannot support more than one force field upgrade, light armor can be worn underneath power armor.  Can force fields be installed in both the light armor and the power armor so that the wearer can benefit from two force fields?


Force post slug to be auto generated from title on save

I'm running a property site where many properties are sold in apartment blocks.  Because of this what the content editors do is create a post/property with all the details and then use a duplicate post plugin to create the others.  Each time they duplicate a post/property they change the title to reflect the property number and maybe change a few bits of meta data E.G price.  What they forget to do is wipe out the slug and let a new one be generated from the title. Here is an example slug from the first property entered:  merle-court-plot-50-182-carlton-vale-nw6-5hh  but then when they duplicate the slugs become:  merle-court-plot-50-182-carlton-vale-nw6-5hh-2 merle-court-plot-50-182-carlton-vale-nw6-5hh-2-2 merle-court-plot-50-182-carlton-vale-nw6-5hh-2-2-2 merle-court-plot-50-182-carlton-vale-nw6-5hh-2-2-2-2 etc   But when they change the titles the slugs would be better like:  merle-court-plot-51-182-carlton-vale-nw6-5hh merle-court-plot-52-182-carlton-vale-nw6-5hh merle-court-plot-53-182-carlton-vale-nw6-5hh merle-court-plot-54-182-carlton-vale-nw6-5hh etc   So my question:     How do I force the slug to be re-generated on post save, after they have updated the property title?   The slug for this CPT should always be auto generated, there is never a need to manually set it.


Integration of $\int\frac{1}{x^{4}+1}\mathrm dx$

I don't know how to integrate $\displaystyle \int\frac{1}{x^{4}+1}\mathrm dx$. Do I have to use trigonometric substitution?


Priority during declare blockers and attackers step

If I decide not to attack my opponent, do players still gain priority in declare attackers step? And the same with blockers, if there are no blockers declared for some reason, can players do anything? Or maybe these steps are just skipped in these cases?


Tate's thesis: why is the image of $k$ dense in its Pontryagin dual?

I'm trying to understand a lemma from the beginning of John Tate's PhD thesis. Here $k$ is a local field of characteristic zero.  The character group $\hat{k}$ of $k^+$ is the group of continuous homomorphisms $k^+ \rightarrow S^1$, with the compact open topology, which has subbasis $$V(K,U) = \{ \chi \in \hat{k} : \chi(K) \subseteq U \}$$ for $K$ compact and $U$ open.  Since $S^1$ is metrizable and $k$ is a union of increasing compact subsets, each contained in the interior of the next, the group $\hat{k}$ is metrizable, and $f_n \to f$ in this metric if and only if $f_n \to f$ uniformly on compact sets.  For property (4), it seems all that has been proven is that the map $k \rightarrow \hat{k}$ is injective.  What does this have to do with the image of $k$ being dense?


Is it true that (k,n+k)=d if and only if (k,n)=d?  I solved "Prove that (k,n+k)=1 if and only if (k,n)=1"  but I cannot solve "Is it true that (k,n+k)=d if and only if (k,n)=d?"  I think it is False but I don't know why it is


How do I transfer a single app with data from one iPhone to another?

I just got a new iPhone, and wanted to start "fresh", that is, only installing the app I actually use - not the full pile of junk that was lying around on my old iPhone. Therefore, I opted not to set up the new iPhone from the old one's backup, but instead, downloaded what I wanted from the App Store.  Now I see that one of the apps on the old phone is subscription based, so that I need a password to use it. The password is stored, so I don't have to enter it on my old phone.  But I do not know that password, and for various reasons, I'm unable to use the app's forgotten password function.  So I would like to transfer that single app, including its data (password) to my new phone. How can I do that?


Xubuntu issue - where are the default desktop icons disapeared?

I'm running Xubuntu 14.04 LTS and for some reason the default desktop icons (Trash, File System, and Home) have disappeared? Anyone have any ideas where they went and how to get them back?


When UK visa is rejected with comments "no right to appeal or right to administrative review" can I apply again immediately

When a UK visitors visa is rejected with comments no right to appeal or to administrative review can one apply afresh and, after how long?


How to import css javascript & HTML into block?

Is there anyway to import my css and javascript external files into HTML block? I really try to make css and js inline with HTML but Drupal stripe the tags, thus i try  and  but nothing changed.


Problem starting win8 ISO in VMware virtual machine

i have installed vmware workstation and trying install win8 like this :    but i get this error:  Unable to change virtual machine power state: This host supports Intel VT-x, but Intel VT-x is disabled. Intel VT-x might be disabled if it has been disabled in the BIOS/firmware settings or the host has not been power-cycled since changing this setting. (1) Verify that the BIOS/firmware settings enable Intel VT-x and disable 'trusted execution.' (2) Power-cycle the host if either of these BIOS/firmware settings have been changed. (3) Power-cycle the host if you have not done so since installing VMware Workstation. (4) Update the host's BIOS/firmware to the latest version. This host does not support "Intel EPT" hardware assisted MMU virtualization. Module 'CPUIDEarly' power on failed. Failed to start the virtual machine.   so what do you think?  Thanks for your attention


Is it possible to use Dispel Magic to end unseen spells such as Forbiddance?

Spells like Forbiddance or Mordekainen's Private Sanctum cannot be seen once cast. (Not just because they are invisible, but because there is nothing at all to indicate their presence excepting a few non-visible effects)   They have continuing effects, such as warding against teleportation and planar travel.  Can Dispel Magic be used to end such spells?  A few possible scenarios - in which, if any, is the Forbiddance dispelled?   A clueless PC casts Dispel Magic at a rock in the radius of a Forbiddance spell.  A PC knows there is some magic that's prevented them from teleporting into this area, but not what spell it is. They try to target a Dispel Magic at the magical effect that caused this. A PC knows there is a Forbiddance spell active in the area. They try to target the spell with a Dispel Magic.


What are the minimum contributions required for co-authorship

In this  it is claimed that authorship is given away for "free" in some fields (e.g., obtaining the funding). The comments to the answer suggest that this is field dependent. I am looking for documentation from a field that suggests that authorship can be given away for "free". For example, the ICMJE has authorship  that put a pretty high bar on authorship. Is there any documentation that suggests that supervising a student or getting funding is enough to warrant authorship?


A graphics card and driver with support for OpenGL 3.3 or higher is required error

I can't execute newest Blender 2.80, it says that I need a graphics card that supports OpenGL 3.3 or higher ERROR: A graphics card and driver with support for OpenGL 3.3 or higher is required  Processor: AMD A6-3670 APU with Radeon(tm) HD Graphics, 2695MHz BIOS Version: HPQOEM - 1072009 Dedicated GPU:   This is a very old PC, but when I search online it seems that theoretically Blender 2.8 should run since my openGL is 4.4


prove that every infinite subset of compact set H has a limit point (Explanation)

Let S be an infinite subset of H  Assume that no point of H were a limit point of S.  Since H is compact, there exist a collection of open sets V={Vq: q∈H }  Vq∩S is finite (Is this true? If yes why?)  Since S is assumed to be infinite  ⋃Vq ⊃ S cannot cover S  Since S⊂H  ⋃Vq ⊃ H (cannot cover H)  This contradict compactness of H.  Hence every infinite subset of H has a limit point (Why do we conclude this?)


I have few thousand audio signals to label into 2 different classes and save them to numpy array for further training of models. MATLAB recently released Signal Labeler for their Signal Analyzer, that could help to label time series, but for certain reasons, I can't use it.   Is there any specific tool for analysis and labeling of time series for Python? It is not necessary to save data and labels into numpy arrays, .csv format or anything similar is suitable as well.  Will appreciate any help!


Installing Elementary OS - will it automatically be added to the Grub menu?

I currently have Windows 7 and Linux Mint installed.  When my PC starts up, it shows me the Grub menu, it shows an entry for Mint Linux and the Windows boot menu.  I am wondering, if I was to install Elementary OS, would it be automatically added to grub or do I have to put some command in the terminal?  I also want to ask, when I boot from my Elementary OS cd, and install it, just before it finishes, it shows some kind of error saying some error about cannot install to grub or something, I've tried installing to a separate partition and alongside "Them", but had no luck.  I'm really new to Linux, and want to keep my Mint Linux and Windows 7 because I have files on them.